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.305260af7e1a40e5.js

1 line
3.0 MiB

(self.webpackChunkRTLApp=self.webpackChunkRTLApp||[]).push([[179],{429:(Ve,q,p)=>{"use strict";p.d(q,{$A:()=>Le,$W:()=>ue,BL:()=>B,CN:()=>d,CX:()=>S,EG:()=>z,EK:()=>A,El:()=>ne,HI:()=>a,HJ:()=>E,I8:()=>R,JK:()=>pt,Lu:()=>U,Ly:()=>te,Ni:()=>b,Nr:()=>ce,OG:()=>V,QJ:()=>De,RX:()=>O,Rd:()=>ve,SN:()=>w,Sf:()=>X,TM:()=>l,UH:()=>Ue,UR:()=>L,VD:()=>ae,WM:()=>ye,WO:()=>y,Wi:()=>he,X3:()=>$,YP:()=>oe,YX:()=>_,Z8:()=>le,ZH:()=>dt,Zu:()=>ft,_9:()=>Ke,_E:()=>ee,aL:()=>je,as:()=>m,cQ:()=>i,d7:()=>wt,dh:()=>Je,e9:()=>ke,eF:()=>P,eM:()=>Be,en:()=>xt,g3:()=>W,g6:()=>Ae,i9:()=>Et,kL:()=>T,n7:()=>$e,oV:()=>u,oo:()=>s,pW:()=>n,pd:()=>h,u0:()=>Fe,uT:()=>ot,v_:()=>We,wD:()=>C,xH:()=>I,xS:()=>K,yl:()=>ge,z:()=>me});var t=p(9653),e=p(7731);const b=(0,t.PH)(e.AB.UPDATE_API_CALL_STATUS_CLN,(0,t.Ky)()),I=(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)()),C=(0,t.PH)(e.AB.FETCH_PAGE_SETTINGS_CLN),h=(0,t.PH)(e.AB.SET_PAGE_SETTINGS_CLN,(0,t.Ky)()),P=(0,t.PH)(e.AB.SAVE_PAGE_SETTINGS_CLN,(0,t.Ky)()),d=(0,t.PH)(e.AB.FETCH_INFO_CLN,(0,t.Ky)()),S=(0,t.PH)(e.AB.SET_INFO_CLN,(0,t.Ky)()),w=(0,t.PH)(e.AB.FETCH_FEES_CLN),O=(0,t.PH)(e.AB.SET_FEES_CLN,(0,t.Ky)()),E=(0,t.PH)(e.AB.FETCH_FEE_RATES_CLN,(0,t.Ky)()),R=(0,t.PH)(e.AB.SET_FEE_RATES_CLN,(0,t.Ky)()),z=(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),K=(0,t.PH)(e.AB.SET_LOCAL_REMOTE_BALANCE_CLN,(0,t.Ky)()),ee=(0,t.PH)(e.AB.GET_NEW_ADDRESS_CLN,(0,t.Ky)()),ue=((0,t.PH)(e.AB.SET_NEW_ADDRESS_CLN,(0,t.Ky)()),(0,t.PH)(e.AB.FETCH_PEERS_CLN)),le=(0,t.PH)(e.AB.SET_PEERS_CLN,(0,t.Ky)()),ne=(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)())),me=(0,t.PH)(e.AB.DETACH_PEER_CLN,(0,t.Ky)()),A=(0,t.PH)(e.AB.REMOVE_PEER_CLN,(0,t.Ky)()),i=(0,t.PH)(e.AB.FETCH_PAYMENTS_CLN),a=(0,t.PH)(e.AB.SET_PAYMENTS_CLN,(0,t.Ky)()),u=(0,t.PH)(e.AB.SEND_PAYMENT_CLN,(0,t.Ky)()),l=(0,t.PH)(e.AB.SEND_PAYMENT_STATUS_CLN,(0,t.Ky)()),y=(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)()),L=(0,t.PH)(e.AB.FETCH_CHANNELS_CLN),m=(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)()),V=(0,t.PH)(e.AB.REMOVE_CHANNEL_CLN,(0,t.Ky)()),X=(0,t.PH)(e.AB.PEER_LOOKUP_CLN,(0,t.Ky)()),Le=(0,t.PH)(e.AB.CHANNEL_LOOKUP_CLN,(0,t.Ky)()),$e=(0,t.PH)(e.AB.INVOICE_LOOKUP_CLN,(0,t.Ky)()),We=(0,t.PH)(e.AB.SET_LOOKUP_CLN,(0,t.Ky)()),Fe=(0,t.PH)(e.AB.GET_FORWARDING_HISTORY_CLN,(0,t.Ky)()),De=(0,t.PH)(e.AB.SET_FORWARDING_HISTORY_CLN,(0,t.Ky)()),ye=(0,t.PH)(e.AB.FETCH_INVOICES_CLN,(0,t.Ky)()),ce=(0,t.PH)(e.AB.SET_INVOICES_CLN,(0,t.Ky)()),ve=(0,t.PH)(e.AB.SAVE_NEW_INVOICE_CLN,(0,t.Ky)()),oe=(0,t.PH)(e.AB.ADD_INVOICE_CLN,(0,t.Ky)()),je=(0,t.PH)(e.AB.UPDATE_INVOICE_CLN,(0,t.Ky)()),Ae=(0,t.PH)(e.AB.DELETE_EXPIRED_INVOICE_CLN,(0,t.Ky)()),he=(0,t.PH)(e.AB.SET_CHANNEL_TRANSACTION_CLN,(0,t.Ky)()),te=((0,t.PH)(e.AB.SET_CHANNEL_TRANSACTION_RES_CLN,(0,t.Ky)()),(0,t.PH)(e.AB.FETCH_UTXOS_CLN)),Ue=(0,t.PH)(e.AB.SET_UTXOS_CLN,(0,t.Ky)()),Be=(0,t.PH)(e.AB.FETCH_OFFER_INVOICE_CLN,(0,t.Ky)()),ae=(0,t.PH)(e.AB.SET_OFFER_INVOICE_CLN,(0,t.Ky)()),ge=(0,t.PH)(e.AB.FETCH_OFFERS_CLN),ft=(0,t.PH)(e.AB.SET_OFFERS_CLN,(0,t.Ky)()),Je=(0,t.PH)(e.AB.SAVE_NEW_OFFER_CLN,(0,t.Ky)()),dt=(0,t.PH)(e.AB.ADD_OFFER_CLN,(0,t.Ky)()),Et=(0,t.PH)(e.AB.DISABLE_OFFER_CLN,(0,t.Ky)()),pt=(0,t.PH)(e.AB.UPDATE_OFFER_CLN,(0,t.Ky)()),ot=(0,t.PH)(e.AB.FETCH_OFFER_BOOKMARKS_CLN),wt=(0,t.PH)(e.AB.SET_OFFER_BOOKMARKS_CLN,(0,t.Ky)()),ke=(0,t.PH)(e.AB.ADD_UPDATE_OFFER_BOOKMARK_CLN,(0,t.Ky)()),Ke=(0,t.PH)(e.AB.DELETE_OFFER_BOOKMARK_CLN,(0,t.Ky)()),xt=(0,t.PH)(e.AB.REMOVE_OFFER_BOOKMARK_CLN,(0,t.Ky)())},4947:(Ve,q,p)=>{"use strict";p.d(q,{J:()=>de});var t=p(493),e=p(7579),b=p(9646),I=p(5577),s=p(2722),C=p(4004),h=p(262),P=p(1786),d=p(5566),S=p(7731),w=p(7861),O=p(429),E=p(9828),R=p(1462),z=p(4650),U=p(529),W=p(9653),K=p(5986),ee=p(62),ie=p(5043),ue=p(9116),le=p(7998),ne=p(6895);class de{constructor(me,A,i,a,u,l,y,T,L){this.actions=me,this.httpClient=A,this.store=i,this.sessionService=a,this.commonService=u,this.logger=l,this.router=y,this.wsService=T,this.location=L,this.CHILD_API_URL=S.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)(S.AB.FETCH_INFO_CLN),(0,I.z)(m=>(this.flgInitialized=!1,this.store.dispatch((0,w.lC)({payload:this.CHILD_API_URL})),this.store.dispatch((0,O.Ni)({payload:{action:"FetchInfo",status:S.Bn.INITIATED}})),this.store.dispatch((0,w.ac)({payload:S.m6.GET_NODE_INFO})),this.httpClient.get(this.CHILD_API_URL+S.vv.GETINFO_API).pipe((0,s.R)(this.actions.pipe((0,t.l4)(S.pg.SET_SELECTED_NODE))),(0,C.U)(n=>(this.logger.info(n),n.chains&&n.chains.length&&n.chains[0]&&"object"==typeof n.chains[0]&&n.chains[0].hasOwnProperty("chain")&&n?.chains[0].chain&&n?.chains[0].chain.toLowerCase().indexOf("bitcoin")<0&&n?.chains[0].chain.toLowerCase().indexOf("liquid")<0?(this.store.dispatch((0,O.Ni)({payload:{action:"FetchInfo",status:S.Bn.COMPLETED}})),this.store.dispatch((0,w.uO)({payload:S.m6.GET_NODE_INFO})),this.store.dispatch((0,w.ts)()),setTimeout(()=>{this.store.dispatch((0,w.qR)({payload:{data:{type:S.n_.ERROR,alertTitle:"Shitcoin Found",titleMessage:"Sorry Not Sorry, RTL is Bitcoin Only!"}}}))},500),{type:S.pg.LOGOUT}):(this.initializeRemainingData(n,m.payload.loadPage),this.store.dispatch((0,O.Ni)({payload:{action:"FetchInfo",status:S.Bn.COMPLETED}})),this.store.dispatch((0,w.uO)({payload:S.m6.GET_NODE_INFO})),{type:S.AB.SET_INFO_CLN,payload:n||{}}))),(0,h.K)(n=>{const _=this.commonService.extractErrorCode(n),B="ETIMEDOUT"===_?"Unable to Connect to Core Lightning Server.":this.commonService.extractErrorMessage(n);return this.router.navigate(["/error"],{state:{errorCode:_,errorMessage:B}}),this.handleErrorWithoutAlert("FetchInfo",S.m6.GET_NODE_INFO,"Fetching Node Info Failed.",{status:_,error:B}),(0,b.of)({type:S.pg.VOID})})))))),this.fetchFeesCL=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(S.AB.FETCH_FEES_CLN),(0,I.z)(()=>(this.store.dispatch((0,O.Ni)({payload:{action:"FetchFees",status:S.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+S.vv.FEES_API))),(0,C.U)(m=>(this.logger.info(m),this.store.dispatch((0,O.Ni)({payload:{action:"FetchFees",status:S.Bn.COMPLETED}})),{type:S.AB.SET_FEES_CLN,payload:m||{}})),(0,h.K)(m=>(this.handleErrorWithoutAlert("FetchFees",S.m6.NO_SPINNER,"Fetching Fees Failed.",m),(0,b.of)({type:S.pg.VOID}))))),this.fetchFeeRatesCL=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(S.AB.FETCH_FEE_RATES_CLN),(0,I.z)(m=>(this.store.dispatch((0,O.Ni)({payload:{action:"FetchFeeRates"+m.payload,status:S.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+S.vv.NETWORK_API+"/feeRates/"+m.payload).pipe((0,C.U)(n=>(this.logger.info(n),this.store.dispatch((0,O.Ni)({payload:{action:"FetchFeeRates"+m.payload,status:S.Bn.COMPLETED}})),{type:S.AB.SET_FEE_RATES_CLN,payload:n||{}})),(0,h.K)(n=>(this.handleErrorWithoutAlert("FetchFeeRates"+m.payload,S.m6.NO_SPINNER,"Fetching Fee Rates Failed.",n),(0,b.of)({type:S.pg.VOID})))))))),this.fetchBalanceCL=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(S.AB.FETCH_BALANCE_CLN),(0,I.z)(()=>(this.store.dispatch((0,O.Ni)({payload:{action:"FetchBalance",status:S.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+S.vv.BALANCE_API))),(0,C.U)(m=>(this.logger.info(m),this.store.dispatch((0,O.Ni)({payload:{action:"FetchBalance",status:S.Bn.COMPLETED}})),{type:S.AB.SET_BALANCE_CLN,payload:m||{}})),(0,h.K)(m=>(this.handleErrorWithoutAlert("FetchBalance",S.m6.NO_SPINNER,"Fetching Balances Failed.",m),(0,b.of)({type:S.pg.VOID}))))),this.fetchLocalRemoteBalanceCL=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(S.AB.FETCH_LOCAL_REMOTE_BALANCE_CLN),(0,I.z)(()=>(this.store.dispatch((0,O.Ni)({payload:{action:"FetchLocalRemoteBalance",status:S.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+S.vv.CHANNELS_API+"/localRemoteBalance"))),(0,C.U)(m=>(this.logger.info(m),this.store.dispatch((0,O.Ni)({payload:{action:"FetchLocalRemoteBalance",status:S.Bn.COMPLETED}})),{type:S.AB.SET_LOCAL_REMOTE_BALANCE_CLN,payload:m||{}})),(0,h.K)(m=>(this.handleErrorWithoutAlert("FetchLocalRemoteBalance",S.m6.NO_SPINNER,"Fetching Balances Failed.",m),(0,b.of)({type:S.pg.VOID}))))),this.getNewAddressCL=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(S.AB.GET_NEW_ADDRESS_CLN),(0,I.z)(m=>(this.store.dispatch((0,w.ac)({payload:S.m6.GENERATE_NEW_ADDRESS})),this.httpClient.get(this.CHILD_API_URL+S.vv.ON_CHAIN_API+"?type="+m.payload.addressCode).pipe((0,C.U)(n=>(this.logger.info(n),this.store.dispatch((0,w.uO)({payload:S.m6.GENERATE_NEW_ADDRESS})),{type:S.AB.SET_NEW_ADDRESS_CLN,payload:n&&n.address?n.address:{}})),(0,h.K)(n=>(this.handleErrorWithAlert("GenerateNewAddress",S.m6.GENERATE_NEW_ADDRESS,"Generate New Address Failed",this.CHILD_API_URL+S.vv.ON_CHAIN_API+"?type="+m.payload.addressId,n),(0,b.of)({type:S.pg.VOID})))))))),this.setNewAddressCL=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(S.AB.SET_NEW_ADDRESS_CLN),(0,C.U)(m=>(this.logger.info(m.payload),m.payload))),{dispatch:!1}),this.peersFetchCL=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(S.AB.FETCH_PEERS_CLN),(0,I.z)(()=>(this.store.dispatch((0,O.Ni)({payload:{action:"FetchPeers",status:S.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+S.vv.PEERS_API).pipe((0,C.U)(m=>(this.logger.info(m),this.store.dispatch((0,O.Ni)({payload:{action:"FetchPeers",status:S.Bn.COMPLETED}})),{type:S.AB.SET_PEERS_CLN,payload:m||[]})),(0,h.K)(m=>(this.handleErrorWithoutAlert("FetchPeers",S.m6.NO_SPINNER,"Fetching Peers Failed.",m),(0,b.of)({type:S.pg.VOID})))))))),this.saveNewPeerCL=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(S.AB.SAVE_NEW_PEER_CLN),(0,I.z)(m=>(this.store.dispatch((0,w.ac)({payload:S.m6.CONNECT_PEER})),this.store.dispatch((0,O.Ni)({payload:{action:"SaveNewPeer",status:S.Bn.INITIATED}})),this.httpClient.post(this.CHILD_API_URL+S.vv.PEERS_API,{id:m.payload.id}).pipe((0,C.U)(n=>(this.logger.info(n),this.store.dispatch((0,O.Ni)({payload:{action:"SaveNewPeer",status:S.Bn.COMPLETED}})),this.store.dispatch((0,w.uO)({payload:S.m6.CONNECT_PEER})),this.store.dispatch((0,O.Z8)({payload:n||[]})),{type:S.AB.NEWLY_ADDED_PEER_CLN,payload:{peer:n.find(_=>0===m.payload.id.indexOf(_.id?_.id:""))}})),(0,h.K)(n=>(this.handleErrorWithoutAlert("SaveNewPeer",S.m6.CONNECT_PEER,"Peer Connection Failed.",n),(0,b.of)({type:S.pg.VOID})))))))),this.detachPeerCL=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(S.AB.DETACH_PEER_CLN),(0,I.z)(m=>(this.store.dispatch((0,w.ac)({payload:S.m6.DISCONNECT_PEER})),this.httpClient.delete(this.CHILD_API_URL+S.vv.PEERS_API+"/"+m.payload.id+"?force="+m.payload.force).pipe((0,C.U)(n=>(this.logger.info(n),this.store.dispatch((0,w.uO)({payload:S.m6.DISCONNECT_PEER})),this.store.dispatch((0,w.jW)({payload:"Peer Disconnected Successfully!"})),{type:S.AB.REMOVE_PEER_CLN,payload:{id:m.payload.id}})),(0,h.K)(n=>(this.handleErrorWithAlert("PeerDisconnect",S.m6.DISCONNECT_PEER,"Unable to Detach Peer. Try again later.",this.CHILD_API_URL+S.vv.PEERS_API+"/"+m.payload.id,n),(0,b.of)({type:S.pg.VOID})))))))),this.channelsFetchCL=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(S.AB.FETCH_CHANNELS_CLN),(0,I.z)(()=>(this.store.dispatch((0,O.Ni)({payload:{action:"FetchChannels",status:S.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+S.vv.CHANNELS_API+"/listPeerChannels"))),(0,C.U)(m=>{this.logger.info(m),this.store.dispatch((0,O.Ni)({payload:{action:"FetchChannels",status:S.Bn.COMPLETED}}));const n={activeChannels:[],pendingChannels:[],inactiveChannels:[]};return m.forEach(_=>{_.id&&(_.peer_id=_.id),_.connected&&(_.peer_connected=_.connected),_.msatoshi_to_us&&(_.to_us_msat=_.msatoshi_to_us),_.msatoshi_to_them&&(_.to_them_msat=_.msatoshi_to_them),_.msatoshi_total&&(_.total_msat=_.msatoshi_total),_.their_channel_reserve_satoshis&&(_.their_reserve_msat=+_.their_channel_reserve_satoshis),_.our_channel_reserve_satoshis&&(_.our_reserve_msat=+_.our_channel_reserve_satoshis),_.spendable_msatoshi&&(_.spendable_msat=+_.spendable_msatoshi),"CHANNELD_NORMAL"===_.state?_.peer_connected?n.activeChannels.push(_):n.inactiveChannels.push(_):n.pendingChannels.push(_)}),{type:S.AB.SET_CHANNELS_CLN,payload:n}}),(0,h.K)(m=>(this.handleErrorWithoutAlert("FetchChannels",S.m6.NO_SPINNER,"Fetching Channels Failed.",m),(0,b.of)({type:S.pg.VOID}))))),this.openNewChannelCL=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(S.AB.SAVE_NEW_CHANNEL_CLN),(0,I.z)(m=>{this.store.dispatch((0,w.ac)({payload:S.m6.OPEN_CHANNEL})),this.store.dispatch((0,O.Ni)({payload:{action:"SaveNewChannel",status:S.Bn.INITIATED}}));const n={id:m.payload.peerId,satoshis:m.payload.satoshis,feeRate:m.payload.feeRate,announce:m.payload.announce};return m.payload.minconf&&(n.minconf=m.payload.minconf),m.payload.utxos&&(n.utxos=m.payload.utxos),m.payload.requestAmount&&(n.request_amt=m.payload.requestAmount),m.payload.compactLease&&(n.compact_lease=m.payload.compactLease),this.httpClient.post(this.CHILD_API_URL+S.vv.CHANNELS_API,n).pipe((0,C.U)(_=>(this.logger.info(_),this.store.dispatch((0,O.Ni)({payload:{action:"SaveNewChannel",status:S.Bn.COMPLETED}})),this.store.dispatch((0,w.uO)({payload:S.m6.OPEN_CHANNEL})),this.store.dispatch((0,w.jW)({payload:"Channel Added Successfully!"})),this.store.dispatch((0,O.EG)()),this.store.dispatch((0,O.Ly)()),{type:S.AB.FETCH_CHANNELS_CLN})),(0,h.K)(_=>(this.handleErrorWithoutAlert("SaveNewChannel",S.m6.OPEN_CHANNEL,"Opening Channel Failed.",_),(0,b.of)({type:S.pg.VOID}))))}))),this.updateChannelCL=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(S.AB.UPDATE_CHANNEL_CLN),(0,I.z)(m=>(this.store.dispatch((0,w.ac)({payload:S.m6.UPDATE_CHAN_POLICY})),this.httpClient.post(this.CHILD_API_URL+S.vv.CHANNELS_API+"/setChannelFee",{id:m.payload.channelId,base:m.payload.baseFeeMsat,ppm:m.payload.feeRate}).pipe((0,C.U)(n=>(this.logger.info(n),this.store.dispatch((0,w.uO)({payload:S.m6.UPDATE_CHAN_POLICY})),this.store.dispatch((0,w.jW)("all"===m.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:S.AB.FETCH_CHANNELS_CLN})),(0,h.K)(n=>(this.handleErrorWithAlert("UpdateChannel",S.m6.UPDATE_CHAN_POLICY,"Update Channel Failed",this.CHILD_API_URL+S.vv.CHANNELS_API,n),(0,b.of)({type:S.pg.VOID})))))))),this.closeChannelCL=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(S.AB.CLOSE_CHANNEL_CLN),(0,I.z)(m=>(this.store.dispatch((0,w.ac)({payload:m.payload.force?S.m6.FORCE_CLOSE_CHANNEL:S.m6.CLOSE_CHANNEL})),this.httpClient.delete(this.CHILD_API_URL+S.vv.CHANNELS_API+"/"+m.payload.channelId+(m.payload.force?"?force="+m.payload.force:"")).pipe((0,C.U)(_=>(this.logger.info(_),this.store.dispatch((0,w.uO)({payload:m.payload.force?S.m6.FORCE_CLOSE_CHANNEL:S.m6.CLOSE_CHANNEL})),this.store.dispatch((0,O.UR)()),this.store.dispatch((0,O.g3)()),this.store.dispatch((0,w.jW)({payload:"Channel Closed Successfully!"})),{type:S.AB.REMOVE_CHANNEL_CLN,payload:m.payload})),(0,h.K)(_=>(this.handleErrorWithAlert("CloseChannel",m.payload.force?S.m6.FORCE_CLOSE_CHANNEL:S.m6.CLOSE_CHANNEL,"Unable to Close Channel. Try again later.",this.CHILD_API_URL+S.vv.CHANNELS_API,_),(0,b.of)({type:S.pg.VOID})))))))),this.paymentsFetchCL=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(S.AB.FETCH_PAYMENTS_CLN),(0,I.z)(()=>(this.store.dispatch((0,O.Ni)({payload:{action:"FetchPayments",status:S.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+S.vv.PAYMENTS_API))),(0,C.U)(m=>(this.logger.info(m),this.store.dispatch((0,O.Ni)({payload:{action:"FetchPayments",status:S.Bn.COMPLETED}})),{type:S.AB.SET_PAYMENTS_CLN,payload:m||[]})),(0,h.K)(m=>(this.handleErrorWithoutAlert("FetchPayments",S.m6.NO_SPINNER,"Fetching Payments Failed.",m),(0,b.of)({type:S.pg.VOID}))))),this.fetchOfferInvoiceCL=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(S.AB.FETCH_OFFER_INVOICE_CLN),(0,I.z)(m=>(this.store.dispatch((0,w.ac)({payload:S.m6.FETCH_INVOICE})),this.store.dispatch((0,O.Ni)({payload:{action:"FetchOfferInvoice",status:S.Bn.INITIATED}})),this.httpClient.post(this.CHILD_API_URL+S.vv.OFFERS_API+"/fetchOfferInvoice",m.payload).pipe((0,C.U)(n=>{this.logger.info(n),setTimeout(()=>{this.store.dispatch((0,O.Ni)({payload:{action:"FetchOfferInvoice",status:S.Bn.COMPLETED}})),this.store.dispatch((0,w.uO)({payload:S.m6.FETCH_INVOICE})),this.store.dispatch((0,O.VD)({payload:n||{}}))},500)}),(0,h.K)(n=>(this.handleErrorWithoutAlert("FetchOfferInvoice",S.m6.FETCH_INVOICE,"Offer Invoice Fetch Failed",n),(0,b.of)({type:S.pg.VOID}))))))),{dispatch:!1}),this.setOfferInvoiceCL=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(S.AB.SET_OFFER_INVOICE_CLN),(0,C.U)(m=>(this.logger.info(m.payload),m.payload))),{dispatch:!1}),this.sendPaymentCL=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(S.AB.SEND_PAYMENT_CLN),(0,I.z)(m=>(this.store.dispatch((0,w.ac)({payload:m.payload.uiMessage})),this.store.dispatch((0,O.Ni)({payload:{action:"SendPayment",status:S.Bn.INITIATED}})),this.httpClient.post(this.CHILD_API_URL+S.vv.PAYMENTS_API,m.payload).pipe((0,C.U)(n=>{this.logger.info(n),this.store.dispatch((0,O.Ni)({payload:{action:"SendPayment",status:S.Bn.COMPLETED}}));let _="Payment Sent Successfully!";n.saveToDBError&&(_="Payment Sent Successfully but Offer Saving to Database Failed."),n.saveToDBResponse&&"NA"!==n.saveToDBResponse&&(this.store.dispatch((0,O.e9)({payload:n.saveToDBResponse})),_="Payment Sent Successfully and Offer Saved to Database."),setTimeout(()=>{this.store.dispatch((0,O.UR)()),this.store.dispatch((0,O.EG)()),this.store.dispatch((0,O.cQ)()),this.store.dispatch((0,w.uO)({payload:m.payload.uiMessage})),this.store.dispatch((0,w.jW)({payload:_})),this.store.dispatch((0,O.TM)({payload:n.paymentResponse}))},1e3)}),(0,h.K)(n=>(this.logger.error("Error: "+JSON.stringify(n)),m.payload.fromDialog?this.handleErrorWithoutAlert("SendPayment",m.payload.uiMessage,"Send Payment Failed.",n):this.handleErrorWithAlert("SendPayment",m.payload.uiMessage,"Send Payment Failed",this.CHILD_API_URL+S.vv.PAYMENTS_API,n),(0,b.of)({type:S.pg.VOID}))))))),{dispatch:!1}),this.queryRoutesFetchCL=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(S.AB.GET_QUERY_ROUTES_CLN),(0,I.z)(m=>(this.store.dispatch((0,O.Ni)({payload:{action:"GetQueryRoutes",status:S.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+S.vv.NETWORK_API+"/getRoute/"+m.payload.destPubkey+"/"+m.payload.amount).pipe((0,C.U)(n=>(this.logger.info(n),this.store.dispatch((0,O.Ni)({payload:{action:"GetQueryRoutes",status:S.Bn.COMPLETED}})),{type:S.AB.SET_QUERY_ROUTES_CLN,payload:n})),(0,h.K)(n=>(this.store.dispatch((0,O.kL)({payload:{routes:[]}})),this.handleErrorWithAlert("GetQueryRoutes",S.m6.NO_SPINNER,"Get Query Routes Failed",this.CHILD_API_URL+S.vv.NETWORK_API+"/getRoute/"+m.payload.destPubkey+"/"+m.payload.amount,n),(0,b.of)({type:S.pg.VOID})))))))),this.setQueryRoutesCL=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(S.AB.SET_QUERY_ROUTES_CLN),(0,C.U)(m=>m.payload)),{dispatch:!1}),this.peerLookupCL=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(S.AB.PEER_LOOKUP_CLN),(0,I.z)(m=>(this.store.dispatch((0,w.ac)({payload:S.m6.SEARCHING_NODE})),this.store.dispatch((0,O.Ni)({payload:{action:"Lookup",status:S.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+S.vv.NETWORK_API+"/listNode/"+m.payload).pipe((0,C.U)(n=>(this.logger.info(n),this.store.dispatch((0,O.Ni)({payload:{action:"Lookup",status:S.Bn.COMPLETED}})),this.store.dispatch((0,w.uO)({payload:S.m6.SEARCHING_NODE})),{type:S.AB.SET_LOOKUP_CLN,payload:n})),(0,h.K)(n=>(this.handleErrorWithAlert("Lookup",S.m6.SEARCHING_NODE,"Peer Lookup Failed",this.CHILD_API_URL+S.vv.NETWORK_API+"/listNode/"+m.payload,n),(0,b.of)({type:S.pg.VOID})))))))),this.channelLookupCL=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(S.AB.CHANNEL_LOOKUP_CLN),(0,I.z)(m=>(this.store.dispatch((0,w.ac)({payload:m.payload.uiMessage})),this.store.dispatch((0,O.Ni)({payload:{action:"Lookup",status:S.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+S.vv.NETWORK_API+"/listChannel/"+m.payload.shortChannelID).pipe((0,C.U)(n=>(this.logger.info(n),this.store.dispatch((0,O.Ni)({payload:{action:"Lookup",status:S.Bn.COMPLETED}})),this.store.dispatch((0,w.uO)({payload:m.payload.uiMessage})),{type:S.AB.SET_LOOKUP_CLN,payload:n})),(0,h.K)(n=>(m.payload.showError?this.handleErrorWithAlert("Lookup",m.payload.uiMessage,"Channel Lookup Failed",this.CHILD_API_URL+S.vv.NETWORK_API+"/listChannel/"+m.payload.shortChannelID,n):this.store.dispatch((0,w.uO)({payload:m.payload.uiMessage})),this.store.dispatch((0,O.v_)({payload:[]})),(0,b.of)({type:S.pg.VOID})))))))),this.invoiceLookupCL=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(S.AB.INVOICE_LOOKUP_CLN),(0,I.z)(m=>(this.store.dispatch((0,w.ac)({payload:S.m6.SEARCHING_INVOICE})),this.store.dispatch((0,O.Ni)({payload:{action:"Lookup",status:S.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+S.vv.INVOICES_API+"?label="+m.payload).pipe((0,C.U)(n=>(this.logger.info(n),this.store.dispatch((0,O.Ni)({payload:{action:"Lookup",status:S.Bn.COMPLETED}})),this.store.dispatch((0,w.uO)({payload:S.m6.SEARCHING_INVOICE})),n.invoices&&n.invoices.length&&n.invoices.length>0&&this.store.dispatch((0,O.aL)({payload:n.invoices[0]})),{type:S.AB.SET_LOOKUP_CLN,payload:n.invoices&&n.invoices.length&&n.invoices.length>0?n.invoices[0]:n})),(0,h.K)(n=>(this.handleErrorWithoutAlert("Lookup",S.m6.SEARCHING_INVOICE,"Invoice Lookup Failed",n),this.store.dispatch((0,w.jW)({payload:{message:"Invoice Refresh Failed.",type:"ERROR"}})),(0,b.of)({type:S.pg.VOID})))))))),this.setLookupCL=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(S.AB.SET_LOOKUP_CLN),(0,C.U)(m=>(this.logger.info(m.payload),m.payload))),{dispatch:!1}),this.fetchForwardingHistoryCL=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(S.AB.GET_FORWARDING_HISTORY_CLN),(0,I.z)(m=>{const n=m.payload.status.charAt(0).toUpperCase();return this.store.dispatch((0,O.Ni)({payload:{action:"FetchForwardingHistory"+n,status:S.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+S.vv.CHANNELS_API+"/listForwards?status="+m.payload.status).pipe((0,C.U)(_=>(this.logger.info(_),this.store.dispatch((0,O.Ni)({payload:{action:"FetchForwardingHistory"+n,status:S.Bn.COMPLETED}})),m.payload.status===S.OO.FAILED?this.store.dispatch((0,O.QJ)({payload:{status:S.OO.FAILED,totalForwards:_.length,listForwards:_}})):m.payload.status===S.OO.LOCAL_FAILED?this.store.dispatch((0,O.QJ)({payload:{status:S.OO.LOCAL_FAILED,totalForwards:_.length,listForwards:_}})):m.payload.status===S.OO.SETTLED&&this.store.dispatch((0,O.QJ)({payload:{status:S.OO.SETTLED,totalForwards:_.length,listForwards:_}})),{type:S.pg.VOID})),(0,h.K)(_=>(this.handleErrorWithAlert("FetchForwardingHistory"+n,S.m6.NO_SPINNER,"Get "+m.payload.status+" Forwarding History Failed",this.CHILD_API_URL+S.vv.CHANNELS_API+"/listForwards?status="+m.payload.status,_),(0,b.of)({type:S.pg.VOID}))))}))),this.deleteExpiredInvoiceCL=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(S.AB.DELETE_EXPIRED_INVOICE_CLN),(0,I.z)(m=>(this.store.dispatch((0,w.ac)({payload:S.m6.DELETE_INVOICE})),this.httpClient.delete(this.CHILD_API_URL+S.vv.INVOICES_API+(m.payload?"?maxexpiry="+m.payload:"")).pipe((0,C.U)(_=>(this.logger.info(_),this.store.dispatch((0,w.uO)({payload:S.m6.DELETE_INVOICE})),this.store.dispatch((0,w.jW)({payload:"Invoices Deleted Successfully!"})),{type:S.AB.FETCH_INVOICES_CLN,payload:{num_max_invoices:1e6,reversed:!0}})),(0,h.K)(_=>(this.handleErrorWithAlert("DeleteInvoices",S.m6.DELETE_INVOICE,"Delete Invoice Failed",this.CHILD_API_URL+S.vv.INVOICES_API,_),(0,b.of)({type:S.pg.VOID})))))))),this.saveNewInvoiceCL=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(S.AB.SAVE_NEW_INVOICE_CLN),(0,I.z)(m=>(this.store.dispatch((0,w.ac)({payload:S.m6.ADD_INVOICE})),this.store.dispatch((0,O.Ni)({payload:{action:"SaveNewInvoice",status:S.Bn.INITIATED}})),this.httpClient.post(this.CHILD_API_URL+S.vv.INVOICES_API,{label:m.payload.label,amount:m.payload.amount,description:m.payload.description,expiry:m.payload.expiry,private:m.payload.private}).pipe((0,C.U)(n=>(this.logger.info(n),this.store.dispatch((0,O.Ni)({payload:{action:"SaveNewInvoice",status:S.Bn.COMPLETED}})),this.store.dispatch((0,w.uO)({payload:S.m6.ADD_INVOICE})),n.msatoshi=m.payload.amount,n.amount_msat=m.payload.amount,n.label=m.payload.label,n.expires_at=Math.round((new Date).getTime()/1e3+m.payload.expiry),n.description=m.payload.description,n.status="unpaid",setTimeout(()=>{this.store.dispatch((0,w.qR)({payload:{data:{invoice:n,newlyAdded:!0,component:d.y}}}))},200),{type:S.AB.ADD_INVOICE_CLN,payload:n})),(0,h.K)(n=>(this.handleErrorWithoutAlert("SaveNewInvoice",S.m6.ADD_INVOICE,"Add Invoice Failed.",n),(0,b.of)({type:S.pg.VOID})))))))),this.saveNewOfferCL=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(S.AB.SAVE_NEW_OFFER_CLN),(0,I.z)(m=>(this.store.dispatch((0,w.ac)({payload:S.m6.CREATE_OFFER})),this.store.dispatch((0,O.Ni)({payload:{action:"SaveNewOffer",status:S.Bn.INITIATED}})),this.httpClient.post(this.CHILD_API_URL+S.vv.OFFERS_API,{amount:m.payload.amount,description:m.payload.description,issuer:m.payload.issuer}).pipe((0,C.U)(n=>(this.logger.info(n),this.store.dispatch((0,O.Ni)({payload:{action:"SaveNewOffer",status:S.Bn.COMPLETED}})),this.store.dispatch((0,w.uO)({payload:S.m6.CREATE_OFFER})),setTimeout(()=>{this.store.dispatch((0,w.qR)({payload:{data:{offer:n,newlyAdded:!0,component:R.k}}}))},100),{type:S.AB.ADD_OFFER_CLN,payload:n})),(0,h.K)(n=>(this.handleErrorWithoutAlert("SaveNewOffer",S.m6.CREATE_OFFER,"Create Offer Failed.",n),(0,b.of)({type:S.pg.VOID})))))))),this.invoicesFetchCL=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(S.AB.FETCH_INVOICES_CLN),(0,I.z)(m=>(this.store.dispatch((0,O.Ni)({payload:{action:"FetchInvoices",status:S.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+S.vv.INVOICES_API+"?num_max_invoices="+(m.payload.num_max_invoices?m.payload.num_max_invoices:1e6)+"&index_offset="+(m.payload.index_offset?m.payload.index_offset:0)+"&reversed="+(!m.payload.reversed||m.payload.reversed)).pipe((0,C.U)(V=>(this.logger.info(V),this.store.dispatch((0,O.Ni)({payload:{action:"FetchInvoices",status:S.Bn.COMPLETED}})),{type:S.AB.SET_INVOICES_CLN,payload:V})),(0,h.K)(V=>(this.handleErrorWithoutAlert("FetchInvoices",S.m6.NO_SPINNER,"Fetching Invoices Failed.",V),(0,b.of)({type:S.pg.VOID})))))))),this.offersFetchCL=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(S.AB.FETCH_OFFERS_CLN),(0,I.z)(m=>(this.store.dispatch((0,O.Ni)({payload:{action:"FetchOffers",status:S.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+S.vv.OFFERS_API).pipe((0,C.U)(n=>(this.logger.info(n),this.store.dispatch((0,O.Ni)({payload:{action:"FetchOffers",status:S.Bn.COMPLETED}})),{type:S.AB.SET_OFFERS_CLN,payload:n.offers?n.offers:[]})),(0,h.K)(n=>(this.handleErrorWithoutAlert("FetchOffers",S.m6.NO_SPINNER,"Fetching Offers Failed.",n),(0,b.of)({type:S.pg.VOID})))))))),this.offersDisableCL=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(S.AB.DISABLE_OFFER_CLN),(0,I.z)(m=>(this.store.dispatch((0,w.ac)({payload:S.m6.DISABLE_OFFER})),this.store.dispatch((0,O.Ni)({payload:{action:"DisableOffer",status:S.Bn.INITIATED}})),this.httpClient.delete(this.CHILD_API_URL+S.vv.OFFERS_API+"/"+m.payload.offer_id).pipe((0,C.U)(n=>(this.logger.info(n),this.store.dispatch((0,O.Ni)({payload:{action:"DisableOffer",status:S.Bn.COMPLETED}})),this.store.dispatch((0,w.uO)({payload:S.m6.DISABLE_OFFER})),this.store.dispatch((0,w.jW)({payload:"Offer Disabled Successfully!"})),{type:S.AB.UPDATE_OFFER_CLN,payload:{offer:n}})),(0,h.K)(n=>(this.handleErrorWithoutAlert("DisableOffer",S.m6.DISABLE_OFFER,"Disabling Offer Failed.",n),(0,b.of)({type:S.pg.VOID})))))))),this.offerBookmarksFetchCL=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(S.AB.FETCH_OFFER_BOOKMARKS_CLN),(0,I.z)(m=>(this.store.dispatch((0,O.Ni)({payload:{action:"FetchOfferBookmarks",status:S.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+S.vv.OFFERS_API+"/offerbookmarks").pipe((0,C.U)(n=>(this.logger.info(n),this.store.dispatch((0,O.Ni)({payload:{action:"FetchOfferBookmarks",status:S.Bn.COMPLETED}})),{type:S.AB.SET_OFFER_BOOKMARKS_CLN,payload:n||[]})),(0,h.K)(n=>(this.handleErrorWithoutAlert("FetchOfferBookmarks",S.m6.NO_SPINNER,"Fetching Offer Bookmarks Failed.",n),(0,b.of)({type:S.pg.VOID})))))))),this.peidOffersDeleteCL=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(S.AB.DELETE_OFFER_BOOKMARK_CLN),(0,I.z)(m=>(this.store.dispatch((0,w.ac)({payload:S.m6.DELETE_OFFER_BOOKMARK})),this.store.dispatch((0,O.Ni)({payload:{action:"DeleteOfferBookmark",status:S.Bn.INITIATED}})),this.httpClient.delete(this.CHILD_API_URL+S.vv.OFFERS_API+"/offerbookmark/"+m.payload.bolt12).pipe((0,C.U)(n=>(this.logger.info(n),this.store.dispatch((0,O.Ni)({payload:{action:"DeleteOfferBookmark",status:S.Bn.COMPLETED}})),this.store.dispatch((0,w.uO)({payload:S.m6.DELETE_OFFER_BOOKMARK})),this.store.dispatch((0,w.jW)({payload:"Offer Bookmark Deleted Successfully!"})),{type:S.AB.REMOVE_OFFER_BOOKMARK_CLN,payload:{bolt12:m.payload.bolt12}})),(0,h.K)(n=>(this.handleErrorWithAlert("DeleteOfferBookmark",S.m6.DELETE_OFFER_BOOKMARK,"Deleting Offer Bookmark Failed.",this.CHILD_API_URL+S.vv.OFFERS_API+"/offerbookmark/"+m.payload.bolt12,n),(0,b.of)({type:S.pg.VOID})))))))),this.SetChannelTransactionCL=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(S.AB.SET_CHANNEL_TRANSACTION_CLN),(0,I.z)(m=>(this.store.dispatch((0,w.ac)({payload:S.m6.SEND_FUNDS})),this.store.dispatch((0,O.Ni)({payload:{action:"SetChannelTransaction",status:S.Bn.INITIATED}})),this.httpClient.post(this.CHILD_API_URL+S.vv.ON_CHAIN_API,m.payload).pipe((0,C.U)(n=>(this.logger.info(n),this.store.dispatch((0,O.Ni)({payload:{action:"SetChannelTransaction",status:S.Bn.COMPLETED}})),this.store.dispatch((0,w.uO)({payload:S.m6.SEND_FUNDS})),this.store.dispatch((0,O.EG)()),this.store.dispatch((0,O.Ly)()),{type:S.AB.SET_CHANNEL_TRANSACTION_RES_CLN,payload:n})),(0,h.K)(n=>(this.handleErrorWithoutAlert("SetChannelTransaction",S.m6.SEND_FUNDS,"Sending Fund Failed.",n),(0,b.of)({type:S.pg.VOID})))))))),this.utxosFetch=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(S.AB.FETCH_UTXOS_CLN),(0,I.z)(()=>(this.store.dispatch((0,O.Ni)({payload:{action:"FetchUTXOs",status:S.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+S.vv.ON_CHAIN_API+"/utxos"))),(0,C.U)(m=>(this.logger.info(m),this.store.dispatch((0,O.Ni)({payload:{action:"FetchUTXOs",status:S.Bn.COMPLETED}})),m.outputs.forEach(n=>{n.value&&(n.amount_msat=n.value)}),{type:S.AB.SET_UTXOS_CLN,payload:m.outputs||[]})),(0,h.K)(m=>(this.handleErrorWithoutAlert("FetchUTXOs",S.m6.NO_SPINNER,"Fetching UTXOs Failed.",m),(0,b.of)({type:S.pg.VOID}))))),this.pageSettingsFetchCL=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(S.AB.FETCH_PAGE_SETTINGS_CLN),(0,I.z)(()=>(this.store.dispatch((0,O.Ni)({payload:{action:"FetchPageSettings",status:S.Bn.INITIATED}})),this.httpClient.get(S.vv.PAGE_SETTINGS_API).pipe((0,C.U)(m=>(this.logger.info(m),this.store.dispatch((0,O.Ni)({payload:{action:"FetchPageSettings",status:S.Bn.COMPLETED}})),{type:S.AB.SET_PAGE_SETTINGS_CLN,payload:m||[]})),(0,h.K)(m=>(this.handleErrorWithoutAlert("FetchPageSettings",S.m6.NO_SPINNER,"Fetching Page Settings Failed.",m),(0,b.of)({type:S.pg.VOID})))))))),this.savePageSettingsCL=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(S.AB.SAVE_PAGE_SETTINGS_CLN),(0,I.z)(m=>(this.store.dispatch((0,w.ac)({payload:S.m6.UPDATE_PAGE_SETTINGS})),this.store.dispatch((0,O.Ni)({payload:{action:"SavePageSettings",status:S.Bn.INITIATED}})),this.httpClient.post(S.vv.PAGE_SETTINGS_API,m.payload).pipe((0,C.U)(n=>(this.logger.info(n),this.store.dispatch((0,O.Ni)({payload:{action:"SavePageSettings",status:S.Bn.COMPLETED}})),this.store.dispatch((0,w.uO)({payload:S.m6.UPDATE_PAGE_SETTINGS})),this.store.dispatch((0,w.jW)({payload:"Page Layout Updated Successfully!"})),{type:S.AB.SET_PAGE_SETTINGS_CLN,payload:n||[]})),(0,h.K)(n=>(this.handleErrorWithAlert("SavePageSettings",S.m6.UPDATE_PAGE_SETTINGS,"Page Settings Update Failed.",S.vv.PAGE_SETTINGS_API,n),(0,b.of)({type:S.pg.VOID})))))))),this.store.select(E.yA).pipe((0,s.R)(this.unSubs[0])).subscribe(m=>{m.FetchInfo.status!==S.Bn.COMPLETED&&m.FetchInfo.status!==S.Bn.ERROR||m.FetchFees.status!==S.Bn.COMPLETED&&m.FetchFees.status!==S.Bn.ERROR||m.FetchChannels.status!==S.Bn.COMPLETED&&m.FetchChannels.status!==S.Bn.ERROR||m.FetchBalance.status!==S.Bn.COMPLETED&&m.FetchBalance.status!==S.Bn.ERROR||m.FetchLocalRemoteBalance.status!==S.Bn.COMPLETED&&m.FetchLocalRemoteBalance.status!==S.Bn.ERROR||this.flgInitialized||(this.store.dispatch((0,w.uO)({payload:S.m6.INITALIZE_NODE_DATA})),this.flgInitialized=!0)}),this.wsService.clWSMessages.pipe((0,s.R)(this.unSubs[1])).subscribe(m=>{if(this.logger.info("Received new message from the service: "+JSON.stringify(m)),m)switch(m.event){case S.nM.INVOICE:this.logger.info(m),m&&m.data&&m.data.label&&this.store.dispatch((0,O.aL)({payload:m.data}));break;case S.nM.SEND_PAYMENT:case S.nM.BLOCK_HEIGHT:this.logger.info(m);break;default:this.logger.info("Received Event from WS: "+JSON.stringify(m))}})}initializeRemainingData(me,A){this.sessionService.setItem("clUnlocked","true");const i={identity_pubkey:me.id,alias:me.alias,testnet:"testnet"===me.network.toLowerCase(),chains:me.chains,uris:me.uris,version:me.version,api_version:me.api_version,numberOfPendingChannels:me.num_pending_channels};this.store.dispatch((0,w.ac)({payload:S.m6.INITALIZE_NODE_DATA})),this.store.dispatch((0,w._V)({payload:i}));let a=this.location.path();a.includes("/lnd/")?a=a?.replace("/lnd/","/cln/"):a.includes("/ecl/")&&(a=a?.replace("/ecl/","/cln/")),(a.includes("/login")||a.includes("/error")||""===a||"HOME"===A||a.includes("?access-key="))&&(a="/cln/home"),this.router.navigate([a]),this.store.dispatch((0,O.wD)()),this.store.dispatch((0,O.WM)({payload:{num_max_invoices:1e6,index_offset:0,reversed:!0}})),this.store.dispatch((0,O.SN)()),this.store.dispatch((0,O.UR)()),this.store.dispatch((0,O.EG)()),this.store.dispatch((0,O.g3)()),this.store.dispatch((0,O.HJ)({payload:"perkw"})),this.store.dispatch((0,O.HJ)({payload:"perkb"})),this.store.dispatch((0,O.$W)()),this.store.dispatch((0,O.Ly)()),this.store.dispatch((0,O.cQ)())}handleErrorWithoutAlert(me,A,i,a){if(this.logger.error("ERROR IN: "+me+"\n"+JSON.stringify(a)),401===a.status)this.logger.info("Redirecting to Login"),this.store.dispatch((0,w.ts)()),this.store.dispatch((0,w.kS)()),this.store.dispatch((0,w.jW)({payload:"Authentication Failed. Redirecting to Login."}));else{this.store.dispatch((0,w.uO)({payload:A}));const u=this.commonService.extractErrorMessage(a,i);this.store.dispatch((0,O.Ni)({payload:{action:me,status:S.Bn.ERROR,statusCode:a.status.toString(),message:u}}))}}handleErrorWithAlert(me,A,i,a,u){if(this.logger.error(u),401===u.status)this.logger.info("Redirecting to Login"),this.store.dispatch((0,w.ts)()),this.store.dispatch((0,w.kS)()),this.store.dispatch((0,w.jW)({payload:"Authentication Failed. Redirecting to Login."}));else{this.store.dispatch((0,w.uO)({payload:A}));const l=this.commonService.extractErrorMessage(u);this.store.dispatch((0,w.qR)({payload:{data:{type:"ERROR",alertTitle:i,message:{code:u.status,message:l,URL:a},component:P.H}}})),this.store.dispatch((0,O.Ni)({payload:{action:me,status:S.Bn.ERROR,statusCode:u.status.toString(),message:l,URL:a}}))}}ngOnDestroy(){this.unSubs.forEach(me=>{me.next(null),me.complete()})}}de.\u0275fac=function(me){return new(me||de)(z.LFG(t.eX),z.LFG(U.eN),z.LFG(W.yh),z.LFG(K.m),z.LFG(ee.v),z.LFG(ie.mQ),z.LFG(ue.F0),z.LFG(le.d),z.LFG(ne.Ye))},de.\u0275prov=z.Yz7({token:de,factory:de.\u0275fac})},9828:(Ve,q,p)=>{"use strict";p.d(q,{AS:()=>I,Ao:()=>ne,Bo:()=>K,EQ:()=>me,Hz:()=>de,JG:()=>S,OL:()=>ue,PP:()=>P,Rn:()=>U,T4:()=>R,Wi:()=>d,Wj:()=>W,Y_:()=>$,ZW:()=>z,ey:()=>s,gc:()=>E,hx:()=>O,jK:()=>le,lK:()=>ie,lw:()=>b,xQ:()=>ee,yA:()=>h,zm:()=>w});var t=p(9653);const e=(0,t.ZF)("cln"),b=(0,t.P1)(e,i=>i.nodeSettings),I=(0,t.P1)(e,i=>({pageSettings:i.pageSettings,apiCallStatus:i.apisCallStatus.FetchPageSettings})),s=(0,t.P1)(e,i=>i.information),h=((0,t.P1)(e,i=>i.apisCallStatus.FetchInfo),(0,t.P1)(e,i=>i.apisCallStatus)),P=(0,t.P1)(e,i=>({payments:i.payments,apiCallStatus:i.apisCallStatus.FetchPayments})),d=(0,t.P1)(e,i=>({peers:i.peers,apiCallStatus:i.apisCallStatus.FetchPeers})),S=(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})),O=(0,t.P1)(e,i=>({feeRatesPerKW:i.feeRatesPerKW,apiCallStatus:i.apisCallStatus.FetchFeeRatesperkw})),E=(0,t.P1)(e,i=>({listInvoices:i.invoices,apiCallStatus:i.apisCallStatus.FetchInvoices})),R=(0,t.P1)(e,i=>({utxos:i.utxos,apiCallStatus:i.apisCallStatus.FetchUTXOs})),z=(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})),K=(0,t.P1)(e,i=>({forwardingHistory:i.forwardingHistory,apiCallStatus:i.apisCallStatus.FetchForwardingHistoryS})),ee=(0,t.P1)(e,i=>({failedForwardingHistory:i.failedForwardingHistory,apiCallStatus:i.apisCallStatus.FetchForwardingHistoryF})),ie=(0,t.P1)(e,i=>({localFailedForwardingHistory:i.localFailedForwardingHistory,apiCallStatus:i.apisCallStatus.FetchForwardingHistoryL})),ue=(0,t.P1)(e,i=>({information:i.information,nodeSettings:i.nodeSettings,balance:i.balance})),le=(0,t.P1)(e,i=>({information:i.information,balance:i.balance,numPeers:i.peers.length})),ne=(0,t.P1)(e,i=>({information:i.information,balance:i.balance})),de=(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})),me=(0,t.P1)(e,i=>({offersBookmarks:i.offersBookmarks,apiCallStatus:i.apisCallStatus.FetchOfferBookmarks}))},5566:(Ve,q,p)=>{"use strict";p.d(q,{y:()=>Ae});var t=p(5412),e=p(2687),b=p(7579),I=p(2722),s=p(7731),C=p(9828),h=p(4650),P=p(5043),d=p(62),S=p(7009),w=p(9653),O=p(6895),E=p(2216),R=p(1576),z=p(5829),U=p(4859),W=p(3546),K=p(4850),ee=p(1572),ie=p(266),ue=p(658),le=p(5199),ne=p(3390);function de(he,Ce){if(1&he&&h._UZ(0,"qr-code",33),2&he){const te=h.oxw();h.Q6J("value",(null==te.invoice?null:te.invoice.bolt11)||(null==te.invoice?null:te.invoice.bolt12))("size",te.qrWidth)("errorCorrectionLevel","L")}}function $(he,Ce){1&he&&(h.TgZ(0,"span",34),h._uU(1,"N/A"),h.qZA())}const me=function(he){return{"mr-0":he}};function A(he,Ce){if(1&he&&h._UZ(0,"span",35),2&he){const te=h.oxw();h.Q6J("ngClass",h.VKq(1,me,te.screenSize===te.screenSizeEnum.XS))}}function i(he,Ce){if(1&he&&h._UZ(0,"span",36),2&he){const te=h.oxw();h.Q6J("ngClass",h.VKq(1,me,te.screenSize===te.screenSizeEnum.XS))}}function a(he,Ce){if(1&he&&h._UZ(0,"span",37),2&he){const te=h.oxw();h.Q6J("ngClass",h.VKq(1,me,te.screenSize===te.screenSizeEnum.XS))}}function u(he,Ce){if(1&he&&h._UZ(0,"qr-code",33),2&he){const te=h.oxw();h.Q6J("value",(null==te.invoice?null:te.invoice.bolt11)||(null==te.invoice?null:te.invoice.bolt12))("size",te.qrWidth)("errorCorrectionLevel","L")}}function l(he,Ce){1&he&&(h.TgZ(0,"span",38),h._uU(1,"QR Code Not Applicable"),h.qZA())}function y(he,Ce){1&he&&h._UZ(0,"mat-divider",39)}function T(he,Ce){if(1&he&&(h.TgZ(0,"div",19)(1,"div",40),h._UZ(2,"fa-icon",41),h.TgZ(3,"span"),h._uU(4),h.qZA()()()),2&he){const te=h.oxw();h.xp6(2),h.Q6J("icon",te.faExclamationTriangle),h.xp6(2),h.Oqu(null==te.invoice?null:te.invoice.warning_capacity)}}function L(he,Ce){1&he&&(h.ynx(0),h._uU(1," (zero amount) "),h.BQk())}function m(he,Ce){1&he&&h._UZ(0,"span",47)}const n=function(){return[]};function _(he,Ce){if(1&he&&(h.TgZ(0,"div",43)(1,"div",44)(2,"span",45),h._uU(3),h.ALo(4,"number"),h.qZA(),h.YNc(5,m,1,0,"span",46),h.qZA()()),2&he){const te=h.oxw(2);h.xp6(3),h.hij("",h.lcZ(4,2,(null==te.invoice?null:te.invoice.amount_received_msat)/1e3)," Sats"),h.xp6(2),h.Q6J("ngForOf",h.DdM(4,n).constructor(35))}}function B(he,Ce){if(1&he&&(h.TgZ(0,"div"),h._uU(1),h.ALo(2,"number"),h.qZA()),2&he){const te=h.oxw(2);h.xp6(1),h.hij("",h.lcZ(2,1,(null==te.invoice?null:te.invoice.amount_received_msat)/1e3)," Sats")}}function V(he,Ce){if(1&he&&(h.ynx(0),h.YNc(1,_,6,5,"div",42),h.YNc(2,B,3,3,"div",23),h.BQk()),2&he){const te=h.oxw();h.xp6(1),h.Q6J("ngIf",te.flgInvoicePaid),h.xp6(1),h.Q6J("ngIf",!te.flgInvoicePaid)}}function X(he,Ce){1&he&&(h.TgZ(0,"span"),h._uU(1,"-"),h.qZA())}function Le(he,Ce){1&he&&h._UZ(0,"mat-spinner",49),2&he&&h.Q6J("diameter",20)}function $e(he,Ce){if(1&he&&(h.ynx(0),h.YNc(1,X,2,0,"span",23),h.YNc(2,Le,1,1,"mat-spinner",48),h.BQk()),2&he){const te=h.oxw();h.xp6(1),h.Q6J("ngIf","unpaid"!==(null==te.invoice?null:te.invoice.status)||!te.flgVersionCompatible),h.xp6(1),h.Q6J("ngIf","unpaid"===(null==te.invoice?null:te.invoice.status)&&te.flgVersionCompatible)}}function We(he,Ce){if(1&he&&(h.TgZ(0,"div"),h._UZ(1,"mat-divider",25),h.TgZ(2,"div",19)(3,"div",26)(4,"h4",21),h._uU(5,"Payment Hash"),h.qZA(),h.TgZ(6,"span",24),h._uU(7),h.qZA()()(),h._UZ(8,"mat-divider",25),h.TgZ(9,"div",19)(10,"div",26)(11,"h4",21),h._uU(12,"Label"),h.qZA(),h.TgZ(13,"span",24),h._uU(14),h.qZA()()(),h._UZ(15,"mat-divider",25),h.qZA()),2&he){const te=h.oxw();h.xp6(7),h.Oqu(null==te.invoice?null:te.invoice.payment_hash),h.xp6(7),h.Oqu(null==te.invoice?null:te.invoice.label)}}function Fe(he,Ce){1&he&&(h.TgZ(0,"p"),h._uU(1,"Show Advanced"),h.qZA())}function De(he,Ce){1&he&&(h.TgZ(0,"p"),h._uU(1,"Hide Advanced"),h.qZA())}function ye(he,Ce){if(1&he){const te=h.EpF();h.TgZ(0,"button",50),h.NdJ("copied",function(Be){h.CHM(te);const ae=h.oxw();return h.KtG(ae.onCopyPayment(Be))}),h._uU(1,"Copy Invoice"),h.qZA()}if(2&he){const te=h.oxw();h.Q6J("payload",(null==te.invoice?null:te.invoice.bolt11)||(null==te.invoice?null:te.invoice.bolt12))}}function ce(he,Ce){if(1&he){const te=h.EpF();h.TgZ(0,"button",51),h.NdJ("click",function(){h.CHM(te);const Be=h.oxw();return h.KtG(Be.onClose())}),h._uU(1,"OK"),h.qZA()}}const ve=function(he){return{"display-none":he}},oe=function(he){return{"xs-scroll-y":he}},je=function(he,Ce){return{"mt-2":he,"mt-1":Ce}};class Ae{constructor(Ce,te,Ue,Be,ae,ge){this.dialogRef=Ce,this.data=te,this.logger=Ue,this.commonService=Be,this.snackBar=ae,this.store=ge,this.faReceipt=e.dLy,this.faExclamationTriangle=e.eHv,this.showAdvanced=!1,this.newlyAdded=!1,this.qrWidth=240,this.screenSize="",this.screenSizeEnum=s.cu,this.flgInvoicePaid=!1,this.flgVersionCompatible=!0,this.unSubs=[new b.x,new b.x,new b.x,new b.x,new b.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(C.ey).pipe((0,I.R)(this.unSubs[0])).subscribe(Ce=>{this.flgVersionCompatible=this.commonService.isVersionCompatible(Ce.api_version,"0.6.0")}),this.store.select(C.gc).pipe((0,I.R)(this.unSubs[1])).subscribe(Ce=>{const te=this.invoice.status,Be=(Ce.listInvoices.invoices||[])?.find(ae=>ae.payment_hash===this.invoice.payment_hash)||null;Be&&(this.invoice=Be),te!==this.invoice.status&&"paid"===this.invoice.status&&(this.flgInvoicePaid=!0,setTimeout(()=>{this.flgInvoicePaid=!1},4e3)),this.logger.info(Ce)})}onClose(){this.dialogRef.close(!1)}onShowAdvanced(){this.showAdvanced=!this.showAdvanced}onCopyPayment(Ce){this.snackBar.open("Invoice copied."),this.logger.info("Copied Text: "+Ce)}ngOnDestroy(){this.unSubs.forEach(Ce=>{Ce.next(null),Ce.complete()})}}Ae.\u0275fac=function(Ce){return new(Ce||Ae)(h.Y36(t.so),h.Y36(t.WI),h.Y36(P.mQ),h.Y36(d.v),h.Y36(S.ux),h.Y36(w.yh))},Ae.\u0275cmp=h.Xpm({type:Ae,selectors:[["rtl-cln-invoice-information"]],decls:72,vars:49,consts:[["fxLayout","column","fxLayout.gt-sm","row","fxLayoutAlign","space-between stretch"],["fxFlex","35",1,"modal-qr-code-container","padding-gap-large",3,"fxLayoutAlign","ngClass"],[3,"value","size","errorCorrectionLevel",4,"ngIf"],["class","font-size-300",4,"ngIf"],["fxFlex","65"],["fxLayout","row","fxLayoutAlign","space-between center",1,"modal-info-header"],["fxFlex","95","fxLayoutAlign","start start"],[1,"page-title-img","mr-1",3,"icon"],[1,"page-title"],["class","dot green ml-1","matTooltip","Paid","matTooltipPosition","right",3,"ngClass",4,"ngIf"],["class","dot yellow ml-1","matTooltip","Unpaid","matTooltipPosition","right",3,"ngClass",4,"ngIf"],["class","dot red ml-1","matTooltip","Expired","matTooltipPosition","right",3,"ngClass",4,"ngIf"],["tabindex","3","fxFlex","5","fxLayoutAlign","center center","mat-button","",1,"btn-close-x","p-0",3,"click"],[1,"padding-gap-x-large",3,"ngClass"],["fxLayout","column"],["fxFlex","30",1,"modal-qr-code-container","padding-gap",3,"fxLayoutAlign","ngClass"],["class","font-size-120",4,"ngIf"],["class","my-1",4,"ngIf"],["fxLayout","row",4,"ngIf"],["fxLayout","row"],["fxFlex","50"],["fxLayoutAlign","start",1,"font-bold-500"],[1,"foreground-secondary-text"],[4,"ngIf"],[1,"overflow-wrap","foreground-secondary-text"],[1,"w-100","my-1"],["fxFlex","100"],["fxLayout","row","fxLayoutAlign","end center",3,"ngClass"],["mat-button","","color","primary","type","reset","tabindex","1",1,"mr-1",3,"click"],[4,"ngIf","ngIfElse"],["hideAdvancedText",""],["autoFocus","","mat-button","","color","primary","tabindex","2","type","submit","rtlClipboard","",3,"payload","copied",4,"ngIf"],["autoFocus","","mat-button","","color","primary","tabindex","2","type","button",3,"click",4,"ngIf"],[3,"value","size","errorCorrectionLevel"],[1,"font-size-300"],["matTooltip","Paid","matTooltipPosition","right",1,"dot","green","ml-1",3,"ngClass"],["matTooltip","Unpaid","matTooltipPosition","right",1,"dot","yellow","ml-1",3,"ngClass"],["matTooltip","Expired","matTooltipPosition","right",1,"dot","red","ml-1",3,"ngClass"],[1,"font-size-120"],[1,"my-1"],["fxFlex","100",1,"alert","alert-warn"],[1,"mr-1","alert-icon",3,"icon"],["class","invoice-animation-container",4,"ngIf"],[1,"invoice-animation-container"],[1,"invoice-animation-div"],[1,"wiggle"],["class","particles-circle",4,"ngFor","ngForOf"],[1,"particles-circle"],[3,"diameter",4,"ngIf"],[3,"diameter"],["autoFocus","","mat-button","","color","primary","tabindex","2","type","submit","rtlClipboard","",3,"payload","copied"],["autoFocus","","mat-button","","color","primary","tabindex","2","type","button",3,"click"]],template:function(Ce,te){if(1&Ce&&(h.TgZ(0,"div",0)(1,"div",1),h.YNc(2,de,1,3,"qr-code",2),h.YNc(3,$,2,0,"span",3),h.qZA(),h.TgZ(4,"div",4)(5,"mat-card-header",5)(6,"div",6),h._UZ(7,"fa-icon",7),h.TgZ(8,"span",8),h._uU(9),h.YNc(10,A,1,3,"span",9),h.YNc(11,i,1,3,"span",10),h.YNc(12,a,1,3,"span",11),h.qZA()(),h.TgZ(13,"button",12),h.NdJ("click",function(){return te.onClose()}),h._uU(14,"X"),h.qZA()(),h.TgZ(15,"mat-card-content",13)(16,"div",14)(17,"div",15),h.YNc(18,u,1,3,"qr-code",2),h.YNc(19,l,2,0,"span",16),h.qZA(),h.YNc(20,y,1,0,"mat-divider",17),h.YNc(21,T,5,2,"div",18),h.TgZ(22,"div",19)(23,"div",20)(24,"h4",21),h._uU(25),h.qZA(),h.TgZ(26,"span",22),h._uU(27),h.ALo(28,"number"),h.YNc(29,L,2,0,"ng-container",23),h.qZA()(),h.TgZ(30,"div",20)(31,"h4",21),h._uU(32,"Amount Received"),h.qZA(),h.TgZ(33,"span",24),h.YNc(34,V,3,2,"ng-container",23),h.YNc(35,$e,3,2,"ng-container",23),h.qZA()()(),h._UZ(36,"mat-divider",25),h.TgZ(37,"div",19)(38,"div",20)(39,"h4",21),h._uU(40,"Date Expiry"),h.qZA(),h.TgZ(41,"span",22),h._uU(42),h.ALo(43,"date"),h.qZA()(),h.TgZ(44,"div",20)(45,"h4",21),h._uU(46,"Date Settled"),h.qZA(),h.TgZ(47,"span",22),h._uU(48),h.ALo(49,"date"),h.qZA()()(),h._UZ(50,"mat-divider",25),h.TgZ(51,"div",19)(52,"div",26)(53,"h4",21),h._uU(54,"Description"),h.qZA(),h.TgZ(55,"span",22),h._uU(56),h.qZA()()(),h._UZ(57,"mat-divider",25),h.TgZ(58,"div",19)(59,"div",26)(60,"h4",21),h._uU(61),h.qZA(),h.TgZ(62,"span",24),h._uU(63),h.qZA()()(),h.YNc(64,We,16,2,"div",23),h.TgZ(65,"div",27)(66,"button",28),h.NdJ("click",function(){return te.onShowAdvanced()}),h.YNc(67,Fe,2,0,"p",29),h.YNc(68,De,2,0,"ng-template",null,30,h.W1O),h.qZA(),h.YNc(70,ye,2,1,"button",31),h.YNc(71,ce,2,0,"button",32),h.qZA()()()()()),2&Ce){const Ue=h.MAs(69);h.xp6(1),h.Q6J("fxLayoutAlign",null!=te.invoice&&te.invoice.bolt11&&""!==(null==te.invoice?null:te.invoice.bolt11)||null!=te.invoice&&te.invoice.bolt12&&""!==(null==te.invoice?null:te.invoice.bolt12)?"center start":"center center")("ngClass",h.VKq(40,ve,te.screenSize===te.screenSizeEnum.XS||te.screenSize===te.screenSizeEnum.SM)),h.xp6(1),h.Q6J("ngIf",(null==te.invoice?null:te.invoice.bolt11)&&""!==(null==te.invoice?null:te.invoice.bolt11)||(null==te.invoice?null:te.invoice.bolt12)&&""!==(null==te.invoice?null:te.invoice.bolt12)),h.xp6(1),h.Q6J("ngIf",!(null!=te.invoice&&te.invoice.bolt11||null!=te.invoice&&te.invoice.bolt12)),h.xp6(4),h.Q6J("icon",te.faReceipt),h.xp6(2),h.hij(" ",te.screenSize===te.screenSizeEnum.XS?te.newlyAdded?"Created":"Invoice":te.newlyAdded?"Invoice Created":"Invoice Information"," "),h.xp6(1),h.Q6J("ngIf","paid"===(null==te.invoice?null:te.invoice.status)),h.xp6(1),h.Q6J("ngIf","unpaid"===(null==te.invoice?null:te.invoice.status)),h.xp6(1),h.Q6J("ngIf","expired"===(null==te.invoice?null:te.invoice.status)),h.xp6(3),h.Q6J("ngClass",h.VKq(42,oe,te.screenSize===te.screenSizeEnum.XS)),h.xp6(2),h.Q6J("fxLayoutAlign",null!=te.invoice&&te.invoice.bolt11&&""!==(null==te.invoice?null:te.invoice.bolt11)||null!=te.invoice&&te.invoice.bolt12&&""!==(null==te.invoice?null:te.invoice.bolt12)?"center start":"center center")("ngClass",h.VKq(44,ve,te.screenSize!==te.screenSizeEnum.XS&&te.screenSize!==te.screenSizeEnum.SM)),h.xp6(1),h.Q6J("ngIf",(null==te.invoice?null:te.invoice.bolt11)&&""!==(null==te.invoice?null:te.invoice.bolt11)||(null==te.invoice?null:te.invoice.bolt12)&&""!==(null==te.invoice?null:te.invoice.bolt12)),h.xp6(1),h.Q6J("ngIf",!(null!=te.invoice&&te.invoice.bolt11||null!=te.invoice&&te.invoice.bolt12)),h.xp6(1),h.Q6J("ngIf",te.screenSize===te.screenSizeEnum.XS||te.screenSize===te.screenSizeEnum.SM),h.xp6(1),h.Q6J("ngIf",null==te.invoice?null:te.invoice.warning_capacity),h.xp6(4),h.Oqu(te.screenSize===te.screenSizeEnum.XS?"Amount":"Amount Requested"),h.xp6(2),h.hij(" ",h.lcZ(28,32,(null==te.invoice?null:te.invoice.amount_msat)/1e3||0)," Sats"),h.xp6(2),h.Q6J("ngIf",!(null!=te.invoice&&te.invoice.amount_msat)||"0"===(null==te.invoice?null:te.invoice.amount_msat)),h.xp6(5),h.Q6J("ngIf","paid"===(null==te.invoice?null:te.invoice.status)),h.xp6(1),h.Q6J("ngIf","paid"!==(null==te.invoice?null:te.invoice.status)),h.xp6(7),h.Oqu(h.xi3(43,34,1e3*(null==te.invoice?null:te.invoice.expires_at),"dd/MMM/y HH:mm")),h.xp6(6),h.Oqu(h.xi3(49,37,1e3*(null==te.invoice?null:te.invoice.paid_at),"dd/MMM/y HH:mm")||"-"),h.xp6(8),h.Oqu((null==te.invoice?null:te.invoice.description)||"-"),h.xp6(5),h.hij("",null!=te.invoice&&te.invoice.bolt12?"Bolt12":null!=te.invoice&&te.invoice.bolt11&&!te.invoice.label.includes("keysend-")?"Bolt11":"Keysend"," Invoice"),h.xp6(2),h.Oqu((null==te.invoice?null:te.invoice.bolt11)||(null==te.invoice?null:te.invoice.bolt12)),h.xp6(1),h.Q6J("ngIf",te.showAdvanced),h.xp6(1),h.Q6J("ngClass",h.WLB(46,je,!te.showAdvanced,te.showAdvanced)),h.xp6(2),h.Q6J("ngIf",!te.showAdvanced)("ngIfElse",Ue),h.xp6(3),h.Q6J("ngIf",(null==te.invoice?null:te.invoice.bolt11)&&""!==(null==te.invoice?null:te.invoice.bolt11)||(null==te.invoice?null:te.invoice.bolt12)&&""!==(null==te.invoice?null:te.invoice.bolt12)),h.xp6(1),h.Q6J("ngIf",!(null!=te.invoice&&te.invoice.bolt11||null!=te.invoice&&te.invoice.bolt12))}},dependencies:[O.mk,O.sg,O.O5,E.BN,R.xw,R.Wh,R.yH,z.oO,U.lW,W.dn,W.dk,K.d,ee.Ou,ie.gM,ue.uU,le.y,ne.h,O.JJ,O.uU]})},1462:(Ve,q,p)=>{"use strict";p.d(q,{k:()=>Le});var t=p(5412),e=p(2687),b=p(7579),I=p(2722),s=p(7731),C=p(4650),h=p(5043),P=p(62),d=p(7009),S=p(9653),w=p(8104),O=p(6895),E=p(2216),R=p(1576),z=p(5829),U=p(4859),W=p(3546),K=p(4850),ee=p(658),ie=p(5199),ue=p(3390);function le($e,We){if(1&$e&&C._UZ(0,"qr-code",28),2&$e){const Fe=C.oxw();C.Q6J("value",null==Fe.offer?null:Fe.offer.bolt12)("size",Fe.qrWidth)("errorCorrectionLevel","L")}}function ne($e,We){1&$e&&(C.TgZ(0,"span",29),C._uU(1,"N/A"),C.qZA())}function de($e,We){if(1&$e&&C._UZ(0,"qr-code",28),2&$e){const Fe=C.oxw();C.Q6J("value",null==Fe.offer?null:Fe.offer.bolt12)("size",Fe.qrWidth)("errorCorrectionLevel","L")}}function $($e,We){1&$e&&(C.TgZ(0,"span",30),C._uU(1,"QR Code Not Applicable"),C.qZA())}function me($e,We){1&$e&&C._UZ(0,"mat-divider",31),2&$e&&C.Q6J("inset",!0)}function A($e,We){1&$e&&C._UZ(0,"mat-divider",19)}function i($e,We){if(1&$e&&(C.TgZ(0,"div",15)(1,"div",16)(2,"h4",17),C._uU(3,"Used"),C.qZA(),C.TgZ(4,"span",18),C._uU(5),C.qZA()(),C.TgZ(6,"div",16)(7,"h4",17),C._uU(8,"Single Use"),C.qZA(),C.TgZ(9,"span",18),C._uU(10),C.qZA()()()),2&$e){const Fe=C.oxw(2);C.xp6(5),C.hij(" ",null!=Fe.offer&&Fe.offer.used?null!=Fe.offer&&Fe.offer.used?"Yes":"No":"N/K"," "),C.xp6(5),C.hij(" ",null!=Fe.offer&&Fe.offer.single_use?null!=Fe.offer&&Fe.offer.single_use?"Yes":"No":"N/K"," ")}}function a($e,We){1&$e&&C._UZ(0,"mat-divider",19)}function u($e,We){if(1&$e&&(C.TgZ(0,"div",15)(1,"div",20)(2,"h4",17),C._uU(3,"Issuer"),C.qZA(),C.TgZ(4,"span",34),C._uU(5),C.qZA()()()),2&$e){const Fe=C.oxw(2);C.xp6(5),C.Oqu(null==Fe.offerDecoded?null:Fe.offerDecoded.offer_issuer)}}function l($e,We){1&$e&&C._UZ(0,"mat-divider",19)}function y($e,We){if(1&$e&&(C.TgZ(0,"div",15)(1,"div",20)(2,"h4",17),C._uU(3,"Label"),C.qZA(),C.TgZ(4,"span",18),C._uU(5),C.qZA()()()),2&$e){const Fe=C.oxw(2);C.xp6(5),C.Oqu(Fe.offer.label)}}function T($e,We){if(1&$e&&(C.TgZ(0,"div"),C.YNc(1,A,1,0,"mat-divider",32),C.YNc(2,i,11,2,"div",33),C.YNc(3,a,1,0,"mat-divider",32),C.YNc(4,u,6,1,"div",33),C.YNc(5,l,1,0,"mat-divider",32),C.YNc(6,y,6,1,"div",33),C._UZ(7,"mat-divider",19),C.TgZ(8,"div",15)(9,"div",20)(10,"h4",17),C._uU(11,"Offer ID"),C.qZA(),C.TgZ(12,"span",18),C._uU(13),C.qZA()()(),C._UZ(14,"mat-divider",19),C.TgZ(15,"div",15)(16,"div",20)(17,"h4",17),C._uU(18,"Offer Node ID"),C.qZA(),C.TgZ(19,"span",18),C._uU(20),C.qZA()()(),C._UZ(21,"mat-divider",19),C.qZA()),2&$e){const Fe=C.oxw();C.xp6(1),C.Q6J("ngIf",(null==Fe.offer?null:Fe.offer.used)||(null==Fe.offer?null:Fe.offer.single_use)),C.xp6(1),C.Q6J("ngIf",(null==Fe.offer?null:Fe.offer.used)||(null==Fe.offer?null:Fe.offer.single_use)),C.xp6(1),C.Q6J("ngIf",null==Fe.offerDecoded?null:Fe.offerDecoded.issuer),C.xp6(1),C.Q6J("ngIf",null==Fe.offerDecoded?null:Fe.offerDecoded.issuer),C.xp6(1),C.Q6J("ngIf",Fe.offer.label),C.xp6(1),C.Q6J("ngIf",Fe.offer.label),C.xp6(7),C.Oqu(Fe.offerDecoded.offer_id),C.xp6(7),C.Oqu(null==Fe.offerDecoded?null:Fe.offerDecoded.offer_node_id)}}function L($e,We){1&$e&&(C.TgZ(0,"p"),C._uU(1,"Show Advanced"),C.qZA())}function m($e,We){1&$e&&(C.TgZ(0,"p"),C._uU(1,"Hide Advanced"),C.qZA())}function n($e,We){if(1&$e){const Fe=C.EpF();C.TgZ(0,"button",35),C.NdJ("copied",function(ye){C.CHM(Fe);const ce=C.oxw();return C.KtG(ce.onCopyOffer(ye))}),C._uU(1,"Copy Offer"),C.qZA()}if(2&$e){const Fe=C.oxw();C.Q6J("payload",null==Fe.offer?null:Fe.offer.bolt12)}}function _($e,We){if(1&$e){const Fe=C.EpF();C.TgZ(0,"button",36),C.NdJ("click",function(){C.CHM(Fe);const ye=C.oxw();return C.KtG(ye.onClose())}),C._uU(1,"OK"),C.qZA()}}const B=function($e){return{"display-none":$e}},V=function($e){return{"xs-scroll-y":$e}},X=function($e,We){return{"mt-2":$e,"mt-1":We}};class Le{constructor(We,Fe,De,ye,ce,ve,oe){this.dialogRef=We,this.data=Fe,this.logger=De,this.commonService=ye,this.snackBar=ce,this.store=ve,this.dataService=oe,this.faReceipt=e.dLy,this.faExclamationTriangle=e.eHv,this.showAdvanced=!1,this.newlyAdded=!1,this.offerDecoded={},this.qrWidth=240,this.screenSize="",this.screenSizeEnum=s.cu,this.flgOfferPaid=!1,this.unSubs=[new b.x,new b.x,new b.x,new b.x,new b.x]}ngOnInit(){this.offer=this.data.offer,this.newlyAdded=!!this.data.newlyAdded,this.screenSize=this.commonService.getScreenSize(),this.screenSize===s.cu.XS&&(this.qrWidth=220),this.dataService.decodePayment(this.offer.bolt12,!0).pipe((0,I.R)(this.unSubs[1])).subscribe(We=>{this.offerDecoded=We,this.offerDecoded.offer_id&&!this.offerDecoded.offer_amount_msat?(this.offerDecoded.offer_amount_msat=0,this.offerDecoded.offer_amount=0):this.offerDecoded.offer_amount=this.offerDecoded.offer_amount||this.offerDecoded.offer_amount_msat||null})}onClose(){this.dialogRef.close(!1)}onShowAdvanced(){this.showAdvanced=!this.showAdvanced}onCopyOffer(We){this.snackBar.open("Offer copied."),this.logger.info("Copied Text: "+We)}ngOnDestroy(){this.unSubs.forEach(We=>{We.next(null),We.complete()})}}Le.\u0275fac=function(We){return new(We||Le)(C.Y36(t.so),C.Y36(t.WI),C.Y36(h.mQ),C.Y36(P.v),C.Y36(d.ux),C.Y36(S.yh),C.Y36(w.D))},Le.\u0275cmp=C.Xpm({type:Le,selectors:[["rtl-cln-offer-information"]],decls:52,vars:33,consts:[["fxLayout","column","fxLayout.gt-sm","row","fxLayoutAlign","space-between stretch"],["fxFlex","35",1,"modal-qr-code-container","padding-gap-large",3,"fxLayoutAlign","ngClass"],[3,"value","size","errorCorrectionLevel",4,"ngIf"],["class","font-size-300",4,"ngIf"],["fxFlex","65"],["fxLayout","row","fxLayoutAlign","space-between center",1,"modal-info-header"],["fxFlex","95","fxLayoutAlign","start start"],[1,"page-title-img","mr-1",3,"icon"],[1,"page-title"],["tabindex","3","fxFlex","5","fxLayoutAlign","center center","mat-button","",1,"btn-close-x","p-0",3,"click"],[1,"padding-gap-x-large",3,"ngClass"],["fxLayout","column"],["fxFlex","30",1,"modal-qr-code-container","padding-gap",3,"fxLayoutAlign","ngClass"],["class","font-size-120",4,"ngIf"],["class","my-1",3,"inset",4,"ngIf"],["fxLayout","row"],["fxFlex","50"],["fxLayoutAlign","start",1,"font-bold-500"],[1,"foreground-secondary-text"],[1,"w-100","my-1"],["fxFlex","100"],[4,"ngIf"],["fxLayout","row","fxLayoutAlign","end center",3,"ngClass"],["mat-button","","color","primary","type","reset","tabindex","1",1,"mr-1",3,"click"],[4,"ngIf","ngIfElse"],["hideAdvancedText",""],["autoFocus","","mat-button","","color","primary","tabindex","2","type","submit","rtlClipboard","",3,"payload","copied",4,"ngIf"],["autoFocus","","mat-button","","color","primary","tabindex","2","type","button",3,"click",4,"ngIf"],[3,"value","size","errorCorrectionLevel"],[1,"font-size-300"],[1,"font-size-120"],[1,"my-1",3,"inset"],["class","w-100 my-1",4,"ngIf"],["fxLayout","row",4,"ngIf"],[1,"overflow-wrap","foreground-secondary-text"],["autoFocus","","mat-button","","color","primary","tabindex","2","type","submit","rtlClipboard","",3,"payload","copied"],["autoFocus","","mat-button","","color","primary","tabindex","2","type","button",3,"click"]],template:function(We,Fe){if(1&We&&(C.TgZ(0,"div",0)(1,"div",1),C.YNc(2,le,1,3,"qr-code",2),C.YNc(3,ne,2,0,"span",3),C.qZA(),C.TgZ(4,"div",4)(5,"mat-card-header",5)(6,"div",6),C._UZ(7,"fa-icon",7),C.TgZ(8,"span",8),C._uU(9),C.qZA()(),C.TgZ(10,"button",9),C.NdJ("click",function(){return Fe.onClose()}),C._uU(11,"X"),C.qZA()(),C.TgZ(12,"mat-card-content",10)(13,"div",11)(14,"div",12),C.YNc(15,de,1,3,"qr-code",2),C.YNc(16,$,2,0,"span",13),C.qZA(),C.YNc(17,me,1,1,"mat-divider",14),C.TgZ(18,"div",15)(19,"div",16)(20,"h4",17),C._uU(21,"Amount Requested (Sats)"),C.qZA(),C.TgZ(22,"span",18),C._uU(23),C.ALo(24,"number"),C.qZA()(),C.TgZ(25,"div",16)(26,"h4",17),C._uU(27,"Valid"),C.qZA(),C.TgZ(28,"span",18),C._uU(29),C.qZA()()(),C._UZ(30,"mat-divider",19),C.TgZ(31,"div",15)(32,"div",20)(33,"h4",17),C._uU(34,"Description"),C.qZA(),C.TgZ(35,"span",18),C._uU(36),C.qZA()()(),C._UZ(37,"mat-divider",19),C.TgZ(38,"div",15)(39,"div",20)(40,"h4",17),C._uU(41,"Offer"),C.qZA(),C.TgZ(42,"span",18),C._uU(43),C.qZA()()(),C.YNc(44,T,22,8,"div",21),C.TgZ(45,"div",22)(46,"button",23),C.NdJ("click",function(){return Fe.onShowAdvanced()}),C.YNc(47,L,2,0,"p",24),C.YNc(48,m,2,0,"ng-template",null,25,C.W1O),C.qZA(),C.YNc(50,n,2,1,"button",26),C.YNc(51,_,2,0,"button",27),C.qZA()()()()()),2&We){const De=C.MAs(49);C.xp6(1),C.Q6J("fxLayoutAlign",null!=Fe.offer&&Fe.offer.bolt12&&""!==(null==Fe.offer?null:Fe.offer.bolt12)?"center start":"center center")("ngClass",C.VKq(24,B,Fe.screenSize===Fe.screenSizeEnum.XS||Fe.screenSize===Fe.screenSizeEnum.SM)),C.xp6(1),C.Q6J("ngIf",(null==Fe.offer?null:Fe.offer.bolt12)&&""!==(null==Fe.offer?null:Fe.offer.bolt12)),C.xp6(1),C.Q6J("ngIf",!(null!=Fe.offer&&Fe.offer.bolt12)||""===(null==Fe.offer?null:Fe.offer.bolt12)),C.xp6(4),C.Q6J("icon",Fe.faReceipt),C.xp6(2),C.Oqu(Fe.screenSize===Fe.screenSizeEnum.XS?Fe.newlyAdded?"Created":"Offer":Fe.newlyAdded?"Offer Created":"Offer Information"),C.xp6(3),C.Q6J("ngClass",C.VKq(26,V,Fe.screenSize===Fe.screenSizeEnum.XS)),C.xp6(2),C.Q6J("fxLayoutAlign",null!=Fe.offer&&Fe.offer.bolt12&&""!==(null==Fe.offer?null:Fe.offer.bolt12)?"center start":"center center")("ngClass",C.VKq(28,B,Fe.screenSize!==Fe.screenSizeEnum.XS&&Fe.screenSize!==Fe.screenSizeEnum.SM)),C.xp6(1),C.Q6J("ngIf",(null==Fe.offer?null:Fe.offer.bolt12)&&""!==(null==Fe.offer?null:Fe.offer.bolt12)),C.xp6(1),C.Q6J("ngIf",!(null!=Fe.offer&&Fe.offer.bolt12)||""===(null==Fe.offer?null:Fe.offer.bolt12)),C.xp6(1),C.Q6J("ngIf",Fe.screenSize===Fe.screenSizeEnum.XS||Fe.screenSize===Fe.screenSizeEnum.SM),C.xp6(6),C.hij(" ",null!=Fe.offerDecoded&&Fe.offerDecoded.offer_amount_msat&&0!==(null==Fe.offerDecoded?null:Fe.offerDecoded.offer_amount_msat)?C.lcZ(24,22,((null==Fe.offerDecoded?null:Fe.offerDecoded.offer_amount)||(null==Fe.offerDecoded?null:Fe.offerDecoded.offer_amount_msat))/1e3):"Open Offer"," "),C.xp6(6),C.hij(" ",null!=Fe.offerDecoded&&Fe.offerDecoded.valid?null!=Fe.offerDecoded&&Fe.offerDecoded.valid?"Yes":"No":"N/K"," "),C.xp6(7),C.hij(" ",null==Fe.offerDecoded?null:Fe.offerDecoded.offer_description," "),C.xp6(7),C.Oqu(null==Fe.offer?null:Fe.offer.bolt12),C.xp6(1),C.Q6J("ngIf",Fe.showAdvanced),C.xp6(1),C.Q6J("ngClass",C.WLB(30,X,!Fe.showAdvanced,Fe.showAdvanced)),C.xp6(2),C.Q6J("ngIf",!Fe.showAdvanced)("ngIfElse",De),C.xp6(3),C.Q6J("ngIf",(null==Fe.offer?null:Fe.offer.bolt12)&&""!==(null==Fe.offer?null:Fe.offer.bolt12)),C.xp6(1),C.Q6J("ngIf",!(null!=Fe.offer&&Fe.offer.bolt12)||""===(null==Fe.offer?null:Fe.offer.bolt12))}},dependencies:[O.mk,O.O5,E.BN,R.xw,R.Wh,R.yH,z.oO,U.lW,W.dn,W.dk,K.d,ee.uU,ie.y,ue.h,O.JJ]})},2994:(Ve,q,p)=>{"use strict";p.d(q,{$W:()=>ue,BL:()=>y,Bw:()=>K,CX:()=>S,DJ:()=>he,EK:()=>A,El:()=>ne,Fd:()=>I,GD:()=>me,HG:()=>ie,HI:()=>m,Iy:()=>$e,Lf:()=>Le,Nr:()=>De,OG:()=>T,On:()=>ee,QZ:()=>b,RX:()=>O,SN:()=>w,Sf:()=>oe,TM:()=>V,TW:()=>z,UR:()=>E,WM:()=>Fe,WO:()=>n,YP:()=>ce,YX:()=>u,Z$:()=>ye,Z8:()=>le,Zr:()=>s,_E:()=>i,aL:()=>ve,cQ:()=>L,eF:()=>P,eN:()=>R,i:()=>U,iL:()=>W,iz:()=>d,kL:()=>_,mC:()=>X,n7:()=>je,oV:()=>B,pW:()=>l,pd:()=>h,ti:()=>Ce,wD:()=>C});var t=p(9653),e=p(7731);const b=(0,t.PH)(e.lr.UPDATE_API_CALL_STATUS_ECL,(0,t.Ky)()),I=(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)()),C=(0,t.PH)(e.lr.FETCH_PAGE_SETTINGS_ECL),h=(0,t.PH)(e.lr.SET_PAGE_SETTINGS_ECL,(0,t.Ky)()),P=(0,t.PH)(e.lr.SAVE_PAGE_SETTINGS_ECL,(0,t.Ky)()),d=(0,t.PH)(e.lr.FETCH_INFO_ECL,(0,t.Ky)()),S=(0,t.PH)(e.lr.SET_INFO_ECL,(0,t.Ky)()),w=(0,t.PH)(e.lr.FETCH_FEES_ECL),O=(0,t.PH)(e.lr.SET_FEES_ECL,(0,t.Ky)()),E=(0,t.PH)(e.lr.FETCH_CHANNELS_ECL,(0,t.Ky)()),R=(0,t.PH)(e.lr.SET_ACTIVE_CHANNELS_ECL,(0,t.Ky)()),z=(0,t.PH)(e.lr.SET_PENDING_CHANNELS_ECL,(0,t.Ky)()),U=(0,t.PH)(e.lr.SET_INACTIVE_CHANNELS_ECL,(0,t.Ky)()),W=(0,t.PH)(e.lr.FETCH_ONCHAIN_BALANCE_ECL),K=(0,t.PH)(e.lr.SET_ONCHAIN_BALANCE_ECL,(0,t.Ky)()),ee=(0,t.PH)(e.lr.SET_LIGHTNING_BALANCE_ECL,(0,t.Ky)()),ie=(0,t.PH)(e.lr.SET_CHANNELS_STATUS_ECL,(0,t.Ky)()),ue=(0,t.PH)(e.lr.FETCH_PEERS_ECL),le=(0,t.PH)(e.lr.SET_PEERS_ECL,(0,t.Ky)()),ne=(0,t.PH)(e.lr.SAVE_NEW_PEER_ECL,(0,t.Ky)()),me=((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)())),A=(0,t.PH)(e.lr.REMOVE_PEER_ECL,(0,t.Ky)()),i=(0,t.PH)(e.lr.GET_NEW_ADDRESS_ECL),u=((0,t.PH)(e.lr.SET_NEW_ADDRESS_ECL,(0,t.Ky)()),(0,t.PH)(e.lr.SAVE_NEW_CHANNEL_ECL,(0,t.Ky)())),l=(0,t.PH)(e.lr.UPDATE_CHANNEL_ECL,(0,t.Ky)()),y=(0,t.PH)(e.lr.CLOSE_CHANNEL_ECL,(0,t.Ky)()),T=(0,t.PH)(e.lr.REMOVE_CHANNEL_ECL,(0,t.Ky)()),L=(0,t.PH)(e.lr.FETCH_PAYMENTS_ECL),m=(0,t.PH)(e.lr.SET_PAYMENTS_ECL,(0,t.Ky)()),n=(0,t.PH)(e.lr.GET_QUERY_ROUTES_ECL,(0,t.Ky)()),_=(0,t.PH)(e.lr.SET_QUERY_ROUTES_ECL,(0,t.Ky)()),B=(0,t.PH)(e.lr.SEND_PAYMENT_ECL,(0,t.Ky)()),V=(0,t.PH)(e.lr.SEND_PAYMENT_STATUS_ECL,(0,t.Ky)()),X=(0,t.PH)(e.lr.FETCH_TRANSACTIONS_ECL),Le=(0,t.PH)(e.lr.SET_TRANSACTIONS_ECL,(0,t.Ky)()),$e=(0,t.PH)(e.lr.SEND_ONCHAIN_FUNDS_ECL,(0,t.Ky)()),Fe=((0,t.PH)(e.lr.SEND_ONCHAIN_FUNDS_RES_ECL,(0,t.Ky)()),(0,t.PH)(e.lr.FETCH_INVOICES_ECL)),De=(0,t.PH)(e.lr.SET_INVOICES_ECL,(0,t.Ky)()),ye=(0,t.PH)(e.lr.CREATE_INVOICE_ECL,(0,t.Ky)()),ce=(0,t.PH)(e.lr.ADD_INVOICE_ECL,(0,t.Ky)()),ve=(0,t.PH)(e.lr.UPDATE_INVOICE_ECL,(0,t.Ky)()),oe=(0,t.PH)(e.lr.PEER_LOOKUP_ECL,(0,t.Ky)()),je=(0,t.PH)(e.lr.INVOICE_LOOKUP_ECL,(0,t.Ky)()),he=((0,t.PH)(e.lr.SET_LOOKUP_ECL,(0,t.Ky)()),(0,t.PH)(e.lr.UPDATE_CHANNEL_STATE_ECL,(0,t.Ky)())),Ce=(0,t.PH)(e.lr.UPDATE_RELAYED_PAYMENT_ECL,(0,t.Ky)())},3289:(Ve,q,p)=>{"use strict";p.d(q,{o:()=>ne});var t=p(493),e=p(7579),b=p(9646),I=p(5577),s=p(2722),C=p(4004),h=p(262),P=p(1786),d=p(7731),S=p(7861),w=p(7766),O=p(2994),E=p(2501),R=p(4650),z=p(529),U=p(9653),W=p(5986),K=p(62),ee=p(5043),ie=p(9116),ue=p(7998),le=p(6895);class ne{constructor($,me,A,i,a,u,l,y,T){this.actions=$,this.httpClient=me,this.store=A,this.sessionService=i,this.commonService=a,this.logger=u,this.router=l,this.wsService=y,this.location=T,this.CHILD_API_URL=d.T5+"/ecl",this.flgInitialized=!1,this.flgReceivedPaymentUpdateFromWS=!1,this.latestPaymentRes="",this.rawChannelsList=[],this.unSubs=[new e.x,new e.x,new e.x],this.infoFetchECL=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(d.lr.FETCH_INFO_ECL),(0,I.z)(L=>(this.flgInitialized=!1,this.store.dispatch((0,S.lC)({payload:this.CHILD_API_URL})),this.store.dispatch((0,S.ac)({payload:d.m6.GET_NODE_INFO})),this.store.dispatch((0,O.QZ)({payload:{action:"FetchInfo",status:d.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+d.vv.GETINFO_API).pipe((0,s.R)(this.actions.pipe((0,t.l4)(d.pg.SET_SELECTED_NODE))),(0,C.U)(m=>(this.logger.info(m),this.initializeRemainingData(m,L.payload.loadPage),this.store.dispatch((0,O.QZ)({payload:{action:"FetchInfo",status:d.Bn.COMPLETED}})),this.store.dispatch((0,S.uO)({payload:d.m6.GET_NODE_INFO})),{type:d.lr.SET_INFO_ECL,payload:m||{}})),(0,h.K)(m=>{const n=this.commonService.extractErrorCode(m),_=503===n?"Unable to Connect to Eclair Server.":this.commonService.extractErrorMessage(m);return this.router.navigate(["/error"],{state:{errorCode:n,errorMessage:_}}),this.handleErrorWithoutAlert("FetchInfo",d.m6.GET_NODE_INFO,"Fetching Node Info Failed.",{status:n,error:_}),(0,b.of)({type:d.pg.VOID})})))))),this.fetchFees=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(d.lr.FETCH_FEES_ECL),(0,I.z)(()=>(this.store.dispatch((0,O.QZ)({payload:{action:"FetchFees",status:d.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+d.vv.FEES_API+"/fees").pipe((0,C.U)(L=>(this.logger.info(L),this.store.dispatch((0,O.QZ)({payload:{action:"FetchFees",status:d.Bn.COMPLETED}})),{type:d.lr.SET_FEES_ECL,payload:L||{}})),(0,h.K)(L=>(this.handleErrorWithoutAlert("FetchFees",d.m6.NO_SPINNER,"Fetching Fees Failed.",L),(0,b.of)({type:d.pg.VOID})))))))),this.fetchPayments=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(d.lr.FETCH_PAYMENTS_ECL),(0,I.z)(()=>(this.store.dispatch((0,O.QZ)({payload:{action:"FetchPayments",status:d.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+d.vv.FEES_API+"/payments").pipe((0,C.U)(L=>(this.logger.info(L),this.store.dispatch((0,O.QZ)({payload:{action:"FetchPayments",status:d.Bn.COMPLETED}})),{type:d.lr.SET_PAYMENTS_ECL,payload:L||{}})),(0,h.K)(L=>(this.handleErrorWithoutAlert("FetchPayments",d.m6.NO_SPINNER,"Fetching Payments Failed.",L),(0,b.of)({type:d.pg.VOID})))))))),this.channelsFetch=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(d.lr.FETCH_CHANNELS_ECL),(0,I.z)(L=>(this.store.dispatch((0,O.QZ)({payload:{action:"FetchChannels",status:d.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+d.vv.CHANNELS_API).pipe((0,C.U)(m=>(this.logger.info(m),this.rawChannelsList=m,this.setChannelsAndStatusAndBalances(),this.store.dispatch((0,O.QZ)({payload:{action:"FetchChannels",status:d.Bn.COMPLETED}})),L.payload&&L.payload.fetchPayments&&this.store.dispatch((0,O.cQ)()),{type:d.pg.VOID})),(0,h.K)(m=>(this.handleErrorWithoutAlert("FetchChannels",d.m6.NO_SPINNER,"Fetching Channels Failed.",m),(0,b.of)({type:d.pg.VOID})))))))),this.fetchOnchainBalance=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(d.lr.FETCH_ONCHAIN_BALANCE_ECL),(0,I.z)(()=>(this.store.dispatch((0,O.QZ)({payload:{action:"FetchOnchainBalance",status:d.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+d.vv.ON_CHAIN_API+"/balance"))),(0,C.U)(L=>(this.logger.info(L),this.store.dispatch((0,O.QZ)({payload:{action:"FetchOnchainBalance",status:d.Bn.COMPLETED}})),{type:d.lr.SET_ONCHAIN_BALANCE_ECL,payload:L||{}})),(0,h.K)(L=>(this.handleErrorWithoutAlert("FetchOnchainBalance",d.m6.NO_SPINNER,"Fetching Onchain Balances Failed.",L),(0,b.of)({type:d.pg.VOID}))))),this.peersFetch=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(d.lr.FETCH_PEERS_ECL),(0,I.z)(()=>(this.store.dispatch((0,O.QZ)({payload:{action:"FetchPeers",status:d.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+d.vv.PEERS_API).pipe((0,C.U)(L=>(this.logger.info(L),this.store.dispatch((0,O.QZ)({payload:{action:"FetchPeers",status:d.Bn.COMPLETED}})),{type:d.lr.SET_PEERS_ECL,payload:L||[]})),(0,h.K)(L=>(this.handleErrorWithoutAlert("FetchPeers",d.m6.NO_SPINNER,"Fetching Peers Failed.",L),(0,b.of)({type:d.pg.VOID})))))))),this.getNewAddress=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(d.lr.GET_NEW_ADDRESS_ECL),(0,I.z)(()=>(this.store.dispatch((0,S.ac)({payload:d.m6.GENERATE_NEW_ADDRESS})),this.httpClient.get(this.CHILD_API_URL+d.vv.ON_CHAIN_API).pipe((0,C.U)(L=>(this.logger.info(L),this.store.dispatch((0,S.uO)({payload:d.m6.GENERATE_NEW_ADDRESS})),{type:d.lr.SET_NEW_ADDRESS_ECL,payload:L})),(0,h.K)(L=>(this.handleErrorWithAlert("GetNewAddress",d.m6.GENERATE_NEW_ADDRESS,"Generate New Address Failed",this.CHILD_API_URL+d.vv.ON_CHAIN_API,L),(0,b.of)({type:d.pg.VOID})))))))),this.setNewAddress=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(d.lr.SET_NEW_ADDRESS_ECL),(0,C.U)(L=>(this.logger.info(L.payload),L.payload))),{dispatch:!1}),this.saveNewPeer=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(d.lr.SAVE_NEW_PEER_ECL),(0,I.z)(L=>(this.store.dispatch((0,S.ac)({payload:d.m6.CONNECT_PEER})),this.store.dispatch((0,O.QZ)({payload:{action:"SaveNewPeer",status:d.Bn.INITIATED}})),this.httpClient.post(this.CHILD_API_URL+d.vv.PEERS_API+(L.payload.id.includes("@")?"?uri=":"?nodeId=")+L.payload.id,{}).pipe((0,C.U)(m=>(this.logger.info(m),this.store.dispatch((0,O.QZ)({payload:{action:"SaveNewPeer",status:d.Bn.COMPLETED}})),m=m||[],this.store.dispatch((0,S.uO)({payload:d.m6.CONNECT_PEER})),this.store.dispatch((0,O.Z8)({payload:m})),{type:d.lr.NEWLY_ADDED_PEER_ECL,payload:{peer:m.find(n=>n.nodeId===(L.payload.id.includes("@")?L.payload.id.substring(0,L.payload.id.indexOf("@")):L.payload.id))}})),(0,h.K)(m=>(this.handleErrorWithoutAlert("SaveNewPeer",d.m6.CONNECT_PEER,"Peer Connection Failed.",m),(0,b.of)({type:d.pg.VOID})))))))),this.detachPeer=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(d.lr.DETACH_PEER_ECL),(0,I.z)(L=>(this.store.dispatch((0,S.ac)({payload:d.m6.DISCONNECT_PEER})),this.httpClient.delete(this.CHILD_API_URL+d.vv.PEERS_API+"/"+L.payload.nodeId).pipe((0,C.U)(m=>(this.logger.info(m),this.store.dispatch((0,S.uO)({payload:d.m6.DISCONNECT_PEER})),this.store.dispatch((0,S.jW)({payload:"Disconnecting Peer!"})),{type:d.lr.REMOVE_PEER_ECL,payload:{nodeId:L.payload.nodeId}})),(0,h.K)(m=>(this.handleErrorWithAlert("DisconnectPeer",d.m6.DISCONNECT_PEER,"Unable to Detach Peer. Try again later.",this.CHILD_API_URL+d.vv.PEERS_API+"/"+L.payload.nodeId,m),(0,b.of)({type:d.pg.VOID})))))))),this.openNewChannel=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(d.lr.SAVE_NEW_CHANNEL_ECL),(0,I.z)(L=>{this.store.dispatch((0,S.ac)({payload:d.m6.OPEN_CHANNEL})),this.store.dispatch((0,O.QZ)({payload:{action:"SaveNewChannel",status:d.Bn.INITIATED}}));const m={nodeId:L.payload.nodeId,fundingSatoshis:L.payload.amount,announceChannel:!L.payload.private};return L.payload.feeRate&&L.payload.feeRate>0&&(m.fundingFeerateSatByte=L.payload.feeRate),this.httpClient.post(this.CHILD_API_URL+d.vv.CHANNELS_API,m).pipe((0,C.U)(n=>(this.logger.info(n),this.store.dispatch((0,O.QZ)({payload:{action:"SaveNewChannel",status:d.Bn.COMPLETED}})),this.store.dispatch((0,O.$W)()),this.store.dispatch((0,O.iL)()),this.store.dispatch((0,S.uO)({payload:d.m6.OPEN_CHANNEL})),this.store.dispatch((0,S.jW)({payload:"Channel Added Successfully!"})),{type:d.lr.FETCH_CHANNELS_ECL,payload:{fetchPayments:!1}})),(0,h.K)(n=>(this.handleErrorWithoutAlert("SaveNewChannel",d.m6.OPEN_CHANNEL,"Opening Channel Failed.",n),(0,b.of)({type:d.pg.VOID}))))}))),this.updateChannel=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(d.lr.UPDATE_CHANNEL_ECL),(0,I.z)(L=>{this.store.dispatch((0,S.ac)({payload:d.m6.UPDATE_CHAN_POLICY}));let m="?feeBaseMsat="+L.payload.baseFeeMsat+"&feeProportionalMillionths="+L.payload.feeRate;return m=L.payload.nodeIds?m+"&nodeIds="+L.payload.nodeIds:L.payload.nodeId?m+"&nodeId="+L.payload.nodeId:L.payload.channelIds?m+"&channelIds="+L.payload.channelIds:m+"&channelId="+L.payload.channelId,this.httpClient.post(this.CHILD_API_URL+d.vv.CHANNELS_API+"/updateRelayFee"+m,{}).pipe((0,C.U)(n=>(this.logger.info(n),this.store.dispatch((0,S.uO)({payload:d.m6.UPDATE_CHAN_POLICY})),this.store.dispatch((0,S.jW)(L.payload.nodeIds||L.payload.channelIds?{payload:"Channels Updated Successfully."}:{payload:"Channel Updated Successfully!"})),{type:d.lr.FETCH_CHANNELS_ECL,payload:{fetchPayments:!1}})),(0,h.K)(n=>(this.handleErrorWithAlert("UpdateChannels",d.m6.UPDATE_CHAN_POLICY,"Update Channel Failed",this.CHILD_API_URL+d.vv.CHANNELS_API,n),(0,b.of)({type:d.pg.VOID}))))}))),this.closeChannel=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(d.lr.CLOSE_CHANNEL_ECL),(0,I.z)(L=>(this.store.dispatch((0,S.ac)({payload:L.payload.force?d.m6.FORCE_CLOSE_CHANNEL:d.m6.CLOSE_CHANNEL})),this.httpClient.delete(this.CHILD_API_URL+d.vv.CHANNELS_API+"?channelId="+L.payload.channelId+"&force="+L.payload.force).pipe((0,C.U)(m=>(this.logger.info(m),setTimeout(()=>{this.store.dispatch((0,S.uO)({payload:L.payload.force?d.m6.FORCE_CLOSE_CHANNEL:d.m6.CLOSE_CHANNEL})),this.store.dispatch((0,O.UR)({payload:{fetchPayments:!1}})),this.store.dispatch((0,S.jW)({payload:L.payload.force?"Channel Force Closed Successfully!":"Channel Closed Successfully!"}))},2e3),{type:d.pg.VOID})),(0,h.K)(m=>(this.handleErrorWithAlert("CloseChannel",L.payload.force?d.m6.FORCE_CLOSE_CHANNEL:d.m6.CLOSE_CHANNEL,"Unable to Close Channel. Try again later.",this.CHILD_API_URL+d.vv.CHANNELS_API,m),(0,b.of)({type:d.pg.VOID})))))))),this.queryRoutesFetch=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(d.lr.GET_QUERY_ROUTES_ECL),(0,I.z)(L=>this.httpClient.get(this.CHILD_API_URL+d.vv.PAYMENTS_API+"/route?nodeId="+L.payload.nodeId+"&amountMsat="+L.payload.amount).pipe((0,C.U)(m=>(this.logger.info(m),{type:d.lr.SET_QUERY_ROUTES_ECL,payload:m})),(0,h.K)(m=>(this.store.dispatch((0,O.kL)({payload:[]})),this.handleErrorWithAlert("GetQueryRoutes",d.m6.NO_SPINNER,"Get Query Routes Failed",this.CHILD_API_URL+d.vv.PAYMENTS_API+"/route?nodeId="+L.payload.nodeId+"&amountMsat="+L.payload.amount,m),(0,b.of)({type:d.pg.VOID}))))))),this.setQueryRoutes=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(d.lr.SET_QUERY_ROUTES_ECL),(0,C.U)(L=>L.payload)),{dispatch:!1}),this.sendPayment=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(d.lr.SEND_PAYMENT_ECL),(0,I.z)(L=>(this.flgReceivedPaymentUpdateFromWS=!1,this.latestPaymentRes="",this.store.dispatch((0,S.ac)({payload:d.m6.SEND_PAYMENT})),this.store.dispatch((0,O.QZ)({payload:{action:"SendPayment",status:d.Bn.INITIATED}})),this.httpClient.post(this.CHILD_API_URL+d.vv.PAYMENTS_API,L.payload).pipe((0,C.U)(m=>(this.logger.info(m),this.latestPaymentRes=m,setTimeout(()=>{this.flgReceivedPaymentUpdateFromWS||this.handleSendPaymentStatus("Payment Submitted!")},3e3),{type:d.pg.VOID})),(0,h.K)(m=>(this.logger.error("Error: "+JSON.stringify(m)),L.payload.fromDialog?this.handleErrorWithoutAlert("SendPayment",d.m6.SEND_PAYMENT,"Send Payment Failed.",m):this.handleErrorWithAlert("SendPayment",d.m6.SEND_PAYMENT,"Send Payment Failed",this.CHILD_API_URL+d.vv.PAYMENTS_API,m),(0,b.of)({type:d.pg.VOID})))))))),this.transactionsFetch=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(d.lr.FETCH_TRANSACTIONS_ECL),(0,I.z)(()=>(this.store.dispatch((0,O.QZ)({payload:{action:"FetchTransactions",status:d.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+d.vv.ON_CHAIN_API+"/transactions?count=1000&skip=0"))),(0,C.U)(L=>(this.logger.info(L),this.store.dispatch((0,O.QZ)({payload:{action:"FetchTransactions",status:d.Bn.COMPLETED}})),{type:d.lr.SET_TRANSACTIONS_ECL,payload:L||[]})),(0,h.K)(L=>(this.handleErrorWithoutAlert("FetchTransactions",d.m6.NO_SPINNER,"Fetching Transactions Failed.",L),(0,b.of)({type:d.pg.VOID}))))),this.SendOnchainFunds=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(d.lr.SEND_ONCHAIN_FUNDS_ECL),(0,I.z)(L=>(this.store.dispatch((0,S.ac)({payload:d.m6.SEND_FUNDS})),this.store.dispatch((0,O.QZ)({payload:{action:"SendOnchainFunds",status:d.Bn.INITIATED}})),this.httpClient.post(this.CHILD_API_URL+d.vv.ON_CHAIN_API,L.payload).pipe((0,C.U)(m=>(this.logger.info(m),this.store.dispatch((0,O.QZ)({payload:{action:"SendOnchainFunds",status:d.Bn.COMPLETED}})),this.store.dispatch((0,S.uO)({payload:d.m6.SEND_FUNDS})),this.store.dispatch((0,O.iL)()),{type:d.lr.SEND_ONCHAIN_FUNDS_RES_ECL,payload:m})),(0,h.K)(m=>(this.handleErrorWithoutAlert("SendOnchainFunds",d.m6.SEND_FUNDS,"Sending Fund Failed.",m),(0,b.of)({type:d.pg.VOID})))))))),this.createInvoice=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(d.lr.CREATE_INVOICE_ECL),(0,I.z)(L=>(this.store.dispatch((0,S.ac)({payload:d.m6.CREATE_INVOICE})),this.store.dispatch((0,O.QZ)({payload:{action:"CreateInvoice",status:d.Bn.INITIATED}})),this.httpClient.post(this.CHILD_API_URL+d.vv.INVOICES_API,L.payload).pipe((0,C.U)(m=>(this.logger.info(m),this.store.dispatch((0,O.QZ)({payload:{action:"CreateInvoice",status:d.Bn.COMPLETED}})),this.store.dispatch((0,S.uO)({payload:d.m6.CREATE_INVOICE})),m.timestamp=Math.round((new Date).getTime()/1e3),m.expiresAt=Math.round(m.timestamp+L.payload.expireIn),m.description=L.payload.description,m.status="unpaid",setTimeout(()=>{this.store.dispatch((0,S.qR)({payload:{data:{invoice:m,newlyAdded:!0,component:w.R}}}))},200),{type:d.lr.ADD_INVOICE_ECL,payload:m})),(0,h.K)(m=>(this.handleErrorWithoutAlert("CreateInvoice",d.m6.CREATE_INVOICE,"Create Invoice Failed.",m),(0,b.of)({type:d.pg.VOID})))))))),this.invoicesFetch=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(d.lr.FETCH_INVOICES_ECL),(0,I.z)(()=>(this.store.dispatch((0,O.QZ)({payload:{action:"FetchInvoices",status:d.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+d.vv.INVOICES_API).pipe((0,C.U)(L=>(this.logger.info(L),this.store.dispatch((0,O.QZ)({payload:{action:"FetchInvoices",status:d.Bn.COMPLETED}})),{type:d.lr.SET_INVOICES_ECL,payload:L})),(0,h.K)(L=>(this.handleErrorWithoutAlert("FetchInvoices",d.m6.NO_SPINNER,"Fetching Invoices Failed.",L),(0,b.of)({type:d.pg.VOID})))))))),this.peerLookup=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(d.lr.PEER_LOOKUP_ECL),(0,I.z)(L=>(this.store.dispatch((0,S.ac)({payload:d.m6.SEARCHING_NODE})),this.store.dispatch((0,O.QZ)({payload:{action:"Lookup",status:d.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+d.vv.NETWORK_API+"/nodes/"+L.payload).pipe((0,C.U)(m=>(this.logger.info(m),this.store.dispatch((0,O.QZ)({payload:{action:"Lookup",status:d.Bn.COMPLETED}})),this.store.dispatch((0,S.uO)({payload:d.m6.SEARCHING_NODE})),{type:d.lr.SET_LOOKUP_ECL,payload:m})),(0,h.K)(m=>(this.handleErrorWithAlert("Lookup",d.m6.SEARCHING_NODE,"Peer Lookup Failed",this.CHILD_API_URL+d.vv.NETWORK_API+"/nodes/"+L.payload,m),(0,b.of)({type:d.pg.VOID})))))))),this.invoiceLookup=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(d.lr.INVOICE_LOOKUP_ECL),(0,I.z)(L=>(this.store.dispatch((0,S.ac)({payload:d.m6.SEARCHING_INVOICE})),this.store.dispatch((0,O.QZ)({payload:{action:"Lookup",status:d.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+d.vv.INVOICES_API+"/"+L.payload).pipe((0,C.U)(m=>(this.logger.info(m),this.store.dispatch((0,O.QZ)({payload:{action:"Lookup",status:d.Bn.COMPLETED}})),this.store.dispatch((0,S.uO)({payload:d.m6.SEARCHING_INVOICE})),this.store.dispatch((0,O.aL)({payload:m})),{type:d.lr.SET_LOOKUP_ECL,payload:m})),(0,h.K)(m=>(this.handleErrorWithoutAlert("Lookup",d.m6.SEARCHING_INVOICE,"Invoice Lookup Failed",m),this.store.dispatch((0,S.jW)({payload:{message:"Invoice Refresh Failed.",type:"ERROR"}})),(0,b.of)({type:d.pg.VOID})))))))),this.setLookup=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(d.lr.SET_LOOKUP_ECL),(0,C.U)(L=>(this.logger.info(L.payload),L.payload))),{dispatch:!1}),this.pageSettingsFetchCL=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(d.lr.FETCH_PAGE_SETTINGS_ECL),(0,I.z)(()=>(this.store.dispatch((0,O.QZ)({payload:{action:"FetchPageSettings",status:d.Bn.INITIATED}})),this.httpClient.get(d.vv.PAGE_SETTINGS_API).pipe((0,C.U)(L=>(this.logger.info(L),this.store.dispatch((0,O.QZ)({payload:{action:"FetchPageSettings",status:d.Bn.COMPLETED}})),{type:d.lr.SET_PAGE_SETTINGS_ECL,payload:L||[]})),(0,h.K)(L=>(this.handleErrorWithoutAlert("FetchPageSettings",d.m6.NO_SPINNER,"Fetching Page Settings Failed.",L),(0,b.of)({type:d.pg.VOID})))))))),this.savePageSettingsCL=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(d.lr.SAVE_PAGE_SETTINGS_ECL),(0,I.z)(L=>(this.store.dispatch((0,S.ac)({payload:d.m6.UPDATE_PAGE_SETTINGS})),this.store.dispatch((0,O.QZ)({payload:{action:"SavePageSettings",status:d.Bn.INITIATED}})),this.httpClient.post(d.vv.PAGE_SETTINGS_API,L.payload).pipe((0,C.U)(m=>(this.logger.info(m),this.store.dispatch((0,O.QZ)({payload:{action:"SavePageSettings",status:d.Bn.COMPLETED}})),this.store.dispatch((0,S.uO)({payload:d.m6.UPDATE_PAGE_SETTINGS})),this.store.dispatch((0,S.jW)({payload:"Page Layout Updated Successfully!"})),{type:d.lr.SET_PAGE_SETTINGS_ECL,payload:m||[]})),(0,h.K)(m=>(this.handleErrorWithAlert("SavePageSettings",d.m6.UPDATE_PAGE_SETTINGS,"Page Settings Update Failed.",d.vv.PAGE_SETTINGS_API,m),(0,b.of)({type:d.pg.VOID})))))))),this.handleSendPaymentStatus=L=>{this.store.dispatch((0,O.QZ)({payload:{action:"SendPayment",status:d.Bn.COMPLETED}})),this.store.dispatch((0,S.uO)({payload:d.m6.SEND_PAYMENT})),this.store.dispatch((0,O.TM)({payload:this.latestPaymentRes})),this.store.dispatch((0,O.UR)({payload:{fetchPayments:!0}})),this.store.dispatch((0,S.jW)({payload:L}))},this.store.select(E.yA).pipe((0,s.R)(this.unSubs[0])).subscribe(L=>{L.FetchInfo.status!==d.Bn.COMPLETED&&L.FetchInfo.status!==d.Bn.ERROR||L.FetchFees.status!==d.Bn.COMPLETED&&L.FetchFees.status!==d.Bn.ERROR||L.FetchOnchainBalance.status!==d.Bn.COMPLETED&&L.FetchOnchainBalance.status!==d.Bn.ERROR||L.FetchChannels.status!==d.Bn.COMPLETED&&L.FetchChannels.status!==d.Bn.ERROR||this.flgInitialized||(this.store.dispatch((0,S.uO)({payload:d.m6.INITALIZE_NODE_DATA})),this.flgInitialized=!0)}),this.wsService.eclWSMessages.pipe((0,s.R)(this.unSubs[1])).subscribe(L=>{this.logger.info("Received new message from the service: "+JSON.stringify(L));let m="";if(L)switch(L.type){case d.$v.PAYMENT_SENT:L&&L.id&&this.latestPaymentRes===L.id&&(this.flgReceivedPaymentUpdateFromWS=!0,m="Payment Sent: "+(L.paymentHash?"with payment hash "+L.paymentHash:JSON.stringify(L)),this.handleSendPaymentStatus(m));break;case d.$v.PAYMENT_FAILED:L&&L.id&&this.latestPaymentRes===L.id&&(this.flgReceivedPaymentUpdateFromWS=!0,m="Payment Failed: "+(L.failures&&L.failures.length&&L.failures.length>0&&L.failures[0].t?L.failures[0].t:L.failures&&L.failures.length&&L.failures.length>0&&L.failures[0].e&&L.failures[0].e.failureMessage?L.failures[0].e.failureMessage:JSON.stringify(L)),this.handleSendPaymentStatus(m));break;case d.$v.PAYMENT_RECEIVED:this.store.dispatch((0,O.aL)({payload:L}));break;case d.$v.PAYMENT_RELAYED:delete L.source,L.amountIn=Math.round((L.amountIn||0)/1e3),L.amountOut=Math.round((L.amountOut||0)/1e3),L.timestamp.unix&&(L.timestamp=1e3*L.timestamp.unix),this.store.dispatch((0,O.ti)({payload:L}));break;case d.$v.CHANNEL_STATE_CHANGED:"NORMAL"===L.currentState||"CLOSED"===L.currentState?(this.rawChannelsList=this.rawChannelsList?.map(n=>(n.channelId===L.channelId&&n.nodeId===L.remoteNodeId&&(n.state=L.currentState),n)),this.setChannelsAndStatusAndBalances()):this.store.dispatch((0,O.DJ)({payload:L}));break;default:this.logger.info("Received Event from WS: "+JSON.stringify(L))}})}setChannelsAndStatusAndBalances(){let $=0,me=0,A=0,i={localBalance:0,remoteBalance:0},a=[];const u=[],l=[],y={active:{channels:0,capacity:0},inactive:{channels:0,capacity:0},pending:{channels:0,capacity:0}};this.rawChannelsList.forEach((T,L)=>{T&&("NORMAL"===T.state?($=(T.toLocal||0)+(T.toRemote||0),me+=T.toLocal||0,A+=T.toRemote||0,T.balancedness=0===$?1:+(1-Math.abs(((T.toLocal||0)-(T.toRemote||0))/$)).toFixed(3),a.push(T),y.active.channels=y.active.channels+1,y.active.capacity=y.active.capacity+(T.toLocal||0)):T.state?.includes("WAIT")||T.state?.includes("CLOSING")||T.state?.includes("SYNCING")?(T.state=T.state?.replace(/_/g," "),u.push(T),y.pending.channels=y.pending.channels+1,y.pending.capacity=y.pending.capacity+(T.toLocal||0)):(T.state=T.state?.replace(/_/g," "),l.push(T),y.inactive.channels=y.inactive.channels+1,y.inactive.capacity=y.inactive.capacity+(T.toLocal||0)))}),i={localBalance:me,remoteBalance:A},a=this.commonService.sortDescByKey(a,"balancedness"),this.logger.info("Active Channels: "+JSON.stringify(a)),this.logger.info("Pending Channels: "+JSON.stringify(u)),this.logger.info("Inactive Channels: "+JSON.stringify(l)),this.logger.info("Lightning Balances: "+JSON.stringify(i)),this.logger.info("Channels Status: "+JSON.stringify(y)),this.logger.info("Channel, status and balances: "+JSON.stringify({active:a,pending:u,inactive:l,balances:i,status:y})),this.store.dispatch((0,O.eN)({payload:a})),this.store.dispatch((0,O.TW)({payload:u})),this.store.dispatch((0,O.i)({payload:l})),this.store.dispatch((0,O.On)({payload:i})),this.store.dispatch((0,O.HG)({payload:y}))}initializeRemainingData($,me){this.sessionService.setItem("eclUnlocked","true");const A={identity_pubkey:$.nodeId,alias:$.alias,testnet:"testnet"===$.network,chains:$.publicAddresses,uris:$.uris,version:$.version,numberOfPendingChannels:0};this.store.dispatch((0,S.ac)({payload:d.m6.INITALIZE_NODE_DATA})),this.store.dispatch((0,S._V)({payload:A}));let i=this.location.path();i.includes("/lnd/")?i=i?.replace("/lnd/","/ecl/"):i.includes("/cln/")&&(i=i?.replace("/cln/","/ecl/")),(i.includes("/login")||i.includes("/error")||""===i||"HOME"===me||i.includes("?access-key="))&&(i="/ecl/home"),this.router.navigate([i]),this.store.dispatch((0,O.wD)()),this.store.dispatch((0,O.WM)()),this.store.dispatch((0,O.UR)({payload:{fetchPayments:!0}})),this.store.dispatch((0,O.SN)()),this.store.dispatch((0,O.iL)()),this.store.dispatch((0,O.$W)())}handleErrorWithoutAlert($,me,A,i){this.logger.error("ERROR IN: "+$+"\n"+JSON.stringify(i)),401===i.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:me})),this.store.dispatch((0,O.QZ)({payload:{action:$,status:d.Bn.ERROR,statusCode:i.status.toString(),message:this.commonService.extractErrorMessage(i,A)}})))}handleErrorWithAlert($,me,A,i,a){if(this.logger.error(a),401===a.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:me}));const u=this.commonService.extractErrorMessage(a);this.store.dispatch((0,S.qR)({payload:{data:{type:"ERROR",alertTitle:A,message:{code:a.status,message:u,URL:i},component:P.H}}})),this.store.dispatch((0,O.QZ)({payload:{action:$,status:d.Bn.ERROR,statusCode:a.status.toString(),message:u,URL:i}}))}}ngOnDestroy(){this.unSubs.forEach($=>{$.next(null),$.complete()})}}ne.\u0275fac=function($){return new($||ne)(R.LFG(t.eX),R.LFG(z.eN),R.LFG(U.yh),R.LFG(W.m),R.LFG(K.v),R.LFG(ee.mQ),R.LFG(ie.F0),R.LFG(ue.d),R.LFG(le.Ye))},ne.\u0275prov=R.Yz7({token:ne,factory:ne.\u0275fac})},2501:(Ve,q,p)=>{"use strict";p.d(q,{Bo:()=>W,Ef:()=>U,JG:()=>S,LR:()=>b,PP:()=>d,T$:()=>C,Xz:()=>R,dx:()=>z,kY:()=>K,nF:()=>I,yA:()=>P,yD:()=>s});var t=p(9653);const e=(0,t.ZF)("ecl"),b=(0,t.P1)(e,ee=>ee.nodeSettings),I=(0,t.P1)(e,ee=>({pageSettings:ee.pageSettings,apiCallStatus:ee.apisCallStatus.FetchPageSettings})),s=(0,t.P1)(e,ee=>ee.information),C=(0,t.P1)(e,ee=>({information:ee.information,apiCallStatus:ee.apisCallStatus.FetchInfo})),P=((0,t.P1)(e,ee=>ee.apisCallStatus.FetchInfo),(0,t.P1)(e,ee=>ee.apisCallStatus)),d=(0,t.P1)(e,ee=>({payments:ee.payments,apiCallStatus:ee.apisCallStatus.FetchPayments})),S=(0,t.P1)(e,ee=>({fees:ee.fees,apiCallStatus:ee.apisCallStatus.FetchFees})),R=((0,t.P1)(e,ee=>({activeChannels:ee.activeChannels,apiCallStatus:ee.apisCallStatus.FetchChannels})),(0,t.P1)(e,ee=>({pendingChannels:ee.pendingChannels,apiCallStatus:ee.apisCallStatus.FetchChannels})),(0,t.P1)(e,ee=>({inactiveChannels:ee.inactiveChannels,apiCallStatus:ee.apisCallStatus.FetchChannels})),(0,t.P1)(e,ee=>({activeChannels:ee.activeChannels,pendingChannels:ee.pendingChannels,inactiveChannels:ee.inactiveChannels,lightningBalance:ee.lightningBalance,channelsStatus:ee.channelsStatus,apiCallStatus:ee.apisCallStatus.FetchChannels}))),z=(0,t.P1)(e,ee=>({transactions:ee.transactions,apiCallStatus:ee.apisCallStatus.FetchTransactions})),U=(0,t.P1)(e,ee=>({invoices:ee.invoices,apiCallStatus:ee.apisCallStatus.FetchInvoices})),W=(0,t.P1)(e,ee=>({peers:ee.peers,apiCallStatus:ee.apisCallStatus.FetchPeers})),K=(0,t.P1)(e,ee=>({onchainBalance:ee.onchainBalance,apiCallStatus:ee.apisCallStatus.FetchOnchainBalance}))},7766:(Ve,q,p)=>{"use strict";p.d(q,{R:()=>De});var t=p(5412),e=p(2687),b=p(7579),I=p(2722),s=p(7731),C=p(2501),h=p(4650),P=p(5043),d=p(62),S=p(7009),w=p(9653),O=p(6895),E=p(2216),R=p(1576),z=p(5829),U=p(4859),W=p(3546),K=p(4850),ee=p(1572),ie=p(658),ue=p(5199),le=p(3390);function ne(ye,ce){if(1&ye&&h._UZ(0,"qr-code",29),2&ye){const ve=h.oxw();h.Q6J("value",null==ve.invoice?null:ve.invoice.serialized)("size",ve.qrWidth)("errorCorrectionLevel","L")}}function de(ye,ce){1&ye&&(h.TgZ(0,"span",30),h._uU(1,"N/A"),h.qZA())}function $(ye,ce){if(1&ye&&h._UZ(0,"qr-code",29),2&ye){const ve=h.oxw();h.Q6J("value",null==ve.invoice?null:ve.invoice.serialized)("size",ve.qrWidth)("errorCorrectionLevel","L")}}function me(ye,ce){1&ye&&(h.TgZ(0,"span",31),h._uU(1,"QR Code Not Applicable"),h.qZA())}function A(ye,ce){1&ye&&h._UZ(0,"mat-divider",32),2&ye&&h.Q6J("inset",!0)}function i(ye,ce){1&ye&&(h.ynx(0),h._uU(1," (zero amount) "),h.BQk())}function a(ye,ce){1&ye&&h._UZ(0,"span",38)}const u=function(){return[]};function l(ye,ce){if(1&ye&&(h.TgZ(0,"div",34)(1,"div",35)(2,"span",36),h._uU(3),h.ALo(4,"number"),h.qZA(),h.YNc(5,a,1,0,"span",37),h.qZA()()),2&ye){const ve=h.oxw(2);h.xp6(3),h.hij("",h.lcZ(4,2,null==ve.invoice?null:ve.invoice.amountSettled)," Sats"),h.xp6(2),h.Q6J("ngForOf",h.DdM(4,u).constructor(35))}}function y(ye,ce){if(1&ye&&(h.TgZ(0,"div"),h._uU(1),h.ALo(2,"number"),h.qZA()),2&ye){const ve=h.oxw(2);h.xp6(1),h.hij("",h.lcZ(2,1,null==ve.invoice?null:ve.invoice.amountSettled)," Sats")}}function T(ye,ce){if(1&ye&&(h.ynx(0),h.YNc(1,l,6,5,"div",33),h.YNc(2,y,3,3,"div",19),h.BQk()),2&ye){const ve=h.oxw();h.xp6(1),h.Q6J("ngIf",ve.flgInvoicePaid),h.xp6(1),h.Q6J("ngIf",!ve.flgInvoicePaid)}}function L(ye,ce){1&ye&&(h.TgZ(0,"span"),h._uU(1,"-"),h.qZA())}function m(ye,ce){1&ye&&h._UZ(0,"mat-spinner",40),2&ye&&h.Q6J("diameter",20)}function n(ye,ce){if(1&ye&&(h.ynx(0),h.YNc(1,L,2,0,"span",19),h.YNc(2,m,1,1,"mat-spinner",39),h.BQk()),2&ye){const ve=h.oxw();h.xp6(1),h.Q6J("ngIf","unpaid"!==(null==ve.invoice?null:ve.invoice.status)||!ve.flgVersionCompatible),h.xp6(1),h.Q6J("ngIf","unpaid"===(null==ve.invoice?null:ve.invoice.status)&&ve.flgVersionCompatible)}}function _(ye,ce){if(1&ye&&(h.TgZ(0,"div"),h._UZ(1,"mat-divider",20),h.TgZ(2,"div",15)(3,"div",41)(4,"h4",17),h._uU(5,"Date Expiry"),h.qZA(),h.TgZ(6,"span",18),h._uU(7),h.ALo(8,"date"),h.qZA()(),h.TgZ(9,"div",42)(10,"h4",17),h._uU(11,"Date Settled"),h.qZA(),h.TgZ(12,"span",21),h._uU(13),h.ALo(14,"date"),h.qZA()()(),h._UZ(15,"mat-divider",20),h.TgZ(16,"div",15)(17,"div",22)(18,"h4",17),h._uU(19,"Payment Hash"),h.qZA(),h.TgZ(20,"span",21),h._uU(21),h.qZA()()(),h._UZ(22,"mat-divider",20),h.TgZ(23,"div",15)(24,"div",22)(25,"h4",17),h._uU(26,"Node ID"),h.qZA(),h.TgZ(27,"span",21),h._uU(28),h.qZA()()(),h._UZ(29,"mat-divider",20),h.qZA()),2&ye){const ve=h.oxw();h.xp6(7),h.Oqu(h.xi3(8,4,1e3*(null==ve.invoice?null:ve.invoice.expiresAt),"dd/MMM/y HH:mm")),h.xp6(6),h.Oqu(h.xi3(14,7,1e3*(null==ve.invoice?null:ve.invoice.receivedAt),"dd/MMM/y HH:mm")),h.xp6(8),h.Oqu(null==ve.invoice?null:ve.invoice.paymentHash),h.xp6(7),h.Oqu(null==ve.invoice?null:ve.invoice.nodeId)}}function B(ye,ce){1&ye&&(h.TgZ(0,"p"),h._uU(1,"Show Advanced"),h.qZA())}function V(ye,ce){1&ye&&(h.TgZ(0,"p"),h._uU(1,"Hide Advanced"),h.qZA())}function X(ye,ce){if(1&ye){const ve=h.EpF();h.TgZ(0,"button",43),h.NdJ("copied",function(je){h.CHM(ve);const Ae=h.oxw();return h.KtG(Ae.onCopyPayment(je))}),h._uU(1,"Copy Invoice"),h.qZA()}if(2&ye){const ve=h.oxw();h.Q6J("payload",null==ve.invoice?null:ve.invoice.serialized)}}function Le(ye,ce){if(1&ye){const ve=h.EpF();h.TgZ(0,"button",44),h.NdJ("click",function(){h.CHM(ve);const je=h.oxw();return h.KtG(je.onClose())}),h._uU(1,"OK"),h.qZA()}}const $e=function(ye){return{"display-none":ye}},We=function(ye){return{"xs-scroll-y":ye}},Fe=function(ye,ce){return{"mt-2":ye,"mt-1":ce}};class De{constructor(ce,ve,oe,je,Ae,he){this.dialogRef=ce,this.data=ve,this.logger=oe,this.commonService=je,this.snackBar=Ae,this.store=he,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 b.x,new b.x,new b.x,new b.x,new b.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(C.yD).pipe((0,I.R)(this.unSubs[0])).subscribe(ce=>{this.flgVersionCompatible=this.commonService.isVersionCompatible(ce.version,"0.5.0")}),this.store.select(C.Ef).pipe((0,I.R)(this.unSubs[1])).subscribe(ce=>{const ve=this.invoice.status,je=(ce.invoices&&ce.invoices.length>0?ce.invoices:[])?.find(Ae=>Ae.paymentHash===this.invoice.paymentHash)||null;je&&(this.invoice=je),ve!==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()})}}De.\u0275fac=function(ce){return new(ce||De)(h.Y36(t.so),h.Y36(t.WI),h.Y36(P.mQ),h.Y36(d.v),h.Y36(S.ux),h.Y36(w.yh))},De.\u0275cmp=h.Xpm({type:De,selectors:[["rtl-ecl-invoice-information"]],decls:68,vars:42,consts:[["fxLayout","column","fxLayout.gt-sm","row","fxLayoutAlign","space-between stretch"],["fxFlex","35",1,"modal-qr-code-container","padding-gap-large",3,"fxLayoutAlign","ngClass"],[3,"value","size","errorCorrectionLevel",4,"ngIf"],["class","font-size-300",4,"ngIf"],["fxFlex","65"],["fxLayout","row","fxLayoutAlign","space-between center",1,"modal-info-header"],["fxFlex","95","fxLayoutAlign","start start"],[1,"page-title-img","mr-1",3,"icon"],[1,"page-title"],["tabindex","3","fxFlex","5","fxLayoutAlign","center center","mat-button","",1,"btn-close-x","p-0",3,"click"],[1,"padding-gap-x-large",3,"ngClass"],["fxLayout","column"],["fxFlex","30",1,"modal-qr-code-container","padding-gap",3,"fxLayoutAlign","ngClass"],["class","font-size-120",4,"ngIf"],["class","my-1",3,"inset",4,"ngIf"],["fxLayout","row"],["fxFlex","50"],["fxLayoutAlign","start",1,"font-bold-500"],[1,"foreground-secondary-text"],[4,"ngIf"],[1,"w-100","my-1"],[1,"overflow-wrap","foreground-secondary-text"],["fxFlex","100"],["fxLayout","row","fxLayoutAlign","end center",3,"ngClass"],["mat-button","","color","primary","type","reset","tabindex","1",1,"mr-1",3,"click"],[4,"ngIf","ngIfElse"],["hideAdvancedText",""],["autoFocus","","mat-button","","color","primary","tabindex","2","type","submit","rtlClipboard","",3,"payload","copied",4,"ngIf"],["autoFocus","","mat-button","","color","primary","tabindex","2","type","button",3,"click",4,"ngIf"],[3,"value","size","errorCorrectionLevel"],[1,"font-size-300"],[1,"font-size-120"],[1,"my-1",3,"inset"],["class","invoice-animation-container",4,"ngIf"],[1,"invoice-animation-container"],[1,"invoice-animation-div"],[1,"wiggle"],["class","particles-circle",4,"ngFor","ngForOf"],[1,"particles-circle"],[3,"diameter",4,"ngIf"],[3,"diameter"],["fxFlex","40"],["fxFlex","60"],["autoFocus","","mat-button","","color","primary","tabindex","2","type","submit","rtlClipboard","",3,"payload","copied"],["autoFocus","","mat-button","","color","primary","tabindex","2","type","button",3,"click"]],template:function(ce,ve){if(1&ce&&(h.TgZ(0,"div",0)(1,"div",1),h.YNc(2,ne,1,3,"qr-code",2),h.YNc(3,de,2,0,"span",3),h.qZA(),h.TgZ(4,"div",4)(5,"mat-card-header",5)(6,"div",6),h._UZ(7,"fa-icon",7),h.TgZ(8,"span",8),h._uU(9),h.qZA()(),h.TgZ(10,"button",9),h.NdJ("click",function(){return ve.onClose()}),h._uU(11,"X"),h.qZA()(),h.TgZ(12,"mat-card-content",10)(13,"div",11)(14,"div",12),h.YNc(15,$,1,3,"qr-code",2),h.YNc(16,me,2,0,"span",13),h.qZA(),h.YNc(17,A,1,1,"mat-divider",14),h.TgZ(18,"div",15)(19,"div",16)(20,"h4",17),h._uU(21,"Amount Requested"),h.qZA(),h.TgZ(22,"span",18),h._uU(23),h.ALo(24,"number"),h.YNc(25,i,2,0,"ng-container",19),h.qZA()(),h.TgZ(26,"div",16)(27,"h4",17),h._uU(28,"Amount Settled"),h.qZA(),h.TgZ(29,"span",18),h.YNc(30,T,3,2,"ng-container",19),h.YNc(31,n,3,2,"ng-container",19),h.qZA()()(),h._UZ(32,"mat-divider",20),h.TgZ(33,"div",15)(34,"div",16)(35,"h4",17),h._uU(36,"Date Created"),h.qZA(),h.TgZ(37,"span",21),h._uU(38),h.ALo(39,"date"),h.qZA()(),h.TgZ(40,"div",16)(41,"h4",17),h._uU(42,"Status"),h.qZA(),h.TgZ(43,"span",21),h._uU(44),h.ALo(45,"titlecase"),h.qZA()()(),h._UZ(46,"mat-divider",20),h.TgZ(47,"div",15)(48,"div",22)(49,"h4",17),h._uU(50,"Description"),h.qZA(),h.TgZ(51,"span",18),h._uU(52),h.qZA()()(),h._UZ(53,"mat-divider",20),h.TgZ(54,"div",15)(55,"div",22)(56,"h4",17),h._uU(57,"Invoice"),h.qZA(),h.TgZ(58,"span",21),h._uU(59),h.qZA()()(),h.YNc(60,_,30,10,"div",19),h.TgZ(61,"div",23)(62,"button",24),h.NdJ("click",function(){return ve.onShowAdvanced()}),h.YNc(63,B,2,0,"p",25),h.YNc(64,V,2,0,"ng-template",null,26,h.W1O),h.qZA(),h.YNc(66,X,2,1,"button",27),h.YNc(67,Le,2,0,"button",28),h.qZA()()()()()),2&ce){const oe=h.MAs(65);h.xp6(1),h.Q6J("fxLayoutAlign",null!=ve.invoice&&ve.invoice.serialized&&""!==(null==ve.invoice?null:ve.invoice.serialized)?"center start":"center center")("ngClass",h.VKq(33,$e,ve.screenSize===ve.screenSizeEnum.XS||ve.screenSize===ve.screenSizeEnum.SM)),h.xp6(1),h.Q6J("ngIf",(null==ve.invoice?null:ve.invoice.serialized)&&""!==(null==ve.invoice?null:ve.invoice.serialized)),h.xp6(1),h.Q6J("ngIf",!(null!=ve.invoice&&ve.invoice.serialized)||""===(null==ve.invoice?null:ve.invoice.serialized)),h.xp6(4),h.Q6J("icon",ve.faReceipt),h.xp6(2),h.Oqu(ve.screenSize===ve.screenSizeEnum.XS?ve.newlyAdded?"Created":"Invoice":ve.newlyAdded?"Invoice Created":"Invoice Information"),h.xp6(3),h.Q6J("ngClass",h.VKq(35,We,ve.screenSize===ve.screenSizeEnum.XS)),h.xp6(2),h.Q6J("fxLayoutAlign",null!=ve.invoice&&ve.invoice.serialized&&""!==(null==ve.invoice?null:ve.invoice.serialized)?"center start":"center center")("ngClass",h.VKq(37,$e,ve.screenSize!==ve.screenSizeEnum.XS&&ve.screenSize!==ve.screenSizeEnum.SM)),h.xp6(1),h.Q6J("ngIf",(null==ve.invoice?null:ve.invoice.serialized)&&""!==(null==ve.invoice?null:ve.invoice.serialized)),h.xp6(1),h.Q6J("ngIf",!(null!=ve.invoice&&ve.invoice.serialized)||""===(null==ve.invoice?null:ve.invoice.serialized)),h.xp6(1),h.Q6J("ngIf",ve.screenSize===ve.screenSizeEnum.XS||ve.screenSize===ve.screenSizeEnum.SM),h.xp6(6),h.hij("",h.lcZ(24,26,(null==ve.invoice?null:ve.invoice.amount)||0)," Sats"),h.xp6(2),h.Q6J("ngIf",!(null!=ve.invoice&&ve.invoice.amount)||"0"===(null==ve.invoice?null:ve.invoice.amount)),h.xp6(5),h.Q6J("ngIf",null==ve.invoice?null:ve.invoice.amountSettled),h.xp6(1),h.Q6J("ngIf",!(null!=ve.invoice&&ve.invoice.amountSettled)),h.xp6(7),h.Oqu(h.xi3(39,28,1e3*(null==ve.invoice?null:ve.invoice.timestamp),"dd/MMM/y HH:mm")),h.xp6(6),h.Oqu(h.lcZ(45,31,null==ve.invoice?null:ve.invoice.status)),h.xp6(8),h.Oqu((null==ve.invoice?null:ve.invoice.description)||"-"),h.xp6(7),h.Oqu((null==ve.invoice?null:ve.invoice.serialized)||"N/A"),h.xp6(1),h.Q6J("ngIf",ve.showAdvanced),h.xp6(1),h.Q6J("ngClass",h.WLB(39,Fe,!ve.showAdvanced,ve.showAdvanced)),h.xp6(2),h.Q6J("ngIf",!ve.showAdvanced)("ngIfElse",oe),h.xp6(3),h.Q6J("ngIf",(null==ve.invoice?null:ve.invoice.serialized)&&""!==(null==ve.invoice?null:ve.invoice.serialized)),h.xp6(1),h.Q6J("ngIf",!(null!=ve.invoice&&ve.invoice.serialized)||""===(null==ve.invoice?null:ve.invoice.serialized))}},dependencies:[O.mk,O.sg,O.O5,E.BN,R.xw,R.Wh,R.yH,z.oO,U.lW,W.dn,W.dk,K.d,ee.Ou,ie.uU,ue.y,le.h,O.JJ,O.rS,O.uU]})},6523:(Ve,q,p)=>{"use strict";p.d(q,{$A:()=>xt,$W:()=>w,BL:()=>L,B_:()=>Le,Bl:()=>le,CX:()=>S,Cp:()=>_,EK:()=>U,El:()=>E,Fr:()=>_t,HI:()=>Ce,JT:()=>s,Jl:()=>ne,Jo:()=>kt,Lf:()=>oe,Ll:()=>I,Ly:()=>je,Nr:()=>De,OG:()=>m,PC:()=>b,QJ:()=>Ye,RX:()=>ue,Rd:()=>W,Rv:()=>de,SN:()=>ie,Sf:()=>Ke,TW:()=>a,UH:()=>Ae,UR:()=>me,Vv:()=>n,WM:()=>Fe,WO:()=>Ht,Wi:()=>Je,YP:()=>ee,YX:()=>T,Z7:()=>i,Z8:()=>O,Zh:()=>u,_E:()=>ge,_L:()=>l,aL:()=>ye,as:()=>A,cQ:()=>he,dV:()=>Be,eF:()=>P,fu:()=>Et,kL:()=>Mt,ks:()=>$,mC:()=>ve,n7:()=>Y,oV:()=>te,pW:()=>y,pd:()=>h,qY:()=>ce,sQ:()=>d,tb:()=>X,u0:()=>Qe,vV:()=>$e,wD:()=>C,xG:()=>ke,y2:()=>ot,yZ:()=>Re,z:()=>z});var t=p(9653),e=p(7731);const b=(0,t.PH)(e.uR.UPDATE_API_CALL_STATUS_LND,(0,t.Ky)()),I=(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)()),C=(0,t.PH)(e.uR.FETCH_PAGE_SETTINGS_LND),h=(0,t.PH)(e.uR.SET_PAGE_SETTINGS_LND,(0,t.Ky)()),P=(0,t.PH)(e.uR.SAVE_PAGE_SETTINGS_LND,(0,t.Ky)()),d=(0,t.PH)(e.uR.FETCH_INFO_LND,(0,t.Ky)()),S=(0,t.PH)(e.uR.SET_INFO_LND,(0,t.Ky)()),w=(0,t.PH)(e.uR.FETCH_PEERS_LND),O=(0,t.PH)(e.uR.SET_PEERS_LND,(0,t.Ky)()),E=(0,t.PH)(e.uR.SAVE_NEW_PEER_LND,(0,t.Ky)()),z=((0,t.PH)(e.uR.NEWLY_ADDED_PEER_LND,(0,t.Ky)()),(0,t.PH)(e.uR.DETACH_PEER_LND,(0,t.Ky)())),U=(0,t.PH)(e.uR.REMOVE_PEER_LND,(0,t.Ky)()),W=(0,t.PH)(e.uR.SAVE_NEW_INVOICE_LND,(0,t.Ky)()),ee=((0,t.PH)(e.uR.NEWLY_SAVED_INVOICE_LND,(0,t.Ky)()),(0,t.PH)(e.uR.ADD_INVOICE_LND,(0,t.Ky)())),ie=(0,t.PH)(e.uR.FETCH_FEES_LND),ue=(0,t.PH)(e.uR.SET_FEES_LND,(0,t.Ky)()),le=(0,t.PH)(e.uR.FETCH_BLOCKCHAIN_BALANCE_LND),ne=(0,t.PH)(e.uR.SET_BLOCKCHAIN_BALANCE_LND,(0,t.Ky)()),de=(0,t.PH)(e.uR.FETCH_NETWORK_LND),$=(0,t.PH)(e.uR.SET_NETWORK_LND,(0,t.Ky)()),me=(0,t.PH)(e.uR.FETCH_CHANNELS_LND),A=(0,t.PH)(e.uR.SET_CHANNELS_LND,(0,t.Ky)()),i=(0,t.PH)(e.uR.FETCH_PENDING_CHANNELS_LND),a=(0,t.PH)(e.uR.SET_PENDING_CHANNELS_LND,(0,t.Ky)()),u=(0,t.PH)(e.uR.FETCH_CLOSED_CHANNELS_LND),l=(0,t.PH)(e.uR.SET_CLOSED_CHANNELS_LND,(0,t.Ky)()),y=(0,t.PH)(e.uR.UPDATE_CHANNEL_LND,(0,t.Ky)()),T=(0,t.PH)(e.uR.SAVE_NEW_CHANNEL_LND,(0,t.Ky)()),L=(0,t.PH)(e.uR.CLOSE_CHANNEL_LND,(0,t.Ky)()),m=(0,t.PH)(e.uR.REMOVE_CHANNEL_LND,(0,t.Ky)()),n=(0,t.PH)(e.uR.BACKUP_CHANNELS_LND,(0,t.Ky)()),_=(0,t.PH)(e.uR.VERIFY_CHANNEL_LND,(0,t.Ky)()),X=((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)),Le=(0,t.PH)(e.uR.SET_RESTORE_CHANNELS_LIST_LND,(0,t.Ky)()),$e=(0,t.PH)(e.uR.RESTORE_CHANNELS_LND,(0,t.Ky)()),Fe=((0,t.PH)(e.uR.RESTORE_CHANNELS_RES_LND,(0,t.Ky)()),(0,t.PH)(e.uR.FETCH_INVOICES_LND,(0,t.Ky)())),De=(0,t.PH)(e.uR.SET_INVOICES_LND,(0,t.Ky)()),ye=(0,t.PH)(e.uR.UPDATE_INVOICE_LND,(0,t.Ky)()),ce=(0,t.PH)(e.uR.UPDATE_PAYMENT_LND,(0,t.Ky)()),ve=(0,t.PH)(e.uR.FETCH_TRANSACTIONS_LND),oe=(0,t.PH)(e.uR.SET_TRANSACTIONS_LND,(0,t.Ky)()),je=(0,t.PH)(e.uR.FETCH_UTXOS_LND),Ae=(0,t.PH)(e.uR.SET_UTXOS_LND,(0,t.Ky)()),he=(0,t.PH)(e.uR.FETCH_PAYMENTS_LND,(0,t.Ky)()),Ce=(0,t.PH)(e.uR.SET_PAYMENTS_LND,(0,t.Ky)()),te=(0,t.PH)(e.uR.SEND_PAYMENT_LND,(0,t.Ky)()),Be=((0,t.PH)(e.uR.SEND_PAYMENT_STATUS_LND,(0,t.Ky)()),(0,t.PH)(e.uR.FETCH_GRAPH_NODE_LND,(0,t.Ky)())),ge=((0,t.PH)(e.uR.SET_GRAPH_NODE_LND,(0,t.Ky)()),(0,t.PH)(e.uR.GET_NEW_ADDRESS_LND,(0,t.Ky)())),Je=((0,t.PH)(e.uR.SET_NEW_ADDRESS_LND,(0,t.Ky)()),(0,t.PH)(e.uR.SET_CHANNEL_TRANSACTION_LND,(0,t.Ky)())),Et=((0,t.PH)(e.uR.SET_CHANNEL_TRANSACTION_RES_LND,(0,t.Ky)()),(0,t.PH)(e.uR.GEN_SEED_LND,(0,t.Ky)())),ot=((0,t.PH)(e.uR.GEN_SEED_RESPONSE_LND,(0,t.Ky)()),(0,t.PH)(e.uR.INIT_WALLET_LND,(0,t.Ky)())),ke=((0,t.PH)(e.uR.INIT_WALLET_RESPONSE_LND,(0,t.Ky)()),(0,t.PH)(e.uR.UNLOCK_WALLET_LND,(0,t.Ky)())),Ke=(0,t.PH)(e.uR.PEER_LOOKUP_LND,(0,t.Ky)()),xt=(0,t.PH)(e.uR.CHANNEL_LOOKUP_LND,(0,t.Ky)()),Y=(0,t.PH)(e.uR.INVOICE_LOOKUP_LND,(0,t.Ky)()),Re=(0,t.PH)(e.uR.PAYMENT_LOOKUP_LND,(0,t.Ky)()),Qe=((0,t.PH)(e.uR.SET_LOOKUP_LND,(0,t.Ky)()),(0,t.PH)(e.uR.GET_FORWARDING_HISTORY_LND,(0,t.Ky)())),Ye=(0,t.PH)(e.uR.SET_FORWARDING_HISTORY_LND,(0,t.Ky)()),Ht=(0,t.PH)(e.uR.GET_QUERY_ROUTES_LND,(0,t.Ky)()),Mt=(0,t.PH)(e.uR.SET_QUERY_ROUTES_LND,(0,t.Ky)()),kt=(0,t.PH)(e.uR.GET_ALL_LIGHTNING_TRANSATIONS_LND),_t=(0,t.PH)(e.uR.SET_ALL_LIGHTNING_TRANSATIONS_LND,(0,t.Ky)())},711:(Ve,q,p)=>{"use strict";p.d(q,{l:()=>$});var t=p(493),e=p(7579),b=p(9646),I=p(5577),s=p(2722),C=p(4004),h=p(262),P=p(1365),d=p(8627),S=p(1786),w=p(7731),O=p(7861),E=p(6523),R=p(6529),z=p(4650),U=p(529),W=p(9653),K=p(5043),ee=p(62),ie=p(5986),ue=p(5412),le=p(9116),ne=p(7998),de=p(6895);class ${constructor(A,i,a,u,l,y,T,L,m,n){this.actions=A,this.httpClient=i,this.store=a,this.logger=u,this.commonService=l,this.sessionService=y,this.dialog=T,this.router=L,this.wsService=m,this.location=n,this.CHILD_API_URL=w.T5+"/lnd",this.invoicesPageSize=w.IV,this.paymentsPageSize=w.IV,this.flgInitialized=!1,this.unSubs=[new e.x,new e.x],this.infoFetch=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(w.uR.FETCH_INFO_LND),(0,I.z)(_=>(this.flgInitialized=!1,this.store.dispatch((0,O.lC)({payload:this.CHILD_API_URL})),this.store.dispatch((0,O.ts)()),this.store.dispatch((0,O.ac)({payload:w.m6.GET_NODE_INFO})),this.store.dispatch((0,E.PC)({payload:{action:"FetchInfo",status:w.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+w.vv.GETINFO_API).pipe((0,s.R)(this.actions.pipe((0,t.l4)(w.pg.SET_SELECTED_NODE))),(0,C.U)(B=>(this.logger.info(B),B.chains&&B.chains.length&&B.chains[0]&&("string"==typeof B.chains[0]&&B.chains[0].toLowerCase().indexOf("bitcoin")<0||"object"==typeof B.chains[0]&&B.chains[0].hasOwnProperty("chain")&&B.chains[0].chain&&B.chains[0].chain.toLowerCase().indexOf("bitcoin")<0)?(this.store.dispatch((0,E.PC)({payload:{action:"FetchInfo",status:w.Bn.COMPLETED}})),this.store.dispatch((0,O.ts)()),this.store.dispatch((0,O.qR)({payload:{data:{type:w.n_.ERROR,alertTitle:"Shitcoin Found",titleMessage:"Sorry Not Sorry, RTL is Bitcoin Only!"}}})),{type:w.pg.LOGOUT}):B.identity_pubkey?(B.lnImplementation="LND",this.initializeRemainingData(B,_.payload.loadPage),this.store.dispatch((0,E.PC)({payload:{action:"FetchInfo",status:w.Bn.COMPLETED}})),this.store.dispatch((0,O.ts)()),{type:w.uR.SET_INFO_LND,payload:B||{}}):(this.store.dispatch((0,E.PC)({payload:{action:"FetchInfo",status:w.Bn.COMPLETED}})),this.store.dispatch((0,O.ts)()),this.sessionService.removeItem("lndUnlocked"),this.logger.info("Redirecting to Unlock"),this.router.navigate(["/lnd/wallet"]),{type:w.uR.SET_INFO_LND,payload:{}}))),(0,h.K)(B=>{if("string"==typeof B.error.error&&B.error.error.includes("Not Found")||"string"==typeof B.error.error&&B.error.error.includes("wallet locked")||502===B.status&&!B.error.message.includes("Bad or Missing Macaroon"))this.sessionService.removeItem("lndUnlocked"),this.logger.info("Redirecting to Unlock"),this.router.navigate(["/lnd/wallet"]),this.handleErrorWithoutAlert("FetchInfo",w.m6.GET_NODE_INFO,"Fetching Node Info Failed.",B);else if("string"==typeof B.error.error&&B.error.error.includes("starting up")&&500===B.status)setTimeout(()=>{this.store.dispatch((0,E.sQ)({payload:{loadPage:"HOME"}}))},2e3);else{const V=this.commonService.extractErrorCode(B),X=503===V?"Unable to Connect to LND Server.":this.commonService.extractErrorMessage(B);this.router.navigate(["/error"],{state:{errorCode:V,errorMessage:X}}),this.handleErrorWithoutAlert("FetchInfo",w.m6.GET_NODE_INFO,"Fetching Node Info Failed.",{status:V,error:X})}return(0,b.of)({type:w.pg.VOID})})))))),this.peersFetch=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(w.uR.FETCH_PEERS_LND),(0,I.z)(()=>(this.store.dispatch((0,E.PC)({payload:{action:"FetchPeers",status:w.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+w.vv.PEERS_API).pipe((0,C.U)(_=>(this.logger.info(_),this.store.dispatch((0,E.PC)({payload:{action:"FetchPeers",status:w.Bn.COMPLETED}})),{type:w.uR.SET_PEERS_LND,payload:_||[]})),(0,h.K)(_=>(this.handleErrorWithoutAlert("FetchPeers",w.m6.NO_SPINNER,"Fetching Peers Failed.",_),(0,b.of)({type:w.pg.VOID})))))))),this.saveNewPeer=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(w.uR.SAVE_NEW_PEER_LND),(0,I.z)(_=>(this.store.dispatch((0,O.ac)({payload:w.m6.CONNECT_PEER})),this.store.dispatch((0,E.PC)({payload:{action:"SaveNewPeer",status:w.Bn.INITIATED}})),this.httpClient.post(this.CHILD_API_URL+w.vv.PEERS_API,{pubkey:_.payload.pubkey,host:_.payload.host,perm:_.payload.perm}).pipe((0,C.U)(B=>(this.logger.info(B),this.store.dispatch((0,E.PC)({payload:{action:"SaveNewPeer",status:w.Bn.COMPLETED}})),this.store.dispatch((0,O.uO)({payload:w.m6.CONNECT_PEER})),this.store.dispatch((0,E.Z8)({payload:B||[]})),{type:w.uR.NEWLY_ADDED_PEER_LND,payload:{peer:B[0]}})),(0,h.K)(B=>(this.handleErrorWithoutAlert("SaveNewPeer",w.m6.CONNECT_PEER,"Peer Connection Failed.",B),(0,b.of)({type:w.pg.VOID})))))))),this.detachPeer=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(w.uR.DETACH_PEER_LND),(0,I.z)(_=>(this.store.dispatch((0,O.ac)({payload:w.m6.DISCONNECT_PEER})),this.httpClient.delete(this.CHILD_API_URL+w.vv.PEERS_API+"/"+_.payload.pubkey).pipe((0,C.U)(B=>(this.logger.info(B),this.store.dispatch((0,O.uO)({payload:w.m6.DISCONNECT_PEER})),this.store.dispatch((0,O.jW)({payload:"Peer Disconnected Successfully."})),{type:w.uR.REMOVE_PEER_LND,payload:{pubkey:_.payload.pubkey}})),(0,h.K)(B=>(this.handleErrorWithAlert("DetachPeer",w.m6.DISCONNECT_PEER,"Unable to Detach Peer. Try again later.",this.CHILD_API_URL+w.vv.PEERS_API+"/"+_.payload.pubkey,B),(0,b.of)({type:w.pg.VOID})))))))),this.saveNewInvoice=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(w.uR.SAVE_NEW_INVOICE_LND),(0,I.z)(_=>(this.store.dispatch((0,O.ac)({payload:_.payload.uiMessage})),this.store.dispatch((0,E.PC)({payload:{action:"SaveNewInvoice",status:w.Bn.INITIATED}})),this.httpClient.post(this.CHILD_API_URL+w.vv.INVOICES_API,{memo:_.payload.memo,value:_.payload.value,private:_.payload.private,expiry:_.payload.expiry,is_amp:_.payload.is_amp}).pipe((0,C.U)(B=>(this.logger.info(B),this.store.dispatch((0,E.PC)({payload:{action:"SaveNewInvoice",status:w.Bn.COMPLETED}})),this.store.dispatch((0,E.WM)({payload:{num_max_invoices:_.payload.pageSize,reversed:!0}})),_.payload.openModal?(B.memo=_.payload.memo,B.value=_.payload.value,B.expiry=_.payload.expiry,B.private=_.payload.private,B.is_amp=_.payload.is_amp,B.cltv_expiry="144",B.creation_date=Math.round((new Date).getTime()/1e3).toString(),setTimeout(()=>{this.store.dispatch((0,O.qR)({payload:{data:{invoice:B,newlyAdded:!0,component:d.v}}}))},200),{type:w.pg.CLOSE_SPINNER,payload:_.payload.uiMessage}):{type:w.uR.NEWLY_SAVED_INVOICE_LND,payload:{paymentRequest:B.payment_request}})),(0,h.K)(B=>(this.handleErrorWithoutAlert("SaveNewInvoice",_.payload.uiMessage,"Add Invoice Failed.",B),(0,b.of)({type:w.pg.VOID})))))))),this.openNewChannel=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(w.uR.SAVE_NEW_CHANNEL_LND),(0,I.z)(_=>(this.store.dispatch((0,O.ac)({payload:w.m6.OPEN_CHANNEL})),this.store.dispatch((0,E.PC)({payload:{action:"SaveNewChannel",status:w.Bn.INITIATED}})),this.httpClient.post(this.CHILD_API_URL+w.vv.CHANNELS_API,{node_pubkey:_.payload.selectedPeerPubkey,local_funding_amount:_.payload.fundingAmount,private:_.payload.private,trans_type:_.payload.transType,trans_type_value:_.payload.transTypeValue,spend_unconfirmed:_.payload.spendUnconfirmed}).pipe((0,C.U)(B=>(this.logger.info(B),this.store.dispatch((0,E.PC)({payload:{action:"SaveNewChannel",status:w.Bn.COMPLETED}})),this.store.dispatch((0,O.uO)({payload:w.m6.OPEN_CHANNEL})),this.store.dispatch((0,E.Bl)()),this.store.dispatch((0,E.UR)()),this.store.dispatch((0,E.Vv)({payload:{uiMessage:w.m6.NO_SPINNER,channelPoint:"ALL",showMessage:"Channel Added Successfully!"}})),{type:w.uR.FETCH_PENDING_CHANNELS_LND})),(0,h.K)(B=>(this.handleErrorWithoutAlert("SaveNewChannel",w.m6.OPEN_CHANNEL,"Opening Channel Failed.",B),(0,b.of)({type:w.pg.VOID})))))))),this.updateChannel=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(w.uR.UPDATE_CHANNEL_LND),(0,I.z)(_=>(this.store.dispatch((0,O.ac)({payload:w.m6.UPDATE_CHAN_POLICY})),this.httpClient.post(this.CHILD_API_URL+w.vv.CHANNELS_API+"/chanPolicy",{baseFeeMsat:_.payload.baseFeeMsat,feeRate:_.payload.feeRate,timeLockDelta:_.payload.timeLockDelta,max_htlc_msat:_.payload.maxHtlcMsat,min_htlc_msat:_.payload.minHtlcMsat,chanPoint:_.payload.chanPoint}).pipe((0,C.U)(B=>(this.logger.info(B),this.store.dispatch((0,O.uO)({payload:w.m6.UPDATE_CHAN_POLICY})),this.store.dispatch((0,O.jW)("all"===_.payload.chanPoint?{payload:"All Channels Updated Successfully."}:{payload:"Channel Updated Successfully!"})),{type:w.uR.FETCH_CHANNELS_LND})),(0,h.K)(B=>(this.handleErrorWithAlert("UpdateChannels",w.m6.UPDATE_CHAN_POLICY,"Update Channel Failed",this.CHILD_API_URL+w.vv.CHANNELS_API+"/chanPolicy",B),(0,b.of)({type:w.pg.VOID})))))))),this.closeChannel=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(w.uR.CLOSE_CHANNEL_LND),(0,I.z)(_=>{this.store.dispatch((0,O.ac)({payload:_.payload.forcibly?w.m6.FORCE_CLOSE_CHANNEL:w.m6.CLOSE_CHANNEL}));let B=this.CHILD_API_URL+w.vv.CHANNELS_API+"/"+_.payload.channelPoint+"?force="+_.payload.forcibly;return _.payload.targetConf&&(B=B+"&target_conf="+_.payload.targetConf),_.payload.satPerByte&&(B=B+"&sat_per_byte="+_.payload.satPerByte),this.httpClient.delete(B).pipe((0,C.U)(V=>(this.logger.info(V),this.store.dispatch((0,O.uO)({payload:_.payload.forcibly?w.m6.FORCE_CLOSE_CHANNEL:w.m6.CLOSE_CHANNEL})),this.store.dispatch((0,E.UR)()),this.store.dispatch((0,E.Z7)()),this.store.dispatch((0,E.Vv)({payload:{uiMessage:w.m6.NO_SPINNER,channelPoint:"ALL",showMessage:V.message}})),{type:w.pg.VOID})),(0,h.K)(V=>(this.handleErrorWithAlert("CloseChannel",_.payload.forcibly?w.m6.FORCE_CLOSE_CHANNEL:w.m6.CLOSE_CHANNEL,"Unable to Close Channel. Try again later.",this.CHILD_API_URL+w.vv.CHANNELS_API+"/"+_.payload.channelPoint+"?force="+_.payload.forcibly,V),(0,b.of)({type:w.pg.VOID}))))}))),this.backupChannels=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(w.uR.BACKUP_CHANNELS_LND),(0,I.z)(_=>(this.store.dispatch((0,O.ac)({payload:_.payload.uiMessage})),this.store.dispatch((0,E.PC)({payload:{action:"BackupChannels",status:w.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+w.vv.CHANNELS_BACKUP_API+"/"+_.payload.channelPoint).pipe((0,C.U)(B=>(this.logger.info(B),this.store.dispatch((0,E.PC)({payload:{action:"BackupChannels",status:w.Bn.COMPLETED}})),this.store.dispatch((0,O.uO)({payload:_.payload.uiMessage})),this.store.dispatch((0,O.jW)({payload:_.payload.showMessage+" "+B.message})),{type:w.uR.BACKUP_CHANNELS_RES_LND,payload:B.message})),(0,h.K)(B=>(this.handleErrorWithAlert("BackupChannels",_.payload.uiMessage,_.payload.showMessage+" Unable to Backup Channel. Try again later.",this.CHILD_API_URL+w.vv.CHANNELS_BACKUP_API+"/"+_.payload.channelPoint,B),(0,b.of)({type:w.pg.VOID})))))))),this.verifyChannel=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(w.uR.VERIFY_CHANNEL_LND),(0,I.z)(_=>(this.store.dispatch((0,O.ac)({payload:w.m6.VERIFY_CHANNEL})),this.store.dispatch((0,E.PC)({payload:{action:"VerifyChannel",status:w.Bn.INITIATED}})),this.httpClient.post(this.CHILD_API_URL+w.vv.CHANNELS_BACKUP_API+"/verify/"+_.payload.channelPoint,{}).pipe((0,C.U)(B=>(this.logger.info(B),this.store.dispatch((0,E.PC)({payload:{action:"VerifyChannel",status:w.Bn.COMPLETED}})),this.store.dispatch((0,O.uO)({payload:w.m6.VERIFY_CHANNEL})),this.store.dispatch((0,O.jW)({payload:B.message})),{type:w.uR.VERIFY_CHANNEL_RES_LND,payload:B.message})),(0,h.K)(B=>(this.handleErrorWithAlert("VerifyChannel",w.m6.VERIFY_CHANNEL,"Unable to Verify Channel. Try again later.",this.CHILD_API_URL+w.vv.CHANNELS_BACKUP_API+"/verify/"+_.payload.channelPoint,B),(0,b.of)({type:w.pg.VOID})))))))),this.restoreChannels=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(w.uR.RESTORE_CHANNELS_LND),(0,I.z)(_=>(this.store.dispatch((0,O.ac)({payload:w.m6.RESTORE_CHANNEL})),this.store.dispatch((0,E.PC)({payload:{action:"RestoreChannels",status:w.Bn.INITIATED}})),this.httpClient.post(this.CHILD_API_URL+w.vv.CHANNELS_BACKUP_API+"/restore/"+_.payload.channelPoint,{}).pipe((0,C.U)(B=>(this.logger.info(B),this.store.dispatch((0,E.PC)({payload:{action:"RestoreChannels",status:w.Bn.COMPLETED}})),this.store.dispatch((0,O.uO)({payload:w.m6.RESTORE_CHANNEL})),this.store.dispatch((0,O.jW)({payload:B.message})),this.store.dispatch((0,E.B_)({payload:B.list})),{type:w.uR.RESTORE_CHANNELS_RES_LND,payload:B.message})),(0,h.K)(B=>(this.handleErrorWithAlert("RestoreChannels",w.m6.RESTORE_CHANNEL,"Unable to Restore Channel. Try again later.",this.CHILD_API_URL+w.vv.CHANNELS_BACKUP_API+"/restore/"+_.payload.channelPoint,B),(0,b.of)({type:w.pg.VOID})))))))),this.fetchFees=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(w.uR.FETCH_FEES_LND),(0,I.z)(()=>(this.store.dispatch((0,E.PC)({payload:{action:"FetchFees",status:w.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+w.vv.FEES_API))),(0,C.U)(_=>(this.logger.info(_),this.store.dispatch((0,E.PC)({payload:{action:"FetchFees",status:w.Bn.COMPLETED}})),_.forwarding_events_history&&(this.store.dispatch((0,E.QJ)({payload:_.forwarding_events_history})),delete _.forwarding_events_history),{type:w.uR.SET_FEES_LND,payload:_||{}})),(0,h.K)(_=>(this.handleErrorWithoutAlert("FetchFees",w.m6.NO_SPINNER,"Fetching Fees Failed.",_),(0,b.of)({type:w.pg.VOID}))))),this.balanceBlockchainFetch=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(w.uR.FETCH_BLOCKCHAIN_BALANCE_LND),(0,I.z)(()=>(this.store.dispatch((0,E.PC)({payload:{action:"FetchBalance",status:w.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+w.vv.BALANCE_API))),(0,C.U)(_=>(this.store.dispatch((0,E.PC)({payload:{action:"FetchBalance",status:w.Bn.COMPLETED}})),this.logger.info(_),{type:w.uR.SET_BLOCKCHAIN_BALANCE_LND,payload:_||{total_balance:""}})),(0,h.K)(_=>(this.handleErrorWithoutAlert("FetchBalance",w.m6.NO_SPINNER,"Fetching Blockchain Balance Failed.",_),(0,b.of)({type:w.pg.VOID}))))),this.networkInfoFetch=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(w.uR.FETCH_NETWORK_LND),(0,I.z)(()=>(this.store.dispatch((0,E.PC)({payload:{action:"FetchNetwork",status:w.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+w.vv.NETWORK_API+"/info"))),(0,C.U)(_=>(this.logger.info(_),this.store.dispatch((0,E.PC)({payload:{action:"FetchNetwork",status:w.Bn.COMPLETED}})),{type:w.uR.SET_NETWORK_LND,payload:_||{}})),(0,h.K)(_=>(this.handleErrorWithoutAlert("FetchNetwork",w.m6.NO_SPINNER,"Fetching Network Failed.",_),(0,b.of)({type:w.pg.VOID}))))),this.channelsFetch=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(w.uR.FETCH_CHANNELS_LND),(0,I.z)(()=>(this.store.dispatch((0,E.PC)({payload:{action:"FetchChannels",status:w.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+w.vv.CHANNELS_API).pipe((0,C.U)(_=>(this.logger.info(_),this.store.dispatch((0,E.PC)({payload:{action:"FetchChannels",status:w.Bn.COMPLETED}})),{type:w.uR.SET_CHANNELS_LND,payload:_.channels||[]})),(0,h.K)(_=>(this.handleErrorWithoutAlert("FetchChannels",w.m6.NO_SPINNER,"Fetching Channels Failed.",_),(0,b.of)({type:w.pg.VOID})))))))),this.channelsPendingFetch=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(w.uR.FETCH_PENDING_CHANNELS_LND),(0,I.z)(()=>(this.store.dispatch((0,E.PC)({payload:{action:"FetchPendingChannels",status:w.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+w.vv.CHANNELS_API+"/pending").pipe((0,C.U)(_=>{this.logger.info(_),this.store.dispatch((0,E.PC)({payload:{action:"FetchPendingChannels",status:w.Bn.COMPLETED}}));const B={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 _&&(B.total_limbo_balance=_.total_limbo_balance,_.pending_closing_channels&&(B.closing.num_channels=_.pending_closing_channels.length,B.total_channels=B.total_channels+_.pending_closing_channels.length,_.pending_closing_channels.forEach(V=>{B.closing.limbo_balance=+B.closing.limbo_balance+(V.channel.local_balance?+V.channel.local_balance:0)})),_.pending_force_closing_channels&&(B.force_closing.num_channels=_.pending_force_closing_channels.length,B.total_channels=B.total_channels+_.pending_force_closing_channels.length,_.pending_force_closing_channels.forEach(V=>{B.force_closing.limbo_balance=+B.force_closing.limbo_balance+(V.channel.local_balance?+V.channel.local_balance:0)})),_.pending_open_channels&&(B.open.num_channels=_.pending_open_channels.length,B.total_channels=B.total_channels+_.pending_open_channels.length,_.pending_open_channels.forEach(V=>{B.open.limbo_balance=+B.open.limbo_balance+(V.channel.local_balance?+V.channel.local_balance:0)})),_.waiting_close_channels&&(B.waiting_close.num_channels=_.waiting_close_channels.length,B.total_channels=B.total_channels+_.waiting_close_channels.length,_.waiting_close_channels.forEach(V=>{B.waiting_close.limbo_balance=+B.waiting_close.limbo_balance+(V.channel.local_balance?+V.channel.local_balance:0)}))),{type:w.uR.SET_PENDING_CHANNELS_LND,payload:_?{pendingChannels:_,pendingChannelsSummary:B}:{pendingChannels:{},pendingChannelsSummary:B}}}),(0,h.K)(_=>(this.handleErrorWithoutAlert("FetchPendingChannels",w.m6.NO_SPINNER,"Fetching Pending Channels Failed.",_),(0,b.of)({type:w.pg.VOID})))))))),this.channelsClosedFetch=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(w.uR.FETCH_CLOSED_CHANNELS_LND),(0,I.z)(()=>(this.store.dispatch((0,E.PC)({payload:{action:"FetchClosedChannels",status:w.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+w.vv.CHANNELS_API+"/closed").pipe((0,C.U)(_=>(this.logger.info(_),this.store.dispatch((0,E.PC)({payload:{action:"FetchClosedChannels",status:w.Bn.COMPLETED}})),{type:w.uR.SET_CLOSED_CHANNELS_LND,payload:_.channels||[]})),(0,h.K)(_=>(this.handleErrorWithoutAlert("FetchClosedChannels",w.m6.NO_SPINNER,"Fetching Closed Channels Failed.",_),(0,b.of)({type:w.pg.VOID})))))))),this.invoicesFetch=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(w.uR.FETCH_INVOICES_LND),(0,I.z)(_=>(this.store.dispatch((0,E.PC)({payload:{action:"FetchInvoices",status:w.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+w.vv.INVOICES_API+"?num_max_invoices="+(_.payload.num_max_invoices?_.payload.num_max_invoices:100)+"&index_offset="+(_.payload.index_offset?_.payload.index_offset:0)+"&reversed="+(!!_.payload.reversed&&_.payload.reversed)).pipe((0,C.U)(Le=>(this.logger.info(Le),this.store.dispatch((0,E.PC)({payload:{action:"FetchInvoices",status:w.Bn.COMPLETED}})),_.payload.reversed&&!_.payload.index_offset&&(Le.total_invoices=+(Le.last_index_offset||0)),{type:w.uR.SET_INVOICES_LND,payload:Le})),(0,h.K)(Le=>(this.handleErrorWithoutAlert("FetchInvoices",w.m6.NO_SPINNER,"Fetching Invoices Failed.",Le),(0,b.of)({type:w.pg.VOID})))))))),this.transactionsFetch=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(w.uR.FETCH_TRANSACTIONS_LND),(0,I.z)(()=>(this.store.dispatch((0,E.PC)({payload:{action:"FetchTransactions",status:w.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+w.vv.TRANSACTIONS_API))),(0,C.U)(_=>(this.logger.info(_),this.store.dispatch((0,E.PC)({payload:{action:"FetchTransactions",status:w.Bn.COMPLETED}})),{type:w.uR.SET_TRANSACTIONS_LND,payload:_||[]})),(0,h.K)(_=>(this.handleErrorWithoutAlert("FetchTransactions",w.m6.NO_SPINNER,"Fetching Transactions Failed.",_),(0,b.of)({type:w.pg.VOID}))))),this.utxosFetch=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(w.uR.FETCH_UTXOS_LND),(0,P.M)(this.store.select(R.Q5)),(0,I.z)(([_,B])=>(this.store.dispatch((0,E.PC)({payload:{action:"FetchUTXOs",status:w.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+w.vv.WALLET_API+"/getUTXOs?max_confs="+(B&&B.block_height?B.block_height:1e9)))),(0,C.U)(_=>(this.logger.info(_),this.store.dispatch((0,E.PC)({payload:{action:"FetchUTXOs",status:w.Bn.COMPLETED}})),{type:w.uR.SET_UTXOS_LND,payload:_||[]})),(0,h.K)(_=>(this.handleErrorWithoutAlert("FetchUTXOs",w.m6.NO_SPINNER,"Fetching UTXOs Failed.",_),(0,b.of)({type:w.pg.VOID}))))),this.paymentsFetch=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(w.uR.FETCH_PAYMENTS_LND),(0,I.z)(_=>(this.store.dispatch((0,E.PC)({payload:{action:"FetchPayments",status:w.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+w.vv.PAYMENTS_API+"?max_payments="+(_.payload.max_payments?_.payload.max_payments:100)+"&index_offset="+(_.payload.index_offset?_.payload.index_offset:0)+"&reversed="+(!!_.payload.reversed&&_.payload.reversed)).pipe((0,C.U)(Le=>(this.logger.info(Le),this.store.dispatch((0,E.PC)({payload:{action:"FetchPayments",status:w.Bn.COMPLETED}})),{type:w.uR.SET_PAYMENTS_LND,payload:Le})),(0,h.K)(Le=>(this.handleErrorWithoutAlert("FetchPayments",w.m6.NO_SPINNER,"Fetching Payments Failed.",Le),(0,b.of)({type:w.uR.SET_PAYMENTS_LND,payload:{payments:[]}})))))))),this.sendPayment=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(w.uR.SEND_PAYMENT_LND),(0,I.z)(_=>{this.store.dispatch((0,O.ac)({payload:_.payload.uiMessage})),this.store.dispatch((0,E.PC)({payload:{action:"SendPayment",status:w.Bn.INITIATED}}));const B={};return B.paymentReq=_.payload.paymentReq,_.payload.paymentAmount&&(B.paymentAmount=_.payload.paymentAmount),_.payload.outgoingChannel&&(B.outgoingChannel=_.payload.outgoingChannel.chan_id),_.payload.allowSelfPayment&&(B.allowSelfPayment=_.payload.allowSelfPayment),_.payload.lastHopPubkey&&(B.lastHopPubkey=_.payload.lastHopPubkey),_.payload.feeLimitType&&_.payload.feeLimitType!==w.Vc[0].id&&(B.feeLimit={},B.feeLimit[_.payload.feeLimitType]=_.payload.feeLimit),this.httpClient.post(this.CHILD_API_URL+w.vv.CHANNELS_API+"/transactions",B).pipe((0,C.U)(V=>{if(this.logger.info(V),this.store.dispatch((0,O.uO)({payload:_.payload.uiMessage})),this.store.dispatch((0,E.PC)({payload:{action:"SendPayment",status:w.Bn.COMPLETED}})),V.payment_error)return _.payload.allowSelfPayment?(this.store.dispatch((0,E.WM)({payload:{num_max_invoices:this.invoicesPageSize,reversed:!0}})),{type:w.uR.SEND_PAYMENT_STATUS_LND,payload:V}):(_.payload.fromDialog?this.handleErrorWithoutAlert("SendPayment",_.payload.uiMessage,"Send Payment Failed.",V.payment_error):this.handleErrorWithAlert("SendPayment",_.payload.uiMessage,"Send Payment Failed",this.CHILD_API_URL+w.vv.CHANNELS_API+"/transactions",V.payment_error),{type:w.pg.VOID});if(this.store.dispatch((0,O.uO)({payload:_.payload.uiMessage})),this.store.dispatch((0,E.PC)({payload:{action:"SendPayment",status:w.Bn.COMPLETED}})),this.store.dispatch((0,E.UR)()),this.store.dispatch((0,E.cQ)({payload:{max_payments:this.paymentsPageSize,reversed:!0}})),_.payload.allowSelfPayment)this.store.dispatch((0,E.WM)({payload:{num_max_invoices:this.invoicesPageSize,reversed:!0}}));else{let X="Payment Sent Successfully.";V.payment_route&&V.payment_route.total_fees_msat&&(X="Payment sent successfully with the total fee "+V.payment_route.total_fees_msat+" (mSats)."),this.store.dispatch((0,O.jW)({payload:X}))}return{type:w.uR.SEND_PAYMENT_STATUS_LND,payload:V}}),(0,h.K)(V=>(this.logger.error("Error: "+JSON.stringify(V)),_.payload.allowSelfPayment?(this.handleErrorWithoutAlert("SendPayment",_.payload.uiMessage,"Send Payment Failed.",V),this.store.dispatch((0,E.WM)({payload:{num_max_invoices:this.invoicesPageSize,reversed:!0}})),(0,b.of)({type:w.uR.SEND_PAYMENT_STATUS_LND,payload:{error:this.commonService.extractErrorMessage(V)}})):(_.payload.fromDialog?this.handleErrorWithoutAlert("SendPayment",_.payload.uiMessage,"Send Payment Failed.",V):this.handleErrorWithAlert("SendPayment",_.payload.uiMessage,"Send Payment Failed",this.CHILD_API_URL+w.vv.CHANNELS_API+"/transactions",V),(0,b.of)({type:w.pg.VOID})))))}))),this.graphNodeFetch=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(w.uR.FETCH_GRAPH_NODE_LND),(0,I.z)(_=>(this.store.dispatch((0,O.ac)({payload:w.m6.GET_NODE_ADDRESS})),this.store.dispatch((0,E.PC)({payload:{action:"FetchGraphNode",status:w.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+w.vv.NETWORK_API+"/node/"+_.payload.pubkey).pipe((0,C.U)(B=>(this.logger.info(B),this.store.dispatch((0,O.uO)({payload:w.m6.GET_NODE_ADDRESS})),this.store.dispatch((0,E.PC)({payload:{action:"FetchGraphNode",status:w.Bn.COMPLETED}})),{type:w.uR.SET_GRAPH_NODE_LND,payload:B&&B.node?{node:B.node}:{node:null}})),(0,h.K)(B=>(this.handleErrorWithoutAlert("FetchGraphNode",w.m6.GET_NODE_ADDRESS,"Fetching Graph Node Failed.",B),(0,b.of)({type:w.pg.VOID})))))))),this.setGraphNode=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(w.uR.SET_GRAPH_NODE_LND),(0,C.U)(_=>(this.logger.info(_.payload),_.payload))),{dispatch:!1}),this.getNewAddress=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(w.uR.GET_NEW_ADDRESS_LND),(0,I.z)(_=>(this.store.dispatch((0,O.ac)({payload:w.m6.GENERATE_NEW_ADDRESS})),this.httpClient.get(this.CHILD_API_URL+w.vv.NEW_ADDRESS_API+"?type="+_.payload.addressId).pipe((0,C.U)(B=>(this.logger.info(B),this.store.dispatch((0,O.uO)({payload:w.m6.GENERATE_NEW_ADDRESS})),{type:w.uR.SET_NEW_ADDRESS_LND,payload:B&&B.address?B.address:{}})),(0,h.K)(B=>(this.handleErrorWithAlert("GetNewAddress",w.m6.GENERATE_NEW_ADDRESS,"Generate New Address Failed",this.CHILD_API_URL+w.vv.NEW_ADDRESS_API+"?type="+_.payload.addressId,B),(0,b.of)({type:w.pg.VOID})))))))),this.setNewAddress=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(w.uR.SET_NEW_ADDRESS_LND),(0,C.U)(_=>(this.logger.info(_.payload),_.payload))),{dispatch:!1}),this.SetChannelTransaction=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(w.uR.SET_CHANNEL_TRANSACTION_LND),(0,I.z)(_=>(this.store.dispatch((0,O.ac)({payload:w.m6.SEND_FUNDS})),this.store.dispatch((0,E.PC)({payload:{action:"SetChannelTransaction",status:w.Bn.INITIATED}})),this.httpClient.post(this.CHILD_API_URL+w.vv.TRANSACTIONS_API,{amount:_.payload.amount,address:_.payload.address,sendAll:_.payload.sendAll,fees:_.payload.fees,blocks:_.payload.blocks}).pipe((0,C.U)(B=>(this.logger.info(B),this.store.dispatch((0,E.PC)({payload:{action:"SetChannelTransaction",status:w.Bn.COMPLETED}})),this.store.dispatch((0,O.uO)({payload:w.m6.SEND_FUNDS})),this.store.dispatch((0,E.mC)()),this.store.dispatch((0,E.Bl)()),this.store.dispatch((0,E.UR)()),{type:w.uR.SET_CHANNEL_TRANSACTION_RES_LND,payload:B})),(0,h.K)(B=>(this.handleErrorWithoutAlert("SetChannelTransaction",w.m6.SEND_FUNDS,"Sending Fund Failed.",B),(0,b.of)({type:w.pg.VOID})))))))),this.fetchForwardingHistory=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(w.uR.GET_FORWARDING_HISTORY_LND),(0,I.z)(_=>(this.store.dispatch((0,E.PC)({payload:{action:"FetchForwardingHistory",status:w.Bn.INITIATED}})),this.httpClient.post(this.CHILD_API_URL+w.vv.SWITCH_API,{num_max_events:_.payload.num_max_events,index_offset:_.payload.index_offset,end_time:_.payload.end_time,start_time:_.payload.start_time}).pipe((0,C.U)(V=>(this.logger.info(V),this.store.dispatch((0,E.PC)({payload:{action:"FetchForwardingHistory",status:w.Bn.COMPLETED}})),{type:w.uR.SET_FORWARDING_HISTORY_LND,payload:V})),(0,h.K)(V=>(this.handleErrorWithAlert("FetchForwardingHistory",w.m6.NO_SPINNER,"Get Forwarding History Failed",this.CHILD_API_URL+w.vv.SWITCH_API,V),(0,b.of)({type:w.pg.VOID})))))))),this.queryRoutesFetch=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(w.uR.GET_QUERY_ROUTES_LND),(0,I.z)(_=>{let B=this.CHILD_API_URL+w.vv.NETWORK_API+"/routes/"+_.payload.destPubkey+"/"+_.payload.amount;return _.payload.outgoingChanId&&(B=B+"?outgoing_chan_id="+_.payload.outgoingChanId),this.httpClient.get(B).pipe((0,C.U)(V=>(this.logger.info(V),{type:w.uR.SET_QUERY_ROUTES_LND,payload:V})),(0,h.K)(V=>(this.store.dispatch((0,E.kL)({payload:{routes:[]}})),this.handleErrorWithAlert("GetQueryRoutes",w.m6.NO_SPINNER,"Get Query Routes Failed",this.CHILD_API_URL+w.vv.NETWORK_API,V),(0,b.of)({type:w.pg.VOID}))))}))),this.setQueryRoutes=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(w.uR.SET_QUERY_ROUTES_LND),(0,C.U)(_=>_.payload)),{dispatch:!1}),this.genSeed=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(w.uR.GEN_SEED_LND),(0,I.z)(_=>(this.store.dispatch((0,O.ac)({payload:w.m6.GEN_SEED})),this.httpClient.get(this.CHILD_API_URL+w.vv.WALLET_API+"/genseed/"+_.payload).pipe((0,C.U)(B=>(this.logger.info("Generated GenSeed!"),this.logger.info(B),this.store.dispatch((0,O.uO)({payload:w.m6.GEN_SEED})),{type:w.uR.GEN_SEED_RESPONSE_LND,payload:B.cipher_seed_mnemonic})),(0,h.K)(B=>(this.handleErrorWithAlert("GenSeed",w.m6.GEN_SEED,"Genseed Generation Failed",this.CHILD_API_URL+w.vv.WALLET_API+"/genseed/"+_.payload,B),(0,b.of)({type:w.pg.VOID})))))))),this.updateSelNodeOptions=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(w.pg.UPDATE_SELECTED_NODE_OPTIONS),(0,I.z)(()=>this.httpClient.get(this.CHILD_API_URL+w.vv.WALLET_API+"/updateSelNodeOptions").pipe((0,C.U)(_=>(this.logger.info("Update Sel Node Successfull"),this.logger.info(_),{type:w.pg.VOID})),(0,h.K)(_=>(this.handleErrorWithAlert("UpdateSelectedNodeOptions",w.m6.NO_SPINNER,"Update macaroon for newly initialized node failed! Please check the macaroon path and restart the server!","Update Macaroon",_),(0,b.of)({type:w.pg.VOID}))))))),this.genSeedResponse=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(w.uR.GEN_SEED_RESPONSE_LND),(0,C.U)(_=>_.payload)),{dispatch:!1}),this.initWalletRes=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(w.uR.INIT_WALLET_RESPONSE_LND),(0,C.U)(_=>_.payload)),{dispatch:!1}),this.initWallet=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(w.uR.INIT_WALLET_LND),(0,I.z)(_=>(this.store.dispatch((0,O.ac)({payload:w.m6.INITIALIZE_WALLET})),this.httpClient.post(this.CHILD_API_URL+w.vv.WALLET_API+"/wallet/initwallet",{wallet_password:_.payload.pwd,cipher_seed_mnemonic:_.payload.cipher?_.payload.cipher:"",aezeed_passphrase:_.payload.passphrase?_.payload.passphrase:""}).pipe((0,C.U)(B=>(this.logger.info(B),this.store.dispatch((0,O.uO)({payload:w.m6.INITIALIZE_WALLET})),{type:w.uR.INIT_WALLET_RESPONSE_LND,payload:B})),(0,h.K)(B=>(this.handleErrorWithAlert("InitWallet",w.m6.INITIALIZE_WALLET,"Wallet Initialization Failed",this.CHILD_API_URL+w.vv.WALLET_API+"/initwallet",B),(0,b.of)({type:w.pg.VOID})))))))),this.unlockWallet=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(w.uR.UNLOCK_WALLET_LND),(0,I.z)(_=>(this.store.dispatch((0,O.ac)({payload:w.m6.UNLOCK_WALLET})),this.httpClient.post(this.CHILD_API_URL+w.vv.WALLET_API+"/wallet/unlockwallet",{wallet_password:_.payload.pwd}).pipe((0,C.U)(B=>(this.logger.info(B),this.logger.info("Successfully Unlocked!"),this.sessionService.setItem("lndUnlocked","true"),this.store.dispatch((0,O.uO)({payload:w.m6.UNLOCK_WALLET})),this.store.dispatch((0,O.ac)({payload:w.m6.WAIT_SYNC_NODE})),setTimeout(()=>{this.store.dispatch((0,O.uO)({payload:w.m6.WAIT_SYNC_NODE})),this.store.dispatch((0,E.sQ)({payload:{loadPage:"HOME"}}))},5e3),{type:w.pg.VOID})),(0,h.K)(B=>(this.handleErrorWithAlert("UnlockWallet",w.m6.UNLOCK_WALLET,"Unlock Wallet Failed",this.CHILD_API_URL+w.vv.WALLET_API+"/unlockwallet",B),(0,b.of)({type:w.pg.VOID}))))))),{dispatch:!1}),this.peerLookup=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(w.uR.PEER_LOOKUP_LND),(0,I.z)(_=>(this.store.dispatch((0,O.ac)({payload:w.m6.SEARCHING_NODE})),this.store.dispatch((0,E.PC)({payload:{action:"Lookup",status:w.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+w.vv.NETWORK_API+"/node/"+_.payload).pipe((0,C.U)(B=>(this.logger.info(B),this.store.dispatch((0,O.uO)({payload:w.m6.SEARCHING_NODE})),this.store.dispatch((0,E.PC)({payload:{action:"Lookup",status:w.Bn.COMPLETED}})),{type:w.uR.SET_LOOKUP_LND,payload:B})),(0,h.K)(B=>(this.handleErrorWithAlert("Lookup",w.m6.SEARCHING_NODE,"Peer Lookup Failed",this.CHILD_API_URL+w.vv.NETWORK_API+"/node/"+_.payload,B),(0,b.of)({type:w.pg.VOID})))))))),this.channelLookup=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(w.uR.CHANNEL_LOOKUP_LND),(0,I.z)(_=>(this.store.dispatch((0,O.ac)({payload:_.payload.uiMessage})),this.store.dispatch((0,E.PC)({payload:{action:"Lookup",status:w.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+w.vv.NETWORK_API+"/edge/"+_.payload.channelID).pipe((0,C.U)(B=>(this.logger.info(B),this.store.dispatch((0,O.uO)({payload:_.payload.uiMessage})),this.store.dispatch((0,E.PC)({payload:{action:"Lookup",status:w.Bn.COMPLETED}})),{type:w.uR.SET_LOOKUP_LND,payload:B})),(0,h.K)(B=>(this.handleErrorWithAlert("Lookup",_.payload.uiMessage,"Channel Lookup Failed",this.CHILD_API_URL+w.vv.NETWORK_API+"/edge/"+_.payload.channelID,B),(0,b.of)({type:w.pg.VOID})))))))),this.invoiceLookup=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(w.uR.INVOICE_LOOKUP_LND),(0,I.z)(_=>{this.store.dispatch((0,O.ac)({payload:w.m6.SEARCHING_INVOICE})),this.store.dispatch((0,E.PC)({payload:{action:"Lookup",status:w.Bn.INITIATED}}));let B=this.CHILD_API_URL+w.vv.INVOICES_API+"/lookup";return B=_.payload.paymentAddress&&""!==_.payload.paymentAddress?B+"?payment_addr="+_.payload.paymentAddress:B+"?payment_hash="+_.payload.paymentHash,this.httpClient.get(B).pipe((0,C.U)(V=>(this.logger.info(V),this.store.dispatch((0,O.uO)({payload:w.m6.SEARCHING_INVOICE})),this.store.dispatch((0,E.PC)({payload:{action:"Lookup",status:w.Bn.COMPLETED}})),this.store.dispatch((0,E.aL)({payload:V})),{type:w.uR.SET_LOOKUP_LND,payload:V})),(0,h.K)(V=>(this.store.dispatch((0,E.PC)({payload:{action:"Lookup",status:w.Bn.ERROR}})),this.handleErrorWithoutAlert("Lookup",w.m6.SEARCHING_INVOICE,"Invoice Lookup Failed",V),_.payload.openSnackBar&&this.store.dispatch((0,O.jW)({payload:{message:"Invoice Refresh Failed.",type:"ERROR"}})),(0,b.of)({type:w.uR.SET_LOOKUP_LND,payload:{error:V}}))))}))),this.paymentLookup=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(w.uR.PAYMENT_LOOKUP_LND),(0,I.z)(_=>(this.store.dispatch((0,O.ac)({payload:w.m6.SEARCHING_PAYMENT})),this.store.dispatch((0,E.PC)({payload:{action:"Lookup",status:w.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+w.vv.PAYMENTS_API+"/lookup/"+_.payload).pipe((0,C.U)(B=>(this.logger.info(B),this.store.dispatch((0,O.uO)({payload:w.m6.SEARCHING_PAYMENT})),this.store.dispatch((0,E.PC)({payload:{action:"Lookup",status:w.Bn.COMPLETED}})),this.store.dispatch((0,E.qY)({payload:B})),{type:w.uR.SET_LOOKUP_LND,payload:B})),(0,h.K)(B=>(this.store.dispatch((0,E.PC)({payload:{action:"Lookup",status:w.Bn.ERROR}})),this.handleErrorWithoutAlert("Lookup",w.m6.SEARCHING_PAYMENT,"Payment Lookup Failed",B),(0,b.of)({type:w.uR.SET_LOOKUP_LND,payload:{error:B}})))))))),this.setLookup=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(w.uR.SET_LOOKUP_LND),(0,C.U)(_=>(this.logger.info(_.payload),_.payload))),{dispatch:!1}),this.getRestoreChannelList=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(w.uR.RESTORE_CHANNELS_LIST_LND),(0,I.z)(()=>(this.store.dispatch((0,E.PC)({payload:{action:"RestoreChannelsList",status:w.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+w.vv.CHANNELS_BACKUP_API+"/restore/list").pipe((0,C.U)(_=>(this.logger.info(_),this.store.dispatch((0,E.PC)({payload:{action:"RestoreChannelsList",status:w.Bn.COMPLETED}})),{type:w.uR.SET_RESTORE_CHANNELS_LIST_LND,payload:_||{all_restore_exists:!1,files:[]}})),(0,h.K)(_=>(this.handleErrorWithAlert("RestoreChannelsList",w.m6.NO_SPINNER,"Restore Channels List Failed",this.CHILD_API_URL+w.vv.CHANNELS_BACKUP_API,_),(0,b.of)({type:w.pg.VOID})))))))),this.setRestoreChannelList=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(w.uR.SET_RESTORE_CHANNELS_LIST_LND),(0,C.U)(_=>(this.logger.info(_.payload),_.payload))),{dispatch:!1}),this.allLightningTransactionsFetch=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(w.uR.GET_ALL_LIGHTNING_TRANSATIONS_LND),(0,I.z)(()=>(this.store.dispatch((0,E.PC)({payload:{action:"FetchLightningTransactions",status:w.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+w.vv.PAYMENTS_API+"/alltransactions").pipe((0,C.U)(_=>(this.logger.info(_),this.store.dispatch((0,E.PC)({payload:{action:"FetchLightningTransactions",status:w.Bn.COMPLETED}})),{type:w.uR.SET_ALL_LIGHTNING_TRANSATIONS_LND,payload:_})),(0,h.K)(_=>(this.handleErrorWithoutAlert("FetchLightningTransactions",w.m6.NO_SPINNER,"Fetching All Lightning Transaction Failed.",_),(0,b.of)({type:w.pg.VOID})))))))),this.pageSettingsFetch=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(w.uR.FETCH_PAGE_SETTINGS_LND),(0,I.z)(()=>(this.store.dispatch((0,E.PC)({payload:{action:"FetchPageSettings",status:w.Bn.INITIATED}})),this.httpClient.get(w.vv.PAGE_SETTINGS_API).pipe((0,C.U)(_=>(this.logger.info(_),this.store.dispatch((0,E.PC)({payload:{action:"FetchPageSettings",status:w.Bn.COMPLETED}})),this.invoicesPageSize=(_&&Object.keys(_).length>0?_.find(B=>"transactions"===B.pageId)?.tables.find(B=>"invoices"===B.tableId):w.gK.find(B=>"transactions"===B.pageId)?.tables.find(B=>"invoices"===B.tableId)).recordsPerPage,this.paymentsPageSize=(_&&Object.keys(_).length>0?_.find(B=>"transactions"===B.pageId)?.tables.find(B=>"payments"===B.tableId):w.gK.find(B=>"transactions"===B.pageId)?.tables.find(B=>"payments"===B.tableId)).recordsPerPage,this.store.dispatch((0,E.WM)({payload:{num_max_invoices:this.invoicesPageSize,reversed:!0}})),{type:w.uR.SET_PAGE_SETTINGS_LND,payload:_||[]})),(0,h.K)(_=>(this.handleErrorWithoutAlert("FetchPageSettings",w.m6.NO_SPINNER,"Fetching Page Settings Failed.",_),(0,b.of)({type:w.pg.VOID})))))))),this.savePageSettings=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(w.uR.SAVE_PAGE_SETTINGS_LND),(0,I.z)(_=>(this.store.dispatch((0,O.ac)({payload:w.m6.UPDATE_PAGE_SETTINGS})),this.store.dispatch((0,E.PC)({payload:{action:"SavePageSettings",status:w.Bn.INITIATED}})),this.httpClient.post(w.vv.PAGE_SETTINGS_API,_.payload).pipe((0,C.U)(B=>{this.logger.info(B),this.store.dispatch((0,E.PC)({payload:{action:"SavePageSettings",status:w.Bn.COMPLETED}})),this.store.dispatch((0,O.uO)({payload:w.m6.UPDATE_PAGE_SETTINGS})),this.store.dispatch((0,O.jW)({payload:"Page Layout Updated Successfully!"}));const V=(B.find(Le=>"transactions"===Le.pageId)?.tables.find(Le=>"invoices"===Le.tableId)||w.gK.find(Le=>"transactions"===Le.pageId)?.tables.find(Le=>"invoices"===Le.tableId)).recordsPerPage,X=(B.find(Le=>"transactions"===Le.pageId)?.tables.find(Le=>"payments"===Le.tableId)||w.gK.find(Le=>"transactions"===Le.pageId)?.tables.find(Le=>"payments"===Le.tableId)).recordsPerPage;return V!==this.invoicesPageSize&&(this.invoicesPageSize=V,this.store.dispatch((0,E.WM)({payload:{num_max_invoices:this.invoicesPageSize,reversed:!0}}))),X!==this.paymentsPageSize&&(this.paymentsPageSize=X),{type:w.uR.SET_PAGE_SETTINGS_LND,payload:B||[]}}),(0,h.K)(B=>(this.handleErrorWithAlert("SavePageSettings",w.m6.UPDATE_PAGE_SETTINGS,"Page Settings Update Failed.",w.vv.PAGE_SETTINGS_API,B),(0,b.of)({type:w.pg.VOID})))))))),this.store.select(R.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||_.FetchBalanceBlockchain.status!==w.Bn.COMPLETED&&_.FetchBalanceBlockchain.status!==w.Bn.ERROR||_.FetchAllChannels.status!==w.Bn.COMPLETED&&_.FetchAllChannels.status!==w.Bn.ERROR||_.FetchPendingChannels.status!==w.Bn.COMPLETED&&_.FetchPendingChannels.status!==w.Bn.ERROR||this.flgInitialized||(this.store.dispatch((0,O.uO)({payload:w.m6.INITALIZE_NODE_DATA})),this.flgInitialized=!0)}),this.wsService.lndWSMessages.pipe((0,s.R)(this.unSubs[1])).subscribe(_=>{this.logger.info("Received new message from the service: "+JSON.stringify(_)),_&&(_.type===w.g8.INVOICE?(this.logger.info(_),_&&_.result&&_.result.payment_request&&this.store.dispatch((0,E.aL)({payload:_.result}))):this.logger.info("Received Event from WS: "+JSON.stringify(_)))})}initializeRemainingData(A,i){this.sessionService.setItem("lndUnlocked","true");const a={identity_pubkey:A.identity_pubkey,alias:A.alias,testnet:A.testnet,chains:A.chains,uris:A.uris,version:A.version?A.version.split(" ")[0]:""};this.store.dispatch((0,O.ac)({payload:w.m6.INITALIZE_NODE_DATA})),this.store.dispatch((0,O._V)({payload:a}));let u=this.location.path();u.includes("/cln/")?u=u?.replace("/cln/","/lnd/"):u.includes("/ecl/")&&(u=u?.replace("/ecl/","/lnd/")),(u.includes("/unlock")||u.includes("/login")||u.includes("/error")||""===u||"HOME"===i||u.includes("?access-key="))&&(u="/lnd/home"),this.router.navigate([u]),this.store.dispatch((0,E.wD)()),this.store.dispatch((0,E.Bl)()),this.store.dispatch((0,E.UR)()),this.store.dispatch((0,E.Z7)()),this.store.dispatch((0,E.Zh)()),this.store.dispatch((0,E.$W)()),this.store.dispatch((0,E.Rv)()),this.store.dispatch((0,E.SN)()),this.store.dispatch((0,E.cQ)({payload:{max_payments:1e5,reversed:!0}}))}handleErrorWithoutAlert(A,i,a,u){this.logger.error("ERROR IN: "+A+"\n"+JSON.stringify(u)),401===u.status?(this.logger.info("Redirecting to Login"),this.store.dispatch((0,O.ts)()),this.store.dispatch((0,O.kS)()),this.store.dispatch((0,O.jW)({payload:"Authentication Failed. Redirecting to Login."}))):(this.store.dispatch((0,O.uO)({payload:i})),this.store.dispatch((0,E.PC)({payload:{action:A,status:w.Bn.ERROR,statusCode:u.status.toString(),message:this.commonService.extractErrorMessage(u,a)}})))}handleErrorWithAlert(A,i,a,u,l){if(this.logger.error(l),401===l.status)this.logger.info("Redirecting to Login"),this.store.dispatch((0,O.ts)()),this.store.dispatch((0,O.kS)()),this.store.dispatch((0,O.jW)({payload:"Authentication Failed. Redirecting to Login."}));else{this.store.dispatch((0,O.uO)({payload:i}));const y=this.commonService.extractErrorMessage(l);this.store.dispatch((0,O.qR)({payload:{data:{type:"ERROR",alertTitle:a,message:{code:l.status,message:y,URL:u},component:S.H}}})),this.store.dispatch((0,E.PC)({payload:{action:A,status:w.Bn.ERROR,statusCode:l.status.toString(),message:y,URL:u}}))}}ngOnDestroy(){this.unSubs.forEach(A=>{A.next(null),A.complete()})}}$.\u0275fac=function(A){return new(A||$)(z.LFG(t.eX),z.LFG(U.eN),z.LFG(W.yh),z.LFG(K.mQ),z.LFG(ee.v),z.LFG(ie.m),z.LFG(ue.uw),z.LFG(le.F0),z.LFG(ne.d),z.LFG(de.Ye))},$.\u0275prov=z.Yz7({token:$,factory:$.\u0275fac})},6529:(Ve,q,p)=>{"use strict";p.d(q,{$k:()=>b,Bo:()=>P,Ef:()=>E,JG:()=>S,N7:()=>ue,P2:()=>W,PP:()=>d,Pr:()=>I,Q5:()=>s,T4:()=>ie,Wi:()=>w,ZW:()=>R,_f:()=>ne,bx:()=>de,dx:()=>O,l5:()=>le,ni:()=>U,qU:()=>K,yA:()=>h});var t=p(9653);const e=(0,t.ZF)("lnd"),b=(0,t.P1)(e,$=>$.nodeSettings),I=(0,t.P1)(e,$=>({pageSettings:$.pageSettings,apiCallStatus:$.apisCallStatus.FetchPageSettings})),s=(0,t.P1)(e,$=>$.information),h=((0,t.P1)(e,$=>({information:$.information,apiCallStatus:$.apisCallStatus.FetchInfo})),(0,t.P1)(e,$=>$.apisCallStatus)),P=(0,t.P1)(e,$=>({forwardingHistory:$.forwardingHistory,apiCallStatus:$.apisCallStatus.FetchForwardingHistory})),d=(0,t.P1)(e,$=>({listPayments:$.listPayments,apiCallStatus:$.apisCallStatus.FetchPayments})),S=(0,t.P1)(e,$=>({fees:$.fees,apiCallStatus:$.apisCallStatus.FetchFees})),w=(0,t.P1)(e,$=>({peers:$.peers,apiCallStatus:$.apisCallStatus.FetchPeers})),O=(0,t.P1)(e,$=>({transactions:$.transactions,apiCallStatus:$.apisCallStatus.FetchTransactions})),E=(0,t.P1)(e,$=>({listInvoices:$.listInvoices,apiCallStatus:$.apisCallStatus.FetchInvoices})),R=(0,t.P1)(e,$=>({channels:$.channels,channelsSummary:$.channelsSummary,lightningBalance:$.lightningBalance,apiCallStatus:$.apisCallStatus.FetchAllChannels})),U=((0,t.P1)(e,$=>({channelsSummary:$.channelsSummary,pendingChannels:$.pendingChannels,closedChannels:$.closedChannels,apiCallStatus:$.apisCallStatus.FetchAllChannels})),(0,t.P1)(e,$=>({pendingChannels:$.pendingChannels,pendingChannelsSummary:$.pendingChannelsSummary,apiCallStatus:$.apisCallStatus.FetchPendingChannels}))),W=(0,t.P1)(e,$=>({closedChannels:$.closedChannels,apiCallStatus:$.apisCallStatus.FetchClosedChannels})),K=(0,t.P1)(e,$=>({blockchainBalance:$.blockchainBalance,apiCallStatus:$.apisCallStatus.FetchBalanceBlockchain})),ie=((0,t.P1)(e,$=>({lightningBalance:$.lightningBalance,apiCallStatus:$.apisCallStatus.FetchAllChannels})),(0,t.P1)(e,$=>({utxos:$.utxos,apiCallStatus:$.apisCallStatus.FetchUTXOs}))),ue=(0,t.P1)(e,$=>({networkInfo:$.networkInfo,apiCallStatus:$.apisCallStatus.FetchNetwork})),le=(0,t.P1)(e,$=>({allLightningTransactions:$.allLightningTransactions,apiCallStatus:$.apisCallStatus.FetchLightningTransactions})),ne=(0,t.P1)(e,$=>({channels:$.channels,pendingChannels:$.pendingChannels,closedChannels:$.closedChannels})),de=(0,t.P1)(e,$=>({information:$.information,nodeSettings:$.nodeSettings,apiCallStatus:$.apisCallStatus.FetchInfo}))},8627:(Ve,q,p)=>{"use strict";p.d(q,{v:()=>ft});var t=p(5412),e=p(2687),b=p(7579),I=p(2722),s=p(7731),C=p(6529),h=p(4650),P=p(5043),d=p(62),S=p(7009),w=p(9653),O=p(6895),E=p(2216),R=p(1576),z=p(5829),U=p(4859),W=p(3546),K=p(752),ee=p(7392),ie=p(4850),ue=p(1572),le=p(266),ne=p(658),de=p(5199),$=p(3390);const me=["scrollContainer"];function A(Je,dt){if(1&Je&&h._UZ(0,"qr-code",33),2&Je){const Et=h.oxw();h.Q6J("value",null==Et.invoice?null:Et.invoice.payment_request)("size",Et.qrWidth)("errorCorrectionLevel","L")}}function i(Je,dt){1&Je&&(h.TgZ(0,"span",34),h._uU(1,"N/A"),h.qZA())}function a(Je,dt){if(1&Je&&h._UZ(0,"qr-code",33),2&Je){const Et=h.oxw();h.Q6J("value",null==Et.invoice?null:Et.invoice.payment_request)("size",Et.qrWidth)("errorCorrectionLevel","L")}}function u(Je,dt){1&Je&&(h.TgZ(0,"span",35),h._uU(1,"QR Code Not Applicable"),h.qZA())}function l(Je,dt){1&Je&&h._UZ(0,"mat-divider",22),2&Je&&h.Q6J("inset",!0)}function y(Je,dt){1&Je&&(h.ynx(0),h._uU(1," (zero amount) "),h.BQk())}function T(Je,dt){1&Je&&h._UZ(0,"span",41)}const L=function(){return[]};function m(Je,dt){if(1&Je&&(h.TgZ(0,"div",37)(1,"div",38)(2,"span",39),h._uU(3),h.ALo(4,"number"),h.qZA(),h.YNc(5,T,1,0,"span",40),h.qZA()()),2&Je){const Et=h.oxw(2);h.xp6(3),h.hij("",h.lcZ(4,2,null==Et.invoice?null:Et.invoice.amt_paid_sat)," Sats"),h.xp6(2),h.Q6J("ngForOf",h.DdM(4,L).constructor(35))}}function n(Je,dt){if(1&Je&&(h.TgZ(0,"div"),h._uU(1),h.ALo(2,"number"),h.qZA()),2&Je){const Et=h.oxw(2);h.xp6(1),h.hij("",h.lcZ(2,1,null==Et.invoice?null:Et.invoice.amt_paid_sat)," Sats")}}function _(Je,dt){if(1&Je&&(h.ynx(0),h.YNc(1,m,6,5,"div",36),h.YNc(2,n,3,3,"div",21),h.BQk()),2&Je){const Et=h.oxw();h.xp6(1),h.Q6J("ngIf",Et.flgInvoicePaid),h.xp6(1),h.Q6J("ngIf",!Et.flgInvoicePaid)}}function B(Je,dt){1&Je&&(h.TgZ(0,"span"),h._uU(1,"-"),h.qZA())}function V(Je,dt){1&Je&&h._UZ(0,"mat-spinner",43),2&Je&&h.Q6J("diameter",20)}function X(Je,dt){if(1&Je&&(h.ynx(0),h.YNc(1,B,2,0,"span",21),h.YNc(2,V,1,1,"mat-spinner",42),h.BQk()),2&Je){const Et=h.oxw();h.xp6(1),h.Q6J("ngIf","OPEN"!==(null==Et.invoice?null:Et.invoice.state)||!Et.flgVersionCompatible),h.xp6(1),h.Q6J("ngIf","OPEN"===(null==Et.invoice?null:Et.invoice.state)&&Et.flgVersionCompatible)}}function Le(Je,dt){1&Je&&h.GkF(0)}function $e(Je,dt){if(1&Je&&(h.TgZ(0,"div"),h.YNc(1,Le,1,0,"ng-container",44),h.qZA()),2&Je){h.oxw();const Et=h.MAs(79);h.xp6(1),h.Q6J("ngTemplateOutlet",Et)}}function We(Je,dt){if(1&Je){const Et=h.EpF();h.TgZ(0,"div",45)(1,"button",46),h.NdJ("click",function(){h.CHM(Et);const ot=h.oxw();return h.KtG(ot.onScrollDown())}),h.TgZ(2,"mat-icon",47),h._uU(3,"arrow_downward"),h.qZA()()()}}function Fe(Je,dt){1&Je&&(h.TgZ(0,"p"),h._uU(1,"Show Advanced"),h.qZA())}function De(Je,dt){1&Je&&(h.TgZ(0,"p"),h._uU(1,"Hide Advanced"),h.qZA())}function ye(Je,dt){if(1&Je){const Et=h.EpF();h.TgZ(0,"button",48),h.NdJ("copied",function(ot){h.CHM(Et);const wt=h.oxw();return h.KtG(wt.onCopyPayment(ot))}),h._uU(1),h.qZA()}if(2&Je){const Et=h.oxw();h.Q6J("payload",null==Et.invoice?null:Et.invoice.payment_request),h.xp6(1),h.Oqu(Et.screenSize===Et.screenSizeEnum.XS?"Copy Payment":"Copy Payment Request")}}function ce(Je,dt){if(1&Je){const Et=h.EpF();h.TgZ(0,"button",49),h.NdJ("click",function(){h.CHM(Et);const ot=h.oxw();return h.KtG(ot.onClose())}),h._uU(1,"OK"),h.qZA()}}const ve=function(Je){return{"mr-0":Je}};function oe(Je,dt){if(1&Je&&h._UZ(0,"span",64),2&Je){const Et=h.oxw(4);h.Q6J("ngClass",h.VKq(1,ve,Et.screenSize===Et.screenSizeEnum.XS))}}function je(Je,dt){if(1&Je&&h._UZ(0,"span",65),2&Je){const Et=h.oxw(4);h.Q6J("ngClass",h.VKq(1,ve,Et.screenSize===Et.screenSizeEnum.XS))}}function Ae(Je,dt){if(1&Je&&h._UZ(0,"span",66),2&Je){const Et=h.oxw(4);h.Q6J("ngClass",h.VKq(1,ve,Et.screenSize===Et.screenSizeEnum.XS))}}function he(Je,dt){if(1&Je&&(h.TgZ(0,"div",53)(1,"div",58)(2,"span",59),h.YNc(3,oe,1,3,"span",60),h.YNc(4,je,1,3,"span",61),h.YNc(5,Ae,1,3,"span",62),h._uU(6),h.qZA(),h.TgZ(7,"span",63),h._uU(8),h.ALo(9,"number"),h.qZA()(),h._UZ(10,"mat-divider",22),h.qZA()),2&Je){const Et=dt.$implicit,pt=h.oxw(3);h.xp6(3),h.Q6J("ngIf","SETTLED"===Et.state),h.xp6(1),h.Q6J("ngIf","ACCEPTED"===Et.state),h.xp6(1),h.Q6J("ngIf","CANCELED"===Et.state),h.xp6(1),h.hij(" ",Et.chan_id," "),h.xp6(2),h.Oqu(h.xi3(9,6,+Et.amt_msat/1e3||0,pt.getDecimalFormat(Et))),h.xp6(2),h.Q6J("inset",!0)}}function Ce(Je,dt){if(1&Je){const Et=h.EpF();h.TgZ(0,"div",17)(1,"mat-expansion-panel",51),h.NdJ("opened",function(){h.CHM(Et);const ot=h.oxw(2);return h.KtG(ot.flgOpened=!0)})("closed",function(){h.CHM(Et);const ot=h.oxw(2);return h.KtG(ot.onExpansionClosed())}),h.TgZ(2,"mat-expansion-panel-header")(3,"mat-panel-title")(4,"h4",52),h._uU(5,"HTLCs"),h.qZA()()(),h.TgZ(6,"div",53)(7,"div",54)(8,"span",55),h._uU(9,"Channel ID"),h.qZA(),h.TgZ(10,"span",56),h._uU(11,"Amount (Sats)"),h.qZA()(),h._UZ(12,"mat-divider",22),h.YNc(13,he,11,9,"div",57),h.qZA()()()}if(2&Je){const Et=h.oxw(2);h.xp6(12),h.Q6J("inset",!0),h.xp6(1),h.Q6J("ngForOf",null==Et.invoice?null:Et.invoice.htlcs)}}function te(Je,dt){1&Je&&h._UZ(0,"mat-divider",22),2&Je&&h.Q6J("inset",!0)}function Ue(Je,dt){if(1&Je&&(h._UZ(0,"mat-divider",22),h.TgZ(1,"div",17)(2,"div",23)(3,"h4",19),h._uU(4,"Preimage"),h.qZA(),h.TgZ(5,"span",24),h._uU(6),h.qZA()()(),h._UZ(7,"mat-divider",22),h.TgZ(8,"div",17)(9,"div",18)(10,"h4",19),h._uU(11,"State"),h.qZA(),h.TgZ(12,"span",24),h._uU(13),h.qZA()(),h.TgZ(14,"div",18)(15,"h4",19),h._uU(16,"Expiry"),h.qZA(),h.TgZ(17,"span",24),h._uU(18),h.ALo(19,"date"),h.qZA()()(),h._UZ(20,"mat-divider",22),h.TgZ(21,"div",17)(22,"div",18)(23,"h4",19),h._uU(24,"Private Routing Hints"),h.qZA(),h.TgZ(25,"span",24),h._uU(26),h.qZA()(),h.TgZ(27,"div",18)(28,"h4",19),h._uU(29,"AMP Invoice"),h.qZA(),h.TgZ(30,"span",24),h._uU(31),h.qZA()()(),h._UZ(32,"mat-divider",22),h.YNc(33,Ce,14,2,"div",50),h.YNc(34,te,1,1,"mat-divider",14)),2&Je){const Et=h.oxw();h.Q6J("inset",!0),h.xp6(6),h.Oqu((null==Et.invoice?null:Et.invoice.r_preimage)||"-"),h.xp6(1),h.Q6J("inset",!0),h.xp6(6),h.Oqu(null==Et.invoice?null:Et.invoice.state),h.xp6(5),h.Oqu(h.xi3(19,11,1e3*(+(null==Et.invoice?null:Et.invoice.creation_date)+ +(null==Et.invoice?null:Et.invoice.expiry)),"dd/MMM/y HH:mm")),h.xp6(2),h.Q6J("inset",!0),h.xp6(6),h.Oqu(null!=Et.invoice&&Et.invoice.private?"Yes":"No"),h.xp6(5),h.Oqu(null!=Et.invoice&&Et.invoice.is_amp?"Yes":"No"),h.xp6(1),h.Q6J("inset",!0),h.xp6(1),h.Q6J("ngIf",(null==Et.invoice?null:Et.invoice.htlcs)&&(null==Et.invoice?null:Et.invoice.htlcs.length)>0),h.xp6(1),h.Q6J("ngIf",(null==Et.invoice?null:Et.invoice.htlcs)&&(null==Et.invoice?null:Et.invoice.htlcs.length)>0)}}const Be=function(Je){return{"display-none":Je}},ae=function(Je){return{"xs-scroll-y":Je}},ge=function(Je){return{"h-50":Je}};class ft{constructor(dt,Et,pt,ot,wt,ke){this.dialogRef=dt,this.data=Et,this.logger=pt,this.commonService=ot,this.snackBar=wt,this.store=ke,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 b.x,new b.x,new b.x,new b.x,new b.x]}set container(dt){dt&&(this.scrollContainer=dt)}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(C.Q5).pipe((0,I.R)(this.unSubs[0])).subscribe(Et=>{this.flgVersionCompatible=this.commonService.isVersionCompatible(Et.version,"0.11.0")});const dt=JSON.parse(JSON.stringify(this.invoice));this.store.select(C.Ef).pipe((0,I.R)(this.unSubs[1])).subscribe(Et=>{const pt=this.invoice?.state,wt=(Et.listInvoices.invoices||[]).find(ke=>ke.r_hash===dt.r_hash)||null;wt&&(this.invoice=wt),pt!==this.invoice?.state&&"SETTLED"===this.invoice?.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(dt){this.snackBar.open("Payment request copied."),this.logger.info("Copied Text: "+dt)}getDecimalFormat(dt){return dt.amt_msat<1e3?"1.0-4":"1.0-0"}ngOnDestroy(){this.unSubs.forEach(dt=>{dt.next(null),dt.complete()})}}ft.\u0275fac=function(dt){return new(dt||ft)(h.Y36(t.so),h.Y36(t.WI),h.Y36(P.mQ),h.Y36(d.v),h.Y36(S.ux),h.Y36(w.yh))},ft.\u0275cmp=h.Xpm({type:ft,selectors:[["rtl-invoice-information"]],viewQuery:function(dt,Et){if(1&dt&&h.Gf(me,5),2&dt){let pt;h.iGM(pt=h.CRH())&&(Et.container=pt.first)}},decls:80,vars:49,consts:[["fxLayout","column","fxLayout.gt-sm","row","fxLayoutAlign.gt-sm","space-between stretch"],["fxFlex","35",1,"modal-qr-code-container","padding-gap-large",3,"fxLayoutAlign","ngClass"],[3,"value","size","errorCorrectionLevel",4,"ngIf"],["class","font-size-300",4,"ngIf"],["fxLayout","column","fxFlex","65"],["fxLayout","row","fxLayoutAlign","space-between center",1,"modal-info-header"],["fxFlex","95","fxLayoutAlign","start start"],[1,"page-title-img","mr-1",3,"icon"],[1,"page-title"],["tabindex","3","fxFlex","5","fxLayoutAlign","center center","mat-button","",1,"btn-close-x","p-0",3,"click"],[1,"padding-gap-x-large",3,"ngClass"],["fxLayout","column"],["fxFlex","30",1,"modal-qr-code-container","padding-gap",3,"fxLayoutAlign","ngClass"],["class","font-size-120",4,"ngIf"],["class","my-1",3,"inset",4,"ngIf"],[3,"ngClass"],["scrollContainer",""],["fxLayout","row"],["fxFlex","50"],["fxLayoutAlign","start",1,"font-bold-500"],[1,"foreground-secondary-text"],[4,"ngIf"],[1,"my-1",3,"inset"],["fxFlex","100"],[1,"overflow-wrap","foreground-secondary-text"],["fxLayout","row","fxLayoutAlign","start end","class","btn-sticky-container padding-gap-x-large",4,"ngIf"],["fxLayout","row","fxLayoutAlign","end center","fxFlex","100",1,"padding-gap-x-large","padding-gap-bottom-large"],["mat-button","","color","primary","type","reset","tabindex","1",1,"mr-1",3,"click"],[4,"ngIf","ngIfElse"],["hideAdvancedText",""],["autoFocus","","mat-button","","color","primary","tabindex","2","type","submit","rtlClipboard","",3,"payload","copied",4,"ngIf"],["autoFocus","","mat-button","","color","primary","tabindex","2","type","button",3,"click",4,"ngIf"],["advancedBlock",""],[3,"value","size","errorCorrectionLevel"],[1,"font-size-300"],[1,"font-size-120"],["class","invoice-animation-container",4,"ngIf"],[1,"invoice-animation-container"],[1,"invoice-animation-div"],[1,"wiggle"],["class","particles-circle",4,"ngFor","ngForOf"],[1,"particles-circle"],[3,"diameter",4,"ngIf"],[3,"diameter"],[4,"ngTemplateOutlet"],["fxLayout","row","fxLayoutAlign","start end",1,"btn-sticky-container","padding-gap-x-large"],["mat-mini-fab","","aria-label","Scroll Down","fxLayoutAlign","center center",3,"click"],["fxLayoutAlign","center center"],["autoFocus","","mat-button","","color","primary","tabindex","2","type","submit","rtlClipboard","",3,"payload","copied"],["autoFocus","","mat-button","","color","primary","tabindex","2","type","button",3,"click"],["fxLayout","row",4,"ngIf"],["fxLayout","column","fxLayoutAlign","start stretch","fxFlex","100",1,"flat-expansion-panel",3,"opened","closed"],["fxLayoutAlign","start center","fxFlex","100",1,"font-bold-500"],["fxLayout","column","fxLayoutAlign","start stretch","fxFlex","100"],["fxLayout","row","fxLayoutAlign","start start","fxFlex","100",1,"mt-minus-1"],["fxFlex","60",1,"foreground-secondary-text","font-bold-500"],["fxFlex","40",1,"foreground-secondary-text","font-bold-500"],["fxLayout","column","fxLayoutAlign","start stretch","fxFlex","100",4,"ngFor","ngForOf"],["fxLayout","row","fxLayoutAlign","start start","fxFlex","100"],["fxFlex","60",1,"foreground-secondary-text"],["class","dot green","matTooltip","Settled","matTooltipPosition","right",3,"ngClass",4,"ngIf"],["class","dot yellow","matTooltip","Accepted","matTooltipPosition","right",3,"ngClass",4,"ngIf"],["class","dot red","matTooltip","Cancelled","matTooltipPosition","right",3,"ngClass",4,"ngIf"],["fxFlex","40",1,"foreground-secondary-text"],["matTooltip","Settled","matTooltipPosition","right",1,"dot","green",3,"ngClass"],["matTooltip","Accepted","matTooltipPosition","right",1,"dot","yellow",3,"ngClass"],["matTooltip","Cancelled","matTooltipPosition","right",1,"dot","red",3,"ngClass"]],template:function(dt,Et){if(1&dt&&(h.TgZ(0,"div",0)(1,"div",1),h.YNc(2,A,1,3,"qr-code",2),h.YNc(3,i,2,0,"span",3),h.qZA(),h.TgZ(4,"div",4)(5,"mat-card-header",5)(6,"div",6),h._UZ(7,"fa-icon",7),h.TgZ(8,"span",8),h._uU(9),h.qZA()(),h.TgZ(10,"button",9),h.NdJ("click",function(){return Et.onClose()}),h._uU(11,"X"),h.qZA()(),h.TgZ(12,"mat-card-content",10)(13,"div",11)(14,"div",12),h.YNc(15,a,1,3,"qr-code",2),h.YNc(16,u,2,0,"span",13),h.qZA(),h.YNc(17,l,1,1,"mat-divider",14),h.TgZ(18,"div",15,16)(20,"div",17)(21,"div",18)(22,"h4",19),h._uU(23),h.qZA(),h.TgZ(24,"span",20),h._uU(25),h.ALo(26,"number"),h.YNc(27,y,2,0,"ng-container",21),h.qZA()(),h.TgZ(28,"div",18)(29,"h4",19),h._uU(30,"Amount Settled"),h.qZA(),h.TgZ(31,"span",20),h.YNc(32,_,3,2,"ng-container",21),h.YNc(33,X,3,2,"ng-container",21),h.qZA()()(),h._UZ(34,"mat-divider",22),h.TgZ(35,"div",17)(36,"div",18)(37,"h4",19),h._uU(38,"Date Created"),h.qZA(),h.TgZ(39,"span",20),h._uU(40),h.ALo(41,"date"),h.qZA()(),h.TgZ(42,"div",18)(43,"h4",19),h._uU(44,"Date Settled"),h.qZA(),h.TgZ(45,"span",20),h._uU(46),h.ALo(47,"date"),h.qZA()()(),h._UZ(48,"mat-divider",22),h.TgZ(49,"div",17)(50,"div",23)(51,"h4",19),h._uU(52,"Memo"),h.qZA(),h.TgZ(53,"span",20),h._uU(54),h.qZA()()(),h._UZ(55,"mat-divider",22),h.TgZ(56,"div",17)(57,"div",23)(58,"h4",19),h._uU(59,"Payment Request"),h.qZA(),h.TgZ(60,"span",24),h._uU(61),h.qZA()()(),h._UZ(62,"mat-divider",22),h.TgZ(63,"div",17)(64,"div",23)(65,"h4",19),h._uU(66,"Payment Hash"),h.qZA(),h.TgZ(67,"span",24),h._uU(68),h.qZA()()(),h.YNc(69,$e,2,1,"div",21),h.qZA()()(),h.YNc(70,We,4,0,"div",25),h.TgZ(71,"div",26)(72,"button",27),h.NdJ("click",function(){return Et.onShowAdvanced()}),h.YNc(73,Fe,2,0,"p",28),h.YNc(74,De,2,0,"ng-template",null,29,h.W1O),h.qZA(),h.YNc(76,ye,2,2,"button",30),h.YNc(77,ce,2,0,"button",31),h.qZA()()(),h.YNc(78,Ue,35,14,"ng-template",null,32,h.W1O)),2&dt){const pt=h.MAs(75);h.xp6(1),h.Q6J("fxLayoutAlign",null!=Et.invoice&&Et.invoice.payment_request&&""!==(null==Et.invoice?null:Et.invoice.payment_request)?"center start":"center center")("ngClass",h.VKq(41,Be,Et.screenSize===Et.screenSizeEnum.XS||Et.screenSize===Et.screenSizeEnum.SM)),h.xp6(1),h.Q6J("ngIf",(null==Et.invoice?null:Et.invoice.payment_request)&&""!==(null==Et.invoice?null:Et.invoice.payment_request)),h.xp6(1),h.Q6J("ngIf",!(null!=Et.invoice&&Et.invoice.payment_request)||""===(null==Et.invoice?null:Et.invoice.payment_request)),h.xp6(4),h.Q6J("icon",Et.faReceipt),h.xp6(2),h.Oqu(Et.screenSize===Et.screenSizeEnum.XS?Et.newlyAdded?"Created":"Invoice":Et.newlyAdded?"Invoice Created":"Invoice Information"),h.xp6(3),h.Q6J("ngClass",h.VKq(43,ae,Et.screenSize===Et.screenSizeEnum.XS)),h.xp6(2),h.Q6J("fxLayoutAlign",null!=Et.invoice&&Et.invoice.payment_request&&""!==(null==Et.invoice?null:Et.invoice.payment_request)?"center start":"center center")("ngClass",h.VKq(45,Be,Et.screenSize!==Et.screenSizeEnum.XS&&Et.screenSize!==Et.screenSizeEnum.SM)),h.xp6(1),h.Q6J("ngIf",(null==Et.invoice?null:Et.invoice.payment_request)&&""!==(null==Et.invoice?null:Et.invoice.payment_request)),h.xp6(1),h.Q6J("ngIf",!(null!=Et.invoice&&Et.invoice.payment_request)||""===(null==Et.invoice?null:Et.invoice.payment_request)),h.xp6(1),h.Q6J("ngIf",Et.screenSize===Et.screenSizeEnum.XS||Et.screenSize===Et.screenSizeEnum.SM),h.xp6(1),h.Q6J("ngClass",h.VKq(47,ge,(null==Et.invoice?null:Et.invoice.htlcs)&&(null==Et.invoice?null:Et.invoice.htlcs.length)>0&&Et.showAdvanced)),h.xp6(5),h.Oqu(Et.screenSize===Et.screenSizeEnum.XS?"Amount":"Amount Requested"),h.xp6(2),h.hij("",h.lcZ(26,33,(null==Et.invoice?null:Et.invoice.value)||0)," Sats"),h.xp6(2),h.Q6J("ngIf",!(null!=Et.invoice&&Et.invoice.value)||"0"===(null==Et.invoice?null:Et.invoice.value)),h.xp6(5),h.Q6J("ngIf",(null==Et.invoice?null:Et.invoice.amt_paid_sat)&&"OPEN"!==(null==Et.invoice?null:Et.invoice.state)),h.xp6(1),h.Q6J("ngIf",!(null!=Et.invoice&&Et.invoice.amt_paid_sat)||"0"===(null==Et.invoice?null:Et.invoice.amt_paid_sat)),h.xp6(1),h.Q6J("inset",!0),h.xp6(6),h.Oqu(h.xi3(41,35,1e3*(null==Et.invoice?null:Et.invoice.creation_date),"dd/MMM/y HH:mm")),h.xp6(6),h.Oqu(0!=+(null==Et.invoice?null:Et.invoice.settle_date)?h.xi3(47,38,1e3*+(null==Et.invoice?null:Et.invoice.settle_date),"dd/MMM/y HH:mm"):"-"),h.xp6(2),h.Q6J("inset",!0),h.xp6(6),h.Oqu(null==Et.invoice?null:Et.invoice.memo),h.xp6(1),h.Q6J("inset",!0),h.xp6(6),h.Oqu((null==Et.invoice?null:Et.invoice.payment_request)||"N/A"),h.xp6(1),h.Q6J("inset",!0),h.xp6(6),h.Oqu((null==Et.invoice?null:Et.invoice.r_hash)||""),h.xp6(1),h.Q6J("ngIf",Et.showAdvanced),h.xp6(1),h.Q6J("ngIf",(null==Et.invoice?null:Et.invoice.htlcs)&&(null==Et.invoice?null:Et.invoice.htlcs.length)>0&&Et.showAdvanced&&Et.flgOpened),h.xp6(3),h.Q6J("ngIf",!Et.showAdvanced)("ngIfElse",pt),h.xp6(3),h.Q6J("ngIf",(null==Et.invoice?null:Et.invoice.payment_request)&&""!==(null==Et.invoice?null:Et.invoice.payment_request)),h.xp6(1),h.Q6J("ngIf",!(null!=Et.invoice&&Et.invoice.payment_request)||""===(null==Et.invoice?null:Et.invoice.payment_request))}},dependencies:[O.mk,O.sg,O.O5,O.tP,E.BN,R.xw,R.Wh,R.yH,z.oO,U.lW,U.nh,W.dn,W.dk,K.ib,K.yz,K.yK,ee.Hw,ie.d,ue.Ou,le.gM,ne.uU,de.y,$.h,O.JJ,O.uU]})},7772:(Ve,q,p)=>{"use strict";p.d(q,{J:()=>b,_:()=>e});var t=p(7340);const e=[(0,t.X$)("opacityAnimation",[(0,t.eR)(":enter",[(0,t.oB)({opacity:0}),(0,t.jt)("1000ms ease-in",(0,t.oB)({opacity:1}))]),(0,t.eR)(":leave",[(0,t.jt)("0ms",(0,t.oB)({opacity:0}))])])],b=[(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:(Ve,q,p)=>{"use strict";p.d(q,{g:()=>e});var t=p(7340);const e=(0,t.X$)("routeAnimation",[(0,t.eR)("* => *",[(0,t.IO)(":enter, :leave",(0,t.oB)({position:"fixed",width:"100%"}),{optional:!0}),(0,t.ru)([(0,t.IO)(":enter",[(0,t.oB)({transform:"translateX(100%)"}),(0,t.jt)("1000ms ease-in-out",(0,t.oB)({transform:"translateX(0%)"}))],{optional:!0}),(0,t.IO)(":leave",[(0,t.oB)({transform:"translateX(0%)"}),(0,t.jt)("1000ms ease-in-out",(0,t.oB)({transform:"translateX(-100%)"}))],{optional:!0})])])])},113:(Ve,q,p)=>{"use strict";p.d(q,{l:()=>e});var t=p(7340);const e=[(0,t.X$)("sliderAnimation",[(0,t.SB)("*",(0,t.oB)({transform:"translateX(0)"})),(0,t.eR)("void => backward",[(0,t.oB)({transform:"translateX(-100%"}),(0,t.jt)("800ms")]),(0,t.eR)("backward => void",[(0,t.jt)("0ms",(0,t.oB)({transform:"translateX(100%)"}))]),(0,t.eR)("void => forward",[(0,t.oB)({transform:"translateX(100%"}),(0,t.jt)("800ms")]),(0,t.eR)("forward => void",[(0,t.jt)("0ms",(0,t.oB)({transform:"translateX(-100%)"}))])])]},1786:(Ve,q,p)=>{"use strict";p.d(q,{H:()=>w});var t=p(5412),e=p(4650),b=p(5043),I=p(6895),s=p(1576),C=p(4859),h=p(3546),P=p(4850),d=p(3390);function S(O,E){if(1&O&&(e.TgZ(0,"p",14),e._uU(1),e.qZA()),2&O){const R=e.oxw();e.xp6(1),e.Oqu(R.data.titleMessage)}}class w{constructor(E,R,z){this.dialogRef=E,this.data=R,this.logger=z,this.errorMessage=""}ngOnInit(){this.errorMessage=this.data.message&&this.data.message.message&&"object"==typeof this.data.message.message?JSON.stringify(this.data.message.message):this.data.message&&this.data.message.message?this.data.message.message:"",!this.data.message&&!this.data.titleMessage&&!this.data.message&&(this.data.titleMessage="Please Check Server Connection"),this.logger.info(this.data.message)}onClose(){this.dialogRef.close(!1)}}w.\u0275fac=function(E){return new(E||w)(e.Y36(t.so),e.Y36(t.WI),e.Y36(b.mQ))},w.\u0275cmp=e.Xpm({type:w,selectors:[["rtl-error-message"]],decls:29,vars:6,consts:[["fxLayout","row"],["fxFlex","100"],["fxLayout","row","fxLayoutAlign","space-between center",1,"modal-info-header"],["fxFlex","95","fxLayoutAlign","start start"],[1,"page-title"],["tabindex","3","fxFlex","5","fxLayoutAlign","center 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(E,R){1&E&&(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 R.onClose()}),e._uU(7,"X"),e.qZA()(),e.TgZ(8,"mat-card-content",6)(9,"div",7),e.YNc(10,S,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&E&&(e.xp6(5),e.Oqu(R.data.alertTitle||"ERROR"),e.xp6(5),e.Q6J("ngIf",R.data.titleMessage),e.xp6(4),e.Oqu(R.data.message.code),e.xp6(5),e.Oqu(R.errorMessage),e.xp6(5),e.Oqu(R.data.message.URL),e.xp6(3),e.Q6J("mat-dialog-close",!1))},dependencies:[I.O5,s.xw,s.Wh,s.yH,t.ZT,C.lW,h.dn,h.dk,P.d,d.h],styles:[".display-block[_ngcontent-%COMP%]{display:block}"]})},2615:(Ve,q,p)=>{"use strict";p.d(q,{a:()=>Fi});var t=p(4006),e=p(7579),b=p(2722),I=p(5412),s=p(2687),C=p(7772),h=p(7731),P=p(6529),d=p(4650),S=p(9653),w=p(9107),O=p(6895),E=p(5043),R=p(9116),z=p(62),U=p(1576),W=p(5829),K=p(4859),ee=p(3546),ie=p(752),ue=p(7392),le=p(4144),ne=p(9549),de=p(3162),$=p(1948),me=p(455),A=p(266),i=p(8425),a=p(3390),u=p(4850);function l(qe,St){1&qe&&d.GkF(0)}function y(qe,St){1&qe&&d.GkF(0)}const T=function(qe){return{"h-5":qe}};function L(qe,St){if(1&qe&&(d.TgZ(0,"mat-expansion-panel",3)(1,"mat-expansion-panel-header")(2,"mat-panel-title")(3,"span",4),d._uU(4),d.ALo(5,"number"),d.qZA()()(),d.YNc(6,y,1,0,"ng-container",0),d.qZA()),2&qe){const xe=d.oxw(),Nt=d.MAs(4);d.Q6J("expanded",xe.panelExpanded)("ngClass",d.VKq(7,T,!xe.flgShowPanel)),d.xp6(4),d.AsE("Quote for ",xe.termCaption," amount (",d.lcZ(5,5,xe.quote.amount)," Sats)"),d.xp6(2),d.Q6J("ngTemplateOutlet",Nt)}}function m(qe,St){if(1&qe&&(d.TgZ(0,"div",19)(1,"h4",8),d._uU(2," Prepay Amount (Sats) "),d.TgZ(3,"mat-icon",20),d._uU(4,"info_outline"),d.qZA()(),d.TgZ(5,"span",10),d._uU(6),d.ALo(7,"number"),d.qZA()()),2&qe){const xe=d.oxw(2);d.xp6(6),d.Oqu(d.lcZ(7,1,null==xe.quote?null:xe.quote.prepay_amt_sat))}}function n(qe,St){1&qe&&d._UZ(0,"mat-divider",13)}function _(qe,St){if(1&qe&&(d.TgZ(0,"div",6)(1,"div",21)(2,"h4",8),d._uU(3," Swap Server Node Pubkey "),d.TgZ(4,"mat-icon",22),d._uU(5,"info_outline"),d.qZA()(),d.TgZ(6,"span",10),d._uU(7),d.qZA()()()),2&qe){const xe=d.oxw(2);d.xp6(7),d.Oqu(null==xe.quote?null:xe.quote.swap_payment_dest)}}function B(qe,St){if(1&qe&&(d.TgZ(0,"div",5)(1,"div",6)(2,"div",7)(3,"h4",8),d._uU(4," Swap Fee (Sats) "),d.TgZ(5,"mat-icon",9),d._uU(6,"info_outline"),d.qZA()(),d.TgZ(7,"span",10),d._uU(8),d.ALo(9,"number"),d.qZA()(),d.TgZ(10,"div",7)(11,"h4",8),d._uU(12),d.TgZ(13,"mat-icon",11),d._uU(14,"info_outline"),d.qZA()(),d.TgZ(15,"span",10),d._uU(16),d.ALo(17,"number"),d.qZA()(),d.YNc(18,m,8,3,"div",12),d.qZA(),d._UZ(19,"mat-divider",13),d.TgZ(20,"div",6)(21,"div",14)(22,"h4",8),d._uU(23," Max Off-chain Swap Routing Fee (Sats) "),d.TgZ(24,"mat-icon",15),d._uU(25,"info_outline"),d.qZA()(),d.TgZ(26,"span",10),d._uU(27),d.ALo(28,"number"),d.qZA()(),d.TgZ(29,"div",14)(30,"h4",8),d._uU(31," Max Off-chain Prepay Routing Fee (Sats) "),d.TgZ(32,"mat-icon",16),d._uU(33,"info_outline"),d.qZA()(),d.TgZ(34,"span",10),d._uU(35,"36"),d.qZA()()(),d.YNc(36,n,1,0,"mat-divider",17),d.YNc(37,_,8,1,"div",18),d.qZA()),2&qe){const xe=d.oxw();d.xp6(2),d.Q6J("fxFlex",null!=xe.quote&&xe.quote.prepay_amt_sat?"30":"50"),d.xp6(6),d.Oqu(d.lcZ(9,9,null==xe.quote?null:xe.quote.swap_fee_sat)),d.xp6(2),d.Q6J("fxFlex",null!=xe.quote&&xe.quote.prepay_amt_sat?"35":"50"),d.xp6(2),d.hij(" ",null!=xe.quote&&xe.quote.htlc_sweep_fee_sat?"HTLC Sweep Fee (Sats)":null!=xe.quote&&xe.quote.htlc_publish_fee_sat?"HTLC Publish Fee (Sats)":""," "),d.xp6(4),d.Oqu(d.lcZ(17,11,null!=xe.quote&&xe.quote.htlc_sweep_fee_sat?xe.quote.htlc_sweep_fee_sat:null!=xe.quote&&xe.quote.htlc_publish_fee_sat?xe.quote.htlc_publish_fee_sat:0)),d.xp6(2),d.Q6J("ngIf",null==xe.quote?null:xe.quote.prepay_amt_sat),d.xp6(9),d.Oqu(d.lcZ(28,13,(null==xe.quote?null:xe.quote.amount)*((null!=xe.quote&&xe.quote.off_chain_swap_routing_fee_percentage?null==xe.quote?null:xe.quote.off_chain_swap_routing_fee_percentage:2)/100))),d.xp6(9),d.Q6J("ngIf",""!==(null==xe.quote?null:xe.quote.swap_payment_dest)),d.xp6(1),d.Q6J("ngIf",""!==(null==xe.quote?null:xe.quote.swap_payment_dest))}}class V{constructor(){this.quote={},this.termCaption="",this.showPanel=!0,this.panelExpanded=!1,this.flgShowPanel=!1}ngOnInit(){setTimeout(()=>{this.flgShowPanel=!0},1200)}}function X(qe,St){1&qe&&d.GkF(0)}function Le(qe,St){if(1&qe&&(d.TgZ(0,"div",3)(1,"span",4),d._uU(2),d.qZA()()),2&qe){const xe=d.oxw();d.xp6(2),d.Oqu(null!=xe.loopStatus&&xe.loopStatus.error?null==xe.loopStatus?null:xe.loopStatus.error:"Unknown Error.")}}function $e(qe,St){if(1&qe&&(d.TgZ(0,"div",3)(1,"div",5)(2,"div",6)(3,"h4",7),d._uU(4,"ID"),d.qZA(),d.TgZ(5,"span",4),d._uU(6),d.qZA()()(),d._UZ(7,"mat-divider",8),d.TgZ(8,"div",5)(9,"div",6)(10,"h4",7),d._uU(11,"HTLC Address"),d.qZA(),d.TgZ(12,"span",4),d._uU(13),d.qZA()()()()),2&qe){const xe=d.oxw();d.xp6(6),d.Oqu(null==xe.loopStatus?null:xe.loopStatus.id_bytes),d.xp6(7),d.Oqu(null==xe.loopStatus?null:xe.loopStatus.htlc_address)}}V.\u0275fac=function(St){return new(St||V)},V.\u0275cmp=d.Xpm({type:V,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(St,xe){if(1&St&&(d.YNc(0,l,1,0,"ng-container",0),d.YNc(1,L,7,9,"ng-template",null,1,d.W1O),d.YNc(3,B,38,15,"ng-template",null,2,d.W1O)),2&St){const Nt=d.MAs(2),qt=d.MAs(4);d.Q6J("ngTemplateOutlet",xe.showPanel?Nt:qt)}},dependencies:[O.mk,O.O5,O.tP,U.xw,U.Wh,U.yH,W.oO,ie.ib,ie.yz,ie.yK,ue.Hw,u.d,A.gM,O.JJ]});class We{constructor(){}}We.\u0275fac=function(St){return new(St||We)},We.\u0275cmp=d.Xpm({type:We,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(St,xe){if(1&St&&(d.YNc(0,X,1,0,"ng-container",0),d.YNc(1,Le,3,1,"ng-template",null,1,d.W1O),d.YNc(3,$e,14,2,"ng-template",null,2,d.W1O)),2&St){const Nt=d.MAs(2),qt=d.MAs(4);d.Q6J("ngTemplateOutlet",null!=xe.loopStatus&&xe.loopStatus.error?Nt:qt)}},dependencies:[O.tP,U.xw,U.Wh,U.yH,u.d]});var Fe=p(113);function De(qe,St){1&qe&&d.GkF(0)}const ye=function(qe,St){return{"small-svg":qe,"large-svg":St}};function ce(qe,St){if(1&qe){const xe=d.EpF();d.TgZ(0,"div",6),d.NdJ("swipe",function(qt){d.CHM(xe);const mi=d.oxw();return d.KtG(mi.onSwipe(qt))}),d.O4$(),d.TgZ(1,"svg",7)(2,"desc"),d._uU(3,"Created with Sketch."),d.qZA(),d.TgZ(4,"g",8)(5,"g",9)(6,"g",10)(7,"g",11),d._UZ(8,"circle",12)(9,"path",13),d.qZA(),d.TgZ(10,"g",14),d._UZ(11,"ellipse",15)(12,"ellipse",16)(13,"rect",17)(14,"rect",18)(15,"rect",19)(16,"rect",20)(17,"rect",21)(18,"rect",22)(19,"rect",23)(20,"rect",24)(21,"rect",25)(22,"rect",26)(23,"rect",27)(24,"rect",28)(25,"rect",29),d.qZA()()()()(),d.kcU(),d.TgZ(26,"div",30)(27,"mat-card-title"),d._uU(28,"Loop In explained."),d.qZA()(),d.TgZ(29,"div",31)(30,"mat-card-subtitle",32),d._uU(31," Lightning Loop is a non custodial service offered by Lightning Labs to bridge on-chain and off-chain Bitcoin using Submarine swaps. "),d.qZA()()()}if(2&qe){const xe=d.oxw();d.Q6J("@sliderAnimation",xe.animationDirection),d.xp6(1),d.Q6J("ngClass",d.WLB(2,ye,xe.screenSize===xe.screenSizeEnum.XS,xe.screenSize!==xe.screenSizeEnum.XS))}}function ve(qe,St){if(1&qe){const xe=d.EpF();d.TgZ(0,"div",6),d.NdJ("swipe",function(qt){d.CHM(xe);const mi=d.oxw();return d.KtG(mi.onSwipe(qt))}),d.O4$(),d.TgZ(1,"svg",33)(2,"desc"),d._uU(3,"Created with Sketch."),d.qZA(),d.TgZ(4,"defs")(5,"linearGradient",34),d._UZ(6,"stop",35)(7,"stop",36)(8,"stop",37),d.qZA()(),d.TgZ(9,"g",8)(10,"g",38)(11,"g",39)(12,"g",40),d._UZ(13,"rect",41)(14,"rect",42)(15,"rect",43)(16,"circle",44)(17,"rect",45)(18,"rect",46)(19,"circle",47)(20,"rect",48)(21,"rect",49)(22,"rect",50)(23,"rect",51)(24,"rect",52)(25,"circle",53)(26,"circle",54)(27,"circle",55),d.qZA(),d.TgZ(28,"g",56)(29,"g",57)(30,"g",58),d._UZ(31,"path",59)(32,"rect",60)(33,"polygon",61),d.TgZ(34,"g",62),d._UZ(35,"path",63),d.qZA(),d._UZ(36,"rect",64)(37,"rect",65)(38,"rect",66)(39,"rect",67)(40,"rect",68)(41,"rect",69)(42,"rect",70)(43,"path",71)(44,"path",72),d.qZA(),d.TgZ(45,"g",73),d._UZ(46,"path",74)(47,"path",75)(48,"path",76)(49,"path",77)(50,"path",78)(51,"path",79)(52,"path",80)(53,"path",81)(54,"path",82)(55,"path",83)(56,"path",84)(57,"circle",85)(58,"circle",86),d.qZA(),d._UZ(59,"path",87),d.qZA()()()()()(),d.kcU(),d.TgZ(60,"div",30)(61,"mat-card-title"),d._uU(62,"Step 1: Deciding to Loop In"),d.qZA()(),d.TgZ(63,"div",31)(64,"mat-card-subtitle",32),d._uU(65," Your outgoing capacity is depleted and you want to regain it without opening new channels. "),d.qZA()()()}if(2&qe){const xe=d.oxw();d.Q6J("@sliderAnimation",xe.animationDirection),d.xp6(1),d.Q6J("ngClass",d.WLB(2,ye,xe.screenSize===xe.screenSizeEnum.XS,xe.screenSize!==xe.screenSizeEnum.XS))}}function oe(qe,St){if(1&qe){const xe=d.EpF();d.TgZ(0,"div",6),d.NdJ("swipe",function(qt){d.CHM(xe);const mi=d.oxw();return d.KtG(mi.onSwipe(qt))}),d.O4$(),d.TgZ(1,"svg",88)(2,"desc"),d._uU(3,"Created with Sketch."),d.qZA(),d.TgZ(4,"defs")(5,"linearGradient",89),d._UZ(6,"stop",35)(7,"stop",36)(8,"stop",37),d.qZA()(),d.TgZ(9,"g",90)(10,"g",91)(11,"g",92)(12,"g",93)(13,"g",94),d._UZ(14,"circle",95)(15,"path",96),d.TgZ(16,"g",97),d._UZ(17,"polygon",98)(18,"polygon",99)(19,"path",100),d.qZA(),d.TgZ(20,"g",101),d._UZ(21,"polygon",102)(22,"path",103)(23,"rect",104)(24,"path",105)(25,"rect",106)(26,"rect",107)(27,"rect",108)(28,"rect",109)(29,"circle",110)(30,"path",111),d.TgZ(31,"g",112)(32,"g",113),d._UZ(33,"g",114),d.qZA(),d._UZ(34,"g",115),d.qZA()()(),d.TgZ(35,"g",116)(36,"g",40),d._UZ(37,"rect",117)(38,"rect",42)(39,"rect",43)(40,"circle",118)(41,"rect",45)(42,"rect",46)(43,"circle",119)(44,"rect",48)(45,"rect",49)(46,"rect",50)(47,"rect",51)(48,"rect",52)(49,"circle",120)(50,"circle",54)(51,"circle",55)(52,"circle",121),d.qZA(),d.TgZ(53,"g",56)(54,"g",57)(55,"g",58),d._UZ(56,"path",59)(57,"rect",60)(58,"polygon",61),d.TgZ(59,"g",122),d._UZ(60,"path",63),d.qZA(),d._UZ(61,"rect",123)(62,"rect",124)(63,"rect",125)(64,"rect",126)(65,"rect",127)(66,"rect",128)(67,"rect",129)(68,"path",130)(69,"path",72),d.qZA(),d.TgZ(70,"g",73),d._UZ(71,"path",131)(72,"path",132)(73,"path",133)(74,"path",134)(75,"path",135)(76,"path",136)(77,"path",80)(78,"path",81)(79,"path",137)(80,"path",83)(81,"path",138)(82,"circle",85)(83,"circle",86),d.qZA(),d._UZ(84,"path",139),d.qZA()()()(),d._UZ(85,"path",140)(86,"path",141),d.qZA()()()(),d.kcU(),d.TgZ(87,"div",30)(88,"mat-card-title"),d._uU(89,"Step 2: Send payment out"),d.qZA()(),d.TgZ(90,"div",31)(91,"mat-card-subtitle",32),d._uU(92," Your node sends funds on-chain to loop server to be swapped with off-chain liquidity. "),d.qZA()()()}if(2&qe){const xe=d.oxw();d.Q6J("@sliderAnimation",xe.animationDirection),d.xp6(1),d.Q6J("ngClass",d.WLB(2,ye,xe.screenSize===xe.screenSizeEnum.XS,xe.screenSize!==xe.screenSizeEnum.XS))}}function je(qe,St){if(1&qe){const xe=d.EpF();d.TgZ(0,"div",6),d.NdJ("swipe",function(qt){d.CHM(xe);const mi=d.oxw();return d.KtG(mi.onSwipe(qt))}),d.O4$(),d.TgZ(1,"svg",142)(2,"desc"),d._uU(3,"Created with Sketch."),d.qZA(),d.TgZ(4,"g",90)(5,"g",143)(6,"g",144)(7,"g")(8,"g",145)(9,"g",146),d._UZ(10,"circle",12)(11,"path",147),d.qZA(),d.TgZ(12,"g",14),d._UZ(13,"ellipse",148)(14,"ellipse",16)(15,"rect",17)(16,"rect",18)(17,"rect",19)(18,"rect",20)(19,"rect",21)(20,"rect",22)(21,"rect",23)(22,"rect",24)(23,"rect",25)(24,"rect",26)(25,"rect",27)(26,"rect",28)(27,"rect",29),d.qZA()(),d.TgZ(28,"g",149),d._UZ(29,"polygon",150)(30,"polygon",99)(31,"path",151),d.qZA(),d.TgZ(32,"g",152),d._UZ(33,"polygon",102)(34,"path",103)(35,"rect",104)(36,"path",105)(37,"rect",106)(38,"rect",107)(39,"rect",108)(40,"rect",109)(41,"circle",110)(42,"path",111),d.TgZ(43,"g",112)(44,"g",113),d._UZ(45,"g",114),d.qZA(),d._UZ(46,"g",115),d.qZA()()(),d._UZ(47,"path",153),d.qZA()()()(),d.kcU(),d.TgZ(48,"div",30)(49,"mat-card-title"),d._uU(50,"Step 3: Recieve Funds Off-chain"),d.qZA()(),d.TgZ(51,"div",31)(52,"mat-card-subtitle",32),d._uU(53," Loop server sends equivalent funds off-chain to your node by making a lightning payment to you. "),d.qZA()()()}if(2&qe){const xe=d.oxw();d.Q6J("@sliderAnimation",xe.animationDirection),d.xp6(1),d.Q6J("ngClass",d.WLB(2,ye,xe.screenSize===xe.screenSizeEnum.XS,xe.screenSize!==xe.screenSizeEnum.XS))}}function Ae(qe,St){if(1&qe){const xe=d.EpF();d.TgZ(0,"div",6),d.NdJ("swipe",function(qt){d.CHM(xe);const mi=d.oxw();return d.KtG(mi.onSwipe(qt))}),d.O4$(),d.TgZ(1,"svg",154)(2,"desc"),d._uU(3,"Created with Sketch."),d.qZA(),d.TgZ(4,"defs")(5,"linearGradient",34),d._UZ(6,"stop",35)(7,"stop",36)(8,"stop",37),d.qZA()(),d.TgZ(9,"g",90)(10,"g",155)(11,"g",156)(12,"g",157)(13,"g",158)(14,"g",40),d._UZ(15,"rect",159)(16,"rect",160)(17,"rect",161)(18,"circle",162)(19,"rect",163)(20,"rect",164)(21,"circle",165)(22,"rect",166)(23,"rect",167)(24,"rect",168)(25,"rect",169)(26,"circle",170)(27,"circle",171),d.qZA(),d.TgZ(28,"g",172),d._UZ(29,"path",173)(30,"rect",174)(31,"polygon",175)(32,"circle",176)(33,"path",177)(34,"rect",178)(35,"rect",179)(36,"rect",180)(37,"rect",181)(38,"rect",182)(39,"rect",183)(40,"rect",184)(41,"path",185)(42,"path",186),d.qZA(),d._UZ(43,"path",187),d.qZA()(),d._UZ(44,"circle",188),d.qZA()()()(),d.kcU(),d.TgZ(45,"div",30)(46,"mat-card-title"),d._uU(47,"Done!"),d.qZA()(),d.TgZ(48,"div",31)(49,"mat-card-subtitle",32),d._uU(50," You send the payment on-chain from your wallet and also move remote balance to the local side of the node, gaining outgoing capacity. "),d.qZA()()()}if(2&qe){const xe=d.oxw();d.Q6J("@sliderAnimation",xe.animationDirection),d.xp6(1),d.Q6J("ngClass",d.WLB(2,ye,xe.screenSize===xe.screenSizeEnum.XS,xe.screenSize!==xe.screenSizeEnum.XS))}}class he{constructor(St){this.commonService=St,this.animationDirection="forward",this.stepNumber=1,this.stepNumberChange=new d.vpe,this.screenSize="",this.screenSizeEnum=h.cu}ngOnInit(){this.screenSize=this.commonService.getScreenSize()}onSwipe(St){2===St.direction&&this.stepNumber<5?(this.stepNumber++,this.animationDirection="forward",this.stepNumberChange.emit(this.stepNumber)):4===St.direction&&this.stepNumber>1&&(this.stepNumber--,this.animationDirection="backward",this.stepNumberChange.emit(this.stepNumber))}}function Ce(qe,St){1&qe&&d.GkF(0)}he.\u0275fac=function(St){return new(St||he)(d.Y36(z.v))},he.\u0275cmp=d.Xpm({type:he,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(St,xe){if(1&St&&(d.YNc(0,De,1,0,"ng-container",0),d.YNc(1,ce,32,5,"ng-template",null,1,d.W1O),d.YNc(3,ve,66,5,"ng-template",null,2,d.W1O),d.YNc(5,oe,93,5,"ng-template",null,3,d.W1O),d.YNc(7,je,54,5,"ng-template",null,4,d.W1O),d.YNc(9,Ae,51,5,"ng-template",null,5,d.W1O)),2&St){const Nt=d.MAs(2),qt=d.MAs(4),mi=d.MAs(6),Ci=d.MAs(8),Ii=d.MAs(10);d.Q6J("ngTemplateOutlet",1===xe.stepNumber?Nt:2===xe.stepNumber?qt:3===xe.stepNumber?mi:4===xe.stepNumber?Ci:Ii)}},dependencies:[O.mk,O.tP,U.xw,U.Wh,U.yH,W.oO,ee.$j,ee.n5],styles:["svg.small-svg[_ngcontent-%COMP%]{height:50%;min-height:50%;max-width:100%}svg.large-svg[_ngcontent-%COMP%]{height:60%;min-height:60%;max-width:100%}"],data:{animation:[Fe.l]}});const te=function(qe,St){return{"small-svg":qe,"large-svg":St}};function Ue(qe,St){if(1&qe){const xe=d.EpF();d.TgZ(0,"div",6),d.NdJ("swipe",function(qt){d.CHM(xe);const mi=d.oxw();return d.KtG(mi.onSwipe(qt))}),d.O4$(),d.TgZ(1,"svg",7)(2,"desc"),d._uU(3,"Created with Sketch."),d.qZA(),d.TgZ(4,"g",8)(5,"g",9)(6,"g",10)(7,"g",11),d._UZ(8,"circle",12)(9,"path",13),d.qZA(),d.TgZ(10,"g",14),d._UZ(11,"ellipse",15)(12,"ellipse",16)(13,"rect",17)(14,"rect",18)(15,"rect",19)(16,"rect",20)(17,"rect",21)(18,"rect",22)(19,"rect",23)(20,"rect",24)(21,"rect",25)(22,"rect",26)(23,"rect",27)(24,"rect",28)(25,"rect",29),d.qZA()()()()(),d.kcU(),d.TgZ(26,"div",30)(27,"mat-card-title"),d._uU(28,"Loop Out explained."),d.qZA()(),d.TgZ(29,"div",31)(30,"mat-card-subtitle",32),d._uU(31," Lightning Loop is a non custodial service offered by Lightning Labs to bridge on-chain and off-chain Bitcoin using Submarine swaps. "),d.qZA()()()}if(2&qe){const xe=d.oxw();d.Q6J("@sliderAnimation",xe.animationDirection),d.xp6(1),d.Q6J("ngClass",d.WLB(2,te,xe.screenSize===xe.screenSizeEnum.XS,xe.screenSize!==xe.screenSizeEnum.XS))}}function Be(qe,St){if(1&qe){const xe=d.EpF();d.TgZ(0,"div",6),d.NdJ("swipe",function(qt){d.CHM(xe);const mi=d.oxw();return d.KtG(mi.onSwipe(qt))}),d.O4$(),d.TgZ(1,"svg",33)(2,"desc"),d._uU(3,"Created with Sketch."),d.qZA(),d.TgZ(4,"defs")(5,"linearGradient",34),d._UZ(6,"stop",35)(7,"stop",36)(8,"stop",37),d.qZA()(),d.TgZ(9,"g",8)(10,"g",38)(11,"g",39)(12,"g",40)(13,"g",41)(14,"g",42),d._UZ(15,"rect",43)(16,"rect",44)(17,"rect",45)(18,"circle",46)(19,"rect",47)(20,"rect",48)(21,"circle",49)(22,"rect",50)(23,"rect",51)(24,"rect",52)(25,"rect",53)(26,"circle",54)(27,"circle",55),d.qZA(),d.TgZ(28,"g",56),d._UZ(29,"path",57)(30,"rect",58)(31,"polygon",59)(32,"circle",60)(33,"path",61)(34,"rect",62)(35,"rect",63)(36,"rect",64)(37,"rect",65)(38,"rect",66)(39,"rect",67)(40,"rect",68)(41,"path",69)(42,"path",70),d.qZA(),d._UZ(43,"path",71),d.qZA()(),d._UZ(44,"circle",72),d.qZA()()()(),d.kcU(),d.TgZ(45,"div",30)(46,"mat-card-title"),d._uU(47,"Step 1: Deciding to Loop Out"),d.qZA()(),d.TgZ(48,"div",31)(49,"mat-card-subtitle",32),d._uU(50," You have a channel with a local balance amount and you want to gain inbound liquidity. "),d.qZA()()()}if(2&qe){const xe=d.oxw();d.Q6J("@sliderAnimation",xe.animationDirection),d.xp6(1),d.Q6J("ngClass",d.WLB(2,te,xe.screenSize===xe.screenSizeEnum.XS,xe.screenSize!==xe.screenSizeEnum.XS))}}function ae(qe,St){if(1&qe){const xe=d.EpF();d.TgZ(0,"div",6),d.NdJ("swipe",function(qt){d.CHM(xe);const mi=d.oxw();return d.KtG(mi.onSwipe(qt))}),d.O4$(),d.TgZ(1,"svg",73)(2,"desc"),d._uU(3,"Created with Sketch."),d.qZA(),d.TgZ(4,"defs")(5,"linearGradient",74),d._UZ(6,"stop",35)(7,"stop",36)(8,"stop",37),d.qZA()(),d.TgZ(9,"g",8)(10,"g",75)(11,"g",76),d._UZ(12,"circle",77)(13,"path",78),d.TgZ(14,"g",79),d._UZ(15,"polygon",80)(16,"polygon",81)(17,"path",82),d.qZA(),d.TgZ(18,"g",83),d._UZ(19,"polygon",84)(20,"path",85)(21,"rect",86)(22,"path",87)(23,"rect",88)(24,"rect",89)(25,"rect",90)(26,"rect",91)(27,"circle",92)(28,"path",93),d.TgZ(29,"g",94)(30,"g",95),d._UZ(31,"g",96),d.qZA(),d._UZ(32,"g",97),d.qZA(),d._UZ(33,"path",98),d.qZA(),d.TgZ(34,"g",99)(35,"g",41)(36,"g",42),d._UZ(37,"rect",43)(38,"rect",44)(39,"rect",45)(40,"circle",46)(41,"rect",47)(42,"rect",48)(43,"circle",49)(44,"rect",50)(45,"rect",51)(46,"rect",52)(47,"rect",53)(48,"circle",100)(49,"circle",54)(50,"circle",55)(51,"circle",101),d.qZA(),d.TgZ(52,"g",56),d._UZ(53,"path",57)(54,"rect",102)(55,"polygon",103)(56,"circle",104)(57,"path",61)(58,"rect",105)(59,"rect",106)(60,"rect",107)(61,"rect",108)(62,"rect",109)(63,"rect",110)(64,"rect",68)(65,"path",69)(66,"path",70),d.qZA(),d._UZ(67,"path",111),d.qZA()()()()()(),d.kcU(),d.TgZ(68,"div",30)(69,"mat-card-title"),d._uU(70,"Step 2: Send lightning payment"),d.qZA()(),d.TgZ(71,"div",31)(72,"mat-card-subtitle",32),d._uU(73," Your node pays a lightning invoice for the amount requested via the loop service. This moves the local balance, for the amount paid, to the remote side of the channel. "),d.qZA()()()}if(2&qe){const xe=d.oxw();d.Q6J("@sliderAnimation",xe.animationDirection),d.xp6(1),d.Q6J("ngClass",d.WLB(2,te,xe.screenSize===xe.screenSizeEnum.XS,xe.screenSize!==xe.screenSizeEnum.XS))}}function ge(qe,St){if(1&qe){const xe=d.EpF();d.TgZ(0,"div",6),d.NdJ("swipe",function(qt){d.CHM(xe);const mi=d.oxw();return d.KtG(mi.onSwipe(qt))}),d.O4$(),d.TgZ(1,"svg",112)(2,"desc"),d._uU(3,"Created with Sketch."),d.qZA(),d.TgZ(4,"g",8)(5,"g",113)(6,"g",114)(7,"g",115)(8,"g",116),d._UZ(9,"circle",12)(10,"path",117),d.qZA(),d.TgZ(11,"g",14),d._UZ(12,"ellipse",118)(13,"ellipse",16)(14,"rect",17)(15,"rect",18)(16,"rect",19)(17,"rect",20)(18,"rect",21)(19,"rect",22)(20,"rect",23)(21,"rect",24)(22,"rect",25)(23,"rect",26)(24,"rect",27)(25,"rect",28)(26,"rect",29),d.qZA()(),d.TgZ(27,"g",119),d._UZ(28,"polygon",80)(29,"polygon",120)(30,"path",82),d.qZA(),d.TgZ(31,"g",121),d._UZ(32,"polygon",84)(33,"path",85)(34,"rect",86)(35,"path",87)(36,"rect",88)(37,"rect",89)(38,"rect",90)(39,"rect",91)(40,"circle",122)(41,"path",93),d.TgZ(42,"g",94)(43,"g",95),d._UZ(44,"g",96),d.qZA(),d._UZ(45,"g",97),d.qZA(),d._UZ(46,"path",123),d.qZA()()()()(),d.kcU(),d.TgZ(47,"div",30)(48,"mat-card-title"),d._uU(49,"Step 3: Receive funds back"),d.qZA()(),d.TgZ(50,"div",31)(51,"mat-card-subtitle",32),d._uU(52," Loop service then sends you a payment on-chain for the amount same as the lightning payment minus the fee. "),d.qZA()()()}if(2&qe){const xe=d.oxw();d.Q6J("@sliderAnimation",xe.animationDirection),d.xp6(1),d.Q6J("ngClass",d.WLB(2,te,xe.screenSize===xe.screenSizeEnum.XS,xe.screenSize!==xe.screenSizeEnum.XS))}}function ft(qe,St){if(1&qe){const xe=d.EpF();d.TgZ(0,"div",6),d.NdJ("swipe",function(qt){d.CHM(xe);const mi=d.oxw();return d.KtG(mi.onSwipe(qt))}),d.O4$(),d.TgZ(1,"svg",124)(2,"desc"),d._uU(3,"Created with Sketch."),d.qZA(),d.TgZ(4,"defs")(5,"linearGradient",34),d._UZ(6,"stop",35)(7,"stop",36)(8,"stop",37),d.qZA()(),d.TgZ(9,"g",8)(10,"g",125)(11,"g",126)(12,"g",42),d._UZ(13,"rect",127)(14,"rect",128)(15,"rect",129)(16,"circle",130)(17,"rect",131)(18,"rect",132)(19,"circle",133)(20,"rect",134)(21,"rect",135)(22,"rect",136)(23,"rect",137)(24,"rect",138)(25,"circle",139)(26,"circle",140)(27,"circle",141),d.qZA(),d.TgZ(28,"g",142)(29,"g",143)(30,"g",144),d._UZ(31,"path",145)(32,"rect",146)(33,"polygon",147),d.TgZ(34,"g",148),d._UZ(35,"path",149),d.qZA(),d._UZ(36,"rect",150)(37,"rect",151)(38,"rect",152)(39,"rect",153)(40,"rect",154)(41,"rect",155)(42,"rect",156)(43,"path",157)(44,"path",158),d.qZA(),d.TgZ(45,"g",159),d._UZ(46,"path",160)(47,"path",161)(48,"path",162)(49,"path",163)(50,"path",164)(51,"path",165)(52,"path",166)(53,"path",167)(54,"path",168)(55,"path",169)(56,"path",170)(57,"circle",171)(58,"circle",172),d.qZA(),d._UZ(59,"path",173),d.qZA()()()()()(),d.kcU(),d.TgZ(60,"div",30)(61,"mat-card-title"),d._uU(62,"Done!"),d.qZA()(),d.TgZ(63,"div",31)(64,"mat-card-subtitle",32),d._uU(65," Final settlement occurs when your node sweeps the on-chain payment and the loop server settles the lightning invoice. You receive the payment on-chain in your wallet and also move local balance to the remote side of the channel, gaining inbound capacity. "),d.qZA()()()}if(2&qe){const xe=d.oxw();d.Q6J("@sliderAnimation",xe.animationDirection),d.xp6(1),d.Q6J("ngClass",d.WLB(2,te,xe.screenSize===xe.screenSizeEnum.XS,xe.screenSize!==xe.screenSizeEnum.XS))}}class Je{constructor(St){this.commonService=St,this.animationDirection="forward",this.stepNumber=1,this.stepNumberChange=new d.vpe,this.screenSize="",this.screenSizeEnum=h.cu}ngOnInit(){this.screenSize=this.commonService.getScreenSize()}onSwipe(St){2===St.direction&&this.stepNumber<5?(this.stepNumber++,this.animationDirection="forward",this.stepNumberChange.emit(this.stepNumber)):4===St.direction&&this.stepNumber>1&&(this.stepNumber--,this.animationDirection="backward",this.stepNumberChange.emit(this.stepNumber))}}Je.\u0275fac=function(St){return new(St||Je)(d.Y36(z.v))},Je.\u0275cmp=d.Xpm({type:Je,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(St,xe){if(1&St&&(d.YNc(0,Ce,1,0,"ng-container",0),d.YNc(1,Ue,32,5,"ng-template",null,1,d.W1O),d.YNc(3,Be,51,5,"ng-template",null,2,d.W1O),d.YNc(5,ae,74,5,"ng-template",null,3,d.W1O),d.YNc(7,ge,53,5,"ng-template",null,4,d.W1O),d.YNc(9,ft,66,5,"ng-template",null,5,d.W1O)),2&St){const Nt=d.MAs(2),qt=d.MAs(4),mi=d.MAs(6),Ci=d.MAs(8),Ii=d.MAs(10);d.Q6J("ngTemplateOutlet",1===xe.stepNumber?Nt:2===xe.stepNumber?qt:3===xe.stepNumber?mi:4===xe.stepNumber?Ci:Ii)}},dependencies:[O.mk,O.tP,U.xw,U.Wh,U.yH,W.oO,ee.$j,ee.n5],styles:["svg.small-svg[_ngcontent-%COMP%]{height:50%;min-height:50%;max-width:100%}svg.large-svg[_ngcontent-%COMP%]{height:60%;min-height:60%;max-width:100%}"],data:{animation:[Fe.l]}});const dt=["stepper"];function Et(qe,St){if(1&qe&&(d.TgZ(0,"div",48)(1,"p",49)(2,"strong"),d._uU(3,"Channel Peer:\xa0"),d.qZA(),d._uU(4),d.ALo(5,"titlecase"),d.qZA(),d.TgZ(6,"p",50)(7,"strong"),d._uU(8,"Channel ID:\xa0"),d.qZA(),d._uU(9),d.qZA(),d._UZ(10,"p",50),d.qZA()),2&qe){const xe=d.oxw(2);d.xp6(4),d.Oqu(d.lcZ(5,2,xe.channel.remote_alias)),d.xp6(5),d.Oqu(xe.channel.chan_id)}}function pt(qe,St){if(1&qe&&d._uU(0),2&qe){const xe=d.oxw(2);d.Oqu(xe.inputFormLabel)}}function ot(qe,St){1&qe&&(d.TgZ(0,"mat-error"),d._uU(1,"Amount is required."),d.qZA())}function wt(qe,St){if(1&qe&&(d.TgZ(0,"mat-error"),d._uU(1),d.ALo(2,"number"),d.qZA()),2&qe){const xe=d.oxw(2);d.xp6(1),d.hij("Amount must be greater than or equal to ",d.lcZ(2,1,xe.minQuote.amount),".")}}function ke(qe,St){if(1&qe&&(d.TgZ(0,"mat-error"),d._uU(1),d.ALo(2,"number"),d.qZA()),2&qe){const xe=d.oxw(2);d.xp6(1),d.hij("Amount must be less than or equal to ",d.lcZ(2,1,xe.maxQuote.amount),".")}}function Ke(qe,St){1&qe&&(d.TgZ(0,"mat-error"),d._uU(1,"Confirmation target is required."),d.qZA())}function xt(qe,St){1&qe&&(d.TgZ(0,"mat-error"),d._uU(1,"Confirmation target must be a positive number."),d.qZA())}function Y(qe,St){1&qe&&(d.TgZ(0,"mat-error"),d._uU(1,"Percentage is required."),d.qZA())}function Re(qe,St){1&qe&&(d.TgZ(0,"mat-error"),d._uU(1,"Percentage must be a positive number."),d.qZA())}function Tt(qe,St){if(1&qe&&(d.TgZ(0,"mat-form-field",50)(1,"mat-label"),d._uU(2,"Max Off-chain Routing Fee (%)"),d.qZA(),d._UZ(3,"input",51),d.YNc(4,Y,2,0,"mat-error",25),d.YNc(5,Re,2,0,"mat-error",25),d.qZA()),2&qe){const xe=d.oxw(2);d.xp6(3),d.Q6J("step",1),d.xp6(1),d.Q6J("ngIf",null==xe.inputFormGroup.controls.routingFeePercent.errors?null:xe.inputFormGroup.controls.routingFeePercent.errors.required),d.xp6(1),d.Q6J("ngIf",null==xe.inputFormGroup.controls.routingFeePercent.errors?null:xe.inputFormGroup.controls.routingFeePercent.errors.min)}}function Qe(qe,St){1&qe&&(d.TgZ(0,"div",52)(1,"mat-slide-toggle",53),d._uU(2,"Fast"),d.qZA(),d.TgZ(3,"mat-icon",54),d._uU(4,"info_outline"),d.qZA()())}function Ye(qe,St){if(1&qe&&d._uU(0),2&qe){const xe=d.oxw(2);d.Oqu(xe.quoteFormLabel)}}function Ht(qe,St){1&qe&&(d.TgZ(0,"p",55)(1,"mat-icon",56),d._uU(2,"close"),d.qZA(),d._uU(3,"Local balance amount is insufficient for swap."),d.qZA())}function Mt(qe,St){if(1&qe){const xe=d.EpF();d.TgZ(0,"button",57),d.NdJ("click",function(){d.CHM(xe);const qt=d.oxw(2);return d.KtG(qt.onValidateAmount())}),d._uU(1,"Next"),d.qZA()}}function kt(qe,St){if(1&qe){const xe=d.EpF();d.TgZ(0,"button",58),d.NdJ("click",function(){d.CHM(xe);const qt=d.oxw(2);return d.KtG(qt.onLoop())}),d._uU(1),d.qZA()}if(2&qe){const xe=d.oxw(2);d.xp6(1),d.hij("Initiate ",xe.loopDirectionCaption,"")}}function _t(qe,St){if(1&qe&&d._uU(0),2&qe){const xe=d.oxw(3);d.Oqu(xe.addressFormLabel)}}function we(qe,St){1&qe&&(d.TgZ(0,"mat-error"),d._uU(1,"Address is required."),d.qZA())}function J(qe,St){if(1&qe){const xe=d.EpF();d.TgZ(0,"mat-step",16)(1,"form",17),d.YNc(2,_t,1,1,"ng-template",18),d.TgZ(3,"div",59)(4,"mat-radio-group",60),d.NdJ("change",function(qt){d.CHM(xe);const mi=d.oxw(2);return d.KtG(mi.onAddressTypeChange(qt))}),d.TgZ(5,"mat-radio-button",61),d._uU(6,"Node Local Address"),d.qZA(),d.TgZ(7,"mat-radio-button",62),d._uU(8,"External Address"),d.qZA()(),d.TgZ(9,"mat-form-field",63)(10,"mat-label"),d._uU(11,"Address"),d.qZA(),d._UZ(12,"input",64),d.YNc(13,we,2,0,"mat-error",25),d.qZA()(),d.TgZ(14,"div",29)(15,"button",65),d.NdJ("click",function(){d.CHM(xe);const qt=d.oxw(2);return d.KtG(qt.onLoop())}),d._uU(16),d.qZA()()()()}if(2&qe){const xe=d.oxw(2);d.Q6J("stepControl",xe.addressFormGroup)("editable",xe.flgEditable),d.xp6(1),d.Q6J("formGroup",xe.addressFormGroup),d.xp6(11),d.Q6J("required","external"===xe.addressFormGroup.controls.addressType.value),d.xp6(1),d.Q6J("ngIf",null==xe.addressFormGroup.controls.address.errors?null:xe.addressFormGroup.controls.address.errors.required),d.xp6(3),d.hij("Initiate ",xe.loopDirectionCaption,"")}}function be(qe,St){if(1&qe&&d._uU(0),2&qe){const xe=d.oxw(2);d.hij("",xe.loopDirectionCaption," Status")}}function He(qe,St){if(1&qe&&(d.TgZ(0,"mat-icon",66),d._uU(1),d.qZA()),2&qe){const xe=d.oxw(2);d.xp6(1),d.Oqu(xe.loopStatus&&null!=xe.loopStatus&&xe.loopStatus.id_bytes?"check":"close")}}function at(qe,St){1&qe&&d._UZ(0,"div")}function ii(qe,St){1&qe&&d._UZ(0,"mat-progress-bar",67)}function Gt(qe,St){if(1&qe&&(d.TgZ(0,"h4",68),d._uU(1),d.qZA()),2&qe){const xe=d.oxw(2);d.xp6(1),d.Oqu(xe.loopStatus&&xe.loopStatus.error?xe.loopDirectionCaption+" failed.":xe.loopStatus&&xe.loopStatus.id_bytes&&xe.channel?xe.loopDirectionCaption+" request placed successfully. You can check the status of the request on the 'Loop' menu.":xe.loopDirectionCaption+" request placed successfully.")}}function ni(qe,St){if(1&qe){const xe=d.EpF();d.TgZ(0,"button",69),d.NdJ("click",function(){d.CHM(xe);const qt=d.oxw(2);return d.KtG(qt.goToLoop())}),d._uU(1,"Check Status"),d.qZA()}}function ut(qe,St){if(1&qe){const xe=d.EpF();d.TgZ(0,"button",70),d.NdJ("click",function(){d.CHM(xe);const qt=d.oxw(2);return d.KtG(qt.onRestart())}),d._uU(1,"Start Again"),d.qZA()}}function tt(qe,St){if(1&qe){const xe=d.EpF();d.TgZ(0,"div",3)(1,"div",4)(2,"mat-card-header",5)(3,"div",6)(4,"span",7),d._uU(5),d.qZA()(),d.TgZ(6,"div",8)(7,"button",9),d.NdJ("click",function(){d.CHM(xe);const qt=d.oxw();return d.KtG(qt.showInfo())}),d._uU(8,"?"),d.qZA(),d.TgZ(9,"button",10),d.NdJ("click",function(){d.CHM(xe);const qt=d.oxw();return d.KtG(qt.onClose())}),d._uU(10,"X"),d.qZA()()(),d.TgZ(11,"mat-card-content",11)(12,"div",12),d.YNc(13,Et,11,4,"div",13),d.TgZ(14,"mat-vertical-stepper",14,15),d.NdJ("selectionChange",function(qt){d.CHM(xe);const mi=d.oxw();return d.KtG(mi.stepSelectionChanged(qt))}),d.TgZ(16,"mat-step",16)(17,"form",17),d.YNc(18,pt,1,1,"ng-template",18),d.TgZ(19,"div",19),d._UZ(20,"rtl-loop-quote",20)(21,"rtl-loop-quote",20),d.qZA(),d.TgZ(22,"div",21)(23,"mat-form-field",22)(24,"mat-label"),d._uU(25,"Amount"),d.qZA(),d._UZ(26,"input",23),d.TgZ(27,"mat-hint"),d._uU(28),d.ALo(29,"number"),d.ALo(30,"number"),d.qZA(),d.TgZ(31,"span",24),d._uU(32,"Sats"),d.qZA(),d.YNc(33,ot,2,0,"mat-error",25),d.YNc(34,wt,3,3,"mat-error",25),d.YNc(35,ke,3,3,"mat-error",25),d.qZA(),d.TgZ(36,"mat-form-field",22)(37,"mat-label"),d._uU(38,"Sweep Confirmation Target"),d.qZA(),d._UZ(39,"input",26),d.YNc(40,Ke,2,0,"mat-error",25),d.YNc(41,xt,2,0,"mat-error",25),d.qZA(),d.YNc(42,Tt,6,3,"mat-form-field",27),d.qZA(),d.YNc(43,Qe,5,0,"div",28),d.TgZ(44,"div",29)(45,"button",30),d.NdJ("click",function(){d.CHM(xe);const qt=d.oxw();return d.KtG(qt.onEstimateQuote())}),d._uU(46,"Estimate Quote"),d.qZA()()()(),d.TgZ(47,"mat-step",16)(48,"form",17),d.YNc(49,Ye,1,1,"ng-template",18),d._UZ(50,"rtl-loop-quote",31),d.YNc(51,Ht,4,0,"p",32),d.TgZ(52,"div",29),d.YNc(53,Mt,2,0,"button",33),d.YNc(54,kt,2,1,"button",34),d.qZA()()(),d.YNc(55,J,17,6,"mat-step",35),d.TgZ(56,"mat-step",36)(57,"form",17),d.YNc(58,be,1,1,"ng-template",18),d.TgZ(59,"div",37)(60,"mat-expansion-panel",38)(61,"mat-expansion-panel-header")(62,"mat-panel-title")(63,"span",39),d._uU(64),d.YNc(65,He,2,1,"mat-icon",40),d.qZA()()(),d.YNc(66,at,1,0,"div",41),d.qZA(),d.YNc(67,ii,1,0,"mat-progress-bar",42),d.qZA(),d.YNc(68,Gt,2,1,"h4",43),d.TgZ(69,"div",29),d.YNc(70,ni,2,0,"button",44),d.YNc(71,ut,2,0,"button",45),d.qZA()()()(),d.TgZ(72,"div",46)(73,"button",47),d._uU(74,"Close"),d.qZA()()()()()()}if(2&qe){const xe=d.oxw(),Nt=d.MAs(2);d.Q6J("@opacityAnimation",void 0),d.xp6(3),d.Q6J("fxFlex",xe.screenSize===xe.screenSizeEnum.XS||xe.screenSize===xe.screenSizeEnum.SM?"83":"91"),d.xp6(2),d.Oqu(xe.channel?"Channel "+xe.loopDirectionCaption:xe.loopDirectionCaption),d.xp6(1),d.Q6J("fxFlex",xe.screenSize===xe.screenSizeEnum.XS||xe.screenSize===xe.screenSizeEnum.SM?"17":"9"),d.xp6(7),d.Q6J("ngIf",xe.channel),d.xp6(1),d.Q6J("linear",!0),d.xp6(2),d.Q6J("stepControl",xe.inputFormGroup)("editable",xe.flgEditable),d.xp6(1),d.Q6J("formGroup",xe.inputFormGroup),d.xp6(3),d.Q6J("quote",xe.minQuote)("termCaption","min")("panelExpanded",!1)("showPanel",!0),d.xp6(1),d.Q6J("quote",xe.maxQuote)("termCaption","max")("panelExpanded",!1)("showPanel",!0),d.xp6(2),d.Q6J("fxFlex",xe.direction===xe.LoopTypeEnum.LOOP_OUT?"35":"48"),d.xp6(3),d.Q6J("step",1e3),d.xp6(2),d.AsE("Range: ",d.lcZ(29,51,xe.minQuote.amount),"-",d.lcZ(30,53,xe.maxQuote.amount),""),d.xp6(5),d.Q6J("ngIf",null==xe.inputFormGroup.controls.amount.errors?null:xe.inputFormGroup.controls.amount.errors.required),d.xp6(1),d.Q6J("ngIf",null==xe.inputFormGroup.controls.amount.errors?null:xe.inputFormGroup.controls.amount.errors.min),d.xp6(1),d.Q6J("ngIf",null==xe.inputFormGroup.controls.amount.errors?null:xe.inputFormGroup.controls.amount.errors.max),d.xp6(1),d.Q6J("fxFlex",xe.direction===xe.LoopTypeEnum.LOOP_OUT?"30":"48"),d.xp6(3),d.Q6J("step",1),d.xp6(1),d.Q6J("ngIf",null==xe.inputFormGroup.controls.sweepConfTarget.errors?null:xe.inputFormGroup.controls.sweepConfTarget.errors.required),d.xp6(1),d.Q6J("ngIf",null==xe.inputFormGroup.controls.sweepConfTarget.errors?null:xe.inputFormGroup.controls.sweepConfTarget.errors.min),d.xp6(1),d.Q6J("ngIf",xe.direction===xe.LoopTypeEnum.LOOP_OUT),d.xp6(1),d.Q6J("ngIf",xe.direction===xe.LoopTypeEnum.LOOP_OUT),d.xp6(4),d.Q6J("stepControl",xe.quoteFormGroup)("editable",xe.flgEditable),d.xp6(1),d.Q6J("formGroup",xe.quoteFormGroup),d.xp6(2),d.Q6J("quote",xe.quote)("showPanel",!1),d.xp6(1),d.Q6J("ngIf",xe.inputFormGroup.controls.amount.value>xe.localBalanceToCompare),d.xp6(2),d.Q6J("ngIf",xe.direction===xe.LoopTypeEnum.LOOP_OUT),d.xp6(1),d.Q6J("ngIf",xe.direction===xe.LoopTypeEnum.LOOP_IN),d.xp6(1),d.Q6J("ngIf",xe.direction===xe.LoopTypeEnum.LOOP_OUT),d.xp6(1),d.Q6J("stepControl",xe.statusFormGroup),d.xp6(1),d.Q6J("formGroup",xe.statusFormGroup),d.xp6(3),d.Q6J("expanded",!!xe.loopStatus),d.xp6(4),d.Oqu(xe.loopStatus?xe.loopStatus.id_bytes?xe.loopDirectionCaption+" request details":xe.loopDirectionCaption+" error details":"Waiting for "+xe.loopDirectionCaption+" request..."),d.xp6(1),d.Q6J("ngIf",xe.loopStatus),d.xp6(1),d.Q6J("ngIf",!xe.loopStatus)("ngIfElse",Nt),d.xp6(1),d.Q6J("ngIf",!xe.loopStatus),d.xp6(1),d.Q6J("ngIf",xe.loopStatus),d.xp6(2),d.Q6J("ngIf",xe.loopStatus&&xe.loopStatus.id_bytes&&xe.channel),d.xp6(1),d.Q6J("ngIf",xe.loopStatus&&(xe.loopStatus.error||!xe.loopStatus.id_bytes)),d.xp6(2),d.Q6J("mat-dialog-close",!1)}}function vt(qe,St){if(1&qe&&d._UZ(0,"rtl-loop-status",71),2&qe){const xe=d.oxw();d.Q6J("loopStatus",xe.loopStatus)}}function ti(qe,St){if(1&qe){const xe=d.EpF();d.TgZ(0,"rtl-loop-out-info-graphics",88),d.NdJ("stepNumberChange",function(qt){d.CHM(xe);const mi=d.oxw(2);return d.KtG(mi.stepNumber=qt)}),d.qZA()}if(2&qe){const xe=d.oxw(2);d.Q6J("animationDirection",xe.animationDirection)("stepNumber",xe.stepNumber)}}function Ut(qe,St){if(1&qe){const xe=d.EpF();d.TgZ(0,"rtl-loop-in-info-graphics",88),d.NdJ("stepNumberChange",function(qt){d.CHM(xe);const mi=d.oxw(2);return d.KtG(mi.stepNumber=qt)}),d.qZA()}if(2&qe){const xe=d.oxw(2);d.Q6J("animationDirection",xe.animationDirection)("stepNumber",xe.stepNumber)}}const ht=function(qe,St){return{"dot-primary":qe,"dot-primary-lighter":St}};function Rt(qe,St){if(1&qe){const xe=d.EpF();d.TgZ(0,"span",89),d.NdJ("click",function(){const mi=d.CHM(xe).$implicit,Ci=d.oxw(2);return d.KtG(Ci.onStepChanged(mi))}),d._UZ(1,"p",90),d.qZA()}if(2&qe){const xe=St.$implicit,Nt=d.oxw(2);d.xp6(1),d.Q6J("ngClass",d.WLB(1,ht,Nt.stepNumber===xe,Nt.stepNumber!==xe))}}function Oe(qe,St){if(1&qe){const xe=d.EpF();d.TgZ(0,"button",91),d.NdJ("click",function(){d.CHM(xe);const qt=d.oxw(2);return d.KtG(qt.onReadMore())}),d._uU(1,"Read More"),d.qZA()}}function et(qe,St){if(1&qe){const xe=d.EpF();d.TgZ(0,"button",92),d.NdJ("click",function(){d.CHM(xe);const qt=d.oxw(2);return d.KtG(qt.onStepChanged(4))}),d._uU(1,"Back"),d.qZA()}}function it(qe,St){if(1&qe){const xe=d.EpF();d.TgZ(0,"button",93),d.NdJ("click",function(){d.CHM(xe);const qt=d.oxw(2);return qt.flgShowInfo=!1,d.KtG(qt.stepNumber=1)}),d._uU(1,"Close"),d.qZA()}}function ct(qe,St){if(1&qe){const xe=d.EpF();d.TgZ(0,"button",94),d.NdJ("click",function(){d.CHM(xe);const qt=d.oxw(2);return qt.flgShowInfo=!1,d.KtG(qt.stepNumber=1)}),d._uU(1,"Close"),d.qZA()}}function Dt(qe,St){if(1&qe){const xe=d.EpF();d.TgZ(0,"button",95),d.NdJ("click",function(){d.CHM(xe);const qt=d.oxw(2);return d.KtG(qt.onStepChanged(qt.stepNumber-1))}),d._uU(1,"Back"),d.qZA()}}function pi(qe,St){if(1&qe){const xe=d.EpF();d.TgZ(0,"button",96),d.NdJ("click",function(){d.CHM(xe);const qt=d.oxw(2);return d.KtG(qt.onStepChanged(qt.stepNumber+1))}),d._uU(1,"Next"),d.qZA()}}const Li=function(){return[1,2,3,4,5]};function xi(qe,St){if(1&qe){const xe=d.EpF();d.TgZ(0,"div",72)(1,"div",19)(2,"mat-card-header",73)(3,"div",74),d._UZ(4,"span",7),d.qZA(),d.TgZ(5,"div",75)(6,"button",76),d.NdJ("click",function(){d.CHM(xe);const qt=d.oxw();return qt.flgShowInfo=!1,d.KtG(qt.stepNumber=1)}),d._uU(7,"X"),d.qZA()()(),d.TgZ(8,"mat-card-content",77),d.YNc(9,ti,1,2,"rtl-loop-out-info-graphics",78),d.YNc(10,Ut,1,2,"rtl-loop-in-info-graphics",78),d.qZA(),d.TgZ(11,"div",79),d.YNc(12,Rt,2,4,"span",80),d.qZA(),d.TgZ(13,"div",81),d.YNc(14,Oe,2,0,"button",82),d.YNc(15,et,2,0,"button",83),d.YNc(16,it,2,0,"button",84),d.YNc(17,ct,2,0,"button",85),d.YNc(18,Dt,2,0,"button",86),d.YNc(19,pi,2,0,"button",87),d.qZA()()()}if(2&qe){const xe=d.oxw();d.Q6J("@opacityAnimation",void 0),d.xp6(9),d.Q6J("ngIf",xe.direction===xe.LoopTypeEnum.LOOP_OUT),d.xp6(1),d.Q6J("ngIf",xe.direction===xe.LoopTypeEnum.LOOP_IN),d.xp6(2),d.Q6J("ngForOf",d.DdM(10,Li)),d.xp6(2),d.Q6J("ngIf",5===xe.stepNumber),d.xp6(1),d.Q6J("ngIf",5===xe.stepNumber),d.xp6(1),d.Q6J("ngIf",5===xe.stepNumber),d.xp6(1),d.Q6J("ngIf",xe.stepNumber<5),d.xp6(1),d.Q6J("ngIf",xe.stepNumber>1&&xe.stepNumber<5),d.xp6(1),d.Q6J("ngIf",xe.stepNumber<5)}}class Fi{constructor(St,xe,Nt,qt,mi,Ci,Ii,Gi,Yi){this.dialogRef=St,this.data=xe,this.store=Nt,this.loopService=qt,this.formBuilder=mi,this.decimalPipe=Ci,this.logger=Ii,this.router=Gi,this.commonService=Yi,this.faInfoCircle=s.sqG,this.LoopTypeEnum=h.$I,this.direction=h.$I.LOOP_OUT,this.loopDirectionCaption="Loop out",this.loopStatus=null,this.inputFormLabel="Amount to loop out",this.quoteFormLabel="Confirm Quote",this.addressFormLabel="Withdrawal Address",this.prepayRoutingFee=36,this.flgShowInfo=!1,this.stepNumber=1,this.screenSize="",this.screenSizeEnum=h.cu,this.animationDirection="forward",this.flgEditable=!0,this.localBalanceToCompare=null,this.unSubs=[new e.x,new e.x,new e.x,new e.x,new e.x,new e.x,new e.x]}ngOnInit(){this.screenSize=this.commonService.getScreenSize(),this.channel=this.data.channel,this.minQuote=this.data.minQuote?this.data.minQuote:{},this.maxQuote=this.data.maxQuote?this.data.maxQuote:{},this.direction=this.data.direction||h.$I.LOOP_OUT,this.loopDirectionCaption=this.direction===h.$I.LOOP_IN?"Loop in":"Loop out",this.inputFormLabel="Amount to "+this.loopDirectionCaption,this.inputFormGroup=this.formBuilder.group({amount:[this.minQuote.amount,[t.kI.required,t.kI.min(this.minQuote.amount||0),t.kI.max(this.maxQuote.amount||0)]],sweepConfTarget:[6,[t.kI.required,t.kI.min(1)]],routingFeePercent:[2,[t.kI.required,t.kI.min(0)]],fast:[!1,[t.kI.required]]}),this.inputFormGroup.setErrors({Invalid:!0}),this.quoteFormGroup=this.formBuilder.group({}),this.addressFormGroup=this.formBuilder.group({addressType:["local",[t.kI.required]],address:[{value:"",disabled:!0}]}),this.direction===h.$I.LOOP_OUT&&this.addressFormGroup.setErrors({Invalid:!0}),this.statusFormGroup=this.formBuilder.group({}),this.onFormValueChanges(),this.store.select(P.ZW).pipe((0,b.R)(this.unSubs[6])).subscribe(St=>{this.localBalanceToCompare=this.channel&&this.channel.local_balance?+this.channel.local_balance:St.lightningBalance&&St.lightningBalance.local?+St.lightningBalance.local:null})}onFormValueChanges(){this.inputFormGroup.valueChanges.pipe((0,b.R)(this.unSubs[4])).subscribe(St=>{this.inputFormGroup.setErrors({Invalid:!0})}),this.direction===h.$I.LOOP_OUT&&this.addressFormGroup.valueChanges.pipe((0,b.R)(this.unSubs[5])).subscribe(St=>{this.addressFormGroup.setErrors({Invalid:!0})})}onAddressTypeChange(St){"external"===St.value?(this.addressFormGroup.controls.address.setValidators([t.kI.required]),this.addressFormGroup.controls.address.markAsTouched(),this.addressFormGroup.controls.address.enable()):(this.addressFormGroup.controls.address.setValidators(null),this.addressFormGroup.controls.address.markAsPristine(),this.addressFormGroup.controls.address.disable(),this.addressFormGroup.controls.address.setValue("")),this.addressFormGroup.setErrors({Invalid:!0})}onValidateAmount(){this.localBalanceToCompare&&this.inputFormGroup.controls.amount.value<=this.localBalanceToCompare&&this.stepper.next()}onLoop(){if(!this.inputFormGroup.controls.amount.value||this.minQuote.amount&&this.inputFormGroup.controls.amount.value<this.minQuote.amount||this.maxQuote.amount&&this.inputFormGroup.controls.amount.value>this.maxQuote.amount||!this.inputFormGroup.controls.sweepConfTarget.value||this.inputFormGroup.controls.sweepConfTarget.value<2||this.direction===h.$I.LOOP_OUT&&(!this.inputFormGroup.controls.routingFeePercent.value||this.inputFormGroup.controls.routingFeePercent.value<0)||this.direction===h.$I.LOOP_OUT&&"external"===this.addressFormGroup.controls.addressType.value&&(!this.addressFormGroup.controls.address.value||""===this.addressFormGroup.controls.address.value.trim()))return!0;if(this.flgEditable=!1,this.stepper.selected?.stepControl.setErrors(null),this.stepper.next(),this.direction===h.$I.LOOP_IN)this.loopService.loopIn(this.inputFormGroup.controls.amount.value,+(this.quote.swap_fee_sat||0),+(this.quote.htlc_publish_fee_sat||0),"",!0).pipe((0,b.R)(this.unSubs[0])).subscribe({next:St=>{this.loopStatus=St,this.loopService.listSwaps(),this.flgEditable=!0},error:St=>{this.loopStatus={error:St},this.flgEditable=!0,this.logger.error(St)}});else{const St=Math.ceil(this.inputFormGroup.controls.amount.value*(this.inputFormGroup.controls.routingFeePercent.value/100)),xe="external"===this.addressFormGroup.controls.addressType.value?this.addressFormGroup.controls.address.value:"",Nt=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,St,+(this.quote.htlc_sweep_fee_sat||0),this.prepayRoutingFee,+(this.quote.prepay_amt_sat||0),+(this.quote.swap_fee_sat||0),Nt,xe).pipe((0,b.R)(this.unSubs[1])).subscribe({next:qt=>{this.loopStatus=qt,this.loopService.listSwaps(),this.flgEditable=!0},error:qt=>{this.loopStatus={error:qt},this.flgEditable=!0,this.logger.error(qt)}})}}onEstimateQuote(){if(!this.inputFormGroup.controls.amount.value||this.minQuote.amount&&this.inputFormGroup.controls.amount.value<this.minQuote.amount||this.maxQuote.amount&&this.inputFormGroup.controls.amount.value>this.maxQuote.amount||!this.inputFormGroup.controls.sweepConfTarget.value||this.inputFormGroup.controls.sweepConfTarget.value<2)return!0;const St=this.inputFormGroup.controls.fast.value?0:(new Date).getTime()+18e5;this.direction===h.$I.LOOP_IN?this.loopService.getLoopInQuote(this.inputFormGroup.controls.amount.value,this.inputFormGroup.controls.sweepConfTarget.value,St).pipe((0,b.R)(this.unSubs[2])).subscribe(xe=>{this.quote=xe,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,St).pipe((0,b.R)(this.unSubs[3])).subscribe(xe=>{this.quote=xe,this.quote.off_chain_swap_routing_fee_percentage=this.inputFormGroup.controls.routingFeePercent.value?this.inputFormGroup.controls.routingFeePercent.value:2}),this.stepper.selected?.stepControl.setErrors(null),this.stepper.next()}stepSelectionChanged(St){switch(St.selectedIndex){case 0:default:this.inputFormLabel="Amount to "+this.loopDirectionCaption,this.quoteFormLabel="Confirm Quote",this.addressFormLabel="Withdrawal Address";break;case 1:this.inputFormLabel=this.inputFormGroup.controls.amount.value||this.inputFormGroup.controls.sweepConfTarget.value?this.direction===h.$I.LOOP_IN?this.loopDirectionCaption+" Amount: "+this.decimalPipe.transform(this.inputFormGroup.controls.amount.value?this.inputFormGroup.controls.amount.value:0)+" Sats | Target Confirmation: "+(this.inputFormGroup.controls.sweepConfTarget.value?this.inputFormGroup.controls.sweepConfTarget.value:6):this.loopDirectionCaption+" Amount: "+this.decimalPipe.transform(this.inputFormGroup.controls.amount.value?this.inputFormGroup.controls.amount.value:0)+" Sats | Target Confirmation: "+(this.inputFormGroup.controls.sweepConfTarget.value?this.inputFormGroup.controls.sweepConfTarget.value:6)+" | Percentage: "+(this.inputFormGroup.controls.routingFeePercent.value?this.inputFormGroup.controls.routingFeePercent.value:"2")+" | Fast: "+(this.inputFormGroup.controls.fast.value?"Enabled":"Disabled"):"Amount to "+this.loopDirectionCaption,this.quoteFormLabel="Confirm Quote",this.addressFormLabel="Withdrawal Address";break;case 2:this.inputFormLabel=this.inputFormGroup.controls.amount.value||this.inputFormGroup.controls.sweepConfTarget.value?this.direction===h.$I.LOOP_IN?this.loopDirectionCaption+" Amount: "+this.decimalPipe.transform(this.inputFormGroup.controls.amount.value?this.inputFormGroup.controls.amount.value:0)+" Sats | Target Confirmation: "+(this.inputFormGroup.controls.sweepConfTarget.value?this.inputFormGroup.controls.sweepConfTarget.value:6):this.loopDirectionCaption+" Amount: "+this.decimalPipe.transform(this.inputFormGroup.controls.amount.value?this.inputFormGroup.controls.amount.value:0)+" Sats | Target Confirmation: "+(this.inputFormGroup.controls.sweepConfTarget.value?this.inputFormGroup.controls.sweepConfTarget.value:6)+" | Fast: "+(this.inputFormGroup.controls.fast.value?"Enabled":"Disabled"):"Amount to "+this.loopDirectionCaption,this.quoteFormLabel=this.quote&&this.quote.swap_fee_sat&&(this.quote.htlc_sweep_fee_sat||this.quote.htlc_publish_fee_sat)&&this.quote.prepay_amt_sat?"Quote confirmed | Estimated Fees: "+this.decimalPipe.transform(+this.quote.swap_fee_sat+ +(this.quote.htlc_sweep_fee_sat?this.quote.htlc_sweep_fee_sat:this.quote.htlc_publish_fee_sat?this.quote.htlc_publish_fee_sat:0))+" Sats":"Quote confirmed",this.addressFormLabel=this.addressFormGroup.controls.addressType.value?"Withdrawal Address | Type: "+this.addressFormGroup.controls.addressType.value:"Withdrawal Address"}(this.direction===h.$I.LOOP_OUT&&1!==St.selectedIndex&&St.selectedIndex<St.previouslySelectedIndex||this.direction===h.$I.LOOP_IN&&St.selectedIndex<St.previouslySelectedIndex)&&St.selectedStep.stepControl.setErrors({Invalid:!0})}goToLoop(){this.dialogRef.close(!0),this.router.navigateByUrl("/services/loop")}onClose(){this.dialogRef.close(!0)}showInfo(){this.flgShowInfo=!0}onReadMore(){this.direction===h.$I.LOOP_IN?window.open("https://blog.lightning.engineering/announcement/2019/06/25/loop-in.html","_blank"):window.open("https://blog.lightning.engineering/technical/posts/2019/04/15/loop-out-in-depth.html","_blank"),this.onClose()}onStepChanged(St){this.animationDirection=St<this.stepNumber?"backward":"forward",this.stepNumber=St}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(St=>{St.next(null),St.complete()})}}Fi.\u0275fac=function(St){return new(St||Fi)(d.Y36(I.so),d.Y36(I.WI),d.Y36(S.yh),d.Y36(w.W),d.Y36(t.QS),d.Y36(O.JJ),d.Y36(E.mQ),d.Y36(R.F0),d.Y36(z.v))},Fi.\u0275cmp=d.Xpm({type:Fi,selectors:[["rtl-loop-modal"]],viewQuery:function(St,xe){if(1&St&&d.Gf(dt,5),2&St){let Nt;d.iGM(Nt=d.CRH())&&(xe.stepper=Nt.first)}},decls:4,vars:2,consts:[["fxLayout","column","fxFlex","100","fxLayoutAlign","start stretch",4,"ngIf"],["loopStatusBlock",""],["fxLayout","column","fxFlex","100","fxLayoutAlign","start stretch","class","info-graphics-container",4,"ngIf"],["fxLayout","column","fxFlex","100","fxLayoutAlign","start stretch"],["fxFlex","100"],["fxLayout","row","fxLayoutAlign","space-between center",1,"modal-info-header"],["fxLayoutAlign","start start",3,"fxFlex"],[1,"page-title"],["fxLayoutAlign","space-between end",3,"fxFlex"],["tabindex","21","mat-button","",1,"btn-close-x","p-0",3,"click"],["tabindex","22","mat-button","",1,"btn-close-x","p-0",3,"click"],[1,"padding-gap-x-large"],["fxLayout","column"],["class","padding-gap-large","fxLayout","row wrap","fxLayoutAlign","space-between stretch",4,"ngIf"],[3,"linear","selectionChange"],["stepper",""],[3,"stepControl","editable"],["fxLayout","column","fxLayoutAlign","start","fxLayoutAlign.gt-sm","space-between",1,"my-1",3,"formGroup"],["matStepLabel",""],["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between stretch"],[3,"quote","termCaption","panelExpanded","showPanel"],["fxLayout","row wrap","fxFlex","100","fxLayoutAlign","space-between center",1,"mt-1"],[3,"fxFlex"],["autoFocus","","matInput","","type","number","tabindex","1","formControlName","amount","required","",3,"step"],["matSuffix",""],[4,"ngIf"],["matInput","","type","number","tabindex","2","formControlName","sweepConfTarget","required","",3,"step"],["fxFlex","30",4,"ngIf"],["fxLayout","row wrap","fxFlex","100","fxLayoutAlign","start center","class","mt-1",4,"ngIf"],["fxLayout","row","fxLayoutAlign","start center","fxFlex","100",1,"mt-2"],["mat-button","","color","primary","tabindex","5","type","button",3,"click"],[3,"quote","showPanel"],["fxFlex","100","class","color-warn mt-2","fxLayoutAlign","start center",4,"ngIf"],["mat-button","","color","primary","tabindex","6","type","button",3,"click",4,"ngIf"],["mat-button","","color","primary","tabindex","7","type","button",3,"click",4,"ngIf"],[3,"stepControl","editable",4,"ngIf"],[3,"stepControl"],["fxLayout","row wrap","fxFlex","100","fxLayoutAlign","space-between stretch"],["fxFlex","100",1,"flat-expansion-panel",3,"expanded"],["fxLayoutAlign","start center","fxFlex","100"],["class","ml-1 icon-small",4,"ngIf"],[4,"ngIf","ngIfElse"],["fxFlex","100","color","primary","mode","indeterminate",4,"ngIf"],["fxLayoutAlign","start","class","font-bold-500 mt-2",4,"ngIf"],["mat-button","","color","primary","tabindex","12","type","button",3,"click",4,"ngIf"],["mat-button","","color","primary","tabindex","13","type","button",3,"click",4,"ngIf"],["fxLayout","row","fxFlex","100","fxLayoutAlign","end end"],["mat-button","","color","primary","tabindex","14","type","button","default","",3,"mat-dialog-close"],["fxLayout","row wrap","fxLayoutAlign","space-between stretch",1,"padding-gap-large"],["fxFlex","40"],["fxFlex","30"],["matInput","","type","number","tabindex","3","formControlName","routingFeePercent","required","",3,"step"],["fxLayout","row wrap","fxFlex","100","fxLayoutAlign","start center",1,"mt-1"],["tabindex","4","color","primary","formControlName","fast","fxFlex","none"],["matTooltip","Swap immediately (Might end up paying a higher on-chain fee)","matTooltipPosition","above","fxFlex","none",1,"info-icon"],["fxFlex","100","fxLayoutAlign","start center",1,"color-warn","mt-2"],[1,"mr-1","icon-small"],["mat-button","","color","primary","tabindex","6","type","button",3,"click"],["mat-button","","color","primary","tabindex","7","type","button",3,"click"],["fxLayout","row wrap","fxFlex","100","fxLayoutAlign","space-between stretch",1,"mt-1"],["color","primary","name","addressType","formControlName","addressType","fxFlex","100","fxLayoutAlign","space-between stretch",3,"change"],["fxFlex","48","tabindex","8","value","local"],["fxFlex","48","tabindex","9","value","external"],["fxLayout","column","fxFlex","100",1,"mt-1"],["matInput","","tabindex","10","formControlName","address",3,"required"],["mat-button","","color","primary","tabindex","11","type","button",3,"click"],[1,"ml-1","icon-small"],["fxFlex","100","color","primary","mode","indeterminate"],["fxLayoutAlign","start",1,"font-bold-500","mt-2"],["mat-button","","color","primary","tabindex","12","type","button",3,"click"],["mat-button","","color","primary","tabindex","13","type","button",3,"click"],["fxLayout","column",3,"loopStatus"],["fxLayout","column","fxFlex","100","fxLayoutAlign","start stretch",1,"info-graphics-container"],["fxLayout","row","fxFlex","8","fxLayoutAlign","space-between center",1,"modal-info-header"],["fxFlex","95","fxLayoutAlign","start start"],["fxFlex","5","fxLayoutAlign","end center"],["tabindex","19","mat-button","",1,"btn-close-x","p-0",3,"click"],["fxLayout","column","fxFlex","70","fxLayoutAlign","space-between center",1,"padding-gap-x-large"],["fxFlex","100",3,"animationDirection","stepNumber","stepNumberChange",4,"ngIf"],["fxLayout","row","fxFlex","10","fxLayoutAlign","center end",1,"padding-gap-x-large","padding-gap-bottom-large"],["fxLayoutAlign","center center","class","dots-stepper-block",3,"click",4,"ngFor","ngForOf"],["fxLayout","row","fxFlex","10","fxLayoutAlign","end end",1,"padding-gap-x-large","padding-gap-bottom-large"],["mat-button","","class","mr-1","color","primary","tabindex","15","type","button",3,"click",4,"ngIf"],["mat-button","","class","mr-1","color","primary","tabindex","16","type","button",3,"click",4,"ngIf"],["mat-button","","color","primary","tabindex","17","type","button",3,"click",4,"ngIf"],["mat-button","","class","mr-1","color","primary","tabindex","18","type","button",3,"click",4,"ngIf"],["mat-button","","class","mr-1","color","primary","tabindex","19","type","button",3,"click",4,"ngIf"],["mat-button","","color","primary","tabindex","20","type","button",3,"click",4,"ngIf"],["fxFlex","100",3,"animationDirection","stepNumber","stepNumberChange"],["fxLayoutAlign","center center",1,"dots-stepper-block",3,"click"],[1,"dot","tiny-dot","mr-0",3,"ngClass"],["mat-button","","color","primary","tabindex","15","type","button",1,"mr-1",3,"click"],["mat-button","","color","primary","tabindex","16","type","button",1,"mr-1",3,"click"],["mat-button","","color","primary","tabindex","17","type","button",3,"click"],["mat-button","","color","primary","tabindex","18","type","button",1,"mr-1",3,"click"],["mat-button","","color","primary","tabindex","19","type","button",1,"mr-1",3,"click"],["mat-button","","color","primary","tabindex","20","type","button",3,"click"]],template:function(St,xe){1&St&&(d.YNc(0,tt,75,55,"div",0),d.YNc(1,vt,1,1,"ng-template",null,1,d.W1O),d.YNc(3,xi,20,11,"div",2)),2&St&&(d.Q6J("ngIf",!xe.flgShowInfo),d.xp6(3),d.Q6J("ngIf",xe.flgShowInfo))},dependencies:[O.mk,O.sg,O.O5,t._Y,t.Fj,t.wV,t.JJ,t.JL,t.Q7,t.sg,t.u,U.xw,U.Wh,U.yH,W.oO,I.ZT,K.lW,ee.dn,ee.dk,ie.ib,ie.yz,ie.yK,ue.Hw,le.Nt,ne.KE,ne.hX,ne.bx,ne.TO,ne.R9,de.pW,$.VQ,$.U0,me.Rr,A.gM,i.C0,i.VY,i.Vq,a.h,V,We,he,Je,O.JJ,O.rS],styles:[".dots-stepper-block[_ngcontent-%COMP%]{width:3rem}.info-graphics-container[_ngcontent-%COMP%]{max-height:60rem;min-height:60rem;overflow-x:hidden}"],data:{animation:[C._]}})},9442:(Ve,q,p)=>{"use strict";p.d(q,{w:()=>P});var t=p(2687),e=p(4650),b=p(9116),I=p(2216),s=p(1576),C=p(4859),h=p(3546);class P{constructor(S){this.router=S,this.faTimes=t.NBC}goToHelp(){this.router.navigate(["/help"])}}P.\u0275fac=function(S){return new(S||P)(e.Y36(b.F0))},P.\u0275cmp=e.Xpm({type:P,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(S,w){1&S&&(e.TgZ(0,"div",0),e._UZ(1,"fa-icon",1),e.TgZ(2,"span",2),e._uU(3,"Page Not Found"),e.qZA()(),e.TgZ(4,"div",3)(5,"mat-card")(6,"mat-card-content",4)(7,"div",5)(8,"div",6),e._uU(9,"This page does not exist!"),e.qZA(),e.TgZ(10,"span",7)(11,"button",8),e.NdJ("click",function(){return w.goToHelp()}),e._uU(12,"Go To Help"),e.qZA()()()()()()),2&S&&(e.xp6(1),e.Q6J("icon",w.faTimes))},dependencies:[I.BN,s.xw,s.Wh,s.yH,C.lW,h.a8,h.dn],encapsulation:2})},3390:(Ve,q,p)=>{"use strict";p.d(q,{h:()=>e});var t=p(4650);class e{constructor(I){this.el=I}ngAfterContentInit(){setTimeout(()=>{this.el.nativeElement.focus()},500)}}e.\u0275fac=function(I){return new(I||e)(t.Y36(t.SBq))},e.\u0275dir=t.lG2({type:e,selectors:[["","autoFocus",""]],inputs:{appAutoFocus:"appAutoFocus"}})},5199:(Ve,q,p)=>{"use strict";p.d(q,{y:()=>e});var t=p(4650);class e{constructor(){this.copied=new t.vpe}onClick(I){I.preventDefault(),this.payload&&navigator.clipboard&&navigator.clipboard.writeText(this.payload.toString()).then(()=>{this.copied.emit(this.payload.toString())},s=>{this.copied.emit("Error could not copy text: "+JSON.stringify(s))})}}e.\u0275fac=function(I){return new(I||e)},e.\u0275dir=t.lG2({type:e,selectors:[["","rtlClipboard",""]],hostBindings:function(I,s){1&I&&t.NdJ("click",function(h){return s.onClick(h)})},inputs:{payload:"payload"},outputs:{copied:"copied"}})},9843:(Ve,q,p)=>{"use strict";p.d(q,{F:()=>b});var t=p(4006),e=p(4650);class b{validate(s){return this.max?t.kI.max(+this.max)(s):null}}b.\u0275fac=function(s){return new(s||b)},b.\u0275dir=e.lG2({type:b,selectors:[["input","max",""]],inputs:{max:"max"},features:[e._Bn([{provide:t.Cf,useExisting:b,multi:!0}])]})},6534:(Ve,q,p)=>{"use strict";p.d(q,{q:()=>b});var t=p(4006),e=p(4650);class b{validate(s){return this.min?t.kI.min(+this.min)(s):null}}b.\u0275fac=function(s){return new(s||b)},b.\u0275dir=e.lG2({type:b,selectors:[["input","min",""]],inputs:{min:"min"},features:[e._Bn([{provide:t.Cf,useExisting:b,multi:!0}])]})},9445:(Ve,q,p)=>{"use strict";p.d(q,{D3:()=>s,al:()=>e,h9:()=>b,i1:()=>I});var t=p(4650);class e{transform(h,P){return h?.replace(/^[0]+/g,"")}}e.\u0275fac=function(h){return new(h||e)},e.\u0275pipe=t.Yjl({name:"removeleadingzeros",type:e,pure:!0});class b{transform(h,P){return h?.replace(/(?:^\w|[A-Z]|\b\w)/g,(d,S)=>d.toUpperCase())?.replace(/\s+/g,"")?.replace(/-/g," ")}}b.\u0275fac=function(h){return new(h||b)},b.\u0275pipe=t.Yjl({name:"camelcase",type:b,pure:!0});class I{transform(h,P,d){return h.replace(/(?:^\w|[A-Z]|\b\w)/g,(S,w)=>" "+S.toUpperCase())}}I.\u0275fac=function(h){return new(h||I)},I.\u0275pipe=t.Yjl({name:"camelCaseWithSpaces",type:I,pure:!0});class s{transform(h,P,d){return h=h?.toLowerCase().replace(/\s+/g,"")?.replace(/-/g," "),P&&(h=h.replace(new RegExp(P,"g")," ")),d&&(h=h.replace(new RegExp(d,"g")," ")),h.replace(/(?:^\w|[A-Z]|\b\w)/g,(S,w)=>S.toUpperCase())}}s.\u0275fac=function(h){return new(h||s)},s.\u0275pipe=t.Yjl({name:"camelcaseWithReplace",type:s,pure:!0})},1643:(Ve,q,p)=>{"use strict";p.d(q,{QM:()=>C,a1:()=>s,eQ:()=>h,fY:()=>P});var t=p(4004),e=p(4650),b=p(9116),I=p(5986);class s{constructor(S,w){this.router=S,this.sessionService=w}canActivate(S){return!(!this.sessionService.getItem("token")||"settings"!==S.url[0].path&&"auth"!==S.url[0].path&&"true"===this.sessionService.getItem("defaultPassword")&&(this.router.navigate(["/settings/auth"]),1))}}s.\u0275fac=function(S){return new(S||s)(e.LFG(b.F0),e.LFG(I.m))},s.\u0275prov=e.Yz7({token:s,factory:s.\u0275fac});class C{constructor(S){this.sessionService=S}canActivate(){return!!this.sessionService.watchSession().pipe((0,t.U)(S=>S.lndUnlocked))}}C.\u0275fac=function(S){return new(S||C)(e.LFG(I.m))},C.\u0275prov=e.Yz7({token:C,factory:C.\u0275fac});class h{constructor(S){this.sessionService=S}canActivate(){return!!this.sessionService.watchSession().pipe((0,t.U)(S=>S.clUnlocked))}}h.\u0275fac=function(S){return new(S||h)(e.LFG(I.m))},h.\u0275prov=e.Yz7({token:h,factory:h.\u0275fac});class P{constructor(S){this.sessionService=S}canActivate(){return!!this.sessionService.watchSession().pipe((0,t.U)(S=>S.eclUnlocked))}}P.\u0275fac=function(S){return new(S||P)(e.LFG(I.m))},P.\u0275prov=e.Yz7({token:P,factory:P.\u0275fac})},62:(Ve,q,p)=>{"use strict";p.d(q,{v:()=>w});var t=p(1135),e=p(9646),b=p(2843),I=p(5698),s=p(4004),C=p(262),h=p(7731),P=p(4650),d=p(8104),S=p(5043);class w{constructor(E,R){this.dataService=E,this.logger=R,this.currencyUnits=[],this.CurrencyUnitEnum=h.NT,this.conversionData={data:null,last_fetched:null},this.ratesAPIStatus=h.Bn.UN_INITIATED,this.screenSize=h.cu.MD,this.containerSize={width:0,height:0},this.containerSizeUpdated=new t.X(this.containerSize)}getScreenSize(){return this.screenSize}setScreenSize(E){this.screenSize=E}getContainerSize(){return this.containerSize}setContainerSize(E,R){this.containerSize={width:E,height:R},this.logger.info("Container Size: "+JSON.stringify(this.containerSize)),this.containerSizeUpdated.next(this.containerSize)}sortByKey(E,R,z,U="asc"){return E.sort("number"===z?"desc"===U?(W,K)=>+W[R]>+K[R]?-1:1:(W,K)=>+W[R]>+K[R]?1:-1:"desc"===U?(W,K)=>W[R]>K[R]?-1:1:(W,K)=>W[R]>K[R]?1:-1)}sortDescByKey(E,R){return E.sort((z,U)=>{const W=+z[R],K=+U[R];return W>K?-1:W<K?1:0})}sortAscByKey(E,R){return E.sort((z,U)=>{const W=+z[R],K=+U[R];return W<K?-1:W>K?1:0})}camelCase(E){return E?.replace(/(?:^\w|[A-Z]|\b\w)/g,(R,z)=>R.toUpperCase())?.replace(/\s+/g,"")?.replace(/-/g," ")}titleCase(E,R,z){return R&&z&&""!==R&&""!==z&&(E=E?.replace(new RegExp(R,"g"),z)),E.indexOf("!\n")>0||E.indexOf(".\n")>0?E.split("\n")?.reduce((U,W)=>U+W.charAt(0).toUpperCase()+W.substring(1).toLowerCase()+"\n",""):E.indexOf(" ")>0?E.split(" ")?.reduce((U,W)=>U+W.charAt(0).toUpperCase()+W.substring(1).toLowerCase()+" ",""):E.charAt(0).toUpperCase()+E.substring(1).toLowerCase()}convertCurrency(E,R,z,U,W){const K=(new Date).valueOf();return W&&U&&this.ratesAPIStatus!==h.Bn.INITIATED&&(R===h.NT.OTHER||z===h.NT.OTHER)?this.conversionData.data&&this.conversionData.last_fetched&&K<this.conversionData.last_fetched+3e5?(0,e.of)(this.convertWithFiat(E,R,U)):(this.ratesAPIStatus=h.Bn.INITIATED,this.dataService.getFiatRates().pipe((0,I.q)(1),(0,s.U)(ee=>(this.ratesAPIStatus=h.Bn.COMPLETED,this.conversionData.data=ee&&"object"==typeof ee?ee:ee&&"string"==typeof ee?JSON.parse(ee):{},this.conversionData.last_fetched=K,this.convertWithFiat(E,R,U))),(0,C.K)(ee=>(this.ratesAPIStatus=h.Bn.ERROR,(0,b._)(()=>this.extractErrorMessage(ee,"Currency Conversion Error.")))))):(0,e.of)(this.convertWithoutFiat(E,R))}convertWithoutFiat(E,R){const z={};switch(z[h.NT.SATS]=0,z[h.NT.BTC]=0,R){case h.NT.SATS:z[h.NT.SATS]=E,z[h.NT.BTC]=1e-8*E;break;case h.NT.BTC:z[h.NT.SATS]=1e8*E,z[h.NT.BTC]=E}return z}convertWithFiat(E,R,z){const U={unit:z,symbol:this.conversionData.data[z].symbol};switch(U[h.NT.SATS]=0,U[h.NT.BTC]=0,U[h.NT.OTHER]=0,R){case h.NT.SATS:U[h.NT.SATS]=E,U[h.NT.BTC]=1e-8*E,U[h.NT.OTHER]=1e-8*E*this.conversionData.data[z].last;break;case h.NT.BTC:U[h.NT.SATS]=1e8*E,U[h.NT.BTC]=E,U[h.NT.OTHER]=E*this.conversionData.data[z].last;break;case h.NT.OTHER:U[h.NT.SATS]=E/this.conversionData.data[z].last*1e8,U[h.NT.BTC]=E/this.conversionData.data[z].last,U[h.NT.OTHER]=E}return U}convertTime(E,R,z){switch(R){case h.Qk.SECS:switch(z){case h.Qk.MINS:E/=60;break;case h.Qk.HOURS:E/=h.k_;break;case h.Qk.DAYS:E/=24*h.k_}break;case h.Qk.MINS:switch(z){case h.Qk.SECS:E*=60;break;case h.Qk.HOURS:E/=60;break;case h.Qk.DAYS:E/=1440}break;case h.Qk.HOURS:switch(z){case h.Qk.SECS:E*=h.k_;break;case h.Qk.MINS:E*=60;break;case h.Qk.DAYS:E/=24}break;case h.Qk.DAYS:switch(z){case h.Qk.SECS:E=E*h.k_*24;break;case h.Qk.MINS:E=60*E*24;break;case h.Qk.HOURS:E*=24}}return E}downloadFile(E,R,z=".json",U=".csv"){let W=new Blob;W=".json"===z?new Blob(["\ufeff"+this.convertToCSV(E)],{type:"text/csv;charset=utf-8;"}):new Blob([E.toString()],{type:"text/plain;charset=utf-8"});const K=document.createElement("a"),ee=URL.createObjectURL(W);-1!==navigator.userAgent.indexOf("Safari")&&-1===navigator.userAgent.indexOf("Chrome")&&K.setAttribute("target","_blank"),K.setAttribute("href",ee),K.setAttribute("download",R+U),K.style.visibility="hidden",document.body.appendChild(K),K.click(),document.body.removeChild(K)}convertToCSV(E){const R=[];let z="",U="",W="";return"object"!=typeof E&&(E=JSON.parse(E)),E.forEach((ee,ie)=>{for(const ue in ee)R.findIndex(le=>le===ue)<0&&R.push(ue)}),W=R.join(",")+"\r\n",E.forEach(ee=>{z="",R.forEach(ie=>{ee.hasOwnProperty(ie)?Array.isArray(ee[ie])?(U="",ee[ie].forEach((ue,le)=>{U+="object"==typeof ue?"("+JSON.stringify(ue)?.replace(/\,/g,";")+")":"("+ue+")"}),z+=U+","):z+="object"==typeof ee[ie]?JSON.stringify(ee[ie])?.replace(/\,/g,";")+",":ee[ie]+",":z+=","}),W+=z.slice(0,-1)+"\r\n"}),W}isVersionCompatible(E,R){if(E){const z=E.trim()?.replace("v","").split("-")[0].split(".")||[],U=R.split(".");return+z[0]>+U[0]||+z[0]==+U[0]&&+z[1]>+U[1]||+z[0]==+U[0]&&+z[1]==+U[1]&&+z[2]>=+U[2]}return!1}extractErrorMessage(E,R="Unknown Error."){const z=this.titleCase(E.error&&E.error.text&&"string"==typeof E.error.text&&E.error.text.includes('<!DOCTYPE html><html lang="en">')?"API Route Does Not Exist.":E.error&&E.error.error&&E.error.error.error&&E.error.error.error.error&&E.error.error.error.error.error&&"string"==typeof E.error.error.error.error.error?E.error.error.error.error.error:E.error&&E.error.error&&E.error.error.error&&E.error.error.error.error&&"string"==typeof E.error.error.error.error?E.error.error.error.error:E.error&&E.error.error&&E.error.error.error&&"string"==typeof E.error.error.error?E.error.error.error:E.error&&E.error.error&&"string"==typeof E.error.error?E.error.error:E.error&&"string"==typeof E.error?E.error:E.error&&E.error.error&&E.error.error.error&&E.error.error.error.error&&E.error.error.error.error.message&&"string"==typeof E.error.error.error.error.message?E.error.error.error.error.message:E.error&&E.error.error&&E.error.error.error&&E.error.error.error.message&&"string"==typeof E.error.error.error.message?E.error.error.error.message:E.error&&E.error.error&&E.error.error.message&&"string"==typeof E.error.error.message?E.error.error.message:E.error&&E.error.message&&"string"==typeof E.error.message?E.error.message:E.message&&"string"==typeof E.message?E.message:R);return this.logger.info("Error Message: "+z),z}extractErrorCode(E,R=500){const z=E.error&&E.error.error&&E.error.error.message&&E.error.error.message.code?E.error.error.message.code:E.error&&E.error.error&&E.error.error.code?E.error.error.code:E.error&&E.error.code?E.error.code:E.code?E.code:E.status?E.status:R;return this.logger.info("Error Code: "+z),z}extractErrorNumber(E,R=500){const z=E.error&&E.error.error&&E.error.error.errno?E.error.error.errno:E.error&&E.error.errno?E.error.errno:E.errno?E.errno:E.status?E.status:R;return this.logger.info("Error Number: "+z),z}ngOnDestroy(){this.containerSizeUpdated.next(null),this.containerSizeUpdated.complete()}}w.\u0275fac=function(E){return new(E||w)(P.LFG(d.D),P.LFG(S.mQ))},w.\u0275prov=P.Yz7({token:w,factory:w.\u0275fac})},7731:(Ve,q,p)=>{"use strict";p.d(q,{$I:()=>_,$Y:()=>s,$v:()=>ue,AB:()=>je,At:()=>ot,Bn:()=>Fe,Df:()=>he,Dr:()=>W,Er:()=>w,Fq:()=>n,Gi:()=>u,HW:()=>y,H_:()=>Ce,IV:()=>R,IX:()=>ye,JX:()=>$e,LO:()=>O,NT:()=>a,OJ:()=>me,OO:()=>Be,Pi:()=>dt,Qk:()=>A,Qw:()=>V,T5:()=>h,TJ:()=>z,Vc:()=>K,Xk:()=>xt,Xr:()=>ce,Xz:()=>S,Zs:()=>m,_t:()=>U,c3:()=>Ke,cu:()=>l,g8:()=>ne,gB:()=>Ue,gG:()=>pt,gK:()=>wt,gg:()=>X,hG:()=>ke,hZ:()=>te,hc:()=>B,kO:()=>We,k_:()=>I,lr:()=>Ae,m6:()=>De,nM:()=>le,n_:()=>$,ol:()=>de,op:()=>Le,p7:()=>L,pg:()=>ve,pt:()=>b,q4:()=>C,uA:()=>d,uR:()=>oe,vn:()=>ee,vv:()=>P,wZ:()=>ie,x$:()=>T,zZ:()=>Et});var t=p(4650),e=p(8739);function b(Y){const Re=new e.ye;return Re.itemsPerPageLabel=Y+" per page:",Re}const I=3600,s=24*I*7,C="0.13.7-beta",h=(0,t.X6Q)()?"http://localhost:3000/rtl/api":"./api",P={AUTHENTICATE_API:h+"/authenticate",CONF_API:h+"/conf",PAGE_SETTINGS_API:h+"/pagesettings",BALANCE_API:"/balance",FEES_API:"/fees",PEERS_API:"/peers",CHANNELS_API:"/channels",CHANNELS_BACKUP_API:"/channels/backup",GETINFO_API:"/getinfo",WALLET_API:"/wallet",NETWORK_API:"/network",NEW_ADDRESS_API:"/newaddress",TRANSACTIONS_API:"/transactions",PAYMENTS_API:"/payments",INVOICES_API:"/invoices",SWITCH_API:"/switch",ON_CHAIN_API:"/onchain",MESSAGE_API:"/message",OFFERS_API:"/offers",UTILITY_API:"/utility",LOOP_API:"/loop",BOLTZ_API:"/boltz",Web_SOCKET_API:"/ws"},d=["Sats","BTC"],S={Sats:"1.0-0",BTC:"1.6-6",OTHER:"1.2-2"},w=[{id:"USD",name:"USD"},{id:"AUD",name:"AUD"},{id:"BRL",name:"BRL"},{id:"CAD",name:"CAD"},{id:"CHF",name:"CHF"},{id:"CLP",name:"CLP"},{id:"CNY",name:"CNY"},{id:"DKK",name:"DKK"},{id:"EUR",name:"EUR"},{id:"GBP",name:"GBP"},{id:"HKD",name:"HKD"},{id:"INR",name:"INR"},{id:"ISK",name:"ISK"},{id:"JPY",name:"JPY"},{id:"KRW",name:"KRW"},{id:"NZD",name:"NZD"},{id:"PLN",name:"PLN"},{id:"RUB",name:"RUB"},{id:"SEK",name:"SEK"},{id:"SGD",name:"SGD"},{id:"THB",name:"THB"},{id:"TWD",name:"TWD"}],O=["SECS","MINS","HOURS","DAYS"],R=10,z=[5,10,25,100],U=[{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"}],W=[{id:"0",name:"Priority (Default)"},{id:"1",name:"Target Confirmation Blocks"},{id:"2",name:"Fee"}],K=[{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"}],ee=[{feeRateId:"urgent",feeRateType:"Urgent"},{feeRateId:"normal",feeRateType:"Normal"},{feeRateId:"slow",feeRateType:"Slow"},{feeRateId:"customperkb",feeRateType:"Custom (Sats/vByte)"}],ie={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 ue=(()=>{return(Y=ue||(ue={})).PAYMENT_RECEIVED="payment-received",Y.PAYMENT_RELAYED="payment-relayed",Y.PAYMENT_SENT="payment-sent",Y.PAYMENT_SETTLING_ONCHAIN="payment-settling-onchain",Y.PAYMENT_FAILED="payment-failed",Y.CHANNEL_OPENED="channel-opened",Y.CHANNEL_STATE_CHANGED="channel-state-changed",Y.CHANNEL_CLOSED="channel-closed",ue;var Y})(),le=(()=>{return(Y=le||(le={})).INVOICE="invoice",Y.BLOCK_HEIGHT="block-height",Y.SEND_PAYMENT="send-payment",le;var Y})(),ne=(()=>((ne||(ne={})).INVOICE="invoice",ne))(),de=(()=>{return(Y=de||(de={})).OPERATOR="OPERATOR",Y.MERCHANT="MERCHANT",Y.ALL="ALL",de;var Y})(),$=(()=>{return(Y=$||($={})).INFORMATION="Information",Y.WARNING="Warning",Y.ERROR="Error",Y.SUCCESS="Success",Y.CONFIRM="Confirm",$;var Y})(),me=(()=>{return(Y=me||(me={})).JWT="JWT",Y.PASSWORD="PASSWORD",me;var Y})(),A=(()=>{return(Y=A||(A={})).SECS="SECS",Y.MINS="MINS",Y.HOURS="HOURS",Y.DAYS="DAYS",A;var Y})(),a=(()=>{return(Y=a||(a={})).SATS="Sats",Y.BTC="BTC",Y.OTHER="OTHER",a;var Y})(),u=(()=>{return(Y=u||(u={})).ARRAY="ARRAY",Y.NUMBER="NUMBER",Y.STRING="STRING",Y.BOOLEAN="BOOLEAN",Y.PASSWORD="PASSWORD",Y.DATE="DATE",Y.DATE_TIME="DATE_TIME",u;var Y})(),l=(()=>{return(Y=l||(l={})).XS="XS",Y.SM="SM",Y.MD="MD",Y.LG="LG",Y.XL="XL",l;var Y})();const y={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"}},T={WITNESS_PUBKEY_HASH:{name:"Witness Pubkey Hash",tooltip:""},NESTED_PUBKEY_HASH:{name:"Nested Pubkey Hash",tooltip:""},UNUSED_WITNESS_PUBKEY_HASH:{name:"Unused Witness Pubkey Hash",tooltip:""},UNUSED_NESTED_PUBKEY_HASH:{name:"Unused Nested Pubkey Hash",tooltip:""},TAPROOT_PUBKEY:{name:"Taproot Pubkey Hash",tooltip:""}};var L=(()=>{return(Y=L||(L={})).WIRE_INVALID_ONION_VERSION="Invalid Onion Version",Y.WIRE_INVALID_ONION_HMAC="Invalid Onion HMAC",Y.WIRE_INVALID_ONION_KEY="Invalid Onion Key",Y.WIRE_TEMPORARY_CHANNEL_FAILURE="Temporary Channel Failure",Y.WIRE_PERMANENT_CHANNEL_FAILURE="Permanent Channel Failure",Y.WIRE_REQUIRED_CHANNEL_FEATURE_MISSING="Missing Required Channel Feature",Y.WIRE_UNKNOWN_NEXT_PEER="Unknown Next Peer",Y.WIRE_AMOUNT_BELOW_MINIMUM="Amount Below Minimum",Y.WIRE_FEE_INSUFFICIENT="Insufficient Fee",Y.WIRE_INCORRECT_CLTV_EXPIRY="Incorrect CLTV Expiry",Y.WIRE_EXPIRY_TOO_FAR="Expiry Too Far",Y.WIRE_EXPIRY_TOO_SOON="Expiry Too Soon",Y.WIRE_CHANNEL_DISABLED="Channel Disabled",Y.WIRE_INVALID_ONION_PAYLOAD="Invalid Onion Payload",Y.WIRE_INVALID_REALM="Invalid Realm",Y.WIRE_PERMANENT_NODE_FAILURE="Permanent Node Failure",Y.WIRE_TEMPORARY_NODE_FAILURE="Temporary Node Failure",Y.WIRE_REQUIRED_NODE_FEATURE_MISSING="Missing Required Node Feature",Y.WIRE_INVALID_ONION_BLINDING="Invalid Onion Binding",Y.WIRE_INCORRECT_OR_UNKNOWN_PAYMENT_DETAILS="Incorrect or Unknow Payment Details",Y.WIRE_MPP_TIMEOUT="MPP Timeout",Y.WIRE_FINAL_INCORRECT_CLTV_EXPIRY="Incorrect CLTV Expiry",Y.WIRE_FINAL_INCORRECT_HTLC_AMOUNT="Incorrect HTLC Amount",L;var Y})(),m=(()=>{return(Y=m||(m={})).CHANNELD_NORMAL="Active",Y.OPENINGD="Opening",Y.CHANNELD_AWAITING_LOCKIN="Pending Open",Y.CHANNELD_SHUTTING_DOWN="Shutting Down",Y.CLOSINGD_SIGEXCHANGE="Closing: Sig Exchange",Y.CLOSINGD_COMPLETE="Closed",Y.AWAITING_UNILATERAL="Awaiting Unilateral Close",Y.FUNDING_SPEND_SEEN="Funding Spend Seen",Y.ONCHAIN="Onchain",Y.DUALOPEND_OPEN_INIT="Dual Open Initialized",Y.DUALOPEND_AWAITING_LOCKIN="Dual Pending Open",m;var Y})(),n=(()=>{return(Y=n||(n={})).INITIATED="Initiated",Y.PREIMAGE_REVEALED="Preimage Revealed",Y.HTLC_PUBLISHED="HTLC Published",Y.SUCCESS="Successful",Y.FAILED="Failed",Y.INVOICE_SETTLED="Invoice Settled",n;var Y})(),_=(()=>{return(Y=_||(_={})).LOOP_OUT="LOOP_OUT",Y.LOOP_IN="LOOP_IN",_;var Y})(),B=(()=>{return(Y=B||(B={})).SWAP_OUT="SWAP_OUT",Y.SWAP_IN="SWAP_IN",B;var Y})(),V=(()=>{return(Y=V||(V={}))["swap.created"]="Swap Created",Y["swap.expired"]="Swap Expired",Y["invoice.set"]="Invoice Set",Y["invoice.paid"]="Invoice Paid",Y["invoice.pending"]="Invoice Pending",Y["invoice.settled"]="Invoice Settled",Y["invoice.failedToPay"]="Invoice Failed To Pay",Y["channel.created"]="Channel Created",Y["transaction.failed"]="Transaction Failed",Y["transaction.mempool"]="Transaction Mempool",Y["transaction.claimed"]="Transaction Claimed",Y["transaction.refunded"]="Transaction Refunded",Y["transaction.confirmed"]="Transaction Confirmed",Y["swap.refunded"]="Swap Refunded",Y["swap.abandoned"]="Swap Abandoned",V;var Y})();const X=[{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}],Le=["MONTHLY","YEARLY"];var $e=(()=>{return(Y=$e||($e={})).LOOP="LOOP",Y.BOLTZ="BOLTZ",Y.OFFERS="OFFERS",Y.PEERSWAP="PEERSWAP",$e;var Y})();const We=["password","changeme","moneyprintergobrrr"];var Fe=(()=>{return(Y=Fe||(Fe={})).UN_INITIATED="UN_INITIATED",Y.INITIATED="INITIATED",Y.COMPLETED="COMPLETED",Y.ERROR="ERROR",Fe;var Y})();const De={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...",REBALANCE_CHANNEL:"Rebalancing Channel...",LOG_OUT:"Logging Out..."};var ye=(()=>{return(Y=ye||(ye={})).INVOICE="INVOICE",Y.OFFER="OFFER",Y.KEYSEND="KEYSEND",ye;var Y})(),ce=(()=>{return(Y=ce||(ce={})).FEES="FEES",Y.EVENTS="EVENTS",ce;var Y})(),ve=(()=>{return(Y=ve||(ve={})).VOID="VOID",Y.SET_API_URL_ECL="SET_API_URL_ECL",Y.UPDATE_SELECTED_NODE_OPTIONS="UPDATE_SELECTED_NODE_OPTIONS",Y.UPDATE_API_CALL_STATUS_ROOT="UPDATE_API_CALL_STATUS_ROOT",Y.RESET_ROOT_STORE="RESET_ROOT_STORE",Y.CLOSE_ALL_DIALOGS="CLOSE_ALL_DIALOGS",Y.OPEN_SNACK_BAR="OPEN_SNACKBAR",Y.OPEN_SPINNER="OPEN_SPINNER",Y.CLOSE_SPINNER="CLOSE_SPINNER",Y.OPEN_ALERT="OPEN_ALERT",Y.CLOSE_ALERT="CLOSE_ALERT",Y.OPEN_CONFIRMATION="OPEN_CONFIRMATION",Y.CLOSE_CONFIRMATION="CLOSE_CONFIRMATION",Y.SHOW_PUBKEY="SHOW_PUBKEY",Y.FETCH_CONFIG="FETCH_CONFIG",Y.SHOW_CONFIG="SHOW_CONFIG",Y.FETCH_STORE="FETCH_STORE",Y.SET_STORE="SET_STORE",Y.FETCH_RTL_CONFIG="FETCH_RTL_CONFIG",Y.SET_RTL_CONFIG="SET_RTL_CONFIG",Y.SAVE_SSO="SAVE_SSO",Y.SAVE_SETTINGS="SAVE_SETTINGS",Y.TWO_FA_SAVE_SETTINGS="TWO_FA_SAVE_SETTINGS",Y.SET_SELECTED_NODE="SET_SELECTED_NODE",Y.UPDATE_ROOT_NODE_SETTINGS="UPDATE_ROOT_NODE_SETTINGS",Y.UPDATE_SERVICE_SETTINGS="UPDATE_SERVICE_SETTINGS",Y.SET_NODE_DATA="SET_NODE_DATA",Y.IS_AUTHORIZED="IS_AUTHORIZED",Y.IS_AUTHORIZED_RES="IS_AUTHORIZED_RES",Y.LOGIN="LOGIN",Y.VERIFY_TWO_FA="VERIFY_TWO_FA",Y.LOGOUT="LOGOUT",Y.RESET_PASSWORD="RESET_PASSWORD",Y.RESET_PASSWORD_RES="RESET_PASSWORD_RES",Y.FETCH_FILE="FETCH_FILE",Y.SHOW_FILE="SHOW_FILE",ve;var Y})(),oe=(()=>{return(Y=oe||(oe={})).RESET_LND_STORE="RESET_LND_STORE",Y.UPDATE_API_CALL_STATUS_LND="UPDATE_API_CALL_STATUS_LND",Y.SET_CHILD_NODE_SETTINGS_LND="SET_CHILD_NODE_SETTINGS_LND",Y.FETCH_PAGE_SETTINGS_LND="FETCH_PAGE_SETTINGS_LND",Y.SET_PAGE_SETTINGS_LND="SET_PAGE_SETTINGS_LND",Y.SAVE_PAGE_SETTINGS_LND="SAVE_PAGE_SETTINGS_LND",Y.FETCH_INFO_LND="FETCH_INFO_LND",Y.SET_INFO_LND="SET_INFO_LND",Y.FETCH_PEERS_LND="FETCH_PEERS_LND",Y.SET_PEERS_LND="SET_PEERS_LND",Y.SAVE_NEW_PEER_LND="SAVE_NEW_PEER_LND",Y.NEWLY_ADDED_PEER_LND="NEWLY_ADDED_PEER_LND",Y.DETACH_PEER_LND="DETACH_PEER_LND",Y.REMOVE_PEER_LND="REMOVE_PEER_LND",Y.SAVE_NEW_INVOICE_LND="SAVE_NEW_INVOICE_LND",Y.NEWLY_SAVED_INVOICE_LND="NEWLY_SAVED_INVOICE_LND",Y.ADD_INVOICE_LND="ADD_INVOICE_LND",Y.FETCH_FEES_LND="FETCH_FEES_LND",Y.SET_FEES_LND="SET_FEES_LND",Y.FETCH_BLOCKCHAIN_BALANCE_LND="FETCH_BLOCKCHAIN_BALANCE_LND",Y.SET_BLOCKCHAIN_BALANCE_LND="SET_BLOCKCHAIN_BALANCE_LND",Y.FETCH_NETWORK_LND="FETCH_NETWORK_LND",Y.SET_NETWORK_LND="SET_NETWORK_LND",Y.FETCH_CHANNELS_LND="FETCH_CHANNELS_LND",Y.FETCH_PENDING_CHANNELS_LND="FETCH_PENDING_CHANNELS_LND",Y.FETCH_CLOSED_CHANNELS_LND="FETCH_CLOSED_CHANNELS_LND",Y.SET_CHANNELS_LND="SET_CHANNELS_LND",Y.SET_PENDING_CHANNELS_LND="SET_PENDING_CHANNELS_LND",Y.SET_CLOSED_CHANNELS_LND="SET_CLOSED_CHANNELS_LND",Y.UPDATE_CHANNEL_LND="UPDATE_CHANNEL_LND",Y.SAVE_NEW_CHANNEL_LND="SAVE_NEW_CHANNEL_LND",Y.CLOSE_CHANNEL_LND="CLOSE_CHANNEL_LND",Y.REMOVE_CHANNEL_LND="REMOVE_CHANNEL_LND",Y.BACKUP_CHANNELS_LND="BACKUP_CHANNELS_LND",Y.VERIFY_CHANNEL_LND="VERIFY_CHANNEL_LND",Y.BACKUP_CHANNELS_RES_LND="BACKUP_CHANNELS_RES_LND",Y.VERIFY_CHANNEL_RES_LND="VERIFY_CHANNEL_RES_LND",Y.RESTORE_CHANNELS_LIST_LND="RESTORE_CHANNELS_LIST_LND",Y.SET_RESTORE_CHANNELS_LIST_LND="SET_RESTORE_CHANNELS_LIST_LND",Y.RESTORE_CHANNELS_LND="RESTORE_CHANNELS_LND",Y.RESTORE_CHANNELS_RES_LND="RESTORE_CHANNELS_RES_LND",Y.FETCH_INVOICES_LND="FETCH_INVOICES_LND",Y.SET_INVOICES_LND="SET_INVOICES_LND",Y.UPDATE_INVOICE_LND="UPDATE_INVOICE_LND",Y.UPDATE_PAYMENT_LND="UPDATE_PAYMENT_LND",Y.SET_TOTAL_INVOICES_LND="SET_TOTAL_INVOICES_LND",Y.FETCH_TRANSACTIONS_LND="FETCH_TRANSACTIONS_LND",Y.SET_TRANSACTIONS_LND="SET_TRANSACTIONS_LND",Y.FETCH_UTXOS_LND="FETCH_UTXOS_LND",Y.SET_UTXOS_LND="SET_UTXOS_LND",Y.FETCH_PAYMENTS_LND="FETCH_PAYMENTS_LND",Y.SET_PAYMENTS_LND="SET_PAYMENTS_LND",Y.SEND_PAYMENT_LND="SEND_PAYMENT_LND",Y.SEND_PAYMENT_STATUS_LND="SEND_PAYMENT_STATUS_LND",Y.FETCH_GRAPH_NODE_LND="FETCH_GRAPH_NODE_LND",Y.SET_GRAPH_NODE_LND="SET_GRAPH_NODE_LND",Y.GET_NEW_ADDRESS_LND="GET_NEW_ADDRESS_LND",Y.SET_NEW_ADDRESS_LND="SET_NEW_ADDRESS_LND",Y.SET_CHANNEL_TRANSACTION_LND="SET_CHANNEL_TRANSACTION_LND",Y.SET_CHANNEL_TRANSACTION_RES_LND="SET_CHANNEL_TRANSACTION_RES_LND",Y.GEN_SEED_LND="GEN_SEED_LND",Y.GEN_SEED_RESPONSE_LND="GEN_SEED_RESPONSE_LND",Y.INIT_WALLET_LND="INIT_WALLET_LND",Y.INIT_WALLET_RESPONSE_LND="INIT_WALLET_RESPONSE_LND",Y.UNLOCK_WALLET_LND="UNLOCK_WALLET_LND",Y.PEER_LOOKUP_LND="PEER_LOOKUP_LND",Y.CHANNEL_LOOKUP_LND="CHANNEL_LOOKUP_LND",Y.INVOICE_LOOKUP_LND="INVOICE_LOOKUP_LND",Y.PAYMENT_LOOKUP_LND="PAYMENT_LOOKUP_LND",Y.SET_LOOKUP_LND="SET_LOOKUP_LND",Y.GET_FORWARDING_HISTORY_LND="GET_FORWARDING_HISTORY_LND",Y.SET_FORWARDING_HISTORY_LND="SET_FORWARDING_HISTORY_LND",Y.GET_QUERY_ROUTES_LND="GET_QUERY_ROUTES_LND",Y.SET_QUERY_ROUTES_LND="SET_QUERY_ROUTES_LND",Y.GET_ALL_LIGHTNING_TRANSATIONS_LND="GET_ALL_LIGHTNING_TRANSATIONS_LND",Y.SET_ALL_LIGHTNING_TRANSATIONS_LND="SET_ALL_LIGHTNING_TRANSATIONS_LND",oe;var Y})(),je=(()=>{return(Y=je||(je={})).RESET_CLN_STORE="RESET_CLN_STORE",Y.UPDATE_API_CALL_STATUS_CLN="UPDATE_API_CALL_STATUS_CLN",Y.SET_CHILD_NODE_SETTINGS_CLN="SET_CHILD_NODE_SETTINGS_CLN",Y.FETCH_PAGE_SETTINGS_CLN="FETCH_PAGE_SETTINGS_CLN",Y.SET_PAGE_SETTINGS_CLN="SET_PAGE_SETTINGS_CLN",Y.SAVE_PAGE_SETTINGS_CLN="SAVE_PAGE_SETTINGS_CLN",Y.FETCH_INFO_CLN="FETCH_INFO_CL_CLN",Y.SET_INFO_CLN="SET_INFO_CLN",Y.FETCH_FEES_CLN="FETCH_FEES_CLN",Y.SET_FEES_CLN="SET_FEES_CLN",Y.FETCH_FEE_RATES_CLN="FETCH_FEE_RATES_CLN",Y.SET_FEE_RATES_CLN="SET_FEE_RATES_CLN",Y.FETCH_BALANCE_CLN="FETCH_BALANCE_CLN",Y.SET_BALANCE_CLN="SET_BALANCE_CLN",Y.FETCH_LOCAL_REMOTE_BALANCE_CLN="FETCH_LOCAL_REMOTE_BALANCE_CLN",Y.SET_LOCAL_REMOTE_BALANCE_CLN="SET_LOCAL_REMOTE_BALANCE_CLN",Y.GET_NEW_ADDRESS_CLN="GET_NEW_ADDRESS_CLN",Y.SET_NEW_ADDRESS_CLN="SET_NEW_ADDRESS_CLN",Y.FETCH_UTXOS_CLN="FETCH_UTXOS_CLN",Y.SET_UTXOS_CLN="SET_UTXOS_CLN",Y.FETCH_PEERS_CLN="FETCH_PEERS_CLN",Y.SET_PEERS_CLN="SET_PEERS_CLN",Y.SAVE_NEW_PEER_CLN="SAVE_NEW_PEER_CLN",Y.NEWLY_ADDED_PEER_CLN="NEWLY_ADDED_PEER_CLN",Y.ADD_PEER_CLN="ADD_PEER_CLN",Y.DETACH_PEER_CLN="DETACH_PEER_CLN",Y.REMOVE_PEER_CLN="REMOVE_PEER_CLN",Y.FETCH_CHANNELS_CLN="FETCH_CHANNELS_CLN",Y.SET_CHANNELS_CLN="SET_CHANNELS_CLN",Y.UPDATE_CHANNEL_CLN="UPDATE_CHANNEL_CLN",Y.SAVE_NEW_CHANNEL_CLN="SAVE_NEW_CHANNEL_CLN",Y.CLOSE_CHANNEL_CLN="CLOSE_CHANNEL_CLN",Y.REMOVE_CHANNEL_CLN="REMOVE_CHANNEL_CLN",Y.FETCH_PAYMENTS_CLN="FETCH_PAYMENTS_CLN",Y.SET_PAYMENTS_CLN="SET_PAYMENTS_CLN",Y.SEND_PAYMENT_CLN="SEND_PAYMENT_CLN",Y.SEND_PAYMENT_STATUS_CLN="SEND_PAYMENT_STATUS_CLN",Y.GET_QUERY_ROUTES_CLN="GET_QUERY_ROUTES_CLN",Y.SET_QUERY_ROUTES_CLN="SET_QUERY_ROUTES_CLN",Y.PEER_LOOKUP_CLN="PEER_LOOKUP_CLN",Y.CHANNEL_LOOKUP_CLN="CHANNEL_LOOKUP_CLN",Y.INVOICE_LOOKUP_CLN="INVOICE_LOOKUP_CLN",Y.SET_LOOKUP_CLN="SET_LOOKUP_CLN",Y.GET_FORWARDING_HISTORY_CLN="GET_FORWARDING_HISTORY_CLN",Y.SET_FORWARDING_HISTORY_CLN="SET_FORWARDING_HISTORY_CLN",Y.GET_FAILED_FORWARDING_HISTORY_CLN="GET_FAILED_FORWARDING_HISTORY_CLN",Y.SET_FAILED_FORWARDING_HISTORY_CLN="SET_FAILED_FORWARDING_HISTORY_CLN",Y.GET_LOCAL_FAILED_FORWARDING_HISTORY_CLN="GET_LOCAL_FAILED_FORWARDING_HISTORY_CLN",Y.SET_LOCAL_FAILED_FORWARDING_HISTORY_CLN="SET_LOCAL_FAILED_FORWARDING_HISTORY_CLN",Y.FETCH_INVOICES_CLN="FETCH_INVOICES_CLN",Y.SET_INVOICES_CLN="SET_INVOICES_CLN",Y.SAVE_NEW_INVOICE_CLN="SAVE_NEW_INVOICE_CLN",Y.ADD_INVOICE_CLN="ADD_INVOICE_CLN",Y.UPDATE_INVOICE_CLN="UPDATE_INVOICE_CLN",Y.DELETE_EXPIRED_INVOICE_CLN="DELETE_EXPIRED_INVOICE_CLN",Y.SET_CHANNEL_TRANSACTION_CLN="SET_CHANNEL_TRANSACTION_CLN",Y.SET_CHANNEL_TRANSACTION_RES_CLN="SET_CHANNEL_TRANSACTION_RES_CLN",Y.FETCH_OFFER_INVOICE_CLN="FETCH_OFFER_INVOICE_CLN",Y.SET_OFFER_INVOICE_CLN="SET_OFFER_INVOICE_CLN",Y.FETCH_OFFERS_CLN="FETCH_OFFERS_CLN",Y.SET_OFFERS_CLN="SET_OFFERS_CLN",Y.SAVE_NEW_OFFER_CLN="SAVE_NEW_OFFER_CLN",Y.ADD_OFFER_CLN="ADD_OFFER_CLN",Y.DISABLE_OFFER_CLN="DISABLE_OFFER_CLN",Y.UPDATE_OFFER_CLN="UPDATE_OFFER_CLN",Y.FETCH_OFFER_BOOKMARKS_CLN="FETCH_OFFER_BOOKMARKS_CLN",Y.SET_OFFER_BOOKMARKS_CLN="SET_OFFER_BOOKMARKS_CLN",Y.ADD_UPDATE_OFFER_BOOKMARK_CLN="ADD_UPDATE_OFFER_BOOKMARK_CLN",Y.DELETE_OFFER_BOOKMARK_CLN="DELETE_OFFER_BOOKMARK_CLN",Y.REMOVE_OFFER_BOOKMARK_CLN="REMOVE_OFFER_BOOKMARK_CL",je;var Y})(),Ae=(()=>{return(Y=Ae||(Ae={})).RESET_ECL_STORE="RESET_ECL_STORE",Y.UPDATE_API_CALL_STATUS_ECL="UPDATE_API_CALL_STATUS_ECL",Y.SET_CHILD_NODE_SETTINGS_ECL="SET_CHILD_NODE_SETTINGS_ECL",Y.FETCH_PAGE_SETTINGS_ECL="FETCH_PAGE_SETTINGS_ECL",Y.SET_PAGE_SETTINGS_ECL="SET_PAGE_SETTINGS_ECL",Y.SAVE_PAGE_SETTINGS_ECL="SAVE_PAGE_SETTINGS_ECL",Y.FETCH_INFO_ECL="FETCH_INFO_ECL",Y.SET_INFO_ECL="SET_INFO_ECL",Y.FETCH_FEES_ECL="FETCH_FEES_ECL",Y.SET_FEES_ECL="SET_FEES_ECL",Y.FETCH_CHANNELS_ECL="FETCH_CHANNELS_ECL",Y.SET_ACTIVE_CHANNELS_ECL="SET_ACTIVE_CHANNELS_ECL",Y.SET_PENDING_CHANNELS_ECL="SET_PENDING_CHANNELS_ECL",Y.SET_INACTIVE_CHANNELS_ECL="SET_INACTIVE_CHANNELS_ECL",Y.FETCH_ONCHAIN_BALANCE_ECL="FETCH_ONCHAIN_BALANCE_ECL",Y.SET_ONCHAIN_BALANCE_ECL="SET_ONCHAIN_BALANCE_ECL",Y.FETCH_LIGHTNING_BALANCE_ECL="FETCH_LIGHTNING_BALANCE_ECL",Y.SET_LIGHTNING_BALANCE_ECL="SET_LIGHTNING_BALANCE_ECL",Y.SET_CHANNELS_STATUS_ECL="SET_CHANNELS_STATUS_ECL",Y.FETCH_PEERS_ECL="FETCH_PEERS_ECL",Y.SET_PEERS_ECL="SET_PEERS_ECL",Y.SAVE_NEW_PEER_ECL="SAVE_NEW_PEER_ECL",Y.NEWLY_ADDED_PEER_ECL="NEWLY_ADDED_PEER_ECL",Y.ADD_PEER_ECL="ADD_PEER_ECL",Y.DETACH_PEER_ECL="DETACH_PEER_ECL",Y.REMOVE_PEER_ECL="REMOVE_PEER_ECL",Y.GET_NEW_ADDRESS_ECL="GET_NEW_ADDRESS_ECL",Y.SET_NEW_ADDRESS_ECL="SET_NEW_ADDRESS_ECL",Y.SAVE_NEW_CHANNEL_ECL="SAVE_NEW_CHANNEL_ECL",Y.UPDATE_CHANNEL_ECL="UPDATE_CHANNEL_ECL",Y.CLOSE_CHANNEL_ECL="CLOSE_CHANNEL_ECL",Y.REMOVE_CHANNEL_ECL="REMOVE_CHANNEL_ECL",Y.FETCH_PAYMENTS_ECL="FETCH_PAYMENTS_ECL",Y.SET_PAYMENTS_ECL="SET_PAYMENTS_ECL",Y.GET_QUERY_ROUTES_ECL="GET_QUERY_ROUTES_ECL",Y.SET_QUERY_ROUTES_ECL="SET_QUERY_ROUTES_ECL",Y.SEND_PAYMENT_ECL="SEND_PAYMENT_ECL",Y.SEND_PAYMENT_STATUS_ECL="SEND_PAYMENT_STATUS_ECL",Y.FETCH_TRANSACTIONS_ECL="FETCH_TRANSACTIONS_ECL",Y.SET_TRANSACTIONS_ECL="SET_TRANSACTIONS_ECL",Y.SEND_ONCHAIN_FUNDS_ECL="SEND_ONCHAIN_FUNDS_ECL",Y.SEND_ONCHAIN_FUNDS_RES_ECL="SEND_ONCHAIN_FUNDS_RES_ECL",Y.FETCH_INVOICES_ECL="FETCH_INVOICES_ECL",Y.SET_INVOICES_ECL="SET_INVOICES_ECL",Y.SET_TOTAL_INVOICES_ECL="SET_TOTAL_INVOICES_ECL",Y.CREATE_INVOICE_ECL="CREATE_INVOICE_ECL",Y.ADD_INVOICE_ECL="ADD_INVOICE_ECL",Y.UPDATE_INVOICE_ECL="UPDATE_INVOICE_ECL",Y.PEER_LOOKUP_ECL="PEER_LOOKUP_ECL",Y.INVOICE_LOOKUP_ECL="INVOICE_LOOKUP_ECL",Y.SET_LOOKUP_ECL="SET_LOOKUP_ECL",Y.UPDATE_CHANNEL_STATE_ECL="UPDATE_CHANNEL_STATE_ECL",Y.UPDATE_RELAYED_PAYMENT_ECL="UPDATE_RELAYED_PAYMENT_ECL",Ae;var Y})();const he=[{range:{min:0,max:1},description:"Requires or supports extra channel re-establish fields"},{range:{min:4,max:5},description:"Commits to a shutdown script pubkey when opening channel"},{range:{min:6,max:7},description:"More sophisticated gossip control"},{range:{min:8,max:9},description:"Requires/supports variable-length routing onion payloads"},{range:{min:10,max:11},description:"Gossip queries can include additional information"},{range:{min:12,max:13},description:"Static key for remote output"},{range:{min:14,max:15},description:"Node supports payment secret field"},{range:{min:16,max:17},description:"Node can receive basic multi-part payments"},{range:{min:18,max:19},description:"Node can create large channels"},{range:{min:20,max:21},description:"Anchor outputs"},{range:{min:22,max:23},description:"Anchor commitment type with zero fee HTLC transactions"},{range:{min:26,max:27},description:"Future segwit versions allowed in shutdown"},{range:{min:30,max:31},description:"AMP support"},{range:{min:44,max:45},description:"Explicit commitment type"}];var Ce=(()=>{return(Y=Ce||(Ce={})).gossip_queries_ex="Gossip queries including additional information",Y.option_anchor_outputs="Anchor outputs",Y.option_data_loss_protect="Extra channel re-establish fields",Y.var_onion_optin="Variable-length routing onion payloads",Y.option_static_remotekey="Static key for remote output",Y.option_support_large_channel="Create large channels",Y.option_anchors_zero_fee_htlc_tx="Anchor commitment type with zero fee HTLC transactions",Y.payment_secret="Payment secret field",Y.option_shutdown_anysegwit="Future segwit versions allowed in shutdown",Y.basic_mpp="Basic multi-part payments",Y.gossip_queries="More sophisticated gossip control",Y.option_upfront_shutdown_script="Shutdown script pubkey when opening channel",Y.anchors_zero_fee_htlc_tx="Anchor commitment type with zero fee HTLC transactions",Y.amp="AMP",Ce;var Y})(),te=(()=>{return(Y=te||(te={}))["data-loss-protect"]="Extra channel re-establish fields",Y["upfront-shutdown-script"]="Shutdown script pubkey when opening channel",Y["gossip-queries"]="More sophisticated gossip control",Y["tlv-onion"]="Variable-length routing onion payloads",Y["ext-gossip-queries"]="Gossip queries can include additional information",Y["static-remote-key"]="Static key for remote output",Y["payment-addr"]="Payment secret field",Y["multi-path-payments"]="Basic multi-part payments",Y["wumbo-channels"]="Wumbo Channels",Y.anchors="Anchor outputs",Y["anchors-zero-fee-htlc-tx"]="Anchor commitment type with zero fee HTLC transactions",Y.amp="AMP",te;var Y})();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 Be=(()=>{return(Y=Be||(Be={})).OFFERED="offered",Y.SETTLED="settled",Y.FAILED="failed",Y.LOCAL_FAILED="local_failed",Be;var Y})(),dt=(()=>{return(Y=dt||(dt={})).ASCENDING="asc",Y.DESCENDING="desc",dt;var Y})();const Et=["asc","desc"],pt=[{pageId:"on_chain",tables:[{tableId:"utxos",recordsPerPage:R,sortBy:"blockheight",sortOrder:dt.DESCENDING,columnSelectionSM:["txid","value"],columnSelection:["txid","output","value","blockheight"]},{tableId:"dust_utxos",recordsPerPage:R,sortBy:"blockheight",sortOrder:dt.DESCENDING,columnSelectionSM:["txid","value"],columnSelection:["txid","output","value","blockheight"]}]},{pageId:"peers_channels",tables:[{tableId:"open_channels",recordsPerPage:R,sortBy:"msatoshi_to_us",sortOrder:dt.DESCENDING,columnSelectionSM:["alias","msatoshi_to_us","msatoshi_to_them"],columnSelection:["short_channel_id","alias","msatoshi_to_us","msatoshi_to_them","balancedness"]},{tableId:"pending_inactive_channels",recordsPerPage:R,sortBy:"state",sortOrder:dt.DESCENDING,columnSelectionSM:["alias","state"],columnSelection:["alias","connected","state","msatoshi_total"]},{tableId:"peers",recordsPerPage:R,sortBy:"alias",sortOrder:dt.ASCENDING,columnSelectionSM:["alias","id"],columnSelection:["alias","id","netaddr"]},{tableId:"active_HTLCs",recordsPerPage:R,sortBy:"expiry",sortOrder:dt.DESCENDING,columnSelectionSM:["amount_msat","direction","expiry"],columnSelection:["amount_msat","direction","expiry","state"]}]},{pageId:"liquidity_ads",tables:[{tableId:"liquidity_ads",recordsPerPage:R,sortBy:"channel_opening_fee",sortOrder:dt.ASCENDING,columnSelectionSM:["alias","channel_opening_fee"],columnSelection:["alias","last_timestamp","lease_fee","routing_fee","channel_opening_fee"]}]},{pageId:"transactions",tables:[{tableId:"payments",recordsPerPage:R,sortBy:"created_at",sortOrder:dt.DESCENDING,columnSelectionSM:["created_at","msatoshi"],columnSelection:["created_at","type","payment_hash","msatoshi_sent","msatoshi"]},{tableId:"invoices",recordsPerPage:R,sortBy:"expires_at",sortOrder:dt.DESCENDING,columnSelectionSM:["expires_at","msatoshi"],columnSelection:["expires_at","paid_at","type","description","msatoshi","msatoshi_received"]},{tableId:"offers",recordsPerPage:R,sortBy:"offer_id",sortOrder:dt.DESCENDING,columnSelectionSM:["offer_id","single_use"],columnSelection:["offer_id","single_use","used"]},{tableId:"offer_bookmarks",recordsPerPage:R,sortBy:"lastUpdatedAt",sortOrder:dt.DESCENDING,columnSelectionSM:["lastUpdatedAt","amountMSat"],columnSelection:["lastUpdatedAt","title","description","amountMSat"]}]},{pageId:"routing",tables:[{tableId:"forwarding_history",recordsPerPage:R,sortBy:"received_time",sortOrder:dt.DESCENDING,columnSelectionSM:["received_time","in_msatoshi","out_msatoshi"],columnSelection:["received_time","resolved_time","in_channel_alias","out_channel_alias","in_msatoshi","out_msatoshi","fee"]},{tableId:"routing_peers",recordsPerPage:R,sortBy:"total_fee",sortOrder:dt.DESCENDING,columnSelectionSM:["alias","events","total_fee"],columnSelection:["channel_id","alias","events","total_amount","total_fee"]},{tableId:"failed",recordsPerPage:R,sortBy:"received_time",sortOrder:dt.DESCENDING,columnSelectionSM:["received_time","in_channel_alias","in_msatoshi"],columnSelection:["received_time","resolved_time","in_channel_alias","out_channel_alias","in_msatoshi","out_msatoshi","fee"]},{tableId:"local_failed",recordsPerPage:R,sortBy:"received_time",sortOrder:dt.DESCENDING,columnSelectionSM:["received_time","in_channel_alias","in_msatoshi"],columnSelection:["received_time","in_channel_alias","in_msatoshi","style","failreason"]}]},{pageId:"reports",tables:[{tableId:"routing",recordsPerPage:R,sortBy:"received_time",sortOrder:dt.DESCENDING,columnSelectionSM:["received_time","in_msatoshi","out_msatoshi"],columnSelection:["received_time","resolved_time","in_channel_alias","out_channel_alias","in_msatoshi","out_msatoshi","fee"]},{tableId:"transactions",recordsPerPage:R,sortBy:"date",sortOrder:dt.DESCENDING,columnSelectionSM:["date","amount_paid","amount_received"],columnSelection:["date","amount_paid","num_payments","amount_received","num_invoices"]}]},{pageId:"graph_lookup",tables:[{tableId:"query_routes",recordsPerPage:R,sortBy:"msatoshi",sortOrder:dt.DESCENDING,columnSelectionSM:["alias","direction","msatoshi"],columnSelection:["alias","channel","direction","delay","msatoshi"]}]},{pageId:"peerswap",tables:[{tableId:"swaps",recordsPerPage:R,sortBy:"created_at",sortOrder:dt.DESCENDING,columnSelectionSM:["id","state","amount"],columnSelection:["id","alias","short_channel_id","created_at","state","amount"]}]}],ot={on_chain:{utxos:{maxColumns:7,allowedColumns:[{column:"txid",label:"Transaction ID"},{column:"address"},{column:"scriptpubkey",label:"Script Pubkey"},{column:"output"},{column:"value"},{column:"blockheight"},{column:"reserved"}]},dust_utxos:{maxColumns:7,allowedColumns:[{column:"txid",label:"Transaction ID"},{column:"address"},{column:"scriptpubkey",label:"Script Pubkey"},{column:"output"},{column:"value"},{column:"blockheight"},{column:"reserved"}]}},peers_channels:{open_channels:{maxColumns:8,allowedColumns:[{column:"short_channel_id"},{column:"alias"},{column:"id"},{column:"channel_id"},{column:"funding_txid",label:"Funding Transaction ID"},{column:"connected"},{column:"our_channel_reserve_satoshis",label:"Local Reserve"},{column:"their_channel_reserve_satoshis",label:"Remote Reserve"},{column:"msatoshi_total",label:"Total"},{column:"spendable_msatoshi",label:"Spendable"},{column:"msatoshi_to_us",label:"Local Balance"},{column:"msatoshi_to_them",label:"Remote Balance"},{column:"balancedness",label:"Balance Score"}]},pending_inactive_channels:{maxColumns:8,allowedColumns:[{column:"alias"},{column:"id"},{column:"channel_id"},{column:"funding_txid",label:"Funding Transaction ID"},{column:"connected"},{column:"state"},{column:"our_channel_reserve_satoshis",label:"Local Reserve"},{column:"their_channel_reserve_satoshis",label:"Remote Reserve"},{column:"msatoshi_total",label:"Total"},{column:"spendable_msatoshi",label:"Spendable"},{column:"msatoshi_to_us",label:"Local Balance"},{column:"msatoshi_to_them",label:"Remote Balance"}]},peers:{maxColumns:3,allowedColumns:[{column:"alias"},{column:"id"},{column:"netaddr",label:"Network Address"}]},active_HTLCs:{maxColumns:7,allowedColumns:[{column:"amount_msat",label:"Amount (Sats)"},{column:"direction"},{column:"id",label:"HTLC ID"},{column:"state"},{column:"expiry"},{column:"payment_hash"},{column:"local_trimmed"}]}},liquidity_ads:{liquidity_ads:{maxColumns:8,allowedColumns:[{column:"alias"},{column:"nodeid",label:"Node ID"},{column:"last_timestamp",label:"Last Announcement At"},{column:"compact_lease"},{column:"lease_fee"},{column:"routing_fee"},{column:"channel_opening_fee"},{column:"funding_weight"}]}},transactions:{payments:{maxColumns:7,allowedColumns:[{column:"created_at",label:"Created At"},{column:"type"},{column:"payment_hash"},{column:"bolt11",label:"Invoice"},{column:"destination"},{column:"memo"},{column:"label"},{column:"msatoshi_sent",label:"Sats Sent"},{column:"msatoshi",label:"Sats Received"}]},invoices:{maxColumns:7,allowedColumns:[{column:"expires_at",label:"Expiry Date"},{column:"paid_at",label:"Date Settled"},{column:"type"},{column:"description"},{column:"label"},{column:"payment_hash"},{column:"bolt11",label:"Invoice"},{column:"msatoshi",label:"Amount"},{column:"msatoshi_received",label:"Amount Settled"}]},offers:{maxColumns:4,allowedColumns:[{column:"offer_id",label:"Offer ID"},{column:"single_use"},{column:"used"},{column:"bolt12",label:"Invoice"}]},offer_bookmarks:{maxColumns:6,allowedColumns:[{column:"lastUpdatedAt",label:"Updated At"},{column:"title"},{column:"description"},{column:"issuer"},{column:"bolt12",label:"Invoice"},{column:"amountMSat",label:"Amount"}]}},routing:{forwarding_history:{maxColumns:8,allowedColumns:[{column:"received_time"},{column:"resolved_time"},{column:"in_channel",label:"In Channel ID"},{column:"in_channel_alias",label:"In Channel"},{column:"out_channel",label:"Out Channel ID"},{column:"out_channel_alias",label:"Out Channel"},{column:"payment_hash"},{column:"in_msatoshi",label:"Amount In"},{column:"out_msatoshi",label:"Amount Out"},{column:"fee"}]},routing_peers:{maxColumns:5,allowedColumns:[{column:"channel_id"},{column:"alias",label:"Peer Alias"},{column:"events"},{column:"total_amount",label:"Amount"},{column:"total_fee",label:"Fee"}]},failed:{maxColumns:7,allowedColumns:[{column:"received_time"},{column:"resolved_time"},{column:"in_channel",label:"In Channel ID"},{column:"in_channel_alias",label:"In Channel"},{column:"out_channel",label:"Out Channel ID"},{column:"out_channel_alias",label:"Out Channel"},{column:"in_msatoshi",label:"Amount In"},{column:"out_msatoshi",label:"Amount Out"},{column:"fee"}]},local_failed:{maxColumns:6,allowedColumns:[{column:"received_time"},{column:"in_channel",label:"In Channel ID"},{column:"in_channel_alias",label:"In Channel"},{column:"out_channel",label:"Out Channel ID"},{column:"out_channel_alias",label:"Out Channel"},{column:"in_msatoshi",label:"Amount In"},{column:"style"},{column:"failreason",label:"Fail Reason"}]}},reports:{routing:{maxColumns:8,allowedColumns:[{column:"received_time"},{column:"resolved_time"},{column:"in_channel",label:"In Channel ID"},{column:"in_channel_alias",label:"In Channel"},{column:"out_channel",label:"Out Channel ID"},{column:"out_channel_alias",label:"Out Channel"},{column:"payment_hash"},{column:"in_msatoshi",label:"Amount In"},{column:"out_msatoshi",label:"Amount Out"},{column:"fee"}]},transactions:{maxColumns:5,allowedColumns:[{column:"date"},{column:"amount_paid"},{column:"num_payments",label:"# Payments"},{column:"amount_received"},{column:"num_invoices",label:"# Invoices"}]}},graph_lookup:{query_routes:{maxColumns:6,allowedColumns:[{column:"id"},{column:"alias"},{column:"channel"},{column:"direction"},{column:"delay"},{column:"msatoshi",label:"Amount"}]}},peerswap:{swaps:{maxColumns:6,allowedColumns:[{column:"id"},{column:"alias"},{column:"short_channel_id"},{column:"created_at"},{column:"state"},{column:"amount"}]}}},wt=[{pageId:"on_chain",tables:[{tableId:"utxos",recordsPerPage:R,sortBy:"tx_id",sortOrder:dt.DESCENDING,columnSelectionSM:["output","amount_sat"],columnSelection:["tx_id","output","label","amount_sat","confirmations"]},{tableId:"transactions",recordsPerPage:R,sortBy:"time_stamp",sortOrder:dt.DESCENDING,columnSelectionSM:["time_stamp","amount","num_confirmations"],columnSelection:["time_stamp","label","amount","total_fees","block_height","num_confirmations"]},{tableId:"dust_utxos",recordsPerPage:R,sortBy:"tx_id",sortOrder:dt.DESCENDING,columnSelectionSM:["output","amount_sat"],columnSelection:["tx_id","output","label","amount_sat","confirmations"]}]},{pageId:"peers_channels",tables:[{tableId:"open",recordsPerPage:R,sortBy:"balancedness",sortOrder:dt.DESCENDING,columnSelectionSM:["remote_alias","local_balance"],columnSelection:["remote_alias","uptime_str","total_satoshis_sent","total_satoshis_received","local_balance","remote_balance","balancedness"]},{tableId:"pending_open",sortBy:"capacity",sortOrder:dt.DESCENDING,columnSelectionSM:["remote_alias","capacity"],columnSelection:["remote_alias","commit_fee","commit_weight","capacity"]},{tableId:"pending_force_closing",sortBy:"limbo_balance",sortOrder:dt.DESCENDING,columnSelectionSM:["remote_alias","limbo_balance"],columnSelection:["remote_alias","recovered_balance","limbo_balance","capacity"]},{tableId:"pending_closing",sortBy:"capacity",sortOrder:dt.DESCENDING,columnSelectionSM:["remote_alias","capacity"],columnSelection:["remote_alias","local_balance","remote_balance","capacity"]},{tableId:"pending_waiting_close",sortBy:"limbo_balance",sortOrder:dt.DESCENDING,columnSelectionSM:["remote_alias","limbo_balance"],columnSelection:["remote_alias","limbo_balance","local_balance","remote_balance"]},{tableId:"closed",recordsPerPage:R,sortBy:"close_type",sortOrder:dt.DESCENDING,columnSelectionSM:["remote_alias","settled_balance"],columnSelection:["close_type","remote_alias","capacity","close_height","settled_balance"]},{tableId:"active_HTLCs",recordsPerPage:R,sortBy:"incoming",sortOrder:dt.ASCENDING,columnSelectionSM:["amount","incoming","expiration_height"],columnSelection:["amount","incoming","expiration_height","hash_lock"]},{tableId:"peers",recordsPerPage:R,sortBy:"alias",sortOrder:dt.DESCENDING,columnSelectionSM:["alias","sat_sent","sat_recv"],columnSelection:["alias","pub_key","sat_sent","sat_recv","ping_time"]}]},{pageId:"transactions",tables:[{tableId:"payments",recordsPerPage:R,sortBy:"creation_date",sortOrder:dt.DESCENDING,columnSelectionSM:["creation_date","fee","value"],columnSelection:["creation_date","payment_hash","fee","value","hops"]},{tableId:"invoices",recordsPerPage:R,sortBy:"creation_date",sortOrder:dt.DESCENDING,columnSelectionSM:["creation_date","settle_date","value"],columnSelection:["creation_date","settle_date","memo","value","amt_paid_sat"]}]},{pageId:"routing",tables:[{tableId:"forwarding_history",recordsPerPage:R,sortBy:"timestamp",sortOrder:dt.DESCENDING,columnSelectionSM:["timestamp","amt_in","amt_out"],columnSelection:["timestamp","alias_in","alias_out","amt_in","amt_out","fee_msat"]},{tableId:"routing_peers",recordsPerPage:R,sortBy:"total_amount",sortOrder:dt.DESCENDING,columnSelectionSM:["alias","events","total_amount"],columnSelection:["chan_id","alias","events","total_amount"]},{tableId:"non_routing_peers",recordsPerPage:R,sortBy:"remote_alias",sortOrder:dt.DESCENDING,columnSelectionSM:["remote_alias","local_balance","remote_balance"],columnSelection:["chan_id","remote_alias","total_satoshis_received","total_satoshis_sent","local_balance","remote_balance"]}]},{pageId:"reports",tables:[{tableId:"routing",recordsPerPage:R,sortBy:"timestamp",sortOrder:dt.DESCENDING,columnSelectionSM:["timestamp","amt_in","amt_out"],columnSelection:["timestamp","alias_in","alias_out","amt_in","amt_out","fee_msat"]},{tableId:"transactions",recordsPerPage:R,sortBy:"date",sortOrder:dt.DESCENDING,columnSelectionSM:["date","amount_paid","amount_received"],columnSelection:["date","amount_paid","num_payments","amount_received","num_invoices"]}]},{pageId:"graph_lookup",tables:[{tableId:"query_routes",recordsPerPage:R,sortBy:"hop_sequence",sortOrder:dt.ASCENDING,columnSelectionSM:["hop_sequence","pubkey_alias","fee_msat"],columnSelection:["hop_sequence","pubkey_alias","chan_capacity","amt_to_forward_msat","fee_msat"]}]},{pageId:"loop",tables:[{tableId:"loop",recordsPerPage:R,sortBy:"initiation_time",sortOrder:dt.DESCENDING,columnSelectionSM:["state","amt"],columnSelection:["state","initiation_time","amt","cost_server","cost_offchain","cost_onchain"]}]},{pageId:"boltz",tables:[{tableId:"swap_out",recordsPerPage:R,sortBy:"status",sortOrder:dt.DESCENDING,columnSelectionSM:["status","id","onchainAmount"],columnSelection:["status","id","claimAddress","onchainAmount","timeoutBlockHeight"]},{tableId:"swap_in",recordsPerPage:R,sortBy:"status",sortOrder:dt.DESCENDING,columnSelectionSM:["status","id","expectedAmount"],columnSelection:["status","id","lockupAddress","expectedAmount","timeoutBlockHeight"]}]}],ke={on_chain:{utxos:{maxColumns:7,allowedColumns:[{column:"tx_id",label:"Transaction ID"},{column:"output"},{column:"label"},{column:"address_type"},{column:"address"},{column:"amount_sat",label:"Amount"},{column:"confirmations"}]},transactions:{maxColumns:7,allowedColumns:[{column:"time_stamp",label:"Date/Time"},{column:"label"},{column:"block_hash"},{column:"tx_hash",label:"Transaction Hash"},{column:"amount"},{column:"total_fees",label:"Fees"},{column:"block_height"},{column:"num_confirmations",label:"Confirmations"}]},dust_utxos:{maxColumns:7,allowedColumns:[{column:"tx_id",label:"Transaction ID"},{column:"output"},{column:"label"},{column:"address_type"},{column:"address"},{column:"amount_sat"},{column:"confirmations"}]}},peers_channels:{open:{maxColumns:8,allowedColumns:[{column:"remote_alias",label:"Peer"},{column:"remote_pubkey",label:"Pubkey"},{column:"channel_point"},{column:"chan_id",label:"Channel ID"},{column:"initiator"},{column:"static_remote_key"},{column:"uptime_str",label:"Uptime"},{column:"lifetime_str",label:"Lifetime"},{column:"commit_fee"},{column:"commit_weight"},{column:"fee_per_kw",label:"Fee/KW"},{column:"num_updates",label:"Updates"},{column:"unsettled_balance"},{column:"capacity"},{column:"local_chan_reserve_sat",label:"Local Reserve"},{column:"remote_chan_reserve_sat",label:"Remote Reserve"},{column:"total_satoshis_sent",label:"Sats Sent"},{column:"total_satoshis_received",label:"Sats Received"},{column:"local_balance"},{column:"remote_balance"},{column:"balancedness",label:"Balance Score"}]},pending_open:{maxColumns:7,disablePageSize:!0,allowedColumns:[{column:"remote_alias",label:"Peer"},{column:"remote_node_pub",label:"Pubkey"},{column:"channel_point"},{column:"initiator"},{column:"commitment_type"},{column:"confirmation_height"},{column:"commit_fee"},{column:"commit_weight"},{column:"fee_per_kw",label:"Fee/KW"},{column:"capacity"},{column:"local_balance"},{column:"remote_balance"}]},pending_force_closing:{maxColumns:7,disablePageSize:!0,allowedColumns:[{column:"closing_txid",label:"Closing Tx ID"},{column:"remote_alias",label:"Peer"},{column:"remote_node_pub",label:"Pubkey"},{column:"channel_point"},{column:"initiator"},{column:"commitment_type"},{column:"limbo_balance"},{column:"maturity_height"},{column:"blocks_til_maturity",label:"Blocks till Maturity"},{column:"recovered_balance"},{column:"capacity"},{column:"local_balance"},{column:"remote_balance"}]},pending_closing:{maxColumns:7,disablePageSize:!0,allowedColumns:[{column:"closing_txid",label:"Closing Tx ID"},{column:"remote_alias",label:"Peer"},{column:"remote_node_pub",label:"Pubkey"},{column:"channel_point"},{column:"initiator"},{column:"commitment_type"},{column:"capacity"},{column:"local_balance"},{column:"remote_balance"}]},pending_waiting_close:{maxColumns:7,disablePageSize:!0,allowedColumns:[{column:"closing_txid",label:"Closing Tx ID"},{column:"remote_alias",label:"Peer"},{column:"remote_node_pub",label:"Pubkey"},{column:"channel_point"},{column:"initiator"},{column:"commitment_type"},{column:"limbo_balance"},{column:"capacity"},{column:"local_balance"},{column:"remote_balance"}]},closed:{maxColumns:7,allowedColumns:[{column:"close_type"},{column:"remote_alias",label:"Peer"},{column:"remote_pubkey",label:"Pubkey"},{column:"channel_point"},{column:"chan_id",label:"Channel ID"},{column:"closing_tx_hash",label:"Closing Tx Hash"},{column:"chain_hash"},{column:"open_initiator"},{column:"close_initiator"},{column:"time_locked_balance",label:"Timelocked Balance"},{column:"capacity"},{column:"close_height"},{column:"settled_balance"}]},active_HTLCs:{maxColumns:7,allowedColumns:[{column:"amount"},{column:"incoming"},{column:"forwarding_channel"},{column:"htlc_index"},{column:"forwarding_htlc_index"},{column:"expiration_height"},{column:"hash_lock"}]},peers:{maxColumns:8,allowedColumns:[{column:"alias"},{column:"pub_key",label:"Public Key"},{column:"address"},{column:"sync_type"},{column:"inbound"},{column:"bytes_sent"},{column:"bytes_recv",label:"Bytes Received"},{column:"sat_sent",label:"Sats Sent"},{column:"sat_recv",label:"Sats Received"},{column:"ping_time"}]}},transactions:{payments:{maxColumns:8,allowedColumns:[{column:"creation_date"},{column:"payment_hash"},{column:"payment_request"},{column:"payment_preimage"},{column:"description"},{column:"description_hash"},{column:"failure_reason"},{column:"payment_index"},{column:"fee"},{column:"value"},{column:"hops"}]},invoices:{maxColumns:9,allowedColumns:[{column:"private"},{column:"is_keysend",label:"Keysend"},{column:"is_amp",label:"AMP"},{column:"creation_date",label:"Date Created"},{column:"settle_date",label:"Date Settled"},{column:"memo"},{column:"r_preimage",label:"Preimage"},{column:"r_hash",label:"Preimage Hash"},{column:"payment_addr",label:"Payment Address"},{column:"payment_request"},{column:"description_hash"},{column:"expiry"},{column:"cltv_expiry"},{column:"add_index"},{column:"settle_index"},{column:"value",label:"Amount"},{column:"amt_paid_sat",label:"Amount Settled"}]}},routing:{forwarding_history:{maxColumns:6,allowedColumns:[{column:"timestamp"},{column:"alias_in",label:"Inbound Alias"},{column:"chan_id_in",label:"Inbound Channel"},{column:"alias_out",label:"Outbound Alias"},{column:"chan_id_out",label:"Outbound Channel"},{column:"amt_in",label:"Inbound Amount"},{column:"amt_out",label:"Outbound Amount"},{column:"fee_msat",label:"Fee"}]},routing_peers:{maxColumns:4,allowedColumns:[{column:"chan_id",label:"Channel ID"},{column:"alias",label:"Peer Alias"},{column:"events"},{column:"total_amount"}]},non_routing_peers:{maxColumns:8,allowedColumns:[{column:"chan_id",label:"Channel ID"},{column:"remote_alias",label:"Peer Alias"},{column:"remote_pubkey",label:"Peer Pubkey"},{column:"channel_point"},{column:"uptime_str",label:"Uptime"},{column:"lifetime_str",label:"Lifetime"},{column:"commit_fee"},{column:"commit_weight"},{column:"fee_per_kw",label:"Fee/KW"},{column:"num_updates",label:"Updates"},{column:"unsettled_balance"},{column:"capacity"},{column:"local_chan_reserve_sat",label:"Local Reserve"},{column:"remote_chan_reserve_sat",label:"Remote Reserve"},{column:"total_satoshis_sent",label:"Sats Sent"},{column:"total_satoshis_received",label:"Sats Received"},{column:"local_balance"},{column:"remote_balance"}]}},reports:{routing:{maxColumns:6,allowedColumns:[{column:"timestamp"},{column:"alias_in",label:"Inbound Alias"},{column:"chan_id_in",label:"Inbound Channel"},{column:"alias_out",label:"Outbound Alias"},{column:"chan_id_out",label:"Outbound Channel"},{column:"amt_in",label:"Inbound Amount"},{column:"amt_out",label:"Outbound Amount"},{column:"fee_msat",label:"Fee"}]},transactions:{maxColumns:5,allowedColumns:[{column:"date"},{column:"amount_paid"},{column:"num_payments",label:"# Payments"},{column:"amount_received"},{column:"num_invoices",label:"# Invoices"}]}},graph_lookup:{query_routes:{maxColumns:8,disablePageSize:!0,allowedColumns:[{column:"hop_sequence",label:"Hop"},{column:"pubkey_alias",label:"Peer"},{column:"pub_key",label:"Peer Pubkey"},{column:"chan_id",label:"Channel ID"},{column:"tlv_payload"},{column:"expiry"},{column:"chan_capacity",label:"Capacity"},{column:"amt_to_forward_msat",label:"Amount To Fwd"},{column:"fee_msat",label:"Fee"}]}},loop:{loop:{maxColumns:8,allowedColumns:[{column:"state"},{column:"initiation_time"},{column:"last_update_time"},{column:"amt",label:"Amount"},{column:"cost_server"},{column:"cost_offchain"},{column:"cost_onchain"},{column:"htlc_address"},{column:"id"},{column:"id_bytes",label:"ID (Bytes)"}]}},boltz:{swap_out:{maxColumns:7,allowedColumns:[{column:"status"},{column:"id",label:"Swap ID"},{column:"claimAddress",label:"Claim Address"},{column:"onchainAmount",label:"Onchain Amount"},{column:"error"},{column:"privateKey",label:"Private Key"},{column:"preimage"},{column:"redeemScript",label:"Redeem Script"},{column:"invoice"},{column:"timeoutBlockHeight",label:"Timeout Block Height"},{column:"lockupTransactionId",label:"Lockup Tx ID"},{column:"claimTransactionId",label:"Claim Tx ID"}]},swap_in:{maxColumns:7,allowedColumns:[{column:"status"},{column:"id",label:"Swap ID"},{column:"lockupAddress",label:"Lockup Address"},{column:"expectedAmount",label:"Expected Amount"},{column:"error"},{column:"privateKey",label:"Private Key"},{column:"preimage"},{column:"redeemScript",label:"Redeem Script"},{column:"invoice"},{column:"timeoutBlockHeight",label:"Timeout Block Height"},{column:"lockupTransactionId",label:"Lockup Tx ID"},{column:"refundTransactionId",label:"Refund Tx ID"}]}}},Ke=[{pageId:"on_chain",tables:[{tableId:"transaction",recordsPerPage:R,sortBy:"timestamp",sortOrder:dt.DESCENDING,columnSelectionSM:["timestamp","amount"],columnSelection:["timestamp","address","amount","fees","confirmations"]}]},{pageId:"peers_channels",tables:[{tableId:"open_channels",recordsPerPage:R,sortBy:"alias",sortOrder:dt.DESCENDING,columnSelectionSM:["alias","toLocal","toRemote"],columnSelection:["shortChannelId","alias","feeBaseMsat","feeProportionalMillionths","toLocal","toRemote","balancedness"]},{tableId:"pending_channels",recordsPerPage:R,sortBy:"alias",sortOrder:dt.DESCENDING,columnSelectionSM:["state","alias","toLocal"],columnSelection:["state","alias","toLocal","toRemote"]},{tableId:"inactive_channels",recordsPerPage:R,sortBy:"alias",sortOrder:dt.DESCENDING,columnSelectionSM:["state","alias","toLocal"],columnSelection:["state","shortChannelId","alias","toLocal","toRemote","balancedness"]},{tableId:"peers",recordsPerPage:R,sortBy:"alias",sortOrder:dt.ASCENDING,columnSelectionSM:["alias","nodeId"],columnSelection:["alias","nodeId","address","channels"]}]},{pageId:"transactions",tables:[{tableId:"payments",recordsPerPage:R,sortBy:"firstPartTimestamp",sortOrder:dt.DESCENDING,columnSelectionSM:["firstPartTimestamp","recipientAmount"],columnSelection:["firstPartTimestamp","id","recipientNodeAlias","recipientAmount"]},{tableId:"invoices",recordsPerPage:R,sortBy:"receivedAt",sortOrder:dt.DESCENDING,columnSelectionSM:["timestamp","amount","amountSettled"],columnSelection:["timestamp","receivedAt","description","amount","amountSettled"]}]},{pageId:"routing",tables:[{tableId:"forwarding_history",recordsPerPage:R,sortBy:"timestamp",sortOrder:dt.DESCENDING,columnSelectionSM:["timestamp","amountIn","fee"],columnSelection:["timestamp","fromChannelAlias","toChannelAlias","amountIn","amountOut","fee"]},{tableId:"routing_peers",recordsPerPage:R,sortBy:"totalFee",sortOrder:dt.DESCENDING,columnSelectionSM:["alias","events","totalFee"],columnSelection:["channelId","alias","events","totalAmount","totalFee"]}]},{pageId:"reports",tables:[{tableId:"routing",recordsPerPage:R,sortBy:"timestamp",sortOrder:dt.DESCENDING,columnSelectionSM:["timestamp","amountIn","fee"],columnSelection:["timestamp","fromChannelAlias","toChannelAlias","amountIn","amountOut","fee"]},{tableId:"transactions",recordsPerPage:R,sortBy:"date",sortOrder:dt.DESCENDING,columnSelectionSM:["date","amount_paid","amount_received"],columnSelection:["date","amount_paid","num_payments","amount_received","num_invoices"]}]}],xt={on_chain:{transaction:{maxColumns:6,allowedColumns:[{column:"timestamp",label:"Date/Time"},{column:"address"},{column:"blockHash"},{column:"txid",label:"Transaction ID"},{column:"amount"},{column:"fees"},{column:"confirmations"}]}},peers_channels:{open_channels:{maxColumns:8,allowedColumns:[{column:"shortChannelId"},{column:"channelId"},{column:"alias"},{column:"nodeId"},{column:"isFunder",label:"Funder"},{column:"buried"},{column:"feeBaseMsat",label:"Base Fee"},{column:"feeProportionalMillionths",label:"Fee Rate"},{column:"toLocal",label:"Local Balance"},{column:"toRemote",label:"Remote Balance"},{column:"feeRatePerKw",label:"Fee/KW"},{column:"balancedness",label:"Balance Score"}]},pending_channels:{maxColumns:7,allowedColumns:[{column:"state"},{column:"channelId"},{column:"alias"},{column:"nodeId"},{column:"isFunder",label:"Funder"},{column:"buried"},{column:"toLocal",label:"Local Balance"},{column:"toRemote",label:"Remote Balance"},{column:"feeRatePerKw",label:"Fee/KW"}]},inactive_channels:{maxColumns:8,allowedColumns:[{column:"state"},{column:"shortChannelId"},{column:"channelId"},{column:"alias"},{column:"nodeId"},{column:"isFunder",label:"Funder"},{column:"buried"},{column:"toLocal",label:"Local Balance"},{column:"toRemote",label:"Remote Balance"},{column:"feeRatePerKw",label:"Fee/KW"},{column:"balancedness",label:"Balance Score"}]},peers:{maxColumns:4,allowedColumns:[{column:"alias"},{column:"nodeId"},{column:"address",label:"Netwrok Address"},{column:"channels"}]}},transactions:{payments:{maxColumns:7,allowedColumns:[{column:"firstPartTimestamp",label:"Date/Time"},{column:"id"},{column:"recipientNodeId",label:"Destination Node ID"},{column:"recipientNodeAlias",label:"Destination"},{column:"description"},{column:"paymentHash"},{column:"paymentPreimage",label:"Preimage"},{column:"recipientAmount",label:"Amount"}]},invoices:{maxColumns:7,allowedColumns:[{column:"timestamp",label:"Date Created"},{column:"expiresAt",label:"Date Expiry"},{column:"receivedAt",label:"Date Settled"},{column:"nodeId",label:"Node ID"},{column:"description"},{column:"paymentHash"},{column:"amount"},{column:"amountSettled",label:"Amount Settled"}]}},routing:{forwarding_history:{maxColumns:7,allowedColumns:[{column:"timestamp",label:"Date/Time"},{column:"fromChannelId",label:"In Channel ID"},{column:"fromShortChannelId",label:"In Channel Short ID"},{column:"fromChannelAlias",label:"In Channel"},{column:"toChannelId",label:"Out Channel ID"},{column:"toShortChannelId",label:"Out Channel Short ID"},{column:"toChannelAlias",label:"Out Channel"},{column:"paymentHash"},{column:"amountIn"},{column:"amountOut"},{column:"fee",label:"Fee Earned"}]},routing_peers:{maxColumns:5,allowedColumns:[{column:"channelId"},{column:"alias",label:"Peer Alias"},{column:"events"},{column:"totalAmount",label:"Amount"},{column:"totalFee",label:"Fee"}]}},reports:{routing:{maxColumns:7,allowedColumns:[{column:"timestamp",label:"Date/Time"},{column:"fromChannelId",label:"In Channel ID"},{column:"fromShortChannelId",label:"In Channel Short ID"},{column:"fromChannelAlias",label:"In Channel"},{column:"toChannelId",label:"Out Channel ID"},{column:"toShortChannelId",label:"Out Channel Short ID"},{column:"toChannelAlias",label:"Out Channel"},{column:"paymentHash"},{column:"amountIn"},{column:"amountOut"},{column:"fee",label:"Fee Earned"}]},transactions:{maxColumns:5,allowedColumns:[{column:"date"},{column:"amount_paid"},{column:"num_payments",label:"# Payments"},{column:"amount_received"},{column:"num_invoices",label:"# Invoices"}]}}}},8104:(Ve,q,p)=>{"use strict";p.d(q,{D:()=>ne});var t=p(529),e=p(1135),b=p(7579),I=p(2843),s=p(9646),C=p(590),h=p(5577),P=p(2722),d=p(4004),S=p(262),w=p(1365),O=p(7731),E=p(1786),R=p(7861),z=p(6523),U=p(6529),W=p(9828),K=p(4650),ee=p(9653),ie=p(5043),ue=p(7009),le=p(6895);class ne{constructor($,me,A,i,a){this.httpClient=$,this.store=me,this.logger=A,this.snackBar=i,this.titleCasePipe=a,this.APIUrl=O.T5,this.lnImplementation="",this.lnImplementationUpdated=new e.X(null),this.unSubs=[new b.x,new b.x,new b.x,new b.x,new b.x,new b.x,new b.x,new b.x,new b.x,new b.x,new b.x,new b.x,new b.x],this.mapAliases=(u,l)=>(u&&u.length>0?u.forEach((y,T)=>{if(l&&l.length>0)for(let L=0;L<l.length;L++){if(l[L].short_channel_id&&l[L].short_channel_id===y.in_channel&&(y.in_channel_alias=l[L].alias?l[L].alias:y.in_channel,y.out_channel_alias)||l[L].short_channel_id&&l[L].short_channel_id?.toString()===y.out_channel&&(y.out_channel_alias=l[L].alias?l[L].alias:y.out_channel,y.in_channel_alias))return;L===l.length-1&&(y.in_channel_alias||(y.in_channel_alias=y.in_channel?y.in_channel:"-"),y.out_channel_alias||(y.out_channel_alias=y.out_channel?y.out_channel:"-"))}else y.in_channel_alias=y.in_channel?y.in_channel:"-",y.out_channel_alias=y.out_channel?y.out_channel:"-"}):u=[],u)}setLnImplementation($){this.lnImplementation=$.toLowerCase(),this.lnImplementationUpdated.next(this.lnImplementation)}getFiatRates(){return this.httpClient.get(O.vv.CONF_API+"/rates")}decodePayment($,me){return this.lnImplementationUpdated.pipe((0,C.P)(),(0,h.z)(A=>{let i=this.APIUrl+"/"+A+O.vv.PAYMENTS_API+"/decode/"+$;return"cln"===A&&(i=this.APIUrl+"/"+A+O.vv.UTILITY_API+"/decode/"+$),this.store.dispatch((0,R.ac)({payload:O.m6.DECODE_PAYMENT})),this.httpClient.get(i).pipe((0,P.R)(this.unSubs[0]),(0,d.U)(a=>(this.store.dispatch((0,R.uO)({payload:O.m6.DECODE_PAYMENT})),a)),(0,S.K)(a=>(me?this.handleErrorWithoutAlert("Decode Payment",O.m6.DECODE_PAYMENT,a):this.handleErrorWithAlert("decodePaymentData",O.m6.DECODE_PAYMENT,"Decode Payment Failed",i,a),(0,I._)(()=>new Error(this.extractErrorMessage(a))))))}))}decodePayments($){return this.lnImplementationUpdated.pipe((0,C.P)(),(0,h.z)(me=>{let A="",i="";return"ecl"===me?(A=this.APIUrl+"/"+me+O.vv.PAYMENTS_API+"/getsentinfos",i=O.m6.GET_SENT_PAYMENTS):"cln"===me?(A=this.APIUrl+"/"+me+O.vv.UTILITY_API,i=O.m6.DECODE_PAYMENTS):(A=this.APIUrl+"/"+me+O.vv.PAYMENTS_API,i=O.m6.DECODE_PAYMENTS),this.store.dispatch((0,R.ac)({payload:i})),this.httpClient.post(A,{payments:$}).pipe((0,P.R)(this.unSubs[1]),(0,d.U)(a=>(this.store.dispatch((0,R.uO)({payload:i})),a)),(0,S.K)(a=>(this.handleErrorWithAlert("decodePaymentsData",i,i+" Failed",A,a),(0,I._)(()=>new Error(this.extractErrorMessage(a))))))}))}getAliasesFromPubkeys($,me){return this.lnImplementationUpdated.pipe((0,C.P)(),(0,h.z)(A=>{if(me){const i=(new t.LE).set("pubkeys",$);return this.httpClient.get(this.APIUrl+"/"+A+O.vv.NETWORK_API+"/nodes",{params:i})}return this.httpClient.get(this.APIUrl+"/"+A+O.vv.NETWORK_API+"/node/"+$)}))}signMessage($){return this.lnImplementationUpdated.pipe((0,C.P)(),(0,h.z)(me=>{let A=this.APIUrl+"/"+me+O.vv.MESSAGE_API+"/sign";return"cln"===me&&(A=this.APIUrl+"/"+me+O.vv.UTILITY_API+"/sign"),this.store.dispatch((0,R.ac)({payload:O.m6.SIGN_MESSAGE})),this.httpClient.post(A,{message:$}).pipe((0,P.R)(this.unSubs[2]),(0,d.U)(i=>(this.store.dispatch((0,R.uO)({payload:O.m6.SIGN_MESSAGE})),i)),(0,S.K)(i=>(this.handleErrorWithAlert("signMessageData",O.m6.SIGN_MESSAGE,"Sign Message Failed",A,i),(0,I._)(()=>new Error(this.extractErrorMessage(i))))))}))}verifyMessage($,me){return this.lnImplementationUpdated.pipe((0,C.P)(),(0,h.z)(A=>{let i=this.APIUrl+"/"+A+O.vv.MESSAGE_API+"/verify";return"cln"===A&&(i=this.APIUrl+"/"+A+O.vv.UTILITY_API+"/verify"),this.store.dispatch((0,R.ac)({payload:O.m6.VERIFY_MESSAGE})),this.httpClient.post(i,{message:$,signature:me}).pipe((0,P.R)(this.unSubs[3]),(0,d.U)(a=>(this.store.dispatch((0,R.uO)({payload:O.m6.VERIFY_MESSAGE})),a)),(0,S.K)(a=>(this.handleErrorWithAlert("verifyMessageData",O.m6.VERIFY_MESSAGE,"Verify Message Failed",i,a),(0,I._)(()=>new Error(this.extractErrorMessage(a))))))}))}bumpFee($,me,A,i){return this.lnImplementationUpdated.pipe((0,C.P)(),(0,h.z)(a=>{const u={txid:$,outputIndex:me};return A&&(u.targetConf=A),i&&(u.satPerByte=i),this.store.dispatch((0,R.ac)({payload:O.m6.BUMP_FEE})),this.httpClient.post(this.APIUrl+"/"+a+O.vv.WALLET_API+"/bumpfee",u).pipe((0,P.R)(this.unSubs[4]),(0,d.U)(l=>(this.store.dispatch((0,R.uO)({payload:O.m6.BUMP_FEE})),this.snackBar.open("Successfully bumped the fee. Use the block explorer to verify transaction."),l)),(0,S.K)(l=>(this.handleErrorWithoutAlert("Bump Fee",O.m6.BUMP_FEE,l),(0,I._)(()=>new Error(this.extractErrorMessage(l))))))}))}labelUTXO($,me,A=!0){return this.lnImplementationUpdated.pipe((0,C.P)(),(0,h.z)(i=>{const a={txid:$,label:me,overwrite:A};return this.store.dispatch((0,R.ac)({payload:O.m6.LABEL_UTXO})),this.httpClient.post(this.APIUrl+"/"+i+O.vv.WALLET_API+"/label",a).pipe((0,P.R)(this.unSubs[5]),(0,d.U)(u=>(this.store.dispatch((0,R.uO)({payload:O.m6.LABEL_UTXO})),u)),(0,S.K)(u=>(this.handleErrorWithoutAlert("Lease UTXO",O.m6.LABEL_UTXO,u),(0,I._)(()=>new Error(this.extractErrorMessage(u))))))}))}leaseUTXO($,me){return this.lnImplementationUpdated.pipe((0,C.P)(),(0,h.z)(A=>{const i={txid:$,outputIndex:me};return this.store.dispatch((0,R.ac)({payload:O.m6.LEASE_UTXO})),this.httpClient.post(this.APIUrl+"/"+A+O.vv.WALLET_API+"/lease",i).pipe((0,P.R)(this.unSubs[6]),(0,d.U)(a=>{this.store.dispatch((0,R.uO)({payload:O.m6.LEASE_UTXO})),this.store.dispatch((0,z.mC)()),this.store.dispatch((0,z.Ly)());const u=new Date(1e3*a.expiration);return Math.round(u.getTime())-60*u.getTimezoneOffset()}),(0,S.K)(a=>(this.handleErrorWithoutAlert("Lease UTXO",O.m6.LEASE_UTXO,a),(0,I._)(()=>new Error(this.extractErrorMessage(a))))))}))}getForwardingHistory($,me,A,i){if("LND"===$){const a={end_time:A,start_time:me};return this.store.dispatch((0,R.ac)({payload:O.m6.GET_FORWARDING_HISTORY})),this.httpClient.post(this.APIUrl+"/lnd"+O.vv.SWITCH_API,a).pipe((0,P.R)(this.unSubs[7]),(0,w.M)(this.store.select(U._f)),(0,h.z)(([u,l])=>{if(u.forwarding_events){const y=[...l.channels,...l.closedChannels];u.forwarding_events.forEach(T=>{if(y&&y.length>0)for(let L=0;L<y.length;L++){if(y[L].chan_id?.toString()===T.chan_id_in&&(T.alias_in=y[L].remote_alias?y[L].remote_alias:T.chan_id_in,T.alias_out)||y[L].chan_id?.toString()===T.chan_id_out&&(T.alias_out=y[L].remote_alias?y[L].remote_alias:T.chan_id_out,T.alias_in))return;L===y.length-1&&(T.alias_in||(T.alias_in=T.chan_id_in),T.alias_out||(T.alias_out=T.chan_id_out))}else T.alias_in=T.chan_id_in,T.alias_out=T.chan_id_out})}else u={};return this.store.dispatch((0,R.uO)({payload:O.m6.GET_FORWARDING_HISTORY})),(0,s.of)(u)}),(0,S.K)(u=>(this.handleErrorWithAlert("getForwardingHistoryData",O.m6.GET_FORWARDING_HISTORY,"Forwarding History Failed",this.APIUrl+"/lnd"+O.vv.SWITCH_API,u),(0,I._)(()=>new Error(this.extractErrorMessage(u))))))}return"CLN"===$?(this.store.dispatch((0,R.ac)({payload:O.m6.GET_FORWARDING_HISTORY})),this.httpClient.get(this.APIUrl+"/cln"+O.vv.CHANNELS_API+"/listForwards?status="+i).pipe((0,P.R)(this.unSubs[8]),(0,w.M)(this.store.select(W.ZW)),(0,h.z)(([a,u])=>{const l=this.mapAliases(a,[...u.activeChannels,...u.pendingChannels,...u.inactiveChannels]);return this.store.dispatch((0,R.uO)({payload:O.m6.GET_FORWARDING_HISTORY})),(0,s.of)(l)}),(0,S.K)(a=>(this.handleErrorWithAlert("getForwardingHistoryData",O.m6.GET_FORWARDING_HISTORY,"Forwarding History Failed",this.APIUrl+"/cln"+O.vv.CHANNELS_API+"/listForwards?status="+i+"&start="+me+"&end="+A,a),(0,I._)(()=>new Error(this.extractErrorMessage(a))))))):(0,s.of)({})}listNetworkNodes($=""){return this.lnImplementationUpdated.pipe((0,C.P)(),(0,h.z)(me=>(this.store.dispatch((0,R.ac)({payload:O.m6.LIST_NETWORK_NODES})),this.httpClient.get(this.APIUrl+"/"+me+O.vv.NETWORK_API+"/listNodes"+$).pipe((0,P.R)(this.unSubs[9]),(0,h.z)(A=>(this.store.dispatch((0,R.uO)({payload:O.m6.LIST_NETWORK_NODES})),(0,s.of)(A))),(0,S.K)(A=>(this.handleErrorWithoutAlert("List Network Nodes",O.m6.LIST_NETWORK_NODES,A),(0,I._)(()=>this.extractErrorMessage(A))))))))}listConfigs(){return this.lnImplementationUpdated.pipe((0,C.P)(),(0,h.z)($=>(this.store.dispatch((0,R.ac)({payload:O.m6.GET_LIST_CONFIGS})),this.httpClient.get(this.APIUrl+"/"+$+O.vv.UTILITY_API+"/listConfigs").pipe((0,P.R)(this.unSubs[10]),(0,h.z)(me=>(this.store.dispatch((0,R.uO)({payload:O.m6.GET_LIST_CONFIGS})),(0,s.of)(me))),(0,S.K)(me=>(this.handleErrorWithoutAlert("List Configurations",O.m6.GET_LIST_CONFIGS,me),(0,I._)(()=>this.extractErrorMessage(me))))))))}getOrUpdateFunderPolicy($,me,A,i,a,u){return this.lnImplementationUpdated.pipe((0,C.P)(),(0,h.z)(l=>{const y=$?{policy:$,policy_mod:me,lease_fee_base_msat:A,lease_fee_basis:i,channel_fee_max_base_msat:a,channel_fee_max_proportional_thousandths:u}:null;return this.store.dispatch((0,R.ac)({payload:O.m6.GET_FUNDER_POLICY})),this.httpClient.post(this.APIUrl+"/"+l+O.vv.CHANNELS_API+"/funderUpdate",y).pipe((0,P.R)(this.unSubs[11]),(0,d.U)(T=>(this.store.dispatch((0,R.uO)({payload:O.m6.GET_FUNDER_POLICY})),y&&this.store.dispatch((0,R.jW)({payload:"Funder Policy Updated Successfully with Compact Lease: "+T.compact_lease+"!"})),T)),(0,S.K)(T=>(this.handleErrorWithoutAlert("Funder Policy",O.m6.GET_FUNDER_POLICY,T),(0,I._)(()=>new Error(this.extractErrorMessage(T))))))}))}circularRebalance($,me="",A="",i="",a="",u=[],l="shortChannelId"){return this.httpClient.post(this.APIUrl+"/"+this.lnImplementation+O.vv.CHANNELS_API+"/circularRebalance",{amountMsat:$,sourceShortChannelId:me,sourceNodeId:A,targetShortChannelId:i,targetNodeId:a,ignoreNodeIds:u,format:l}).pipe((0,P.R)(this.unSubs[12]),(0,d.U)(L=>L),(0,S.K)(L=>(this.handleErrorWithoutAlert("Rebalance Channel",O.m6.REBALANCE_CHANNEL,L),(0,I._)(()=>new Error(this.extractErrorMessage(L))))))}extractErrorMessage($,me="Unknown Error."){return this.titleCasePipe.transform($.error.text&&"string"==typeof $.error.text&&$.error.text.includes('<!DOCTYPE html><html lang="en">')?"API Route Does Not Exist.":$.error&&$.error.error&&$.error.error.error&&$.error.error.error.error&&$.error.error.error.error.error&&"string"==typeof $.error.error.error.error.error?$.error.error.error.error.error:$.error&&$.error.error&&$.error.error.error&&$.error.error.error.error&&"string"==typeof $.error.error.error.error?$.error.error.error.error:$.error&&$.error.error&&$.error.error.error&&"string"==typeof $.error.error.error?$.error.error.error:$.error&&$.error.error&&"string"==typeof $.error.error?$.error.error:$.error&&"string"==typeof $.error?$.error:$.error&&$.error.error&&$.error.error.error&&$.error.error.error.error&&$.error.error.error.error.message&&"string"==typeof $.error.error.error.error.message?$.error.error.error.error.message:$.error&&$.error.error&&$.error.error.error&&$.error.error.error.message&&"string"==typeof $.error.error.error.message?$.error.error.error.message:$.error&&$.error.error&&$.error.error.message&&"string"==typeof $.error.error.message?$.error.error.message:$.error&&$.error.message&&"string"==typeof $.error.message?$.error.message:$.message&&"string"==typeof $.message?$.message:me)}handleErrorWithoutAlert($,me,A){A.error.text&&"string"==typeof A.error.text&&A.error.text.includes('<!DOCTYPE html><html lang="en">')&&(A={status:403,error:{message:"API Route Does Not Exist."}}),this.logger.error("ERROR IN: "+$+"\n"+JSON.stringify(A)),401===A.status?(this.logger.info("Redirecting to Login"),this.store.dispatch((0,R.ts)()),this.store.dispatch((0,R.kS)()),this.store.dispatch((0,R.jW)({payload:"Authentication Failed. Redirecting to Login."}))):(this.store.dispatch((0,R.uO)({payload:me})),this.store.dispatch((0,R.qi)({payload:{action:$,status:O.Bn.ERROR,statusCode:A.status.toString(),message:this.extractErrorMessage(A)}})))}handleErrorWithAlert($,me,A,i,a){if(this.logger.error(a),401===a.status)this.logger.info("Redirecting to Login"),this.store.dispatch((0,R.ts)()),this.store.dispatch((0,R.kS)()),this.store.dispatch((0,R.jW)({payload:"Authentication Failed. Redirecting to Login."}));else{this.store.dispatch((0,R.uO)({payload:me}));const u=this.extractErrorMessage(a);this.store.dispatch((0,R.qR)({payload:{data:{type:"ERROR",alertTitle:A,message:{code:a.status?a.status:"Unknown Error",message:u,URL:i},component:E.H}}})),this.store.dispatch((0,R.qi)({payload:{action:$,status:O.Bn.ERROR,statusCode:a.status.toString(),message:u,URL:i}}))}}ngOnDestroy(){this.unSubs.forEach($=>{$.next(null),$.complete()})}}ne.\u0275fac=function($){return new($||ne)(K.LFG(t.eN),K.LFG(ee.yh),K.LFG(ie.mQ),K.LFG(ue.ux),K.LFG(le.rS))},ne.\u0275prov=K.Yz7({token:ne,factory:ne.\u0275fac})},5043:(Ve,q,p)=>{"use strict";p.d(q,{LG:()=>C,mQ:()=>s});var t=p(4650);const e=(0,t.X6Q)(),b=()=>null;class s{invokeConsoleMethod(P,d){}}s.\u0275fac=function(P){return new(P||s)},s.\u0275prov=t.Yz7({token:s,factory:s.\u0275fac});class C{get info(){return e?console.log.bind(console):b}get warn(){return e?console.warn.bind(console):b}get error(){return e?console.error.bind(console):b}invokeConsoleMethod(P,d){(console[P]||console.log||b).apply(console,[d])}}C.\u0275fac=function(P){return new(P||C)},C.\u0275prov=t.Yz7({token:C,factory:C.\u0275fac})},9107:(Ve,q,p)=>{"use strict";p.d(q,{W:()=>U});var t=p(529),e=p(1135),b=p(7579),I=p(9646),s=p(2843),C=p(2722),h=p(262),P=p(4004),d=p(7731),S=p(1786),w=p(7861),O=p(4650),E=p(5043),R=p(9653),z=p(62);class U{constructor(K,ee,ie,ue){this.httpClient=K,this.logger=ee,this.store=ie,this.commonService=ue,this.loopUrl="",this.swaps=[],this.swapsChanged=new e.X([]),this.unSubs=[new b.x,new b.x,new b.x,new b.x,new b.x]}getSwapsList(){return this.swaps}listSwaps(){this.store.dispatch((0,w.ac)({payload:d.m6.GET_LOOP_SWAPS})),this.loopUrl=d.T5+d.vv.LOOP_API+"/swaps",this.httpClient.get(this.loopUrl).pipe((0,C.R)(this.unSubs[0])).subscribe({next:K=>{this.store.dispatch((0,w.uO)({payload:d.m6.GET_LOOP_SWAPS})),this.swaps=K,this.swapsChanged.next(this.swaps)},error:K=>this.swapsChanged.error(this.handleErrorWithAlert(d.m6.GET_LOOP_SWAPS,this.loopUrl,K))})}loopOut(K,ee,ie,ue,le,ne,de,$,me,A){const i={amount:K,targetConf:ie,swapRoutingFee:ue,minerFee:le,prepayRoutingFee:ne,prepayAmt:de,swapFee:$,swapPublicationDeadline:me,destAddress:A};return""!==ee&&(i.chanId=ee),this.loopUrl=d.T5+d.vv.LOOP_API+"/out",this.httpClient.post(this.loopUrl,i).pipe((0,h.K)(a=>this.handleErrorWithoutAlert("Loop Out for Channel: "+ee,d.m6.NO_SPINNER,a)))}getLoopOutTerms(){return this.loopUrl=d.T5+d.vv.LOOP_API+"/out/terms",this.httpClient.get(this.loopUrl).pipe((0,h.K)(K=>this.handleErrorWithoutAlert("Loop Out Terms",d.m6.NO_SPINNER,K)))}getLoopOutQuote(K,ee,ie){let ue=new t.LE;return ue=ue.append("targetConf",ee.toString()),ue=ue.append("swapPublicationDeadline",ie.toString()),this.loopUrl=d.T5+d.vv.LOOP_API+"/out/quote/"+K,this.store.dispatch((0,w.ac)({payload:d.m6.GET_QUOTE})),this.httpClient.get(this.loopUrl,{params:ue}).pipe((0,C.R)(this.unSubs[1]),(0,P.U)(le=>(this.store.dispatch((0,w.uO)({payload:d.m6.GET_QUOTE})),le)),(0,h.K)(le=>this.handleErrorWithoutAlert("Loop Out Quote",d.m6.GET_QUOTE,le)))}getLoopOutTermsAndQuotes(K){let ee=new t.LE;return ee=ee.append("targetConf",K.toString()),ee=ee.append("swapPublicationDeadline",((new Date).getTime()+18e5).toString()),this.loopUrl=d.T5+d.vv.LOOP_API+"/out/termsAndQuotes",this.store.dispatch((0,w.ac)({payload:d.m6.GET_TERMS_QUOTES})),this.httpClient.get(this.loopUrl,{params:ee}).pipe((0,C.R)(this.unSubs[2]),(0,P.U)(ie=>(this.store.dispatch((0,w.uO)({payload:d.m6.GET_TERMS_QUOTES})),ie)),(0,h.K)(ie=>(0,I.of)(this.handleErrorWithAlert(d.m6.GET_TERMS_QUOTES,this.loopUrl,ie))))}loopIn(K,ee,ie,ue,le){const ne={amount:K,swapFee:ee,minerFee:ie,lastHop:ue,externalHtlc:le};return this.loopUrl=d.T5+d.vv.LOOP_API+"/in",this.httpClient.post(this.loopUrl,ne).pipe((0,h.K)(de=>this.handleErrorWithoutAlert("Loop In",d.m6.NO_SPINNER,de)))}getLoopInTerms(){return this.loopUrl=d.T5+d.vv.LOOP_API+"/in/terms",this.httpClient.get(this.loopUrl).pipe((0,h.K)(K=>this.handleErrorWithoutAlert("Loop In Terms",d.m6.NO_SPINNER,K)))}getLoopInQuote(K,ee,ie){let ue=new t.LE;return ue=ue.append("targetConf",ee.toString()),ue=ue.append("swapPublicationDeadline",ie.toString()),this.loopUrl=d.T5+d.vv.LOOP_API+"/in/quote/"+K,this.store.dispatch((0,w.ac)({payload:d.m6.GET_QUOTE})),this.httpClient.get(this.loopUrl,{params:ue}).pipe((0,C.R)(this.unSubs[3]),(0,P.U)(le=>(this.store.dispatch((0,w.uO)({payload:d.m6.GET_QUOTE})),le)),(0,h.K)(le=>this.handleErrorWithoutAlert("Loop In Qoute",d.m6.GET_QUOTE,le)))}getLoopInTermsAndQuotes(K){let ee=new t.LE;return ee=ee.append("targetConf",K.toString()),ee=ee.append("swapPublicationDeadline",((new Date).getTime()+18e5).toString()),this.loopUrl=d.T5+d.vv.LOOP_API+"/in/termsAndQuotes",this.store.dispatch((0,w.ac)({payload:d.m6.GET_TERMS_QUOTES})),this.httpClient.get(this.loopUrl,{params:ee}).pipe((0,C.R)(this.unSubs[4]),(0,P.U)(ie=>(this.store.dispatch((0,w.uO)({payload:d.m6.GET_TERMS_QUOTES})),ie)),(0,h.K)(ie=>(0,I.of)(this.handleErrorWithAlert(d.m6.GET_TERMS_QUOTES,this.loopUrl,ie))))}getSwap(K){return this.loopUrl=d.T5+d.vv.LOOP_API+"/swap/"+K,this.httpClient.get(this.loopUrl).pipe((0,h.K)(ee=>this.handleErrorWithoutAlert("Loop Get Swap for ID: "+K,d.m6.NO_SPINNER,ee)))}handleErrorWithoutAlert(K,ee,ie){let ue="";return this.logger.error("ERROR IN: "+K+"\n"+JSON.stringify(ie)),this.store.dispatch((0,w.uO)({payload:ee})),401===ie.status?(ue="Unauthorized User.",this.logger.info("Redirecting to Login"),this.store.dispatch((0,w.kS)())):503===ie.status?(ue="Unable to Connect to Loop Server.",this.store.dispatch((0,w.qR)({payload:{data:{type:"ERROR",alertTitle:"Loop Not Connected",message:{code:ie.status,message:"Unable to Connect to Loop Server",URL:K},component:S.H}}}))):ue=this.commonService.extractErrorMessage(ie),(0,s._)(()=>new Error(ue))}handleErrorWithAlert(K,ee,ie){let ue="";if(this.logger.error(ie),this.store.dispatch((0,w.uO)({payload:K})),401===ie.status)ue="Unauthorized User.",this.logger.info("Redirecting to Login"),this.store.dispatch((0,w.kS)());else if(503===ie.status)ue="Unable to Connect to Loop Server.",setTimeout(()=>{this.store.dispatch((0,w.qR)({payload:{data:{type:"ERROR",alertTitle:"Loop Not Connected",message:{code:ie.status,message:"Unable to Connect to Loop Server",URL:ee},component:S.H}}}))},100);else{ue=this.commonService.extractErrorMessage(ie);const le=ie.error&&ie.error.error&&ie.error.error.code?ie.error.error.code:ie.error&&ie.error.code?ie.error.code:ie.code?ie.code:ie.status;setTimeout(()=>{this.store.dispatch((0,w.qR)({payload:{data:{type:d.n_.ERROR,alertTitle:"ERROR",message:{code:le,message:ue,URL:ee},component:S.H}}}))},100)}return{message:ue}}ngOnDestroy(){this.unSubs.forEach(K=>{K.next(null),K.complete()})}}U.\u0275fac=function(K){return new(K||U)(O.LFG(t.eN),O.LFG(E.mQ),O.LFG(R.yh),O.LFG(z.v))},U.\u0275prov=O.Yz7({token:U,factory:U.\u0275fac})},5986:(Ve,q,p)=>{"use strict";p.d(q,{m:()=>b});var t=p(7579),e=p(4650);class b{constructor(){this.sessionSub=new t.x}watchSession(){return this.sessionSub.asObservable()}getItem(s){return sessionStorage.getItem(s)}getAllItems(){return sessionStorage}setItem(s,C){sessionStorage.setItem(s,C),this.sessionSub.next(sessionStorage)}removeItem(s){sessionStorage.removeItem(s),this.sessionSub.next(sessionStorage)}clearAll(){sessionStorage.clear(),this.sessionSub.next(sessionStorage)}}b.\u0275fac=function(s){return new(s||b)},b.\u0275prov=e.Yz7({token:b,factory:b.\u0275fac})},7998:(Ve,q,p)=>{"use strict";p.d(q,{d:()=>R});var t=p(1135),e=p(7579),b=p(2722),I=p(930),s=p(9751),C=p(727),h=p(4707);const P={url:"",deserializer:z=>JSON.parse(z.data),serializer:z=>JSON.stringify(z)};class S extends e.u{constructor(U,W){if(super(),this._socket=null,U instanceof s.y)this.destination=W,this.source=U;else{const K=this._config=Object.assign({},P);if(this._output=new e.x,"string"==typeof U)K.url=U;else for(const ee in U)U.hasOwnProperty(ee)&&(K[ee]=U[ee]);if(!K.WebSocketCtor&&WebSocket)K.WebSocketCtor=WebSocket;else if(!K.WebSocketCtor)throw new Error("no WebSocket constructor can be found");this.destination=new h.t}}lift(U){const W=new S(this._config,this.destination);return W.operator=U,W.source=this,W}_resetState(){this._socket=null,this.source||(this.destination=new h.t),this._output=new e.x}multiplex(U,W,K){const ee=this;return new s.y(ie=>{try{ee.next(U())}catch(le){ie.error(le)}const ue=ee.subscribe({next:le=>{try{K(le)&&ie.next(le)}catch(ne){ie.error(ne)}},error:le=>ie.error(le),complete:()=>ie.complete()});return()=>{try{ee.next(W())}catch(le){ie.error(le)}ue.unsubscribe()}})}_connectSocket(){const{WebSocketCtor:U,protocol:W,url:K,binaryType:ee}=this._config,ie=this._output;let ue=null;try{ue=W?new U(K,W):new U(K),this._socket=ue,ee&&(this._socket.binaryType=ee)}catch(ne){return void ie.error(ne)}const le=new C.w0(()=>{this._socket=null,ue&&1===ue.readyState&&ue.close()});ue.onopen=ne=>{const{_socket:de}=this;if(!de)return ue.close(),void this._resetState();const{openObserver:$}=this._config;$&&$.next(ne);const me=this.destination;this.destination=I.Lv.create(A=>{if(1===ue.readyState)try{const{serializer:i}=this._config;ue.send(i(A))}catch(i){this.destination.error(i)}},A=>{const{closingObserver:i}=this._config;i&&i.next(void 0),A&&A.code?ue.close(A.code,A.reason):ie.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:A}=this._config;A&&A.next(void 0),ue.close(),this._resetState()}),me&&me instanceof h.t&&le.add(me.subscribe(this.destination))},ue.onerror=ne=>{this._resetState(),ie.error(ne)},ue.onclose=ne=>{ue===this._socket&&this._resetState();const{closeObserver:de}=this._config;de&&de.next(ne),ne.wasClean?ie.complete():ie.error(ne)},ue.onmessage=ne=>{try{const{deserializer:de}=this._config;ie.next(de(ne))}catch(de){ie.error(de)}}}_subscribe(U){const{source:W}=this;return W?W.subscribe(U):(this._socket||this._connectSocket(),this._output.subscribe(U),U.add(()=>{const{_socket:K}=this;0===this._output.observers.length&&(K&&(1===K.readyState||0===K.readyState)&&K.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(4650),O=p(5043),E=p(5986);class R{constructor(U,W){this.logger=U,this.sessionService=W,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(U,W){(!this.socket||this.socket.closed)&&(this.wsUrl=U,this.nodeIndex=W,this.logger.info("Websocket Url: "+this.wsUrl),this.socket=new S({url:U,protocol:[this.sessionService.getItem("token")||"",W]}),this.subscribeToMessages())}reconnectOnError(){this.RECONNECT_TIMEOUT||this.socket&&!this.socket.closed||(this.RETRY_SECONDS=this.RETRY_SECONDS>=160?160:2*this.RETRY_SECONDS,this.RECONNECT_TIMEOUT=setTimeout(()=>{this.logger.info("Reconnecting Web Socket."),this.connectWebSocket(this.wsUrl,this.nodeIndex),this.RECONNECT_TIMEOUT=null},1e3*this.RETRY_SECONDS))}closeConnection(){this.socket&&(this.socket.complete(),this.socket=null)}subscribeToMessages(){this.socket?.pipe((0,b.R)(this.unSubs[1])).subscribe({next:U=>{if((U="string"==typeof U?JSON.parse(U):U).error)this.handleError(U.error);else switch(this.logger.info("Next Message from WS:"+JSON.stringify(U)),U.source){case"LND":this.lndWSMessages.next(U);break;case"CLN":this.clWSMessages.next(U);break;case"ECL":this.eclWSMessages.next(U)}},error:U=>this.handleError(U),complete:()=>{this.logger.info("Web Socket Closed")}})}handleError(U){this.logger.error(U),this.clWSMessages.error(U),this.eclWSMessages.error(U),this.lndWSMessages.error(U),this.reconnectOnError()}ngOnDestroy(){this.closeConnection(),this.clWSMessages.next(null),this.clWSMessages.complete(),this.eclWSMessages.next(null),this.eclWSMessages.complete(),this.lndWSMessages.next(null),this.lndWSMessages.complete()}}R.\u0275fac=function(U){return new(U||R)(w.LFG(O.mQ),w.LFG(E.m))},R.\u0275prov=w.Yz7({token:R,factory:R.\u0275fac})},9470:(Ve,q,p)=>{"use strict";p.d(q,{m:()=>Ka});var t=p(6895),e=p(9116),b=p(4006),I=p(529),s=p(2216),C=p(4650),h=p(2233),P=p(5829),d=p(1576);p(1281);let Nt=(()=>{class Vt{}return Vt.\u0275fac=function(Ct){return new(Ct||Vt)},Vt.\u0275mod=C.oAB({type:Vt}),Vt.\u0275inj=C.cJS({imports:[h.IR]}),Vt})(),mi=(()=>{class Vt{constructor(Ct,ri){(0,t.PM)(ri)&&!Ct&&console.warn("Warning: Flex Layout loaded on the server without FlexLayoutServerModule")}static withConfig(Ct,ri=[]){return{ngModule:Vt,providers:Ct.serverLoaded?[{provide:h.WU,useValue:{...h.g5,...Ct}},{provide:h.Bs,useValue:ri,multi:!0},{provide:h.wY,useValue:!0}]:[{provide:h.WU,useValue:{...h.g5,...Ct}},{provide:h.Bs,useValue:ri,multi:!0}]}}}return Vt.\u0275fac=function(Ct){return new(Ct||Vt)(C.LFG(h.wY),C.LFG(C.Lbi))},Vt.\u0275mod=C.oAB({type:Vt}),Vt.\u0275inj=C.cJS({imports:[d.ae,P.aT,Nt,d.ae,P.aT,Nt]}),Vt})();var Ci=p(2289),Ii=p(3238),Gi=p(5412),Yi=p(7957),Ji=p(2673),Wt=p(4859);p(4761),p(5017);let sa=(()=>{class Vt{}return Vt.\u0275fac=function(Ct){return new(Ct||Vt)},Vt.\u0275mod=C.oAB({type:Vt}),Vt.\u0275inj=C.cJS({imports:[Ii.BQ,Ii.si,Ii.BQ]}),Vt})();var Ia=p(3546),Oa=p(6709),Zn=p(9602),Ua=p(752),Lt=p(782),ai=p(7392),si=p(4144),gi=p(6338),Oi=p(8255),Vi=p(8739),fn=p(3162),Vn=p(1572),zn=p(1948),ga=p(4385),An=p(3267),Nn=p(455);p(7579);let fo=(()=>{class Vt{}return Vt.\u0275fac=function(Ct){return new(Ct||Vt)},Vt.\u0275mod=C.oAB({type:Vt}),Vt.\u0275inj=C.cJS({imports:[Ii.BQ,t.ez,Ii.si]}),Vt})();var ir=p(7009),pr=p(6308),aa=p(8425),Ya=p(671),Ir=p(3848),kr=p(3683),gr=p(266),mo=p(5423),Pa=p(7331),Jr=p(2213),Xr=p(658),nr=p(6839),po=p(8184),$r=p(3353);class va extends po.Xj{constructor(di,Ct){super(di,Ct)}_createContainer(){super._createContainer(),this._containerElement&&(document.querySelector("#rtl-container")||document.body).appendChild(this._containerElement)}ngOnDestroy(){super.ngOnDestroy()}}va.\u0275fac=function(di){return new(di||va)(C.Y36(t.K0),C.Y36($r.t4))},va.\u0275dir=C.lG2({type:va,features:[C.qOj]});var Or=p(5043),Kn=p(7731),Wn=p(9445);class ja extends Ii.LF{constructor(di,Ct){super(di,Ct)}format(di,Ct){if("input"===Ct){let ri=di.getDate().toString();return ri=+ri<10?"0"+ri:ri,ri+"/"+Kn.gg[di.getMonth()].name.toUpperCase()+"/"+di.getFullYear()}return Kn.gg[di.getMonth()].name.toUpperCase()+" "+di.getFullYear()}}ja.\u0275fac=function(di){return new(di||ja)(C.LFG(Ii.Ad,8),C.LFG($r.t4))},ja.\u0275prov=C.Yz7({token:ja,factory:ja.\u0275fac});class Ka{}Ka.\u0275fac=function(di){return new(di||Ka)},Ka.\u0275mod=C.oAB({type:Ka}),Ka.\u0275inj=C.cJS({providers:[{provide:Or.mQ,useClass:Or.LG},{provide:nr.op,useValue:{suppressScrollX:!1,suppressScrollY:!1}},{provide:ir.Ve,useValue:{duration:2e3,verticalPosition:"bottom",panelClass:"rtl-snack-bar"}},{provide:Gi.Bq,useValue:{hasBackdrop:!0,autoFocus:!0,disableClose:!0,role:"dialog"}},{provide:Ii._A,useClass:ja},{provide:Ii.sG,useValue:{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"}}}},{provide:po.Xj,useClass:va},t.JJ,t.rS,t.uU,Wn.al,Wn.h9,Wn.D3,Wn.i1],imports:[t.ez,b.u5,b.UX,s.uH,mi,Ci.xu,Gi.Is,Wt.ot,sa,Ia.QW,Oa.p9,Ua.To,Lt.N6,Zn.FA,Ii.XK,ai.Ps,si.c,gi.ie,Oi.Tx,fn.Cv,Vn.Cq,zn.Fk,mo.dp,Pa.Hi,ga.LD,An.SJ,Nn.rP,pr.JX,Ya.p0,kr.g0,gr.AV,Ji.g,Vi.TU,aa.T5,fo,Ir.Nh,ir.ZX,Yi.Bb,Jr.a4,Xr.OF,e.Bz,I.JF,nr.Xd,b.u5,b.UX,s.uH,mi,Ci.xu,Gi.Is,Wt.ot,sa,Ia.QW,Oa.p9,Ua.To,Lt.N6,Zn.FA,Ii.XK,ai.Ps,si.c,gi.ie,Oi.Tx,fn.Cv,Vn.Cq,zn.Fk,mo.dp,Pa.Hi,ga.LD,An.SJ,Nn.rP,pr.JX,Ya.p0,kr.g0,gr.AV,Ji.g,Vi.TU,aa.T5,fo,Ir.Nh,ir.ZX,Yi.Bb,Jr.a4,Xr.OF,nr.Xd]})},7861:(Ve,q,p)=>{"use strict";p.d(q,{M6:()=>w,Q2:()=>z,QO:()=>l,Tm:()=>de,Uy:()=>le,XT:()=>ie,_V:()=>me,ac:()=>P,c0:()=>a,c1:()=>O,dc:()=>m,ey:()=>ee,fk:()=>ne,jS:()=>$,jW:()=>h,kS:()=>i,lC:()=>I,qR:()=>S,qi:()=>s,tj:()=>R,ts:()=>C,tw:()=>W,uO:()=>d,vI:()=>K,x4:()=>T,yb:()=>E,zQ:()=>ue});var t=p(9653),e=p(7731);(0,t.PH)(e.pg.VOID);const I=(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)()),C=(0,t.PH)(e.pg.CLOSE_ALL_DIALOGS),h=(0,t.PH)(e.pg.OPEN_SNACK_BAR,(0,t.Ky)()),P=(0,t.PH)(e.pg.OPEN_SPINNER,(0,t.Ky)()),d=(0,t.PH)(e.pg.CLOSE_SPINNER,(0,t.Ky)()),S=(0,t.PH)(e.pg.OPEN_ALERT,(0,t.Ky)()),w=(0,t.PH)(e.pg.CLOSE_ALERT,(0,t.Ky)()),O=(0,t.PH)(e.pg.OPEN_CONFIRMATION,(0,t.Ky)()),E=(0,t.PH)(e.pg.CLOSE_CONFIRMATION,(0,t.Ky)()),R=(0,t.PH)(e.pg.SHOW_PUBKEY),z=(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)),K=(0,t.PH)(e.pg.RESET_ROOT_STORE,(0,t.Ky)()),ee=(0,t.PH)(e.pg.FETCH_RTL_CONFIG),ie=(0,t.PH)(e.pg.SET_RTL_CONFIG,(0,t.Ky)()),ue=(0,t.PH)(e.pg.SAVE_SETTINGS,(0,t.Ky)()),le=(0,t.PH)(e.pg.TWO_FA_SAVE_SETTINGS,(0,t.Ky)()),ne=(0,t.PH)(e.pg.SET_SELECTED_NODE,(0,t.Ky)()),de=(0,t.PH)(e.pg.UPDATE_ROOT_NODE_SETTINGS,(0,t.Ky)()),$=(0,t.PH)(e.pg.UPDATE_SERVICE_SETTINGS,(0,t.Ky)()),me=(0,t.PH)(e.pg.SET_NODE_DATA,(0,t.Ky)()),i=((0,t.PH)(e.pg.SAVE_SSO,(0,t.Ky)()),(0,t.PH)(e.pg.LOGOUT)),a=(0,t.PH)(e.pg.RESET_PASSWORD,(0,t.Ky)()),l=((0,t.PH)(e.pg.RESET_PASSWORD_RES,(0,t.Ky)()),(0,t.PH)(e.pg.IS_AUTHORIZED,(0,t.Ky)())),T=((0,t.PH)(e.pg.IS_AUTHORIZED_RES,(0,t.Ky)()),(0,t.PH)(e.pg.LOGIN,(0,t.Ky)())),m=((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:(Ve,q,p)=>{"use strict";p.d(q,{V:()=>Bt});var t=p(4650),e=p(493),b=p(7579),I=p(9646),s=p(9751),C=p(4128),h=p(4004),P=p(5698),d=p(1365),S=p(5577),w=p(262),O=p(2722),E=p(7731),R=p(5412),z=p(1576),U=p(1572);class W{constructor(oi,Yt){this.dialogRef=oi,this.data=Yt}}W.\u0275fac=function(oi){return new(oi||W)(t.Y36(R.so),t.Y36(R.WI))},W.\u0275cmp=t.Xpm({type:W,selectors:[["rtl-spinner-dialog"]],decls:4,vars:1,consts:[["fxLayout","column","fxLayoutAlign","center center",1,"spinner-container"],["color","primary","mode","indeterminate",1,"modal-spinner-message"]],template:function(oi,Yt){1&oi&&(t.TgZ(0,"div",0),t._UZ(1,"mat-progress-spinner",1),t.TgZ(2,"h2"),t._uU(3),t.qZA()()),2&oi&&(t.xp6(3),t.Oqu(Yt.data.titleMessage))},dependencies:[z.xw,z.Wh,U.Ou],styles:["h2[_ngcontent-%COMP%]{text-align:center}"]});var K=p(5043),ee=p(7009),ie=p(62),ue=p(9116),le=p(6895),ne=p(5829),de=p(4859),$=p(3546),me=p(7392),A=p(4850),i=p(266),a=p(658),u=p(6839),l=p(5199),y=p(3390);const T=["scrollContainer"];function L(zt,oi){if(1&zt&&t._UZ(0,"qr-code",15),2&zt){const Yt=t.oxw();t.Q6J("value",Yt.showQRField)("size",200)("errorCorrectionLevel","L")}}function m(zt,oi){1&zt&&t.GkF(0)}const n=function(zt){return{"h-40":zt}};function _(zt,oi){if(1&zt&&(t.ynx(0),t.TgZ(1,"mat-card-content",16,17),t.YNc(3,m,1,0,"ng-container",18),t.qZA(),t.BQk()),2&zt){const Yt=t.oxw(),Ni=t.MAs(20);t.xp6(1),t.Q6J("ngClass",t.VKq(2,n,Yt.data.scrollable)),t.xp6(2),t.Q6J("ngTemplateOutlet",Ni)}}function B(zt,oi){1&zt&&t.GkF(0)}function V(zt,oi){if(1&zt&&(t.ynx(0),t.TgZ(1,"mat-card-content",19),t.YNc(2,B,1,0,"ng-container",18),t.qZA(),t.BQk()),2&zt){t.oxw();const Yt=t.MAs(20);t.xp6(2),t.Q6J("ngTemplateOutlet",Yt)}}function X(zt,oi){1&zt&&(t.TgZ(0,"mat-icon",23),t._uU(1,"arrow_downward"),t.qZA())}function Le(zt,oi){1&zt&&(t.TgZ(0,"mat-icon",23),t._uU(1,"arrow_upward"),t.qZA())}function $e(zt,oi){if(1&zt){const Yt=t.EpF();t.TgZ(0,"div",20)(1,"button",21),t.NdJ("click",function(){t.CHM(Yt);const on=t.oxw();return t.KtG(on.onScroll())}),t.YNc(2,X,2,0,"mat-icon",22),t.YNc(3,Le,2,0,"mat-icon",22),t.qZA()()}if(2&zt){const Yt=t.oxw();t.xp6(2),t.Q6J("ngIf","DOWN"===Yt.scrollDirection),t.xp6(1),t.Q6J("ngIf","UP"===Yt.scrollDirection)}}function We(zt,oi){1&zt&&(t.TgZ(0,"button",24),t._uU(1,"OK"),t.qZA()),2&zt&&t.Q6J("mat-dialog-close",!1)}function Fe(zt,oi){1&zt&&(t.TgZ(0,"button",25),t._uU(1,"Close"),t.qZA()),2&zt&&t.Q6J("mat-dialog-close",!1)}function De(zt,oi){if(1&zt){const Yt=t.EpF();t.TgZ(0,"button",26),t.NdJ("copied",function(on){t.CHM(Yt);const Ki=t.oxw();return t.KtG(Ki.onCopyField(on))}),t._uU(1),t.qZA()}if(2&zt){const Yt=t.oxw();t.Q6J("payload",Yt.showCopyField),t.xp6(1),t.hij("Copy ",Yt.showCopyName,"")}}function ye(zt,oi){1&zt&&(t.TgZ(0,"button",25),t._uU(1,"Close"),t.qZA()),2&zt&&t.Q6J("mat-dialog-close",!1)}function ce(zt,oi){if(1&zt){const Yt=t.EpF();t.TgZ(0,"button",26),t.NdJ("copied",function(on){t.CHM(Yt);const Ki=t.oxw();return t.KtG(Ki.onCopyField(on))}),t._uU(1),t.qZA()}if(2&zt){const Yt=t.oxw();t.Q6J("payload",Yt.showQRField),t.xp6(1),t.hij("Copy ",Yt.showQRName,"")}}function ve(zt,oi){if(1&zt&&t._UZ(0,"qr-code",15),2&zt){const Yt=t.oxw(2);t.Q6J("value",Yt.showQRField)("size",200)("errorCorrectionLevel","L")}}function oe(zt,oi){if(1&zt&&(t.TgZ(0,"p",32),t._uU(1),t.qZA()),2&zt){const Yt=t.oxw(2);t.xp6(1),t.Oqu(Yt.data.titleMessage)}}function je(zt,oi){1&zt&&t._UZ(0,"span",46),2&zt&&t.Q6J("innerHTML",oi.$implicit,t.oJD)}function Ae(zt,oi){if(1&zt&&(t.ynx(0),t.YNc(1,je,1,1,"span",45),t.BQk()),2&zt){const Yt=t.oxw(2).$implicit;t.xp6(1),t.Q6J("ngForOf",Yt.value)}}function he(zt,oi){if(1&zt&&(t.ynx(0),t._uU(1),t.ALo(2,"date"),t.BQk()),2&zt){const Yt=t.oxw(2).$implicit;t.xp6(1),t.Oqu(t.xi3(2,1,1e3*Yt.value,"dd/MMM/y HH:mm"))}}function Ce(zt,oi){if(1&zt&&(t.ynx(0),t._uU(1),t.ALo(2,"number"),t.BQk()),2&zt){const Yt=t.oxw(2).$implicit;t.xp6(1),t.Oqu(t.xi3(2,1,Yt.value,Yt.digitsInfo?Yt.digitsInfo:"1.0-3"))}}function te(zt,oi){if(1&zt&&(t.ynx(0),t._uU(1),t.BQk()),2&zt){const Yt=t.oxw(2).$implicit;t.xp6(1),t.Oqu(Yt.value?"True":"False")}}function Ue(zt,oi){1&zt&&(t.TgZ(0,"mat-icon",51),t._uU(1,"info"),t.qZA())}const Be=function(zt){return{"failed-status":zt}};function ae(zt,oi){if(1&zt&&(t.TgZ(0,"p",49),t._uU(1),t.YNc(2,Ue,2,0,"mat-icon",50),t.qZA()),2&zt){const Yt=t.oxw(3).$implicit,Ni=t.oxw(4);t.Q6J("ngClass",t.VKq(3,Be,Yt.value===Ni.LoopStateEnum.FAILED)),t.xp6(1),t.hij(" ",Yt.value," "),t.xp6(1),t.Q6J("ngIf",Yt.value===Ni.LoopStateEnum.FAILED)}}function ge(zt,oi){if(1&zt){const Yt=t.EpF();t.TgZ(0,"p",54),t.NdJ("click",function(){t.CHM(Yt);const on=t.oxw(8);return t.KtG(on.onGoToLink())}),t._uU(1),t.qZA()}if(2&zt){const Yt=t.oxw(4).$implicit,Ni=t.oxw(4);t.s9C("matTooltip","Go To "+Ni.goToName),t.xp6(1),t.hij(" ",Yt.value," ")}}function ft(zt,oi){if(1&zt&&t._uU(0),2&zt){const Yt=t.oxw(4).$implicit;t.hij(" ",Yt.value," ")}}function Je(zt,oi){if(1&zt&&(t.YNc(0,ge,2,2,"p",52),t.YNc(1,ft,1,1,"ng-template",null,53,t.W1O)),2&zt){const Yt=t.MAs(2),Ni=t.oxw(3).$implicit,on=t.oxw(4);t.Q6J("ngIf",Ni.value===on.goToFieldValue)("ngIfElse",Yt)}}function dt(zt,oi){if(1&zt&&(t.ynx(0),t.YNc(1,ae,3,5,"p",47),t.YNc(2,Je,3,2,"ng-template",null,48,t.W1O),t.BQk()),2&zt){const Yt=t.MAs(3),Ni=t.oxw(2).$implicit,on=t.oxw(4);t.xp6(1),t.Q6J("ngIf","SWAP"===on.data.openedBy&&"state"===Ni.key)("ngIfElse",Yt)}}function Et(zt,oi){if(1&zt&&(t.TgZ(0,"span")(1,"span",42),t.YNc(2,Ae,2,1,"ng-container",43),t.YNc(3,he,3,4,"ng-container",43),t.YNc(4,Ce,3,4,"ng-container",43),t.YNc(5,te,2,1,"ng-container",43),t.YNc(6,dt,4,2,"ng-container",44),t.qZA()()),2&zt){const Yt=t.oxw().$implicit,Ni=t.oxw(4);t.xp6(1),t.Q6J("ngSwitch",Yt.type),t.xp6(1),t.Q6J("ngSwitchCase",Ni.dataTypeEnum.ARRAY),t.xp6(1),t.Q6J("ngSwitchCase",Ni.dataTypeEnum.DATE_TIME),t.xp6(1),t.Q6J("ngSwitchCase",Ni.dataTypeEnum.NUMBER),t.xp6(1),t.Q6J("ngSwitchCase",Ni.dataTypeEnum.BOOLEAN)}}function pt(zt,oi){1&zt&&(t.TgZ(0,"span",55),t._uU(1,"\xa0"),t.qZA())}function ot(zt,oi){if(1&zt&&(t.TgZ(0,"div",37)(1,"h4",38),t._uU(2),t.qZA(),t.YNc(3,Et,7,5,"span",39),t.YNc(4,pt,2,0,"ng-template",null,40,t.W1O),t._UZ(6,"mat-divider",41),t.qZA()),2&zt){const Yt=oi.$implicit,Ni=t.MAs(5);t.s9C("fxFlex.gt-md",Yt.width),t.xp6(2),t.Oqu(Yt.title),t.xp6(1),t.Q6J("ngIf",Yt&&(!!Yt.value||0===Yt.value))("ngIfElse",Ni)}}function wt(zt,oi){if(1&zt&&(t.TgZ(0,"div")(1,"div",35),t.YNc(2,ot,7,4,"div",36),t.qZA()()),2&zt){const Yt=oi.$implicit;t.xp6(2),t.Q6J("ngForOf",Yt)}}function ke(zt,oi){if(1&zt&&(t.TgZ(0,"div",33),t.YNc(1,wt,3,1,"div",34),t.qZA()),2&zt){const Yt=t.oxw(2);t.xp6(1),t.Q6J("ngForOf",Yt.messageObjs)}}const Ke=function(zt){return{"display-none":zt}};function xt(zt,oi){if(1&zt&&(t.TgZ(0,"div",27)(1,"div",28),t.YNc(2,ve,1,3,"qr-code",2),t.qZA(),t.TgZ(3,"div",29),t.YNc(4,oe,2,1,"p",30),t.YNc(5,ke,2,1,"div",31),t.qZA()()),2&zt){const Yt=t.oxw();t.xp6(1),t.Q6J("ngClass",t.VKq(4,Ke,""===Yt.showQRField||Yt.screenSize!==Yt.screenSizeEnum.XS&&Yt.screenSize!==Yt.screenSizeEnum.SM)),t.xp6(1),t.Q6J("ngIf",""!==Yt.showQRField),t.xp6(2),t.Q6J("ngIf",Yt.data.titleMessage),t.xp6(1),t.Q6J("ngIf",(null==Yt.messageObjs?null:Yt.messageObjs.length)>0)}}class Y{constructor(oi,Yt,Ni,on,Ki,pa,sa){this.dialogRef=oi,this.data=Yt,this.logger=Ni,this.snackBar=on,this.commonService=Ki,this.renderer=pa,this.router=sa,this.LoopStateEnum=E.Fq,this.goToFieldValue="",this.goToName="",this.goToLink="",this.showQRField="",this.showQRName="",this.showCopyName="",this.showCopyField="",this.errorMessage="",this.messageObjs=[],this.alertTypeEnum=E.n_,this.dataTypeEnum=E.Gi,this.screenSize="",this.screenSizeEnum=E.cu,this.scrollDirection="DOWN",this.shouldScroll=!0}set container(oi){oi&&(this.scrollContainer=oi,this.scrollContainer&&this.scrollContainer.nativeElement&&(this.unlistenEnd=this.renderer.listen(this.scrollContainer.nativeElement,"ps-y-reach-end",Yt=>{this.scrollDirection="UP"}),this.unlistenStart=this.renderer.listen(this.scrollContainer.nativeElement,"ps-y-reach-start",Yt=>{this.scrollDirection="DOWN"})))}ngOnInit(){this.screenSize=this.commonService.getScreenSize(),this.messageObjs=this.data.message||[],this.goToFieldValue=this.data.goToFieldValue?this.data.goToFieldValue:"",this.goToName=this.data.goToName?this.data.goToName:"",this.goToLink=this.data.goToLink?this.data.goToLink:"",this.showQRField=this.data.showQRField?this.data.showQRField:"",this.showQRName=this.data.showQRName?this.data.showQRName:"",this.showCopyName=this.data.showCopyName?this.data.showCopyName:"",this.showCopyField=this.data.showCopyField?this.data.showCopyField:"",this.data.type===E.n_.ERROR&&!this.data.message&&!this.data.titleMessage&&this.messageObjs.length<=0&&(this.data.titleMessage="Please Check Server Connection"),this.logger.info(this.messageObjs)}ngAfterViewChecked(){setTimeout(()=>{this.shouldScroll=this.scrollContainer&&this.scrollContainer.nativeElement&&this.scrollContainer.nativeElement.classList.value.includes("ps--active-y")},500)}onScroll(){this.scrollContainer.nativeElement.scrollTop="DOWN"===this.scrollDirection?this.scrollContainer.nativeElement.scrollTop+62.6:this.scrollContainer.nativeElement.scrollTop-62.6}onCopyField(oi){this.snackBar.open((this.showQRName?this.showQRName:this.showCopyName)+" copied."),this.logger.info("Copied Text: "+oi)}onClose(){this.dialogRef.close(!1)}onGoToLink(){this.router.navigateByUrl(this.goToLink,{state:{lookupType:"0",lookupValue:this.goToFieldValue}}),this.onClose()}ngOnDestroy(){this.unlistenStart&&this.unlistenStart(),this.unlistenEnd&&this.unlistenEnd()}}Y.\u0275fac=function(oi){return new(oi||Y)(t.Y36(R.so),t.Y36(R.WI),t.Y36(K.mQ),t.Y36(ee.ux),t.Y36(ie.v),t.Y36(t.Qsj),t.Y36(ue.F0))},Y.\u0275cmp=t.Xpm({type:Y,selectors:[["rtl-alert-message"]],viewQuery:function(oi,Yt){if(1&oi&&t.Gf(T,5),2&oi){let Ni;t.iGM(Ni=t.CRH())&&(Yt.container=Ni.first)}},decls:21,vars:14,consts:[["fxLayout","column","fxLayout.gt-sm","row","fxLayoutAlign","space-between stretch"],["fxFlex","30","fxLayoutAlign","center start",1,"modal-qr-code-container","padding-gap-large","ml-1",3,"ngClass"],[3,"value","size","errorCorrectionLevel",4,"ngIf"],[3,"fxFlex"],["fxLayout","row","fxLayoutAlign","space-between center",1,"modal-info-header"],["fxFlex","95","fxLayoutAlign","start start"],[1,"page-title"],["tabindex","3","fxFlex","5","fxLayoutAlign","center center","mat-button","",1,"btn-close-x","p-0",3,"click"],[4,"ngIf"],["fxLayout","row","fxLayoutAlign","start end","class","btn-sticky-container padding-gap-x-large",4,"ngIf"],["fxLayout","row","fxLayoutAlign","end center",1,"padding-gap-x-large","padding-gap-bottom-large"],["tabindex","1","autoFocus","","mat-button","","color","primary","type","submit","default","",3,"mat-dialog-close",4,"ngIf"],["class","mr-1","fxLayoutAlign","center center","tabindex","1","mat-button","","color","primary","type","button","default","",3,"mat-dialog-close",4,"ngIf"],["autoFocus","","mat-button","","color","primary","tabindex","2","type","submit","rtlClipboard","",3,"payload","copied",4,"ngIf"],["contentBlock",""],[3,"value","size","errorCorrectionLevel"],[1,"padding-gap-x-large",3,"perfectScrollbar","ngClass"],["scrollContainer",""],[4,"ngTemplateOutlet"],[1,"padding-gap-x-large"],["fxLayout","row","fxLayoutAlign","start end",1,"btn-sticky-container","padding-gap-x-large"],["mat-mini-fab","","aria-label","Scroll","fxLayoutAlign","center center",3,"click"],["fxLayoutAlign","center center",4,"ngIf"],["fxLayoutAlign","center center"],["tabindex","1","autoFocus","","mat-button","","color","primary","type","submit","default","",3,"mat-dialog-close"],["fxLayoutAlign","center center","tabindex","1","mat-button","","color","primary","type","button","default","",1,"mr-1",3,"mat-dialog-close"],["autoFocus","","mat-button","","color","primary","tabindex","2","type","submit","rtlClipboard","",3,"payload","copied"],["fxLayout","column"],["fxFlex","50","fxLayoutAlign","center start",1,"modal-qr-code-container","padding-gap-large","mb-1",3,"ngClass"],["fxLayout","column","fxFlex","100"],["fxLayoutAlign","start center","class","pb-2",4,"ngIf"],["fxFlex","100",4,"ngIf"],["fxLayoutAlign","start center",1,"pb-2"],["fxFlex","100"],[4,"ngFor","ngForOf"],["fxLayout","row wrap","fxFlex","100","fxLayoutAlign","start center","fxLayoutAlign.gt-md","space-between start"],["fxLayout","column","fxFlex","100",3,"fxFlex.gt-md",4,"ngFor","ngForOf"],["fxLayout","column","fxFlex","100",3,"fxFlex.gt-md"],["fxLayoutAlign","start",1,"font-bold-500"],[4,"ngIf","ngIfElse"],["emptyField",""],[1,"w-100","my-1"],["fxLayout","column","fxFlex","100","fxLayoutAlign","start stretch",1,"foreground-secondary-text",3,"ngSwitch"],[4,"ngSwitchCase"],[4,"ngSwitchDefault"],["class","display-block w-100",3,"innerHTML",4,"ngFor","ngForOf"],[1,"display-block","w-100",3,"innerHTML"],["fxLayout","row",3,"ngClass",4,"ngIf","ngIfElse"],["noStyleBlock",""],["fxLayout","row",3,"ngClass"],["fxLayoutAlign","end end","class","icon-failed-status",4,"ngIf"],["fxLayoutAlign","end end",1,"icon-failed-status"],["fxLayout","row","class","go-to-link",3,"matTooltip","click",4,"ngIf","ngIfElse"],["noStyleChild",""],["fxLayout","row",1,"go-to-link",3,"matTooltip","click"],["fxFlex","100",1,"foreground-secondary-text"]],template:function(oi,Yt){1&oi&&(t.TgZ(0,"div",0)(1,"div",1),t.YNc(2,L,1,3,"qr-code",2),t.qZA(),t.TgZ(3,"div",3)(4,"mat-card-header",4)(5,"div",5)(6,"span",6),t._uU(7),t.qZA()(),t.TgZ(8,"button",7),t.NdJ("click",function(){return Yt.onClose()}),t._uU(9,"X"),t.qZA()(),t.YNc(10,_,4,4,"ng-container",8),t.YNc(11,V,3,1,"ng-container",8),t.YNc(12,$e,4,2,"div",9),t.TgZ(13,"div",10),t.YNc(14,We,2,1,"button",11),t.YNc(15,Fe,2,1,"button",12),t.YNc(16,De,2,2,"button",13),t.YNc(17,ye,2,1,"button",12),t.YNc(18,ce,2,2,"button",13),t.qZA()()(),t.YNc(19,xt,6,6,"ng-template",null,14,t.W1O)),2&oi&&(t.xp6(1),t.Q6J("ngClass",t.VKq(12,Ke,""===Yt.showQRField||Yt.screenSize===Yt.screenSizeEnum.XS||Yt.screenSize===Yt.screenSizeEnum.SM)),t.xp6(1),t.Q6J("ngIf",""!==Yt.showQRField),t.xp6(1),t.Q6J("fxFlex",""===Yt.showQRField||Yt.screenSize===Yt.screenSizeEnum.XS||Yt.screenSize===Yt.screenSizeEnum.SM?"100":"70"),t.xp6(4),t.Oqu(Yt.data.alertTitle||Yt.alertTypeEnum[Yt.data.type]),t.xp6(3),t.Q6J("ngIf",Yt.data.scrollable),t.xp6(1),t.Q6J("ngIf",!Yt.data.scrollable),t.xp6(1),t.Q6J("ngIf",Yt.data.scrollable&&Yt.shouldScroll),t.xp6(2),t.Q6J("ngIf",(!Yt.showQRField||""===Yt.showQRField)&&""===Yt.showCopyName),t.xp6(1),t.Q6J("ngIf",""!==Yt.showCopyName),t.xp6(1),t.Q6J("ngIf",""!==Yt.showCopyName),t.xp6(1),t.Q6J("ngIf",""!==Yt.showQRField),t.xp6(1),t.Q6J("ngIf",""!==Yt.showQRField))},dependencies:[le.mk,le.sg,le.O5,le.tP,le.RF,le.n9,le.ED,z.xw,z.Wh,z.yH,ne.oO,R.ZT,de.lW,de.nh,$.dn,$.dk,me.Hw,A.d,i.gM,a.uU,u.$V,l.y,y.h,le.JJ,le.uU],styles:[".display-block[_ngcontent-%COMP%]{display:block}"]});var Re=p(2687),Tt=p(7861),Qe=p(9653),Ye=p(4006),Ht=p(2216),Mt=p(4144),kt=p(9549),_t=p(6534);function we(zt,oi){if(1&zt&&(t.TgZ(0,"div",18),t._UZ(1,"fa-icon",19),t.TgZ(2,"span"),t._uU(3),t.qZA()()),2&zt){const Yt=t.oxw();t.xp6(1),t.Q6J("icon",Yt.faExclamationTriangle),t.xp6(2),t.Oqu(Yt.warningMessage)}}function J(zt,oi){if(1&zt&&(t.TgZ(0,"div",20),t._UZ(1,"fa-icon",19),t.TgZ(2,"span"),t._uU(3),t.qZA()()),2&zt){const Yt=t.oxw();t.xp6(1),t.Q6J("icon",Yt.faInfoCircle),t.xp6(2),t.Oqu(Yt.informationMessage)}}function be(zt,oi){if(1&zt&&(t.TgZ(0,"p",21),t._uU(1),t.qZA()),2&zt){const Yt=t.oxw();t.xp6(1),t.Oqu(Yt.data.titleMessage)}}function He(zt,oi){1&zt&&t._UZ(0,"div",36),2&zt&&t.Q6J("innerHTML",oi.$implicit,t.oJD)}function at(zt,oi){if(1&zt&&(t.ynx(0,34),t.YNc(1,He,1,1,"div",35),t.BQk()),2&zt){const Yt=t.oxw(2).$implicit;t.xp6(1),t.Q6J("ngForOf",Yt.value)}}function ii(zt,oi){if(1&zt&&(t.ynx(0),t._uU(1),t.ALo(2,"date"),t.BQk()),2&zt){const Yt=t.oxw(2).$implicit;t.xp6(1),t.Oqu(t.xi3(2,1,1e3*Yt.value,"dd/MMM/y HH:mm"))}}function Gt(zt,oi){if(1&zt&&(t.ynx(0),t._uU(1),t.ALo(2,"number"),t.BQk()),2&zt){const Yt=t.oxw(2).$implicit;t.xp6(1),t.Oqu(t.xi3(2,1,Yt.value,"1.0-3"))}}function ni(zt,oi){if(1&zt&&(t.ynx(0),t._uU(1),t.BQk()),2&zt){const Yt=t.oxw(2).$implicit;t.xp6(1),t.Oqu(!0===Yt.value?"True":"False")}}function ut(zt,oi){if(1&zt&&(t.ynx(0),t._uU(1),t.BQk()),2&zt){const Yt=t.oxw(2).$implicit;t.xp6(1),t.Oqu(Yt.value)}}function tt(zt,oi){if(1&zt&&(t.TgZ(0,"span")(1,"span",30),t.YNc(2,at,2,1,"ng-container",31),t.YNc(3,ii,3,4,"ng-container",32),t.YNc(4,Gt,3,4,"ng-container",32),t.YNc(5,ni,2,1,"ng-container",32),t.YNc(6,ut,2,1,"ng-container",33),t.qZA()()),2&zt){const Yt=t.oxw().$implicit,Ni=t.oxw(3);t.xp6(1),t.Q6J("ngSwitch",Yt.type),t.xp6(1),t.Q6J("ngSwitchCase",Ni.dataTypeEnum.ARRAY),t.xp6(1),t.Q6J("ngSwitchCase",Ni.dataTypeEnum.DATE_TIME),t.xp6(1),t.Q6J("ngSwitchCase",Ni.dataTypeEnum.NUMBER),t.xp6(1),t.Q6J("ngSwitchCase",Ni.dataTypeEnum.BOOLEAN)}}function vt(zt,oi){1&zt&&(t.TgZ(0,"span",37),t._uU(1,"\xa0"),t.qZA())}function ti(zt,oi){if(1&zt&&(t.TgZ(0,"div",25)(1,"h4",26),t._uU(2),t.qZA(),t.YNc(3,tt,7,5,"span",27),t.YNc(4,vt,2,0,"ng-template",null,28,t.W1O),t._UZ(6,"mat-divider",29),t.qZA()),2&zt){const Yt=oi.$implicit,Ni=t.MAs(5);t.s9C("fxFlex.gt-md",Yt.width),t.xp6(2),t.Oqu(Yt.title),t.xp6(1),t.Q6J("ngIf",Yt&&(!!Yt.value||0===Yt.value))("ngIfElse",Ni)}}function Ut(zt,oi){if(1&zt&&(t.TgZ(0,"div")(1,"div",23),t.YNc(2,ti,7,4,"div",24),t.qZA()()),2&zt){const Yt=oi.$implicit;t.xp6(2),t.Q6J("ngForOf",Yt)}}function ht(zt,oi){if(1&zt&&(t.TgZ(0,"div"),t.YNc(1,Ut,3,1,"div",22),t.qZA()),2&zt){const Yt=t.oxw();t.xp6(1),t.Q6J("ngForOf",Yt.messageObjs)}}function Rt(zt,oi){if(1&zt&&(t.TgZ(0,"p",21),t._uU(1),t.qZA()),2&zt){const Yt=t.oxw(2);t.xp6(1),t.Oqu(Yt.data.titleMessage)}}function Oe(zt,oi){if(1&zt&&(t.TgZ(0,"mat-error"),t._uU(1),t.qZA()),2&zt){const Yt=t.oxw(2).$implicit;t.xp6(1),t.hij("",Yt.placeholder," is required.")}}function et(zt,oi){if(1&zt){const Yt=t.EpF();t.TgZ(0,"mat-form-field",41)(1,"mat-label"),t._uU(2),t.qZA(),t.TgZ(3,"input",42),t.NdJ("ngModelChange",function(on){t.CHM(Yt);const Ki=t.oxw().$implicit;return t.KtG(Ki.inputValue=on)}),t.ALo(4,"lowercase"),t.qZA(),t.YNc(5,Oe,2,1,"mat-error",11),t.TgZ(6,"mat-hint"),t._uU(7),t.qZA()()}if(2&zt){const Yt=t.oxw(),Ni=Yt.$implicit,on=Yt.index;t.Q6J("fxFlex",Ni.width),t.xp6(2),t.Oqu(Ni.placeholder),t.xp6(1),t.MGl("name","input",on,""),t.Q6J("autoFocus",0===on)("min",Ni.min)("step",Ni.step)("type",t.lcZ(4,11,Ni.inputType))("tabindex",on+1)("ngModel",Ni.inputValue),t.xp6(2),t.Q6J("ngIf",!Ni.inputValue),t.xp6(2),t.Oqu(Ni.hintFunction?Ni.hintFunction(Ni.inputValue):Ni.hintText)}}function it(zt,oi){if(1&zt&&(t.ynx(0),t.YNc(1,et,8,13,"mat-form-field",40),t.BQk()),2&zt){const Yt=oi.$implicit,Ni=t.oxw(2);t.xp6(1),t.Q6J("ngIf",!Yt.advancedField||Ni.showAdvanced)}}function ct(zt,oi){if(1&zt&&(t.TgZ(0,"div",38),t.YNc(1,Rt,2,1,"p",10),t.TgZ(2,"div",39),t.YNc(3,it,2,1,"ng-container",22),t.qZA()()),2&zt){const Yt=t.oxw();t.xp6(1),t.Q6J("ngIf",Yt.data.titleMessage),t.xp6(2),t.Q6J("ngForOf",Yt.getInputs)}}function Dt(zt,oi){1&zt&&(t.TgZ(0,"p"),t._uU(1,"Show Advanced"),t.qZA())}function pi(zt,oi){1&zt&&(t.TgZ(0,"p"),t._uU(1,"Hide Advanced"),t.qZA())}function Li(zt,oi){if(1&zt){const Yt=t.EpF();t.TgZ(0,"button",43),t.NdJ("click",function(){t.CHM(Yt);const on=t.oxw();return t.KtG(on.onShowAdvanced())}),t.YNc(1,Dt,2,0,"p",27),t.YNc(2,pi,2,0,"ng-template",null,44,t.W1O),t.qZA()}if(2&zt){const Yt=t.MAs(3),Ni=t.oxw();t.xp6(1),t.Q6J("ngIf",!Ni.showAdvanced)("ngIfElse",Yt)}}function xi(zt,oi){if(1&zt){const Yt=t.EpF();t.TgZ(0,"button",45),t.NdJ("click",function(){t.CHM(Yt);const on=t.oxw();return t.KtG(on.onClose(on.getInputs))}),t._uU(1),t.qZA()}if(2&zt){const Yt=t.oxw();t.xp6(1),t.Oqu(Yt.yesBtnText)}}function Fi(zt,oi){if(1&zt){const Yt=t.EpF();t.TgZ(0,"button",46),t.NdJ("click",function(){t.CHM(Yt);const on=t.oxw();return t.KtG(on.onClose(!0))}),t._uU(1),t.qZA()}if(2&zt){const Yt=t.oxw();t.xp6(1),t.Oqu(Yt.yesBtnText)}}class qe{constructor(oi,Yt,Ni,on){this.dialogRef=oi,this.data=Yt,this.logger=Ni,this.store=on,this.faInfoCircle=Re.sqG,this.faExclamationTriangle=Re.eHv,this.informationMessage="",this.warningMessage="",this.noBtnText="No",this.yesBtnText="Yes",this.messageObjs=[],this.flgShowInput=!1,this.hasAdvanced=!1,this.alertTypeEnum=E.n_,this.dataTypeEnum=E.Gi,this.getInputs=[{placeholder:"",inputType:E.Gi.STRING,inputValue:"",hintText:"",hintFunction:null,advancedField:!1}],this.showAdvanced=!1}ngOnInit(){this.informationMessage=this.data.informationMessage||"",this.warningMessage=this.data.warningMessage||"",this.flgShowInput=!!this.data.flgShowInput,this.getInputs=this.data.getInputs||[],this.noBtnText=this.data.noBtnText?this.data.noBtnText:"No",this.yesBtnText=this.data.yesBtnText?this.data.yesBtnText:"Yes",this.hasAdvanced=!!this.data.hasAdvanced&&this.data.hasAdvanced,this.messageObjs=this.data.message,this.data.type===E.n_.ERROR&&!this.data.message&&!this.data.titleMessage&&this.messageObjs.length<=0&&(this.data.titleMessage="Please Check Server Connection")}onShowAdvanced(){this.showAdvanced=!this.showAdvanced}onClose(oi){if(oi&&this.getInputs&&this.getInputs.some(Yt=>typeof Yt.inputValue>"u"))return!0;!this.showAdvanced&&oi.length&&(oi=oi?.reduce((Yt,Ni)=>(Ni.advancedField||Yt.push(Ni),Yt),[])),this.store.dispatch((0,Tt.yb)({payload:oi}))}}qe.\u0275fac=function(oi){return new(oi||qe)(t.Y36(R.so),t.Y36(R.WI),t.Y36(K.mQ),t.Y36(Qe.yh))},qe.\u0275cmp=t.Xpm({type:qe,selectors:[["rtl-confirmation-message"]],decls:21,vars:10,consts:[["fxLayout","row"],["fxFlex","100"],["fxLayout","row","fxLayoutAlign","space-between center",1,"modal-info-header"],["fxFlex","95","fxLayoutAlign","start start"],[1,"page-title"],["tabindex","8","fxFlex","5","fxLayoutAlign","center center","mat-button","",1,"btn-close-x","p-0",3,"click"],[1,"padding-gap-x-large"],["fxLayout","column"],["fxFlex","100","class","alert alert-warn",4,"ngIf"],["fxFlex","100","class","alert alert-info",4,"ngIf"],["fxLayoutAlign","start center","class","pb-1",4,"ngIf"],[4,"ngIf"],["fxLayout","column","class","bordered-box my-2 p-2",4,"ngIf"],["fxLayout","row","fxLayoutAlign","end center"],["mat-button","","color","primary","type","reset","tabindex","1",1,"mr-1",3,"click"],["mat-button","","color","primary","type","button","class","mr-1","tabindex","2",3,"click",4,"ngIf"],["autoFocus","","mat-button","","color","primary","type","submit","tabindex","3","default","",3,"click",4,"ngIf"],["autoFocus","","mat-button","","color","primary","type","submit","tabindex","4","default","",3,"click",4,"ngIf"],["fxFlex","100",1,"alert","alert-warn"],[1,"mr-1","alert-icon",3,"icon"],["fxFlex","100",1,"alert","alert-info"],["fxLayoutAlign","start center",1,"pb-1"],[4,"ngFor","ngForOf"],["fxLayout","row wrap","fxLayoutAlign","start center","fxLayoutAlign.gt-md","space-between start"],["fxLayout","column","fxFlex","100",3,"fxFlex.gt-md",4,"ngFor","ngForOf"],["fxLayout","column","fxFlex","100",3,"fxFlex.gt-md"],["fxLayoutAlign","start",1,"font-bold-500"],[4,"ngIf","ngIfElse"],["emptyField",""],[1,"w-100","my-1"],[1,"foreground-secondary-text",3,"ngSwitch"],["fxLayout","row wrap","fxLayoutAlign","space-between stretch",4,"ngSwitchCase"],[4,"ngSwitchCase"],[4,"ngSwitchDefault"],["fxLayout","row wrap","fxLayoutAlign","space-between stretch"],[3,"innerHTML",4,"ngFor","ngForOf"],[3,"innerHTML"],["fxFlex","100",1,"foreground-secondary-text"],["fxLayout","column",1,"bordered-box","my-2","p-2"],["fxLayout","row wrap","fxLayoutAlign","space-between center"],[3,"fxFlex",4,"ngIf"],[3,"fxFlex"],["matInput","","required","",3,"autoFocus","name","min","step","type","tabindex","ngModel","ngModelChange"],["mat-button","","color","primary","type","button","tabindex","2",1,"mr-1",3,"click"],["hideAdvancedText",""],["autoFocus","","mat-button","","color","primary","type","submit","tabindex","3","default","",3,"click"],["autoFocus","","mat-button","","color","primary","type","submit","tabindex","4","default","",3,"click"]],template:function(oi,Yt){1&oi&&(t.TgZ(0,"div",0)(1,"div",1)(2,"mat-card-header",2)(3,"div",3)(4,"span",4),t._uU(5),t.qZA()(),t.TgZ(6,"button",5),t.NdJ("click",function(){return Yt.onClose(!1)}),t._uU(7,"X"),t.qZA()(),t.TgZ(8,"mat-card-content",6)(9,"form",7),t.YNc(10,we,4,2,"div",8),t.YNc(11,J,4,2,"div",9),t.YNc(12,be,2,1,"p",10),t.YNc(13,ht,2,1,"div",11),t.YNc(14,ct,4,2,"div",12),t.TgZ(15,"div",13)(16,"button",14),t.NdJ("click",function(){return Yt.onClose(!1)}),t._uU(17),t.qZA(),t.YNc(18,Li,4,2,"button",15),t.YNc(19,xi,2,1,"button",16),t.YNc(20,Fi,2,1,"button",17),t.qZA()()()()()),2&oi&&(t.xp6(5),t.Oqu(Yt.data.alertTitle||Yt.alertTypeEnum[Yt.data.type]),t.xp6(5),t.Q6J("ngIf",Yt.warningMessage&&""!==Yt.warningMessage),t.xp6(1),t.Q6J("ngIf",Yt.informationMessage&&""!==Yt.informationMessage),t.xp6(1),t.Q6J("ngIf",Yt.data.titleMessage&&!Yt.flgShowInput),t.xp6(1),t.Q6J("ngIf",(null==Yt.messageObjs?null:Yt.messageObjs.length)>0),t.xp6(1),t.Q6J("ngIf",Yt.flgShowInput),t.xp6(3),t.Oqu(Yt.noBtnText),t.xp6(1),t.Q6J("ngIf",Yt.hasAdvanced),t.xp6(1),t.Q6J("ngIf",Yt.flgShowInput),t.xp6(1),t.Q6J("ngIf",!Yt.flgShowInput))},dependencies:[le.sg,le.O5,le.RF,le.n9,le.ED,Ye._Y,Ye.Fj,Ye.JJ,Ye.JL,Ye.Q7,Ye.On,Ye.F,Ht.BN,z.xw,z.Wh,z.yH,de.lW,$.dn,$.dk,Mt.Nt,kt.KE,kt.hX,kt.bx,kt.TO,A.d,y.h,_t.q,le.i8,le.JJ,le.uU]});var St=p(1786),xe=p(4385),Nt=p(3238);function qt(zt,oi){if(1&zt&&(t.TgZ(0,"mat-option",23),t._uU(1),t.qZA()),2&zt){const Yt=oi.$implicit;t.Q6J("value",Yt),t.xp6(1),t.hij(" ",Yt.infoName," ")}}function mi(zt,oi){if(1&zt){const Yt=t.EpF();t.TgZ(0,"div",13)(1,"mat-form-field",20)(2,"mat-select",21),t.NdJ("valueChange",function(on){t.CHM(Yt);const Ki=t.oxw();return t.KtG(Ki.selInfoType=on)}),t.YNc(3,qt,2,2,"mat-option",22),t.qZA()()()}if(2&zt){const Yt=t.oxw();t.xp6(2),t.Q6J("value",Yt.selInfoType),t.xp6(1),t.Q6J("ngForOf",Yt.infoTypes)}}const Ci=function(zt){return{"display-none":zt}};class Ii{constructor(oi,Yt,Ni,on,Ki){this.dialogRef=oi,this.data=Yt,this.logger=Ni,this.snackBar=on,this.commonService=Ki,this.faReceipt=Re.dLy,this.infoTypes=[{infoID:0,infoKey:"node pubkey",infoName:"Node pubkey"}],this.selInfoType=this.infoTypes[0],this.qrWidth=210,this.screenSize="",this.screenSizeEnum=E.cu}ngOnInit(){this.information=this.data.information,this.information.uris&&(1===this.information.uris.length?this.infoTypes.push({infoID:1,infoKey:"node URI",infoName:"Node URI"}):this.information.uris.length>1&&this.information.uris.forEach((oi,Yt)=>{this.infoTypes.push({infoID:Yt+1,infoKey:"node URI "+(Yt+1),infoName:"Node URI "+(Yt+1)})})),this.screenSize=this.commonService.getScreenSize()}onClose(){this.dialogRef.close(!1)}onCopyPubkey(oi){this.snackBar.open(this.selInfoType.infoName+" copied."),this.logger.info("Copied Text: "+oi)}}Ii.\u0275fac=function(oi){return new(oi||Ii)(t.Y36(R.so),t.Y36(R.WI),t.Y36(K.mQ),t.Y36(ee.ux),t.Y36(ie.v))},Ii.\u0275cmp=t.Xpm({type:Ii,selectors:[["rtl-show-pubkey"]],decls:26,vars:19,consts:[["fxLayout","column","fxLayout.gt-sm","row","fxLayoutAlign","space-between stretch"],["fxFlex","30","fxLayoutAlign","center start",1,"modal-qr-code-container","padding-gap-large",3,"ngClass"],[3,"value","size","errorCorrectionLevel"],["fxFlex","100","fxFlex.gt-sm","70"],["fxLayout","row","fxLayoutAlign","space-between center",1,"modal-info-header"],["fxFlex","95","fxLayoutAlign","start start"],[1,"page-title-img","mr-1",3,"icon"],[1,"page-title"],["tabindex","3","fxFlex","5","fxLayoutAlign","center center","mat-button","",1,"btn-close-x","p-0",3,"click"],[1,"padding-gap-x-large"],["fxLayout","column"],["fxFlex","50","fxLayoutAlign","center start",1,"modal-qr-code-container","padding-gap-large",3,"ngClass"],["fxLayout","row",4,"ngIf"],["fxLayout","row"],["fxFlex","100"],["fxLayoutAlign","start",1,"font-bold-500"],[1,"foreground-secondary-text"],[1,"w-100","my-1"],["fxLayout","row","fxLayoutAlign","end center",1,"mt-2"],["autoFocus","","mat-button","","color","primary","tabindex","2","type","submit","rtlClipboard","",3,"payload","copied"],["fxLayout","column","fxFlex","100","fxFlex.gt-sm","40","fxLayoutAlign","start end"],["tabindex","1",3,"value","valueChange"],[3,"value",4,"ngFor","ngForOf"],[3,"value"]],template:function(oi,Yt){1&oi&&(t.TgZ(0,"div",0)(1,"div",1),t._UZ(2,"qr-code",2),t.qZA(),t.TgZ(3,"div",3)(4,"mat-card-header",4)(5,"div",5),t._UZ(6,"fa-icon",6),t.TgZ(7,"span",7),t._uU(8),t.qZA()(),t.TgZ(9,"button",8),t.NdJ("click",function(){return Yt.onClose()}),t._uU(10,"X"),t.qZA()(),t.TgZ(11,"mat-card-content",9)(12,"div",10)(13,"div",11),t._UZ(14,"qr-code",2),t.qZA(),t.YNc(15,mi,4,2,"div",12),t.TgZ(16,"div",13)(17,"div",14)(18,"h4",15),t._uU(19),t.qZA(),t.TgZ(20,"span",16),t._uU(21),t.qZA()()(),t._UZ(22,"mat-divider",17),t.TgZ(23,"div",18)(24,"button",19),t.NdJ("copied",function(on){return Yt.onCopyPubkey(on)}),t._uU(25),t.qZA()()()()()()),2&oi&&(t.xp6(1),t.Q6J("ngClass",t.VKq(15,Ci,Yt.screenSize===Yt.screenSizeEnum.XS||Yt.screenSize===Yt.screenSizeEnum.SM)),t.xp6(1),t.s9C("value",0===Yt.selInfoType.infoID?Yt.information.identity_pubkey:Yt.information.uris[Yt.selInfoType.infoID-1]),t.Q6J("size",Yt.qrWidth)("errorCorrectionLevel","L"),t.xp6(4),t.Q6J("icon",Yt.faReceipt),t.xp6(2),t.Oqu(Yt.selInfoType.infoName),t.xp6(5),t.Q6J("ngClass",t.VKq(17,Ci,Yt.screenSize!==Yt.screenSizeEnum.XS&&Yt.screenSize!==Yt.screenSizeEnum.SM)),t.xp6(1),t.s9C("value",0===Yt.selInfoType.infoID?Yt.information.identity_pubkey:Yt.information.uris[Yt.selInfoType.infoID-1]),t.Q6J("size",Yt.qrWidth)("errorCorrectionLevel","L"),t.xp6(1),t.Q6J("ngIf",Yt.information.uris&&Yt.information.uris.length>0),t.xp6(4),t.Oqu(Yt.selInfoType.infoName),t.xp6(2),t.Oqu(0===Yt.selInfoType.infoID?Yt.information.identity_pubkey:Yt.information.uris[Yt.selInfoType.infoID-1]),t.xp6(3),t.s9C("payload",0===Yt.selInfoType.infoID?Yt.information.identity_pubkey:Yt.information.uris[Yt.selInfoType.infoID-1]),t.xp6(1),t.hij("Copy ",Yt.selInfoType.infoKey,""))},dependencies:[le.mk,le.sg,le.O5,Ht.BN,z.xw,z.Wh,z.yH,ne.oO,de.lW,$.dn,$.dk,kt.KE,A.d,xe.gD,Nt.ey,a.uU,l.y,y.h]});var Gi=p(6523),Yi=p(429),Ji=p(2994),Wt=p(8377),Jt=p(529),fe=p(7998),lt=p(5986),It=p(8104);class Bt{constructor(oi,Yt,Ni,on,Ki,pa,sa,Ia,Oa,Zn,Ua){this.actions=oi,this.httpClient=Yt,this.store=Ni,this.logger=on,this.wsService=Ki,this.sessionService=pa,this.commonService=sa,this.dataService=Ia,this.dialog=Oa,this.snackBar=Zn,this.router=Ua,this.screenSize="",this.alertWidth="55%",this.confirmWidth="70%",this.unSubs=[new b.x,new b.x],this.closeAllDialogs=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(E.pg.CLOSE_ALL_DIALOGS),(0,h.U)(()=>{this.dialog.closeAll()})),{dispatch:!1}),this.openSnackBar=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(E.pg.OPEN_SNACK_BAR),(0,h.U)(Lt=>{"string"==typeof Lt.payload?this.snackBar.open(Lt.payload):this.snackBar.open(Lt.payload.message,"","ERROR"===Lt.payload.type?{duration:Lt.payload.duration?Lt.payload.duration:2e3,panelClass:"rtl-warn-snack-bar"}:"WARN"===Lt.payload.type?{duration:Lt.payload.duration?Lt.payload.duration:2e3,panelClass:"rtl-accent-snack-bar"}:{duration:Lt.payload.duration?Lt.payload.duration:2e3,panelClass:"rtl-snack-bar"})})),{dispatch:!1}),this.openSpinner=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(E.pg.OPEN_SPINNER),(0,h.U)(Lt=>{Lt.payload!==E.m6.NO_SPINNER&&(this.dialogRef=this.dialog.open(W,{panelClass:"spinner-dialog-panel",data:{titleMessage:Lt.payload}}))})),{dispatch:!1}),this.closeSpinner=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(E.pg.CLOSE_SPINNER),(0,h.U)(Lt=>{if(Lt.payload!==E.m6.NO_SPINNER)try{this.dialogRef&&this.dialogRef.componentInstance&&this.dialogRef.componentInstance.data&&this.dialogRef.componentInstance.data.titleMessage&&this.dialogRef.componentInstance.data.titleMessage===Lt.payload?this.dialogRef.close():this.dialog.openDialogs.forEach(ai=>{ai.componentInstance&&ai.componentInstance.data&&ai.componentInstance.data.titleMessage&&ai.componentInstance.data.titleMessage===Lt.payload&&ai.close()})}catch(ai){this.logger.error(ai)}})),{dispatch:!1}),this.openAlert=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(E.pg.OPEN_ALERT),(0,h.U)(Lt=>{const ai=JSON.parse(JSON.stringify(Lt.payload));ai.width||(ai.width=this.alertWidth),this.dialogRef=this.dialog.open(Lt.payload.data.component?Lt.payload.data.component:Y,ai)})),{dispatch:!1}),this.closeAlert=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(E.pg.CLOSE_ALERT),(0,h.U)(Lt=>(this.dialogRef&&this.dialogRef.close(),this.logger.info(Lt.payload),Lt.payload))),{dispatch:!1}),this.openConfirm=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(E.pg.OPEN_CONFIRMATION),(0,h.U)(Lt=>{const ai=JSON.parse(JSON.stringify(Lt.payload));ai.width||(ai.width=this.confirmWidth),this.dialogRef=this.dialog.open(qe,ai)})),{dispatch:!1}),this.closeConfirm=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(E.pg.CLOSE_CONFIRMATION),(0,P.q)(1),(0,h.U)(Lt=>(this.dialogRef&&this.dialogRef.close(),this.logger.info(Lt.payload),Lt.payload))),{dispatch:!1}),this.showNodePubkey=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(E.pg.SHOW_PUBKEY),(0,d.M)(this.store.select(Wt.R4)),(0,S.z)(([Lt,ai])=>(this.sessionService.getItem("token")&&ai.identity_pubkey?this.store.dispatch((0,Tt.qR)({payload:{data:{information:ai,component:Ii}}})):this.snackBar.open("Node Pubkey does not exist."),(0,I.of)({type:E.pg.VOID}))))),this.appConfigFetch=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(E.pg.FETCH_RTL_CONFIG),(0,S.z)(()=>(this.screenSize=this.commonService.getScreenSize(),this.screenSize===E.cu.XS||this.screenSize===E.cu.SM?(this.alertWidth="95%",this.confirmWidth="95%"):this.screenSize===E.cu.MD?(this.alertWidth="80%",this.confirmWidth="80%"):(this.alertWidth="50%",this.confirmWidth="53%"),this.store.dispatch((0,Tt.ac)({payload:E.m6.GET_RTL_CONFIG})),this.store.dispatch((0,Tt.qi)({payload:{action:"FetchRTLConfig",status:E.Bn.INITIATED}})),this.sessionService.getItem("token")?this.httpClient.get(E.vv.CONF_API+"/rtlconf"):this.httpClient.get(E.vv.CONF_API+"/rtlconfinit"))),(0,h.U)(Lt=>{this.logger.info(Lt),this.store.dispatch((0,Tt.uO)({payload:E.m6.GET_RTL_CONFIG})),this.store.dispatch((0,Tt.qi)({payload:{action:"FetchRTLConfig",status:E.Bn.COMPLETED}}));let ai=null;return Lt.nodes.forEach(si=>{si.settings.currencyUnits=[...E.uA,si.settings?.currencyUnit?si.settings?.currencyUnit:""],+(si.index||-1)===Lt.selectedNodeIndex&&(ai=si)}),ai?(this.store.dispatch((0,Tt.fk)({payload:{uiMessage:E.m6.NO_SPINNER,prevLnNodeIndex:-1,currentLnNode:ai,isInitialSetup:!0}})),{type:E.pg.SET_RTL_CONFIG,payload:Lt}):{type:E.pg.VOID}}),(0,w.K)(Lt=>(this.handleErrorWithAlert("FetchRTLConfig",E.m6.GET_RTL_CONFIG,"Fetch RTL Config Failed!",E.vv.CONF_API,Lt),(0,I.of)({type:E.pg.VOID}))))),this.settingSave=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(E.pg.SAVE_SETTINGS),(0,S.z)(Lt=>{this.store.dispatch((0,Tt.ac)({payload:Lt.payload.uiMessage})),this.store.dispatch((0,Tt.qi)({payload:{action:"UpdateSettings",status:E.Bn.INITIATED}}));let ai=new s.y;if(Lt.payload.settings&&Lt.payload.defaultNodeIndex){const si=this.httpClient.post(E.vv.CONF_API,{updatedSettings:Lt.payload.settings}),gi=this.httpClient.post(E.vv.CONF_API+"/updateDefaultNode",{defaultNodeIndex:Lt.payload.defaultNodeIndex});ai=(0,C.D)([si,gi])}else Lt.payload.settings&&!Lt.payload.defaultNodeIndex?ai=this.httpClient.post(E.vv.CONF_API,{updatedSettings:Lt.payload.settings}):!Lt.payload.settings&&Lt.payload.defaultNodeIndex&&(ai=this.httpClient.post(E.vv.CONF_API+"/updateDefaultNode",{defaultNodeIndex:Lt.payload.defaultNodeIndex}));return ai.pipe((0,h.U)(si=>(this.logger.info(si),this.store.dispatch((0,Tt.qi)({payload:{action:"UpdateSettings",status:E.Bn.COMPLETED}})),this.store.dispatch((0,Tt.uO)({payload:Lt.payload.uiMessage})),{type:E.pg.OPEN_SNACK_BAR,payload:si.length?si[0].message+".":si.message+"."})),(0,w.K)(si=>(this.handleErrorWithAlert("UpdateSettings",Lt.payload.uiMessage,"Update Settings Failed!",E.vv.CONF_API,si.length?si[0]:si),(0,I.of)({type:E.pg.VOID}))))}))),this.updateServicesettings=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(E.pg.UPDATE_SERVICE_SETTINGS),(0,S.z)(Lt=>(this.store.dispatch((0,Tt.ac)({payload:Lt.payload.uiMessage})),this.store.dispatch((0,Tt.qi)({payload:{action:"UpdateServiceSettings",status:E.Bn.INITIATED}})),this.httpClient.post(E.vv.CONF_API+"/updateServiceSettings",Lt.payload).pipe((0,h.U)(ai=>(this.logger.info(ai),this.store.dispatch((0,Tt.qi)({payload:{action:"UpdateServiceSettings",status:E.Bn.COMPLETED}})),this.store.dispatch((0,Tt.uO)({payload:Lt.payload.uiMessage})),this.store.dispatch((0,Tt.Tm)({payload:Lt.payload})),{type:E.pg.OPEN_SNACK_BAR,payload:ai.message+"."})),(0,w.K)(ai=>(this.handleErrorWithAlert("UpdateServiceSettings",Lt.payload.uiMessage,"Update Service Settings Failed!",E.vv.CONF_API,ai),(0,I.of)({type:E.pg.VOID})))))))),this.twoFASettingSave=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(E.pg.TWO_FA_SAVE_SETTINGS),(0,S.z)(Lt=>(this.store.dispatch((0,Tt.ac)({payload:E.m6.UPDATE_UI_SETTINGS})),this.store.dispatch((0,Tt.qi)({payload:{action:"Update2FASettings",status:E.Bn.INITIATED}})),this.httpClient.post(E.vv.CONF_API+"/update2FA",{secret2fa:Lt.payload.secret2fa}))),(0,d.M)(this.store.select(Wt.Yj)),(0,h.U)(([Lt,ai])=>{this.logger.info(Lt),ai.enable2FA=!ai.enable2FA,this.store.dispatch((0,Tt.qi)({payload:{action:"Update2FASettings",status:E.Bn.COMPLETED}})),this.store.dispatch((0,Tt.uO)({payload:E.m6.UPDATE_UI_SETTINGS})),this.store.dispatch((0,Tt.XT)({payload:ai}))}),(0,w.K)(Lt=>(this.handleErrorWithAlert("Update2FASettings",E.m6.UPDATE_UI_SETTINGS,"Update 2FA Settings Failed!",E.vv.CONF_API,Lt),(0,I.of)({type:E.pg.VOID})))),{dispatch:!1}),this.configFetch=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(E.pg.FETCH_CONFIG),(0,S.z)(Lt=>(this.store.dispatch((0,Tt.ac)({payload:E.m6.OPEN_CONFIG_FILE})),this.store.dispatch((0,Tt.qi)({payload:{action:"fetchConfig",status:E.Bn.INITIATED}})),this.httpClient.get(E.vv.CONF_API+"/config/"+Lt.payload).pipe((0,h.U)(ai=>(this.store.dispatch((0,Tt.qi)({payload:{action:"fetchConfig",status:E.Bn.COMPLETED}})),this.store.dispatch((0,Tt.uO)({payload:E.m6.OPEN_CONFIG_FILE})),{type:E.pg.SHOW_CONFIG,payload:ai})),(0,w.K)(ai=>(this.handleErrorWithAlert("fetchConfig",E.m6.OPEN_CONFIG_FILE,"Fetch Config Failed!",E.vv.CONF_API+"/config/"+Lt.payload,ai),(0,I.of)({type:E.pg.VOID})))))))),this.showLnConfig=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(E.pg.SHOW_CONFIG),(0,h.U)(Lt=>Lt.payload)),{dispatch:!1}),this.isAuthorized=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(E.pg.IS_AUTHORIZED),(0,S.z)(Lt=>(this.store.dispatch((0,Tt.qi)({payload:{action:"IsAuthorized",status:E.Bn.INITIATED}})),this.httpClient.post(E.vv.AUTHENTICATE_API,{authenticateWith:Lt.payload&&""!==Lt.payload.trim()?E.OJ.PASSWORD:E.OJ.JWT,authenticationValue:Lt.payload&&""!==Lt.payload.trim()?Lt.payload:this.sessionService.getItem("token")?this.sessionService.getItem("token"):""}).pipe((0,h.U)(ai=>(this.logger.info(ai),this.store.dispatch((0,Tt.qi)({payload:{action:"IsAuthorized",status:E.Bn.COMPLETED}})),this.logger.info("Successfully Authorized!"),{type:E.pg.IS_AUTHORIZED_RES,payload:ai})),(0,w.K)(ai=>(this.handleErrorWithAlert("IsAuthorized",E.m6.NO_SPINNER,"Authorization Failed",E.vv.AUTHENTICATE_API,ai),(0,I.of)({type:E.pg.IS_AUTHORIZED_RES,payload:"ERROR"})))))))),this.isAuthorizedRes=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(E.pg.IS_AUTHORIZED_RES),(0,h.U)(Lt=>Lt.payload)),{dispatch:!1}),this.authLogin=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(E.pg.LOGIN),(0,d.M)(this.store.select(Wt.Yj)),(0,S.z)(([Lt,ai])=>(this.store.dispatch((0,Gi.Ll)({payload:null})),this.store.dispatch((0,Yi.xH)({payload:null})),this.store.dispatch((0,Ji.Fd)({payload:null})),this.store.dispatch((0,Tt.qi)({payload:{action:"Login",status:E.Bn.INITIATED}})),this.httpClient.post(E.vv.AUTHENTICATE_API,{authenticateWith:Lt.payload.password?E.OJ.PASSWORD:E.OJ.JWT,authenticationValue:Lt.payload.password?Lt.payload.password:this.sessionService.getItem("token")?this.sessionService.getItem("token"):"",twoFAToken:Lt.payload.twoFAToken?Lt.payload.twoFAToken:""}).pipe((0,h.U)(si=>{this.logger.info(si),this.store.dispatch((0,Tt.qi)({payload:{action:"Login",status:E.Bn.COMPLETED}})),this.setLoggedInDetails(Lt.payload.defaultPassword,si)}),(0,w.K)(si=>(this.logger.info("Redirecting to Login Error Page"),this.handleErrorWithoutAlert("Login",E.m6.NO_SPINNER,si),+ai.sso.rtlSSO?this.router.navigate(["/error"],{state:{errorCode:"406",errorMessage:si.error&&si.error.error?si.error.error:"Single Sign On Failed!"}}):this.router.navigate(["./login"]),(0,I.of)({type:E.pg.VOID}))))))),{dispatch:!1}),this.tokenVerify=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(E.pg.VERIFY_TWO_FA),(0,S.z)(Lt=>(this.store.dispatch((0,Tt.ac)({payload:E.m6.VERIFY_TOKEN})),this.store.dispatch((0,Tt.qi)({payload:{action:"VerifyToken",status:E.Bn.INITIATED}})),this.httpClient.post(E.vv.AUTHENTICATE_API+"/token",{authentication2FA:Lt.payload.token}).pipe((0,h.U)(ai=>{this.logger.info(ai),this.store.dispatch((0,Tt.uO)({payload:E.m6.VERIFY_TOKEN})),this.store.dispatch((0,Tt.qi)({payload:{action:"VerifyToken",status:E.Bn.COMPLETED}})),this.logger.info("Token Successfully Verified!"),this.setLoggedInDetails(!1,Lt.payload.authResponse)}),(0,w.K)(ai=>(this.handleErrorWithAlert("VerifyToken",E.m6.VERIFY_TOKEN,"Authorization Failed!",E.vv.AUTHENTICATE_API+"/token",ai),(0,I.of)({type:E.pg.VOID}))))))),{dispatch:!1}),this.logOut=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(E.pg.LOGOUT),(0,S.z)(Lt=>(this.store.dispatch((0,Tt.ac)({payload:E.m6.LOG_OUT})),Lt.sso&&+Lt.sso.rtlSSO?window.location.href=Lt.sso.logoutRedirectLink:this.router.navigate(["./login"]),this.sessionService.clearAll(),this.store.dispatch((0,Tt._V)({payload:{}})),this.store.dispatch((0,Tt.uO)({payload:E.m6.LOG_OUT})),this.logger.info("Logged out from browser"),this.httpClient.get(E.vv.AUTHENTICATE_API+"/logout").pipe((0,h.U)(ai=>{this.logger.info(ai),this.store.dispatch((0,Tt.uO)({payload:E.m6.LOG_OUT})),this.logger.info("Logged out from server")}))))),{dispatch:!1}),this.resetPassword=(0,e.GW)(()=>this.actions.pipe((0,O.R)(this.unSubs[1]),(0,e.l4)(E.pg.RESET_PASSWORD),(0,S.z)(Lt=>(this.store.dispatch((0,Tt.qi)({payload:{action:"ResetPassword",status:E.Bn.INITIATED}})),this.httpClient.post(E.vv.AUTHENTICATE_API+"/reset",{currPassword:Lt.payload.currPassword,newPassword:Lt.payload.newPassword}).pipe((0,O.R)(this.unSubs[0]),(0,h.U)(ai=>(this.logger.info(ai),this.store.dispatch((0,Tt.qi)({payload:{action:"ResetPassword",status:E.Bn.COMPLETED}})),this.sessionService.setItem("defaultPassword",!1),this.logger.info("Password Reset Successful!"),this.store.dispatch((0,Tt.jW)({payload:"Password Reset Successful!"})),this.SetToken(ai.token),{type:E.pg.RESET_PASSWORD_RES,payload:ai.token})),(0,w.K)(ai=>(this.handleErrorWithAlert("ResetPassword",E.m6.NO_SPINNER,"Password Reset Failed!",E.vv.AUTHENTICATE_API+"/reset",ai),(0,I.of)({type:E.pg.VOID})))))))),this.setSelectedNode=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(E.pg.SET_SELECTED_NODE),(0,S.z)(Lt=>(this.store.dispatch((0,Tt.ac)({payload:Lt.payload.uiMessage})),this.store.dispatch((0,Tt.qi)({payload:{action:"UpdateSelNode",status:E.Bn.INITIATED}})),this.httpClient.get(E.vv.CONF_API+"/updateSelNode/"+Lt.payload.currentLnNode?.index+"/"+Lt.payload.prevLnNodeIndex).pipe((0,h.U)(ai=>(this.logger.info(ai),this.store.dispatch((0,Tt.qi)({payload:{action:"UpdateSelNode",status:E.Bn.COMPLETED}})),this.store.dispatch((0,Tt.uO)({payload:Lt.payload.uiMessage})),this.initializeNode(Lt.payload.currentLnNode,Lt.payload.isInitialSetup),{type:E.pg.VOID})),(0,w.K)(ai=>(this.handleErrorWithAlert("UpdateSelNode",Lt.payload.uiMessage,"Update Selected Node Failed!",E.vv.CONF_API+"/updateSelNode",ai),(0,I.of)({type:E.pg.VOID})))))))),this.fetchFile=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(E.pg.FETCH_FILE),(0,S.z)(Lt=>{this.store.dispatch((0,Tt.ac)({payload:E.m6.DOWNLOAD_BACKUP_FILE})),this.store.dispatch((0,Tt.qi)({payload:{action:"FetchFile",status:E.Bn.INITIATED}}));const ai="?channel="+Lt.payload.channelPoint+(Lt.payload.path?"&path="+Lt.payload.path:"");return this.httpClient.get(E.vv.CONF_API+"/file"+ai).pipe((0,h.U)(si=>(this.store.dispatch((0,Tt.qi)({payload:{action:"FetchFile",status:E.Bn.COMPLETED}})),this.store.dispatch((0,Tt.uO)({payload:E.m6.DOWNLOAD_BACKUP_FILE})),{type:E.pg.SHOW_FILE,payload:si})),(0,w.K)(si=>(this.handleErrorWithAlert("fetchFile",E.m6.DOWNLOAD_BACKUP_FILE,"Download Backup File Failed!",E.vv.CONF_API+"/file"+ai,{status:this.commonService.extractErrorNumber(si),error:{error:this.commonService.extractErrorCode(si)}}),(0,I.of)({type:E.pg.VOID}))))}))),this.showFile=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(E.pg.SHOW_FILE),(0,h.U)(Lt=>Lt.payload)),{dispatch:!1})}initializeNode(oi,Yt){this.logger.info("Initializing node from RTL Effects.");const Ni=Yt?"":"HOME",on={userPersona:oi.settings.userPersona,channelBackupPath:oi.settings.channelBackupPath,unannouncedChannels:!!oi.settings.unannouncedChannels,selCurrencyUnit:oi.settings.currencyUnit,currencyUnits:E.uA,fiatConversion:oi.settings.fiatConversion,lnImplementation:oi.lnImplementation,swapServerUrl:oi.settings.swapServerUrl,boltzServerUrl:oi.settings.boltzServerUrl,enableOffers:oi.settings.enableOffers,enablePeerswap:oi.settings.enablePeerswap};if(oi.settings.fiatConversion&&oi.settings.currencyUnit&&(on.currencyUnits=[...E.uA,oi.settings.currencyUnit]),this.sessionService.removeItem("lndUnlocked"),this.sessionService.removeItem("clUnlocked"),this.sessionService.removeItem("eclUnlocked"),this.store.dispatch((0,Tt.vI)({payload:oi})),this.store.dispatch((0,Gi.Ll)({payload:on})),this.store.dispatch((0,Yi.xH)({payload:on})),this.store.dispatch((0,Ji.Fd)({payload:on})),this.sessionService.getItem("token")){const Ki=oi.lnImplementation?oi.lnImplementation.toUpperCase():"LND";this.dataService.setLnImplementation(Ki);const pa=!(0,t.X6Q)()&&window.location.origin?window.location.origin+"/rtl/api":E.T5;switch(this.wsService.connectWebSocket(pa?.replace(/^http/,"ws")+E.vv.Web_SOCKET_API,oi.index?oi.index.toString():"-1"),Ki){case"CLN":this.store.dispatch((0,Yi.CN)({payload:{loadPage:Ni}}));break;case"ECL":this.store.dispatch((0,Ji.iz)({payload:{loadPage:Ni}}));break;default:this.store.dispatch((0,Gi.sQ)({payload:{loadPage:Ni}}))}}}SetToken(oi){oi?(this.sessionService.setItem("lndUnlocked","true"),this.sessionService.setItem("token",oi)):(this.sessionService.removeItem("lndUnlocked"),this.sessionService.removeItem("token"))}setLoggedInDetails(oi,Yt){this.logger.info("Successfully Authorized!"),this.SetToken(Yt.token),this.sessionService.setItem("defaultPassword",oi),oi?(this.store.dispatch((0,Tt.jW)({payload:"Reset your password."})),this.router.navigate(["/settings/auth"])):this.store.dispatch((0,Tt.ey)())}handleErrorWithoutAlert(oi,Yt,Ni){this.logger.error("ERROR IN: "+oi+"\n"+JSON.stringify(Ni)),401===Ni.status&&"Login"!==oi?(this.logger.info("Redirecting to Login"),this.store.dispatch((0,Tt.ts)()),this.store.dispatch((0,Tt.kS)()),this.store.dispatch((0,Tt.jW)({payload:"Authentication Failed. Redirecting to Login."}))):(this.store.dispatch((0,Tt.uO)({payload:Yt})),this.store.dispatch((0,Tt.qi)({payload:{action:oi,status:E.Bn.ERROR,statusCode:Ni.status?Ni.status.toString():"",message:this.commonService.extractErrorMessage(Ni)}})))}handleErrorWithAlert(oi,Yt,Ni,on,Ki){if(this.logger.error(Ki),0===Ki.status&&Ki.statusText&&"Unknown Error"===Ki.statusText&&(Ki={status:400,error:{message:"Unknown Error / CORS Origin Not Allowed"}}),401===Ki.status&&"Login"!==oi)this.logger.info("Redirecting to Login"),this.store.dispatch((0,Tt.ts)()),this.store.dispatch((0,Tt.kS)()),this.store.dispatch((0,Tt.jW)({payload:"Authentication Failed. Redirecting to Login."}));else{this.store.dispatch((0,Tt.uO)({payload:Yt}));const pa=this.commonService.extractErrorMessage(Ki);this.store.dispatch((0,Tt.qR)({payload:{data:{type:"ERROR",alertTitle:Ni,message:{code:Ki.status?Ki.status:"Unknown Error",message:pa,URL:on},component:St.H}}})),this.store.dispatch((0,Tt.qi)({payload:{action:oi,status:E.Bn.ERROR,statusCode:Ki.status?Ki.status.toString():"",message:pa,URL:on}}))}}ngOnDestroy(){this.unSubs.forEach(oi=>{oi.next(null),oi.complete()})}}Bt.\u0275fac=function(oi){return new(oi||Bt)(t.LFG(e.eX),t.LFG(Jt.eN),t.LFG(Qe.yh),t.LFG(K.mQ),t.LFG(fe.d),t.LFG(lt.m),t.LFG(ie.v),t.LFG(It.D),t.LFG(R.uw),t.LFG(ee.ux),t.LFG(ue.F0))},Bt.\u0275prov=t.Yz7({token:Bt,factory:Bt.\u0275fac})},8377:(Ve,q,p)=>{"use strict";p.d(q,{R4:()=>C,Sr:()=>P,Yj:()=>s,dT:()=>I,gW:()=>d,ul:()=>h});var t=p(9653);const e=(0,t.ZF)("root"),I=((0,t.P1)(e,S=>S.apiURL),(0,t.P1)(e,S=>S.selNode)),s=(0,t.P1)(e,S=>S.appConfig),C=(0,t.P1)(e,S=>S.nodeData),h=(0,t.P1)(e,S=>S.apisCallStatus.Login),P=(0,t.P1)(e,S=>S.apisCallStatus.IsAuthorized),d=(0,t.P1)(e,S=>({nodeDate:S.nodeData,selNode:S.selNode}))},5415:(Ve,q,p)=>{"use strict";var t=p(1481),e=p(4650),b=p(7340);function s(F){return new e.vHH(3e3,!1)}function $e(){return typeof window<"u"&&typeof window.document<"u"}function We(){return typeof process<"u"&&"[object process]"==={}.toString.call(process)}function Fe(F){switch(F.length){case 0:return new b.ZN;case 1:return F[0];default:return new b.ZE(F)}}function De(F,M,v,Z,_e=new Map,bt=new Map){const Zt=[],ei=[];let ui=-1,Ei=null;if(Z.forEach(en=>{const Bi=en.get("offset"),In=Bi==ui,kn=In&&Ei||new Map;en.forEach((hn,Mn)=>{let ia=Mn,_a=hn;if("offset"!==Mn)switch(ia=M.normalizePropertyName(ia,Zt),_a){case b.k1:_a=_e.get(Mn);break;case b.l3:_a=bt.get(Mn);break;default:_a=M.normalizeStyleValue(Mn,ia,_a,Zt)}kn.set(ia,_a)}),In||ei.push(kn),Ei=kn,ui=Bi}),Zt.length)throw function a(F){return new e.vHH(3502,!1)}();return ei}function ye(F,M,v,Z){switch(M){case"start":F.onStart(()=>Z(v&&ce(v,"start",F)));break;case"done":F.onDone(()=>Z(v&&ce(v,"done",F)));break;case"destroy":F.onDestroy(()=>Z(v&&ce(v,"destroy",F)))}}function ce(F,M,v){const bt=ve(F.element,F.triggerName,F.fromState,F.toState,M||F.phaseName,v.totalTime??F.totalTime,!!v.disabled),Zt=F._data;return null!=Zt&&(bt._data=Zt),bt}function ve(F,M,v,Z,_e="",bt=0,Zt){return{element:F,triggerName:M,fromState:v,toState:Z,phaseName:_e,totalTime:bt,disabled:!!Zt}}function oe(F,M,v){let Z=F.get(M);return Z||F.set(M,Z=v),Z}function je(F){const M=F.indexOf(":");return[F.substring(1,M),F.slice(M+1)]}let Ae=(F,M)=>!1,he=(F,M,v)=>[],Ce=null;function te(F){const M=F.parentNode||F.host;return M===Ce?null:M}(We()||typeof Element<"u")&&($e()?(Ce=(()=>document.documentElement)(),Ae=(F,M)=>{for(;M;){if(M===F)return!0;M=te(M)}return!1}):Ae=(F,M)=>F.contains(M),he=(F,M,v)=>{if(v)return Array.from(F.querySelectorAll(M));const Z=F.querySelector(M);return Z?[Z]:[]});let ae=null,ge=!1;const Et=Ae,pt=he;let wt=(()=>{class F{validateStyleProperty(v){return function ft(F){ae||(ae=function dt(){return typeof document<"u"?document.body:null}()||{},ge=!!ae.style&&"WebkitAppearance"in ae.style);let M=!0;return ae.style&&!function Be(F){return"ebkit"==F.substring(1,6)}(F)&&(M=F in ae.style,!M&&ge&&(M="Webkit"+F.charAt(0).toUpperCase()+F.slice(1)in ae.style)),M}(v)}matchesElement(v,Z){return!1}containsElement(v,Z){return Et(v,Z)}getParentElement(v){return te(v)}query(v,Z,_e){return pt(v,Z,_e)}computeStyle(v,Z,_e){return _e||""}animate(v,Z,_e,bt,Zt,ei=[],ui){return new b.ZN(_e,bt)}}return F.\u0275fac=function(v){return new(v||F)},F.\u0275prov=e.Yz7({token:F,factory:F.\u0275fac}),F})(),ke=(()=>{class F{}return F.NOOP=new wt,F})();const Re="ng-enter",Tt="ng-leave",Qe="ng-trigger",Ye=".ng-trigger",Ht="ng-animating",Mt=".ng-animating";function kt(F){if("number"==typeof F)return F;const M=F.match(/^(-?[\.\d]+)(m?s)/);return!M||M.length<2?0:_t(parseFloat(M[1]),M[2])}function _t(F,M){return"s"===M?1e3*F:F}function we(F,M,v){return F.hasOwnProperty("duration")?F:function J(F,M,v){let _e,bt=0,Zt="";if("string"==typeof F){const ei=F.match(/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i);if(null===ei)return M.push(s()),{duration:0,delay:0,easing:""};_e=_t(parseFloat(ei[1]),ei[2]);const ui=ei[3];null!=ui&&(bt=_t(parseFloat(ui),ei[4]));const Ei=ei[5];Ei&&(Zt=Ei)}else _e=F;if(!v){let ei=!1,ui=M.length;_e<0&&(M.push(function C(){return new e.vHH(3100,!1)}()),ei=!0),bt<0&&(M.push(function h(){return new e.vHH(3101,!1)}()),ei=!0),ei&&M.splice(ui,0,s())}return{duration:_e,delay:bt,easing:Zt}}(F,M,v)}function be(F,M={}){return Object.keys(F).forEach(v=>{M[v]=F[v]}),M}function He(F){const M=new Map;return Object.keys(F).forEach(v=>{M.set(v,F[v])}),M}function Gt(F,M=new Map,v){if(v)for(let[Z,_e]of v)M.set(Z,_e);for(let[Z,_e]of F)M.set(Z,_e);return M}function ni(F,M,v){return v?M+":"+v+";":""}function ut(F){let M="";for(let v=0;v<F.style.length;v++){const Z=F.style.item(v);M+=ni(0,Z,F.style.getPropertyValue(Z))}for(const v in F.style)F.style.hasOwnProperty(v)&&!v.startsWith("_")&&(M+=ni(0,Dt(v),F.style[v]));F.setAttribute("style",M)}function tt(F,M,v){F.style&&(M.forEach((Z,_e)=>{const bt=ct(_e);v&&!v.has(_e)&&v.set(_e,F.style[bt]),F.style[bt]=Z}),We()&&ut(F))}function vt(F,M){F.style&&(M.forEach((v,Z)=>{const _e=ct(Z);F.style[_e]=""}),We()&&ut(F))}function ti(F){return Array.isArray(F)?1==F.length?F[0]:(0,b.vP)(F):F}const ht=new RegExp("{{\\s*(.+?)\\s*}}","g");function Rt(F){let M=[];if("string"==typeof F){let v;for(;v=ht.exec(F);)M.push(v[1]);ht.lastIndex=0}return M}function Oe(F,M,v){const Z=F.toString(),_e=Z.replace(ht,(bt,Zt)=>{let ei=M[Zt];return null==ei&&(v.push(function d(F){return new e.vHH(3003,!1)}()),ei=""),ei.toString()});return _e==Z?F:_e}function et(F){const M=[];let v=F.next();for(;!v.done;)M.push(v.value),v=F.next();return M}const it=/-+([a-z0-9])/g;function ct(F){return F.replace(it,(...M)=>M[1].toUpperCase())}function Dt(F){return F.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()}function xi(F,M,v){switch(M.type){case 7:return F.visitTrigger(M,v);case 0:return F.visitState(M,v);case 1:return F.visitTransition(M,v);case 2:return F.visitSequence(M,v);case 3:return F.visitGroup(M,v);case 4:return F.visitAnimate(M,v);case 5:return F.visitKeyframes(M,v);case 6:return F.visitStyle(M,v);case 8:return F.visitReference(M,v);case 9:return F.visitAnimateChild(M,v);case 10:return F.visitAnimateRef(M,v);case 11:return F.visitQuery(M,v);case 12:return F.visitStagger(M,v);default:throw function S(F){return new e.vHH(3004,!1)}()}}function Fi(F,M){return window.getComputedStyle(F)[M]}function Gi(F,M){const v=[];return"string"==typeof F?F.split(/\s*,\s*/).forEach(Z=>function Yi(F,M,v){if(":"==F[0]){const ui=function Ji(F,M){switch(F){case":enter":return"void => *";case":leave":return"* => void";case":increment":return(v,Z)=>parseFloat(Z)>parseFloat(v);case":decrement":return(v,Z)=>parseFloat(Z)<parseFloat(v);default:return M.push(function $(F){return new e.vHH(3016,!1)}()),"* => *"}}(F,v);if("function"==typeof ui)return void M.push(ui);F=ui}const Z=F.match(/^(\*|[-\w]+)\s*(<?[=-]>)\s*(\*|[-\w]+)$/);if(null==Z||Z.length<4)return v.push(function de(F){return new e.vHH(3015,!1)}()),M;const _e=Z[1],bt=Z[2],Zt=Z[3];M.push(fe(_e,Zt));"<"==bt[0]&&!("*"==_e&&"*"==Zt)&&M.push(fe(Zt,_e))}(Z,v,M)):v.push(F),v}const Wt=new Set(["true","1"]),Jt=new Set(["false","0"]);function fe(F,M){const v=Wt.has(F)||Jt.has(F),Z=Wt.has(M)||Jt.has(M);return(_e,bt)=>{let Zt="*"==F||F==_e,ei="*"==M||M==bt;return!Zt&&v&&"boolean"==typeof _e&&(Zt=_e?Wt.has(F):Jt.has(F)),!ei&&Z&&"boolean"==typeof bt&&(ei=bt?Wt.has(M):Jt.has(M)),Zt&&ei}}const It=new RegExp("s*:selfs*,?","g");function Bt(F,M,v,Z){return new oi(F).build(M,v,Z)}class oi{constructor(M){this._driver=M}build(M,v,Z){const _e=new on(v);return this._resetContextStyleTimingState(_e),xi(this,ti(M),_e)}_resetContextStyleTimingState(M){M.currentQuerySelector="",M.collectedStyles=new Map,M.collectedStyles.set("",new Map),M.currentTime=0}visitTrigger(M,v){let Z=v.queryCount=0,_e=v.depCount=0;const bt=[],Zt=[];return"@"==M.name.charAt(0)&&v.errors.push(function O(){return new e.vHH(3006,!1)}()),M.definitions.forEach(ei=>{if(this._resetContextStyleTimingState(v),0==ei.type){const ui=ei,Ei=ui.name;Ei.toString().split(/\s*,\s*/).forEach(en=>{ui.name=en,bt.push(this.visitState(ui,v))}),ui.name=Ei}else if(1==ei.type){const ui=this.visitTransition(ei,v);Z+=ui.queryCount,_e+=ui.depCount,Zt.push(ui)}else v.errors.push(function E(){return new e.vHH(3007,!1)}())}),{type:7,name:M.name,states:bt,transitions:Zt,queryCount:Z,depCount:_e,options:null}}visitState(M,v){const Z=this.visitStyle(M.styles,v),_e=M.options&&M.options.params||null;if(Z.containsDynamicStyles){const bt=new Set,Zt=_e||{};Z.styles.forEach(ei=>{ei instanceof Map&&ei.forEach(ui=>{Rt(ui).forEach(Ei=>{Zt.hasOwnProperty(Ei)||bt.add(Ei)})})}),bt.size&&(et(bt.values()),v.errors.push(function R(F,M){return new e.vHH(3008,!1)}()))}return{type:0,name:M.name,style:Z,options:_e?{params:_e}:null}}visitTransition(M,v){v.queryCount=0,v.depCount=0;const Z=xi(this,ti(M.animation),v);return{type:1,matchers:Gi(M.expr,v.errors),animation:Z,queryCount:v.queryCount,depCount:v.depCount,options:sa(M.options)}}visitSequence(M,v){return{type:2,steps:M.steps.map(Z=>xi(this,Z,v)),options:sa(M.options)}}visitGroup(M,v){const Z=v.currentTime;let _e=0;const bt=M.steps.map(Zt=>{v.currentTime=Z;const ei=xi(this,Zt,v);return _e=Math.max(_e,v.currentTime),ei});return v.currentTime=_e,{type:3,steps:bt,options:sa(M.options)}}visitAnimate(M,v){const Z=function pa(F,M){if(F.hasOwnProperty("duration"))return F;if("number"==typeof F)return Ia(we(F,M).duration,0,"");const v=F;if(v.split(/\s+/).some(bt=>"{"==bt.charAt(0)&&"{"==bt.charAt(1))){const bt=Ia(0,0,"");return bt.dynamic=!0,bt.strValue=v,bt}const _e=we(v,M);return Ia(_e.duration,_e.delay,_e.easing)}(M.timings,v.errors);v.currentAnimateTimings=Z;let _e,bt=M.styles?M.styles:(0,b.oB)({});if(5==bt.type)_e=this.visitKeyframes(bt,v);else{let Zt=M.styles,ei=!1;if(!Zt){ei=!0;const Ei={};Z.easing&&(Ei.easing=Z.easing),Zt=(0,b.oB)(Ei)}v.currentTime+=Z.duration+Z.delay;const ui=this.visitStyle(Zt,v);ui.isEmptyStep=ei,_e=ui}return v.currentAnimateTimings=null,{type:4,timings:Z,style:_e,options:null}}visitStyle(M,v){const Z=this._makeStyleAst(M,v);return this._validateStyleAst(Z,v),Z}_makeStyleAst(M,v){const Z=[],_e=Array.isArray(M.styles)?M.styles:[M.styles];for(let ei of _e)"string"==typeof ei?ei===b.l3?Z.push(ei):v.errors.push(new e.vHH(3002,!1)):Z.push(He(ei));let bt=!1,Zt=null;return Z.forEach(ei=>{if(ei instanceof Map&&(ei.has("easing")&&(Zt=ei.get("easing"),ei.delete("easing")),!bt))for(let ui of ei.values())if(ui.toString().indexOf("{{")>=0){bt=!0;break}}),{type:6,styles:Z,easing:Zt,offset:M.offset,containsDynamicStyles:bt,options:null}}_validateStyleAst(M,v){const Z=v.currentAnimateTimings;let _e=v.currentTime,bt=v.currentTime;Z&&bt>0&&(bt-=Z.duration+Z.delay),M.styles.forEach(Zt=>{"string"!=typeof Zt&&Zt.forEach((ei,ui)=>{const Ei=v.collectedStyles.get(v.currentQuerySelector),en=Ei.get(ui);let Bi=!0;en&&(bt!=_e&&bt>=en.startTime&&_e<=en.endTime&&(v.errors.push(function W(F,M,v,Z,_e){return new e.vHH(3010,!1)}()),Bi=!1),bt=en.startTime),Bi&&Ei.set(ui,{startTime:bt,endTime:_e}),v.options&&function Ut(F,M,v){const Z=M.params||{},_e=Rt(F);_e.length&&_e.forEach(bt=>{Z.hasOwnProperty(bt)||v.push(function P(F){return new e.vHH(3001,!1)}())})}(ei,v.options,v.errors)})})}visitKeyframes(M,v){const Z={type:5,styles:[],options:null};if(!v.currentAnimateTimings)return v.errors.push(function K(){return new e.vHH(3011,!1)}()),Z;let bt=0;const Zt=[];let ei=!1,ui=!1,Ei=0;const en=M.steps.map(_a=>{const Nr=this._makeStyleAst(_a,v);let Yr=null!=Nr.offset?Nr.offset:function Ki(F){if("string"==typeof F)return null;let M=null;if(Array.isArray(F))F.forEach(v=>{if(v instanceof Map&&v.has("offset")){const Z=v;M=parseFloat(Z.get("offset")),Z.delete("offset")}});else if(F instanceof Map&&F.has("offset")){const v=F;M=parseFloat(v.get("offset")),v.delete("offset")}return M}(Nr.styles),Fr=0;return null!=Yr&&(bt++,Fr=Nr.offset=Yr),ui=ui||Fr<0||Fr>1,ei=ei||Fr<Ei,Ei=Fr,Zt.push(Fr),Nr});ui&&v.errors.push(function ee(){return new e.vHH(3012,!1)}()),ei&&v.errors.push(function ie(){return new e.vHH(3200,!1)}());const Bi=M.steps.length;let In=0;bt>0&&bt<Bi?v.errors.push(function ue(){return new e.vHH(3202,!1)}()):0==bt&&(In=1/(Bi-1));const kn=Bi-1,hn=v.currentTime,Mn=v.currentAnimateTimings,ia=Mn.duration;return en.forEach((_a,Nr)=>{const Yr=In>0?Nr==kn?1:In*Nr:Zt[Nr],Fr=Yr*ia;v.currentTime=hn+Mn.delay+Fr,Mn.duration=Fr,this._validateStyleAst(_a,v),_a.offset=Yr,Z.styles.push(_a)}),Z}visitReference(M,v){return{type:8,animation:xi(this,ti(M.animation),v),options:sa(M.options)}}visitAnimateChild(M,v){return v.depCount++,{type:9,options:sa(M.options)}}visitAnimateRef(M,v){return{type:10,animation:this.visitReference(M.animation,v),options:sa(M.options)}}visitQuery(M,v){const Z=v.currentQuerySelector,_e=M.options||{};v.queryCount++,v.currentQuery=M;const[bt,Zt]=function Yt(F){const M=!!F.split(/\s*,\s*/).find(v=>":self"==v);return M&&(F=F.replace(It,"")),F=F.replace(/@\*/g,Ye).replace(/@\w+/g,v=>Ye+"-"+v.slice(1)).replace(/:animating/g,Mt),[F,M]}(M.selector);v.currentQuerySelector=Z.length?Z+" "+bt:bt,oe(v.collectedStyles,v.currentQuerySelector,new Map);const ei=xi(this,ti(M.animation),v);return v.currentQuery=null,v.currentQuerySelector=Z,{type:11,selector:bt,limit:_e.limit||0,optional:!!_e.optional,includeSelf:Zt,animation:ei,originalSelector:M.selector,options:sa(M.options)}}visitStagger(M,v){v.currentQuery||v.errors.push(function le(){return new e.vHH(3013,!1)}());const Z="full"===M.timings?{duration:0,delay:0,easing:"full"}:we(M.timings,v.errors,!0);return{type:12,animation:xi(this,ti(M.animation),v),timings:Z,options:null}}}class on{constructor(M){this.errors=M,this.queryCount=0,this.depCount=0,this.currentTransition=null,this.currentQuery=null,this.currentQuerySelector=null,this.currentAnimateTimings=null,this.currentTime=0,this.collectedStyles=new Map,this.options=null,this.unsupportedCSSPropertiesFound=new Set}}function sa(F){return F?(F=be(F)).params&&(F.params=function Ni(F){return F?be(F):null}(F.params)):F={},F}function Ia(F,M,v){return{duration:F,delay:M,easing:v}}function Oa(F,M,v,Z,_e,bt,Zt=null,ei=!1){return{type:1,element:F,keyframes:M,preStyleProps:v,postStyleProps:Z,duration:_e,delay:bt,totalTime:_e+bt,easing:Zt,subTimeline:ei}}class Zn{constructor(){this._map=new Map}get(M){return this._map.get(M)||[]}append(M,v){let Z=this._map.get(M);Z||this._map.set(M,Z=[]),Z.push(...v)}has(M){return this._map.has(M)}clear(){this._map.clear()}}const ai=new RegExp(":enter","g"),gi=new RegExp(":leave","g");function Oi(F,M,v,Z,_e,bt=new Map,Zt=new Map,ei,ui,Ei=[]){return(new Vi).buildKeyframes(F,M,v,Z,_e,bt,Zt,ei,ui,Ei)}class Vi{buildKeyframes(M,v,Z,_e,bt,Zt,ei,ui,Ei,en=[]){Ei=Ei||new Zn;const Bi=new Vn(M,v,Ei,_e,bt,en,[]);Bi.options=ui;const In=ui.delay?kt(ui.delay):0;Bi.currentTimeline.delayNextStep(In),Bi.currentTimeline.setStyles([Zt],null,Bi.errors,ui),xi(this,Z,Bi);const kn=Bi.timelines.filter(hn=>hn.containsAnimation());if(kn.length&&ei.size){let hn;for(let Mn=kn.length-1;Mn>=0;Mn--){const ia=kn[Mn];if(ia.element===v){hn=ia;break}}hn&&!hn.allowOnlyTimelineStyles()&&hn.setStyles([ei],null,Bi.errors,ui)}return kn.length?kn.map(hn=>hn.buildKeyframes()):[Oa(v,[],[],[],0,In,"",!1)]}visitTrigger(M,v){}visitState(M,v){}visitTransition(M,v){}visitAnimateChild(M,v){const Z=v.subInstructions.get(v.element);if(Z){const _e=v.createSubContext(M.options),bt=v.currentTimeline.currentTime,Zt=this._visitSubInstructions(Z,_e,_e.options);bt!=Zt&&v.transformIntoNewTimeline(Zt)}v.previousNode=M}visitAnimateRef(M,v){const Z=v.createSubContext(M.options);Z.transformIntoNewTimeline(),this._applyAnimationRefDelays([M.options,M.animation.options],v,Z),this.visitReference(M.animation,Z),v.transformIntoNewTimeline(Z.currentTimeline.currentTime),v.previousNode=M}_applyAnimationRefDelays(M,v,Z){for(const _e of M){const bt=_e?.delay;if(bt){const Zt="number"==typeof bt?bt:kt(Oe(bt,_e?.params??{},v.errors));Z.delayNextStep(Zt)}}}_visitSubInstructions(M,v,Z){let bt=v.currentTimeline.currentTime;const Zt=null!=Z.duration?kt(Z.duration):null,ei=null!=Z.delay?kt(Z.delay):null;return 0!==Zt&&M.forEach(ui=>{const Ei=v.appendInstructionToTimeline(ui,Zt,ei);bt=Math.max(bt,Ei.duration+Ei.delay)}),bt}visitReference(M,v){v.updateOptions(M.options,!0),xi(this,M.animation,v),v.previousNode=M}visitSequence(M,v){const Z=v.subContextCount;let _e=v;const bt=M.options;if(bt&&(bt.params||bt.delay)&&(_e=v.createSubContext(bt),_e.transformIntoNewTimeline(),null!=bt.delay)){6==_e.previousNode.type&&(_e.currentTimeline.snapshotCurrentStyles(),_e.previousNode=fn);const Zt=kt(bt.delay);_e.delayNextStep(Zt)}M.steps.length&&(M.steps.forEach(Zt=>xi(this,Zt,_e)),_e.currentTimeline.applyStylesToKeyframe(),_e.subContextCount>Z&&_e.transformIntoNewTimeline()),v.previousNode=M}visitGroup(M,v){const Z=[];let _e=v.currentTimeline.currentTime;const bt=M.options&&M.options.delay?kt(M.options.delay):0;M.steps.forEach(Zt=>{const ei=v.createSubContext(M.options);bt&&ei.delayNextStep(bt),xi(this,Zt,ei),_e=Math.max(_e,ei.currentTimeline.currentTime),Z.push(ei.currentTimeline)}),Z.forEach(Zt=>v.currentTimeline.mergeTimelineCollectedStyles(Zt)),v.transformIntoNewTimeline(_e),v.previousNode=M}_visitTiming(M,v){if(M.dynamic){const Z=M.strValue;return we(v.params?Oe(Z,v.params,v.errors):Z,v.errors)}return{duration:M.duration,delay:M.delay,easing:M.easing}}visitAnimate(M,v){const Z=v.currentAnimateTimings=this._visitTiming(M.timings,v),_e=v.currentTimeline;Z.delay&&(v.incrementTime(Z.delay),_e.snapshotCurrentStyles());const bt=M.style;5==bt.type?this.visitKeyframes(bt,v):(v.incrementTime(Z.duration),this.visitStyle(bt,v),_e.applyStylesToKeyframe()),v.currentAnimateTimings=null,v.previousNode=M}visitStyle(M,v){const Z=v.currentTimeline,_e=v.currentAnimateTimings;!_e&&Z.hasCurrentStyleProperties()&&Z.forwardFrame();const bt=_e&&_e.easing||M.easing;M.isEmptyStep?Z.applyEmptyStep(bt):Z.setStyles(M.styles,bt,v.errors,v.options),v.previousNode=M}visitKeyframes(M,v){const Z=v.currentAnimateTimings,_e=v.currentTimeline.duration,bt=Z.duration,ei=v.createSubContext().currentTimeline;ei.easing=Z.easing,M.styles.forEach(ui=>{ei.forwardTime((ui.offset||0)*bt),ei.setStyles(ui.styles,ui.easing,v.errors,v.options),ei.applyStylesToKeyframe()}),v.currentTimeline.mergeTimelineCollectedStyles(ei),v.transformIntoNewTimeline(_e+bt),v.previousNode=M}visitQuery(M,v){const Z=v.currentTimeline.currentTime,_e=M.options||{},bt=_e.delay?kt(_e.delay):0;bt&&(6===v.previousNode.type||0==Z&&v.currentTimeline.hasCurrentStyleProperties())&&(v.currentTimeline.snapshotCurrentStyles(),v.previousNode=fn);let Zt=Z;const ei=v.invokeQuery(M.selector,M.originalSelector,M.limit,M.includeSelf,!!_e.optional,v.errors);v.currentQueryTotal=ei.length;let ui=null;ei.forEach((Ei,en)=>{v.currentQueryIndex=en;const Bi=v.createSubContext(M.options,Ei);bt&&Bi.delayNextStep(bt),Ei===v.element&&(ui=Bi.currentTimeline),xi(this,M.animation,Bi),Bi.currentTimeline.applyStylesToKeyframe(),Zt=Math.max(Zt,Bi.currentTimeline.currentTime)}),v.currentQueryIndex=0,v.currentQueryTotal=0,v.transformIntoNewTimeline(Zt),ui&&(v.currentTimeline.mergeTimelineCollectedStyles(ui),v.currentTimeline.snapshotCurrentStyles()),v.previousNode=M}visitStagger(M,v){const Z=v.parentContext,_e=v.currentTimeline,bt=M.timings,Zt=Math.abs(bt.duration),ei=Zt*(v.currentQueryTotal-1);let ui=Zt*v.currentQueryIndex;switch(bt.duration<0?"reverse":bt.easing){case"reverse":ui=ei-ui;break;case"full":ui=Z.currentStaggerTime}const en=v.currentTimeline;ui&&en.delayNextStep(ui);const Bi=en.currentTime;xi(this,M.animation,v),v.previousNode=M,Z.currentStaggerTime=_e.currentTime-Bi+(_e.startTime-Z.currentTimeline.startTime)}}const fn={};class Vn{constructor(M,v,Z,_e,bt,Zt,ei,ui){this._driver=M,this.element=v,this.subInstructions=Z,this._enterClassName=_e,this._leaveClassName=bt,this.errors=Zt,this.timelines=ei,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=fn,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=ui||new zn(this._driver,v,0),ei.push(this.currentTimeline)}get params(){return this.options.params}updateOptions(M,v){if(!M)return;const Z=M;let _e=this.options;null!=Z.duration&&(_e.duration=kt(Z.duration)),null!=Z.delay&&(_e.delay=kt(Z.delay));const bt=Z.params;if(bt){let Zt=_e.params;Zt||(Zt=this.options.params={}),Object.keys(bt).forEach(ei=>{(!v||!Zt.hasOwnProperty(ei))&&(Zt[ei]=Oe(bt[ei],Zt,this.errors))})}}_copyOptions(){const M={};if(this.options){const v=this.options.params;if(v){const Z=M.params={};Object.keys(v).forEach(_e=>{Z[_e]=v[_e]})}}return M}createSubContext(M=null,v,Z){const _e=v||this.element,bt=new Vn(this._driver,_e,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(_e,Z||0));return bt.previousNode=this.previousNode,bt.currentAnimateTimings=this.currentAnimateTimings,bt.options=this._copyOptions(),bt.updateOptions(M),bt.currentQueryIndex=this.currentQueryIndex,bt.currentQueryTotal=this.currentQueryTotal,bt.parentContext=this,this.subContextCount++,bt}transformIntoNewTimeline(M){return this.previousNode=fn,this.currentTimeline=this.currentTimeline.fork(this.element,M),this.timelines.push(this.currentTimeline),this.currentTimeline}appendInstructionToTimeline(M,v,Z){const _e={duration:v??M.duration,delay:this.currentTimeline.currentTime+(Z??0)+M.delay,easing:""},bt=new ga(this._driver,M.element,M.keyframes,M.preStyleProps,M.postStyleProps,_e,M.stretchStartingKeyframe);return this.timelines.push(bt),_e}incrementTime(M){this.currentTimeline.forwardTime(this.currentTimeline.duration+M)}delayNextStep(M){M>0&&this.currentTimeline.delayNextStep(M)}invokeQuery(M,v,Z,_e,bt,Zt){let ei=[];if(_e&&ei.push(this.element),M.length>0){M=(M=M.replace(ai,"."+this._enterClassName)).replace(gi,"."+this._leaveClassName);let Ei=this._driver.query(this.element,M,1!=Z);0!==Z&&(Ei=Z<0?Ei.slice(Ei.length+Z,Ei.length):Ei.slice(0,Z)),ei.push(...Ei)}return!bt&&0==ei.length&&Zt.push(function ne(F){return new e.vHH(3014,!1)}()),ei}}class zn{constructor(M,v,Z,_e){this._driver=M,this.element=v,this.startTime=Z,this._elementTimelineStylesLookup=_e,this.duration=0,this._previousKeyframe=new Map,this._currentKeyframe=new Map,this._keyframes=new Map,this._styleSummary=new Map,this._localTimelineStyles=new Map,this._pendingStyles=new Map,this._backFill=new Map,this._currentEmptyStepKeyframe=null,this._elementTimelineStylesLookup||(this._elementTimelineStylesLookup=new Map),this._globalTimelineStyles=this._elementTimelineStylesLookup.get(v),this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(v,this._localTimelineStyles)),this._loadKeyframe()}containsAnimation(){switch(this._keyframes.size){case 0:return!1;case 1:return this.hasCurrentStyleProperties();default:return!0}}hasCurrentStyleProperties(){return this._currentKeyframe.size>0}get currentTime(){return this.startTime+this.duration}delayNextStep(M){const v=1===this._keyframes.size&&this._pendingStyles.size;this.duration||v?(this.forwardTime(this.currentTime+M),v&&this.snapshotCurrentStyles()):this.startTime+=M}fork(M,v){return this.applyStylesToKeyframe(),new zn(this._driver,M,v||this.currentTime,this._elementTimelineStylesLookup)}_loadKeyframe(){this._currentKeyframe&&(this._previousKeyframe=this._currentKeyframe),this._currentKeyframe=this._keyframes.get(this.duration),this._currentKeyframe||(this._currentKeyframe=new Map,this._keyframes.set(this.duration,this._currentKeyframe))}forwardFrame(){this.duration+=1,this._loadKeyframe()}forwardTime(M){this.applyStylesToKeyframe(),this.duration=M,this._loadKeyframe()}_updateStyle(M,v){this._localTimelineStyles.set(M,v),this._globalTimelineStyles.set(M,v),this._styleSummary.set(M,{time:this.currentTime,value:v})}allowOnlyTimelineStyles(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}applyEmptyStep(M){M&&this._previousKeyframe.set("easing",M);for(let[v,Z]of this._globalTimelineStyles)this._backFill.set(v,Z||b.l3),this._currentKeyframe.set(v,b.l3);this._currentEmptyStepKeyframe=this._currentKeyframe}setStyles(M,v,Z,_e){v&&this._previousKeyframe.set("easing",v);const bt=_e&&_e.params||{},Zt=function Nn(F,M){const v=new Map;let Z;return F.forEach(_e=>{if("*"===_e){Z=Z||M.keys();for(let bt of Z)v.set(bt,b.l3)}else Gt(_e,v)}),v}(M,this._globalTimelineStyles);for(let[ei,ui]of Zt){const Ei=Oe(ui,bt,Z);this._pendingStyles.set(ei,Ei),this._localTimelineStyles.has(ei)||this._backFill.set(ei,this._globalTimelineStyles.get(ei)??b.l3),this._updateStyle(ei,Ei)}}applyStylesToKeyframe(){0!=this._pendingStyles.size&&(this._pendingStyles.forEach((M,v)=>{this._currentKeyframe.set(v,M)}),this._pendingStyles.clear(),this._localTimelineStyles.forEach((M,v)=>{this._currentKeyframe.has(v)||this._currentKeyframe.set(v,M)}))}snapshotCurrentStyles(){for(let[M,v]of this._localTimelineStyles)this._pendingStyles.set(M,v),this._updateStyle(M,v)}getFinalKeyframe(){return this._keyframes.get(this.duration)}get properties(){const M=[];for(let v in this._currentKeyframe)M.push(v);return M}mergeTimelineCollectedStyles(M){M._styleSummary.forEach((v,Z)=>{const _e=this._styleSummary.get(Z);(!_e||v.time>_e.time)&&this._updateStyle(Z,v.value)})}buildKeyframes(){this.applyStylesToKeyframe();const M=new Set,v=new Set,Z=1===this._keyframes.size&&0===this.duration;let _e=[];this._keyframes.forEach((ei,ui)=>{const Ei=Gt(ei,new Map,this._backFill);Ei.forEach((en,Bi)=>{en===b.k1?M.add(Bi):en===b.l3&&v.add(Bi)}),Z||Ei.set("offset",ui/this.duration),_e.push(Ei)});const bt=M.size?et(M.values()):[],Zt=v.size?et(v.values()):[];if(Z){const ei=_e[0],ui=new Map(ei);ei.set("offset",0),ui.set("offset",1),_e=[ei,ui]}return Oa(this.element,_e,bt,Zt,this.duration,this.startTime,this.easing,!1)}}class ga extends zn{constructor(M,v,Z,_e,bt,Zt,ei=!1){super(M,v,Zt.delay),this.keyframes=Z,this.preStyleProps=_e,this.postStyleProps=bt,this._stretchStartingKeyframe=ei,this.timings={duration:Zt.duration,delay:Zt.delay,easing:Zt.easing}}containsAnimation(){return this.keyframes.length>1}buildKeyframes(){let M=this.keyframes,{delay:v,duration:Z,easing:_e}=this.timings;if(this._stretchStartingKeyframe&&v){const bt=[],Zt=Z+v,ei=v/Zt,ui=Gt(M[0]);ui.set("offset",0),bt.push(ui);const Ei=Gt(M[0]);Ei.set("offset",An(ei)),bt.push(Ei);const en=M.length-1;for(let Bi=1;Bi<=en;Bi++){let In=Gt(M[Bi]);const kn=In.get("offset");In.set("offset",An((v+kn*Z)/Zt)),bt.push(In)}Z=Zt,v=0,_e="",M=bt}return Oa(this.element,M,this.preStyleProps,this.postStyleProps,Z,v,_e,!0)}}function An(F,M=3){const v=Math.pow(10,M-1);return Math.round(F*v)/v}class Fn{}const Dr=new Set(["width","height","minWidth","minHeight","maxWidth","maxHeight","left","top","bottom","right","fontSize","outlineWidth","outlineOffset","paddingTop","paddingLeft","paddingBottom","paddingRight","marginTop","marginLeft","marginBottom","marginRight","borderRadius","borderWidth","borderTopWidth","borderLeftWidth","borderRightWidth","borderBottomWidth","textIndent","perspective"]);class Sr extends Fn{normalizePropertyName(M,v){return ct(M)}normalizeStyleValue(M,v,Z,_e){let bt="";const Zt=Z.toString().trim();if(Dr.has(v)&&0!==Z&&"0"!==Z)if("number"==typeof Z)bt="px";else{const ei=Z.match(/^[+-]?[\d\.]+([a-z]*)$/);ei&&0==ei[1].length&&_e.push(function w(F,M){return new e.vHH(3005,!1)}())}return Zt+bt}}function tr(F,M,v,Z,_e,bt,Zt,ei,ui,Ei,en,Bi,In){return{type:0,element:F,triggerName:M,isRemovalTransition:_e,fromState:v,fromStyles:bt,toState:Z,toStyles:Zt,timelines:ei,queriedElements:ui,preStyleProps:Ei,postStyleProps:en,totalTime:Bi,errors:In}}const jn={};class Ga{constructor(M,v,Z){this._triggerName=M,this.ast=v,this._stateStyles=Z}match(M,v,Z,_e){return function Kr(F,M,v,Z,_e){return F.some(bt=>bt(M,v,Z,_e))}(this.ast.matchers,M,v,Z,_e)}buildStyles(M,v,Z){let _e=this._stateStyles.get("*");return void 0!==M&&(_e=this._stateStyles.get(M?.toString())||_e),_e?_e.buildStyles(v,Z):new Map}build(M,v,Z,_e,bt,Zt,ei,ui,Ei,en){const Bi=[],In=this.ast.options&&this.ast.options.params||jn,hn=this.buildStyles(Z,ei&&ei.params||jn,Bi),Mn=ui&&ui.params||jn,ia=this.buildStyles(_e,Mn,Bi),_a=new Set,Nr=new Map,Yr=new Map,Fr="void"===_e,Nc={params:Er(Mn,In),delay:this.ast.options?.delay},vs=en?[]:Oi(M,v,this.ast.animation,bt,Zt,hn,ia,Nc,Ei,Bi);let Cr=0;if(vs.forEach(is=>{Cr=Math.max(is.duration+is.delay,Cr)}),Bi.length)return tr(v,this._triggerName,Z,_e,Fr,hn,ia,[],[],Nr,Yr,Cr,Bi);vs.forEach(is=>{const Ws=is.element,Wh=oe(Nr,Ws,new Set);is.preStyleProps.forEach(fc=>Wh.add(fc));const bs=oe(Yr,Ws,new Set);is.postStyleProps.forEach(fc=>bs.add(fc)),Ws!==v&&_a.add(Ws)});const Fc=et(_a.values());return tr(v,this._triggerName,Z,_e,Fr,hn,ia,vs,Fc,Nr,Yr,Cr)}}function Er(F,M){const v=be(M);for(const Z in F)F.hasOwnProperty(Z)&&null!=F[Z]&&(v[Z]=F[Z]);return v}class Qr{constructor(M,v,Z){this.styles=M,this.defaultParams=v,this.normalizer=Z}buildStyles(M,v){const Z=new Map,_e=be(this.defaultParams);return Object.keys(M).forEach(bt=>{const Zt=M[bt];null!==Zt&&(_e[bt]=Zt)}),this.styles.styles.forEach(bt=>{"string"!=typeof bt&&bt.forEach((Zt,ei)=>{Zt&&(Zt=Oe(Zt,_e,v));const ui=this.normalizer.normalizePropertyName(ei,v);Zt=this.normalizer.normalizeStyleValue(ei,ui,Zt,v),Z.set(ei,Zt)})}),Z}}class wa{constructor(M,v,Z){this.name=M,this.ast=v,this._normalizer=Z,this.transitionFactories=[],this.states=new Map,v.states.forEach(_e=>{this.states.set(_e.name,new Qr(_e.style,_e.options&&_e.options.params||{},Z))}),Za(this.states,"true","1"),Za(this.states,"false","0"),v.transitions.forEach(_e=>{this.transitionFactories.push(new Ga(M,_e,this.states))}),this.fallbackTransition=function Mo(F,M,v){return new Ga(F,{type:1,animation:{type:2,steps:[],options:null},matchers:[(Zt,ei)=>!0],options:null,queryCount:0,depCount:0},M)}(M,this.states)}get containsQueries(){return this.ast.queryCount>0}matchTransition(M,v,Z,_e){return this.transitionFactories.find(Zt=>Zt.match(M,v,Z,_e))||null}matchStyles(M,v,Z){return this.fallbackTransition.buildStyles(M,v,Z)}}function Za(F,M,v){F.has(M)?F.has(v)||F.set(v,F.get(M)):F.has(v)&&F.set(M,F.get(v))}const qr=new Zn;class so{constructor(M,v,Z){this.bodyNode=M,this._driver=v,this._normalizer=Z,this._animations=new Map,this._playersById=new Map,this.players=[]}register(M,v){const Z=[],bt=Bt(this._driver,v,Z,[]);if(Z.length)throw function u(F){return new e.vHH(3503,!1)}();this._animations.set(M,bt)}_buildPlayer(M,v,Z){const _e=M.element,bt=De(0,this._normalizer,0,M.keyframes,v,Z);return this._driver.animate(_e,bt,M.duration,M.delay,M.easing,[],!0)}create(M,v,Z={}){const _e=[],bt=this._animations.get(M);let Zt;const ei=new Map;if(bt?(Zt=Oi(this._driver,v,bt,Re,Tt,new Map,new Map,Z,qr,_e),Zt.forEach(en=>{const Bi=oe(ei,en.element,new Map);en.postStyleProps.forEach(In=>Bi.set(In,null))})):(_e.push(function l(){return new e.vHH(3300,!1)}()),Zt=[]),_e.length)throw function y(F){return new e.vHH(3504,!1)}();ei.forEach((en,Bi)=>{en.forEach((In,kn)=>{en.set(kn,this._driver.computeStyle(Bi,kn,b.l3))})});const Ei=Fe(Zt.map(en=>{const Bi=ei.get(en.element);return this._buildPlayer(en,new Map,Bi)}));return this._playersById.set(M,Ei),Ei.onDestroy(()=>this.destroy(M)),this.players.push(Ei),Ei}destroy(M){const v=this._getPlayer(M);v.destroy(),this._playersById.delete(M);const Z=this.players.indexOf(v);Z>=0&&this.players.splice(Z,1)}_getPlayer(M){const v=this._playersById.get(M);if(!v)throw function T(F){return new e.vHH(3301,!1)}();return v}listen(M,v,Z,_e){const bt=ve(v,"","","");return ye(this._getPlayer(M),Z,bt,_e),()=>{}}command(M,v,Z,_e){if("register"==Z)return void this.register(M,_e[0]);if("create"==Z)return void this.create(M,v,_e[0]||{});const bt=this._getPlayer(M);switch(Z){case"play":bt.play();break;case"pause":bt.pause();break;case"reset":bt.reset();break;case"restart":bt.restart();break;case"finish":bt.finish();break;case"init":bt.init();break;case"setPosition":bt.setPosition(parseFloat(_e[0]));break;case"destroy":this.destroy(M)}}}const co="ng-animate-queued",Gr="ng-animate-disabled",fo=[],ir={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},pr={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},aa="__ng_removed";class Ya{get params(){return this.options.params}constructor(M,v=""){this.namespaceId=v;const Z=M&&M.hasOwnProperty("value");if(this.value=function Xr(F){return F??null}(Z?M.value:M),Z){const bt=be(M);delete bt.value,this.options=bt}else this.options={};this.options.params||(this.options.params={})}absorbOptions(M){const v=M.params;if(v){const Z=this.options.params;Object.keys(v).forEach(_e=>{null==Z[_e]&&(Z[_e]=v[_e])})}}}const Ir="void",kr=new Ya(Ir);class gr{constructor(M,v,Z){this.id=M,this.hostElement=v,this._engine=Z,this.players=[],this._triggers=new Map,this._queue=[],this._elementListeners=new Map,this._hostClassName="ng-tns-"+M,Kn(v,this._hostClassName)}listen(M,v,Z,_e){if(!this._triggers.has(v))throw function L(F,M){return new e.vHH(3302,!1)}();if(null==Z||0==Z.length)throw function m(F){return new e.vHH(3303,!1)}();if(!function po(F){return"start"==F||"done"==F}(Z))throw function n(F,M){return new e.vHH(3400,!1)}();const bt=oe(this._elementListeners,M,[]),Zt={name:v,phase:Z,callback:_e};bt.push(Zt);const ei=oe(this._engine.statesByElement,M,new Map);return ei.has(v)||(Kn(M,Qe),Kn(M,Qe+"-"+v),ei.set(v,kr)),()=>{this._engine.afterFlush(()=>{const ui=bt.indexOf(Zt);ui>=0&&bt.splice(ui,1),this._triggers.has(v)||ei.delete(v)})}}register(M,v){return!this._triggers.has(M)&&(this._triggers.set(M,v),!0)}_getTrigger(M){const v=this._triggers.get(M);if(!v)throw function _(F){return new e.vHH(3401,!1)}();return v}trigger(M,v,Z,_e=!0){const bt=this._getTrigger(v),Zt=new Pa(this.id,v,M);let ei=this._engine.statesByElement.get(M);ei||(Kn(M,Qe),Kn(M,Qe+"-"+v),this._engine.statesByElement.set(M,ei=new Map));let ui=ei.get(v);const Ei=new Ya(Z,this.id);if(!(Z&&Z.hasOwnProperty("value"))&&ui&&Ei.absorbOptions(ui.options),ei.set(v,Ei),ui||(ui=kr),Ei.value!==Ir&&ui.value===Ei.value){if(!function Ka(F,M){const v=Object.keys(F),Z=Object.keys(M);if(v.length!=Z.length)return!1;for(let _e=0;_e<v.length;_e++){const bt=v[_e];if(!M.hasOwnProperty(bt)||F[bt]!==M[bt])return!1}return!0}(ui.params,Ei.params)){const Mn=[],ia=bt.matchStyles(ui.value,ui.params,Mn),_a=bt.matchStyles(Ei.value,Ei.params,Mn);Mn.length?this._engine.reportError(Mn):this._engine.afterFlush(()=>{vt(M,ia),tt(M,_a)})}return}const In=oe(this._engine.playersByElement,M,[]);In.forEach(Mn=>{Mn.namespaceId==this.id&&Mn.triggerName==v&&Mn.queued&&Mn.destroy()});let kn=bt.matchTransition(ui.value,Ei.value,M,Ei.params),hn=!1;if(!kn){if(!_e)return;kn=bt.fallbackTransition,hn=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:M,triggerName:v,transition:kn,fromState:ui,toState:Ei,player:Zt,isFallbackTransition:hn}),hn||(Kn(M,co),Zt.onStart(()=>{Wn(M,co)})),Zt.onDone(()=>{let Mn=this.players.indexOf(Zt);Mn>=0&&this.players.splice(Mn,1);const ia=this._engine.playersByElement.get(M);if(ia){let _a=ia.indexOf(Zt);_a>=0&&ia.splice(_a,1)}}),this.players.push(Zt),In.push(Zt),Zt}deregister(M){this._triggers.delete(M),this._engine.statesByElement.forEach(v=>v.delete(M)),this._elementListeners.forEach((v,Z)=>{this._elementListeners.set(Z,v.filter(_e=>_e.name!=M))})}clearElementCache(M){this._engine.statesByElement.delete(M),this._elementListeners.delete(M);const v=this._engine.playersByElement.get(M);v&&(v.forEach(Z=>Z.destroy()),this._engine.playersByElement.delete(M))}_signalRemovalForInnerTriggers(M,v){const Z=this._engine.driver.query(M,Ye,!0);Z.forEach(_e=>{if(_e[aa])return;const bt=this._engine.fetchNamespacesByElement(_e);bt.size?bt.forEach(Zt=>Zt.triggerLeaveAnimation(_e,v,!1,!0)):this.clearElementCache(_e)}),this._engine.afterFlushAnimationsDone(()=>Z.forEach(_e=>this.clearElementCache(_e)))}triggerLeaveAnimation(M,v,Z,_e){const bt=this._engine.statesByElement.get(M),Zt=new Map;if(bt){const ei=[];if(bt.forEach((ui,Ei)=>{if(Zt.set(Ei,ui.value),this._triggers.has(Ei)){const en=this.trigger(M,Ei,Ir,_e);en&&ei.push(en)}}),ei.length)return this._engine.markElementAsRemoved(this.id,M,!0,v,Zt),Z&&Fe(ei).onDone(()=>this._engine.processLeaveNode(M)),!0}return!1}prepareLeaveAnimationListeners(M){const v=this._elementListeners.get(M),Z=this._engine.statesByElement.get(M);if(v&&Z){const _e=new Set;v.forEach(bt=>{const Zt=bt.name;if(_e.has(Zt))return;_e.add(Zt);const ui=this._triggers.get(Zt).fallbackTransition,Ei=Z.get(Zt)||kr,en=new Ya(Ir),Bi=new Pa(this.id,Zt,M);this._engine.totalQueuedPlayers++,this._queue.push({element:M,triggerName:Zt,transition:ui,fromState:Ei,toState:en,player:Bi,isFallbackTransition:!0})})}}removeNode(M,v){const Z=this._engine;if(M.childElementCount&&this._signalRemovalForInnerTriggers(M,v),this.triggerLeaveAnimation(M,v,!0))return;let _e=!1;if(Z.totalAnimations){const bt=Z.players.length?Z.playersByQueriedElement.get(M):[];if(bt&&bt.length)_e=!0;else{let Zt=M;for(;Zt=Zt.parentNode;)if(Z.statesByElement.get(Zt)){_e=!0;break}}}if(this.prepareLeaveAnimationListeners(M),_e)Z.markElementAsRemoved(this.id,M,!1,v);else{const bt=M[aa];(!bt||bt===ir)&&(Z.afterFlush(()=>this.clearElementCache(M)),Z.destroyInnerAnimations(M),Z._onRemovalComplete(M,v))}}insertNode(M,v){Kn(M,this._hostClassName)}drainQueuedTransitions(M){const v=[];return this._queue.forEach(Z=>{const _e=Z.player;if(_e.destroyed)return;const bt=Z.element,Zt=this._elementListeners.get(bt);Zt&&Zt.forEach(ei=>{if(ei.name==Z.triggerName){const ui=ve(bt,Z.triggerName,Z.fromState.value,Z.toState.value);ui._data=M,ye(Z.player,ei.phase,ui,ei.callback)}}),_e.markedForDestroy?this._engine.afterFlush(()=>{_e.destroy()}):v.push(Z)}),this._queue=[],v.sort((Z,_e)=>{const bt=Z.transition.ast.depCount,Zt=_e.transition.ast.depCount;return 0==bt||0==Zt?bt-Zt:this._engine.driver.containsElement(Z.element,_e.element)?1:-1})}destroy(M){this.players.forEach(v=>v.destroy()),this._signalRemovalForInnerTriggers(this.hostElement,M)}elementContainsData(M){let v=!1;return this._elementListeners.has(M)&&(v=!0),v=!!this._queue.find(Z=>Z.element===M)||v,v}}class mo{_onRemovalComplete(M,v){this.onRemovalComplete(M,v)}constructor(M,v,Z){this.bodyNode=M,this.driver=v,this._normalizer=Z,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=(_e,bt)=>{}}get queuedPlayers(){const M=[];return this._namespaceList.forEach(v=>{v.players.forEach(Z=>{Z.queued&&M.push(Z)})}),M}createNamespace(M,v){const Z=new gr(M,v,this);return this.bodyNode&&this.driver.containsElement(this.bodyNode,v)?this._balanceNamespaceList(Z,v):(this.newHostElements.set(v,Z),this.collectEnterElement(v)),this._namespaceLookup[M]=Z}_balanceNamespaceList(M,v){const Z=this._namespaceList,_e=this.namespacesByHostElement;if(Z.length-1>=0){let Zt=!1,ei=this.driver.getParentElement(v);for(;ei;){const ui=_e.get(ei);if(ui){const Ei=Z.indexOf(ui);Z.splice(Ei+1,0,M),Zt=!0;break}ei=this.driver.getParentElement(ei)}Zt||Z.unshift(M)}else Z.push(M);return _e.set(v,M),M}register(M,v){let Z=this._namespaceLookup[M];return Z||(Z=this.createNamespace(M,v)),Z}registerTrigger(M,v,Z){let _e=this._namespaceLookup[M];_e&&_e.register(v,Z)&&this.totalAnimations++}destroy(M,v){if(!M)return;const Z=this._fetchNamespace(M);this.afterFlush(()=>{this.namespacesByHostElement.delete(Z.hostElement),delete this._namespaceLookup[M];const _e=this._namespaceList.indexOf(Z);_e>=0&&this._namespaceList.splice(_e,1)}),this.afterFlushAnimationsDone(()=>Z.destroy(v))}_fetchNamespace(M){return this._namespaceLookup[M]}fetchNamespacesByElement(M){const v=new Set,Z=this.statesByElement.get(M);if(Z)for(let _e of Z.values())if(_e.namespaceId){const bt=this._fetchNamespace(_e.namespaceId);bt&&v.add(bt)}return v}trigger(M,v,Z,_e){if(nr(v)){const bt=this._fetchNamespace(M);if(bt)return bt.trigger(v,Z,_e),!0}return!1}insertNode(M,v,Z,_e){if(!nr(v))return;const bt=v[aa];if(bt&&bt.setForRemoval){bt.setForRemoval=!1,bt.setForMove=!0;const Zt=this.collectedLeaveElements.indexOf(v);Zt>=0&&this.collectedLeaveElements.splice(Zt,1)}if(M){const Zt=this._fetchNamespace(M);Zt&&Zt.insertNode(v,Z)}_e&&this.collectEnterElement(v)}collectEnterElement(M){this.collectedEnterElements.push(M)}markElementAsDisabled(M,v){v?this.disabledNodes.has(M)||(this.disabledNodes.add(M),Kn(M,Gr)):this.disabledNodes.has(M)&&(this.disabledNodes.delete(M),Wn(M,Gr))}removeNode(M,v,Z,_e){if(nr(v)){const bt=M?this._fetchNamespace(M):null;if(bt?bt.removeNode(v,_e):this.markElementAsRemoved(M,v,!1,_e),Z){const Zt=this.namespacesByHostElement.get(v);Zt&&Zt.id!==M&&Zt.removeNode(v,_e)}}else this._onRemovalComplete(v,_e)}markElementAsRemoved(M,v,Z,_e,bt){this.collectedLeaveElements.push(v),v[aa]={namespaceId:M,setForRemoval:_e,hasAnimation:Z,removedBeforeQueried:!1,previousTriggersValues:bt}}listen(M,v,Z,_e,bt){return nr(v)?this._fetchNamespace(M).listen(v,Z,_e,bt):()=>{}}_buildInstruction(M,v,Z,_e,bt){return M.transition.build(this.driver,M.element,M.fromState.value,M.toState.value,Z,_e,M.fromState.options,M.toState.options,v,bt)}destroyInnerAnimations(M){let v=this.driver.query(M,Ye,!0);v.forEach(Z=>this.destroyActiveAnimationsForElement(Z)),0!=this.playersByQueriedElement.size&&(v=this.driver.query(M,Mt,!0),v.forEach(Z=>this.finishActiveQueriedAnimationOnElement(Z)))}destroyActiveAnimationsForElement(M){const v=this.playersByElement.get(M);v&&v.forEach(Z=>{Z.queued?Z.markedForDestroy=!0:Z.destroy()})}finishActiveQueriedAnimationOnElement(M){const v=this.playersByQueriedElement.get(M);v&&v.forEach(Z=>Z.finish())}whenRenderingDone(){return new Promise(M=>{if(this.players.length)return Fe(this.players).onDone(()=>M());M()})}processLeaveNode(M){const v=M[aa];if(v&&v.setForRemoval){if(M[aa]=ir,v.namespaceId){this.destroyInnerAnimations(M);const Z=this._fetchNamespace(v.namespaceId);Z&&Z.clearElementCache(M)}this._onRemovalComplete(M,v.setForRemoval)}M.classList?.contains(Gr)&&this.markElementAsDisabled(M,!1),this.driver.query(M,".ng-animate-disabled",!0).forEach(Z=>{this.markElementAsDisabled(Z,!1)})}flush(M=-1){let v=[];if(this.newHostElements.size&&(this.newHostElements.forEach((Z,_e)=>this._balanceNamespaceList(Z,_e)),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(let Z=0;Z<this.collectedEnterElements.length;Z++)Kn(this.collectedEnterElements[Z],"ng-star-inserted");if(this._namespaceList.length&&(this.totalQueuedPlayers||this.collectedLeaveElements.length)){const Z=[];try{v=this._flushAnimations(Z,M)}finally{for(let _e=0;_e<Z.length;_e++)Z[_e]()}}else for(let Z=0;Z<this.collectedLeaveElements.length;Z++)this.processLeaveNode(this.collectedLeaveElements[Z]);if(this.totalQueuedPlayers=0,this.collectedEnterElements.length=0,this.collectedLeaveElements.length=0,this._flushFns.forEach(Z=>Z()),this._flushFns=[],this._whenQuietFns.length){const Z=this._whenQuietFns;this._whenQuietFns=[],v.length?Fe(v).onDone(()=>{Z.forEach(_e=>_e())}):Z.forEach(_e=>_e())}}reportError(M){throw function B(F){return new e.vHH(3402,!1)}()}_flushAnimations(M,v){const Z=new Zn,_e=[],bt=new Map,Zt=[],ei=new Map,ui=new Map,Ei=new Map,en=new Set;this.disabledNodes.forEach(mn=>{en.add(mn);const Cn=this.driver.query(mn,".ng-animate-queued",!0);for(let Sn=0;Sn<Cn.length;Sn++)en.add(Cn[Sn])});const Bi=this.bodyNode,In=Array.from(this.statesByElement.keys()),kn=Or(In,this.collectedEnterElements),hn=new Map;let Mn=0;kn.forEach((mn,Cn)=>{const Sn=Re+Mn++;hn.set(Cn,Sn),mn.forEach(Jn=>Kn(Jn,Sn))});const ia=[],_a=new Set,Nr=new Set;for(let mn=0;mn<this.collectedLeaveElements.length;mn++){const Cn=this.collectedLeaveElements[mn],Sn=Cn[aa];Sn&&Sn.setForRemoval&&(ia.push(Cn),_a.add(Cn),Sn.hasAnimation?this.driver.query(Cn,".ng-star-inserted",!0).forEach(Jn=>_a.add(Jn)):Nr.add(Cn))}const Yr=new Map,Fr=Or(In,Array.from(_a));Fr.forEach((mn,Cn)=>{const Sn=Tt+Mn++;Yr.set(Cn,Sn),mn.forEach(Jn=>Kn(Jn,Sn))}),M.push(()=>{kn.forEach((mn,Cn)=>{const Sn=hn.get(Cn);mn.forEach(Jn=>Wn(Jn,Sn))}),Fr.forEach((mn,Cn)=>{const Sn=Yr.get(Cn);mn.forEach(Jn=>Wn(Jn,Sn))}),ia.forEach(mn=>{this.processLeaveNode(mn)})});const Nc=[],vs=[];for(let mn=this._namespaceList.length-1;mn>=0;mn--)this._namespaceList[mn].drainQueuedTransitions(v).forEach(Sn=>{const Jn=Sn.player,Xa=Sn.element;if(Nc.push(Jn),this.collectedEnterElements.length){const Hr=Xa[aa];if(Hr&&Hr.setForMove){if(Hr.previousTriggersValues&&Hr.previousTriggersValues.has(Sn.triggerName)){const Ys=Hr.previousTriggersValues.get(Sn.triggerName),Oo=this.statesByElement.get(Sn.element);if(Oo&&Oo.has(Sn.triggerName)){const I1=Oo.get(Sn.triggerName);I1.value=Ys,Oo.set(Sn.triggerName,I1)}}return void Jn.destroy()}}const ko=!Bi||!this.driver.containsElement(Bi,Xa),bo=Yr.get(Xa),ys=hn.get(Xa),Va=this._buildInstruction(Sn,Z,ys,bo,ko);if(Va.errors&&Va.errors.length)return void vs.push(Va);if(ko)return Jn.onStart(()=>vt(Xa,Va.fromStyles)),Jn.onDestroy(()=>tt(Xa,Va.toStyles)),void _e.push(Jn);if(Sn.isFallbackTransition)return Jn.onStart(()=>vt(Xa,Va.fromStyles)),Jn.onDestroy(()=>tt(Xa,Va.toStyles)),void _e.push(Jn);const qd=[];Va.timelines.forEach(Hr=>{Hr.stretchStartingKeyframe=!0,this.disabledNodes.has(Hr.element)||qd.push(Hr)}),Va.timelines=qd,Z.append(Xa,Va.timelines),Zt.push({instruction:Va,player:Jn,element:Xa}),Va.queriedElements.forEach(Hr=>oe(ei,Hr,[]).push(Jn)),Va.preStyleProps.forEach((Hr,Ys)=>{if(Hr.size){let Oo=ui.get(Ys);Oo||ui.set(Ys,Oo=new Set),Hr.forEach((I1,E0)=>Oo.add(E0))}}),Va.postStyleProps.forEach((Hr,Ys)=>{let Oo=Ei.get(Ys);Oo||Ei.set(Ys,Oo=new Set),Hr.forEach((I1,E0)=>Oo.add(E0))})});if(vs.length){const mn=[];vs.forEach(Cn=>{mn.push(function X(F,M){return new e.vHH(3505,!1)}())}),Nc.forEach(Cn=>Cn.destroy()),this.reportError(mn)}const Cr=new Map,Fc=new Map;Zt.forEach(mn=>{const Cn=mn.element;Z.has(Cn)&&(Fc.set(Cn,Cn),this._beforeAnimationBuild(mn.player.namespaceId,mn.instruction,Cr))}),_e.forEach(mn=>{const Cn=mn.element;this._getPreviousPlayers(Cn,!1,mn.namespaceId,mn.triggerName,null).forEach(Jn=>{oe(Cr,Cn,[]).push(Jn),Jn.destroy()})});const is=ia.filter(mn=>Vt(mn,ui,Ei)),Ws=new Map;va(Ws,this.driver,Nr,Ei,b.l3).forEach(mn=>{Vt(mn,ui,Ei)&&is.push(mn)});const bs=new Map;kn.forEach((mn,Cn)=>{va(bs,this.driver,new Set(mn),ui,b.k1)}),is.forEach(mn=>{const Cn=Ws.get(mn),Sn=bs.get(mn);Ws.set(mn,new Map([...Array.from(Cn?.entries()??[]),...Array.from(Sn?.entries()??[])]))});const fc=[],Yh=[],Qd={};Zt.forEach(mn=>{const{element:Cn,player:Sn,instruction:Jn}=mn;if(Z.has(Cn)){if(en.has(Cn))return Sn.onDestroy(()=>tt(Cn,Jn.toStyles)),Sn.disabled=!0,Sn.overrideTotalTime(Jn.totalTime),void _e.push(Sn);let Xa=Qd;if(Fc.size>1){let bo=Cn;const ys=[];for(;bo=bo.parentNode;){const Va=Fc.get(bo);if(Va){Xa=Va;break}ys.push(bo)}ys.forEach(Va=>Fc.set(Va,Xa))}const ko=this._buildAnimation(Sn.namespaceId,Jn,Cr,bt,bs,Ws);if(Sn.setRealPlayer(ko),Xa===Qd)fc.push(Sn);else{const bo=this.playersByElement.get(Xa);bo&&bo.length&&(Sn.parentPlayer=Fe(bo)),_e.push(Sn)}}else vt(Cn,Jn.fromStyles),Sn.onDestroy(()=>tt(Cn,Jn.toStyles)),Yh.push(Sn),en.has(Cn)&&_e.push(Sn)}),Yh.forEach(mn=>{const Cn=bt.get(mn.element);if(Cn&&Cn.length){const Sn=Fe(Cn);mn.setRealPlayer(Sn)}}),_e.forEach(mn=>{mn.parentPlayer?mn.syncPlayerEvents(mn.parentPlayer):mn.destroy()});for(let mn=0;mn<ia.length;mn++){const Cn=ia[mn],Sn=Cn[aa];if(Wn(Cn,Tt),Sn&&Sn.hasAnimation)continue;let Jn=[];if(ei.size){let ko=ei.get(Cn);ko&&ko.length&&Jn.push(...ko);let bo=this.driver.query(Cn,Mt,!0);for(let ys=0;ys<bo.length;ys++){let Va=ei.get(bo[ys]);Va&&Va.length&&Jn.push(...Va)}}const Xa=Jn.filter(ko=>!ko.destroyed);Xa.length?_r(this,Cn,Xa):this.processLeaveNode(Cn)}return ia.length=0,fc.forEach(mn=>{this.players.push(mn),mn.onDone(()=>{mn.destroy();const Cn=this.players.indexOf(mn);this.players.splice(Cn,1)}),mn.play()}),fc}elementContainsData(M,v){let Z=!1;const _e=v[aa];return _e&&_e.setForRemoval&&(Z=!0),this.playersByElement.has(v)&&(Z=!0),this.playersByQueriedElement.has(v)&&(Z=!0),this.statesByElement.has(v)&&(Z=!0),this._fetchNamespace(M).elementContainsData(v)||Z}afterFlush(M){this._flushFns.push(M)}afterFlushAnimationsDone(M){this._whenQuietFns.push(M)}_getPreviousPlayers(M,v,Z,_e,bt){let Zt=[];if(v){const ei=this.playersByQueriedElement.get(M);ei&&(Zt=ei)}else{const ei=this.playersByElement.get(M);if(ei){const ui=!bt||bt==Ir;ei.forEach(Ei=>{Ei.queued||!ui&&Ei.triggerName!=_e||Zt.push(Ei)})}}return(Z||_e)&&(Zt=Zt.filter(ei=>!(Z&&Z!=ei.namespaceId||_e&&_e!=ei.triggerName))),Zt}_beforeAnimationBuild(M,v,Z){const bt=v.element,Zt=v.isRemovalTransition?void 0:M,ei=v.isRemovalTransition?void 0:v.triggerName;for(const ui of v.timelines){const Ei=ui.element,en=Ei!==bt,Bi=oe(Z,Ei,[]);this._getPreviousPlayers(Ei,en,Zt,ei,v.toState).forEach(kn=>{const hn=kn.getRealPlayer();hn.beforeDestroy&&hn.beforeDestroy(),kn.destroy(),Bi.push(kn)})}vt(bt,v.fromStyles)}_buildAnimation(M,v,Z,_e,bt,Zt){const ei=v.triggerName,ui=v.element,Ei=[],en=new Set,Bi=new Set,In=v.timelines.map(hn=>{const Mn=hn.element;en.add(Mn);const ia=Mn[aa];if(ia&&ia.removedBeforeQueried)return new b.ZN(hn.duration,hn.delay);const _a=Mn!==ui,Nr=function ja(F){const M=[];return ca(F,M),M}((Z.get(Mn)||fo).map(Cr=>Cr.getRealPlayer())).filter(Cr=>!!Cr.element&&Cr.element===Mn),Yr=bt.get(Mn),Fr=Zt.get(Mn),Nc=De(0,this._normalizer,0,hn.keyframes,Yr,Fr),vs=this._buildPlayer(hn,Nc,Nr);if(hn.subTimeline&&_e&&Bi.add(Mn),_a){const Cr=new Pa(M,ei,Mn);Cr.setRealPlayer(vs),Ei.push(Cr)}return vs});Ei.forEach(hn=>{oe(this.playersByQueriedElement,hn.element,[]).push(hn),hn.onDone(()=>function Jr(F,M,v){let Z=F.get(M);if(Z){if(Z.length){const _e=Z.indexOf(v);Z.splice(_e,1)}0==Z.length&&F.delete(M)}return Z}(this.playersByQueriedElement,hn.element,hn))}),en.forEach(hn=>Kn(hn,Ht));const kn=Fe(In);return kn.onDestroy(()=>{en.forEach(hn=>Wn(hn,Ht)),tt(ui,v.toStyles)}),Bi.forEach(hn=>{oe(_e,hn,[]).push(kn)}),kn}_buildPlayer(M,v,Z){return v.length>0?this.driver.animate(M.element,v,M.duration,M.delay,M.easing,Z):new b.ZN(M.duration,M.delay)}}class Pa{constructor(M,v,Z){this.namespaceId=M,this.triggerName=v,this.element=Z,this._player=new b.ZN,this._containsRealPlayer=!1,this._queuedCallbacks=new Map,this.destroyed=!1,this.markedForDestroy=!1,this.disabled=!1,this.queued=!0,this.totalTime=0}setRealPlayer(M){this._containsRealPlayer||(this._player=M,this._queuedCallbacks.forEach((v,Z)=>{v.forEach(_e=>ye(M,Z,void 0,_e))}),this._queuedCallbacks.clear(),this._containsRealPlayer=!0,this.overrideTotalTime(M.totalTime),this.queued=!1)}getRealPlayer(){return this._player}overrideTotalTime(M){this.totalTime=M}syncPlayerEvents(M){const v=this._player;v.triggerCallback&&M.onStart(()=>v.triggerCallback("start")),M.onDone(()=>this.finish()),M.onDestroy(()=>this.destroy())}_queueEvent(M,v){oe(this._queuedCallbacks,M,[]).push(v)}onDone(M){this.queued&&this._queueEvent("done",M),this._player.onDone(M)}onStart(M){this.queued&&this._queueEvent("start",M),this._player.onStart(M)}onDestroy(M){this.queued&&this._queueEvent("destroy",M),this._player.onDestroy(M)}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(M){this.queued||this._player.setPosition(M)}getPosition(){return this.queued?0:this._player.getPosition()}triggerCallback(M){const v=this._player;v.triggerCallback&&v.triggerCallback(M)}}function nr(F){return F&&1===F.nodeType}function $r(F,M){const v=F.style.display;return F.style.display=M??"none",v}function va(F,M,v,Z,_e){const bt=[];v.forEach(ui=>bt.push($r(ui)));const Zt=[];Z.forEach((ui,Ei)=>{const en=new Map;ui.forEach(Bi=>{const In=M.computeStyle(Ei,Bi,_e);en.set(Bi,In),(!In||0==In.length)&&(Ei[aa]=pr,Zt.push(Ei))}),F.set(Ei,en)});let ei=0;return v.forEach(ui=>$r(ui,bt[ei++])),Zt}function Or(F,M){const v=new Map;if(F.forEach(ei=>v.set(ei,[])),0==M.length)return v;const _e=new Set(M),bt=new Map;function Zt(ei){if(!ei)return 1;let ui=bt.get(ei);if(ui)return ui;const Ei=ei.parentNode;return ui=v.has(Ei)?Ei:_e.has(Ei)?1:Zt(Ei),bt.set(ei,ui),ui}return M.forEach(ei=>{const ui=Zt(ei);1!==ui&&v.get(ui).push(ei)}),v}function Kn(F,M){F.classList?.add(M)}function Wn(F,M){F.classList?.remove(M)}function _r(F,M,v){Fe(v).onDone(()=>F.processLeaveNode(M))}function ca(F,M){for(let v=0;v<F.length;v++){const Z=F[v];Z instanceof b.ZE?ca(Z.players,M):M.push(Z)}}function Vt(F,M,v){const Z=v.get(F);if(!Z)return!1;let _e=M.get(F);return _e?Z.forEach(bt=>_e.add(bt)):M.set(F,Z),v.delete(F),!0}class di{constructor(M,v,Z){this.bodyNode=M,this._driver=v,this._normalizer=Z,this._triggerCache={},this.onRemovalComplete=(_e,bt)=>{},this._transitionEngine=new mo(M,v,Z),this._timelineEngine=new so(M,v,Z),this._transitionEngine.onRemovalComplete=(_e,bt)=>this.onRemovalComplete(_e,bt)}registerTrigger(M,v,Z,_e,bt){const Zt=M+"-"+_e;let ei=this._triggerCache[Zt];if(!ei){const ui=[],en=Bt(this._driver,bt,ui,[]);if(ui.length)throw function i(F,M){return new e.vHH(3404,!1)}();ei=function wo(F,M,v){return new wa(F,M,v)}(_e,en,this._normalizer),this._triggerCache[Zt]=ei}this._transitionEngine.registerTrigger(v,_e,ei)}register(M,v){this._transitionEngine.register(M,v)}destroy(M,v){this._transitionEngine.destroy(M,v)}onInsert(M,v,Z,_e){this._transitionEngine.insertNode(M,v,Z,_e)}onRemove(M,v,Z,_e){this._transitionEngine.removeNode(M,v,_e||!1,Z)}disableAnimations(M,v){this._transitionEngine.markElementAsDisabled(M,v)}process(M,v,Z,_e){if("@"==Z.charAt(0)){const[bt,Zt]=je(Z);this._timelineEngine.command(bt,v,Zt,_e)}else this._transitionEngine.trigger(M,v,Z,_e)}listen(M,v,Z,_e,bt){if("@"==Z.charAt(0)){const[Zt,ei]=je(Z);return this._timelineEngine.listen(Zt,v,ei,bt)}return this._transitionEngine.listen(M,v,Z,_e,bt)}flush(M=-1){this._transitionEngine.flush(M)}get players(){return this._transitionEngine.players.concat(this._timelineEngine.players)}whenRenderingDone(){return this._transitionEngine.whenRenderingDone()}}let ri=(()=>{class F{constructor(v,Z,_e){this._element=v,this._startStyles=Z,this._endStyles=_e,this._state=0;let bt=F.initialStylesByElement.get(v);bt||F.initialStylesByElement.set(v,bt=new Map),this._initialStyles=bt}start(){this._state<1&&(this._startStyles&&tt(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&(tt(this._element,this._initialStyles),this._endStyles&&(tt(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(F.initialStylesByElement.delete(this._element),this._startStyles&&(vt(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(vt(this._element,this._endStyles),this._endStyles=null),tt(this._element,this._initialStyles),this._state=3)}}return F.initialStylesByElement=new WeakMap,F})();function Pi(F){let M=null;return F.forEach((v,Z)=>{(function tn(F){return"display"===F||"position"===F})(Z)&&(M=M||new Map,M.set(Z,v))}),M}class $n{constructor(M,v,Z,_e){this.element=M,this.keyframes=v,this.options=Z,this._specialStyles=_e,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._initialized=!1,this._finished=!1,this._started=!1,this._destroyed=!1,this._originalOnDoneFns=[],this._originalOnStartFns=[],this.time=0,this.parentPlayer=null,this.currentSnapshot=new Map,this._duration=Z.duration,this._delay=Z.delay||0,this.time=this._duration+this._delay}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(M=>M()),this._onDoneFns=[])}init(){this._buildPlayer(),this._preparePlayerBeforeStart()}_buildPlayer(){if(this._initialized)return;this._initialized=!0;const M=this.keyframes;this.domPlayer=this._triggerWebAnimation(this.element,M,this.options),this._finalKeyframe=M.length?M[M.length-1]:new Map,this.domPlayer.addEventListener("finish",()=>this._onFinish())}_preparePlayerBeforeStart(){this._delay?this._resetDomPlayerState():this.domPlayer.pause()}_convertKeyframesToObject(M){const v=[];return M.forEach(Z=>{v.push(Object.fromEntries(Z))}),v}_triggerWebAnimation(M,v,Z){return M.animate(this._convertKeyframesToObject(v),Z)}onStart(M){this._originalOnStartFns.push(M),this._onStartFns.push(M)}onDone(M){this._originalOnDoneFns.push(M),this._onDoneFns.push(M)}onDestroy(M){this._onDestroyFns.push(M)}play(){this._buildPlayer(),this.hasStarted()||(this._onStartFns.forEach(M=>M()),this._onStartFns=[],this._started=!0,this._specialStyles&&this._specialStyles.start()),this.domPlayer.play()}pause(){this.init(),this.domPlayer.pause()}finish(){this.init(),this._specialStyles&&this._specialStyles.finish(),this._onFinish(),this.domPlayer.finish()}reset(){this._resetDomPlayerState(),this._destroyed=!1,this._finished=!1,this._started=!1,this._onStartFns=this._originalOnStartFns,this._onDoneFns=this._originalOnDoneFns}_resetDomPlayerState(){this.domPlayer&&this.domPlayer.cancel()}restart(){this.reset(),this.play()}hasStarted(){return this._started}destroy(){this._destroyed||(this._destroyed=!0,this._resetDomPlayerState(),this._onFinish(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach(M=>M()),this._onDestroyFns=[])}setPosition(M){void 0===this.domPlayer&&this.init(),this.domPlayer.currentTime=M*this.time}getPosition(){return this.domPlayer.currentTime/this.time}get totalTime(){return this._delay+this._duration}beforeDestroy(){const M=new Map;this.hasStarted()&&this._finalKeyframe.forEach((Z,_e)=>{"offset"!==_e&&M.set(_e,this._finished?Z:Fi(this.element,_e))}),this.currentSnapshot=M}triggerCallback(M){const v="start"===M?this._onStartFns:this._onDoneFns;v.forEach(Z=>Z()),v.length=0}}class la{validateStyleProperty(M){return!0}validateAnimatableStyleProperty(M){return!0}matchesElement(M,v){return!1}containsElement(M,v){return Et(M,v)}getParentElement(M){return te(M)}query(M,v,Z){return pt(M,v,Z)}computeStyle(M,v,Z){return window.getComputedStyle(M)[v]}animate(M,v,Z,_e,bt,Zt=[]){const ui={duration:Z,delay:_e,fill:0==_e?"both":"forwards"};bt&&(ui.easing=bt);const Ei=new Map,en=Zt.filter(kn=>kn instanceof $n);(function pi(F,M){return 0===F||0===M})(Z,_e)&&en.forEach(kn=>{kn.currentSnapshot.forEach((hn,Mn)=>Ei.set(Mn,hn))});let Bi=function at(F){return F.length?F[0]instanceof Map?F:F.map(M=>He(M)):[]}(v).map(kn=>Gt(kn));Bi=function Li(F,M,v){if(v.size&&M.length){let Z=M[0],_e=[];if(v.forEach((bt,Zt)=>{Z.has(Zt)||_e.push(Zt),Z.set(Zt,bt)}),_e.length)for(let bt=1;bt<M.length;bt++){let Zt=M[bt];_e.forEach(ei=>Zt.set(ei,Fi(F,ei)))}}return M}(M,Bi,Ei);const In=function Ct(F,M){let v=null,Z=null;return Array.isArray(M)&&M.length?(v=Pi(M[0]),M.length>1&&(Z=Pi(M[M.length-1]))):M instanceof Map&&(v=Pi(M)),v||Z?new ri(F,v,Z):null}(M,Bi);return new $n(M,Bi,ui,In)}}var ji=p(6895);let bn=(()=>{class F extends b._j{constructor(v,Z){super(),this._nextAnimationId=0,this._renderer=v.createRenderer(Z.body,{id:"0",encapsulation:e.ifc.None,styles:[],data:{animation:[]}})}build(v){const Z=this._nextAnimationId.toString();this._nextAnimationId++;const _e=Array.isArray(v)?(0,b.vP)(v):v;return Xe(this._renderer,null,Z,"register",[_e]),new ar(Z,this._renderer)}}return F.\u0275fac=function(v){return new(v||F)(e.LFG(e.FYo),e.LFG(ji.K0))},F.\u0275prov=e.Yz7({token:F,factory:F.\u0275fac}),F})();class ar extends b.LC{constructor(M,v){super(),this._id=M,this._renderer=v}create(M,v){return new rt(this._id,M,v||{},this._renderer)}}class rt{constructor(M,v,Z,_e){this.id=M,this.element=v,this._renderer=_e,this.parentPlayer=null,this._started=!1,this.totalTime=0,this._command("create",Z)}_listen(M,v){return this._renderer.listen(this.element,`@@${this.id}:${M}`,v)}_command(M,...v){return Xe(this._renderer,this.element,this.id,M,v)}onDone(M){this._listen("done",M)}onStart(M){this._listen("start",M)}onDestroy(M){this._listen("destroy",M)}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(M){this._command("setPosition",M)}getPosition(){return this._renderer.engine.players[+this.id]?.getPosition()??0}}function Xe(F,M,v,Z,_e){return F.setProperty(M,`@@${v}:${Z}`,_e)}const Pt="@.disabled";let wi=(()=>{class F{constructor(v,Z,_e){this.delegate=v,this.engine=Z,this._zone=_e,this._currentId=0,this._microtaskId=1,this._animationCallbacksBuffer=[],this._rendererCache=new Map,this._cdRecurDepth=0,this.promise=Promise.resolve(0),Z.onRemovalComplete=(bt,Zt)=>{const ei=Zt?.parentNode(bt);ei&&Zt.removeChild(ei,bt)}}createRenderer(v,Z){const bt=this.delegate.createRenderer(v,Z);if(!(v&&Z&&Z.data&&Z.data.animation)){let en=this._rendererCache.get(bt);return en||(en=new ln("",bt,this.engine,()=>this._rendererCache.delete(bt)),this._rendererCache.set(bt,en)),en}const Zt=Z.id,ei=Z.id+"-"+this._currentId;this._currentId++,this.engine.register(ei,v);const ui=en=>{Array.isArray(en)?en.forEach(ui):this.engine.registerTrigger(Zt,ei,v,en.name,en)};return Z.data.animation.forEach(ui),new ha(this,ei,bt,this.engine)}begin(){this._cdRecurDepth++,this.delegate.begin&&this.delegate.begin()}_scheduleCountTask(){this.promise.then(()=>{this._microtaskId++})}scheduleListenerCallback(v,Z,_e){v>=0&&v<this._microtaskId?this._zone.run(()=>Z(_e)):(0==this._animationCallbacksBuffer.length&&Promise.resolve(null).then(()=>{this._zone.run(()=>{this._animationCallbacksBuffer.forEach(bt=>{const[Zt,ei]=bt;Zt(ei)}),this._animationCallbacksBuffer=[]})}),this._animationCallbacksBuffer.push([Z,_e]))}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 F.\u0275fac=function(v){return new(v||F)(e.LFG(e.FYo),e.LFG(di),e.LFG(e.R0b))},F.\u0275prov=e.Yz7({token:F,factory:F.\u0275fac}),F})();class ln{constructor(M,v,Z,_e){this.namespaceId=M,this.delegate=v,this.engine=Z,this._onDestroy=_e,this.destroyNode=this.delegate.destroyNode?bt=>v.destroyNode(bt):null}get data(){return this.delegate.data}destroy(){this.engine.destroy(this.namespaceId,this.delegate),this.delegate.destroy(),this._onDestroy?.()}createElement(M,v){return this.delegate.createElement(M,v)}createComment(M){return this.delegate.createComment(M)}createText(M){return this.delegate.createText(M)}appendChild(M,v){this.delegate.appendChild(M,v),this.engine.onInsert(this.namespaceId,v,M,!1)}insertBefore(M,v,Z,_e=!0){this.delegate.insertBefore(M,v,Z),this.engine.onInsert(this.namespaceId,v,M,_e)}removeChild(M,v,Z){this.engine.onRemove(this.namespaceId,v,this.delegate,Z)}selectRootElement(M,v){return this.delegate.selectRootElement(M,v)}parentNode(M){return this.delegate.parentNode(M)}nextSibling(M){return this.delegate.nextSibling(M)}setAttribute(M,v,Z,_e){this.delegate.setAttribute(M,v,Z,_e)}removeAttribute(M,v,Z){this.delegate.removeAttribute(M,v,Z)}addClass(M,v){this.delegate.addClass(M,v)}removeClass(M,v){this.delegate.removeClass(M,v)}setStyle(M,v,Z,_e){this.delegate.setStyle(M,v,Z,_e)}removeStyle(M,v,Z){this.delegate.removeStyle(M,v,Z)}setProperty(M,v,Z){"@"==v.charAt(0)&&v==Pt?this.disableAnimations(M,!!Z):this.delegate.setProperty(M,v,Z)}setValue(M,v){this.delegate.setValue(M,v)}listen(M,v,Z){return this.delegate.listen(M,v,Z)}disableAnimations(M,v){this.engine.disableAnimations(M,v)}}class ha extends ln{constructor(M,v,Z,_e,bt){super(v,Z,_e,bt),this.factory=M,this.namespaceId=v}setProperty(M,v,Z){"@"==v.charAt(0)?"."==v.charAt(1)&&v==Pt?this.disableAnimations(M,Z=void 0===Z||!!Z):this.engine.process(this.namespaceId,M,v.slice(1),Z):this.delegate.setProperty(M,v,Z)}listen(M,v,Z){if("@"==v.charAt(0)){const _e=function Si(F){switch(F){case"body":return document.body;case"document":return document;case"window":return window;default:return F}}(M);let bt=v.slice(1),Zt="";return"@"!=bt.charAt(0)&&([bt,Zt]=function Ln(F){const M=F.indexOf(".");return[F.substring(0,M),F.slice(M+1)]}(bt)),this.engine.listen(this.namespaceId,_e,bt,Zt,ei=>{this.factory.scheduleListenerCallback(ei._data||-1,Z,ei)})}return this.delegate.listen(M,v,Z)}}const Yo=[{provide:b._j,useClass:bn},{provide:Fn,useFactory:function Js(){return new Sr}},{provide:di,useClass:(()=>{class F extends di{constructor(v,Z,_e,bt){super(v.body,Z,_e)}ngOnDestroy(){this.flush()}}return F.\u0275fac=function(v){return new(v||F)(e.LFG(ji.K0),e.LFG(ke),e.LFG(Fn),e.LFG(e.z2F))},F.\u0275prov=e.Yz7({token:F,factory:F.\u0275fac}),F})()},{provide:e.FYo,useFactory:function Ha(F,M,v){return new wi(F,M,v)},deps:[t.se,di,e.R0b]}],eo=[{provide:ke,useFactory:()=>new la},{provide:e.QbO,useValue:"BrowserAnimations"},...Yo],vr=[{provide:ke,useClass:wt},{provide:e.QbO,useValue:"NoopAnimations"},...Yo];let jo=(()=>{class F{static withConfig(v){return{ngModule:F,providers:v.disableAnimations?vr:eo}}}return F.\u0275fac=function(v){return new(v||F)},F.\u0275mod=e.oAB({type:F}),F.\u0275inj=e.cJS({providers:eo,imports:[t.b2]}),F})();var br=p(529),Dn=p(2289),ki=p(9653),Qa=p(493),go=p(825),zi=p(7579),No=p(6451),Fo=p(4968),Xs=p(457),Es=p(4986),os=p(2805);function So(F=0,M=Es.z){return F<0&&(F=0),(0,os.H)(F,F,M)}var Eo=p(9646),ss=p(727),bc=p(4482),Qo=p(5403),$s=p(8737),ec=p(3269),Ts=p(9672),Ra=p(9300),to=p(8505),To=p(3900),an=p(2722),ka=p(8746),qa=p(1884),ua=p(4004);class Ls{}let Gc=(()=>{class F{constructor(v,Z){this._ngZone=Z,this.timerStart$=new zi.x,this.idleDetected$=new zi.x,this.timeout$=new zi.x,this.idleMillisec=6e5,this.idleSensitivityMillisec=1e3,this.timeout=300,this.pingMillisec=12e4,this.isTimeout=!1,this.isInactivityTimer=!1,this.isIdleDetected=!1,v&&this.setConfig(v)}startWatching(){this.activityEvents$||(this.activityEvents$=(0,No.T)((0,Fo.R)(window,"mousemove"),(0,Fo.R)(window,"resize"),(0,Fo.R)(document,"keydown"))),this.idle$=(0,Xs.D)(this.activityEvents$),this.idleSubscription&&this.idleSubscription.unsubscribe(),this.idleSubscription=this.idle$.pipe(function As(F,...M){var v,Z;const _e=null!==(v=(0,ec.yG)(M))&&void 0!==v?v:Es.z,bt=null!==(Z=M[0])&&void 0!==Z?Z:null,Zt=M[1]||1/0;return(0,bc.e)((ei,ui)=>{let Ei=[],en=!1;const Bi=hn=>{const{buffer:Mn,subs:ia}=hn;ia.unsubscribe(),(0,$s.P)(Ei,hn),ui.next(Mn),en&&In()},In=()=>{if(Ei){const hn=new ss.w0;ui.add(hn);const ia={buffer:[],subs:hn};Ei.push(ia),(0,Ts.f)(hn,_e,()=>Bi(ia),F)}};null!==bt&&bt>=0?(0,Ts.f)(ui,_e,In,bt,!0):en=!0,In();const kn=(0,Qo.x)(ui,hn=>{const Mn=Ei.slice();for(const ia of Mn){const{buffer:_a}=ia;_a.push(hn),Zt<=_a.length&&Bi(ia)}},()=>{for(;Ei?.length;)ui.next(Ei.shift().buffer);kn?.unsubscribe(),ui.complete(),ui.unsubscribe()},void 0,()=>Ei=null);ei.subscribe(kn)})}(this.idleSensitivityMillisec),(0,Ra.h)(v=>!v.length&&!this.isIdleDetected&&!this.isInactivityTimer),(0,to.b)(()=>{this.isIdleDetected=!0,this.idleDetected$.next(!0)}),(0,To.w)(()=>this._ngZone.runOutsideAngular(()=>So(1e3).pipe((0,an.R)((0,No.T)(this.activityEvents$,(0,os.H)(this.idleMillisec).pipe((0,to.b)(()=>{this.isInactivityTimer=!0,this.timerStart$.next(!0)})))),(0,ka.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,qa.x)(),(0,To.w)(v=>v?this.timer$:(0,Eo.of)(null)))}onIdleStatusChanged(){return this.idleDetected$.asObservable()}onTimeout(){return this.timeout$.pipe((0,Ra.h)(v=>!!v),(0,to.b)(()=>this.isTimeout=!0),(0,ua.U)(()=>!0))}getConfigValue(){return{idle:this.idleMillisec/1e3,idleSensitivity:this.idleSensitivityMillisec/1e3,timeout:this.timeout,ping:this.pingMillisec/1e3}}setConfigValues(v){!this.idleSubscription||this.idleSubscription.closed?this.setConfig(v):console.error("Call stopWatching() before set config values")}setConfig(v){v.idle&&(this.idleMillisec=1e3*v.idle),v.ping&&(this.pingMillisec=1e3*v.ping),v.idleSensitivity&&(this.idleSensitivityMillisec=1e3*v.idleSensitivity),v.timeout&&(this.timeout=v.timeout)}setCustomActivityEvents(v){!this.idleSubscription||this.idleSubscription.closed?this.activityEvents$=v:console.error("Call stopWatching() before set custom activity events")}setupTimer(v){this._ngZone.runOutsideAngular(()=>{this.timer$=(0,Eo.of)(()=>new Date).pipe((0,ua.U)(Z=>Z()),(0,To.w)(Z=>So(1e3).pipe((0,ua.U)(()=>Math.round(((new Date).valueOf()-Z.valueOf())/1e3)),(0,to.b)(_e=>{_e>=v&&this.timeout$.next(!0)}))))})}setupPing(v){this.ping$=So(v).pipe((0,Ra.h)(()=>!this.isTimeout))}}return F.\u0275fac=function(v){return new(v||F)(e.LFG(Ls,8),e.LFG(e.R0b))},F.\u0275prov=e.Yz7({token:F,factory:F.\u0275fac,providedIn:"root"}),F})(),yc=(()=>{class F{static forRoot(v){return{ngModule:F,providers:[{provide:Ls,useValue:v}]}}}return F.\u0275fac=function(v){return new(v||F)},F.\u0275mod=e.oAB({type:F}),F.\u0275inj=e.cJS({imports:[[]]}),F})();var Bn=p(9116),Xi=p(2687),ba=p(8377),Ma=p(2216),Wi=p(1576),Ie=p(3546),gt=p(3848);const j=function(){return{initial:!1}};function Se(F,M){if(1&F){const v=e.EpF();e.TgZ(0,"div",11),e.NdJ("click",function(){e.CHM(v);const _e=e.oxw();return e.KtG(_e.activeLink=_e.links[1].link)}),e._uU(1),e.qZA()}if(2&F){const v=e.oxw();e.s9C("routerLink",v.links[1].link),e.Q6J("active",v.activeLink===v.links[1].link)("state",e.DdM(4,j)),e.xp6(1),e.Oqu(v.links[1].name)}}function ze(F,M){if(1&F){const v=e.EpF();e.TgZ(0,"div",6),e.NdJ("click",function(){e.CHM(v);const _e=e.oxw();return e.KtG(_e.activeLink=_e.links[2].link)}),e._uU(1),e.qZA()}if(2&F){const v=e.oxw();e.s9C("routerLink",v.links[2].link),e.Q6J("active",v.activeLink===v.links[2].link),e.xp6(1),e.Oqu(v.links[2].name)}}class yt{constructor(M,v){this.store=M,this.router=v,this.faUserCog=Xi.gNZ,this.showBitcoind=!1,this.links=[{link:"app",name:"Application"},{link:"auth",name:"Authentication"},{link:"bconfig",name:"BitcoinD Config"}],this.activeLink="",this.unSubs=[new zi.x,new zi.x,new zi.x]}ngOnInit(){const M=this.links.find(v=>this.router.url.includes(v.link));this.activeLink=M?M.link:this.links[0].link,this.router.events.pipe((0,an.R)(this.unSubs[0]),(0,Ra.h)(v=>v instanceof Bn.Av)).subscribe({next:v=>{const Z=this.links.find(_e=>v.urlAfterRedirects.includes(_e.link));this.activeLink=Z?Z.link:this.links[0].link}}),this.store.select(ba.Yj).pipe((0,an.R)(this.unSubs[1])).subscribe(v=>{this.appConfig=v}),this.store.select(ba.dT).pipe((0,an.R)(this.unSubs[2])).subscribe(v=>{this.showBitcoind=!1,this.selNode=v,this.selNode.settings&&this.selNode.settings.bitcoindConfigPath&&""!==this.selNode.settings.bitcoindConfigPath.trim()&&(this.showBitcoind=!0)})}ngOnDestroy(){this.unSubs.forEach(M=>{M.next(null),M.complete()})}}yt.\u0275fac=function(M){return new(M||yt)(e.Y36(ki.yh),e.Y36(Bn.F0))},yt.\u0275cmp=e.Xpm({type:yt,selectors:[["rtl-settings"]],decls:16,vars:7,consts:[["fxLayout","row","fxLayoutAlign","start center",1,"page-title-container"],[1,"page-title-img","mr-1",3,"icon"],[1,"page-title"],["fxLayout","column",1,"padding-gap-x"],["fxLayout","column"],["mat-tab-nav-bar","","mat-stretch-tabs","false","mat-align-tabs","start",3,"tabPanel"],["role","tab","mat-tab-link","",1,"mat-tab-label",3,"active","routerLink","click"],["role","tab","mat-tab-link","","class","mat-tab-label",3,"active","routerLink","state","click",4,"ngIf"],["role","tab","mat-tab-link","","class","mat-tab-label",3,"active","routerLink","click",4,"ngIf"],["tabPanel",""],["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between stretch",1,"mat-tab-body-wrapper"],["role","tab","mat-tab-link","",1,"mat-tab-label",3,"active","routerLink","state","click"]],template:function(M,v){if(1&M&&(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 v.activeLink=v.links[0].link}),e._uU(9),e.qZA(),e.YNc(10,Se,2,5,"div",7),e.YNc(11,ze,2,3,"div",8),e.qZA(),e._UZ(12,"mat-tab-nav-panel",null,9),e.TgZ(14,"div",10),e._UZ(15,"router-outlet"),e.qZA()()()()),2&M){const Z=e.MAs(13);e.xp6(1),e.Q6J("icon",v.faUserCog),e.xp6(6),e.Q6J("tabPanel",Z),e.xp6(1),e.s9C("routerLink",v.links[0].link),e.Q6J("active",v.activeLink===v.links[0].link),e.xp6(1),e.Oqu(v.links[0].name),e.xp6(1),e.Q6J("ngIf",!+v.appConfig.sso.rtlSSO),e.xp6(1),e.Q6J("ngIf",v.showBitcoind)}},dependencies:[ji.O5,Ma.BN,Wi.xw,Wi.Wh,Wi.yH,Ie.a8,Ie.dn,gt.BU,gt.sW,gt.Nj,Bn.lC,Bn.rH]});var Pe=p(7731),jt=p(7861),li=p(5043),$t=p(4006),_i=p(4859),Mi=p(9549),Hi=p(4385),Zi=p(3238),nn=p(6839),xn=p(3390);function ea(F,M){if(1&F&&(e.TgZ(0,"mat-option",17),e._uU(1),e.qZA()),2&F){const v=M.$implicit;e.Q6J("value",v.index),e.xp6(1),e.AsE(" ",v.lnNode," (",v.lnImplementation,") ")}}function fa(F,M){if(1&F){const v=e.EpF();e.TgZ(0,"form",2,3)(2,"div",4),e._UZ(3,"fa-icon",5),e.TgZ(4,"span",6),e._uU(5,"Default Node"),e.qZA()(),e.TgZ(6,"div",7)(7,"div",8),e._UZ(8,"fa-icon",9),e.TgZ(9,"span"),e._uU(10,"The setting will apply after RTL server restarts."),e.qZA()(),e.TgZ(11,"div",10)(12,"mat-form-field",11)(13,"mat-select",12),e.NdJ("ngModelChange",function(_e){e.CHM(v);const bt=e.oxw();return e.KtG(bt.appConfig.defaultNodeIndex=_e)}),e.YNc(14,ea,2,3,"mat-option",13),e.qZA()()(),e.TgZ(15,"div",14)(16,"div",10)(17,"button",15),e.NdJ("click",function(){e.CHM(v);const _e=e.oxw();return e.KtG(_e.onResetSettings())}),e._uU(18,"Reset"),e.qZA(),e.TgZ(19,"button",16),e.NdJ("click",function(){e.CHM(v);const _e=e.oxw();return e.KtG(_e.onUpdateSettings())}),e._uU(20,"Update"),e.qZA()()()()()}if(2&F){const v=e.oxw();e.xp6(3),e.Q6J("icon",v.faWindowRestore),e.xp6(5),e.Q6J("icon",v.faInfoCircle),e.xp6(5),e.Q6J("ngModel",v.appConfig.defaultNodeIndex),e.xp6(1),e.Q6J("ngForOf",v.appConfig.nodes)}}class ma{constructor(M,v){this.logger=M,this.store=v,this.faInfoCircle=Xi.sqG,this.faWindowRestore=Xi.wyP,this.faPlus=Xi.r8p,this.previousDefaultNode=0,this.unSubs=[new zi.x,new zi.x]}ngOnInit(){this.store.select(ba.Yj).pipe((0,an.R)(this.unSubs[0])).subscribe(M=>{this.appConfig=M,this.previousDefaultNode=this.appConfig.defaultNodeIndex,this.logger.info(M)})}onAddNewNode(){this.logger.warn("ADD NEW NODE")}onUpdateSettings(){this.store.dispatch((0,jt.zQ)({payload:{uiMessage:Pe.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(M=>{M.next(),M.complete()})}}ma.\u0275fac=function(M){return new(M||ma)(e.Y36(li.mQ),e.Y36(ki.yh))},ma.\u0275cmp=e.Xpm({type:ma,selectors:[["rtl-app-settings"]],decls:2,vars:1,consts:[["fxLayout","column","fxFlex","100",1,"padding-gap-x-large",3,"perfectScrollbar"],["fxLayout","column","fxFlex","100","fxLayoutAlign","start stretch","class","settings-container page-sub-title-container mt-1",4,"ngIf"],["fxLayout","column","fxFlex","100","fxLayoutAlign","start stretch",1,"settings-container","page-sub-title-container","mt-1"],["form","ngForm"],["fxLayout","row"],[1,"page-title-img","mr-1",3,"icon"],[1,"page-title"],["fxLayout","column","fxFlex","100","fxLayoutAlign","start stretch",1,"my-2"],["fxLayout","row","fxFlex","100",1,"alert","alert-info"],[1,"mr-1","alert-icon",3,"icon"],["fxLayout","row","fxLayoutAlign","start start"],["fxLayout","column","fxLayoutAlign","start start"],["autoFocus","","tabindex","1","name","defaultNode",3,"ngModel","ngModelChange"],[3,"value",4,"ngFor","ngForOf"],["fxLayout","row","fxLayoutAlign","start start",1,"mt-1"],["mat-stroked-button","","color","primary","tabindex","2",1,"mr-1",3,"click"],["mat-flat-button","","color","primary","tabindex","3",3,"click"],[3,"value"]],template:function(M,v){1&M&&(e.TgZ(0,"div",0),e.YNc(1,fa,21,4,"form",1),e.qZA()),2&M&&(e.xp6(1),e.Q6J("ngIf",v.appConfig.nodes&&v.appConfig.nodes.length&&v.appConfig.nodes.length>0))},dependencies:[ji.sg,ji.O5,$t._Y,$t.JJ,$t.JL,$t.On,$t.F,Ma.BN,Wi.xw,Wi.Wh,Wi.yH,_i.lW,Mi.KE,Hi.gD,Zi.ey,nn.$V,xn.h]});var Sa=p(8012),ya=p(5698),xa=p(5412),yr=p(5768),Ea=p(3093),io=p(7009),Wa=p(4144),no=p(8425),_o=p(658),Zc=p(5199);const Ho=["stepper"];function e1(F,M){if(1&F&&e._uU(0),2&F){const v=e.oxw();e.Oqu(v.passwordFormLabel)}}function Wc(F,M){1&F&&(e.TgZ(0,"mat-error"),e._uU(1,"Password is required."),e.qZA())}function Sl(F,M){if(1&F&&e._uU(0),2&F){const v=e.oxw(2);e.Oqu(v.secretFormLabel)}}function Pr(F,M){if(1&F&&e._UZ(0,"qr-code",33),2&F){const v=e.oxw(2);e.Q6J("value",v.otpauth)("size",180)("errorCorrectionLevel","L")}}function Yc(F,M){1&F&&(e.TgZ(0,"mat-error"),e._uU(1,"Secret Code is required."),e.qZA())}function tc(F,M){if(1&F){const v=e.EpF();e.TgZ(0,"mat-step",10)(1,"form",22),e.YNc(2,Sl,1,1,"ng-template",23),e.TgZ(3,"div",24),e.YNc(4,Pr,1,3,"qr-code",25),e.qZA(),e.TgZ(5,"div",26),e._UZ(6,"fa-icon",27),e.TgZ(7,"span"),e._uU(8,"You can use a compatible authentication app to get an authentication code when you log in to RTL. e.g.: Google Authenticator."),e.qZA()(),e.TgZ(9,"div",28)(10,"mat-form-field",13)(11,"mat-label"),e._uU(12,"Secret Code"),e.qZA(),e._UZ(13,"input",29),e.TgZ(14,"fa-icon",30),e.NdJ("copied",function(_e){e.CHM(v);const bt=e.oxw();return e.KtG(bt.onCopySecret(_e))}),e.qZA(),e.YNc(15,Yc,2,0,"mat-error",15),e.qZA()(),e.TgZ(16,"div",31)(17,"button",32),e._uU(18,"Next"),e.qZA()()()()}if(2&F){const v=e.oxw();e.Q6J("stepControl",v.secretFormGroup)("editable",v.flgEditable),e.xp6(1),e.Q6J("formGroup",v.secretFormGroup),e.xp6(3),e.Q6J("ngIf",v.otpauth),e.xp6(2),e.Q6J("icon",v.faInfoCircle),e.xp6(8),e.Q6J("icon",v.faCopy)("payload",null==v.secretFormGroup||null==v.secretFormGroup.controls||null==v.secretFormGroup.controls.secret?null:v.secretFormGroup.controls.secret.value),e.xp6(1),e.Q6J("ngIf",null==v.secretFormGroup||null==v.secretFormGroup.controls||null==v.secretFormGroup.controls.secret||null==v.secretFormGroup.controls.secret.errors?null:v.secretFormGroup.controls.secret.errors.required)}}function jc(F,M){if(1&F&&e._uU(0),2&F){const v=e.oxw(2);e.Oqu(v.tokenFormLabel)}}function t1(F,M){1&F&&(e.TgZ(0,"mat-error"),e._uU(1,"Token is required."),e.qZA())}function El(F,M){1&F&&(e.TgZ(0,"mat-error"),e._uU(1,"Token is invalid."),e.qZA())}function K1(F,M){if(1&F){const v=e.EpF();e.TgZ(0,"div",7)(1,"div",28)(2,"mat-form-field",13)(3,"mat-label"),e._uU(4,"Token"),e.qZA(),e._UZ(5,"input",37),e.YNc(6,t1,2,0,"mat-error",15),e.YNc(7,El,2,0,"mat-error",15),e.qZA()(),e.TgZ(8,"div",31)(9,"button",38),e.NdJ("click",function(){e.CHM(v);const _e=e.oxw(2);return e.KtG(_e.onVerifyToken())}),e._uU(10),e.qZA()()()}if(2&F){const v=e.oxw(2);e.xp6(6),e.Q6J("ngIf",null==v.tokenFormGroup||null==v.tokenFormGroup.controls||null==v.tokenFormGroup.controls.token||null==v.tokenFormGroup.controls.token.errors?null:v.tokenFormGroup.controls.token.errors.required),e.xp6(1),e.Q6J("ngIf",null==v.tokenFormGroup||null==v.tokenFormGroup.controls||null==v.tokenFormGroup.controls.token||null==v.tokenFormGroup.controls.token.errors?null:v.tokenFormGroup.controls.token.errors.notValid),e.xp6(3),e.Oqu(null!=v.tokenFormGroup&&null!=v.tokenFormGroup.controls&&null!=v.tokenFormGroup.controls.token&&null!=v.tokenFormGroup.controls.token.errors&&v.tokenFormGroup.controls.token.errors.notValid?"Retry":"Verify")}}function Q1(F,M){1&F&&(e.TgZ(0,"div")(1,"strong"),e._uU(2,"Success! You are all set."),e.qZA()())}function n1(F,M){if(1&F&&(e.TgZ(0,"mat-step",34)(1,"form",35),e.YNc(2,jc,1,1,"ng-template",12),e.YNc(3,K1,11,3,"div",36),e.YNc(4,Q1,3,0,"div",15),e.qZA()()),2&F){const v=e.oxw();e.Q6J("stepControl",v.tokenFormGroup),e.xp6(1),e.Q6J("formGroup",v.tokenFormGroup),e.xp6(2),e.Q6J("ngIf",!v.flgValidated||!v.isTokenValid),e.xp6(1),e.Q6J("ngIf",v.flgValidated&&v.isTokenValid)}}function Ds(F,M){if(1&F&&e._uU(0),2&F){const v=e.oxw(2);e.Oqu(v.disableFormLabel)}}function cs(F,M){if(1&F){const v=e.EpF();e.TgZ(0,"div",7)(1,"div",39),e._UZ(2,"fa-icon",27),e.TgZ(3,"span"),e._uU(4,"You are about to disable two-factor authentication security from RTL. Are you sure you want to turn it off?"),e.qZA()(),e.TgZ(5,"div",31)(6,"button",38),e.NdJ("click",function(){e.CHM(v);const _e=e.oxw(2);return e.KtG(_e.onVerifyToken())}),e._uU(7,"Disable"),e.qZA()()()}if(2&F){const v=e.oxw(2);e.xp6(2),e.Q6J("icon",v.faExclamationTriangle)}}function Is(F,M){1&F&&(e.TgZ(0,"div")(1,"strong"),e._uU(2,"Two factor authentication removed from RTL."),e.qZA()())}function q1(F,M){if(1&F&&(e.TgZ(0,"mat-step",34)(1,"form",35),e.YNc(2,Ds,1,1,"ng-template",12),e.YNc(3,cs,8,1,"div",36),e.YNc(4,Is,3,0,"div",15),e.qZA()()),2&F){const v=e.oxw();e.Q6J("stepControl",v.disableFormGroup),e.xp6(1),e.Q6J("formGroup",v.disableFormGroup),e.xp6(2),e.Q6J("ngIf",!v.flgValidated||!v.isTokenValid),e.xp6(1),e.Q6J("ngIf",v.flgValidated&&v.isTokenValid)}}class ks{constructor(M,v,Z,_e,bt,Zt){this.dialogRef=M,this.data=v,this.store=Z,this.formBuilder=_e,this.rtlEffects=bt,this.snackBar=Zt,this.faExclamationTriangle=Xi.eHv,this.faCopy=Xi.kZ_,this.faInfoCircle=Xi.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:["",[$t.kI.required]],password:["",[$t.kI.required]]}),this.secretFormGroup=this.formBuilder.group({secret:[{value:"",disabled:!0},$t.kI.required]}),this.tokenFormGroup=this.formBuilder.group({token:["",$t.kI.required]}),this.disableFormGroup=this.formBuilder.group({}),this.unSubs=[new zi.x,new zi.x]}ngOnInit(){this.appConfig=this.data.appConfig||null,this.showDisableStepper=!!this.appConfig?.enable2FA,this.secretFormGroup=this.formBuilder.group({secret:[{value:this.appConfig?.enable2FA?"":this.generateSecret(),disabled:!0},$t.kI.required]})}generateSecret(){const M=yr.authenticator.generateSecret();return this.otpauth=yr.authenticator.keyuri("","Ride The Lightning (RTL)",M),M}onAuthenticate(){if(!this.passwordFormGroup.controls.password.value)return!0;this.flgValidated=!1,this.store.dispatch((0,jt.QO)({payload:Sa(this.passwordFormGroup.controls.password.value).toString()})),this.rtlEffects.isAuthorizedRes.pipe((0,ya.q)(1)).subscribe(M=>{"ERROR"!==M?(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(M){this.snackBar.open("Secret code "+this.secretFormGroup.controls.secret.value+" copied.")}onVerifyToken(){if(this.appConfig?.enable2FA)this.store.dispatch((0,jt.Uy)({payload:{secret2fa:""}})),this.generateSecret(),this.isTokenValid=!0;else{if(!this.tokenFormGroup.controls.token.value)return!0;if(this.isTokenValid=yr.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,jt.Uy)({payload:{secret2fa:this.secretFormGroup.controls.secret.value}})),this.tokenFormGroup.controls.token.setValue("")}this.flgValidated=!0,this.appConfig&&(this.appConfig.enable2FA=!this.appConfig?.enable2FA)}stepSelectionChanged(M){switch(M.selectedIndex){case 0:default:this.passwordFormLabel="Authenticate with your RTL password";break;case 1:case 2:this.passwordFormLabel="User authenticated successfully"}M.selectedIndex<M.previouslySelectedIndex&&0===M.selectedIndex&&this.passwordFormGroup.controls.hiddenPassword.setValue("")}ngOnDestroy(){this.unSubs.forEach(M=>{M.next(),M.complete()})}}ks.\u0275fac=function(M){return new(M||ks)(e.Y36(xa.so),e.Y36(xa.WI),e.Y36(ki.yh),e.Y36($t.QS),e.Y36(Ea.V),e.Y36(io.ux))},ks.\u0275cmp=e.Xpm({type:ks,selectors:[["rtl-two-factor-auth"]],viewQuery:function(M,v){if(1&M&&e.Gf(Ho,5),2&M){let Z;e.iGM(Z=e.CRH())&&(v.stepper=Z.first)}},decls:30,vars:11,consts:[["fxLayout","row"],["fxFlex","100"],["fxLayout","row","fxLayoutAlign","space-between center",1,"modal-info-header"],["fxFlex","95","fxLayoutAlign","start start"],[1,"page-title"],["tabindex","15","fxFlex","5","fxLayoutAlign","center center","mat-button","",1,"btn-close-x","p-0",3,"mat-dialog-close"],[1,"padding-gap-x-large"],["fxLayout","column"],[3,"linear","selectionChange"],["stepper",""],[3,"stepControl","editable"],["fxLayout","column","fxLayoutAlign","space-between",1,"my-1","pr-1",3,"formGroup"],["matStepLabel",""],["fxLayout","column","fxFlex","100"],["autoFocus","","matInput","","type","password","tabindex","1","formControlName","password","required",""],[4,"ngIf"],["fxLayout","row",1,"mt-2"],["mat-button","","color","primary","tabindex","3","type","button",3,"click"],[3,"stepControl","editable",4,"ngIf"],[3,"stepControl",4,"ngIf"],["fxLayout","row","fxFlex","100","fxLayoutAlign","end center"],["mat-button","","color","primary","tabindex","12","type","button","default","",3,"mat-dialog-close"],["fxLayout","column",1,"my-1","pr-1",3,"formGroup"],["matStepLabel","","disabled","true"],["fxLayout","row","fxFlex","100","fxLayoutAlign","start"],[3,"value","size","errorCorrectionLevel",4,"ngIf"],["fxFlex","100",1,"w-100","alert","alert-info"],[1,"mt-1","mr-1","alert-icon",3,"icon"],["fxLayout","row","fxFlex","100","fxLayoutAlign","space-between stretch"],["autoFocus","","matInput","","type","text","tabindex","4","formControlName","secret","required",""],["matSuffix","","rtlClipboard","",3,"icon","payload","copied"],["fxLayout","row","fxLayoutAlign","start center","fxFlex","100",1,"mt-2"],["mat-button","","color","primary","tabindex","6","type","button","matStepperNext",""],[3,"value","size","errorCorrectionLevel"],[3,"stepControl"],["fxLayout","column","fxLayoutAlign","start",1,"my-1","pr-1",3,"formGroup"],["fxLayout","column",4,"ngIf"],["autoFocus","","matInput","","type","text","tabindex","7","formControlName","token","required",""],["mat-button","","color","primary","tabindex","8","type","button",3,"click"],["fxFlex","100",1,"w-100","alert","alert-warn"]],template:function(M,v){1&M&&(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(_e){return v.stepSelectionChanged(_e)}),e.TgZ(12,"mat-step",10)(13,"form",11),e.YNc(14,e1,1,1,"ng-template",12),e.TgZ(15,"div",0)(16,"mat-form-field",13)(17,"mat-label"),e._uU(18,"Password"),e.qZA(),e._UZ(19,"input",14),e.YNc(20,Wc,2,0,"mat-error",15),e.qZA()(),e.TgZ(21,"div",16)(22,"button",17),e.NdJ("click",function(){return v.onAuthenticate()}),e._uU(23,"Confirm"),e.qZA()()()(),e.YNc(24,tc,19,8,"mat-step",18),e.YNc(25,n1,5,4,"mat-step",19),e.YNc(26,q1,5,4,"mat-step",19),e.qZA(),e.TgZ(27,"div",20)(28,"button",21),e._uU(29),e.qZA()()()()()()),2&M&&(e.xp6(6),e.Q6J("mat-dialog-close",!1),e.xp6(4),e.Q6J("linear",!0),e.xp6(2),e.Q6J("stepControl",v.passwordFormGroup)("editable",v.flgEditable),e.xp6(1),e.Q6J("formGroup",v.passwordFormGroup),e.xp6(7),e.Q6J("ngIf",null==v.passwordFormGroup||null==v.passwordFormGroup.controls||null==v.passwordFormGroup.controls.password||null==v.passwordFormGroup.controls.password.errors?null:v.passwordFormGroup.controls.password.errors.required),e.xp6(4),e.Q6J("ngIf",!v.showDisableStepper),e.xp6(1),e.Q6J("ngIf",!v.showDisableStepper),e.xp6(1),e.Q6J("ngIf",v.showDisableStepper),e.xp6(2),e.Q6J("mat-dialog-close",!1),e.xp6(1),e.Oqu(v.flgValidated&&v.isTokenValid?"Close":"Cancel"))},dependencies:[ji.O5,$t._Y,$t.Fj,$t.JJ,$t.JL,$t.Q7,$t.sg,$t.u,Ma.BN,Wi.xw,Wi.Wh,Wi.yH,xa.ZT,_i.lW,Ie.dn,Ie.dk,Wa.Nt,Mi.KE,Mi.hX,Mi.TO,Mi.R9,no.C0,no.VY,no.Vq,no.Ic,_o.uU,Zc.y,xn.h]});var lr=p(5986),zo=p(4850);const a1=["authForm"];function r1(F,M){1&F&&(e.TgZ(0,"mat-error"),e._uU(1,"Current password is required."),e.qZA())}function J1(F,M){if(1&F&&(e.TgZ(0,"mat-error"),e._uU(1),e.qZA()),2&F){const v=e.oxw(2);e.xp6(1),e.Oqu(v.errorMsg)}}function Tl(F,M){if(1&F&&(e.TgZ(0,"mat-error"),e._uU(1),e.qZA()),2&F){const v=e.oxw(2);e.xp6(1),e.Oqu(v.errorConfirmMsg)}}function xc(F,M){if(1&F){const v=e.EpF();e.TgZ(0,"form",11,12)(2,"div",13),e._UZ(3,"fa-icon",5),e.TgZ(4,"span",6),e._uU(5,"Password"),e.qZA()(),e.TgZ(6,"mat-form-field")(7,"mat-label"),e._uU(8,"Current Password"),e.qZA(),e.TgZ(9,"input",14),e.NdJ("ngModelChange",function(_e){e.CHM(v);const bt=e.oxw();return e.KtG(bt.currPassword=_e)}),e.qZA(),e.YNc(10,r1,2,0,"mat-error",15),e.qZA(),e.TgZ(11,"mat-form-field")(12,"mat-label"),e._uU(13,"New Password"),e.qZA(),e.TgZ(14,"input",16),e.NdJ("ngModelChange",function(_e){e.CHM(v);const bt=e.oxw();return e.KtG(bt.newPassword=_e)}),e.qZA(),e.YNc(15,J1,2,1,"mat-error",15),e.qZA(),e.TgZ(16,"mat-form-field")(17,"mat-label"),e._uU(18,"Confirm New Password"),e.qZA(),e.TgZ(19,"input",17),e.NdJ("ngModelChange",function(_e){e.CHM(v);const bt=e.oxw();return e.KtG(bt.confirmPassword=_e)}),e.qZA(),e.YNc(20,Tl,2,1,"mat-error",15),e.qZA(),e.TgZ(21,"div",18)(22,"button",19),e.NdJ("click",function(){e.CHM(v);const _e=e.oxw();return e.KtG(_e.onResetPassword())}),e._uU(23,"Reset"),e.qZA(),e.TgZ(24,"button",20),e.NdJ("click",function(){e.CHM(v);const _e=e.oxw();return e.KtG(_e.onChangePassword())}),e._uU(25,"Change Password"),e.qZA()()()}if(2&F){const v=e.oxw();e.xp6(3),e.Q6J("icon",v.faLock),e.xp6(6),e.Q6J("ngModel",v.currPassword),e.xp6(1),e.Q6J("ngIf",!v.currPassword),e.xp6(4),e.Q6J("ngModel",v.newPassword),e.xp6(1),e.Q6J("ngIf",v.matchOldAndNewPasswords()),e.xp6(4),e.Q6J("ngModel",v.confirmPassword),e.xp6(1),e.Q6J("ngIf",v.matchNewPasswords())}}class vo{constructor(M,v,Z,_e,bt){this.logger=M,this.store=v,this.actions=Z,this.router=_e,this.sessionService=bt,this.faInfoCircle=Xi.sqG,this.faUserLock=Xi.FJU,this.faUserClock=Xi.hnx,this.faLock=Xi.byT,this.currPassword="",this.newPassword="",this.confirmPassword="",this.errorMsg="",this.errorConfirmMsg="",this.initializeNodeData=!1,this.unSubs=[new zi.x,new zi.x,new zi.x]}ngOnInit(){this.initializeNodeData="true"===this.sessionService.getItem("defaultPassword"),this.store.select(ba.Yj).pipe((0,an.R)(this.unSubs[0])).subscribe(M=>{this.appConfig=M,this.logger.info(this.appConfig)}),this.store.select(ba.dT).pipe((0,an.R)(this.unSubs[1])).subscribe(M=>{this.selNode=M}),this.actions.pipe((0,an.R)(this.unSubs[2]),(0,Ra.h)(M=>M.type===Pe.pg.RESET_PASSWORD_RES)).subscribe(M=>{if(Pe.kO.includes(this.currPassword.toLowerCase()))switch(this.selNode.lnImplementation?.toUpperCase()){case"CLN":this.router.navigate(["/cln/home"]);break;case"ECL":this.router.navigate(["/ecl/home"]);break;default:this.router.navigate(["/lnd/home"])}this.form&&this.form.resetForm()})}onChangePassword(){if(!this.currPassword||!this.newPassword||!this.confirmPassword||this.currPassword===this.newPassword||this.newPassword!==this.confirmPassword||Pe.kO.includes(this.newPassword.toLowerCase()))return!0;this.store.dispatch((0,jt.c0)({payload:{currPassword:Sa(this.currPassword).toString(),newPassword:Sa(this.newPassword).toString()}}))}matchOldAndNewPasswords(){let M=!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.",M=!0):Pe.kO.includes(this.newPassword.toLowerCase())?(this.form.controls.newpassword.setErrors({invalid:!0}),this.errorMsg=Pe.kO?.reduce((v,Z,_e)=>_e<Pe.kO.length-1?v+Z+'" / "':v+Z+'".','Password cannot be "'),M=!0):(this.form.controls.newpassword.setErrors(null),this.errorMsg="",M=!1):(this.form.controls.newpassword.setErrors({invalid:!0}),this.errorMsg="New password is required.",M=!0)),M}matchNewPasswords(){let M=!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.",M=!0):(this.form.controls.confirmpassword.setErrors(null),this.errorConfirmMsg="",M=!1):(this.form.controls.confirmpassword.setErrors({invalid:!0}),this.errorConfirmMsg="Confirm password is required.",M=!0)),M}on2FAuth(){this.store.dispatch((0,jt.qR)({payload:{data:{appConfig:this.appConfig,component:ks}}}))}onResetPassword(){this.form.resetForm()}ngOnDestroy(){this.initializeNodeData&&this.store.dispatch((0,jt.fk)({payload:{uiMessage:Pe.m6.NO_SPINNER,prevLnNodeIndex:-1,currentLnNode:this.selNode,isInitialSetup:!0}})),this.unSubs.forEach(M=>{M.next(),M.complete()})}}vo.\u0275fac=function(M){return new(M||vo)(e.Y36(li.mQ),e.Y36(ki.yh),e.Y36(Qa.eX),e.Y36(Bn.F0),e.Y36(lr.m))},vo.\u0275cmp=e.Xpm({type:vo,selectors:[["rtl-auth-settings"]],viewQuery:function(M,v){if(1&M&&e.Gf(a1,5),2&M){let Z;e.iGM(Z=e.CRH())&&(v.form=Z.first)}},decls:15,vars:4,consts:[["fxLayout","column","fxFlex","100","fxLayoutAlign","start stretch",1,"padding-gap-x-large"],["fxLayout","column","fxFlex","100","fxLayoutAlign","start stretch","class","page-sub-title-container mt-1",4,"ngIf"],[1,"my-2"],["fxLayout","column","fxLayoutAlign","start stretch"],[1,"mb-1","settings-container","page-sub-title-container","mt-1"],[1,"page-title-img","mr-1",3,"icon"],[1,"page-title"],[1,"alert","alert-info"],[1,"mt-1","mr-1","alert-icon",3,"icon"],[1,"mt-1"],["mat-flat-button","","color","primary","tabindex","6",1,"mb-2",3,"click"],["fxLayout","column","fxFlex","100","fxLayoutAlign","start stretch",1,"page-sub-title-container","mt-1"],["authForm","ngForm"],["fxLayout","row","fxLayoutAlign","start start",1,"mb-2"],["autoFocus","","matInput","","type","password","id","currpassword","name","currpassword","tabindex","1","required","",3,"ngModel","ngModelChange"],[4,"ngIf"],["matInput","","type","password","id","newpassword","name","newpassword","tabindex","2","required","",3,"ngModel","ngModelChange"],["matInput","","type","password","id","confirmpassword","name","confirmpassword","tabindex","3","required","",3,"ngModel","ngModelChange"],["fxLayout","row","fxLayoutAlign","start start",1,"mt-1"],["mat-stroked-button","","color","primary","type","reset","tabindex","4",1,"mr-1",3,"click"],["mat-flat-button","","color","primary","tabindex","5","type","submit",3,"click"]],template:function(M,v){1&M&&(e.TgZ(0,"div",0),e.YNc(1,xc,26,7,"form",1),e._UZ(2,"mat-divider",2),e.TgZ(3,"div",3)(4,"div",4),e._UZ(5,"fa-icon",5),e.TgZ(6,"span",6),e._uU(7,"Two Factor Authentication"),e.qZA()(),e.TgZ(8,"div",7),e._UZ(9,"fa-icon",8),e.TgZ(10,"span"),e._uU(11,"Protect your account from unauthorized access by requiring a second authentication method in addition to your password."),e.qZA()(),e.TgZ(12,"div",9)(13,"button",10),e.NdJ("click",function(){return v.on2FAuth()}),e._uU(14),e.qZA()()()()),2&M&&(e.xp6(1),e.Q6J("ngIf",null==v.appConfig?null:v.appConfig.allowPasswordUpdate),e.xp6(4),e.Q6J("icon",v.faUserClock),e.xp6(4),e.Q6J("icon",v.faInfoCircle),e.xp6(5),e.Oqu(v.appConfig.enable2FA?"Disable 2FA":"Enable 2FA"))},dependencies:[ji.O5,$t._Y,$t.Fj,$t.JJ,$t.JL,$t.Q7,$t.On,$t.F,Ma.BN,Wi.xw,Wi.Wh,Wi.yH,_i.lW,Wa.Nt,Mi.KE,Mi.hX,Mi.TO,zo.d,xn.h]});var Ao=p(6338);function Os(F,M){1&F&&e._UZ(0,"mat-divider",7)}function o1(F,M){if(1&F&&(e.TgZ(0,"div",4)(1,"pre",5),e._uU(2),e.ALo(3,"json"),e.qZA(),e.YNc(4,Os,1,0,"mat-divider",6),e.qZA()),2&F){const v=e.oxw();e.xp6(2),e.Oqu(e.lcZ(3,2,v.configData)),e.xp6(2),e.Q6J("ngIf",""!==v.configData)}}function Kc(F,M){if(1&F&&(e.TgZ(0,"h2"),e._uU(1),e.qZA()),2&F){const v=e.oxw().$implicit;e.xp6(1),e.Oqu(v)}}function Ps(F,M){if(1&F&&(e.TgZ(0,"h4",14),e._uU(1),e.qZA()),2&F){const v=e.oxw().$implicit;e.xp6(1),e.Oqu(v)}}function q0(F,M){1&F&&e._UZ(0,"mat-divider",15),2&F&&e.Q6J("inset",!0)}function Al(F,M){if(1&F&&(e.TgZ(0,"mat-list-item")(1,"mat-card-subtitle",7),e.YNc(2,Kc,2,1,"h2",10),e.qZA(),e.TgZ(3,"mat-card-subtitle",11),e.YNc(4,Ps,2,1,"h4",12),e.qZA(),e.YNc(5,q0,1,1,"mat-divider",13),e.qZA()),2&F){const v=M.$implicit;e.xp6(2),e.Q6J("ngIf",v.indexOf("[")>=0),e.xp6(2),e.Q6J("ngIf",v.indexOf("[")<0),e.xp6(1),e.Q6J("ngIf",v.indexOf("[")<0)}}function da(F,M){if(1&F&&(e.TgZ(0,"div",8)(1,"mat-list"),e.YNc(2,Al,6,3,"mat-list-item",9),e.qZA()()),2&F){const v=e.oxw();e.xp6(2),e.Q6J("ngForOf",v.configData)}}class Ll{constructor(M,v,Z){this.store=M,this.rtlEffects=v,this.router=Z,this.configData="",this.fileFormat="INI",this.faCog=Xi.b7W,this.unSubs=[new zi.x,new zi.x]}ngOnInit(){this.store.dispatch((0,jt.Q2)({payload:"bitcoind"})),this.rtlEffects.showLnConfig.pipe((0,an.R)(this.unSubs[1])).subscribe(M=>{const v=M.data;this.fileFormat=M.format,this.configData=""===v||!v||"INI"!==this.fileFormat&&"HOCON"!==this.fileFormat?""!==v&&v&&"JSON"===this.fileFormat?v:"":v.split("\n")})}ngOnDestroy(){this.unSubs.forEach(M=>{M.next(null),M.complete()})}}function X1(F,M){1&F&&(e.TgZ(0,"mat-error"),e._uU(1,"Password is required."),e.qZA())}Ll.\u0275fac=function(M){return new(M||Ll)(e.Y36(ki.yh),e.Y36(Ea.V),e.Y36(Bn.F0))},Ll.\u0275cmp=e.Xpm({type:Ll,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(M,v){1&M&&(e.TgZ(0,"div",0)(1,"div",1),e.YNc(2,o1,5,4,"div",2),e.YNc(3,da,3,1,"div",3),e.qZA()()),2&M&&(e.xp6(2),e.Q6J("ngIf",""!==v.configData&&"JSON"===v.fileFormat),e.xp6(1),e.Q6J("ngIf",""!==v.configData&&("INI"===v.fileFormat||"HOCON"===v.fileFormat)))},dependencies:[ji.sg,ji.O5,Wi.xw,Wi.Wh,Wi.yH,Ie.$j,Ao.i$,Ao.Tg,zo.d,ji.Ts],styles:["h4[_ngcontent-%COMP%]{word-break:break-word}"]});class Qc{constructor(M,v,Z){this.dialogRef=M,this.store=v,this.rtlEffects=Z,this.password="",this.isAuthenticated=!1,this.unSubs=[new zi.x,new zi.x]}ngOnInit(){this.rtlEffects.isAuthorizedRes.pipe((0,ya.q)(1)).subscribe(M=>{"ERROR"!==M?(this.isAuthenticated=!0,this.store.dispatch((0,jt.M6)({payload:this.isAuthenticated}))):this.isAuthenticated=!1})}onAuthenticate(){if(!this.password)return!0;this.store.dispatch((0,jt.QO)({payload:Sa(this.password)}))}onClose(){this.store.dispatch((0,jt.M6)({payload:this.isAuthenticated}))}ngOnDestroy(){this.unSubs.forEach(M=>{M.next(null),M.complete()})}}Qc.\u0275fac=function(M){return new(M||Qc)(e.Y36(xa.so),e.Y36(ki.yh),e.Y36(Ea.V))},Qc.\u0275cmp=e.Xpm({type:Qc,selectors:[["rtl-is-authorized"]],decls:18,vars:2,consts:[["fxLayout","column","fxLayout.gt-sm","row","fxLayoutAlign","space-between stretch"],["fxFlex","100"],["fxLayout","row","fxLayoutAlign","space-between center",1,"modal-info-header"],["fxFlex","95","fxLayoutAlign","start start"],[1,"page-title"],["tabindex","3","fxFlex","5","fxLayoutAlign","center center","mat-button","",1,"btn-close-x","p-0",3,"click"],["fxLayout","row",1,"padding-gap-x-large"],["fxLayout","column","fxFlex","100","fxLayoutAlign","start stretch"],["autoFocus","","matInput","","type","password","id","password","name","password","tabindex","1","required","",3,"ngModel","ngModelChange"],[4,"ngIf"],["fxLayout","row","fxFlex","100","fxLayoutAlign","end center",1,"mt-1"],["mat-button","","color","primary","tabindex","2","type","submit","default","",3,"click"]],template:function(M,v){1&M&&(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 v.onClose()}),e._uU(7,"X"),e.qZA()(),e.TgZ(8,"mat-card-content",6)(9,"form",7)(10,"mat-form-field")(11,"mat-label"),e._uU(12,"Password"),e.qZA(),e.TgZ(13,"input",8),e.NdJ("ngModelChange",function(_e){return v.password=_e}),e.qZA(),e.YNc(14,X1,2,0,"mat-error",9),e.qZA(),e.TgZ(15,"div",10)(16,"button",11),e.NdJ("click",function(){return v.onAuthenticate()}),e._uU(17,"Confirm"),e.qZA()()()()()()),2&M&&(e.xp6(13),e.Q6J("ngModel",v.password),e.xp6(1),e.Q6J("ngIf",!v.password))},dependencies:[ji.O5,$t._Y,$t.Fj,$t.JJ,$t.JL,$t.Q7,$t.On,$t.F,Wi.xw,Wi.Wh,Wi.yH,_i.lW,Ie.dn,Ie.dk,Wa.Nt,Mi.KE,Mi.hX,Mi.TO,xn.h]});const u2=function(){return{initial:!1}};function $1(F,M){if(1&F){const v=e.EpF();e.TgZ(0,"div",12),e.NdJ("click",function(){e.CHM(v);const _e=e.oxw();return e.KtG(_e.activeLink=_e.links[2].link)}),e._uU(1),e.qZA()}if(2&F){const v=e.oxw();e.s9C("routerLink",v.links[2].link),e.Q6J("active",v.activeLink===v.links[2].link)("state",e.DdM(4,u2)),e.xp6(1),e.Oqu(v.links[2].name)}}function ls(F,M){if(1&F){const v=e.EpF();e.TgZ(0,"div",6),e.NdJ("click",function(){e.CHM(v);const _e=e.oxw();return e.KtG(_e.activeLink=_e.links[3].link)}),e._uU(1),e.qZA()}if(2&F){const v=e.oxw();e.s9C("routerLink",v.links[3].link),e.Q6J("active",v.activeLink===v.links[3].link),e.xp6(1),e.Oqu(v.links[3].name)}}function f2(F,M){if(1&F){const v=e.EpF();e.TgZ(0,"div",13),e.NdJ("click",function(){e.CHM(v);const _e=e.oxw();return e.KtG(_e.showLnConfigClicked())}),e._uU(1),e.qZA()}if(2&F){const v=e.oxw();e.Q6J("active",v.activeLink===v.links[4].link),e.xp6(1),e.Oqu(v.links[4].name)}}class Vo{constructor(M,v,Z,_e){this.store=M,this.router=v,this.rtlEffects=Z,this.activatedRoute=_e,this.faTools=Xi.CgH,this.showLnConfig=!1,this.lnImplementationStr="",this.links=[{link:"nodesettings",name:"Node Settings"},{link:"pglayout",name:"Page Layout"},{link:"services",name:"Services"},{link:"experimental",name:"Experimental"},{link:"lnconfig",name:this.lnImplementationStr}],this.activeLink="",this.unSubs=[new zi.x,new zi.x,new zi.x,new zi.x,new zi.x]}ngOnInit(){const M=this.links.find(v=>this.router.url.includes(v.link));this.activeLink=M?M.link:this.links[0].link,this.router.events.pipe((0,an.R)(this.unSubs[0]),(0,Ra.h)(v=>v instanceof Bn.Av)).subscribe({next:v=>{const Z=this.links.find(_e=>v.urlAfterRedirects.includes(_e.link));this.activeLink=Z?Z.link:this.links[0].link}}),this.store.select(ba.Yj).pipe((0,an.R)(this.unSubs[1])).subscribe(v=>{this.appConfig=v}),this.store.select(ba.dT).pipe((0,an.R)(this.unSubs[2])).subscribe(v=>{switch(this.showLnConfig=!1,this.selNode=v,this.selNode.lnImplementation?.toUpperCase()){case"CLN":this.lnImplementationStr="Core Lightning Config";break;case"ECL":this.lnImplementationStr="Eclair Config";break;default:this.lnImplementationStr="LND Config"}this.selNode.authentication&&this.selNode.authentication.configPath&&""!==this.selNode.authentication.configPath.trim()&&(this.links[4].name=this.lnImplementationStr,this.showLnConfig=!0)})}showLnConfigClicked(){this.appConfig.sso.rtlSSO?(this.activeLink=this.links[4].link,this.router.navigate(["./"+this.activeLink],{relativeTo:this.activatedRoute})):(this.store.dispatch((0,jt.qR)({payload:{maxWidth:"50rem",data:{component:Qc}}})),this.rtlEffects.closeAlert.pipe((0,an.R)(this.unSubs[3])).subscribe(M=>{M&&(this.activeLink=this.links[4].link,this.router.navigate(["./"+this.activeLink],{relativeTo:this.activatedRoute}))}))}ngOnDestroy(){this.unSubs.forEach(M=>{M.next(null),M.complete()})}}function ic(F,M){1&F&&e._UZ(0,"mat-divider",7)}function J0(F,M){if(1&F&&(e.TgZ(0,"div",4)(1,"pre",5),e._uU(2),e.ALo(3,"json"),e.qZA(),e.YNc(4,ic,1,0,"mat-divider",6),e.qZA()),2&F){const v=e.oxw();e.xp6(2),e.Oqu(e.lcZ(3,2,v.configData)),e.xp6(2),e.Q6J("ngIf",""!==v.configData)}}function rr(F,M){if(1&F&&(e.TgZ(0,"h2"),e._uU(1),e.qZA()),2&F){const v=e.oxw().$implicit;e.xp6(1),e.Oqu(v)}}function qc(F,M){if(1&F&&(e.TgZ(0,"h4",14),e._uU(1),e.qZA()),2&F){const v=e.oxw().$implicit;e.xp6(1),e.Oqu(v)}}function Jc(F,M){1&F&&e._UZ(0,"mat-divider",15),2&F&&e.Q6J("inset",!0)}function pe(F,M){if(1&F&&(e.TgZ(0,"mat-list-item")(1,"mat-card-subtitle",7),e.YNc(2,rr,2,1,"h2",10),e.qZA(),e.TgZ(3,"mat-card-subtitle",11),e.YNc(4,qc,2,1,"h4",12),e.qZA(),e.YNc(5,Jc,1,1,"mat-divider",13),e.qZA()),2&F){const v=M.$implicit;e.xp6(2),e.Q6J("ngIf",v.indexOf("[")>=0),e.xp6(2),e.Q6J("ngIf",v.indexOf("[")<0),e.xp6(1),e.Q6J("ngIf",v.indexOf("[")<0)}}function Me(F,M){if(1&F&&(e.TgZ(0,"div",8)(1,"mat-list"),e.YNc(2,pe,6,3,"mat-list-item",9),e.qZA()()),2&F){const v=e.oxw();e.xp6(2),e.Q6J("ngForOf",v.configData)}}Vo.\u0275fac=function(M){return new(M||Vo)(e.Y36(ki.yh),e.Y36(Bn.F0),e.Y36(Ea.V),e.Y36(Bn.gz))},Vo.\u0275cmp=e.Xpm({type:Vo,selectors:[["rtl-node-config"]],decls:19,vars:11,consts:[["fxLayout","row","fxLayoutAlign","start center",1,"page-title-container"],[1,"page-title-img","mr-1",3,"icon"],[1,"page-title"],["fxLayout","column",1,"padding-gap-x"],["fxLayout","column"],["mat-tab-nav-bar","","mat-stretch-tabs","false","mat-align-tabs","start",3,"tabPanel"],["role","tab","mat-tab-link","",1,"mat-tab-label",3,"active","routerLink","click"],["role","tab","mat-tab-link","","class","mat-tab-label",3,"active","routerLink","state","click",4,"ngIf"],["role","tab","mat-tab-link","","class","mat-tab-label",3,"active","routerLink","click",4,"ngIf"],["role","tab","mat-tab-link","","class","mat-tab-label",3,"active","click",4,"ngIf"],["tabPanel",""],["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between stretch",1,"mat-tab-body-wrapper","mb-2"],["role","tab","mat-tab-link","",1,"mat-tab-label",3,"active","routerLink","state","click"],["role","tab","mat-tab-link","",1,"mat-tab-label",3,"active","click"]],template:function(M,v){if(1&M&&(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 v.activeLink=v.links[0].link}),e._uU(9),e.qZA(),e.TgZ(10,"div",6),e.NdJ("click",function(){return v.activeLink=v.links[1].link}),e._uU(11),e.qZA(),e.YNc(12,$1,2,5,"div",7),e.YNc(13,ls,2,3,"div",8),e.YNc(14,f2,2,2,"div",9),e.qZA(),e._UZ(15,"mat-tab-nav-panel",null,10),e.TgZ(17,"div",11),e._UZ(18,"router-outlet"),e.qZA()()()()),2&M){const Z=e.MAs(16);e.xp6(1),e.Q6J("icon",v.faTools),e.xp6(6),e.Q6J("tabPanel",Z),e.xp6(1),e.s9C("routerLink",v.links[0].link),e.Q6J("active",v.activeLink===v.links[0].link),e.xp6(1),e.Oqu(v.links[0].name),e.xp6(1),e.s9C("routerLink",v.links[1].link),e.Q6J("active",v.activeLink===v.links[1].link),e.xp6(1),e.Oqu(v.links[1].name),e.xp6(1),e.Q6J("ngIf","LND"===(null==v.selNode||null==v.selNode.lnImplementation?null:v.selNode.lnImplementation.toUpperCase())),e.xp6(1),e.Q6J("ngIf","CLN"===(null==v.selNode||null==v.selNode.lnImplementation?null:v.selNode.lnImplementation.toUpperCase())),e.xp6(1),e.Q6J("ngIf",v.showLnConfig)}},dependencies:[ji.O5,Ma.BN,Wi.xw,Wi.Wh,Wi.yH,Ie.a8,Ie.dn,gt.BU,gt.sW,gt.Nj,Bn.lC,Bn.rH]});class re{constructor(M,v,Z){this.store=M,this.rtlEffects=v,this.router=Z,this.configData="",this.fileFormat="INI",this.faCog=Xi.b7W,this.unSubs=[new zi.x,new zi.x]}ngOnInit(){this.store.dispatch((0,jt.Q2)({payload:"ln"})),this.rtlEffects.showLnConfig.pipe((0,an.R)(this.unSubs[1])).subscribe(M=>{const v=M.data;this.fileFormat=M.format,this.configData=""===v||!v||"INI"!==this.fileFormat&&"HOCON"!==this.fileFormat?""!==v&&v&&"JSON"===this.fileFormat?v:"":v.split("\n")})}ngOnDestroy(){this.unSubs.forEach(M=>{M.next(null),M.complete()})}}re.\u0275fac=function(M){return new(M||re)(e.Y36(ki.yh),e.Y36(Ea.V),e.Y36(Bn.F0))},re.\u0275cmp=e.Xpm({type:re,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(M,v){1&M&&(e.TgZ(0,"div",0)(1,"div",1),e.YNc(2,J0,5,4,"div",2),e.YNc(3,Me,3,1,"div",3),e.qZA()()),2&M&&(e.xp6(2),e.Q6J("ngIf",""!==v.configData&&"JSON"===v.fileFormat),e.xp6(1),e.Q6J("ngIf",""!==v.configData&&("INI"===v.fileFormat||"HOCON"===v.fileFormat)))},dependencies:[ji.sg,ji.O5,Wi.xw,Wi.Wh,Wi.yH,Ie.$j,Ao.i$,Ao.Tg,zo.d,ji.Ts],styles:["h4[_ngcontent-%COMP%]{word-break:break-word}"]});var Ne=p(2994),nt=p(429),At=p(6523),Ft=p(62),fi=p(5829),Di=p(752),sn=p(1948),qi=p(455);function qn(F,M){if(1&F&&(e.TgZ(0,"mat-option",35),e._uU(1),e.qZA()),2&F){const v=M.$implicit;e.Q6J("value",v.id),e.xp6(1),e.hij(" ",v.id," ")}}function Ta(F,M){1&F&&(e.TgZ(0,"mat-error"),e._uU(1,"Currency unit is required."),e.qZA())}function za(F,M){if(1&F&&(e.TgZ(0,"mat-radio-button",36),e._uU(1),e.ALo(2,"titlecase"),e.qZA()),2&F){const v=M.$implicit,Z=e.oxw();e.Q6J("value",v)("checked",Z.selNode.settings.userPersona===v),e.xp6(1),e.hij(" ",e.lcZ(2,3,v)," ")}}function Aa(F,M){if(1&F&&(e.TgZ(0,"mat-radio-button",37),e._uU(1),e.qZA()),2&F){const v=M.$implicit;e.Q6J("value",v),e.xp6(1),e.hij("",v.name," ")}}const ds=function(F){return{skin:!0,"selected-color":F}};function ao(F,M){if(1&F){const v=e.EpF();e.TgZ(0,"span",38)(1,"div",39),e.NdJ("click",function(){const bt=e.CHM(v).$implicit,Zt=e.oxw();return e.KtG(Zt.changeThemeColor(bt.id))}),e.ALo(2,"lowercase"),e.qZA(),e._uU(3),e.qZA()}if(2&F){const v=M.$implicit,Z=e.oxw();e.xp6(1),e.Tol(e.lcZ(2,4,v.id)),e.Q6J("ngClass",e.VKq(6,ds,Z.selectedThemeColor===v.id)),e.xp6(2),e.hij(" ",v.name," ")}}class Rs{constructor(M,v,Z){this.logger=M,this.commonService=v,this.store=Z,this.faExclamationTriangle=Xi.eHv,this.faMoneyBillAlt=Xi.co4,this.faPaintBrush=Xi.XsY,this.faInfoCircle=Xi.sqG,this.faEyeSlash=Xi.Aq,this.userPersonas=[Pe.ol.OPERATOR,Pe.ol.MERCHANT],this.currencyUnits=Pe.Er,this.themeModes=Pe.wZ.modes,this.themeColors=Pe.wZ.themes,this.selectedThemeMode=Pe.wZ.modes[0],this.selectedThemeColor=Pe.wZ.themes[0].id,this.currencyUnit="BTC",this.smallerCurrencyUnit="Sats",this.showSettingOption=!0,this.screenSize="",this.screenSizeEnum=Pe.cu,this.unSubs=[new zi.x,new zi.x],this.screenSize=this.commonService.getScreenSize()}ngOnInit(){this.store.select(ba.dT).pipe((0,an.R)(this.unSubs[0])).subscribe(M=>{this.selNode=M,this.selectedThemeMode=this.themeModes.find(v=>this.selNode.settings.themeMode===v.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(M)})}onCurrencyChange(M){this.selNode.settings.currencyUnits=[...Pe.uA,M.value],this.store.dispatch((0,At.JT)({payload:{userPersona:this.selNode.settings.userPersona,channelBackupPath:this.selNode.settings.channelBackupPath,selCurrencyUnit:M.value,currencyUnits:this.selNode.settings.currencyUnits,fiatConversion:this.selNode.settings.fiatConversion,unannouncedChannels:this.selNode.settings.unannouncedChannels,lnImplementation:this.selNode.lnImplementation,swapServerUrl:this.selNode.settings.swapServerUrl,boltzServerUrl:this.selNode.settings.boltzServerUrl}})),this.store.dispatch((0,nt.oo)({payload:{userPersona:this.selNode.settings.userPersona,channelBackupPath:this.selNode.settings.channelBackupPath,selCurrencyUnit:M.value,currencyUnits:this.selNode.settings.currencyUnits,fiatConversion:this.selNode.settings.fiatConversion,unannouncedChannels:this.selNode.settings.unannouncedChannels,lnImplementation:this.selNode.lnImplementation,swapServerUrl:this.selNode.settings.swapServerUrl,boltzServerUrl:this.selNode.settings.boltzServerUrl}})),this.store.dispatch((0,Ne.Zr)({payload:{userPersona:this.selNode.settings.userPersona,channelBackupPath:this.selNode.settings.channelBackupPath,selCurrencyUnit:M.value,currencyUnits:this.selNode.settings.currencyUnits,fiatConversion:this.selNode.settings.fiatConversion,unannouncedChannels:this.selNode.settings.unannouncedChannels,lnImplementation:this.selNode.lnImplementation,swapServerUrl:this.selNode.settings.swapServerUrl,boltzServerUrl:this.selNode.settings.boltzServerUrl}}))}toggleSettings(M,v){this.selNode.settings[M]=!this.selNode.settings[M]}changeThemeColor(M){this.selectedThemeColor=M,this.selNode.settings.themeColor=M}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,jt.zQ)({payload:{uiMessage:Pe.m6.UPDATE_NODE_SETTINGS,settings:this.selNode.settings}})),this.store.dispatch((0,At.JT)({payload:{userPersona:this.selNode.settings.userPersona,channelBackupPath:this.selNode.settings.channelBackupPath,selCurrencyUnit:this.selNode.settings.currencyUnit,currencyUnits:this.selNode.settings.currencyUnits,fiatConversion:this.selNode.settings.fiatConversion,unannouncedChannels:this.selNode.settings.unannouncedChannels,lnImplementation:this.selNode.lnImplementation,swapServerUrl:this.selNode.settings.swapServerUrl,boltzServerUrl:this.selNode.settings.boltzServerUrl}})),this.store.dispatch((0,nt.oo)({payload:{userPersona:this.selNode.settings.userPersona,channelBackupPath:this.selNode.settings.channelBackupPath,selCurrencyUnit:this.selNode.settings.currencyUnit,currencyUnits:this.selNode.settings.currencyUnits,fiatConversion:this.selNode.settings.fiatConversion,unannouncedChannels:this.selNode.settings.unannouncedChannels,lnImplementation:this.selNode.lnImplementation,swapServerUrl:this.selNode.settings.swapServerUrl,boltzServerUrl:this.selNode.settings.boltzServerUrl}})),this.store.dispatch((0,Ne.Zr)({payload:{userPersona:this.selNode.settings.userPersona,channelBackupPath:this.selNode.settings.channelBackupPath,selCurrencyUnit:this.selNode.settings.currencyUnit,currencyUnits:this.selNode.settings.currencyUnits,fiatConversion:this.selNode.settings.fiatConversion,unannouncedChannels:this.selNode.settings.unannouncedChannels,lnImplementation:this.selNode.lnImplementation,swapServerUrl:this.selNode.settings.swapServerUrl,boltzServerUrl:this.selNode.settings.boltzServerUrl}}))}onResetSettings(){const M=this.selNode.index||-1;this.selNode.settings=this.previousSettings,this.selectedThemeMode=this.themeModes.find(v=>v.id===this.previousSettings.themeMode)||this.themeModes[0],this.selectedThemeColor=this.previousSettings.themeColor,this.store.dispatch((0,jt.fk)({payload:{uiMessage:Pe.m6.NO_SPINNER,prevLnNodeIndex:+M,currentLnNode:this.selNode,isInitialSetup:!0}}))}ngOnDestroy(){this.unSubs.forEach(M=>{M.next(),M.complete()})}}Rs.\u0275fac=function(M){return new(M||Rs)(e.Y36(li.mQ),e.Y36(Ft.v),e.Y36(ki.yh))},Rs.\u0275cmp=e.Xpm({type:Rs,selectors:[["rtl-node-settings"]],decls:78,vars:18,consts:[["fxLayout","column","fxFlex","100","fxLayoutAlign","start stretch",3,"perfectScrollbar"],["fxLayout","column","fxLayoutAlign","start stretch",1,"settings-container","page-sub-title-container"],["form","ngForm"],["displayMode","flat","multi","false"],["fxLayout","column",1,"flat-expansion-panel","mt-1"],[1,"page-title-img","mr-1",3,"icon"],[1,"page-title"],["fxLayout","column","fxLayoutAlign","start stretch"],["fxLayout","row","fxFlex","100",1,"alert","alert-info","mb-1"],[1,"mr-1","alert-icon",3,"icon"],["fxLayout","row wrap","fxLayoutAlign","start center"],["tabindex","1","color","primary","name","unannouncedChannels",3,"ngModel","ngModelChange","change"],["fxFlex","100",1,"alert","alert-warn"],["href","https://www.blockchain.com/api/exchange_rates_api","target","blank"],["tabindex","2","color","primary","name","fiatConversion",1,"mr-2",3,"ngModel","ngModelChange","change"],["autoFocus","","tabindex","3","name","currencyUnit",3,"disabled","required","ngModel","ngModelChange","selectionChange"],["currencyUnit","ngModel"],[3,"value",4,"ngFor","ngForOf"],[4,"ngIf"],["fxLayout","row","fxFlex","100",1,"alert","alert-info","mb-0"],["fxLayout","column","fxLayoutAlign","start start","fxFlex","100"],["color","primary","tabindex","1","name","userPersona",1,"radio-group",3,"ngModel","ngModelChange"],["class","radio-text mr-4",3,"value","checked",4,"ngFor","ngForOf"],[1,"mt-1"],["fxLayout","column","fxFlex","100","fxLayoutAlign","start start"],["color","primary","name","themeMode",1,"radio-group",3,"ngModel","ngModelChange","change"],["tabindex","5","class","radio-text mr-4",3,"value",4,"ngFor","ngForOf"],["fxLayout","column","fxLayout.gt-xs","row","fxFlex","100","fxLayoutAlign","space-between stretch","fxLayoutAlign.gt-xs","start stretch"],["fxLayout","column","fxFlex.gt-xs","50","fxFlex.gt-md","40","fxLayoutAlign","space-between stretch"],["fxLayout","row","fxFlex","100","fxLayoutAlign","space-between start"],["fxLayout","row","class","theme-name",4,"ngFor","ngForOf"],["fxLayout","column","fxLayoutAlign","start start",1,"mt-1"],["fxLayout","row"],["mat-stroked-button","","color","primary","tabindex","10",1,"mr-1",3,"click"],["mat-flat-button","","color","primary","tabindex","11",3,"click"],[3,"value"],[1,"radio-text","mr-4",3,"value","checked"],["tabindex","5",1,"radio-text","mr-4",3,"value"],["fxLayout","row",1,"theme-name"],["tabindex","9",3,"ngClass","click"]],template:function(M,v){1&M&&(e.TgZ(0,"div",0)(1,"form",1,2)(3,"mat-accordion",3)(4,"mat-expansion-panel",4)(5,"mat-expansion-panel-header")(6,"mat-panel-title"),e._UZ(7,"fa-icon",5),e.TgZ(8,"span",6),e._uU(9,"Open Unannounced Channels"),e.qZA()()(),e.TgZ(10,"div",7)(11,"div",8),e._UZ(12,"fa-icon",9),e.TgZ(13,"span"),e._uU(14,"Use this control to toggle setting which defaults to opening unannounced channels only."),e.qZA()(),e.TgZ(15,"div",10)(16,"mat-slide-toggle",11),e.NdJ("ngModelChange",function(_e){return v.selNode.settings.unannouncedChannels=_e})("change",function(){return!v.selNode.settings.unannouncedChannels}),e._uU(17,"Open Unannounced Channels"),e.qZA()()()(),e.TgZ(18,"mat-expansion-panel",4)(19,"mat-expansion-panel-header")(20,"mat-panel-title"),e._UZ(21,"fa-icon",5),e.TgZ(22,"span",6),e._uU(23,"Balance Display"),e.qZA()()(),e.TgZ(24,"div",7)(25,"div",12),e._UZ(26,"fa-icon",9),e.TgZ(27,"span"),e._uU(28,"Fiat conversion calls "),e.TgZ(29,"strong")(30,"a",13),e._uU(31,"Blockchain.com"),e.qZA()(),e._uU(32," API to get conversion rates."),e.qZA()(),e.TgZ(33,"div",10)(34,"mat-slide-toggle",14),e.NdJ("ngModelChange",function(_e){return v.selNode.settings.fiatConversion=_e})("change",function(){return!v.selNode.settings.currencyUnit}),e._uU(35,"Enable Fiat Conversion"),e.qZA(),e.TgZ(36,"mat-form-field")(37,"mat-label"),e._uU(38,"Fiat Currency"),e.qZA(),e.TgZ(39,"mat-select",15,16),e.NdJ("ngModelChange",function(_e){return v.selNode.settings.currencyUnit=_e})("selectionChange",function(_e){return v.onCurrencyChange(_e)}),e.YNc(41,qn,2,2,"mat-option",17),e.qZA(),e.YNc(42,Ta,2,0,"mat-error",18),e.qZA()()()(),e.TgZ(43,"mat-expansion-panel",4)(44,"mat-expansion-panel-header")(45,"mat-panel-title"),e._UZ(46,"fa-icon",5),e.TgZ(47,"span",6),e._uU(48,"Customization"),e.qZA()()(),e.TgZ(49,"div",7)(50,"div",19),e._UZ(51,"fa-icon",9),e.TgZ(52,"span"),e._uU(53,"Dashboard layout will be tailored based on the role selected to better serve its needs."),e.qZA()(),e.TgZ(54,"div",20)(55,"h4"),e._uU(56,"Dashboard Layout"),e.qZA(),e.TgZ(57,"mat-radio-group",21),e.NdJ("ngModelChange",function(_e){return v.selNode.settings.userPersona=_e}),e.YNc(58,za,3,5,"mat-radio-button",22),e.qZA()(),e._UZ(59,"mat-divider",23),e.TgZ(60,"div",24)(61,"h4"),e._uU(62,"Mode"),e.qZA(),e.TgZ(63,"mat-radio-group",25),e.NdJ("ngModelChange",function(_e){return v.selectedThemeMode=_e})("change",function(){return v.chooseThemeMode()}),e.YNc(64,Aa,2,2,"mat-radio-button",26),e.qZA()(),e._UZ(65,"mat-divider",23),e.TgZ(66,"div",27)(67,"div",28)(68,"h4"),e._uU(69,"Themes"),e.qZA(),e.TgZ(70,"div",29),e.YNc(71,ao,4,8,"span",30),e.qZA()()()()()()(),e.TgZ(72,"div",31)(73,"div",32)(74,"button",33),e.NdJ("click",function(){return v.onResetSettings()}),e._uU(75,"Reset"),e.qZA(),e.TgZ(76,"button",34),e.NdJ("click",function(){return v.onUpdateSettings()}),e._uU(77,"Update"),e.qZA()()()()),2&M&&(e.xp6(7),e.Q6J("icon",v.faEyeSlash),e.xp6(5),e.Q6J("icon",v.faInfoCircle),e.xp6(4),e.Q6J("ngModel",v.selNode.settings.unannouncedChannels),e.xp6(5),e.Q6J("icon",v.faMoneyBillAlt),e.xp6(5),e.Q6J("icon",v.faExclamationTriangle),e.xp6(8),e.Q6J("ngModel",v.selNode.settings.fiatConversion),e.xp6(5),e.Q6J("disabled",!v.selNode.settings.fiatConversion)("required",v.selNode.settings.fiatConversion)("ngModel",v.selNode.settings.currencyUnit),e.xp6(2),e.Q6J("ngForOf",v.currencyUnits),e.xp6(1),e.Q6J("ngIf",v.selNode.settings.fiatConversion&&!v.selNode.settings.currencyUnit),e.xp6(4),e.Q6J("icon",v.faPaintBrush),e.xp6(5),e.Q6J("icon",v.faInfoCircle),e.xp6(6),e.Q6J("ngModel",v.selNode.settings.userPersona),e.xp6(1),e.Q6J("ngForOf",v.userPersonas),e.xp6(5),e.Q6J("ngModel",v.selectedThemeMode),e.xp6(1),e.Q6J("ngForOf",v.themeModes),e.xp6(7),e.Q6J("ngForOf",v.themeColors))},dependencies:[ji.mk,ji.sg,ji.O5,$t._Y,$t.JJ,$t.JL,$t.Q7,$t.On,$t.F,Ma.BN,Wi.xw,Wi.Wh,Wi.yH,fi.oO,_i.lW,Di.pp,Di.ib,Di.yz,Di.yK,Mi.KE,Mi.hX,Mi.TO,zo.d,sn.VQ,sn.U0,Hi.gD,Zi.ey,qi.Rr,nn.$V,xn.h,ji.i8,ji.rS],styles:["h4[_ngcontent-%COMP%]{margin:.75rem 0 .5rem}.theme-name[_ngcontent-%COMP%]{min-width:10rem}@media only screen and (max-width: 37.5em){.theme-name[_ngcontent-%COMP%]{min-width:unset}}.skin[_ngcontent-%COMP%]{width:1.25rem;height:1.25rem;border-radius:50%;cursor:pointer;margin-right:.5rem}.skin.selected-color[_ngcontent-%COMP%]{width:1rem;height:1rem;border:2px solid}.skin.purple[_ngcontent-%COMP%]{background-color:#5e4ea5}.skin.indigo[_ngcontent-%COMP%]{background-color:#3f51b5}.skin.teal[_ngcontent-%COMP%]{background-color:#00695c}.skin.pink[_ngcontent-%COMP%]{background-color:#d81b60}.skin.yellow[_ngcontent-%COMP%]{background-color:#a1842c}"]});var hs=p(1365),Dl=p(9828),Bo=p(6529),Il=p(2501),us=p(7392),Xc=p(266),nc=p(9445);const Cc=function(F){return{error:F}};function ac(F,M){if(1&F&&e.GkF(0,14),2&F){const v=e.oxw(),Z=e.MAs(18);e.Q6J("ngTemplateOutlet",Z)("ngTemplateOutletContext",e.VKq(2,Cc,v.errorMessage))}}function X0(F,M){if(1&F&&(e.TgZ(0,"mat-option",31),e._uU(1),e.qZA()),2&F){const v=M.$implicit;e.Q6J("value",v),e.xp6(1),e.hij(" ",v," ")}}function m2(F,M){if(1&F&&(e.TgZ(0,"mat-option",31),e._uU(1),e.ALo(2,"camelCaseWithSpaces"),e.ALo(3,"camelcaseWithReplace"),e.qZA()),2&F){const v=M.$implicit,Z=e.oxw(3);e.Q6J("value",v),e.xp6(1),e.hij(" ","ECL"===Z.selNode.lnImplementation?e.lcZ(2,2,v):e.xi3(3,4,v,"_")," ")}}function wc(F,M){if(1&F&&(e.TgZ(0,"mat-option",31),e._uU(1),e.qZA()),2&F){const v=M.$implicit;e.Q6J("value",v),e.xp6(1),e.hij(" ","desc"===v?"Descending":"Ascending"," ")}}function s1(F,M){if(1&F&&(e.TgZ(0,"mat-option",34),e._uU(1),e.ALo(2,"camelCaseWithSpaces"),e.ALo(3,"camelcaseWithReplace"),e.qZA()),2&F){const v=M.$implicit,Z=e.oxw(2).$implicit,_e=e.oxw(2);e.Q6J("value",v.column)("disabled",Z.columnSelection.length<=2&&Z.columnSelection.includes(v.column)),e.xp6(1),e.hij(" ",v.label?v.label:"ECL"===_e.selNode.lnImplementation?e.lcZ(2,3,v.column):e.xi3(3,5,v.column,"_")," ")}}function $0(F,M){if(1&F){const v=e.EpF();e.TgZ(0,"mat-form-field",32)(1,"mat-label"),e._uU(2,"Column selection (Desktop Resolution)"),e.qZA(),e.TgZ(3,"mat-select",33),e.NdJ("ngModelChange",function(_e){e.CHM(v);const bt=e.oxw().$implicit;return e.KtG(bt.columnSelection=_e)})("selectionChange",function(){e.CHM(v);const _e=e.oxw().$implicit,bt=e.oxw(2);return e.KtG(bt.oncolumnSelectionChange(_e))}),e.YNc(4,s1,4,8,"mat-option",28),e.qZA()()}if(2&F){const v=e.oxw().$implicit,Z=e.oxw().$implicit,_e=e.oxw();e.xp6(3),e.hYB("name","",Z.pageId,"",v.tableId,"-columns-selection"),e.Q6J("ngModel",v.columnSelection),e.xp6(1),e.Q6J("ngForOf",_e.nodePageDefs[Z.pageId][v.tableId].allowedColumns)}}function p2(F,M){if(1&F&&(e.TgZ(0,"mat-option",34),e._uU(1),e.ALo(2,"camelCaseWithSpaces"),e.ALo(3,"camelcaseWithReplace"),e.qZA()),2&F){const v=M.$implicit,Z=e.oxw().$implicit,_e=e.oxw(2);e.Q6J("value",v.column)("disabled",Z.columnSelectionSM.length<=1&&Z.columnSelectionSM.includes(v.column)||Z.columnSelectionSM.length>=3&&!Z.columnSelectionSM.includes(v.column)),e.xp6(1),e.hij(" ",v.label?v.label:"ECL"===_e.selNode.lnImplementation?e.lcZ(2,3,v.column):e.xi3(3,5,v.column,"_")," ")}}const Gu=function(F){return{"ml-minus-1":F}};function $c(F,M){if(1&F){const v=e.EpF();e.TgZ(0,"div",17)(1,"div",18)(2,"span",19),e._uU(3),e.ALo(4,"camelcaseWithReplace"),e.qZA(),e.TgZ(5,"mat-form-field",20)(6,"mat-label"),e._uU(7,"Records/Page"),e.qZA(),e.TgZ(8,"mat-select",21),e.NdJ("ngModelChange",function(_e){const Zt=e.CHM(v).$implicit;return e.KtG(Zt.recordsPerPage=_e)}),e.YNc(9,X0,2,2,"mat-option",22),e.qZA()(),e.TgZ(10,"mat-form-field",20)(11,"mat-label"),e._uU(12,"Sort By"),e.qZA(),e.TgZ(13,"mat-select",23),e.NdJ("ngModelChange",function(_e){const Zt=e.CHM(v).$implicit;return e.KtG(Zt.sortBy=_e)}),e.YNc(14,m2,4,7,"mat-option",22),e.qZA()(),e.TgZ(15,"mat-form-field",20)(16,"mat-label"),e._uU(17,"Sort Order"),e.qZA(),e.TgZ(18,"mat-select",24),e.NdJ("ngModelChange",function(_e){const Zt=e.CHM(v).$implicit;return e.KtG(Zt.sortOrder=_e)}),e.YNc(19,wc,2,2,"mat-option",22),e.qZA()(),e.YNc(20,$0,5,4,"mat-form-field",25),e.TgZ(21,"mat-form-field",26)(22,"mat-label"),e._uU(23,"Column Selection (Mobile Resolution)"),e.qZA(),e.TgZ(24,"mat-select",27),e.NdJ("ngModelChange",function(_e){const Zt=e.CHM(v).$implicit;return e.KtG(Zt.columnSelectionSM=_e)}),e.YNc(25,p2,4,8,"mat-option",28),e.qZA()(),e.TgZ(26,"button",29),e.NdJ("click",function(){const bt=e.CHM(v).$implicit,Zt=e.oxw().$implicit,ei=e.oxw();return e.KtG(ei.onTableReset(Zt.pageId,bt))}),e.TgZ(27,"mat-icon",30),e._uU(28,"restore"),e.qZA()()()()}if(2&F){const v=M.$implicit,Z=e.oxw().$implicit,_e=e.oxw();e.xp6(3),e.hij("",e.xi3(4,20,v.tableId,"_"),":"),e.xp6(5),e.hYB("name","",Z.pageId,"",v.tableId,"-page-size-options"),e.Q6J("disabled",_e.nodePageDefs[Z.pageId][v.tableId].disablePageSize)("ngModel",v.recordsPerPage),e.xp6(1),e.Q6J("ngForOf",_e.pageSizeOptions),e.xp6(4),e.hYB("name","",Z.pageId,"",v.tableId,"-sort-by"),e.Q6J("ngModel",v.sortBy),e.xp6(1),e.Q6J("ngForOf",v.columnSelection),e.xp6(4),e.hYB("name","",Z.pageId,"",v.tableId,"-sort-order"),e.Q6J("ngModel",v.sortOrder),e.xp6(1),e.Q6J("ngForOf",_e.sortOrders),e.xp6(1),e.Q6J("ngIf",_e.screenSize!==_e.screenSizeEnum.XS),e.xp6(4),e.hYB("name","",Z.pageId,"",v.tableId,"-columns-selection-sm"),e.Q6J("ngModel",v.columnSelectionSM),e.xp6(1),e.Q6J("ngForOf",_e.nodePageDefs[Z.pageId][v.tableId].allowedColumns),e.xp6(2),e.Q6J("ngClass",e.VKq(23,Gu,_e.screenSize===_e.screenSizeEnum.XS||_e.screenSize===_e.screenSizeEnum.SM))}}function Mc(F,M){if(1&F&&e.GkF(0,14),2&F){const v=e.oxw(2),Z=e.MAs(18);e.Q6J("ngTemplateOutlet",Z)("ngTemplateOutletContext",e.VKq(2,Cc,v.errorMessage))}}const ed=function(F){return{"error-border":F}};function g2(F,M){if(1&F&&(e.TgZ(0,"mat-expansion-panel",15)(1,"mat-expansion-panel-header")(2,"mat-panel-title"),e._uU(3),e.ALo(4,"camelcaseWithReplace"),e.qZA()(),e.YNc(5,$c,29,25,"div",16),e.YNc(6,Mc,1,4,"ng-container",6),e.qZA()),2&F){const v=M.$implicit,Z=e.oxw();e.Q6J("ngClass",e.VKq(7,ed,(null==Z.errorMessage?null:Z.errorMessage.page)===v.pageId)),e.xp6(3),e.Oqu(e.xi3(4,4,v.pageId,"_")),e.xp6(2),e.Q6J("ngForOf",v.tables),e.xp6(1),e.Q6J("ngIf",Z.errorMessage&&(null==Z.errorMessage?null:Z.errorMessage.page)===v.pageId)}}function _2(F,M){if(1&F&&(e.TgZ(0,"mat-panel-title"),e._uU(1),e.ALo(2,"titlecase"),e.qZA()),2&F){const v=e.oxw().error;e.xp6(1),e.hij("Page ",e.lcZ(2,1,v.page),"")}}function td(F,M){if(1&F&&(e.TgZ(0,"mat-list-item")(1,"mat-icon",39),e._uU(2,"close"),e.qZA(),e.TgZ(3,"span"),e._uU(4),e.qZA()()),2&F){const v=e.oxw().error;e.xp6(4),e.Oqu(v.message)}}function v2(F,M){if(1&F&&(e.TgZ(0,"mat-list-item")(1,"mat-icon",39),e._uU(2,"close"),e.qZA(),e.TgZ(3,"span"),e._uU(4),e.ALo(5,"titlecase"),e.qZA()()),2&F){const v=M.$implicit;e.xp6(4),e.AsE("Table ",e.lcZ(5,2,v.table)," ",v.message,"")}}const id=function(F){return{"error-border p-2":F}};function eh(F,M){if(1&F&&(e.TgZ(0,"div",35),e.YNc(1,_2,3,3,"mat-panel-title",36),e.TgZ(2,"mat-list",37),e.YNc(3,td,5,1,"mat-list-item",36),e.YNc(4,v2,6,4,"mat-list-item",38),e.qZA()()),2&F){const v=M.error,Z=e.oxw();e.Q6J("ngClass",e.VKq(4,id,"unknown"===Z.errorMessage.page)),e.xp6(1),e.Q6J("ngIf","unknown"===Z.errorMessage.page),e.xp6(2),e.Q6J("ngIf",v.message),e.xp6(1),e.Q6J("ngForOf",v.tables)}}class el{constructor(M,v,Z,_e){this.logger=M,this.commonService=v,this.store=Z,this.actions=_e,this.faPenRuler=Xi.SoD,this.faExclamationTriangle=Xi.eHv,this.screenSize="",this.screenSizeEnum=Pe.cu,this.pageSizeOptions=Pe.TJ,this.pageSettings=[],this.initialPageSettings=[],this.defaultSettings=[],this.nodePageDefs={},this.sortOrders=Pe.zZ,this.apiCallStatus=null,this.apiCallStatusEnum=Pe.Bn,this.errorMessage=null,this.unSubs=[new zi.x,new zi.x,new zi.x,new zi.x],this.screenSize=this.commonService.getScreenSize()}ngOnInit(){this.store.select(ba.dT).pipe((0,an.R)(this.unSubs[0])).subscribe(M=>{switch(this.selNode=M,this.logger.info(this.selNode),this.selNode.lnImplementation){case"CLN":this.initialPageSettings=Object.assign([],Pe.gG),this.defaultSettings=Object.assign([],Pe.gG),this.nodePageDefs=Pe.At,this.store.select(Dl.AS).pipe((0,an.R)(this.unSubs[1]),(0,hs.M)(this.store.select(Dl.lw))).subscribe(([v,Z])=>{const _e=JSON.parse(JSON.stringify(v.pageSettings));if(this.errorMessage=null,this.apiCallStatus=v.apiCallStatus,this.apiCallStatus.status===Pe.Bn.ERROR)this.errorMessage=this.apiCallStatus.message||null,this.pageSettings=_e,this.initialPageSettings=_e;else{if(!Z?.enableOffers){const bt=_e.find(ui=>"transactions"===ui.pageId),Zt=bt?.tables.findIndex(ui=>"offers"===ui.tableId),ei=bt?.tables.findIndex(ui=>"offer_bookmarks"===ui.tableId);Zt>-1&&bt?.tables.splice(Zt,1),ei>-1&&bt?.tables.splice(ei,1)}if(!Z?.enablePeerswap){const bt=_e.findIndex(Zt=>"peerswap"===Zt.pageId);bt>-1&&_e.splice(bt,1)}this.pageSettings=_e,this.initialPageSettings=_e}this.logger.info(_e)}),this.actions.pipe((0,an.R)(this.unSubs[2]),(0,Ra.h)(v=>v.type===Pe.AB.UPDATE_API_CALL_STATUS_CLN||v.type===Pe.AB.SAVE_PAGE_SETTINGS_CLN)).subscribe(v=>{v.type===Pe.AB.UPDATE_API_CALL_STATUS_CLN&&v.payload.status===Pe.Bn.ERROR&&"SavePageSettings"===v.payload.action&&(this.errorMessage=JSON.parse(v.payload.message))});break;case"ECL":this.initialPageSettings=Object.assign([],Pe.c3),this.defaultSettings=Object.assign([],Pe.c3),this.nodePageDefs=Pe.Xk,this.store.select(Il.nF).pipe((0,an.R)(this.unSubs[1]),(0,hs.M)(this.store.select(Il.LR))).subscribe(([v,Z])=>{const _e=JSON.parse(JSON.stringify(v.pageSettings));this.errorMessage=null,this.apiCallStatus=v.apiCallStatus,this.apiCallStatus.status===Pe.Bn.ERROR?(this.errorMessage=this.apiCallStatus.message||null,this.pageSettings=_e,this.initialPageSettings=_e):(this.pageSettings=_e,this.initialPageSettings=_e),this.logger.info(_e)}),this.actions.pipe((0,an.R)(this.unSubs[2]),(0,Ra.h)(v=>v.type===Pe.lr.UPDATE_API_CALL_STATUS_ECL||v.type===Pe.lr.SAVE_PAGE_SETTINGS_ECL)).subscribe(v=>{v.type===Pe.lr.UPDATE_API_CALL_STATUS_ECL&&v.payload.status===Pe.Bn.ERROR&&"SavePageSettings"===v.payload.action&&(this.errorMessage=JSON.parse(v.payload.message))});break;default:this.initialPageSettings=Object.assign([],Pe.gK),this.defaultSettings=Object.assign([],Pe.gK),this.nodePageDefs=Pe.hG,this.store.select(Bo.Pr).pipe((0,an.R)(this.unSubs[1]),(0,hs.M)(this.store.select(Bo.$k))).subscribe(([v,Z])=>{const _e=JSON.parse(JSON.stringify(v.pageSettings));if(this.errorMessage=null,this.apiCallStatus=v.apiCallStatus,this.apiCallStatus.status===Pe.Bn.ERROR)this.errorMessage=this.apiCallStatus.message||null,this.pageSettings=_e,this.initialPageSettings=_e;else{if(!Z?.swapServerUrl||""===Z.swapServerUrl.trim()){const bt=_e.findIndex(Zt=>"loop"===Zt.pageId);bt>-1&&_e.splice(bt,1)}if(!Z?.boltzServerUrl||""===Z.boltzServerUrl.trim()){const bt=_e.findIndex(Zt=>"boltz"===Zt.pageId);bt>-1&&_e.splice(bt,1)}if(!Z?.enablePeerswap){const bt=_e.findIndex(Zt=>"peerswap"===Zt.pageId);bt>-1&&_e.splice(bt,1)}this.pageSettings=_e,this.initialPageSettings=_e}this.logger.info(_e)}),this.actions.pipe((0,an.R)(this.unSubs[2]),(0,Ra.h)(v=>v.type===Pe.uR.UPDATE_API_CALL_STATUS_LND||v.type===Pe.uR.SAVE_PAGE_SETTINGS_LND)).subscribe(v=>{v.type===Pe.uR.UPDATE_API_CALL_STATUS_LND&&v.payload.status===Pe.Bn.ERROR&&"SavePageSettings"===v.payload.action&&(this.errorMessage=JSON.parse(v.payload.message))})}})}oncolumnSelectionChange(M){M.columnSelection&&(!M.sortBy||!M.columnSelection.includes(M.sortBy))&&(M.sortBy=M.columnSelection[0])}onUpdatePageSettings(){if(this.pageSettings.reduce((M,v)=>M||v.tables.reduce((Z,_e)=>!(_e.recordsPerPage&&_e.sortBy&&_e.sortOrder&&_e.columnSelection&&_e.columnSelection.length>=2),!1),!1))return!0;switch(this.errorMessage="",this.selNode.lnImplementation){case"CLN":this.store.dispatch((0,nt.eF)({payload:this.pageSettings}));break;case"ECL":this.store.dispatch((0,Ne.eF)({payload:this.pageSettings}));break;default:this.store.dispatch((0,At.eF)({payload:this.pageSettings}))}}onTableReset(M,v){const Z=this.pageSettings.findIndex(Zt=>Zt.pageId===M),_e=this.pageSettings[Z].tables.findIndex(Zt=>Zt.tableId===v.tableId),bt=this.defaultSettings.find(Zt=>Zt.pageId===M)?.tables.find(Zt=>Zt.tableId===v.tableId)||this.pageSettings.find(Zt=>Zt.pageId===M)?.tables.find(Zt=>Zt.tableId===v.tableId);this.pageSettings[Z].tables.splice(_e,1,bt)}onResetPageSettings(M){"current"===M?(this.errorMessage=null,this.pageSettings=JSON.parse(JSON.stringify(this.initialPageSettings))):(this.errorMessage=null,this.pageSettings=JSON.parse(JSON.stringify(this.defaultSettings)))}ngOnDestroy(){this.unSubs.forEach(M=>{M.next(),M.complete()})}}function tl(F,M){if(1&F){const v=e.EpF();e.TgZ(0,"div",10),e.NdJ("click",function(){e.CHM(v);const _e=e.oxw();return e.KtG(_e.activeLink=_e.links[0].link)}),e._uU(1),e.qZA()}if(2&F){const v=e.oxw();e.s9C("routerLink",v.links[0].link),e.Q6J("active",v.activeLink===v.links[0].link),e.xp6(1),e.Oqu(v.links[0].name)}}el.\u0275fac=function(M){return new(M||el)(e.Y36(li.mQ),e.Y36(Ft.v),e.Y36(ki.yh),e.Y36(Qa.eX))},el.\u0275cmp=e.Xpm({type:el,selectors:[["rtl-page-settings"]],decls:19,vars:3,consts:[["fxLayout","column","fxFlex","100",3,"perfectScrollbar"],["fxLayout","column","fxLayoutAlign","start stretch",1,"settings-container","page-sub-title-container","mt-1"],["form","ngForm"],["fxLayout","row"],[1,"page-title-img","mr-1",3,"icon"],[1,"page-title"],[3,"ngTemplateOutlet","ngTemplateOutletContext",4,"ngIf"],["displayMode","flat","multi","false"],["fxLayout","column","class","flat-expansion-panel mt-1","expanded","false",3,"ngClass",4,"ngFor","ngForOf"],["fxLayout","row",1,"mt-1"],["mat-stroked-button","","color","primary","tabindex","8",1,"mr-1",3,"click"],["mat-stroked-button","","color","primary","tabindex","9",1,"mr-1",3,"click"],["mat-flat-button","","color","primary","tabindex","10",3,"click"],["errorObjectBlock",""],[3,"ngTemplateOutlet","ngTemplateOutletContext"],["fxLayout","column","expanded","false",1,"flat-expansion-panel","mt-1",3,"ngClass"],["fxLayout","column","fxLayoutAlign","start stretch","class","padding-gap-x-large table-setting-row",4,"ngFor","ngForOf"],["fxLayout","column","fxLayoutAlign","start stretch",1,"padding-gap-x-large","table-setting-row"],["fxLayout","column","fxLayoutAlign","space-between stretch","fxLayout.gt-sm","row wrap","fxLayoutAlign.gt-sm","space-between center"],["fxFlex","10",1,"mb-2"],["fxLayout","column","fxFlex","10"],["tabindex","2","required","",3,"disabled","name","ngModel","ngModelChange"],[3,"value",4,"ngFor","ngForOf"],["tabindex","3","required","",3,"name","ngModel","ngModelChange"],["tabindex","4","required","",3,"name","ngModel","ngModelChange"],["fxFlex","35","matTooltip","Select a minimum of 2 columns",4,"ngIf"],["fxLayout","column","fxFlex","15","matTooltip","Select between 1 and 3 columns"],["tabindex","5","multiple","","required","",3,"name","ngModel","ngModelChange"],[3,"value","disabled",4,"ngFor","ngForOf"],["mat-icon-button","","color","primary","type","button","tabindex","7","matTooltip","Reset to Default",1,"mb-2",3,"click"],["color","primary",3,"ngClass"],[3,"value"],["fxFlex","35","matTooltip","Select a minimum of 2 columns"],["tabindex","6","multiple","","required","",3,"name","ngModel","ngModelChange","selectionChange"],[3,"value","disabled"],[3,"ngClass"],[4,"ngIf"],["role","list"],[4,"ngFor","ngForOf"],[1,"ml-1","icon-small","red"]],template:function(M,v){1&M&&(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,ac,1,4,"ng-container",6),e.TgZ(8,"mat-accordion",7),e.YNc(9,g2,7,9,"mat-expansion-panel",8),e.qZA()(),e.TgZ(10,"div",9)(11,"button",10),e.NdJ("click",function(){return v.onResetPageSettings("current")}),e._uU(12,"Reset"),e.qZA(),e.TgZ(13,"button",11),e.NdJ("click",function(){return v.onResetPageSettings("default")}),e._uU(14,"Reset to Default"),e.qZA(),e.TgZ(15,"button",12),e.NdJ("click",function(){return v.onUpdatePageSettings()}),e._uU(16,"Save"),e.qZA()()(),e.YNc(17,eh,5,6,"ng-template",null,13,e.W1O)),2&M&&(e.xp6(4),e.Q6J("icon",v.faPenRuler),e.xp6(3),e.Q6J("ngIf",v.errorMessage&&"unknown"===v.errorMessage.page),e.xp6(2),e.Q6J("ngForOf",v.pageSettings))},dependencies:[ji.mk,ji.sg,ji.O5,ji.tP,$t._Y,$t.JJ,$t.JL,$t.Q7,$t.On,$t.F,Ma.BN,Wi.xw,Wi.Wh,Wi.yH,fi.oO,_i.lW,_i.RK,Di.pp,Di.ib,Di.yz,Di.yK,us.Hw,Mi.KE,Mi.hX,Ao.i$,Ao.Tg,Hi.gD,Zi.ey,Xc.gM,nn.$V,ji.rS,nc.D3,nc.i1],styles:[".table-setting-row[_ngcontent-%COMP%]:not(:first-child){margin:.5rem 0}"]});const fs=function(){return{initial:!1}};function Lo(F,M){if(1&F){const v=e.EpF();e.TgZ(0,"div",11),e.NdJ("click",function(){e.CHM(v);const _e=e.oxw();return e.KtG(_e.activeLink=_e.links[1].link)}),e._uU(1),e.qZA()}if(2&F){const v=e.oxw();e.s9C("routerLink",v.links[1].link),e.Q6J("active",v.activeLink===v.links[1].link)("state",e.DdM(4,fs)),e.xp6(1),e.Oqu(v.links[1].name)}}function ms(F,M){if(1&F){const v=e.EpF();e.TgZ(0,"div",10),e.NdJ("click",function(){e.CHM(v);const _e=e.oxw();return e.KtG(_e.activeLink=_e.links[2].link)}),e._uU(1),e.qZA()}if(2&F){const v=e.oxw();e.s9C("routerLink",v.links[2].link),e.Q6J("active",v.activeLink===v.links[2].link),e.xp6(1),e.Oqu(v.links[2].name)}}class qo{constructor(M,v,Z){this.store=M,this.router=v,this.activatedRoute=Z,this.faLayerGroup=Xi.Krp,this.links=[{link:"loop",name:"Loop"},{link:"boltz",name:"Boltz"},{link:"peerswap",name:"Peerswap"}],this.activeLink="",this.unSubs=[new zi.x,new zi.x,new zi.x]}ngOnInit(){const M=this.links.find(v=>this.router.url.includes(v.link));this.activeLink=M?M.link:this.links[0].link,this.router.events.pipe((0,an.R)(this.unSubs[0]),(0,Ra.h)(v=>v instanceof Bn.Av)).subscribe({next:v=>{const Z=this.links.find(_e=>v.urlAfterRedirects.includes(_e.link));this.activeLink="CLN"===this.selNode.lnImplementation.toUpperCase()?this.links[2].link:Z?Z.link:this.links[0].link}}),this.store.select(ba.dT).pipe((0,an.R)(this.unSubs[1])).subscribe(v=>{this.selNode=v,"CLN"===this.selNode.lnImplementation.toUpperCase()&&(this.activeLink=this.links[2].link,this.router.navigate(["./"+this.activeLink],{relativeTo:this.activatedRoute}))})}ngOnDestroy(){this.unSubs.forEach(M=>{M.next(null),M.complete()})}}qo.\u0275fac=function(M){return new(M||qo)(e.Y36(ki.yh),e.Y36(Bn.F0),e.Y36(Bn.gz))},qo.\u0275cmp=e.Xpm({type:qo,selectors:[["rtl-services-settings"]],decls:16,vars:5,consts:[["fxLayout","row","fxLayoutAlign","start center",1,"page-sub-title-container","my-1"],["fxLayout","row"],[1,"page-title-img","mr-1",3,"icon"],[1,"page-title"],["fxLayout","column"],["mat-tab-nav-bar","","mat-stretch-tabs","false","mat-align-tabs","start",3,"tabPanel"],["role","tab","mat-tab-link","","class","mat-tab-label",3,"active","routerLink","click",4,"ngIf"],["role","tab","mat-tab-link","","class","mat-tab-label",3,"active","routerLink","state","click",4,"ngIf"],["tabPanel",""],["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between stretch",1,"mat-tab-body-wrapper"],["role","tab","mat-tab-link","",1,"mat-tab-label",3,"active","routerLink","click"],["role","tab","mat-tab-link","",1,"mat-tab-label",3,"active","routerLink","state","click"]],template:function(M,v){if(1&M&&(e.TgZ(0,"div",0)(1,"div",1),e._UZ(2,"fa-icon",2),e.TgZ(3,"span",3),e._uU(4,"Services"),e.qZA()()(),e.TgZ(5,"div",4)(6,"mat-card")(7,"mat-card-content",4)(8,"nav",5),e.YNc(9,tl,2,3,"div",6),e.YNc(10,Lo,2,5,"div",7),e.YNc(11,ms,2,3,"div",6),e.qZA(),e._UZ(12,"mat-tab-nav-panel",null,8),e.TgZ(14,"div",9),e._UZ(15,"router-outlet"),e.qZA()()()()),2&M){const Z=e.MAs(13);e.xp6(2),e.Q6J("icon",v.faLayerGroup),e.xp6(6),e.Q6J("tabPanel",Z),e.xp6(1),e.Q6J("ngIf","LND"===(null==v.selNode||null==v.selNode.lnImplementation?null:v.selNode.lnImplementation.toUpperCase())),e.xp6(1),e.Q6J("ngIf","LND"===(null==v.selNode||null==v.selNode.lnImplementation?null:v.selNode.lnImplementation.toUpperCase())),e.xp6(1),e.Q6J("ngIf","CLN"===(null==v.selNode||null==v.selNode.lnImplementation?null:v.selNode.lnImplementation.toUpperCase()))}},dependencies:[ji.O5,Ma.BN,Wi.xw,Wi.Wh,Wi.yH,Ie.a8,Ie.dn,gt.BU,gt.sW,gt.Nj,Bn.lC,Bn.rH]});const c1=["form"];function th(F,M){1&F&&(e.TgZ(0,"mat-error"),e._uU(1,"Loop server URL is required."),e.qZA())}function nd(F,M){1&F&&(e.TgZ(0,"mat-error"),e._uU(1,"Specify the loop server url with 'https://'."),e.qZA())}function ad(F,M){1&F&&(e.TgZ(0,"mat-error"),e._uU(1,"Loop macaroon path is required."),e.qZA())}class Ns{constructor(M,v){this.logger=M,this.store=v,this.faInfoCircle=Xi.sqG,this.enableLoop=!1,this.unSubs=[new zi.x,new zi.x]}ngOnInit(){this.store.select(ba.dT).pipe((0,an.R)(this.unSubs[0])).subscribe(M=>{this.selNode=M,this.enableLoop=!(!M.settings.swapServerUrl||""===M.settings.swapServerUrl.trim()),this.previousSelNode=JSON.parse(JSON.stringify(this.selNode)),this.logger.info(M)})}onEnableServiceChanged(M){this.enableLoop=M.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,jt.jS)({payload:{uiMessage:Pe.m6.UPDATE_LOOP_SETTINGS,service:Pe.JX.LOOP,settings:{enable:this.enableLoop,serverUrl:this.selNode.settings.swapServerUrl,macaroonPath:this.selNode.authentication.swapMacaroonPath}}})),this.store.dispatch((0,At.JT)({payload:{userPersona:this.selNode.settings.userPersona,channelBackupPath:this.selNode.settings.channelBackupPath,selCurrencyUnit:this.selNode.settings.currencyUnit,currencyUnits:this.selNode.settings.currencyUnits,fiatConversion:this.selNode.settings.fiatConversion,unannouncedChannels:this.selNode.unannouncedChannels,lnImplementation:this.selNode.lnImplementation,swapServerUrl:this.selNode.settings.swapServerUrl,boltzServerUrl:this.selNode.settings.boltzServerUrl,enableOffers:this.selNode.settings.enableOffers}})),this.store.dispatch((0,nt.oo)({payload:{userPersona:this.selNode.settings.userPersona,channelBackupPath:this.selNode.settings.channelBackupPath,selCurrencyUnit:this.selNode.settings.currencyUnit,currencyUnits:this.selNode.settings.currencyUnits,fiatConversion:this.selNode.settings.fiatConversion,unannouncedChannels:this.selNode.unannouncedChannels,lnImplementation:this.selNode.lnImplementation,swapServerUrl:this.selNode.settings.swapServerUrl,boltzServerUrl:this.selNode.settings.boltzServerUrl,enableOffers:this.selNode.settings.enableOffers}})),this.store.dispatch((0,Ne.Zr)({payload:{userPersona:this.selNode.settings.userPersona,channelBackupPath:this.selNode.settings.channelBackupPath,selCurrencyUnit:this.selNode.settings.currencyUnit,currencyUnits:this.selNode.settings.currencyUnits,fiatConversion:this.selNode.settings.fiatConversion,unannouncedChannels:this.selNode.unannouncedChannels,lnImplementation:this.selNode.lnImplementation,swapServerUrl:this.selNode.settings.swapServerUrl,boltzServerUrl:this.selNode.settings.boltzServerUrl,enableOffers:this.selNode.settings.enableOffers}}))}onReset(){this.selNode=JSON.parse(JSON.stringify(this.previousSelNode)),this.enableLoop=!(!this.selNode.settings.swapServerUrl||""===this.selNode.settings.swapServerUrl.trim())}ngOnDestroy(){this.unSubs.forEach(M=>{M.next(),M.complete()})}}Ns.\u0275fac=function(M){return new(M||Ns)(e.Y36(li.mQ),e.Y36(ki.yh))},Ns.\u0275cmp=e.Xpm({type:Ns,selectors:[["rtl-loop-service-settings"]],viewQuery:function(M,v){if(1&M&&e.Gf(c1,7),2&M){let Z;e.iGM(Z=e.CRH())&&(v.form=Z.first)}},decls:38,vars:11,consts:[["fxLayout","column","fxFlex","100",3,"perfectScrollbar"],[1,"alert","alert-info","mt-1"],[1,"mr-1","alert-icon",3,"icon"],["href","https://github.com/lightninglabs/loop","target","_blank"],["fxLayout","column","fxFlex","100","fxLayoutAlign","start stretch",1,"settings-container","page-sub-title-container","mt-1"],["form","ngForm"],["fxLayout","column","fxFlex","50","fxLayoutAlign","start stretch"],["autoFocus","","tabindex","1","color","primary","name","loop",1,"ml-2",3,"ngModel","ngModelChange","change"],[1,"mb-2"],["matInput","","type","text","id","swapServerUrl","name","srvrUrl","tabindex","2",3,"required","disabled","ngModel","ngModelChange"],["srvrUrl","ngModel"],[4,"ngIf"],["matInput","","type","text","id","swapMacaroonPath","name","swapMacaroonPath","tabindex","3",3,"required","disabled","ngModel","ngModelChange"],["fxLayout","row",1,"mt-2"],["mat-stroked-button","","color","primary","type","reset","tabindex","4",1,"mr-1",3,"click"],["mat-flat-button","","color","primary","type","submit","tabindex","5",3,"click"]],template:function(M,v){if(1&M&&(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(_e){return v.enableLoop=_e})("change",function(_e){return v.onEnableServiceChanged(_e)}),e._uU(16,"Enable Loop Service"),e.qZA(),e.TgZ(17,"mat-form-field",8)(18,"mat-label"),e._uU(19,"Loop Server URL"),e.qZA(),e.TgZ(20,"input",9,10),e.NdJ("ngModelChange",function(_e){return v.selNode.settings.swapServerUrl=_e}),e.qZA(),e.TgZ(22,"mat-hint"),e._uU(23,"Service url for loop server REST APIs, eg. https://127.0.0.1:8081"),e.qZA(),e.YNc(24,th,2,0,"mat-error",11),e.YNc(25,nd,2,0,"mat-error",11),e.qZA(),e.TgZ(26,"mat-form-field")(27,"mat-label"),e._uU(28,"Loop Macaroon Path"),e.qZA(),e.TgZ(29,"input",12),e.NdJ("ngModelChange",function(_e){return v.selNode.authentication.swapMacaroonPath=_e}),e.qZA(),e.TgZ(30,"mat-hint"),e._uU(31,"Path for the folder containing service 'loop.macaroon', eg. D:\\\\xyz\\\\AppData\\\\Local\\\\Loop\\\\testnet"),e.qZA(),e.YNc(32,ad,2,0,"mat-error",11),e.qZA()()(),e.TgZ(33,"div",13)(34,"button",14),e.NdJ("click",function(){return v.onReset()}),e._uU(35,"Reset"),e.qZA(),e.TgZ(36,"button",15),e.NdJ("click",function(){return v.onUpdateService()}),e._uU(37,"Update"),e.qZA()()()),2&M){const Z=e.MAs(21);e.xp6(2),e.Q6J("icon",v.faInfoCircle),e.xp6(13),e.Q6J("ngModel",v.enableLoop),e.xp6(5),e.Q6J("required",v.enableLoop)("disabled",!v.enableLoop)("ngModel",v.selNode.settings.swapServerUrl),e.xp6(4),e.Q6J("ngIf",!v.selNode.settings.swapServerUrl&&v.enableLoop),e.xp6(1),e.Q6J("ngIf",(null==Z||null==Z.errors?null:Z.errors.invalid)&&v.enableLoop),e.xp6(4),e.Q6J("required",v.enableLoop)("disabled",!v.enableLoop)("ngModel",v.selNode.authentication.swapMacaroonPath),e.xp6(3),e.Q6J("ngIf",!v.selNode.authentication.swapMacaroonPath&&v.enableLoop)}},dependencies:[ji.O5,$t._Y,$t.Fj,$t.JJ,$t.JL,$t.Q7,$t.On,$t.F,Ma.BN,Wi.xw,Wi.Wh,Wi.yH,_i.lW,Wa.Nt,Mi.KE,Mi.hX,Mi.bx,Mi.TO,qi.Rr,nn.$V,xn.h],styles:["h4[_ngcontent-%COMP%]{word-break:break-word}"]});const dr=["form"];function rd(F,M){1&F&&(e.TgZ(0,"mat-error"),e._uU(1,"Boltz server URL is required."),e.qZA())}function od(F,M){1&F&&(e.TgZ(0,"mat-error"),e._uU(1,"Specify the boltz server url with 'https://'."),e.qZA())}function Cf(F,M){1&F&&(e.TgZ(0,"mat-error"),e._uU(1,"Boltz macaroon path is required."),e.qZA())}class il{constructor(M,v){this.logger=M,this.store=v,this.faInfoCircle=Xi.sqG,this.enableBoltz=!1,this.serverUrl="",this.macaroonPath="",this.unSubs=[new zi.x,new zi.x]}ngOnInit(){this.store.select(ba.dT).pipe((0,an.R)(this.unSubs[0])).subscribe(M=>{this.selNode=M,this.enableBoltz=!(!M.settings.boltzServerUrl||""===M.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(M)})}onEnableServiceChanged(M){this.enableBoltz=M.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,jt.jS)({payload:{uiMessage:Pe.m6.UPDATE_BOLTZ_SETTINGS,service:Pe.JX.BOLTZ,settings:{enable:this.enableBoltz,serverUrl:this.serverUrl,macaroonPath:this.macaroonPath}}})),this.store.dispatch((0,At.JT)({payload:{userPersona:this.selNode.settings.userPersona,channelBackupPath:this.selNode.settings.channelBackupPath,selCurrencyUnit:this.selNode.settings.currencyUnit,currencyUnits:this.selNode.settings.currencyUnits,fiatConversion:this.selNode.settings.fiatConversion,unannouncedChannels:this.selNode.unannouncedChannels,lnImplementation:this.selNode.lnImplementation,swapServerUrl:this.selNode.settings.swapServerUrl,boltzServerUrl:this.serverUrl,enableOffers:this.selNode.settings.enableOffers}})),this.store.dispatch((0,nt.oo)({payload:{userPersona:this.selNode.settings.userPersona,channelBackupPath:this.selNode.settings.channelBackupPath,selCurrencyUnit:this.selNode.settings.currencyUnit,currencyUnits:this.selNode.settings.currencyUnits,fiatConversion:this.selNode.settings.fiatConversion,unannouncedChannels:this.selNode.unannouncedChannels,lnImplementation:this.selNode.lnImplementation,swapServerUrl:this.selNode.settings.swapServerUrl,boltzServerUrl:this.serverUrl,enableOffers:this.selNode.settings.enableOffers}})),this.store.dispatch((0,Ne.Zr)({payload:{userPersona:this.selNode.settings.userPersona,channelBackupPath:this.selNode.settings.channelBackupPath,selCurrencyUnit:this.selNode.settings.currencyUnit,currencyUnits:this.selNode.settings.currencyUnits,fiatConversion:this.selNode.settings.fiatConversion,unannouncedChannels:this.selNode.unannouncedChannels,lnImplementation:this.selNode.lnImplementation,swapServerUrl:this.selNode.settings.swapServerUrl,boltzServerUrl:this.serverUrl,enableOffers:this.selNode.settings.enableOffers}}))}onReset(){this.selNode=JSON.parse(JSON.stringify(this.previousSelNode)),this.serverUrl=this.selNode.settings.boltzServerUrl||"",this.macaroonPath=this.selNode.authentication.boltzMacaroonPath,this.enableBoltz=!(!this.serverUrl||""===this.serverUrl.trim())}ngOnDestroy(){this.unSubs.forEach(M=>{M.next(),M.complete()})}}il.\u0275fac=function(M){return new(M||il)(e.Y36(li.mQ),e.Y36(ki.yh))},il.\u0275cmp=e.Xpm({type:il,selectors:[["rtl-boltz-service-settings"]],viewQuery:function(M,v){if(1&M&&e.Gf(dr,7),2&M){let Z;e.iGM(Z=e.CRH())&&(v.form=Z.first)}},decls:38,vars:11,consts:[["fxLayout","column","fxFlex","100",3,"perfectScrollbar"],[1,"alert","alert-info","mt-1"],[1,"mr-1","alert-icon",3,"icon"],["href","https://lnd.docs.boltz.exchange/en/latest/","target","_blank"],["fxLayout","column","fxFlex","100","fxLayoutAlign","start stretch",1,"settings-container","page-sub-title-container","mt-1"],["form","ngForm"],["fxLayout","column","fxFlex","50","fxLayoutAlign","start stretch"],["autoFocus","","tabindex","1","color","primary","name","boltz",1,"ml-2",3,"ngModel","ngModelChange","change"],[1,"mb-2"],["matInput","","type","text","id","boltzServerUrl","name","srvrUrl","tabindex","2",3,"required","disabled","ngModel","ngModelChange"],["srvrUrl","ngModel"],[4,"ngIf"],["matInput","","type","text","id","boltzMacaroonPath","name","boltzMacaroonPath","tabindex","3",3,"required","disabled","ngModel","ngModelChange"],["fxLayout","row",1,"mt-2"],["mat-stroked-button","","color","primary","type","reset","tabindex","4",1,"mr-1",3,"click"],["mat-flat-button","","color","primary","type","submit","tabindex","5",3,"click"]],template:function(M,v){if(1&M&&(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(_e){return v.enableBoltz=_e})("change",function(_e){return v.onEnableServiceChanged(_e)}),e._uU(16,"Enable Boltz Service"),e.qZA(),e.TgZ(17,"mat-form-field",8)(18,"mat-label"),e._uU(19,"Boltz Server URL"),e.qZA(),e.TgZ(20,"input",9,10),e.NdJ("ngModelChange",function(_e){return v.serverUrl=_e}),e.qZA(),e.TgZ(22,"mat-hint"),e._uU(23,"Service url for boltz server REST APIs, eg. https://127.0.0.1:9003"),e.qZA(),e.YNc(24,rd,2,0,"mat-error",11),e.YNc(25,od,2,0,"mat-error",11),e.qZA(),e.TgZ(26,"mat-form-field")(27,"mat-label"),e._uU(28,"Boltz Macaroon Path"),e.qZA(),e.TgZ(29,"input",12),e.NdJ("ngModelChange",function(_e){return v.macaroonPath=_e}),e.qZA(),e.TgZ(30,"mat-hint"),e._uU(31,"Path for the folder containing boltz 'admin.macaroon', eg. D:\\\\xyz\\\\AppData\\\\Boltz\\\\testnet"),e.qZA(),e.YNc(32,Cf,2,0,"mat-error",11),e.qZA()()(),e.TgZ(33,"div",13)(34,"button",14),e.NdJ("click",function(){return v.onReset()}),e._uU(35,"Reset"),e.qZA(),e.TgZ(36,"button",15),e.NdJ("click",function(){return v.onUpdateService()}),e._uU(37,"Update"),e.qZA()()()),2&M){const Z=e.MAs(21);e.xp6(2),e.Q6J("icon",v.faInfoCircle),e.xp6(13),e.Q6J("ngModel",v.enableBoltz),e.xp6(5),e.Q6J("required",v.enableBoltz)("disabled",!v.enableBoltz)("ngModel",v.serverUrl),e.xp6(4),e.Q6J("ngIf",(!v.serverUrl||""===v.serverUrl.trim())&&v.enableBoltz),e.xp6(1),e.Q6J("ngIf",(null==Z||null==Z.errors?null:Z.errors.invalid)&&v.enableBoltz),e.xp6(4),e.Q6J("required",v.enableBoltz)("disabled",!v.enableBoltz)("ngModel",v.macaroonPath),e.xp6(3),e.Q6J("ngIf",!v.macaroonPath&&v.enableBoltz)}},dependencies:[ji.O5,$t._Y,$t.Fj,$t.JJ,$t.JL,$t.Q7,$t.On,$t.F,Ma.BN,Wi.xw,Wi.Wh,Wi.yH,_i.lW,Wa.Nt,Mi.KE,Mi.hX,Mi.bx,Mi.TO,qi.Rr,nn.$V,xn.h],styles:["h4[_ngcontent-%COMP%]{word-break:break-word}"]});class rc{constructor(){}}rc.\u0275fac=function(M){return new(M||rc)},rc.\u0275cmp=e.Xpm({type:rc,selectors:[["rtl-ln-services"]],decls:1,vars:0,template:function(M,v){1&M&&e._UZ(0,"router-outlet")},dependencies:[Bn.lC]});var Zu=p(2615),l1=p(9107),Sc=p(8739),nl=p(6308),ta=p(671),kl=p(3162);function ih(F,M){if(1&F&&(e.TgZ(0,"mat-option",37),e._uU(1),e.qZA()),2&F){const v=M.$implicit,Z=e.oxw();e.Q6J("value",v),e.xp6(1),e.Oqu(Z.getLabel(v))}}function d1(F,M){1&F&&e._UZ(0,"mat-progress-bar",38)}function Do(F,M){1&F&&(e.TgZ(0,"th",39),e._uU(1,"State"),e.qZA())}function Wu(F,M){if(1&F&&(e.TgZ(0,"td",40),e._uU(1),e.qZA()),2&F){const v=M.$implicit,Z=e.oxw();e.xp6(1),e.Oqu(Z.LoopStateEnum[null==v?null:v.state])}}function oc(F,M){1&F&&(e.TgZ(0,"th",39),e._uU(1,"Initiation Time"),e.qZA())}function h1(F,M){if(1&F&&(e.TgZ(0,"td",40),e._uU(1),e.ALo(2,"date"),e.qZA()),2&F){const v=M.$implicit;e.xp6(1),e.Oqu(e.xi3(2,1,(null==v?null:v.initiation_time)/1e6,"dd/MMM/y HH:mm"))}}function Ol(F,M){1&F&&(e.TgZ(0,"th",39),e._uU(1,"Last Update Time"),e.qZA())}function sd(F,M){if(1&F&&(e.TgZ(0,"td",40),e._uU(1),e.ALo(2,"date"),e.qZA()),2&F){const v=M.$implicit;e.xp6(1),e.Oqu(e.xi3(2,1,(null==v?null:v.last_update_time)/1e6,"dd/MMM/y HH:mm"))}}function b2(F,M){1&F&&(e.TgZ(0,"th",41),e._uU(1,"Amount (Sats)"),e.qZA())}function al(F,M){if(1&F&&(e.TgZ(0,"td",40)(1,"span",42),e._uU(2),e.ALo(3,"number"),e.qZA()()),2&F){const v=M.$implicit;e.xp6(2),e.Oqu(e.lcZ(3,1,null==v?null:v.amt))}}function nh(F,M){1&F&&(e.TgZ(0,"th",41),e._uU(1,"Cost Server (Sats)"),e.qZA())}function y2(F,M){if(1&F&&(e.TgZ(0,"td",40)(1,"span",42),e._uU(2),e.ALo(3,"number"),e.qZA()()),2&F){const v=M.$implicit;e.xp6(2),e.Oqu(e.lcZ(3,1,null==v?null:v.cost_server))}}function Yu(F,M){1&F&&(e.TgZ(0,"th",41),e._uU(1,"Cost Offchain (Sats)"),e.qZA())}function ju(F,M){if(1&F&&(e.TgZ(0,"td",40)(1,"span",42),e._uU(2),e.ALo(3,"number"),e.qZA()()),2&F){const v=M.$implicit;e.xp6(2),e.Oqu(e.lcZ(3,1,null==v?null:v.cost_offchain))}}function Io(F,M){1&F&&(e.TgZ(0,"th",41),e._uU(1,"Cost Onchain (Sats)"),e.qZA())}function x2(F,M){if(1&F&&(e.TgZ(0,"td",40)(1,"span",42),e._uU(2),e.ALo(3,"number"),e.qZA()()),2&F){const v=M.$implicit;e.xp6(2),e.hij(" ",e.lcZ(3,1,null==v?null:v.cost_onchain)," ")}}function ah(F,M){1&F&&(e.TgZ(0,"th",39),e._uU(1,"HTLC Address"),e.qZA())}const u1=function(F){return{width:F}};function Wr(F,M){if(1&F&&(e.TgZ(0,"td",40)(1,"span",43)(2,"span",44),e._uU(3),e.qZA()()()),2&F){const v=M.$implicit,Z=e.oxw();e.xp6(1),e.Q6J("ngStyle",e.VKq(2,u1,Z.screenSize===Z.screenSizeEnum.XS?"6rem":Z.colWidth)),e.xp6(2),e.Oqu(null==v?null:v.htlc_address)}}function Ec(F,M){1&F&&(e.TgZ(0,"th",39),e._uU(1,"ID"),e.qZA())}function cd(F,M){if(1&F&&(e.TgZ(0,"td",40)(1,"span",43)(2,"span",44),e._uU(3),e.qZA()()()),2&F){const v=M.$implicit,Z=e.oxw();e.xp6(1),e.Q6J("ngStyle",e.VKq(2,u1,Z.screenSize===Z.screenSizeEnum.XS?"6rem":Z.colWidth)),e.xp6(2),e.Oqu(null==v?null:v.id)}}function rh(F,M){1&F&&(e.TgZ(0,"th",39),e._uU(1,"ID (Bytes)"),e.qZA())}function ld(F,M){if(1&F&&(e.TgZ(0,"td",40)(1,"span",43)(2,"span",44),e._uU(3),e.qZA()()()),2&F){const v=M.$implicit,Z=e.oxw();e.xp6(1),e.Q6J("ngStyle",e.VKq(2,u1,Z.screenSize===Z.screenSizeEnum.XS?"6rem":Z.colWidth)),e.xp6(2),e.Oqu(null==v?null:v.id_bytes)}}function Fs(F,M){if(1&F){const v=e.EpF();e.TgZ(0,"th",45)(1,"div",46)(2,"mat-select",47),e._UZ(3,"mat-select-trigger"),e.TgZ(4,"mat-option",48),e.NdJ("click",function(){e.CHM(v);const _e=e.oxw();return e.KtG(_e.onDownloadCSV())}),e._uU(5,"Download CSV"),e.qZA()()()()}}function Ku(F,M){if(1&F){const v=e.EpF();e.TgZ(0,"td",49)(1,"button",50),e.NdJ("click",function(_e){const Zt=e.CHM(v).$implicit,ei=e.oxw();return e.KtG(ei.onSwapClick(Zt,_e))}),e._uU(2,"View Info"),e.qZA()()}}function dd(F,M){if(1&F&&(e.TgZ(0,"p"),e._uU(1),e.qZA()),2&F){const v=e.oxw(2);e.xp6(1),e.Oqu(v.emptyTableMessage)}}function C2(F,M){if(1&F&&(e.TgZ(0,"td",51),e.YNc(1,dd,2,1,"p",52),e.qZA()),2&F){const v=e.oxw();e.xp6(1),e.Q6J("ngIf",!(null!=v.listSwaps&&v.listSwaps.data)||(null==v.listSwaps||null==v.listSwaps.data?null:v.listSwaps.data.length)<1)}}const oh=function(F){return{"display-none":F}};function w2(F,M){if(1&F&&e._UZ(0,"tr",53),2&F){const v=e.oxw();e.Q6J("ngClass",e.VKq(1,oh,(null==v.listSwaps?null:v.listSwaps.data)&&(null==v.listSwaps||null==v.listSwaps.data?null:v.listSwaps.data.length)>0))}}function sh(F,M){1&F&&e._UZ(0,"tr",54)}function M2(F,M){1&F&&e._UZ(0,"tr",55)}const f1=function(){return["all"]},hd=function(F){return{"overflow-auto error-border":F,"overflow-auto":!0}},Pl=function(){return["no_swap"]};class Jo{constructor(M,v,Z,_e,bt,Zt){this.logger=M,this.commonService=v,this.store=Z,this.loopService=_e,this.datePipe=bt,this.camelCaseWithReplace=Zt,this.selectedSwapType=Pe.$I.LOOP_OUT,this.swapsData=[],this.flgLoading=[!0],this.emptyTableMessage="No swaps available.",this.nodePageDefs=Pe.hG,this.selFilterBy="all",this.colWidth="20rem",this.PAGE_ID="loop",this.tableSetting={tableId:"loop",recordsPerPage:Pe.IV,sortBy:"initiation_time",sortOrder:Pe.Pi.DESCENDING},this.LoopStateEnum=Pe.Fq,this.faHistory=Xi.qO$,this.swapCaption="Loop Out",this.displayedColumns=[],this.listSwaps=new ta.by([]),this.selFilter="",this.pageSize=Pe.IV,this.pageSizeOptions=Pe.TJ,this.screenSize="",this.screenSizeEnum=Pe.cu,this.unSubs=[new zi.x,new zi.x,new zi.x],this.screenSize=this.commonService.getScreenSize()}ngOnInit(){this.store.select(Bo.Pr).pipe((0,an.R)(this.unSubs[0])).subscribe(M=>{this.tableSetting=M.pageSettings.find(v=>v.pageId===this.PAGE_ID)?.tables.find(v=>v.tableId===this.tableSetting.tableId)||Pe.gK.find(v=>v.pageId===this.PAGE_ID)?.tables.find(v=>v.tableId===this.tableSetting.tableId),this.displayedColumns=this.screenSize===Pe.cu.XS||this.screenSize===Pe.cu.SM?JSON.parse(JSON.stringify(this.tableSetting.columnSelectionSM)):JSON.parse(JSON.stringify(this.tableSetting.columnSelection)),this.displayedColumns.push("actions"),this.pageSize=this.tableSetting.recordsPerPage?+this.tableSetting.recordsPerPage:Pe.IV,this.swapsData&&this.swapsData.length>0&&this.sort&&this.paginator&&this.displayedColumns.length>0&&this.loadSwapsTable(this.swapsData),this.colWidth=this.displayedColumns.length?this.commonService.getContainerSize().width/this.displayedColumns.length/14+"rem":"20rem",this.logger.info(this.displayedColumns)})}ngAfterViewInit(){this.swapsData&&this.swapsData.length>0&&this.loadSwapsTable(this.swapsData)}ngOnChanges(M){this.swapCaption=this.selectedSwapType===Pe.$I.LOOP_IN?"Loop In":"Loop Out",this.loadSwapsTable(this.swapsData)}applyFilter(){this.listSwaps.filter=this.selFilter.trim().toLowerCase()}getLabel(M){const v=this.nodePageDefs[this.PAGE_ID][this.tableSetting.tableId].allowedColumns.find(Z=>Z.column===M);return v?v.label?v.label:this.camelCaseWithReplace.transform(v.column,"_"):this.commonService.titleCase(M)}setFilterPredicate(){this.listSwaps.filterPredicate=(M,v)=>{let Z="";switch(this.selFilterBy){case"all":Z=JSON.stringify(M).toLowerCase();break;case"state":Z=M?.state?this.LoopStateEnum[M?.state]:"";break;case"initiation_time":case"last_update_time":Z=this.datePipe.transform(new Date((M[this.selFilterBy]||0)/1e6),"dd/MMM/y HH:mm")?.toLowerCase()||"";break;default:Z=typeof M[this.selFilterBy]>"u"?"":"string"==typeof M[this.selFilterBy]?M[this.selFilterBy].toLowerCase():"boolean"==typeof M[this.selFilterBy]?M[this.selFilterBy]?"yes":"no":M[this.selFilterBy].toString()}return"state"===this.selFilterBy?0===Z.indexOf(v):Z.includes(v)}}onSwapClick(M,v){this.loopService.getSwap(M.id_bytes?.replace(/\//g,"_")?.replace(/\+/g,"-")||"").pipe((0,an.R)(this.unSubs[1])).subscribe(Z=>{this.store.dispatch((0,jt.qR)({payload:{data:{type:Pe.n_.INFORMATION,alertTitle:this.swapCaption+" Status",message:[[{key:"state",value:Pe.Fq[Z.state||""],title:"Status",width:50,type:Pe.Gi.STRING},{key:"amt",value:Z.amt,title:"Amount (Sats)",width:50,type:Pe.Gi.NUMBER}],[{key:"initiation_time",value:(Z.initiation_time||0)/1e9,title:"Initiation Time",width:50,type:Pe.Gi.DATE_TIME},{key:"last_update_time",value:(Z.last_update_time||0)/1e9,title:"Last Update Time",width:50,type:Pe.Gi.DATE_TIME}],[{key:"cost_server",value:Z.cost_server,title:"Server Cost (Sats)",width:33,type:Pe.Gi.NUMBER},{key:"cost_offchain",value:Z.cost_offchain,title:"Offchain Cost (Sats)",width:33,type:Pe.Gi.NUMBER},{key:"cost_onchain",value:Z.cost_onchain,title:"Onchain Cost (Sats)",width:34,type:Pe.Gi.NUMBER}],[{key:"id_bytes",value:Z.id_bytes,title:"ID",width:100,type:Pe.Gi.STRING}],[{key:"htlc_address",value:Z.htlc_address,title:"HTLC Address",width:100,type:Pe.Gi.STRING}]],openedBy:"SWAP"}}}))})}loadSwapsTable(M){this.listSwaps=new ta.by([...M]),this.listSwaps.sort=this.sort,this.listSwaps.sortingDataAccessor=(v,Z)=>v[Z]&&isNaN(v[Z])?v[Z].toLocaleLowerCase():v[Z]?+v[Z]:null,this.listSwaps.paginator=this.paginator,this.setFilterPredicate(),this.applyFilter(),this.logger.info(this.listSwaps)}onDownloadCSV(){this.listSwaps.data&&this.listSwaps.data.length>0&&this.commonService.downloadFile(this.listSwaps.data,this.selectedSwapType===Pe.$I.LOOP_IN?"Loop in":"Loop out")}ngOnDestroy(){this.unSubs.forEach(M=>{M.next(null),M.complete()})}}Jo.\u0275fac=function(M){return new(M||Jo)(e.Y36(li.mQ),e.Y36(Ft.v),e.Y36(ki.yh),e.Y36(l1.W),e.Y36(ji.uU),e.Y36(nc.D3))},Jo.\u0275cmp=e.Xpm({type:Jo,selectors:[["rtl-swaps"]],viewQuery:function(M,v){if(1&M&&(e.Gf(nl.YE,5),e.Gf(Sc.NW,5)),2&M){let Z;e.iGM(Z=e.CRH())&&(v.sort=Z.first),e.iGM(Z=e.CRH())&&(v.paginator=Z.first)}},inputs:{selectedSwapType:"selectedSwapType",swapsData:"swapsData",flgLoading:"flgLoading",emptyTableMessage:"emptyTableMessage"},features:[e._Bn([{provide:Hi.PG,useValue:{overlayPanelClass:"rtl-select-overlay"}},{provide:Sc.ye,useValue:(0,Pe.pt)("Swaps")}]),e.TTD],decls:61,vars:20,consts:[["fxLayout","column","fxFlex","100","fxLayoutAlign","start start",1,"card-content-gap"],["fxLayout","column","fxLayout.gt-xs","row","fxLayoutAlign.gt-xs","start center","fxLayoutAlign","start stretch","fxFlex","100",1,"page-sub-title-container","w-100"],["fxFlex","70"],[1,"page-title-img","mr-1",3,"icon"],[1,"page-title"],["fxFlex.gt-xs","30","fxLayoutAlign.gt-xs","space-between center","fxLayout","row","fxLayoutAlign","space-between stretch"],["fxLayout","column","fxFlex","49"],["tabindex","1","name","filterBy",3,"ngModel","ngModelChange","selectionChange"],[3,"value",4,"ngFor","ngForOf"],["matInput","","name","filter",3,"ngModel","ngModelChange","input","keyup"],["fxLayout","row","fxLayoutAlign","start center",1,"w-100"],["fxFlex","100",1,"table-container",3,"perfectScrollbar"],["mode","indeterminate",4,"ngIf"],["mat-table","","matSort","",3,"matSortActive","matSortDirection","dataSource","ngClass"],["table",""],["matColumnDef","state"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","initiation_time"],["matColumnDef","last_update_time"],["matColumnDef","amt"],["mat-header-cell","","mat-sort-header","","arrowPosition","before",4,"matHeaderCellDef"],["matColumnDef","cost_server"],["matColumnDef","cost_offchain"],["matColumnDef","cost_onchain"],["matColumnDef","htlc_address"],["matColumnDef","id"],["matColumnDef","id_bytes"],["matColumnDef","actions"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","","fxLayoutAlign","end center",4,"matCellDef"],["matColumnDef","no_swap"],["mat-footer-cell","","colspan","4",4,"matFooterCellDef"],["mat-footer-row","",3,"ngClass",4,"matFooterRowDef"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],[1,"mb-1",3,"pageSize","pageSizeOptions","showFirstLastButtons"],[3,"value"],["mode","indeterminate"],["mat-header-cell","","mat-sort-header",""],["mat-cell",""],["mat-header-cell","","mat-sort-header","","arrowPosition","before"],["fxLayoutAlign","end center"],["fxLayout.gt-xs","row",1,"ellipsis-parent",3,"ngStyle"],[1,"ellipsis-child"],["mat-header-cell",""],["fxLayoutAlign","center center",1,"bordered-box","table-actions-select"],["placeholder","Actions","tabindex","1",1,"mr-0"],[3,"click"],["mat-cell","","fxLayoutAlign","end center"],["mat-stroked-button","","color","primary","type","button","tabindex","4",1,"table-actions-button",3,"click"],["mat-footer-cell","","colspan","4"],[4,"ngIf"],["mat-footer-row","",3,"ngClass"],["mat-header-row",""],["mat-row",""]],template:function(M,v){1&M&&(e.TgZ(0,"div",0)(1,"div",1)(2,"div",2),e._UZ(3,"fa-icon",3),e.TgZ(4,"span",4),e._uU(5),e.qZA()(),e.TgZ(6,"div",5)(7,"mat-form-field",6)(8,"mat-label"),e._uU(9,"Filter By"),e.qZA(),e.TgZ(10,"mat-select",7),e.NdJ("ngModelChange",function(_e){return v.selFilterBy=_e})("selectionChange",function(){return v.selFilter="",v.applyFilter()}),e.TgZ(11,"perfect-scrollbar"),e.YNc(12,ih,2,2,"mat-option",8),e.qZA()()(),e.TgZ(13,"mat-form-field",6)(14,"mat-label"),e._uU(15,"Filter"),e.qZA(),e.TgZ(16,"input",9),e.NdJ("ngModelChange",function(_e){return v.selFilter=_e})("input",function(){return v.applyFilter()})("keyup",function(){return v.applyFilter()}),e.qZA()()()(),e.TgZ(17,"div",10)(18,"div",11),e.YNc(19,d1,1,0,"mat-progress-bar",12),e.TgZ(20,"table",13,14),e.ynx(22,15),e.YNc(23,Do,2,0,"th",16),e.YNc(24,Wu,2,1,"td",17),e.BQk(),e.ynx(25,18),e.YNc(26,oc,2,0,"th",16),e.YNc(27,h1,3,4,"td",17),e.BQk(),e.ynx(28,19),e.YNc(29,Ol,2,0,"th",16),e.YNc(30,sd,3,4,"td",17),e.BQk(),e.ynx(31,20),e.YNc(32,b2,2,0,"th",21),e.YNc(33,al,4,3,"td",17),e.BQk(),e.ynx(34,22),e.YNc(35,nh,2,0,"th",21),e.YNc(36,y2,4,3,"td",17),e.BQk(),e.ynx(37,23),e.YNc(38,Yu,2,0,"th",21),e.YNc(39,ju,4,3,"td",17),e.BQk(),e.ynx(40,24),e.YNc(41,Io,2,0,"th",21),e.YNc(42,x2,4,3,"td",17),e.BQk(),e.ynx(43,25),e.YNc(44,ah,2,0,"th",16),e.YNc(45,Wr,4,4,"td",17),e.BQk(),e.ynx(46,26),e.YNc(47,Ec,2,0,"th",16),e.YNc(48,cd,4,4,"td",17),e.BQk(),e.ynx(49,27),e.YNc(50,rh,2,0,"th",16),e.YNc(51,ld,4,4,"td",17),e.BQk(),e.ynx(52,28),e.YNc(53,Fs,6,0,"th",29),e.YNc(54,Ku,3,0,"td",30),e.BQk(),e.ynx(55,31),e.YNc(56,C2,2,1,"td",32),e.BQk(),e.YNc(57,w2,1,3,"tr",33),e.YNc(58,sh,1,0,"tr",34),e.YNc(59,M2,1,0,"tr",35),e.qZA(),e._UZ(60,"mat-paginator",36),e.qZA()()()),2&M&&(e.xp6(3),e.Q6J("icon",v.faHistory),e.xp6(2),e.hij("",v.swapCaption," History"),e.xp6(5),e.Q6J("ngModel",v.selFilterBy),e.xp6(2),e.Q6J("ngForOf",e.DdM(16,f1).concat(v.displayedColumns.slice(0,-1))),e.xp6(4),e.Q6J("ngModel",v.selFilter),e.xp6(3),e.Q6J("ngIf",!0===v.flgLoading[0]),e.xp6(1),e.Q6J("matSortActive",v.tableSetting.sortBy)("matSortDirection",v.tableSetting.sortOrder)("dataSource",v.listSwaps)("ngClass",e.VKq(17,hd,"error"===v.flgLoading[0])),e.xp6(37),e.Q6J("matFooterRowDef",e.DdM(19,Pl)),e.xp6(1),e.Q6J("matHeaderRowDef",v.displayedColumns),e.xp6(1),e.Q6J("matRowDefColumns",v.displayedColumns),e.xp6(1),e.Q6J("pageSize",v.pageSize)("pageSizeOptions",v.pageSizeOptions)("showFirstLastButtons",v.screenSize!==v.screenSizeEnum.XS))},dependencies:[ji.mk,ji.sg,ji.O5,ji.PC,$t.Fj,$t.JJ,$t.On,Ma.BN,Wi.xw,Wi.Wh,Wi.yH,fi.oO,fi.Zl,_i.lW,Wa.Nt,Mi.KE,Mi.hX,kl.pW,Hi.gD,Hi.$L,Zi.ey,nl.YE,nl.nU,ta.BZ,ta.fO,ta.as,ta.w1,ta.Dz,ta.nj,ta.mD,ta.Ke,ta.ge,ta.ev,ta.yh,ta.XQ,ta.Gk,ta.Q2,Sc.NW,nn.Vv,nn.$V,ji.JJ,ji.uU]});const m1=function(F){return["../",F]};function rl(F,M){if(1&F){const v=e.EpF();e.TgZ(0,"div",11),e.NdJ("click",function(){const bt=e.CHM(v).$implicit,Zt=e.oxw();return e.KtG(Zt.onSelectedIndexChange(bt))}),e._uU(1),e.qZA()}if(2&F){const v=M.$implicit,Z=e.oxw();e.Q6J("active",Z.activeTab.link===v.link)("routerLink",e.VKq(3,m1,v.link)),e.xp6(1),e.Oqu(v.name)}}class Tc{constructor(M,v,Z){this.router=M,this.loopService=v,this.store=Z,this.faInfinity=Xi.vqe,this.targetConf=2,this.inAmount=25e4,this.quotes=[],this.LoopTypeEnum=Pe.$I,this.selectedSwapType=Pe.$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 zi.x,new zi.x,new zi.x,new zi.x]}ngOnInit(){this.loopService.listSwaps();const M=this.links.find(v=>this.router.url.includes(v.link));this.activeTab=M||this.links[0],this.selectedSwapType=M&&"loopin"===M.link?Pe.$I.LOOP_IN:Pe.$I.LOOP_OUT,this.router.events.pipe((0,an.R)(this.unSubs[0]),(0,Ra.h)(v=>v instanceof Bn.Av)).subscribe({next:v=>{const Z=this.links.find(_e=>v.urlAfterRedirects.includes(_e.link));this.activeTab=Z||this.links[0],this.selectedSwapType=Z&&"loopin"===Z.link?Pe.$I.LOOP_IN:Pe.$I.LOOP_OUT}}),this.loopService.swapsChanged.pipe((0,an.R)(this.unSubs[1])).subscribe({next:v=>{this.flgLoading[0]=!1,this.storedSwaps=v,this.filteredSwaps=this.storedSwaps?.filter(Z=>Z.type===this.selectedSwapType)},error:v=>{this.flgLoading[0]="error",this.emptyTableMessage=v.message?v.message:"No loop "+(this.selectedSwapType===Pe.$I.LOOP_IN?"in":"out")+" available."}})}onSelectedIndexChange(M){this.selectedSwapType="loopin"===M.link?Pe.$I.LOOP_IN:Pe.$I.LOOP_OUT,this.filteredSwaps=this.storedSwaps?.filter(v=>v.type===this.selectedSwapType)}onLoop(M){M===Pe.$I.LOOP_IN?this.loopService.getLoopInTermsAndQuotes(this.targetConf).pipe((0,an.R)(this.unSubs[2])).subscribe({next:v=>{this.store.dispatch((0,jt.qR)({payload:{data:{minQuote:v[0],maxQuote:v[1],direction:M,component:Zu.a}}}))}}):this.loopService.getLoopOutTermsAndQuotes(this.targetConf).pipe((0,an.R)(this.unSubs[3])).subscribe({next:v=>{this.store.dispatch((0,jt.qR)({payload:{data:{minQuote:v[0],maxQuote:v[1],direction:M,component:Zu.a}}}))}})}ngOnDestroy(){this.unSubs.forEach(M=>{M.next(null),M.complete()})}}Tc.\u0275fac=function(M){return new(M||Tc)(e.Y36(Bn.F0),e.Y36(l1.W),e.Y36(ki.yh))},Tc.\u0275cmp=e.Xpm({type:Tc,selectors:[["rtl-loop"]],decls:15,vars:8,consts:[["fxLayout","row","fxLayoutAlign","start center",1,"page-title-container"],[1,"page-title-img","mr-1",3,"icon"],[1,"page-title"],["fxLayout","column",1,"padding-gap-x"],["fxLayout","column"],["mat-tab-nav-bar","","mat-stretch-tabs","false","mat-align-tabs","start",3,"tabPanel"],["mat-tab-link","","class","mat-tab-label",3,"active","routerLink","click",4,"ngFor","ngForOf"],["tabPanel",""],["fxLayout","row","fxLayoutAlign","start start",1,"padding-gap-x-large","mt-1"],["mat-flat-button","","color","primary","type","button","tabindex","1",3,"click"],["fxLayout","row","fxFlex","100",3,"selectedSwapType","swapsData","flgLoading","emptyTableMessage"],["mat-tab-link","",1,"mat-tab-label",3,"active","routerLink","click"]],template:function(M,v){if(1&M&&(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,rl,2,5,"div",6),e.qZA(),e._UZ(9,"mat-tab-nav-panel",null,7),e.TgZ(11,"div",8)(12,"button",9),e.NdJ("click",function(){return v.onLoop(v.selectedSwapType)}),e._uU(13),e.qZA()(),e._UZ(14,"rtl-swaps",10),e.qZA()()()),2&M){const Z=e.MAs(10);e.xp6(1),e.Q6J("icon",v.faInfinity),e.xp6(6),e.Q6J("tabPanel",Z),e.xp6(1),e.Q6J("ngForOf",v.links),e.xp6(5),e.hij("Start ",v.activeTab.name,""),e.xp6(1),e.Q6J("selectedSwapType",v.selectedSwapType)("swapsData",v.filteredSwaps)("flgLoading",v.flgLoading)("emptyTableMessage",v.emptyTableMessage)}},dependencies:[ji.sg,Ma.BN,Wi.xw,Wi.Wh,Wi.yH,_i.lW,Ie.a8,Ie.dn,gt.BU,gt.sW,gt.Nj,Bn.rH,Jo]});var ud=p(7772),Xo=p(1135),p1=p(2843),Rl=p(262),fd=p(1786);class ps{constructor(M,v,Z,_e){this.httpClient=M,this.logger=v,this.store=Z,this.commonService=_e,this.swapUrl="",this.swaps={},this.swapsChanged=new Xo.X({}),this.unSubs=[new zi.x,new zi.x,new zi.x]}getSwapsList(){return this.swaps}listSwaps(){this.store.dispatch((0,jt.ac)({payload:Pe.m6.GET_BOLTZ_SWAPS})),this.swapUrl=Pe.T5+Pe.vv.BOLTZ_API+"/listSwaps",this.httpClient.get(this.swapUrl).pipe((0,an.R)(this.unSubs[0])).subscribe({next:M=>{this.store.dispatch((0,jt.uO)({payload:Pe.m6.GET_BOLTZ_SWAPS})),this.swaps=M,this.swapsChanged.next(this.swaps)},error:M=>this.swapsChanged.error(this.handleErrorWithAlert(Pe.m6.GET_BOLTZ_SWAPS,this.swapUrl,M))})}swapInfo(M){return this.swapUrl=Pe.T5+Pe.vv.BOLTZ_API+"/swapInfo/"+M,this.httpClient.get(this.swapUrl).pipe((0,Rl.K)(v=>(0,Eo.of)(this.handleErrorWithAlert(Pe.m6.NO_SPINNER,this.swapUrl,v))))}serviceInfo(){return this.store.dispatch((0,jt.ac)({payload:Pe.m6.GET_SERVICE_INFO})),this.swapUrl=Pe.T5+Pe.vv.BOLTZ_API+"/serviceInfo",this.httpClient.get(this.swapUrl).pipe((0,an.R)(this.unSubs[1]),(0,ua.U)(M=>(this.store.dispatch((0,jt.uO)({payload:Pe.m6.GET_SERVICE_INFO})),M)),(0,Rl.K)(M=>(0,Eo.of)(this.handleErrorWithAlert(Pe.m6.GET_SERVICE_INFO,this.swapUrl,M))))}swapOut(M,v){const Z={amount:M,address:v};return this.swapUrl=Pe.T5+Pe.vv.BOLTZ_API+"/createreverseswap",this.httpClient.post(this.swapUrl,Z).pipe((0,Rl.K)(_e=>this.handleErrorWithoutAlert("Swap Out for Address: "+v,Pe.m6.NO_SPINNER,_e)))}swapIn(M){const v={amount:M};return this.swapUrl=Pe.T5+Pe.vv.BOLTZ_API+"/createswap",this.httpClient.post(this.swapUrl,v).pipe((0,Rl.K)(Z=>this.handleErrorWithoutAlert("Swap In for Amount: "+M,Pe.m6.NO_SPINNER,Z)))}handleErrorWithoutAlert(M,v,Z){let _e="";return this.logger.error("ERROR IN: "+M+"\n"+JSON.stringify(Z)),this.store.dispatch((0,jt.uO)({payload:v})),401===Z.status?(_e="Unauthorized User.",this.logger.info("Redirecting to Login"),this.store.dispatch((0,jt.kS)())):503===Z.status?(_e="Unable to Connect to Boltz Server.",this.store.dispatch((0,jt.qR)({payload:{data:{type:"ERROR",alertTitle:"Boltz Not Connected",message:{code:Z.status,message:"Unable to Connect to Boltz Server",URL:M},component:fd.H}}}))):_e=this.commonService.extractErrorMessage(Z),(0,p1._)(()=>new Error(_e))}handleErrorWithAlert(M,v,Z){let _e="";if(401===Z.status&&(this.logger.info("Redirecting to Login"),this.store.dispatch((0,jt.kS)())),this.logger.error(Z),this.store.dispatch((0,jt.uO)({payload:M})),401===Z.status)_e="Unauthorized User.",this.logger.info("Redirecting to Login"),this.store.dispatch((0,jt.kS)());else if(503===Z.status)_e="Unable to Connect to Boltz Server.",setTimeout(()=>{this.store.dispatch((0,jt.qR)({payload:{data:{type:"ERROR",alertTitle:"Boltz Not Connected",message:{code:Z.status,message:"Unable to Connect to Boltz Server",URL:v},component:fd.H}}}))},100);else{_e=this.commonService.extractErrorMessage(Z);const bt=Z.error&&Z.error.error&&Z.error.error.code?Z.error.error.code:Z.error&&Z.error.code?Z.error.code:Z.code?Z.code:Z.status;setTimeout(()=>{this.store.dispatch((0,jt.qR)({payload:{data:{type:Pe.n_.ERROR,alertTitle:"ERROR",message:{code:bt,message:_e,URL:v},component:fd.H}}}))},100)}return{message:_e}}ngOnDestroy(){this.unSubs.forEach(M=>{M.next(null),M.complete()})}}function Qu(F,M){1&F&&e.GkF(0)}function qu(F,M){if(1&F&&(e.TgZ(0,"div",4)(1,"span",5),e._uU(2),e.qZA()()),2&F){const v=e.oxw();e.xp6(2),e.Oqu(null!=v.swapStatus&&v.swapStatus.error?null==v.swapStatus?null:v.swapStatus.error:"Unknown Error.")}}function Ju(F,M){if(1&F&&(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&F){const v=e.oxw();e.xp6(6),e.Oqu(null==v.swapStatus?null:v.swapStatus.id),e.xp6(5),e.Oqu(e.lcZ(12,4,null==v.swapStatus?null:v.swapStatus.routingFeeMilliSat)),e.xp6(8),e.Oqu(null==v.swapStatus?null:v.swapStatus.claimTransactionId),e.xp6(5),e.Oqu(null==v.swapStatus?null:v.swapStatus.lockupAddress)}}function Xu(F,M){if(1&F&&(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&F){const v=e.oxw();e.xp6(6),e.Oqu(null==v.swapStatus?null:v.swapStatus.id),e.xp6(5),e.Oqu(e.lcZ(12,4,null==v.swapStatus?null:v.swapStatus.expectedAmount)),e.xp6(8),e.Oqu(null==v.swapStatus?null:v.swapStatus.address),e.xp6(7),e.Oqu(null==v.swapStatus?null:v.swapStatus.bip21)}}ps.\u0275fac=function(M){return new(M||ps)(e.LFG(br.eN),e.LFG(li.mQ),e.LFG(ki.yh),e.LFG(Ft.v))},ps.\u0275prov=e.Yz7({token:ps,factory:ps.\u0275fac});class g1{constructor(){this.swapStatus=null,this.direction=Pe.hc.SWAP_OUT,this.swapTypeEnum=Pe.hc}}g1.\u0275fac=function(M){return new(M||g1)},g1.\u0275cmp=e.Xpm({type:g1,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(M,v){if(1&M&&(e.YNc(0,Qu,1,0,"ng-container",0),e.YNc(1,qu,3,1,"ng-template",null,1,e.W1O),e.YNc(3,Ju,25,6,"ng-template",null,2,e.W1O),e.YNc(5,Xu,27,6,"ng-template",null,3,e.W1O)),2&M){const Z=e.MAs(2),_e=e.MAs(4),bt=e.MAs(6);e.Q6J("ngTemplateOutlet",null!=v.swapStatus&&v.swapStatus.error?Z:v.direction===v.swapTypeEnum.SWAP_OUT?_e:bt)}},dependencies:[ji.tP,Wi.xw,Wi.Wh,Wi.yH,zo.d,ji.JJ]});class ol{constructor(){this.serviceInfo={},this.direction=Pe.hc.SWAP_OUT,this.swapTypeEnum=Pe.hc}}ol.\u0275fac=function(M){return new(M||ol)},ol.\u0275cmp=e.Xpm({type:ol,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(M,v){1&M&&(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&M&&(e.Q6J("expanded",!0),e.xp6(11),e.Oqu(e.lcZ(12,5,null==v.serviceInfo||null==v.serviceInfo.limits?null:v.serviceInfo.limits.minimal)),e.xp6(6),e.Oqu(e.lcZ(18,7,null==v.serviceInfo||null==v.serviceInfo.limits?null:v.serviceInfo.limits.maximal)),e.xp6(8),e.Oqu(e.lcZ(26,9,null==v.serviceInfo||null==v.serviceInfo.fees?null:v.serviceInfo.fees.percentage)),e.xp6(6),e.Oqu(e.lcZ(32,11,v.direction===v.swapTypeEnum.SWAP_OUT?null==v.serviceInfo||null==v.serviceInfo.fees||null==v.serviceInfo.fees.miner?null:v.serviceInfo.fees.miner.reverse:null==v.serviceInfo||null==v.serviceInfo.fees||null==v.serviceInfo.fees.miner?null:v.serviceInfo.fees.miner.normal)))},dependencies:[Wi.xw,Wi.Wh,Wi.yH,Di.ib,Di.yz,Di.yK,zo.d,ji.JJ]});var md=p(113);function S2(F,M){1&F&&e.GkF(0)}const sc=function(F,M){return{"small-svg":F,"large-svg":M}};function Hs(F,M){if(1&F){const v=e.EpF();e.TgZ(0,"div",6),e.NdJ("swipe",function(_e){e.CHM(v);const bt=e.oxw();return e.KtG(bt.onSwipe(_e))}),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&F){const v=e.oxw();e.Q6J("@sliderAnimation",v.animationDirection),e.xp6(1),e.Q6J("ngClass",e.WLB(2,sc,v.screenSize===v.screenSizeEnum.XS,v.screenSize!==v.screenSizeEnum.XS))}}function $u(F,M){if(1&F){const v=e.EpF();e.TgZ(0,"div",6),e.NdJ("swipe",function(_e){e.CHM(v);const bt=e.oxw();return e.KtG(bt.onSwipe(_e))}),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&F){const v=e.oxw();e.Q6J("@sliderAnimation",v.animationDirection),e.xp6(1),e.Q6J("ngClass",e.WLB(2,sc,v.screenSize===v.screenSizeEnum.XS,v.screenSize!==v.screenSizeEnum.XS))}}function pd(F,M){if(1&F){const v=e.EpF();e.TgZ(0,"div",6),e.NdJ("swipe",function(_e){e.CHM(v);const bt=e.oxw();return e.KtG(bt.onSwipe(_e))}),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&F){const v=e.oxw();e.Q6J("@sliderAnimation",v.animationDirection),e.xp6(1),e.Q6J("ngClass",e.WLB(2,sc,v.screenSize===v.screenSizeEnum.XS,v.screenSize!==v.screenSizeEnum.XS))}}function ch(F,M){if(1&F){const v=e.EpF();e.TgZ(0,"div",6),e.NdJ("swipe",function(_e){e.CHM(v);const bt=e.oxw();return e.KtG(bt.onSwipe(_e))}),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&F){const v=e.oxw();e.Q6J("@sliderAnimation",v.animationDirection),e.xp6(1),e.Q6J("ngClass",e.WLB(2,sc,v.screenSize===v.screenSizeEnum.XS,v.screenSize!==v.screenSizeEnum.XS))}}function E2(F,M){if(1&F){const v=e.EpF();e.TgZ(0,"div",6),e.NdJ("swipe",function(_e){e.CHM(v);const bt=e.oxw();return e.KtG(bt.onSwipe(_e))}),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&F){const v=e.oxw();e.Q6J("@sliderAnimation",v.animationDirection),e.xp6(1),e.Q6J("ngClass",e.WLB(2,sc,v.screenSize===v.screenSizeEnum.XS,v.screenSize!==v.screenSizeEnum.XS))}}class $o{constructor(M){this.commonService=M,this.animationDirection="forward",this.stepNumber=1,this.stepNumberChange=new e.vpe,this.screenSize="",this.screenSizeEnum=Pe.cu}ngOnInit(){this.screenSize=this.commonService.getScreenSize()}onSwipe(M){2===M.direction&&this.stepNumber<5?(this.stepNumber++,this.animationDirection="forward",this.stepNumberChange.emit(this.stepNumber)):4===M.direction&&this.stepNumber>1&&(this.stepNumber--,this.animationDirection="backward",this.stepNumberChange.emit(this.stepNumber))}}function gd(F,M){1&F&&e.GkF(0)}$o.\u0275fac=function(M){return new(M||$o)(e.Y36(Ft.v))},$o.\u0275cmp=e.Xpm({type:$o,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(M,v){if(1&M&&(e.YNc(0,S2,1,0,"ng-container",0),e.YNc(1,Hs,18,5,"ng-template",null,1,e.W1O),e.YNc(3,$u,15,5,"ng-template",null,2,e.W1O),e.YNc(5,pd,19,5,"ng-template",null,3,e.W1O),e.YNc(7,ch,17,5,"ng-template",null,4,e.W1O),e.YNc(9,E2,13,5,"ng-template",null,5,e.W1O)),2&M){const Z=e.MAs(2),_e=e.MAs(4),bt=e.MAs(6),Zt=e.MAs(8),ei=e.MAs(10);e.Q6J("ngTemplateOutlet",1===v.stepNumber?Z:2===v.stepNumber?_e:3===v.stepNumber?bt:4===v.stepNumber?Zt:ei)}},dependencies:[ji.mk,ji.tP,Wi.xw,Wi.Wh,Wi.yH,fi.oO,Ie.$j,Ie.n5],styles:["svg.small-svg[_ngcontent-%COMP%]{height:50%;min-height:50%;max-width:100%}svg.large-svg[_ngcontent-%COMP%]{height:60%;min-height:60%;max-width:100%}"],data:{animation:[md.l]}});const cc=function(F,M){return{"small-svg":F,"large-svg":M}};function _d(F,M){if(1&F){const v=e.EpF();e.TgZ(0,"div",6),e.NdJ("swipe",function(_e){e.CHM(v);const bt=e.oxw();return e.KtG(bt.onSwipe(_e))}),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&F){const v=e.oxw();e.Q6J("@sliderAnimation",v.animationDirection),e.xp6(1),e.Q6J("ngClass",e.WLB(2,cc,v.screenSize===v.screenSizeEnum.XS,v.screenSize!==v.screenSizeEnum.XS))}}function Nl(F,M){if(1&F){const v=e.EpF();e.TgZ(0,"div",6),e.NdJ("swipe",function(_e){e.CHM(v);const bt=e.oxw();return e.KtG(bt.onSwipe(_e))}),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&F){const v=e.oxw();e.Q6J("@sliderAnimation",v.animationDirection),e.xp6(1),e.Q6J("ngClass",e.WLB(2,cc,v.screenSize===v.screenSizeEnum.XS,v.screenSize!==v.screenSizeEnum.XS))}}function _1(F,M){if(1&F){const v=e.EpF();e.TgZ(0,"div",6),e.NdJ("swipe",function(_e){e.CHM(v);const bt=e.oxw();return e.KtG(bt.onSwipe(_e))}),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&F){const v=e.oxw();e.Q6J("@sliderAnimation",v.animationDirection),e.xp6(1),e.Q6J("ngClass",e.WLB(2,cc,v.screenSize===v.screenSizeEnum.XS,v.screenSize!==v.screenSizeEnum.XS))}}function T2(F,M){if(1&F){const v=e.EpF();e.TgZ(0,"div",6),e.NdJ("swipe",function(_e){e.CHM(v);const bt=e.oxw();return e.KtG(bt.onSwipe(_e))}),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&F){const v=e.oxw();e.Q6J("@sliderAnimation",v.animationDirection),e.xp6(1),e.Q6J("ngClass",e.WLB(2,cc,v.screenSize===v.screenSizeEnum.XS,v.screenSize!==v.screenSizeEnum.XS))}}function xr(F,M){if(1&F){const v=e.EpF();e.TgZ(0,"div",6),e.NdJ("swipe",function(_e){e.CHM(v);const bt=e.oxw();return e.KtG(bt.onSwipe(_e))}),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&F){const v=e.oxw();e.Q6J("@sliderAnimation",v.animationDirection),e.xp6(1),e.Q6J("ngClass",e.WLB(2,cc,v.screenSize===v.screenSizeEnum.XS,v.screenSize!==v.screenSizeEnum.XS))}}class sl{constructor(M){this.commonService=M,this.animationDirection="forward",this.stepNumber=1,this.stepNumberChange=new e.vpe,this.screenSize="",this.screenSizeEnum=Pe.cu}ngOnInit(){this.screenSize=this.commonService.getScreenSize()}onSwipe(M){2===M.direction&&this.stepNumber<5?(this.stepNumber++,this.animationDirection="forward",this.stepNumberChange.emit(this.stepNumber)):4===M.direction&&this.stepNumber>1&&(this.stepNumber--,this.animationDirection="backward",this.stepNumberChange.emit(this.stepNumber))}}sl.\u0275fac=function(M){return new(M||sl)(e.Y36(Ft.v))},sl.\u0275cmp=e.Xpm({type:sl,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(M,v){if(1&M&&(e.YNc(0,gd,1,0,"ng-container",0),e.YNc(1,_d,18,5,"ng-template",null,1,e.W1O),e.YNc(3,Nl,19,5,"ng-template",null,2,e.W1O),e.YNc(5,_1,19,5,"ng-template",null,3,e.W1O),e.YNc(7,T2,17,5,"ng-template",null,4,e.W1O),e.YNc(9,xr,13,5,"ng-template",null,5,e.W1O)),2&M){const Z=e.MAs(2),_e=e.MAs(4),bt=e.MAs(6),Zt=e.MAs(8),ei=e.MAs(10);e.Q6J("ngTemplateOutlet",1===v.stepNumber?Z:2===v.stepNumber?_e:3===v.stepNumber?bt:4===v.stepNumber?Zt:ei)}},dependencies:[ji.mk,ji.tP,Wi.xw,Wi.Wh,Wi.yH,fi.oO,Ie.$j,Ie.n5],styles:["svg.small-svg[_ngcontent-%COMP%]{height:50%;min-height:50%;max-width:100%}svg.large-svg[_ngcontent-%COMP%]{height:60%;min-height:60%;max-width:100%}"],data:{animation:[md.l]}});const vd=["stepper"];function ra(F,M){if(1&F&&e._uU(0),2&F){const v=e.oxw(2);e.Oqu(v.inputFormLabel)}}function A2(F,M){1&F&&(e.TgZ(0,"mat-error"),e._uU(1,"Amount is required."),e.qZA())}function lc(F,M){if(1&F&&(e.TgZ(0,"mat-error"),e._uU(1),e.ALo(2,"number"),e.qZA()),2&F){const v=e.oxw(2);e.xp6(1),e.hij("Amount must be greater than or equal to ",e.lcZ(2,1,null==v.serviceInfo||null==v.serviceInfo.limits?null:v.serviceInfo.limits.minimal),".")}}function zs(F,M){if(1&F&&(e.TgZ(0,"mat-error"),e._uU(1),e.ALo(2,"number"),e.qZA()),2&F){const v=e.oxw(2);e.xp6(1),e.hij("Amount must be less than or equal to ",e.lcZ(2,1,null==v.serviceInfo||null==v.serviceInfo.limits?null:v.serviceInfo.limits.maximal),".")}}function L2(F,M){1&F&&(e.TgZ(0,"button",40),e._uU(1,"Next"),e.qZA())}function v1(F,M){if(1&F){const v=e.EpF();e.TgZ(0,"button",41),e.NdJ("click",function(){e.CHM(v);const _e=e.oxw(2);return e.KtG(_e.onSwap())}),e._uU(1),e.qZA()}if(2&F){const v=e.oxw(2);e.xp6(1),e.hij("Initiate ",v.swapDirectionCaption,"")}}function bd(F,M){if(1&F&&e._uU(0),2&F){const v=e.oxw(3);e.Oqu(v.addressFormLabel)}}function yd(F,M){1&F&&(e.TgZ(0,"mat-error"),e._uU(1,"Address is required."),e.qZA())}function Fl(F,M){if(1&F){const v=e.EpF();e.TgZ(0,"mat-step",15)(1,"form",16),e.YNc(2,bd,1,1,"ng-template",17),e.TgZ(3,"div",42)(4,"mat-radio-group",43),e.NdJ("change",function(_e){e.CHM(v);const bt=e.oxw(2);return e.KtG(bt.onAddressTypeChange(_e))}),e.TgZ(5,"mat-radio-button",44),e._uU(6,"Node Local Address"),e.qZA(),e.TgZ(7,"mat-radio-button",45),e._uU(8,"External Address"),e.qZA()(),e.TgZ(9,"mat-form-field",46)(10,"mat-label"),e._uU(11,"Address"),e.qZA(),e._UZ(12,"input",47),e.YNc(13,yd,2,0,"mat-error",24),e.qZA()(),e.TgZ(14,"div",25)(15,"button",48),e.NdJ("click",function(){e.CHM(v);const _e=e.oxw(2);return e.KtG(_e.onSwap())}),e._uU(16),e.qZA()()()()}if(2&F){const v=e.oxw(2);e.Q6J("stepControl",v.addressFormGroup)("editable",v.flgEditable),e.xp6(1),e.Q6J("formGroup",v.addressFormGroup),e.xp6(11),e.Q6J("required","external"===v.addressFormGroup.controls.addressType.value),e.xp6(1),e.Q6J("ngIf",null==v.addressFormGroup.controls.address.errors?null:v.addressFormGroup.controls.address.errors.required),e.xp6(3),e.hij("Initiate ",v.swapDirectionCaption,"")}}function D2(F,M){if(1&F&&e._uU(0),2&F){const v=e.oxw(2);e.hij("",v.swapDirectionCaption," Status")}}function xd(F,M){if(1&F&&(e.TgZ(0,"mat-icon",49),e._uU(1),e.qZA()),2&F){const v=e.oxw(2);e.xp6(1),e.Oqu(v.swapStatus&&null!=v.swapStatus&&v.swapStatus.id?"check":"close")}}function lh(F,M){1&F&&e._UZ(0,"div")}function dh(F,M){1&F&&e._UZ(0,"mat-progress-bar",50)}function I2(F,M){if(1&F&&(e.TgZ(0,"h4",51),e._uU(1),e.qZA()),2&F){const v=e.oxw(2);e.xp6(1),e.Oqu(v.swapStatus&&v.swapStatus.error?v.swapDirectionCaption+" failed.":v.swapStatus&&v.swapStatus.id?v.swapDirectionCaption+" request placed successfully. You can check the status of the request on the 'Boltz' menu.":v.swapDirectionCaption+" request placed successfully.")}}function Cd(F,M){if(1&F){const v=e.EpF();e.TgZ(0,"button",52),e.NdJ("click",function(){e.CHM(v);const _e=e.oxw(2);return e.KtG(_e.onRestart())}),e._uU(1,"Start Again"),e.qZA()}}function wd(F,M){if(1&F){const v=e.EpF();e.TgZ(0,"div",3)(1,"div",4)(2,"mat-card-header",5)(3,"div",6)(4,"span",7),e._uU(5),e.qZA()(),e.TgZ(6,"div",8)(7,"button",9),e.NdJ("click",function(){e.CHM(v);const _e=e.oxw();return e.KtG(_e.showInfo())}),e._uU(8,"?"),e.qZA(),e.TgZ(9,"button",10),e.NdJ("click",function(){e.CHM(v);const _e=e.oxw();return e.KtG(_e.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(_e){e.CHM(v);const bt=e.oxw();return e.KtG(bt.stepSelectionChanged(_e))}),e.TgZ(15,"mat-step",15)(16,"form",16),e.YNc(17,ra,1,1,"ng-template",17),e.TgZ(18,"div",18),e._UZ(19,"rtl-boltz-service-info",19),e.qZA(),e.TgZ(20,"div",20)(21,"mat-form-field",21)(22,"mat-label"),e._uU(23,"Amount"),e.qZA(),e._UZ(24,"input",22),e.TgZ(25,"mat-hint"),e._uU(26),e.ALo(27,"number"),e.ALo(28,"number"),e.qZA(),e.TgZ(29,"span",23),e._uU(30,"Sats"),e.qZA(),e.YNc(31,A2,2,0,"mat-error",24),e.YNc(32,lc,3,3,"mat-error",24),e.YNc(33,zs,3,3,"mat-error",24),e.qZA()(),e.TgZ(34,"div",25),e.YNc(35,L2,2,0,"button",26),e.YNc(36,v1,2,1,"button",27),e.qZA()()(),e.YNc(37,Fl,17,6,"mat-step",28),e.TgZ(38,"mat-step",29)(39,"form",16),e.YNc(40,D2,1,1,"ng-template",17),e.TgZ(41,"div",30)(42,"mat-expansion-panel",31)(43,"mat-expansion-panel-header")(44,"mat-panel-title")(45,"span",32),e._uU(46),e.YNc(47,xd,2,1,"mat-icon",33),e.qZA()()(),e.YNc(48,lh,1,0,"div",34),e.qZA(),e.YNc(49,dh,1,0,"mat-progress-bar",35),e.qZA(),e.YNc(50,I2,2,1,"h4",36),e.TgZ(51,"div",25),e.YNc(52,Cd,2,0,"button",37),e.qZA()()()(),e.TgZ(53,"div",38)(54,"button",39),e._uU(55,"Close"),e.qZA()()()()()()}if(2&F){const v=e.oxw(),Z=e.MAs(2);e.Q6J("@opacityAnimation",void 0),e.xp6(3),e.Q6J("fxFlex",v.screenSize===v.screenSizeEnum.XS||v.screenSize===v.screenSizeEnum.SM?"83":"91"),e.xp6(2),e.Oqu(v.swapDirectionCaption),e.xp6(1),e.Q6J("fxFlex",v.screenSize===v.screenSizeEnum.XS||v.screenSize===v.screenSizeEnum.SM?"17":"9"),e.xp6(7),e.Q6J("linear",!0),e.xp6(2),e.Q6J("stepControl",v.inputFormGroup)("editable",v.flgEditable),e.xp6(1),e.Q6J("formGroup",v.inputFormGroup),e.xp6(3),e.Q6J("serviceInfo",v.serviceInfo)("direction",v.direction),e.xp6(5),e.Q6J("step",1e3),e.xp6(2),e.AsE("Range: ",e.lcZ(27,30,null==v.serviceInfo||null==v.serviceInfo.limits?null:v.serviceInfo.limits.minimal),"-",e.lcZ(28,32,null==v.serviceInfo||null==v.serviceInfo.limits?null:v.serviceInfo.limits.maximal),""),e.xp6(5),e.Q6J("ngIf",null==v.inputFormGroup||null==v.inputFormGroup.controls||null==v.inputFormGroup.controls.amount||null==v.inputFormGroup.controls.amount.errors?null:v.inputFormGroup.controls.amount.errors.required),e.xp6(1),e.Q6J("ngIf",null==v.inputFormGroup||null==v.inputFormGroup.controls||null==v.inputFormGroup.controls.amount||null==v.inputFormGroup.controls.amount.errors?null:v.inputFormGroup.controls.amount.errors.min),e.xp6(1),e.Q6J("ngIf",null==v.inputFormGroup||null==v.inputFormGroup.controls||null==v.inputFormGroup.controls.amount||null==v.inputFormGroup.controls.amount.errors?null:v.inputFormGroup.controls.amount.errors.max),e.xp6(2),e.Q6J("ngIf",v.direction===v.swapTypeEnum.SWAP_OUT),e.xp6(1),e.Q6J("ngIf",v.direction===v.swapTypeEnum.SWAP_IN),e.xp6(1),e.Q6J("ngIf",v.direction===v.swapTypeEnum.SWAP_OUT),e.xp6(1),e.Q6J("stepControl",v.statusFormGroup),e.xp6(1),e.Q6J("formGroup",v.statusFormGroup),e.xp6(3),e.Q6J("expanded",!!v.swapStatus),e.xp6(4),e.Oqu(v.swapStatus?v.swapStatus.id?v.swapDirectionCaption+" request details":v.swapDirectionCaption+" error details":"Waiting for "+v.swapDirectionCaption+" request..."),e.xp6(1),e.Q6J("ngIf",v.swapStatus),e.xp6(1),e.Q6J("ngIf",!v.swapStatus)("ngIfElse",Z),e.xp6(1),e.Q6J("ngIf",!v.swapStatus),e.xp6(1),e.Q6J("ngIf",v.swapStatus),e.xp6(2),e.Q6J("ngIf",v.swapStatus&&(v.swapStatus.error||!v.swapStatus.id)),e.xp6(2),e.Q6J("mat-dialog-close",!1)}}function Hl(F,M){if(1&F&&e._UZ(0,"rtl-boltz-swap-status",53),2&F){const v=e.oxw();e.Q6J("swapStatus",v.swapStatus)("direction",v.direction)}}function b1(F,M){if(1&F){const v=e.EpF();e.TgZ(0,"rtl-boltz-swapout-info-graphics",70),e.NdJ("stepNumberChange",function(_e){e.CHM(v);const bt=e.oxw(2);return e.KtG(bt.stepNumber=_e)}),e.qZA()}if(2&F){const v=e.oxw(2);e.Q6J("animationDirection",v.animationDirection)("stepNumber",v.stepNumber)}}function Ac(F,M){if(1&F){const v=e.EpF();e.TgZ(0,"rtl-boltz-swapin-info-graphics",70),e.NdJ("stepNumberChange",function(_e){e.CHM(v);const bt=e.oxw(2);return e.KtG(bt.stepNumber=_e)}),e.qZA()}if(2&F){const v=e.oxw(2);e.Q6J("animationDirection",v.animationDirection)("stepNumber",v.stepNumber)}}const hh=function(F,M){return{"dot-primary":F,"dot-primary-lighter":M}};function k2(F,M){if(1&F){const v=e.EpF();e.TgZ(0,"span",71),e.NdJ("click",function(){const bt=e.CHM(v).$implicit,Zt=e.oxw(2);return e.KtG(Zt.onStepChanged(bt))}),e._UZ(1,"p",72),e.qZA()}if(2&F){const v=M.$implicit,Z=e.oxw(2);e.xp6(1),e.Q6J("ngClass",e.WLB(1,hh,Z.stepNumber===v,Z.stepNumber!==v))}}function e3(F,M){if(1&F){const v=e.EpF();e.TgZ(0,"button",73),e.NdJ("click",function(){e.CHM(v);const _e=e.oxw(2);return e.KtG(_e.onReadMore())}),e._uU(1,"Read More"),e.qZA()}}function uh(F,M){if(1&F){const v=e.EpF();e.TgZ(0,"button",74),e.NdJ("click",function(){e.CHM(v);const _e=e.oxw(2);return e.KtG(_e.onStepChanged(4))}),e._uU(1,"Back"),e.qZA()}}function y1(F,M){if(1&F){const v=e.EpF();e.TgZ(0,"button",75),e.NdJ("click",function(){e.CHM(v);const _e=e.oxw(2);return _e.flgShowInfo=!1,e.KtG(_e.stepNumber=1)}),e._uU(1,"Close"),e.qZA()}}function O2(F,M){if(1&F){const v=e.EpF();e.TgZ(0,"button",76),e.NdJ("click",function(){e.CHM(v);const _e=e.oxw(2);return _e.flgShowInfo=!1,e.KtG(_e.stepNumber=1)}),e._uU(1,"Close"),e.qZA()}}function P2(F,M){if(1&F){const v=e.EpF();e.TgZ(0,"button",77),e.NdJ("click",function(){e.CHM(v);const _e=e.oxw(2);return e.KtG(_e.onStepChanged(_e.stepNumber-1))}),e._uU(1,"Back"),e.qZA()}}function zl(F,M){if(1&F){const v=e.EpF();e.TgZ(0,"button",78),e.NdJ("click",function(){e.CHM(v);const _e=e.oxw(2);return e.KtG(_e.onStepChanged(_e.stepNumber+1))}),e._uU(1,"Next"),e.qZA()}}const Md=function(){return[1,2,3,4,5]};function Sd(F,M){if(1&F){const v=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(v);const _e=e.oxw();return _e.flgShowInfo=!1,e.KtG(_e.stepNumber=1)}),e._uU(7,"X"),e.qZA()()(),e.TgZ(8,"mat-card-content",59),e.YNc(9,b1,1,2,"rtl-boltz-swapout-info-graphics",60),e.YNc(10,Ac,1,2,"rtl-boltz-swapin-info-graphics",60),e.qZA(),e.TgZ(11,"div",61),e.YNc(12,k2,2,4,"span",62),e.qZA(),e.TgZ(13,"div",63),e.YNc(14,e3,2,0,"button",64),e.YNc(15,uh,2,0,"button",65),e.YNc(16,y1,2,0,"button",66),e.YNc(17,O2,2,0,"button",67),e.YNc(18,P2,2,0,"button",68),e.YNc(19,zl,2,0,"button",69),e.qZA()()()}if(2&F){const v=e.oxw();e.Q6J("@opacityAnimation",void 0),e.xp6(9),e.Q6J("ngIf",v.direction===v.swapTypeEnum.SWAP_OUT),e.xp6(1),e.Q6J("ngIf",v.direction===v.swapTypeEnum.SWAP_IN),e.xp6(2),e.Q6J("ngForOf",e.DdM(10,Md)),e.xp6(2),e.Q6J("ngIf",5===v.stepNumber),e.xp6(1),e.Q6J("ngIf",5===v.stepNumber),e.xp6(1),e.Q6J("ngIf",5===v.stepNumber),e.xp6(1),e.Q6J("ngIf",v.stepNumber<5),e.xp6(1),e.Q6J("ngIf",v.stepNumber>1&&v.stepNumber<5),e.xp6(1),e.Q6J("ngIf",v.stepNumber<5)}}class cl{constructor(M,v,Z,_e,bt,Zt,ei){this.dialogRef=M,this.data=v,this.boltzService=Z,this.formBuilder=_e,this.decimalPipe=bt,this.logger=Zt,this.commonService=ei,this.faInfoCircle=Xi.sqG,this.serviceInfo={fees:{percentage:null,miner:{normal:null,reverse:null}},limits:{minimal:1e4,maximal:5e7}},this.swapTypeEnum=Pe.hc,this.direction=Pe.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=Pe.cu,this.animationDirection="forward",this.flgEditable=!0,this.unSubs=[new zi.x,new zi.x,new zi.x,new zi.x,new zi.x,new zi.x]}ngOnInit(){this.screenSize=this.commonService.getScreenSize(),this.serviceInfo=this.data.serviceInfo,this.direction=this.data.direction||Pe.hc.SWAP_OUT,this.swapDirectionCaption=this.direction===Pe.hc.SWAP_OUT?"Swap Out":"Swap in",this.inputFormLabel="Amount to "+this.swapDirectionCaption,this.inputFormGroup=this.formBuilder.group({amount:[this.serviceInfo.limits?.minimal,[$t.kI.required,$t.kI.min(this.serviceInfo.limits?.minimal||0),$t.kI.max(this.serviceInfo.limits?.maximal||0)]]}),this.addressFormGroup=this.formBuilder.group({addressType:["local",[$t.kI.required]],address:[{value:"",disabled:!0}]}),this.statusFormGroup=this.formBuilder.group({}),this.onFormValueChanges()}ngAfterViewInit(){this.direction===Pe.hc.SWAP_OUT&&this.addressFormGroup.setErrors({Invalid:!0})}onFormValueChanges(){this.direction===Pe.hc.SWAP_OUT&&this.addressFormGroup.valueChanges.pipe((0,an.R)(this.unSubs[2])).subscribe(M=>{this.addressFormGroup.setErrors({Invalid:!0})})}onAddressTypeChange(M){"external"===M.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})}onSwap(){if(!this.inputFormGroup.controls.amount.value||this.serviceInfo.limits?.minimal&&this.inputFormGroup.controls.amount.value<+this.serviceInfo.limits.minimal||this.serviceInfo.limits?.maximal&&this.inputFormGroup.controls.amount.value>+this.serviceInfo.limits.maximal||this.direction===Pe.hc.SWAP_OUT&&"external"===this.addressFormGroup.controls.addressType.value&&(!this.addressFormGroup.controls.address.value||""===this.addressFormGroup.controls.address.value.trim()))return!0;this.flgEditable=!1,this.stepper.selected?.stepControl.setErrors(null),this.stepper.next(),this.direction===Pe.hc.SWAP_IN?this.boltzService.swapIn(this.inputFormGroup.controls.amount.value).pipe((0,an.R)(this.unSubs[3])).subscribe({next:M=>{this.swapStatus=M,this.boltzService.listSwaps(),this.flgEditable=!0},error:M=>{this.swapStatus={error:M},this.flgEditable=!0,this.logger.error(M)}}):this.boltzService.swapOut(this.inputFormGroup.controls.amount.value,"external"===this.addressFormGroup.controls.addressType.value?this.addressFormGroup.controls.address.value:"").pipe((0,an.R)(this.unSubs[4])).subscribe({next:v=>{this.swapStatus=v,this.boltzService.listSwaps(),this.flgEditable=!0},error:v=>{this.swapStatus={error:v},this.flgEditable=!0,this.logger.error(v)}})}stepSelectionChanged(M){switch(M.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"}M.selectedIndex<M.previouslySelectedIndex&&M.selectedStep.stepControl.setErrors({Invalid:!0})}onClose(){this.dialogRef.close(!0)}showInfo(){this.flgShowInfo=!0}onReadMore(){this.direction===Pe.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(M){this.animationDirection=M<this.stepNumber?"backward":"forward",this.stepNumber=M}onRestart(){this.stepper.reset(),this.flgEditable=!0,this.inputFormGroup.reset({amount:this.serviceInfo.limits?.minimal}),this.statusFormGroup.reset(),this.addressFormGroup.reset({addressType:"local",address:""}),this.addressFormGroup.controls.address.disable()}ngOnDestroy(){this.unSubs.forEach(M=>{M.next(null),M.complete()})}}function Ed(F,M){if(1&F&&(e.TgZ(0,"mat-option",42),e._uU(1),e.qZA()),2&F){const v=M.$implicit,Z=e.oxw();e.Q6J("value",v),e.xp6(1),e.Oqu(Z.getLabel(v))}}function Lc(F,M){1&F&&e._UZ(0,"mat-progress-bar",43)}function R2(F,M){1&F&&(e.TgZ(0,"th",44),e._uU(1,"Status"),e.qZA())}function fh(F,M){if(1&F&&(e.TgZ(0,"td",45),e._uU(1),e.qZA()),2&F){const v=M.$implicit,Z=e.oxw();e.xp6(1),e.Oqu(Z.swapStateEnum[null==v?null:v.status])}}function N2(F,M){1&F&&(e.TgZ(0,"th",44),e._uU(1,"Swap ID"),e.qZA())}function F2(F,M){if(1&F&&(e.TgZ(0,"td",45),e._uU(1),e.qZA()),2&F){const v=M.$implicit;e.xp6(1),e.Oqu(null==v?null:v.id)}}function mh(F,M){1&F&&(e.TgZ(0,"th",44),e._uU(1,"Claim Address"),e.qZA())}cl.\u0275fac=function(M){return new(M||cl)(e.Y36(xa.so),e.Y36(xa.WI),e.Y36(ps),e.Y36($t.QS),e.Y36(ji.JJ),e.Y36(li.mQ),e.Y36(Ft.v))},cl.\u0275cmp=e.Xpm({type:cl,selectors:[["rtl-boltz-swap-modal"]],viewQuery:function(M,v){if(1&M&&e.Gf(vd,5),2&M){let Z;e.iGM(Z=e.CRH())&&(v.stepper=Z.first)}},decls:4,vars:2,consts:[["fxLayout","column","fxFlex","100","fxLayoutAlign","start stretch",4,"ngIf"],["swapStatusBlock",""],["fxLayout","column","fxFlex","100","fxLayoutAlign","start stretch","class","info-graphics-container",4,"ngIf"],["fxLayout","column","fxFlex","100","fxLayoutAlign","start stretch"],["fxFlex","100"],["fxLayout","row","fxLayoutAlign","space-between center",1,"modal-info-header"],["fxLayoutAlign","start start",3,"fxFlex"],[1,"page-title"],["fxLayoutAlign","space-between end",3,"fxFlex"],["tabindex","21","mat-button","",1,"btn-close-x","p-0",3,"click"],["tabindex","22","mat-button","",1,"btn-close-x","p-0",3,"click"],[1,"padding-gap-x-large"],["fxLayout","column"],[3,"linear","selectionChange"],["stepper",""],[3,"stepControl","editable"],["fxLayout","column","fxLayoutAlign","start","fxLayoutAlign.gt-sm","space-between",1,"my-1",3,"formGroup"],["matStepLabel",""],["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between stretch"],[3,"serviceInfo","direction"],["fxLayout","row wrap","fxFlex","100","fxLayoutAlign","space-between center",1,"mt-1"],["fxLayout","column","fxFlex","48"],["autoFocus","","matInput","","type","number","tabindex","1","formControlName","amount","required","",3,"step"],["matSuffix",""],[4,"ngIf"],["fxLayout","row","fxLayoutAlign","start center","fxFlex","100",1,"mt-2"],["mat-button","","color","primary","tabindex","2","type","button","matStepperNext","",4,"ngIf"],["mat-button","","color","primary","tabindex","3","type","button",3,"click",4,"ngIf"],[3,"stepControl","editable",4,"ngIf"],[3,"stepControl"],["fxLayout","row wrap","fxFlex","100","fxLayoutAlign","space-between stretch"],["fxFlex","100",1,"flat-expansion-panel",3,"expanded"],["fxLayoutAlign","start center","fxFlex","100"],["class","ml-1 icon-small",4,"ngIf"],[4,"ngIf","ngIfElse"],["fxFlex","100","color","primary","mode","indeterminate",4,"ngIf"],["fxLayoutAlign","start","class","font-bold-500 mt-2",4,"ngIf"],["mat-button","","color","primary","tabindex","13","type","button",3,"click",4,"ngIf"],["fxLayout","row","fxFlex","100","fxLayoutAlign","end end"],["mat-button","","color","primary","tabindex","14","type","button","default","",3,"mat-dialog-close"],["mat-button","","color","primary","tabindex","2","type","button","matStepperNext",""],["mat-button","","color","primary","tabindex","3","type","button",3,"click"],["fxLayout","row wrap","fxFlex","100","fxLayoutAlign","space-between stretch",1,"mt-1"],["color","primary","name","addressType","formControlName","addressType","fxFlex","100","fxLayoutAlign","space-between stretch",3,"change"],["fxFlex","48","tabindex","8","value","local"],["fxFlex","48","tabindex","9","value","external"],["fxLayout","column","fxFlex","100",1,"mt-1"],["matInput","","tabindex","10","formControlName","address",3,"required"],["mat-button","","color","primary","tabindex","11","type","button",3,"click"],[1,"ml-1","icon-small"],["fxFlex","100","color","primary","mode","indeterminate"],["fxLayoutAlign","start",1,"font-bold-500","mt-2"],["mat-button","","color","primary","tabindex","13","type","button",3,"click"],["fxLayout","column",3,"swapStatus","direction"],["fxLayout","column","fxFlex","100","fxLayoutAlign","start stretch",1,"info-graphics-container"],["fxLayout","row","fxFlex","8","fxLayoutAlign","space-between center",1,"modal-info-header"],["fxFlex","95","fxLayoutAlign","start start"],["fxFlex","5","fxLayoutAlign","end center"],["tabindex","19","mat-button","",1,"btn-close-x","p-0",3,"click"],["fxLayout","column","fxFlex","70","fxLayoutAlign","space-between center",1,"padding-gap-x-large"],["fxFlex","100",3,"animationDirection","stepNumber","stepNumberChange",4,"ngIf"],["fxLayout","row","fxFlex","10","fxLayoutAlign","center end",1,"padding-gap-x-large","padding-gap-bottom-large"],["fxLayoutAlign","center center","class","dots-stepper-block",3,"click",4,"ngFor","ngForOf"],["fxLayout","row","fxFlex","10","fxLayoutAlign","end end",1,"padding-gap-x-large","padding-gap-bottom-large"],["mat-button","","class","mr-1","color","primary","tabindex","15","type","button",3,"click",4,"ngIf"],["mat-button","","class","mr-1","color","primary","tabindex","16","type","button",3,"click",4,"ngIf"],["mat-button","","color","primary","tabindex","17","type","button",3,"click",4,"ngIf"],["mat-button","","class","mr-1","color","primary","tabindex","18","type","button",3,"click",4,"ngIf"],["mat-button","","class","mr-1","color","primary","tabindex","19","type","button",3,"click",4,"ngIf"],["mat-button","","color","primary","tabindex","20","type","button",3,"click",4,"ngIf"],["fxFlex","100",3,"animationDirection","stepNumber","stepNumberChange"],["fxLayoutAlign","center center",1,"dots-stepper-block",3,"click"],[1,"dot","tiny-dot","mr-0",3,"ngClass"],["mat-button","","color","primary","tabindex","15","type","button",1,"mr-1",3,"click"],["mat-button","","color","primary","tabindex","16","type","button",1,"mr-1",3,"click"],["mat-button","","color","primary","tabindex","17","type","button",3,"click"],["mat-button","","color","primary","tabindex","18","type","button",1,"mr-1",3,"click"],["mat-button","","color","primary","tabindex","19","type","button",1,"mr-1",3,"click"],["mat-button","","color","primary","tabindex","20","type","button",3,"click"]],template:function(M,v){1&M&&(e.YNc(0,wd,56,34,"div",0),e.YNc(1,Hl,1,2,"ng-template",null,1,e.W1O),e.YNc(3,Sd,20,11,"div",2)),2&M&&(e.Q6J("ngIf",!v.flgShowInfo),e.xp6(3),e.Q6J("ngIf",v.flgShowInfo))},dependencies:[ji.mk,ji.sg,ji.O5,$t._Y,$t.Fj,$t.wV,$t.JJ,$t.JL,$t.Q7,$t.sg,$t.u,Wi.xw,Wi.Wh,Wi.yH,fi.oO,xa.ZT,_i.lW,Ie.dn,Ie.dk,Di.ib,Di.yz,Di.yK,us.Hw,Wa.Nt,Mi.KE,Mi.hX,Mi.bx,Mi.TO,Mi.R9,kl.pW,sn.VQ,sn.U0,no.C0,no.VY,no.Vq,no.Ic,xn.h,g1,ol,$o,sl,ji.JJ],styles:[".dots-stepper-block[_ngcontent-%COMP%]{width:3rem}.info-graphics-container[_ngcontent-%COMP%]{max-height:60rem;min-height:60rem;overflow-x:hidden}"],data:{animation:[ud._]}});const ro=function(F){return{width:F}};function ll(F,M){if(1&F&&(e.TgZ(0,"td",45)(1,"span",46)(2,"span",47),e._uU(3),e.qZA()()()),2&F){const v=M.$implicit,Z=e.oxw();e.xp6(1),e.Q6J("ngStyle",e.VKq(2,ro,Z.screenSize===Z.screenSizeEnum.XS?"6rem":Z.colWidth)),e.xp6(2),e.Oqu(null==v?null:v.claimAddress)}}function ph(F,M){1&F&&(e.TgZ(0,"th",44),e._uU(1,"Lockup Address"),e.qZA())}function H2(F,M){if(1&F&&(e.TgZ(0,"td",45)(1,"span",46)(2,"span",47),e._uU(3),e.qZA()()()),2&F){const v=M.$implicit,Z=e.oxw();e.xp6(1),e.Q6J("ngStyle",e.VKq(2,ro,Z.screenSize===Z.screenSizeEnum.XS?"6rem":Z.colWidth)),e.xp6(2),e.Oqu(null==v?null:v.lockupAddress)}}function gh(F,M){1&F&&(e.TgZ(0,"th",48),e._uU(1,"Onchain Amount (Sats)"),e.qZA())}function _h(F,M){if(1&F&&(e.TgZ(0,"td",45)(1,"span",49),e._uU(2),e.ALo(3,"number"),e.qZA()()),2&F){const v=M.$implicit;e.xp6(2),e.Oqu(e.lcZ(3,1,null==v?null:v.onchainAmount))}}function vh(F,M){1&F&&(e.TgZ(0,"th",48),e._uU(1,"Expected Amount (Sats)"),e.qZA())}function z2(F,M){if(1&F&&(e.TgZ(0,"td",45)(1,"span",49),e._uU(2),e.ALo(3,"number"),e.qZA()()),2&F){const v=M.$implicit;e.xp6(2),e.Oqu(e.lcZ(3,1,null==v?null:v.expectedAmount))}}function V2(F,M){1&F&&(e.TgZ(0,"th",44),e._uU(1,"Error"),e.qZA())}function bh(F,M){if(1&F&&(e.TgZ(0,"td",45)(1,"span",46)(2,"span",47),e._uU(3),e.qZA()()()),2&F){const v=M.$implicit,Z=e.oxw();e.xp6(1),e.Q6J("ngStyle",e.VKq(2,ro,Z.screenSize===Z.screenSizeEnum.XS?"6rem":Z.colWidth)),e.xp6(2),e.Oqu(null==v?null:v.error)}}function yh(F,M){1&F&&(e.TgZ(0,"th",44),e._uU(1,"Private Key"),e.qZA())}function B2(F,M){if(1&F&&(e.TgZ(0,"td",45)(1,"span",46)(2,"span",47),e._uU(3),e.qZA()()()),2&F){const v=M.$implicit,Z=e.oxw();e.xp6(1),e.Q6J("ngStyle",e.VKq(2,ro,Z.screenSize===Z.screenSizeEnum.XS?"6rem":Z.colWidth)),e.xp6(2),e.Oqu(null==v?null:v.privateKey)}}function U2(F,M){1&F&&(e.TgZ(0,"th",44),e._uU(1,"Preimage"),e.qZA())}function x1(F,M){if(1&F&&(e.TgZ(0,"td",45)(1,"span",46)(2,"span",47),e._uU(3),e.qZA()()()),2&F){const v=M.$implicit,Z=e.oxw();e.xp6(1),e.Q6J("ngStyle",e.VKq(2,ro,Z.screenSize===Z.screenSizeEnum.XS?"6rem":Z.colWidth)),e.xp6(2),e.Oqu(null==v?null:v.preimage)}}function gs(F,M){1&F&&(e.TgZ(0,"th",44),e._uU(1,"Redeem Script"),e.qZA())}function Vl(F,M){if(1&F&&(e.TgZ(0,"td",45)(1,"span",46)(2,"span",47),e._uU(3),e.qZA()()()),2&F){const v=M.$implicit,Z=e.oxw();e.xp6(1),e.Q6J("ngStyle",e.VKq(2,ro,Z.screenSize===Z.screenSizeEnum.XS?"6rem":Z.colWidth)),e.xp6(2),e.Oqu(null==v?null:v.redeemScript)}}function G2(F,M){1&F&&(e.TgZ(0,"th",44),e._uU(1,"Invoice"),e.qZA())}function Z2(F,M){if(1&F&&(e.TgZ(0,"td",45)(1,"span",46)(2,"span",47),e._uU(3),e.qZA()()()),2&F){const v=M.$implicit,Z=e.oxw();e.xp6(1),e.Q6J("ngStyle",e.VKq(2,ro,Z.screenSize===Z.screenSizeEnum.XS?"6rem":Z.colWidth)),e.xp6(2),e.Oqu(null==v?null:v.invoice)}}function C1(F,M){1&F&&(e.TgZ(0,"th",48),e._uU(1,"Timeout Block Height"),e.qZA())}function t3(F,M){if(1&F&&(e.TgZ(0,"td",45)(1,"span",49),e._uU(2),e.ALo(3,"number"),e.qZA()()),2&F){const v=M.$implicit;e.xp6(2),e.Oqu(e.lcZ(3,1,null==v?null:v.timeoutBlockHeight))}}function W2(F,M){1&F&&(e.TgZ(0,"th",44),e._uU(1,"Lockup Tx ID"),e.qZA())}function n3(F,M){if(1&F&&(e.TgZ(0,"td",45),e._uU(1),e.qZA()),2&F){const v=M.$implicit;e.xp6(1),e.Oqu(null==v?null:v.lockupTransactionId)}}function Td(F,M){1&F&&(e.TgZ(0,"th",44),e._uU(1,"Claim Tx ID"),e.qZA())}function w1(F,M){if(1&F&&(e.TgZ(0,"td",45),e._uU(1),e.qZA()),2&F){const v=M.$implicit;e.xp6(1),e.Oqu(null==v?null:v.claimTransactionId)}}function a3(F,M){1&F&&(e.TgZ(0,"th",44),e._uU(1,"Refund Tx ID"),e.qZA())}function r3(F,M){if(1&F&&(e.TgZ(0,"td",45),e._uU(1),e.qZA()),2&F){const v=M.$implicit;e.xp6(1),e.Oqu(null==v?null:v.refundTransactionId)}}function Ad(F,M){if(1&F){const v=e.EpF();e.TgZ(0,"th",50)(1,"div",51)(2,"mat-select",52),e._UZ(3,"mat-select-trigger"),e.TgZ(4,"mat-option",53),e.NdJ("click",function(){e.CHM(v);const _e=e.oxw();return e.KtG(_e.onDownloadCSV())}),e._uU(5,"Download CSV"),e.qZA()()()()}}function Y2(F,M){if(1&F){const v=e.EpF();e.TgZ(0,"td",54)(1,"button",55),e.NdJ("click",function(_e){const Zt=e.CHM(v).$implicit,ei=e.oxw();return e.KtG(ei.onSwapClick(Zt,_e))}),e._uU(2,"View Info"),e.qZA()()}}function j2(F,M){if(1&F&&(e.TgZ(0,"p"),e._uU(1),e.qZA()),2&F){const v=e.oxw(2);e.xp6(1),e.Oqu(v.emptyTableMessage)}}function K2(F,M){if(1&F&&(e.TgZ(0,"td",56),e.YNc(1,j2,2,1,"p",57),e.qZA()),2&F){const v=e.oxw();e.xp6(1),e.Q6J("ngIf",!(null!=v.listSwaps&&v.listSwaps.data)||(null==v.listSwaps||null==v.listSwaps.data?null:v.listSwaps.data.length)<1)}}const dl=function(F){return{"display-none":F}};function Ld(F,M){if(1&F&&e._UZ(0,"tr",58),2&F){const v=e.oxw();e.Q6J("ngClass",e.VKq(1,dl,(null==v.listSwaps?null:v.listSwaps.data)&&(null==v.listSwaps||null==v.listSwaps.data?null:v.listSwaps.data.length)>0))}}function M1(F,M){1&F&&e._UZ(0,"tr",59)}function Q2(F,M){1&F&&e._UZ(0,"tr",60)}const Dd=function(){return["all"]},q2=function(F){return{"overflow-auto error-border":F,"overflow-auto":!0}},Ja=function(){return["no_swap"]};class hl{constructor(M,v,Z,_e,bt){this.logger=M,this.commonService=v,this.store=Z,this.boltzService=_e,this.camelCaseWithReplace=bt,this.selectedSwapType=Pe.hc.SWAP_OUT,this.swapsData=[],this.flgLoading=[!0],this.emptyTableMessage="No swaps available.",this.nodePageDefs=Pe.hG,this.selFilterBy="all",this.colWidth="20rem",this.PAGE_ID="boltz",this.tableSettingSwapOut={tableId:"swap_out",recordsPerPage:Pe.IV,sortBy:"status",sortOrder:Pe.Pi.DESCENDING},this.tableSettingSwapIn={tableId:"swap_in",recordsPerPage:Pe.IV,sortBy:"status",sortOrder:Pe.Pi.DESCENDING},this.swapStateEnum=Pe.Qw,this.swapTypeEnum=Pe.hc,this.faHistory=Xi.qO$,this.swapCaption="Swap Out",this.displayedColumns=[],this.listSwaps=new ta.by([]),this.selFilter="",this.pageSize=Pe.IV,this.pageSizeOptions=Pe.TJ,this.screenSize="",this.screenSizeEnum=Pe.cu,this.unSubs=[new zi.x,new zi.x,new zi.x],this.screenSize=this.commonService.getScreenSize()}ngOnInit(){this.store.select(Bo.Pr).pipe((0,an.R)(this.unSubs[0])).subscribe(M=>{this.tableSettingSwapOut=M.pageSettings.find(v=>v.pageId===this.PAGE_ID)?.tables.find(v=>v.tableId===this.tableSettingSwapOut.tableId)||Pe.gK.find(v=>v.pageId===this.PAGE_ID)?.tables.find(v=>v.tableId===this.tableSettingSwapOut.tableId),this.tableSettingSwapIn=M.pageSettings.find(v=>v.pageId===this.PAGE_ID)?.tables.find(v=>v.tableId===this.tableSettingSwapIn.tableId)||Pe.gK.find(v=>v.pageId===this.PAGE_ID)?.tables.find(v=>v.tableId===this.tableSettingSwapIn.tableId),this.setTableColumns(),this.swapsData&&this.swapsData.length>0&&this.sort&&this.paginator&&this.displayedColumns.length>0&&this.loadSwapsTable(this.swapsData),this.colWidth=this.displayedColumns.length?this.commonService.getContainerSize().width/this.displayedColumns.length/14+"rem":"20rem",this.logger.info(this.displayedColumns)})}ngAfterViewInit(){this.swapsData&&this.swapsData.length>0&&this.loadSwapsTable(this.swapsData)}ngOnChanges(M){M.selectedSwapType&&!M.selectedSwapType.firstChange&&this.setTableColumns(),this.swapCaption=this.selectedSwapType===Pe.hc.SWAP_IN?"Swap In":"Swap Out",this.loadSwapsTable(this.swapsData)}setTableColumns(){this.selectedSwapType===Pe.hc.SWAP_IN?(this.displayedColumns=this.screenSize===Pe.cu.XS||this.screenSize===Pe.cu.SM?JSON.parse(JSON.stringify(this.tableSettingSwapIn.columnSelectionSM)):JSON.parse(JSON.stringify(this.tableSettingSwapIn.columnSelection)),this.displayedColumns.push("actions"),this.pageSize=this.tableSettingSwapIn.recordsPerPage?+this.tableSettingSwapIn.recordsPerPage:Pe.IV):(this.displayedColumns=this.screenSize===Pe.cu.XS||this.screenSize===Pe.cu.SM?JSON.parse(JSON.stringify(this.tableSettingSwapOut.columnSelectionSM)):JSON.parse(JSON.stringify(this.tableSettingSwapOut.columnSelection)),this.displayedColumns.push("actions"),this.pageSize=this.tableSettingSwapOut.recordsPerPage?+this.tableSettingSwapOut.recordsPerPage:Pe.IV)}applyFilter(){this.listSwaps&&""!==this.selFilter&&(this.listSwaps.filter=this.selFilter.trim().toLowerCase())}getLabel(M){const Z=this.nodePageDefs[this.PAGE_ID][this.selectedSwapType===Pe.hc.SWAP_IN?this.tableSettingSwapIn.tableId:this.tableSettingSwapOut.tableId].allowedColumns.find(_e=>_e.column===M);return Z?Z.label?Z.label:this.camelCaseWithReplace.transform(Z.column,"_"):this.commonService.titleCase(M)}setFilterPredicate(){this.listSwaps.filterPredicate=(M,v)=>{let Z="";switch(this.selFilterBy){case"all":Z=JSON.stringify(M).toLowerCase();break;case"status":Z=M?.status?this.swapStateEnum[M?.status]:"";break;default:Z=typeof M[this.selFilterBy]>"u"?"":"string"==typeof M[this.selFilterBy]?M[this.selFilterBy].toLowerCase():"boolean"==typeof M[this.selFilterBy]?M[this.selFilterBy]?"yes":"no":M[this.selFilterBy].toString()}return"status"===this.selFilterBy?0===Z.indexOf(v):Z.includes(v)}}onSwapClick(M,v){this.boltzService.swapInfo(M.id||"").pipe((0,an.R)(this.unSubs[1])).subscribe(Z=>{this.store.dispatch((0,jt.qR)({payload:{data:{type:Pe.n_.INFORMATION,alertTitle:this.swapCaption+" Status",message:[[{key:"status",value:Pe.Qw[(Z=this.selectedSwapType===Pe.hc.SWAP_IN?Z.swap:Z.reverseSwap).status],title:"Status",width:50,type:Pe.Gi.STRING},{key:"id",value:Z.id,title:"ID",width:50,type:Pe.Gi.STRING}],[{key:"amount",value:Z.onchainAmount?Z.onchainAmount:Z.expectedAmount?Z.expectedAmount:0,title:Z.onchainAmount?"Onchain Amount (Sats)":Z.expectedAmount?"Expected Amount (Sats)":"Amount (Sats)",width:50,type:Pe.Gi.NUMBER},{key:"timeoutBlockHeight",value:Z.timeoutBlockHeight,title:"Timeout Block Height",width:50,type:Pe.Gi.NUMBER}],[{key:"address",value:Z.claimAddress?Z.claimAddress:Z.lockupAddress?Z.lockupAddress:"",title:Z.claimAddress?"Claim Address":Z.lockupAddress?"Lockup Address":"Address",width:100,type:Pe.Gi.STRING}],[{key:"invoice",value:Z.invoice,title:"Invoice",width:100,type:Pe.Gi.STRING}],[{key:"privateKey",value:Z.privateKey,title:"Private Key",width:100,type:Pe.Gi.STRING}],[{key:"preimage",value:Z.preimage,title:"Preimage",width:100,type:Pe.Gi.STRING}],[{key:"redeemScript",value:Z.redeemScript,title:"Redeem Script",width:100,type:Pe.Gi.STRING}],[{key:"lockupTransactionId",value:Z.lockupTransactionId,title:"Lockup Transaction ID",width:50,type:Pe.Gi.STRING},{key:"transactionId",value:Z.claimTransactionId?Z.claimTransactionId:Z.refundTransactionId?Z.refundTransactionId:"",title:Z.claimTransactionId?"Claim Transaction ID":Z.refundTransactionId?"Refund Transaction ID":"Transaction ID",width:50,type:Pe.Gi.STRING}]],openedBy:"SWAP"}}}))})}loadSwapsTable(M){this.listSwaps=new ta.by(M?[...M]:[]),this.listSwaps.sort=this.sort,this.listSwaps.sortingDataAccessor=(v,Z)=>v[Z]&&isNaN(v[Z])?v[Z].toLocaleLowerCase():v[Z]?+v[Z]:null,this.paginator&&this.paginator.firstPage(),this.listSwaps.paginator=this.paginator,this.setFilterPredicate(),this.applyFilter(),this.logger.info(this.listSwaps)}onDownloadCSV(){this.listSwaps.data&&this.listSwaps.data.length>0&&this.commonService.downloadFile(this.listSwaps.data,this.selectedSwapType===Pe.hc.SWAP_IN?"Swap in":"Swap out")}ngOnDestroy(){this.unSubs.forEach(M=>{M.next(null),M.complete()})}}hl.\u0275fac=function(M){return new(M||hl)(e.Y36(li.mQ),e.Y36(Ft.v),e.Y36(ki.yh),e.Y36(ps),e.Y36(nc.D3))},hl.\u0275cmp=e.Xpm({type:hl,selectors:[["rtl-boltz-swaps"]],viewQuery:function(M,v){if(1&M&&(e.Gf(nl.YE,5),e.Gf(Sc.NW,5)),2&M){let Z;e.iGM(Z=e.CRH())&&(v.sort=Z.first),e.iGM(Z=e.CRH())&&(v.paginator=Z.first)}},inputs:{selectedSwapType:"selectedSwapType",swapsData:"swapsData",flgLoading:"flgLoading",emptyTableMessage:"emptyTableMessage"},features:[e._Bn([{provide:Hi.PG,useValue:{overlayPanelClass:"rtl-select-overlay"}},{provide:Sc.ye,useValue:(0,Pe.pt)("Swaps")}]),e.TTD],decls:76,vars:20,consts:[["fxLayout","column","fxFlex","100","fxLayoutAlign","start start",1,"card-content-gap"],["fxLayout","column","fxLayout.gt-xs","row","fxLayoutAlign.gt-xs","start center","fxLayoutAlign","start stretch","fxFlex","100",1,"page-sub-title-container","w-100"],["fxFlex","70"],[1,"page-title-img","mr-1",3,"icon"],[1,"page-title"],["fxFlex.gt-xs","30","fxLayoutAlign.gt-xs","space-between center","fxLayout","row","fxLayoutAlign","space-between stretch"],["fxLayout","column","fxFlex","49"],["tabindex","1","name","filterBy",3,"ngModel","ngModelChange","selectionChange"],[3,"value",4,"ngFor","ngForOf"],["matInput","","name","filter",3,"ngModel","ngModelChange","input","keyup"],["fxLayout","row","fxLayoutAlign","start center",1,"w-100"],["fxFlex","100",1,"table-container",3,"perfectScrollbar"],["mode","indeterminate",4,"ngIf"],["mat-table","","matSort","",3,"matSortActive","matSortDirection","dataSource","ngClass"],["table",""],["matColumnDef","status"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","id"],["matColumnDef","claimAddress"],["matColumnDef","lockupAddress"],["matColumnDef","onchainAmount"],["mat-header-cell","","mat-sort-header","","arrowPosition","before",4,"matHeaderCellDef"],["matColumnDef","expectedAmount"],["matColumnDef","error"],["matColumnDef","privateKey"],["matColumnDef","preimage"],["matColumnDef","redeemScript"],["matColumnDef","invoice"],["matColumnDef","timeoutBlockHeight"],["matColumnDef","lockupTransactionId"],["matColumnDef","claimTransactionId"],["matColumnDef","refundTransactionId"],["matColumnDef","actions"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","","fxLayoutAlign","end center",4,"matCellDef"],["matColumnDef","no_swap"],["mat-footer-cell","","colspan","4",4,"matFooterCellDef"],["mat-footer-row","",3,"ngClass",4,"matFooterRowDef"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],[1,"mb-1",3,"pageSize","pageSizeOptions","showFirstLastButtons"],[3,"value"],["mode","indeterminate"],["mat-header-cell","","mat-sort-header",""],["mat-cell",""],["fxLayout.gt-xs","row",1,"ellipsis-parent",3,"ngStyle"],[1,"ellipsis-child"],["mat-header-cell","","mat-sort-header","","arrowPosition","before"],["fxLayoutAlign","end center"],["mat-header-cell",""],["fxLayoutAlign","center center",1,"bordered-box","table-actions-select"],["placeholder","Actions","tabindex","1",1,"mr-0"],[3,"click"],["mat-cell","","fxLayoutAlign","end center"],["mat-stroked-button","","color","primary","type","button","tabindex","4",1,"table-actions-button",3,"click"],["mat-footer-cell","","colspan","4"],[4,"ngIf"],["mat-footer-row","",3,"ngClass"],["mat-header-row",""],["mat-row",""]],template:function(M,v){1&M&&(e.TgZ(0,"div",0)(1,"div",1)(2,"div",2),e._UZ(3,"fa-icon",3),e.TgZ(4,"span",4),e._uU(5),e.qZA()(),e.TgZ(6,"div",5)(7,"mat-form-field",6)(8,"mat-label"),e._uU(9,"Filter By"),e.qZA(),e.TgZ(10,"mat-select",7),e.NdJ("ngModelChange",function(_e){return v.selFilterBy=_e})("selectionChange",function(){return v.selFilter="",v.applyFilter()}),e.TgZ(11,"perfect-scrollbar"),e.YNc(12,Ed,2,2,"mat-option",8),e.qZA()()(),e.TgZ(13,"mat-form-field",6)(14,"mat-label"),e._uU(15,"Filter"),e.qZA(),e.TgZ(16,"input",9),e.NdJ("ngModelChange",function(_e){return v.selFilter=_e})("input",function(){return v.applyFilter()})("keyup",function(){return v.applyFilter()}),e.qZA()()()(),e.TgZ(17,"div",10)(18,"div",11),e.YNc(19,Lc,1,0,"mat-progress-bar",12),e.TgZ(20,"table",13,14),e.ynx(22,15),e.YNc(23,R2,2,0,"th",16),e.YNc(24,fh,2,1,"td",17),e.BQk(),e.ynx(25,18),e.YNc(26,N2,2,0,"th",16),e.YNc(27,F2,2,1,"td",17),e.BQk(),e.ynx(28,19),e.YNc(29,mh,2,0,"th",16),e.YNc(30,ll,4,4,"td",17),e.BQk(),e.ynx(31,20),e.YNc(32,ph,2,0,"th",16),e.YNc(33,H2,4,4,"td",17),e.BQk(),e.ynx(34,21),e.YNc(35,gh,2,0,"th",22),e.YNc(36,_h,4,3,"td",17),e.BQk(),e.ynx(37,23),e.YNc(38,vh,2,0,"th",22),e.YNc(39,z2,4,3,"td",17),e.BQk(),e.ynx(40,24),e.YNc(41,V2,2,0,"th",16),e.YNc(42,bh,4,4,"td",17),e.BQk(),e.ynx(43,25),e.YNc(44,yh,2,0,"th",16),e.YNc(45,B2,4,4,"td",17),e.BQk(),e.ynx(46,26),e.YNc(47,U2,2,0,"th",16),e.YNc(48,x1,4,4,"td",17),e.BQk(),e.ynx(49,27),e.YNc(50,gs,2,0,"th",16),e.YNc(51,Vl,4,4,"td",17),e.BQk(),e.ynx(52,28),e.YNc(53,G2,2,0,"th",16),e.YNc(54,Z2,4,4,"td",17),e.BQk(),e.ynx(55,29),e.YNc(56,C1,2,0,"th",22),e.YNc(57,t3,4,3,"td",17),e.BQk(),e.ynx(58,30),e.YNc(59,W2,2,0,"th",16),e.YNc(60,n3,2,1,"td",17),e.BQk(),e.ynx(61,31),e.YNc(62,Td,2,0,"th",16),e.YNc(63,w1,2,1,"td",17),e.BQk(),e.ynx(64,32),e.YNc(65,a3,2,0,"th",16),e.YNc(66,r3,2,1,"td",17),e.BQk(),e.ynx(67,33),e.YNc(68,Ad,6,0,"th",34),e.YNc(69,Y2,3,0,"td",35),e.BQk(),e.ynx(70,36),e.YNc(71,K2,2,1,"td",37),e.BQk(),e.YNc(72,Ld,1,3,"tr",38),e.YNc(73,M1,1,0,"tr",39),e.YNc(74,Q2,1,0,"tr",40),e.qZA(),e._UZ(75,"mat-paginator",41),e.qZA()()()),2&M&&(e.xp6(3),e.Q6J("icon",v.faHistory),e.xp6(2),e.hij("",v.swapCaption," History"),e.xp6(5),e.Q6J("ngModel",v.selFilterBy),e.xp6(2),e.Q6J("ngForOf",e.DdM(16,Dd).concat(v.displayedColumns.slice(0,-1))),e.xp6(4),e.Q6J("ngModel",v.selFilter),e.xp6(3),e.Q6J("ngIf",!0===v.flgLoading[0]),e.xp6(1),e.Q6J("matSortActive",v.selectedSwapType===v.swapTypeEnum.SWAP_IN?v.tableSettingSwapIn.sortBy:v.tableSettingSwapOut.sortBy)("matSortDirection",v.selectedSwapType===v.swapTypeEnum.SWAP_IN?v.tableSettingSwapIn.sortOrder:v.tableSettingSwapOut.sortOrder)("dataSource",v.listSwaps)("ngClass",e.VKq(17,q2,"error"===v.flgLoading[0])),e.xp6(52),e.Q6J("matFooterRowDef",e.DdM(19,Ja)),e.xp6(1),e.Q6J("matHeaderRowDef",v.displayedColumns),e.xp6(1),e.Q6J("matRowDefColumns",v.displayedColumns),e.xp6(1),e.Q6J("pageSize",v.pageSize)("pageSizeOptions",v.pageSizeOptions)("showFirstLastButtons",v.screenSize!==v.screenSizeEnum.XS))},dependencies:[ji.mk,ji.sg,ji.O5,ji.PC,$t.Fj,$t.JJ,$t.On,Ma.BN,Wi.xw,Wi.Wh,Wi.yH,fi.oO,fi.Zl,_i.lW,Wa.Nt,Mi.KE,Mi.hX,kl.pW,Hi.gD,Hi.$L,Zi.ey,nl.YE,nl.nU,ta.BZ,ta.fO,ta.as,ta.w1,ta.Dz,ta.nj,ta.mD,ta.Ke,ta.ge,ta.ev,ta.yh,ta.XQ,ta.Gk,ta.Q2,Sc.NW,nn.Vv,nn.$V,ji.JJ]});const J2=function(F){return["../",F]};function X2(F,M){if(1&F){const v=e.EpF();e.TgZ(0,"div",16),e.NdJ("click",function(){const bt=e.CHM(v).$implicit,Zt=e.oxw();return e.KtG(Zt.onSelectedIndexChange(bt))}),e._uU(1),e.qZA()}if(2&F){const v=M.$implicit,Z=e.oxw();e.Q6J("active",Z.activeTab.link===v.link)("routerLink",e.VKq(3,J2,v.link)),e.xp6(1),e.Oqu(v.name)}}class ul{constructor(M,v,Z){this.router=M,this.store=v,this.boltzService=Z,this.swapTypeEnum=Pe.hc,this.selectedSwapType=Pe.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 zi.x,new zi.x,new zi.x,new zi.x]}ngOnInit(){this.boltzService.listSwaps();const M=this.links.find(v=>this.router.url.includes(v.link));this.activeTab=M||this.links[0],this.selectedSwapType=M&&"swapin"===M.link?Pe.hc.SWAP_IN:Pe.hc.SWAP_OUT,this.router.events.pipe((0,an.R)(this.unSubs[0]),(0,Ra.h)(v=>v instanceof Bn.Av)).subscribe({next:v=>{const Z=this.links.find(_e=>v.urlAfterRedirects.includes(_e.link));this.activeTab=Z||this.links[0],this.selectedSwapType=Z&&"swapin"===Z.link?Pe.hc.SWAP_IN:Pe.hc.SWAP_OUT}}),this.boltzService.swapsChanged.pipe((0,an.R)(this.unSubs[1])).subscribe({next:v=>{this.swaps=v,this.swapsData=this.selectedSwapType===Pe.hc.SWAP_IN&&v.swaps?v.swaps:this.selectedSwapType===Pe.hc.SWAP_OUT&&v.reverseSwaps?v.reverseSwaps:[],this.flgLoading[0]=!1},error:v=>{this.flgLoading[0]="error",this.emptyTableMessage=v.message?v.message:"No swap "+(this.selectedSwapType===Pe.hc.SWAP_IN?"in":"out")+" available."}})}onSelectedIndexChange(M){"swapin"===M.link?(this.selectedSwapType=Pe.hc.SWAP_IN,this.swapsData=this.swaps.swaps||[]):(this.selectedSwapType=Pe.hc.SWAP_OUT,this.swapsData=this.swaps.reverseSwaps||[])}onSwap(M){this.boltzService.serviceInfo().pipe((0,an.R)(this.unSubs[2])).subscribe({next:v=>{this.store.dispatch((0,jt.qR)({payload:{data:{serviceInfo:v,direction:M,component:cl}}}))}})}ngOnDestroy(){this.unSubs.forEach(M=>{M.next(null),M.complete()})}}ul.\u0275fac=function(M){return new(M||ul)(e.Y36(Bn.F0),e.Y36(ki.yh),e.Y36(ps))},ul.\u0275cmp=e.Xpm({type:ul,selectors:[["rtl-boltz-root"]],decls:20,vars:7,consts:[["fxLayout","row","fxLayoutAlign","start center",1,"page-title-container"],["viewBox","0 0 78 78","version","1.1","xmlns","http://www.w3.org/2000/svg",0,"xmlns","xlink","http://www.w3.org/1999/xlink",1,"botlz-icon-sm","mr-1"],["id","Logo","stroke","none","stroke-width","1","fill","none","fill-rule","evenodd"],["id","Group"],["id","Oval","cx","39","cy","39","r","37.5",1,"boltz-icon"],["d","M36.4583326,43.7755404 L40.53965,35.2316544 L39.4324865,35.2316544 L46.0754873,17.6071752 C46.292579,17.0204094 46.3287609,16.5159331 46.1840331,16.0937464 C46.0393053,15.671561 45.7860319,15.3674444 45.4242131,15.1813966 C45.0623942,14.9953487 44.6535376,14.9524146 44.1976433,15.0525945 C43.7417511,15.1527743 43.3256596,15.4461573 42.9493689,15.9327433 L22.6078557,40.7701025 C22.2026186,41.2710003 22,41.7575877 22,42.2298646 C22,42.6735173 22.1592003,43.0420366 22.477601,43.3354226 C22.7960017,43.6288058 23.1940025,43.7755404 23.6716036,43.7755404 L36.4583326,43.7755404 Z","id","Path",1,"boltz-icon-fill"],["d","M44.4883879,63.7755404 L48.8604707,55.165009 L47.6744296,55.165009 L54.7906978,37.4030526 C55.0232558,36.8117097 55.0620155,36.3032983 54.9069768,35.8778185 C54.7519381,35.4523399 54.4806208,35.1458511 54.0930248,34.958352 C53.7054289,34.7708528 53.2674441,34.7275839 52.7790706,34.8285452 C52.2906992,34.9295065 51.8449641,35.2251779 51.4418653,35.7155595 L29.6511611,60.746659 C29.2170537,61.251464 29,61.7418469 29,62.2178078 C29,62.6649211 29.1705423,63.036315 29.5116268,63.3319895 C29.8527113,63.6276613 30.2790669,63.7755404 30.7906936,63.7755404 L44.4883879,63.7755404 Z","id","Path-Copy","transform","translate(42.000000, 49.275540) rotate(-180.000000) translate(-42.000000, -49.275540) ",1,"boltz-icon-fill"],[1,"page-title"],["fxLayout","column",1,"padding-gap-x"],["fxLayout","column","fxFlex","100","fxLayoutAlign","start stretch"],["mat-tab-nav-bar","","mat-stretch-tabs","false","mat-align-tabs","start",3,"tabPanel"],["mat-tab-link","","class","mat-tab-label",3,"active","routerLink","click",4,"ngFor","ngForOf"],["tabPanel",""],["fxLayout","row","fxLayoutAlign","start start",1,"padding-gap-x-large","mt-1"],["mat-flat-button","","color","primary","type","button","tabindex","1",3,"click"],["fxLayout","row","fxFlex","100",3,"selectedSwapType","swapsData","flgLoading","emptyTableMessage"],["mat-tab-link","",1,"mat-tab-label",3,"active","routerLink","click"]],template:function(M,v){if(1&M&&(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,X2,2,5,"div",11),e.qZA(),e._UZ(14,"mat-tab-nav-panel",null,12),e.TgZ(16,"div",13)(17,"button",14),e.NdJ("click",function(){return v.onSwap(v.selectedSwapType)}),e._uU(18),e.qZA()(),e._UZ(19,"rtl-boltz-swaps",15),e.qZA()()()),2&M){const Z=e.MAs(15);e.xp6(12),e.Q6J("tabPanel",Z),e.xp6(1),e.Q6J("ngForOf",v.links),e.xp6(5),e.hij("Start ",v.activeTab.name,""),e.xp6(1),e.Q6J("selectedSwapType",v.selectedSwapType)("swapsData",v.swapsData)("flgLoading",v.flgLoading)("emptyTableMessage",v.emptyTableMessage)}},dependencies:[ji.sg,Wi.xw,Wi.Wh,Wi.yH,_i.lW,Ie.a8,Ie.dn,gt.BU,gt.sW,gt.Nj,Bn.rH,hl]});class Tr{constructor(M){this.help=M}}function Bl(F,M){if(1&F&&(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&F){const v=e.oxw().$implicit,Z=e.oxw();e.xp6(3),e.Oqu(v.help.question),e.xp6(2),e.Q6J("innerHTML",v.help.answer,e.oJD),e.xp6(1),e.Q6J("routerLink",Z.flgLoggedIn?v.help.link:"/login"),e.xp6(1),e.Oqu(Z.flgLoggedIn?v.help.linkCaption:"Login to go to the page")}}function Dc(F,M){if(1&F&&(e.TgZ(0,"div",6),e.YNc(1,Bl,8,4,"mat-expansion-panel",7),e.qZA()),2&F){const v=M.$implicit,Z=e.oxw();e.xp6(1),e.Q6J("ngIf","ALL"===v.help.lnImplementation||v.help.lnImplementation===Z.selNode.lnImplementation)}}class Ic{constructor(M,v){this.store=M,this.sessionService=v,this.helpTopics=[],this.faQuestion=Xi.Psp,this.LNPLink="/lnd/",this.flgLoggedIn=!1,this.unSubs=[new zi.x,new zi.x,new zi.x,new zi.x]}ngOnInit(){this.store.select(ba.dT).pipe((0,an.R)(this.unSubs[0])).subscribe(M=>{this.selNode=M,this.selNode.lnImplementation&&""!==this.selNode.lnImplementation.trim()&&(this.LNPLink="/"+this.selNode.lnImplementation.toLowerCase()+"/",this.addHelpTopics())}),this.sessionService.watchSession().pipe((0,an.R)(this.unSubs[1])).subscribe(M=>{this.flgLoggedIn=!!M.token}),this.sessionService.getItem("token")&&(this.flgLoggedIn=!0)}addHelpTopics(){this.helpTopics=[],this.helpTopics.push(new Tr({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 Tr({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 Tr({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 Tr({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 Tr({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 Tr({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 Tr({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 Tr({question:"Offers",answer:'Send offer payments, create offer invoices and bookmark paid offers on your node.\nGo to the "Transactions" page under the "Lightning" menu :\nPayment for bolt12 offer invoice can be done on "Payments" tab:\n 1. Click on "Send Payment" button.\n 2. Select "Offer" option on the modal.\n 2. Offer Request - Input offer request (Bolt12 format) in the input box.\n 3. Bookmark - Select the checkbox to bookmark this offer for future use.\nOffers tab is for creating bolt12 offer invoice on your node:\n 1. Click on "Create Offer" button.\n 2. Description - Description you want to provide on the offer invoice.\n 3. Amount - Amount for the offer invoice.\n 4. issuer - issuer of the offer.\nPaid offer bookmarks shows the list of paid offers saved for future payments.\n',link:this.LNPLink+"transactions/offers",linkCaption:"Offers",lnImplementation:"CLN"})),this.helpTopics.push(new Tr({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 Tr({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 Tr({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 Tr({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 Tr({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 Tr({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 Tr({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 Tr({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 Tr({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 Tr({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(M=>{M.next(null),M.complete()})}}Ic.\u0275fac=function(M){return new(M||Ic)(e.Y36(ki.yh),e.Y36(lr.m))},Ic.\u0275cmp=e.Xpm({type:Ic,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(M,v){1&M&&(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,Dc,2,1,"div",5),e.qZA()()()),2&M&&(e.xp6(2),e.Q6J("icon",v.faQuestion),e.xp6(5),e.Q6J("ngForOf",v.helpTopics))},dependencies:[ji.sg,ji.O5,Ma.BN,Wi.xw,Wi.Wh,Wi.yH,Di.ib,Di.yz,Di.yK,Di.u4,Bn.rH],styles:[".mat-mdc-card-content[_ngcontent-%COMP%]{margin-bottom:4px}"]});var $2=p(9841);function e0(F,M){1&F&&(e.TgZ(0,"mat-error"),e._uU(1,"Token is required."),e.qZA())}class dc{constructor(M,v){this.dialogRef=M,this.store=v,this.token=""}onClose(){this.dialogRef.close(null)}onVerifyToken(){if(!this.token)return!0;this.dialogRef.close(),this.store.dispatch((0,jt.M6)({payload:{twoFAToken:this.token}}))}}function Mh(F,M){1&F&&(e.TgZ(0,"mat-error"),e._uU(1,"Password is required."),e.qZA())}function Id(F,M){if(1&F&&(e.TgZ(0,"p",20)(1,"mat-icon",21),e._uU(2,"close"),e.qZA(),e._uU(3),e.qZA()),2&F){const v=e.oxw();e.xp6(3),e.hij(" ",v.loginErrorMessage," ")}}dc.\u0275fac=function(M){return new(M||dc)(e.Y36(xa.so),e.Y36(ki.yh))},dc.\u0275cmp=e.Xpm({type:dc,selectors:[["rtl-login-token"]],decls:19,vars:2,consts:[["fxLayout","column","fxLayout.gt-sm","row","fxLayoutAlign","space-between stretch"],["fxFlex","100"],["fxLayout","row","fxLayoutAlign","space-between center",1,"modal-info-header"],["fxFlex","95","fxLayoutAlign","start start"],[1,"page-title"],["tabindex","3","fxFlex","5","fxLayoutAlign","center center","mat-button","",1,"btn-close-x","p-0",3,"click"],["fxLayout","row",1,"padding-gap-x-large"],["fxLayout","column","fxFlex","100",3,"ngSubmit"],["tokenForm","ngForm"],["autoFocus","","matInput","","type","text","id","token","name","token","tabindex","2","required","",3,"ngModel","ngModelChange"],[4,"ngIf"],["fxLayout","row","fxFlex","100","fxLayoutAlign","end center",1,"mt-1"],["mat-button","","color","primary","tabindex","4","type","submit"]],template:function(M,v){1&M&&(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 v.onClose()}),e._uU(7,"X"),e.qZA()(),e.TgZ(8,"mat-card-content",6)(9,"form",7,8),e.NdJ("ngSubmit",function(){return v.onVerifyToken()}),e.TgZ(11,"mat-form-field")(12,"mat-label"),e._uU(13,"Token"),e.qZA(),e.TgZ(14,"input",9),e.NdJ("ngModelChange",function(_e){return v.token=_e}),e.qZA(),e.YNc(15,e0,2,0,"mat-error",10),e.qZA(),e.TgZ(16,"div",11)(17,"button",12),e._uU(18,"Verify Token"),e.qZA()()()()()()),2&M&&(e.xp6(14),e.Q6J("ngModel",v.token),e.xp6(1),e.Q6J("ngIf",!v.token))},dependencies:[ji.O5,$t._Y,$t.Fj,$t.JJ,$t.JL,$t.Q7,$t.On,$t.F,Wi.xw,Wi.Wh,Wi.yH,_i.lW,Ie.dn,Ie.dk,Wa.Nt,Mi.KE,Mi.hX,Mi.TO,xn.h]});const fl=function(F){return{"padding-gap-large":F}},t0=function(F,M){return{"font-size-200":F,"font-size-300":M}};class kc{constructor(M,v,Z,_e){this.logger=M,this.store=v,this.rtlEffects=Z,this.commonService=_e,this.faUnlockAlt=Xi.B$L,this.password="",this.rtlSSO=0,this.rtlCookiePath="",this.accessKey="",this.flgShow=!1,this.screenSize="",this.screenSizeEnum=Pe.cu,this.loginErrorMessage="",this.apiCallStatusEnum=Pe.Bn,this.unSubs=[new zi.x,new zi.x,new zi.x]}ngOnInit(){this.screenSize=this.commonService.getScreenSize(),(0,$2.a)([this.store.select(ba.ul),this.store.select(ba.Sr)]).pipe((0,an.R)(this.unSubs[0])).subscribe(([M,v])=>{this.loginErrorMessage="",M.status===Pe.Bn.ERROR&&(this.loginErrorMessage=this.loginErrorMessage+("object"==typeof M.message?JSON.stringify(M.message):M.message),this.logger.error(M.message)),v.status===Pe.Bn.ERROR&&(this.loginErrorMessage=this.loginErrorMessage+("object"==typeof v.message?JSON.stringify(v.message):v.message),this.logger.error(v.message))}),this.store.select(ba.Yj).pipe((0,an.R)(this.unSubs[1])).subscribe(M=>{this.appConfig=M,this.logger.info(M)})}onLogin(){if(!this.password)return!0;this.loginErrorMessage="",this.appConfig.enable2FA?(this.store.dispatch((0,jt.qR)({payload:{maxWidth:"35rem",data:{component:dc}}})),this.rtlEffects.closeAlert.pipe((0,ya.q)(1)).subscribe(M=>{M&&this.store.dispatch((0,jt.x4)({payload:{password:Sa(this.password),defaultPassword:Pe.kO.includes(this.password.toLowerCase()),twoFAToken:M.twoFAToken}}))})):this.store.dispatch((0,jt.x4)({payload:{password:Sa(this.password),defaultPassword:Pe.kO.includes(this.password.toLowerCase())}}))}resetData(){this.password="",this.loginErrorMessage="",this.flgShow=!1}ngOnDestroy(){this.unSubs.forEach(M=>{M.next(null),M.complete()})}}kc.\u0275fac=function(M){return new(M||kc)(e.Y36(li.mQ),e.Y36(ki.yh),e.Y36(Ea.V),e.Y36(Ft.v))},kc.\u0275cmp=e.Xpm({type:kc,selectors:[["rtl-login"]],decls:28,vars:13,consts:[["fxLayout","column","fxFlex","100","fxLayoutAlign","start stretch",1,"login-container"],["fxLayout","row","fxFlex.gt-sm","35","fxLayoutAlign","center center"],["fxLayout","row","fxFlex","45","fxLayoutAlign","center stretch"],["fxLayout","column","fxLayout.gt-sm","row","fxFlex","100","fxLayoutAlign","stretch stretch"],["fxFlex","35","fxLayoutAlign","center center",1,"bg-primary"],["src","assets/images/RTL-Horse-BY.svg","alt","RTL Logo",1,"rtl-logo-svg"],["fxFlex","65","fxLayout","column","fxLayoutAlign","center stretch",3,"ngClass"],["fxLayout","row","fxLayoutAlign","center center",1,"page-title-container","mt-2","p-0"],[1,"font-bold-500",3,"ngClass"],[1,"page-title"],[1,"pb-2"],["fxLayout","column","fxLayoutAlign","start space-between"],["loginForm","ngForm"],["autoFocus","","matInput","","id","password","name","password","tabindex","1","required","",3,"type","ngModel","ngModelChange"],["mat-icon-button","","matSuffix","","tabindex","2","type","button",3,"click"],[4,"ngIf"],["fxFlex","100","class","color-warn pre-wrap","fxLayoutAlign","start start",4,"ngIf"],["fxLayout","row","fxFlex","100","fxLayoutAlign","end center",1,"mt-2"],["mat-stroked-button","","color","primary","tabindex","2","type","reset",1,"mr-1","mb-2",3,"click"],["mat-flat-button","","color","primary","tabindex","3","type","submit",3,"click"],["fxFlex","100","fxLayoutAlign","start start",1,"color-warn","pre-wrap"],[1,"mr-1","icon-small"]],template:function(M,v){1&M&&(e.TgZ(0,"div",0)(1,"div",1)(2,"mat-card",2)(3,"div",3)(4,"div",4),e._UZ(5,"img",5),e.qZA(),e.TgZ(6,"div",6)(7,"mat-card-header",7)(8,"mat-card-title",8)(9,"span",9),e._uU(10,"Welcome"),e.qZA()()(),e.TgZ(11,"mat-card-content",10)(12,"form",11,12)(14,"mat-form-field")(15,"mat-label"),e._uU(16,"Password"),e.qZA(),e.TgZ(17,"input",13),e.NdJ("ngModelChange",function(_e){return v.password=_e}),e.qZA(),e.TgZ(18,"button",14),e.NdJ("click",function(){return v.flgShow=!v.flgShow}),e.TgZ(19,"mat-icon"),e._uU(20),e.qZA()(),e.YNc(21,Mh,2,0,"mat-error",15),e.qZA(),e.YNc(22,Id,4,1,"p",16),e.TgZ(23,"div",17)(24,"button",18),e.NdJ("click",function(){return v.resetData()}),e._uU(25,"Clear"),e.qZA(),e.TgZ(26,"button",19),e.NdJ("click",function(){return v.onLogin()}),e._uU(27,"Login"),e.qZA()()()()()()()()()),2&M&&(e.xp6(6),e.Q6J("ngClass",e.VKq(8,fl,v.screenSize===v.screenSizeEnum.XS)),e.xp6(2),e.Q6J("ngClass",e.WLB(10,t0,v.screenSize===v.screenSizeEnum.XS,v.screenSize!==v.screenSizeEnum.XS)),e.xp6(9),e.Q6J("type",v.flgShow?"text":"password")("ngModel",v.password),e.xp6(1),e.uIk("aria-label","Hide password"),e.xp6(2),e.Oqu(v.flgShow?"visibility_off":"visibility"),e.xp6(1),e.Q6J("ngIf",!v.password),e.xp6(1),e.Q6J("ngIf",""!==v.loginErrorMessage))},dependencies:[ji.mk,ji.O5,$t._Y,$t.Fj,$t.JJ,$t.JL,$t.Q7,$t.On,$t.F,Wi.xw,Wi.Wh,Wi.yH,fi.oO,_i.lW,_i.RK,Ie.a8,Ie.dn,Ie.dk,Ie.n5,us.Hw,Wa.Nt,Mi.KE,Mi.hX,Mi.TO,Mi.R9,xn.h],styles:[".login-container[_ngcontent-%COMP%]{height:60vh;margin-top:15%}.login-container[_ngcontent-%COMP%] .mat-mdc-card[_ngcontent-%COMP%]{height:30rem}.login-container[_ngcontent-%COMP%] .rtl-logo-svg[_ngcontent-%COMP%]{width:100%}@media only screen and (max-width: 56.25em){.login-container[_ngcontent-%COMP%] .rtl-logo-svg[_ngcontent-%COMP%]{width:37%}}@media only screen and (max-width: 37.5em){.login-container[_ngcontent-%COMP%] .rtl-logo-svg[_ngcontent-%COMP%]{width:70%}}.login-container[_ngcontent-%COMP%] .material-icons.mat-icon[_ngcontent-%COMP%]{font-size:90%;cursor:pointer}"]});var s3=p(9442);class Vs{constructor(M,v){this.activatedRoute=M,this.router=v,this.error={errorCode:"",errorMessage:""},this.faTimes=Xi.NBC,this.unsubs=[new zi.x,new zi.x]}ngOnInit(){this.activatedRoute.paramMap.pipe((0,an.R)(this.unsubs[0])).subscribe(M=>{this.error=window.history.state})}goToHelp(){this.router.navigate(["/help"])}}Vs.\u0275fac=function(M){return new(M||Vs)(e.Y36(Bn.gz),e.Y36(Bn.F0))},Vs.\u0275cmp=e.Xpm({type:Vs,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(M,v){1&M&&(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 v.goToHelp()}),e._uU(12,"Go To Help"),e.qZA()()()()()),2&M&&(e.xp6(4),e.Q6J("icon",v.faTimes),e.xp6(2),e.hij("Error ",v.error.errorCode,""),e.xp6(3),e.Oqu(v.error.errorMessage))},dependencies:[Ma.BN,Wi.xw,Wi.Wh,Wi.yH,_i.lW,Ie.a8,Ie.dn,Ie.dk,Ie.n5],encapsulation:2});var Ar=p(1643),Ul=p(8104),n0=p(9843),Gl=p(6534);function Bs(F,M){1&F&&e._UZ(0,"span",16)}function a0(F,M){1&F&&e._UZ(0,"span",17)}function ml(F,M){if(1&F){const v=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(_e){e.CHM(v);const bt=e.oxw(2);return e.KtG(bt.enableOffers=_e)})("change",function(){e.CHM(v);const _e=e.oxw(2);return e.KtG(_e.onUpdateFeature())}),e._uU(28),e.qZA()()}if(2&F){const v=e.oxw(2);e.xp6(3),e.Q6J("icon",v.faInfoCircle),e.xp6(19),e.Q6J("inset",!0),e.xp6(2),e.Q6J("icon",v.faExclamationTriangle),e.xp6(3),e.Q6J("ngModel",v.enableOffers),e.xp6(1),e.hij("Enable Offers ",v.enableOffers?"(You can find Offers under Lightning -> Transactions -> Offers)":"","")}}function Us(F,M){if(1&F&&(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&F){const v=e.oxw(3);e.xp6(2),e.Q6J("icon",v.faExclamationTriangle)}}function Sh(F,M){if(1&F&&(e.TgZ(0,"mat-option",47),e._uU(1),e.ALo(2,"titlecase"),e.qZA()),2&F){const v=M.$implicit;e.Q6J("value",v),e.xp6(1),e.hij(" ",e.lcZ(2,2,v.id)," ")}}function S1(F,M){if(1&F&&(e.TgZ(0,"mat-error"),e._uU(1),e.qZA()),2&F){const v=e.oxw(4);e.xp6(1),e.hij("",v.selPolicyType.placeholder," is required.")}}function Zl(F,M){if(1&F&&(e.TgZ(0,"mat-error"),e._uU(1),e.qZA()),2&F){const v=e.oxw(4);e.xp6(1),e.AsE("",v.selPolicyType.placeholder," must be greater than or equal to ",v.selPolicyType.min,".")}}function Oc(F,M){if(1&F&&(e.TgZ(0,"mat-error"),e._uU(1),e.qZA()),2&F){const v=e.oxw(4);e.xp6(1),e.AsE("",v.selPolicyType.placeholder," must be less than or equal to ",v.selPolicyType.max,".")}}function kd(F,M){1&F&&(e.TgZ(0,"mat-error"),e._uU(1,"Lease base fee is required."),e.qZA())}function Od(F,M){1&F&&(e.TgZ(0,"mat-error"),e._uU(1,"Lease base basis is required."),e.qZA())}function r0(F,M){1&F&&(e.TgZ(0,"mat-error"),e._uU(1,"Max channel routing base fee is required."),e.qZA())}function o0(F,M){1&F&&(e.TgZ(0,"mat-error"),e._uU(1,"Max channel routing fee rate is required."),e.qZA())}const Pd=function(F,M){return{"alert-danger":F,"alert-info":M}};function Pc(F,M){if(1&F&&(e.TgZ(0,"h4",48)(1,"span",49),e._uU(2),e.qZA()()),2&F){const v=e.oxw(4);e.xp6(1),e.Q6J("ngClass",e.WLB(2,Pd,!!v.updateMsg.error,!!v.updateMsg.data)),e.xp6(1),e.hij(" ",v.updateMsg.error&&""!==v.updateMsg.error?"Error: "+v.updateMsg.error||0:v.updateMsg.data&&""!==v.updateMsg.data?v.updateMsg.data:"Successfully Updated the Funding Policy!"," ")}}function s0(F,M){if(1&F){const v=e.EpF();e.TgZ(0,"div",30)(1,"div",31),e._UZ(2,"fa-icon",2),e.TgZ(3,"span"),e._uU(4,"These config changes should be configured permanently via the config file on your CLN node otherwise the policy would need to be configured again, if your node restarts."),e.qZA()(),e.TgZ(5,"div",32)(6,"mat-form-field",33)(7,"mat-label"),e._uU(8,"Policy"),e.qZA(),e.TgZ(9,"mat-select",34),e.NdJ("ngModelChange",function(_e){e.CHM(v);const bt=e.oxw(3);return e.KtG(bt.selPolicyType=_e)})("selectionChange",function(){e.CHM(v);const _e=e.oxw(3);return e.KtG(_e.policyMod=null)}),e.YNc(10,Sh,3,4,"mat-option",35),e.qZA()(),e.TgZ(11,"mat-form-field",36)(12,"mat-label"),e._uU(13),e.qZA(),e.TgZ(14,"input",37,38),e.NdJ("ngModelChange",function(_e){e.CHM(v);const bt=e.oxw(3);return e.KtG(bt.policyMod=_e)}),e.qZA(),e.TgZ(16,"mat-hint"),e._uU(17),e.qZA(),e.YNc(18,S1,2,1,"mat-error",26),e.YNc(19,Zl,2,2,"mat-error",26),e.YNc(20,Oc,2,2,"mat-error",26),e.qZA()(),e.TgZ(21,"div",32)(22,"mat-form-field",36)(23,"mat-label"),e._uU(24,"Lease Base Fee (Sats)"),e.qZA(),e.TgZ(25,"input",39),e.NdJ("ngModelChange",function(_e){e.CHM(v);const bt=e.oxw(3);return e.KtG(bt.lease_fee_base_sat=_e)}),e.qZA(),e.YNc(26,kd,2,0,"mat-error",26),e.qZA(),e.TgZ(27,"mat-form-field",36)(28,"mat-label"),e._uU(29,"Lease Base Basis (bps)"),e.qZA(),e.TgZ(30,"input",40),e.NdJ("ngModelChange",function(_e){e.CHM(v);const bt=e.oxw(3);return e.KtG(bt.lease_fee_basis=_e)}),e.qZA(),e.YNc(31,Od,2,0,"mat-error",26),e.qZA()(),e.TgZ(32,"div",32)(33,"mat-form-field",36)(34,"mat-label"),e._uU(35,"Max Channel Routing Base Fee (Sats)"),e.qZA(),e.TgZ(36,"input",41),e.NdJ("ngModelChange",function(_e){e.CHM(v);const bt=e.oxw(3);return e.KtG(bt.channelFeeMaxBaseSat=_e)}),e.qZA(),e.YNc(37,r0,2,0,"mat-error",26),e.qZA(),e.TgZ(38,"mat-form-field",36)(39,"mat-label"),e._uU(40,"Max Channel Routing Fee Rate (ppm)"),e.qZA(),e.TgZ(41,"input",42),e.NdJ("ngModelChange",function(_e){e.CHM(v);const bt=e.oxw(3);return e.KtG(bt.channelFeeMaxProportional=_e)}),e.qZA(),e.YNc(42,o0,2,0,"mat-error",26),e.qZA()(),e.YNc(43,Pc,3,5,"h4",43),e.TgZ(44,"div",44)(45,"button",45),e.NdJ("click",function(){e.CHM(v);const _e=e.oxw(3);return e.KtG(_e.onResetPolicy())}),e._uU(46,"Reset"),e.qZA(),e.TgZ(47,"button",46),e.NdJ("click",function(){e.CHM(v);const _e=e.oxw(3);return e.KtG(_e.onUpdateFundingPolicy())}),e._uU(48,"Update"),e.qZA()()()}if(2&F){const v=e.oxw(3);e.xp6(2),e.Q6J("icon",v.faExclamationTriangle),e.xp6(7),e.Q6J("ngModel",v.selPolicyType),e.xp6(1),e.Q6J("ngForOf",v.policyTypes),e.xp6(3),e.Oqu(v.selPolicyType.placeholder),e.xp6(1),e.Q6J("step","fixed"===v.selPolicyType.id?1e3:10)("min",v.selPolicyType.min)("max",v.selPolicyType.max)("ngModel",v.policyMod),e.xp6(3),e.lnq("",v.selPolicyType.placeholder," should be between ",v.selPolicyType.min," and ",v.selPolicyType.max,""),e.xp6(1),e.Q6J("ngIf",!v.policyMod),e.xp6(1),e.Q6J("ngIf",v.policyMod<v.selPolicyType.min),e.xp6(1),e.Q6J("ngIf",v.policyMod>v.selPolicyType.max),e.xp6(5),e.Q6J("ngModel",v.lease_fee_base_sat),e.xp6(1),e.Q6J("ngIf",!v.lease_fee_base_sat),e.xp6(4),e.Q6J("ngModel",v.lease_fee_basis),e.xp6(1),e.Q6J("ngIf",!v.lease_fee_basis),e.xp6(5),e.Q6J("ngModel",v.channelFeeMaxBaseSat),e.xp6(1),e.Q6J("ngIf",!v.channelFeeMaxBaseSat),e.xp6(4),e.Q6J("ngModel",v.channelFeeMaxProportional),e.xp6(1),e.Q6J("ngIf",!v.channelFeeMaxProportional),e.xp6(1),e.Q6J("ngIf",v.flgUpdateCalled)}}function Eh(F,M){if(1&F&&(e.TgZ(0,"form",18,4),e.YNc(2,Us,12,1,"div",26),e.YNc(3,s0,49,23,"div",27),e.qZA()),2&F){const v=e.oxw(2);e.xp6(2),e.Q6J("ngIf",!v.features[1].enabled),e.xp6(1),e.Q6J("ngIf",v.features[1].enabled)}}function E1(F,M){if(1&F){const v=e.EpF();e.TgZ(0,"mat-expansion-panel",9),e.NdJ("opened",function(){const bt=e.CHM(v).index,Zt=e.oxw();return e.KtG(Zt.onPanelExpanded(bt))}),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,Bs,1,0,"span",12),e.YNc(7,a0,1,0,"span",13),e._uU(8),e.qZA()()(),e.TgZ(9,"div",14),e.YNc(10,ml,29,5,"form",15),e.YNc(11,Eh,4,2,"form",15),e.qZA()()}if(2&F){const v=M.$implicit,Z=M.index;e.Q6J("expanded",!1),e.xp6(4),e.Oqu(v.name),e.xp6(2),e.Q6J("ngIf",v.enabled),e.xp6(1),e.Q6J("ngIf",!v.enabled),e.xp6(1),e.hij(" ",v.enabled?"Enabled":"Disabled"," "),e.xp6(2),e.Q6J("ngIf",0===Z),e.xp6(1),e.Q6J("ngIf",1===Z)}}class hc{constructor(M,v,Z,_e){this.logger=M,this.store=v,this.dataService=Z,this.commonService=_e,this.faInfoCircle=Xi.sqG,this.faExclamationTriangle=Xi.eHv,this.faCode=Xi.dT$,this.features=[{name:"Offers",enabled:!1},{name:"Channel Funding Policy",enabled:!1}],this.enableOffers=!1,this.fundingPolicy={},this.policyTypes=Pe.gB,this.selPolicyType=Pe.gB[0],this.flgUpdateCalled=!1,this.updateMsg={},this.unSubs=[new zi.x,new zi.x,new zi.x,new zi.x,new zi.x]}ngOnInit(){this.dataService.listConfigs().pipe((0,an.R)(this.unSubs[0])).subscribe({next:M=>{this.logger.info("Received List Configs: "+JSON.stringify(M)),this.features[1].enabled=!!M["experimental-dual-fund"]},error:M=>{this.logger.error("List Configs Error: "+JSON.stringify(M)),this.features[1].enabled=!1}}),this.store.select(ba.dT).pipe((0,an.R)(this.unSubs[1])).subscribe(M=>{this.selNode=M,this.enableOffers=this.selNode.settings.enableOffers||!1,this.features[0].enabled=this.enableOffers,this.logger.info(this.selNode)}),this.store.select(Dl.Rn).pipe((0,an.R)(this.unSubs[2])).subscribe(M=>{this.policyTypes[2].max=M.balance.totalBalance||1e3})}onPanelExpanded(M){1===M&&!this.fundingPolicy.policy&&this.dataService.getOrUpdateFunderPolicy().pipe((0,an.R)(this.unSubs[3])).subscribe(v=>{this.logger.info("Received Funder Update Policy: "+JSON.stringify(v)),this.fundingPolicy=v,this.fundingPolicy.policy&&(this.selPolicyType=Pe.gB.find(Z=>Z.id===this.fundingPolicy.policy)||this.policyTypes[0]),this.policyMod=this.fundingPolicy.policy_mod||0===this.fundingPolicy.policy_mod?this.fundingPolicy.policy_mod:null,this.lease_fee_base_sat=this.fundingPolicy.lease_fee_base_msat?this.fundingPolicy.lease_fee_base_msat/1e3:0===this.fundingPolicy.lease_fee_base_msat?0:null,this.lease_fee_basis=this.fundingPolicy.lease_fee_basis||0===this.fundingPolicy.lease_fee_basis?this.fundingPolicy.lease_fee_basis:null,this.channelFeeMaxBaseSat=this.fundingPolicy.channel_fee_max_base_msat?this.fundingPolicy.channel_fee_max_base_msat/1e3:0===this.fundingPolicy.channel_fee_max_base_msat?0:null,this.channelFeeMaxProportional=this.fundingPolicy.channel_fee_max_proportional_thousandths||0===this.fundingPolicy.channel_fee_max_proportional_thousandths?1e3*this.fundingPolicy.channel_fee_max_proportional_thousandths:null})}onUpdateFeature(){this.logger.info(this.selNode),this.selNode.settings.enableOffers=this.enableOffers,this.features[0].enabled=this.enableOffers,this.store.dispatch((0,jt.jS)({payload:{uiMessage:Pe.m6.UPDATE_SETTING,service:Pe.JX.OFFERS,settings:{enableOffers:this.enableOffers}}})),this.store.dispatch((0,At.JT)({payload:{userPersona:this.selNode.settings.userPersona,channelBackupPath:this.selNode.settings.channelBackupPath,selCurrencyUnit:this.selNode.settings.currencyUnit,currencyUnits:this.selNode.settings.currencyUnits,fiatConversion:this.selNode.settings.fiatConversion,unannouncedChannels:this.selNode.settings.unannouncedChannels,lnImplementation:this.selNode.lnImplementation,swapServerUrl:this.selNode.settings.swapServerUrl,boltzServerUrl:this.selNode.settings.boltzServerUrl,enableOffers:this.enableOffers}})),this.store.dispatch((0,nt.oo)({payload:{userPersona:this.selNode.settings.userPersona,channelBackupPath:this.selNode.settings.channelBackupPath,selCurrencyUnit:this.selNode.settings.currencyUnit,currencyUnits:this.selNode.settings.currencyUnits,fiatConversion:this.selNode.settings.fiatConversion,unannouncedChannels:this.selNode.settings.unannouncedChannels,lnImplementation:this.selNode.lnImplementation,swapServerUrl:this.selNode.settings.swapServerUrl,boltzServerUrl:this.selNode.settings.boltzServerUrl,enableOffers:this.enableOffers}})),this.store.dispatch((0,Ne.Zr)({payload:{userPersona:this.selNode.settings.userPersona,channelBackupPath:this.selNode.settings.channelBackupPath,selCurrencyUnit:this.selNode.settings.currencyUnit,currencyUnits:this.selNode.settings.currencyUnits,fiatConversion:this.selNode.settings.fiatConversion,unannouncedChannels:this.selNode.settings.unannouncedChannels,lnImplementation:this.selNode.lnImplementation,swapServerUrl:this.selNode.settings.swapServerUrl,boltzServerUrl:this.selNode.settings.boltzServerUrl,enableOffers:this.enableOffers}}))}onUpdateFundingPolicy(){this.flgUpdateCalled=!0,this.updateMsg={},this.dataService.getOrUpdateFunderPolicy(this.selPolicyType.id,this.policyMod,1e3*(this.lease_fee_base_sat||0),this.lease_fee_basis,1e3*(this.channelFeeMaxBaseSat||0),this.channelFeeMaxProportional?this.channelFeeMaxProportional/1e3:0).pipe((0,an.R)(this.unSubs[4])).subscribe({next:M=>{this.logger.info(M),this.fundingPolicy=M,this.updateMsg={data:"Compact Lease: "+M.compact_lease},setTimeout(()=>{this.flgUpdateCalled=!1},5e3)},error:M=>{this.logger.error(M),this.updateMsg={error:this.commonService.extractErrorMessage(M,"Error in updating funder policy")},setTimeout(()=>{this.flgUpdateCalled=!1},5e3)}})}onResetPolicy(){this.flgUpdateCalled=!1,this.updateMsg={},this.selPolicyType=this.fundingPolicy.policy?Pe.gB.find(M=>M.id===this.fundingPolicy.policy)||this.policyTypes[0]:Pe.gB[0],this.policyMod=this.fundingPolicy.policy_mod||0===this.fundingPolicy.policy_mod?this.fundingPolicy.policy_mod:null,this.lease_fee_base_sat=this.fundingPolicy.lease_fee_base_msat?this.fundingPolicy.lease_fee_base_msat/1e3:0===this.fundingPolicy.lease_fee_base_msat?0:null,this.lease_fee_basis=this.fundingPolicy.lease_fee_basis||0===this.fundingPolicy.lease_fee_basis?this.fundingPolicy.lease_fee_basis:null,this.channelFeeMaxBaseSat=this.fundingPolicy.channel_fee_max_base_msat?this.fundingPolicy.channel_fee_max_base_msat/1e3:0===this.fundingPolicy.channel_fee_max_base_msat?0:null,this.channelFeeMaxProportional=this.fundingPolicy.channel_fee_max_proportional_thousandths||0===this.fundingPolicy.channel_fee_max_proportional_thousandths?1e3*this.fundingPolicy.channel_fee_max_proportional_thousandths:null}ngOnDestroy(){this.unSubs.forEach(M=>{M.next(null),M.complete()})}}hc.\u0275fac=function(M){return new(M||hc)(e.Y36(li.mQ),e.Y36(ki.yh),e.Y36(Ul.D),e.Y36(Ft.v))},hc.\u0275cmp=e.Xpm({type:hc,selectors:[["rtl-experimental-settings"]],decls:13,vars:3,consts:[["fxLayout","column","fxFlex","100",3,"perfectScrollbar"],[1,"alert","alert-info","mt-1"],[1,"mr-1","alert-icon",3,"icon"],["fxLayout","column","fxLayoutAlign","start stretch",1,"page-sub-title-container","mt-1"],["form","ngForm"],["fxLayout","row"],[1,"page-title-img","mr-1",3,"icon"],[1,"page-title"],["class","flat-expansion-panel my-1",3,"expanded","opened",4,"ngFor","ngForOf"],[1,"flat-expansion-panel","my-1",3,"expanded","opened"],["fxFlex","100","fxLayoutAlign","space-between center"],[1,"font-bold-500"],["class","dot green",4,"ngIf"],["class","dot yellow",4,"ngIf"],["fxLayout","column","fxFlex","100","fxLayoutAlign","start stretch"],["fxLayout","column","fxFlex","100","fxLayoutAlign","start stretch","class","page-sub-title-container",4,"ngIf"],[1,"dot","green"],[1,"dot","yellow"],["fxLayout","column","fxFlex","100","fxLayoutAlign","start stretch",1,"page-sub-title-container"],["fxFlex","100",1,"alert","alert-info"],["href","http://bolt12.org","target","_blank"],[1,"mt-2"],["href","https://github.com/lightningnetwork/lightning-rfc/pull/798 ","target","blank"],[1,"my-2",3,"inset"],[1,"alert","alert-warn"],["autoFocus","","tabindex","1","color","primary","name","enableOfr",1,"my-1",3,"ngModel","ngModelChange","change"],[4,"ngIf"],["fxLayout","column",4,"ngIf"],["fxFlex","100","fxLayout","row",1,"alert","alert-warn"],["href","https://medium.com/blockstream/setting-up-liquidity-ads-in-c-lightning-54e4c59c091d","target","_blank"],["fxLayout","column"],["fxFlex","100","fxLayout","row",1,"alert","alert-warn","mb-2"],["fxLayout","column","fxLayout.gt-sm","row","fxFlex","100","fxLayoutAlign.gt-sm","space-between center","fxLayoutAlign","start stretch"],["fxLayout","column","fxFlex","49","fxLayoutAlign","start end"],["autofocus","","tabindex","1","name","policy",3,"ngModel","ngModelChange","selectionChange"],[3,"value",4,"ngFor","ngForOf"],["fxLayout","column","fxFlex","49"],["matInput","","type","number","tabindex","2","required","","name","plcMod",3,"step","min","max","ngModel","ngModelChange"],["plcMod","ngModel"],["matInput","","type","number","step","100","min","0","tabindex","3","required","","name","lease_fee_base_sat",3,"ngModel","ngModelChange"],["matInput","","type","number","step","1","min","0","tabindex","4","required","","name","lease_fee_basis",3,"ngModel","ngModelChange"],["matInput","","type","number","step","100","min","0","tabindex","5","required","","name","channelFeeMaxBaseSat",3,"ngModel","ngModelChange"],["matInput","","type","number","step","1000","min","0","tabindex","6","required","","name","channelFeeMaxProportional",3,"ngModel","ngModelChange"],["fxLayoutAlign","start stretch","class","font-bold-500 mt-2",4,"ngIf"],["fxLayout","row",1,"my-1"],["mat-stroked-button","","color","primary","tabindex","7",1,"mr-1",3,"click"],["mat-flat-button","","color","primary","tabindex","8",3,"click"],[3,"value"],["fxLayoutAlign","start stretch",1,"font-bold-500","mt-2"],["fxFlex","100",1,"alert",3,"ngClass"]],template:function(M,v){1&M&&(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,E1,12,7,"mat-expansion-panel",8),e.qZA()()()),2&M&&(e.xp6(2),e.Q6J("icon",v.faInfoCircle),e.xp6(6),e.Q6J("icon",v.faCode),e.xp6(4),e.Q6J("ngForOf",v.features))},dependencies:[ji.mk,ji.sg,ji.O5,$t._Y,$t.Fj,$t.wV,$t.JJ,$t.JL,$t.Q7,$t.qQ,$t.Fd,$t.On,$t.F,Ma.BN,Wi.xw,Wi.Wh,Wi.yH,fi.oO,_i.lW,Di.pp,Di.ib,Di.yz,Di.yK,Wa.Nt,Mi.KE,Mi.hX,Mi.bx,Mi.TO,zo.d,Hi.gD,Zi.ey,qi.Rr,nn.$V,xn.h,n0.F,Gl.q,ji.rS],styles:["h4[_ngcontent-%COMP%]{word-break:break-word}"]});const l0=Bn.Bz.forRoot([{path:"",pathMatch:"full",redirectTo:"login"},{path:"lnd",loadChildren:()=>Promise.all([p.e(267),p.e(636)]).then(p.bind(p,1636)).then(F=>F.LNDModule),canActivate:[Ar.a1]},{path:"cln",loadChildren:()=>Promise.all([p.e(267),p.e(315)]).then(p.bind(p,6315)).then(F=>F.CLNModule),canActivate:[Ar.a1]},{path:"ecl",loadChildren:()=>Promise.all([p.e(267),p.e(167)]).then(p.bind(p,9676)).then(F=>F.ECLModule),canActivate:[Ar.a1]},{path:"settings",component:yt,canActivate:[Ar.a1],children:[{path:"",pathMatch:"full",redirectTo:"app"},{path:"app",component:ma,canActivate:[Ar.a1]},{path:"auth",component:vo,canActivate:[Ar.a1]},{path:"bconfig",component:Ll,canActivate:[Ar.a1]}]},{path:"config",component:Vo,canActivate:[Ar.a1],children:[{path:"",pathMatch:"full",redirectTo:"nodesettings"},{path:"nodesettings",component:Rs,canActivate:[Ar.a1]},{path:"pglayout",component:el,canActivate:[Ar.a1]},{path:"services",component:qo,canActivate:[Ar.a1],children:[{path:"",pathMatch:"full",redirectTo:"loop"},{path:"loop",component:Ns,canActivate:[Ar.a1]},{path:"boltz",component:il,canActivate:[Ar.a1]}]},{path:"experimental",component:hc,canActivate:[Ar.a1]},{path:"lnconfig",component:re,canActivate:[Ar.a1]}]},{path:"services",component:rc,canActivate:[Ar.a1],children:[{path:"",pathMatch:"full",redirectTo:"loop"},{path:"loop",pathMatch:"full",redirectTo:"loop/loopout"},{path:"loop/:selTab",component:Tc},{path:"boltz",pathMatch:"full",redirectTo:"boltz/swapout"},{path:"boltz/:selTab",component:ul}]},{path:"help",component:Ic},{path:"login",component:kc},{path:"error",component:Vs},{path:"**",component:s3.w}],{onSameUrlNavigation:"reload",scrollPositionRestoration:"enabled"});var d0=p(9470),h0=p(8878),Rd=p(1572),Nd=p(3267),es=p(3683),T1=p(7851),Rr=p(5423);const _s={LNDChildren:[{id:1,parentId:0,name:"Dashboard",iconType:"FA",icon:Xi.HLz,link:"/lnd/home",userPersona:Pe.ol.ALL},{id:2,parentId:0,name:"On-chain",iconType:"FA",icon:Xi.nNP,link:"/lnd/onchain",userPersona:Pe.ol.ALL},{id:3,parentId:0,name:"Lightning",iconType:"FA",icon:Xi.BDt,link:"/lnd/connections",userPersona:Pe.ol.ALL,children:[{id:31,parentId:3,name:"Peers/Channels",iconType:"FA",icon:Xi.FVb,link:"/lnd/connections",userPersona:Pe.ol.ALL},{id:32,parentId:3,name:"Transactions",iconType:"FA",icon:Xi.Ssp,link:"/lnd/transactions",userPersona:Pe.ol.ALL},{id:33,parentId:3,name:"Routing",iconType:"FA",icon:Xi.SuH,link:"/lnd/routing",userPersona:Pe.ol.ALL},{id:34,parentId:3,name:"Reports",iconType:"FA",icon:Xi.koM,link:"/lnd/reports",userPersona:Pe.ol.ALL},{id:35,parentId:3,name:"Graph Lookup",iconType:"FA",icon:Xi.wn1,link:"/lnd/graph",userPersona:Pe.ol.ALL},{id:36,parentId:3,name:"Sign/Verify",iconType:"FA",icon:Xi.hkK,link:"/lnd/messages",userPersona:Pe.ol.ALL},{id:37,parentId:3,name:"Backup",iconType:"FA",icon:Xi.q7m,link:"/lnd/channelbackup",userPersona:Pe.ol.ALL},{id:38,parentId:3,name:"Network",iconType:"FA",icon:Xi.TmZ,link:"/lnd/network",userPersona:Pe.ol.OPERATOR},{id:39,parentId:3,name:"Node/Network",iconType:"FA",icon:Xi.xf3,link:"/lnd/network",userPersona:Pe.ol.MERCHANT}]},{id:4,parentId:0,name:"Services",iconType:"FA",icon:Xi.Krp,link:"/services/loop",userPersona:Pe.ol.ALL,children:[{id:41,parentId:4,name:"Loop",iconType:"FA",icon:Xi.vqe,link:"/services/loop",userPersona:Pe.ol.ALL},{id:42,parentId:4,name:"Boltz",iconType:"SVG",icon:"boltzIconBlock",link:"/services/boltz",userPersona:Pe.ol.ALL}]},{id:5,parentId:0,name:"Node Config",iconType:"FA",icon:Xi.CgH,link:"/config",userPersona:Pe.ol.ALL},{id:6,parentId:0,name:"Help",iconType:"FA",icon:Xi.Psp,link:"/help",userPersona:Pe.ol.ALL}],CLNChildren:[{id:1,parentId:0,name:"Dashboard",iconType:"FA",icon:Xi.HLz,link:"/cln/home",userPersona:Pe.ol.ALL},{id:2,parentId:0,name:"On-chain",iconType:"FA",icon:Xi.nNP,link:"/cln/onchain",userPersona:Pe.ol.ALL},{id:3,parentId:0,name:"Lightning",iconType:"FA",icon:Xi.BDt,link:"/cln/connections",userPersona:Pe.ol.ALL,children:[{id:31,parentId:3,name:"Peers/Channels",iconType:"FA",icon:Xi.FVb,link:"/cln/connections",userPersona:Pe.ol.ALL},{id:32,parentId:3,name:"Liquidity Ads",iconType:"FA",icon:Xi.Acd,link:"/cln/liquidityads",userPersona:Pe.ol.ALL},{id:33,parentId:3,name:"Transactions",iconType:"FA",icon:Xi.Ssp,link:"/cln/transactions",userPersona:Pe.ol.ALL},{id:34,parentId:3,name:"Routing",iconType:"FA",icon:Xi.SuH,link:"/cln/routing",userPersona:Pe.ol.ALL},{id:35,parentId:3,name:"Reports",iconType:"FA",icon:Xi.koM,link:"/cln/reports",userPersona:Pe.ol.ALL},{id:36,parentId:3,name:"Graph Lookup",iconType:"FA",icon:Xi.wn1,link:"/cln/graph",userPersona:Pe.ol.ALL},{id:37,parentId:3,name:"Sign/Verify",iconType:"FA",icon:Xi.hkK,link:"/cln/messages",userPersona:Pe.ol.ALL},{id:38,parentId:3,name:"Fee Rates",iconType:"FA",icon:Xi.USL,link:"/cln/rates",userPersona:Pe.ol.OPERATOR},{id:39,parentId:3,name:"Node/Fee Rates",iconType:"FA",icon:Xi.xf3,link:"/cln/rates",userPersona:Pe.ol.MERCHANT}]},{id:5,parentId:0,name:"Node Config",iconType:"FA",icon:Xi.CgH,link:"/config",userPersona:Pe.ol.ALL},{id:6,parentId:0,name:"Help",iconType:"FA",icon:Xi.Psp,link:"/help",userPersona:Pe.ol.ALL}],ECLChildren:[{id:1,parentId:0,name:"Dashboard",iconType:"FA",icon:Xi.HLz,link:"/ecl/home",userPersona:Pe.ol.ALL},{id:2,parentId:0,name:"On-chain",iconType:"FA",icon:Xi.nNP,link:"/ecl/onchain",userPersona:Pe.ol.ALL},{id:3,parentId:0,name:"Lightning",iconType:"FA",icon:Xi.BDt,link:"/ecl/connections",userPersona:Pe.ol.ALL,children:[{id:31,parentId:3,name:"Peers/Channels",iconType:"FA",icon:Xi.FVb,link:"/ecl/connections",userPersona:Pe.ol.ALL},{id:32,parentId:3,name:"Transactions",iconType:"FA",icon:Xi.Ssp,link:"/ecl/transactions",userPersona:Pe.ol.ALL},{id:33,parentId:3,name:"Routing",iconType:"FA",icon:Xi.SuH,link:"/ecl/routing",userPersona:Pe.ol.ALL},{id:34,parentId:3,name:"Reports",iconType:"FA",icon:Xi.koM,link:"/ecl/reports",userPersona:Pe.ol.ALL},{id:35,parentId:3,name:"Graph Lookup",iconType:"FA",icon:Xi.wn1,link:"/ecl/graph",userPersona:Pe.ol.ALL}]},{id:4,parentId:0,name:"Node Config",iconType:"FA",icon:Xi.CgH,link:"/config",userPersona:Pe.ol.ALL},{id:5,parentId:0,name:"Help",iconType:"FA",icon:Xi.Psp,link:"/help",userPersona:Pe.ol.ALL}]};function Th(F,M){if(1&F&&(e.TgZ(0,"mat-option",11),e._uU(1),e.qZA()),2&F){const v=M.$implicit;e.Q6J("value",v.index),e.xp6(1),e.AsE(" ",v.lnNode," (",v.lnImplementation,") ")}}function c3(F,M){if(1&F){const v=e.EpF();e.TgZ(0,"mat-select",9),e.NdJ("selectionChange",function(_e){e.CHM(v);const bt=e.oxw();return e.KtG(bt.onNodeSelectionChange(_e.value))}),e.TgZ(1,"perfect-scrollbar"),e.YNc(2,Th,2,3,"mat-option",10),e.qZA()()}if(2&F){const v=e.oxw();e.Q6J("value",v.selConfigNodeIndex),e.xp6(2),e.Q6J("ngForOf",v.appConfig.nodes)}}function u0(F,M){if(1&F&&(e.TgZ(0,"span",21),e.GkF(1,22),e.qZA()),2&F){const v=e.oxw().$implicit;e.oxw(2);const Z=e.MAs(11);e.xp6(1),e.Q6J("ngTemplateOutlet","boltzIconBlock"===v.icon?Z:null)}}function Fd(F,M){if(1&F&&e._UZ(0,"fa-icon",23),2&F){const v=e.oxw().$implicit;e.Q6J("icon",v.icon)}}function Ah(F,M){if(1&F&&(e.TgZ(0,"mat-icon",24),e._uU(1),e.qZA()),2&F){const v=e.oxw().$implicit;e.xp6(1),e.Oqu(v.icon)}}function A1(F,M){if(1&F){const v=e.EpF();e.TgZ(0,"mat-tree-node",15)(1,"div",16),e.NdJ("click",function(){const bt=e.CHM(v).$implicit,Zt=e.oxw(2);return e.KtG(Zt.onChildNavClicked(bt))}),e.TgZ(2,"div",17),e.YNc(3,u0,2,1,"span",18),e.YNc(4,Fd,1,1,"fa-icon",19),e.YNc(5,Ah,2,1,"mat-icon",20),e.TgZ(6,"span"),e._uU(7),e.qZA()()()()}if(2&F){const v=M.$implicit;e.s9C("routerLink",v.link),e.xp6(3),e.Q6J("ngIf","SVG"===v.iconType),e.xp6(1),e.Q6J("ngIf","FA"===v.iconType),e.xp6(1),e.Q6J("ngIf",!v.iconType),e.xp6(2),e.Oqu(v.name)}}function Hd(F,M){if(1&F&&(e.TgZ(0,"span",32),e.GkF(1,22),e.qZA()),2&F){const v=e.oxw().$implicit;e.xp6(1),e.Q6J("ngTemplateOutlet",v.icon)}}function Lh(F,M){if(1&F&&e._UZ(0,"fa-icon",23),2&F){const v=e.oxw().$implicit;e.Q6J("icon",v.icon)}}function zd(F,M){if(1&F&&(e.TgZ(0,"mat-icon",24),e._uU(1),e.qZA()),2&F){const v=e.oxw().$implicit;e.xp6(1),e.Oqu(v.icon)}}function gl(F,M){if(1&F&&(e.TgZ(0,"mat-nested-tree-node",25)(1,"div",26)(2,"div",27),e.YNc(3,Hd,2,1,"span",28),e.YNc(4,Lh,1,1,"fa-icon",19),e.YNc(5,zd,2,1,"mat-icon",20),e.TgZ(6,"span"),e._uU(7),e.qZA()(),e.TgZ(8,"button",29)(9,"mat-icon"),e._uU(10),e.qZA()()(),e.TgZ(11,"div",30),e.GkF(12,31),e.qZA()()),2&F){const v=M.$implicit,Z=e.oxw(2);e.xp6(3),e.Q6J("ngIf","SVG"===v.iconType),e.xp6(1),e.Q6J("ngIf","FA"===v.iconType),e.xp6(1),e.Q6J("ngIf",!v.iconType),e.xp6(2),e.Oqu(v.name),e.xp6(1),e.uIk("aria-label","toggle "+v.name),e.xp6(2),e.Oqu(Z.treeControlNested.isExpanded(v)?"arrow_drop_up":"arrow_drop_down"),e.xp6(1),e.ekj("tree-children-invisible",!Z.treeControlNested.isExpanded(v))}}function Dh(F,M){if(1&F&&(e.TgZ(0,"mat-tree",5,12),e.YNc(2,A1,8,5,"mat-tree-node",13),e.YNc(3,gl,13,8,"mat-nested-tree-node",14),e.qZA()),2&F){const v=e.oxw();e.Q6J("dataSource",v.navMenus)("treeControl",v.treeControlNested),e.xp6(3),e.Q6J("matTreeNodeDefWhen",v.hasChild)}}function Ih(F,M){if(1&F&&(e.TgZ(0,"span",21),e.GkF(1,22),e.qZA()),2&F){const v=e.oxw().$implicit;e.xp6(1),e.Q6J("ngTemplateOutlet",v.icon)}}function f0(F,M){if(1&F&&e._UZ(0,"fa-icon",35),2&F){const v=e.oxw().$implicit;e.s9C("matTooltip",v.name),e.Q6J("icon",v.icon)}}function kh(F,M){if(1&F&&(e.TgZ(0,"mat-icon",36),e._uU(1),e.qZA()),2&F){const v=e.oxw().$implicit;e.s9C("matTooltip",v.name),e.xp6(1),e.Oqu(v.icon)}}function Vd(F,M){if(1&F){const v=e.EpF();e.TgZ(0,"mat-tree-node",16),e.NdJ("click",function(){const bt=e.CHM(v).$implicit,Zt=e.oxw();return e.KtG(Zt.onShowData(bt))}),e.YNc(1,Ih,2,1,"span",18),e.YNc(2,f0,1,2,"fa-icon",33),e.YNc(3,kh,2,2,"mat-icon",34),e.TgZ(4,"span"),e._uU(5),e.qZA()()}if(2&F){const v=M.$implicit;e.xp6(1),e.Q6J("ngIf","SVG"===v.iconType),e.xp6(1),e.Q6J("ngIf","FA"===v.iconType),e.xp6(1),e.Q6J("ngIf",!v.iconType),e.xp6(2),e.Oqu(v.name)}}function Oh(F,M){if(1&F&&(e.TgZ(0,"span",32),e.GkF(1,22),e.qZA()),2&F){const v=e.oxw().$implicit;e.xp6(1),e.Q6J("ngTemplateOutlet",v.icon)}}function L1(F,M){if(1&F&&e._UZ(0,"fa-icon",35),2&F){const v=e.oxw().$implicit;e.s9C("matTooltip",v.name),e.Q6J("icon",v.icon)}}function _l(F,M){if(1&F){const v=e.EpF();e.TgZ(0,"mat-tree-node",16),e.NdJ("click",function(){const bt=e.CHM(v).$implicit,Zt=e.oxw(2);return e.KtG(Zt.onClick(bt))}),e.YNc(1,Oh,2,1,"span",28),e.YNc(2,L1,1,2,"fa-icon",33),e.TgZ(3,"span"),e._uU(4),e.qZA()()}if(2&F){const v=M.$implicit;e.xp6(1),e.Q6J("ngIf","SVG"===v.iconType),e.xp6(1),e.Q6J("ngIf","FA"===v.iconType),e.xp6(2),e.Oqu(v.name)}}function Gs(F,M){if(1&F&&(e.TgZ(0,"mat-tree",5),e.YNc(1,_l,5,3,"mat-tree-node",6),e.qZA()),2&F){const v=e.oxw();e.Q6J("dataSource",v.navMenusLogout)("treeControl",v.treeControlLogout)}}function Ph(F,M){1&F&&(e.O4$(),e.TgZ(0,"svg",37)(1,"g",38)(2,"g",39),e._UZ(3,"circle",40)(4,"path",41)(5,"path",42),e.qZA()()())}class vl{constructor(M,v,Z,_e,bt,Zt){this.logger=M,this.commonService=v,this.sessionService=Z,this.store=_e,this.actions=bt,this.rtlEffects=Zt,this.ChildNavClicked=new e.vpe,this.faEject=Xi.KOR,this.faEye=Xi.Mdf,this.version="",this.information={},this.informationChain={},this.flgLoading=!0,this.logoutNode=[{id:200,parentId:0,name:"Logout",iconType:"FA",icon:Xi.KOR}],this.showDataNodes=[{id:1e3,parentId:0,name:"Public Key",iconType:"FA",icon:Xi.Mdf}],this.showLogout=!1,this.numPendingChannels=0,this.smallScreen=!1,this.childRootRoute="",this.userPersonaEnum=Pe.ol,this.unSubs=[new zi.x,new zi.x,new zi.x,new zi.x,new zi.x,new zi.x],this.treeControlNested=new T1.VY(ei=>ei.children),this.treeControlLogout=new T1.VY(ei=>ei.children),this.treeControlShowData=new T1.VY(ei=>ei.children),this.navMenus=new Rr.WX,this.navMenusLogout=new Rr.WX,this.navMenusShowData=new Rr.WX,this.hasChild=(ei,ui)=>!!ui.children&&ui.children.length>0,this.version=Pe.q4,_s.LNDChildren&&200===_s.LNDChildren[_s.LNDChildren.length-1].id&&_s.LNDChildren.pop(),this.navMenus.data=_s.LNDChildren||[],this.navMenusLogout.data=this.logoutNode,this.navMenusShowData.data=this.showDataNodes}ngOnInit(){const M=this.sessionService.getItem("token");this.showLogout=!!M,this.flgLoading=!!M,this.store.select(ba.Yj).pipe((0,an.R)(this.unSubs[0])).subscribe(v=>{this.appConfig=v}),this.store.select(ba.gW).pipe((0,an.R)(this.unSubs[1])).subscribe(v=>{if(this.information=v.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 Z=this.information.chains[0];this.informationChain.chain=Z.chain,this.informationChain.network=Z.network}}else this.informationChain.chain="",this.informationChain.network="";this.flgLoading=!this.information.identity_pubkey,window.innerWidth<=414&&(this.smallScreen=!0),this.selNode=v.selNode,this.settings=this.selNode?.settings||null,this.selConfigNodeIndex=+(v.selNode?.index||0),this.selNode&&this.selNode.lnImplementation&&this.filterSideMenuNodes(),this.logger.info(v)}),this.sessionService.watchSession().pipe((0,an.R)(this.unSubs[2])).subscribe(v=>{this.showLogout=!!v.token,this.flgLoading=!!v.token}),this.actions.pipe((0,an.R)(this.unSubs[3]),(0,Ra.h)(v=>v.type===Pe.pg.LOGOUT)).subscribe(v=>{this.showLogout=!1})}onClick(M){"Logout"===M.name&&(this.store.dispatch((0,jt.c1)({payload:{data:{type:Pe.n_.CONFIRM,alertTitle:"Logout",titleMessage:"Logout from this device?",noBtnText:"Cancel",yesBtnText:"Logout"}}})),this.rtlEffects.closeConfirm.pipe((0,an.R)(this.unSubs[4])).subscribe(v=>{v&&(this.showLogout=!1,this.store.dispatch((0,jt.kS)()))})),this.ChildNavClicked.emit(M)}onChildNavClicked(M){this.ChildNavClicked.emit(M)}filterSideMenuNodes(){switch(this.selNode?.lnImplementation?.toUpperCase()){case"CLN":this.loadCLNMenu();break;case"ECL":this.loadECLMenu();break;default:this.loadLNDMenu()}}loadLNDMenu(){let M=[];M=JSON.parse(JSON.stringify(_s.LNDChildren)),this.navMenus.data=M?.filter(v=>v.children&&v.children.length?(v.children=v.children?.filter(Z=>(Z.userPersona===Pe.ol.ALL||Z.userPersona===this.settings?.userPersona)&&"/services/loop"!==Z.link&&"/services/boltz"!==Z.link||"/services/loop"===Z.link&&this.settings?.swapServerUrl&&""!==this.settings.swapServerUrl.trim()||"/services/boltz"===Z.link&&this.settings?.boltzServerUrl&&""!==this.settings.boltzServerUrl.trim()),v.children.length>0):v.userPersona===Pe.ol.ALL||v.userPersona===this.settings?.userPersona)}loadCLNMenu(){let M=[];M=JSON.parse(JSON.stringify(_s.CLNChildren)),this.navMenus.data=M?.filter(v=>v.children&&v.children.length?(v.children=v.children?.filter(Z=>(Z.userPersona===Pe.ol.ALL||Z.userPersona===this.settings?.userPersona)&&"/services/peerswap"!==Z.link||"/services/peerswap"===Z.link&&this.settings?.enablePeerswap),v.children.length>0):v.userPersona===Pe.ol.ALL||v.userPersona===this.settings?.userPersona)}loadECLMenu(){this.navMenus.data=JSON.parse(JSON.stringify(_s.ECLChildren))}onShowData(M){this.store.dispatch((0,jt.tj)()),this.ChildNavClicked.emit("showData")}onNodeSelectionChange(M){const v=this.selConfigNodeIndex;this.selConfigNodeIndex=M;const Z=this.appConfig.nodes.find(_e=>+_e.index===M);this.store.dispatch((0,jt.fk)({payload:{uiMessage:Pe.m6.UPDATE_SELECTED_NODE,prevLnNodeIndex:+v,currentLnNode:Z||null,isInitialSetup:!1}})),this.ChildNavClicked.emit("selectNode")}ngOnDestroy(){this.unSubs.forEach(M=>{M.next(null),M.complete()})}}vl.\u0275fac=function(M){return new(M||vl)(e.Y36(li.mQ),e.Y36(Ft.v),e.Y36(lr.m),e.Y36(ki.yh),e.Y36(Qa.eX),e.Y36(Ea.V))},vl.\u0275cmp=e.Xpm({type:vl,selectors:[["rtl-side-navigation"]],viewQuery:function(M,v){if(1&M&&e.Gf(Rr.gi,5),2&M){let Z;e.iGM(Z=e.CRH())&&(v.tree=Z.first)}},outputs:{ChildNavClicked:"ChildNavClicked"},decls:12,vars:5,consts:[["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between start",3,"perfectScrollbar"],["fxLayout","column","fxFlex","90","fxLayoutAlign","start stretch",1,"w-100"],["class","m-2 multi-node-select",3,"value","selectionChange",4,"ngIf"],[1,"w-100"],[3,"dataSource","treeControl",4,"ngIf"],[3,"dataSource","treeControl"],[3,"click",4,"matTreeNodeDef"],["fxLayout","column","fxLayoutAlign","end stretch",1,"w-100"],["boltzIconBlock",""],[1,"m-2","multi-node-select",3,"value","selectionChange"],["tabindex","1",3,"value",4,"ngFor","ngForOf"],["tabindex","1",3,"value"],["tree",""],["matTreeNodeToggle","","routerLinkActive","active-link",3,"routerLink",4,"matTreeNodeDef"],["fxLayout","column","matTreeNodeToggle","",4,"matTreeNodeDef","matTreeNodeDefWhen"],["matTreeNodeToggle","","routerLinkActive","active-link",3,"routerLink"],[3,"click"],["fxLayout","row","fxFlex","100","fxLayoutAlign","start center"],["class","fa-icon-small mr-2",4,"ngIf"],["class","fa-icon-small mr-2",3,"icon",4,"ngIf"],["class","mat-icon-36",4,"ngIf"],[1,"fa-icon-small","mr-2"],[3,"ngTemplateOutlet"],[1,"fa-icon-small","mr-2",3,"icon"],[1,"mat-icon-36"],["fxLayout","column","matTreeNodeToggle",""],["fxLayout","row","fxLayoutAlign","start center",1,"mat-nested-tree-node-parent"],["fxFlex","80","fxLayoutAlign","start center"],["class","mr-2",4,"ngIf"],["fxFlex","20","mat-icon-button","","fxLayoutAlign","end center",1,"btn-icon-small"],[1,"mat-nested-tree-node-child"],["matTreeNodeOutlet",""],[1,"mr-2"],["class","fa-icon-small mr-2","matTooltipPosition","right",3,"icon","matTooltip",4,"ngIf"],["class","mat-icon-36","matTooltipPosition","right",3,"matTooltip",4,"ngIf"],["matTooltipPosition","right",1,"fa-icon-small","mr-2",3,"icon","matTooltip"],["matTooltipPosition","right",1,"mat-icon-36",3,"matTooltip"],["viewBox","0 0 78 78","version","1.1","xmlns","http://www.w3.org/2000/svg",0,"xmlns","xlink","http://www.w3.org/1999/xlink"],["id","Logo","stroke","none","stroke-width","1","fill","none","fill-rule","evenodd"],["id","Group"],["id","Oval","cx","39","cy","39","r","37.5",1,"boltz-icon"],["d","M36.4583326,43.7755404 L40.53965,35.2316544 L39.4324865,35.2316544 L46.0754873,17.6071752 C46.292579,17.0204094 46.3287609,16.5159331 46.1840331,16.0937464 C46.0393053,15.671561 45.7860319,15.3674444 45.4242131,15.1813966 C45.0623942,14.9953487 44.6535376,14.9524146 44.1976433,15.0525945 C43.7417511,15.1527743 43.3256596,15.4461573 42.9493689,15.9327433 L22.6078557,40.7701025 C22.2026186,41.2710003 22,41.7575877 22,42.2298646 C22,42.6735173 22.1592003,43.0420366 22.477601,43.3354226 C22.7960017,43.6288058 23.1940025,43.7755404 23.6716036,43.7755404 L36.4583326,43.7755404 Z","id","Path",1,"boltz-icon-fill"],["d","M44.4883879,63.7755404 L48.8604707,55.165009 L47.6744296,55.165009 L54.7906978,37.4030526 C55.0232558,36.8117097 55.0620155,36.3032983 54.9069768,35.8778185 C54.7519381,35.4523399 54.4806208,35.1458511 54.0930248,34.958352 C53.7054289,34.7708528 53.2674441,34.7275839 52.7790706,34.8285452 C52.2906992,34.9295065 51.8449641,35.2251779 51.4418653,35.7155595 L29.6511611,60.746659 C29.2170537,61.251464 29,61.7418469 29,62.2178078 C29,62.6649211 29.1705423,63.036315 29.5116268,63.3319895 C29.8527113,63.6276613 30.2790669,63.7755404 30.7906936,63.7755404 L44.4883879,63.7755404 Z","id","Path-Copy","transform","translate(42.000000, 49.275540) rotate(-180.000000) translate(-42.000000, -49.275540) ",1,"boltz-icon-fill"]],template:function(M,v){1&M&&(e.TgZ(0,"div",0)(1,"div",1),e.YNc(2,c3,3,2,"mat-select",2),e._UZ(3,"mat-divider",3),e.YNc(4,Dh,4,3,"mat-tree",4),e._UZ(5,"mat-divider",3),e.TgZ(6,"mat-tree",5),e.YNc(7,Vd,6,4,"mat-tree-node",6),e.qZA()(),e.TgZ(8,"div",7),e.YNc(9,Gs,2,2,"mat-tree",4),e.qZA()(),e.YNc(10,Ph,6,0,"ng-template",null,8,e.W1O)),2&M&&(e.xp6(2),e.Q6J("ngIf",v.appConfig.nodes.length>1),e.xp6(2),e.Q6J("ngIf",null==v.settings?null:v.settings.lnServerUrl),e.xp6(2),e.Q6J("dataSource",v.navMenusShowData)("treeControl",v.treeControlShowData),e.xp6(3),e.Q6J("ngIf",v.showLogout))},dependencies:[ji.sg,ji.O5,ji.tP,Ma.BN,Wi.xw,Wi.Wh,Wi.yH,_i.RK,us.Hw,zo.d,Rr.GZ,Rr.fQ,Rr.eu,Rr.gi,Rr.uo,Rr.Ar,Hi.gD,Zi.ey,Xc.gM,Bn.rH,Bn.Od,nn.Vv,nn.$V],styles:[".tree-children-invisible[_ngcontent-%COMP%]{display:none}"]});var m0=p(8255);function Rh(F,M){if(1&F&&(e.TgZ(0,"p",2),e._UZ(1,"fa-icon",3),e.TgZ(2,"span"),e._uU(3),e.qZA()()),2&F){const v=e.oxw();e.xp6(1),e.Q6J("icon",v.faCode),e.xp6(2),e.hij("API Version: ",null==v.information?null:v.information.api_version,"")}}function p0(F,M){if(1&F&&(e.TgZ(0,"p",11),e._UZ(1,"fa-icon",3),e.TgZ(2,"span",12),e._uU(3,"Settings"),e.qZA()()),2&F){const v=e.oxw();e.xp6(1),e.Q6J("icon",v.faUserCog)}}function Nh(F,M){if(1&F&&(e.TgZ(0,"p",13),e._UZ(1,"fa-icon",3),e.TgZ(2,"span",14),e._uU(3,"Help"),e.qZA()()),2&F){const v=e.oxw();e.xp6(1),e.Q6J("icon",v.faQuestion)}}function g0(F,M){if(1&F){const v=e.EpF();e.TgZ(0,"p",15),e.NdJ("click",function(){e.CHM(v);const _e=e.oxw();return e.KtG(_e.onClick())}),e._UZ(1,"fa-icon",3),e.TgZ(2,"span"),e._uU(3,"Logout"),e.qZA()()}if(2&F){const v=e.oxw();e.xp6(1),e.Q6J("icon",v.faEject)}}class bl{constructor(M,v,Z,_e,bt){this.logger=M,this.sessionService=v,this.store=Z,this.rtlEffects=_e,this.actions=bt,this.faUserCog=Xi.gNZ,this.faCodeBranch=Xi.mh3,this.faCode=Xi.dT$,this.faCog=Xi.b7W,this.faQuestion=Xi.Psp,this.faEject=Xi.KOR,this.version="",this.information={},this.informationChain={},this.flgLoading=!0,this.showLogout=!1,this.unSubs=[new zi.x,new zi.x,new zi.x,new zi.x],this.version=Pe.q4}ngOnInit(){this.store.select(ba.R4).pipe((0,an.R)(this.unSubs[0])).subscribe(M=>{if(this.information=M,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 v=this.information.chains[0];this.informationChain.chain=v.chain,this.informationChain.network=v.network}}else this.informationChain.chain="",this.informationChain.network="";this.logger.info(M)}),this.sessionService.watchSession().pipe((0,an.R)(this.unSubs[1])).subscribe(M=>{this.showLogout=!!M.token,this.flgLoading=!!M.token}),this.actions.pipe((0,an.R)(this.unSubs[2]),(0,Ra.h)(M=>M.type===Pe.pg.LOGOUT)).subscribe(()=>{this.showLogout=!1})}onClick(){this.store.dispatch((0,jt.c1)({payload:{data:{type:Pe.n_.CONFIRM,alertTitle:"Logout",titleMessage:"Logout from this device?",noBtnText:"Cancel",yesBtnText:"Logout"}}})),this.rtlEffects.closeConfirm.pipe((0,an.R)(this.unSubs[3])).subscribe(M=>{M&&(this.showLogout=!1,this.store.dispatch((0,jt.kS)()))})}ngOnDestroy(){this.unSubs.forEach(M=>{M.next(null),M.complete()})}}bl.\u0275fac=function(M){return new(M||bl)(e.Y36(li.mQ),e.Y36(lr.m),e.Y36(ki.yh),e.Y36(Ea.V),e.Y36(Qa.eX))},bl.\u0275cmp=e.Xpm({type:bl,selectors:[["rtl-top-menu"]],decls:14,vars:8,consts:[[1,"top-menu",3,"overlapTrigger"],["topMenu","matMenu"],["mat-menu-item","",1,"cursor-default"],[1,"fa-icon-small","mr-1",3,"icon"],["mat-menu-item","","class","cursor-default",4,"ngIf"],["mat-menu-item","","routerLink","/settings",4,"ngIf"],["mat-menu-item","","routerLink","/help",4,"ngIf"],["mat-menu-item","",3,"click",4,"ngIf"],["mat-icon-button","",3,"matMenuTriggerFor"],["src","assets/images/RTL-Horse-BY.svg","alt","RTL Logo",1,"rtl-log-top"],[1,"rtl-logo-dropdown","color-white"],["mat-menu-item","","routerLink","/settings"],["routerLink","/settings"],["mat-menu-item","","routerLink","/help"],["routerLink","/help"],["mat-menu-item","",3,"click"]],template:function(M,v){if(1&M&&(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,Rh,4,2,"p",4),e.YNc(7,p0,4,1,"p",5),e.YNc(8,Nh,4,1,"p",6),e.YNc(9,g0,4,1,"p",7),e.qZA(),e.TgZ(10,"button",8),e._UZ(11,"img",9),e.TgZ(12,"mat-icon",10),e._uU(13,"arrow_drop_down"),e.qZA()()),2&M){const Z=e.MAs(1);e.Q6J("overlapTrigger",!1),e.xp6(3),e.Q6J("icon",v.faCodeBranch),e.xp6(2),e.hij("Version: ",v.version,""),e.xp6(1),e.Q6J("ngIf",null==v.information?null:v.information.api_version),e.xp6(1),e.Q6J("ngIf",v.showLogout),e.xp6(1),e.Q6J("ngIf",v.showLogout),e.xp6(1),e.Q6J("ngIf",v.showLogout),e.xp6(1),e.Q6J("matMenuTriggerFor",Z)}},dependencies:[ji.O5,Ma.BN,_i.RK,us.Hw,m0.VK,m0.OP,m0.p6,Bn.rH],styles:[".mat-mdc-icon-button img.rtl-log-top{width:2rem;height:2rem}.mat-icon.material-icons.mat-icon-no-color.rtl-logo-dropdown{height:2rem}\n"],encapsulation:2});const Fh=["sideNavigation"],_0=["sideNavContent"];function Hh(F,M){if(1&F){const v=e.EpF();e.TgZ(0,"button",14),e.NdJ("click",function(){e.CHM(v);const _e=e.oxw();return e.KtG(_e.sideNavToggle())}),e.TgZ(1,"mat-icon",15),e._uU(2,"menu"),e.qZA()()}if(2&F){const v=e.oxw();e.Q6J("matTooltip",v.flgSideNavOpened?"Hide Navigation Menu":"Show Navigation Menu")("matTooltipDisabled",v.smallScreen)}}function zh(F,M){1&F&&(e.O4$(),e._UZ(0,"path",20))}function ts(F,M){1&F&&(e.O4$(),e._UZ(0,"path",21))}function v0(F,M){if(1&F){const v=e.EpF();e.TgZ(0,"button",16),e.NdJ("click",function(){e.CHM(v);const _e=e.oxw();return e.KtG(_e.flgSidenavPinned=!_e.flgSidenavPinned)}),e.O4$(),e.TgZ(1,"svg",17),e.YNc(2,zh,1,0,"path",18),e.YNc(3,ts,1,0,"path",19),e.qZA()()}if(2&F){const v=e.oxw();e.Q6J("matTooltip",v.flgSidenavPinned?"Unpin Navigation Menu":"Pin Navigation Menu"),e.xp6(2),e.Q6J("ngIf",!v.flgSidenavPinned),e.xp6(1),e.Q6J("ngIf",v.flgSidenavPinned)}}function b0(F,M){if(1&F&&(e.TgZ(0,"span",22),e._uU(1),e.qZA()),2&F){const v=e.oxw();e.xp6(1),e.Oqu(v.information.alias?"RTL - "+v.information.alias:"RTL")}}function Vh(F,M){if(1&F&&(e.TgZ(0,"span",23),e._uU(1),e.qZA()),2&F){const v=e.oxw();e.xp6(1),e.Oqu(v.information.alias?"Ride The Lightning - "+v.information.alias:"Ride The Lightning")}}function Bh(F,M){1&F&&(e.TgZ(0,"div",24),e._UZ(1,"mat-spinner",25),e.TgZ(2,"h4"),e._uU(3,"Loading RTL..."),e.qZA()())}const y0=function(F,M){return[F,M]};class Yl{constructor(M,v,Z,_e,bt,Zt,ei,ui,Ei){this.logger=M,this.commonService=v,this.store=Z,this.actions=_e,this.userIdle=bt,this.router=Zt,this.sessionService=ei,this.breakpointObserver=ui,this.renderer=Ei,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 zi.x,new zi.x,new zi.x,new zi.x,new zi.x,new zi.x,new zi.x,new zi.x]}ngOnInit(){this.router.events.subscribe(M=>{M instanceof Bn.m2&&document.getElementsByTagName("mat-sidenav-content")[0].scrollTo(0,0)}),this.breakpointObserver.observe([Dn.u3.XSmall,Dn.u3.TabletPortrait,Dn.u3.Small,Dn.u3.Medium,Dn.u3.Large,Dn.u3.XLarge]).pipe((0,an.R)(this.unSubs[0])).subscribe(M=>{M.breakpoints[Dn.u3.XSmall]?(this.commonService.setScreenSize(Pe.cu.XS),this.smallScreen=!0):M.breakpoints[Dn.u3.TabletPortrait]?(this.commonService.setScreenSize(Pe.cu.SM),this.smallScreen=!0):M.breakpoints[Dn.u3.Small]||M.breakpoints[Dn.u3.Medium]?(this.commonService.setScreenSize(Pe.cu.MD),this.smallScreen=!1):M.breakpoints[Dn.u3.Large]?(this.commonService.setScreenSize(Pe.cu.LG),this.smallScreen=!1):(this.commonService.setScreenSize(Pe.cu.XL),this.smallScreen=!1)}),this.store.dispatch((0,jt.ey)()),this.accessKey=this.readAccessKey()||"",this.store.select(ba.dT).pipe((0,an.R)(this.unSubs[1])).subscribe(M=>{this.settings=M.settings,this.sessionService.getItem("token")?(this.flgLoggedIn=!0,this.userIdle.startWatching()):(this.flgLoggedIn=!1,this.flgLoading[0]=!1)}),this.store.select(ba.Yj).pipe((0,an.R)(this.unSubs[2])).subscribe(M=>{this.appConfig=M}),this.store.select(ba.R4).pipe((0,an.R)(this.unSubs[3])).subscribe(M=>{this.information=M,this.flgLoading[0]=!this.information.identity_pubkey,this.logger.info(this.information)}),"true"===this.sessionService.getItem("defaultPassword")&&(this.flgSideNavOpened=!1),this.actions.pipe((0,an.R)(this.unSubs[4]),(0,Ra.h)(M=>M.type===Pe.pg.SET_RTL_CONFIG||M.type===Pe.pg.LOGIN||M.type===Pe.pg.LOGOUT)).subscribe(M=>{M.type===Pe.pg.SET_RTL_CONFIG&&(this.sessionService.getItem("token")||(+M.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,jt.x4)({payload:{password:Sa(this.accessKey).toString(),defaultPassword:!1}})):this.router.navigate(["./login"]))),M.type===Pe.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)),M.type===Pe.pg.LOGOUT&&(this.flgLoggedIn=!1,this.userIdle.stopWatching(),this.userIdle.stopTimer())}),this.userIdle.onTimerStart().pipe((0,an.R)(this.unSubs[5])).subscribe(M=>{this.logger.info("Counting Down: "+(11-M))}),this.userIdle.onTimeout().pipe((0,an.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,jt.ts)()),this.store.dispatch((0,jt.qR)({payload:{data:{type:Pe.n_.WARNING,alertTitle:"Logging out",titleMessage:"Time limit exceeded for session inactivity."}}})),this.store.dispatch((0,jt.kS)()))}),"true"===this.sessionService.getItem("defaultPassword")&&(this.flgSideNavOpened=!1)}readAccessKey(){const M=window.location.href;return M.includes("access-key=")?M.substring(M.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(M){this.smallScreen&&this.sideNavigation.close()}copiedText(M){this.flgCopied=!0,setTimeout(()=>{this.flgCopied=!1},5e3),this.logger.info("Copied Text: "+M)}ngOnDestroy(){this.unSubs.forEach(M=>{M.next(),M.complete()})}}Yl.\u0275fac=function(M){return new(M||Yl)(e.Y36(li.mQ),e.Y36(Ft.v),e.Y36(ki.yh),e.Y36(Qa.eX),e.Y36(Gc),e.Y36(Bn.F0),e.Y36(lr.m),e.Y36(Dn.Yg),e.Y36(e.Qsj))},Yl.\u0275cmp=e.Xpm({type:Yl,selectors:[["rtl-app"]],viewQuery:function(M,v){if(1&M&&(e.Gf(Fh,5),e.Gf(_0,5)),2&M){let Z;e.iGM(Z=e.CRH())&&(v.sideNavigation=Z.first),e.iGM(Z=e.CRH())&&(v.sideNavContent=Z.first)}},decls:23,vars:15,consts:[["fxLayout","column","id","rtl-container",1,"rtl-container","medium",3,"ngClass"],["fxLayout","row","fxLayoutAlign","space-between center",1,"bg-primary","rtl-top-toolbar"],["mat-icon-button","","matTooltipPosition","right",3,"matTooltip","matTooltipDisabled","click",4,"ngIf"],["mat-icon-button","","matTooltipPosition","right",3,"matTooltip","click",4,"ngIf"],["class","font-weight-500",4,"ngIf"],["class","font-size-120 font-weight-500",4,"ngIf"],[1,"sidenav","mat-elevation-z6",3,"perfectScrollbar","opened","mode"],["sideNavigation",""],["fxFlex","100",3,"ChildNavClicked"],[3,"perfectScrollbar"],["sideNavContent",""],["fxLayout","column","fxFlex","100","fxLayoutAlign","start stretch",1,"inner-sidenav-content"],["outlet","outlet"],["class","rtl-spinner",4,"ngIf"],["mat-icon-button","","matTooltipPosition","right",3,"matTooltip","matTooltipDisabled","click"],[1,"color-white"],["mat-icon-button","","matTooltipPosition","right",3,"matTooltip","click"],["width","20","height","20","viewBox","0 0 24 24",1,"icon-pinned"],["fill","currentColor","d","M16,12V4H17V2H7V4H8V12L6,14V16H11.2V22H12.8V16H18V14L16,12Z",4,"ngIf"],["fill","currentColor","d","M2,5.27L3.28,4L20,20.72L18.73,22L12.8,16.07V22H11.2V16H6V14L8,12V11.27L2,5.27M16,12L18,14V16H17.82L8,6.18V4H7V2H17V4H16V12Z",4,"ngIf"],["fill","currentColor","d","M16,12V4H17V2H7V4H8V12L6,14V16H11.2V22H12.8V16H18V14L16,12Z"],["fill","currentColor","d","M2,5.27L3.28,4L20,20.72L18.73,22L12.8,16.07V22H11.2V16H6V14L8,12V11.27L2,5.27M16,12L18,14V16H17.82L8,6.18V4H7V2H17V4H16V12Z"],[1,"font-weight-500"],[1,"font-size-120","font-weight-500"],[1,"rtl-spinner"],["color","accent"]],template:function(M,v){1&M&&(e.TgZ(0,"div",0),e.ALo(1,"lowercase"),e.ALo(2,"lowercase"),e.TgZ(3,"mat-toolbar",1)(4,"div"),e.YNc(5,Hh,3,2,"button",2),e.YNc(6,v0,4,3,"button",3),e.qZA(),e.TgZ(7,"div"),e.YNc(8,b0,2,1,"span",4),e.YNc(9,Vh,2,1,"span",5),e.qZA(),e.TgZ(10,"div"),e._UZ(11,"rtl-top-menu"),e.qZA()(),e.TgZ(12,"mat-sidenav-container")(13,"mat-sidenav",6,7)(15,"rtl-side-navigation",8),e.NdJ("ChildNavClicked",function(_e){return v.onNavigationClicked(_e)}),e.qZA()(),e.TgZ(16,"mat-sidenav-content",9,10)(18,"div",11),e._UZ(19,"router-outlet",null,12),e.qZA()(),e._uU(21,"> "),e.qZA(),e.YNc(22,Bh,4,0,"div",13),e.qZA()),2&M&&(e.Q6J("ngClass",e.WLB(12,y0,e.lcZ(1,8,v.settings.themeColor),e.lcZ(2,10,v.settings.themeMode))),e.xp6(5),e.Q6J("ngIf",v.flgLoggedIn),e.xp6(1),e.Q6J("ngIf",!v.smallScreen&&v.flgLoggedIn),e.xp6(2),e.Q6J("ngIf",v.smallScreen),e.xp6(1),e.Q6J("ngIf",!v.smallScreen),e.xp6(4),e.Q6J("opened",v.flgSideNavOpened&&v.flgLoggedIn)("mode",v.flgSidenavPinned&&!v.smallScreen?"side":"over"),e.xp6(9),e.Q6J("ngIf",!v.settings.themeColor))},dependencies:[ji.mk,ji.O5,Wi.xw,Wi.Wh,Wi.yH,fi.oO,_i.RK,us.Hw,Rd.Ou,Nd.JX,Nd.TM,Nd.Rh,es.Ye,Xc.gM,nn.$V,vl,bl,Bn.lC,ji.i8],styles:[".inline-spinner[_ngcontent-%COMP%]{display:inline-flex!important;top:0!important}"],data:{animation:[h0.g]}});class Rc{constructor(M){this.sessionService=M}intercept(M,v){if(this.sessionService.getItem("token")){const Z=M.clone({headers:M.headers.set("Authorization","Bearer "+this.sessionService.getItem("token")),withCredentials:!0});return v.handle(Z)}return v.handle(M)}}Rc.\u0275fac=function(M){return new(M||Rc)(e.LFG(lr.m))},Rc.\u0275prov=e.Yz7({token:Rc,factory:Rc.\u0275fac});var Uh=p(7998),Gh=p(711),Bd=p(4947),Rn=p(3289);const Ud={userPersona:"OPERATOR",themeMode:"DAY",themeColor:"PURPLE",channelBackupPath:"",selCurrencyUnit:"USD",unannouncedChannels:!1,fiatConversion:!1,currencyUnits:["Sats","BTC","USD"],bitcoindConfigPath:"",enableOffers:!1,enablePeerswap:!1},Gd={configPath:"",swapMacaroonPath:"",boltzMacaroonPath:""},Zd={apiURL:"",apisCallStatus:{Login:{status:Pe.Bn.UN_INITIATED},IsAuthorized:{status:Pe.Bn.UN_INITIATED}},selNode:{index:1,lnNode:"Node 1",settings:Ud,authentication:Gd,lnImplementation:"LND"},appConfig:{defaultNodeIndex:-1,selectedNodeIndex:-1,sso:{rtlSSO:0,logoutRedirectLink:""},enable2FA:!1,allowPasswordUpdate:!0,nodes:[{settings:Ud,authentication:Gd}]},nodeData:{}},Zh=(0,ki.Lq)(Zd,(0,ki.on)(jt.qi,(F,{payload:M})=>{const v=JSON.parse(JSON.stringify(F.apisCallStatus));return M.action&&(v[M.action]={status:M.status,statusCode:M.statusCode,message:M.message,URL:M.URL,filePath:M.filePath}),{...F,apisCallStatus:v}}),(0,ki.on)(jt.vI,(F,{payload:M})=>({...Zd,apisCallStatus:F.apisCallStatus,appConfig:F.appConfig,selNode:M})),(0,ki.on)(jt.fk,(F,{payload:M})=>({...F,selNode:M.currentLnNode})),(0,ki.on)(jt.Tm,(F,{payload:M})=>{const v=JSON.parse(JSON.stringify(F.selNode));switch(M.service){case Pe.JX.BOLTZ:v.settings.boltzServerUrl=M.settings.boltzServerUrl;break;case Pe.JX.LOOP:v.settings.swapServerUrl=M.settings.swapServerUrl;break;case Pe.JX.OFFERS:v.settings.enableOffers=M.settings.enableOffers;break;case Pe.JX.PEERSWAP:v.settings.enablePeerswap=M.settings.enablePeerswap}return{...F,selNode:v}}),(0,ki.on)(jt._V,(F,{payload:M})=>({...F,nodeData:M})),(0,ki.on)(jt.XT,(F,{payload:M})=>({...F,appConfig:M}))),Wd={apisCallStatus:{FetchPageSettings:{status:Pe.Bn.UN_INITIATED},FetchInfo:{status:Pe.Bn.UN_INITIATED},FetchFees:{status:Pe.Bn.UN_INITIATED},FetchPeers:{status:Pe.Bn.UN_INITIATED},FetchClosedChannels:{status:Pe.Bn.UN_INITIATED},FetchPendingChannels:{status:Pe.Bn.UN_INITIATED},FetchAllChannels:{status:Pe.Bn.UN_INITIATED},FetchBalanceBlockchain:{status:Pe.Bn.UN_INITIATED},FetchInvoices:{status:Pe.Bn.UN_INITIATED},FetchPayments:{status:Pe.Bn.UN_INITIATED},FetchForwardingHistory:{status:Pe.Bn.UN_INITIATED},FetchUTXOs:{status:Pe.Bn.UN_INITIATED},FetchTransactions:{status:Pe.Bn.UN_INITIATED},FetchLightningTransactions:{status:Pe.Bn.UN_INITIATED},FetchNetwork:{status:Pe.Bn.UN_INITIATED}},nodeSettings:{userPersona:Pe.ol.OPERATOR,unannouncedChannels:!1,fiatConversion:!1,channelBackupPath:"",currencyUnits:[],selCurrencyUnit:"",lnImplementation:"",swapServerUrl:""},pageSettings:Pe.gK,information:{},peers:[],fees:{channel_fees:[],day_fee_sum:0,week_fee_sum:0,month_fee_sum:0,daily_tx_count:0,weekly_tx_count:0,monthly_tx_count:0,forwarding_events_history:{}},networkInfo:{},blockchainBalance:{total_balance:-1},lightningBalance:{local:-1,remote:-1},channels:[],channelsSummary:{active:{num_channels:0,capacity:0},inactive:{num_channels:0,capacity:0}},closedChannels:[],pendingChannels:{},pendingChannelsSummary:{open:{num_channels:0,limbo_balance:0},closing:{num_channels:0,limbo_balance:0},force_closing:{num_channels:0,limbo_balance:0},waiting_close:{num_channels:0,limbo_balance:0},total_channels:0,total_limbo_balance:0},transactions:[],utxos:[],listPayments:{payments:[]},listInvoices:{invoices:[]},allLightningTransactions:{listPaymentsAll:{payments:[],first_index_offset:"",last_index_offset:""},listInvoicesAll:{invoices:[],total_invoices:0,last_index_offset:"",first_index_offset:""}},forwardingHistory:{last_offset_index:0,total_fee_msat:0,forwarding_events:[]}};let Yd=!1,x0=!1;const C0=(0,ki.Lq)(Wd,(0,ki.on)(At.PC,(F,{payload:M})=>{const v=JSON.parse(JSON.stringify(F.apisCallStatus));return M.action&&(v[M.action]={status:M.status,statusCode:M.statusCode,message:M.message,URL:M.URL,filePath:M.filePath}),{...F,apisCallStatus:v}}),(0,ki.on)(At.JT,(F,{payload:M})=>({...F,nodeSettings:M})),(0,ki.on)(At.Ll,(F,{payload:M})=>({...Wd,nodeSettings:M})),(0,ki.on)(At.CX,(F,{payload:M})=>({...F,information:M})),(0,ki.on)(At.Z8,(F,{payload:M})=>({...F,peers:M})),(0,ki.on)(At.EK,(F,{payload:M})=>{const v=[...F.peers],Z=F.peers.findIndex(_e=>_e.pub_key===M.pubkey);return Z>-1&&v.splice(Z,1),{...F,peers:v}}),(0,ki.on)(At.YP,(F,{payload:M})=>{const v=F.listInvoices;return v.invoices?.unshift(M),{...F,listInvoices:v}}),(0,ki.on)(At.aL,(F,{payload:M})=>{const v=F.listInvoices;return v.invoices=v.invoices?.map(Z=>Z.payment_request===M.payment_request?M:Z),{...F,listInvoices:v}}),(0,ki.on)(At.qY,(F,{payload:M})=>{const v=F.listPayments;return v.payments=v.payments?.map(Z=>Z.payment_hash===M.payment_hash?M:Z),{...F,listPayments:v}}),(0,ki.on)(At.RX,(F,{payload:M})=>({...F,fees:M})),(0,ki.on)(At._L,(F,{payload:M})=>({...F,closedChannels:M})),(0,ki.on)(At.TW,(F,{payload:M})=>({...F,pendingChannels:M.pendingChannels,pendingChannelsSummary:M.pendingChannelsSummary})),(0,ki.on)(At.as,(F,{payload:M})=>{let v=0,Z=0,_e=0,bt=0,Zt=0,ei=0;return M&&M.forEach(ui=>{ui.local_balance||(ui.local_balance=0),!0===ui.active?(Zt+=+ui.local_balance,_e+=1,ui.local_balance?v=+v+ +ui.local_balance:ui.local_balance=0,ui.remote_balance?Z=+Z+ +ui.remote_balance:ui.remote_balance=0):(ei+=+ui.local_balance,bt+=1)}),{...F,channels:M,channelsSummary:{active:{num_channels:_e,capacity:Zt},inactive:{num_channels:bt,capacity:ei}},lightningBalance:{local:v,remote:Z}}}),(0,ki.on)(At.OG,(F,{payload:M})=>{const v=[...F.channels],Z=F.channels.findIndex(_e=>_e.channel_point===M.channelPoint);return Z>-1&&v.splice(Z,1),{...F,channels:v}}),(0,ki.on)(At.Jl,(F,{payload:M})=>({...F,blockchainBalance:M})),(0,ki.on)(At.ks,(F,{payload:M})=>({...F,networkInfo:M})),(0,ki.on)(At.Nr,(F,{payload:M})=>(M.total_invoices||(M.total_invoices=F.listInvoices.total_invoices),{...F,listInvoices:M})),(0,ki.on)(At.Lf,(F,{payload:M})=>{if(Yd=!0,M.length&&x0){const v=[...F.utxos];return v.forEach(Z=>{const _e=M.find(bt=>bt.tx_hash===Z.outpoint?.txid_str);Z.label=_e&&_e.label?_e.label:""}),{...F,utxos:v,transactions:M}}return{...F,transactions:M}}),(0,ki.on)(At.UH,(F,{payload:M})=>{if(x0=!0,M.length&&Yd){const v=[...F.transactions];M.forEach(Z=>{const _e=v.find(bt=>bt.tx_hash===Z.outpoint?.txid_str);Z.label=_e&&_e.label?_e.label:""})}return{...F,utxos:M}}),(0,ki.on)(At.HI,(F,{payload:M})=>{const v={listInvoicesAll:F.allLightningTransactions.listInvoicesAll,listPaymentsAll:M};return{...F,listPayments:M,allLightningTransactions:v}}),(0,ki.on)(At.Fr,(F,{payload:M})=>{const v={listInvoicesAll:M.listInvoicesAll,listPaymentsAll:F.listPayments};return{...F,allLightningTransactions:v}}),(0,ki.on)(At.QJ,(F,{payload:M})=>{const v=[...F.channels,...F.closedChannels];let Z=M.forwarding_events?JSON.parse(JSON.stringify(M)):{};return Z.forwarding_events&&(Z=w0(Z,v)),{...F,forwardingHistory:Z}}),(0,ki.on)(At.pd,(F,{payload:M})=>{const v=[];return Pe.gK.forEach(Z=>{const _e=M&&M.length&&M.length>0?M.find(bt=>bt.pageId===Z.pageId):null;if(_e){const bt=JSON.parse(JSON.stringify(_e.tables));_e.tables=[],Z.tables.forEach(Zt=>{const ei=bt.find(ui=>ui.tableId===Zt.tableId)||null;_e.tables.push(ei||JSON.parse(JSON.stringify(Zt)))}),v.push(_e)}else v.push(JSON.parse(JSON.stringify(Z)))}),{...F,pageSettings:v}})),w0=(F,M)=>(F.forwarding_events.forEach(v=>{if(M&&M.length>0)for(let Z=0;Z<M.length;Z++){if(M[Z].chan_id?.toString()===v.chan_id_in&&(v.alias_in=M[Z].remote_alias?M[Z].remote_alias:v.chan_id_in,v.alias_out)||M[Z].chan_id?.toString()===v.chan_id_out&&(v.alias_out=M[Z].remote_alias?M[Z].remote_alias:v.chan_id_out,v.alias_in))return;Z===M.length-1&&(v.alias_in||(v.alias_in=v.chan_id_in),v.alias_out||(v.alias_out=v.chan_id_out))}else v.alias_in=v.chan_id_in,v.alias_out=v.chan_id_out}),F),M0={apisCallStatus:{FetchPageSettings:{status:Pe.Bn.UN_INITIATED},FetchInfo:{status:Pe.Bn.UN_INITIATED},FetchInvoices:{status:Pe.Bn.UN_INITIATED},FetchFees:{status:Pe.Bn.UN_INITIATED},FetchChannels:{status:Pe.Bn.UN_INITIATED},FetchBalance:{status:Pe.Bn.UN_INITIATED},FetchLocalRemoteBalance:{status:Pe.Bn.UN_INITIATED},FetchFeeRatesperkb:{status:Pe.Bn.UN_INITIATED},FetchFeeRatesperkw:{status:Pe.Bn.UN_INITIATED},FetchPeers:{status:Pe.Bn.UN_INITIATED},FetchUTXOs:{status:Pe.Bn.UN_INITIATED},FetchPayments:{status:Pe.Bn.UN_INITIATED},FetchForwardingHistoryS:{status:Pe.Bn.UN_INITIATED},FetchForwardingHistoryF:{status:Pe.Bn.UN_INITIATED},FetchForwardingHistoryL:{status:Pe.Bn.UN_INITIATED},FetchOffers:{status:Pe.Bn.UN_INITIATED},FetchOfferBookmarks:{status:Pe.Bn.UN_INITIATED}},nodeSettings:{userPersona:Pe.ol.OPERATOR,unannouncedChannels:!1,selCurrencyUnit:"USD",fiatConversion:!1,channelBackupPath:"",currencyUnits:[],enableOffers:!1,enablePeerswap:!1},pageSettings:Pe.gG,information:{},fees:{},feeRatesPerKB:{},feeRatesPerKW:{},balance:{},localRemoteBalance:{localBalance:-1,remoteBalance:-1},peers:[],activeChannels:[],pendingChannels:[],inactiveChannels:[],payments:[],forwardingHistory:{},failedForwardingHistory:{},localFailedForwardingHistory:{},invoices:{invoices:[]},utxos:[],offers:[],offersBookmarks:[]},l3=(0,ki.Lq)(M0,(0,ki.on)(nt.Ni,(F,{payload:M})=>{const v=JSON.parse(JSON.stringify(F.apisCallStatus));return M.action&&(v[M.action]={status:M.status,statusCode:M.statusCode,message:M.message,URL:M.URL,filePath:M.filePath}),{...F,apisCallStatus:v}}),(0,ki.on)(nt.oo,(F,{payload:M})=>({...F,nodeSettings:M})),(0,ki.on)(nt.xH,(F,{payload:M})=>({...M0,nodeSettings:M})),(0,ki.on)(nt.CX,(F,{payload:M})=>({...F,information:M})),(0,ki.on)(nt.RX,(F,{payload:M})=>({...F,fees:M})),(0,ki.on)(nt.I8,(F,{payload:M})=>M.perkb?{...F,feeRatesPerKB:M}:M.perkw?{...F,feeRatesPerKW:M}:{...F}),(0,ki.on)(nt.Lu,(F,{payload:M})=>({...F,balance:M})),(0,ki.on)(nt.xS,(F,{payload:M})=>({...F,localRemoteBalance:M})),(0,ki.on)(nt.Z8,(F,{payload:M})=>({...F,peers:M})),(0,ki.on)(nt.X3,(F,{payload:M})=>({...F,peers:[...F.peers,M]})),(0,ki.on)(nt.EK,(F,{payload:M})=>{const v=[...F.peers],Z=F.peers.findIndex(_e=>_e.id===M.id);return Z>-1&&v.splice(Z,1),{...F,peers:v}}),(0,ki.on)(nt.as,(F,{payload:M})=>({...F,activeChannels:M.activeChannels,pendingChannels:M.pendingChannels,inactiveChannels:M.inactiveChannels})),(0,ki.on)(nt.OG,(F,{payload:M})=>{const v=[...F.peers];return v.forEach(Z=>{Z.id===M.id&&(Z.connected=!1,delete Z.netaddr)}),{...F,peers:v}}),(0,ki.on)(nt.HI,(F,{payload:M})=>({...F,payments:M})),(0,ki.on)(nt.QJ,(F,{payload:M})=>{const v=[...F.activeChannels,...F.pendingChannels,...F.inactiveChannels],Z=jd(M.listForwards,v);switch(M.listForwards=Z,M.status){case Pe.OO.SETTLED:const _e=F.fees;return _e.totalTxCount=M.totalForwards||0,{...F,fees:_e,forwardingHistory:M};case Pe.OO.FAILED:return{...F,failedForwardingHistory:M};case Pe.OO.LOCAL_FAILED:return{...F,localFailedForwardingHistory:M};default:return{...F}}}),(0,ki.on)(nt.YP,(F,{payload:M})=>{const v=F.invoices;return v.invoices?.unshift(M),{...F,invoices:v}}),(0,ki.on)(nt.Nr,(F,{payload:M})=>({...F,invoices:M})),(0,ki.on)(nt.aL,(F,{payload:M})=>{const v=F.invoices;return v.invoices=v.invoices?.map(Z=>Z.label===M.label?M:Z),{...F,invoices:v}}),(0,ki.on)(nt.UH,(F,{payload:M})=>({...F,utxos:M})),(0,ki.on)(nt.Zu,(F,{payload:M})=>({...F,offers:M})),(0,ki.on)(nt.ZH,(F,{payload:M})=>{const v=F.offers;return v?.unshift(M),{...F,offers:v}}),(0,ki.on)(nt.JK,(F,{payload:M})=>{const v=[...F.offers],Z=F.offers.findIndex(_e=>_e.offer_id===M.offer.offer_id);return Z>-1&&v.splice(Z,1,M.offer),{...F,offers:v}}),(0,ki.on)(nt.d7,(F,{payload:M})=>({...F,offersBookmarks:M})),(0,ki.on)(nt.e9,(F,{payload:M})=>{const v=[...F.offersBookmarks],Z=v.findIndex(_e=>_e.bolt12===M.bolt12);if(Z<0)v?.unshift(M);else{const _e={...v[Z]};_e.title=M.title,_e.amountMSat=M.amountMSat,_e.lastUpdatedAt=M.lastUpdatedAt,_e.description=M.description,_e.issuer=M.issuer,v.splice(Z,1,_e)}return{...F,offersBookmarks:v}}),(0,ki.on)(nt.en,(F,{payload:M})=>{const v=[...F.offersBookmarks],Z=F.offersBookmarks.findIndex(_e=>_e.bolt12===M.bolt12);return Z>-1&&v.splice(Z,1),{...F,offersBookmarks:v}}),(0,ki.on)(nt.pd,(F,{payload:M})=>{const v=[];return Pe.gG.forEach(Z=>{const _e=M&&M.length&&M.length>0?M.find(bt=>bt.pageId===Z.pageId):null;if(_e){const bt=JSON.parse(JSON.stringify(_e.tables));_e.tables=[],Z.tables.forEach(Zt=>{const ei=bt.find(ui=>ui.tableId===Zt.tableId)||null;_e.tables.push(ei||JSON.parse(JSON.stringify(Zt)))}),v.push(_e)}else v.push(JSON.parse(JSON.stringify(Z)))}),{...F,pageSettings:v}})),jd=(F,M)=>(F&&F.length>0?F.forEach((v,Z)=>{if(M&&M.length>0)for(let _e=0;_e<M.length;_e++){if(M[_e].short_channel_id&&M[_e].short_channel_id===v.in_channel&&(v.in_channel_alias=M[_e].alias?M[_e].alias:v.in_channel,v.out_channel_alias)||M[_e].short_channel_id&&M[_e].short_channel_id?.toString()===v.out_channel&&(v.out_channel_alias=M[_e].alias?M[_e].alias:v.out_channel,v.in_channel_alias))return;_e===M.length-1&&(v.in_channel_alias||(v.in_channel_alias=v.in_channel?v.in_channel:"-"),v.out_channel_alias||(v.out_channel_alias=v.out_channel?v.out_channel:"-"))}else v.in_channel_alias=v.in_channel?v.in_channel:"-",v.out_channel_alias=v.out_channel?v.out_channel:"-"}):F=[],F),Kd={apisCallStatus:{FetchPageSettings:{status:Pe.Bn.UN_INITIATED},FetchInfo:{status:Pe.Bn.UN_INITIATED},FetchFees:{status:Pe.Bn.UN_INITIATED},FetchChannels:{status:Pe.Bn.UN_INITIATED},FetchOnchainBalance:{status:Pe.Bn.UN_INITIATED},FetchPeers:{status:Pe.Bn.UN_INITIATED},FetchPayments:{status:Pe.Bn.UN_INITIATED},FetchInvoices:{status:Pe.Bn.UN_INITIATED},FetchTransactions:{status:Pe.Bn.UN_INITIATED}},nodeSettings:{userPersona:Pe.ol.OPERATOR,unannouncedChannels:!1,selCurrencyUnit:"USD",fiatConversion:!1,channelBackupPath:"",currencyUnits:[]},pageSettings:Pe.c3,information:{},fees:{},activeChannels:[],pendingChannels:[],inactiveChannels:[],channelsStatus:{active:{channels:0,capacity:0},inactive:{channels:0,capacity:0},pending:{channels:0,capacity:0},closing:{channels:0,capacity:0}},onchainBalance:{total:0,confirmed:0,unconfirmed:0},lightningBalance:{localBalance:-1,remoteBalance:-1},peers:[],payments:{},transactions:[],invoices:[]},uc=(0,ki.Lq)(Kd,(0,ki.on)(Ne.QZ,(F,{payload:M})=>{const v=JSON.parse(JSON.stringify(F.apisCallStatus));return M.action&&(v[M.action]={status:M.status,statusCode:M.statusCode,message:M.message,URL:M.URL,filePath:M.filePath}),{...F,apisCallStatus:v}}),(0,ki.on)(Ne.Zr,(F,{payload:M})=>({...F,nodeSettings:M})),(0,ki.on)(Ne.Fd,(F,{payload:M})=>({...Kd,nodeSettings:M})),(0,ki.on)(Ne.CX,(F,{payload:M})=>({...F,information:M})),(0,ki.on)(Ne.RX,(F,{payload:M})=>({...F,fees:M})),(0,ki.on)(Ne.eN,(F,{payload:M})=>({...F,activeChannels:M})),(0,ki.on)(Ne.TW,(F,{payload:M})=>({...F,pendingChannels:M})),(0,ki.on)(Ne.i,(F,{payload:M})=>({...F,inactiveChannels:M})),(0,ki.on)(Ne.HG,(F,{payload:M})=>({...F,channelsStatus:M})),(0,ki.on)(Ne.Bw,(F,{payload:M})=>({...F,onchainBalance:M})),(0,ki.on)(Ne.On,(F,{payload:M})=>({...F,lightningBalance:M})),(0,ki.on)(Ne.Z8,(F,{payload:M})=>({...F,peers:M})),(0,ki.on)(Ne.EK,(F,{payload:M})=>{const v=[...F.peers],Z=F.peers.findIndex(_e=>_e.nodeId===M.nodeId);return Z>-1&&v.splice(Z,1),{...F,peers:v}}),(0,ki.on)(Ne.OG,(F,{payload:M})=>{const v=[...F.activeChannels],Z=F.activeChannels.findIndex(_e=>_e.channelId===M.channelId);return Z>-1&&v.splice(Z,1),{...F,activeChannels:v}}),(0,ki.on)(Ne.HI,(F,{payload:M})=>{if(M&&M.sent){const v=[...F.activeChannels,...F.pendingChannels,...F.inactiveChannels];M.sent?.map(Z=>{const _e=F.peers.find(bt=>bt.nodeId===Z.recipientNodeId);return Z.recipientNodeAlias=_e?_e.alias:Z.recipientNodeId,Z.parts&&Z.parts?.map(bt=>{const Zt=v.find(ei=>ei.channelId===bt.toChannelId);return bt.toChannelAlias=Zt?Zt.alias:bt.toChannelId,Z.parts}),M.sent})}if(M&&M.relayed){const v=[...F.activeChannels,...F.pendingChannels,...F.inactiveChannels];M.relayed.forEach(Z=>{Z=S0(Z,v)})}return{...F,payments:M}}),(0,ki.on)(Ne.Lf,(F,{payload:M})=>({...F,transactions:M})),(0,ki.on)(Ne.YP,(F,{payload:M})=>{const v=F.invoices;return v?.unshift(M),{...F,invoices:v}}),(0,ki.on)(Ne.Nr,(F,{payload:M})=>({...F,invoices:M})),(0,ki.on)(Ne.aL,(F,{payload:M})=>{let v=F.invoices;return v=v?.map(Z=>{if(Z.paymentHash===M.paymentHash){if(M.hasOwnProperty("type")){const _e=JSON.parse(JSON.stringify(Z));return _e.amountSettled=M.parts&&M.parts.length&&M.parts.length>0&&M.parts[0].amount?(M.parts[0].amount||0)/1e3:0,_e.receivedAt=M.parts&&M.parts.length&&M.parts.length>0&&M.parts[0].timestamp?Math.round((M.parts[0].timestamp||0)/1e3):0,_e.status="received",_e}return M}return Z}),{...F,invoices:v}}),(0,ki.on)(Ne.DJ,(F,{payload:M})=>{let v=F.pendingChannels;return v=v?.map(Z=>(Z.channelId===M.channelId&&Z.nodeId===M.remoteNodeId&&(M.currentState=M.currentState?.replace(/_/g," "),Z.state=M.currentState),Z)),{...F,pendingChannels:v}}),(0,ki.on)(Ne.ti,(F,{payload:M})=>{const v=F.payments,Z=S0(M,[...F.activeChannels,...F.pendingChannels,...F.inactiveChannels]);v.relayed?.unshift(Z);const _e=(M.amountIn||0)-(M.amountOut||0),bt={localBalance:F.lightningBalance.localBalance+_e,remoteBalance:F.lightningBalance.remoteBalance-_e},Zt=F.channelsStatus;Zt.active&&(Zt.active.capacity=(F.channelsStatus?.active?.capacity||0)+_e);const ei={daily_fee:(F.fees.daily_fee||0)+_e,daily_txs:(F.fees.daily_txs||0)+1,weekly_fee:(F.fees.weekly_fee||0)+_e,weekly_txs:(F.fees.weekly_txs||0)+1,monthly_fee:(F.fees.monthly_fee||0)+_e,monthly_txs:(F.fees.monthly_txs||0)+1},ui=F.activeChannels;let Ei=!1,en=!1;for(const Bi of ui){if(Bi.channelId===M.fromChannelId){Ei=!0;const In=(Bi.toLocal||0)+(Bi.toRemote||0);Bi.toLocal=(Bi.toLocal||0)+Z.amountIn,Bi.toRemote=(Bi.toRemote||0)-Z.amountIn,Bi.balancedness=0===In?1:+(1-Math.abs((Bi.toLocal-Bi.toRemote)/In)).toFixed(3)}if(Bi.channelId===M.toChannelId){en=!0;const In=(Bi.toLocal||0)+(Bi.toRemote||0);Bi.toLocal=(Bi.toLocal||0)-Z.amountOut,Bi.toRemote=(Bi.toRemote||0)+Z.amountOut,Bi.balancedness=0===In?1:+(1-Math.abs((Bi.toLocal-Bi.toRemote)/In)).toFixed(3)}if(en&&Ei)break}return{...F,payments:v,lightningBalance:bt,channelStatus:Zt,fees:ei,activeChannels:ui}}),(0,ki.on)(Ne.pd,(F,{payload:M})=>{const v=[];return Pe.c3.forEach(Z=>{const _e=M&&M.length&&M.length>0?M.find(bt=>bt.pageId===Z.pageId):null;if(_e){const bt=JSON.parse(JSON.stringify(_e.tables));_e.tables=[],Z.tables.forEach(Zt=>{const ei=bt.find(ui=>ui.tableId===Zt.tableId)||null;_e.tables.push(ei||JSON.parse(JSON.stringify(Zt)))}),v.push(_e)}else v.push(JSON.parse(JSON.stringify(Z)))}),{...F,pageSettings:v}})),S0=(F,M)=>{if("payment-relayed"===F.type)if(M&&M.length>0)for(let v=0;v<M.length;v++){if(M[v].channelId?.toString()===F.fromChannelId&&(F.fromChannelAlias=M[v].alias?M[v].alias:F.fromChannelId,F.fromShortChannelId=M[v].shortChannelId?M[v].shortChannelId:"",F.toChannelAlias)||M[v].channelId?.toString()===F.toChannelId&&(F.toChannelAlias=M[v].alias?M[v].alias:F.toChannelId,F.toShortChannelId=M[v].shortChannelId?M[v].shortChannelId:"",F.fromChannelAlias))return F;v===M.length-1&&(F.fromChannelAlias||(F.fromChannelAlias=F.fromChannelId?.substring(0,17)+"...",F.fromShortChannelId=""),F.toChannelAlias||(F.toChannelAlias=F.toChannelId?.substring(0,17)+"...",F.toShortChannelId=""))}else F.fromChannelAlias=F.fromChannelId?.substring(0,17)+"...",F.fromShortChannelId="",F.toChannelAlias=F.toChannelId?.substring(0,17)+"...",F.toShortChannelId="";else if(F.type="trampoline-payment-relayed"){if(M&&M.length>0)for(let v=0;v<M.length;v++)F.incoming?.forEach(Z=>{M[v].channelId?.toString()===Z.channelId&&(Z.channelAlias=M[v].alias?M[v].alias:Z.channelId,Z.shortChannelId=M[v].shortChannelId?M[v].shortChannelId:"")}),F.outgoing?.forEach(Z=>{M[v].channelId?.toString()===Z.channelId&&(Z.channelAlias=M[v].alias?M[v].alias:Z.channelId,Z.shortChannelId=M[v].shortChannelId?M[v].shortChannelId:"")}),v===M.length-1&&(F.incoming&&F.incoming.length&&F.incoming.length>0&&!F.incoming[0].channelAlias&&F.incoming?.forEach(Z=>{Z.channelAlias=Z.channelId?.substring(0,17)+"...",Z.shortChannelId=""}),F.outgoing&&F.outgoing.length&&F.outgoing.length>0&&!F.outgoing[0].channelAlias&&F.outgoing?.forEach(Z=>{Z.channelAlias=Z.channelId?.substring(0,17)+"...",Z.shortChannelId=""}));else F.incoming?.forEach(v=>{v.channelAlias=v.channelId?.substring(0,17)+"...",v.shortChannelId=""}),F.outgoing?.forEach(v=>{v.channelAlias=v.channelId?.substring(0,17)+"...",v.shortChannelId=""});F.amountIn=F.incoming?.reduce((v,Z)=>v+Z.amount,0)||0,F.fromChannelId=F.incoming&&F.incoming.length?F.incoming[0].channelId:"",F.fromChannelAlias=F.incoming&&F.incoming.length?F.incoming[0].channelAlias:"",F.fromShortChannelId=F.incoming&&F.incoming.length?F.incoming[0].shortChannelId:"",F.amountOut=F.outgoing?.reduce((v,Z)=>v+Z.amount,0)||0,F.toChannelId=F.outgoing&&F.outgoing.length?F.outgoing[0].channelId:"",F.toChannelAlias=F.outgoing&&F.outgoing.length?F.outgoing[0].channelAlias:"",F.toShortChannelId=F.outgoing&&F.outgoing.length?F.outgoing[0].shortChannelId:""}return F};let D1=!1;(0,e.X6Q)()&&(D1=!0);class Zs{}Zs.\u0275fac=function(M){return new(M||Zs)},Zs.\u0275mod=e.oAB({type:Zs,bootstrap:[Yl]}),Zs.\u0275inj=e.cJS({providers:[{provide:br.TP,useClass:Rc,multi:!0},Ar.a1,lr.m,Ul.D,Uh.d,l1.W,Ft.v,ps],imports:[jo,d0.m,l0,Dn.xu,t.t6,yc.forRoot({idle:Pe.k_-10,timeout:10,ping:12e3}),ki.Aw.forRoot({root:Zh,lnd:C0,cln:l3,ecl:uc},{runtimeChecks:{strictStateImmutability:!1,strictActionImmutability:!1}}),Qa.sQ.forRoot([Ea.V,Gh.l,Bd.J,Rn.o]),D1?go.FT.instrument():[]]}),t.q6().bootstrapModule(Zs).catch(F=>console.error(F))},7854:(Ve,q)=>{"use strict";function p(ye){return Object.keys(ye).map(ce=>ye[ce])}var ye;Object.defineProperty(q,"__esModule",{value:!0}),(ye=q.HashAlgorithms||(q.HashAlgorithms={})).SHA1="sha1",ye.SHA256="sha256",ye.SHA512="sha512";const t=p(q.HashAlgorithms);!function(ye){ye.ASCII="ascii",ye.BASE64="base64",ye.HEX="hex",ye.LATIN1="latin1",ye.UTF8="utf8"}(q.KeyEncodings||(q.KeyEncodings={}));const e=p(q.KeyEncodings);!function(ye){ye.HOTP="hotp",ye.TOTP="totp"}(q.Strategy||(q.Strategy={}));const b=p(q.Strategy),I=()=>{throw new Error("Please provide an options.createDigest implementation.")};function s(ye){return/^(\d+)$/.test(ye)}function C(ye,ce,ve){return ye.length>=ce?ye:`${Array(ce+1).join(ve)}${ye}`.slice(-1*ce)}function h(ye){const ce=`otpauth://${ye.type}/{labelPrefix}:{accountName}?secret={secret}{query}`,ve=[];if(b.indexOf(ye.type)<0)throw new Error(`Expecting options.type to be one of ${b.join(", ")}. Received ${ye.type}.`);if("hotp"===ye.type){if(null==ye.counter||"number"!=typeof ye.counter)throw new Error('Expecting options.counter to be a number when options.type is "hotp".');ve.push(`&counter=${ye.counter}`)}return"totp"===ye.type&&ye.step&&ve.push(`&period=${ye.step}`),ye.digits&&ve.push(`&digits=${ye.digits}`),ye.algorithm&&ve.push(`&algorithm=${ye.algorithm.toUpperCase()}`),ye.issuer&&ve.push(`&issuer=${encodeURIComponent(ye.issuer)}`),ce.replace("{labelPrefix}",encodeURIComponent(ye.issuer||ye.accountName)).replace("{accountName}",encodeURIComponent(ye.accountName)).replace("{secret}",ye.secret).replace("{query}",ve.join(""))}class P{constructor(ce={}){this._defaultOptions=Object.freeze({...ce}),this._options=Object.freeze({})}create(ce={}){return new P(ce)}clone(ce={}){const ve=this.create({...this._defaultOptions,...ce});return ve.options=this._options,ve}get options(){return Object.freeze({...this._defaultOptions,...this._options})}set options(ce){this._options=Object.freeze({...this._options,...ce})}allOptions(){return this.options}resetOptions(){this._options=Object.freeze({})}}function d(ye){if("function"!=typeof ye.createDigest)throw new Error("Expecting options.createDigest to be a function.");if("function"!=typeof ye.createHmacKey)throw new Error("Expecting options.createHmacKey to be a function.");if("number"!=typeof ye.digits)throw new Error("Expecting options.digits to be a number.");if(!ye.algorithm||t.indexOf(ye.algorithm)<0)throw new Error(`Expecting options.algorithm to be one of ${t.join(", ")}. Received ${ye.algorithm}.`);if(!ye.encoding||e.indexOf(ye.encoding)<0)throw new Error(`Expecting options.encoding to be one of ${e.join(", ")}. Received ${ye.encoding}.`)}const S=(ye,ce,ve)=>Buffer.from(ce,ve).toString("hex");function w(){return{algorithm:q.HashAlgorithms.SHA1,createHmacKey:S,createDigest:I,digits:6,encoding:q.KeyEncodings.ASCII}}function O(ye){const ce={...w(),...ye};return d(ce),Object.freeze(ce)}function E(ye){return C(ye.toString(16),16,"0")}function R(ye,ce){const ve=Buffer.from(ye,"hex"),oe=15&ve[ve.length-1],Ae=((127&ve[oe])<<24|(255&ve[oe+1])<<16|(255&ve[oe+2])<<8|255&ve[oe+3])%Math.pow(10,ce);return C(String(Ae),ce,"0")}function U(ye,ce,ve){const oe=ve.digest||function z(ye,ce,ve){const oe=E(ce),je=ve.createHmacKey(ve.algorithm,ye,ve.encoding);return ve.createDigest(ve.algorithm,je,oe)}(ye,ce,ve);return R(oe,ve.digits)}function W(ye,ce,ve,oe){return!!s(ye)&&ye===U(ce,ve,oe)}function K(ye,ce,ve,oe,je){return h({algorithm:je.algorithm,digits:je.digits,type:q.Strategy.HOTP,accountName:ye,counter:oe,issuer:ce,secret:ve})}class ee extends P{create(ce={}){return new ee(ce)}allOptions(){return O(this.options)}generate(ce,ve){return U(ce,ve,this.allOptions())}check(ce,ve,oe){return W(ce,ve,oe,this.allOptions())}verify(ce){if("object"!=typeof ce)throw new Error("Expecting argument 0 of verify to be an object");return this.check(ce.token,ce.secret,ce.counter)}keyuri(ce,ve,oe,je){return K(ce,ve,oe,je,this.allOptions())}}function ie(ye){if("number"==typeof ye)return[Math.abs(ye),Math.abs(ye)];if(Array.isArray(ye)){const[ce,ve]=ye;if("number"==typeof ce&&"number"==typeof ve)return[Math.abs(ce),Math.abs(ve)]}throw new Error("Expecting options.window to be an number or [number, number].")}function ue(ye){if(d(ye),ie(ye.window),"number"!=typeof ye.epoch)throw new Error("Expecting options.epoch to be a number.");if("number"!=typeof ye.step)throw new Error("Expecting options.step to be a number.")}const le=(ye,ce,ve)=>{const oe=ye.length,je=Buffer.from(ye,ce).toString("hex");if(oe<ve){const Ae=new Array(ve-oe+1).join(je);return Buffer.from(Ae,"hex").slice(0,ve).toString("hex")}return je},ne=(ye,ce,ve)=>{switch(ye){case q.HashAlgorithms.SHA1:return le(ce,ve,20);case q.HashAlgorithms.SHA256:return le(ce,ve,32);case q.HashAlgorithms.SHA512:return le(ce,ve,64);default:throw new Error(`Expecting algorithm to be one of ${t.join(", ")}. Received ${ye}.`)}};function de(){return{algorithm:q.HashAlgorithms.SHA1,createDigest:I,createHmacKey:ne,digits:6,encoding:q.KeyEncodings.ASCII,epoch:Date.now(),step:30,window:0}}function $(ye){const ce={...de(),...ye};return ue(ce),Object.freeze(ce)}function me(ye,ce){return Math.floor(ye/ce/1e3)}function A(ye,ce){return U(ye,me(ce.epoch,ce.step),ce)}function i(ye,ce,ve,oe){const je=[];if(0===oe)return je;for(let Ae=1;Ae<=oe;Ae++)je.push(ye+ce*Ae*ve);return je}function a(ye,ce,ve){const oe=ie(ve),je=1e3*ce;return{current:ye,past:i(ye,-1,je,oe[0]),future:i(ye,1,je,oe[1])}}function u(ye,ce,ve){return!!s(ye)&&ye===A(ce,ve)}function l(ye,ce,ve,oe){let je=null;return ye.some((Ae,he)=>!!u(ce,ve,{...oe,epoch:Ae})&&(je=he+1,!0)),je}function y(ye,ce,ve){if(u(ye,ce,ve))return 0;const oe=a(ve.epoch,ve.step,ve.window),je=l(oe.past,ye,ce,ve);return null!==je?-1*je:l(oe.future,ye,ce,ve)}function T(ye,ce){return Math.floor(ye/1e3)%ce}function L(ye,ce){return ce-T(ye,ce)}function m(ye,ce,ve,oe){return h({algorithm:oe.algorithm,digits:oe.digits,step:oe.step,type:q.Strategy.TOTP,accountName:ye,issuer:ce,secret:ve})}class n extends ee{create(ce={}){return new n(ce)}allOptions(){return $(this.options)}generate(ce){return A(ce,this.allOptions())}checkDelta(ce,ve){return y(ce,ve,this.allOptions())}check(ce,ve){return"number"==typeof this.checkDelta(ce,ve)}verify(ce){if("object"!=typeof ce)throw new Error("Expecting argument 0 of verify to be an object");return this.check(ce.token,ce.secret)}timeRemaining(){const ce=this.allOptions();return L(ce.epoch,ce.step)}timeUsed(){const ce=this.allOptions();return T(ce.epoch,ce.step)}keyuri(ce,ve,oe){return m(ce,ve,oe,this.allOptions())}}function _(ye){if(ue(ye),"function"!=typeof ye.keyDecoder)throw new Error("Expecting options.keyDecoder to be a function.");if(ye.keyEncoder&&"function"!=typeof ye.keyEncoder)throw new Error("Expecting options.keyEncoder to be a function.")}function B(){return{algorithm:q.HashAlgorithms.SHA1,createDigest:I,createHmacKey:ne,digits:6,encoding:q.KeyEncodings.HEX,epoch:Date.now(),step:30,window:0}}function V(ye){const ce={...B(),...ye};return _(ce),Object.freeze(ce)}function X(ye,ce){return ce.keyEncoder(ye,ce.encoding)}function Le(ye,ce){return ce.keyDecoder(ye,ce.encoding)}function $e(ye,ce){return X(ce.createRandomBytes(ye,ce.encoding),ce)}function We(ye,ce){return A(Le(ye,ce),ce)}function Fe(ye,ce,ve){return y(ye,Le(ce,ve),ve)}class De extends n{create(ce={}){return new De(ce)}allOptions(){return V(this.options)}generate(ce){return We(ce,this.allOptions())}checkDelta(ce,ve){return Fe(ce,ve,this.allOptions())}encode(ce){return X(ce,this.allOptions())}decode(ce){return Le(ce,this.allOptions())}generateSecret(ce=10){return $e(ce,this.allOptions())}}q.Authenticator=De,q.HASH_ALGORITHMS=t,q.HOTP=ee,q.KEY_ENCODINGS=e,q.OTP=P,q.STRATEGY=b,q.TOTP=n,q.authenticatorCheckWithWindow=Fe,q.authenticatorDecoder=Le,q.authenticatorDefaultOptions=B,q.authenticatorEncoder=X,q.authenticatorGenerateSecret=$e,q.authenticatorOptionValidator=_,q.authenticatorOptions=V,q.authenticatorToken=We,q.createDigestPlaceholder=I,q.hotpCheck=W,q.hotpCounter=E,q.hotpCreateHmacKey=S,q.hotpDefaultOptions=w,q.hotpDigestToToken=R,q.hotpKeyuri=K,q.hotpOptions=O,q.hotpOptionsValidator=d,q.hotpToken=U,q.isTokenValid=s,q.keyuri=h,q.objectValues=p,q.padStart=C,q.totpCheck=u,q.totpCheckByEpoch=l,q.totpCheckWithWindow=y,q.totpCounter=me,q.totpCreateHmacKey=ne,q.totpDefaultOptions=de,q.totpEpochAvailable=a,q.totpKeyuri=m,q.totpOptions=$,q.totpOptionsValidator=ue,q.totpPadSecret=le,q.totpTimeRemaining=L,q.totpTimeUsed=T,q.totpToken=A},6098:(Ve,q,p)=>{"use strict";Object.defineProperty(q,"__esModule",{value:!0});var e=function t(s){return s&&"object"==typeof s&&"default"in s?s.default:s}(p(1348));q.createDigest=(s,C,h)=>e.createHmac(s,Buffer.from(C,"hex")).update(Buffer.from(h,"hex")).digest().toString("hex"),q.createRandomBytes=(s,C)=>e.randomBytes(s).toString(C)},1415:(Ve,q,p)=>{"use strict";Object.defineProperty(q,"__esModule",{value:!0});var e=function t(s){return s&&"object"==typeof s&&"default"in s?s.default:s}(p(2167));q.keyDecoder=(s,C)=>e.decode(s).toString(C),q.keyEncoder=(s,C)=>e.encode(Buffer.from(s,C).toString("ascii")).toString().replace(/=/g,"")},842:(Ve,q,p)=>{"use strict";Object.defineProperty(q,"__esModule",{value:!0});var t=p(6098),e=p(1415),b=p(7854);const I=new b.HOTP({createDigest:t.createDigest}),s=new b.TOTP({createDigest:t.createDigest}),C=new b.Authenticator({createDigest:t.createDigest,createRandomBytes:t.createRandomBytes,keyDecoder:e.keyDecoder,keyEncoder:e.keyEncoder});q.authenticator=C,q.hotp=I,q.totp=s},7977:(Ve,q,p)=>{"use strict";const t=q;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:(Ve,q,p)=>{"use strict";const t=p(1131),e=p(196),b=p(3894);function s(C,h){this.name=C,this.body=h,this.decoders={},this.encoders={}}q.define=function(h,P){return new s(h,P)},s.prototype._createNamed=function(h){const P=this.name;function d(S){this._initNamed(S,P)}return b(d,h),d.prototype._initNamed=function(w,O){h.call(this,w,O)},new d(this)},s.prototype._getDecoder=function(h){return this.decoders.hasOwnProperty(h=h||"der")||(this.decoders[h]=this._createNamed(e[h])),this.decoders[h]},s.prototype.decode=function(h,P,d){return this._getDecoder(P).decode(h,d)},s.prototype._getEncoder=function(h){return this.encoders.hasOwnProperty(h=h||"der")||(this.encoders[h]=this._createNamed(t[h])),this.encoders[h]},s.prototype.encode=function(h,P,d){return this._getEncoder(P).encode(h,d)}},2769:(Ve,q,p)=>{"use strict";const t=p(3894),e=p(4919).b,b=p(2038).Buffer;function I(C,h){e.call(this,h),b.isBuffer(C)?(this.base=C,this.offset=0,this.length=C.length):this.error("Input not Buffer")}function s(C,h){if(Array.isArray(C))this.length=0,this.value=C.map(function(P){return s.isEncoderBuffer(P)||(P=new s(P,h)),this.length+=P.length,P},this);else if("number"==typeof C){if(!(0<=C&&C<=255))return h.error("non-byte EncoderBuffer value");this.value=C,this.length=1}else if("string"==typeof C)this.value=C,this.length=b.byteLength(C);else{if(!b.isBuffer(C))return h.error("Unsupported type: "+typeof C);this.value=C,this.length=C.length}}t(I,e),q.C=I,I.isDecoderBuffer=function(h){return h instanceof I||"object"==typeof h&&b.isBuffer(h.base)&&"DecoderBuffer"===h.constructor.name&&"number"==typeof h.offset&&"number"==typeof h.length&&"function"==typeof h.save&&"function"==typeof h.restore&&"function"==typeof h.isEmpty&&"function"==typeof h.readUInt8&&"function"==typeof h.skip&&"function"==typeof h.raw},I.prototype.save=function(){return{offset:this.offset,reporter:e.prototype.save.call(this)}},I.prototype.restore=function(h){const P=new I(this.base);return P.offset=h.offset,P.length=this.offset,this.offset=h.offset,e.prototype.restore.call(this,h.reporter),P},I.prototype.isEmpty=function(){return this.offset===this.length},I.prototype.readUInt8=function(h){return this.offset+1<=this.length?this.base.readUInt8(this.offset++,!0):this.error(h||"DecoderBuffer overrun")},I.prototype.skip=function(h,P){if(!(this.offset+h<=this.length))return this.error(P||"DecoderBuffer overrun");const d=new I(this.base);return d._reporterState=this._reporterState,d.offset=this.offset,d.length=this.offset+h,this.offset+=h,d},I.prototype.raw=function(h){return this.base.slice(h?h.offset:this.offset,this.length)},q.R=s,s.isEncoderBuffer=function(h){return h instanceof s||"object"==typeof h&&"EncoderBuffer"===h.constructor.name&&"number"==typeof h.length&&"function"==typeof h.join},s.prototype.join=function(h,P){return h||(h=b.alloc(this.length)),P||(P=0),0===this.length||(Array.isArray(this.value)?this.value.forEach(function(d){d.join(h,P),P+=d.length}):("number"==typeof this.value?h[P]=this.value:"string"==typeof this.value?h.write(this.value,P):b.isBuffer(this.value)&&this.value.copy(h,P),P+=this.length)),h}},7813:(Ve,q,p)=>{"use strict";const t=q;t.Reporter=p(4919).b,t.DecoderBuffer=p(2769).C,t.EncoderBuffer=p(2769).R,t.Node=p(1430)},1430:(Ve,q,p)=>{"use strict";const t=p(4919).b,e=p(2769).R,b=p(2769).C,I=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"],C=["key","obj","use","optional","explicit","implicit","def","choice","any","contains"].concat(s);function P(S,w,O){const E={};this._baseState=E,E.name=O,E.enc=S,E.parent=w||null,E.children=null,E.tag=null,E.args=null,E.reverseArgs=null,E.choice=null,E.optional=!1,E.any=!1,E.obj=!1,E.use=null,E.useDecoder=null,E.key=null,E.default=null,E.explicit=null,E.implicit=null,E.contains=null,E.parent||(E.children=[],this._wrap())}Ve.exports=P;const d=["enc","parent","children","tag","args","reverseArgs","choice","optional","any","obj","use","alteredUse","key","default","explicit","implicit","contains"];P.prototype.clone=function(){const w=this._baseState,O={};d.forEach(function(R){O[R]=w[R]});const E=new this.constructor(O.parent);return E._baseState=O,E},P.prototype._wrap=function(){const w=this._baseState;C.forEach(function(O){this[O]=function(){const R=new this.constructor(this);return w.children.push(R),R[O].apply(R,arguments)}},this)},P.prototype._init=function(w){const O=this._baseState;I(null===O.parent),w.call(this),O.children=O.children.filter(function(E){return E._baseState.parent===this},this),I.equal(O.children.length,1,"Root node can have only one child")},P.prototype._useArgs=function(w){const O=this._baseState,E=w.filter(function(R){return R instanceof this.constructor},this);w=w.filter(function(R){return!(R instanceof this.constructor)},this),0!==E.length&&(I(null===O.children),O.children=E,E.forEach(function(R){R._baseState.parent=this},this)),0!==w.length&&(I(null===O.args),O.args=w,O.reverseArgs=w.map(function(R){if("object"!=typeof R||R.constructor!==Object)return R;const z={};return Object.keys(R).forEach(function(U){U==(0|U)&&(U|=0),z[R[U]]=U}),z}))},["_peekTag","_decodeTag","_use","_decodeStr","_decodeObjid","_decodeTime","_decodeNull","_decodeInt","_decodeBool","_decodeList","_encodeComposite","_encodeStr","_encodeObjid","_encodeTime","_encodeNull","_encodeInt","_encodeBool"].forEach(function(S){P.prototype[S]=function(){throw new Error(S+" not implemented for encoding: "+this._baseState.enc)}}),s.forEach(function(S){P.prototype[S]=function(){const O=this._baseState,E=Array.prototype.slice.call(arguments);return I(null===O.tag),O.tag=S,this._useArgs(E),this}}),P.prototype.use=function(w){I(w);const O=this._baseState;return I(null===O.use),O.use=w,this},P.prototype.optional=function(){return this._baseState.optional=!0,this},P.prototype.def=function(w){const O=this._baseState;return I(null===O.default),O.default=w,O.optional=!0,this},P.prototype.explicit=function(w){const O=this._baseState;return I(null===O.explicit&&null===O.implicit),O.explicit=w,this},P.prototype.implicit=function(w){const O=this._baseState;return I(null===O.explicit&&null===O.implicit),O.implicit=w,this},P.prototype.obj=function(){const w=this._baseState,O=Array.prototype.slice.call(arguments);return w.obj=!0,0!==O.length&&this._useArgs(O),this},P.prototype.key=function(w){const O=this._baseState;return I(null===O.key),O.key=w,this},P.prototype.any=function(){return this._baseState.any=!0,this},P.prototype.choice=function(w){const O=this._baseState;return I(null===O.choice),O.choice=w,this._useArgs(Object.keys(w).map(function(E){return w[E]})),this},P.prototype.contains=function(w){const O=this._baseState;return I(null===O.use),O.contains=w,this},P.prototype._decode=function(w,O){const E=this._baseState;if(null===E.parent)return w.wrapResult(E.children[0]._decode(w,O));let W,R=E.default,z=!0,U=null;if(null!==E.key&&(U=w.enterKey(E.key)),E.optional){let K=null;if(null!==E.explicit?K=E.explicit:null!==E.implicit?K=E.implicit:null!==E.tag&&(K=E.tag),null!==K||E.any){if(z=this._peekTag(w,K,E.any),w.isError(z))return z}else{const ee=w.save();try{null===E.choice?this._decodeGeneric(E.tag,w,O):this._decodeChoice(w,O),z=!0}catch{z=!1}w.restore(ee)}}if(E.obj&&z&&(W=w.enterObject()),z){if(null!==E.explicit){const ee=this._decodeTag(w,E.explicit);if(w.isError(ee))return ee;w=ee}const K=w.offset;if(null===E.use&&null===E.choice){let ee;E.any&&(ee=w.save());const ie=this._decodeTag(w,null!==E.implicit?E.implicit:E.tag,E.any);if(w.isError(ie))return ie;E.any?R=w.raw(ee):w=ie}if(O&&O.track&&null!==E.tag&&O.track(w.path(),K,w.length,"tagged"),O&&O.track&&null!==E.tag&&O.track(w.path(),w.offset,w.length,"content"),E.any||(R=null===E.choice?this._decodeGeneric(E.tag,w,O):this._decodeChoice(w,O)),w.isError(R))return R;if(!E.any&&null===E.choice&&null!==E.children&&E.children.forEach(function(ie){ie._decode(w,O)}),E.contains&&("octstr"===E.tag||"bitstr"===E.tag)){const ee=new b(R);R=this._getUse(E.contains,w._reporterState.obj)._decode(ee,O)}}return E.obj&&z&&(R=w.leaveObject(W)),null===E.key||null===R&&!0!==z?null!==U&&w.exitKey(U):w.leaveKey(U,E.key,R),R},P.prototype._decodeGeneric=function(w,O,E){const R=this._baseState;return"seq"===w||"set"===w?null:"seqof"===w||"setof"===w?this._decodeList(O,w,R.args[0],E):/str$/.test(w)?this._decodeStr(O,w,E):"objid"===w&&R.args?this._decodeObjid(O,R.args[0],R.args[1],E):"objid"===w?this._decodeObjid(O,null,null,E):"gentime"===w||"utctime"===w?this._decodeTime(O,w,E):"null_"===w?this._decodeNull(O,E):"bool"===w?this._decodeBool(O,E):"objDesc"===w?this._decodeStr(O,w,E):"int"===w||"enum"===w?this._decodeInt(O,R.args&&R.args[0],E):null!==R.use?this._getUse(R.use,O._reporterState.obj)._decode(O,E):O.error("unknown tag: "+w)},P.prototype._getUse=function(w,O){const E=this._baseState;return E.useDecoder=this._use(w,O),I(null===E.useDecoder._baseState.parent),E.useDecoder=E.useDecoder._baseState.children[0],E.implicit!==E.useDecoder._baseState.implicit&&(E.useDecoder=E.useDecoder.clone(),E.useDecoder._baseState.implicit=E.implicit),E.useDecoder},P.prototype._decodeChoice=function(w,O){const E=this._baseState;let R=null,z=!1;return Object.keys(E.choice).some(function(U){const W=w.save(),K=E.choice[U];try{const ee=K._decode(w,O);if(w.isError(ee))return!1;R={type:U,value:ee},z=!0}catch{return w.restore(W),!1}return!0},this),z?R:w.error("Choice not matched")},P.prototype._createEncoderBuffer=function(w){return new e(w,this.reporter)},P.prototype._encode=function(w,O,E){const R=this._baseState;if(null!==R.default&&R.default===w)return;const z=this._encodeValue(w,O,E);return void 0===z||this._skipDefault(z,O,E)?void 0:z},P.prototype._encodeValue=function(w,O,E){const R=this._baseState;if(null===R.parent)return R.children[0]._encode(w,O||new t);let z=null;if(this.reporter=O,R.optional&&void 0===w){if(null===R.default)return;w=R.default}let U=null,W=!1;if(R.any)z=this._createEncoderBuffer(w);else if(R.choice)z=this._encodeChoice(w,O);else if(R.contains)U=this._getUse(R.contains,E)._encode(w,O),W=!0;else if(R.children)U=R.children.map(function(K){if("null_"===K._baseState.tag)return K._encode(null,O,w);if(null===K._baseState.key)return O.error("Child should have a key");const ee=O.enterKey(K._baseState.key);if("object"!=typeof w)return O.error("Child expected, but input is not object");const ie=K._encode(w[K._baseState.key],O,w);return O.leaveKey(ee),ie},this).filter(function(K){return K}),U=this._createEncoderBuffer(U);else if("seqof"===R.tag||"setof"===R.tag){if(!R.args||1!==R.args.length)return O.error("Too many args for : "+R.tag);if(!Array.isArray(w))return O.error("seqof/setof, but data is not Array");const K=this.clone();K._baseState.implicit=null,U=this._createEncoderBuffer(w.map(function(ee){return this._getUse(this._baseState.args[0],w)._encode(ee,O)},K))}else null!==R.use?z=this._getUse(R.use,E)._encode(w,O):(U=this._encodePrimitive(R.tag,w),W=!0);if(!R.any&&null===R.choice){const K=null!==R.implicit?R.implicit:R.tag,ee=null===R.implicit?"universal":"context";null===K?null===R.use&&O.error("Tag could be omitted only for .use()"):null===R.use&&(z=this._encodeComposite(K,W,ee,U))}return null!==R.explicit&&(z=this._encodeComposite(R.explicit,!1,"context",z)),z},P.prototype._encodeChoice=function(w,O){const E=this._baseState,R=E.choice[w.type];return R||I(!1,w.type+" not found in "+JSON.stringify(Object.keys(E.choice))),R._encode(w.value,O)},P.prototype._encodePrimitive=function(w,O){const E=this._baseState;if(/str$/.test(w))return this._encodeStr(O,w);if("objid"===w&&E.args)return this._encodeObjid(O,E.reverseArgs[0],E.args[1]);if("objid"===w)return this._encodeObjid(O,null,null);if("gentime"===w||"utctime"===w)return this._encodeTime(O,w);if("null_"===w)return this._encodeNull();if("int"===w||"enum"===w)return this._encodeInt(O,E.args&&E.reverseArgs[0]);if("bool"===w)return this._encodeBool(O);if("objDesc"===w)return this._encodeStr(O,w);throw new Error("Unsupported tag: "+w)},P.prototype._isNumstr=function(w){return/^[0-9 ]*$/.test(w)},P.prototype._isPrintstr=function(w){return/^[A-Za-z0-9 '()+,-./:=?]*$/.test(w)}},4919:(Ve,q,p)=>{"use strict";const t=p(3894);function e(I){this._reporterState={obj:null,path:[],options:I||{},errors:[]}}function b(I,s){this.path=I,this.rethrow(s)}q.b=e,e.prototype.isError=function(s){return s instanceof b},e.prototype.save=function(){const s=this._reporterState;return{obj:s.obj,pathLen:s.path.length}},e.prototype.restore=function(s){const C=this._reporterState;C.obj=s.obj,C.path=C.path.slice(0,s.pathLen)},e.prototype.enterKey=function(s){return this._reporterState.path.push(s)},e.prototype.exitKey=function(s){const C=this._reporterState;C.path=C.path.slice(0,s-1)},e.prototype.leaveKey=function(s,C,h){const P=this._reporterState;this.exitKey(s),null!==P.obj&&(P.obj[C]=h)},e.prototype.path=function(){return this._reporterState.path.join("/")},e.prototype.enterObject=function(){const s=this._reporterState,C=s.obj;return s.obj={},C},e.prototype.leaveObject=function(s){const C=this._reporterState,h=C.obj;return C.obj=s,h},e.prototype.error=function(s){let C;const h=this._reporterState,P=s instanceof b;if(C=P?s:new b(h.path.map(function(d){return"["+JSON.stringify(d)+"]"}).join(""),s.message||s,s.stack),!h.options.partial)throw C;return P||h.errors.push(C),C},e.prototype.wrapResult=function(s){const C=this._reporterState;return C.options.partial?{result:this.isError(s)?null:s,errors:C.errors}:s},t(b,Error),b.prototype.rethrow=function(s){if(this.message=s+" at: "+(this.path||"(shallow)"),Error.captureStackTrace&&Error.captureStackTrace(this,b),!this.stack)try{throw new Error(this.message)}catch(C){this.stack=C.stack}return this}},5496:(Ve,q)=>{"use strict";function p(t){const e={};return Object.keys(t).forEach(function(b){(0|b)==b&&(b|=0),e[t[b]]=b}),e}q.tagClass={0:"universal",1:"application",2:"context",3:"private"},q.tagClassByName=p(q.tagClass),q.tag={0:"end",1:"bool",2:"int",3:"bitstr",4:"octstr",5:"null_",6:"objid",7:"objDesc",8:"external",9:"real",10:"enum",11:"embed",12:"utf8str",13:"relativeOid",16:"seq",17:"set",18:"numstr",19:"printstr",20:"t61str",21:"videostr",22:"ia5str",23:"utctime",24:"gentime",25:"graphstr",26:"iso646str",27:"genstr",28:"unistr",29:"charstr",30:"bmpstr"},q.tagByName=p(q.tag)},5459:(Ve,q,p)=>{"use strict";const t=q;t._reverse=function(b){const I={};return Object.keys(b).forEach(function(s){(0|s)==s&&(s|=0),I[b[s]]=s}),I},t.der=p(5496)},7127:(Ve,q,p)=>{"use strict";const t=p(3894),e=p(3854),b=p(2769).C,I=p(1430),s=p(5496);function C(S){this.enc="der",this.name=S.name,this.entity=S,this.tree=new h,this.tree._init(S.body)}function h(S){I.call(this,"der",S)}function P(S,w){let O=S.readUInt8(w);if(S.isError(O))return O;const E=s.tagClass[O>>6],R=0==(32&O);if(31==(31&O)){let U=O;for(O=0;128==(128&U);){if(U=S.readUInt8(w),S.isError(U))return U;O<<=7,O|=127&U}}else O&=31;return{cls:E,primitive:R,tag:O,tagStr:s.tag[O]}}function d(S,w,O){let E=S.readUInt8(O);if(S.isError(E))return E;if(!w&&128===E)return null;if(!(128&E))return E;const R=127&E;if(R>4)return S.error("length octect is too long");E=0;for(let z=0;z<R;z++){E<<=8;const U=S.readUInt8(O);if(S.isError(U))return U;E|=U}return E}Ve.exports=C,C.prototype.decode=function(w,O){return b.isDecoderBuffer(w)||(w=new b(w,O)),this.tree._decode(w,O)},t(h,I),h.prototype._peekTag=function(w,O,E){if(w.isEmpty())return!1;const R=w.save(),z=P(w,'Failed to peek tag: "'+O+'"');return w.isError(z)?z:(w.restore(R),z.tag===O||z.tagStr===O||z.tagStr+"of"===O||E)},h.prototype._decodeTag=function(w,O,E){const R=P(w,'Failed to decode tag of "'+O+'"');if(w.isError(R))return R;let z=d(w,R.primitive,'Failed to get length of "'+O+'"');if(w.isError(z))return z;if(!E&&R.tag!==O&&R.tagStr!==O&&R.tagStr+"of"!==O)return w.error('Failed to match tag: "'+O+'"');if(R.primitive||null!==z)return w.skip(z,'Failed to match body of: "'+O+'"');const U=w.save(),W=this._skipUntilEnd(w,'Failed to skip indefinite length body: "'+this.tag+'"');return w.isError(W)?W:(z=w.offset-U.offset,w.restore(U),w.skip(z,'Failed to match body of: "'+O+'"'))},h.prototype._skipUntilEnd=function(w,O){for(;;){const E=P(w,O);if(w.isError(E))return E;const R=d(w,E.primitive,O);if(w.isError(R))return R;let z;if(z=E.primitive||null!==R?w.skip(R):this._skipUntilEnd(w,O),w.isError(z))return z;if("end"===E.tagStr)break}},h.prototype._decodeList=function(w,O,E,R){const z=[];for(;!w.isEmpty();){const U=this._peekTag(w,"end");if(w.isError(U))return U;const W=E.decode(w,"der",R);if(w.isError(W)&&U)break;z.push(W)}return z},h.prototype._decodeStr=function(w,O){if("bitstr"===O){const E=w.readUInt8();return w.isError(E)?E:{unused:E,data:w.raw()}}if("bmpstr"===O){const E=w.raw();if(E.length%2==1)return w.error("Decoding of string type: bmpstr length mismatch");let R="";for(let z=0;z<E.length/2;z++)R+=String.fromCharCode(E.readUInt16BE(2*z));return R}if("numstr"===O){const E=w.raw().toString("ascii");return this._isNumstr(E)?E:w.error("Decoding of string type: numstr unsupported characters")}if("octstr"===O)return w.raw();if("objDesc"===O)return w.raw();if("printstr"===O){const E=w.raw().toString("ascii");return this._isPrintstr(E)?E:w.error("Decoding of string type: printstr unsupported characters")}return/str$/.test(O)?w.raw().toString():w.error("Decoding of string type: "+O+" unsupported")},h.prototype._decodeObjid=function(w,O,E){let R;const z=[];let U=0,W=0;for(;!w.isEmpty();)W=w.readUInt8(),U<<=7,U|=127&W,128&W||(z.push(U),U=0);if(128&W&&z.push(U),R=E?z:[z[0]/40|0,z[0]%40].concat(z.slice(1)),O){let ie=O[R.join(" ")];void 0===ie&&(ie=O[R.join(".")]),void 0!==ie&&(R=ie)}return R},h.prototype._decodeTime=function(w,O){const E=w.raw().toString();let R,z,U,W,K,ee;if("gentime"===O)R=0|E.slice(0,4),z=0|E.slice(4,6),U=0|E.slice(6,8),W=0|E.slice(8,10),K=0|E.slice(10,12),ee=0|E.slice(12,14);else{if("utctime"!==O)return w.error("Decoding "+O+" time is not supported yet");R=0|E.slice(0,2),z=0|E.slice(2,4),U=0|E.slice(4,6),W=0|E.slice(6,8),K=0|E.slice(8,10),ee=0|E.slice(10,12),R=R<70?2e3+R:1900+R}return Date.UTC(R,z-1,U,W,K,ee,0)},h.prototype._decodeNull=function(){return null},h.prototype._decodeBool=function(w){const O=w.readUInt8();return w.isError(O)?O:0!==O},h.prototype._decodeInt=function(w,O){const E=w.raw();let R=new e(E);return O&&(R=O[R.toString(10)]||R),R},h.prototype._use=function(w,O){return"function"==typeof w&&(w=w(O)),w._getDecoder("der").tree}},196:(Ve,q,p)=>{"use strict";const t=q;t.der=p(7127),t.pem=p(9617)},9617:(Ve,q,p)=>{"use strict";const t=p(3894),e=p(2038).Buffer,b=p(7127);function I(s){b.call(this,s),this.enc="pem"}t(I,b),Ve.exports=I,I.prototype.decode=function(C,h){const P=C.toString().split(/[\r\n]+/g),d=h.label.toUpperCase(),S=/^-----(BEGIN|END) ([^-]+)-----$/;let w=-1,O=-1;for(let z=0;z<P.length;z++){const U=P[z].match(S);if(null!==U&&U[2]===d){if(-1!==w){if("END"!==U[1])break;O=z;break}if("BEGIN"!==U[1])break;w=z}}if(-1===w||-1===O)throw new Error("PEM section not found for: "+d);const E=P.slice(w+1,O).join("");E.replace(/[^a-z0-9+/=]+/gi,"");const R=e.from(E,"base64");return b.prototype.decode.call(this,R,h)}},6374:(Ve,q,p)=>{"use strict";const t=p(3894),e=p(2038).Buffer,b=p(1430),I=p(5496);function s(d){this.enc="der",this.name=d.name,this.entity=d,this.tree=new C,this.tree._init(d.body)}function C(d){b.call(this,"der",d)}function h(d){return d<10?"0"+d:d}Ve.exports=s,s.prototype.encode=function(S,w){return this.tree._encode(S,w).join()},t(C,b),C.prototype._encodeComposite=function(S,w,O,E){const R=function P(d,S,w,O){let E;if("seqof"===d?d="seq":"setof"===d&&(d="set"),I.tagByName.hasOwnProperty(d))E=I.tagByName[d];else{if("number"!=typeof d||(0|d)!==d)return O.error("Unknown tag: "+d);E=d}return E>=31?O.error("Multi-octet tag encoding unsupported"):(S||(E|=32),E|=I.tagClassByName[w||"universal"]<<6,E)}(S,w,O,this.reporter);if(E.length<128){const W=e.alloc(2);return W[0]=R,W[1]=E.length,this._createEncoderBuffer([W,E])}let z=1;for(let W=E.length;W>=256;W>>=8)z++;const U=e.alloc(2+z);U[0]=R,U[1]=128|z;for(let W=1+z,K=E.length;K>0;W--,K>>=8)U[W]=255&K;return this._createEncoderBuffer([U,E])},C.prototype._encodeStr=function(S,w){if("bitstr"===w)return this._createEncoderBuffer([0|S.unused,S.data]);if("bmpstr"===w){const O=e.alloc(2*S.length);for(let E=0;E<S.length;E++)O.writeUInt16BE(S.charCodeAt(E),2*E);return this._createEncoderBuffer(O)}return"numstr"===w?this._isNumstr(S)?this._createEncoderBuffer(S):this.reporter.error("Encoding of string type: numstr supports only digits and space"):"printstr"===w?this._isPrintstr(S)?this._createEncoderBuffer(S):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(S):this.reporter.error("Encoding of string type: "+w+" unsupported")},C.prototype._encodeObjid=function(S,w,O){if("string"==typeof S){if(!w)return this.reporter.error("string objid given, but no values map found");if(!w.hasOwnProperty(S))return this.reporter.error("objid not found in values map");S=w[S].split(/[\s.]+/g);for(let U=0;U<S.length;U++)S[U]|=0}else if(Array.isArray(S)){S=S.slice();for(let U=0;U<S.length;U++)S[U]|=0}if(!Array.isArray(S))return this.reporter.error("objid() should be either array or string, got: "+JSON.stringify(S));if(!O){if(S[1]>=40)return this.reporter.error("Second objid identifier OOB");S.splice(0,2,40*S[0]+S[1])}let E=0;for(let U=0;U<S.length;U++){let W=S[U];for(E++;W>=128;W>>=7)E++}const R=e.alloc(E);let z=R.length-1;for(let U=S.length-1;U>=0;U--){let W=S[U];for(R[z--]=127&W;(W>>=7)>0;)R[z--]=128|127&W}return this._createEncoderBuffer(R)},C.prototype._encodeTime=function(S,w){let O;const E=new Date(S);return"gentime"===w?O=[h(E.getUTCFullYear()),h(E.getUTCMonth()+1),h(E.getUTCDate()),h(E.getUTCHours()),h(E.getUTCMinutes()),h(E.getUTCSeconds()),"Z"].join(""):"utctime"===w?O=[h(E.getUTCFullYear()%100),h(E.getUTCMonth()+1),h(E.getUTCDate()),h(E.getUTCHours()),h(E.getUTCMinutes()),h(E.getUTCSeconds()),"Z"].join(""):this.reporter.error("Encoding "+w+" time is not supported yet"),this._encodeStr(O,"octstr")},C.prototype._encodeNull=function(){return this._createEncoderBuffer("")},C.prototype._encodeInt=function(S,w){if("string"==typeof S){if(!w)return this.reporter.error("String int or enum given, but no values map");if(!w.hasOwnProperty(S))return this.reporter.error("Values map doesn't contain: "+JSON.stringify(S));S=w[S]}if("number"!=typeof S&&!e.isBuffer(S)){const R=S.toArray();!S.sign&&128&R[0]&&R.unshift(0),S=e.from(R)}if(e.isBuffer(S)){let R=S.length;0===S.length&&R++;const z=e.alloc(R);return S.copy(z),0===S.length&&(z[0]=0),this._createEncoderBuffer(z)}if(S<128)return this._createEncoderBuffer(S);if(S<256)return this._createEncoderBuffer([0,S]);let O=1;for(let R=S;R>=256;R>>=8)O++;const E=new Array(O);for(let R=E.length-1;R>=0;R--)E[R]=255&S,S>>=8;return 128&E[0]&&E.unshift(0),this._createEncoderBuffer(e.from(E))},C.prototype._encodeBool=function(S){return this._createEncoderBuffer(S?255:0)},C.prototype._use=function(S,w){return"function"==typeof S&&(S=S(w)),S._getEncoder("der").tree},C.prototype._skipDefault=function(S,w,O){const E=this._baseState;let R;if(null===E.default)return!1;const z=S.join();if(void 0===E.defaultBuffer&&(E.defaultBuffer=this._encodeValue(E.default,w,O).join()),z.length!==E.defaultBuffer.length)return!1;for(R=0;R<z.length;R++)if(z[R]!==E.defaultBuffer[R])return!1;return!0}},1131:(Ve,q,p)=>{"use strict";const t=q;t.der=p(6374),t.pem=p(3530)},3530:(Ve,q,p)=>{"use strict";const t=p(3894),e=p(6374);function b(I){e.call(this,I),this.enc="pem"}t(b,e),Ve.exports=b,b.prototype.encode=function(s,C){const P=e.prototype.encode.call(this,s).toString("base64"),d=["-----BEGIN "+C.label+"-----"];for(let S=0;S<P.length;S+=64)d.push(P.slice(S,S+64));return d.push("-----END "+C.label+"-----"),d.join("\n")}},3854:function(Ve,q,p){!function(t,e){"use strict";function b(A,i){if(!A)throw new Error(i||"Assertion failed")}function I(A,i){A.super_=i;var a=function(){};a.prototype=i.prototype,A.prototype=new a,A.prototype.constructor=A}function s(A,i,a){if(s.isBN(A))return A;this.negative=0,this.words=null,this.length=0,this.red=null,null!==A&&(("le"===i||"be"===i)&&(a=i,i=10),this._init(A||0,i||10,a||"be"))}var C;"object"==typeof t?t.exports=s:e.BN=s,s.BN=s,s.wordSize=26;try{C=typeof window<"u"&&typeof window.Buffer<"u"?window.Buffer:p(950).Buffer}catch{}function h(A,i){var a=A.charCodeAt(i);return a>=65&&a<=70?a-55:a>=97&&a<=102?a-87:a-48&15}function P(A,i,a){var u=h(A,a);return a-1>=i&&(u|=h(A,a-1)<<4),u}function d(A,i,a,u){for(var l=0,y=Math.min(A.length,a),T=i;T<y;T++){var L=A.charCodeAt(T)-48;l*=u,l+=L>=49?L-49+10:L>=17?L-17+10:L}return l}s.isBN=function(i){return i instanceof s||null!==i&&"object"==typeof i&&i.constructor.wordSize===s.wordSize&&Array.isArray(i.words)},s.max=function(i,a){return i.cmp(a)>0?i:a},s.min=function(i,a){return i.cmp(a)<0?i:a},s.prototype._init=function(i,a,u){if("number"==typeof i)return this._initNumber(i,a,u);if("object"==typeof i)return this._initArray(i,a,u);"hex"===a&&(a=16),b(a===(0|a)&&a>=2&&a<=36);var l=0;"-"===(i=i.toString().replace(/\s+/g,""))[0]&&(l++,this.negative=1),l<i.length&&(16===a?this._parseHex(i,l,u):(this._parseBase(i,a,l),"le"===u&&this._initArray(this.toArray(),a,u)))},s.prototype._initNumber=function(i,a,u){i<0&&(this.negative=1,i=-i),i<67108864?(this.words=[67108863&i],this.length=1):i<4503599627370496?(this.words=[67108863&i,i/67108864&67108863],this.length=2):(b(i<9007199254740992),this.words=[67108863&i,i/67108864&67108863,1],this.length=3),"le"===u&&this._initArray(this.toArray(),a,u)},s.prototype._initArray=function(i,a,u){if(b("number"==typeof i.length),i.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(i.length/3),this.words=new Array(this.length);for(var l=0;l<this.length;l++)this.words[l]=0;var y,T,L=0;if("be"===u)for(l=i.length-1,y=0;l>=0;l-=3)this.words[y]|=(T=i[l]|i[l-1]<<8|i[l-2]<<16)<<L&67108863,this.words[y+1]=T>>>26-L&67108863,(L+=24)>=26&&(L-=26,y++);else if("le"===u)for(l=0,y=0;l<i.length;l+=3)this.words[y]|=(T=i[l]|i[l+1]<<8|i[l+2]<<16)<<L&67108863,this.words[y+1]=T>>>26-L&67108863,(L+=24)>=26&&(L-=26,y++);return this.strip()},s.prototype._parseHex=function(i,a,u){this.length=Math.ceil((i.length-a)/6),this.words=new Array(this.length);for(var l=0;l<this.length;l++)this.words[l]=0;var L,y=0,T=0;if("be"===u)for(l=i.length-1;l>=a;l-=2)L=P(i,a,l)<<y,this.words[T]|=67108863&L,y>=18?(y-=18,this.words[T+=1]|=L>>>26):y+=8;else for(l=(i.length-a)%2==0?a+1:a;l<i.length;l+=2)L=P(i,a,l)<<y,this.words[T]|=67108863&L,y>=18?(y-=18,this.words[T+=1]|=L>>>26):y+=8;this.strip()},s.prototype._parseBase=function(i,a,u){this.words=[0],this.length=1;for(var l=0,y=1;y<=67108863;y*=a)l++;l--,y=y/a|0;for(var T=i.length-u,L=T%l,m=Math.min(T,T-L)+u,n=0,_=u;_<m;_+=l)n=d(i,_,_+l,a),this.imuln(y),this.words[0]+n<67108864?this.words[0]+=n:this._iaddn(n);if(0!==L){var B=1;for(n=d(i,_,i.length,a),_=0;_<L;_++)B*=a;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 a=0;a<this.length;a++)i.words[a]=this.words[a];i.length=this.length,i.negative=this.negative,i.red=this.red},s.prototype.clone=function(){var i=new s(null);return this.copy(i),i},s.prototype._expand=function(i){for(;this.length<i;)this.words[this.length++]=0;return this},s.prototype.strip=function(){for(;this.length>1&&0===this.words[this.length-1];)this.length--;return this._normSign()},s.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},s.prototype.inspect=function(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"};var S=["","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],O=[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 R(A,i,a){a.negative=i.negative^A.negative;var u=A.length+i.length|0;a.length=u,u=u-1|0;var l=0|A.words[0],y=0|i.words[0],T=l*y,m=T/67108864|0;a.words[0]=67108863&T;for(var n=1;n<u;n++){for(var _=m>>>26,B=67108863&m,V=Math.min(n,i.length-1),X=Math.max(0,n-A.length+1);X<=V;X++)_+=(T=(l=0|A.words[n-X|0])*(y=0|i.words[X])+B)/67108864|0,B=67108863&T;a.words[n]=0|B,m=0|_}return 0!==m?a.words[n]=0|m:a.length--,a.strip()}s.prototype.toString=function(i,a){var u;if(a=0|a||1,16===(i=i||10)||"hex"===i){u="";for(var l=0,y=0,T=0;T<this.length;T++){var L=this.words[T],m=(16777215&(L<<l|y)).toString(16);u=0!=(y=L>>>24-l&16777215)||T!==this.length-1?S[6-m.length]+m+u:m+u,(l+=2)>=26&&(l-=26,T--)}for(0!==y&&(u=y.toString(16)+u);u.length%a!=0;)u="0"+u;return 0!==this.negative&&(u="-"+u),u}if(i===(0|i)&&i>=2&&i<=36){var n=w[i],_=O[i];u="";var B=this.clone();for(B.negative=0;!B.isZero();){var V=B.modn(_).toString(i);u=(B=B.idivn(_)).isZero()?V+u:S[n-V.length]+V+u}for(this.isZero()&&(u="0"+u);u.length%a!=0;)u="0"+u;return 0!==this.negative&&(u="-"+u),u}b(!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&&b(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-i:i},s.prototype.toJSON=function(){return this.toString(16)},s.prototype.toBuffer=function(i,a){return b(typeof C<"u"),this.toArrayLike(C,i,a)},s.prototype.toArray=function(i,a){return this.toArrayLike(Array,i,a)},s.prototype.toArrayLike=function(i,a,u){var l=this.byteLength(),y=u||Math.max(1,l);b(l<=y,"byte array longer than desired length"),b(y>0,"Requested array length <= 0"),this.strip();var m,n,T="le"===a,L=new i(y),_=this.clone();if(T){for(n=0;!_.isZero();n++)m=_.andln(255),_.iushrn(8),L[n]=m;for(;n<y;n++)L[n]=0}else{for(n=0;n<y-l;n++)L[n]=0;for(n=0;!_.isZero();n++)m=_.andln(255),_.iushrn(8),L[y-n-1]=m}return L},s.prototype._countBits=Math.clz32?function(i){return 32-Math.clz32(i)}:function(i){var a=i,u=0;return a>=4096&&(u+=13,a>>>=13),a>=64&&(u+=7,a>>>=7),a>=8&&(u+=4,a>>>=4),a>=2&&(u+=2,a>>>=2),u+a},s.prototype._zeroBits=function(i){if(0===i)return 26;var a=i,u=0;return 8191&a||(u+=13,a>>>=13),127&a||(u+=7,a>>>=7),15&a||(u+=4,a>>>=4),3&a||(u+=2,a>>>=2),1&a||u++,u},s.prototype.bitLength=function(){var a=this._countBits(this.words[this.length-1]);return 26*(this.length-1)+a},s.prototype.zeroBits=function(){if(this.isZero())return 0;for(var i=0,a=0;a<this.length;a++){var u=this._zeroBits(this.words[a]);if(i+=u,26!==u)break}return i},s.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},s.prototype.toTwos=function(i){return 0!==this.negative?this.abs().inotn(i).iaddn(1):this.clone()},s.prototype.fromTwos=function(i){return this.testn(i-1)?this.notn(i).iaddn(1).ineg():this.clone()},s.prototype.isNeg=function(){return 0!==this.negative},s.prototype.neg=function(){return this.clone().ineg()},s.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},s.prototype.iuor=function(i){for(;this.length<i.length;)this.words[this.length++]=0;for(var a=0;a<i.length;a++)this.words[a]=this.words[a]|i.words[a];return this.strip()},s.prototype.ior=function(i){return b(0==(this.negative|i.negative)),this.iuor(i)},s.prototype.or=function(i){return this.length>i.length?this.clone().ior(i):i.clone().ior(this)},s.prototype.uor=function(i){return this.length>i.length?this.clone().iuor(i):i.clone().iuor(this)},s.prototype.iuand=function(i){var a;a=this.length>i.length?i:this;for(var u=0;u<a.length;u++)this.words[u]=this.words[u]&i.words[u];return this.length=a.length,this.strip()},s.prototype.iand=function(i){return b(0==(this.negative|i.negative)),this.iuand(i)},s.prototype.and=function(i){return this.length>i.length?this.clone().iand(i):i.clone().iand(this)},s.prototype.uand=function(i){return this.length>i.length?this.clone().iuand(i):i.clone().iuand(this)},s.prototype.iuxor=function(i){var a,u;this.length>i.length?(a=this,u=i):(a=i,u=this);for(var l=0;l<u.length;l++)this.words[l]=a.words[l]^u.words[l];if(this!==a)for(;l<a.length;l++)this.words[l]=a.words[l];return this.length=a.length,this.strip()},s.prototype.ixor=function(i){return b(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){b("number"==typeof i&&i>=0);var a=0|Math.ceil(i/26),u=i%26;this._expand(a),u>0&&a--;for(var l=0;l<a;l++)this.words[l]=67108863&~this.words[l];return u>0&&(this.words[l]=~this.words[l]&67108863>>26-u),this.strip()},s.prototype.notn=function(i){return this.clone().inotn(i)},s.prototype.setn=function(i,a){b("number"==typeof i&&i>=0);var u=i/26|0,l=i%26;return this._expand(u+1),this.words[u]=a?this.words[u]|1<<l:this.words[u]&~(1<<l),this.strip()},s.prototype.iadd=function(i){var a,u,l;if(0!==this.negative&&0===i.negative)return this.negative=0,a=this.isub(i),this.negative^=1,this._normSign();if(0===this.negative&&0!==i.negative)return i.negative=0,a=this.isub(i),i.negative=1,a._normSign();this.length>i.length?(u=this,l=i):(u=i,l=this);for(var y=0,T=0;T<l.length;T++)this.words[T]=67108863&(a=(0|u.words[T])+(0|l.words[T])+y),y=a>>>26;for(;0!==y&&T<u.length;T++)this.words[T]=67108863&(a=(0|u.words[T])+y),y=a>>>26;if(this.length=u.length,0!==y)this.words[this.length]=y,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 a;return 0!==i.negative&&0===this.negative?(i.negative=0,a=this.sub(i),i.negative^=1,a):0===i.negative&&0!==this.negative?(this.negative=0,a=i.sub(this),this.negative=1,a):this.length>i.length?this.clone().iadd(i):i.clone().iadd(this)},s.prototype.isub=function(i){if(0!==i.negative){i.negative=0;var a=this.iadd(i);return i.negative=1,a._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(i),this.negative=1,this._normSign();var l,y,u=this.cmp(i);if(0===u)return this.negative=0,this.length=1,this.words[0]=0,this;u>0?(l=this,y=i):(l=i,y=this);for(var T=0,L=0;L<y.length;L++)T=(a=(0|l.words[L])-(0|y.words[L])+T)>>26,this.words[L]=67108863&a;for(;0!==T&&L<l.length;L++)T=(a=(0|l.words[L])+T)>>26,this.words[L]=67108863&a;if(0===T&&L<l.length&&l!==this)for(;L<l.length;L++)this.words[L]=l.words[L];return this.length=Math.max(this.length,L),l!==this&&(this.negative=1),this.strip()},s.prototype.sub=function(i){return this.clone().isub(i)};var z=function(i,a,u){var m,n,_,l=i.words,y=a.words,T=u.words,L=0,B=0|l[0],V=8191&B,X=B>>>13,Le=0|l[1],$e=8191&Le,We=Le>>>13,Fe=0|l[2],De=8191&Fe,ye=Fe>>>13,ce=0|l[3],ve=8191&ce,oe=ce>>>13,je=0|l[4],Ae=8191&je,he=je>>>13,Ce=0|l[5],te=8191&Ce,Ue=Ce>>>13,Be=0|l[6],ae=8191&Be,ge=Be>>>13,ft=0|l[7],Je=8191&ft,dt=ft>>>13,Et=0|l[8],pt=8191&Et,ot=Et>>>13,wt=0|l[9],ke=8191&wt,Ke=wt>>>13,xt=0|y[0],Y=8191&xt,Re=xt>>>13,Tt=0|y[1],Qe=8191&Tt,Ye=Tt>>>13,Ht=0|y[2],Mt=8191&Ht,kt=Ht>>>13,_t=0|y[3],we=8191&_t,J=_t>>>13,be=0|y[4],He=8191&be,at=be>>>13,ii=0|y[5],Gt=8191&ii,ni=ii>>>13,ut=0|y[6],tt=8191&ut,vt=ut>>>13,ti=0|y[7],Ut=8191&ti,ht=ti>>>13,Rt=0|y[8],Oe=8191&Rt,et=Rt>>>13,it=0|y[9],ct=8191&it,Dt=it>>>13;u.negative=i.negative^a.negative,u.length=19;var pi=(L+(m=Math.imul(V,Y))|0)+((8191&(n=(n=Math.imul(V,Re))+Math.imul(X,Y)|0))<<13)|0;L=((_=Math.imul(X,Re))+(n>>>13)|0)+(pi>>>26)|0,pi&=67108863,m=Math.imul($e,Y),n=(n=Math.imul($e,Re))+Math.imul(We,Y)|0,_=Math.imul(We,Re);var Li=(L+(m=m+Math.imul(V,Qe)|0)|0)+((8191&(n=(n=n+Math.imul(V,Ye)|0)+Math.imul(X,Qe)|0))<<13)|0;L=((_=_+Math.imul(X,Ye)|0)+(n>>>13)|0)+(Li>>>26)|0,Li&=67108863,m=Math.imul(De,Y),n=(n=Math.imul(De,Re))+Math.imul(ye,Y)|0,_=Math.imul(ye,Re),m=m+Math.imul($e,Qe)|0,n=(n=n+Math.imul($e,Ye)|0)+Math.imul(We,Qe)|0,_=_+Math.imul(We,Ye)|0;var xi=(L+(m=m+Math.imul(V,Mt)|0)|0)+((8191&(n=(n=n+Math.imul(V,kt)|0)+Math.imul(X,Mt)|0))<<13)|0;L=((_=_+Math.imul(X,kt)|0)+(n>>>13)|0)+(xi>>>26)|0,xi&=67108863,m=Math.imul(ve,Y),n=(n=Math.imul(ve,Re))+Math.imul(oe,Y)|0,_=Math.imul(oe,Re),m=m+Math.imul(De,Qe)|0,n=(n=n+Math.imul(De,Ye)|0)+Math.imul(ye,Qe)|0,_=_+Math.imul(ye,Ye)|0,m=m+Math.imul($e,Mt)|0,n=(n=n+Math.imul($e,kt)|0)+Math.imul(We,Mt)|0,_=_+Math.imul(We,kt)|0;var Fi=(L+(m=m+Math.imul(V,we)|0)|0)+((8191&(n=(n=n+Math.imul(V,J)|0)+Math.imul(X,we)|0))<<13)|0;L=((_=_+Math.imul(X,J)|0)+(n>>>13)|0)+(Fi>>>26)|0,Fi&=67108863,m=Math.imul(Ae,Y),n=(n=Math.imul(Ae,Re))+Math.imul(he,Y)|0,_=Math.imul(he,Re),m=m+Math.imul(ve,Qe)|0,n=(n=n+Math.imul(ve,Ye)|0)+Math.imul(oe,Qe)|0,_=_+Math.imul(oe,Ye)|0,m=m+Math.imul(De,Mt)|0,n=(n=n+Math.imul(De,kt)|0)+Math.imul(ye,Mt)|0,_=_+Math.imul(ye,kt)|0,m=m+Math.imul($e,we)|0,n=(n=n+Math.imul($e,J)|0)+Math.imul(We,we)|0,_=_+Math.imul(We,J)|0;var qe=(L+(m=m+Math.imul(V,He)|0)|0)+((8191&(n=(n=n+Math.imul(V,at)|0)+Math.imul(X,He)|0))<<13)|0;L=((_=_+Math.imul(X,at)|0)+(n>>>13)|0)+(qe>>>26)|0,qe&=67108863,m=Math.imul(te,Y),n=(n=Math.imul(te,Re))+Math.imul(Ue,Y)|0,_=Math.imul(Ue,Re),m=m+Math.imul(Ae,Qe)|0,n=(n=n+Math.imul(Ae,Ye)|0)+Math.imul(he,Qe)|0,_=_+Math.imul(he,Ye)|0,m=m+Math.imul(ve,Mt)|0,n=(n=n+Math.imul(ve,kt)|0)+Math.imul(oe,Mt)|0,_=_+Math.imul(oe,kt)|0,m=m+Math.imul(De,we)|0,n=(n=n+Math.imul(De,J)|0)+Math.imul(ye,we)|0,_=_+Math.imul(ye,J)|0,m=m+Math.imul($e,He)|0,n=(n=n+Math.imul($e,at)|0)+Math.imul(We,He)|0,_=_+Math.imul(We,at)|0;var St=(L+(m=m+Math.imul(V,Gt)|0)|0)+((8191&(n=(n=n+Math.imul(V,ni)|0)+Math.imul(X,Gt)|0))<<13)|0;L=((_=_+Math.imul(X,ni)|0)+(n>>>13)|0)+(St>>>26)|0,St&=67108863,m=Math.imul(ae,Y),n=(n=Math.imul(ae,Re))+Math.imul(ge,Y)|0,_=Math.imul(ge,Re),m=m+Math.imul(te,Qe)|0,n=(n=n+Math.imul(te,Ye)|0)+Math.imul(Ue,Qe)|0,_=_+Math.imul(Ue,Ye)|0,m=m+Math.imul(Ae,Mt)|0,n=(n=n+Math.imul(Ae,kt)|0)+Math.imul(he,Mt)|0,_=_+Math.imul(he,kt)|0,m=m+Math.imul(ve,we)|0,n=(n=n+Math.imul(ve,J)|0)+Math.imul(oe,we)|0,_=_+Math.imul(oe,J)|0,m=m+Math.imul(De,He)|0,n=(n=n+Math.imul(De,at)|0)+Math.imul(ye,He)|0,_=_+Math.imul(ye,at)|0,m=m+Math.imul($e,Gt)|0,n=(n=n+Math.imul($e,ni)|0)+Math.imul(We,Gt)|0,_=_+Math.imul(We,ni)|0;var xe=(L+(m=m+Math.imul(V,tt)|0)|0)+((8191&(n=(n=n+Math.imul(V,vt)|0)+Math.imul(X,tt)|0))<<13)|0;L=((_=_+Math.imul(X,vt)|0)+(n>>>13)|0)+(xe>>>26)|0,xe&=67108863,m=Math.imul(Je,Y),n=(n=Math.imul(Je,Re))+Math.imul(dt,Y)|0,_=Math.imul(dt,Re),m=m+Math.imul(ae,Qe)|0,n=(n=n+Math.imul(ae,Ye)|0)+Math.imul(ge,Qe)|0,_=_+Math.imul(ge,Ye)|0,m=m+Math.imul(te,Mt)|0,n=(n=n+Math.imul(te,kt)|0)+Math.imul(Ue,Mt)|0,_=_+Math.imul(Ue,kt)|0,m=m+Math.imul(Ae,we)|0,n=(n=n+Math.imul(Ae,J)|0)+Math.imul(he,we)|0,_=_+Math.imul(he,J)|0,m=m+Math.imul(ve,He)|0,n=(n=n+Math.imul(ve,at)|0)+Math.imul(oe,He)|0,_=_+Math.imul(oe,at)|0,m=m+Math.imul(De,Gt)|0,n=(n=n+Math.imul(De,ni)|0)+Math.imul(ye,Gt)|0,_=_+Math.imul(ye,ni)|0,m=m+Math.imul($e,tt)|0,n=(n=n+Math.imul($e,vt)|0)+Math.imul(We,tt)|0,_=_+Math.imul(We,vt)|0;var Nt=(L+(m=m+Math.imul(V,Ut)|0)|0)+((8191&(n=(n=n+Math.imul(V,ht)|0)+Math.imul(X,Ut)|0))<<13)|0;L=((_=_+Math.imul(X,ht)|0)+(n>>>13)|0)+(Nt>>>26)|0,Nt&=67108863,m=Math.imul(pt,Y),n=(n=Math.imul(pt,Re))+Math.imul(ot,Y)|0,_=Math.imul(ot,Re),m=m+Math.imul(Je,Qe)|0,n=(n=n+Math.imul(Je,Ye)|0)+Math.imul(dt,Qe)|0,_=_+Math.imul(dt,Ye)|0,m=m+Math.imul(ae,Mt)|0,n=(n=n+Math.imul(ae,kt)|0)+Math.imul(ge,Mt)|0,_=_+Math.imul(ge,kt)|0,m=m+Math.imul(te,we)|0,n=(n=n+Math.imul(te,J)|0)+Math.imul(Ue,we)|0,_=_+Math.imul(Ue,J)|0,m=m+Math.imul(Ae,He)|0,n=(n=n+Math.imul(Ae,at)|0)+Math.imul(he,He)|0,_=_+Math.imul(he,at)|0,m=m+Math.imul(ve,Gt)|0,n=(n=n+Math.imul(ve,ni)|0)+Math.imul(oe,Gt)|0,_=_+Math.imul(oe,ni)|0,m=m+Math.imul(De,tt)|0,n=(n=n+Math.imul(De,vt)|0)+Math.imul(ye,tt)|0,_=_+Math.imul(ye,vt)|0,m=m+Math.imul($e,Ut)|0,n=(n=n+Math.imul($e,ht)|0)+Math.imul(We,Ut)|0,_=_+Math.imul(We,ht)|0;var qt=(L+(m=m+Math.imul(V,Oe)|0)|0)+((8191&(n=(n=n+Math.imul(V,et)|0)+Math.imul(X,Oe)|0))<<13)|0;L=((_=_+Math.imul(X,et)|0)+(n>>>13)|0)+(qt>>>26)|0,qt&=67108863,m=Math.imul(ke,Y),n=(n=Math.imul(ke,Re))+Math.imul(Ke,Y)|0,_=Math.imul(Ke,Re),m=m+Math.imul(pt,Qe)|0,n=(n=n+Math.imul(pt,Ye)|0)+Math.imul(ot,Qe)|0,_=_+Math.imul(ot,Ye)|0,m=m+Math.imul(Je,Mt)|0,n=(n=n+Math.imul(Je,kt)|0)+Math.imul(dt,Mt)|0,_=_+Math.imul(dt,kt)|0,m=m+Math.imul(ae,we)|0,n=(n=n+Math.imul(ae,J)|0)+Math.imul(ge,we)|0,_=_+Math.imul(ge,J)|0,m=m+Math.imul(te,He)|0,n=(n=n+Math.imul(te,at)|0)+Math.imul(Ue,He)|0,_=_+Math.imul(Ue,at)|0,m=m+Math.imul(Ae,Gt)|0,n=(n=n+Math.imul(Ae,ni)|0)+Math.imul(he,Gt)|0,_=_+Math.imul(he,ni)|0,m=m+Math.imul(ve,tt)|0,n=(n=n+Math.imul(ve,vt)|0)+Math.imul(oe,tt)|0,_=_+Math.imul(oe,vt)|0,m=m+Math.imul(De,Ut)|0,n=(n=n+Math.imul(De,ht)|0)+Math.imul(ye,Ut)|0,_=_+Math.imul(ye,ht)|0,m=m+Math.imul($e,Oe)|0,n=(n=n+Math.imul($e,et)|0)+Math.imul(We,Oe)|0,_=_+Math.imul(We,et)|0;var mi=(L+(m=m+Math.imul(V,ct)|0)|0)+((8191&(n=(n=n+Math.imul(V,Dt)|0)+Math.imul(X,ct)|0))<<13)|0;L=((_=_+Math.imul(X,Dt)|0)+(n>>>13)|0)+(mi>>>26)|0,mi&=67108863,m=Math.imul(ke,Qe),n=(n=Math.imul(ke,Ye))+Math.imul(Ke,Qe)|0,_=Math.imul(Ke,Ye),m=m+Math.imul(pt,Mt)|0,n=(n=n+Math.imul(pt,kt)|0)+Math.imul(ot,Mt)|0,_=_+Math.imul(ot,kt)|0,m=m+Math.imul(Je,we)|0,n=(n=n+Math.imul(Je,J)|0)+Math.imul(dt,we)|0,_=_+Math.imul(dt,J)|0,m=m+Math.imul(ae,He)|0,n=(n=n+Math.imul(ae,at)|0)+Math.imul(ge,He)|0,_=_+Math.imul(ge,at)|0,m=m+Math.imul(te,Gt)|0,n=(n=n+Math.imul(te,ni)|0)+Math.imul(Ue,Gt)|0,_=_+Math.imul(Ue,ni)|0,m=m+Math.imul(Ae,tt)|0,n=(n=n+Math.imul(Ae,vt)|0)+Math.imul(he,tt)|0,_=_+Math.imul(he,vt)|0,m=m+Math.imul(ve,Ut)|0,n=(n=n+Math.imul(ve,ht)|0)+Math.imul(oe,Ut)|0,_=_+Math.imul(oe,ht)|0,m=m+Math.imul(De,Oe)|0,n=(n=n+Math.imul(De,et)|0)+Math.imul(ye,Oe)|0,_=_+Math.imul(ye,et)|0;var Ci=(L+(m=m+Math.imul($e,ct)|0)|0)+((8191&(n=(n=n+Math.imul($e,Dt)|0)+Math.imul(We,ct)|0))<<13)|0;L=((_=_+Math.imul(We,Dt)|0)+(n>>>13)|0)+(Ci>>>26)|0,Ci&=67108863,m=Math.imul(ke,Mt),n=(n=Math.imul(ke,kt))+Math.imul(Ke,Mt)|0,_=Math.imul(Ke,kt),m=m+Math.imul(pt,we)|0,n=(n=n+Math.imul(pt,J)|0)+Math.imul(ot,we)|0,_=_+Math.imul(ot,J)|0,m=m+Math.imul(Je,He)|0,n=(n=n+Math.imul(Je,at)|0)+Math.imul(dt,He)|0,_=_+Math.imul(dt,at)|0,m=m+Math.imul(ae,Gt)|0,n=(n=n+Math.imul(ae,ni)|0)+Math.imul(ge,Gt)|0,_=_+Math.imul(ge,ni)|0,m=m+Math.imul(te,tt)|0,n=(n=n+Math.imul(te,vt)|0)+Math.imul(Ue,tt)|0,_=_+Math.imul(Ue,vt)|0,m=m+Math.imul(Ae,Ut)|0,n=(n=n+Math.imul(Ae,ht)|0)+Math.imul(he,Ut)|0,_=_+Math.imul(he,ht)|0,m=m+Math.imul(ve,Oe)|0,n=(n=n+Math.imul(ve,et)|0)+Math.imul(oe,Oe)|0,_=_+Math.imul(oe,et)|0;var Ii=(L+(m=m+Math.imul(De,ct)|0)|0)+((8191&(n=(n=n+Math.imul(De,Dt)|0)+Math.imul(ye,ct)|0))<<13)|0;L=((_=_+Math.imul(ye,Dt)|0)+(n>>>13)|0)+(Ii>>>26)|0,Ii&=67108863,m=Math.imul(ke,we),n=(n=Math.imul(ke,J))+Math.imul(Ke,we)|0,_=Math.imul(Ke,J),m=m+Math.imul(pt,He)|0,n=(n=n+Math.imul(pt,at)|0)+Math.imul(ot,He)|0,_=_+Math.imul(ot,at)|0,m=m+Math.imul(Je,Gt)|0,n=(n=n+Math.imul(Je,ni)|0)+Math.imul(dt,Gt)|0,_=_+Math.imul(dt,ni)|0,m=m+Math.imul(ae,tt)|0,n=(n=n+Math.imul(ae,vt)|0)+Math.imul(ge,tt)|0,_=_+Math.imul(ge,vt)|0,m=m+Math.imul(te,Ut)|0,n=(n=n+Math.imul(te,ht)|0)+Math.imul(Ue,Ut)|0,_=_+Math.imul(Ue,ht)|0,m=m+Math.imul(Ae,Oe)|0,n=(n=n+Math.imul(Ae,et)|0)+Math.imul(he,Oe)|0,_=_+Math.imul(he,et)|0;var Gi=(L+(m=m+Math.imul(ve,ct)|0)|0)+((8191&(n=(n=n+Math.imul(ve,Dt)|0)+Math.imul(oe,ct)|0))<<13)|0;L=((_=_+Math.imul(oe,Dt)|0)+(n>>>13)|0)+(Gi>>>26)|0,Gi&=67108863,m=Math.imul(ke,He),n=(n=Math.imul(ke,at))+Math.imul(Ke,He)|0,_=Math.imul(Ke,at),m=m+Math.imul(pt,Gt)|0,n=(n=n+Math.imul(pt,ni)|0)+Math.imul(ot,Gt)|0,_=_+Math.imul(ot,ni)|0,m=m+Math.imul(Je,tt)|0,n=(n=n+Math.imul(Je,vt)|0)+Math.imul(dt,tt)|0,_=_+Math.imul(dt,vt)|0,m=m+Math.imul(ae,Ut)|0,n=(n=n+Math.imul(ae,ht)|0)+Math.imul(ge,Ut)|0,_=_+Math.imul(ge,ht)|0,m=m+Math.imul(te,Oe)|0,n=(n=n+Math.imul(te,et)|0)+Math.imul(Ue,Oe)|0,_=_+Math.imul(Ue,et)|0;var Yi=(L+(m=m+Math.imul(Ae,ct)|0)|0)+((8191&(n=(n=n+Math.imul(Ae,Dt)|0)+Math.imul(he,ct)|0))<<13)|0;L=((_=_+Math.imul(he,Dt)|0)+(n>>>13)|0)+(Yi>>>26)|0,Yi&=67108863,m=Math.imul(ke,Gt),n=(n=Math.imul(ke,ni))+Math.imul(Ke,Gt)|0,_=Math.imul(Ke,ni),m=m+Math.imul(pt,tt)|0,n=(n=n+Math.imul(pt,vt)|0)+Math.imul(ot,tt)|0,_=_+Math.imul(ot,vt)|0,m=m+Math.imul(Je,Ut)|0,n=(n=n+Math.imul(Je,ht)|0)+Math.imul(dt,Ut)|0,_=_+Math.imul(dt,ht)|0,m=m+Math.imul(ae,Oe)|0,n=(n=n+Math.imul(ae,et)|0)+Math.imul(ge,Oe)|0,_=_+Math.imul(ge,et)|0;var Ji=(L+(m=m+Math.imul(te,ct)|0)|0)+((8191&(n=(n=n+Math.imul(te,Dt)|0)+Math.imul(Ue,ct)|0))<<13)|0;L=((_=_+Math.imul(Ue,Dt)|0)+(n>>>13)|0)+(Ji>>>26)|0,Ji&=67108863,m=Math.imul(ke,tt),n=(n=Math.imul(ke,vt))+Math.imul(Ke,tt)|0,_=Math.imul(Ke,vt),m=m+Math.imul(pt,Ut)|0,n=(n=n+Math.imul(pt,ht)|0)+Math.imul(ot,Ut)|0,_=_+Math.imul(ot,ht)|0,m=m+Math.imul(Je,Oe)|0,n=(n=n+Math.imul(Je,et)|0)+Math.imul(dt,Oe)|0,_=_+Math.imul(dt,et)|0;var Wt=(L+(m=m+Math.imul(ae,ct)|0)|0)+((8191&(n=(n=n+Math.imul(ae,Dt)|0)+Math.imul(ge,ct)|0))<<13)|0;L=((_=_+Math.imul(ge,Dt)|0)+(n>>>13)|0)+(Wt>>>26)|0,Wt&=67108863,m=Math.imul(ke,Ut),n=(n=Math.imul(ke,ht))+Math.imul(Ke,Ut)|0,_=Math.imul(Ke,ht),m=m+Math.imul(pt,Oe)|0,n=(n=n+Math.imul(pt,et)|0)+Math.imul(ot,Oe)|0,_=_+Math.imul(ot,et)|0;var Jt=(L+(m=m+Math.imul(Je,ct)|0)|0)+((8191&(n=(n=n+Math.imul(Je,Dt)|0)+Math.imul(dt,ct)|0))<<13)|0;L=((_=_+Math.imul(dt,Dt)|0)+(n>>>13)|0)+(Jt>>>26)|0,Jt&=67108863,m=Math.imul(ke,Oe),n=(n=Math.imul(ke,et))+Math.imul(Ke,Oe)|0,_=Math.imul(Ke,et);var fe=(L+(m=m+Math.imul(pt,ct)|0)|0)+((8191&(n=(n=n+Math.imul(pt,Dt)|0)+Math.imul(ot,ct)|0))<<13)|0;L=((_=_+Math.imul(ot,Dt)|0)+(n>>>13)|0)+(fe>>>26)|0,fe&=67108863;var lt=(L+(m=Math.imul(ke,ct))|0)+((8191&(n=(n=Math.imul(ke,Dt))+Math.imul(Ke,ct)|0))<<13)|0;return L=((_=Math.imul(Ke,Dt))+(n>>>13)|0)+(lt>>>26)|0,lt&=67108863,T[0]=pi,T[1]=Li,T[2]=xi,T[3]=Fi,T[4]=qe,T[5]=St,T[6]=xe,T[7]=Nt,T[8]=qt,T[9]=mi,T[10]=Ci,T[11]=Ii,T[12]=Gi,T[13]=Yi,T[14]=Ji,T[15]=Wt,T[16]=Jt,T[17]=fe,T[18]=lt,0!==L&&(T[19]=L,u.length++),u};function W(A,i,a){return(new K).mulp(A,i,a)}function K(A,i){this.x=A,this.y=i}Math.imul||(z=R),s.prototype.mulTo=function(i,a){var u,l=this.length+i.length;return u=10===this.length&&10===i.length?z(this,i,a):l<63?R(this,i,a):l<1024?function U(A,i,a){a.negative=i.negative^A.negative,a.length=A.length+i.length;for(var u=0,l=0,y=0;y<a.length-1;y++){var T=l;l=0;for(var L=67108863&u,m=Math.min(y,i.length-1),n=Math.max(0,y-A.length+1);n<=m;n++){var X=(0|A.words[y-n])*(0|i.words[n]),Le=67108863&X;L=67108863&(Le=Le+L|0),l+=(T=(T=T+(X/67108864|0)|0)+(Le>>>26)|0)>>>26,T&=67108863}a.words[y]=L,u=T,T=l}return 0!==u?a.words[y]=u:a.length--,a.strip()}(this,i,a):W(this,i,a),u},K.prototype.makeRBT=function(i){for(var a=new Array(i),u=s.prototype._countBits(i)-1,l=0;l<i;l++)a[l]=this.revBin(l,u,i);return a},K.prototype.revBin=function(i,a,u){if(0===i||i===u-1)return i;for(var l=0,y=0;y<a;y++)l|=(1&i)<<a-y-1,i>>=1;return l},K.prototype.permute=function(i,a,u,l,y,T){for(var L=0;L<T;L++)l[L]=a[i[L]],y[L]=u[i[L]]},K.prototype.transform=function(i,a,u,l,y,T){this.permute(T,i,a,u,l,y);for(var L=1;L<y;L<<=1)for(var m=L<<1,n=Math.cos(2*Math.PI/m),_=Math.sin(2*Math.PI/m),B=0;B<y;B+=m)for(var V=n,X=_,Le=0;Le<L;Le++){var $e=u[B+Le],We=l[B+Le],Fe=u[B+Le+L],De=l[B+Le+L],ye=V*Fe-X*De;De=V*De+X*Fe,u[B+Le]=$e+(Fe=ye),l[B+Le]=We+De,u[B+Le+L]=$e-Fe,l[B+Le+L]=We-De,Le!==m&&(ye=n*V-_*X,X=n*X+_*V,V=ye)}},K.prototype.guessLen13b=function(i,a){var u=1|Math.max(a,i),l=1&u,y=0;for(u=u/2|0;u;u>>>=1)y++;return 1<<y+1+l},K.prototype.conjugate=function(i,a,u){if(!(u<=1))for(var l=0;l<u/2;l++){var y=i[l];i[l]=i[u-l-1],i[u-l-1]=y,y=a[l],a[l]=-a[u-l-1],a[u-l-1]=-y}},K.prototype.normalize13b=function(i,a){for(var u=0,l=0;l<a/2;l++){var y=8192*Math.round(i[2*l+1]/a)+Math.round(i[2*l]/a)+u;i[l]=67108863&y,u=y<67108864?0:y/67108864|0}return i},K.prototype.convert13b=function(i,a,u,l){for(var y=0,T=0;T<a;T++)u[2*T]=8191&(y+=0|i[T]),u[2*T+1]=8191&(y>>>=13),y>>>=13;for(T=2*a;T<l;++T)u[T]=0;b(0===y),b(0==(-8192&y))},K.prototype.stub=function(i){for(var a=new Array(i),u=0;u<i;u++)a[u]=0;return a},K.prototype.mulp=function(i,a,u){var l=2*this.guessLen13b(i.length,a.length),y=this.makeRBT(l),T=this.stub(l),L=new Array(l),m=new Array(l),n=new Array(l),_=new Array(l),B=new Array(l),V=new Array(l),X=u.words;X.length=l,this.convert13b(i.words,i.length,L,l),this.convert13b(a.words,a.length,_,l),this.transform(L,T,m,n,l,y),this.transform(_,T,B,V,l,y);for(var Le=0;Le<l;Le++){var $e=m[Le]*B[Le]-n[Le]*V[Le];n[Le]=m[Le]*V[Le]+n[Le]*B[Le],m[Le]=$e}return this.conjugate(m,n,l),this.transform(m,n,X,T,l,y),this.conjugate(X,T,l),this.normalize13b(X,l),u.negative=i.negative^a.negative,u.length=i.length+a.length,u.strip()},s.prototype.mul=function(i){var a=new s(null);return a.words=new Array(this.length+i.length),this.mulTo(i,a)},s.prototype.mulf=function(i){var a=new s(null);return a.words=new Array(this.length+i.length),W(this,i,a)},s.prototype.imul=function(i){return this.clone().mulTo(i,this)},s.prototype.imuln=function(i){b("number"==typeof i),b(i<67108864);for(var a=0,u=0;u<this.length;u++){var l=(0|this.words[u])*i,y=(67108863&l)+(67108863&a);a>>=26,a+=l/67108864|0,a+=y>>>26,this.words[u]=67108863&y}return 0!==a&&(this.words[u]=a,this.length++),this},s.prototype.muln=function(i){return this.clone().imuln(i)},s.prototype.sqr=function(){return this.mul(this)},s.prototype.isqr=function(){return this.imul(this.clone())},s.prototype.pow=function(i){var a=function E(A){for(var i=new Array(A.bitLength()),a=0;a<i.length;a++){var l=a%26;i[a]=(A.words[a/26|0]&1<<l)>>>l}return i}(i);if(0===a.length)return new s(1);for(var u=this,l=0;l<a.length&&0===a[l];l++,u=u.sqr());if(++l<a.length)for(var y=u.sqr();l<a.length;l++,y=y.sqr())0!==a[l]&&(u=u.mul(y));return u},s.prototype.iushln=function(i){b("number"==typeof i&&i>=0);var y,a=i%26,u=(i-a)/26,l=67108863>>>26-a<<26-a;if(0!==a){var T=0;for(y=0;y<this.length;y++){var L=this.words[y]&l;this.words[y]=(0|this.words[y])-L<<a|T,T=L>>>26-a}T&&(this.words[y]=T,this.length++)}if(0!==u){for(y=this.length-1;y>=0;y--)this.words[y+u]=this.words[y];for(y=0;y<u;y++)this.words[y]=0;this.length+=u}return this.strip()},s.prototype.ishln=function(i){return b(0===this.negative),this.iushln(i)},s.prototype.iushrn=function(i,a,u){var l;b("number"==typeof i&&i>=0),l=a?(a-a%26)/26:0;var y=i%26,T=Math.min((i-y)/26,this.length),L=67108863^67108863>>>y<<y,m=u;if(l-=T,l=Math.max(0,l),m){for(var n=0;n<T;n++)m.words[n]=this.words[n];m.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>=l);n--){var B=0|this.words[n];this.words[n]=_<<26-y|B>>>y,_=B&L}return m&&0!==_&&(m.words[m.length++]=_),0===this.length&&(this.words[0]=0,this.length=1),this.strip()},s.prototype.ishrn=function(i,a,u){return b(0===this.negative),this.iushrn(i,a,u)},s.prototype.shln=function(i){return this.clone().ishln(i)},s.prototype.ushln=function(i){return this.clone().iushln(i)},s.prototype.shrn=function(i){return this.clone().ishrn(i)},s.prototype.ushrn=function(i){return this.clone().iushrn(i)},s.prototype.testn=function(i){b("number"==typeof i&&i>=0);var a=i%26,u=(i-a)/26;return!(this.length<=u||!(this.words[u]&1<<a))},s.prototype.imaskn=function(i){b("number"==typeof i&&i>=0);var a=i%26,u=(i-a)/26;return b(0===this.negative,"imaskn works only with positive numbers"),this.length<=u?this:(0!==a&&u++,this.length=Math.min(u,this.length),0!==a&&(this.words[this.length-1]&=67108863^67108863>>>a<<a),this.strip())},s.prototype.maskn=function(i){return this.clone().imaskn(i)},s.prototype.iaddn=function(i){return b("number"==typeof i),b(i<67108864),i<0?this.isubn(-i):0!==this.negative?1===this.length&&(0|this.words[0])<i?(this.words[0]=i-(0|this.words[0]),this.negative=0,this):(this.negative=0,this.isubn(i),this.negative=1,this):this._iaddn(i)},s.prototype._iaddn=function(i){this.words[0]+=i;for(var a=0;a<this.length&&this.words[a]>=67108864;a++)this.words[a]-=67108864,a===this.length-1?this.words[a+1]=1:this.words[a+1]++;return this.length=Math.max(this.length,a+1),this},s.prototype.isubn=function(i){if(b("number"==typeof i),b(i<67108864),i<0)return this.iaddn(-i);if(0!==this.negative)return this.negative=0,this.iaddn(i),this.negative=1,this;if(this.words[0]-=i,1===this.length&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var a=0;a<this.length&&this.words[a]<0;a++)this.words[a]+=67108864,this.words[a+1]-=1;return this.strip()},s.prototype.addn=function(i){return this.clone().iaddn(i)},s.prototype.subn=function(i){return this.clone().isubn(i)},s.prototype.iabs=function(){return this.negative=0,this},s.prototype.abs=function(){return this.clone().iabs()},s.prototype._ishlnsubmul=function(i,a,u){var y;this._expand(i.length+u);var T,L=0;for(y=0;y<i.length;y++){T=(0|this.words[y+u])+L;var m=(0|i.words[y])*a;L=((T-=67108863&m)>>26)-(m/67108864|0),this.words[y+u]=67108863&T}for(;y<this.length-u;y++)L=(T=(0|this.words[y+u])+L)>>26,this.words[y+u]=67108863&T;if(0===L)return this.strip();for(b(-1===L),L=0,y=0;y<this.length;y++)L=(T=-(0|this.words[y])+L)>>26,this.words[y]=67108863&T;return this.negative=1,this.strip()},s.prototype._wordDiv=function(i,a){var u,l=this.clone(),y=i,T=0|y.words[y.length-1];0!=(u=26-this._countBits(T))&&(y=y.ushln(u),l.iushln(u),T=0|y.words[y.length-1]);var n,m=l.length-y.length;if("mod"!==a){(n=new s(null)).length=m+1,n.words=new Array(n.length);for(var _=0;_<n.length;_++)n.words[_]=0}var B=l.clone()._ishlnsubmul(y,1,m);0===B.negative&&(l=B,n&&(n.words[m]=1));for(var V=m-1;V>=0;V--){var X=67108864*(0|l.words[y.length+V])+(0|l.words[y.length+V-1]);for(X=Math.min(X/T|0,67108863),l._ishlnsubmul(y,X,V);0!==l.negative;)X--,l.negative=0,l._ishlnsubmul(y,1,V),l.isZero()||(l.negative^=1);n&&(n.words[V]=X)}return n&&n.strip(),l.strip(),"div"!==a&&0!==u&&l.iushrn(u),{div:n||null,mod:l}},s.prototype.divmod=function(i,a,u){return b(!i.isZero()),this.isZero()?{div:new s(0),mod:new s(0)}:0!==this.negative&&0===i.negative?(T=this.neg().divmod(i,a),"mod"!==a&&(l=T.div.neg()),"div"!==a&&(y=T.mod.neg(),u&&0!==y.negative&&y.iadd(i)),{div:l,mod:y}):0===this.negative&&0!==i.negative?(T=this.divmod(i.neg(),a),"mod"!==a&&(l=T.div.neg()),{div:l,mod:T.mod}):this.negative&i.negative?(T=this.neg().divmod(i.neg(),a),"div"!==a&&(y=T.mod.neg(),u&&0!==y.negative&&y.isub(i)),{div:T.div,mod:y}):i.length>this.length||this.cmp(i)<0?{div:new s(0),mod:this}:1===i.length?"div"===a?{div:this.divn(i.words[0]),mod:null}:"mod"===a?{div:null,mod:new s(this.modn(i.words[0]))}:{div:this.divn(i.words[0]),mod:new s(this.modn(i.words[0]))}:this._wordDiv(i,a);var l,y,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 a=this.divmod(i);if(a.mod.isZero())return a.div;var u=0!==a.div.negative?a.mod.isub(i):a.mod,l=i.ushrn(1),y=i.andln(1),T=u.cmp(l);return T<0||1===y&&0===T?a.div:0!==a.div.negative?a.div.isubn(1):a.div.iaddn(1)},s.prototype.modn=function(i){b(i<=67108863);for(var a=(1<<26)%i,u=0,l=this.length-1;l>=0;l--)u=(a*u+(0|this.words[l]))%i;return u},s.prototype.idivn=function(i){b(i<=67108863);for(var a=0,u=this.length-1;u>=0;u--){var l=(0|this.words[u])+67108864*a;this.words[u]=l/i|0,a=l%i}return this.strip()},s.prototype.divn=function(i){return this.clone().idivn(i)},s.prototype.egcd=function(i){b(0===i.negative),b(!i.isZero());var a=this,u=i.clone();a=0!==a.negative?a.umod(i):a.clone();for(var l=new s(1),y=new s(0),T=new s(0),L=new s(1),m=0;a.isEven()&&u.isEven();)a.iushrn(1),u.iushrn(1),++m;for(var n=u.clone(),_=a.clone();!a.isZero();){for(var B=0,V=1;!(a.words[0]&V)&&B<26;++B,V<<=1);if(B>0)for(a.iushrn(B);B-- >0;)(l.isOdd()||y.isOdd())&&(l.iadd(n),y.isub(_)),l.iushrn(1),y.iushrn(1);for(var X=0,Le=1;!(u.words[0]&Le)&&X<26;++X,Le<<=1);if(X>0)for(u.iushrn(X);X-- >0;)(T.isOdd()||L.isOdd())&&(T.iadd(n),L.isub(_)),T.iushrn(1),L.iushrn(1);a.cmp(u)>=0?(a.isub(u),l.isub(T),y.isub(L)):(u.isub(a),T.isub(l),L.isub(y))}return{a:T,b:L,gcd:u.iushln(m)}},s.prototype._invmp=function(i){b(0===i.negative),b(!i.isZero());var B,a=this,u=i.clone();a=0!==a.negative?a.umod(i):a.clone();for(var l=new s(1),y=new s(0),T=u.clone();a.cmpn(1)>0&&u.cmpn(1)>0;){for(var L=0,m=1;!(a.words[0]&m)&&L<26;++L,m<<=1);if(L>0)for(a.iushrn(L);L-- >0;)l.isOdd()&&l.iadd(T),l.iushrn(1);for(var n=0,_=1;!(u.words[0]&_)&&n<26;++n,_<<=1);if(n>0)for(u.iushrn(n);n-- >0;)y.isOdd()&&y.iadd(T),y.iushrn(1);a.cmp(u)>=0?(a.isub(u),l.isub(y)):(u.isub(a),y.isub(l))}return(B=0===a.cmpn(1)?l:y).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 a=this.clone(),u=i.clone();a.negative=0,u.negative=0;for(var l=0;a.isEven()&&u.isEven();l++)a.iushrn(1),u.iushrn(1);for(;;){for(;a.isEven();)a.iushrn(1);for(;u.isEven();)u.iushrn(1);var y=a.cmp(u);if(y<0){var T=a;a=u,u=T}else if(0===y||0===u.cmpn(1))break;a.isub(u)}return u.iushln(l)},s.prototype.invm=function(i){return this.egcd(i).a.umod(i)},s.prototype.isEven=function(){return 0==(1&this.words[0])},s.prototype.isOdd=function(){return 1==(1&this.words[0])},s.prototype.andln=function(i){return this.words[0]&i},s.prototype.bincn=function(i){b("number"==typeof i);var a=i%26,u=(i-a)/26,l=1<<a;if(this.length<=u)return this._expand(u+1),this.words[u]|=l,this;for(var y=l,T=u;0!==y&&T<this.length;T++){var L=0|this.words[T];y=(L+=y)>>>26,this.words[T]=L&=67108863}return 0!==y&&(this.words[T]=y,this.length++),this},s.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},s.prototype.cmpn=function(i){var u,a=i<0;if(0!==this.negative&&!a)return-1;if(0===this.negative&&a)return 1;if(this.strip(),this.length>1)u=1;else{a&&(i=-i),b(i<=67108863,"Number is too big");var l=0|this.words[0];u=l===i?0:l<i?-1:1}return 0!==this.negative?0|-u:u},s.prototype.cmp=function(i){if(0!==this.negative&&0===i.negative)return-1;if(0===this.negative&&0!==i.negative)return 1;var a=this.ucmp(i);return 0!==this.negative?0|-a:a},s.prototype.ucmp=function(i){if(this.length>i.length)return 1;if(this.length<i.length)return-1;for(var a=0,u=this.length-1;u>=0;u--){var l=0|this.words[u],y=0|i.words[u];if(l!==y){l<y?a=-1:l>y&&(a=1);break}}return a},s.prototype.gtn=function(i){return 1===this.cmpn(i)},s.prototype.gt=function(i){return 1===this.cmp(i)},s.prototype.gten=function(i){return this.cmpn(i)>=0},s.prototype.gte=function(i){return this.cmp(i)>=0},s.prototype.ltn=function(i){return-1===this.cmpn(i)},s.prototype.lt=function(i){return-1===this.cmp(i)},s.prototype.lten=function(i){return this.cmpn(i)<=0},s.prototype.lte=function(i){return this.cmp(i)<=0},s.prototype.eqn=function(i){return 0===this.cmpn(i)},s.prototype.eq=function(i){return 0===this.cmp(i)},s.red=function(i){return new $(i)},s.prototype.toRed=function(i){return b(!this.red,"Already a number in reduction context"),b(0===this.negative,"red works only with positives"),i.convertTo(this)._forceRed(i)},s.prototype.fromRed=function(){return b(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 b(!this.red,"Already a number in reduction context"),this._forceRed(i)},s.prototype.redAdd=function(i){return b(this.red,"redAdd works only with red numbers"),this.red.add(this,i)},s.prototype.redIAdd=function(i){return b(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,i)},s.prototype.redSub=function(i){return b(this.red,"redSub works only with red numbers"),this.red.sub(this,i)},s.prototype.redISub=function(i){return b(this.red,"redISub works only with red numbers"),this.red.isub(this,i)},s.prototype.redShl=function(i){return b(this.red,"redShl works only with red numbers"),this.red.shl(this,i)},s.prototype.redMul=function(i){return b(this.red,"redMul works only with red numbers"),this.red._verify2(this,i),this.red.mul(this,i)},s.prototype.redIMul=function(i){return b(this.red,"redMul works only with red numbers"),this.red._verify2(this,i),this.red.imul(this,i)},s.prototype.redSqr=function(){return b(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},s.prototype.redISqr=function(){return b(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},s.prototype.redSqrt=function(){return b(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},s.prototype.redInvm=function(){return b(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},s.prototype.redNeg=function(){return b(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},s.prototype.redPow=function(i){return b(this.red&&!i.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,i)};var ee={k256:null,p224:null,p192:null,p25519:null};function ie(A,i){this.name=A,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 ue(){ie.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function le(){ie.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function ne(){ie.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function de(){ie.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function $(A){if("string"==typeof A){var i=s._prime(A);this.m=i.p,this.prime=i}else b(A.gtn(1),"modulus must be greater than 1"),this.m=A,this.prime=null}function me(A){$.call(this,A),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 i=new s(null);return i.words=new Array(Math.ceil(this.n/13)),i},ie.prototype.ireduce=function(i){var u,a=i;do{this.split(a,this.tmp),u=(a=(a=this.imulK(a)).iadd(this.tmp)).bitLength()}while(u>this.n);var l=u<this.n?-1:a.ucmp(this.p);return 0===l?(a.words[0]=0,a.length=1):l>0?a.isub(this.p):void 0!==a.strip?a.strip():a._strip(),a},ie.prototype.split=function(i,a){i.iushrn(this.n,0,a)},ie.prototype.imulK=function(i){return i.imul(this.k)},I(ue,ie),ue.prototype.split=function(i,a){for(var u=4194303,l=Math.min(i.length,9),y=0;y<l;y++)a.words[y]=i.words[y];if(a.length=l,i.length<=9)return i.words[0]=0,void(i.length=1);var T=i.words[9];for(a.words[a.length++]=T&u,y=10;y<i.length;y++){var L=0|i.words[y];i.words[y-10]=(L&u)<<4|T>>>22,T=L}i.words[y-10]=T>>>=22,i.length-=0===T&&i.length>10?10:9},ue.prototype.imulK=function(i){i.words[i.length]=0,i.words[i.length+1]=0,i.length+=2;for(var a=0,u=0;u<i.length;u++){var l=0|i.words[u];i.words[u]=67108863&(a+=977*l),a=64*l+(a/67108864|0)}return 0===i.words[i.length-1]&&(i.length--,0===i.words[i.length-1]&&i.length--),i},I(le,ie),I(ne,ie),I(de,ie),de.prototype.imulK=function(i){for(var a=0,u=0;u<i.length;u++){var l=19*(0|i.words[u])+a,y=67108863&l;l>>>=26,i.words[u]=y,a=l}return 0!==a&&(i.words[i.length++]=a),i},s._prime=function(i){if(ee[i])return ee[i];var a;if("k256"===i)a=new ue;else if("p224"===i)a=new le;else if("p192"===i)a=new ne;else{if("p25519"!==i)throw new Error("Unknown prime "+i);a=new de}return ee[i]=a,a},$.prototype._verify1=function(i){b(0===i.negative,"red works only with positives"),b(i.red,"red works only with red numbers")},$.prototype._verify2=function(i,a){b(0==(i.negative|a.negative),"red works only with positives"),b(i.red&&i.red===a.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,a){this._verify2(i,a);var u=i.add(a);return u.cmp(this.m)>=0&&u.isub(this.m),u._forceRed(this)},$.prototype.iadd=function(i,a){this._verify2(i,a);var u=i.iadd(a);return u.cmp(this.m)>=0&&u.isub(this.m),u},$.prototype.sub=function(i,a){this._verify2(i,a);var u=i.sub(a);return u.cmpn(0)<0&&u.iadd(this.m),u._forceRed(this)},$.prototype.isub=function(i,a){this._verify2(i,a);var u=i.isub(a);return u.cmpn(0)<0&&u.iadd(this.m),u},$.prototype.shl=function(i,a){return this._verify1(i),this.imod(i.ushln(a))},$.prototype.imul=function(i,a){return this._verify2(i,a),this.imod(i.imul(a))},$.prototype.mul=function(i,a){return this._verify2(i,a),this.imod(i.mul(a))},$.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 a=this.m.andln(3);if(b(a%2==1),3===a){var u=this.m.add(new s(1)).iushrn(2);return this.pow(i,u)}for(var l=this.m.subn(1),y=0;!l.isZero()&&0===l.andln(1);)y++,l.iushrn(1);b(!l.isZero());var T=new s(1).toRed(this),L=T.redNeg(),m=this.m.subn(1).iushrn(1),n=this.m.bitLength();for(n=new s(2*n*n).toRed(this);0!==this.pow(n,m).cmp(L);)n.redIAdd(L);for(var _=this.pow(n,l),B=this.pow(i,l.addn(1).iushrn(1)),V=this.pow(i,l),X=y;0!==V.cmp(T);){for(var Le=V,$e=0;0!==Le.cmp(T);$e++)Le=Le.redSqr();b($e<X);var We=this.pow(_,new s(1).iushln(X-$e-1));B=B.redMul(We),_=We.redSqr(),V=V.redMul(_),X=$e}return B},$.prototype.invm=function(i){var a=i._invmp(this.m);return 0!==a.negative?(a.negative=0,this.imod(a).redNeg()):this.imod(a)},$.prototype.pow=function(i,a){if(a.isZero())return new s(1).toRed(this);if(0===a.cmpn(1))return i.clone();var l=new Array(16);l[0]=new s(1).toRed(this),l[1]=i;for(var y=2;y<l.length;y++)l[y]=this.mul(l[y-1],i);var T=l[0],L=0,m=0,n=a.bitLength()%26;for(0===n&&(n=26),y=a.length-1;y>=0;y--){for(var _=a.words[y],B=n-1;B>=0;B--){var V=_>>B&1;T!==l[0]&&(T=this.sqr(T)),0!==V||0!==L?(L<<=1,L|=V,(4==++m||0===y&&0===B)&&(T=this.mul(T,l[L]),m=0,L=0)):m=0}n=26}return T},$.prototype.convertTo=function(i){var a=i.umod(this.m);return a===i?a.clone():a},$.prototype.convertFrom=function(i){var a=i.clone();return a.red=null,a},s.mont=function(i){return new me(i)},I(me,$),me.prototype.convertTo=function(i){return this.imod(i.ushln(this.shift))},me.prototype.convertFrom=function(i){var a=this.imod(i.mul(this.rinv));return a.red=null,a},me.prototype.imul=function(i,a){if(i.isZero()||a.isZero())return i.words[0]=0,i.length=1,i;var u=i.imul(a),l=u.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),y=u.isub(l).iushrn(this.shift),T=y;return y.cmp(this.m)>=0?T=y.isub(this.m):y.cmpn(0)<0&&(T=y.iadd(this.m)),T._forceRed(this)},me.prototype.mul=function(i,a){if(i.isZero()||a.isZero())return new s(0)._forceRed(this);var u=i.mul(a),l=u.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),y=u.isub(l).iushrn(this.shift),T=y;return y.cmp(this.m)>=0?T=y.isub(this.m):y.cmpn(0)<0&&(T=y.iadd(this.m)),T._forceRed(this)},me.prototype.invm=function(i){return this.imod(i._invmp(this.m).mul(this.r2))._forceRed(this)}}(Ve=p.nmd(Ve),this)},5343:(Ve,q)=>{"use strict";q.byteLength=function h(E){var R=C(E),U=R[1];return 3*(R[0]+U)/4-U},q.toByteArray=function d(E){var R,ue,z=C(E),U=z[0],W=z[1],K=new e(function P(E,R,z){return 3*(R+z)/4-z}(0,U,W)),ee=0,ie=W>0?U-4:U;for(ue=0;ue<ie;ue+=4)R=t[E.charCodeAt(ue)]<<18|t[E.charCodeAt(ue+1)]<<12|t[E.charCodeAt(ue+2)]<<6|t[E.charCodeAt(ue+3)],K[ee++]=R>>16&255,K[ee++]=R>>8&255,K[ee++]=255&R;return 2===W&&(R=t[E.charCodeAt(ue)]<<2|t[E.charCodeAt(ue+1)]>>4,K[ee++]=255&R),1===W&&(R=t[E.charCodeAt(ue)]<<10|t[E.charCodeAt(ue+1)]<<4|t[E.charCodeAt(ue+2)]>>2,K[ee++]=R>>8&255,K[ee++]=255&R),K},q.fromByteArray=function O(E){for(var R,z=E.length,U=z%3,W=[],K=16383,ee=0,ie=z-U;ee<ie;ee+=K)W.push(w(E,ee,ee+K>ie?ie:ee+K));return 1===U?W.push(p[(R=E[z-1])>>2]+p[R<<4&63]+"=="):2===U&&W.push(p[(R=(E[z-2]<<8)+E[z-1])>>10]+p[R>>4&63]+p[R<<2&63]+"="),W.join("")};for(var p=[],t=[],e=typeof Uint8Array<"u"?Uint8Array:Array,b="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",I=0,s=b.length;I<s;++I)p[I]=b[I],t[b.charCodeAt(I)]=I;function C(E){var R=E.length;if(R%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var z=E.indexOf("=");return-1===z&&(z=R),[z,z===R?0:4-z%4]}function S(E){return p[E>>18&63]+p[E>>12&63]+p[E>>6&63]+p[63&E]}function w(E,R,z){for(var W=[],K=R;K<z;K+=3)W.push(S((E[K]<<16&16711680)+(E[K+1]<<8&65280)+(255&E[K+2])));return W.join("")}t["-".charCodeAt(0)]=62,t["_".charCodeAt(0)]=63},8538:function(Ve,q,p){!function(t,e){"use strict";function b(u,l){if(!u)throw new Error(l||"Assertion failed")}function I(u,l){u.super_=l;var y=function(){};y.prototype=l.prototype,u.prototype=new y,u.prototype.constructor=u}function s(u,l,y){if(s.isBN(u))return u;this.negative=0,this.words=null,this.length=0,this.red=null,null!==u&&(("le"===l||"be"===l)&&(y=l,l=10),this._init(u||0,l||10,y||"be"))}var C;"object"==typeof t?t.exports=s:e.BN=s,s.BN=s,s.wordSize=26;try{C=typeof window<"u"&&typeof window.Buffer<"u"?window.Buffer:p(6601).Buffer}catch{}function h(u,l){var y=u.charCodeAt(l);return y>=48&&y<=57?y-48:y>=65&&y<=70?y-55:y>=97&&y<=102?y-87:void b(!1,"Invalid character in "+u)}function P(u,l,y){var T=h(u,y);return y-1>=l&&(T|=h(u,y-1)<<4),T}function d(u,l,y,T){for(var L=0,m=0,n=Math.min(u.length,y),_=l;_<n;_++){var B=u.charCodeAt(_)-48;L*=T,m=B>=49?B-49+10:B>=17?B-17+10:B,b(B>=0&&m<T,"Invalid character"),L+=m}return L}function S(u,l){u.words=l.words,u.length=l.length,u.negative=l.negative,u.red=l.red}if(s.isBN=function(l){return l instanceof s||null!==l&&"object"==typeof l&&l.constructor.wordSize===s.wordSize&&Array.isArray(l.words)},s.max=function(l,y){return l.cmp(y)>0?l:y},s.min=function(l,y){return l.cmp(y)<0?l:y},s.prototype._init=function(l,y,T){if("number"==typeof l)return this._initNumber(l,y,T);if("object"==typeof l)return this._initArray(l,y,T);"hex"===y&&(y=16),b(y===(0|y)&&y>=2&&y<=36);var L=0;"-"===(l=l.toString().replace(/\s+/g,""))[0]&&(L++,this.negative=1),L<l.length&&(16===y?this._parseHex(l,L,T):(this._parseBase(l,y,L),"le"===T&&this._initArray(this.toArray(),y,T)))},s.prototype._initNumber=function(l,y,T){l<0&&(this.negative=1,l=-l),l<67108864?(this.words=[67108863&l],this.length=1):l<4503599627370496?(this.words=[67108863&l,l/67108864&67108863],this.length=2):(b(l<9007199254740992),this.words=[67108863&l,l/67108864&67108863,1],this.length=3),"le"===T&&this._initArray(this.toArray(),y,T)},s.prototype._initArray=function(l,y,T){if(b("number"==typeof l.length),l.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(l.length/3),this.words=new Array(this.length);for(var L=0;L<this.length;L++)this.words[L]=0;var m,n,_=0;if("be"===T)for(L=l.length-1,m=0;L>=0;L-=3)this.words[m]|=(n=l[L]|l[L-1]<<8|l[L-2]<<16)<<_&67108863,this.words[m+1]=n>>>26-_&67108863,(_+=24)>=26&&(_-=26,m++);else if("le"===T)for(L=0,m=0;L<l.length;L+=3)this.words[m]|=(n=l[L]|l[L+1]<<8|l[L+2]<<16)<<_&67108863,this.words[m+1]=n>>>26-_&67108863,(_+=24)>=26&&(_-=26,m++);return this._strip()},s.prototype._parseHex=function(l,y,T){this.length=Math.ceil((l.length-y)/6),this.words=new Array(this.length);for(var L=0;L<this.length;L++)this.words[L]=0;var _,m=0,n=0;if("be"===T)for(L=l.length-1;L>=y;L-=2)_=P(l,y,L)<<m,this.words[n]|=67108863&_,m>=18?(m-=18,this.words[n+=1]|=_>>>26):m+=8;else for(L=(l.length-y)%2==0?y+1:y;L<l.length;L+=2)_=P(l,y,L)<<m,this.words[n]|=67108863&_,m>=18?(m-=18,this.words[n+=1]|=_>>>26):m+=8;this._strip()},s.prototype._parseBase=function(l,y,T){this.words=[0],this.length=1;for(var L=0,m=1;m<=67108863;m*=y)L++;L--,m=m/y|0;for(var n=l.length-T,_=n%L,B=Math.min(n,n-_)+T,V=0,X=T;X<B;X+=L)V=d(l,X,X+L,y),this.imuln(m),this.words[0]+V<67108864?this.words[0]+=V:this._iaddn(V);if(0!==_){var Le=1;for(V=d(l,X,l.length,y),X=0;X<_;X++)Le*=y;this.imuln(Le),this.words[0]+V<67108864?this.words[0]+=V:this._iaddn(V)}this._strip()},s.prototype.copy=function(l){l.words=new Array(this.length);for(var y=0;y<this.length;y++)l.words[y]=this.words[y];l.length=this.length,l.negative=this.negative,l.red=this.red},s.prototype._move=function(l){S(l,this)},s.prototype.clone=function(){var l=new s(null);return this.copy(l),l},s.prototype._expand=function(l){for(;this.length<l;)this.words[this.length++]=0;return this},s.prototype._strip=function(){for(;this.length>1&&0===this.words[this.length-1];)this.length--;return this._normSign()},s.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},typeof Symbol<"u"&&"function"==typeof Symbol.for)try{s.prototype[Symbol.for("nodejs.util.inspect.custom")]=w}catch{s.prototype.inspect=w}else s.prototype.inspect=w;function w(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"}var O=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],E=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],R=[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,l,y){y.negative=l.negative^u.negative;var T=u.length+l.length|0;y.length=T,T=T-1|0;var L=0|u.words[0],m=0|l.words[0],n=L*m,B=n/67108864|0;y.words[0]=67108863&n;for(var V=1;V<T;V++){for(var X=B>>>26,Le=67108863&B,$e=Math.min(V,l.length-1),We=Math.max(0,V-u.length+1);We<=$e;We++)X+=(n=(L=0|u.words[V-We|0])*(m=0|l.words[We])+Le)/67108864|0,Le=67108863&n;y.words[V]=0|Le,B=0|X}return 0!==B?y.words[V]=0|B:y.length--,y._strip()}s.prototype.toString=function(l,y){var T;if(y=0|y||1,16===(l=l||10)||"hex"===l){T="";for(var L=0,m=0,n=0;n<this.length;n++){var _=this.words[n],B=(16777215&(_<<L|m)).toString(16);m=_>>>24-L&16777215,(L+=2)>=26&&(L-=26,n--),T=0!==m||n!==this.length-1?O[6-B.length]+B+T:B+T}for(0!==m&&(T=m.toString(16)+T);T.length%y!=0;)T="0"+T;return 0!==this.negative&&(T="-"+T),T}if(l===(0|l)&&l>=2&&l<=36){var V=E[l],X=R[l];T="";var Le=this.clone();for(Le.negative=0;!Le.isZero();){var $e=Le.modrn(X).toString(l);T=(Le=Le.idivn(X)).isZero()?$e+T:O[V-$e.length]+$e+T}for(this.isZero()&&(T="0"+T);T.length%y!=0;)T="0"+T;return 0!==this.negative&&(T="-"+T),T}b(!1,"Base should be between 2 and 36")},s.prototype.toNumber=function(){var l=this.words[0];return 2===this.length?l+=67108864*this.words[1]:3===this.length&&1===this.words[2]?l+=4503599627370496+67108864*this.words[1]:this.length>2&&b(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-l:l},s.prototype.toJSON=function(){return this.toString(16,2)},C&&(s.prototype.toBuffer=function(l,y){return this.toArrayLike(C,l,y)}),s.prototype.toArray=function(l,y){return this.toArrayLike(Array,l,y)},s.prototype.toArrayLike=function(l,y,T){this._strip();var L=this.byteLength(),m=T||Math.max(1,L);b(L<=m,"byte array longer than desired length"),b(m>0,"Requested array length <= 0");var n=function(l,y){return l.allocUnsafe?l.allocUnsafe(y):new l(y)}(l,m);return this["_toArrayLike"+("le"===y?"LE":"BE")](n,L),n},s.prototype._toArrayLikeLE=function(l,y){for(var T=0,L=0,m=0,n=0;m<this.length;m++){var _=this.words[m]<<n|L;l[T++]=255&_,T<l.length&&(l[T++]=_>>8&255),T<l.length&&(l[T++]=_>>16&255),6===n?(T<l.length&&(l[T++]=_>>24&255),L=0,n=0):(L=_>>>24,n+=2)}if(T<l.length)for(l[T++]=L;T<l.length;)l[T++]=0},s.prototype._toArrayLikeBE=function(l,y){for(var T=l.length-1,L=0,m=0,n=0;m<this.length;m++){var _=this.words[m]<<n|L;l[T--]=255&_,T>=0&&(l[T--]=_>>8&255),T>=0&&(l[T--]=_>>16&255),6===n?(T>=0&&(l[T--]=_>>24&255),L=0,n=0):(L=_>>>24,n+=2)}if(T>=0)for(l[T--]=L;T>=0;)l[T--]=0},s.prototype._countBits=Math.clz32?function(l){return 32-Math.clz32(l)}:function(l){var y=l,T=0;return y>=4096&&(T+=13,y>>>=13),y>=64&&(T+=7,y>>>=7),y>=8&&(T+=4,y>>>=4),y>=2&&(T+=2,y>>>=2),T+y},s.prototype._zeroBits=function(l){if(0===l)return 26;var y=l,T=0;return 8191&y||(T+=13,y>>>=13),127&y||(T+=7,y>>>=7),15&y||(T+=4,y>>>=4),3&y||(T+=2,y>>>=2),1&y||T++,T},s.prototype.bitLength=function(){var y=this._countBits(this.words[this.length-1]);return 26*(this.length-1)+y},s.prototype.zeroBits=function(){if(this.isZero())return 0;for(var l=0,y=0;y<this.length;y++){var T=this._zeroBits(this.words[y]);if(l+=T,26!==T)break}return l},s.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},s.prototype.toTwos=function(l){return 0!==this.negative?this.abs().inotn(l).iaddn(1):this.clone()},s.prototype.fromTwos=function(l){return this.testn(l-1)?this.notn(l).iaddn(1).ineg():this.clone()},s.prototype.isNeg=function(){return 0!==this.negative},s.prototype.neg=function(){return this.clone().ineg()},s.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},s.prototype.iuor=function(l){for(;this.length<l.length;)this.words[this.length++]=0;for(var y=0;y<l.length;y++)this.words[y]=this.words[y]|l.words[y];return this._strip()},s.prototype.ior=function(l){return b(0==(this.negative|l.negative)),this.iuor(l)},s.prototype.or=function(l){return this.length>l.length?this.clone().ior(l):l.clone().ior(this)},s.prototype.uor=function(l){return this.length>l.length?this.clone().iuor(l):l.clone().iuor(this)},s.prototype.iuand=function(l){var y;y=this.length>l.length?l:this;for(var T=0;T<y.length;T++)this.words[T]=this.words[T]&l.words[T];return this.length=y.length,this._strip()},s.prototype.iand=function(l){return b(0==(this.negative|l.negative)),this.iuand(l)},s.prototype.and=function(l){return this.length>l.length?this.clone().iand(l):l.clone().iand(this)},s.prototype.uand=function(l){return this.length>l.length?this.clone().iuand(l):l.clone().iuand(this)},s.prototype.iuxor=function(l){var y,T;this.length>l.length?(y=this,T=l):(y=l,T=this);for(var L=0;L<T.length;L++)this.words[L]=y.words[L]^T.words[L];if(this!==y)for(;L<y.length;L++)this.words[L]=y.words[L];return this.length=y.length,this._strip()},s.prototype.ixor=function(l){return b(0==(this.negative|l.negative)),this.iuxor(l)},s.prototype.xor=function(l){return this.length>l.length?this.clone().ixor(l):l.clone().ixor(this)},s.prototype.uxor=function(l){return this.length>l.length?this.clone().iuxor(l):l.clone().iuxor(this)},s.prototype.inotn=function(l){b("number"==typeof l&&l>=0);var y=0|Math.ceil(l/26),T=l%26;this._expand(y),T>0&&y--;for(var L=0;L<y;L++)this.words[L]=67108863&~this.words[L];return T>0&&(this.words[L]=~this.words[L]&67108863>>26-T),this._strip()},s.prototype.notn=function(l){return this.clone().inotn(l)},s.prototype.setn=function(l,y){b("number"==typeof l&&l>=0);var T=l/26|0,L=l%26;return this._expand(T+1),this.words[T]=y?this.words[T]|1<<L:this.words[T]&~(1<<L),this._strip()},s.prototype.iadd=function(l){var y,T,L;if(0!==this.negative&&0===l.negative)return this.negative=0,y=this.isub(l),this.negative^=1,this._normSign();if(0===this.negative&&0!==l.negative)return l.negative=0,y=this.isub(l),l.negative=1,y._normSign();this.length>l.length?(T=this,L=l):(T=l,L=this);for(var m=0,n=0;n<L.length;n++)this.words[n]=67108863&(y=(0|T.words[n])+(0|L.words[n])+m),m=y>>>26;for(;0!==m&&n<T.length;n++)this.words[n]=67108863&(y=(0|T.words[n])+m),m=y>>>26;if(this.length=T.length,0!==m)this.words[this.length]=m,this.length++;else if(T!==this)for(;n<T.length;n++)this.words[n]=T.words[n];return this},s.prototype.add=function(l){var y;return 0!==l.negative&&0===this.negative?(l.negative=0,y=this.sub(l),l.negative^=1,y):0===l.negative&&0!==this.negative?(this.negative=0,y=l.sub(this),this.negative=1,y):this.length>l.length?this.clone().iadd(l):l.clone().iadd(this)},s.prototype.isub=function(l){if(0!==l.negative){l.negative=0;var y=this.iadd(l);return l.negative=1,y._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(l),this.negative=1,this._normSign();var L,m,T=this.cmp(l);if(0===T)return this.negative=0,this.length=1,this.words[0]=0,this;T>0?(L=this,m=l):(L=l,m=this);for(var n=0,_=0;_<m.length;_++)n=(y=(0|L.words[_])-(0|m.words[_])+n)>>26,this.words[_]=67108863&y;for(;0!==n&&_<L.length;_++)n=(y=(0|L.words[_])+n)>>26,this.words[_]=67108863&y;if(0===n&&_<L.length&&L!==this)for(;_<L.length;_++)this.words[_]=L.words[_];return this.length=Math.max(this.length,_),L!==this&&(this.negative=1),this._strip()},s.prototype.sub=function(l){return this.clone().isub(l)};var K=function(l,y,T){var B,V,X,L=l.words,m=y.words,n=T.words,_=0,Le=0|L[0],$e=8191&Le,We=Le>>>13,Fe=0|L[1],De=8191&Fe,ye=Fe>>>13,ce=0|L[2],ve=8191&ce,oe=ce>>>13,je=0|L[3],Ae=8191&je,he=je>>>13,Ce=0|L[4],te=8191&Ce,Ue=Ce>>>13,Be=0|L[5],ae=8191&Be,ge=Be>>>13,ft=0|L[6],Je=8191&ft,dt=ft>>>13,Et=0|L[7],pt=8191&Et,ot=Et>>>13,wt=0|L[8],ke=8191&wt,Ke=wt>>>13,xt=0|L[9],Y=8191&xt,Re=xt>>>13,Tt=0|m[0],Qe=8191&Tt,Ye=Tt>>>13,Ht=0|m[1],Mt=8191&Ht,kt=Ht>>>13,_t=0|m[2],we=8191&_t,J=_t>>>13,be=0|m[3],He=8191&be,at=be>>>13,ii=0|m[4],Gt=8191&ii,ni=ii>>>13,ut=0|m[5],tt=8191&ut,vt=ut>>>13,ti=0|m[6],Ut=8191&ti,ht=ti>>>13,Rt=0|m[7],Oe=8191&Rt,et=Rt>>>13,it=0|m[8],ct=8191&it,Dt=it>>>13,pi=0|m[9],Li=8191&pi,xi=pi>>>13;T.negative=l.negative^y.negative,T.length=19;var Fi=(_+(B=Math.imul($e,Qe))|0)+((8191&(V=(V=Math.imul($e,Ye))+Math.imul(We,Qe)|0))<<13)|0;_=((X=Math.imul(We,Ye))+(V>>>13)|0)+(Fi>>>26)|0,Fi&=67108863,B=Math.imul(De,Qe),V=(V=Math.imul(De,Ye))+Math.imul(ye,Qe)|0,X=Math.imul(ye,Ye);var qe=(_+(B=B+Math.imul($e,Mt)|0)|0)+((8191&(V=(V=V+Math.imul($e,kt)|0)+Math.imul(We,Mt)|0))<<13)|0;_=((X=X+Math.imul(We,kt)|0)+(V>>>13)|0)+(qe>>>26)|0,qe&=67108863,B=Math.imul(ve,Qe),V=(V=Math.imul(ve,Ye))+Math.imul(oe,Qe)|0,X=Math.imul(oe,Ye),B=B+Math.imul(De,Mt)|0,V=(V=V+Math.imul(De,kt)|0)+Math.imul(ye,Mt)|0,X=X+Math.imul(ye,kt)|0;var St=(_+(B=B+Math.imul($e,we)|0)|0)+((8191&(V=(V=V+Math.imul($e,J)|0)+Math.imul(We,we)|0))<<13)|0;_=((X=X+Math.imul(We,J)|0)+(V>>>13)|0)+(St>>>26)|0,St&=67108863,B=Math.imul(Ae,Qe),V=(V=Math.imul(Ae,Ye))+Math.imul(he,Qe)|0,X=Math.imul(he,Ye),B=B+Math.imul(ve,Mt)|0,V=(V=V+Math.imul(ve,kt)|0)+Math.imul(oe,Mt)|0,X=X+Math.imul(oe,kt)|0,B=B+Math.imul(De,we)|0,V=(V=V+Math.imul(De,J)|0)+Math.imul(ye,we)|0,X=X+Math.imul(ye,J)|0;var xe=(_+(B=B+Math.imul($e,He)|0)|0)+((8191&(V=(V=V+Math.imul($e,at)|0)+Math.imul(We,He)|0))<<13)|0;_=((X=X+Math.imul(We,at)|0)+(V>>>13)|0)+(xe>>>26)|0,xe&=67108863,B=Math.imul(te,Qe),V=(V=Math.imul(te,Ye))+Math.imul(Ue,Qe)|0,X=Math.imul(Ue,Ye),B=B+Math.imul(Ae,Mt)|0,V=(V=V+Math.imul(Ae,kt)|0)+Math.imul(he,Mt)|0,X=X+Math.imul(he,kt)|0,B=B+Math.imul(ve,we)|0,V=(V=V+Math.imul(ve,J)|0)+Math.imul(oe,we)|0,X=X+Math.imul(oe,J)|0,B=B+Math.imul(De,He)|0,V=(V=V+Math.imul(De,at)|0)+Math.imul(ye,He)|0,X=X+Math.imul(ye,at)|0;var Nt=(_+(B=B+Math.imul($e,Gt)|0)|0)+((8191&(V=(V=V+Math.imul($e,ni)|0)+Math.imul(We,Gt)|0))<<13)|0;_=((X=X+Math.imul(We,ni)|0)+(V>>>13)|0)+(Nt>>>26)|0,Nt&=67108863,B=Math.imul(ae,Qe),V=(V=Math.imul(ae,Ye))+Math.imul(ge,Qe)|0,X=Math.imul(ge,Ye),B=B+Math.imul(te,Mt)|0,V=(V=V+Math.imul(te,kt)|0)+Math.imul(Ue,Mt)|0,X=X+Math.imul(Ue,kt)|0,B=B+Math.imul(Ae,we)|0,V=(V=V+Math.imul(Ae,J)|0)+Math.imul(he,we)|0,X=X+Math.imul(he,J)|0,B=B+Math.imul(ve,He)|0,V=(V=V+Math.imul(ve,at)|0)+Math.imul(oe,He)|0,X=X+Math.imul(oe,at)|0,B=B+Math.imul(De,Gt)|0,V=(V=V+Math.imul(De,ni)|0)+Math.imul(ye,Gt)|0,X=X+Math.imul(ye,ni)|0;var qt=(_+(B=B+Math.imul($e,tt)|0)|0)+((8191&(V=(V=V+Math.imul($e,vt)|0)+Math.imul(We,tt)|0))<<13)|0;_=((X=X+Math.imul(We,vt)|0)+(V>>>13)|0)+(qt>>>26)|0,qt&=67108863,B=Math.imul(Je,Qe),V=(V=Math.imul(Je,Ye))+Math.imul(dt,Qe)|0,X=Math.imul(dt,Ye),B=B+Math.imul(ae,Mt)|0,V=(V=V+Math.imul(ae,kt)|0)+Math.imul(ge,Mt)|0,X=X+Math.imul(ge,kt)|0,B=B+Math.imul(te,we)|0,V=(V=V+Math.imul(te,J)|0)+Math.imul(Ue,we)|0,X=X+Math.imul(Ue,J)|0,B=B+Math.imul(Ae,He)|0,V=(V=V+Math.imul(Ae,at)|0)+Math.imul(he,He)|0,X=X+Math.imul(he,at)|0,B=B+Math.imul(ve,Gt)|0,V=(V=V+Math.imul(ve,ni)|0)+Math.imul(oe,Gt)|0,X=X+Math.imul(oe,ni)|0,B=B+Math.imul(De,tt)|0,V=(V=V+Math.imul(De,vt)|0)+Math.imul(ye,tt)|0,X=X+Math.imul(ye,vt)|0;var mi=(_+(B=B+Math.imul($e,Ut)|0)|0)+((8191&(V=(V=V+Math.imul($e,ht)|0)+Math.imul(We,Ut)|0))<<13)|0;_=((X=X+Math.imul(We,ht)|0)+(V>>>13)|0)+(mi>>>26)|0,mi&=67108863,B=Math.imul(pt,Qe),V=(V=Math.imul(pt,Ye))+Math.imul(ot,Qe)|0,X=Math.imul(ot,Ye),B=B+Math.imul(Je,Mt)|0,V=(V=V+Math.imul(Je,kt)|0)+Math.imul(dt,Mt)|0,X=X+Math.imul(dt,kt)|0,B=B+Math.imul(ae,we)|0,V=(V=V+Math.imul(ae,J)|0)+Math.imul(ge,we)|0,X=X+Math.imul(ge,J)|0,B=B+Math.imul(te,He)|0,V=(V=V+Math.imul(te,at)|0)+Math.imul(Ue,He)|0,X=X+Math.imul(Ue,at)|0,B=B+Math.imul(Ae,Gt)|0,V=(V=V+Math.imul(Ae,ni)|0)+Math.imul(he,Gt)|0,X=X+Math.imul(he,ni)|0,B=B+Math.imul(ve,tt)|0,V=(V=V+Math.imul(ve,vt)|0)+Math.imul(oe,tt)|0,X=X+Math.imul(oe,vt)|0,B=B+Math.imul(De,Ut)|0,V=(V=V+Math.imul(De,ht)|0)+Math.imul(ye,Ut)|0,X=X+Math.imul(ye,ht)|0;var Ci=(_+(B=B+Math.imul($e,Oe)|0)|0)+((8191&(V=(V=V+Math.imul($e,et)|0)+Math.imul(We,Oe)|0))<<13)|0;_=((X=X+Math.imul(We,et)|0)+(V>>>13)|0)+(Ci>>>26)|0,Ci&=67108863,B=Math.imul(ke,Qe),V=(V=Math.imul(ke,Ye))+Math.imul(Ke,Qe)|0,X=Math.imul(Ke,Ye),B=B+Math.imul(pt,Mt)|0,V=(V=V+Math.imul(pt,kt)|0)+Math.imul(ot,Mt)|0,X=X+Math.imul(ot,kt)|0,B=B+Math.imul(Je,we)|0,V=(V=V+Math.imul(Je,J)|0)+Math.imul(dt,we)|0,X=X+Math.imul(dt,J)|0,B=B+Math.imul(ae,He)|0,V=(V=V+Math.imul(ae,at)|0)+Math.imul(ge,He)|0,X=X+Math.imul(ge,at)|0,B=B+Math.imul(te,Gt)|0,V=(V=V+Math.imul(te,ni)|0)+Math.imul(Ue,Gt)|0,X=X+Math.imul(Ue,ni)|0,B=B+Math.imul(Ae,tt)|0,V=(V=V+Math.imul(Ae,vt)|0)+Math.imul(he,tt)|0,X=X+Math.imul(he,vt)|0,B=B+Math.imul(ve,Ut)|0,V=(V=V+Math.imul(ve,ht)|0)+Math.imul(oe,Ut)|0,X=X+Math.imul(oe,ht)|0,B=B+Math.imul(De,Oe)|0,V=(V=V+Math.imul(De,et)|0)+Math.imul(ye,Oe)|0,X=X+Math.imul(ye,et)|0;var Ii=(_+(B=B+Math.imul($e,ct)|0)|0)+((8191&(V=(V=V+Math.imul($e,Dt)|0)+Math.imul(We,ct)|0))<<13)|0;_=((X=X+Math.imul(We,Dt)|0)+(V>>>13)|0)+(Ii>>>26)|0,Ii&=67108863,B=Math.imul(Y,Qe),V=(V=Math.imul(Y,Ye))+Math.imul(Re,Qe)|0,X=Math.imul(Re,Ye),B=B+Math.imul(ke,Mt)|0,V=(V=V+Math.imul(ke,kt)|0)+Math.imul(Ke,Mt)|0,X=X+Math.imul(Ke,kt)|0,B=B+Math.imul(pt,we)|0,V=(V=V+Math.imul(pt,J)|0)+Math.imul(ot,we)|0,X=X+Math.imul(ot,J)|0,B=B+Math.imul(Je,He)|0,V=(V=V+Math.imul(Je,at)|0)+Math.imul(dt,He)|0,X=X+Math.imul(dt,at)|0,B=B+Math.imul(ae,Gt)|0,V=(V=V+Math.imul(ae,ni)|0)+Math.imul(ge,Gt)|0,X=X+Math.imul(ge,ni)|0,B=B+Math.imul(te,tt)|0,V=(V=V+Math.imul(te,vt)|0)+Math.imul(Ue,tt)|0,X=X+Math.imul(Ue,vt)|0,B=B+Math.imul(Ae,Ut)|0,V=(V=V+Math.imul(Ae,ht)|0)+Math.imul(he,Ut)|0,X=X+Math.imul(he,ht)|0,B=B+Math.imul(ve,Oe)|0,V=(V=V+Math.imul(ve,et)|0)+Math.imul(oe,Oe)|0,X=X+Math.imul(oe,et)|0,B=B+Math.imul(De,ct)|0,V=(V=V+Math.imul(De,Dt)|0)+Math.imul(ye,ct)|0,X=X+Math.imul(ye,Dt)|0;var Gi=(_+(B=B+Math.imul($e,Li)|0)|0)+((8191&(V=(V=V+Math.imul($e,xi)|0)+Math.imul(We,Li)|0))<<13)|0;_=((X=X+Math.imul(We,xi)|0)+(V>>>13)|0)+(Gi>>>26)|0,Gi&=67108863,B=Math.imul(Y,Mt),V=(V=Math.imul(Y,kt))+Math.imul(Re,Mt)|0,X=Math.imul(Re,kt),B=B+Math.imul(ke,we)|0,V=(V=V+Math.imul(ke,J)|0)+Math.imul(Ke,we)|0,X=X+Math.imul(Ke,J)|0,B=B+Math.imul(pt,He)|0,V=(V=V+Math.imul(pt,at)|0)+Math.imul(ot,He)|0,X=X+Math.imul(ot,at)|0,B=B+Math.imul(Je,Gt)|0,V=(V=V+Math.imul(Je,ni)|0)+Math.imul(dt,Gt)|0,X=X+Math.imul(dt,ni)|0,B=B+Math.imul(ae,tt)|0,V=(V=V+Math.imul(ae,vt)|0)+Math.imul(ge,tt)|0,X=X+Math.imul(ge,vt)|0,B=B+Math.imul(te,Ut)|0,V=(V=V+Math.imul(te,ht)|0)+Math.imul(Ue,Ut)|0,X=X+Math.imul(Ue,ht)|0,B=B+Math.imul(Ae,Oe)|0,V=(V=V+Math.imul(Ae,et)|0)+Math.imul(he,Oe)|0,X=X+Math.imul(he,et)|0,B=B+Math.imul(ve,ct)|0,V=(V=V+Math.imul(ve,Dt)|0)+Math.imul(oe,ct)|0,X=X+Math.imul(oe,Dt)|0;var Yi=(_+(B=B+Math.imul(De,Li)|0)|0)+((8191&(V=(V=V+Math.imul(De,xi)|0)+Math.imul(ye,Li)|0))<<13)|0;_=((X=X+Math.imul(ye,xi)|0)+(V>>>13)|0)+(Yi>>>26)|0,Yi&=67108863,B=Math.imul(Y,we),V=(V=Math.imul(Y,J))+Math.imul(Re,we)|0,X=Math.imul(Re,J),B=B+Math.imul(ke,He)|0,V=(V=V+Math.imul(ke,at)|0)+Math.imul(Ke,He)|0,X=X+Math.imul(Ke,at)|0,B=B+Math.imul(pt,Gt)|0,V=(V=V+Math.imul(pt,ni)|0)+Math.imul(ot,Gt)|0,X=X+Math.imul(ot,ni)|0,B=B+Math.imul(Je,tt)|0,V=(V=V+Math.imul(Je,vt)|0)+Math.imul(dt,tt)|0,X=X+Math.imul(dt,vt)|0,B=B+Math.imul(ae,Ut)|0,V=(V=V+Math.imul(ae,ht)|0)+Math.imul(ge,Ut)|0,X=X+Math.imul(ge,ht)|0,B=B+Math.imul(te,Oe)|0,V=(V=V+Math.imul(te,et)|0)+Math.imul(Ue,Oe)|0,X=X+Math.imul(Ue,et)|0,B=B+Math.imul(Ae,ct)|0,V=(V=V+Math.imul(Ae,Dt)|0)+Math.imul(he,ct)|0,X=X+Math.imul(he,Dt)|0;var Ji=(_+(B=B+Math.imul(ve,Li)|0)|0)+((8191&(V=(V=V+Math.imul(ve,xi)|0)+Math.imul(oe,Li)|0))<<13)|0;_=((X=X+Math.imul(oe,xi)|0)+(V>>>13)|0)+(Ji>>>26)|0,Ji&=67108863,B=Math.imul(Y,He),V=(V=Math.imul(Y,at))+Math.imul(Re,He)|0,X=Math.imul(Re,at),B=B+Math.imul(ke,Gt)|0,V=(V=V+Math.imul(ke,ni)|0)+Math.imul(Ke,Gt)|0,X=X+Math.imul(Ke,ni)|0,B=B+Math.imul(pt,tt)|0,V=(V=V+Math.imul(pt,vt)|0)+Math.imul(ot,tt)|0,X=X+Math.imul(ot,vt)|0,B=B+Math.imul(Je,Ut)|0,V=(V=V+Math.imul(Je,ht)|0)+Math.imul(dt,Ut)|0,X=X+Math.imul(dt,ht)|0,B=B+Math.imul(ae,Oe)|0,V=(V=V+Math.imul(ae,et)|0)+Math.imul(ge,Oe)|0,X=X+Math.imul(ge,et)|0,B=B+Math.imul(te,ct)|0,V=(V=V+Math.imul(te,Dt)|0)+Math.imul(Ue,ct)|0,X=X+Math.imul(Ue,Dt)|0;var Wt=(_+(B=B+Math.imul(Ae,Li)|0)|0)+((8191&(V=(V=V+Math.imul(Ae,xi)|0)+Math.imul(he,Li)|0))<<13)|0;_=((X=X+Math.imul(he,xi)|0)+(V>>>13)|0)+(Wt>>>26)|0,Wt&=67108863,B=Math.imul(Y,Gt),V=(V=Math.imul(Y,ni))+Math.imul(Re,Gt)|0,X=Math.imul(Re,ni),B=B+Math.imul(ke,tt)|0,V=(V=V+Math.imul(ke,vt)|0)+Math.imul(Ke,tt)|0,X=X+Math.imul(Ke,vt)|0,B=B+Math.imul(pt,Ut)|0,V=(V=V+Math.imul(pt,ht)|0)+Math.imul(ot,Ut)|0,X=X+Math.imul(ot,ht)|0,B=B+Math.imul(Je,Oe)|0,V=(V=V+Math.imul(Je,et)|0)+Math.imul(dt,Oe)|0,X=X+Math.imul(dt,et)|0,B=B+Math.imul(ae,ct)|0,V=(V=V+Math.imul(ae,Dt)|0)+Math.imul(ge,ct)|0,X=X+Math.imul(ge,Dt)|0;var Jt=(_+(B=B+Math.imul(te,Li)|0)|0)+((8191&(V=(V=V+Math.imul(te,xi)|0)+Math.imul(Ue,Li)|0))<<13)|0;_=((X=X+Math.imul(Ue,xi)|0)+(V>>>13)|0)+(Jt>>>26)|0,Jt&=67108863,B=Math.imul(Y,tt),V=(V=Math.imul(Y,vt))+Math.imul(Re,tt)|0,X=Math.imul(Re,vt),B=B+Math.imul(ke,Ut)|0,V=(V=V+Math.imul(ke,ht)|0)+Math.imul(Ke,Ut)|0,X=X+Math.imul(Ke,ht)|0,B=B+Math.imul(pt,Oe)|0,V=(V=V+Math.imul(pt,et)|0)+Math.imul(ot,Oe)|0,X=X+Math.imul(ot,et)|0,B=B+Math.imul(Je,ct)|0,V=(V=V+Math.imul(Je,Dt)|0)+Math.imul(dt,ct)|0,X=X+Math.imul(dt,Dt)|0;var fe=(_+(B=B+Math.imul(ae,Li)|0)|0)+((8191&(V=(V=V+Math.imul(ae,xi)|0)+Math.imul(ge,Li)|0))<<13)|0;_=((X=X+Math.imul(ge,xi)|0)+(V>>>13)|0)+(fe>>>26)|0,fe&=67108863,B=Math.imul(Y,Ut),V=(V=Math.imul(Y,ht))+Math.imul(Re,Ut)|0,X=Math.imul(Re,ht),B=B+Math.imul(ke,Oe)|0,V=(V=V+Math.imul(ke,et)|0)+Math.imul(Ke,Oe)|0,X=X+Math.imul(Ke,et)|0,B=B+Math.imul(pt,ct)|0,V=(V=V+Math.imul(pt,Dt)|0)+Math.imul(ot,ct)|0,X=X+Math.imul(ot,Dt)|0;var lt=(_+(B=B+Math.imul(Je,Li)|0)|0)+((8191&(V=(V=V+Math.imul(Je,xi)|0)+Math.imul(dt,Li)|0))<<13)|0;_=((X=X+Math.imul(dt,xi)|0)+(V>>>13)|0)+(lt>>>26)|0,lt&=67108863,B=Math.imul(Y,Oe),V=(V=Math.imul(Y,et))+Math.imul(Re,Oe)|0,X=Math.imul(Re,et),B=B+Math.imul(ke,ct)|0,V=(V=V+Math.imul(ke,Dt)|0)+Math.imul(Ke,ct)|0,X=X+Math.imul(Ke,Dt)|0;var It=(_+(B=B+Math.imul(pt,Li)|0)|0)+((8191&(V=(V=V+Math.imul(pt,xi)|0)+Math.imul(ot,Li)|0))<<13)|0;_=((X=X+Math.imul(ot,xi)|0)+(V>>>13)|0)+(It>>>26)|0,It&=67108863,B=Math.imul(Y,ct),V=(V=Math.imul(Y,Dt))+Math.imul(Re,ct)|0,X=Math.imul(Re,Dt);var Bt=(_+(B=B+Math.imul(ke,Li)|0)|0)+((8191&(V=(V=V+Math.imul(ke,xi)|0)+Math.imul(Ke,Li)|0))<<13)|0;_=((X=X+Math.imul(Ke,xi)|0)+(V>>>13)|0)+(Bt>>>26)|0,Bt&=67108863;var zt=(_+(B=Math.imul(Y,Li))|0)+((8191&(V=(V=Math.imul(Y,xi))+Math.imul(Re,Li)|0))<<13)|0;return _=((X=Math.imul(Re,xi))+(V>>>13)|0)+(zt>>>26)|0,zt&=67108863,n[0]=Fi,n[1]=qe,n[2]=St,n[3]=xe,n[4]=Nt,n[5]=qt,n[6]=mi,n[7]=Ci,n[8]=Ii,n[9]=Gi,n[10]=Yi,n[11]=Ji,n[12]=Wt,n[13]=Jt,n[14]=fe,n[15]=lt,n[16]=It,n[17]=Bt,n[18]=zt,0!==_&&(n[19]=_,T.length++),T};function ee(u,l,y){y.negative=l.negative^u.negative,y.length=u.length+l.length;for(var T=0,L=0,m=0;m<y.length-1;m++){var n=L;L=0;for(var _=67108863&T,B=Math.min(m,l.length-1),V=Math.max(0,m-u.length+1);V<=B;V++){var We=(0|u.words[m-V])*(0|l.words[V]),Fe=67108863&We;_=67108863&(Fe=Fe+_|0),L+=(n=(n=n+(We/67108864|0)|0)+(Fe>>>26)|0)>>>26,n&=67108863}y.words[m]=_,T=n,n=L}return 0!==T?y.words[m]=T:y.length--,y._strip()}function ie(u,l,y){return ee(u,l,y)}function ue(u,l){this.x=u,this.y=l}Math.imul||(K=W),s.prototype.mulTo=function(l,y){var L=this.length+l.length;return 10===this.length&&10===l.length?K(this,l,y):L<63?W(this,l,y):L<1024?ee(this,l,y):ie(this,l,y)},ue.prototype.makeRBT=function(l){for(var y=new Array(l),T=s.prototype._countBits(l)-1,L=0;L<l;L++)y[L]=this.revBin(L,T,l);return y},ue.prototype.revBin=function(l,y,T){if(0===l||l===T-1)return l;for(var L=0,m=0;m<y;m++)L|=(1&l)<<y-m-1,l>>=1;return L},ue.prototype.permute=function(l,y,T,L,m,n){for(var _=0;_<n;_++)L[_]=y[l[_]],m[_]=T[l[_]]},ue.prototype.transform=function(l,y,T,L,m,n){this.permute(n,l,y,T,L,m);for(var _=1;_<m;_<<=1)for(var B=_<<1,V=Math.cos(2*Math.PI/B),X=Math.sin(2*Math.PI/B),Le=0;Le<m;Le+=B)for(var $e=V,We=X,Fe=0;Fe<_;Fe++){var De=T[Le+Fe],ye=L[Le+Fe],ce=T[Le+Fe+_],ve=L[Le+Fe+_],oe=$e*ce-We*ve;ve=$e*ve+We*ce,T[Le+Fe]=De+(ce=oe),L[Le+Fe]=ye+ve,T[Le+Fe+_]=De-ce,L[Le+Fe+_]=ye-ve,Fe!==B&&(oe=V*$e-X*We,We=V*We+X*$e,$e=oe)}},ue.prototype.guessLen13b=function(l,y){var T=1|Math.max(y,l),L=1&T,m=0;for(T=T/2|0;T;T>>>=1)m++;return 1<<m+1+L},ue.prototype.conjugate=function(l,y,T){if(!(T<=1))for(var L=0;L<T/2;L++){var m=l[L];l[L]=l[T-L-1],l[T-L-1]=m,m=y[L],y[L]=-y[T-L-1],y[T-L-1]=-m}},ue.prototype.normalize13b=function(l,y){for(var T=0,L=0;L<y/2;L++){var m=8192*Math.round(l[2*L+1]/y)+Math.round(l[2*L]/y)+T;l[L]=67108863&m,T=m<67108864?0:m/67108864|0}return l},ue.prototype.convert13b=function(l,y,T,L){for(var m=0,n=0;n<y;n++)T[2*n]=8191&(m+=0|l[n]),T[2*n+1]=8191&(m>>>=13),m>>>=13;for(n=2*y;n<L;++n)T[n]=0;b(0===m),b(0==(-8192&m))},ue.prototype.stub=function(l){for(var y=new Array(l),T=0;T<l;T++)y[T]=0;return y},ue.prototype.mulp=function(l,y,T){var L=2*this.guessLen13b(l.length,y.length),m=this.makeRBT(L),n=this.stub(L),_=new Array(L),B=new Array(L),V=new Array(L),X=new Array(L),Le=new Array(L),$e=new Array(L),We=T.words;We.length=L,this.convert13b(l.words,l.length,_,L),this.convert13b(y.words,y.length,X,L),this.transform(_,n,B,V,L,m),this.transform(X,n,Le,$e,L,m);for(var Fe=0;Fe<L;Fe++){var De=B[Fe]*Le[Fe]-V[Fe]*$e[Fe];V[Fe]=B[Fe]*$e[Fe]+V[Fe]*Le[Fe],B[Fe]=De}return this.conjugate(B,V,L),this.transform(B,V,We,n,L,m),this.conjugate(We,n,L),this.normalize13b(We,L),T.negative=l.negative^y.negative,T.length=l.length+y.length,T._strip()},s.prototype.mul=function(l){var y=new s(null);return y.words=new Array(this.length+l.length),this.mulTo(l,y)},s.prototype.mulf=function(l){var y=new s(null);return y.words=new Array(this.length+l.length),ie(this,l,y)},s.prototype.imul=function(l){return this.clone().mulTo(l,this)},s.prototype.imuln=function(l){var y=l<0;y&&(l=-l),b("number"==typeof l),b(l<67108864);for(var T=0,L=0;L<this.length;L++){var m=(0|this.words[L])*l,n=(67108863&m)+(67108863&T);T>>=26,T+=m/67108864|0,T+=n>>>26,this.words[L]=67108863&n}return 0!==T&&(this.words[L]=T,this.length++),y?this.ineg():this},s.prototype.muln=function(l){return this.clone().imuln(l)},s.prototype.sqr=function(){return this.mul(this)},s.prototype.isqr=function(){return this.imul(this.clone())},s.prototype.pow=function(l){var y=function U(u){for(var l=new Array(u.bitLength()),y=0;y<l.length;y++)l[y]=u.words[y/26|0]>>>y%26&1;return l}(l);if(0===y.length)return new s(1);for(var T=this,L=0;L<y.length&&0===y[L];L++,T=T.sqr());if(++L<y.length)for(var m=T.sqr();L<y.length;L++,m=m.sqr())0!==y[L]&&(T=T.mul(m));return T},s.prototype.iushln=function(l){b("number"==typeof l&&l>=0);var m,y=l%26,T=(l-y)/26,L=67108863>>>26-y<<26-y;if(0!==y){var n=0;for(m=0;m<this.length;m++){var _=this.words[m]&L;this.words[m]=(0|this.words[m])-_<<y|n,n=_>>>26-y}n&&(this.words[m]=n,this.length++)}if(0!==T){for(m=this.length-1;m>=0;m--)this.words[m+T]=this.words[m];for(m=0;m<T;m++)this.words[m]=0;this.length+=T}return this._strip()},s.prototype.ishln=function(l){return b(0===this.negative),this.iushln(l)},s.prototype.iushrn=function(l,y,T){var L;b("number"==typeof l&&l>=0),L=y?(y-y%26)/26:0;var m=l%26,n=Math.min((l-m)/26,this.length),_=67108863^67108863>>>m<<m,B=T;if(L-=n,L=Math.max(0,L),B){for(var V=0;V<n;V++)B.words[V]=this.words[V];B.length=n}if(0!==n)if(this.length>n)for(this.length-=n,V=0;V<this.length;V++)this.words[V]=this.words[V+n];else this.words[0]=0,this.length=1;var X=0;for(V=this.length-1;V>=0&&(0!==X||V>=L);V--){var Le=0|this.words[V];this.words[V]=X<<26-m|Le>>>m,X=Le&_}return B&&0!==X&&(B.words[B.length++]=X),0===this.length&&(this.words[0]=0,this.length=1),this._strip()},s.prototype.ishrn=function(l,y,T){return b(0===this.negative),this.iushrn(l,y,T)},s.prototype.shln=function(l){return this.clone().ishln(l)},s.prototype.ushln=function(l){return this.clone().iushln(l)},s.prototype.shrn=function(l){return this.clone().ishrn(l)},s.prototype.ushrn=function(l){return this.clone().iushrn(l)},s.prototype.testn=function(l){b("number"==typeof l&&l>=0);var y=l%26,T=(l-y)/26;return!(this.length<=T||!(this.words[T]&1<<y))},s.prototype.imaskn=function(l){b("number"==typeof l&&l>=0);var y=l%26,T=(l-y)/26;return b(0===this.negative,"imaskn works only with positive numbers"),this.length<=T?this:(0!==y&&T++,this.length=Math.min(T,this.length),0!==y&&(this.words[this.length-1]&=67108863^67108863>>>y<<y),this._strip())},s.prototype.maskn=function(l){return this.clone().imaskn(l)},s.prototype.iaddn=function(l){return b("number"==typeof l),b(l<67108864),l<0?this.isubn(-l):0!==this.negative?1===this.length&&(0|this.words[0])<=l?(this.words[0]=l-(0|this.words[0]),this.negative=0,this):(this.negative=0,this.isubn(l),this.negative=1,this):this._iaddn(l)},s.prototype._iaddn=function(l){this.words[0]+=l;for(var y=0;y<this.length&&this.words[y]>=67108864;y++)this.words[y]-=67108864,y===this.length-1?this.words[y+1]=1:this.words[y+1]++;return this.length=Math.max(this.length,y+1),this},s.prototype.isubn=function(l){if(b("number"==typeof l),b(l<67108864),l<0)return this.iaddn(-l);if(0!==this.negative)return this.negative=0,this.iaddn(l),this.negative=1,this;if(this.words[0]-=l,1===this.length&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var y=0;y<this.length&&this.words[y]<0;y++)this.words[y]+=67108864,this.words[y+1]-=1;return this._strip()},s.prototype.addn=function(l){return this.clone().iaddn(l)},s.prototype.subn=function(l){return this.clone().isubn(l)},s.prototype.iabs=function(){return this.negative=0,this},s.prototype.abs=function(){return this.clone().iabs()},s.prototype._ishlnsubmul=function(l,y,T){var m;this._expand(l.length+T);var n,_=0;for(m=0;m<l.length;m++){n=(0|this.words[m+T])+_;var B=(0|l.words[m])*y;_=((n-=67108863&B)>>26)-(B/67108864|0),this.words[m+T]=67108863&n}for(;m<this.length-T;m++)_=(n=(0|this.words[m+T])+_)>>26,this.words[m+T]=67108863&n;if(0===_)return this._strip();for(b(-1===_),_=0,m=0;m<this.length;m++)_=(n=-(0|this.words[m])+_)>>26,this.words[m]=67108863&n;return this.negative=1,this._strip()},s.prototype._wordDiv=function(l,y){var T,L=this.clone(),m=l,n=0|m.words[m.length-1];0!=(T=26-this._countBits(n))&&(m=m.ushln(T),L.iushln(T),n=0|m.words[m.length-1]);var V,B=L.length-m.length;if("mod"!==y){(V=new s(null)).length=B+1,V.words=new Array(V.length);for(var X=0;X<V.length;X++)V.words[X]=0}var Le=L.clone()._ishlnsubmul(m,1,B);0===Le.negative&&(L=Le,V&&(V.words[B]=1));for(var $e=B-1;$e>=0;$e--){var We=67108864*(0|L.words[m.length+$e])+(0|L.words[m.length+$e-1]);for(We=Math.min(We/n|0,67108863),L._ishlnsubmul(m,We,$e);0!==L.negative;)We--,L.negative=0,L._ishlnsubmul(m,1,$e),L.isZero()||(L.negative^=1);V&&(V.words[$e]=We)}return V&&V._strip(),L._strip(),"div"!==y&&0!==T&&L.iushrn(T),{div:V||null,mod:L}},s.prototype.divmod=function(l,y,T){return b(!l.isZero()),this.isZero()?{div:new s(0),mod:new s(0)}:0!==this.negative&&0===l.negative?(n=this.neg().divmod(l,y),"mod"!==y&&(L=n.div.neg()),"div"!==y&&(m=n.mod.neg(),T&&0!==m.negative&&m.iadd(l)),{div:L,mod:m}):0===this.negative&&0!==l.negative?(n=this.divmod(l.neg(),y),"mod"!==y&&(L=n.div.neg()),{div:L,mod:n.mod}):this.negative&l.negative?(n=this.neg().divmod(l.neg(),y),"div"!==y&&(m=n.mod.neg(),T&&0!==m.negative&&m.isub(l)),{div:n.div,mod:m}):l.length>this.length||this.cmp(l)<0?{div:new s(0),mod:this}:1===l.length?"div"===y?{div:this.divn(l.words[0]),mod:null}:"mod"===y?{div:null,mod:new s(this.modrn(l.words[0]))}:{div:this.divn(l.words[0]),mod:new s(this.modrn(l.words[0]))}:this._wordDiv(l,y);var L,m,n},s.prototype.div=function(l){return this.divmod(l,"div",!1).div},s.prototype.mod=function(l){return this.divmod(l,"mod",!1).mod},s.prototype.umod=function(l){return this.divmod(l,"mod",!0).mod},s.prototype.divRound=function(l){var y=this.divmod(l);if(y.mod.isZero())return y.div;var T=0!==y.div.negative?y.mod.isub(l):y.mod,L=l.ushrn(1),m=l.andln(1),n=T.cmp(L);return n<0||1===m&&0===n?y.div:0!==y.div.negative?y.div.isubn(1):y.div.iaddn(1)},s.prototype.modrn=function(l){var y=l<0;y&&(l=-l),b(l<=67108863);for(var T=(1<<26)%l,L=0,m=this.length-1;m>=0;m--)L=(T*L+(0|this.words[m]))%l;return y?-L:L},s.prototype.modn=function(l){return this.modrn(l)},s.prototype.idivn=function(l){var y=l<0;y&&(l=-l),b(l<=67108863);for(var T=0,L=this.length-1;L>=0;L--){var m=(0|this.words[L])+67108864*T;this.words[L]=m/l|0,T=m%l}return this._strip(),y?this.ineg():this},s.prototype.divn=function(l){return this.clone().idivn(l)},s.prototype.egcd=function(l){b(0===l.negative),b(!l.isZero());var y=this,T=l.clone();y=0!==y.negative?y.umod(l):y.clone();for(var L=new s(1),m=new s(0),n=new s(0),_=new s(1),B=0;y.isEven()&&T.isEven();)y.iushrn(1),T.iushrn(1),++B;for(var V=T.clone(),X=y.clone();!y.isZero();){for(var Le=0,$e=1;!(y.words[0]&$e)&&Le<26;++Le,$e<<=1);if(Le>0)for(y.iushrn(Le);Le-- >0;)(L.isOdd()||m.isOdd())&&(L.iadd(V),m.isub(X)),L.iushrn(1),m.iushrn(1);for(var We=0,Fe=1;!(T.words[0]&Fe)&&We<26;++We,Fe<<=1);if(We>0)for(T.iushrn(We);We-- >0;)(n.isOdd()||_.isOdd())&&(n.iadd(V),_.isub(X)),n.iushrn(1),_.iushrn(1);y.cmp(T)>=0?(y.isub(T),L.isub(n),m.isub(_)):(T.isub(y),n.isub(L),_.isub(m))}return{a:n,b:_,gcd:T.iushln(B)}},s.prototype._invmp=function(l){b(0===l.negative),b(!l.isZero());var Le,y=this,T=l.clone();y=0!==y.negative?y.umod(l):y.clone();for(var L=new s(1),m=new s(0),n=T.clone();y.cmpn(1)>0&&T.cmpn(1)>0;){for(var _=0,B=1;!(y.words[0]&B)&&_<26;++_,B<<=1);if(_>0)for(y.iushrn(_);_-- >0;)L.isOdd()&&L.iadd(n),L.iushrn(1);for(var V=0,X=1;!(T.words[0]&X)&&V<26;++V,X<<=1);if(V>0)for(T.iushrn(V);V-- >0;)m.isOdd()&&m.iadd(n),m.iushrn(1);y.cmp(T)>=0?(y.isub(T),L.isub(m)):(T.isub(y),m.isub(L))}return(Le=0===y.cmpn(1)?L:m).cmpn(0)<0&&Le.iadd(l),Le},s.prototype.gcd=function(l){if(this.isZero())return l.abs();if(l.isZero())return this.abs();var y=this.clone(),T=l.clone();y.negative=0,T.negative=0;for(var L=0;y.isEven()&&T.isEven();L++)y.iushrn(1),T.iushrn(1);for(;;){for(;y.isEven();)y.iushrn(1);for(;T.isEven();)T.iushrn(1);var m=y.cmp(T);if(m<0){var n=y;y=T,T=n}else if(0===m||0===T.cmpn(1))break;y.isub(T)}return T.iushln(L)},s.prototype.invm=function(l){return this.egcd(l).a.umod(l)},s.prototype.isEven=function(){return 0==(1&this.words[0])},s.prototype.isOdd=function(){return 1==(1&this.words[0])},s.prototype.andln=function(l){return this.words[0]&l},s.prototype.bincn=function(l){b("number"==typeof l);var y=l%26,T=(l-y)/26,L=1<<y;if(this.length<=T)return this._expand(T+1),this.words[T]|=L,this;for(var m=L,n=T;0!==m&&n<this.length;n++){var _=0|this.words[n];m=(_+=m)>>>26,this.words[n]=_&=67108863}return 0!==m&&(this.words[n]=m,this.length++),this},s.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},s.prototype.cmpn=function(l){var T,y=l<0;if(0!==this.negative&&!y)return-1;if(0===this.negative&&y)return 1;if(this._strip(),this.length>1)T=1;else{y&&(l=-l),b(l<=67108863,"Number is too big");var L=0|this.words[0];T=L===l?0:L<l?-1:1}return 0!==this.negative?0|-T:T},s.prototype.cmp=function(l){if(0!==this.negative&&0===l.negative)return-1;if(0===this.negative&&0!==l.negative)return 1;var y=this.ucmp(l);return 0!==this.negative?0|-y:y},s.prototype.ucmp=function(l){if(this.length>l.length)return 1;if(this.length<l.length)return-1;for(var y=0,T=this.length-1;T>=0;T--){var L=0|this.words[T],m=0|l.words[T];if(L!==m){L<m?y=-1:L>m&&(y=1);break}}return y},s.prototype.gtn=function(l){return 1===this.cmpn(l)},s.prototype.gt=function(l){return 1===this.cmp(l)},s.prototype.gten=function(l){return this.cmpn(l)>=0},s.prototype.gte=function(l){return this.cmp(l)>=0},s.prototype.ltn=function(l){return-1===this.cmpn(l)},s.prototype.lt=function(l){return-1===this.cmp(l)},s.prototype.lten=function(l){return this.cmpn(l)<=0},s.prototype.lte=function(l){return this.cmp(l)<=0},s.prototype.eqn=function(l){return 0===this.cmpn(l)},s.prototype.eq=function(l){return 0===this.cmp(l)},s.red=function(l){return new i(l)},s.prototype.toRed=function(l){return b(!this.red,"Already a number in reduction context"),b(0===this.negative,"red works only with positives"),l.convertTo(this)._forceRed(l)},s.prototype.fromRed=function(){return b(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},s.prototype._forceRed=function(l){return this.red=l,this},s.prototype.forceRed=function(l){return b(!this.red,"Already a number in reduction context"),this._forceRed(l)},s.prototype.redAdd=function(l){return b(this.red,"redAdd works only with red numbers"),this.red.add(this,l)},s.prototype.redIAdd=function(l){return b(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,l)},s.prototype.redSub=function(l){return b(this.red,"redSub works only with red numbers"),this.red.sub(this,l)},s.prototype.redISub=function(l){return b(this.red,"redISub works only with red numbers"),this.red.isub(this,l)},s.prototype.redShl=function(l){return b(this.red,"redShl works only with red numbers"),this.red.shl(this,l)},s.prototype.redMul=function(l){return b(this.red,"redMul works only with red numbers"),this.red._verify2(this,l),this.red.mul(this,l)},s.prototype.redIMul=function(l){return b(this.red,"redMul works only with red numbers"),this.red._verify2(this,l),this.red.imul(this,l)},s.prototype.redSqr=function(){return b(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},s.prototype.redISqr=function(){return b(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},s.prototype.redSqrt=function(){return b(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},s.prototype.redInvm=function(){return b(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},s.prototype.redNeg=function(){return b(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},s.prototype.redPow=function(l){return b(this.red&&!l.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,l)};var le={k256:null,p224:null,p192:null,p25519:null};function ne(u,l){this.name=u,this.p=new s(l,16),this.n=this.p.bitLength(),this.k=new s(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function de(){ne.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function $(){ne.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function me(){ne.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function A(){ne.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function i(u){if("string"==typeof u){var l=s._prime(u);this.m=l.p,this.prime=l}else b(u.gtn(1),"modulus must be greater than 1"),this.m=u,this.prime=null}function a(u){i.call(this,u),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new s(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}ne.prototype._tmp=function(){var l=new s(null);return l.words=new Array(Math.ceil(this.n/13)),l},ne.prototype.ireduce=function(l){var T,y=l;do{this.split(y,this.tmp),T=(y=(y=this.imulK(y)).iadd(this.tmp)).bitLength()}while(T>this.n);var L=T<this.n?-1:y.ucmp(this.p);return 0===L?(y.words[0]=0,y.length=1):L>0?y.isub(this.p):void 0!==y.strip?y.strip():y._strip(),y},ne.prototype.split=function(l,y){l.iushrn(this.n,0,y)},ne.prototype.imulK=function(l){return l.imul(this.k)},I(de,ne),de.prototype.split=function(l,y){for(var T=4194303,L=Math.min(l.length,9),m=0;m<L;m++)y.words[m]=l.words[m];if(y.length=L,l.length<=9)return l.words[0]=0,void(l.length=1);var n=l.words[9];for(y.words[y.length++]=n&T,m=10;m<l.length;m++){var _=0|l.words[m];l.words[m-10]=(_&T)<<4|n>>>22,n=_}l.words[m-10]=n>>>=22,l.length-=0===n&&l.length>10?10:9},de.prototype.imulK=function(l){l.words[l.length]=0,l.words[l.length+1]=0,l.length+=2;for(var y=0,T=0;T<l.length;T++){var L=0|l.words[T];l.words[T]=67108863&(y+=977*L),y=64*L+(y/67108864|0)}return 0===l.words[l.length-1]&&(l.length--,0===l.words[l.length-1]&&l.length--),l},I($,ne),I(me,ne),I(A,ne),A.prototype.imulK=function(l){for(var y=0,T=0;T<l.length;T++){var L=19*(0|l.words[T])+y,m=67108863&L;L>>>=26,l.words[T]=m,y=L}return 0!==y&&(l.words[l.length++]=y),l},s._prime=function(l){if(le[l])return le[l];var y;if("k256"===l)y=new de;else if("p224"===l)y=new $;else if("p192"===l)y=new me;else{if("p25519"!==l)throw new Error("Unknown prime "+l);y=new A}return le[l]=y,y},i.prototype._verify1=function(l){b(0===l.negative,"red works only with positives"),b(l.red,"red works only with red numbers")},i.prototype._verify2=function(l,y){b(0==(l.negative|y.negative),"red works only with positives"),b(l.red&&l.red===y.red,"red works only with red numbers")},i.prototype.imod=function(l){return this.prime?this.prime.ireduce(l)._forceRed(this):(S(l,l.umod(this.m)._forceRed(this)),l)},i.prototype.neg=function(l){return l.isZero()?l.clone():this.m.sub(l)._forceRed(this)},i.prototype.add=function(l,y){this._verify2(l,y);var T=l.add(y);return T.cmp(this.m)>=0&&T.isub(this.m),T._forceRed(this)},i.prototype.iadd=function(l,y){this._verify2(l,y);var T=l.iadd(y);return T.cmp(this.m)>=0&&T.isub(this.m),T},i.prototype.sub=function(l,y){this._verify2(l,y);var T=l.sub(y);return T.cmpn(0)<0&&T.iadd(this.m),T._forceRed(this)},i.prototype.isub=function(l,y){this._verify2(l,y);var T=l.isub(y);return T.cmpn(0)<0&&T.iadd(this.m),T},i.prototype.shl=function(l,y){return this._verify1(l),this.imod(l.ushln(y))},i.prototype.imul=function(l,y){return this._verify2(l,y),this.imod(l.imul(y))},i.prototype.mul=function(l,y){return this._verify2(l,y),this.imod(l.mul(y))},i.prototype.isqr=function(l){return this.imul(l,l.clone())},i.prototype.sqr=function(l){return this.mul(l,l)},i.prototype.sqrt=function(l){if(l.isZero())return l.clone();var y=this.m.andln(3);if(b(y%2==1),3===y){var T=this.m.add(new s(1)).iushrn(2);return this.pow(l,T)}for(var L=this.m.subn(1),m=0;!L.isZero()&&0===L.andln(1);)m++,L.iushrn(1);b(!L.isZero());var n=new s(1).toRed(this),_=n.redNeg(),B=this.m.subn(1).iushrn(1),V=this.m.bitLength();for(V=new s(2*V*V).toRed(this);0!==this.pow(V,B).cmp(_);)V.redIAdd(_);for(var X=this.pow(V,L),Le=this.pow(l,L.addn(1).iushrn(1)),$e=this.pow(l,L),We=m;0!==$e.cmp(n);){for(var Fe=$e,De=0;0!==Fe.cmp(n);De++)Fe=Fe.redSqr();b(De<We);var ye=this.pow(X,new s(1).iushln(We-De-1));Le=Le.redMul(ye),X=ye.redSqr(),$e=$e.redMul(X),We=De}return Le},i.prototype.invm=function(l){var y=l._invmp(this.m);return 0!==y.negative?(y.negative=0,this.imod(y).redNeg()):this.imod(y)},i.prototype.pow=function(l,y){if(y.isZero())return new s(1).toRed(this);if(0===y.cmpn(1))return l.clone();var L=new Array(16);L[0]=new s(1).toRed(this),L[1]=l;for(var m=2;m<L.length;m++)L[m]=this.mul(L[m-1],l);var n=L[0],_=0,B=0,V=y.bitLength()%26;for(0===V&&(V=26),m=y.length-1;m>=0;m--){for(var X=y.words[m],Le=V-1;Le>=0;Le--){var $e=X>>Le&1;n!==L[0]&&(n=this.sqr(n)),0!==$e||0!==_?(_<<=1,_|=$e,(4==++B||0===m&&0===Le)&&(n=this.mul(n,L[_]),B=0,_=0)):B=0}V=26}return n},i.prototype.convertTo=function(l){var y=l.umod(this.m);return y===l?y.clone():y},i.prototype.convertFrom=function(l){var y=l.clone();return y.red=null,y},s.mont=function(l){return new a(l)},I(a,i),a.prototype.convertTo=function(l){return this.imod(l.ushln(this.shift))},a.prototype.convertFrom=function(l){var y=this.imod(l.mul(this.rinv));return y.red=null,y},a.prototype.imul=function(l,y){if(l.isZero()||y.isZero())return l.words[0]=0,l.length=1,l;var T=l.imul(y),L=T.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),m=T.isub(L).iushrn(this.shift),n=m;return m.cmp(this.m)>=0?n=m.isub(this.m):m.cmpn(0)<0&&(n=m.iadd(this.m)),n._forceRed(this)},a.prototype.mul=function(l,y){if(l.isZero()||y.isZero())return new s(0)._forceRed(this);var T=l.mul(y),L=T.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),m=T.isub(L).iushrn(this.shift),n=m;return m.cmp(this.m)>=0?n=m.isub(this.m):m.cmpn(0)<0&&(n=m.iadd(this.m)),n._forceRed(this)},a.prototype.invm=function(l){return this.imod(l._invmp(this.m).mul(this.r2))._forceRed(this)}}(Ve=p.nmd(Ve),this)},7950:(Ve,q,p)=>{var t;function e(I){this.rand=I}if(Ve.exports=function(s){return t||(t=new e(null)),t.generate(s)},Ve.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 C=new Uint8Array(s),h=0;h<C.length;h++)C[h]=this.rand.getByte();return C},"object"==typeof self)self.crypto&&self.crypto.getRandomValues?e.prototype._rand=function(s){var C=new Uint8Array(s);return self.crypto.getRandomValues(C),C}:self.msCrypto&&self.msCrypto.getRandomValues?e.prototype._rand=function(s){var C=new Uint8Array(s);return self.msCrypto.getRandomValues(C),C}:"object"==typeof window&&(e.prototype._rand=function(){throw new Error("Not implemented yet")});else try{var b=p(1348);if("function"!=typeof b.randomBytes)throw new Error("Not supported");e.prototype._rand=function(s){return b.randomBytes(s)}}catch{}},1899:(Ve,q,p)=>{var t=p(3502).Buffer;function e(P){t.isBuffer(P)||(P=t.from(P));for(var d=P.length/4|0,S=new Array(d),w=0;w<d;w++)S[w]=P.readUInt32BE(4*w);return S}function b(P){for(;0<P.length;P++)P[0]=0}function I(P,d,S,w,O){for(var ue,le,ne,de,E=S[0],R=S[1],z=S[2],U=S[3],W=P[0]^d[0],K=P[1]^d[1],ee=P[2]^d[2],ie=P[3]^d[3],$=4,me=1;me<O;me++)ue=E[W>>>24]^R[K>>>16&255]^z[ee>>>8&255]^U[255&ie]^d[$++],le=E[K>>>24]^R[ee>>>16&255]^z[ie>>>8&255]^U[255&W]^d[$++],ne=E[ee>>>24]^R[ie>>>16&255]^z[W>>>8&255]^U[255&K]^d[$++],de=E[ie>>>24]^R[W>>>16&255]^z[K>>>8&255]^U[255&ee]^d[$++],W=ue,K=le,ee=ne,ie=de;return ue=(w[W>>>24]<<24|w[K>>>16&255]<<16|w[ee>>>8&255]<<8|w[255&ie])^d[$++],le=(w[K>>>24]<<24|w[ee>>>16&255]<<16|w[ie>>>8&255]<<8|w[255&W])^d[$++],ne=(w[ee>>>24]<<24|w[ie>>>16&255]<<16|w[W>>>8&255]<<8|w[255&K])^d[$++],de=(w[ie>>>24]<<24|w[W>>>16&255]<<16|w[K>>>8&255]<<8|w[255&ee])^d[$++],[ue>>>=0,le>>>=0,ne>>>=0,de>>>=0]}var s=[0,1,2,4,8,16,32,64,128,27,54],C=function(){for(var P=new Array(256),d=0;d<256;d++)P[d]=d<128?d<<1:d<<1^283;for(var S=[],w=[],O=[[],[],[],[]],E=[[],[],[],[]],R=0,z=0,U=0;U<256;++U){var W=z^z<<1^z<<2^z<<3^z<<4;S[R]=W=W>>>8^255&W^99,w[W]=R;var K=P[R],ee=P[K],ie=P[ee],ue=257*P[W]^16843008*W;O[0][R]=ue<<24|ue>>>8,O[1][R]=ue<<16|ue>>>16,O[2][R]=ue<<8|ue>>>24,O[3][R]=ue,E[0][W]=(ue=16843009*ie^65537*ee^257*K^16843008*R)<<24|ue>>>8,E[1][W]=ue<<16|ue>>>16,E[2][W]=ue<<8|ue>>>24,E[3][W]=ue,0===R?R=z=1:(R=K^P[P[P[ie^K]]],z^=P[P[z]])}return{SBOX:S,INV_SBOX:w,SUB_MIX:O,INV_SUB_MIX:E}}();function h(P){this._key=e(P),this._reset()}h.blockSize=16,h.keySize=32,h.prototype.blockSize=h.blockSize,h.prototype.keySize=h.keySize,h.prototype._reset=function(){for(var P=this._key,d=P.length,S=d+6,w=4*(S+1),O=[],E=0;E<d;E++)O[E]=P[E];for(E=d;E<w;E++){var R=O[E-1];E%d==0?(R=C.SBOX[(R=R<<8|R>>>24)>>>24]<<24|C.SBOX[R>>>16&255]<<16|C.SBOX[R>>>8&255]<<8|C.SBOX[255&R],R^=s[E/d|0]<<24):d>6&&E%d==4&&(R=C.SBOX[R>>>24]<<24|C.SBOX[R>>>16&255]<<16|C.SBOX[R>>>8&255]<<8|C.SBOX[255&R]),O[E]=O[E-d]^R}for(var z=[],U=0;U<w;U++){var W=w-U,K=O[W-(U%4?0:4)];z[U]=U<4||W<=4?K:C.INV_SUB_MIX[0][C.SBOX[K>>>24]]^C.INV_SUB_MIX[1][C.SBOX[K>>>16&255]]^C.INV_SUB_MIX[2][C.SBOX[K>>>8&255]]^C.INV_SUB_MIX[3][C.SBOX[255&K]]}this._nRounds=S,this._keySchedule=O,this._invKeySchedule=z},h.prototype.encryptBlockRaw=function(P){return I(P=e(P),this._keySchedule,C.SUB_MIX,C.SBOX,this._nRounds)},h.prototype.encryptBlock=function(P){var d=this.encryptBlockRaw(P),S=t.allocUnsafe(16);return S.writeUInt32BE(d[0],0),S.writeUInt32BE(d[1],4),S.writeUInt32BE(d[2],8),S.writeUInt32BE(d[3],12),S},h.prototype.decryptBlock=function(P){var d=(P=e(P))[1];P[1]=P[3],P[3]=d;var S=I(P,this._invKeySchedule,C.INV_SUB_MIX,C.INV_SBOX,this._nRounds),w=t.allocUnsafe(16);return w.writeUInt32BE(S[0],0),w.writeUInt32BE(S[3],4),w.writeUInt32BE(S[2],8),w.writeUInt32BE(S[1],12),w},h.prototype.scrub=function(){b(this._keySchedule),b(this._invKeySchedule),b(this._key)},Ve.exports.AES=h},9382:(Ve,q,p)=>{var t=p(1899),e=p(3502).Buffer,b=p(1052),I=p(3894),s=p(8857),C=p(8789),h=p(7968);function S(w,O,E,R){b.call(this);var z=e.alloc(4,0);this._cipher=new t.AES(O);var U=this._cipher.encryptBlock(z);this._ghash=new s(U),E=function d(w,O,E){if(12===O.length)return w._finID=e.concat([O,e.from([0,0,0,1])]),e.concat([O,e.from([0,0,0,2])]);var R=new s(E),z=O.length,U=z%16;R.update(O),U&&R.update(e.alloc(U=16-U,0)),R.update(e.alloc(8,0));var W=8*z,K=e.alloc(8);K.writeUIntBE(W,0,8),R.update(K),w._finID=R.state;var ee=e.from(w._finID);return h(ee),ee}(this,E,U),this._prev=e.from(E),this._cache=e.allocUnsafe(0),this._secCache=e.allocUnsafe(0),this._decrypt=R,this._alen=0,this._len=0,this._mode=w,this._authTag=null,this._called=!1}I(S,b),S.prototype._update=function(w){if(!this._called&&this._alen){var O=16-this._alen%16;O<16&&(O=e.alloc(O,0),this._ghash.update(O))}this._called=!0;var E=this._mode.encrypt(this,w);return this._ghash.update(this._decrypt?w:E),this._len+=w.length,E},S.prototype._final=function(){if(this._decrypt&&!this._authTag)throw new Error("Unsupported state or unable to authenticate data");var w=C(this._ghash.final(8*this._alen,8*this._len),this._cipher.encryptBlock(this._finID));if(this._decrypt&&function P(w,O){var E=0;w.length!==O.length&&E++;for(var R=Math.min(w.length,O.length),z=0;z<R;++z)E+=w[z]^O[z];return E}(w,this._authTag))throw new Error("Unsupported state or unable to authenticate data");this._authTag=w,this._cipher.scrub()},S.prototype.getAuthTag=function(){if(this._decrypt||!e.isBuffer(this._authTag))throw new Error("Attempting to get auth tag in unsupported state");return this._authTag},S.prototype.setAuthTag=function(O){if(!this._decrypt)throw new Error("Attempting to set auth tag in unsupported state");this._authTag=O},S.prototype.setAAD=function(O){if(this._called)throw new Error("Attempting to set AAD in unsupported state");this._ghash.update(O),this._alen+=O.length},Ve.exports=S},4330:(Ve,q,p)=>{var t=p(6900),e=p(856),b=p(4946);q.createCipher=q.Cipher=t.createCipher,q.createCipheriv=q.Cipheriv=t.createCipheriv,q.createDecipher=q.Decipher=e.createDecipher,q.createDecipheriv=q.Decipheriv=e.createDecipheriv,q.listCiphers=q.getCiphers=function I(){return Object.keys(b)}},856:(Ve,q,p)=>{var t=p(9382),e=p(3502).Buffer,b=p(9171),I=p(8441),s=p(1052),C=p(1899),h=p(347);function d(R,z,U){s.call(this),this._cache=new S,this._last=void 0,this._cipher=new C.AES(z),this._prev=e.from(U),this._mode=R,this._autopadding=!0}function S(){this.cache=e.allocUnsafe(0)}function O(R,z,U){var W=b[R.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 z&&(z=e.from(z)),z.length!==W.key/8)throw new TypeError("invalid key length "+z.length);return"stream"===W.type?new I(W.module,z,U,!0):"auth"===W.type?new t(W.module,z,U,!0):new d(W.module,z,U)}p(3894)(d,s),d.prototype._update=function(R){this._cache.add(R);for(var z,U,W=[];z=this._cache.get(this._autopadding);)U=this._mode.decrypt(this,z),W.push(U);return e.concat(W)},d.prototype._final=function(){var R=this._cache.flush();if(this._autopadding)return function w(R){var z=R[15];if(z<1||z>16)throw new Error("unable to decrypt data");for(var U=-1;++U<z;)if(R[U+(16-z)]!==z)throw new Error("unable to decrypt data");if(16!==z)return R.slice(0,16-z)}(this._mode.decrypt(this,R));if(R)throw new Error("data not multiple of block length")},d.prototype.setAutoPadding=function(R){return this._autopadding=!!R,this},S.prototype.add=function(R){this.cache=e.concat([this.cache,R])},S.prototype.get=function(R){var z;if(R){if(this.cache.length>16)return z=this.cache.slice(0,16),this.cache=this.cache.slice(16),z}else if(this.cache.length>=16)return z=this.cache.slice(0,16),this.cache=this.cache.slice(16),z;return null},S.prototype.flush=function(){if(this.cache.length)return this.cache},q.createDecipher=function E(R,z){var U=b[R.toLowerCase()];if(!U)throw new TypeError("invalid suite type");var W=h(z,!1,U.key,U.iv);return O(R,W.key,W.iv)},q.createDecipheriv=O},6900:(Ve,q,p)=>{var t=p(9171),e=p(9382),b=p(3502).Buffer,I=p(8441),s=p(1052),C=p(1899),h=p(347);function d(R,z,U){s.call(this),this._cache=new w,this._cipher=new C.AES(z),this._prev=b.from(U),this._mode=R,this._autopadding=!0}p(3894)(d,s),d.prototype._update=function(R){this._cache.add(R);for(var z,U,W=[];z=this._cache.get();)U=this._mode.encrypt(this,z),W.push(U);return b.concat(W)};var S=b.alloc(16,16);function w(){this.cache=b.allocUnsafe(0)}function O(R,z,U){var W=t[R.toLowerCase()];if(!W)throw new TypeError("invalid suite type");if("string"==typeof z&&(z=b.from(z)),z.length!==W.key/8)throw new TypeError("invalid key length "+z.length);if("string"==typeof U&&(U=b.from(U)),"GCM"!==W.mode&&U.length!==W.iv)throw new TypeError("invalid iv length "+U.length);return"stream"===W.type?new I(W.module,z,U):"auth"===W.type?new e(W.module,z,U):new d(W.module,z,U)}d.prototype._final=function(){var R=this._cache.flush();if(this._autopadding)return R=this._mode.encrypt(this,R),this._cipher.scrub(),R;if(!R.equals(S))throw this._cipher.scrub(),new Error("data not multiple of block length")},d.prototype.setAutoPadding=function(R){return this._autopadding=!!R,this},w.prototype.add=function(R){this.cache=b.concat([this.cache,R])},w.prototype.get=function(){if(this.cache.length>15){var R=this.cache.slice(0,16);return this.cache=this.cache.slice(16),R}return null},w.prototype.flush=function(){for(var R=16-this.cache.length,z=b.allocUnsafe(R),U=-1;++U<R;)z.writeUInt8(R,U);return b.concat([this.cache,z])},q.createCipheriv=O,q.createCipher=function E(R,z){var U=t[R.toLowerCase()];if(!U)throw new TypeError("invalid suite type");var W=h(z,!1,U.key,U.iv);return O(R,W.key,W.iv)}},8857:(Ve,q,p)=>{var t=p(3502).Buffer,e=t.alloc(16,0);function I(C){var h=t.allocUnsafe(16);return h.writeUInt32BE(C[0]>>>0,0),h.writeUInt32BE(C[1]>>>0,4),h.writeUInt32BE(C[2]>>>0,8),h.writeUInt32BE(C[3]>>>0,12),h}function s(C){this.h=C,this.state=t.alloc(16,0),this.cache=t.allocUnsafe(0)}s.prototype.ghash=function(C){for(var h=-1;++h<C.length;)this.state[h]^=C[h];this._multiply()},s.prototype._multiply=function(){for(var P,S,C=function b(C){return[C.readUInt32BE(0),C.readUInt32BE(4),C.readUInt32BE(8),C.readUInt32BE(12)]}(this.h),h=[0,0,0,0],w=-1;++w<128;){for(0!=(this.state[~~(w/8)]&1<<7-w%8)&&(h[0]^=C[0],h[1]^=C[1],h[2]^=C[2],h[3]^=C[3]),S=0!=(1&C[3]),P=3;P>0;P--)C[P]=C[P]>>>1|(1&C[P-1])<<31;C[0]=C[0]>>>1,S&&(C[0]=C[0]^225<<24)}this.state=I(h)},s.prototype.update=function(C){this.cache=t.concat([this.cache,C]);for(var h;this.cache.length>=16;)h=this.cache.slice(0,16),this.cache=this.cache.slice(16),this.ghash(h)},s.prototype.final=function(C,h){return this.cache.length&&this.ghash(t.concat([this.cache,e],16)),this.ghash(I([0,C,0,h])),this.state},Ve.exports=s},7968:Ve=>{Ve.exports=function q(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:(Ve,q,p)=>{var t=p(8789);q.encrypt=function(e,b){var I=t(b,e._prev);return e._prev=e._cipher.encryptBlock(I),e._prev},q.decrypt=function(e,b){var I=e._prev;e._prev=b;var s=e._cipher.decryptBlock(b);return t(s,I)}},9885:(Ve,q,p)=>{var t=p(3502).Buffer,e=p(8789);function b(I,s,C){var h=s.length,P=e(s,I._cache);return I._cache=I._cache.slice(h),I._prev=t.concat([I._prev,C?s:P]),P}q.encrypt=function(I,s,C){for(var P,h=t.allocUnsafe(0);s.length;){if(0===I._cache.length&&(I._cache=I._cipher.encryptBlock(I._prev),I._prev=t.allocUnsafe(0)),!(I._cache.length<=s.length)){h=t.concat([h,b(I,s,C)]);break}h=t.concat([h,b(I,s.slice(0,P=I._cache.length),C)]),s=s.slice(P)}return h}},6531:(Ve,q,p)=>{var t=p(3502).Buffer;function e(I,s,C){for(var w,O,P=-1,S=0;++P<8;)S+=(128&(O=I._cipher.encryptBlock(I._prev)[0]^(w=s&1<<7-P?128:0)))>>P%8,I._prev=b(I._prev,C?w:O);return S}function b(I,s){var C=I.length,h=-1,P=t.allocUnsafe(I.length);for(I=t.concat([I,t.from([s])]);++h<C;)P[h]=I[h]<<1|I[h+1]>>7;return P}q.encrypt=function(I,s,C){for(var h=s.length,P=t.allocUnsafe(h),d=-1;++d<h;)P[d]=e(I,s[d],C);return P}},1641:(Ve,q,p)=>{var t=p(3502).Buffer;function e(b,I,s){var h=b._cipher.encryptBlock(b._prev)[0]^I;return b._prev=t.concat([b._prev.slice(1),t.from([s?I:h])]),h}q.encrypt=function(b,I,s){for(var C=I.length,h=t.allocUnsafe(C),P=-1;++P<C;)h[P]=e(b,I[P],s);return h}},1150:(Ve,q,p)=>{var t=p(8789),e=p(3502).Buffer,b=p(7968);function I(C){var h=C._cipher.encryptBlockRaw(C._prev);return b(C._prev),h}q.encrypt=function(C,h){var P=Math.ceil(h.length/16),d=C._cache.length;C._cache=e.concat([C._cache,e.allocUnsafe(16*P)]);for(var S=0;S<P;S++){var w=I(C),O=d+16*S;C._cache.writeUInt32BE(w[0],O+0),C._cache.writeUInt32BE(w[1],O+4),C._cache.writeUInt32BE(w[2],O+8),C._cache.writeUInt32BE(w[3],O+12)}var E=C._cache.slice(0,h.length);return C._cache=C._cache.slice(h.length),t(h,E)}},1704:(Ve,q)=>{q.encrypt=function(p,t){return p._cipher.encryptBlock(t)},q.decrypt=function(p,t){return p._cipher.decryptBlock(t)}},9171:(Ve,q,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 b in e)e[b].module=t[e[b].mode];Ve.exports=e},6816:(Ve,q,p)=>{var t=p(8789);function e(b){return b._prev=b._cipher.encryptBlock(b._prev),b._prev}q.encrypt=function(b,I){for(;b._cache.length<I.length;)b._cache=Buffer.concat([b._cache,e(b)]);var s=b._cache.slice(0,I.length);return b._cache=b._cache.slice(I.length),t(I,s)}},8441:(Ve,q,p)=>{var t=p(1899),e=p(3502).Buffer,b=p(1052);function s(C,h,P,d){b.call(this),this._cipher=new t.AES(h),this._prev=e.from(P),this._cache=e.allocUnsafe(0),this._secCache=e.allocUnsafe(0),this._decrypt=d,this._mode=C}p(3894)(s,b),s.prototype._update=function(C){return this._mode.encrypt(this,C,this._decrypt)},s.prototype._final=function(){this._cipher.scrub()},Ve.exports=s},5255:(Ve,q,p)=>{var t=p(9004),e=p(4330),b=p(9171),I=p(1115),s=p(347);function P(w,O,E){if(w=w.toLowerCase(),b[w])return e.createCipheriv(w,O,E);if(I[w])return new t({key:O,iv:E,mode:w});throw new TypeError("invalid suite type")}function d(w,O,E){if(w=w.toLowerCase(),b[w])return e.createDecipheriv(w,O,E);if(I[w])return new t({key:O,iv:E,mode:w,decrypt:!0});throw new TypeError("invalid suite type")}q.createCipher=q.Cipher=function C(w,O){var E,R;if(w=w.toLowerCase(),b[w])E=b[w].key,R=b[w].iv;else{if(!I[w])throw new TypeError("invalid suite type");E=8*I[w].key,R=I[w].iv}var z=s(O,!1,E,R);return P(w,z.key,z.iv)},q.createCipheriv=q.Cipheriv=P,q.createDecipher=q.Decipher=function h(w,O){var E,R;if(w=w.toLowerCase(),b[w])E=b[w].key,R=b[w].iv;else{if(!I[w])throw new TypeError("invalid suite type");E=8*I[w].key,R=I[w].iv}var z=s(O,!1,E,R);return d(w,z.key,z.iv)},q.createDecipheriv=q.Decipheriv=d,q.listCiphers=q.getCiphers=function S(){return Object.keys(I).concat(e.getCiphers())}},9004:(Ve,q,p)=>{var t=p(1052),e=p(3684),b=p(3894),I=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 C(h){t.call(this);var S,P=h.mode.toLowerCase(),d=s[P];S=h.decrypt?"decrypt":"encrypt";var w=h.key;I.isBuffer(w)||(w=I.from(w)),("des-ede"===P||"des-ede-cbc"===P)&&(w=I.concat([w,w.slice(0,8)]));var O=h.iv;I.isBuffer(O)||(O=I.from(O)),this._des=d.create({key:w,iv:O,type:S})}s.des=s["des-cbc"],s.des3=s["des-ede3-cbc"],Ve.exports=C,b(C,t),C.prototype._update=function(h){return I.from(this._des.update(h))},C.prototype._final=function(){return I.from(this._des.final())}},1115:(Ve,q)=>{q["des-ecb"]={key:8,iv:0},q["des-cbc"]=q.des={key:8,iv:8},q["des-ede3-cbc"]=q.des3={key:24,iv:8},q["des-ede3"]={key:24,iv:0},q["des-ede-cbc"]={key:16,iv:8},q["des-ede"]={key:16,iv:0}},8466:(Ve,q,p)=>{var t=p(8538),e=p(3753);function I(C){var P,h=C.modulus.byteLength();do{P=new t(e(h))}while(P.cmp(C.modulus)>=0||!P.umod(C.prime1)||!P.umod(C.prime2));return P}function s(C,h){var P=function b(C){var h=I(C);return{blinder:h.toRed(t.mont(C.modulus)).redPow(new t(C.publicExponent)).fromRed(),unblinder:h.invm(C.modulus)}}(h),d=h.modulus.byteLength(),S=new t(C).mul(P.blinder).umod(h.modulus),w=S.toRed(t.mont(h.prime1)),O=S.toRed(t.mont(h.prime2)),E=h.coefficient,R=h.prime1,z=h.prime2,U=w.redPow(h.exponent1).fromRed(),W=O.redPow(h.exponent2).fromRed(),K=U.isub(W).imul(E).umod(R).imul(z);return W.iadd(K).imul(P.unblinder).umod(h.modulus).toArrayLike(Buffer,"be",d)}s.getr=I,Ve.exports=s},7793:(Ve,q,p)=>{Ve.exports=p(5207)},3923:(Ve,q,p)=>{var t=p(3502).Buffer,e=p(6386),b=p(5685),I=p(3894),s=p(9947),C=p(3946),h=p(5207);function P(O){b.Writable.call(this);var E=h[O];if(!E)throw new Error("Unknown message digest");this._hashType=E.hash,this._hash=e(E.hash),this._tag=E.id,this._signType=E.sign}function d(O){b.Writable.call(this);var E=h[O];if(!E)throw new Error("Unknown message digest");this._hash=e(E.hash),this._tag=E.id,this._signType=E.sign}function S(O){return new P(O)}function w(O){return new d(O)}Object.keys(h).forEach(function(O){h[O].id=t.from(h[O].id,"hex"),h[O.toLowerCase()]=h[O]}),I(P,b.Writable),P.prototype._write=function(E,R,z){this._hash.update(E),z()},P.prototype.update=function(E,R){return"string"==typeof E&&(E=t.from(E,R)),this._hash.update(E),this},P.prototype.sign=function(E,R){this.end();var z=this._hash.digest(),U=s(z,E,this._hashType,this._signType,this._tag);return R?U.toString(R):U},I(d,b.Writable),d.prototype._write=function(E,R,z){this._hash.update(E),z()},d.prototype.update=function(E,R){return"string"==typeof E&&(E=t.from(E,R)),this._hash.update(E),this},d.prototype.verify=function(E,R,z){"string"==typeof R&&(R=t.from(R,z)),this.end();var U=this._hash.digest();return C(R,U,E,this._signType,this._tag)},Ve.exports={Sign:S,Verify:w,createSign:S,createVerify:w}},9947:(Ve,q,p)=>{var t=p(3502).Buffer,e=p(4529),b=p(8466),I=p(7715).ec,s=p(8538),C=p(2772),h=p(1308);function O(W,K,ee,ie){if((W=t.from(W.toArray())).length<K.byteLength()){var ue=t.alloc(K.byteLength()-W.length);W=t.concat([ue,W])}var le=ee.length,ne=function R(W,K){W=(W=E(W,K)).mod(K);var ee=t.from(W.toArray());if(ee.length<K.byteLength()){var ie=t.alloc(K.byteLength()-ee.length);ee=t.concat([ie,ee])}return ee}(ee,K),de=t.alloc(le);de.fill(1);var $=t.alloc(le);return $=e(ie,$).update(de).update(t.from([0])).update(W).update(ne).digest(),de=e(ie,$).update(de).digest(),{k:$=e(ie,$).update(de).update(t.from([1])).update(W).update(ne).digest(),v:de=e(ie,$).update(de).digest()}}function E(W,K){var ee=new s(W),ie=(W.length<<3)-K.bitLength();return ie>0&&ee.ishrn(ie),ee}function z(W,K,ee){var ie,ue;do{for(ie=t.alloc(0);8*ie.length<W.bitLength();)K.v=e(ee,K.k).update(K.v).digest(),ie=t.concat([ie,K.v]);ue=E(ie,W),K.k=e(ee,K.k).update(K.v).update(t.from([0])).digest(),K.v=e(ee,K.k).update(K.v).digest()}while(-1!==ue.cmp(W));return ue}function U(W,K,ee,ie){return W.toRed(s.mont(ee)).redPow(K).fromRed().mod(ie)}Ve.exports=function P(W,K,ee,ie,ue){var le=C(K);if(le.curve){if("ecdsa"!==ie&&"ecdsa/rsa"!==ie)throw new Error("wrong private key type");return function d(W,K){var ee=h[K.curve.join(".")];if(!ee)throw new Error("unknown curve "+K.curve.join("."));var le=new I(ee).keyFromPrivate(K.privateKey).sign(W);return t.from(le.toDER())}(W,le)}if("dsa"===le.type){if("dsa"!==ie)throw new Error("wrong private key type");return function S(W,K,ee){for(var $,ie=K.params.priv_key,ue=K.params.p,le=K.params.q,ne=K.params.g,de=new s(0),me=E(W,le).mod(le),A=!1,i=O(ie,le,W,ee);!1===A;)de=U(ne,$=z(le,i,ee),ue,le),0===(A=$.invm(le).imul(me.add(ie.mul(de))).mod(le)).cmpn(0)&&(A=!1,de=new s(0));return function w(W,K){W=W.toArray(),K=K.toArray(),128&W[0]&&(W=[0].concat(W)),128&K[0]&&(K=[0].concat(K));var ie=[48,W.length+K.length+4,2,W.length];return ie=ie.concat(W,[2,K.length],K),t.from(ie)}(de,A)}(W,le,ee)}if("rsa"!==ie&&"ecdsa/rsa"!==ie)throw new Error("wrong private key type");W=t.concat([ue,W]);for(var ne=le.modulus.byteLength(),de=[0,1];W.length+de.length+1<ne;)de.push(255);de.push(0);for(var $=-1;++$<W.length;)de.push(W[$]);return b(de,le)},Ve.exports.getKey=O,Ve.exports.makeKey=z},3946:(Ve,q,p)=>{var t=p(3502).Buffer,e=p(8538),b=p(7715).ec,I=p(2772),s=p(1308);function d(S,w){if(S.cmpn(0)<=0)throw new Error("invalid sig");if(S.cmp(w)>=w)throw new Error("invalid sig")}Ve.exports=function C(S,w,O,E,R){var z=I(O);if("ec"===z.type){if("ecdsa"!==E&&"ecdsa/rsa"!==E)throw new Error("wrong public key type");return function h(S,w,O){var E=s[O.data.algorithm.curve.join(".")];if(!E)throw new Error("unknown curve "+O.data.algorithm.curve.join("."));return new b(E).verify(w,S,O.data.subjectPrivateKey.data)}(S,w,z)}if("dsa"===z.type){if("dsa"!==E)throw new Error("wrong public key type");return function P(S,w,O){var E=O.data.p,R=O.data.q,z=O.data.g,U=O.data.pub_key,W=I.signature.decode(S,"der"),K=W.s,ee=W.r;d(K,R),d(ee,R);var ie=e.mont(E),ue=K.invm(R);return 0===z.toRed(ie).redPow(new e(w).mul(ue).mod(R)).fromRed().mul(U.toRed(ie).redPow(ee.mul(ue).mod(R)).fromRed()).mod(E).mod(R).cmp(ee)}(S,w,z)}if("rsa"!==E&&"ecdsa/rsa"!==E)throw new Error("wrong public key type");w=t.concat([R,w]);for(var U=z.modulus.byteLength(),W=[1],K=0;w.length+W.length+2<U;)W.push(255),K++;W.push(0);for(var ee=-1;++ee<w.length;)W.push(w[ee]);W=t.from(W);var ie=e.mont(z.modulus);S=(S=new e(S).toRed(ie)).redPow(new e(z.publicExponent)),S=t.from(S.fromRed().toArray());var ue=K<8?1:0;for(U=Math.min(S.length,W.length),S.length!==W.length&&(ue=1),ee=-1;++ee<U;)ue|=S[ee]^W[ee];return 0===ue}},8789:Ve=>{Ve.exports=function(p,t){for(var e=Math.min(p.length,t.length),b=new Buffer(e),I=0;I<e;++I)b[I]=p[I]^t[I];return b}},3172:(Ve,q,p)=>{"use strict";var t=p(5343),e=p(8461),b="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):null;q.Buffer=h,q.SlowBuffer=function K(he){return+he!=he&&(he=0),h.alloc(+he)},q.INSPECT_MAX_BYTES=50;var I=2147483647;function C(he){if(he>I)throw new RangeError('The value "'+he+'" is invalid for option "size"');var Ce=new Uint8Array(he);return Object.setPrototypeOf(Ce,h.prototype),Ce}function h(he,Ce,te){if("number"==typeof he){if("string"==typeof Ce)throw new TypeError('The "string" argument must be of type string. Received type number');return w(he)}return P(he,Ce,te)}function P(he,Ce,te){if("string"==typeof he)return function O(he,Ce){if(("string"!=typeof Ce||""===Ce)&&(Ce="utf8"),!h.isEncoding(Ce))throw new TypeError("Unknown encoding: "+Ce);var te=0|ee(he,Ce),Ue=C(te),Be=Ue.write(he,Ce);return Be!==te&&(Ue=Ue.slice(0,Be)),Ue}(he,Ce);if(ArrayBuffer.isView(he))return function R(he){if(oe(he,Uint8Array)){var Ce=new Uint8Array(he);return z(Ce.buffer,Ce.byteOffset,Ce.byteLength)}return E(he)}(he);if(null==he)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof he);if(oe(he,ArrayBuffer)||he&&oe(he.buffer,ArrayBuffer)||typeof SharedArrayBuffer<"u"&&(oe(he,SharedArrayBuffer)||he&&oe(he.buffer,SharedArrayBuffer)))return z(he,Ce,te);if("number"==typeof he)throw new TypeError('The "value" argument must not be of type number. Received type number');var Ue=he.valueOf&&he.valueOf();if(null!=Ue&&Ue!==he)return h.from(Ue,Ce,te);var Be=function U(he){if(h.isBuffer(he)){var Ce=0|W(he.length),te=C(Ce);return 0===te.length||he.copy(te,0,0,Ce),te}return void 0!==he.length?"number"!=typeof he.length||je(he.length)?C(0):E(he):"Buffer"===he.type&&Array.isArray(he.data)?E(he.data):void 0}(he);if(Be)return Be;if(typeof Symbol<"u"&&null!=Symbol.toPrimitive&&"function"==typeof he[Symbol.toPrimitive])return h.from(he[Symbol.toPrimitive]("string"),Ce,te);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof he)}function d(he){if("number"!=typeof he)throw new TypeError('"size" argument must be of type number');if(he<0)throw new RangeError('The value "'+he+'" is invalid for option "size"')}function w(he){return d(he),C(he<0?0:0|W(he))}function E(he){for(var Ce=he.length<0?0:0|W(he.length),te=C(Ce),Ue=0;Ue<Ce;Ue+=1)te[Ue]=255&he[Ue];return te}function z(he,Ce,te){if(Ce<0||he.byteLength<Ce)throw new RangeError('"offset" is outside of buffer bounds');if(he.byteLength<Ce+(te||0))throw new RangeError('"length" is outside of buffer bounds');var Ue;return Ue=void 0===Ce&&void 0===te?new Uint8Array(he):void 0===te?new Uint8Array(he,Ce):new Uint8Array(he,Ce,te),Object.setPrototypeOf(Ue,h.prototype),Ue}function W(he){if(he>=I)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+I.toString(16)+" bytes");return 0|he}function ee(he,Ce){if(h.isBuffer(he))return he.length;if(ArrayBuffer.isView(he)||oe(he,ArrayBuffer))return he.byteLength;if("string"!=typeof he)throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof he);var te=he.length,Ue=arguments.length>2&&!0===arguments[2];if(!Ue&&0===te)return 0;for(var Be=!1;;)switch(Ce){case"ascii":case"latin1":case"binary":return te;case"utf8":case"utf-8":return Fe(he).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*te;case"hex":return te>>>1;case"base64":return ce(he).length;default:if(Be)return Ue?-1:Fe(he).length;Ce=(""+Ce).toLowerCase(),Be=!0}}function ie(he,Ce,te){var Ue=!1;if((void 0===Ce||Ce<0)&&(Ce=0),Ce>this.length||((void 0===te||te>this.length)&&(te=this.length),te<=0)||(te>>>=0)<=(Ce>>>=0))return"";for(he||(he="utf8");;)switch(he){case"hex":return m(this,Ce,te);case"utf8":case"utf-8":return u(this,Ce,te);case"ascii":return T(this,Ce,te);case"latin1":case"binary":return L(this,Ce,te);case"base64":return a(this,Ce,te);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return n(this,Ce,te);default:if(Ue)throw new TypeError("Unknown encoding: "+he);he=(he+"").toLowerCase(),Ue=!0}}function ue(he,Ce,te){var Ue=he[Ce];he[Ce]=he[te],he[te]=Ue}function le(he,Ce,te,Ue,Be){if(0===he.length)return-1;if("string"==typeof te?(Ue=te,te=0):te>2147483647?te=2147483647:te<-2147483648&&(te=-2147483648),je(te=+te)&&(te=Be?0:he.length-1),te<0&&(te=he.length+te),te>=he.length){if(Be)return-1;te=he.length-1}else if(te<0){if(!Be)return-1;te=0}if("string"==typeof Ce&&(Ce=h.from(Ce,Ue)),h.isBuffer(Ce))return 0===Ce.length?-1:ne(he,Ce,te,Ue,Be);if("number"==typeof Ce)return Ce&=255,"function"==typeof Uint8Array.prototype.indexOf?Be?Uint8Array.prototype.indexOf.call(he,Ce,te):Uint8Array.prototype.lastIndexOf.call(he,Ce,te):ne(he,[Ce],te,Ue,Be);throw new TypeError("val must be string, number or Buffer")}function ne(he,Ce,te,Ue,Be){var dt,ae=1,ge=he.length,ft=Ce.length;if(void 0!==Ue&&("ucs2"===(Ue=String(Ue).toLowerCase())||"ucs-2"===Ue||"utf16le"===Ue||"utf-16le"===Ue)){if(he.length<2||Ce.length<2)return-1;ae=2,ge/=2,ft/=2,te/=2}function Je(wt,ke){return 1===ae?wt[ke]:wt.readUInt16BE(ke*ae)}if(Be){var Et=-1;for(dt=te;dt<ge;dt++)if(Je(he,dt)===Je(Ce,-1===Et?0:dt-Et)){if(-1===Et&&(Et=dt),dt-Et+1===ft)return Et*ae}else-1!==Et&&(dt-=dt-Et),Et=-1}else for(te+ft>ge&&(te=ge-ft),dt=te;dt>=0;dt--){for(var pt=!0,ot=0;ot<ft;ot++)if(Je(he,dt+ot)!==Je(Ce,ot)){pt=!1;break}if(pt)return dt}return-1}function de(he,Ce,te,Ue){te=Number(te)||0;var Be=he.length-te;Ue?(Ue=Number(Ue))>Be&&(Ue=Be):Ue=Be;var ae=Ce.length;Ue>ae/2&&(Ue=ae/2);for(var ge=0;ge<Ue;++ge){var ft=parseInt(Ce.substr(2*ge,2),16);if(je(ft))return ge;he[te+ge]=ft}return ge}function $(he,Ce,te,Ue){return ve(Fe(Ce,he.length-te),he,te,Ue)}function me(he,Ce,te,Ue){return ve(function De(he){for(var Ce=[],te=0;te<he.length;++te)Ce.push(255&he.charCodeAt(te));return Ce}(Ce),he,te,Ue)}function A(he,Ce,te,Ue){return ve(ce(Ce),he,te,Ue)}function i(he,Ce,te,Ue){return ve(function ye(he,Ce){for(var te,Ue,ae=[],ge=0;ge<he.length&&!((Ce-=2)<0);++ge)Ue=(te=he.charCodeAt(ge))>>8,ae.push(te%256),ae.push(Ue);return ae}(Ce,he.length-te),he,te,Ue)}function a(he,Ce,te){return t.fromByteArray(0===Ce&&te===he.length?he:he.slice(Ce,te))}function u(he,Ce,te){te=Math.min(he.length,te);for(var Ue=[],Be=Ce;Be<te;){var Je,dt,Et,pt,ae=he[Be],ge=null,ft=ae>239?4:ae>223?3:ae>191?2:1;if(Be+ft<=te)switch(ft){case 1:ae<128&&(ge=ae);break;case 2:128==(192&(Je=he[Be+1]))&&(pt=(31&ae)<<6|63&Je)>127&&(ge=pt);break;case 3:dt=he[Be+2],128==(192&(Je=he[Be+1]))&&128==(192&dt)&&(pt=(15&ae)<<12|(63&Je)<<6|63&dt)>2047&&(pt<55296||pt>57343)&&(ge=pt);break;case 4:dt=he[Be+2],Et=he[Be+3],128==(192&(Je=he[Be+1]))&&128==(192&dt)&&128==(192&Et)&&(pt=(15&ae)<<18|(63&Je)<<12|(63&dt)<<6|63&Et)>65535&&pt<1114112&&(ge=pt)}null===ge?(ge=65533,ft=1):ge>65535&&(Ue.push((ge-=65536)>>>10&1023|55296),ge=56320|1023&ge),Ue.push(ge),Be+=ft}return function y(he){var Ce=he.length;if(Ce<=l)return String.fromCharCode.apply(String,he);for(var te="",Ue=0;Ue<Ce;)te+=String.fromCharCode.apply(String,he.slice(Ue,Ue+=l));return te}(Ue)}q.kMaxLength=I,!(h.TYPED_ARRAY_SUPPORT=function s(){try{var he=new Uint8Array(1),Ce={foo:function(){return 42}};return Object.setPrototypeOf(Ce,Uint8Array.prototype),Object.setPrototypeOf(he,Ce),42===he.foo()}catch{return!1}}())&&typeof console<"u"&&"function"==typeof console.error&&console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support."),Object.defineProperty(h.prototype,"parent",{enumerable:!0,get:function(){if(h.isBuffer(this))return this.buffer}}),Object.defineProperty(h.prototype,"offset",{enumerable:!0,get:function(){if(h.isBuffer(this))return this.byteOffset}}),h.poolSize=8192,h.from=function(he,Ce,te){return P(he,Ce,te)},Object.setPrototypeOf(h.prototype,Uint8Array.prototype),Object.setPrototypeOf(h,Uint8Array),h.alloc=function(he,Ce,te){return function S(he,Ce,te){return d(he),he<=0?C(he):void 0!==Ce?"string"==typeof te?C(he).fill(Ce,te):C(he).fill(Ce):C(he)}(he,Ce,te)},h.allocUnsafe=function(he){return w(he)},h.allocUnsafeSlow=function(he){return w(he)},h.isBuffer=function(Ce){return null!=Ce&&!0===Ce._isBuffer&&Ce!==h.prototype},h.compare=function(Ce,te){if(oe(Ce,Uint8Array)&&(Ce=h.from(Ce,Ce.offset,Ce.byteLength)),oe(te,Uint8Array)&&(te=h.from(te,te.offset,te.byteLength)),!h.isBuffer(Ce)||!h.isBuffer(te))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(Ce===te)return 0;for(var Ue=Ce.length,Be=te.length,ae=0,ge=Math.min(Ue,Be);ae<ge;++ae)if(Ce[ae]!==te[ae]){Ue=Ce[ae],Be=te[ae];break}return Ue<Be?-1:Be<Ue?1:0},h.isEncoding=function(Ce){switch(String(Ce).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},h.concat=function(Ce,te){if(!Array.isArray(Ce))throw new TypeError('"list" argument must be an Array of Buffers');if(0===Ce.length)return h.alloc(0);var Ue;if(void 0===te)for(te=0,Ue=0;Ue<Ce.length;++Ue)te+=Ce[Ue].length;var Be=h.allocUnsafe(te),ae=0;for(Ue=0;Ue<Ce.length;++Ue){var ge=Ce[Ue];if(oe(ge,Uint8Array))ae+ge.length>Be.length?h.from(ge).copy(Be,ae):Uint8Array.prototype.set.call(Be,ge,ae);else{if(!h.isBuffer(ge))throw new TypeError('"list" argument must be an Array of Buffers');ge.copy(Be,ae)}ae+=ge.length}return Be},h.byteLength=ee,h.prototype._isBuffer=!0,h.prototype.swap16=function(){var Ce=this.length;if(Ce%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var te=0;te<Ce;te+=2)ue(this,te,te+1);return this},h.prototype.swap32=function(){var Ce=this.length;if(Ce%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var te=0;te<Ce;te+=4)ue(this,te,te+3),ue(this,te+1,te+2);return this},h.prototype.swap64=function(){var Ce=this.length;if(Ce%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var te=0;te<Ce;te+=8)ue(this,te,te+7),ue(this,te+1,te+6),ue(this,te+2,te+5),ue(this,te+3,te+4);return this},h.prototype.toLocaleString=h.prototype.toString=function(){var Ce=this.length;return 0===Ce?"":0===arguments.length?u(this,0,Ce):ie.apply(this,arguments)},h.prototype.equals=function(Ce){if(!h.isBuffer(Ce))throw new TypeError("Argument must be a Buffer");return this===Ce||0===h.compare(this,Ce)},h.prototype.inspect=function(){var Ce="",te=q.INSPECT_MAX_BYTES;return Ce=this.toString("hex",0,te).replace(/(.{2})/g,"$1 ").trim(),this.length>te&&(Ce+=" ... "),"<Buffer "+Ce+">"},b&&(h.prototype[b]=h.prototype.inspect),h.prototype.compare=function(Ce,te,Ue,Be,ae){if(oe(Ce,Uint8Array)&&(Ce=h.from(Ce,Ce.offset,Ce.byteLength)),!h.isBuffer(Ce))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof Ce);if(void 0===te&&(te=0),void 0===Ue&&(Ue=Ce?Ce.length:0),void 0===Be&&(Be=0),void 0===ae&&(ae=this.length),te<0||Ue>Ce.length||Be<0||ae>this.length)throw new RangeError("out of range index");if(Be>=ae&&te>=Ue)return 0;if(Be>=ae)return-1;if(te>=Ue)return 1;if(this===Ce)return 0;for(var ge=(ae>>>=0)-(Be>>>=0),ft=(Ue>>>=0)-(te>>>=0),Je=Math.min(ge,ft),dt=this.slice(Be,ae),Et=Ce.slice(te,Ue),pt=0;pt<Je;++pt)if(dt[pt]!==Et[pt]){ge=dt[pt],ft=Et[pt];break}return ge<ft?-1:ft<ge?1:0},h.prototype.includes=function(Ce,te,Ue){return-1!==this.indexOf(Ce,te,Ue)},h.prototype.indexOf=function(Ce,te,Ue){return le(this,Ce,te,Ue,!0)},h.prototype.lastIndexOf=function(Ce,te,Ue){return le(this,Ce,te,Ue,!1)},h.prototype.write=function(Ce,te,Ue,Be){if(void 0===te)Be="utf8",Ue=this.length,te=0;else if(void 0===Ue&&"string"==typeof te)Be=te,Ue=this.length,te=0;else{if(!isFinite(te))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");te>>>=0,isFinite(Ue)?(Ue>>>=0,void 0===Be&&(Be="utf8")):(Be=Ue,Ue=void 0)}var ae=this.length-te;if((void 0===Ue||Ue>ae)&&(Ue=ae),Ce.length>0&&(Ue<0||te<0)||te>this.length)throw new RangeError("Attempt to write outside buffer bounds");Be||(Be="utf8");for(var ge=!1;;)switch(Be){case"hex":return de(this,Ce,te,Ue);case"utf8":case"utf-8":return $(this,Ce,te,Ue);case"ascii":case"latin1":case"binary":return me(this,Ce,te,Ue);case"base64":return A(this,Ce,te,Ue);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return i(this,Ce,te,Ue);default:if(ge)throw new TypeError("Unknown encoding: "+Be);Be=(""+Be).toLowerCase(),ge=!0}},h.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var l=4096;function T(he,Ce,te){var Ue="";te=Math.min(he.length,te);for(var Be=Ce;Be<te;++Be)Ue+=String.fromCharCode(127&he[Be]);return Ue}function L(he,Ce,te){var Ue="";te=Math.min(he.length,te);for(var Be=Ce;Be<te;++Be)Ue+=String.fromCharCode(he[Be]);return Ue}function m(he,Ce,te){var Ue=he.length;(!Ce||Ce<0)&&(Ce=0),(!te||te<0||te>Ue)&&(te=Ue);for(var Be="",ae=Ce;ae<te;++ae)Be+=Ae[he[ae]];return Be}function n(he,Ce,te){for(var Ue=he.slice(Ce,te),Be="",ae=0;ae<Ue.length-1;ae+=2)Be+=String.fromCharCode(Ue[ae]+256*Ue[ae+1]);return Be}function _(he,Ce,te){if(he%1!=0||he<0)throw new RangeError("offset is not uint");if(he+Ce>te)throw new RangeError("Trying to access beyond buffer length")}function B(he,Ce,te,Ue,Be,ae){if(!h.isBuffer(he))throw new TypeError('"buffer" argument must be a Buffer instance');if(Ce>Be||Ce<ae)throw new RangeError('"value" argument is out of bounds');if(te+Ue>he.length)throw new RangeError("Index out of range")}function V(he,Ce,te,Ue,Be,ae){if(te+Ue>he.length)throw new RangeError("Index out of range");if(te<0)throw new RangeError("Index out of range")}function X(he,Ce,te,Ue,Be){return Ce=+Ce,te>>>=0,Be||V(he,0,te,4),e.write(he,Ce,te,Ue,23,4),te+4}function Le(he,Ce,te,Ue,Be){return Ce=+Ce,te>>>=0,Be||V(he,0,te,8),e.write(he,Ce,te,Ue,52,8),te+8}h.prototype.slice=function(Ce,te){var Ue=this.length;(Ce=~~Ce)<0?(Ce+=Ue)<0&&(Ce=0):Ce>Ue&&(Ce=Ue),(te=void 0===te?Ue:~~te)<0?(te+=Ue)<0&&(te=0):te>Ue&&(te=Ue),te<Ce&&(te=Ce);var Be=this.subarray(Ce,te);return Object.setPrototypeOf(Be,h.prototype),Be},h.prototype.readUintLE=h.prototype.readUIntLE=function(Ce,te,Ue){Ce>>>=0,te>>>=0,Ue||_(Ce,te,this.length);for(var Be=this[Ce],ae=1,ge=0;++ge<te&&(ae*=256);)Be+=this[Ce+ge]*ae;return Be},h.prototype.readUintBE=h.prototype.readUIntBE=function(Ce,te,Ue){Ce>>>=0,te>>>=0,Ue||_(Ce,te,this.length);for(var Be=this[Ce+--te],ae=1;te>0&&(ae*=256);)Be+=this[Ce+--te]*ae;return Be},h.prototype.readUint8=h.prototype.readUInt8=function(Ce,te){return Ce>>>=0,te||_(Ce,1,this.length),this[Ce]},h.prototype.readUint16LE=h.prototype.readUInt16LE=function(Ce,te){return Ce>>>=0,te||_(Ce,2,this.length),this[Ce]|this[Ce+1]<<8},h.prototype.readUint16BE=h.prototype.readUInt16BE=function(Ce,te){return Ce>>>=0,te||_(Ce,2,this.length),this[Ce]<<8|this[Ce+1]},h.prototype.readUint32LE=h.prototype.readUInt32LE=function(Ce,te){return Ce>>>=0,te||_(Ce,4,this.length),(this[Ce]|this[Ce+1]<<8|this[Ce+2]<<16)+16777216*this[Ce+3]},h.prototype.readUint32BE=h.prototype.readUInt32BE=function(Ce,te){return Ce>>>=0,te||_(Ce,4,this.length),16777216*this[Ce]+(this[Ce+1]<<16|this[Ce+2]<<8|this[Ce+3])},h.prototype.readIntLE=function(Ce,te,Ue){Ce>>>=0,te>>>=0,Ue||_(Ce,te,this.length);for(var Be=this[Ce],ae=1,ge=0;++ge<te&&(ae*=256);)Be+=this[Ce+ge]*ae;return Be>=(ae*=128)&&(Be-=Math.pow(2,8*te)),Be},h.prototype.readIntBE=function(Ce,te,Ue){Ce>>>=0,te>>>=0,Ue||_(Ce,te,this.length);for(var Be=te,ae=1,ge=this[Ce+--Be];Be>0&&(ae*=256);)ge+=this[Ce+--Be]*ae;return ge>=(ae*=128)&&(ge-=Math.pow(2,8*te)),ge},h.prototype.readInt8=function(Ce,te){return Ce>>>=0,te||_(Ce,1,this.length),128&this[Ce]?-1*(255-this[Ce]+1):this[Ce]},h.prototype.readInt16LE=function(Ce,te){Ce>>>=0,te||_(Ce,2,this.length);var Ue=this[Ce]|this[Ce+1]<<8;return 32768&Ue?4294901760|Ue:Ue},h.prototype.readInt16BE=function(Ce,te){Ce>>>=0,te||_(Ce,2,this.length);var Ue=this[Ce+1]|this[Ce]<<8;return 32768&Ue?4294901760|Ue:Ue},h.prototype.readInt32LE=function(Ce,te){return Ce>>>=0,te||_(Ce,4,this.length),this[Ce]|this[Ce+1]<<8|this[Ce+2]<<16|this[Ce+3]<<24},h.prototype.readInt32BE=function(Ce,te){return Ce>>>=0,te||_(Ce,4,this.length),this[Ce]<<24|this[Ce+1]<<16|this[Ce+2]<<8|this[Ce+3]},h.prototype.readFloatLE=function(Ce,te){return Ce>>>=0,te||_(Ce,4,this.length),e.read(this,Ce,!0,23,4)},h.prototype.readFloatBE=function(Ce,te){return Ce>>>=0,te||_(Ce,4,this.length),e.read(this,Ce,!1,23,4)},h.prototype.readDoubleLE=function(Ce,te){return Ce>>>=0,te||_(Ce,8,this.length),e.read(this,Ce,!0,52,8)},h.prototype.readDoubleBE=function(Ce,te){return Ce>>>=0,te||_(Ce,8,this.length),e.read(this,Ce,!1,52,8)},h.prototype.writeUintLE=h.prototype.writeUIntLE=function(Ce,te,Ue,Be){Ce=+Ce,te>>>=0,Ue>>>=0,Be||B(this,Ce,te,Ue,Math.pow(2,8*Ue)-1,0);var ge=1,ft=0;for(this[te]=255&Ce;++ft<Ue&&(ge*=256);)this[te+ft]=Ce/ge&255;return te+Ue},h.prototype.writeUintBE=h.prototype.writeUIntBE=function(Ce,te,Ue,Be){Ce=+Ce,te>>>=0,Ue>>>=0,Be||B(this,Ce,te,Ue,Math.pow(2,8*Ue)-1,0);var ge=Ue-1,ft=1;for(this[te+ge]=255&Ce;--ge>=0&&(ft*=256);)this[te+ge]=Ce/ft&255;return te+Ue},h.prototype.writeUint8=h.prototype.writeUInt8=function(Ce,te,Ue){return Ce=+Ce,te>>>=0,Ue||B(this,Ce,te,1,255,0),this[te]=255&Ce,te+1},h.prototype.writeUint16LE=h.prototype.writeUInt16LE=function(Ce,te,Ue){return Ce=+Ce,te>>>=0,Ue||B(this,Ce,te,2,65535,0),this[te]=255&Ce,this[te+1]=Ce>>>8,te+2},h.prototype.writeUint16BE=h.prototype.writeUInt16BE=function(Ce,te,Ue){return Ce=+Ce,te>>>=0,Ue||B(this,Ce,te,2,65535,0),this[te]=Ce>>>8,this[te+1]=255&Ce,te+2},h.prototype.writeUint32LE=h.prototype.writeUInt32LE=function(Ce,te,Ue){return Ce=+Ce,te>>>=0,Ue||B(this,Ce,te,4,4294967295,0),this[te+3]=Ce>>>24,this[te+2]=Ce>>>16,this[te+1]=Ce>>>8,this[te]=255&Ce,te+4},h.prototype.writeUint32BE=h.prototype.writeUInt32BE=function(Ce,te,Ue){return Ce=+Ce,te>>>=0,Ue||B(this,Ce,te,4,4294967295,0),this[te]=Ce>>>24,this[te+1]=Ce>>>16,this[te+2]=Ce>>>8,this[te+3]=255&Ce,te+4},h.prototype.writeIntLE=function(Ce,te,Ue,Be){if(Ce=+Ce,te>>>=0,!Be){var ae=Math.pow(2,8*Ue-1);B(this,Ce,te,Ue,ae-1,-ae)}var ge=0,ft=1,Je=0;for(this[te]=255&Ce;++ge<Ue&&(ft*=256);)Ce<0&&0===Je&&0!==this[te+ge-1]&&(Je=1),this[te+ge]=(Ce/ft>>0)-Je&255;return te+Ue},h.prototype.writeIntBE=function(Ce,te,Ue,Be){if(Ce=+Ce,te>>>=0,!Be){var ae=Math.pow(2,8*Ue-1);B(this,Ce,te,Ue,ae-1,-ae)}var ge=Ue-1,ft=1,Je=0;for(this[te+ge]=255&Ce;--ge>=0&&(ft*=256);)Ce<0&&0===Je&&0!==this[te+ge+1]&&(Je=1),this[te+ge]=(Ce/ft>>0)-Je&255;return te+Ue},h.prototype.writeInt8=function(Ce,te,Ue){return Ce=+Ce,te>>>=0,Ue||B(this,Ce,te,1,127,-128),Ce<0&&(Ce=255+Ce+1),this[te]=255&Ce,te+1},h.prototype.writeInt16LE=function(Ce,te,Ue){return Ce=+Ce,te>>>=0,Ue||B(this,Ce,te,2,32767,-32768),this[te]=255&Ce,this[te+1]=Ce>>>8,te+2},h.prototype.writeInt16BE=function(Ce,te,Ue){return Ce=+Ce,te>>>=0,Ue||B(this,Ce,te,2,32767,-32768),this[te]=Ce>>>8,this[te+1]=255&Ce,te+2},h.prototype.writeInt32LE=function(Ce,te,Ue){return Ce=+Ce,te>>>=0,Ue||B(this,Ce,te,4,2147483647,-2147483648),this[te]=255&Ce,this[te+1]=Ce>>>8,this[te+2]=Ce>>>16,this[te+3]=Ce>>>24,te+4},h.prototype.writeInt32BE=function(Ce,te,Ue){return Ce=+Ce,te>>>=0,Ue||B(this,Ce,te,4,2147483647,-2147483648),Ce<0&&(Ce=4294967295+Ce+1),this[te]=Ce>>>24,this[te+1]=Ce>>>16,this[te+2]=Ce>>>8,this[te+3]=255&Ce,te+4},h.prototype.writeFloatLE=function(Ce,te,Ue){return X(this,Ce,te,!0,Ue)},h.prototype.writeFloatBE=function(Ce,te,Ue){return X(this,Ce,te,!1,Ue)},h.prototype.writeDoubleLE=function(Ce,te,Ue){return Le(this,Ce,te,!0,Ue)},h.prototype.writeDoubleBE=function(Ce,te,Ue){return Le(this,Ce,te,!1,Ue)},h.prototype.copy=function(Ce,te,Ue,Be){if(!h.isBuffer(Ce))throw new TypeError("argument should be a Buffer");if(Ue||(Ue=0),!Be&&0!==Be&&(Be=this.length),te>=Ce.length&&(te=Ce.length),te||(te=0),Be>0&&Be<Ue&&(Be=Ue),Be===Ue||0===Ce.length||0===this.length)return 0;if(te<0)throw new RangeError("targetStart out of bounds");if(Ue<0||Ue>=this.length)throw new RangeError("Index out of range");if(Be<0)throw new RangeError("sourceEnd out of bounds");Be>this.length&&(Be=this.length),Ce.length-te<Be-Ue&&(Be=Ce.length-te+Ue);var ae=Be-Ue;return this===Ce&&"function"==typeof Uint8Array.prototype.copyWithin?this.copyWithin(te,Ue,Be):Uint8Array.prototype.set.call(Ce,this.subarray(Ue,Be),te),ae},h.prototype.fill=function(Ce,te,Ue,Be){if("string"==typeof Ce){if("string"==typeof te?(Be=te,te=0,Ue=this.length):"string"==typeof Ue&&(Be=Ue,Ue=this.length),void 0!==Be&&"string"!=typeof Be)throw new TypeError("encoding must be a string");if("string"==typeof Be&&!h.isEncoding(Be))throw new TypeError("Unknown encoding: "+Be);if(1===Ce.length){var ae=Ce.charCodeAt(0);("utf8"===Be&&ae<128||"latin1"===Be)&&(Ce=ae)}}else"number"==typeof Ce?Ce&=255:"boolean"==typeof Ce&&(Ce=Number(Ce));if(te<0||this.length<te||this.length<Ue)throw new RangeError("Out of range index");if(Ue<=te)return this;var ge;if(te>>>=0,Ue=void 0===Ue?this.length:Ue>>>0,Ce||(Ce=0),"number"==typeof Ce)for(ge=te;ge<Ue;++ge)this[ge]=Ce;else{var ft=h.isBuffer(Ce)?Ce:h.from(Ce,Be),Je=ft.length;if(0===Je)throw new TypeError('The value "'+Ce+'" is invalid for argument "value"');for(ge=0;ge<Ue-te;++ge)this[ge+te]=ft[ge%Je]}return this};var $e=/[^+/0-9A-Za-z-_]/g;function Fe(he,Ce){Ce=Ce||1/0;for(var te,Ue=he.length,Be=null,ae=[],ge=0;ge<Ue;++ge){if((te=he.charCodeAt(ge))>55295&&te<57344){if(!Be){if(te>56319){(Ce-=3)>-1&&ae.push(239,191,189);continue}if(ge+1===Ue){(Ce-=3)>-1&&ae.push(239,191,189);continue}Be=te;continue}if(te<56320){(Ce-=3)>-1&&ae.push(239,191,189),Be=te;continue}te=65536+(Be-55296<<10|te-56320)}else Be&&(Ce-=3)>-1&&ae.push(239,191,189);if(Be=null,te<128){if((Ce-=1)<0)break;ae.push(te)}else if(te<2048){if((Ce-=2)<0)break;ae.push(te>>6|192,63&te|128)}else if(te<65536){if((Ce-=3)<0)break;ae.push(te>>12|224,te>>6&63|128,63&te|128)}else{if(!(te<1114112))throw new Error("Invalid code point");if((Ce-=4)<0)break;ae.push(te>>18|240,te>>12&63|128,te>>6&63|128,63&te|128)}}return ae}function ce(he){return t.toByteArray(function We(he){if((he=(he=he.split("=")[0]).trim().replace($e,"")).length<2)return"";for(;he.length%4!=0;)he+="=";return he}(he))}function ve(he,Ce,te,Ue){for(var Be=0;Be<Ue&&!(Be+te>=Ce.length||Be>=he.length);++Be)Ce[Be+te]=he[Be];return Be}function oe(he,Ce){return he instanceof Ce||null!=he&&null!=he.constructor&&null!=he.constructor.name&&he.constructor.name===Ce.name}function je(he){return he!=he}var Ae=function(){for(var he="0123456789abcdef",Ce=new Array(256),te=0;te<16;++te)for(var Ue=16*te,Be=0;Be<16;++Be)Ce[Ue+Be]=he[te]+he[Be];return Ce}()},1052:(Ve,q,p)=>{var t=p(3502).Buffer,e=p(295).Transform,b=p(3054).s;function s(C){e.call(this),this.hashMode="string"==typeof C,this.hashMode?this[C]=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(C,h,P){"string"==typeof C&&(C=t.from(C,h));var d=this._update(C);return this.hashMode?this:(P&&(d=this._toString(d,P)),d)},s.prototype.setAutoPadding=function(){},s.prototype.getAuthTag=function(){throw new Error("trying to get auth tag in unsupported state")},s.prototype.setAuthTag=function(){throw new Error("trying to set auth tag in unsupported state")},s.prototype.setAAD=function(){throw new Error("trying to set aad in unsupported state")},s.prototype._transform=function(C,h,P){var d;try{this.hashMode?this._update(C):this.push(this._update(C))}catch(S){d=S}finally{P(d)}},s.prototype._flush=function(C){var h;try{this.push(this.__final())}catch(P){h=P}C(h)},s.prototype._finalOrDigest=function(C){var h=this.__final()||t.alloc(0);return C&&(h=this._toString(h,C,!0)),h},s.prototype._toString=function(C,h,P){if(this._decoder||(this._decoder=new b(h),this._encoding=h),this._encoding!==h)throw new Error("can't switch encodings");var d=this._decoder.write(C);return P&&(d+=this._decoder.end()),d},Ve.exports=s},6128:function(Ve){!function(q){"use strict";var p={bytesToHex:function(b){return function t(b){return b.map(function(I){return function e(b,I){return b.length>I?b:Array(I-b.length+1).join("0")+b}(I.toString(16),2)}).join("")}(b)},hexToBytes:function(b){if(b.length%2==1)throw new Error("hexToBytes can't have a string with an odd number of characters.");return 0===b.indexOf("0x")&&(b=b.slice(2)),b.match(/../g).map(function(I){return parseInt(I,16)})}};Ve.exports?Ve.exports=p:q.convertHex=p}(this)},5612:function(Ve){!function(q){"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)))}},Ve.exports?Ve.exports=p:q.convertString=p}(this)},4746:(Ve,q,p)=>{var t=p(7715),e=p(6422);Ve.exports=function(h){return new I(h)};var b={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 I(C){this.curveType=b[C],this.curveType||(this.curveType={name:C}),this.curve=new t.ec(this.curveType.name),this.keys=void 0}function s(C,h,P){Array.isArray(C)||(C=C.toArray());var d=new Buffer(C);if(P&&d.length<P){var S=new Buffer(P-d.length);S.fill(0),d=Buffer.concat([S,d])}return h?d.toString(h):d}b.p224=b.secp224r1,b.p256=b.secp256r1=b.prime256v1,b.p192=b.secp192r1=b.prime192v1,b.p384=b.secp384r1,b.p521=b.secp521r1,I.prototype.generateKeys=function(C,h){return this.keys=this.curve.genKeyPair(),this.getPublicKey(C,h)},I.prototype.computeSecret=function(C,h,P){return h=h||"utf8",Buffer.isBuffer(C)||(C=new Buffer(C,h)),s(this.curve.keyFromPublic(C).getPublic().mul(this.keys.getPrivate()).getX(),P,this.curveType.byteLength)},I.prototype.getPublicKey=function(C,h){var P=this.keys.getPublic("compressed"===h,!0);return"hybrid"===h&&(P[0]=P[P.length-1]%2?7:6),s(P,C)},I.prototype.getPrivateKey=function(C){return s(this.keys.getPrivate(),C)},I.prototype.setPublicKey=function(C,h){return h=h||"utf8",Buffer.isBuffer(C)||(C=new Buffer(C,h)),this.keys._importPublic(C),this},I.prototype.setPrivateKey=function(C,h){h=h||"utf8",Buffer.isBuffer(C)||(C=new Buffer(C,h));var P=new e(C);return P=P.toString(16),this.keys=this.curve.genKeyPair(),this.keys._importPrivate(P),this}},6422:function(Ve,q,p){!function(t,e){"use strict";function b(A,i){if(!A)throw new Error(i||"Assertion failed")}function I(A,i){A.super_=i;var a=function(){};a.prototype=i.prototype,A.prototype=new a,A.prototype.constructor=A}function s(A,i,a){if(s.isBN(A))return A;this.negative=0,this.words=null,this.length=0,this.red=null,null!==A&&(("le"===i||"be"===i)&&(a=i,i=10),this._init(A||0,i||10,a||"be"))}var C;"object"==typeof t?t.exports=s:e.BN=s,s.BN=s,s.wordSize=26;try{C=typeof window<"u"&&typeof window.Buffer<"u"?window.Buffer:p(8623).Buffer}catch{}function h(A,i){var a=A.charCodeAt(i);return a>=65&&a<=70?a-55:a>=97&&a<=102?a-87:a-48&15}function P(A,i,a){var u=h(A,a);return a-1>=i&&(u|=h(A,a-1)<<4),u}function d(A,i,a,u){for(var l=0,y=Math.min(A.length,a),T=i;T<y;T++){var L=A.charCodeAt(T)-48;l*=u,l+=L>=49?L-49+10:L>=17?L-17+10:L}return l}s.isBN=function(i){return i instanceof s||null!==i&&"object"==typeof i&&i.constructor.wordSize===s.wordSize&&Array.isArray(i.words)},s.max=function(i,a){return i.cmp(a)>0?i:a},s.min=function(i,a){return i.cmp(a)<0?i:a},s.prototype._init=function(i,a,u){if("number"==typeof i)return this._initNumber(i,a,u);if("object"==typeof i)return this._initArray(i,a,u);"hex"===a&&(a=16),b(a===(0|a)&&a>=2&&a<=36);var l=0;"-"===(i=i.toString().replace(/\s+/g,""))[0]&&(l++,this.negative=1),l<i.length&&(16===a?this._parseHex(i,l,u):(this._parseBase(i,a,l),"le"===u&&this._initArray(this.toArray(),a,u)))},s.prototype._initNumber=function(i,a,u){i<0&&(this.negative=1,i=-i),i<67108864?(this.words=[67108863&i],this.length=1):i<4503599627370496?(this.words=[67108863&i,i/67108864&67108863],this.length=2):(b(i<9007199254740992),this.words=[67108863&i,i/67108864&67108863,1],this.length=3),"le"===u&&this._initArray(this.toArray(),a,u)},s.prototype._initArray=function(i,a,u){if(b("number"==typeof i.length),i.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(i.length/3),this.words=new Array(this.length);for(var l=0;l<this.length;l++)this.words[l]=0;var y,T,L=0;if("be"===u)for(l=i.length-1,y=0;l>=0;l-=3)this.words[y]|=(T=i[l]|i[l-1]<<8|i[l-2]<<16)<<L&67108863,this.words[y+1]=T>>>26-L&67108863,(L+=24)>=26&&(L-=26,y++);else if("le"===u)for(l=0,y=0;l<i.length;l+=3)this.words[y]|=(T=i[l]|i[l+1]<<8|i[l+2]<<16)<<L&67108863,this.words[y+1]=T>>>26-L&67108863,(L+=24)>=26&&(L-=26,y++);return this.strip()},s.prototype._parseHex=function(i,a,u){this.length=Math.ceil((i.length-a)/6),this.words=new Array(this.length);for(var l=0;l<this.length;l++)this.words[l]=0;var L,y=0,T=0;if("be"===u)for(l=i.length-1;l>=a;l-=2)L=P(i,a,l)<<y,this.words[T]|=67108863&L,y>=18?(y-=18,this.words[T+=1]|=L>>>26):y+=8;else for(l=(i.length-a)%2==0?a+1:a;l<i.length;l+=2)L=P(i,a,l)<<y,this.words[T]|=67108863&L,y>=18?(y-=18,this.words[T+=1]|=L>>>26):y+=8;this.strip()},s.prototype._parseBase=function(i,a,u){this.words=[0],this.length=1;for(var l=0,y=1;y<=67108863;y*=a)l++;l--,y=y/a|0;for(var T=i.length-u,L=T%l,m=Math.min(T,T-L)+u,n=0,_=u;_<m;_+=l)n=d(i,_,_+l,a),this.imuln(y),this.words[0]+n<67108864?this.words[0]+=n:this._iaddn(n);if(0!==L){var B=1;for(n=d(i,_,i.length,a),_=0;_<L;_++)B*=a;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 a=0;a<this.length;a++)i.words[a]=this.words[a];i.length=this.length,i.negative=this.negative,i.red=this.red},s.prototype.clone=function(){var i=new s(null);return this.copy(i),i},s.prototype._expand=function(i){for(;this.length<i;)this.words[this.length++]=0;return this},s.prototype.strip=function(){for(;this.length>1&&0===this.words[this.length-1];)this.length--;return this._normSign()},s.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},s.prototype.inspect=function(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"};var S=["","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],O=[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 R(A,i,a){a.negative=i.negative^A.negative;var u=A.length+i.length|0;a.length=u,u=u-1|0;var l=0|A.words[0],y=0|i.words[0],T=l*y,m=T/67108864|0;a.words[0]=67108863&T;for(var n=1;n<u;n++){for(var _=m>>>26,B=67108863&m,V=Math.min(n,i.length-1),X=Math.max(0,n-A.length+1);X<=V;X++)_+=(T=(l=0|A.words[n-X|0])*(y=0|i.words[X])+B)/67108864|0,B=67108863&T;a.words[n]=0|B,m=0|_}return 0!==m?a.words[n]=0|m:a.length--,a.strip()}s.prototype.toString=function(i,a){var u;if(a=0|a||1,16===(i=i||10)||"hex"===i){u="";for(var l=0,y=0,T=0;T<this.length;T++){var L=this.words[T],m=(16777215&(L<<l|y)).toString(16);u=0!=(y=L>>>24-l&16777215)||T!==this.length-1?S[6-m.length]+m+u:m+u,(l+=2)>=26&&(l-=26,T--)}for(0!==y&&(u=y.toString(16)+u);u.length%a!=0;)u="0"+u;return 0!==this.negative&&(u="-"+u),u}if(i===(0|i)&&i>=2&&i<=36){var n=w[i],_=O[i];u="";var B=this.clone();for(B.negative=0;!B.isZero();){var V=B.modn(_).toString(i);u=(B=B.idivn(_)).isZero()?V+u:S[n-V.length]+V+u}for(this.isZero()&&(u="0"+u);u.length%a!=0;)u="0"+u;return 0!==this.negative&&(u="-"+u),u}b(!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&&b(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-i:i},s.prototype.toJSON=function(){return this.toString(16)},s.prototype.toBuffer=function(i,a){return b(typeof C<"u"),this.toArrayLike(C,i,a)},s.prototype.toArray=function(i,a){return this.toArrayLike(Array,i,a)},s.prototype.toArrayLike=function(i,a,u){var l=this.byteLength(),y=u||Math.max(1,l);b(l<=y,"byte array longer than desired length"),b(y>0,"Requested array length <= 0"),this.strip();var m,n,T="le"===a,L=new i(y),_=this.clone();if(T){for(n=0;!_.isZero();n++)m=_.andln(255),_.iushrn(8),L[n]=m;for(;n<y;n++)L[n]=0}else{for(n=0;n<y-l;n++)L[n]=0;for(n=0;!_.isZero();n++)m=_.andln(255),_.iushrn(8),L[y-n-1]=m}return L},s.prototype._countBits=Math.clz32?function(i){return 32-Math.clz32(i)}:function(i){var a=i,u=0;return a>=4096&&(u+=13,a>>>=13),a>=64&&(u+=7,a>>>=7),a>=8&&(u+=4,a>>>=4),a>=2&&(u+=2,a>>>=2),u+a},s.prototype._zeroBits=function(i){if(0===i)return 26;var a=i,u=0;return 8191&a||(u+=13,a>>>=13),127&a||(u+=7,a>>>=7),15&a||(u+=4,a>>>=4),3&a||(u+=2,a>>>=2),1&a||u++,u},s.prototype.bitLength=function(){var a=this._countBits(this.words[this.length-1]);return 26*(this.length-1)+a},s.prototype.zeroBits=function(){if(this.isZero())return 0;for(var i=0,a=0;a<this.length;a++){var u=this._zeroBits(this.words[a]);if(i+=u,26!==u)break}return i},s.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},s.prototype.toTwos=function(i){return 0!==this.negative?this.abs().inotn(i).iaddn(1):this.clone()},s.prototype.fromTwos=function(i){return this.testn(i-1)?this.notn(i).iaddn(1).ineg():this.clone()},s.prototype.isNeg=function(){return 0!==this.negative},s.prototype.neg=function(){return this.clone().ineg()},s.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},s.prototype.iuor=function(i){for(;this.length<i.length;)this.words[this.length++]=0;for(var a=0;a<i.length;a++)this.words[a]=this.words[a]|i.words[a];return this.strip()},s.prototype.ior=function(i){return b(0==(this.negative|i.negative)),this.iuor(i)},s.prototype.or=function(i){return this.length>i.length?this.clone().ior(i):i.clone().ior(this)},s.prototype.uor=function(i){return this.length>i.length?this.clone().iuor(i):i.clone().iuor(this)},s.prototype.iuand=function(i){var a;a=this.length>i.length?i:this;for(var u=0;u<a.length;u++)this.words[u]=this.words[u]&i.words[u];return this.length=a.length,this.strip()},s.prototype.iand=function(i){return b(0==(this.negative|i.negative)),this.iuand(i)},s.prototype.and=function(i){return this.length>i.length?this.clone().iand(i):i.clone().iand(this)},s.prototype.uand=function(i){return this.length>i.length?this.clone().iuand(i):i.clone().iuand(this)},s.prototype.iuxor=function(i){var a,u;this.length>i.length?(a=this,u=i):(a=i,u=this);for(var l=0;l<u.length;l++)this.words[l]=a.words[l]^u.words[l];if(this!==a)for(;l<a.length;l++)this.words[l]=a.words[l];return this.length=a.length,this.strip()},s.prototype.ixor=function(i){return b(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){b("number"==typeof i&&i>=0);var a=0|Math.ceil(i/26),u=i%26;this._expand(a),u>0&&a--;for(var l=0;l<a;l++)this.words[l]=67108863&~this.words[l];return u>0&&(this.words[l]=~this.words[l]&67108863>>26-u),this.strip()},s.prototype.notn=function(i){return this.clone().inotn(i)},s.prototype.setn=function(i,a){b("number"==typeof i&&i>=0);var u=i/26|0,l=i%26;return this._expand(u+1),this.words[u]=a?this.words[u]|1<<l:this.words[u]&~(1<<l),this.strip()},s.prototype.iadd=function(i){var a,u,l;if(0!==this.negative&&0===i.negative)return this.negative=0,a=this.isub(i),this.negative^=1,this._normSign();if(0===this.negative&&0!==i.negative)return i.negative=0,a=this.isub(i),i.negative=1,a._normSign();this.length>i.length?(u=this,l=i):(u=i,l=this);for(var y=0,T=0;T<l.length;T++)this.words[T]=67108863&(a=(0|u.words[T])+(0|l.words[T])+y),y=a>>>26;for(;0!==y&&T<u.length;T++)this.words[T]=67108863&(a=(0|u.words[T])+y),y=a>>>26;if(this.length=u.length,0!==y)this.words[this.length]=y,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 a;return 0!==i.negative&&0===this.negative?(i.negative=0,a=this.sub(i),i.negative^=1,a):0===i.negative&&0!==this.negative?(this.negative=0,a=i.sub(this),this.negative=1,a):this.length>i.length?this.clone().iadd(i):i.clone().iadd(this)},s.prototype.isub=function(i){if(0!==i.negative){i.negative=0;var a=this.iadd(i);return i.negative=1,a._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(i),this.negative=1,this._normSign();var l,y,u=this.cmp(i);if(0===u)return this.negative=0,this.length=1,this.words[0]=0,this;u>0?(l=this,y=i):(l=i,y=this);for(var T=0,L=0;L<y.length;L++)T=(a=(0|l.words[L])-(0|y.words[L])+T)>>26,this.words[L]=67108863&a;for(;0!==T&&L<l.length;L++)T=(a=(0|l.words[L])+T)>>26,this.words[L]=67108863&a;if(0===T&&L<l.length&&l!==this)for(;L<l.length;L++)this.words[L]=l.words[L];return this.length=Math.max(this.length,L),l!==this&&(this.negative=1),this.strip()},s.prototype.sub=function(i){return this.clone().isub(i)};var z=function(i,a,u){var m,n,_,l=i.words,y=a.words,T=u.words,L=0,B=0|l[0],V=8191&B,X=B>>>13,Le=0|l[1],$e=8191&Le,We=Le>>>13,Fe=0|l[2],De=8191&Fe,ye=Fe>>>13,ce=0|l[3],ve=8191&ce,oe=ce>>>13,je=0|l[4],Ae=8191&je,he=je>>>13,Ce=0|l[5],te=8191&Ce,Ue=Ce>>>13,Be=0|l[6],ae=8191&Be,ge=Be>>>13,ft=0|l[7],Je=8191&ft,dt=ft>>>13,Et=0|l[8],pt=8191&Et,ot=Et>>>13,wt=0|l[9],ke=8191&wt,Ke=wt>>>13,xt=0|y[0],Y=8191&xt,Re=xt>>>13,Tt=0|y[1],Qe=8191&Tt,Ye=Tt>>>13,Ht=0|y[2],Mt=8191&Ht,kt=Ht>>>13,_t=0|y[3],we=8191&_t,J=_t>>>13,be=0|y[4],He=8191&be,at=be>>>13,ii=0|y[5],Gt=8191&ii,ni=ii>>>13,ut=0|y[6],tt=8191&ut,vt=ut>>>13,ti=0|y[7],Ut=8191&ti,ht=ti>>>13,Rt=0|y[8],Oe=8191&Rt,et=Rt>>>13,it=0|y[9],ct=8191&it,Dt=it>>>13;u.negative=i.negative^a.negative,u.length=19;var pi=(L+(m=Math.imul(V,Y))|0)+((8191&(n=(n=Math.imul(V,Re))+Math.imul(X,Y)|0))<<13)|0;L=((_=Math.imul(X,Re))+(n>>>13)|0)+(pi>>>26)|0,pi&=67108863,m=Math.imul($e,Y),n=(n=Math.imul($e,Re))+Math.imul(We,Y)|0,_=Math.imul(We,Re);var Li=(L+(m=m+Math.imul(V,Qe)|0)|0)+((8191&(n=(n=n+Math.imul(V,Ye)|0)+Math.imul(X,Qe)|0))<<13)|0;L=((_=_+Math.imul(X,Ye)|0)+(n>>>13)|0)+(Li>>>26)|0,Li&=67108863,m=Math.imul(De,Y),n=(n=Math.imul(De,Re))+Math.imul(ye,Y)|0,_=Math.imul(ye,Re),m=m+Math.imul($e,Qe)|0,n=(n=n+Math.imul($e,Ye)|0)+Math.imul(We,Qe)|0,_=_+Math.imul(We,Ye)|0;var xi=(L+(m=m+Math.imul(V,Mt)|0)|0)+((8191&(n=(n=n+Math.imul(V,kt)|0)+Math.imul(X,Mt)|0))<<13)|0;L=((_=_+Math.imul(X,kt)|0)+(n>>>13)|0)+(xi>>>26)|0,xi&=67108863,m=Math.imul(ve,Y),n=(n=Math.imul(ve,Re))+Math.imul(oe,Y)|0,_=Math.imul(oe,Re),m=m+Math.imul(De,Qe)|0,n=(n=n+Math.imul(De,Ye)|0)+Math.imul(ye,Qe)|0,_=_+Math.imul(ye,Ye)|0,m=m+Math.imul($e,Mt)|0,n=(n=n+Math.imul($e,kt)|0)+Math.imul(We,Mt)|0,_=_+Math.imul(We,kt)|0;var Fi=(L+(m=m+Math.imul(V,we)|0)|0)+((8191&(n=(n=n+Math.imul(V,J)|0)+Math.imul(X,we)|0))<<13)|0;L=((_=_+Math.imul(X,J)|0)+(n>>>13)|0)+(Fi>>>26)|0,Fi&=67108863,m=Math.imul(Ae,Y),n=(n=Math.imul(Ae,Re))+Math.imul(he,Y)|0,_=Math.imul(he,Re),m=m+Math.imul(ve,Qe)|0,n=(n=n+Math.imul(ve,Ye)|0)+Math.imul(oe,Qe)|0,_=_+Math.imul(oe,Ye)|0,m=m+Math.imul(De,Mt)|0,n=(n=n+Math.imul(De,kt)|0)+Math.imul(ye,Mt)|0,_=_+Math.imul(ye,kt)|0,m=m+Math.imul($e,we)|0,n=(n=n+Math.imul($e,J)|0)+Math.imul(We,we)|0,_=_+Math.imul(We,J)|0;var qe=(L+(m=m+Math.imul(V,He)|0)|0)+((8191&(n=(n=n+Math.imul(V,at)|0)+Math.imul(X,He)|0))<<13)|0;L=((_=_+Math.imul(X,at)|0)+(n>>>13)|0)+(qe>>>26)|0,qe&=67108863,m=Math.imul(te,Y),n=(n=Math.imul(te,Re))+Math.imul(Ue,Y)|0,_=Math.imul(Ue,Re),m=m+Math.imul(Ae,Qe)|0,n=(n=n+Math.imul(Ae,Ye)|0)+Math.imul(he,Qe)|0,_=_+Math.imul(he,Ye)|0,m=m+Math.imul(ve,Mt)|0,n=(n=n+Math.imul(ve,kt)|0)+Math.imul(oe,Mt)|0,_=_+Math.imul(oe,kt)|0,m=m+Math.imul(De,we)|0,n=(n=n+Math.imul(De,J)|0)+Math.imul(ye,we)|0,_=_+Math.imul(ye,J)|0,m=m+Math.imul($e,He)|0,n=(n=n+Math.imul($e,at)|0)+Math.imul(We,He)|0,_=_+Math.imul(We,at)|0;var St=(L+(m=m+Math.imul(V,Gt)|0)|0)+((8191&(n=(n=n+Math.imul(V,ni)|0)+Math.imul(X,Gt)|0))<<13)|0;L=((_=_+Math.imul(X,ni)|0)+(n>>>13)|0)+(St>>>26)|0,St&=67108863,m=Math.imul(ae,Y),n=(n=Math.imul(ae,Re))+Math.imul(ge,Y)|0,_=Math.imul(ge,Re),m=m+Math.imul(te,Qe)|0,n=(n=n+Math.imul(te,Ye)|0)+Math.imul(Ue,Qe)|0,_=_+Math.imul(Ue,Ye)|0,m=m+Math.imul(Ae,Mt)|0,n=(n=n+Math.imul(Ae,kt)|0)+Math.imul(he,Mt)|0,_=_+Math.imul(he,kt)|0,m=m+Math.imul(ve,we)|0,n=(n=n+Math.imul(ve,J)|0)+Math.imul(oe,we)|0,_=_+Math.imul(oe,J)|0,m=m+Math.imul(De,He)|0,n=(n=n+Math.imul(De,at)|0)+Math.imul(ye,He)|0,_=_+Math.imul(ye,at)|0,m=m+Math.imul($e,Gt)|0,n=(n=n+Math.imul($e,ni)|0)+Math.imul(We,Gt)|0,_=_+Math.imul(We,ni)|0;var xe=(L+(m=m+Math.imul(V,tt)|0)|0)+((8191&(n=(n=n+Math.imul(V,vt)|0)+Math.imul(X,tt)|0))<<13)|0;L=((_=_+Math.imul(X,vt)|0)+(n>>>13)|0)+(xe>>>26)|0,xe&=67108863,m=Math.imul(Je,Y),n=(n=Math.imul(Je,Re))+Math.imul(dt,Y)|0,_=Math.imul(dt,Re),m=m+Math.imul(ae,Qe)|0,n=(n=n+Math.imul(ae,Ye)|0)+Math.imul(ge,Qe)|0,_=_+Math.imul(ge,Ye)|0,m=m+Math.imul(te,Mt)|0,n=(n=n+Math.imul(te,kt)|0)+Math.imul(Ue,Mt)|0,_=_+Math.imul(Ue,kt)|0,m=m+Math.imul(Ae,we)|0,n=(n=n+Math.imul(Ae,J)|0)+Math.imul(he,we)|0,_=_+Math.imul(he,J)|0,m=m+Math.imul(ve,He)|0,n=(n=n+Math.imul(ve,at)|0)+Math.imul(oe,He)|0,_=_+Math.imul(oe,at)|0,m=m+Math.imul(De,Gt)|0,n=(n=n+Math.imul(De,ni)|0)+Math.imul(ye,Gt)|0,_=_+Math.imul(ye,ni)|0,m=m+Math.imul($e,tt)|0,n=(n=n+Math.imul($e,vt)|0)+Math.imul(We,tt)|0,_=_+Math.imul(We,vt)|0;var Nt=(L+(m=m+Math.imul(V,Ut)|0)|0)+((8191&(n=(n=n+Math.imul(V,ht)|0)+Math.imul(X,Ut)|0))<<13)|0;L=((_=_+Math.imul(X,ht)|0)+(n>>>13)|0)+(Nt>>>26)|0,Nt&=67108863,m=Math.imul(pt,Y),n=(n=Math.imul(pt,Re))+Math.imul(ot,Y)|0,_=Math.imul(ot,Re),m=m+Math.imul(Je,Qe)|0,n=(n=n+Math.imul(Je,Ye)|0)+Math.imul(dt,Qe)|0,_=_+Math.imul(dt,Ye)|0,m=m+Math.imul(ae,Mt)|0,n=(n=n+Math.imul(ae,kt)|0)+Math.imul(ge,Mt)|0,_=_+Math.imul(ge,kt)|0,m=m+Math.imul(te,we)|0,n=(n=n+Math.imul(te,J)|0)+Math.imul(Ue,we)|0,_=_+Math.imul(Ue,J)|0,m=m+Math.imul(Ae,He)|0,n=(n=n+Math.imul(Ae,at)|0)+Math.imul(he,He)|0,_=_+Math.imul(he,at)|0,m=m+Math.imul(ve,Gt)|0,n=(n=n+Math.imul(ve,ni)|0)+Math.imul(oe,Gt)|0,_=_+Math.imul(oe,ni)|0,m=m+Math.imul(De,tt)|0,n=(n=n+Math.imul(De,vt)|0)+Math.imul(ye,tt)|0,_=_+Math.imul(ye,vt)|0,m=m+Math.imul($e,Ut)|0,n=(n=n+Math.imul($e,ht)|0)+Math.imul(We,Ut)|0,_=_+Math.imul(We,ht)|0;var qt=(L+(m=m+Math.imul(V,Oe)|0)|0)+((8191&(n=(n=n+Math.imul(V,et)|0)+Math.imul(X,Oe)|0))<<13)|0;L=((_=_+Math.imul(X,et)|0)+(n>>>13)|0)+(qt>>>26)|0,qt&=67108863,m=Math.imul(ke,Y),n=(n=Math.imul(ke,Re))+Math.imul(Ke,Y)|0,_=Math.imul(Ke,Re),m=m+Math.imul(pt,Qe)|0,n=(n=n+Math.imul(pt,Ye)|0)+Math.imul(ot,Qe)|0,_=_+Math.imul(ot,Ye)|0,m=m+Math.imul(Je,Mt)|0,n=(n=n+Math.imul(Je,kt)|0)+Math.imul(dt,Mt)|0,_=_+Math.imul(dt,kt)|0,m=m+Math.imul(ae,we)|0,n=(n=n+Math.imul(ae,J)|0)+Math.imul(ge,we)|0,_=_+Math.imul(ge,J)|0,m=m+Math.imul(te,He)|0,n=(n=n+Math.imul(te,at)|0)+Math.imul(Ue,He)|0,_=_+Math.imul(Ue,at)|0,m=m+Math.imul(Ae,Gt)|0,n=(n=n+Math.imul(Ae,ni)|0)+Math.imul(he,Gt)|0,_=_+Math.imul(he,ni)|0,m=m+Math.imul(ve,tt)|0,n=(n=n+Math.imul(ve,vt)|0)+Math.imul(oe,tt)|0,_=_+Math.imul(oe,vt)|0,m=m+Math.imul(De,Ut)|0,n=(n=n+Math.imul(De,ht)|0)+Math.imul(ye,Ut)|0,_=_+Math.imul(ye,ht)|0,m=m+Math.imul($e,Oe)|0,n=(n=n+Math.imul($e,et)|0)+Math.imul(We,Oe)|0,_=_+Math.imul(We,et)|0;var mi=(L+(m=m+Math.imul(V,ct)|0)|0)+((8191&(n=(n=n+Math.imul(V,Dt)|0)+Math.imul(X,ct)|0))<<13)|0;L=((_=_+Math.imul(X,Dt)|0)+(n>>>13)|0)+(mi>>>26)|0,mi&=67108863,m=Math.imul(ke,Qe),n=(n=Math.imul(ke,Ye))+Math.imul(Ke,Qe)|0,_=Math.imul(Ke,Ye),m=m+Math.imul(pt,Mt)|0,n=(n=n+Math.imul(pt,kt)|0)+Math.imul(ot,Mt)|0,_=_+Math.imul(ot,kt)|0,m=m+Math.imul(Je,we)|0,n=(n=n+Math.imul(Je,J)|0)+Math.imul(dt,we)|0,_=_+Math.imul(dt,J)|0,m=m+Math.imul(ae,He)|0,n=(n=n+Math.imul(ae,at)|0)+Math.imul(ge,He)|0,_=_+Math.imul(ge,at)|0,m=m+Math.imul(te,Gt)|0,n=(n=n+Math.imul(te,ni)|0)+Math.imul(Ue,Gt)|0,_=_+Math.imul(Ue,ni)|0,m=m+Math.imul(Ae,tt)|0,n=(n=n+Math.imul(Ae,vt)|0)+Math.imul(he,tt)|0,_=_+Math.imul(he,vt)|0,m=m+Math.imul(ve,Ut)|0,n=(n=n+Math.imul(ve,ht)|0)+Math.imul(oe,Ut)|0,_=_+Math.imul(oe,ht)|0,m=m+Math.imul(De,Oe)|0,n=(n=n+Math.imul(De,et)|0)+Math.imul(ye,Oe)|0,_=_+Math.imul(ye,et)|0;var Ci=(L+(m=m+Math.imul($e,ct)|0)|0)+((8191&(n=(n=n+Math.imul($e,Dt)|0)+Math.imul(We,ct)|0))<<13)|0;L=((_=_+Math.imul(We,Dt)|0)+(n>>>13)|0)+(Ci>>>26)|0,Ci&=67108863,m=Math.imul(ke,Mt),n=(n=Math.imul(ke,kt))+Math.imul(Ke,Mt)|0,_=Math.imul(Ke,kt),m=m+Math.imul(pt,we)|0,n=(n=n+Math.imul(pt,J)|0)+Math.imul(ot,we)|0,_=_+Math.imul(ot,J)|0,m=m+Math.imul(Je,He)|0,n=(n=n+Math.imul(Je,at)|0)+Math.imul(dt,He)|0,_=_+Math.imul(dt,at)|0,m=m+Math.imul(ae,Gt)|0,n=(n=n+Math.imul(ae,ni)|0)+Math.imul(ge,Gt)|0,_=_+Math.imul(ge,ni)|0,m=m+Math.imul(te,tt)|0,n=(n=n+Math.imul(te,vt)|0)+Math.imul(Ue,tt)|0,_=_+Math.imul(Ue,vt)|0,m=m+Math.imul(Ae,Ut)|0,n=(n=n+Math.imul(Ae,ht)|0)+Math.imul(he,Ut)|0,_=_+Math.imul(he,ht)|0,m=m+Math.imul(ve,Oe)|0,n=(n=n+Math.imul(ve,et)|0)+Math.imul(oe,Oe)|0,_=_+Math.imul(oe,et)|0;var Ii=(L+(m=m+Math.imul(De,ct)|0)|0)+((8191&(n=(n=n+Math.imul(De,Dt)|0)+Math.imul(ye,ct)|0))<<13)|0;L=((_=_+Math.imul(ye,Dt)|0)+(n>>>13)|0)+(Ii>>>26)|0,Ii&=67108863,m=Math.imul(ke,we),n=(n=Math.imul(ke,J))+Math.imul(Ke,we)|0,_=Math.imul(Ke,J),m=m+Math.imul(pt,He)|0,n=(n=n+Math.imul(pt,at)|0)+Math.imul(ot,He)|0,_=_+Math.imul(ot,at)|0,m=m+Math.imul(Je,Gt)|0,n=(n=n+Math.imul(Je,ni)|0)+Math.imul(dt,Gt)|0,_=_+Math.imul(dt,ni)|0,m=m+Math.imul(ae,tt)|0,n=(n=n+Math.imul(ae,vt)|0)+Math.imul(ge,tt)|0,_=_+Math.imul(ge,vt)|0,m=m+Math.imul(te,Ut)|0,n=(n=n+Math.imul(te,ht)|0)+Math.imul(Ue,Ut)|0,_=_+Math.imul(Ue,ht)|0,m=m+Math.imul(Ae,Oe)|0,n=(n=n+Math.imul(Ae,et)|0)+Math.imul(he,Oe)|0,_=_+Math.imul(he,et)|0;var Gi=(L+(m=m+Math.imul(ve,ct)|0)|0)+((8191&(n=(n=n+Math.imul(ve,Dt)|0)+Math.imul(oe,ct)|0))<<13)|0;L=((_=_+Math.imul(oe,Dt)|0)+(n>>>13)|0)+(Gi>>>26)|0,Gi&=67108863,m=Math.imul(ke,He),n=(n=Math.imul(ke,at))+Math.imul(Ke,He)|0,_=Math.imul(Ke,at),m=m+Math.imul(pt,Gt)|0,n=(n=n+Math.imul(pt,ni)|0)+Math.imul(ot,Gt)|0,_=_+Math.imul(ot,ni)|0,m=m+Math.imul(Je,tt)|0,n=(n=n+Math.imul(Je,vt)|0)+Math.imul(dt,tt)|0,_=_+Math.imul(dt,vt)|0,m=m+Math.imul(ae,Ut)|0,n=(n=n+Math.imul(ae,ht)|0)+Math.imul(ge,Ut)|0,_=_+Math.imul(ge,ht)|0,m=m+Math.imul(te,Oe)|0,n=(n=n+Math.imul(te,et)|0)+Math.imul(Ue,Oe)|0,_=_+Math.imul(Ue,et)|0;var Yi=(L+(m=m+Math.imul(Ae,ct)|0)|0)+((8191&(n=(n=n+Math.imul(Ae,Dt)|0)+Math.imul(he,ct)|0))<<13)|0;L=((_=_+Math.imul(he,Dt)|0)+(n>>>13)|0)+(Yi>>>26)|0,Yi&=67108863,m=Math.imul(ke,Gt),n=(n=Math.imul(ke,ni))+Math.imul(Ke,Gt)|0,_=Math.imul(Ke,ni),m=m+Math.imul(pt,tt)|0,n=(n=n+Math.imul(pt,vt)|0)+Math.imul(ot,tt)|0,_=_+Math.imul(ot,vt)|0,m=m+Math.imul(Je,Ut)|0,n=(n=n+Math.imul(Je,ht)|0)+Math.imul(dt,Ut)|0,_=_+Math.imul(dt,ht)|0,m=m+Math.imul(ae,Oe)|0,n=(n=n+Math.imul(ae,et)|0)+Math.imul(ge,Oe)|0,_=_+Math.imul(ge,et)|0;var Ji=(L+(m=m+Math.imul(te,ct)|0)|0)+((8191&(n=(n=n+Math.imul(te,Dt)|0)+Math.imul(Ue,ct)|0))<<13)|0;L=((_=_+Math.imul(Ue,Dt)|0)+(n>>>13)|0)+(Ji>>>26)|0,Ji&=67108863,m=Math.imul(ke,tt),n=(n=Math.imul(ke,vt))+Math.imul(Ke,tt)|0,_=Math.imul(Ke,vt),m=m+Math.imul(pt,Ut)|0,n=(n=n+Math.imul(pt,ht)|0)+Math.imul(ot,Ut)|0,_=_+Math.imul(ot,ht)|0,m=m+Math.imul(Je,Oe)|0,n=(n=n+Math.imul(Je,et)|0)+Math.imul(dt,Oe)|0,_=_+Math.imul(dt,et)|0;var Wt=(L+(m=m+Math.imul(ae,ct)|0)|0)+((8191&(n=(n=n+Math.imul(ae,Dt)|0)+Math.imul(ge,ct)|0))<<13)|0;L=((_=_+Math.imul(ge,Dt)|0)+(n>>>13)|0)+(Wt>>>26)|0,Wt&=67108863,m=Math.imul(ke,Ut),n=(n=Math.imul(ke,ht))+Math.imul(Ke,Ut)|0,_=Math.imul(Ke,ht),m=m+Math.imul(pt,Oe)|0,n=(n=n+Math.imul(pt,et)|0)+Math.imul(ot,Oe)|0,_=_+Math.imul(ot,et)|0;var Jt=(L+(m=m+Math.imul(Je,ct)|0)|0)+((8191&(n=(n=n+Math.imul(Je,Dt)|0)+Math.imul(dt,ct)|0))<<13)|0;L=((_=_+Math.imul(dt,Dt)|0)+(n>>>13)|0)+(Jt>>>26)|0,Jt&=67108863,m=Math.imul(ke,Oe),n=(n=Math.imul(ke,et))+Math.imul(Ke,Oe)|0,_=Math.imul(Ke,et);var fe=(L+(m=m+Math.imul(pt,ct)|0)|0)+((8191&(n=(n=n+Math.imul(pt,Dt)|0)+Math.imul(ot,ct)|0))<<13)|0;L=((_=_+Math.imul(ot,Dt)|0)+(n>>>13)|0)+(fe>>>26)|0,fe&=67108863;var lt=(L+(m=Math.imul(ke,ct))|0)+((8191&(n=(n=Math.imul(ke,Dt))+Math.imul(Ke,ct)|0))<<13)|0;return L=((_=Math.imul(Ke,Dt))+(n>>>13)|0)+(lt>>>26)|0,lt&=67108863,T[0]=pi,T[1]=Li,T[2]=xi,T[3]=Fi,T[4]=qe,T[5]=St,T[6]=xe,T[7]=Nt,T[8]=qt,T[9]=mi,T[10]=Ci,T[11]=Ii,T[12]=Gi,T[13]=Yi,T[14]=Ji,T[15]=Wt,T[16]=Jt,T[17]=fe,T[18]=lt,0!==L&&(T[19]=L,u.length++),u};function W(A,i,a){return(new K).mulp(A,i,a)}function K(A,i){this.x=A,this.y=i}Math.imul||(z=R),s.prototype.mulTo=function(i,a){var u,l=this.length+i.length;return u=10===this.length&&10===i.length?z(this,i,a):l<63?R(this,i,a):l<1024?function U(A,i,a){a.negative=i.negative^A.negative,a.length=A.length+i.length;for(var u=0,l=0,y=0;y<a.length-1;y++){var T=l;l=0;for(var L=67108863&u,m=Math.min(y,i.length-1),n=Math.max(0,y-A.length+1);n<=m;n++){var X=(0|A.words[y-n])*(0|i.words[n]),Le=67108863&X;L=67108863&(Le=Le+L|0),l+=(T=(T=T+(X/67108864|0)|0)+(Le>>>26)|0)>>>26,T&=67108863}a.words[y]=L,u=T,T=l}return 0!==u?a.words[y]=u:a.length--,a.strip()}(this,i,a):W(this,i,a),u},K.prototype.makeRBT=function(i){for(var a=new Array(i),u=s.prototype._countBits(i)-1,l=0;l<i;l++)a[l]=this.revBin(l,u,i);return a},K.prototype.revBin=function(i,a,u){if(0===i||i===u-1)return i;for(var l=0,y=0;y<a;y++)l|=(1&i)<<a-y-1,i>>=1;return l},K.prototype.permute=function(i,a,u,l,y,T){for(var L=0;L<T;L++)l[L]=a[i[L]],y[L]=u[i[L]]},K.prototype.transform=function(i,a,u,l,y,T){this.permute(T,i,a,u,l,y);for(var L=1;L<y;L<<=1)for(var m=L<<1,n=Math.cos(2*Math.PI/m),_=Math.sin(2*Math.PI/m),B=0;B<y;B+=m)for(var V=n,X=_,Le=0;Le<L;Le++){var $e=u[B+Le],We=l[B+Le],Fe=u[B+Le+L],De=l[B+Le+L],ye=V*Fe-X*De;De=V*De+X*Fe,u[B+Le]=$e+(Fe=ye),l[B+Le]=We+De,u[B+Le+L]=$e-Fe,l[B+Le+L]=We-De,Le!==m&&(ye=n*V-_*X,X=n*X+_*V,V=ye)}},K.prototype.guessLen13b=function(i,a){var u=1|Math.max(a,i),l=1&u,y=0;for(u=u/2|0;u;u>>>=1)y++;return 1<<y+1+l},K.prototype.conjugate=function(i,a,u){if(!(u<=1))for(var l=0;l<u/2;l++){var y=i[l];i[l]=i[u-l-1],i[u-l-1]=y,y=a[l],a[l]=-a[u-l-1],a[u-l-1]=-y}},K.prototype.normalize13b=function(i,a){for(var u=0,l=0;l<a/2;l++){var y=8192*Math.round(i[2*l+1]/a)+Math.round(i[2*l]/a)+u;i[l]=67108863&y,u=y<67108864?0:y/67108864|0}return i},K.prototype.convert13b=function(i,a,u,l){for(var y=0,T=0;T<a;T++)u[2*T]=8191&(y+=0|i[T]),u[2*T+1]=8191&(y>>>=13),y>>>=13;for(T=2*a;T<l;++T)u[T]=0;b(0===y),b(0==(-8192&y))},K.prototype.stub=function(i){for(var a=new Array(i),u=0;u<i;u++)a[u]=0;return a},K.prototype.mulp=function(i,a,u){var l=2*this.guessLen13b(i.length,a.length),y=this.makeRBT(l),T=this.stub(l),L=new Array(l),m=new Array(l),n=new Array(l),_=new Array(l),B=new Array(l),V=new Array(l),X=u.words;X.length=l,this.convert13b(i.words,i.length,L,l),this.convert13b(a.words,a.length,_,l),this.transform(L,T,m,n,l,y),this.transform(_,T,B,V,l,y);for(var Le=0;Le<l;Le++){var $e=m[Le]*B[Le]-n[Le]*V[Le];n[Le]=m[Le]*V[Le]+n[Le]*B[Le],m[Le]=$e}return this.conjugate(m,n,l),this.transform(m,n,X,T,l,y),this.conjugate(X,T,l),this.normalize13b(X,l),u.negative=i.negative^a.negative,u.length=i.length+a.length,u.strip()},s.prototype.mul=function(i){var a=new s(null);return a.words=new Array(this.length+i.length),this.mulTo(i,a)},s.prototype.mulf=function(i){var a=new s(null);return a.words=new Array(this.length+i.length),W(this,i,a)},s.prototype.imul=function(i){return this.clone().mulTo(i,this)},s.prototype.imuln=function(i){b("number"==typeof i),b(i<67108864);for(var a=0,u=0;u<this.length;u++){var l=(0|this.words[u])*i,y=(67108863&l)+(67108863&a);a>>=26,a+=l/67108864|0,a+=y>>>26,this.words[u]=67108863&y}return 0!==a&&(this.words[u]=a,this.length++),this},s.prototype.muln=function(i){return this.clone().imuln(i)},s.prototype.sqr=function(){return this.mul(this)},s.prototype.isqr=function(){return this.imul(this.clone())},s.prototype.pow=function(i){var a=function E(A){for(var i=new Array(A.bitLength()),a=0;a<i.length;a++){var l=a%26;i[a]=(A.words[a/26|0]&1<<l)>>>l}return i}(i);if(0===a.length)return new s(1);for(var u=this,l=0;l<a.length&&0===a[l];l++,u=u.sqr());if(++l<a.length)for(var y=u.sqr();l<a.length;l++,y=y.sqr())0!==a[l]&&(u=u.mul(y));return u},s.prototype.iushln=function(i){b("number"==typeof i&&i>=0);var y,a=i%26,u=(i-a)/26,l=67108863>>>26-a<<26-a;if(0!==a){var T=0;for(y=0;y<this.length;y++){var L=this.words[y]&l;this.words[y]=(0|this.words[y])-L<<a|T,T=L>>>26-a}T&&(this.words[y]=T,this.length++)}if(0!==u){for(y=this.length-1;y>=0;y--)this.words[y+u]=this.words[y];for(y=0;y<u;y++)this.words[y]=0;this.length+=u}return this.strip()},s.prototype.ishln=function(i){return b(0===this.negative),this.iushln(i)},s.prototype.iushrn=function(i,a,u){var l;b("number"==typeof i&&i>=0),l=a?(a-a%26)/26:0;var y=i%26,T=Math.min((i-y)/26,this.length),L=67108863^67108863>>>y<<y,m=u;if(l-=T,l=Math.max(0,l),m){for(var n=0;n<T;n++)m.words[n]=this.words[n];m.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>=l);n--){var B=0|this.words[n];this.words[n]=_<<26-y|B>>>y,_=B&L}return m&&0!==_&&(m.words[m.length++]=_),0===this.length&&(this.words[0]=0,this.length=1),this.strip()},s.prototype.ishrn=function(i,a,u){return b(0===this.negative),this.iushrn(i,a,u)},s.prototype.shln=function(i){return this.clone().ishln(i)},s.prototype.ushln=function(i){return this.clone().iushln(i)},s.prototype.shrn=function(i){return this.clone().ishrn(i)},s.prototype.ushrn=function(i){return this.clone().iushrn(i)},s.prototype.testn=function(i){b("number"==typeof i&&i>=0);var a=i%26,u=(i-a)/26;return!(this.length<=u||!(this.words[u]&1<<a))},s.prototype.imaskn=function(i){b("number"==typeof i&&i>=0);var a=i%26,u=(i-a)/26;return b(0===this.negative,"imaskn works only with positive numbers"),this.length<=u?this:(0!==a&&u++,this.length=Math.min(u,this.length),0!==a&&(this.words[this.length-1]&=67108863^67108863>>>a<<a),this.strip())},s.prototype.maskn=function(i){return this.clone().imaskn(i)},s.prototype.iaddn=function(i){return b("number"==typeof i),b(i<67108864),i<0?this.isubn(-i):0!==this.negative?1===this.length&&(0|this.words[0])<i?(this.words[0]=i-(0|this.words[0]),this.negative=0,this):(this.negative=0,this.isubn(i),this.negative=1,this):this._iaddn(i)},s.prototype._iaddn=function(i){this.words[0]+=i;for(var a=0;a<this.length&&this.words[a]>=67108864;a++)this.words[a]-=67108864,a===this.length-1?this.words[a+1]=1:this.words[a+1]++;return this.length=Math.max(this.length,a+1),this},s.prototype.isubn=function(i){if(b("number"==typeof i),b(i<67108864),i<0)return this.iaddn(-i);if(0!==this.negative)return this.negative=0,this.iaddn(i),this.negative=1,this;if(this.words[0]-=i,1===this.length&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var a=0;a<this.length&&this.words[a]<0;a++)this.words[a]+=67108864,this.words[a+1]-=1;return this.strip()},s.prototype.addn=function(i){return this.clone().iaddn(i)},s.prototype.subn=function(i){return this.clone().isubn(i)},s.prototype.iabs=function(){return this.negative=0,this},s.prototype.abs=function(){return this.clone().iabs()},s.prototype._ishlnsubmul=function(i,a,u){var y;this._expand(i.length+u);var T,L=0;for(y=0;y<i.length;y++){T=(0|this.words[y+u])+L;var m=(0|i.words[y])*a;L=((T-=67108863&m)>>26)-(m/67108864|0),this.words[y+u]=67108863&T}for(;y<this.length-u;y++)L=(T=(0|this.words[y+u])+L)>>26,this.words[y+u]=67108863&T;if(0===L)return this.strip();for(b(-1===L),L=0,y=0;y<this.length;y++)L=(T=-(0|this.words[y])+L)>>26,this.words[y]=67108863&T;return this.negative=1,this.strip()},s.prototype._wordDiv=function(i,a){var u,l=this.clone(),y=i,T=0|y.words[y.length-1];0!=(u=26-this._countBits(T))&&(y=y.ushln(u),l.iushln(u),T=0|y.words[y.length-1]);var n,m=l.length-y.length;if("mod"!==a){(n=new s(null)).length=m+1,n.words=new Array(n.length);for(var _=0;_<n.length;_++)n.words[_]=0}var B=l.clone()._ishlnsubmul(y,1,m);0===B.negative&&(l=B,n&&(n.words[m]=1));for(var V=m-1;V>=0;V--){var X=67108864*(0|l.words[y.length+V])+(0|l.words[y.length+V-1]);for(X=Math.min(X/T|0,67108863),l._ishlnsubmul(y,X,V);0!==l.negative;)X--,l.negative=0,l._ishlnsubmul(y,1,V),l.isZero()||(l.negative^=1);n&&(n.words[V]=X)}return n&&n.strip(),l.strip(),"div"!==a&&0!==u&&l.iushrn(u),{div:n||null,mod:l}},s.prototype.divmod=function(i,a,u){return b(!i.isZero()),this.isZero()?{div:new s(0),mod:new s(0)}:0!==this.negative&&0===i.negative?(T=this.neg().divmod(i,a),"mod"!==a&&(l=T.div.neg()),"div"!==a&&(y=T.mod.neg(),u&&0!==y.negative&&y.iadd(i)),{div:l,mod:y}):0===this.negative&&0!==i.negative?(T=this.divmod(i.neg(),a),"mod"!==a&&(l=T.div.neg()),{div:l,mod:T.mod}):this.negative&i.negative?(T=this.neg().divmod(i.neg(),a),"div"!==a&&(y=T.mod.neg(),u&&0!==y.negative&&y.isub(i)),{div:T.div,mod:y}):i.length>this.length||this.cmp(i)<0?{div:new s(0),mod:this}:1===i.length?"div"===a?{div:this.divn(i.words[0]),mod:null}:"mod"===a?{div:null,mod:new s(this.modn(i.words[0]))}:{div:this.divn(i.words[0]),mod:new s(this.modn(i.words[0]))}:this._wordDiv(i,a);var l,y,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 a=this.divmod(i);if(a.mod.isZero())return a.div;var u=0!==a.div.negative?a.mod.isub(i):a.mod,l=i.ushrn(1),y=i.andln(1),T=u.cmp(l);return T<0||1===y&&0===T?a.div:0!==a.div.negative?a.div.isubn(1):a.div.iaddn(1)},s.prototype.modn=function(i){b(i<=67108863);for(var a=(1<<26)%i,u=0,l=this.length-1;l>=0;l--)u=(a*u+(0|this.words[l]))%i;return u},s.prototype.idivn=function(i){b(i<=67108863);for(var a=0,u=this.length-1;u>=0;u--){var l=(0|this.words[u])+67108864*a;this.words[u]=l/i|0,a=l%i}return this.strip()},s.prototype.divn=function(i){return this.clone().idivn(i)},s.prototype.egcd=function(i){b(0===i.negative),b(!i.isZero());var a=this,u=i.clone();a=0!==a.negative?a.umod(i):a.clone();for(var l=new s(1),y=new s(0),T=new s(0),L=new s(1),m=0;a.isEven()&&u.isEven();)a.iushrn(1),u.iushrn(1),++m;for(var n=u.clone(),_=a.clone();!a.isZero();){for(var B=0,V=1;!(a.words[0]&V)&&B<26;++B,V<<=1);if(B>0)for(a.iushrn(B);B-- >0;)(l.isOdd()||y.isOdd())&&(l.iadd(n),y.isub(_)),l.iushrn(1),y.iushrn(1);for(var X=0,Le=1;!(u.words[0]&Le)&&X<26;++X,Le<<=1);if(X>0)for(u.iushrn(X);X-- >0;)(T.isOdd()||L.isOdd())&&(T.iadd(n),L.isub(_)),T.iushrn(1),L.iushrn(1);a.cmp(u)>=0?(a.isub(u),l.isub(T),y.isub(L)):(u.isub(a),T.isub(l),L.isub(y))}return{a:T,b:L,gcd:u.iushln(m)}},s.prototype._invmp=function(i){b(0===i.negative),b(!i.isZero());var B,a=this,u=i.clone();a=0!==a.negative?a.umod(i):a.clone();for(var l=new s(1),y=new s(0),T=u.clone();a.cmpn(1)>0&&u.cmpn(1)>0;){for(var L=0,m=1;!(a.words[0]&m)&&L<26;++L,m<<=1);if(L>0)for(a.iushrn(L);L-- >0;)l.isOdd()&&l.iadd(T),l.iushrn(1);for(var n=0,_=1;!(u.words[0]&_)&&n<26;++n,_<<=1);if(n>0)for(u.iushrn(n);n-- >0;)y.isOdd()&&y.iadd(T),y.iushrn(1);a.cmp(u)>=0?(a.isub(u),l.isub(y)):(u.isub(a),y.isub(l))}return(B=0===a.cmpn(1)?l:y).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 a=this.clone(),u=i.clone();a.negative=0,u.negative=0;for(var l=0;a.isEven()&&u.isEven();l++)a.iushrn(1),u.iushrn(1);for(;;){for(;a.isEven();)a.iushrn(1);for(;u.isEven();)u.iushrn(1);var y=a.cmp(u);if(y<0){var T=a;a=u,u=T}else if(0===y||0===u.cmpn(1))break;a.isub(u)}return u.iushln(l)},s.prototype.invm=function(i){return this.egcd(i).a.umod(i)},s.prototype.isEven=function(){return 0==(1&this.words[0])},s.prototype.isOdd=function(){return 1==(1&this.words[0])},s.prototype.andln=function(i){return this.words[0]&i},s.prototype.bincn=function(i){b("number"==typeof i);var a=i%26,u=(i-a)/26,l=1<<a;if(this.length<=u)return this._expand(u+1),this.words[u]|=l,this;for(var y=l,T=u;0!==y&&T<this.length;T++){var L=0|this.words[T];y=(L+=y)>>>26,this.words[T]=L&=67108863}return 0!==y&&(this.words[T]=y,this.length++),this},s.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},s.prototype.cmpn=function(i){var u,a=i<0;if(0!==this.negative&&!a)return-1;if(0===this.negative&&a)return 1;if(this.strip(),this.length>1)u=1;else{a&&(i=-i),b(i<=67108863,"Number is too big");var l=0|this.words[0];u=l===i?0:l<i?-1:1}return 0!==this.negative?0|-u:u},s.prototype.cmp=function(i){if(0!==this.negative&&0===i.negative)return-1;if(0===this.negative&&0!==i.negative)return 1;var a=this.ucmp(i);return 0!==this.negative?0|-a:a},s.prototype.ucmp=function(i){if(this.length>i.length)return 1;if(this.length<i.length)return-1;for(var a=0,u=this.length-1;u>=0;u--){var l=0|this.words[u],y=0|i.words[u];if(l!==y){l<y?a=-1:l>y&&(a=1);break}}return a},s.prototype.gtn=function(i){return 1===this.cmpn(i)},s.prototype.gt=function(i){return 1===this.cmp(i)},s.prototype.gten=function(i){return this.cmpn(i)>=0},s.prototype.gte=function(i){return this.cmp(i)>=0},s.prototype.ltn=function(i){return-1===this.cmpn(i)},s.prototype.lt=function(i){return-1===this.cmp(i)},s.prototype.lten=function(i){return this.cmpn(i)<=0},s.prototype.lte=function(i){return this.cmp(i)<=0},s.prototype.eqn=function(i){return 0===this.cmpn(i)},s.prototype.eq=function(i){return 0===this.cmp(i)},s.red=function(i){return new $(i)},s.prototype.toRed=function(i){return b(!this.red,"Already a number in reduction context"),b(0===this.negative,"red works only with positives"),i.convertTo(this)._forceRed(i)},s.prototype.fromRed=function(){return b(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 b(!this.red,"Already a number in reduction context"),this._forceRed(i)},s.prototype.redAdd=function(i){return b(this.red,"redAdd works only with red numbers"),this.red.add(this,i)},s.prototype.redIAdd=function(i){return b(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,i)},s.prototype.redSub=function(i){return b(this.red,"redSub works only with red numbers"),this.red.sub(this,i)},s.prototype.redISub=function(i){return b(this.red,"redISub works only with red numbers"),this.red.isub(this,i)},s.prototype.redShl=function(i){return b(this.red,"redShl works only with red numbers"),this.red.shl(this,i)},s.prototype.redMul=function(i){return b(this.red,"redMul works only with red numbers"),this.red._verify2(this,i),this.red.mul(this,i)},s.prototype.redIMul=function(i){return b(this.red,"redMul works only with red numbers"),this.red._verify2(this,i),this.red.imul(this,i)},s.prototype.redSqr=function(){return b(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},s.prototype.redISqr=function(){return b(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},s.prototype.redSqrt=function(){return b(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},s.prototype.redInvm=function(){return b(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},s.prototype.redNeg=function(){return b(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},s.prototype.redPow=function(i){return b(this.red&&!i.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,i)};var ee={k256:null,p224:null,p192:null,p25519:null};function ie(A,i){this.name=A,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 ue(){ie.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function le(){ie.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function ne(){ie.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function de(){ie.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function $(A){if("string"==typeof A){var i=s._prime(A);this.m=i.p,this.prime=i}else b(A.gtn(1),"modulus must be greater than 1"),this.m=A,this.prime=null}function me(A){$.call(this,A),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 i=new s(null);return i.words=new Array(Math.ceil(this.n/13)),i},ie.prototype.ireduce=function(i){var u,a=i;do{this.split(a,this.tmp),u=(a=(a=this.imulK(a)).iadd(this.tmp)).bitLength()}while(u>this.n);var l=u<this.n?-1:a.ucmp(this.p);return 0===l?(a.words[0]=0,a.length=1):l>0?a.isub(this.p):void 0!==a.strip?a.strip():a._strip(),a},ie.prototype.split=function(i,a){i.iushrn(this.n,0,a)},ie.prototype.imulK=function(i){return i.imul(this.k)},I(ue,ie),ue.prototype.split=function(i,a){for(var u=4194303,l=Math.min(i.length,9),y=0;y<l;y++)a.words[y]=i.words[y];if(a.length=l,i.length<=9)return i.words[0]=0,void(i.length=1);var T=i.words[9];for(a.words[a.length++]=T&u,y=10;y<i.length;y++){var L=0|i.words[y];i.words[y-10]=(L&u)<<4|T>>>22,T=L}i.words[y-10]=T>>>=22,i.length-=0===T&&i.length>10?10:9},ue.prototype.imulK=function(i){i.words[i.length]=0,i.words[i.length+1]=0,i.length+=2;for(var a=0,u=0;u<i.length;u++){var l=0|i.words[u];i.words[u]=67108863&(a+=977*l),a=64*l+(a/67108864|0)}return 0===i.words[i.length-1]&&(i.length--,0===i.words[i.length-1]&&i.length--),i},I(le,ie),I(ne,ie),I(de,ie),de.prototype.imulK=function(i){for(var a=0,u=0;u<i.length;u++){var l=19*(0|i.words[u])+a,y=67108863&l;l>>>=26,i.words[u]=y,a=l}return 0!==a&&(i.words[i.length++]=a),i},s._prime=function(i){if(ee[i])return ee[i];var a;if("k256"===i)a=new ue;else if("p224"===i)a=new le;else if("p192"===i)a=new ne;else{if("p25519"!==i)throw new Error("Unknown prime "+i);a=new de}return ee[i]=a,a},$.prototype._verify1=function(i){b(0===i.negative,"red works only with positives"),b(i.red,"red works only with red numbers")},$.prototype._verify2=function(i,a){b(0==(i.negative|a.negative),"red works only with positives"),b(i.red&&i.red===a.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,a){this._verify2(i,a);var u=i.add(a);return u.cmp(this.m)>=0&&u.isub(this.m),u._forceRed(this)},$.prototype.iadd=function(i,a){this._verify2(i,a);var u=i.iadd(a);return u.cmp(this.m)>=0&&u.isub(this.m),u},$.prototype.sub=function(i,a){this._verify2(i,a);var u=i.sub(a);return u.cmpn(0)<0&&u.iadd(this.m),u._forceRed(this)},$.prototype.isub=function(i,a){this._verify2(i,a);var u=i.isub(a);return u.cmpn(0)<0&&u.iadd(this.m),u},$.prototype.shl=function(i,a){return this._verify1(i),this.imod(i.ushln(a))},$.prototype.imul=function(i,a){return this._verify2(i,a),this.imod(i.imul(a))},$.prototype.mul=function(i,a){return this._verify2(i,a),this.imod(i.mul(a))},$.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 a=this.m.andln(3);if(b(a%2==1),3===a){var u=this.m.add(new s(1)).iushrn(2);return this.pow(i,u)}for(var l=this.m.subn(1),y=0;!l.isZero()&&0===l.andln(1);)y++,l.iushrn(1);b(!l.isZero());var T=new s(1).toRed(this),L=T.redNeg(),m=this.m.subn(1).iushrn(1),n=this.m.bitLength();for(n=new s(2*n*n).toRed(this);0!==this.pow(n,m).cmp(L);)n.redIAdd(L);for(var _=this.pow(n,l),B=this.pow(i,l.addn(1).iushrn(1)),V=this.pow(i,l),X=y;0!==V.cmp(T);){for(var Le=V,$e=0;0!==Le.cmp(T);$e++)Le=Le.redSqr();b($e<X);var We=this.pow(_,new s(1).iushln(X-$e-1));B=B.redMul(We),_=We.redSqr(),V=V.redMul(_),X=$e}return B},$.prototype.invm=function(i){var a=i._invmp(this.m);return 0!==a.negative?(a.negative=0,this.imod(a).redNeg()):this.imod(a)},$.prototype.pow=function(i,a){if(a.isZero())return new s(1).toRed(this);if(0===a.cmpn(1))return i.clone();var l=new Array(16);l[0]=new s(1).toRed(this),l[1]=i;for(var y=2;y<l.length;y++)l[y]=this.mul(l[y-1],i);var T=l[0],L=0,m=0,n=a.bitLength()%26;for(0===n&&(n=26),y=a.length-1;y>=0;y--){for(var _=a.words[y],B=n-1;B>=0;B--){var V=_>>B&1;T!==l[0]&&(T=this.sqr(T)),0!==V||0!==L?(L<<=1,L|=V,(4==++m||0===y&&0===B)&&(T=this.mul(T,l[L]),m=0,L=0)):m=0}n=26}return T},$.prototype.convertTo=function(i){var a=i.umod(this.m);return a===i?a.clone():a},$.prototype.convertFrom=function(i){var a=i.clone();return a.red=null,a},s.mont=function(i){return new me(i)},I(me,$),me.prototype.convertTo=function(i){return this.imod(i.ushln(this.shift))},me.prototype.convertFrom=function(i){var a=this.imod(i.mul(this.rinv));return a.red=null,a},me.prototype.imul=function(i,a){if(i.isZero()||a.isZero())return i.words[0]=0,i.length=1,i;var u=i.imul(a),l=u.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),y=u.isub(l).iushrn(this.shift),T=y;return y.cmp(this.m)>=0?T=y.isub(this.m):y.cmpn(0)<0&&(T=y.iadd(this.m)),T._forceRed(this)},me.prototype.mul=function(i,a){if(i.isZero()||a.isZero())return new s(0)._forceRed(this);var u=i.mul(a),l=u.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),y=u.isub(l).iushrn(this.shift),T=y;return y.cmp(this.m)>=0?T=y.isub(this.m):y.cmpn(0)<0&&(T=y.iadd(this.m)),T._forceRed(this)},me.prototype.invm=function(i){return this.imod(i._invmp(this.m).mul(this.r2))._forceRed(this)}}(Ve=p.nmd(Ve),this)},6386:(Ve,q,p)=>{"use strict";var t=p(3894),e=p(8095),b=p(5634),I=p(5244),s=p(1052);function C(h){s.call(this,"digest"),this._hash=h}t(C,s),C.prototype._update=function(h){this._hash.update(h)},C.prototype._final=function(){return this._hash.digest()},Ve.exports=function(P){return"md5"===(P=P.toLowerCase())?new e:"rmd160"===P||"ripemd160"===P?new b:new C(I(P))}},5640:(Ve,q,p)=>{var t=p(8095);Ve.exports=function(e){return(new t).update(e).digest()}},4529:(Ve,q,p)=>{"use strict";var t=p(3894),e=p(7309),b=p(1052),I=p(3502).Buffer,s=p(5640),C=p(5634),h=p(5244),P=I.alloc(128);function d(S,w){b.call(this,"digest"),"string"==typeof w&&(w=I.from(w));var O="sha512"===S||"sha384"===S?128:64;this._alg=S,this._key=w,w.length>O?w=("rmd160"===S?new C:h(S)).update(w).digest():w.length<O&&(w=I.concat([w,P],O));for(var R=this._ipad=I.allocUnsafe(O),z=this._opad=I.allocUnsafe(O),U=0;U<O;U++)R[U]=54^w[U],z[U]=92^w[U];this._hash="rmd160"===S?new C:h(S),this._hash.update(R)}t(d,b),d.prototype._update=function(S){this._hash.update(S)},d.prototype._final=function(){var S=this._hash.digest();return("rmd160"===this._alg?new C:h(this._alg)).update(this._opad).update(S).digest()},Ve.exports=function(w,O){return"rmd160"===(w=w.toLowerCase())||"ripemd160"===w?new d("rmd160",O):"md5"===w?new e(s,O):new d(w,O)}},7309:(Ve,q,p)=>{"use strict";var t=p(3894),e=p(3502).Buffer,b=p(1052),I=e.alloc(128),s=64;function C(h,P){b.call(this,"digest"),"string"==typeof P&&(P=e.from(P)),this._alg=h,this._key=P,P.length>s?P=h(P):P.length<s&&(P=e.concat([P,I],s));for(var d=this._ipad=e.allocUnsafe(s),S=this._opad=e.allocUnsafe(s),w=0;w<s;w++)d[w]=54^P[w],S[w]=92^P[w];this._hash=[d]}t(C,b),C.prototype._update=function(h){this._hash.push(h)},C.prototype._final=function(){var h=this._alg(e.concat(this._hash));return this._alg(e.concat([this._opad,h]))},Ve.exports=C},1348:(Ve,q,p)=>{"use strict";q.randomBytes=q.rng=q.pseudoRandomBytes=q.prng=p(3753),q.createHash=q.Hash=p(6386),q.createHmac=q.Hmac=p(4529);var t=p(7793),e=Object.keys(t),b=["sha1","sha224","sha256","sha384","sha512","md5","rmd160"].concat(e);q.getHashes=function(){return b};var I=p(9357);q.pbkdf2=I.pbkdf2,q.pbkdf2Sync=I.pbkdf2Sync;var s=p(5255);q.Cipher=s.Cipher,q.createCipher=s.createCipher,q.Cipheriv=s.Cipheriv,q.createCipheriv=s.createCipheriv,q.Decipher=s.Decipher,q.createDecipher=s.createDecipher,q.Decipheriv=s.Decipheriv,q.createDecipheriv=s.createDecipheriv,q.getCiphers=s.getCiphers,q.listCiphers=s.listCiphers;var C=p(8829);q.DiffieHellmanGroup=C.DiffieHellmanGroup,q.createDiffieHellmanGroup=C.createDiffieHellmanGroup,q.getDiffieHellman=C.getDiffieHellman,q.createDiffieHellman=C.createDiffieHellman,q.DiffieHellman=C.DiffieHellman;var h=p(3923);q.createSign=h.createSign,q.Sign=h.Sign,q.createVerify=h.createVerify,q.Verify=h.Verify,q.createECDH=p(4746);var P=p(3701);q.publicEncrypt=P.publicEncrypt,q.privateEncrypt=P.privateEncrypt,q.publicDecrypt=P.publicDecrypt,q.privateDecrypt=P.privateDecrypt;var d=p(4275);q.randomFill=d.randomFill,q.randomFillSync=d.randomFillSync,q.createCredentials=function(){throw new Error(["sorry, createCredentials is not implemented yet","we accept pull requests","https://github.com/crypto-browserify/crypto-browserify"].join("\n"))},q.constants={DH_CHECK_P_NOT_SAFE_PRIME:2,DH_CHECK_P_NOT_PRIME:1,DH_UNABLE_TO_CHECK_GENERATOR:4,DH_NOT_SUITABLE_GENERATOR:8,NPN_ENABLED:1,ALPN_ENABLED:1,RSA_PKCS1_PADDING:1,RSA_SSLV23_PADDING:2,RSA_NO_PADDING:3,RSA_PKCS1_OAEP_PADDING:4,RSA_X931_PADDING:5,RSA_PKCS1_PSS_PADDING:6,POINT_CONVERSION_COMPRESSED:2,POINT_CONVERSION_UNCOMPRESSED:4,POINT_CONVERSION_HYBRID:6}},3684:(Ve,q,p)=>{"use strict";q.utils=p(7451),q.Cipher=p(8170),q.DES=p(4631),q.CBC=p(9454),q.EDE=p(1862)},9454:(Ve,q,p)=>{"use strict";var t=p(2391),e=p(3894),b={};function I(C){t.equal(C.length,8,"Invalid IV length"),this.iv=new Array(8);for(var h=0;h<this.iv.length;h++)this.iv[h]=C[h]}q.instantiate=function s(C){function h(w){C.call(this,w),this._cbcInit()}e(h,C);for(var P=Object.keys(b),d=0;d<P.length;d++){var S=P[d];h.prototype[S]=b[S]}return h.create=function(O){return new h(O)},h},b._cbcInit=function(){var h=new I(this.options.iv);this._cbcState=h},b._update=function(h,P,d,S){var O=this.constructor.super_.prototype,E=this._cbcState.iv;if("encrypt"===this.type){for(var R=0;R<this.blockSize;R++)E[R]^=h[P+R];for(O._update.call(this,E,0,d,S),R=0;R<this.blockSize;R++)E[R]=d[S+R]}else{for(O._update.call(this,h,P,d,S),R=0;R<this.blockSize;R++)d[S+R]^=E[R];for(R=0;R<this.blockSize;R++)E[R]=h[P+R]}}},8170:(Ve,q,p)=>{"use strict";var t=p(2391);function e(b){this.options=b,this.type=this.options.type,this.blockSize=8,this._init(),this.buffer=new Array(this.blockSize),this.bufferOff=0}Ve.exports=e,e.prototype._init=function(){},e.prototype.update=function(I){return 0===I.length?[]:"decrypt"===this.type?this._updateDecrypt(I):this._updateEncrypt(I)},e.prototype._buffer=function(I,s){for(var C=Math.min(this.buffer.length-this.bufferOff,I.length-s),h=0;h<C;h++)this.buffer[this.bufferOff+h]=I[s+h];return this.bufferOff+=C,C},e.prototype._flushBuffer=function(I,s){return this._update(this.buffer,0,I,s),this.bufferOff=0,this.blockSize},e.prototype._updateEncrypt=function(I){var s=0,C=0,P=new Array(((this.bufferOff+I.length)/this.blockSize|0)*this.blockSize);0!==this.bufferOff&&(s+=this._buffer(I,s),this.bufferOff===this.buffer.length&&(C+=this._flushBuffer(P,C)));for(var d=I.length-(I.length-s)%this.blockSize;s<d;s+=this.blockSize)this._update(I,s,P,C),C+=this.blockSize;for(;s<I.length;s++,this.bufferOff++)this.buffer[this.bufferOff]=I[s];return P},e.prototype._updateDecrypt=function(I){for(var s=0,C=0,h=Math.ceil((this.bufferOff+I.length)/this.blockSize)-1,P=new Array(h*this.blockSize);h>0;h--)s+=this._buffer(I,s),C+=this._flushBuffer(P,C);return s+=this._buffer(I,s),P},e.prototype.final=function(I){var s,C;return I&&(s=this.update(I)),C="encrypt"===this.type?this._finalEncrypt():this._finalDecrypt(),s?s.concat(C):C},e.prototype._pad=function(I,s){if(0===s)return!1;for(;s<I.length;)I[s++]=0;return!0},e.prototype._finalEncrypt=function(){if(!this._pad(this.buffer,this.bufferOff))return[];var I=new Array(this.blockSize);return this._update(this.buffer,0,I,0),I},e.prototype._unpad=function(I){return I},e.prototype._finalDecrypt=function(){t.equal(this.bufferOff,this.blockSize,"Not enough data to decrypt");var I=new Array(this.blockSize);return this._flushBuffer(I,0),this._unpad(I)}},4631:(Ve,q,p)=>{"use strict";var t=p(2391),e=p(3894),b=p(7451),I=p(8170);function s(){this.tmp=new Array(2),this.keys=null}function C(P){I.call(this,P);var d=new s;this._desState=d,this.deriveKeys(d,P.key)}e(C,I),Ve.exports=C,C.create=function(d){return new C(d)};var h=[1,1,2,2,2,2,2,2,1,2,2,2,2,2,2,1];C.prototype.deriveKeys=function(d,S){d.keys=new Array(32),t.equal(S.length,this.blockSize,"Invalid key length");var w=b.readUInt32BE(S,0),O=b.readUInt32BE(S,4);b.pc1(w,O,d.tmp,0),w=d.tmp[0],O=d.tmp[1];for(var E=0;E<d.keys.length;E+=2){var R=h[E>>>1];w=b.r28shl(w,R),O=b.r28shl(O,R),b.pc2(w,O,d.keys,E)}},C.prototype._update=function(d,S,w,O){var E=this._desState,R=b.readUInt32BE(d,S),z=b.readUInt32BE(d,S+4);b.ip(R,z,E.tmp,0),R=E.tmp[0],z=E.tmp[1],"encrypt"===this.type?this._encrypt(E,R,z,E.tmp,0):this._decrypt(E,R,z,E.tmp,0),z=E.tmp[1],b.writeUInt32BE(w,R=E.tmp[0],O),b.writeUInt32BE(w,z,O+4)},C.prototype._pad=function(d,S){for(var w=d.length-S,O=S;O<d.length;O++)d[O]=w;return!0},C.prototype._unpad=function(d){for(var S=d[d.length-1],w=d.length-S;w<d.length;w++)t.equal(d[w],S);return d.slice(0,d.length-S)},C.prototype._encrypt=function(d,S,w,O,E){for(var R=S,z=w,U=0;U<d.keys.length;U+=2){var W=d.keys[U],K=d.keys[U+1];b.expand(z,d.tmp,0);var ee=b.substitute(W^=d.tmp[0],K^=d.tmp[1]),ue=z;z=(R^b.permute(ee))>>>0,R=ue}b.rip(z,R,O,E)},C.prototype._decrypt=function(d,S,w,O,E){for(var R=w,z=S,U=d.keys.length-2;U>=0;U-=2){var W=d.keys[U],K=d.keys[U+1];b.expand(R,d.tmp,0);var ee=b.substitute(W^=d.tmp[0],K^=d.tmp[1]),ue=R;R=(z^b.permute(ee))>>>0,z=ue}b.rip(R,z,O,E)}},1862:(Ve,q,p)=>{"use strict";var t=p(2391),e=p(3894),b=p(8170),I=p(4631);function s(h,P){t.equal(P.length,24,"Invalid key length");var d=P.slice(0,8),S=P.slice(8,16),w=P.slice(16,24);this.ciphers="encrypt"===h?[I.create({type:"encrypt",key:d}),I.create({type:"decrypt",key:S}),I.create({type:"encrypt",key:w})]:[I.create({type:"decrypt",key:w}),I.create({type:"encrypt",key:S}),I.create({type:"decrypt",key:d})]}function C(h){b.call(this,h);var P=new s(this.type,this.options.key);this._edeState=P}e(C,b),Ve.exports=C,C.create=function(P){return new C(P)},C.prototype._update=function(P,d,S,w){var O=this._edeState;O.ciphers[0]._update(P,d,S,w),O.ciphers[1]._update(S,w,S,w),O.ciphers[2]._update(S,w,S,w)},C.prototype._pad=I.prototype._pad,C.prototype._unpad=I.prototype._unpad},7451:(Ve,q)=>{"use strict";q.readUInt32BE=function(I,s){return(I[0+s]<<24|I[1+s]<<16|I[2+s]<<8|I[3+s])>>>0},q.writeUInt32BE=function(I,s,C){I[0+C]=s>>>24,I[1+C]=s>>>16&255,I[2+C]=s>>>8&255,I[3+C]=255&s},q.ip=function(I,s,C,h){for(var P=0,d=0,S=6;S>=0;S-=2){for(var w=0;w<=24;w+=8)P<<=1,P|=s>>>w+S&1;for(w=0;w<=24;w+=8)P<<=1,P|=I>>>w+S&1}for(S=6;S>=0;S-=2){for(w=1;w<=25;w+=8)d<<=1,d|=s>>>w+S&1;for(w=1;w<=25;w+=8)d<<=1,d|=I>>>w+S&1}C[h+0]=P>>>0,C[h+1]=d>>>0},q.rip=function(I,s,C,h){for(var P=0,d=0,S=0;S<4;S++)for(var w=24;w>=0;w-=8)P<<=1,P|=s>>>w+S&1,P<<=1,P|=I>>>w+S&1;for(S=4;S<8;S++)for(w=24;w>=0;w-=8)d<<=1,d|=s>>>w+S&1,d<<=1,d|=I>>>w+S&1;C[h+0]=P>>>0,C[h+1]=d>>>0},q.pc1=function(I,s,C,h){for(var P=0,d=0,S=7;S>=5;S--){for(var w=0;w<=24;w+=8)P<<=1,P|=s>>w+S&1;for(w=0;w<=24;w+=8)P<<=1,P|=I>>w+S&1}for(w=0;w<=24;w+=8)P<<=1,P|=s>>w+S&1;for(S=1;S<=3;S++){for(w=0;w<=24;w+=8)d<<=1,d|=s>>w+S&1;for(w=0;w<=24;w+=8)d<<=1,d|=I>>w+S&1}for(w=0;w<=24;w+=8)d<<=1,d|=I>>w+S&1;C[h+0]=P>>>0,C[h+1]=d>>>0},q.r28shl=function(I,s){return I<<s&268435455|I>>>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];q.pc2=function(I,s,C,h){for(var P=0,d=0,S=p.length>>>1,w=0;w<S;w++)P<<=1,P|=I>>>p[w]&1;for(w=S;w<p.length;w++)d<<=1,d|=s>>>p[w]&1;C[h+0]=P>>>0,C[h+1]=d>>>0},q.expand=function(I,s,C){var h=0,P=0;h=(1&I)<<5|I>>>27;for(var d=23;d>=15;d-=4)h<<=6,h|=I>>>d&63;for(d=11;d>=3;d-=4)P|=I>>>d&63,P<<=6;P|=(31&I)<<1|I>>>31,s[C+0]=h>>>0,s[C+1]=P>>>0};var t=[14,0,4,15,13,7,1,4,2,14,15,2,11,13,8,1,3,10,10,6,6,12,12,11,5,9,9,5,0,3,7,8,4,15,1,12,14,8,8,2,13,4,6,9,2,1,11,7,15,5,12,11,9,3,7,14,3,10,10,0,5,6,0,13,15,3,1,13,8,4,14,7,6,15,11,2,3,8,4,14,9,12,7,0,2,1,13,10,12,6,0,9,5,11,10,5,0,13,14,8,7,10,11,1,10,3,4,15,13,4,1,2,5,11,8,6,12,7,6,12,9,0,3,5,2,14,15,9,10,13,0,7,9,0,14,9,6,3,3,4,15,6,5,10,1,2,13,8,12,5,7,14,11,12,4,11,2,15,8,1,13,1,6,10,4,13,9,0,8,6,15,9,3,8,0,7,11,4,1,15,2,14,12,3,5,11,10,5,14,2,7,12,7,13,13,8,14,11,3,5,0,6,6,15,9,0,10,3,1,4,2,7,8,2,5,12,11,1,12,10,4,14,15,9,10,3,6,15,9,0,0,6,12,10,11,1,7,13,13,8,15,9,1,4,3,5,14,11,5,12,2,7,8,2,4,14,2,14,12,11,4,2,1,12,7,4,10,7,11,13,6,1,8,5,5,0,3,15,15,10,13,3,0,9,14,8,9,6,4,11,2,8,1,12,11,7,10,1,13,14,7,2,8,13,15,6,9,15,12,0,5,9,6,10,3,4,0,5,14,3,12,10,1,15,10,4,15,2,9,7,2,12,6,9,8,5,0,6,13,1,3,13,4,14,14,0,7,11,5,3,11,8,9,4,14,3,15,2,5,12,2,9,8,5,12,15,3,10,7,11,0,14,4,1,10,7,1,6,13,0,11,8,6,13,4,13,11,0,2,11,14,7,15,4,0,9,8,1,13,10,3,14,12,3,9,5,7,12,5,2,10,15,6,8,1,6,1,6,4,11,11,13,13,8,12,1,3,4,7,10,14,7,10,9,15,5,6,0,8,15,0,14,5,2,9,3,2,12,13,1,2,15,8,13,4,8,6,10,15,3,11,7,1,4,10,12,9,5,3,6,14,11,5,0,0,14,12,9,7,2,7,2,11,1,4,14,1,7,9,4,12,10,14,8,2,13,0,15,6,12,10,9,13,0,15,3,3,5,5,6,8,11];q.substitute=function(I,s){for(var C=0,h=0;h<4;h++)C<<=4,C|=t[64*h+(I>>>18-6*h&63)];for(h=0;h<4;h++)C<<=4,C|=t[256+64*h+(s>>>18-6*h&63)];return C>>>0};var e=[16,25,12,11,3,20,4,15,31,17,9,6,27,14,1,22,30,24,8,18,0,5,29,23,13,19,2,26,10,21,28,7];q.permute=function(I){for(var s=0,C=0;C<e.length;C++)s<<=1,s|=I>>>e[C]&1;return s>>>0},q.padSplit=function(I,s,C){for(var h=I.toString(2);h.length<s;)h="0"+h;for(var P=[],d=0;d<s;d+=C)P.push(h.slice(d,d+C));return P.join(" ")}},8829:(Ve,q,p)=>{var t=p(5563),e=p(9799),b=p(1419),s={binary:!0,hex:!0,base64:!0};q.DiffieHellmanGroup=q.createDiffieHellmanGroup=q.getDiffieHellman=function I(h){var P=new Buffer(e[h].prime,"hex"),d=new Buffer(e[h].gen,"hex");return new b(P,d)},q.createDiffieHellman=q.DiffieHellman=function C(h,P,d,S){return Buffer.isBuffer(P)||void 0===s[P]?C(h,"binary",P,d):(P=P||"binary",S=S||"binary",d=d||new Buffer([2]),Buffer.isBuffer(d)||(d=new Buffer(d,S)),"number"==typeof h?new b(t(h,d),d,!0):(Buffer.isBuffer(h)||(h=new Buffer(h,P)),new b(h,d,!0)))}},1419:(Ve,q,p)=>{var t=p(8313),b=new(p(7079)),I=new t(24),s=new t(11),C=new t(10),h=new t(3),P=new t(7),d=p(5563),S=p(3753);function w(W,K){return K=K||"utf8",Buffer.isBuffer(W)||(W=new Buffer(W,K)),this._pub=new t(W),this}function O(W,K){return K=K||"utf8",Buffer.isBuffer(W)||(W=new Buffer(W,K)),this._priv=new t(W),this}Ve.exports=z;var E={};function z(W,K,ee){this.setGenerator(K),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,ee?(this.setPublicKey=w,this.setPrivateKey=O):this._primeCode=8}function U(W,K){var ee=new Buffer(W.toArray());return K?ee.toString(K):ee}Object.defineProperty(z.prototype,"verifyError",{enumerable:!0,get:function(){return"number"!=typeof this._primeCode&&(this._primeCode=function R(W,K){var ee=K.toString("hex"),ie=[ee,W.toString(16)].join("_");if(ie in E)return E[ie];var le,ue=0;if(W.isEven()||!d.simpleSieve||!d.fermatTest(W)||!b.test(W))return ue+=1,E[ie]=ue+="02"===ee||"05"===ee?8:4,ue;switch(b.test(W.shrn(1))||(ue+=2),ee){case"02":W.mod(I).cmp(s)&&(ue+=8);break;case"05":(le=W.mod(C)).cmp(h)&&le.cmp(P)&&(ue+=8);break;default:ue+=4}return E[ie]=ue,ue}(this.__prime,this.__gen)),this._primeCode}}),z.prototype.generateKeys=function(){return this._priv||(this._priv=new t(S(this._primeLen))),this._pub=this._gen.toRed(this._prime).redPow(this._priv).fromRed(),this.getPublicKey()},z.prototype.computeSecret=function(W){var K=(W=(W=new t(W)).toRed(this._prime)).redPow(this._priv).fromRed(),ee=new Buffer(K.toArray()),ie=this.getPrime();if(ee.length<ie.length){var ue=new Buffer(ie.length-ee.length);ue.fill(0),ee=Buffer.concat([ue,ee])}return ee},z.prototype.getPublicKey=function(K){return U(this._pub,K)},z.prototype.getPrivateKey=function(K){return U(this._priv,K)},z.prototype.getPrime=function(W){return U(this.__prime,W)},z.prototype.getGenerator=function(W){return U(this._gen,W)},z.prototype.setGenerator=function(W,K){return K=K||"utf8",Buffer.isBuffer(W)||(W=new Buffer(W,K)),this.__gen=W,this._gen=new t(W),this}},5563:(Ve,q,p)=>{var t=p(3753);Ve.exports=ue,ue.simpleSieve=ee,ue.fermatTest=ie;var e=p(8313),b=new e(24),s=new(p(7079)),C=new e(1),h=new e(2),P=new e(5),w=(new e(16),new e(8),new e(10)),O=new e(3),R=(new e(7),new e(11)),z=new e(4),W=(new e(12),null);function ee(le){for(var ne=function K(){if(null!==W)return W;var ne=[];ne[0]=2;for(var de=1,$=3;$<1048576;$+=2){for(var me=Math.ceil(Math.sqrt($)),A=0;A<de&&ne[A]<=me&&$%ne[A]!=0;A++);de!==A&&ne[A]<=me||(ne[de++]=$)}return W=ne,ne}(),de=0;de<ne.length;de++)if(0===le.modn(ne[de]))return 0===le.cmpn(ne[de]);return!0}function ie(le){var ne=e.mont(le);return 0===h.toRed(ne).redPow(le.subn(1)).fromRed().cmpn(1)}function ue(le,ne){if(le<16)return new e(2===ne||5===ne?[140,123]:[140,39]);ne=new e(ne);for(var de,$;;){for(de=new e(t(Math.ceil(le/8)));de.bitLength()>le;)de.ishrn(1);if(de.isEven()&&de.iadd(C),de.testn(1)||de.iadd(h),ne.cmp(h)){if(!ne.cmp(P))for(;de.mod(w).cmp(O);)de.iadd(z)}else for(;de.mod(b).cmp(R);)de.iadd(z);if(ee($=de.shrn(1))&&ee(de)&&ie($)&&ie(de)&&s.test($)&&s.test(de))return de}}},8313:function(Ve,q,p){!function(t,e){"use strict";function b(A,i){if(!A)throw new Error(i||"Assertion failed")}function I(A,i){A.super_=i;var a=function(){};a.prototype=i.prototype,A.prototype=new a,A.prototype.constructor=A}function s(A,i,a){if(s.isBN(A))return A;this.negative=0,this.words=null,this.length=0,this.red=null,null!==A&&(("le"===i||"be"===i)&&(a=i,i=10),this._init(A||0,i||10,a||"be"))}var C;"object"==typeof t?t.exports=s:e.BN=s,s.BN=s,s.wordSize=26;try{C=typeof window<"u"&&typeof window.Buffer<"u"?window.Buffer:p(7748).Buffer}catch{}function h(A,i){var a=A.charCodeAt(i);return a>=65&&a<=70?a-55:a>=97&&a<=102?a-87:a-48&15}function P(A,i,a){var u=h(A,a);return a-1>=i&&(u|=h(A,a-1)<<4),u}function d(A,i,a,u){for(var l=0,y=Math.min(A.length,a),T=i;T<y;T++){var L=A.charCodeAt(T)-48;l*=u,l+=L>=49?L-49+10:L>=17?L-17+10:L}return l}s.isBN=function(i){return i instanceof s||null!==i&&"object"==typeof i&&i.constructor.wordSize===s.wordSize&&Array.isArray(i.words)},s.max=function(i,a){return i.cmp(a)>0?i:a},s.min=function(i,a){return i.cmp(a)<0?i:a},s.prototype._init=function(i,a,u){if("number"==typeof i)return this._initNumber(i,a,u);if("object"==typeof i)return this._initArray(i,a,u);"hex"===a&&(a=16),b(a===(0|a)&&a>=2&&a<=36);var l=0;"-"===(i=i.toString().replace(/\s+/g,""))[0]&&(l++,this.negative=1),l<i.length&&(16===a?this._parseHex(i,l,u):(this._parseBase(i,a,l),"le"===u&&this._initArray(this.toArray(),a,u)))},s.prototype._initNumber=function(i,a,u){i<0&&(this.negative=1,i=-i),i<67108864?(this.words=[67108863&i],this.length=1):i<4503599627370496?(this.words=[67108863&i,i/67108864&67108863],this.length=2):(b(i<9007199254740992),this.words=[67108863&i,i/67108864&67108863,1],this.length=3),"le"===u&&this._initArray(this.toArray(),a,u)},s.prototype._initArray=function(i,a,u){if(b("number"==typeof i.length),i.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(i.length/3),this.words=new Array(this.length);for(var l=0;l<this.length;l++)this.words[l]=0;var y,T,L=0;if("be"===u)for(l=i.length-1,y=0;l>=0;l-=3)this.words[y]|=(T=i[l]|i[l-1]<<8|i[l-2]<<16)<<L&67108863,this.words[y+1]=T>>>26-L&67108863,(L+=24)>=26&&(L-=26,y++);else if("le"===u)for(l=0,y=0;l<i.length;l+=3)this.words[y]|=(T=i[l]|i[l+1]<<8|i[l+2]<<16)<<L&67108863,this.words[y+1]=T>>>26-L&67108863,(L+=24)>=26&&(L-=26,y++);return this.strip()},s.prototype._parseHex=function(i,a,u){this.length=Math.ceil((i.length-a)/6),this.words=new Array(this.length);for(var l=0;l<this.length;l++)this.words[l]=0;var L,y=0,T=0;if("be"===u)for(l=i.length-1;l>=a;l-=2)L=P(i,a,l)<<y,this.words[T]|=67108863&L,y>=18?(y-=18,this.words[T+=1]|=L>>>26):y+=8;else for(l=(i.length-a)%2==0?a+1:a;l<i.length;l+=2)L=P(i,a,l)<<y,this.words[T]|=67108863&L,y>=18?(y-=18,this.words[T+=1]|=L>>>26):y+=8;this.strip()},s.prototype._parseBase=function(i,a,u){this.words=[0],this.length=1;for(var l=0,y=1;y<=67108863;y*=a)l++;l--,y=y/a|0;for(var T=i.length-u,L=T%l,m=Math.min(T,T-L)+u,n=0,_=u;_<m;_+=l)n=d(i,_,_+l,a),this.imuln(y),this.words[0]+n<67108864?this.words[0]+=n:this._iaddn(n);if(0!==L){var B=1;for(n=d(i,_,i.length,a),_=0;_<L;_++)B*=a;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 a=0;a<this.length;a++)i.words[a]=this.words[a];i.length=this.length,i.negative=this.negative,i.red=this.red},s.prototype.clone=function(){var i=new s(null);return this.copy(i),i},s.prototype._expand=function(i){for(;this.length<i;)this.words[this.length++]=0;return this},s.prototype.strip=function(){for(;this.length>1&&0===this.words[this.length-1];)this.length--;return this._normSign()},s.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},s.prototype.inspect=function(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"};var S=["","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],O=[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 R(A,i,a){a.negative=i.negative^A.negative;var u=A.length+i.length|0;a.length=u,u=u-1|0;var l=0|A.words[0],y=0|i.words[0],T=l*y,m=T/67108864|0;a.words[0]=67108863&T;for(var n=1;n<u;n++){for(var _=m>>>26,B=67108863&m,V=Math.min(n,i.length-1),X=Math.max(0,n-A.length+1);X<=V;X++)_+=(T=(l=0|A.words[n-X|0])*(y=0|i.words[X])+B)/67108864|0,B=67108863&T;a.words[n]=0|B,m=0|_}return 0!==m?a.words[n]=0|m:a.length--,a.strip()}s.prototype.toString=function(i,a){var u;if(a=0|a||1,16===(i=i||10)||"hex"===i){u="";for(var l=0,y=0,T=0;T<this.length;T++){var L=this.words[T],m=(16777215&(L<<l|y)).toString(16);u=0!=(y=L>>>24-l&16777215)||T!==this.length-1?S[6-m.length]+m+u:m+u,(l+=2)>=26&&(l-=26,T--)}for(0!==y&&(u=y.toString(16)+u);u.length%a!=0;)u="0"+u;return 0!==this.negative&&(u="-"+u),u}if(i===(0|i)&&i>=2&&i<=36){var n=w[i],_=O[i];u="";var B=this.clone();for(B.negative=0;!B.isZero();){var V=B.modn(_).toString(i);u=(B=B.idivn(_)).isZero()?V+u:S[n-V.length]+V+u}for(this.isZero()&&(u="0"+u);u.length%a!=0;)u="0"+u;return 0!==this.negative&&(u="-"+u),u}b(!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&&b(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-i:i},s.prototype.toJSON=function(){return this.toString(16)},s.prototype.toBuffer=function(i,a){return b(typeof C<"u"),this.toArrayLike(C,i,a)},s.prototype.toArray=function(i,a){return this.toArrayLike(Array,i,a)},s.prototype.toArrayLike=function(i,a,u){var l=this.byteLength(),y=u||Math.max(1,l);b(l<=y,"byte array longer than desired length"),b(y>0,"Requested array length <= 0"),this.strip();var m,n,T="le"===a,L=new i(y),_=this.clone();if(T){for(n=0;!_.isZero();n++)m=_.andln(255),_.iushrn(8),L[n]=m;for(;n<y;n++)L[n]=0}else{for(n=0;n<y-l;n++)L[n]=0;for(n=0;!_.isZero();n++)m=_.andln(255),_.iushrn(8),L[y-n-1]=m}return L},s.prototype._countBits=Math.clz32?function(i){return 32-Math.clz32(i)}:function(i){var a=i,u=0;return a>=4096&&(u+=13,a>>>=13),a>=64&&(u+=7,a>>>=7),a>=8&&(u+=4,a>>>=4),a>=2&&(u+=2,a>>>=2),u+a},s.prototype._zeroBits=function(i){if(0===i)return 26;var a=i,u=0;return 8191&a||(u+=13,a>>>=13),127&a||(u+=7,a>>>=7),15&a||(u+=4,a>>>=4),3&a||(u+=2,a>>>=2),1&a||u++,u},s.prototype.bitLength=function(){var a=this._countBits(this.words[this.length-1]);return 26*(this.length-1)+a},s.prototype.zeroBits=function(){if(this.isZero())return 0;for(var i=0,a=0;a<this.length;a++){var u=this._zeroBits(this.words[a]);if(i+=u,26!==u)break}return i},s.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},s.prototype.toTwos=function(i){return 0!==this.negative?this.abs().inotn(i).iaddn(1):this.clone()},s.prototype.fromTwos=function(i){return this.testn(i-1)?this.notn(i).iaddn(1).ineg():this.clone()},s.prototype.isNeg=function(){return 0!==this.negative},s.prototype.neg=function(){return this.clone().ineg()},s.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},s.prototype.iuor=function(i){for(;this.length<i.length;)this.words[this.length++]=0;for(var a=0;a<i.length;a++)this.words[a]=this.words[a]|i.words[a];return this.strip()},s.prototype.ior=function(i){return b(0==(this.negative|i.negative)),this.iuor(i)},s.prototype.or=function(i){return this.length>i.length?this.clone().ior(i):i.clone().ior(this)},s.prototype.uor=function(i){return this.length>i.length?this.clone().iuor(i):i.clone().iuor(this)},s.prototype.iuand=function(i){var a;a=this.length>i.length?i:this;for(var u=0;u<a.length;u++)this.words[u]=this.words[u]&i.words[u];return this.length=a.length,this.strip()},s.prototype.iand=function(i){return b(0==(this.negative|i.negative)),this.iuand(i)},s.prototype.and=function(i){return this.length>i.length?this.clone().iand(i):i.clone().iand(this)},s.prototype.uand=function(i){return this.length>i.length?this.clone().iuand(i):i.clone().iuand(this)},s.prototype.iuxor=function(i){var a,u;this.length>i.length?(a=this,u=i):(a=i,u=this);for(var l=0;l<u.length;l++)this.words[l]=a.words[l]^u.words[l];if(this!==a)for(;l<a.length;l++)this.words[l]=a.words[l];return this.length=a.length,this.strip()},s.prototype.ixor=function(i){return b(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){b("number"==typeof i&&i>=0);var a=0|Math.ceil(i/26),u=i%26;this._expand(a),u>0&&a--;for(var l=0;l<a;l++)this.words[l]=67108863&~this.words[l];return u>0&&(this.words[l]=~this.words[l]&67108863>>26-u),this.strip()},s.prototype.notn=function(i){return this.clone().inotn(i)},s.prototype.setn=function(i,a){b("number"==typeof i&&i>=0);var u=i/26|0,l=i%26;return this._expand(u+1),this.words[u]=a?this.words[u]|1<<l:this.words[u]&~(1<<l),this.strip()},s.prototype.iadd=function(i){var a,u,l;if(0!==this.negative&&0===i.negative)return this.negative=0,a=this.isub(i),this.negative^=1,this._normSign();if(0===this.negative&&0!==i.negative)return i.negative=0,a=this.isub(i),i.negative=1,a._normSign();this.length>i.length?(u=this,l=i):(u=i,l=this);for(var y=0,T=0;T<l.length;T++)this.words[T]=67108863&(a=(0|u.words[T])+(0|l.words[T])+y),y=a>>>26;for(;0!==y&&T<u.length;T++)this.words[T]=67108863&(a=(0|u.words[T])+y),y=a>>>26;if(this.length=u.length,0!==y)this.words[this.length]=y,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 a;return 0!==i.negative&&0===this.negative?(i.negative=0,a=this.sub(i),i.negative^=1,a):0===i.negative&&0!==this.negative?(this.negative=0,a=i.sub(this),this.negative=1,a):this.length>i.length?this.clone().iadd(i):i.clone().iadd(this)},s.prototype.isub=function(i){if(0!==i.negative){i.negative=0;var a=this.iadd(i);return i.negative=1,a._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(i),this.negative=1,this._normSign();var l,y,u=this.cmp(i);if(0===u)return this.negative=0,this.length=1,this.words[0]=0,this;u>0?(l=this,y=i):(l=i,y=this);for(var T=0,L=0;L<y.length;L++)T=(a=(0|l.words[L])-(0|y.words[L])+T)>>26,this.words[L]=67108863&a;for(;0!==T&&L<l.length;L++)T=(a=(0|l.words[L])+T)>>26,this.words[L]=67108863&a;if(0===T&&L<l.length&&l!==this)for(;L<l.length;L++)this.words[L]=l.words[L];return this.length=Math.max(this.length,L),l!==this&&(this.negative=1),this.strip()},s.prototype.sub=function(i){return this.clone().isub(i)};var z=function(i,a,u){var m,n,_,l=i.words,y=a.words,T=u.words,L=0,B=0|l[0],V=8191&B,X=B>>>13,Le=0|l[1],$e=8191&Le,We=Le>>>13,Fe=0|l[2],De=8191&Fe,ye=Fe>>>13,ce=0|l[3],ve=8191&ce,oe=ce>>>13,je=0|l[4],Ae=8191&je,he=je>>>13,Ce=0|l[5],te=8191&Ce,Ue=Ce>>>13,Be=0|l[6],ae=8191&Be,ge=Be>>>13,ft=0|l[7],Je=8191&ft,dt=ft>>>13,Et=0|l[8],pt=8191&Et,ot=Et>>>13,wt=0|l[9],ke=8191&wt,Ke=wt>>>13,xt=0|y[0],Y=8191&xt,Re=xt>>>13,Tt=0|y[1],Qe=8191&Tt,Ye=Tt>>>13,Ht=0|y[2],Mt=8191&Ht,kt=Ht>>>13,_t=0|y[3],we=8191&_t,J=_t>>>13,be=0|y[4],He=8191&be,at=be>>>13,ii=0|y[5],Gt=8191&ii,ni=ii>>>13,ut=0|y[6],tt=8191&ut,vt=ut>>>13,ti=0|y[7],Ut=8191&ti,ht=ti>>>13,Rt=0|y[8],Oe=8191&Rt,et=Rt>>>13,it=0|y[9],ct=8191&it,Dt=it>>>13;u.negative=i.negative^a.negative,u.length=19;var pi=(L+(m=Math.imul(V,Y))|0)+((8191&(n=(n=Math.imul(V,Re))+Math.imul(X,Y)|0))<<13)|0;L=((_=Math.imul(X,Re))+(n>>>13)|0)+(pi>>>26)|0,pi&=67108863,m=Math.imul($e,Y),n=(n=Math.imul($e,Re))+Math.imul(We,Y)|0,_=Math.imul(We,Re);var Li=(L+(m=m+Math.imul(V,Qe)|0)|0)+((8191&(n=(n=n+Math.imul(V,Ye)|0)+Math.imul(X,Qe)|0))<<13)|0;L=((_=_+Math.imul(X,Ye)|0)+(n>>>13)|0)+(Li>>>26)|0,Li&=67108863,m=Math.imul(De,Y),n=(n=Math.imul(De,Re))+Math.imul(ye,Y)|0,_=Math.imul(ye,Re),m=m+Math.imul($e,Qe)|0,n=(n=n+Math.imul($e,Ye)|0)+Math.imul(We,Qe)|0,_=_+Math.imul(We,Ye)|0;var xi=(L+(m=m+Math.imul(V,Mt)|0)|0)+((8191&(n=(n=n+Math.imul(V,kt)|0)+Math.imul(X,Mt)|0))<<13)|0;L=((_=_+Math.imul(X,kt)|0)+(n>>>13)|0)+(xi>>>26)|0,xi&=67108863,m=Math.imul(ve,Y),n=(n=Math.imul(ve,Re))+Math.imul(oe,Y)|0,_=Math.imul(oe,Re),m=m+Math.imul(De,Qe)|0,n=(n=n+Math.imul(De,Ye)|0)+Math.imul(ye,Qe)|0,_=_+Math.imul(ye,Ye)|0,m=m+Math.imul($e,Mt)|0,n=(n=n+Math.imul($e,kt)|0)+Math.imul(We,Mt)|0,_=_+Math.imul(We,kt)|0;var Fi=(L+(m=m+Math.imul(V,we)|0)|0)+((8191&(n=(n=n+Math.imul(V,J)|0)+Math.imul(X,we)|0))<<13)|0;L=((_=_+Math.imul(X,J)|0)+(n>>>13)|0)+(Fi>>>26)|0,Fi&=67108863,m=Math.imul(Ae,Y),n=(n=Math.imul(Ae,Re))+Math.imul(he,Y)|0,_=Math.imul(he,Re),m=m+Math.imul(ve,Qe)|0,n=(n=n+Math.imul(ve,Ye)|0)+Math.imul(oe,Qe)|0,_=_+Math.imul(oe,Ye)|0,m=m+Math.imul(De,Mt)|0,n=(n=n+Math.imul(De,kt)|0)+Math.imul(ye,Mt)|0,_=_+Math.imul(ye,kt)|0,m=m+Math.imul($e,we)|0,n=(n=n+Math.imul($e,J)|0)+Math.imul(We,we)|0,_=_+Math.imul(We,J)|0;var qe=(L+(m=m+Math.imul(V,He)|0)|0)+((8191&(n=(n=n+Math.imul(V,at)|0)+Math.imul(X,He)|0))<<13)|0;L=((_=_+Math.imul(X,at)|0)+(n>>>13)|0)+(qe>>>26)|0,qe&=67108863,m=Math.imul(te,Y),n=(n=Math.imul(te,Re))+Math.imul(Ue,Y)|0,_=Math.imul(Ue,Re),m=m+Math.imul(Ae,Qe)|0,n=(n=n+Math.imul(Ae,Ye)|0)+Math.imul(he,Qe)|0,_=_+Math.imul(he,Ye)|0,m=m+Math.imul(ve,Mt)|0,n=(n=n+Math.imul(ve,kt)|0)+Math.imul(oe,Mt)|0,_=_+Math.imul(oe,kt)|0,m=m+Math.imul(De,we)|0,n=(n=n+Math.imul(De,J)|0)+Math.imul(ye,we)|0,_=_+Math.imul(ye,J)|0,m=m+Math.imul($e,He)|0,n=(n=n+Math.imul($e,at)|0)+Math.imul(We,He)|0,_=_+Math.imul(We,at)|0;var St=(L+(m=m+Math.imul(V,Gt)|0)|0)+((8191&(n=(n=n+Math.imul(V,ni)|0)+Math.imul(X,Gt)|0))<<13)|0;L=((_=_+Math.imul(X,ni)|0)+(n>>>13)|0)+(St>>>26)|0,St&=67108863,m=Math.imul(ae,Y),n=(n=Math.imul(ae,Re))+Math.imul(ge,Y)|0,_=Math.imul(ge,Re),m=m+Math.imul(te,Qe)|0,n=(n=n+Math.imul(te,Ye)|0)+Math.imul(Ue,Qe)|0,_=_+Math.imul(Ue,Ye)|0,m=m+Math.imul(Ae,Mt)|0,n=(n=n+Math.imul(Ae,kt)|0)+Math.imul(he,Mt)|0,_=_+Math.imul(he,kt)|0,m=m+Math.imul(ve,we)|0,n=(n=n+Math.imul(ve,J)|0)+Math.imul(oe,we)|0,_=_+Math.imul(oe,J)|0,m=m+Math.imul(De,He)|0,n=(n=n+Math.imul(De,at)|0)+Math.imul(ye,He)|0,_=_+Math.imul(ye,at)|0,m=m+Math.imul($e,Gt)|0,n=(n=n+Math.imul($e,ni)|0)+Math.imul(We,Gt)|0,_=_+Math.imul(We,ni)|0;var xe=(L+(m=m+Math.imul(V,tt)|0)|0)+((8191&(n=(n=n+Math.imul(V,vt)|0)+Math.imul(X,tt)|0))<<13)|0;L=((_=_+Math.imul(X,vt)|0)+(n>>>13)|0)+(xe>>>26)|0,xe&=67108863,m=Math.imul(Je,Y),n=(n=Math.imul(Je,Re))+Math.imul(dt,Y)|0,_=Math.imul(dt,Re),m=m+Math.imul(ae,Qe)|0,n=(n=n+Math.imul(ae,Ye)|0)+Math.imul(ge,Qe)|0,_=_+Math.imul(ge,Ye)|0,m=m+Math.imul(te,Mt)|0,n=(n=n+Math.imul(te,kt)|0)+Math.imul(Ue,Mt)|0,_=_+Math.imul(Ue,kt)|0,m=m+Math.imul(Ae,we)|0,n=(n=n+Math.imul(Ae,J)|0)+Math.imul(he,we)|0,_=_+Math.imul(he,J)|0,m=m+Math.imul(ve,He)|0,n=(n=n+Math.imul(ve,at)|0)+Math.imul(oe,He)|0,_=_+Math.imul(oe,at)|0,m=m+Math.imul(De,Gt)|0,n=(n=n+Math.imul(De,ni)|0)+Math.imul(ye,Gt)|0,_=_+Math.imul(ye,ni)|0,m=m+Math.imul($e,tt)|0,n=(n=n+Math.imul($e,vt)|0)+Math.imul(We,tt)|0,_=_+Math.imul(We,vt)|0;var Nt=(L+(m=m+Math.imul(V,Ut)|0)|0)+((8191&(n=(n=n+Math.imul(V,ht)|0)+Math.imul(X,Ut)|0))<<13)|0;L=((_=_+Math.imul(X,ht)|0)+(n>>>13)|0)+(Nt>>>26)|0,Nt&=67108863,m=Math.imul(pt,Y),n=(n=Math.imul(pt,Re))+Math.imul(ot,Y)|0,_=Math.imul(ot,Re),m=m+Math.imul(Je,Qe)|0,n=(n=n+Math.imul(Je,Ye)|0)+Math.imul(dt,Qe)|0,_=_+Math.imul(dt,Ye)|0,m=m+Math.imul(ae,Mt)|0,n=(n=n+Math.imul(ae,kt)|0)+Math.imul(ge,Mt)|0,_=_+Math.imul(ge,kt)|0,m=m+Math.imul(te,we)|0,n=(n=n+Math.imul(te,J)|0)+Math.imul(Ue,we)|0,_=_+Math.imul(Ue,J)|0,m=m+Math.imul(Ae,He)|0,n=(n=n+Math.imul(Ae,at)|0)+Math.imul(he,He)|0,_=_+Math.imul(he,at)|0,m=m+Math.imul(ve,Gt)|0,n=(n=n+Math.imul(ve,ni)|0)+Math.imul(oe,Gt)|0,_=_+Math.imul(oe,ni)|0,m=m+Math.imul(De,tt)|0,n=(n=n+Math.imul(De,vt)|0)+Math.imul(ye,tt)|0,_=_+Math.imul(ye,vt)|0,m=m+Math.imul($e,Ut)|0,n=(n=n+Math.imul($e,ht)|0)+Math.imul(We,Ut)|0,_=_+Math.imul(We,ht)|0;var qt=(L+(m=m+Math.imul(V,Oe)|0)|0)+((8191&(n=(n=n+Math.imul(V,et)|0)+Math.imul(X,Oe)|0))<<13)|0;L=((_=_+Math.imul(X,et)|0)+(n>>>13)|0)+(qt>>>26)|0,qt&=67108863,m=Math.imul(ke,Y),n=(n=Math.imul(ke,Re))+Math.imul(Ke,Y)|0,_=Math.imul(Ke,Re),m=m+Math.imul(pt,Qe)|0,n=(n=n+Math.imul(pt,Ye)|0)+Math.imul(ot,Qe)|0,_=_+Math.imul(ot,Ye)|0,m=m+Math.imul(Je,Mt)|0,n=(n=n+Math.imul(Je,kt)|0)+Math.imul(dt,Mt)|0,_=_+Math.imul(dt,kt)|0,m=m+Math.imul(ae,we)|0,n=(n=n+Math.imul(ae,J)|0)+Math.imul(ge,we)|0,_=_+Math.imul(ge,J)|0,m=m+Math.imul(te,He)|0,n=(n=n+Math.imul(te,at)|0)+Math.imul(Ue,He)|0,_=_+Math.imul(Ue,at)|0,m=m+Math.imul(Ae,Gt)|0,n=(n=n+Math.imul(Ae,ni)|0)+Math.imul(he,Gt)|0,_=_+Math.imul(he,ni)|0,m=m+Math.imul(ve,tt)|0,n=(n=n+Math.imul(ve,vt)|0)+Math.imul(oe,tt)|0,_=_+Math.imul(oe,vt)|0,m=m+Math.imul(De,Ut)|0,n=(n=n+Math.imul(De,ht)|0)+Math.imul(ye,Ut)|0,_=_+Math.imul(ye,ht)|0,m=m+Math.imul($e,Oe)|0,n=(n=n+Math.imul($e,et)|0)+Math.imul(We,Oe)|0,_=_+Math.imul(We,et)|0;var mi=(L+(m=m+Math.imul(V,ct)|0)|0)+((8191&(n=(n=n+Math.imul(V,Dt)|0)+Math.imul(X,ct)|0))<<13)|0;L=((_=_+Math.imul(X,Dt)|0)+(n>>>13)|0)+(mi>>>26)|0,mi&=67108863,m=Math.imul(ke,Qe),n=(n=Math.imul(ke,Ye))+Math.imul(Ke,Qe)|0,_=Math.imul(Ke,Ye),m=m+Math.imul(pt,Mt)|0,n=(n=n+Math.imul(pt,kt)|0)+Math.imul(ot,Mt)|0,_=_+Math.imul(ot,kt)|0,m=m+Math.imul(Je,we)|0,n=(n=n+Math.imul(Je,J)|0)+Math.imul(dt,we)|0,_=_+Math.imul(dt,J)|0,m=m+Math.imul(ae,He)|0,n=(n=n+Math.imul(ae,at)|0)+Math.imul(ge,He)|0,_=_+Math.imul(ge,at)|0,m=m+Math.imul(te,Gt)|0,n=(n=n+Math.imul(te,ni)|0)+Math.imul(Ue,Gt)|0,_=_+Math.imul(Ue,ni)|0,m=m+Math.imul(Ae,tt)|0,n=(n=n+Math.imul(Ae,vt)|0)+Math.imul(he,tt)|0,_=_+Math.imul(he,vt)|0,m=m+Math.imul(ve,Ut)|0,n=(n=n+Math.imul(ve,ht)|0)+Math.imul(oe,Ut)|0,_=_+Math.imul(oe,ht)|0,m=m+Math.imul(De,Oe)|0,n=(n=n+Math.imul(De,et)|0)+Math.imul(ye,Oe)|0,_=_+Math.imul(ye,et)|0;var Ci=(L+(m=m+Math.imul($e,ct)|0)|0)+((8191&(n=(n=n+Math.imul($e,Dt)|0)+Math.imul(We,ct)|0))<<13)|0;L=((_=_+Math.imul(We,Dt)|0)+(n>>>13)|0)+(Ci>>>26)|0,Ci&=67108863,m=Math.imul(ke,Mt),n=(n=Math.imul(ke,kt))+Math.imul(Ke,Mt)|0,_=Math.imul(Ke,kt),m=m+Math.imul(pt,we)|0,n=(n=n+Math.imul(pt,J)|0)+Math.imul(ot,we)|0,_=_+Math.imul(ot,J)|0,m=m+Math.imul(Je,He)|0,n=(n=n+Math.imul(Je,at)|0)+Math.imul(dt,He)|0,_=_+Math.imul(dt,at)|0,m=m+Math.imul(ae,Gt)|0,n=(n=n+Math.imul(ae,ni)|0)+Math.imul(ge,Gt)|0,_=_+Math.imul(ge,ni)|0,m=m+Math.imul(te,tt)|0,n=(n=n+Math.imul(te,vt)|0)+Math.imul(Ue,tt)|0,_=_+Math.imul(Ue,vt)|0,m=m+Math.imul(Ae,Ut)|0,n=(n=n+Math.imul(Ae,ht)|0)+Math.imul(he,Ut)|0,_=_+Math.imul(he,ht)|0,m=m+Math.imul(ve,Oe)|0,n=(n=n+Math.imul(ve,et)|0)+Math.imul(oe,Oe)|0,_=_+Math.imul(oe,et)|0;var Ii=(L+(m=m+Math.imul(De,ct)|0)|0)+((8191&(n=(n=n+Math.imul(De,Dt)|0)+Math.imul(ye,ct)|0))<<13)|0;L=((_=_+Math.imul(ye,Dt)|0)+(n>>>13)|0)+(Ii>>>26)|0,Ii&=67108863,m=Math.imul(ke,we),n=(n=Math.imul(ke,J))+Math.imul(Ke,we)|0,_=Math.imul(Ke,J),m=m+Math.imul(pt,He)|0,n=(n=n+Math.imul(pt,at)|0)+Math.imul(ot,He)|0,_=_+Math.imul(ot,at)|0,m=m+Math.imul(Je,Gt)|0,n=(n=n+Math.imul(Je,ni)|0)+Math.imul(dt,Gt)|0,_=_+Math.imul(dt,ni)|0,m=m+Math.imul(ae,tt)|0,n=(n=n+Math.imul(ae,vt)|0)+Math.imul(ge,tt)|0,_=_+Math.imul(ge,vt)|0,m=m+Math.imul(te,Ut)|0,n=(n=n+Math.imul(te,ht)|0)+Math.imul(Ue,Ut)|0,_=_+Math.imul(Ue,ht)|0,m=m+Math.imul(Ae,Oe)|0,n=(n=n+Math.imul(Ae,et)|0)+Math.imul(he,Oe)|0,_=_+Math.imul(he,et)|0;var Gi=(L+(m=m+Math.imul(ve,ct)|0)|0)+((8191&(n=(n=n+Math.imul(ve,Dt)|0)+Math.imul(oe,ct)|0))<<13)|0;L=((_=_+Math.imul(oe,Dt)|0)+(n>>>13)|0)+(Gi>>>26)|0,Gi&=67108863,m=Math.imul(ke,He),n=(n=Math.imul(ke,at))+Math.imul(Ke,He)|0,_=Math.imul(Ke,at),m=m+Math.imul(pt,Gt)|0,n=(n=n+Math.imul(pt,ni)|0)+Math.imul(ot,Gt)|0,_=_+Math.imul(ot,ni)|0,m=m+Math.imul(Je,tt)|0,n=(n=n+Math.imul(Je,vt)|0)+Math.imul(dt,tt)|0,_=_+Math.imul(dt,vt)|0,m=m+Math.imul(ae,Ut)|0,n=(n=n+Math.imul(ae,ht)|0)+Math.imul(ge,Ut)|0,_=_+Math.imul(ge,ht)|0,m=m+Math.imul(te,Oe)|0,n=(n=n+Math.imul(te,et)|0)+Math.imul(Ue,Oe)|0,_=_+Math.imul(Ue,et)|0;var Yi=(L+(m=m+Math.imul(Ae,ct)|0)|0)+((8191&(n=(n=n+Math.imul(Ae,Dt)|0)+Math.imul(he,ct)|0))<<13)|0;L=((_=_+Math.imul(he,Dt)|0)+(n>>>13)|0)+(Yi>>>26)|0,Yi&=67108863,m=Math.imul(ke,Gt),n=(n=Math.imul(ke,ni))+Math.imul(Ke,Gt)|0,_=Math.imul(Ke,ni),m=m+Math.imul(pt,tt)|0,n=(n=n+Math.imul(pt,vt)|0)+Math.imul(ot,tt)|0,_=_+Math.imul(ot,vt)|0,m=m+Math.imul(Je,Ut)|0,n=(n=n+Math.imul(Je,ht)|0)+Math.imul(dt,Ut)|0,_=_+Math.imul(dt,ht)|0,m=m+Math.imul(ae,Oe)|0,n=(n=n+Math.imul(ae,et)|0)+Math.imul(ge,Oe)|0,_=_+Math.imul(ge,et)|0;var Ji=(L+(m=m+Math.imul(te,ct)|0)|0)+((8191&(n=(n=n+Math.imul(te,Dt)|0)+Math.imul(Ue,ct)|0))<<13)|0;L=((_=_+Math.imul(Ue,Dt)|0)+(n>>>13)|0)+(Ji>>>26)|0,Ji&=67108863,m=Math.imul(ke,tt),n=(n=Math.imul(ke,vt))+Math.imul(Ke,tt)|0,_=Math.imul(Ke,vt),m=m+Math.imul(pt,Ut)|0,n=(n=n+Math.imul(pt,ht)|0)+Math.imul(ot,Ut)|0,_=_+Math.imul(ot,ht)|0,m=m+Math.imul(Je,Oe)|0,n=(n=n+Math.imul(Je,et)|0)+Math.imul(dt,Oe)|0,_=_+Math.imul(dt,et)|0;var Wt=(L+(m=m+Math.imul(ae,ct)|0)|0)+((8191&(n=(n=n+Math.imul(ae,Dt)|0)+Math.imul(ge,ct)|0))<<13)|0;L=((_=_+Math.imul(ge,Dt)|0)+(n>>>13)|0)+(Wt>>>26)|0,Wt&=67108863,m=Math.imul(ke,Ut),n=(n=Math.imul(ke,ht))+Math.imul(Ke,Ut)|0,_=Math.imul(Ke,ht),m=m+Math.imul(pt,Oe)|0,n=(n=n+Math.imul(pt,et)|0)+Math.imul(ot,Oe)|0,_=_+Math.imul(ot,et)|0;var Jt=(L+(m=m+Math.imul(Je,ct)|0)|0)+((8191&(n=(n=n+Math.imul(Je,Dt)|0)+Math.imul(dt,ct)|0))<<13)|0;L=((_=_+Math.imul(dt,Dt)|0)+(n>>>13)|0)+(Jt>>>26)|0,Jt&=67108863,m=Math.imul(ke,Oe),n=(n=Math.imul(ke,et))+Math.imul(Ke,Oe)|0,_=Math.imul(Ke,et);var fe=(L+(m=m+Math.imul(pt,ct)|0)|0)+((8191&(n=(n=n+Math.imul(pt,Dt)|0)+Math.imul(ot,ct)|0))<<13)|0;L=((_=_+Math.imul(ot,Dt)|0)+(n>>>13)|0)+(fe>>>26)|0,fe&=67108863;var lt=(L+(m=Math.imul(ke,ct))|0)+((8191&(n=(n=Math.imul(ke,Dt))+Math.imul(Ke,ct)|0))<<13)|0;return L=((_=Math.imul(Ke,Dt))+(n>>>13)|0)+(lt>>>26)|0,lt&=67108863,T[0]=pi,T[1]=Li,T[2]=xi,T[3]=Fi,T[4]=qe,T[5]=St,T[6]=xe,T[7]=Nt,T[8]=qt,T[9]=mi,T[10]=Ci,T[11]=Ii,T[12]=Gi,T[13]=Yi,T[14]=Ji,T[15]=Wt,T[16]=Jt,T[17]=fe,T[18]=lt,0!==L&&(T[19]=L,u.length++),u};function W(A,i,a){return(new K).mulp(A,i,a)}function K(A,i){this.x=A,this.y=i}Math.imul||(z=R),s.prototype.mulTo=function(i,a){var u,l=this.length+i.length;return u=10===this.length&&10===i.length?z(this,i,a):l<63?R(this,i,a):l<1024?function U(A,i,a){a.negative=i.negative^A.negative,a.length=A.length+i.length;for(var u=0,l=0,y=0;y<a.length-1;y++){var T=l;l=0;for(var L=67108863&u,m=Math.min(y,i.length-1),n=Math.max(0,y-A.length+1);n<=m;n++){var X=(0|A.words[y-n])*(0|i.words[n]),Le=67108863&X;L=67108863&(Le=Le+L|0),l+=(T=(T=T+(X/67108864|0)|0)+(Le>>>26)|0)>>>26,T&=67108863}a.words[y]=L,u=T,T=l}return 0!==u?a.words[y]=u:a.length--,a.strip()}(this,i,a):W(this,i,a),u},K.prototype.makeRBT=function(i){for(var a=new Array(i),u=s.prototype._countBits(i)-1,l=0;l<i;l++)a[l]=this.revBin(l,u,i);return a},K.prototype.revBin=function(i,a,u){if(0===i||i===u-1)return i;for(var l=0,y=0;y<a;y++)l|=(1&i)<<a-y-1,i>>=1;return l},K.prototype.permute=function(i,a,u,l,y,T){for(var L=0;L<T;L++)l[L]=a[i[L]],y[L]=u[i[L]]},K.prototype.transform=function(i,a,u,l,y,T){this.permute(T,i,a,u,l,y);for(var L=1;L<y;L<<=1)for(var m=L<<1,n=Math.cos(2*Math.PI/m),_=Math.sin(2*Math.PI/m),B=0;B<y;B+=m)for(var V=n,X=_,Le=0;Le<L;Le++){var $e=u[B+Le],We=l[B+Le],Fe=u[B+Le+L],De=l[B+Le+L],ye=V*Fe-X*De;De=V*De+X*Fe,u[B+Le]=$e+(Fe=ye),l[B+Le]=We+De,u[B+Le+L]=$e-Fe,l[B+Le+L]=We-De,Le!==m&&(ye=n*V-_*X,X=n*X+_*V,V=ye)}},K.prototype.guessLen13b=function(i,a){var u=1|Math.max(a,i),l=1&u,y=0;for(u=u/2|0;u;u>>>=1)y++;return 1<<y+1+l},K.prototype.conjugate=function(i,a,u){if(!(u<=1))for(var l=0;l<u/2;l++){var y=i[l];i[l]=i[u-l-1],i[u-l-1]=y,y=a[l],a[l]=-a[u-l-1],a[u-l-1]=-y}},K.prototype.normalize13b=function(i,a){for(var u=0,l=0;l<a/2;l++){var y=8192*Math.round(i[2*l+1]/a)+Math.round(i[2*l]/a)+u;i[l]=67108863&y,u=y<67108864?0:y/67108864|0}return i},K.prototype.convert13b=function(i,a,u,l){for(var y=0,T=0;T<a;T++)u[2*T]=8191&(y+=0|i[T]),u[2*T+1]=8191&(y>>>=13),y>>>=13;for(T=2*a;T<l;++T)u[T]=0;b(0===y),b(0==(-8192&y))},K.prototype.stub=function(i){for(var a=new Array(i),u=0;u<i;u++)a[u]=0;return a},K.prototype.mulp=function(i,a,u){var l=2*this.guessLen13b(i.length,a.length),y=this.makeRBT(l),T=this.stub(l),L=new Array(l),m=new Array(l),n=new Array(l),_=new Array(l),B=new Array(l),V=new Array(l),X=u.words;X.length=l,this.convert13b(i.words,i.length,L,l),this.convert13b(a.words,a.length,_,l),this.transform(L,T,m,n,l,y),this.transform(_,T,B,V,l,y);for(var Le=0;Le<l;Le++){var $e=m[Le]*B[Le]-n[Le]*V[Le];n[Le]=m[Le]*V[Le]+n[Le]*B[Le],m[Le]=$e}return this.conjugate(m,n,l),this.transform(m,n,X,T,l,y),this.conjugate(X,T,l),this.normalize13b(X,l),u.negative=i.negative^a.negative,u.length=i.length+a.length,u.strip()},s.prototype.mul=function(i){var a=new s(null);return a.words=new Array(this.length+i.length),this.mulTo(i,a)},s.prototype.mulf=function(i){var a=new s(null);return a.words=new Array(this.length+i.length),W(this,i,a)},s.prototype.imul=function(i){return this.clone().mulTo(i,this)},s.prototype.imuln=function(i){b("number"==typeof i),b(i<67108864);for(var a=0,u=0;u<this.length;u++){var l=(0|this.words[u])*i,y=(67108863&l)+(67108863&a);a>>=26,a+=l/67108864|0,a+=y>>>26,this.words[u]=67108863&y}return 0!==a&&(this.words[u]=a,this.length++),this},s.prototype.muln=function(i){return this.clone().imuln(i)},s.prototype.sqr=function(){return this.mul(this)},s.prototype.isqr=function(){return this.imul(this.clone())},s.prototype.pow=function(i){var a=function E(A){for(var i=new Array(A.bitLength()),a=0;a<i.length;a++){var l=a%26;i[a]=(A.words[a/26|0]&1<<l)>>>l}return i}(i);if(0===a.length)return new s(1);for(var u=this,l=0;l<a.length&&0===a[l];l++,u=u.sqr());if(++l<a.length)for(var y=u.sqr();l<a.length;l++,y=y.sqr())0!==a[l]&&(u=u.mul(y));return u},s.prototype.iushln=function(i){b("number"==typeof i&&i>=0);var y,a=i%26,u=(i-a)/26,l=67108863>>>26-a<<26-a;if(0!==a){var T=0;for(y=0;y<this.length;y++){var L=this.words[y]&l;this.words[y]=(0|this.words[y])-L<<a|T,T=L>>>26-a}T&&(this.words[y]=T,this.length++)}if(0!==u){for(y=this.length-1;y>=0;y--)this.words[y+u]=this.words[y];for(y=0;y<u;y++)this.words[y]=0;this.length+=u}return this.strip()},s.prototype.ishln=function(i){return b(0===this.negative),this.iushln(i)},s.prototype.iushrn=function(i,a,u){var l;b("number"==typeof i&&i>=0),l=a?(a-a%26)/26:0;var y=i%26,T=Math.min((i-y)/26,this.length),L=67108863^67108863>>>y<<y,m=u;if(l-=T,l=Math.max(0,l),m){for(var n=0;n<T;n++)m.words[n]=this.words[n];m.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>=l);n--){var B=0|this.words[n];this.words[n]=_<<26-y|B>>>y,_=B&L}return m&&0!==_&&(m.words[m.length++]=_),0===this.length&&(this.words[0]=0,this.length=1),this.strip()},s.prototype.ishrn=function(i,a,u){return b(0===this.negative),this.iushrn(i,a,u)},s.prototype.shln=function(i){return this.clone().ishln(i)},s.prototype.ushln=function(i){return this.clone().iushln(i)},s.prototype.shrn=function(i){return this.clone().ishrn(i)},s.prototype.ushrn=function(i){return this.clone().iushrn(i)},s.prototype.testn=function(i){b("number"==typeof i&&i>=0);var a=i%26,u=(i-a)/26;return!(this.length<=u||!(this.words[u]&1<<a))},s.prototype.imaskn=function(i){b("number"==typeof i&&i>=0);var a=i%26,u=(i-a)/26;return b(0===this.negative,"imaskn works only with positive numbers"),this.length<=u?this:(0!==a&&u++,this.length=Math.min(u,this.length),0!==a&&(this.words[this.length-1]&=67108863^67108863>>>a<<a),this.strip())},s.prototype.maskn=function(i){return this.clone().imaskn(i)},s.prototype.iaddn=function(i){return b("number"==typeof i),b(i<67108864),i<0?this.isubn(-i):0!==this.negative?1===this.length&&(0|this.words[0])<i?(this.words[0]=i-(0|this.words[0]),this.negative=0,this):(this.negative=0,this.isubn(i),this.negative=1,this):this._iaddn(i)},s.prototype._iaddn=function(i){this.words[0]+=i;for(var a=0;a<this.length&&this.words[a]>=67108864;a++)this.words[a]-=67108864,a===this.length-1?this.words[a+1]=1:this.words[a+1]++;return this.length=Math.max(this.length,a+1),this},s.prototype.isubn=function(i){if(b("number"==typeof i),b(i<67108864),i<0)return this.iaddn(-i);if(0!==this.negative)return this.negative=0,this.iaddn(i),this.negative=1,this;if(this.words[0]-=i,1===this.length&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var a=0;a<this.length&&this.words[a]<0;a++)this.words[a]+=67108864,this.words[a+1]-=1;return this.strip()},s.prototype.addn=function(i){return this.clone().iaddn(i)},s.prototype.subn=function(i){return this.clone().isubn(i)},s.prototype.iabs=function(){return this.negative=0,this},s.prototype.abs=function(){return this.clone().iabs()},s.prototype._ishlnsubmul=function(i,a,u){var y;this._expand(i.length+u);var T,L=0;for(y=0;y<i.length;y++){T=(0|this.words[y+u])+L;var m=(0|i.words[y])*a;L=((T-=67108863&m)>>26)-(m/67108864|0),this.words[y+u]=67108863&T}for(;y<this.length-u;y++)L=(T=(0|this.words[y+u])+L)>>26,this.words[y+u]=67108863&T;if(0===L)return this.strip();for(b(-1===L),L=0,y=0;y<this.length;y++)L=(T=-(0|this.words[y])+L)>>26,this.words[y]=67108863&T;return this.negative=1,this.strip()},s.prototype._wordDiv=function(i,a){var u,l=this.clone(),y=i,T=0|y.words[y.length-1];0!=(u=26-this._countBits(T))&&(y=y.ushln(u),l.iushln(u),T=0|y.words[y.length-1]);var n,m=l.length-y.length;if("mod"!==a){(n=new s(null)).length=m+1,n.words=new Array(n.length);for(var _=0;_<n.length;_++)n.words[_]=0}var B=l.clone()._ishlnsubmul(y,1,m);0===B.negative&&(l=B,n&&(n.words[m]=1));for(var V=m-1;V>=0;V--){var X=67108864*(0|l.words[y.length+V])+(0|l.words[y.length+V-1]);for(X=Math.min(X/T|0,67108863),l._ishlnsubmul(y,X,V);0!==l.negative;)X--,l.negative=0,l._ishlnsubmul(y,1,V),l.isZero()||(l.negative^=1);n&&(n.words[V]=X)}return n&&n.strip(),l.strip(),"div"!==a&&0!==u&&l.iushrn(u),{div:n||null,mod:l}},s.prototype.divmod=function(i,a,u){return b(!i.isZero()),this.isZero()?{div:new s(0),mod:new s(0)}:0!==this.negative&&0===i.negative?(T=this.neg().divmod(i,a),"mod"!==a&&(l=T.div.neg()),"div"!==a&&(y=T.mod.neg(),u&&0!==y.negative&&y.iadd(i)),{div:l,mod:y}):0===this.negative&&0!==i.negative?(T=this.divmod(i.neg(),a),"mod"!==a&&(l=T.div.neg()),{div:l,mod:T.mod}):this.negative&i.negative?(T=this.neg().divmod(i.neg(),a),"div"!==a&&(y=T.mod.neg(),u&&0!==y.negative&&y.isub(i)),{div:T.div,mod:y}):i.length>this.length||this.cmp(i)<0?{div:new s(0),mod:this}:1===i.length?"div"===a?{div:this.divn(i.words[0]),mod:null}:"mod"===a?{div:null,mod:new s(this.modn(i.words[0]))}:{div:this.divn(i.words[0]),mod:new s(this.modn(i.words[0]))}:this._wordDiv(i,a);var l,y,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 a=this.divmod(i);if(a.mod.isZero())return a.div;var u=0!==a.div.negative?a.mod.isub(i):a.mod,l=i.ushrn(1),y=i.andln(1),T=u.cmp(l);return T<0||1===y&&0===T?a.div:0!==a.div.negative?a.div.isubn(1):a.div.iaddn(1)},s.prototype.modn=function(i){b(i<=67108863);for(var a=(1<<26)%i,u=0,l=this.length-1;l>=0;l--)u=(a*u+(0|this.words[l]))%i;return u},s.prototype.idivn=function(i){b(i<=67108863);for(var a=0,u=this.length-1;u>=0;u--){var l=(0|this.words[u])+67108864*a;this.words[u]=l/i|0,a=l%i}return this.strip()},s.prototype.divn=function(i){return this.clone().idivn(i)},s.prototype.egcd=function(i){b(0===i.negative),b(!i.isZero());var a=this,u=i.clone();a=0!==a.negative?a.umod(i):a.clone();for(var l=new s(1),y=new s(0),T=new s(0),L=new s(1),m=0;a.isEven()&&u.isEven();)a.iushrn(1),u.iushrn(1),++m;for(var n=u.clone(),_=a.clone();!a.isZero();){for(var B=0,V=1;!(a.words[0]&V)&&B<26;++B,V<<=1);if(B>0)for(a.iushrn(B);B-- >0;)(l.isOdd()||y.isOdd())&&(l.iadd(n),y.isub(_)),l.iushrn(1),y.iushrn(1);for(var X=0,Le=1;!(u.words[0]&Le)&&X<26;++X,Le<<=1);if(X>0)for(u.iushrn(X);X-- >0;)(T.isOdd()||L.isOdd())&&(T.iadd(n),L.isub(_)),T.iushrn(1),L.iushrn(1);a.cmp(u)>=0?(a.isub(u),l.isub(T),y.isub(L)):(u.isub(a),T.isub(l),L.isub(y))}return{a:T,b:L,gcd:u.iushln(m)}},s.prototype._invmp=function(i){b(0===i.negative),b(!i.isZero());var B,a=this,u=i.clone();a=0!==a.negative?a.umod(i):a.clone();for(var l=new s(1),y=new s(0),T=u.clone();a.cmpn(1)>0&&u.cmpn(1)>0;){for(var L=0,m=1;!(a.words[0]&m)&&L<26;++L,m<<=1);if(L>0)for(a.iushrn(L);L-- >0;)l.isOdd()&&l.iadd(T),l.iushrn(1);for(var n=0,_=1;!(u.words[0]&_)&&n<26;++n,_<<=1);if(n>0)for(u.iushrn(n);n-- >0;)y.isOdd()&&y.iadd(T),y.iushrn(1);a.cmp(u)>=0?(a.isub(u),l.isub(y)):(u.isub(a),y.isub(l))}return(B=0===a.cmpn(1)?l:y).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 a=this.clone(),u=i.clone();a.negative=0,u.negative=0;for(var l=0;a.isEven()&&u.isEven();l++)a.iushrn(1),u.iushrn(1);for(;;){for(;a.isEven();)a.iushrn(1);for(;u.isEven();)u.iushrn(1);var y=a.cmp(u);if(y<0){var T=a;a=u,u=T}else if(0===y||0===u.cmpn(1))break;a.isub(u)}return u.iushln(l)},s.prototype.invm=function(i){return this.egcd(i).a.umod(i)},s.prototype.isEven=function(){return 0==(1&this.words[0])},s.prototype.isOdd=function(){return 1==(1&this.words[0])},s.prototype.andln=function(i){return this.words[0]&i},s.prototype.bincn=function(i){b("number"==typeof i);var a=i%26,u=(i-a)/26,l=1<<a;if(this.length<=u)return this._expand(u+1),this.words[u]|=l,this;for(var y=l,T=u;0!==y&&T<this.length;T++){var L=0|this.words[T];y=(L+=y)>>>26,this.words[T]=L&=67108863}return 0!==y&&(this.words[T]=y,this.length++),this},s.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},s.prototype.cmpn=function(i){var u,a=i<0;if(0!==this.negative&&!a)return-1;if(0===this.negative&&a)return 1;if(this.strip(),this.length>1)u=1;else{a&&(i=-i),b(i<=67108863,"Number is too big");var l=0|this.words[0];u=l===i?0:l<i?-1:1}return 0!==this.negative?0|-u:u},s.prototype.cmp=function(i){if(0!==this.negative&&0===i.negative)return-1;if(0===this.negative&&0!==i.negative)return 1;var a=this.ucmp(i);return 0!==this.negative?0|-a:a},s.prototype.ucmp=function(i){if(this.length>i.length)return 1;if(this.length<i.length)return-1;for(var a=0,u=this.length-1;u>=0;u--){var l=0|this.words[u],y=0|i.words[u];if(l!==y){l<y?a=-1:l>y&&(a=1);break}}return a},s.prototype.gtn=function(i){return 1===this.cmpn(i)},s.prototype.gt=function(i){return 1===this.cmp(i)},s.prototype.gten=function(i){return this.cmpn(i)>=0},s.prototype.gte=function(i){return this.cmp(i)>=0},s.prototype.ltn=function(i){return-1===this.cmpn(i)},s.prototype.lt=function(i){return-1===this.cmp(i)},s.prototype.lten=function(i){return this.cmpn(i)<=0},s.prototype.lte=function(i){return this.cmp(i)<=0},s.prototype.eqn=function(i){return 0===this.cmpn(i)},s.prototype.eq=function(i){return 0===this.cmp(i)},s.red=function(i){return new $(i)},s.prototype.toRed=function(i){return b(!this.red,"Already a number in reduction context"),b(0===this.negative,"red works only with positives"),i.convertTo(this)._forceRed(i)},s.prototype.fromRed=function(){return b(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 b(!this.red,"Already a number in reduction context"),this._forceRed(i)},s.prototype.redAdd=function(i){return b(this.red,"redAdd works only with red numbers"),this.red.add(this,i)},s.prototype.redIAdd=function(i){return b(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,i)},s.prototype.redSub=function(i){return b(this.red,"redSub works only with red numbers"),this.red.sub(this,i)},s.prototype.redISub=function(i){return b(this.red,"redISub works only with red numbers"),this.red.isub(this,i)},s.prototype.redShl=function(i){return b(this.red,"redShl works only with red numbers"),this.red.shl(this,i)},s.prototype.redMul=function(i){return b(this.red,"redMul works only with red numbers"),this.red._verify2(this,i),this.red.mul(this,i)},s.prototype.redIMul=function(i){return b(this.red,"redMul works only with red numbers"),this.red._verify2(this,i),this.red.imul(this,i)},s.prototype.redSqr=function(){return b(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},s.prototype.redISqr=function(){return b(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},s.prototype.redSqrt=function(){return b(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},s.prototype.redInvm=function(){return b(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},s.prototype.redNeg=function(){return b(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},s.prototype.redPow=function(i){return b(this.red&&!i.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,i)};var ee={k256:null,p224:null,p192:null,p25519:null};function ie(A,i){this.name=A,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 ue(){ie.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function le(){ie.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function ne(){ie.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function de(){ie.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function $(A){if("string"==typeof A){var i=s._prime(A);this.m=i.p,this.prime=i}else b(A.gtn(1),"modulus must be greater than 1"),this.m=A,this.prime=null}function me(A){$.call(this,A),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 i=new s(null);return i.words=new Array(Math.ceil(this.n/13)),i},ie.prototype.ireduce=function(i){var u,a=i;do{this.split(a,this.tmp),u=(a=(a=this.imulK(a)).iadd(this.tmp)).bitLength()}while(u>this.n);var l=u<this.n?-1:a.ucmp(this.p);return 0===l?(a.words[0]=0,a.length=1):l>0?a.isub(this.p):void 0!==a.strip?a.strip():a._strip(),a},ie.prototype.split=function(i,a){i.iushrn(this.n,0,a)},ie.prototype.imulK=function(i){return i.imul(this.k)},I(ue,ie),ue.prototype.split=function(i,a){for(var u=4194303,l=Math.min(i.length,9),y=0;y<l;y++)a.words[y]=i.words[y];if(a.length=l,i.length<=9)return i.words[0]=0,void(i.length=1);var T=i.words[9];for(a.words[a.length++]=T&u,y=10;y<i.length;y++){var L=0|i.words[y];i.words[y-10]=(L&u)<<4|T>>>22,T=L}i.words[y-10]=T>>>=22,i.length-=0===T&&i.length>10?10:9},ue.prototype.imulK=function(i){i.words[i.length]=0,i.words[i.length+1]=0,i.length+=2;for(var a=0,u=0;u<i.length;u++){var l=0|i.words[u];i.words[u]=67108863&(a+=977*l),a=64*l+(a/67108864|0)}return 0===i.words[i.length-1]&&(i.length--,0===i.words[i.length-1]&&i.length--),i},I(le,ie),I(ne,ie),I(de,ie),de.prototype.imulK=function(i){for(var a=0,u=0;u<i.length;u++){var l=19*(0|i.words[u])+a,y=67108863&l;l>>>=26,i.words[u]=y,a=l}return 0!==a&&(i.words[i.length++]=a),i},s._prime=function(i){if(ee[i])return ee[i];var a;if("k256"===i)a=new ue;else if("p224"===i)a=new le;else if("p192"===i)a=new ne;else{if("p25519"!==i)throw new Error("Unknown prime "+i);a=new de}return ee[i]=a,a},$.prototype._verify1=function(i){b(0===i.negative,"red works only with positives"),b(i.red,"red works only with red numbers")},$.prototype._verify2=function(i,a){b(0==(i.negative|a.negative),"red works only with positives"),b(i.red&&i.red===a.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,a){this._verify2(i,a);var u=i.add(a);return u.cmp(this.m)>=0&&u.isub(this.m),u._forceRed(this)},$.prototype.iadd=function(i,a){this._verify2(i,a);var u=i.iadd(a);return u.cmp(this.m)>=0&&u.isub(this.m),u},$.prototype.sub=function(i,a){this._verify2(i,a);var u=i.sub(a);return u.cmpn(0)<0&&u.iadd(this.m),u._forceRed(this)},$.prototype.isub=function(i,a){this._verify2(i,a);var u=i.isub(a);return u.cmpn(0)<0&&u.iadd(this.m),u},$.prototype.shl=function(i,a){return this._verify1(i),this.imod(i.ushln(a))},$.prototype.imul=function(i,a){return this._verify2(i,a),this.imod(i.imul(a))},$.prototype.mul=function(i,a){return this._verify2(i,a),this.imod(i.mul(a))},$.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 a=this.m.andln(3);if(b(a%2==1),3===a){var u=this.m.add(new s(1)).iushrn(2);return this.pow(i,u)}for(var l=this.m.subn(1),y=0;!l.isZero()&&0===l.andln(1);)y++,l.iushrn(1);b(!l.isZero());var T=new s(1).toRed(this),L=T.redNeg(),m=this.m.subn(1).iushrn(1),n=this.m.bitLength();for(n=new s(2*n*n).toRed(this);0!==this.pow(n,m).cmp(L);)n.redIAdd(L);for(var _=this.pow(n,l),B=this.pow(i,l.addn(1).iushrn(1)),V=this.pow(i,l),X=y;0!==V.cmp(T);){for(var Le=V,$e=0;0!==Le.cmp(T);$e++)Le=Le.redSqr();b($e<X);var We=this.pow(_,new s(1).iushln(X-$e-1));B=B.redMul(We),_=We.redSqr(),V=V.redMul(_),X=$e}return B},$.prototype.invm=function(i){var a=i._invmp(this.m);return 0!==a.negative?(a.negative=0,this.imod(a).redNeg()):this.imod(a)},$.prototype.pow=function(i,a){if(a.isZero())return new s(1).toRed(this);if(0===a.cmpn(1))return i.clone();var l=new Array(16);l[0]=new s(1).toRed(this),l[1]=i;for(var y=2;y<l.length;y++)l[y]=this.mul(l[y-1],i);var T=l[0],L=0,m=0,n=a.bitLength()%26;for(0===n&&(n=26),y=a.length-1;y>=0;y--){for(var _=a.words[y],B=n-1;B>=0;B--){var V=_>>B&1;T!==l[0]&&(T=this.sqr(T)),0!==V||0!==L?(L<<=1,L|=V,(4==++m||0===y&&0===B)&&(T=this.mul(T,l[L]),m=0,L=0)):m=0}n=26}return T},$.prototype.convertTo=function(i){var a=i.umod(this.m);return a===i?a.clone():a},$.prototype.convertFrom=function(i){var a=i.clone();return a.red=null,a},s.mont=function(i){return new me(i)},I(me,$),me.prototype.convertTo=function(i){return this.imod(i.ushln(this.shift))},me.prototype.convertFrom=function(i){var a=this.imod(i.mul(this.rinv));return a.red=null,a},me.prototype.imul=function(i,a){if(i.isZero()||a.isZero())return i.words[0]=0,i.length=1,i;var u=i.imul(a),l=u.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),y=u.isub(l).iushrn(this.shift),T=y;return y.cmp(this.m)>=0?T=y.isub(this.m):y.cmpn(0)<0&&(T=y.iadd(this.m)),T._forceRed(this)},me.prototype.mul=function(i,a){if(i.isZero()||a.isZero())return new s(0)._forceRed(this);var u=i.mul(a),l=u.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),y=u.isub(l).iushrn(this.shift),T=y;return y.cmp(this.m)>=0?T=y.isub(this.m):y.cmpn(0)<0&&(T=y.iadd(this.m)),T._forceRed(this)},me.prototype.invm=function(i){return this.imod(i._invmp(this.m).mul(this.r2))._forceRed(this)}}(Ve=p.nmd(Ve),this)},4901:Ve=>{"use strict";var q={single_source_shortest_paths:function(p,t,e){var b={},I={};I[t]=0;var C,h,P,d,S,O,s=q.PriorityQueue.make();for(s.push(t,0);!s.empty();)for(P in d=(C=s.pop()).cost,S=p[h=C.value]||{})S.hasOwnProperty(P)&&(O=d+S[P],(typeof I[P]>"u"||I[P]>O)&&(I[P]=O,s.push(P,O),b[P]=h));if(typeof e<"u"&&typeof I[e]>"u"){var z=["Could not find a path from ",t," to ",e,"."].join("");throw new Error(z)}return b},extract_shortest_path_from_predecessor_list:function(p,t){for(var e=[],b=t;b;)e.push(b),b=p[b];return e.reverse(),e},find_path:function(p,t,e){var b=q.single_source_shortest_paths(p,t,e);return q.extract_shortest_path_from_predecessor_list(b,e)},PriorityQueue:{make:function(p){var b,t=q.PriorityQueue,e={};for(b in p=p||{},t)t.hasOwnProperty(b)&&(e[b]=t[b]);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}}};Ve.exports=q},7715:(Ve,q,p)=>{"use strict";var t=q;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:(Ve,q,p)=>{"use strict";var t=p(7433),e=p(1970),b=e.getNAF,I=e.getJSF,s=e.assert;function C(P,d){this.type=P,this.p=new t(d.p,16),this.red=d.prime?t.red(d.prime):t.mont(this.p),this.zero=new t(0).toRed(this.red),this.one=new t(1).toRed(this.red),this.two=new t(2).toRed(this.red),this.n=d.n&&new t(d.n,16),this.g=d.g&&this.pointFromJSON(d.g,d.gRed),this._wnafT1=new Array(4),this._wnafT2=new Array(4),this._wnafT3=new Array(4),this._wnafT4=new Array(4),this._bitLength=this.n?this.n.bitLength():0;var S=this.n&&this.p.div(this.n);!S||S.cmpn(100)>0?this.redN=null:(this._maxwellTrick=!0,this.redN=this.n.toRed(this.red))}function h(P,d){this.curve=P,this.type=d,this.precomputed=null}Ve.exports=C,C.prototype.point=function(){throw new Error("Not implemented")},C.prototype.validate=function(){throw new Error("Not implemented")},C.prototype._fixedNafMul=function(d,S){s(d.precomputed);var w=d._getDoubles(),O=b(S,1,this._bitLength),E=(1<<w.step+1)-(w.step%2==0?2:1);E/=3;var z,U,R=[];for(z=0;z<O.length;z+=w.step){U=0;for(var W=z+w.step-1;W>=z;W--)U=(U<<1)+O[W];R.push(U)}for(var K=this.jpoint(null,null,null),ee=this.jpoint(null,null,null),ie=E;ie>0;ie--){for(z=0;z<R.length;z++)(U=R[z])===ie?ee=ee.mixedAdd(w.points[z]):U===-ie&&(ee=ee.mixedAdd(w.points[z].neg()));K=K.add(ee)}return K.toP()},C.prototype._wnafMul=function(d,S){for(var w=4,O=d._getNAFPoints(w),E=O.points,R=b(S,w=O.wnd,this._bitLength),z=this.jpoint(null,null,null),U=R.length-1;U>=0;U--){for(var W=0;U>=0&&0===R[U];U--)W++;if(U>=0&&W++,z=z.dblp(W),U<0)break;var K=R[U];s(0!==K),z="affine"===d.type?z.mixedAdd(K>0?E[K-1>>1]:E[-K-1>>1].neg()):z.add(K>0?E[K-1>>1]:E[-K-1>>1].neg())}return"affine"===d.type?z.toP():z},C.prototype._wnafMulAdd=function(d,S,w,O,E){var K,ee,ie,R=this._wnafT1,z=this._wnafT2,U=this._wnafT3,W=0;for(K=0;K<O;K++){var ue=(ie=S[K])._getNAFPoints(d);R[K]=ue.wnd,z[K]=ue.points}for(K=O-1;K>=1;K-=2){var le=K-1,ne=K;if(1===R[le]&&1===R[ne]){var de=[S[le],null,null,S[ne]];0===S[le].y.cmp(S[ne].y)?(de[1]=S[le].add(S[ne]),de[2]=S[le].toJ().mixedAdd(S[ne].neg())):0===S[le].y.cmp(S[ne].y.redNeg())?(de[1]=S[le].toJ().mixedAdd(S[ne]),de[2]=S[le].add(S[ne].neg())):(de[1]=S[le].toJ().mixedAdd(S[ne]),de[2]=S[le].toJ().mixedAdd(S[ne].neg()));var $=[-3,-1,-5,-7,0,7,5,1,3],me=I(w[le],w[ne]);for(W=Math.max(me[0].length,W),U[le]=new Array(W),U[ne]=new Array(W),ee=0;ee<W;ee++)U[le][ee]=$[3*(1+(0|me[0][ee]))+(1+(0|me[1][ee]))],U[ne][ee]=0,z[le]=de}else U[le]=b(w[le],R[le],this._bitLength),U[ne]=b(w[ne],R[ne],this._bitLength),W=Math.max(U[le].length,W),W=Math.max(U[ne].length,W)}var a=this.jpoint(null,null,null),u=this._wnafT4;for(K=W;K>=0;K--){for(var l=0;K>=0;){var y=!0;for(ee=0;ee<O;ee++)u[ee]=0|U[ee][K],0!==u[ee]&&(y=!1);if(!y)break;l++,K--}if(K>=0&&l++,a=a.dblp(l),K<0)break;for(ee=0;ee<O;ee++){var T=u[ee];0!==T&&(T>0?ie=z[ee][T-1>>1]:T<0&&(ie=z[ee][-T-1>>1].neg()),a="affine"===ie.type?a.mixedAdd(ie):a.add(ie))}}for(K=0;K<O;K++)z[K]=null;return E?a:a.toP()},C.BasePoint=h,h.prototype.eq=function(){throw new Error("Not implemented")},h.prototype.validate=function(){return this.curve.validate(this)},C.prototype.decodePoint=function(d,S){d=e.toArray(d,S);var w=this.p.byteLength();if((4===d[0]||6===d[0]||7===d[0])&&d.length-1==2*w)return 6===d[0]?s(d[d.length-1]%2==0):7===d[0]&&s(d[d.length-1]%2==1),this.point(d.slice(1,1+w),d.slice(1+w,1+2*w));if((2===d[0]||3===d[0])&&d.length-1===w)return this.pointFromX(d.slice(1,1+w),3===d[0]);throw new Error("Unknown point format")},h.prototype.encodeCompressed=function(d){return this.encode(d,!0)},h.prototype._encode=function(d){var S=this.curve.p.byteLength(),w=this.getX().toArray("be",S);return d?[this.getY().isEven()?2:3].concat(w):[4].concat(w,this.getY().toArray("be",S))},h.prototype.encode=function(d,S){return e.encode(this._encode(S),d)},h.prototype.precompute=function(d){if(this.precomputed)return this;var S={doubles:null,naf:null,beta:null};return S.naf=this._getNAFPoints(8),S.doubles=this._getDoubles(4,d),S.beta=this._getBeta(),this.precomputed=S,this},h.prototype._hasDoubles=function(d){if(!this.precomputed)return!1;var S=this.precomputed.doubles;return!!S&&S.points.length>=Math.ceil((d.bitLength()+1)/S.step)},h.prototype._getDoubles=function(d,S){if(this.precomputed&&this.precomputed.doubles)return this.precomputed.doubles;for(var w=[this],O=this,E=0;E<S;E+=d){for(var R=0;R<d;R++)O=O.dbl();w.push(O)}return{step:d,points:w}},h.prototype._getNAFPoints=function(d){if(this.precomputed&&this.precomputed.naf)return this.precomputed.naf;for(var S=[this],w=(1<<d)-1,O=1===w?null:this.dbl(),E=1;E<w;E++)S[E]=S[E-1].add(O);return{wnd:d,points:S}},h.prototype._getBeta=function(){return null},h.prototype.dblp=function(d){for(var S=this,w=0;w<d;w++)S=S.dbl();return S}},3835:(Ve,q,p)=>{"use strict";var t=p(1970),e=p(7433),b=p(3894),I=p(7902),s=t.assert;function C(P){this.twisted=1!=(0|P.a),this.mOneA=this.twisted&&-1==(0|P.a),this.extended=this.mOneA,I.call(this,"edwards",P),this.a=new e(P.a,16).umod(this.red.m),this.a=this.a.toRed(this.red),this.c=new e(P.c,16).toRed(this.red),this.c2=this.c.redSqr(),this.d=new e(P.d,16).toRed(this.red),this.dd=this.d.redAdd(this.d),s(!this.twisted||0===this.c.fromRed().cmpn(1)),this.oneC=1==(0|P.c)}function h(P,d,S,w,O){I.BasePoint.call(this,P,"projective"),null===d&&null===S&&null===w?(this.x=this.curve.zero,this.y=this.curve.one,this.z=this.curve.one,this.t=this.curve.zero,this.zOne=!0):(this.x=new e(d,16),this.y=new e(S,16),this.z=w?new e(w,16):this.curve.one,this.t=O&&new e(O,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()))))}b(C,I),Ve.exports=C,C.prototype._mulA=function(d){return this.mOneA?d.redNeg():this.a.redMul(d)},C.prototype._mulC=function(d){return this.oneC?d:this.c.redMul(d)},C.prototype.jpoint=function(d,S,w,O){return this.point(d,S,w,O)},C.prototype.pointFromX=function(d,S){(d=new e(d,16)).red||(d=d.toRed(this.red));var w=d.redSqr(),O=this.c2.redSub(this.a.redMul(w)),E=this.one.redSub(this.c2.redMul(this.d).redMul(w)),R=O.redMul(E.redInvm()),z=R.redSqrt();if(0!==z.redSqr().redSub(R).cmp(this.zero))throw new Error("invalid point");var U=z.fromRed().isOdd();return(S&&!U||!S&&U)&&(z=z.redNeg()),this.point(d,z)},C.prototype.pointFromY=function(d,S){(d=new e(d,16)).red||(d=d.toRed(this.red));var w=d.redSqr(),O=w.redSub(this.c2),E=w.redMul(this.d).redMul(this.c2).redSub(this.a),R=O.redMul(E.redInvm());if(0===R.cmp(this.zero)){if(S)throw new Error("invalid point");return this.point(this.zero,d)}var z=R.redSqrt();if(0!==z.redSqr().redSub(R).cmp(this.zero))throw new Error("invalid point");return z.fromRed().isOdd()!==S&&(z=z.redNeg()),this.point(z,d)},C.prototype.validate=function(d){if(d.isInfinity())return!0;d.normalize();var S=d.x.redSqr(),w=d.y.redSqr(),O=S.redMul(this.a).redAdd(w),E=this.c2.redMul(this.one.redAdd(this.d.redMul(S).redMul(w)));return 0===O.cmp(E)},b(h,I.BasePoint),C.prototype.pointFromJSON=function(d){return h.fromJSON(this,d)},C.prototype.point=function(d,S,w,O){return new h(this,d,S,w,O)},h.fromJSON=function(d,S){return new h(d,S[0],S[1],S[2])},h.prototype.inspect=function(){return this.isInfinity()?"<EC Point Infinity>":"<EC Point x: "+this.x.fromRed().toString(16,2)+" y: "+this.y.fromRed().toString(16,2)+" z: "+this.z.fromRed().toString(16,2)+">"},h.prototype.isInfinity=function(){return 0===this.x.cmpn(0)&&(0===this.y.cmp(this.z)||this.zOne&&0===this.y.cmp(this.curve.c))},h.prototype._extDbl=function(){var d=this.x.redSqr(),S=this.y.redSqr(),w=this.z.redSqr();w=w.redIAdd(w);var O=this.curve._mulA(d),E=this.x.redAdd(this.y).redSqr().redISub(d).redISub(S),R=O.redAdd(S),z=R.redSub(w),U=O.redSub(S),W=E.redMul(z),K=R.redMul(U),ee=E.redMul(U),ie=z.redMul(R);return this.curve.point(W,K,ie,ee)},h.prototype._projDbl=function(){var O,E,R,z,U,W,d=this.x.redAdd(this.y).redSqr(),S=this.x.redSqr(),w=this.y.redSqr();if(this.curve.twisted){var K=(z=this.curve._mulA(S)).redAdd(w);this.zOne?(O=d.redSub(S).redSub(w).redMul(K.redSub(this.curve.two)),E=K.redMul(z.redSub(w)),R=K.redSqr().redSub(K).redSub(K)):(U=this.z.redSqr(),W=K.redSub(U).redISub(U),O=d.redSub(S).redISub(w).redMul(W),E=K.redMul(z.redSub(w)),R=K.redMul(W))}else z=S.redAdd(w),U=this.curve._mulC(this.z).redSqr(),W=z.redSub(U).redSub(U),O=this.curve._mulC(d.redISub(z)).redMul(W),E=this.curve._mulC(z).redMul(S.redISub(w)),R=z.redMul(W);return this.curve.point(O,E,R)},h.prototype.dbl=function(){return this.isInfinity()?this:this.curve.extended?this._extDbl():this._projDbl()},h.prototype._extAdd=function(d){var S=this.y.redSub(this.x).redMul(d.y.redSub(d.x)),w=this.y.redAdd(this.x).redMul(d.y.redAdd(d.x)),O=this.t.redMul(this.curve.dd).redMul(d.t),E=this.z.redMul(d.z.redAdd(d.z)),R=w.redSub(S),z=E.redSub(O),U=E.redAdd(O),W=w.redAdd(S),K=R.redMul(z),ee=U.redMul(W),ie=R.redMul(W),ue=z.redMul(U);return this.curve.point(K,ee,ue,ie)},h.prototype._projAdd=function(d){var ee,ie,S=this.z.redMul(d.z),w=S.redSqr(),O=this.x.redMul(d.x),E=this.y.redMul(d.y),R=this.curve.d.redMul(O).redMul(E),z=w.redSub(R),U=w.redAdd(R),W=this.x.redAdd(this.y).redMul(d.x.redAdd(d.y)).redISub(O).redISub(E),K=S.redMul(z).redMul(W);return this.curve.twisted?(ee=S.redMul(U).redMul(E.redSub(this.curve._mulA(O))),ie=z.redMul(U)):(ee=S.redMul(U).redMul(E.redSub(O)),ie=this.curve._mulC(z).redMul(U)),this.curve.point(K,ee,ie)},h.prototype.add=function(d){return this.isInfinity()?d:d.isInfinity()?this:this.curve.extended?this._extAdd(d):this._projAdd(d)},h.prototype.mul=function(d){return this._hasDoubles(d)?this.curve._fixedNafMul(this,d):this.curve._wnafMul(this,d)},h.prototype.mulAdd=function(d,S,w){return this.curve._wnafMulAdd(1,[this,S],[d,w],2,!1)},h.prototype.jmulAdd=function(d,S,w){return this.curve._wnafMulAdd(1,[this,S],[d,w],2,!0)},h.prototype.normalize=function(){if(this.zOne)return this;var d=this.z.redInvm();return this.x=this.x.redMul(d),this.y=this.y.redMul(d),this.t&&(this.t=this.t.redMul(d)),this.z=this.curve.one,this.zOne=!0,this},h.prototype.neg=function(){return this.curve.point(this.x.redNeg(),this.y,this.z,this.t&&this.t.redNeg())},h.prototype.getX=function(){return this.normalize(),this.x.fromRed()},h.prototype.getY=function(){return this.normalize(),this.y.fromRed()},h.prototype.eq=function(d){return this===d||0===this.getX().cmp(d.getX())&&0===this.getY().cmp(d.getY())},h.prototype.eqXToP=function(d){var S=d.toRed(this.curve.red).redMul(this.z);if(0===this.x.cmp(S))return!0;for(var w=d.clone(),O=this.curve.redN.redMul(this.z);;){if(w.iadd(this.curve.n),w.cmp(this.curve.p)>=0)return!1;if(S.redIAdd(O),0===this.x.cmp(S))return!0}},h.prototype.toP=h.prototype.normalize,h.prototype.mixedAdd=h.prototype.add},6270:(Ve,q,p)=>{"use strict";var t=q;t.base=p(7902),t.short=p(1781),t.mont=p(7064),t.edwards=p(3835)},7064:(Ve,q,p)=>{"use strict";var t=p(7433),e=p(3894),b=p(7902),I=p(1970);function s(h){b.call(this,"mont",h),this.a=new t(h.a,16).toRed(this.red),this.b=new t(h.b,16).toRed(this.red),this.i4=new t(4).toRed(this.red).redInvm(),this.two=new t(2).toRed(this.red),this.a24=this.i4.redMul(this.a.redAdd(this.two))}function C(h,P,d){b.BasePoint.call(this,h,"projective"),null===P&&null===d?(this.x=this.curve.one,this.z=this.curve.zero):(this.x=new t(P,16),this.z=new t(d,16),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)))}e(s,b),Ve.exports=s,s.prototype.validate=function(P){var d=P.normalize().x,S=d.redSqr(),w=S.redMul(d).redAdd(S.redMul(this.a)).redAdd(d);return 0===w.redSqrt().redSqr().cmp(w)},e(C,b.BasePoint),s.prototype.decodePoint=function(P,d){return this.point(I.toArray(P,d),1)},s.prototype.point=function(P,d){return new C(this,P,d)},s.prototype.pointFromJSON=function(P){return C.fromJSON(this,P)},C.prototype.precompute=function(){},C.prototype._encode=function(){return this.getX().toArray("be",this.curve.p.byteLength())},C.fromJSON=function(P,d){return new C(P,d[0],d[1]||P.one)},C.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)+">"},C.prototype.isInfinity=function(){return 0===this.z.cmpn(0)},C.prototype.dbl=function(){var d=this.x.redAdd(this.z).redSqr(),w=this.x.redSub(this.z).redSqr(),O=d.redSub(w),E=d.redMul(w),R=O.redMul(w.redAdd(this.curve.a24.redMul(O)));return this.curve.point(E,R)},C.prototype.add=function(){throw new Error("Not supported on Montgomery curve")},C.prototype.diffAdd=function(P,d){var S=this.x.redAdd(this.z),w=this.x.redSub(this.z),O=P.x.redAdd(P.z),R=P.x.redSub(P.z).redMul(S),z=O.redMul(w),U=d.z.redMul(R.redAdd(z).redSqr()),W=d.x.redMul(R.redISub(z).redSqr());return this.curve.point(U,W)},C.prototype.mul=function(P){for(var d=P.clone(),S=this,w=this.curve.point(null,null),E=[];0!==d.cmpn(0);d.iushrn(1))E.push(d.andln(1));for(var R=E.length-1;R>=0;R--)0===E[R]?(S=S.diffAdd(w,this),w=w.dbl()):(w=S.diffAdd(w,this),S=S.dbl());return w},C.prototype.mulAdd=function(){throw new Error("Not supported on Montgomery curve")},C.prototype.jumlAdd=function(){throw new Error("Not supported on Montgomery curve")},C.prototype.eq=function(P){return 0===this.getX().cmp(P.getX())},C.prototype.normalize=function(){return this.x=this.x.redMul(this.z.redInvm()),this.z=this.curve.one,this},C.prototype.getX=function(){return this.normalize(),this.x.fromRed()}},1781:(Ve,q,p)=>{"use strict";var t=p(1970),e=p(7433),b=p(3894),I=p(7902),s=t.assert;function C(d){I.call(this,"short",d),this.a=new e(d.a,16).toRed(this.red),this.b=new e(d.b,16).toRed(this.red),this.tinv=this.two.redInvm(),this.zeroA=0===this.a.fromRed().cmpn(0),this.threeA=0===this.a.fromRed().sub(this.p).cmpn(-3),this.endo=this._getEndomorphism(d),this._endoWnafT1=new Array(4),this._endoWnafT2=new Array(4)}function h(d,S,w,O){I.BasePoint.call(this,d,"affine"),null===S&&null===w?(this.x=null,this.y=null,this.inf=!0):(this.x=new e(S,16),this.y=new e(w,16),O&&(this.x.forceRed(this.curve.red),this.y.forceRed(this.curve.red)),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.y.red||(this.y=this.y.toRed(this.curve.red)),this.inf=!1)}function P(d,S,w,O){I.BasePoint.call(this,d,"jacobian"),null===S&&null===w&&null===O?(this.x=this.curve.one,this.y=this.curve.one,this.z=new e(0)):(this.x=new e(S,16),this.y=new e(w,16),this.z=new e(O,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}b(C,I),Ve.exports=C,C.prototype._getEndomorphism=function(S){if(this.zeroA&&this.g&&this.n&&1===this.p.modn(3)){var w,O;if(S.beta)w=new e(S.beta,16).toRed(this.red);else{var E=this._getEndoRoots(this.p);w=(w=E[0].cmp(E[1])<0?E[0]:E[1]).toRed(this.red)}if(S.lambda)O=new e(S.lambda,16);else{var R=this._getEndoRoots(this.n);0===this.g.mul(R[0]).x.cmp(this.g.x.redMul(w))?O=R[0]:s(0===this.g.mul(O=R[1]).x.cmp(this.g.x.redMul(w)))}return{beta:w,lambda:O,basis:S.basis?S.basis.map(function(U){return{a:new e(U.a,16),b:new e(U.b,16)}}):this._getEndoBasis(O)}}},C.prototype._getEndoRoots=function(S){var w=S===this.p?this.red:e.mont(S),O=new e(2).toRed(w).redInvm(),E=O.redNeg(),R=new e(3).toRed(w).redNeg().redSqrt().redMul(O);return[E.redAdd(R).fromRed(),E.redSub(R).fromRed()]},C.prototype._getEndoBasis=function(S){for(var K,ee,ie,ue,le,ne,de,me,A,w=this.n.ushrn(Math.floor(this.n.bitLength()/2)),O=S,E=this.n.clone(),R=new e(1),z=new e(0),U=new e(0),W=new e(1),$=0;0!==O.cmpn(0);){var i=E.div(O);me=E.sub(i.mul(O)),A=U.sub(i.mul(R));var a=W.sub(i.mul(z));if(!ie&&me.cmp(w)<0)K=de.neg(),ee=R,ie=me.neg(),ue=A;else if(ie&&2==++$)break;de=me,E=O,O=me,U=R,R=A,W=z,z=a}le=me.neg(),ne=A;var u=ie.sqr().add(ue.sqr());return le.sqr().add(ne.sqr()).cmp(u)>=0&&(le=K,ne=ee),ie.negative&&(ie=ie.neg(),ue=ue.neg()),le.negative&&(le=le.neg(),ne=ne.neg()),[{a:ie,b:ue},{a:le,b:ne}]},C.prototype._endoSplit=function(S){var w=this.endo.basis,O=w[0],E=w[1],R=E.b.mul(S).divRound(this.n),z=O.b.neg().mul(S).divRound(this.n),U=R.mul(O.a),W=z.mul(E.a),K=R.mul(O.b),ee=z.mul(E.b);return{k1:S.sub(U).sub(W),k2:K.add(ee).neg()}},C.prototype.pointFromX=function(S,w){(S=new e(S,16)).red||(S=S.toRed(this.red));var O=S.redSqr().redMul(S).redIAdd(S.redMul(this.a)).redIAdd(this.b),E=O.redSqrt();if(0!==E.redSqr().redSub(O).cmp(this.zero))throw new Error("invalid point");var R=E.fromRed().isOdd();return(w&&!R||!w&&R)&&(E=E.redNeg()),this.point(S,E)},C.prototype.validate=function(S){if(S.inf)return!0;var w=S.x,O=S.y,E=this.a.redMul(w),R=w.redSqr().redMul(w).redIAdd(E).redIAdd(this.b);return 0===O.redSqr().redISub(R).cmpn(0)},C.prototype._endoWnafMulAdd=function(S,w,O){for(var E=this._endoWnafT1,R=this._endoWnafT2,z=0;z<S.length;z++){var U=this._endoSplit(w[z]),W=S[z],K=W._getBeta();U.k1.negative&&(U.k1.ineg(),W=W.neg(!0)),U.k2.negative&&(U.k2.ineg(),K=K.neg(!0)),E[2*z]=W,E[2*z+1]=K,R[2*z]=U.k1,R[2*z+1]=U.k2}for(var ee=this._wnafMulAdd(1,E,R,2*z,O),ie=0;ie<2*z;ie++)E[ie]=null,R[ie]=null;return ee},b(h,I.BasePoint),C.prototype.point=function(S,w,O){return new h(this,S,w,O)},C.prototype.pointFromJSON=function(S,w){return h.fromJSON(this,S,w)},h.prototype._getBeta=function(){if(this.curve.endo){var S=this.precomputed;if(S&&S.beta)return S.beta;var w=this.curve.point(this.x.redMul(this.curve.endo.beta),this.y);if(S){var O=this.curve,E=function(R){return O.point(R.x.redMul(O.endo.beta),R.y)};S.beta=w,w.precomputed={beta:null,naf:S.naf&&{wnd:S.naf.wnd,points:S.naf.points.map(E)},doubles:S.doubles&&{step:S.doubles.step,points:S.doubles.points.map(E)}}}return w}},h.prototype.toJSON=function(){return this.precomputed?[this.x,this.y,this.precomputed&&{doubles:this.precomputed.doubles&&{step:this.precomputed.doubles.step,points:this.precomputed.doubles.points.slice(1)},naf:this.precomputed.naf&&{wnd:this.precomputed.naf.wnd,points:this.precomputed.naf.points.slice(1)}}]:[this.x,this.y]},h.fromJSON=function(S,w,O){"string"==typeof w&&(w=JSON.parse(w));var E=S.point(w[0],w[1],O);if(!w[2])return E;function R(U){return S.point(U[0],U[1],O)}var z=w[2];return E.precomputed={beta:null,doubles:z.doubles&&{step:z.doubles.step,points:[E].concat(z.doubles.points.map(R))},naf:z.naf&&{wnd:z.naf.wnd,points:[E].concat(z.naf.points.map(R))}},E},h.prototype.inspect=function(){return this.isInfinity()?"<EC Point Infinity>":"<EC Point x: "+this.x.fromRed().toString(16,2)+" y: "+this.y.fromRed().toString(16,2)+">"},h.prototype.isInfinity=function(){return this.inf},h.prototype.add=function(S){if(this.inf)return S;if(S.inf)return this;if(this.eq(S))return this.dbl();if(this.neg().eq(S))return this.curve.point(null,null);if(0===this.x.cmp(S.x))return this.curve.point(null,null);var w=this.y.redSub(S.y);0!==w.cmpn(0)&&(w=w.redMul(this.x.redSub(S.x).redInvm()));var O=w.redSqr().redISub(this.x).redISub(S.x),E=w.redMul(this.x.redSub(O)).redISub(this.y);return this.curve.point(O,E)},h.prototype.dbl=function(){if(this.inf)return this;var S=this.y.redAdd(this.y);if(0===S.cmpn(0))return this.curve.point(null,null);var w=this.curve.a,O=this.x.redSqr(),E=S.redInvm(),R=O.redAdd(O).redIAdd(O).redIAdd(w).redMul(E),z=R.redSqr().redISub(this.x.redAdd(this.x)),U=R.redMul(this.x.redSub(z)).redISub(this.y);return this.curve.point(z,U)},h.prototype.getX=function(){return this.x.fromRed()},h.prototype.getY=function(){return this.y.fromRed()},h.prototype.mul=function(S){return S=new e(S,16),this.isInfinity()?this:this._hasDoubles(S)?this.curve._fixedNafMul(this,S):this.curve.endo?this.curve._endoWnafMulAdd([this],[S]):this.curve._wnafMul(this,S)},h.prototype.mulAdd=function(S,w,O){var E=[this,w],R=[S,O];return this.curve.endo?this.curve._endoWnafMulAdd(E,R):this.curve._wnafMulAdd(1,E,R,2)},h.prototype.jmulAdd=function(S,w,O){var E=[this,w],R=[S,O];return this.curve.endo?this.curve._endoWnafMulAdd(E,R,!0):this.curve._wnafMulAdd(1,E,R,2,!0)},h.prototype.eq=function(S){return this===S||this.inf===S.inf&&(this.inf||0===this.x.cmp(S.x)&&0===this.y.cmp(S.y))},h.prototype.neg=function(S){if(this.inf)return this;var w=this.curve.point(this.x,this.y.redNeg());if(S&&this.precomputed){var O=this.precomputed,E=function(R){return R.neg()};w.precomputed={naf:O.naf&&{wnd:O.naf.wnd,points:O.naf.points.map(E)},doubles:O.doubles&&{step:O.doubles.step,points:O.doubles.points.map(E)}}}return w},h.prototype.toJ=function(){return this.inf?this.curve.jpoint(null,null,null):this.curve.jpoint(this.x,this.y,this.curve.one)},b(P,I.BasePoint),C.prototype.jpoint=function(S,w,O){return new P(this,S,w,O)},P.prototype.toP=function(){if(this.isInfinity())return this.curve.point(null,null);var S=this.z.redInvm(),w=S.redSqr(),O=this.x.redMul(w),E=this.y.redMul(w).redMul(S);return this.curve.point(O,E)},P.prototype.neg=function(){return this.curve.jpoint(this.x,this.y.redNeg(),this.z)},P.prototype.add=function(S){if(this.isInfinity())return S;if(S.isInfinity())return this;var w=S.z.redSqr(),O=this.z.redSqr(),E=this.x.redMul(w),R=S.x.redMul(O),z=this.y.redMul(w.redMul(S.z)),U=S.y.redMul(O.redMul(this.z)),W=E.redSub(R),K=z.redSub(U);if(0===W.cmpn(0))return 0!==K.cmpn(0)?this.curve.jpoint(null,null,null):this.dbl();var ee=W.redSqr(),ie=ee.redMul(W),ue=E.redMul(ee),le=K.redSqr().redIAdd(ie).redISub(ue).redISub(ue),ne=K.redMul(ue.redISub(le)).redISub(z.redMul(ie)),de=this.z.redMul(S.z).redMul(W);return this.curve.jpoint(le,ne,de)},P.prototype.mixedAdd=function(S){if(this.isInfinity())return S.toJ();if(S.isInfinity())return this;var w=this.z.redSqr(),O=this.x,E=S.x.redMul(w),R=this.y,z=S.y.redMul(w).redMul(this.z),U=O.redSub(E),W=R.redSub(z);if(0===U.cmpn(0))return 0!==W.cmpn(0)?this.curve.jpoint(null,null,null):this.dbl();var K=U.redSqr(),ee=K.redMul(U),ie=O.redMul(K),ue=W.redSqr().redIAdd(ee).redISub(ie).redISub(ie),le=W.redMul(ie.redISub(ue)).redISub(R.redMul(ee)),ne=this.z.redMul(U);return this.curve.jpoint(ue,le,ne)},P.prototype.dblp=function(S){if(0===S)return this;if(this.isInfinity())return this;if(!S)return this.dbl();var w;if(this.curve.zeroA||this.curve.threeA){var O=this;for(w=0;w<S;w++)O=O.dbl();return O}var E=this.curve.a,R=this.curve.tinv,z=this.x,U=this.y,W=this.z,K=W.redSqr().redSqr(),ee=U.redAdd(U);for(w=0;w<S;w++){var ie=z.redSqr(),ue=ee.redSqr(),le=ue.redSqr(),ne=ie.redAdd(ie).redIAdd(ie).redIAdd(E.redMul(K)),de=z.redMul(ue),$=ne.redSqr().redISub(de.redAdd(de)),me=de.redISub($),A=ne.redMul(me);A=A.redIAdd(A).redISub(le);var i=ee.redMul(W);w+1<S&&(K=K.redMul(le)),z=$,W=i,ee=A}return this.curve.jpoint(z,ee.redMul(R),W)},P.prototype.dbl=function(){return this.isInfinity()?this:this.curve.zeroA?this._zeroDbl():this.curve.threeA?this._threeDbl():this._dbl()},P.prototype._zeroDbl=function(){var S,w,O;if(this.zOne){var E=this.x.redSqr(),R=this.y.redSqr(),z=R.redSqr(),U=this.x.redAdd(R).redSqr().redISub(E).redISub(z);U=U.redIAdd(U);var W=E.redAdd(E).redIAdd(E),K=W.redSqr().redISub(U).redISub(U),ee=z.redIAdd(z);ee=(ee=ee.redIAdd(ee)).redIAdd(ee),S=K,w=W.redMul(U.redISub(K)).redISub(ee),O=this.y.redAdd(this.y)}else{var ie=this.x.redSqr(),ue=this.y.redSqr(),le=ue.redSqr(),ne=this.x.redAdd(ue).redSqr().redISub(ie).redISub(le);ne=ne.redIAdd(ne);var de=ie.redAdd(ie).redIAdd(ie),$=de.redSqr(),me=le.redIAdd(le);me=(me=me.redIAdd(me)).redIAdd(me),S=$.redISub(ne).redISub(ne),w=de.redMul(ne.redISub(S)).redISub(me),O=(O=this.y.redMul(this.z)).redIAdd(O)}return this.curve.jpoint(S,w,O)},P.prototype._threeDbl=function(){var S,w,O;if(this.zOne){var E=this.x.redSqr(),R=this.y.redSqr(),z=R.redSqr(),U=this.x.redAdd(R).redSqr().redISub(E).redISub(z);U=U.redIAdd(U);var W=E.redAdd(E).redIAdd(E).redIAdd(this.curve.a),K=W.redSqr().redISub(U).redISub(U);S=K;var ee=z.redIAdd(z);ee=(ee=ee.redIAdd(ee)).redIAdd(ee),w=W.redMul(U.redISub(K)).redISub(ee),O=this.y.redAdd(this.y)}else{var ie=this.z.redSqr(),ue=this.y.redSqr(),le=this.x.redMul(ue),ne=this.x.redSub(ie).redMul(this.x.redAdd(ie));ne=ne.redAdd(ne).redIAdd(ne);var de=le.redIAdd(le),$=(de=de.redIAdd(de)).redAdd(de);S=ne.redSqr().redISub($),O=this.y.redAdd(this.z).redSqr().redISub(ue).redISub(ie);var me=ue.redSqr();me=(me=(me=me.redIAdd(me)).redIAdd(me)).redIAdd(me),w=ne.redMul(de.redISub(S)).redISub(me)}return this.curve.jpoint(S,w,O)},P.prototype._dbl=function(){var S=this.curve.a,w=this.x,O=this.y,E=this.z,R=E.redSqr().redSqr(),z=w.redSqr(),U=O.redSqr(),W=z.redAdd(z).redIAdd(z).redIAdd(S.redMul(R)),K=w.redAdd(w),ee=(K=K.redIAdd(K)).redMul(U),ie=W.redSqr().redISub(ee.redAdd(ee)),ue=ee.redISub(ie),le=U.redSqr();le=(le=(le=le.redIAdd(le)).redIAdd(le)).redIAdd(le);var ne=W.redMul(ue).redISub(le),de=O.redAdd(O).redMul(E);return this.curve.jpoint(ie,ne,de)},P.prototype.trpl=function(){if(!this.curve.zeroA)return this.dbl().add(this);var S=this.x.redSqr(),w=this.y.redSqr(),O=this.z.redSqr(),E=w.redSqr(),R=S.redAdd(S).redIAdd(S),z=R.redSqr(),U=this.x.redAdd(w).redSqr().redISub(S).redISub(E),W=(U=(U=(U=U.redIAdd(U)).redAdd(U).redIAdd(U)).redISub(z)).redSqr(),K=E.redIAdd(E);K=(K=(K=K.redIAdd(K)).redIAdd(K)).redIAdd(K);var ee=R.redIAdd(U).redSqr().redISub(z).redISub(W).redISub(K),ie=w.redMul(ee);ie=(ie=ie.redIAdd(ie)).redIAdd(ie);var ue=this.x.redMul(W).redISub(ie);ue=(ue=ue.redIAdd(ue)).redIAdd(ue);var le=this.y.redMul(ee.redMul(K.redISub(ee)).redISub(U.redMul(W)));le=(le=(le=le.redIAdd(le)).redIAdd(le)).redIAdd(le);var ne=this.z.redAdd(U).redSqr().redISub(O).redISub(W);return this.curve.jpoint(ue,le,ne)},P.prototype.mul=function(S,w){return S=new e(S,w),this.curve._wnafMul(this,S)},P.prototype.eq=function(S){if("affine"===S.type)return this.eq(S.toJ());if(this===S)return!0;var w=this.z.redSqr(),O=S.z.redSqr();if(0!==this.x.redMul(O).redISub(S.x.redMul(w)).cmpn(0))return!1;var E=w.redMul(this.z),R=O.redMul(S.z);return 0===this.y.redMul(R).redISub(S.y.redMul(E)).cmpn(0)},P.prototype.eqXToP=function(S){var w=this.z.redSqr(),O=S.toRed(this.curve.red).redMul(w);if(0===this.x.cmp(O))return!0;for(var E=S.clone(),R=this.curve.redN.redMul(w);;){if(E.iadd(this.curve.n),E.cmp(this.curve.p)>=0)return!1;if(O.redIAdd(R),0===this.x.cmp(O))return!0}},P.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)+">"},P.prototype.isInfinity=function(){return 0===this.z.cmpn(0)}},2916:(Ve,q,p)=>{"use strict";var P,t=q,e=p(7084),b=p(6270),s=p(1970).assert;function C(d){this.curve="short"===d.type?new b.short(d):"edwards"===d.type?new b.edwards(d):new b.mont(d),this.g=this.curve.g,this.n=this.curve.n,this.hash=d.hash,s(this.g.validate(),"Invalid curve"),s(this.g.mul(this.n).isInfinity(),"Invalid curve, G*N != O")}function h(d,S){Object.defineProperty(t,d,{configurable:!0,enumerable:!0,get:function(){var w=new C(S);return Object.defineProperty(t,d,{configurable:!0,enumerable:!0,value:w}),w}})}t.PresetCurve=C,h("p192",{type:"short",prime:"p192",p:"ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff",a:"ffffffff ffffffff ffffffff fffffffe ffffffff fffffffc",b:"64210519 e59c80e7 0fa7e9ab 72243049 feb8deec c146b9b1",n:"ffffffff ffffffff ffffffff 99def836 146bc9b1 b4d22831",hash:e.sha256,gRed:!1,g:["188da80e b03090f6 7cbf20eb 43a18800 f4ff0afd 82ff1012","07192b95 ffc8da78 631011ed 6b24cdd5 73f977a1 1e794811"]}),h("p224",{type:"short",prime:"p224",p:"ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001",a:"ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff fffffffe",b:"b4050a85 0c04b3ab f5413256 5044b0b7 d7bfd8ba 270b3943 2355ffb4",n:"ffffffff ffffffff ffffffff ffff16a2 e0b8f03e 13dd2945 5c5c2a3d",hash:e.sha256,gRed:!1,g:["b70e0cbd 6bb4bf7f 321390b9 4a03c1d3 56c21122 343280d6 115c1d21","bd376388 b5f723fb 4c22dfe6 cd4375a0 5a074764 44d58199 85007e34"]}),h("p256",{type:"short",prime:null,p:"ffffffff 00000001 00000000 00000000 00000000 ffffffff ffffffff ffffffff",a:"ffffffff 00000001 00000000 00000000 00000000 ffffffff ffffffff fffffffc",b:"5ac635d8 aa3a93e7 b3ebbd55 769886bc 651d06b0 cc53b0f6 3bce3c3e 27d2604b",n:"ffffffff 00000000 ffffffff ffffffff bce6faad a7179e84 f3b9cac2 fc632551",hash:e.sha256,gRed:!1,g:["6b17d1f2 e12c4247 f8bce6e5 63a440f2 77037d81 2deb33a0 f4a13945 d898c296","4fe342e2 fe1a7f9b 8ee7eb4a 7c0f9e16 2bce3357 6b315ece cbb64068 37bf51f5"]}),h("p384",{type:"short",prime:null,p:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe ffffffff 00000000 00000000 ffffffff",a:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe ffffffff 00000000 00000000 fffffffc",b:"b3312fa7 e23ee7e4 988e056b e3f82d19 181d9c6e fe814112 0314088f 5013875a c656398d 8a2ed19d 2a85c8ed d3ec2aef",n:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff c7634d81 f4372ddf 581a0db2 48b0a77a ecec196a ccc52973",hash:e.sha384,gRed:!1,g:["aa87ca22 be8b0537 8eb1c71e f320ad74 6e1d3b62 8ba79b98 59f741e0 82542a38 5502f25d bf55296c 3a545e38 72760ab7","3617de4a 96262c6f 5d9e98bf 9292dc29 f8f41dbd 289a147c e9da3113 b5f0b8c0 0a60b1ce 1d7e819d 7a431d7c 90ea0e5f"]}),h("p521",{type:"short",prime:null,p:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff",a:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffc",b:"00000051 953eb961 8e1c9a1f 929a21a0 b68540ee a2da725b 99b315f3 b8b48991 8ef109e1 56193951 ec7e937b 1652c0bd 3bb1bf07 3573df88 3d2c34f1 ef451fd4 6b503f00",n:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffa 51868783 bf2f966b 7fcc0148 f709a5d0 3bb5c9b8 899c47ae bb6fb71e 91386409",hash:e.sha512,gRed:!1,g:["000000c6 858e06b7 0404e9cd 9e3ecb66 2395b442 9c648139 053fb521 f828af60 6b4d3dba a14b5e77 efe75928 fe1dc127 a2ffa8de 3348b3c1 856a429b f97e7e31 c2e5bd66","00000118 39296a78 9a3bc004 5c8a5fb4 2c7d1bd9 98f54449 579b4468 17afbd17 273e662c 97ee7299 5ef42640 c550b901 3fad0761 353c7086 a272c240 88be9476 9fd16650"]}),h("curve25519",{type:"mont",prime:"p25519",p:"7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed",a:"76d06",b:"1",n:"1000000000000000 0000000000000000 14def9dea2f79cd6 5812631a5cf5d3ed",hash:e.sha256,gRed:!1,g:["9"]}),h("ed25519",{type:"edwards",prime:"p25519",p:"7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed",a:"-1",c:"1",d:"52036cee2b6ffe73 8cc740797779e898 00700a4d4141d8ab 75eb4dca135978a3",n:"1000000000000000 0000000000000000 14def9dea2f79cd6 5812631a5cf5d3ed",hash:e.sha256,gRed:!1,g:["216936d3cd6e53fec0a4e231fdd6dc5c692cc7609525a7b2c9562d608f25d51a","6666666666666666666666666666666666666666666666666666666666666658"]});try{P=p(5150)}catch{P=void 0}h("secp256k1",{type:"short",prime:"k256",p:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f",a:"0",b:"7",n:"ffffffff ffffffff ffffffff fffffffe baaedce6 af48a03b bfd25e8c d0364141",h:"1",hash:e.sha256,beta:"7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee",lambda:"5363ad4cc05c30e0a5261c028812645a122e22ea20816678df02967c1b23bd72",basis:[{a:"3086d221a7d46bcde86c90e49284eb15",b:"-e4437ed6010e88286f547fa90abfe4c3"},{a:"114ca50f7a8e2f3f657c1108d9d44cfd8",b:"3086d221a7d46bcde86c90e49284eb15"}],gRed:!1,g:["79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798","483ada7726a3c4655da4fbfc0e1108a8fd17b448a68554199c47d08ffb10d4b8",P]})},7626:(Ve,q,p)=>{"use strict";var t=p(7433),e=p(2438),b=p(1970),I=p(2916),s=p(7950),C=b.assert,h=p(1259),P=p(5957);function d(S){if(!(this instanceof d))return new d(S);"string"==typeof S&&(C(Object.prototype.hasOwnProperty.call(I,S),"Unknown curve "+S),S=I[S]),S instanceof I.PresetCurve&&(S={curve:S}),this.curve=S.curve.curve,this.n=this.curve.n,this.nh=this.n.ushrn(1),this.g=this.curve.g,this.g=S.curve.g,this.g.precompute(S.curve.n.bitLength()+1),this.hash=S.hash||S.curve.hash}Ve.exports=d,d.prototype.keyPair=function(w){return new h(this,w)},d.prototype.keyFromPrivate=function(w,O){return h.fromPrivate(this,w,O)},d.prototype.keyFromPublic=function(w,O){return h.fromPublic(this,w,O)},d.prototype.genKeyPair=function(w){w||(w={});for(var O=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()}),E=this.n.byteLength(),R=this.n.sub(new t(2));;){var z=new t(O.generate(E));if(!(z.cmp(R)>0))return z.iaddn(1),this.keyFromPrivate(z)}},d.prototype._truncateToN=function(w,O){var E=8*w.byteLength()-this.n.bitLength();return E>0&&(w=w.ushrn(E)),!O&&w.cmp(this.n)>=0?w.sub(this.n):w},d.prototype.sign=function(w,O,E,R){"object"==typeof E&&(R=E,E=null),R||(R={}),O=this.keyFromPrivate(O,E),w=this._truncateToN(new t(w,16));for(var z=this.n.byteLength(),U=O.getPrivate().toArray("be",z),W=w.toArray("be",z),K=new e({hash:this.hash,entropy:U,nonce:W,pers:R.pers,persEnc:R.persEnc||"utf8"}),ee=this.n.sub(new t(1)),ie=0;;ie++){var ue=R.k?R.k(ie):new t(K.generate(this.n.byteLength()));if(!((ue=this._truncateToN(ue,!0)).cmpn(1)<=0||ue.cmp(ee)>=0)){var le=this.g.mul(ue);if(!le.isInfinity()){var ne=le.getX(),de=ne.umod(this.n);if(0!==de.cmpn(0)){var $=ue.invm(this.n).mul(de.mul(O.getPrivate()).iadd(w));if(0!==($=$.umod(this.n)).cmpn(0)){var me=(le.getY().isOdd()?1:0)|(0!==ne.cmp(de)?2:0);return R.canonical&&$.cmp(this.nh)>0&&($=this.n.sub($),me^=1),new P({r:de,s:$,recoveryParam:me})}}}}}},d.prototype.verify=function(w,O,E,R){w=this._truncateToN(new t(w,16)),E=this.keyFromPublic(E,R);var z=(O=new P(O,"hex")).r,U=O.s;if(z.cmpn(1)<0||z.cmp(this.n)>=0||U.cmpn(1)<0||U.cmp(this.n)>=0)return!1;var ie,W=U.invm(this.n),K=W.mul(w).umod(this.n),ee=W.mul(z).umod(this.n);return this.curve._maxwellTrick?!(ie=this.g.jmulAdd(K,E.getPublic(),ee)).isInfinity()&&ie.eqXToP(z):!(ie=this.g.mulAdd(K,E.getPublic(),ee)).isInfinity()&&0===ie.getX().umod(this.n).cmp(z)},d.prototype.recoverPubKey=function(S,w,O,E){C((3&O)===O,"The recovery param is more than two bits"),w=new P(w,E);var R=this.n,z=new t(S),U=w.r,W=w.s,K=1&O,ee=O>>1;if(U.cmp(this.curve.p.umod(this.curve.n))>=0&&ee)throw new Error("Unable to find sencond key candinate");U=this.curve.pointFromX(ee?U.add(this.curve.n):U,K);var ie=w.r.invm(R),ue=R.sub(z).mul(ie).umod(R),le=W.mul(ie).umod(R);return this.g.mulAdd(ue,U,le)},d.prototype.getKeyRecoveryParam=function(S,w,O,E){if(null!==(w=new P(w,E)).recoveryParam)return w.recoveryParam;for(var R=0;R<4;R++){var z;try{z=this.recoverPubKey(S,w,R)}catch{continue}if(z.eq(O))return R}throw new Error("Unable to find valid recovery factor")}},1259:(Ve,q,p)=>{"use strict";var t=p(7433),b=p(1970).assert;function I(s,C){this.ec=s,this.priv=null,this.pub=null,C.priv&&this._importPrivate(C.priv,C.privEnc),C.pub&&this._importPublic(C.pub,C.pubEnc)}Ve.exports=I,I.fromPublic=function(C,h,P){return h instanceof I?h:new I(C,{pub:h,pubEnc:P})},I.fromPrivate=function(C,h,P){return h instanceof I?h:new I(C,{priv:h,privEnc:P})},I.prototype.validate=function(){var C=this.getPublic();return C.isInfinity()?{result:!1,reason:"Invalid public key"}:C.validate()?C.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"}},I.prototype.getPublic=function(C,h){return"string"==typeof C&&(h=C,C=null),this.pub||(this.pub=this.ec.g.mul(this.priv)),h?this.pub.encode(h,C):this.pub},I.prototype.getPrivate=function(C){return"hex"===C?this.priv.toString(16,2):this.priv},I.prototype._importPrivate=function(C,h){this.priv=new t(C,h||16),this.priv=this.priv.umod(this.ec.curve.n)},I.prototype._importPublic=function(C,h){if(C.x||C.y)return"mont"===this.ec.curve.type?b(C.x,"Need x coordinate"):("short"===this.ec.curve.type||"edwards"===this.ec.curve.type)&&b(C.x&&C.y,"Need both x and y coordinate"),void(this.pub=this.ec.curve.point(C.x,C.y));this.pub=this.ec.curve.decodePoint(C,h)},I.prototype.derive=function(C){return C.validate()||b(C.validate(),"public point not validated"),C.mul(this.priv).getX()},I.prototype.sign=function(C,h,P){return this.ec.sign(C,this,h,P)},I.prototype.verify=function(C,h){return this.ec.verify(C,h,this)},I.prototype.inspect=function(){return"<Key priv: "+(this.priv&&this.priv.toString(16,2))+" pub: "+(this.pub&&this.pub.inspect())+" >"}},5957:(Ve,q,p)=>{"use strict";var t=p(7433),e=p(1970),b=e.assert;function I(d,S){if(d instanceof I)return d;this._importDER(d,S)||(b(d.r&&d.s,"Signature without r or s"),this.r=new t(d.r,16),this.s=new t(d.s,16),this.recoveryParam=void 0===d.recoveryParam?null:d.recoveryParam)}function s(){this.place=0}function C(d,S){var w=d[S.place++];if(!(128&w))return w;var O=15&w;if(0===O||O>4)return!1;for(var E=0,R=0,z=S.place;R<O;R++,z++)E<<=8,E|=d[z],E>>>=0;return!(E<=127)&&(S.place=z,E)}function h(d){for(var S=0,w=d.length-1;!d[S]&&!(128&d[S+1])&&S<w;)S++;return 0===S?d:d.slice(S)}function P(d,S){if(S<128)d.push(S);else{var w=1+(Math.log(S)/Math.LN2>>>3);for(d.push(128|w);--w;)d.push(S>>>(w<<3)&255);d.push(S)}}Ve.exports=I,I.prototype._importDER=function(S,w){S=e.toArray(S,w);var O=new s;if(48!==S[O.place++])return!1;var E=C(S,O);if(!1===E||E+O.place!==S.length||2!==S[O.place++])return!1;var R=C(S,O);if(!1===R)return!1;var z=S.slice(O.place,R+O.place);if(O.place+=R,2!==S[O.place++])return!1;var U=C(S,O);if(!1===U||S.length!==U+O.place)return!1;var W=S.slice(O.place,U+O.place);if(0===z[0]){if(!(128&z[1]))return!1;z=z.slice(1)}if(0===W[0]){if(!(128&W[1]))return!1;W=W.slice(1)}return this.r=new t(z),this.s=new t(W),this.recoveryParam=null,!0},I.prototype.toDER=function(S){var w=this.r.toArray(),O=this.s.toArray();for(128&w[0]&&(w=[0].concat(w)),128&O[0]&&(O=[0].concat(O)),w=h(w),O=h(O);!(O[0]||128&O[1]);)O=O.slice(1);var E=[2];P(E,w.length),(E=E.concat(w)).push(2),P(E,O.length);var R=E.concat(O),z=[48];return P(z,R.length),z=z.concat(R),e.encode(z,S)}},1885:(Ve,q,p)=>{"use strict";var t=p(7084),e=p(2916),b=p(1970),I=b.assert,s=b.parseBytes,C=p(7535),h=p(8241);function P(d){if(I("ed25519"===d,"only tested with ed25519 so far"),!(this instanceof P))return new P(d);this.curve=d=e[d].curve,this.g=d.g,this.g.precompute(d.n.bitLength()+1),this.pointClass=d.point().constructor,this.encodingLength=Math.ceil(d.n.bitLength()/8),this.hash=t.sha512}Ve.exports=P,P.prototype.sign=function(S,w){S=s(S);var O=this.keyFromSecret(w),E=this.hashInt(O.messagePrefix(),S),R=this.g.mul(E),z=this.encodePoint(R),U=this.hashInt(z,O.pubBytes(),S).mul(O.priv()),W=E.add(U).umod(this.curve.n);return this.makeSignature({R,S:W,Rencoded:z})},P.prototype.verify=function(S,w,O){S=s(S),w=this.makeSignature(w);var E=this.keyFromPublic(O),R=this.hashInt(w.Rencoded(),E.pubBytes(),S),z=this.g.mul(w.S());return w.R().add(E.pub().mul(R)).eq(z)},P.prototype.hashInt=function(){for(var S=this.hash(),w=0;w<arguments.length;w++)S.update(arguments[w]);return b.intFromLE(S.digest()).umod(this.curve.n)},P.prototype.keyFromPublic=function(S){return C.fromPublic(this,S)},P.prototype.keyFromSecret=function(S){return C.fromSecret(this,S)},P.prototype.makeSignature=function(S){return S instanceof h?S:new h(this,S)},P.prototype.encodePoint=function(S){var w=S.getY().toArray("le",this.encodingLength);return w[this.encodingLength-1]|=S.getX().isOdd()?128:0,w},P.prototype.decodePoint=function(S){var w=(S=b.parseBytes(S)).length-1,O=S.slice(0,w).concat(-129&S[w]),E=0!=(128&S[w]),R=b.intFromLE(O);return this.curve.pointFromY(R,E)},P.prototype.encodeInt=function(S){return S.toArray("le",this.encodingLength)},P.prototype.decodeInt=function(S){return b.intFromLE(S)},P.prototype.isPoint=function(S){return S instanceof this.pointClass}},7535:(Ve,q,p)=>{"use strict";var t=p(1970),e=t.assert,b=t.parseBytes,I=t.cachedProperty;function s(C,h){this.eddsa=C,this._secret=b(h.secret),C.isPoint(h.pub)?this._pub=h.pub:this._pubBytes=b(h.pub)}s.fromPublic=function(h,P){return P instanceof s?P:new s(h,{pub:P})},s.fromSecret=function(h,P){return P instanceof s?P:new s(h,{secret:P})},s.prototype.secret=function(){return this._secret},I(s,"pubBytes",function(){return this.eddsa.encodePoint(this.pub())}),I(s,"pub",function(){return this._pubBytes?this.eddsa.decodePoint(this._pubBytes):this.eddsa.g.mul(this.priv())}),I(s,"privBytes",function(){var h=this.eddsa,P=this.hash(),d=h.encodingLength-1,S=P.slice(0,h.encodingLength);return S[0]&=248,S[d]&=127,S[d]|=64,S}),I(s,"priv",function(){return this.eddsa.decodeInt(this.privBytes())}),I(s,"hash",function(){return this.eddsa.hash().update(this.secret()).digest()}),I(s,"messagePrefix",function(){return this.hash().slice(this.eddsa.encodingLength)}),s.prototype.sign=function(h){return e(this._secret,"KeyPair can only verify"),this.eddsa.sign(h,this)},s.prototype.verify=function(h,P){return this.eddsa.verify(h,P,this)},s.prototype.getSecret=function(h){return e(this._secret,"KeyPair is public only"),t.encode(this.secret(),h)},s.prototype.getPublic=function(h){return t.encode(this.pubBytes(),h)},Ve.exports=s},8241:(Ve,q,p)=>{"use strict";var t=p(7433),e=p(1970),b=e.assert,I=e.cachedProperty,s=e.parseBytes;function C(h,P){this.eddsa=h,"object"!=typeof P&&(P=s(P)),Array.isArray(P)&&(P={R:P.slice(0,h.encodingLength),S:P.slice(h.encodingLength)}),b(P.R&&P.S,"Signature without R or S"),h.isPoint(P.R)&&(this._R=P.R),P.S instanceof t&&(this._S=P.S),this._Rencoded=Array.isArray(P.R)?P.R:P.Rencoded,this._Sencoded=Array.isArray(P.S)?P.S:P.Sencoded}I(C,"S",function(){return this.eddsa.decodeInt(this.Sencoded())}),I(C,"R",function(){return this.eddsa.decodePoint(this.Rencoded())}),I(C,"Rencoded",function(){return this.eddsa.encodePoint(this.R())}),I(C,"Sencoded",function(){return this.eddsa.encodeInt(this.S())}),C.prototype.toBytes=function(){return this.Rencoded().concat(this.Sencoded())},C.prototype.toHex=function(){return e.encode(this.toBytes(),"hex").toUpperCase()},Ve.exports=C},5150:Ve=>{Ve.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:(Ve,q,p)=>{"use strict";var t=q,e=p(7433),b=p(2391),I=p(8195);t.assert=b,t.toArray=I.toArray,t.zero2=I.zero2,t.toHex=I.toHex,t.encode=I.encode,t.getNAF=function s(S,w,O){var E=new Array(Math.max(S.bitLength(),O)+1);E.fill(0);for(var R=1<<w+1,z=S.clone(),U=0;U<E.length;U++){var W,K=z.andln(R-1);z.isOdd()?z.isubn(W=K>(R>>1)-1?(R>>1)-K:K):W=0,E[U]=W,z.iushrn(1)}return E},t.getJSF=function C(S,w){var O=[[],[]];S=S.clone(),w=w.clone();for(var z,E=0,R=0;S.cmpn(-E)>0||w.cmpn(-R)>0;){var K,ee,U=S.andln(3)+E&3,W=w.andln(3)+R&3;3===U&&(U=-1),3===W&&(W=-1),K=1&U?3!=(z=S.andln(7)+E&7)&&5!==z||2!==W?U:-U:0,O[0].push(K),ee=1&W?3!=(z=w.andln(7)+R&7)&&5!==z||2!==U?W:-W:0,O[1].push(ee),2*E===K+1&&(E=1-E),2*R===ee+1&&(R=1-R),S.iushrn(1),w.iushrn(1)}return O},t.cachedProperty=function h(S,w,O){var E="_"+w;S.prototype[w]=function(){return void 0!==this[E]?this[E]:this[E]=O.call(this)}},t.parseBytes=function P(S){return"string"==typeof S?t.toArray(S,"hex"):S},t.intFromLE=function d(S){return new e(S,"hex","le")}},7433:function(Ve,q,p){!function(t,e){"use strict";function b(A,i){if(!A)throw new Error(i||"Assertion failed")}function I(A,i){A.super_=i;var a=function(){};a.prototype=i.prototype,A.prototype=new a,A.prototype.constructor=A}function s(A,i,a){if(s.isBN(A))return A;this.negative=0,this.words=null,this.length=0,this.red=null,null!==A&&(("le"===i||"be"===i)&&(a=i,i=10),this._init(A||0,i||10,a||"be"))}var C;"object"==typeof t?t.exports=s:e.BN=s,s.BN=s,s.wordSize=26;try{C=typeof window<"u"&&typeof window.Buffer<"u"?window.Buffer:p(5568).Buffer}catch{}function h(A,i){var a=A.charCodeAt(i);return a>=65&&a<=70?a-55:a>=97&&a<=102?a-87:a-48&15}function P(A,i,a){var u=h(A,a);return a-1>=i&&(u|=h(A,a-1)<<4),u}function d(A,i,a,u){for(var l=0,y=Math.min(A.length,a),T=i;T<y;T++){var L=A.charCodeAt(T)-48;l*=u,l+=L>=49?L-49+10:L>=17?L-17+10:L}return l}s.isBN=function(i){return i instanceof s||null!==i&&"object"==typeof i&&i.constructor.wordSize===s.wordSize&&Array.isArray(i.words)},s.max=function(i,a){return i.cmp(a)>0?i:a},s.min=function(i,a){return i.cmp(a)<0?i:a},s.prototype._init=function(i,a,u){if("number"==typeof i)return this._initNumber(i,a,u);if("object"==typeof i)return this._initArray(i,a,u);"hex"===a&&(a=16),b(a===(0|a)&&a>=2&&a<=36);var l=0;"-"===(i=i.toString().replace(/\s+/g,""))[0]&&(l++,this.negative=1),l<i.length&&(16===a?this._parseHex(i,l,u):(this._parseBase(i,a,l),"le"===u&&this._initArray(this.toArray(),a,u)))},s.prototype._initNumber=function(i,a,u){i<0&&(this.negative=1,i=-i),i<67108864?(this.words=[67108863&i],this.length=1):i<4503599627370496?(this.words=[67108863&i,i/67108864&67108863],this.length=2):(b(i<9007199254740992),this.words=[67108863&i,i/67108864&67108863,1],this.length=3),"le"===u&&this._initArray(this.toArray(),a,u)},s.prototype._initArray=function(i,a,u){if(b("number"==typeof i.length),i.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(i.length/3),this.words=new Array(this.length);for(var l=0;l<this.length;l++)this.words[l]=0;var y,T,L=0;if("be"===u)for(l=i.length-1,y=0;l>=0;l-=3)this.words[y]|=(T=i[l]|i[l-1]<<8|i[l-2]<<16)<<L&67108863,this.words[y+1]=T>>>26-L&67108863,(L+=24)>=26&&(L-=26,y++);else if("le"===u)for(l=0,y=0;l<i.length;l+=3)this.words[y]|=(T=i[l]|i[l+1]<<8|i[l+2]<<16)<<L&67108863,this.words[y+1]=T>>>26-L&67108863,(L+=24)>=26&&(L-=26,y++);return this.strip()},s.prototype._parseHex=function(i,a,u){this.length=Math.ceil((i.length-a)/6),this.words=new Array(this.length);for(var l=0;l<this.length;l++)this.words[l]=0;var L,y=0,T=0;if("be"===u)for(l=i.length-1;l>=a;l-=2)L=P(i,a,l)<<y,this.words[T]|=67108863&L,y>=18?(y-=18,this.words[T+=1]|=L>>>26):y+=8;else for(l=(i.length-a)%2==0?a+1:a;l<i.length;l+=2)L=P(i,a,l)<<y,this.words[T]|=67108863&L,y>=18?(y-=18,this.words[T+=1]|=L>>>26):y+=8;this.strip()},s.prototype._parseBase=function(i,a,u){this.words=[0],this.length=1;for(var l=0,y=1;y<=67108863;y*=a)l++;l--,y=y/a|0;for(var T=i.length-u,L=T%l,m=Math.min(T,T-L)+u,n=0,_=u;_<m;_+=l)n=d(i,_,_+l,a),this.imuln(y),this.words[0]+n<67108864?this.words[0]+=n:this._iaddn(n);if(0!==L){var B=1;for(n=d(i,_,i.length,a),_=0;_<L;_++)B*=a;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 a=0;a<this.length;a++)i.words[a]=this.words[a];i.length=this.length,i.negative=this.negative,i.red=this.red},s.prototype.clone=function(){var i=new s(null);return this.copy(i),i},s.prototype._expand=function(i){for(;this.length<i;)this.words[this.length++]=0;return this},s.prototype.strip=function(){for(;this.length>1&&0===this.words[this.length-1];)this.length--;return this._normSign()},s.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},s.prototype.inspect=function(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"};var S=["","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],O=[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 R(A,i,a){a.negative=i.negative^A.negative;var u=A.length+i.length|0;a.length=u,u=u-1|0;var l=0|A.words[0],y=0|i.words[0],T=l*y,m=T/67108864|0;a.words[0]=67108863&T;for(var n=1;n<u;n++){for(var _=m>>>26,B=67108863&m,V=Math.min(n,i.length-1),X=Math.max(0,n-A.length+1);X<=V;X++)_+=(T=(l=0|A.words[n-X|0])*(y=0|i.words[X])+B)/67108864|0,B=67108863&T;a.words[n]=0|B,m=0|_}return 0!==m?a.words[n]=0|m:a.length--,a.strip()}s.prototype.toString=function(i,a){var u;if(a=0|a||1,16===(i=i||10)||"hex"===i){u="";for(var l=0,y=0,T=0;T<this.length;T++){var L=this.words[T],m=(16777215&(L<<l|y)).toString(16);u=0!=(y=L>>>24-l&16777215)||T!==this.length-1?S[6-m.length]+m+u:m+u,(l+=2)>=26&&(l-=26,T--)}for(0!==y&&(u=y.toString(16)+u);u.length%a!=0;)u="0"+u;return 0!==this.negative&&(u="-"+u),u}if(i===(0|i)&&i>=2&&i<=36){var n=w[i],_=O[i];u="";var B=this.clone();for(B.negative=0;!B.isZero();){var V=B.modn(_).toString(i);u=(B=B.idivn(_)).isZero()?V+u:S[n-V.length]+V+u}for(this.isZero()&&(u="0"+u);u.length%a!=0;)u="0"+u;return 0!==this.negative&&(u="-"+u),u}b(!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&&b(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-i:i},s.prototype.toJSON=function(){return this.toString(16)},s.prototype.toBuffer=function(i,a){return b(typeof C<"u"),this.toArrayLike(C,i,a)},s.prototype.toArray=function(i,a){return this.toArrayLike(Array,i,a)},s.prototype.toArrayLike=function(i,a,u){var l=this.byteLength(),y=u||Math.max(1,l);b(l<=y,"byte array longer than desired length"),b(y>0,"Requested array length <= 0"),this.strip();var m,n,T="le"===a,L=new i(y),_=this.clone();if(T){for(n=0;!_.isZero();n++)m=_.andln(255),_.iushrn(8),L[n]=m;for(;n<y;n++)L[n]=0}else{for(n=0;n<y-l;n++)L[n]=0;for(n=0;!_.isZero();n++)m=_.andln(255),_.iushrn(8),L[y-n-1]=m}return L},s.prototype._countBits=Math.clz32?function(i){return 32-Math.clz32(i)}:function(i){var a=i,u=0;return a>=4096&&(u+=13,a>>>=13),a>=64&&(u+=7,a>>>=7),a>=8&&(u+=4,a>>>=4),a>=2&&(u+=2,a>>>=2),u+a},s.prototype._zeroBits=function(i){if(0===i)return 26;var a=i,u=0;return 8191&a||(u+=13,a>>>=13),127&a||(u+=7,a>>>=7),15&a||(u+=4,a>>>=4),3&a||(u+=2,a>>>=2),1&a||u++,u},s.prototype.bitLength=function(){var a=this._countBits(this.words[this.length-1]);return 26*(this.length-1)+a},s.prototype.zeroBits=function(){if(this.isZero())return 0;for(var i=0,a=0;a<this.length;a++){var u=this._zeroBits(this.words[a]);if(i+=u,26!==u)break}return i},s.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},s.prototype.toTwos=function(i){return 0!==this.negative?this.abs().inotn(i).iaddn(1):this.clone()},s.prototype.fromTwos=function(i){return this.testn(i-1)?this.notn(i).iaddn(1).ineg():this.clone()},s.prototype.isNeg=function(){return 0!==this.negative},s.prototype.neg=function(){return this.clone().ineg()},s.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},s.prototype.iuor=function(i){for(;this.length<i.length;)this.words[this.length++]=0;for(var a=0;a<i.length;a++)this.words[a]=this.words[a]|i.words[a];return this.strip()},s.prototype.ior=function(i){return b(0==(this.negative|i.negative)),this.iuor(i)},s.prototype.or=function(i){return this.length>i.length?this.clone().ior(i):i.clone().ior(this)},s.prototype.uor=function(i){return this.length>i.length?this.clone().iuor(i):i.clone().iuor(this)},s.prototype.iuand=function(i){var a;a=this.length>i.length?i:this;for(var u=0;u<a.length;u++)this.words[u]=this.words[u]&i.words[u];return this.length=a.length,this.strip()},s.prototype.iand=function(i){return b(0==(this.negative|i.negative)),this.iuand(i)},s.prototype.and=function(i){return this.length>i.length?this.clone().iand(i):i.clone().iand(this)},s.prototype.uand=function(i){return this.length>i.length?this.clone().iuand(i):i.clone().iuand(this)},s.prototype.iuxor=function(i){var a,u;this.length>i.length?(a=this,u=i):(a=i,u=this);for(var l=0;l<u.length;l++)this.words[l]=a.words[l]^u.words[l];if(this!==a)for(;l<a.length;l++)this.words[l]=a.words[l];return this.length=a.length,this.strip()},s.prototype.ixor=function(i){return b(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){b("number"==typeof i&&i>=0);var a=0|Math.ceil(i/26),u=i%26;this._expand(a),u>0&&a--;for(var l=0;l<a;l++)this.words[l]=67108863&~this.words[l];return u>0&&(this.words[l]=~this.words[l]&67108863>>26-u),this.strip()},s.prototype.notn=function(i){return this.clone().inotn(i)},s.prototype.setn=function(i,a){b("number"==typeof i&&i>=0);var u=i/26|0,l=i%26;return this._expand(u+1),this.words[u]=a?this.words[u]|1<<l:this.words[u]&~(1<<l),this.strip()},s.prototype.iadd=function(i){var a,u,l;if(0!==this.negative&&0===i.negative)return this.negative=0,a=this.isub(i),this.negative^=1,this._normSign();if(0===this.negative&&0!==i.negative)return i.negative=0,a=this.isub(i),i.negative=1,a._normSign();this.length>i.length?(u=this,l=i):(u=i,l=this);for(var y=0,T=0;T<l.length;T++)this.words[T]=67108863&(a=(0|u.words[T])+(0|l.words[T])+y),y=a>>>26;for(;0!==y&&T<u.length;T++)this.words[T]=67108863&(a=(0|u.words[T])+y),y=a>>>26;if(this.length=u.length,0!==y)this.words[this.length]=y,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 a;return 0!==i.negative&&0===this.negative?(i.negative=0,a=this.sub(i),i.negative^=1,a):0===i.negative&&0!==this.negative?(this.negative=0,a=i.sub(this),this.negative=1,a):this.length>i.length?this.clone().iadd(i):i.clone().iadd(this)},s.prototype.isub=function(i){if(0!==i.negative){i.negative=0;var a=this.iadd(i);return i.negative=1,a._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(i),this.negative=1,this._normSign();var l,y,u=this.cmp(i);if(0===u)return this.negative=0,this.length=1,this.words[0]=0,this;u>0?(l=this,y=i):(l=i,y=this);for(var T=0,L=0;L<y.length;L++)T=(a=(0|l.words[L])-(0|y.words[L])+T)>>26,this.words[L]=67108863&a;for(;0!==T&&L<l.length;L++)T=(a=(0|l.words[L])+T)>>26,this.words[L]=67108863&a;if(0===T&&L<l.length&&l!==this)for(;L<l.length;L++)this.words[L]=l.words[L];return this.length=Math.max(this.length,L),l!==this&&(this.negative=1),this.strip()},s.prototype.sub=function(i){return this.clone().isub(i)};var z=function(i,a,u){var m,n,_,l=i.words,y=a.words,T=u.words,L=0,B=0|l[0],V=8191&B,X=B>>>13,Le=0|l[1],$e=8191&Le,We=Le>>>13,Fe=0|l[2],De=8191&Fe,ye=Fe>>>13,ce=0|l[3],ve=8191&ce,oe=ce>>>13,je=0|l[4],Ae=8191&je,he=je>>>13,Ce=0|l[5],te=8191&Ce,Ue=Ce>>>13,Be=0|l[6],ae=8191&Be,ge=Be>>>13,ft=0|l[7],Je=8191&ft,dt=ft>>>13,Et=0|l[8],pt=8191&Et,ot=Et>>>13,wt=0|l[9],ke=8191&wt,Ke=wt>>>13,xt=0|y[0],Y=8191&xt,Re=xt>>>13,Tt=0|y[1],Qe=8191&Tt,Ye=Tt>>>13,Ht=0|y[2],Mt=8191&Ht,kt=Ht>>>13,_t=0|y[3],we=8191&_t,J=_t>>>13,be=0|y[4],He=8191&be,at=be>>>13,ii=0|y[5],Gt=8191&ii,ni=ii>>>13,ut=0|y[6],tt=8191&ut,vt=ut>>>13,ti=0|y[7],Ut=8191&ti,ht=ti>>>13,Rt=0|y[8],Oe=8191&Rt,et=Rt>>>13,it=0|y[9],ct=8191&it,Dt=it>>>13;u.negative=i.negative^a.negative,u.length=19;var pi=(L+(m=Math.imul(V,Y))|0)+((8191&(n=(n=Math.imul(V,Re))+Math.imul(X,Y)|0))<<13)|0;L=((_=Math.imul(X,Re))+(n>>>13)|0)+(pi>>>26)|0,pi&=67108863,m=Math.imul($e,Y),n=(n=Math.imul($e,Re))+Math.imul(We,Y)|0,_=Math.imul(We,Re);var Li=(L+(m=m+Math.imul(V,Qe)|0)|0)+((8191&(n=(n=n+Math.imul(V,Ye)|0)+Math.imul(X,Qe)|0))<<13)|0;L=((_=_+Math.imul(X,Ye)|0)+(n>>>13)|0)+(Li>>>26)|0,Li&=67108863,m=Math.imul(De,Y),n=(n=Math.imul(De,Re))+Math.imul(ye,Y)|0,_=Math.imul(ye,Re),m=m+Math.imul($e,Qe)|0,n=(n=n+Math.imul($e,Ye)|0)+Math.imul(We,Qe)|0,_=_+Math.imul(We,Ye)|0;var xi=(L+(m=m+Math.imul(V,Mt)|0)|0)+((8191&(n=(n=n+Math.imul(V,kt)|0)+Math.imul(X,Mt)|0))<<13)|0;L=((_=_+Math.imul(X,kt)|0)+(n>>>13)|0)+(xi>>>26)|0,xi&=67108863,m=Math.imul(ve,Y),n=(n=Math.imul(ve,Re))+Math.imul(oe,Y)|0,_=Math.imul(oe,Re),m=m+Math.imul(De,Qe)|0,n=(n=n+Math.imul(De,Ye)|0)+Math.imul(ye,Qe)|0,_=_+Math.imul(ye,Ye)|0,m=m+Math.imul($e,Mt)|0,n=(n=n+Math.imul($e,kt)|0)+Math.imul(We,Mt)|0,_=_+Math.imul(We,kt)|0;var Fi=(L+(m=m+Math.imul(V,we)|0)|0)+((8191&(n=(n=n+Math.imul(V,J)|0)+Math.imul(X,we)|0))<<13)|0;L=((_=_+Math.imul(X,J)|0)+(n>>>13)|0)+(Fi>>>26)|0,Fi&=67108863,m=Math.imul(Ae,Y),n=(n=Math.imul(Ae,Re))+Math.imul(he,Y)|0,_=Math.imul(he,Re),m=m+Math.imul(ve,Qe)|0,n=(n=n+Math.imul(ve,Ye)|0)+Math.imul(oe,Qe)|0,_=_+Math.imul(oe,Ye)|0,m=m+Math.imul(De,Mt)|0,n=(n=n+Math.imul(De,kt)|0)+Math.imul(ye,Mt)|0,_=_+Math.imul(ye,kt)|0,m=m+Math.imul($e,we)|0,n=(n=n+Math.imul($e,J)|0)+Math.imul(We,we)|0,_=_+Math.imul(We,J)|0;var qe=(L+(m=m+Math.imul(V,He)|0)|0)+((8191&(n=(n=n+Math.imul(V,at)|0)+Math.imul(X,He)|0))<<13)|0;L=((_=_+Math.imul(X,at)|0)+(n>>>13)|0)+(qe>>>26)|0,qe&=67108863,m=Math.imul(te,Y),n=(n=Math.imul(te,Re))+Math.imul(Ue,Y)|0,_=Math.imul(Ue,Re),m=m+Math.imul(Ae,Qe)|0,n=(n=n+Math.imul(Ae,Ye)|0)+Math.imul(he,Qe)|0,_=_+Math.imul(he,Ye)|0,m=m+Math.imul(ve,Mt)|0,n=(n=n+Math.imul(ve,kt)|0)+Math.imul(oe,Mt)|0,_=_+Math.imul(oe,kt)|0,m=m+Math.imul(De,we)|0,n=(n=n+Math.imul(De,J)|0)+Math.imul(ye,we)|0,_=_+Math.imul(ye,J)|0,m=m+Math.imul($e,He)|0,n=(n=n+Math.imul($e,at)|0)+Math.imul(We,He)|0,_=_+Math.imul(We,at)|0;var St=(L+(m=m+Math.imul(V,Gt)|0)|0)+((8191&(n=(n=n+Math.imul(V,ni)|0)+Math.imul(X,Gt)|0))<<13)|0;L=((_=_+Math.imul(X,ni)|0)+(n>>>13)|0)+(St>>>26)|0,St&=67108863,m=Math.imul(ae,Y),n=(n=Math.imul(ae,Re))+Math.imul(ge,Y)|0,_=Math.imul(ge,Re),m=m+Math.imul(te,Qe)|0,n=(n=n+Math.imul(te,Ye)|0)+Math.imul(Ue,Qe)|0,_=_+Math.imul(Ue,Ye)|0,m=m+Math.imul(Ae,Mt)|0,n=(n=n+Math.imul(Ae,kt)|0)+Math.imul(he,Mt)|0,_=_+Math.imul(he,kt)|0,m=m+Math.imul(ve,we)|0,n=(n=n+Math.imul(ve,J)|0)+Math.imul(oe,we)|0,_=_+Math.imul(oe,J)|0,m=m+Math.imul(De,He)|0,n=(n=n+Math.imul(De,at)|0)+Math.imul(ye,He)|0,_=_+Math.imul(ye,at)|0,m=m+Math.imul($e,Gt)|0,n=(n=n+Math.imul($e,ni)|0)+Math.imul(We,Gt)|0,_=_+Math.imul(We,ni)|0;var xe=(L+(m=m+Math.imul(V,tt)|0)|0)+((8191&(n=(n=n+Math.imul(V,vt)|0)+Math.imul(X,tt)|0))<<13)|0;L=((_=_+Math.imul(X,vt)|0)+(n>>>13)|0)+(xe>>>26)|0,xe&=67108863,m=Math.imul(Je,Y),n=(n=Math.imul(Je,Re))+Math.imul(dt,Y)|0,_=Math.imul(dt,Re),m=m+Math.imul(ae,Qe)|0,n=(n=n+Math.imul(ae,Ye)|0)+Math.imul(ge,Qe)|0,_=_+Math.imul(ge,Ye)|0,m=m+Math.imul(te,Mt)|0,n=(n=n+Math.imul(te,kt)|0)+Math.imul(Ue,Mt)|0,_=_+Math.imul(Ue,kt)|0,m=m+Math.imul(Ae,we)|0,n=(n=n+Math.imul(Ae,J)|0)+Math.imul(he,we)|0,_=_+Math.imul(he,J)|0,m=m+Math.imul(ve,He)|0,n=(n=n+Math.imul(ve,at)|0)+Math.imul(oe,He)|0,_=_+Math.imul(oe,at)|0,m=m+Math.imul(De,Gt)|0,n=(n=n+Math.imul(De,ni)|0)+Math.imul(ye,Gt)|0,_=_+Math.imul(ye,ni)|0,m=m+Math.imul($e,tt)|0,n=(n=n+Math.imul($e,vt)|0)+Math.imul(We,tt)|0,_=_+Math.imul(We,vt)|0;var Nt=(L+(m=m+Math.imul(V,Ut)|0)|0)+((8191&(n=(n=n+Math.imul(V,ht)|0)+Math.imul(X,Ut)|0))<<13)|0;L=((_=_+Math.imul(X,ht)|0)+(n>>>13)|0)+(Nt>>>26)|0,Nt&=67108863,m=Math.imul(pt,Y),n=(n=Math.imul(pt,Re))+Math.imul(ot,Y)|0,_=Math.imul(ot,Re),m=m+Math.imul(Je,Qe)|0,n=(n=n+Math.imul(Je,Ye)|0)+Math.imul(dt,Qe)|0,_=_+Math.imul(dt,Ye)|0,m=m+Math.imul(ae,Mt)|0,n=(n=n+Math.imul(ae,kt)|0)+Math.imul(ge,Mt)|0,_=_+Math.imul(ge,kt)|0,m=m+Math.imul(te,we)|0,n=(n=n+Math.imul(te,J)|0)+Math.imul(Ue,we)|0,_=_+Math.imul(Ue,J)|0,m=m+Math.imul(Ae,He)|0,n=(n=n+Math.imul(Ae,at)|0)+Math.imul(he,He)|0,_=_+Math.imul(he,at)|0,m=m+Math.imul(ve,Gt)|0,n=(n=n+Math.imul(ve,ni)|0)+Math.imul(oe,Gt)|0,_=_+Math.imul(oe,ni)|0,m=m+Math.imul(De,tt)|0,n=(n=n+Math.imul(De,vt)|0)+Math.imul(ye,tt)|0,_=_+Math.imul(ye,vt)|0,m=m+Math.imul($e,Ut)|0,n=(n=n+Math.imul($e,ht)|0)+Math.imul(We,Ut)|0,_=_+Math.imul(We,ht)|0;var qt=(L+(m=m+Math.imul(V,Oe)|0)|0)+((8191&(n=(n=n+Math.imul(V,et)|0)+Math.imul(X,Oe)|0))<<13)|0;L=((_=_+Math.imul(X,et)|0)+(n>>>13)|0)+(qt>>>26)|0,qt&=67108863,m=Math.imul(ke,Y),n=(n=Math.imul(ke,Re))+Math.imul(Ke,Y)|0,_=Math.imul(Ke,Re),m=m+Math.imul(pt,Qe)|0,n=(n=n+Math.imul(pt,Ye)|0)+Math.imul(ot,Qe)|0,_=_+Math.imul(ot,Ye)|0,m=m+Math.imul(Je,Mt)|0,n=(n=n+Math.imul(Je,kt)|0)+Math.imul(dt,Mt)|0,_=_+Math.imul(dt,kt)|0,m=m+Math.imul(ae,we)|0,n=(n=n+Math.imul(ae,J)|0)+Math.imul(ge,we)|0,_=_+Math.imul(ge,J)|0,m=m+Math.imul(te,He)|0,n=(n=n+Math.imul(te,at)|0)+Math.imul(Ue,He)|0,_=_+Math.imul(Ue,at)|0,m=m+Math.imul(Ae,Gt)|0,n=(n=n+Math.imul(Ae,ni)|0)+Math.imul(he,Gt)|0,_=_+Math.imul(he,ni)|0,m=m+Math.imul(ve,tt)|0,n=(n=n+Math.imul(ve,vt)|0)+Math.imul(oe,tt)|0,_=_+Math.imul(oe,vt)|0,m=m+Math.imul(De,Ut)|0,n=(n=n+Math.imul(De,ht)|0)+Math.imul(ye,Ut)|0,_=_+Math.imul(ye,ht)|0,m=m+Math.imul($e,Oe)|0,n=(n=n+Math.imul($e,et)|0)+Math.imul(We,Oe)|0,_=_+Math.imul(We,et)|0;var mi=(L+(m=m+Math.imul(V,ct)|0)|0)+((8191&(n=(n=n+Math.imul(V,Dt)|0)+Math.imul(X,ct)|0))<<13)|0;L=((_=_+Math.imul(X,Dt)|0)+(n>>>13)|0)+(mi>>>26)|0,mi&=67108863,m=Math.imul(ke,Qe),n=(n=Math.imul(ke,Ye))+Math.imul(Ke,Qe)|0,_=Math.imul(Ke,Ye),m=m+Math.imul(pt,Mt)|0,n=(n=n+Math.imul(pt,kt)|0)+Math.imul(ot,Mt)|0,_=_+Math.imul(ot,kt)|0,m=m+Math.imul(Je,we)|0,n=(n=n+Math.imul(Je,J)|0)+Math.imul(dt,we)|0,_=_+Math.imul(dt,J)|0,m=m+Math.imul(ae,He)|0,n=(n=n+Math.imul(ae,at)|0)+Math.imul(ge,He)|0,_=_+Math.imul(ge,at)|0,m=m+Math.imul(te,Gt)|0,n=(n=n+Math.imul(te,ni)|0)+Math.imul(Ue,Gt)|0,_=_+Math.imul(Ue,ni)|0,m=m+Math.imul(Ae,tt)|0,n=(n=n+Math.imul(Ae,vt)|0)+Math.imul(he,tt)|0,_=_+Math.imul(he,vt)|0,m=m+Math.imul(ve,Ut)|0,n=(n=n+Math.imul(ve,ht)|0)+Math.imul(oe,Ut)|0,_=_+Math.imul(oe,ht)|0,m=m+Math.imul(De,Oe)|0,n=(n=n+Math.imul(De,et)|0)+Math.imul(ye,Oe)|0,_=_+Math.imul(ye,et)|0;var Ci=(L+(m=m+Math.imul($e,ct)|0)|0)+((8191&(n=(n=n+Math.imul($e,Dt)|0)+Math.imul(We,ct)|0))<<13)|0;L=((_=_+Math.imul(We,Dt)|0)+(n>>>13)|0)+(Ci>>>26)|0,Ci&=67108863,m=Math.imul(ke,Mt),n=(n=Math.imul(ke,kt))+Math.imul(Ke,Mt)|0,_=Math.imul(Ke,kt),m=m+Math.imul(pt,we)|0,n=(n=n+Math.imul(pt,J)|0)+Math.imul(ot,we)|0,_=_+Math.imul(ot,J)|0,m=m+Math.imul(Je,He)|0,n=(n=n+Math.imul(Je,at)|0)+Math.imul(dt,He)|0,_=_+Math.imul(dt,at)|0,m=m+Math.imul(ae,Gt)|0,n=(n=n+Math.imul(ae,ni)|0)+Math.imul(ge,Gt)|0,_=_+Math.imul(ge,ni)|0,m=m+Math.imul(te,tt)|0,n=(n=n+Math.imul(te,vt)|0)+Math.imul(Ue,tt)|0,_=_+Math.imul(Ue,vt)|0,m=m+Math.imul(Ae,Ut)|0,n=(n=n+Math.imul(Ae,ht)|0)+Math.imul(he,Ut)|0,_=_+Math.imul(he,ht)|0,m=m+Math.imul(ve,Oe)|0,n=(n=n+Math.imul(ve,et)|0)+Math.imul(oe,Oe)|0,_=_+Math.imul(oe,et)|0;var Ii=(L+(m=m+Math.imul(De,ct)|0)|0)+((8191&(n=(n=n+Math.imul(De,Dt)|0)+Math.imul(ye,ct)|0))<<13)|0;L=((_=_+Math.imul(ye,Dt)|0)+(n>>>13)|0)+(Ii>>>26)|0,Ii&=67108863,m=Math.imul(ke,we),n=(n=Math.imul(ke,J))+Math.imul(Ke,we)|0,_=Math.imul(Ke,J),m=m+Math.imul(pt,He)|0,n=(n=n+Math.imul(pt,at)|0)+Math.imul(ot,He)|0,_=_+Math.imul(ot,at)|0,m=m+Math.imul(Je,Gt)|0,n=(n=n+Math.imul(Je,ni)|0)+Math.imul(dt,Gt)|0,_=_+Math.imul(dt,ni)|0,m=m+Math.imul(ae,tt)|0,n=(n=n+Math.imul(ae,vt)|0)+Math.imul(ge,tt)|0,_=_+Math.imul(ge,vt)|0,m=m+Math.imul(te,Ut)|0,n=(n=n+Math.imul(te,ht)|0)+Math.imul(Ue,Ut)|0,_=_+Math.imul(Ue,ht)|0,m=m+Math.imul(Ae,Oe)|0,n=(n=n+Math.imul(Ae,et)|0)+Math.imul(he,Oe)|0,_=_+Math.imul(he,et)|0;var Gi=(L+(m=m+Math.imul(ve,ct)|0)|0)+((8191&(n=(n=n+Math.imul(ve,Dt)|0)+Math.imul(oe,ct)|0))<<13)|0;L=((_=_+Math.imul(oe,Dt)|0)+(n>>>13)|0)+(Gi>>>26)|0,Gi&=67108863,m=Math.imul(ke,He),n=(n=Math.imul(ke,at))+Math.imul(Ke,He)|0,_=Math.imul(Ke,at),m=m+Math.imul(pt,Gt)|0,n=(n=n+Math.imul(pt,ni)|0)+Math.imul(ot,Gt)|0,_=_+Math.imul(ot,ni)|0,m=m+Math.imul(Je,tt)|0,n=(n=n+Math.imul(Je,vt)|0)+Math.imul(dt,tt)|0,_=_+Math.imul(dt,vt)|0,m=m+Math.imul(ae,Ut)|0,n=(n=n+Math.imul(ae,ht)|0)+Math.imul(ge,Ut)|0,_=_+Math.imul(ge,ht)|0,m=m+Math.imul(te,Oe)|0,n=(n=n+Math.imul(te,et)|0)+Math.imul(Ue,Oe)|0,_=_+Math.imul(Ue,et)|0;var Yi=(L+(m=m+Math.imul(Ae,ct)|0)|0)+((8191&(n=(n=n+Math.imul(Ae,Dt)|0)+Math.imul(he,ct)|0))<<13)|0;L=((_=_+Math.imul(he,Dt)|0)+(n>>>13)|0)+(Yi>>>26)|0,Yi&=67108863,m=Math.imul(ke,Gt),n=(n=Math.imul(ke,ni))+Math.imul(Ke,Gt)|0,_=Math.imul(Ke,ni),m=m+Math.imul(pt,tt)|0,n=(n=n+Math.imul(pt,vt)|0)+Math.imul(ot,tt)|0,_=_+Math.imul(ot,vt)|0,m=m+Math.imul(Je,Ut)|0,n=(n=n+Math.imul(Je,ht)|0)+Math.imul(dt,Ut)|0,_=_+Math.imul(dt,ht)|0,m=m+Math.imul(ae,Oe)|0,n=(n=n+Math.imul(ae,et)|0)+Math.imul(ge,Oe)|0,_=_+Math.imul(ge,et)|0;var Ji=(L+(m=m+Math.imul(te,ct)|0)|0)+((8191&(n=(n=n+Math.imul(te,Dt)|0)+Math.imul(Ue,ct)|0))<<13)|0;L=((_=_+Math.imul(Ue,Dt)|0)+(n>>>13)|0)+(Ji>>>26)|0,Ji&=67108863,m=Math.imul(ke,tt),n=(n=Math.imul(ke,vt))+Math.imul(Ke,tt)|0,_=Math.imul(Ke,vt),m=m+Math.imul(pt,Ut)|0,n=(n=n+Math.imul(pt,ht)|0)+Math.imul(ot,Ut)|0,_=_+Math.imul(ot,ht)|0,m=m+Math.imul(Je,Oe)|0,n=(n=n+Math.imul(Je,et)|0)+Math.imul(dt,Oe)|0,_=_+Math.imul(dt,et)|0;var Wt=(L+(m=m+Math.imul(ae,ct)|0)|0)+((8191&(n=(n=n+Math.imul(ae,Dt)|0)+Math.imul(ge,ct)|0))<<13)|0;L=((_=_+Math.imul(ge,Dt)|0)+(n>>>13)|0)+(Wt>>>26)|0,Wt&=67108863,m=Math.imul(ke,Ut),n=(n=Math.imul(ke,ht))+Math.imul(Ke,Ut)|0,_=Math.imul(Ke,ht),m=m+Math.imul(pt,Oe)|0,n=(n=n+Math.imul(pt,et)|0)+Math.imul(ot,Oe)|0,_=_+Math.imul(ot,et)|0;var Jt=(L+(m=m+Math.imul(Je,ct)|0)|0)+((8191&(n=(n=n+Math.imul(Je,Dt)|0)+Math.imul(dt,ct)|0))<<13)|0;L=((_=_+Math.imul(dt,Dt)|0)+(n>>>13)|0)+(Jt>>>26)|0,Jt&=67108863,m=Math.imul(ke,Oe),n=(n=Math.imul(ke,et))+Math.imul(Ke,Oe)|0,_=Math.imul(Ke,et);var fe=(L+(m=m+Math.imul(pt,ct)|0)|0)+((8191&(n=(n=n+Math.imul(pt,Dt)|0)+Math.imul(ot,ct)|0))<<13)|0;L=((_=_+Math.imul(ot,Dt)|0)+(n>>>13)|0)+(fe>>>26)|0,fe&=67108863;var lt=(L+(m=Math.imul(ke,ct))|0)+((8191&(n=(n=Math.imul(ke,Dt))+Math.imul(Ke,ct)|0))<<13)|0;return L=((_=Math.imul(Ke,Dt))+(n>>>13)|0)+(lt>>>26)|0,lt&=67108863,T[0]=pi,T[1]=Li,T[2]=xi,T[3]=Fi,T[4]=qe,T[5]=St,T[6]=xe,T[7]=Nt,T[8]=qt,T[9]=mi,T[10]=Ci,T[11]=Ii,T[12]=Gi,T[13]=Yi,T[14]=Ji,T[15]=Wt,T[16]=Jt,T[17]=fe,T[18]=lt,0!==L&&(T[19]=L,u.length++),u};function W(A,i,a){return(new K).mulp(A,i,a)}function K(A,i){this.x=A,this.y=i}Math.imul||(z=R),s.prototype.mulTo=function(i,a){var u,l=this.length+i.length;return u=10===this.length&&10===i.length?z(this,i,a):l<63?R(this,i,a):l<1024?function U(A,i,a){a.negative=i.negative^A.negative,a.length=A.length+i.length;for(var u=0,l=0,y=0;y<a.length-1;y++){var T=l;l=0;for(var L=67108863&u,m=Math.min(y,i.length-1),n=Math.max(0,y-A.length+1);n<=m;n++){var X=(0|A.words[y-n])*(0|i.words[n]),Le=67108863&X;L=67108863&(Le=Le+L|0),l+=(T=(T=T+(X/67108864|0)|0)+(Le>>>26)|0)>>>26,T&=67108863}a.words[y]=L,u=T,T=l}return 0!==u?a.words[y]=u:a.length--,a.strip()}(this,i,a):W(this,i,a),u},K.prototype.makeRBT=function(i){for(var a=new Array(i),u=s.prototype._countBits(i)-1,l=0;l<i;l++)a[l]=this.revBin(l,u,i);return a},K.prototype.revBin=function(i,a,u){if(0===i||i===u-1)return i;for(var l=0,y=0;y<a;y++)l|=(1&i)<<a-y-1,i>>=1;return l},K.prototype.permute=function(i,a,u,l,y,T){for(var L=0;L<T;L++)l[L]=a[i[L]],y[L]=u[i[L]]},K.prototype.transform=function(i,a,u,l,y,T){this.permute(T,i,a,u,l,y);for(var L=1;L<y;L<<=1)for(var m=L<<1,n=Math.cos(2*Math.PI/m),_=Math.sin(2*Math.PI/m),B=0;B<y;B+=m)for(var V=n,X=_,Le=0;Le<L;Le++){var $e=u[B+Le],We=l[B+Le],Fe=u[B+Le+L],De=l[B+Le+L],ye=V*Fe-X*De;De=V*De+X*Fe,u[B+Le]=$e+(Fe=ye),l[B+Le]=We+De,u[B+Le+L]=$e-Fe,l[B+Le+L]=We-De,Le!==m&&(ye=n*V-_*X,X=n*X+_*V,V=ye)}},K.prototype.guessLen13b=function(i,a){var u=1|Math.max(a,i),l=1&u,y=0;for(u=u/2|0;u;u>>>=1)y++;return 1<<y+1+l},K.prototype.conjugate=function(i,a,u){if(!(u<=1))for(var l=0;l<u/2;l++){var y=i[l];i[l]=i[u-l-1],i[u-l-1]=y,y=a[l],a[l]=-a[u-l-1],a[u-l-1]=-y}},K.prototype.normalize13b=function(i,a){for(var u=0,l=0;l<a/2;l++){var y=8192*Math.round(i[2*l+1]/a)+Math.round(i[2*l]/a)+u;i[l]=67108863&y,u=y<67108864?0:y/67108864|0}return i},K.prototype.convert13b=function(i,a,u,l){for(var y=0,T=0;T<a;T++)u[2*T]=8191&(y+=0|i[T]),u[2*T+1]=8191&(y>>>=13),y>>>=13;for(T=2*a;T<l;++T)u[T]=0;b(0===y),b(0==(-8192&y))},K.prototype.stub=function(i){for(var a=new Array(i),u=0;u<i;u++)a[u]=0;return a},K.prototype.mulp=function(i,a,u){var l=2*this.guessLen13b(i.length,a.length),y=this.makeRBT(l),T=this.stub(l),L=new Array(l),m=new Array(l),n=new Array(l),_=new Array(l),B=new Array(l),V=new Array(l),X=u.words;X.length=l,this.convert13b(i.words,i.length,L,l),this.convert13b(a.words,a.length,_,l),this.transform(L,T,m,n,l,y),this.transform(_,T,B,V,l,y);for(var Le=0;Le<l;Le++){var $e=m[Le]*B[Le]-n[Le]*V[Le];n[Le]=m[Le]*V[Le]+n[Le]*B[Le],m[Le]=$e}return this.conjugate(m,n,l),this.transform(m,n,X,T,l,y),this.conjugate(X,T,l),this.normalize13b(X,l),u.negative=i.negative^a.negative,u.length=i.length+a.length,u.strip()},s.prototype.mul=function(i){var a=new s(null);return a.words=new Array(this.length+i.length),this.mulTo(i,a)},s.prototype.mulf=function(i){var a=new s(null);return a.words=new Array(this.length+i.length),W(this,i,a)},s.prototype.imul=function(i){return this.clone().mulTo(i,this)},s.prototype.imuln=function(i){b("number"==typeof i),b(i<67108864);for(var a=0,u=0;u<this.length;u++){var l=(0|this.words[u])*i,y=(67108863&l)+(67108863&a);a>>=26,a+=l/67108864|0,a+=y>>>26,this.words[u]=67108863&y}return 0!==a&&(this.words[u]=a,this.length++),this},s.prototype.muln=function(i){return this.clone().imuln(i)},s.prototype.sqr=function(){return this.mul(this)},s.prototype.isqr=function(){return this.imul(this.clone())},s.prototype.pow=function(i){var a=function E(A){for(var i=new Array(A.bitLength()),a=0;a<i.length;a++){var l=a%26;i[a]=(A.words[a/26|0]&1<<l)>>>l}return i}(i);if(0===a.length)return new s(1);for(var u=this,l=0;l<a.length&&0===a[l];l++,u=u.sqr());if(++l<a.length)for(var y=u.sqr();l<a.length;l++,y=y.sqr())0!==a[l]&&(u=u.mul(y));return u},s.prototype.iushln=function(i){b("number"==typeof i&&i>=0);var y,a=i%26,u=(i-a)/26,l=67108863>>>26-a<<26-a;if(0!==a){var T=0;for(y=0;y<this.length;y++){var L=this.words[y]&l;this.words[y]=(0|this.words[y])-L<<a|T,T=L>>>26-a}T&&(this.words[y]=T,this.length++)}if(0!==u){for(y=this.length-1;y>=0;y--)this.words[y+u]=this.words[y];for(y=0;y<u;y++)this.words[y]=0;this.length+=u}return this.strip()},s.prototype.ishln=function(i){return b(0===this.negative),this.iushln(i)},s.prototype.iushrn=function(i,a,u){var l;b("number"==typeof i&&i>=0),l=a?(a-a%26)/26:0;var y=i%26,T=Math.min((i-y)/26,this.length),L=67108863^67108863>>>y<<y,m=u;if(l-=T,l=Math.max(0,l),m){for(var n=0;n<T;n++)m.words[n]=this.words[n];m.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>=l);n--){var B=0|this.words[n];this.words[n]=_<<26-y|B>>>y,_=B&L}return m&&0!==_&&(m.words[m.length++]=_),0===this.length&&(this.words[0]=0,this.length=1),this.strip()},s.prototype.ishrn=function(i,a,u){return b(0===this.negative),this.iushrn(i,a,u)},s.prototype.shln=function(i){return this.clone().ishln(i)},s.prototype.ushln=function(i){return this.clone().iushln(i)},s.prototype.shrn=function(i){return this.clone().ishrn(i)},s.prototype.ushrn=function(i){return this.clone().iushrn(i)},s.prototype.testn=function(i){b("number"==typeof i&&i>=0);var a=i%26,u=(i-a)/26;return!(this.length<=u||!(this.words[u]&1<<a))},s.prototype.imaskn=function(i){b("number"==typeof i&&i>=0);var a=i%26,u=(i-a)/26;return b(0===this.negative,"imaskn works only with positive numbers"),this.length<=u?this:(0!==a&&u++,this.length=Math.min(u,this.length),0!==a&&(this.words[this.length-1]&=67108863^67108863>>>a<<a),this.strip())},s.prototype.maskn=function(i){return this.clone().imaskn(i)},s.prototype.iaddn=function(i){return b("number"==typeof i),b(i<67108864),i<0?this.isubn(-i):0!==this.negative?1===this.length&&(0|this.words[0])<i?(this.words[0]=i-(0|this.words[0]),this.negative=0,this):(this.negative=0,this.isubn(i),this.negative=1,this):this._iaddn(i)},s.prototype._iaddn=function(i){this.words[0]+=i;for(var a=0;a<this.length&&this.words[a]>=67108864;a++)this.words[a]-=67108864,a===this.length-1?this.words[a+1]=1:this.words[a+1]++;return this.length=Math.max(this.length,a+1),this},s.prototype.isubn=function(i){if(b("number"==typeof i),b(i<67108864),i<0)return this.iaddn(-i);if(0!==this.negative)return this.negative=0,this.iaddn(i),this.negative=1,this;if(this.words[0]-=i,1===this.length&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var a=0;a<this.length&&this.words[a]<0;a++)this.words[a]+=67108864,this.words[a+1]-=1;return this.strip()},s.prototype.addn=function(i){return this.clone().iaddn(i)},s.prototype.subn=function(i){return this.clone().isubn(i)},s.prototype.iabs=function(){return this.negative=0,this},s.prototype.abs=function(){return this.clone().iabs()},s.prototype._ishlnsubmul=function(i,a,u){var y;this._expand(i.length+u);var T,L=0;for(y=0;y<i.length;y++){T=(0|this.words[y+u])+L;var m=(0|i.words[y])*a;L=((T-=67108863&m)>>26)-(m/67108864|0),this.words[y+u]=67108863&T}for(;y<this.length-u;y++)L=(T=(0|this.words[y+u])+L)>>26,this.words[y+u]=67108863&T;if(0===L)return this.strip();for(b(-1===L),L=0,y=0;y<this.length;y++)L=(T=-(0|this.words[y])+L)>>26,this.words[y]=67108863&T;return this.negative=1,this.strip()},s.prototype._wordDiv=function(i,a){var u,l=this.clone(),y=i,T=0|y.words[y.length-1];0!=(u=26-this._countBits(T))&&(y=y.ushln(u),l.iushln(u),T=0|y.words[y.length-1]);var n,m=l.length-y.length;if("mod"!==a){(n=new s(null)).length=m+1,n.words=new Array(n.length);for(var _=0;_<n.length;_++)n.words[_]=0}var B=l.clone()._ishlnsubmul(y,1,m);0===B.negative&&(l=B,n&&(n.words[m]=1));for(var V=m-1;V>=0;V--){var X=67108864*(0|l.words[y.length+V])+(0|l.words[y.length+V-1]);for(X=Math.min(X/T|0,67108863),l._ishlnsubmul(y,X,V);0!==l.negative;)X--,l.negative=0,l._ishlnsubmul(y,1,V),l.isZero()||(l.negative^=1);n&&(n.words[V]=X)}return n&&n.strip(),l.strip(),"div"!==a&&0!==u&&l.iushrn(u),{div:n||null,mod:l}},s.prototype.divmod=function(i,a,u){return b(!i.isZero()),this.isZero()?{div:new s(0),mod:new s(0)}:0!==this.negative&&0===i.negative?(T=this.neg().divmod(i,a),"mod"!==a&&(l=T.div.neg()),"div"!==a&&(y=T.mod.neg(),u&&0!==y.negative&&y.iadd(i)),{div:l,mod:y}):0===this.negative&&0!==i.negative?(T=this.divmod(i.neg(),a),"mod"!==a&&(l=T.div.neg()),{div:l,mod:T.mod}):this.negative&i.negative?(T=this.neg().divmod(i.neg(),a),"div"!==a&&(y=T.mod.neg(),u&&0!==y.negative&&y.isub(i)),{div:T.div,mod:y}):i.length>this.length||this.cmp(i)<0?{div:new s(0),mod:this}:1===i.length?"div"===a?{div:this.divn(i.words[0]),mod:null}:"mod"===a?{div:null,mod:new s(this.modn(i.words[0]))}:{div:this.divn(i.words[0]),mod:new s(this.modn(i.words[0]))}:this._wordDiv(i,a);var l,y,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 a=this.divmod(i);if(a.mod.isZero())return a.div;var u=0!==a.div.negative?a.mod.isub(i):a.mod,l=i.ushrn(1),y=i.andln(1),T=u.cmp(l);return T<0||1===y&&0===T?a.div:0!==a.div.negative?a.div.isubn(1):a.div.iaddn(1)},s.prototype.modn=function(i){b(i<=67108863);for(var a=(1<<26)%i,u=0,l=this.length-1;l>=0;l--)u=(a*u+(0|this.words[l]))%i;return u},s.prototype.idivn=function(i){b(i<=67108863);for(var a=0,u=this.length-1;u>=0;u--){var l=(0|this.words[u])+67108864*a;this.words[u]=l/i|0,a=l%i}return this.strip()},s.prototype.divn=function(i){return this.clone().idivn(i)},s.prototype.egcd=function(i){b(0===i.negative),b(!i.isZero());var a=this,u=i.clone();a=0!==a.negative?a.umod(i):a.clone();for(var l=new s(1),y=new s(0),T=new s(0),L=new s(1),m=0;a.isEven()&&u.isEven();)a.iushrn(1),u.iushrn(1),++m;for(var n=u.clone(),_=a.clone();!a.isZero();){for(var B=0,V=1;!(a.words[0]&V)&&B<26;++B,V<<=1);if(B>0)for(a.iushrn(B);B-- >0;)(l.isOdd()||y.isOdd())&&(l.iadd(n),y.isub(_)),l.iushrn(1),y.iushrn(1);for(var X=0,Le=1;!(u.words[0]&Le)&&X<26;++X,Le<<=1);if(X>0)for(u.iushrn(X);X-- >0;)(T.isOdd()||L.isOdd())&&(T.iadd(n),L.isub(_)),T.iushrn(1),L.iushrn(1);a.cmp(u)>=0?(a.isub(u),l.isub(T),y.isub(L)):(u.isub(a),T.isub(l),L.isub(y))}return{a:T,b:L,gcd:u.iushln(m)}},s.prototype._invmp=function(i){b(0===i.negative),b(!i.isZero());var B,a=this,u=i.clone();a=0!==a.negative?a.umod(i):a.clone();for(var l=new s(1),y=new s(0),T=u.clone();a.cmpn(1)>0&&u.cmpn(1)>0;){for(var L=0,m=1;!(a.words[0]&m)&&L<26;++L,m<<=1);if(L>0)for(a.iushrn(L);L-- >0;)l.isOdd()&&l.iadd(T),l.iushrn(1);for(var n=0,_=1;!(u.words[0]&_)&&n<26;++n,_<<=1);if(n>0)for(u.iushrn(n);n-- >0;)y.isOdd()&&y.iadd(T),y.iushrn(1);a.cmp(u)>=0?(a.isub(u),l.isub(y)):(u.isub(a),y.isub(l))}return(B=0===a.cmpn(1)?l:y).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 a=this.clone(),u=i.clone();a.negative=0,u.negative=0;for(var l=0;a.isEven()&&u.isEven();l++)a.iushrn(1),u.iushrn(1);for(;;){for(;a.isEven();)a.iushrn(1);for(;u.isEven();)u.iushrn(1);var y=a.cmp(u);if(y<0){var T=a;a=u,u=T}else if(0===y||0===u.cmpn(1))break;a.isub(u)}return u.iushln(l)},s.prototype.invm=function(i){return this.egcd(i).a.umod(i)},s.prototype.isEven=function(){return 0==(1&this.words[0])},s.prototype.isOdd=function(){return 1==(1&this.words[0])},s.prototype.andln=function(i){return this.words[0]&i},s.prototype.bincn=function(i){b("number"==typeof i);var a=i%26,u=(i-a)/26,l=1<<a;if(this.length<=u)return this._expand(u+1),this.words[u]|=l,this;for(var y=l,T=u;0!==y&&T<this.length;T++){var L=0|this.words[T];y=(L+=y)>>>26,this.words[T]=L&=67108863}return 0!==y&&(this.words[T]=y,this.length++),this},s.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},s.prototype.cmpn=function(i){var u,a=i<0;if(0!==this.negative&&!a)return-1;if(0===this.negative&&a)return 1;if(this.strip(),this.length>1)u=1;else{a&&(i=-i),b(i<=67108863,"Number is too big");var l=0|this.words[0];u=l===i?0:l<i?-1:1}return 0!==this.negative?0|-u:u},s.prototype.cmp=function(i){if(0!==this.negative&&0===i.negative)return-1;if(0===this.negative&&0!==i.negative)return 1;var a=this.ucmp(i);return 0!==this.negative?0|-a:a},s.prototype.ucmp=function(i){if(this.length>i.length)return 1;if(this.length<i.length)return-1;for(var a=0,u=this.length-1;u>=0;u--){var l=0|this.words[u],y=0|i.words[u];if(l!==y){l<y?a=-1:l>y&&(a=1);break}}return a},s.prototype.gtn=function(i){return 1===this.cmpn(i)},s.prototype.gt=function(i){return 1===this.cmp(i)},s.prototype.gten=function(i){return this.cmpn(i)>=0},s.prototype.gte=function(i){return this.cmp(i)>=0},s.prototype.ltn=function(i){return-1===this.cmpn(i)},s.prototype.lt=function(i){return-1===this.cmp(i)},s.prototype.lten=function(i){return this.cmpn(i)<=0},s.prototype.lte=function(i){return this.cmp(i)<=0},s.prototype.eqn=function(i){return 0===this.cmpn(i)},s.prototype.eq=function(i){return 0===this.cmp(i)},s.red=function(i){return new $(i)},s.prototype.toRed=function(i){return b(!this.red,"Already a number in reduction context"),b(0===this.negative,"red works only with positives"),i.convertTo(this)._forceRed(i)},s.prototype.fromRed=function(){return b(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 b(!this.red,"Already a number in reduction context"),this._forceRed(i)},s.prototype.redAdd=function(i){return b(this.red,"redAdd works only with red numbers"),this.red.add(this,i)},s.prototype.redIAdd=function(i){return b(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,i)},s.prototype.redSub=function(i){return b(this.red,"redSub works only with red numbers"),this.red.sub(this,i)},s.prototype.redISub=function(i){return b(this.red,"redISub works only with red numbers"),this.red.isub(this,i)},s.prototype.redShl=function(i){return b(this.red,"redShl works only with red numbers"),this.red.shl(this,i)},s.prototype.redMul=function(i){return b(this.red,"redMul works only with red numbers"),this.red._verify2(this,i),this.red.mul(this,i)},s.prototype.redIMul=function(i){return b(this.red,"redMul works only with red numbers"),this.red._verify2(this,i),this.red.imul(this,i)},s.prototype.redSqr=function(){return b(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},s.prototype.redISqr=function(){return b(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},s.prototype.redSqrt=function(){return b(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},s.prototype.redInvm=function(){return b(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},s.prototype.redNeg=function(){return b(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},s.prototype.redPow=function(i){return b(this.red&&!i.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,i)};var ee={k256:null,p224:null,p192:null,p25519:null};function ie(A,i){this.name=A,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 ue(){ie.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function le(){ie.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function ne(){ie.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function de(){ie.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function $(A){if("string"==typeof A){var i=s._prime(A);this.m=i.p,this.prime=i}else b(A.gtn(1),"modulus must be greater than 1"),this.m=A,this.prime=null}function me(A){$.call(this,A),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 i=new s(null);return i.words=new Array(Math.ceil(this.n/13)),i},ie.prototype.ireduce=function(i){var u,a=i;do{this.split(a,this.tmp),u=(a=(a=this.imulK(a)).iadd(this.tmp)).bitLength()}while(u>this.n);var l=u<this.n?-1:a.ucmp(this.p);return 0===l?(a.words[0]=0,a.length=1):l>0?a.isub(this.p):void 0!==a.strip?a.strip():a._strip(),a},ie.prototype.split=function(i,a){i.iushrn(this.n,0,a)},ie.prototype.imulK=function(i){return i.imul(this.k)},I(ue,ie),ue.prototype.split=function(i,a){for(var u=4194303,l=Math.min(i.length,9),y=0;y<l;y++)a.words[y]=i.words[y];if(a.length=l,i.length<=9)return i.words[0]=0,void(i.length=1);var T=i.words[9];for(a.words[a.length++]=T&u,y=10;y<i.length;y++){var L=0|i.words[y];i.words[y-10]=(L&u)<<4|T>>>22,T=L}i.words[y-10]=T>>>=22,i.length-=0===T&&i.length>10?10:9},ue.prototype.imulK=function(i){i.words[i.length]=0,i.words[i.length+1]=0,i.length+=2;for(var a=0,u=0;u<i.length;u++){var l=0|i.words[u];i.words[u]=67108863&(a+=977*l),a=64*l+(a/67108864|0)}return 0===i.words[i.length-1]&&(i.length--,0===i.words[i.length-1]&&i.length--),i},I(le,ie),I(ne,ie),I(de,ie),de.prototype.imulK=function(i){for(var a=0,u=0;u<i.length;u++){var l=19*(0|i.words[u])+a,y=67108863&l;l>>>=26,i.words[u]=y,a=l}return 0!==a&&(i.words[i.length++]=a),i},s._prime=function(i){if(ee[i])return ee[i];var a;if("k256"===i)a=new ue;else if("p224"===i)a=new le;else if("p192"===i)a=new ne;else{if("p25519"!==i)throw new Error("Unknown prime "+i);a=new de}return ee[i]=a,a},$.prototype._verify1=function(i){b(0===i.negative,"red works only with positives"),b(i.red,"red works only with red numbers")},$.prototype._verify2=function(i,a){b(0==(i.negative|a.negative),"red works only with positives"),b(i.red&&i.red===a.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,a){this._verify2(i,a);var u=i.add(a);return u.cmp(this.m)>=0&&u.isub(this.m),u._forceRed(this)},$.prototype.iadd=function(i,a){this._verify2(i,a);var u=i.iadd(a);return u.cmp(this.m)>=0&&u.isub(this.m),u},$.prototype.sub=function(i,a){this._verify2(i,a);var u=i.sub(a);return u.cmpn(0)<0&&u.iadd(this.m),u._forceRed(this)},$.prototype.isub=function(i,a){this._verify2(i,a);var u=i.isub(a);return u.cmpn(0)<0&&u.iadd(this.m),u},$.prototype.shl=function(i,a){return this._verify1(i),this.imod(i.ushln(a))},$.prototype.imul=function(i,a){return this._verify2(i,a),this.imod(i.imul(a))},$.prototype.mul=function(i,a){return this._verify2(i,a),this.imod(i.mul(a))},$.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 a=this.m.andln(3);if(b(a%2==1),3===a){var u=this.m.add(new s(1)).iushrn(2);return this.pow(i,u)}for(var l=this.m.subn(1),y=0;!l.isZero()&&0===l.andln(1);)y++,l.iushrn(1);b(!l.isZero());var T=new s(1).toRed(this),L=T.redNeg(),m=this.m.subn(1).iushrn(1),n=this.m.bitLength();for(n=new s(2*n*n).toRed(this);0!==this.pow(n,m).cmp(L);)n.redIAdd(L);for(var _=this.pow(n,l),B=this.pow(i,l.addn(1).iushrn(1)),V=this.pow(i,l),X=y;0!==V.cmp(T);){for(var Le=V,$e=0;0!==Le.cmp(T);$e++)Le=Le.redSqr();b($e<X);var We=this.pow(_,new s(1).iushln(X-$e-1));B=B.redMul(We),_=We.redSqr(),V=V.redMul(_),X=$e}return B},$.prototype.invm=function(i){var a=i._invmp(this.m);return 0!==a.negative?(a.negative=0,this.imod(a).redNeg()):this.imod(a)},$.prototype.pow=function(i,a){if(a.isZero())return new s(1).toRed(this);if(0===a.cmpn(1))return i.clone();var l=new Array(16);l[0]=new s(1).toRed(this),l[1]=i;for(var y=2;y<l.length;y++)l[y]=this.mul(l[y-1],i);var T=l[0],L=0,m=0,n=a.bitLength()%26;for(0===n&&(n=26),y=a.length-1;y>=0;y--){for(var _=a.words[y],B=n-1;B>=0;B--){var V=_>>B&1;T!==l[0]&&(T=this.sqr(T)),0!==V||0!==L?(L<<=1,L|=V,(4==++m||0===y&&0===B)&&(T=this.mul(T,l[L]),m=0,L=0)):m=0}n=26}return T},$.prototype.convertTo=function(i){var a=i.umod(this.m);return a===i?a.clone():a},$.prototype.convertFrom=function(i){var a=i.clone();return a.red=null,a},s.mont=function(i){return new me(i)},I(me,$),me.prototype.convertTo=function(i){return this.imod(i.ushln(this.shift))},me.prototype.convertFrom=function(i){var a=this.imod(i.mul(this.rinv));return a.red=null,a},me.prototype.imul=function(i,a){if(i.isZero()||a.isZero())return i.words[0]=0,i.length=1,i;var u=i.imul(a),l=u.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),y=u.isub(l).iushrn(this.shift),T=y;return y.cmp(this.m)>=0?T=y.isub(this.m):y.cmpn(0)<0&&(T=y.iadd(this.m)),T._forceRed(this)},me.prototype.mul=function(i,a){if(i.isZero()||a.isZero())return new s(0)._forceRed(this);var u=i.mul(a),l=u.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),y=u.isub(l).iushrn(this.shift),T=y;return y.cmp(this.m)>=0?T=y.isub(this.m):y.cmpn(0)<0&&(T=y.iadd(this.m)),T._forceRed(this)},me.prototype.invm=function(i){return this.imod(i._invmp(this.m).mul(this.r2))._forceRed(this)}}(Ve=p.nmd(Ve),this)},8419:Ve=>{"use strict";Ve.exports=function(p){for(var t=[],e=p.length,b=0;b<e;b++){var I=p.charCodeAt(b);if(I>=55296&&I<=56319&&e>b+1){var s=p.charCodeAt(b+1);s>=56320&&s<=57343&&(I=1024*(I-55296)+s-56320+65536,b+=1)}I<128?t.push(I):I<2048?(t.push(I>>6|192),t.push(63&I|128)):I<55296||I>=57344&&I<65536?(t.push(I>>12|224),t.push(I>>6&63|128),t.push(63&I|128)):I>=65536&&I<=1114111?(t.push(I>>18|240),t.push(I>>12&63|128),t.push(I>>6&63|128),t.push(63&I|128)):t.push(239,191,189)}return new Uint8Array(t).buffer}},9069:Ve=>{"use strict";var t,q="object"==typeof Reflect?Reflect:null,p=q&&"function"==typeof q.apply?q.apply:function(ie,ue,le){return Function.prototype.apply.call(ie,ue,le)};t=q&&"function"==typeof q.ownKeys?q.ownKeys:Object.getOwnPropertySymbols?function(ie){return Object.getOwnPropertyNames(ie).concat(Object.getOwnPropertySymbols(ie))}:function(ie){return Object.getOwnPropertyNames(ie)};var b=Number.isNaN||function(ie){return ie!=ie};function I(){I.init.call(this)}Ve.exports=I,Ve.exports.once=function U(ee,ie){return new Promise(function(ue,le){function ne($){ee.removeListener(ie,de),le($)}function de(){"function"==typeof ee.removeListener&&ee.removeListener("error",ne),ue([].slice.call(arguments))}K(ee,ie,de,{once:!0}),"error"!==ie&&function W(ee,ie,ue){"function"==typeof ee.on&&K(ee,"error",ie,ue)}(ee,ne,{once:!0})})},I.EventEmitter=I,I.prototype._events=void 0,I.prototype._eventsCount=0,I.prototype._maxListeners=void 0;var s=10;function C(ee){if("function"!=typeof ee)throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof ee)}function h(ee){return void 0===ee._maxListeners?I.defaultMaxListeners:ee._maxListeners}function P(ee,ie,ue,le){var ne,de,$;if(C(ue),void 0===(de=ee._events)?(de=ee._events=Object.create(null),ee._eventsCount=0):(void 0!==de.newListener&&(ee.emit("newListener",ie,ue.listener?ue.listener:ue),de=ee._events),$=de[ie]),void 0===$)$=de[ie]=ue,++ee._eventsCount;else if("function"==typeof $?$=de[ie]=le?[ue,$]:[$,ue]:le?$.unshift(ue):$.push(ue),(ne=h(ee))>0&&$.length>ne&&!$.warned){$.warned=!0;var me=new Error("Possible EventEmitter memory leak detected. "+$.length+" "+String(ie)+" listeners added. Use emitter.setMaxListeners() to increase limit");me.name="MaxListenersExceededWarning",me.emitter=ee,me.type=ie,me.count=$.length,function e(ee){console&&console.warn&&console.warn(ee)}(me)}return ee}function d(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,0===arguments.length?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function S(ee,ie,ue){var le={fired:!1,wrapFn:void 0,target:ee,type:ie,listener:ue},ne=d.bind(le);return ne.listener=ue,le.wrapFn=ne,ne}function w(ee,ie,ue){var le=ee._events;if(void 0===le)return[];var ne=le[ie];return void 0===ne?[]:"function"==typeof ne?ue?[ne.listener||ne]:[ne]:ue?function z(ee){for(var ie=new Array(ee.length),ue=0;ue<ie.length;++ue)ie[ue]=ee[ue].listener||ee[ue];return ie}(ne):E(ne,ne.length)}function O(ee){var ie=this._events;if(void 0!==ie){var ue=ie[ee];if("function"==typeof ue)return 1;if(void 0!==ue)return ue.length}return 0}function E(ee,ie){for(var ue=new Array(ie),le=0;le<ie;++le)ue[le]=ee[le];return ue}function K(ee,ie,ue,le){if("function"==typeof ee.on)le.once?ee.once(ie,ue):ee.on(ie,ue);else{if("function"!=typeof ee.addEventListener)throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type '+typeof ee);ee.addEventListener(ie,function ne(de){le.once&&ee.removeEventListener(ie,ne),ue(de)})}}Object.defineProperty(I,"defaultMaxListeners",{enumerable:!0,get:function(){return s},set:function(ee){if("number"!=typeof ee||ee<0||b(ee))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+ee+".");s=ee}}),I.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},I.prototype.setMaxListeners=function(ie){if("number"!=typeof ie||ie<0||b(ie))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+ie+".");return this._maxListeners=ie,this},I.prototype.getMaxListeners=function(){return h(this)},I.prototype.emit=function(ie){for(var ue=[],le=1;le<arguments.length;le++)ue.push(arguments[le]);var ne="error"===ie,de=this._events;if(void 0!==de)ne=ne&&void 0===de.error;else if(!ne)return!1;if(ne){var $;if(ue.length>0&&($=ue[0]),$ instanceof Error)throw $;var me=new Error("Unhandled error."+($?" ("+$.message+")":""));throw me.context=$,me}var A=de[ie];if(void 0===A)return!1;if("function"==typeof A)p(A,this,ue);else{var i=A.length,a=E(A,i);for(le=0;le<i;++le)p(a[le],this,ue)}return!0},I.prototype.on=I.prototype.addListener=function(ie,ue){return P(this,ie,ue,!1)},I.prototype.prependListener=function(ie,ue){return P(this,ie,ue,!0)},I.prototype.once=function(ie,ue){return C(ue),this.on(ie,S(this,ie,ue)),this},I.prototype.prependOnceListener=function(ie,ue){return C(ue),this.prependListener(ie,S(this,ie,ue)),this},I.prototype.off=I.prototype.removeListener=function(ie,ue){var le,ne,de,$,me;if(C(ue),void 0===(ne=this._events))return this;if(void 0===(le=ne[ie]))return this;if(le===ue||le.listener===ue)0==--this._eventsCount?this._events=Object.create(null):(delete ne[ie],ne.removeListener&&this.emit("removeListener",ie,le.listener||ue));else if("function"!=typeof le){for(de=-1,$=le.length-1;$>=0;$--)if(le[$]===ue||le[$].listener===ue){me=le[$].listener,de=$;break}if(de<0)return this;0===de?le.shift():function R(ee,ie){for(;ie+1<ee.length;ie++)ee[ie]=ee[ie+1];ee.pop()}(le,de),1===le.length&&(ne[ie]=le[0]),void 0!==ne.removeListener&&this.emit("removeListener",ie,me||ue)}return this},I.prototype.removeAllListeners=function(ie){var ue,le,ne;if(void 0===(le=this._events))return this;if(void 0===le.removeListener)return 0===arguments.length?(this._events=Object.create(null),this._eventsCount=0):void 0!==le[ie]&&(0==--this._eventsCount?this._events=Object.create(null):delete le[ie]),this;if(0===arguments.length){var $,de=Object.keys(le);for(ne=0;ne<de.length;++ne)"removeListener"!==($=de[ne])&&this.removeAllListeners($);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if("function"==typeof(ue=le[ie]))this.removeListener(ie,ue);else if(void 0!==ue)for(ne=ue.length-1;ne>=0;ne--)this.removeListener(ie,ue[ne]);return this},I.prototype.listeners=function(ie){return w(this,ie,!0)},I.prototype.rawListeners=function(ie){return w(this,ie,!1)},I.listenerCount=function(ee,ie){return"function"==typeof ee.listenerCount?ee.listenerCount(ie):O.call(ee,ie)},I.prototype.listenerCount=O,I.prototype.eventNames=function(){return this._eventsCount>0?t(this._events):[]}},347:(Ve,q,p)=>{var t=p(3502).Buffer,e=p(8095);Ve.exports=function b(I,s,C,h){if(t.isBuffer(I)||(I=t.from(I,"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 P=C/8,d=t.alloc(P),S=t.alloc(h||0),w=t.alloc(0);P>0||h>0;){var O=new e;O.update(w),O.update(I),s&&O.update(s),w=O.digest();var E=0;if(P>0){var R=d.length-P;E=Math.min(P,w.length),w.copy(d,R,0,E),P-=E}if(E<w.length&&h>0){var z=S.length-h,U=Math.min(h,w.length-E);w.copy(S,z,E,E+U),h-=U}}return w.fill(0),{key:d,iv:S}}},9650:(Ve,q,p)=>{"use strict";var t=p(3502).Buffer,e=p(5685).Transform;function s(C){e.call(this),this._block=t.allocUnsafe(C),this._blockSize=C,this._blockOffset=0,this._length=[0,0,0,0],this._finalized=!1}p(3894)(s,e),s.prototype._transform=function(C,h,P){var d=null;try{this.update(C,h)}catch(S){d=S}P(d)},s.prototype._flush=function(C){var h=null;try{this.push(this.digest())}catch(P){h=P}C(h)},s.prototype.update=function(C,h){if(function I(C,h){if(!t.isBuffer(C)&&"string"!=typeof C)throw new TypeError(h+" must be a string or a buffer")}(C,"Data"),this._finalized)throw new Error("Digest already called");t.isBuffer(C)||(C=t.from(C,h));for(var P=this._block,d=0;this._blockOffset+C.length-d>=this._blockSize;){for(var S=this._blockOffset;S<this._blockSize;)P[S++]=C[d++];this._update(),this._blockOffset=0}for(;d<C.length;)P[this._blockOffset++]=C[d++];for(var w=0,O=8*C.length;O>0;++w)this._length[w]+=O,(O=this._length[w]/4294967296|0)>0&&(this._length[w]-=4294967296*O);return this},s.prototype._update=function(){throw new Error("_update is not implemented")},s.prototype.digest=function(C){if(this._finalized)throw new Error("Digest already called");this._finalized=!0;var h=this._digest();void 0!==C&&(h=h.toString(C)),this._block.fill(0),this._blockOffset=0;for(var P=0;P<4;++P)this._length[P]=0;return h},s.prototype._digest=function(){throw new Error("_digest is not implemented")},Ve.exports=s},7084:(Ve,q,p)=>{var t=q;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:(Ve,q,p)=>{"use strict";var t=p(9299),e=p(2391);function b(){this.pending=null,this.pendingTotal=0,this.blockSize=this.constructor.blockSize,this.outSize=this.constructor.outSize,this.hmacStrength=this.constructor.hmacStrength,this.padLength=this.constructor.padLength/8,this.endian="big",this._delta8=this.blockSize/8,this._delta32=this.blockSize/32}q.BlockHash=b,b.prototype.update=function(s,C){if(s=t.toArray(s,C),this.pending=this.pending?this.pending.concat(s):s,this.pendingTotal+=s.length,this.pending.length>=this._delta8){var h=(s=this.pending).length%this._delta8;this.pending=s.slice(s.length-h,s.length),0===this.pending.length&&(this.pending=null),s=t.join32(s,0,s.length-h,this.endian);for(var P=0;P<s.length;P+=this._delta32)this._update(s,P,P+this._delta32)}return this},b.prototype.digest=function(s){return this.update(this._pad()),e(null===this.pending),this._digest(s)},b.prototype._pad=function(){var s=this.pendingTotal,C=this._delta8,h=C-(s+this.padLength)%C,P=new Array(h+this.padLength);P[0]=128;for(var d=1;d<h;d++)P[d]=0;if(s<<=3,"big"===this.endian){for(var S=8;S<this.padLength;S++)P[d++]=0;P[d++]=0,P[d++]=0,P[d++]=0,P[d++]=0,P[d++]=s>>>24&255,P[d++]=s>>>16&255,P[d++]=s>>>8&255,P[d++]=255&s}else for(P[d++]=255&s,P[d++]=s>>>8&255,P[d++]=s>>>16&255,P[d++]=s>>>24&255,P[d++]=0,P[d++]=0,P[d++]=0,P[d++]=0,S=8;S<this.padLength;S++)P[d++]=0;return P}},2194:(Ve,q,p)=>{"use strict";var t=p(9299),e=p(2391);function b(I,s,C){if(!(this instanceof b))return new b(I,s,C);this.Hash=I,this.blockSize=I.blockSize/8,this.outSize=I.outSize/8,this.inner=null,this.outer=null,this._init(t.toArray(s,C))}Ve.exports=b,b.prototype._init=function(s){s.length>this.blockSize&&(s=(new this.Hash).update(s).digest()),e(s.length<=this.blockSize);for(var C=s.length;C<this.blockSize;C++)s.push(0);for(C=0;C<s.length;C++)s[C]^=54;for(this.inner=(new this.Hash).update(s),C=0;C<s.length;C++)s[C]^=106;this.outer=(new this.Hash).update(s)},b.prototype.update=function(s,C){return this.inner.update(s,C),this},b.prototype.digest=function(s){return this.outer.update(this.inner.digest()),this.outer.digest(s)}},9458:(Ve,q,p)=>{"use strict";var t=p(9299),e=p(3800),b=t.rotl32,I=t.sum32,s=t.sum32_3,C=t.sum32_4,h=e.BlockHash;function P(){if(!(this instanceof P))return new P;h.call(this),this.h=[1732584193,4023233417,2562383102,271733878,3285377520],this.endian="little"}function d(U,W,K,ee){return U<=15?W^K^ee:U<=31?W&K|~W&ee:U<=47?(W|~K)^ee:U<=63?W&ee|K&~ee:W^(K|~ee)}function w(U){return U<=15?1352829926:U<=31?1548603684:U<=47?1836072691:U<=63?2053994217:0}t.inherits(P,h),q.ripemd160=P,P.blockSize=512,P.outSize=160,P.hmacStrength=192,P.padLength=64,P.prototype._update=function(W,K){for(var ee=this.h[0],ie=this.h[1],ue=this.h[2],le=this.h[3],ne=this.h[4],de=ee,$=ie,me=ue,A=le,i=ne,a=0;a<80;a++){var u=I(b(C(ee,d(a,ie,ue,le),W[O[a]+K],(U=a)<=15?0:U<=31?1518500249:U<=47?1859775393:U<=63?2400959708:2840853838),R[a]),ne);ee=ne,ne=le,le=b(ue,10),ue=ie,ie=u,u=I(b(C(de,d(79-a,$,me,A),W[E[a]+K],w(a)),z[a]),i),de=i,i=A,A=b(me,10),me=$,$=u}var U;u=s(this.h[1],ue,A),this.h[1]=s(this.h[2],le,i),this.h[2]=s(this.h[3],ne,de),this.h[3]=s(this.h[4],ee,$),this.h[4]=s(this.h[0],ie,me),this.h[0]=u},P.prototype._digest=function(W){return"hex"===W?t.toHex32(this.h,"little"):t.split32(this.h,"little")};var O=[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13],E=[5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11],R=[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],z=[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:(Ve,q,p)=>{"use strict";q.sha1=p(9007),q.sha224=p(55),q.sha256=p(9342),q.sha384=p(8634),q.sha512=p(39)},9007:(Ve,q,p)=>{"use strict";var t=p(9299),e=p(3800),b=p(3113),I=t.rotl32,s=t.sum32,C=t.sum32_5,h=b.ft_1,P=e.BlockHash,d=[1518500249,1859775393,2400959708,3395469782];function S(){if(!(this instanceof S))return new S;P.call(this),this.h=[1732584193,4023233417,2562383102,271733878,3285377520],this.W=new Array(80)}t.inherits(S,P),Ve.exports=S,S.blockSize=512,S.outSize=160,S.hmacStrength=80,S.padLength=64,S.prototype._update=function(O,E){for(var R=this.W,z=0;z<16;z++)R[z]=O[E+z];for(;z<R.length;z++)R[z]=I(R[z-3]^R[z-8]^R[z-14]^R[z-16],1);var U=this.h[0],W=this.h[1],K=this.h[2],ee=this.h[3],ie=this.h[4];for(z=0;z<R.length;z++){var ue=~~(z/20),le=C(I(U,5),h(ue,W,K,ee),ie,R[z],d[ue]);ie=ee,ee=K,K=I(W,30),W=U,U=le}this.h[0]=s(this.h[0],U),this.h[1]=s(this.h[1],W),this.h[2]=s(this.h[2],K),this.h[3]=s(this.h[3],ee),this.h[4]=s(this.h[4],ie)},S.prototype._digest=function(O){return"hex"===O?t.toHex32(this.h,"big"):t.split32(this.h,"big")}},55:(Ve,q,p)=>{"use strict";var t=p(9299),e=p(9342);function b(){if(!(this instanceof b))return new b;e.call(this),this.h=[3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428]}t.inherits(b,e),Ve.exports=b,b.blockSize=512,b.outSize=224,b.hmacStrength=192,b.padLength=64,b.prototype._digest=function(s){return"hex"===s?t.toHex32(this.h.slice(0,7),"big"):t.split32(this.h.slice(0,7),"big")}},9342:(Ve,q,p)=>{"use strict";var t=p(9299),e=p(3800),b=p(3113),I=p(2391),s=t.sum32,C=t.sum32_4,h=t.sum32_5,P=b.ch32,d=b.maj32,S=b.s0_256,w=b.s1_256,O=b.g0_256,E=b.g1_256,R=e.BlockHash,z=[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;R.call(this),this.h=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225],this.k=z,this.W=new Array(64)}t.inherits(U,R),Ve.exports=U,U.blockSize=512,U.outSize=256,U.hmacStrength=192,U.padLength=64,U.prototype._update=function(K,ee){for(var ie=this.W,ue=0;ue<16;ue++)ie[ue]=K[ee+ue];for(;ue<ie.length;ue++)ie[ue]=C(E(ie[ue-2]),ie[ue-7],O(ie[ue-15]),ie[ue-16]);var le=this.h[0],ne=this.h[1],de=this.h[2],$=this.h[3],me=this.h[4],A=this.h[5],i=this.h[6],a=this.h[7];for(I(this.k.length===ie.length),ue=0;ue<ie.length;ue++){var u=h(a,w(me),P(me,A,i),this.k[ue],ie[ue]),l=s(S(le),d(le,ne,de));a=i,i=A,A=me,me=s($,u),$=de,de=ne,ne=le,le=s(u,l)}this.h[0]=s(this.h[0],le),this.h[1]=s(this.h[1],ne),this.h[2]=s(this.h[2],de),this.h[3]=s(this.h[3],$),this.h[4]=s(this.h[4],me),this.h[5]=s(this.h[5],A),this.h[6]=s(this.h[6],i),this.h[7]=s(this.h[7],a)},U.prototype._digest=function(K){return"hex"===K?t.toHex32(this.h,"big"):t.split32(this.h,"big")}},8634:(Ve,q,p)=>{"use strict";var t=p(9299),e=p(39);function b(){if(!(this instanceof b))return new b;e.call(this),this.h=[3418070365,3238371032,1654270250,914150663,2438529370,812702999,355462360,4144912697,1731405415,4290775857,2394180231,1750603025,3675008525,1694076839,1203062813,3204075428]}t.inherits(b,e),Ve.exports=b,b.blockSize=1024,b.outSize=384,b.hmacStrength=192,b.padLength=128,b.prototype._digest=function(s){return"hex"===s?t.toHex32(this.h.slice(0,12),"big"):t.split32(this.h.slice(0,12),"big")}},39:(Ve,q,p)=>{"use strict";var t=p(9299),e=p(3800),b=p(2391),I=t.rotr64_hi,s=t.rotr64_lo,C=t.shr64_hi,h=t.shr64_lo,P=t.sum64,d=t.sum64_hi,S=t.sum64_lo,w=t.sum64_4_hi,O=t.sum64_4_lo,E=t.sum64_5_hi,R=t.sum64_5_lo,z=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;z.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 K(u,l,y,T,L){var m=u&y^~u&L;return m<0&&(m+=4294967296),m}function ee(u,l,y,T,L,m){var n=l&T^~l&m;return n<0&&(n+=4294967296),n}function ie(u,l,y,T,L){var m=u&y^u&L^y&L;return m<0&&(m+=4294967296),m}function ue(u,l,y,T,L,m){var n=l&T^l&m^T&m;return n<0&&(n+=4294967296),n}function le(u,l){var m=I(u,l,28)^I(l,u,2)^I(l,u,7);return m<0&&(m+=4294967296),m}function ne(u,l){var m=s(u,l,28)^s(l,u,2)^s(l,u,7);return m<0&&(m+=4294967296),m}function de(u,l){var m=I(u,l,14)^I(u,l,18)^I(l,u,9);return m<0&&(m+=4294967296),m}function $(u,l){var m=s(u,l,14)^s(u,l,18)^s(l,u,9);return m<0&&(m+=4294967296),m}function me(u,l){var m=I(u,l,1)^I(u,l,8)^C(u,l,7);return m<0&&(m+=4294967296),m}function A(u,l){var m=s(u,l,1)^s(u,l,8)^h(u,l,7);return m<0&&(m+=4294967296),m}function i(u,l){var m=I(u,l,19)^I(l,u,29)^C(u,l,6);return m<0&&(m+=4294967296),m}function a(u,l){var m=s(u,l,19)^s(l,u,29)^h(u,l,6);return m<0&&(m+=4294967296),m}t.inherits(W,z),Ve.exports=W,W.blockSize=1024,W.outSize=512,W.hmacStrength=192,W.padLength=128,W.prototype._prepareBlock=function(l,y){for(var T=this.W,L=0;L<32;L++)T[L]=l[y+L];for(;L<T.length;L+=2){var m=i(T[L-4],T[L-3]),n=a(T[L-4],T[L-3]),_=T[L-14],B=T[L-13],V=me(T[L-30],T[L-29]),X=A(T[L-30],T[L-29]),Le=T[L-32],$e=T[L-31];T[L]=w(m,n,_,B,V,X,Le,$e),T[L+1]=O(m,n,_,B,V,X,Le,$e)}},W.prototype._update=function(l,y){this._prepareBlock(l,y);var T=this.W,L=this.h[0],m=this.h[1],n=this.h[2],_=this.h[3],B=this.h[4],V=this.h[5],X=this.h[6],Le=this.h[7],$e=this.h[8],We=this.h[9],Fe=this.h[10],De=this.h[11],ye=this.h[12],ce=this.h[13],ve=this.h[14],oe=this.h[15];b(this.k.length===T.length);for(var je=0;je<T.length;je+=2){var Ae=ve,he=oe,Ce=de($e,We),te=$($e,We),Ue=K($e,0,Fe,0,ye),Be=ee(0,We,0,De,0,ce),ae=this.k[je],ge=this.k[je+1],ft=T[je],Je=T[je+1],dt=E(Ae,he,Ce,te,Ue,Be,ae,ge,ft,Je),Et=R(Ae,he,Ce,te,Ue,Be,ae,ge,ft,Je);Ae=le(L,m),he=ne(L,m),Ce=ie(L,0,n,0,B),te=ue(0,m,0,_,0,V);var pt=d(Ae,he,Ce,te),ot=S(Ae,he,Ce,te);ve=ye,oe=ce,ye=Fe,ce=De,Fe=$e,De=We,$e=d(X,Le,dt,Et),We=S(Le,Le,dt,Et),X=B,Le=V,B=n,V=_,n=L,_=m,L=d(dt,Et,pt,ot),m=S(dt,Et,pt,ot)}P(this.h,0,L,m),P(this.h,2,n,_),P(this.h,4,B,V),P(this.h,6,X,Le),P(this.h,8,$e,We),P(this.h,10,Fe,De),P(this.h,12,ye,ce),P(this.h,14,ve,oe)},W.prototype._digest=function(l){return"hex"===l?t.toHex32(this.h,"big"):t.split32(this.h,"big")}},3113:(Ve,q,p)=>{"use strict";var e=p(9299).rotr32;function I(w,O,E){return w&O^~w&E}function s(w,O,E){return w&O^w&E^O&E}function C(w,O,E){return w^O^E}q.ft_1=function b(w,O,E,R){return 0===w?I(O,E,R):1===w||3===w?C(O,E,R):2===w?s(O,E,R):void 0},q.ch32=I,q.maj32=s,q.p32=C,q.s0_256=function h(w){return e(w,2)^e(w,13)^e(w,22)},q.s1_256=function P(w){return e(w,6)^e(w,11)^e(w,25)},q.g0_256=function d(w){return e(w,7)^e(w,18)^w>>>3},q.g1_256=function S(w){return e(w,17)^e(w,19)^w>>>10}},9299:(Ve,q,p)=>{"use strict";var t=p(2391),e=p(3894);function b(a,u){return!(55296!=(64512&a.charCodeAt(u))||u<0||u+1>=a.length)&&56320==(64512&a.charCodeAt(u+1))}function C(a){return(a>>>24|a>>>8&65280|a<<8&16711680|(255&a)<<24)>>>0}function P(a){return 1===a.length?"0"+a:a}function d(a){return 7===a.length?"0"+a:6===a.length?"00"+a:5===a.length?"000"+a:4===a.length?"0000"+a:3===a.length?"00000"+a:2===a.length?"000000"+a:1===a.length?"0000000"+a:a}q.inherits=e,q.toArray=function I(a,u){if(Array.isArray(a))return a.slice();if(!a)return[];var l=[];if("string"==typeof a)if(u){if("hex"===u)for((a=a.replace(/[^a-z0-9]+/gi,"")).length%2!=0&&(a="0"+a),T=0;T<a.length;T+=2)l.push(parseInt(a[T]+a[T+1],16))}else for(var y=0,T=0;T<a.length;T++){var L=a.charCodeAt(T);L<128?l[y++]=L:L<2048?(l[y++]=L>>6|192,l[y++]=63&L|128):b(a,T)?(L=65536+((1023&L)<<10)+(1023&a.charCodeAt(++T)),l[y++]=L>>18|240,l[y++]=L>>12&63|128,l[y++]=L>>6&63|128,l[y++]=63&L|128):(l[y++]=L>>12|224,l[y++]=L>>6&63|128,l[y++]=63&L|128)}else for(T=0;T<a.length;T++)l[T]=0|a[T];return l},q.toHex=function s(a){for(var u="",l=0;l<a.length;l++)u+=P(a[l].toString(16));return u},q.htonl=C,q.toHex32=function h(a,u){for(var l="",y=0;y<a.length;y++){var T=a[y];"little"===u&&(T=C(T)),l+=d(T.toString(16))}return l},q.zero2=P,q.zero8=d,q.join32=function S(a,u,l,y){var T=l-u;t(T%4==0);for(var L=new Array(T/4),m=0,n=u;m<L.length;m++,n+=4)L[m]=("big"===y?a[n]<<24|a[n+1]<<16|a[n+2]<<8|a[n+3]:a[n+3]<<24|a[n+2]<<16|a[n+1]<<8|a[n])>>>0;return L},q.split32=function w(a,u){for(var l=new Array(4*a.length),y=0,T=0;y<a.length;y++,T+=4){var L=a[y];"big"===u?(l[T]=L>>>24,l[T+1]=L>>>16&255,l[T+2]=L>>>8&255,l[T+3]=255&L):(l[T+3]=L>>>24,l[T+2]=L>>>16&255,l[T+1]=L>>>8&255,l[T]=255&L)}return l},q.rotr32=function O(a,u){return a>>>u|a<<32-u},q.rotl32=function E(a,u){return a<<u|a>>>32-u},q.sum32=function R(a,u){return a+u>>>0},q.sum32_3=function z(a,u,l){return a+u+l>>>0},q.sum32_4=function U(a,u,l,y){return a+u+l+y>>>0},q.sum32_5=function W(a,u,l,y,T){return a+u+l+y+T>>>0},q.sum64=function K(a,u,l,y){var m=y+a[u+1]>>>0;a[u]=(m<y?1:0)+l+a[u]>>>0,a[u+1]=m},q.sum64_hi=function ee(a,u,l,y){return(u+y>>>0<u?1:0)+a+l>>>0},q.sum64_lo=function ie(a,u,l,y){return u+y>>>0},q.sum64_4_hi=function ue(a,u,l,y,T,L,m,n){var _=0,B=u;return _+=(B=B+y>>>0)<u?1:0,_+=(B=B+L>>>0)<L?1:0,a+l+T+m+(_+=(B=B+n>>>0)<n?1:0)>>>0},q.sum64_4_lo=function le(a,u,l,y,T,L,m,n){return u+y+L+n>>>0},q.sum64_5_hi=function ne(a,u,l,y,T,L,m,n,_,B){var V=0,X=u;return V+=(X=X+y>>>0)<u?1:0,V+=(X=X+L>>>0)<L?1:0,V+=(X=X+n>>>0)<n?1:0,a+l+T+m+_+(V+=(X=X+B>>>0)<B?1:0)>>>0},q.sum64_5_lo=function de(a,u,l,y,T,L,m,n,_,B){return u+y+L+n+B>>>0},q.rotr64_hi=function $(a,u,l){return(u<<32-l|a>>>l)>>>0},q.rotr64_lo=function me(a,u,l){return(a<<32-l|u>>>l)>>>0},q.shr64_hi=function A(a,u,l){return a>>>l},q.shr64_lo=function i(a,u,l){return(a<<32-l|u>>>l)>>>0}},2438:(Ve,q,p)=>{"use strict";var t=p(7084),e=p(8195),b=p(2391);function I(s){if(!(this instanceof I))return new I(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 C=e.toArray(s.entropy,s.entropyEnc||"hex"),h=e.toArray(s.nonce,s.nonceEnc||"hex"),P=e.toArray(s.pers,s.persEnc||"hex");b(C.length>=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._init(C,h,P)}Ve.exports=I,I.prototype._init=function(C,h,P){var d=C.concat(h).concat(P);this.K=new Array(this.outLen/8),this.V=new Array(this.outLen/8);for(var S=0;S<this.V.length;S++)this.K[S]=0,this.V[S]=1;this._update(d),this._reseed=1,this.reseedInterval=281474976710656},I.prototype._hmac=function(){return new t.hmac(this.hash,this.K)},I.prototype._update=function(C){var h=this._hmac().update(this.V).update([0]);C&&(h=h.update(C)),this.K=h.digest(),this.V=this._hmac().update(this.V).digest(),C&&(this.K=this._hmac().update(this.V).update([1]).update(C).digest(),this.V=this._hmac().update(this.V).digest())},I.prototype.reseed=function(C,h,P,d){"string"!=typeof h&&(d=P,P=h,h=null),C=e.toArray(C,h),P=e.toArray(P,d),b(C.length>=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._update(C.concat(P||[])),this._reseed=1},I.prototype.generate=function(C,h,P,d){if(this._reseed>this.reseedInterval)throw new Error("Reseed is required");"string"!=typeof h&&(d=P,P=h,h=null),P&&(P=e.toArray(P,d||"hex"),this._update(P));for(var S=[];S.length<C;)this.V=this._hmac().update(this.V).digest(),S=S.concat(this.V);var w=S.slice(0,C);return this._update(P),this._reseed++,e.encode(w,h)}},8461:(Ve,q)=>{q.read=function(p,t,e,b,I){var s,C,h=8*I-b-1,P=(1<<h)-1,d=P>>1,S=-7,w=e?I-1:0,O=e?-1:1,E=p[t+w];for(w+=O,s=E&(1<<-S)-1,E>>=-S,S+=h;S>0;s=256*s+p[t+w],w+=O,S-=8);for(C=s&(1<<-S)-1,s>>=-S,S+=b;S>0;C=256*C+p[t+w],w+=O,S-=8);if(0===s)s=1-d;else{if(s===P)return C?NaN:1/0*(E?-1:1);C+=Math.pow(2,b),s-=d}return(E?-1:1)*C*Math.pow(2,s-b)},q.write=function(p,t,e,b,I,s){var C,h,P,d=8*s-I-1,S=(1<<d)-1,w=S>>1,O=23===I?Math.pow(2,-24)-Math.pow(2,-77):0,E=b?0:s-1,R=b?1:-1,z=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(h=isNaN(t)?1:0,C=S):(C=Math.floor(Math.log(t)/Math.LN2),t*(P=Math.pow(2,-C))<1&&(C--,P*=2),(t+=C+w>=1?O/P:O*Math.pow(2,1-w))*P>=2&&(C++,P/=2),C+w>=S?(h=0,C=S):C+w>=1?(h=(t*P-1)*Math.pow(2,I),C+=w):(h=t*Math.pow(2,w-1)*Math.pow(2,I),C=0));I>=8;p[e+E]=255&h,E+=R,h/=256,I-=8);for(C=C<<I|h,d+=I;d>0;p[e+E]=255&C,E+=R,C/=256,d-=8);p[e+E-R]|=128*z}},3894:Ve=>{Ve.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}}},8095:(Ve,q,p)=>{"use strict";var t=p(3894),e=p(9650),b=p(3502).Buffer,I=new Array(16);function s(){e.call(this,64),this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878}function C(w,O){return w<<O|w>>>32-O}function h(w,O,E,R,z,U,W){return C(w+(O&E|~O&R)+z+U|0,W)+O|0}function P(w,O,E,R,z,U,W){return C(w+(O&R|E&~R)+z+U|0,W)+O|0}function d(w,O,E,R,z,U,W){return C(w+(O^E^R)+z+U|0,W)+O|0}function S(w,O,E,R,z,U,W){return C(w+(E^(O|~R))+z+U|0,W)+O|0}t(s,e),s.prototype._update=function(){for(var w=I,O=0;O<16;++O)w[O]=this._block.readInt32LE(4*O);var E=this._a,R=this._b,z=this._c,U=this._d;E=h(E,R,z,U,w[0],3614090360,7),U=h(U,E,R,z,w[1],3905402710,12),z=h(z,U,E,R,w[2],606105819,17),R=h(R,z,U,E,w[3],3250441966,22),E=h(E,R,z,U,w[4],4118548399,7),U=h(U,E,R,z,w[5],1200080426,12),z=h(z,U,E,R,w[6],2821735955,17),R=h(R,z,U,E,w[7],4249261313,22),E=h(E,R,z,U,w[8],1770035416,7),U=h(U,E,R,z,w[9],2336552879,12),z=h(z,U,E,R,w[10],4294925233,17),R=h(R,z,U,E,w[11],2304563134,22),E=h(E,R,z,U,w[12],1804603682,7),U=h(U,E,R,z,w[13],4254626195,12),z=h(z,U,E,R,w[14],2792965006,17),E=P(E,R=h(R,z,U,E,w[15],1236535329,22),z,U,w[1],4129170786,5),U=P(U,E,R,z,w[6],3225465664,9),z=P(z,U,E,R,w[11],643717713,14),R=P(R,z,U,E,w[0],3921069994,20),E=P(E,R,z,U,w[5],3593408605,5),U=P(U,E,R,z,w[10],38016083,9),z=P(z,U,E,R,w[15],3634488961,14),R=P(R,z,U,E,w[4],3889429448,20),E=P(E,R,z,U,w[9],568446438,5),U=P(U,E,R,z,w[14],3275163606,9),z=P(z,U,E,R,w[3],4107603335,14),R=P(R,z,U,E,w[8],1163531501,20),E=P(E,R,z,U,w[13],2850285829,5),U=P(U,E,R,z,w[2],4243563512,9),z=P(z,U,E,R,w[7],1735328473,14),E=d(E,R=P(R,z,U,E,w[12],2368359562,20),z,U,w[5],4294588738,4),U=d(U,E,R,z,w[8],2272392833,11),z=d(z,U,E,R,w[11],1839030562,16),R=d(R,z,U,E,w[14],4259657740,23),E=d(E,R,z,U,w[1],2763975236,4),U=d(U,E,R,z,w[4],1272893353,11),z=d(z,U,E,R,w[7],4139469664,16),R=d(R,z,U,E,w[10],3200236656,23),E=d(E,R,z,U,w[13],681279174,4),U=d(U,E,R,z,w[0],3936430074,11),z=d(z,U,E,R,w[3],3572445317,16),R=d(R,z,U,E,w[6],76029189,23),E=d(E,R,z,U,w[9],3654602809,4),U=d(U,E,R,z,w[12],3873151461,11),z=d(z,U,E,R,w[15],530742520,16),E=S(E,R=d(R,z,U,E,w[2],3299628645,23),z,U,w[0],4096336452,6),U=S(U,E,R,z,w[7],1126891415,10),z=S(z,U,E,R,w[14],2878612391,15),R=S(R,z,U,E,w[5],4237533241,21),E=S(E,R,z,U,w[12],1700485571,6),U=S(U,E,R,z,w[3],2399980690,10),z=S(z,U,E,R,w[10],4293915773,15),R=S(R,z,U,E,w[1],2240044497,21),E=S(E,R,z,U,w[8],1873313359,6),U=S(U,E,R,z,w[15],4264355552,10),z=S(z,U,E,R,w[6],2734768916,15),R=S(R,z,U,E,w[13],1309151649,21),E=S(E,R,z,U,w[4],4149444226,6),U=S(U,E,R,z,w[11],3174756917,10),z=S(z,U,E,R,w[2],718787259,15),R=S(R,z,U,E,w[9],3951481745,21),this._a=this._a+E|0,this._b=this._b+R|0,this._c=this._c+z|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=b.allocUnsafe(16);return w.writeInt32LE(this._a,0),w.writeInt32LE(this._b,4),w.writeInt32LE(this._c,8),w.writeInt32LE(this._d,12),w},Ve.exports=s},7079:(Ve,q,p)=>{var t=p(1378),e=p(7950);function b(I){this.rand=I||new e.Rand}Ve.exports=b,b.create=function(s){return new b(s)},b.prototype._randbelow=function(s){var C=s.bitLength(),h=Math.ceil(C/8);do{var P=new t(this.rand.generate(h))}while(P.cmp(s)>=0);return P},b.prototype._randrange=function(s,C){var h=C.sub(s);return s.add(this._randbelow(h))},b.prototype.test=function(s,C,h){var P=s.bitLength(),d=t.mont(s),S=new t(1).toRed(d);C||(C=Math.max(1,P/48|0));for(var w=s.subn(1),O=0;!w.testn(O);O++);for(var E=s.shrn(O),R=w.toRed(d);C>0;C--){var U=this._randrange(new t(2),w);h&&h(U);var W=U.toRed(d).redPow(E);if(0!==W.cmp(S)&&0!==W.cmp(R)){for(var K=1;K<O;K++){if(0===(W=W.redSqr()).cmp(S))return!1;if(0===W.cmp(R))break}if(K===O)return!1}}return!0},b.prototype.getDivisor=function(s,C){var h=s.bitLength(),P=t.mont(s),d=new t(1).toRed(P);C||(C=Math.max(1,h/48|0));for(var S=s.subn(1),w=0;!S.testn(w);w++);for(var O=s.shrn(w),E=S.toRed(P);C>0;C--){var R=this._randrange(new t(2),S),z=s.gcd(R);if(0!==z.cmpn(1))return z;var U=R.toRed(P).redPow(O);if(0!==U.cmp(d)&&0!==U.cmp(E)){for(var W=1;W<w;W++){if(0===(U=U.redSqr()).cmp(d))return U.fromRed().subn(1).gcd(s);if(0===U.cmp(E))break}if(W===w)return(U=U.redSqr()).fromRed().subn(1).gcd(s)}}return!1}},1378:function(Ve,q,p){!function(t,e){"use strict";function b(A,i){if(!A)throw new Error(i||"Assertion failed")}function I(A,i){A.super_=i;var a=function(){};a.prototype=i.prototype,A.prototype=new a,A.prototype.constructor=A}function s(A,i,a){if(s.isBN(A))return A;this.negative=0,this.words=null,this.length=0,this.red=null,null!==A&&(("le"===i||"be"===i)&&(a=i,i=10),this._init(A||0,i||10,a||"be"))}var C;"object"==typeof t?t.exports=s:e.BN=s,s.BN=s,s.wordSize=26;try{C=typeof window<"u"&&typeof window.Buffer<"u"?window.Buffer:p(6619).Buffer}catch{}function h(A,i){var a=A.charCodeAt(i);return a>=65&&a<=70?a-55:a>=97&&a<=102?a-87:a-48&15}function P(A,i,a){var u=h(A,a);return a-1>=i&&(u|=h(A,a-1)<<4),u}function d(A,i,a,u){for(var l=0,y=Math.min(A.length,a),T=i;T<y;T++){var L=A.charCodeAt(T)-48;l*=u,l+=L>=49?L-49+10:L>=17?L-17+10:L}return l}s.isBN=function(i){return i instanceof s||null!==i&&"object"==typeof i&&i.constructor.wordSize===s.wordSize&&Array.isArray(i.words)},s.max=function(i,a){return i.cmp(a)>0?i:a},s.min=function(i,a){return i.cmp(a)<0?i:a},s.prototype._init=function(i,a,u){if("number"==typeof i)return this._initNumber(i,a,u);if("object"==typeof i)return this._initArray(i,a,u);"hex"===a&&(a=16),b(a===(0|a)&&a>=2&&a<=36);var l=0;"-"===(i=i.toString().replace(/\s+/g,""))[0]&&(l++,this.negative=1),l<i.length&&(16===a?this._parseHex(i,l,u):(this._parseBase(i,a,l),"le"===u&&this._initArray(this.toArray(),a,u)))},s.prototype._initNumber=function(i,a,u){i<0&&(this.negative=1,i=-i),i<67108864?(this.words=[67108863&i],this.length=1):i<4503599627370496?(this.words=[67108863&i,i/67108864&67108863],this.length=2):(b(i<9007199254740992),this.words=[67108863&i,i/67108864&67108863,1],this.length=3),"le"===u&&this._initArray(this.toArray(),a,u)},s.prototype._initArray=function(i,a,u){if(b("number"==typeof i.length),i.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(i.length/3),this.words=new Array(this.length);for(var l=0;l<this.length;l++)this.words[l]=0;var y,T,L=0;if("be"===u)for(l=i.length-1,y=0;l>=0;l-=3)this.words[y]|=(T=i[l]|i[l-1]<<8|i[l-2]<<16)<<L&67108863,this.words[y+1]=T>>>26-L&67108863,(L+=24)>=26&&(L-=26,y++);else if("le"===u)for(l=0,y=0;l<i.length;l+=3)this.words[y]|=(T=i[l]|i[l+1]<<8|i[l+2]<<16)<<L&67108863,this.words[y+1]=T>>>26-L&67108863,(L+=24)>=26&&(L-=26,y++);return this.strip()},s.prototype._parseHex=function(i,a,u){this.length=Math.ceil((i.length-a)/6),this.words=new Array(this.length);for(var l=0;l<this.length;l++)this.words[l]=0;var L,y=0,T=0;if("be"===u)for(l=i.length-1;l>=a;l-=2)L=P(i,a,l)<<y,this.words[T]|=67108863&L,y>=18?(y-=18,this.words[T+=1]|=L>>>26):y+=8;else for(l=(i.length-a)%2==0?a+1:a;l<i.length;l+=2)L=P(i,a,l)<<y,this.words[T]|=67108863&L,y>=18?(y-=18,this.words[T+=1]|=L>>>26):y+=8;this.strip()},s.prototype._parseBase=function(i,a,u){this.words=[0],this.length=1;for(var l=0,y=1;y<=67108863;y*=a)l++;l--,y=y/a|0;for(var T=i.length-u,L=T%l,m=Math.min(T,T-L)+u,n=0,_=u;_<m;_+=l)n=d(i,_,_+l,a),this.imuln(y),this.words[0]+n<67108864?this.words[0]+=n:this._iaddn(n);if(0!==L){var B=1;for(n=d(i,_,i.length,a),_=0;_<L;_++)B*=a;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 a=0;a<this.length;a++)i.words[a]=this.words[a];i.length=this.length,i.negative=this.negative,i.red=this.red},s.prototype.clone=function(){var i=new s(null);return this.copy(i),i},s.prototype._expand=function(i){for(;this.length<i;)this.words[this.length++]=0;return this},s.prototype.strip=function(){for(;this.length>1&&0===this.words[this.length-1];)this.length--;return this._normSign()},s.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},s.prototype.inspect=function(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"};var S=["","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],O=[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 R(A,i,a){a.negative=i.negative^A.negative;var u=A.length+i.length|0;a.length=u,u=u-1|0;var l=0|A.words[0],y=0|i.words[0],T=l*y,m=T/67108864|0;a.words[0]=67108863&T;for(var n=1;n<u;n++){for(var _=m>>>26,B=67108863&m,V=Math.min(n,i.length-1),X=Math.max(0,n-A.length+1);X<=V;X++)_+=(T=(l=0|A.words[n-X|0])*(y=0|i.words[X])+B)/67108864|0,B=67108863&T;a.words[n]=0|B,m=0|_}return 0!==m?a.words[n]=0|m:a.length--,a.strip()}s.prototype.toString=function(i,a){var u;if(a=0|a||1,16===(i=i||10)||"hex"===i){u="";for(var l=0,y=0,T=0;T<this.length;T++){var L=this.words[T],m=(16777215&(L<<l|y)).toString(16);u=0!=(y=L>>>24-l&16777215)||T!==this.length-1?S[6-m.length]+m+u:m+u,(l+=2)>=26&&(l-=26,T--)}for(0!==y&&(u=y.toString(16)+u);u.length%a!=0;)u="0"+u;return 0!==this.negative&&(u="-"+u),u}if(i===(0|i)&&i>=2&&i<=36){var n=w[i],_=O[i];u="";var B=this.clone();for(B.negative=0;!B.isZero();){var V=B.modn(_).toString(i);u=(B=B.idivn(_)).isZero()?V+u:S[n-V.length]+V+u}for(this.isZero()&&(u="0"+u);u.length%a!=0;)u="0"+u;return 0!==this.negative&&(u="-"+u),u}b(!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&&b(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-i:i},s.prototype.toJSON=function(){return this.toString(16)},s.prototype.toBuffer=function(i,a){return b(typeof C<"u"),this.toArrayLike(C,i,a)},s.prototype.toArray=function(i,a){return this.toArrayLike(Array,i,a)},s.prototype.toArrayLike=function(i,a,u){var l=this.byteLength(),y=u||Math.max(1,l);b(l<=y,"byte array longer than desired length"),b(y>0,"Requested array length <= 0"),this.strip();var m,n,T="le"===a,L=new i(y),_=this.clone();if(T){for(n=0;!_.isZero();n++)m=_.andln(255),_.iushrn(8),L[n]=m;for(;n<y;n++)L[n]=0}else{for(n=0;n<y-l;n++)L[n]=0;for(n=0;!_.isZero();n++)m=_.andln(255),_.iushrn(8),L[y-n-1]=m}return L},s.prototype._countBits=Math.clz32?function(i){return 32-Math.clz32(i)}:function(i){var a=i,u=0;return a>=4096&&(u+=13,a>>>=13),a>=64&&(u+=7,a>>>=7),a>=8&&(u+=4,a>>>=4),a>=2&&(u+=2,a>>>=2),u+a},s.prototype._zeroBits=function(i){if(0===i)return 26;var a=i,u=0;return 8191&a||(u+=13,a>>>=13),127&a||(u+=7,a>>>=7),15&a||(u+=4,a>>>=4),3&a||(u+=2,a>>>=2),1&a||u++,u},s.prototype.bitLength=function(){var a=this._countBits(this.words[this.length-1]);return 26*(this.length-1)+a},s.prototype.zeroBits=function(){if(this.isZero())return 0;for(var i=0,a=0;a<this.length;a++){var u=this._zeroBits(this.words[a]);if(i+=u,26!==u)break}return i},s.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},s.prototype.toTwos=function(i){return 0!==this.negative?this.abs().inotn(i).iaddn(1):this.clone()},s.prototype.fromTwos=function(i){return this.testn(i-1)?this.notn(i).iaddn(1).ineg():this.clone()},s.prototype.isNeg=function(){return 0!==this.negative},s.prototype.neg=function(){return this.clone().ineg()},s.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},s.prototype.iuor=function(i){for(;this.length<i.length;)this.words[this.length++]=0;for(var a=0;a<i.length;a++)this.words[a]=this.words[a]|i.words[a];return this.strip()},s.prototype.ior=function(i){return b(0==(this.negative|i.negative)),this.iuor(i)},s.prototype.or=function(i){return this.length>i.length?this.clone().ior(i):i.clone().ior(this)},s.prototype.uor=function(i){return this.length>i.length?this.clone().iuor(i):i.clone().iuor(this)},s.prototype.iuand=function(i){var a;a=this.length>i.length?i:this;for(var u=0;u<a.length;u++)this.words[u]=this.words[u]&i.words[u];return this.length=a.length,this.strip()},s.prototype.iand=function(i){return b(0==(this.negative|i.negative)),this.iuand(i)},s.prototype.and=function(i){return this.length>i.length?this.clone().iand(i):i.clone().iand(this)},s.prototype.uand=function(i){return this.length>i.length?this.clone().iuand(i):i.clone().iuand(this)},s.prototype.iuxor=function(i){var a,u;this.length>i.length?(a=this,u=i):(a=i,u=this);for(var l=0;l<u.length;l++)this.words[l]=a.words[l]^u.words[l];if(this!==a)for(;l<a.length;l++)this.words[l]=a.words[l];return this.length=a.length,this.strip()},s.prototype.ixor=function(i){return b(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){b("number"==typeof i&&i>=0);var a=0|Math.ceil(i/26),u=i%26;this._expand(a),u>0&&a--;for(var l=0;l<a;l++)this.words[l]=67108863&~this.words[l];return u>0&&(this.words[l]=~this.words[l]&67108863>>26-u),this.strip()},s.prototype.notn=function(i){return this.clone().inotn(i)},s.prototype.setn=function(i,a){b("number"==typeof i&&i>=0);var u=i/26|0,l=i%26;return this._expand(u+1),this.words[u]=a?this.words[u]|1<<l:this.words[u]&~(1<<l),this.strip()},s.prototype.iadd=function(i){var a,u,l;if(0!==this.negative&&0===i.negative)return this.negative=0,a=this.isub(i),this.negative^=1,this._normSign();if(0===this.negative&&0!==i.negative)return i.negative=0,a=this.isub(i),i.negative=1,a._normSign();this.length>i.length?(u=this,l=i):(u=i,l=this);for(var y=0,T=0;T<l.length;T++)this.words[T]=67108863&(a=(0|u.words[T])+(0|l.words[T])+y),y=a>>>26;for(;0!==y&&T<u.length;T++)this.words[T]=67108863&(a=(0|u.words[T])+y),y=a>>>26;if(this.length=u.length,0!==y)this.words[this.length]=y,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 a;return 0!==i.negative&&0===this.negative?(i.negative=0,a=this.sub(i),i.negative^=1,a):0===i.negative&&0!==this.negative?(this.negative=0,a=i.sub(this),this.negative=1,a):this.length>i.length?this.clone().iadd(i):i.clone().iadd(this)},s.prototype.isub=function(i){if(0!==i.negative){i.negative=0;var a=this.iadd(i);return i.negative=1,a._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(i),this.negative=1,this._normSign();var l,y,u=this.cmp(i);if(0===u)return this.negative=0,this.length=1,this.words[0]=0,this;u>0?(l=this,y=i):(l=i,y=this);for(var T=0,L=0;L<y.length;L++)T=(a=(0|l.words[L])-(0|y.words[L])+T)>>26,this.words[L]=67108863&a;for(;0!==T&&L<l.length;L++)T=(a=(0|l.words[L])+T)>>26,this.words[L]=67108863&a;if(0===T&&L<l.length&&l!==this)for(;L<l.length;L++)this.words[L]=l.words[L];return this.length=Math.max(this.length,L),l!==this&&(this.negative=1),this.strip()},s.prototype.sub=function(i){return this.clone().isub(i)};var z=function(i,a,u){var m,n,_,l=i.words,y=a.words,T=u.words,L=0,B=0|l[0],V=8191&B,X=B>>>13,Le=0|l[1],$e=8191&Le,We=Le>>>13,Fe=0|l[2],De=8191&Fe,ye=Fe>>>13,ce=0|l[3],ve=8191&ce,oe=ce>>>13,je=0|l[4],Ae=8191&je,he=je>>>13,Ce=0|l[5],te=8191&Ce,Ue=Ce>>>13,Be=0|l[6],ae=8191&Be,ge=Be>>>13,ft=0|l[7],Je=8191&ft,dt=ft>>>13,Et=0|l[8],pt=8191&Et,ot=Et>>>13,wt=0|l[9],ke=8191&wt,Ke=wt>>>13,xt=0|y[0],Y=8191&xt,Re=xt>>>13,Tt=0|y[1],Qe=8191&Tt,Ye=Tt>>>13,Ht=0|y[2],Mt=8191&Ht,kt=Ht>>>13,_t=0|y[3],we=8191&_t,J=_t>>>13,be=0|y[4],He=8191&be,at=be>>>13,ii=0|y[5],Gt=8191&ii,ni=ii>>>13,ut=0|y[6],tt=8191&ut,vt=ut>>>13,ti=0|y[7],Ut=8191&ti,ht=ti>>>13,Rt=0|y[8],Oe=8191&Rt,et=Rt>>>13,it=0|y[9],ct=8191&it,Dt=it>>>13;u.negative=i.negative^a.negative,u.length=19;var pi=(L+(m=Math.imul(V,Y))|0)+((8191&(n=(n=Math.imul(V,Re))+Math.imul(X,Y)|0))<<13)|0;L=((_=Math.imul(X,Re))+(n>>>13)|0)+(pi>>>26)|0,pi&=67108863,m=Math.imul($e,Y),n=(n=Math.imul($e,Re))+Math.imul(We,Y)|0,_=Math.imul(We,Re);var Li=(L+(m=m+Math.imul(V,Qe)|0)|0)+((8191&(n=(n=n+Math.imul(V,Ye)|0)+Math.imul(X,Qe)|0))<<13)|0;L=((_=_+Math.imul(X,Ye)|0)+(n>>>13)|0)+(Li>>>26)|0,Li&=67108863,m=Math.imul(De,Y),n=(n=Math.imul(De,Re))+Math.imul(ye,Y)|0,_=Math.imul(ye,Re),m=m+Math.imul($e,Qe)|0,n=(n=n+Math.imul($e,Ye)|0)+Math.imul(We,Qe)|0,_=_+Math.imul(We,Ye)|0;var xi=(L+(m=m+Math.imul(V,Mt)|0)|0)+((8191&(n=(n=n+Math.imul(V,kt)|0)+Math.imul(X,Mt)|0))<<13)|0;L=((_=_+Math.imul(X,kt)|0)+(n>>>13)|0)+(xi>>>26)|0,xi&=67108863,m=Math.imul(ve,Y),n=(n=Math.imul(ve,Re))+Math.imul(oe,Y)|0,_=Math.imul(oe,Re),m=m+Math.imul(De,Qe)|0,n=(n=n+Math.imul(De,Ye)|0)+Math.imul(ye,Qe)|0,_=_+Math.imul(ye,Ye)|0,m=m+Math.imul($e,Mt)|0,n=(n=n+Math.imul($e,kt)|0)+Math.imul(We,Mt)|0,_=_+Math.imul(We,kt)|0;var Fi=(L+(m=m+Math.imul(V,we)|0)|0)+((8191&(n=(n=n+Math.imul(V,J)|0)+Math.imul(X,we)|0))<<13)|0;L=((_=_+Math.imul(X,J)|0)+(n>>>13)|0)+(Fi>>>26)|0,Fi&=67108863,m=Math.imul(Ae,Y),n=(n=Math.imul(Ae,Re))+Math.imul(he,Y)|0,_=Math.imul(he,Re),m=m+Math.imul(ve,Qe)|0,n=(n=n+Math.imul(ve,Ye)|0)+Math.imul(oe,Qe)|0,_=_+Math.imul(oe,Ye)|0,m=m+Math.imul(De,Mt)|0,n=(n=n+Math.imul(De,kt)|0)+Math.imul(ye,Mt)|0,_=_+Math.imul(ye,kt)|0,m=m+Math.imul($e,we)|0,n=(n=n+Math.imul($e,J)|0)+Math.imul(We,we)|0,_=_+Math.imul(We,J)|0;var qe=(L+(m=m+Math.imul(V,He)|0)|0)+((8191&(n=(n=n+Math.imul(V,at)|0)+Math.imul(X,He)|0))<<13)|0;L=((_=_+Math.imul(X,at)|0)+(n>>>13)|0)+(qe>>>26)|0,qe&=67108863,m=Math.imul(te,Y),n=(n=Math.imul(te,Re))+Math.imul(Ue,Y)|0,_=Math.imul(Ue,Re),m=m+Math.imul(Ae,Qe)|0,n=(n=n+Math.imul(Ae,Ye)|0)+Math.imul(he,Qe)|0,_=_+Math.imul(he,Ye)|0,m=m+Math.imul(ve,Mt)|0,n=(n=n+Math.imul(ve,kt)|0)+Math.imul(oe,Mt)|0,_=_+Math.imul(oe,kt)|0,m=m+Math.imul(De,we)|0,n=(n=n+Math.imul(De,J)|0)+Math.imul(ye,we)|0,_=_+Math.imul(ye,J)|0,m=m+Math.imul($e,He)|0,n=(n=n+Math.imul($e,at)|0)+Math.imul(We,He)|0,_=_+Math.imul(We,at)|0;var St=(L+(m=m+Math.imul(V,Gt)|0)|0)+((8191&(n=(n=n+Math.imul(V,ni)|0)+Math.imul(X,Gt)|0))<<13)|0;L=((_=_+Math.imul(X,ni)|0)+(n>>>13)|0)+(St>>>26)|0,St&=67108863,m=Math.imul(ae,Y),n=(n=Math.imul(ae,Re))+Math.imul(ge,Y)|0,_=Math.imul(ge,Re),m=m+Math.imul(te,Qe)|0,n=(n=n+Math.imul(te,Ye)|0)+Math.imul(Ue,Qe)|0,_=_+Math.imul(Ue,Ye)|0,m=m+Math.imul(Ae,Mt)|0,n=(n=n+Math.imul(Ae,kt)|0)+Math.imul(he,Mt)|0,_=_+Math.imul(he,kt)|0,m=m+Math.imul(ve,we)|0,n=(n=n+Math.imul(ve,J)|0)+Math.imul(oe,we)|0,_=_+Math.imul(oe,J)|0,m=m+Math.imul(De,He)|0,n=(n=n+Math.imul(De,at)|0)+Math.imul(ye,He)|0,_=_+Math.imul(ye,at)|0,m=m+Math.imul($e,Gt)|0,n=(n=n+Math.imul($e,ni)|0)+Math.imul(We,Gt)|0,_=_+Math.imul(We,ni)|0;var xe=(L+(m=m+Math.imul(V,tt)|0)|0)+((8191&(n=(n=n+Math.imul(V,vt)|0)+Math.imul(X,tt)|0))<<13)|0;L=((_=_+Math.imul(X,vt)|0)+(n>>>13)|0)+(xe>>>26)|0,xe&=67108863,m=Math.imul(Je,Y),n=(n=Math.imul(Je,Re))+Math.imul(dt,Y)|0,_=Math.imul(dt,Re),m=m+Math.imul(ae,Qe)|0,n=(n=n+Math.imul(ae,Ye)|0)+Math.imul(ge,Qe)|0,_=_+Math.imul(ge,Ye)|0,m=m+Math.imul(te,Mt)|0,n=(n=n+Math.imul(te,kt)|0)+Math.imul(Ue,Mt)|0,_=_+Math.imul(Ue,kt)|0,m=m+Math.imul(Ae,we)|0,n=(n=n+Math.imul(Ae,J)|0)+Math.imul(he,we)|0,_=_+Math.imul(he,J)|0,m=m+Math.imul(ve,He)|0,n=(n=n+Math.imul(ve,at)|0)+Math.imul(oe,He)|0,_=_+Math.imul(oe,at)|0,m=m+Math.imul(De,Gt)|0,n=(n=n+Math.imul(De,ni)|0)+Math.imul(ye,Gt)|0,_=_+Math.imul(ye,ni)|0,m=m+Math.imul($e,tt)|0,n=(n=n+Math.imul($e,vt)|0)+Math.imul(We,tt)|0,_=_+Math.imul(We,vt)|0;var Nt=(L+(m=m+Math.imul(V,Ut)|0)|0)+((8191&(n=(n=n+Math.imul(V,ht)|0)+Math.imul(X,Ut)|0))<<13)|0;L=((_=_+Math.imul(X,ht)|0)+(n>>>13)|0)+(Nt>>>26)|0,Nt&=67108863,m=Math.imul(pt,Y),n=(n=Math.imul(pt,Re))+Math.imul(ot,Y)|0,_=Math.imul(ot,Re),m=m+Math.imul(Je,Qe)|0,n=(n=n+Math.imul(Je,Ye)|0)+Math.imul(dt,Qe)|0,_=_+Math.imul(dt,Ye)|0,m=m+Math.imul(ae,Mt)|0,n=(n=n+Math.imul(ae,kt)|0)+Math.imul(ge,Mt)|0,_=_+Math.imul(ge,kt)|0,m=m+Math.imul(te,we)|0,n=(n=n+Math.imul(te,J)|0)+Math.imul(Ue,we)|0,_=_+Math.imul(Ue,J)|0,m=m+Math.imul(Ae,He)|0,n=(n=n+Math.imul(Ae,at)|0)+Math.imul(he,He)|0,_=_+Math.imul(he,at)|0,m=m+Math.imul(ve,Gt)|0,n=(n=n+Math.imul(ve,ni)|0)+Math.imul(oe,Gt)|0,_=_+Math.imul(oe,ni)|0,m=m+Math.imul(De,tt)|0,n=(n=n+Math.imul(De,vt)|0)+Math.imul(ye,tt)|0,_=_+Math.imul(ye,vt)|0,m=m+Math.imul($e,Ut)|0,n=(n=n+Math.imul($e,ht)|0)+Math.imul(We,Ut)|0,_=_+Math.imul(We,ht)|0;var qt=(L+(m=m+Math.imul(V,Oe)|0)|0)+((8191&(n=(n=n+Math.imul(V,et)|0)+Math.imul(X,Oe)|0))<<13)|0;L=((_=_+Math.imul(X,et)|0)+(n>>>13)|0)+(qt>>>26)|0,qt&=67108863,m=Math.imul(ke,Y),n=(n=Math.imul(ke,Re))+Math.imul(Ke,Y)|0,_=Math.imul(Ke,Re),m=m+Math.imul(pt,Qe)|0,n=(n=n+Math.imul(pt,Ye)|0)+Math.imul(ot,Qe)|0,_=_+Math.imul(ot,Ye)|0,m=m+Math.imul(Je,Mt)|0,n=(n=n+Math.imul(Je,kt)|0)+Math.imul(dt,Mt)|0,_=_+Math.imul(dt,kt)|0,m=m+Math.imul(ae,we)|0,n=(n=n+Math.imul(ae,J)|0)+Math.imul(ge,we)|0,_=_+Math.imul(ge,J)|0,m=m+Math.imul(te,He)|0,n=(n=n+Math.imul(te,at)|0)+Math.imul(Ue,He)|0,_=_+Math.imul(Ue,at)|0,m=m+Math.imul(Ae,Gt)|0,n=(n=n+Math.imul(Ae,ni)|0)+Math.imul(he,Gt)|0,_=_+Math.imul(he,ni)|0,m=m+Math.imul(ve,tt)|0,n=(n=n+Math.imul(ve,vt)|0)+Math.imul(oe,tt)|0,_=_+Math.imul(oe,vt)|0,m=m+Math.imul(De,Ut)|0,n=(n=n+Math.imul(De,ht)|0)+Math.imul(ye,Ut)|0,_=_+Math.imul(ye,ht)|0,m=m+Math.imul($e,Oe)|0,n=(n=n+Math.imul($e,et)|0)+Math.imul(We,Oe)|0,_=_+Math.imul(We,et)|0;var mi=(L+(m=m+Math.imul(V,ct)|0)|0)+((8191&(n=(n=n+Math.imul(V,Dt)|0)+Math.imul(X,ct)|0))<<13)|0;L=((_=_+Math.imul(X,Dt)|0)+(n>>>13)|0)+(mi>>>26)|0,mi&=67108863,m=Math.imul(ke,Qe),n=(n=Math.imul(ke,Ye))+Math.imul(Ke,Qe)|0,_=Math.imul(Ke,Ye),m=m+Math.imul(pt,Mt)|0,n=(n=n+Math.imul(pt,kt)|0)+Math.imul(ot,Mt)|0,_=_+Math.imul(ot,kt)|0,m=m+Math.imul(Je,we)|0,n=(n=n+Math.imul(Je,J)|0)+Math.imul(dt,we)|0,_=_+Math.imul(dt,J)|0,m=m+Math.imul(ae,He)|0,n=(n=n+Math.imul(ae,at)|0)+Math.imul(ge,He)|0,_=_+Math.imul(ge,at)|0,m=m+Math.imul(te,Gt)|0,n=(n=n+Math.imul(te,ni)|0)+Math.imul(Ue,Gt)|0,_=_+Math.imul(Ue,ni)|0,m=m+Math.imul(Ae,tt)|0,n=(n=n+Math.imul(Ae,vt)|0)+Math.imul(he,tt)|0,_=_+Math.imul(he,vt)|0,m=m+Math.imul(ve,Ut)|0,n=(n=n+Math.imul(ve,ht)|0)+Math.imul(oe,Ut)|0,_=_+Math.imul(oe,ht)|0,m=m+Math.imul(De,Oe)|0,n=(n=n+Math.imul(De,et)|0)+Math.imul(ye,Oe)|0,_=_+Math.imul(ye,et)|0;var Ci=(L+(m=m+Math.imul($e,ct)|0)|0)+((8191&(n=(n=n+Math.imul($e,Dt)|0)+Math.imul(We,ct)|0))<<13)|0;L=((_=_+Math.imul(We,Dt)|0)+(n>>>13)|0)+(Ci>>>26)|0,Ci&=67108863,m=Math.imul(ke,Mt),n=(n=Math.imul(ke,kt))+Math.imul(Ke,Mt)|0,_=Math.imul(Ke,kt),m=m+Math.imul(pt,we)|0,n=(n=n+Math.imul(pt,J)|0)+Math.imul(ot,we)|0,_=_+Math.imul(ot,J)|0,m=m+Math.imul(Je,He)|0,n=(n=n+Math.imul(Je,at)|0)+Math.imul(dt,He)|0,_=_+Math.imul(dt,at)|0,m=m+Math.imul(ae,Gt)|0,n=(n=n+Math.imul(ae,ni)|0)+Math.imul(ge,Gt)|0,_=_+Math.imul(ge,ni)|0,m=m+Math.imul(te,tt)|0,n=(n=n+Math.imul(te,vt)|0)+Math.imul(Ue,tt)|0,_=_+Math.imul(Ue,vt)|0,m=m+Math.imul(Ae,Ut)|0,n=(n=n+Math.imul(Ae,ht)|0)+Math.imul(he,Ut)|0,_=_+Math.imul(he,ht)|0,m=m+Math.imul(ve,Oe)|0,n=(n=n+Math.imul(ve,et)|0)+Math.imul(oe,Oe)|0,_=_+Math.imul(oe,et)|0;var Ii=(L+(m=m+Math.imul(De,ct)|0)|0)+((8191&(n=(n=n+Math.imul(De,Dt)|0)+Math.imul(ye,ct)|0))<<13)|0;L=((_=_+Math.imul(ye,Dt)|0)+(n>>>13)|0)+(Ii>>>26)|0,Ii&=67108863,m=Math.imul(ke,we),n=(n=Math.imul(ke,J))+Math.imul(Ke,we)|0,_=Math.imul(Ke,J),m=m+Math.imul(pt,He)|0,n=(n=n+Math.imul(pt,at)|0)+Math.imul(ot,He)|0,_=_+Math.imul(ot,at)|0,m=m+Math.imul(Je,Gt)|0,n=(n=n+Math.imul(Je,ni)|0)+Math.imul(dt,Gt)|0,_=_+Math.imul(dt,ni)|0,m=m+Math.imul(ae,tt)|0,n=(n=n+Math.imul(ae,vt)|0)+Math.imul(ge,tt)|0,_=_+Math.imul(ge,vt)|0,m=m+Math.imul(te,Ut)|0,n=(n=n+Math.imul(te,ht)|0)+Math.imul(Ue,Ut)|0,_=_+Math.imul(Ue,ht)|0,m=m+Math.imul(Ae,Oe)|0,n=(n=n+Math.imul(Ae,et)|0)+Math.imul(he,Oe)|0,_=_+Math.imul(he,et)|0;var Gi=(L+(m=m+Math.imul(ve,ct)|0)|0)+((8191&(n=(n=n+Math.imul(ve,Dt)|0)+Math.imul(oe,ct)|0))<<13)|0;L=((_=_+Math.imul(oe,Dt)|0)+(n>>>13)|0)+(Gi>>>26)|0,Gi&=67108863,m=Math.imul(ke,He),n=(n=Math.imul(ke,at))+Math.imul(Ke,He)|0,_=Math.imul(Ke,at),m=m+Math.imul(pt,Gt)|0,n=(n=n+Math.imul(pt,ni)|0)+Math.imul(ot,Gt)|0,_=_+Math.imul(ot,ni)|0,m=m+Math.imul(Je,tt)|0,n=(n=n+Math.imul(Je,vt)|0)+Math.imul(dt,tt)|0,_=_+Math.imul(dt,vt)|0,m=m+Math.imul(ae,Ut)|0,n=(n=n+Math.imul(ae,ht)|0)+Math.imul(ge,Ut)|0,_=_+Math.imul(ge,ht)|0,m=m+Math.imul(te,Oe)|0,n=(n=n+Math.imul(te,et)|0)+Math.imul(Ue,Oe)|0,_=_+Math.imul(Ue,et)|0;var Yi=(L+(m=m+Math.imul(Ae,ct)|0)|0)+((8191&(n=(n=n+Math.imul(Ae,Dt)|0)+Math.imul(he,ct)|0))<<13)|0;L=((_=_+Math.imul(he,Dt)|0)+(n>>>13)|0)+(Yi>>>26)|0,Yi&=67108863,m=Math.imul(ke,Gt),n=(n=Math.imul(ke,ni))+Math.imul(Ke,Gt)|0,_=Math.imul(Ke,ni),m=m+Math.imul(pt,tt)|0,n=(n=n+Math.imul(pt,vt)|0)+Math.imul(ot,tt)|0,_=_+Math.imul(ot,vt)|0,m=m+Math.imul(Je,Ut)|0,n=(n=n+Math.imul(Je,ht)|0)+Math.imul(dt,Ut)|0,_=_+Math.imul(dt,ht)|0,m=m+Math.imul(ae,Oe)|0,n=(n=n+Math.imul(ae,et)|0)+Math.imul(ge,Oe)|0,_=_+Math.imul(ge,et)|0;var Ji=(L+(m=m+Math.imul(te,ct)|0)|0)+((8191&(n=(n=n+Math.imul(te,Dt)|0)+Math.imul(Ue,ct)|0))<<13)|0;L=((_=_+Math.imul(Ue,Dt)|0)+(n>>>13)|0)+(Ji>>>26)|0,Ji&=67108863,m=Math.imul(ke,tt),n=(n=Math.imul(ke,vt))+Math.imul(Ke,tt)|0,_=Math.imul(Ke,vt),m=m+Math.imul(pt,Ut)|0,n=(n=n+Math.imul(pt,ht)|0)+Math.imul(ot,Ut)|0,_=_+Math.imul(ot,ht)|0,m=m+Math.imul(Je,Oe)|0,n=(n=n+Math.imul(Je,et)|0)+Math.imul(dt,Oe)|0,_=_+Math.imul(dt,et)|0;var Wt=(L+(m=m+Math.imul(ae,ct)|0)|0)+((8191&(n=(n=n+Math.imul(ae,Dt)|0)+Math.imul(ge,ct)|0))<<13)|0;L=((_=_+Math.imul(ge,Dt)|0)+(n>>>13)|0)+(Wt>>>26)|0,Wt&=67108863,m=Math.imul(ke,Ut),n=(n=Math.imul(ke,ht))+Math.imul(Ke,Ut)|0,_=Math.imul(Ke,ht),m=m+Math.imul(pt,Oe)|0,n=(n=n+Math.imul(pt,et)|0)+Math.imul(ot,Oe)|0,_=_+Math.imul(ot,et)|0;var Jt=(L+(m=m+Math.imul(Je,ct)|0)|0)+((8191&(n=(n=n+Math.imul(Je,Dt)|0)+Math.imul(dt,ct)|0))<<13)|0;L=((_=_+Math.imul(dt,Dt)|0)+(n>>>13)|0)+(Jt>>>26)|0,Jt&=67108863,m=Math.imul(ke,Oe),n=(n=Math.imul(ke,et))+Math.imul(Ke,Oe)|0,_=Math.imul(Ke,et);var fe=(L+(m=m+Math.imul(pt,ct)|0)|0)+((8191&(n=(n=n+Math.imul(pt,Dt)|0)+Math.imul(ot,ct)|0))<<13)|0;L=((_=_+Math.imul(ot,Dt)|0)+(n>>>13)|0)+(fe>>>26)|0,fe&=67108863;var lt=(L+(m=Math.imul(ke,ct))|0)+((8191&(n=(n=Math.imul(ke,Dt))+Math.imul(Ke,ct)|0))<<13)|0;return L=((_=Math.imul(Ke,Dt))+(n>>>13)|0)+(lt>>>26)|0,lt&=67108863,T[0]=pi,T[1]=Li,T[2]=xi,T[3]=Fi,T[4]=qe,T[5]=St,T[6]=xe,T[7]=Nt,T[8]=qt,T[9]=mi,T[10]=Ci,T[11]=Ii,T[12]=Gi,T[13]=Yi,T[14]=Ji,T[15]=Wt,T[16]=Jt,T[17]=fe,T[18]=lt,0!==L&&(T[19]=L,u.length++),u};function W(A,i,a){return(new K).mulp(A,i,a)}function K(A,i){this.x=A,this.y=i}Math.imul||(z=R),s.prototype.mulTo=function(i,a){var u,l=this.length+i.length;return u=10===this.length&&10===i.length?z(this,i,a):l<63?R(this,i,a):l<1024?function U(A,i,a){a.negative=i.negative^A.negative,a.length=A.length+i.length;for(var u=0,l=0,y=0;y<a.length-1;y++){var T=l;l=0;for(var L=67108863&u,m=Math.min(y,i.length-1),n=Math.max(0,y-A.length+1);n<=m;n++){var X=(0|A.words[y-n])*(0|i.words[n]),Le=67108863&X;L=67108863&(Le=Le+L|0),l+=(T=(T=T+(X/67108864|0)|0)+(Le>>>26)|0)>>>26,T&=67108863}a.words[y]=L,u=T,T=l}return 0!==u?a.words[y]=u:a.length--,a.strip()}(this,i,a):W(this,i,a),u},K.prototype.makeRBT=function(i){for(var a=new Array(i),u=s.prototype._countBits(i)-1,l=0;l<i;l++)a[l]=this.revBin(l,u,i);return a},K.prototype.revBin=function(i,a,u){if(0===i||i===u-1)return i;for(var l=0,y=0;y<a;y++)l|=(1&i)<<a-y-1,i>>=1;return l},K.prototype.permute=function(i,a,u,l,y,T){for(var L=0;L<T;L++)l[L]=a[i[L]],y[L]=u[i[L]]},K.prototype.transform=function(i,a,u,l,y,T){this.permute(T,i,a,u,l,y);for(var L=1;L<y;L<<=1)for(var m=L<<1,n=Math.cos(2*Math.PI/m),_=Math.sin(2*Math.PI/m),B=0;B<y;B+=m)for(var V=n,X=_,Le=0;Le<L;Le++){var $e=u[B+Le],We=l[B+Le],Fe=u[B+Le+L],De=l[B+Le+L],ye=V*Fe-X*De;De=V*De+X*Fe,u[B+Le]=$e+(Fe=ye),l[B+Le]=We+De,u[B+Le+L]=$e-Fe,l[B+Le+L]=We-De,Le!==m&&(ye=n*V-_*X,X=n*X+_*V,V=ye)}},K.prototype.guessLen13b=function(i,a){var u=1|Math.max(a,i),l=1&u,y=0;for(u=u/2|0;u;u>>>=1)y++;return 1<<y+1+l},K.prototype.conjugate=function(i,a,u){if(!(u<=1))for(var l=0;l<u/2;l++){var y=i[l];i[l]=i[u-l-1],i[u-l-1]=y,y=a[l],a[l]=-a[u-l-1],a[u-l-1]=-y}},K.prototype.normalize13b=function(i,a){for(var u=0,l=0;l<a/2;l++){var y=8192*Math.round(i[2*l+1]/a)+Math.round(i[2*l]/a)+u;i[l]=67108863&y,u=y<67108864?0:y/67108864|0}return i},K.prototype.convert13b=function(i,a,u,l){for(var y=0,T=0;T<a;T++)u[2*T]=8191&(y+=0|i[T]),u[2*T+1]=8191&(y>>>=13),y>>>=13;for(T=2*a;T<l;++T)u[T]=0;b(0===y),b(0==(-8192&y))},K.prototype.stub=function(i){for(var a=new Array(i),u=0;u<i;u++)a[u]=0;return a},K.prototype.mulp=function(i,a,u){var l=2*this.guessLen13b(i.length,a.length),y=this.makeRBT(l),T=this.stub(l),L=new Array(l),m=new Array(l),n=new Array(l),_=new Array(l),B=new Array(l),V=new Array(l),X=u.words;X.length=l,this.convert13b(i.words,i.length,L,l),this.convert13b(a.words,a.length,_,l),this.transform(L,T,m,n,l,y),this.transform(_,T,B,V,l,y);for(var Le=0;Le<l;Le++){var $e=m[Le]*B[Le]-n[Le]*V[Le];n[Le]=m[Le]*V[Le]+n[Le]*B[Le],m[Le]=$e}return this.conjugate(m,n,l),this.transform(m,n,X,T,l,y),this.conjugate(X,T,l),this.normalize13b(X,l),u.negative=i.negative^a.negative,u.length=i.length+a.length,u.strip()},s.prototype.mul=function(i){var a=new s(null);return a.words=new Array(this.length+i.length),this.mulTo(i,a)},s.prototype.mulf=function(i){var a=new s(null);return a.words=new Array(this.length+i.length),W(this,i,a)},s.prototype.imul=function(i){return this.clone().mulTo(i,this)},s.prototype.imuln=function(i){b("number"==typeof i),b(i<67108864);for(var a=0,u=0;u<this.length;u++){var l=(0|this.words[u])*i,y=(67108863&l)+(67108863&a);a>>=26,a+=l/67108864|0,a+=y>>>26,this.words[u]=67108863&y}return 0!==a&&(this.words[u]=a,this.length++),this},s.prototype.muln=function(i){return this.clone().imuln(i)},s.prototype.sqr=function(){return this.mul(this)},s.prototype.isqr=function(){return this.imul(this.clone())},s.prototype.pow=function(i){var a=function E(A){for(var i=new Array(A.bitLength()),a=0;a<i.length;a++){var l=a%26;i[a]=(A.words[a/26|0]&1<<l)>>>l}return i}(i);if(0===a.length)return new s(1);for(var u=this,l=0;l<a.length&&0===a[l];l++,u=u.sqr());if(++l<a.length)for(var y=u.sqr();l<a.length;l++,y=y.sqr())0!==a[l]&&(u=u.mul(y));return u},s.prototype.iushln=function(i){b("number"==typeof i&&i>=0);var y,a=i%26,u=(i-a)/26,l=67108863>>>26-a<<26-a;if(0!==a){var T=0;for(y=0;y<this.length;y++){var L=this.words[y]&l;this.words[y]=(0|this.words[y])-L<<a|T,T=L>>>26-a}T&&(this.words[y]=T,this.length++)}if(0!==u){for(y=this.length-1;y>=0;y--)this.words[y+u]=this.words[y];for(y=0;y<u;y++)this.words[y]=0;this.length+=u}return this.strip()},s.prototype.ishln=function(i){return b(0===this.negative),this.iushln(i)},s.prototype.iushrn=function(i,a,u){var l;b("number"==typeof i&&i>=0),l=a?(a-a%26)/26:0;var y=i%26,T=Math.min((i-y)/26,this.length),L=67108863^67108863>>>y<<y,m=u;if(l-=T,l=Math.max(0,l),m){for(var n=0;n<T;n++)m.words[n]=this.words[n];m.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>=l);n--){var B=0|this.words[n];this.words[n]=_<<26-y|B>>>y,_=B&L}return m&&0!==_&&(m.words[m.length++]=_),0===this.length&&(this.words[0]=0,this.length=1),this.strip()},s.prototype.ishrn=function(i,a,u){return b(0===this.negative),this.iushrn(i,a,u)},s.prototype.shln=function(i){return this.clone().ishln(i)},s.prototype.ushln=function(i){return this.clone().iushln(i)},s.prototype.shrn=function(i){return this.clone().ishrn(i)},s.prototype.ushrn=function(i){return this.clone().iushrn(i)},s.prototype.testn=function(i){b("number"==typeof i&&i>=0);var a=i%26,u=(i-a)/26;return!(this.length<=u||!(this.words[u]&1<<a))},s.prototype.imaskn=function(i){b("number"==typeof i&&i>=0);var a=i%26,u=(i-a)/26;return b(0===this.negative,"imaskn works only with positive numbers"),this.length<=u?this:(0!==a&&u++,this.length=Math.min(u,this.length),0!==a&&(this.words[this.length-1]&=67108863^67108863>>>a<<a),this.strip())},s.prototype.maskn=function(i){return this.clone().imaskn(i)},s.prototype.iaddn=function(i){return b("number"==typeof i),b(i<67108864),i<0?this.isubn(-i):0!==this.negative?1===this.length&&(0|this.words[0])<i?(this.words[0]=i-(0|this.words[0]),this.negative=0,this):(this.negative=0,this.isubn(i),this.negative=1,this):this._iaddn(i)},s.prototype._iaddn=function(i){this.words[0]+=i;for(var a=0;a<this.length&&this.words[a]>=67108864;a++)this.words[a]-=67108864,a===this.length-1?this.words[a+1]=1:this.words[a+1]++;return this.length=Math.max(this.length,a+1),this},s.prototype.isubn=function(i){if(b("number"==typeof i),b(i<67108864),i<0)return this.iaddn(-i);if(0!==this.negative)return this.negative=0,this.iaddn(i),this.negative=1,this;if(this.words[0]-=i,1===this.length&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var a=0;a<this.length&&this.words[a]<0;a++)this.words[a]+=67108864,this.words[a+1]-=1;return this.strip()},s.prototype.addn=function(i){return this.clone().iaddn(i)},s.prototype.subn=function(i){return this.clone().isubn(i)},s.prototype.iabs=function(){return this.negative=0,this},s.prototype.abs=function(){return this.clone().iabs()},s.prototype._ishlnsubmul=function(i,a,u){var y;this._expand(i.length+u);var T,L=0;for(y=0;y<i.length;y++){T=(0|this.words[y+u])+L;var m=(0|i.words[y])*a;L=((T-=67108863&m)>>26)-(m/67108864|0),this.words[y+u]=67108863&T}for(;y<this.length-u;y++)L=(T=(0|this.words[y+u])+L)>>26,this.words[y+u]=67108863&T;if(0===L)return this.strip();for(b(-1===L),L=0,y=0;y<this.length;y++)L=(T=-(0|this.words[y])+L)>>26,this.words[y]=67108863&T;return this.negative=1,this.strip()},s.prototype._wordDiv=function(i,a){var u,l=this.clone(),y=i,T=0|y.words[y.length-1];0!=(u=26-this._countBits(T))&&(y=y.ushln(u),l.iushln(u),T=0|y.words[y.length-1]);var n,m=l.length-y.length;if("mod"!==a){(n=new s(null)).length=m+1,n.words=new Array(n.length);for(var _=0;_<n.length;_++)n.words[_]=0}var B=l.clone()._ishlnsubmul(y,1,m);0===B.negative&&(l=B,n&&(n.words[m]=1));for(var V=m-1;V>=0;V--){var X=67108864*(0|l.words[y.length+V])+(0|l.words[y.length+V-1]);for(X=Math.min(X/T|0,67108863),l._ishlnsubmul(y,X,V);0!==l.negative;)X--,l.negative=0,l._ishlnsubmul(y,1,V),l.isZero()||(l.negative^=1);n&&(n.words[V]=X)}return n&&n.strip(),l.strip(),"div"!==a&&0!==u&&l.iushrn(u),{div:n||null,mod:l}},s.prototype.divmod=function(i,a,u){return b(!i.isZero()),this.isZero()?{div:new s(0),mod:new s(0)}:0!==this.negative&&0===i.negative?(T=this.neg().divmod(i,a),"mod"!==a&&(l=T.div.neg()),"div"!==a&&(y=T.mod.neg(),u&&0!==y.negative&&y.iadd(i)),{div:l,mod:y}):0===this.negative&&0!==i.negative?(T=this.divmod(i.neg(),a),"mod"!==a&&(l=T.div.neg()),{div:l,mod:T.mod}):this.negative&i.negative?(T=this.neg().divmod(i.neg(),a),"div"!==a&&(y=T.mod.neg(),u&&0!==y.negative&&y.isub(i)),{div:T.div,mod:y}):i.length>this.length||this.cmp(i)<0?{div:new s(0),mod:this}:1===i.length?"div"===a?{div:this.divn(i.words[0]),mod:null}:"mod"===a?{div:null,mod:new s(this.modn(i.words[0]))}:{div:this.divn(i.words[0]),mod:new s(this.modn(i.words[0]))}:this._wordDiv(i,a);var l,y,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 a=this.divmod(i);if(a.mod.isZero())return a.div;var u=0!==a.div.negative?a.mod.isub(i):a.mod,l=i.ushrn(1),y=i.andln(1),T=u.cmp(l);return T<0||1===y&&0===T?a.div:0!==a.div.negative?a.div.isubn(1):a.div.iaddn(1)},s.prototype.modn=function(i){b(i<=67108863);for(var a=(1<<26)%i,u=0,l=this.length-1;l>=0;l--)u=(a*u+(0|this.words[l]))%i;return u},s.prototype.idivn=function(i){b(i<=67108863);for(var a=0,u=this.length-1;u>=0;u--){var l=(0|this.words[u])+67108864*a;this.words[u]=l/i|0,a=l%i}return this.strip()},s.prototype.divn=function(i){return this.clone().idivn(i)},s.prototype.egcd=function(i){b(0===i.negative),b(!i.isZero());var a=this,u=i.clone();a=0!==a.negative?a.umod(i):a.clone();for(var l=new s(1),y=new s(0),T=new s(0),L=new s(1),m=0;a.isEven()&&u.isEven();)a.iushrn(1),u.iushrn(1),++m;for(var n=u.clone(),_=a.clone();!a.isZero();){for(var B=0,V=1;!(a.words[0]&V)&&B<26;++B,V<<=1);if(B>0)for(a.iushrn(B);B-- >0;)(l.isOdd()||y.isOdd())&&(l.iadd(n),y.isub(_)),l.iushrn(1),y.iushrn(1);for(var X=0,Le=1;!(u.words[0]&Le)&&X<26;++X,Le<<=1);if(X>0)for(u.iushrn(X);X-- >0;)(T.isOdd()||L.isOdd())&&(T.iadd(n),L.isub(_)),T.iushrn(1),L.iushrn(1);a.cmp(u)>=0?(a.isub(u),l.isub(T),y.isub(L)):(u.isub(a),T.isub(l),L.isub(y))}return{a:T,b:L,gcd:u.iushln(m)}},s.prototype._invmp=function(i){b(0===i.negative),b(!i.isZero());var B,a=this,u=i.clone();a=0!==a.negative?a.umod(i):a.clone();for(var l=new s(1),y=new s(0),T=u.clone();a.cmpn(1)>0&&u.cmpn(1)>0;){for(var L=0,m=1;!(a.words[0]&m)&&L<26;++L,m<<=1);if(L>0)for(a.iushrn(L);L-- >0;)l.isOdd()&&l.iadd(T),l.iushrn(1);for(var n=0,_=1;!(u.words[0]&_)&&n<26;++n,_<<=1);if(n>0)for(u.iushrn(n);n-- >0;)y.isOdd()&&y.iadd(T),y.iushrn(1);a.cmp(u)>=0?(a.isub(u),l.isub(y)):(u.isub(a),y.isub(l))}return(B=0===a.cmpn(1)?l:y).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 a=this.clone(),u=i.clone();a.negative=0,u.negative=0;for(var l=0;a.isEven()&&u.isEven();l++)a.iushrn(1),u.iushrn(1);for(;;){for(;a.isEven();)a.iushrn(1);for(;u.isEven();)u.iushrn(1);var y=a.cmp(u);if(y<0){var T=a;a=u,u=T}else if(0===y||0===u.cmpn(1))break;a.isub(u)}return u.iushln(l)},s.prototype.invm=function(i){return this.egcd(i).a.umod(i)},s.prototype.isEven=function(){return 0==(1&this.words[0])},s.prototype.isOdd=function(){return 1==(1&this.words[0])},s.prototype.andln=function(i){return this.words[0]&i},s.prototype.bincn=function(i){b("number"==typeof i);var a=i%26,u=(i-a)/26,l=1<<a;if(this.length<=u)return this._expand(u+1),this.words[u]|=l,this;for(var y=l,T=u;0!==y&&T<this.length;T++){var L=0|this.words[T];y=(L+=y)>>>26,this.words[T]=L&=67108863}return 0!==y&&(this.words[T]=y,this.length++),this},s.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},s.prototype.cmpn=function(i){var u,a=i<0;if(0!==this.negative&&!a)return-1;if(0===this.negative&&a)return 1;if(this.strip(),this.length>1)u=1;else{a&&(i=-i),b(i<=67108863,"Number is too big");var l=0|this.words[0];u=l===i?0:l<i?-1:1}return 0!==this.negative?0|-u:u},s.prototype.cmp=function(i){if(0!==this.negative&&0===i.negative)return-1;if(0===this.negative&&0!==i.negative)return 1;var a=this.ucmp(i);return 0!==this.negative?0|-a:a},s.prototype.ucmp=function(i){if(this.length>i.length)return 1;if(this.length<i.length)return-1;for(var a=0,u=this.length-1;u>=0;u--){var l=0|this.words[u],y=0|i.words[u];if(l!==y){l<y?a=-1:l>y&&(a=1);break}}return a},s.prototype.gtn=function(i){return 1===this.cmpn(i)},s.prototype.gt=function(i){return 1===this.cmp(i)},s.prototype.gten=function(i){return this.cmpn(i)>=0},s.prototype.gte=function(i){return this.cmp(i)>=0},s.prototype.ltn=function(i){return-1===this.cmpn(i)},s.prototype.lt=function(i){return-1===this.cmp(i)},s.prototype.lten=function(i){return this.cmpn(i)<=0},s.prototype.lte=function(i){return this.cmp(i)<=0},s.prototype.eqn=function(i){return 0===this.cmpn(i)},s.prototype.eq=function(i){return 0===this.cmp(i)},s.red=function(i){return new $(i)},s.prototype.toRed=function(i){return b(!this.red,"Already a number in reduction context"),b(0===this.negative,"red works only with positives"),i.convertTo(this)._forceRed(i)},s.prototype.fromRed=function(){return b(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 b(!this.red,"Already a number in reduction context"),this._forceRed(i)},s.prototype.redAdd=function(i){return b(this.red,"redAdd works only with red numbers"),this.red.add(this,i)},s.prototype.redIAdd=function(i){return b(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,i)},s.prototype.redSub=function(i){return b(this.red,"redSub works only with red numbers"),this.red.sub(this,i)},s.prototype.redISub=function(i){return b(this.red,"redISub works only with red numbers"),this.red.isub(this,i)},s.prototype.redShl=function(i){return b(this.red,"redShl works only with red numbers"),this.red.shl(this,i)},s.prototype.redMul=function(i){return b(this.red,"redMul works only with red numbers"),this.red._verify2(this,i),this.red.mul(this,i)},s.prototype.redIMul=function(i){return b(this.red,"redMul works only with red numbers"),this.red._verify2(this,i),this.red.imul(this,i)},s.prototype.redSqr=function(){return b(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},s.prototype.redISqr=function(){return b(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},s.prototype.redSqrt=function(){return b(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},s.prototype.redInvm=function(){return b(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},s.prototype.redNeg=function(){return b(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},s.prototype.redPow=function(i){return b(this.red&&!i.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,i)};var ee={k256:null,p224:null,p192:null,p25519:null};function ie(A,i){this.name=A,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 ue(){ie.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function le(){ie.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function ne(){ie.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function de(){ie.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function $(A){if("string"==typeof A){var i=s._prime(A);this.m=i.p,this.prime=i}else b(A.gtn(1),"modulus must be greater than 1"),this.m=A,this.prime=null}function me(A){$.call(this,A),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 i=new s(null);return i.words=new Array(Math.ceil(this.n/13)),i},ie.prototype.ireduce=function(i){var u,a=i;do{this.split(a,this.tmp),u=(a=(a=this.imulK(a)).iadd(this.tmp)).bitLength()}while(u>this.n);var l=u<this.n?-1:a.ucmp(this.p);return 0===l?(a.words[0]=0,a.length=1):l>0?a.isub(this.p):void 0!==a.strip?a.strip():a._strip(),a},ie.prototype.split=function(i,a){i.iushrn(this.n,0,a)},ie.prototype.imulK=function(i){return i.imul(this.k)},I(ue,ie),ue.prototype.split=function(i,a){for(var u=4194303,l=Math.min(i.length,9),y=0;y<l;y++)a.words[y]=i.words[y];if(a.length=l,i.length<=9)return i.words[0]=0,void(i.length=1);var T=i.words[9];for(a.words[a.length++]=T&u,y=10;y<i.length;y++){var L=0|i.words[y];i.words[y-10]=(L&u)<<4|T>>>22,T=L}i.words[y-10]=T>>>=22,i.length-=0===T&&i.length>10?10:9},ue.prototype.imulK=function(i){i.words[i.length]=0,i.words[i.length+1]=0,i.length+=2;for(var a=0,u=0;u<i.length;u++){var l=0|i.words[u];i.words[u]=67108863&(a+=977*l),a=64*l+(a/67108864|0)}return 0===i.words[i.length-1]&&(i.length--,0===i.words[i.length-1]&&i.length--),i},I(le,ie),I(ne,ie),I(de,ie),de.prototype.imulK=function(i){for(var a=0,u=0;u<i.length;u++){var l=19*(0|i.words[u])+a,y=67108863&l;l>>>=26,i.words[u]=y,a=l}return 0!==a&&(i.words[i.length++]=a),i},s._prime=function(i){if(ee[i])return ee[i];var a;if("k256"===i)a=new ue;else if("p224"===i)a=new le;else if("p192"===i)a=new ne;else{if("p25519"!==i)throw new Error("Unknown prime "+i);a=new de}return ee[i]=a,a},$.prototype._verify1=function(i){b(0===i.negative,"red works only with positives"),b(i.red,"red works only with red numbers")},$.prototype._verify2=function(i,a){b(0==(i.negative|a.negative),"red works only with positives"),b(i.red&&i.red===a.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,a){this._verify2(i,a);var u=i.add(a);return u.cmp(this.m)>=0&&u.isub(this.m),u._forceRed(this)},$.prototype.iadd=function(i,a){this._verify2(i,a);var u=i.iadd(a);return u.cmp(this.m)>=0&&u.isub(this.m),u},$.prototype.sub=function(i,a){this._verify2(i,a);var u=i.sub(a);return u.cmpn(0)<0&&u.iadd(this.m),u._forceRed(this)},$.prototype.isub=function(i,a){this._verify2(i,a);var u=i.isub(a);return u.cmpn(0)<0&&u.iadd(this.m),u},$.prototype.shl=function(i,a){return this._verify1(i),this.imod(i.ushln(a))},$.prototype.imul=function(i,a){return this._verify2(i,a),this.imod(i.imul(a))},$.prototype.mul=function(i,a){return this._verify2(i,a),this.imod(i.mul(a))},$.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 a=this.m.andln(3);if(b(a%2==1),3===a){var u=this.m.add(new s(1)).iushrn(2);return this.pow(i,u)}for(var l=this.m.subn(1),y=0;!l.isZero()&&0===l.andln(1);)y++,l.iushrn(1);b(!l.isZero());var T=new s(1).toRed(this),L=T.redNeg(),m=this.m.subn(1).iushrn(1),n=this.m.bitLength();for(n=new s(2*n*n).toRed(this);0!==this.pow(n,m).cmp(L);)n.redIAdd(L);for(var _=this.pow(n,l),B=this.pow(i,l.addn(1).iushrn(1)),V=this.pow(i,l),X=y;0!==V.cmp(T);){for(var Le=V,$e=0;0!==Le.cmp(T);$e++)Le=Le.redSqr();b($e<X);var We=this.pow(_,new s(1).iushln(X-$e-1));B=B.redMul(We),_=We.redSqr(),V=V.redMul(_),X=$e}return B},$.prototype.invm=function(i){var a=i._invmp(this.m);return 0!==a.negative?(a.negative=0,this.imod(a).redNeg()):this.imod(a)},$.prototype.pow=function(i,a){if(a.isZero())return new s(1).toRed(this);if(0===a.cmpn(1))return i.clone();var l=new Array(16);l[0]=new s(1).toRed(this),l[1]=i;for(var y=2;y<l.length;y++)l[y]=this.mul(l[y-1],i);var T=l[0],L=0,m=0,n=a.bitLength()%26;for(0===n&&(n=26),y=a.length-1;y>=0;y--){for(var _=a.words[y],B=n-1;B>=0;B--){var V=_>>B&1;T!==l[0]&&(T=this.sqr(T)),0!==V||0!==L?(L<<=1,L|=V,(4==++m||0===y&&0===B)&&(T=this.mul(T,l[L]),m=0,L=0)):m=0}n=26}return T},$.prototype.convertTo=function(i){var a=i.umod(this.m);return a===i?a.clone():a},$.prototype.convertFrom=function(i){var a=i.clone();return a.red=null,a},s.mont=function(i){return new me(i)},I(me,$),me.prototype.convertTo=function(i){return this.imod(i.ushln(this.shift))},me.prototype.convertFrom=function(i){var a=this.imod(i.mul(this.rinv));return a.red=null,a},me.prototype.imul=function(i,a){if(i.isZero()||a.isZero())return i.words[0]=0,i.length=1,i;var u=i.imul(a),l=u.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),y=u.isub(l).iushrn(this.shift),T=y;return y.cmp(this.m)>=0?T=y.isub(this.m):y.cmpn(0)<0&&(T=y.iadd(this.m)),T._forceRed(this)},me.prototype.mul=function(i,a){if(i.isZero()||a.isZero())return new s(0)._forceRed(this);var u=i.mul(a),l=u.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),y=u.isub(l).iushrn(this.shift),T=y;return y.cmp(this.m)>=0?T=y.isub(this.m):y.cmpn(0)<0&&(T=y.iadd(this.m)),T._forceRed(this)},me.prototype.invm=function(i){return this.imod(i._invmp(this.m).mul(this.r2))._forceRed(this)}}(Ve=p.nmd(Ve),this)},2391:Ve=>{function q(p,t){if(!p)throw new Error(t||"Assertion failed")}Ve.exports=q,q.equal=function(t,e,b){if(t!=e)throw new Error(b||"Assertion failed: "+t+" != "+e)}},8195:(Ve,q)=>{"use strict";var p=q;function e(I){return 1===I.length?"0"+I:I}function b(I){for(var s="",C=0;C<I.length;C++)s+=e(I[C].toString(16));return s}p.toArray=function t(I,s){if(Array.isArray(I))return I.slice();if(!I)return[];var C=[];if("string"!=typeof I){for(var h=0;h<I.length;h++)C[h]=0|I[h];return C}if("hex"===s)for((I=I.replace(/[^a-z0-9]+/gi,"")).length%2!=0&&(I="0"+I),h=0;h<I.length;h+=2)C.push(parseInt(I[h]+I[h+1],16));else for(h=0;h<I.length;h++){var P=I.charCodeAt(h),d=P>>8,S=255&P;d?C.push(d,S):C.push(S)}return C},p.zero2=e,p.toHex=b,p.encode=function(s,C){return"hex"===C?b(s):s}},5768:(Ve,q,p)=>{"use strict";Object.defineProperty(q,"__esModule",{value:!0});var t=p(842);Object.keys(t).forEach(function(e){"default"!==e&&Object.defineProperty(q,e,{enumerable:!0,get:function(){return t[e]}})})},2999:(Ve,q,p)=>{"use strict";var t=p(7977);q.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())});q.RSAPrivateKey=e;var b=t.define("RSAPublicKey",function(){this.seq().obj(this.key("modulus").int(),this.key("publicExponent").int())});q.RSAPublicKey=b;var I=t.define("SubjectPublicKeyInfo",function(){this.seq().obj(this.key("algorithm").use(s),this.key("subjectPublicKey").bitstr())});q.PublicKey=I;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())}),C=t.define("PrivateKeyInfo",function(){this.seq().obj(this.key("version").int(),this.key("algorithm").use(s),this.key("subjectPrivateKey").octstr())});q.PrivateKey=C;var h=t.define("EncryptedPrivateKeyInfo",function(){this.seq().obj(this.key("algorithm").seq().obj(this.key("id").objid(),this.key("decrypt").seq().obj(this.key("kde").seq().obj(this.key("id").objid(),this.key("kdeparams").seq().obj(this.key("salt").octstr(),this.key("iters").int())),this.key("cipher").seq().obj(this.key("algo").objid(),this.key("iv").octstr()))),this.key("subjectPrivateKey").octstr())});q.EncryptedPrivateKey=h;var P=t.define("DSAPrivateKey",function(){this.seq().obj(this.key("version").int(),this.key("p").int(),this.key("q").int(),this.key("g").int(),this.key("pub_key").int(),this.key("priv_key").int())});q.DSAPrivateKey=P,q.DSAparam=t.define("DSAparam",function(){this.int()});var d=t.define("ECPrivateKey",function(){this.seq().obj(this.key("version").int(),this.key("privateKey").octstr(),this.key("parameters").optional().explicit(0).use(S),this.key("publicKey").optional().explicit(1).bitstr())});q.ECPrivateKey=d;var S=t.define("ECParameters",function(){this.choice({namedCurve:this.objid()})});q.signature=t.define("signature",function(){this.seq().obj(this.key("r").int(),this.key("s").int())})},2390:(Ve,q,p)=>{"use strict";var t=p(7977),e=t.define("Time",function(){this.choice({utcTime:this.utctime(),generalTime:this.gentime()})}),b=t.define("AttributeTypeValue",function(){this.seq().obj(this.key("type").objid(),this.key("value").any())}),I=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(I),this.key("subjectPublicKey").bitstr())}),C=t.define("RelativeDistinguishedName",function(){this.setof(b)}),h=t.define("RDNSequence",function(){this.seqof(C)}),P=t.define("Name",function(){this.choice({rdnSequence:this.use(h)})}),d=t.define("Validity",function(){this.seq().obj(this.key("notBefore").use(e),this.key("notAfter").use(e))}),S=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(I),this.key("issuer").use(P),this.key("validity").use(d),this.key("subject").use(P),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(S).optional())}),O=t.define("X509Certificate",function(){this.seq().obj(this.key("tbsCertificate").use(w),this.key("signatureAlgorithm").use(I),this.key("signatureValue").bitstr())});Ve.exports=O},5269:(Ve,q,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,b=/^-----BEGIN ((?:.*? KEY)|CERTIFICATE)-----([0-9A-z\n\r+/=]+)-----END \1-----$/m,I=p(347),s=p(4330),C=p(3502).Buffer;Ve.exports=function(h,P){var w,d=h.toString(),S=d.match(t);if(S){var E="aes"+S[1],R=C.from(S[2],"hex"),z=C.from(S[3].replace(/[\r\n]/g,""),"base64"),U=I(P,R.slice(0,8),parseInt(S[1],10)).key,W=[],K=s.createDecipheriv(E,U,R);W.push(K.update(z)),W.push(K.final()),w=C.concat(W)}else{var O=d.match(b);w=C.from(O[2].replace(/[\r\n]/g,""),"base64")}return{tag:d.match(e)[1],data:w}}},2772:(Ve,q,p)=>{var t=p(2999),e=p(2562),b=p(5269),I=p(4330),s=p(9357),C=p(3502).Buffer;function h(d){var S;"object"==typeof d&&!C.isBuffer(d)&&(S=d.passphrase,d=d.key),"string"==typeof d&&(d=C.from(d));var R,z,w=b(d,S),O=w.tag,E=w.data;switch(O){case"CERTIFICATE":z=t.certificate.decode(E,"der").tbsCertificate.subjectPublicKeyInfo;case"PUBLIC KEY":switch(z||(z=t.PublicKey.decode(E,"der")),R=z.algorithm.algorithm.join(".")){case"1.2.840.113549.1.1.1":return t.RSAPublicKey.decode(z.subjectPublicKey.data,"der");case"1.2.840.10045.2.1":return z.subjectPrivateKey=z.subjectPublicKey,{type:"ec",data:z};case"1.2.840.10040.4.1":return z.algorithm.params.pub_key=t.DSAparam.decode(z.subjectPublicKey.data,"der"),{type:"dsa",data:z.algorithm.params};default:throw new Error("unknown key id "+R)}case"ENCRYPTED PRIVATE KEY":E=function P(d,S){var w=d.algorithm.decrypt.kde.kdeparams.salt,O=parseInt(d.algorithm.decrypt.kde.kdeparams.iters.toString(),10),E=e[d.algorithm.decrypt.cipher.algo.join(".")],R=d.algorithm.decrypt.cipher.iv,z=d.subjectPrivateKey,U=parseInt(E.split("-")[1],10)/8,W=s.pbkdf2Sync(S,w,O,U,"sha1"),K=I.createDecipheriv(E,W,R),ee=[];return ee.push(K.update(z)),ee.push(K.final()),C.concat(ee)}(E=t.EncryptedPrivateKey.decode(E,"der"),S);case"PRIVATE KEY":switch(R=(z=t.PrivateKey.decode(E,"der")).algorithm.algorithm.join(".")){case"1.2.840.113549.1.1.1":return t.RSAPrivateKey.decode(z.subjectPrivateKey,"der");case"1.2.840.10045.2.1":return{curve:z.algorithm.curve,privateKey:t.ECPrivateKey.decode(z.subjectPrivateKey,"der").privateKey};case"1.2.840.10040.4.1":return z.algorithm.params.priv_key=t.DSAparam.decode(z.subjectPrivateKey,"der"),{type:"dsa",params:z.algorithm.params};default:throw new Error("unknown key id "+R)}case"RSA PUBLIC KEY":return t.RSAPublicKey.decode(E,"der");case"RSA PRIVATE KEY":return t.RSAPrivateKey.decode(E,"der");case"DSA PRIVATE KEY":return{type:"dsa",params:t.DSAPrivateKey.decode(E,"der")};case"EC PRIVATE KEY":return{curve:(E=t.ECPrivateKey.decode(E,"der")).parameters.value,privateKey:E.privateKey};default:throw new Error("unknown key type "+O)}}Ve.exports=h,h.signature=t.signature},9357:(Ve,q,p)=>{q.pbkdf2=p(415),q.pbkdf2Sync=p(7472)},415:(Ve,q,p)=>{var C,w,t=p(3502).Buffer,e=p(2697),b=p(8867),I=p(7472),s=p(4566),h=global.crypto&&global.crypto.subtle,P={sha:"SHA-1","sha-1":"SHA-1",sha1:"SHA-1",sha256:"SHA-256","sha-256":"SHA-256",sha384:"SHA-384","sha-384":"SHA-384","sha-512":"SHA-512",sha512:"SHA-512"},d=[];function O(){return w||(w=global.process&&global.process.nextTick?global.process.nextTick:global.queueMicrotask?global.queueMicrotask:global.setImmediate?global.setImmediate:global.setTimeout)}function E(z,U,W,K,ee){return h.importKey("raw",z,{name:"PBKDF2"},!1,["deriveBits"]).then(function(ie){return h.deriveBits({name:"PBKDF2",salt:U,iterations:W,hash:{name:ee}},ie,K<<3)}).then(function(ie){return t.from(ie)})}Ve.exports=function(z,U,W,K,ee,ie){"function"==typeof ee&&(ie=ee,ee=void 0);var ue=P[(ee=ee||"sha1").toLowerCase()];if(ue&&"function"==typeof global.Promise){if(e(W,K),z=s(z,b,"Password"),U=s(U,b,"Salt"),"function"!=typeof ie)throw new Error("No callback provided to pbkdf2");!function R(z,U){z.then(function(W){O()(function(){U(null,W)})},function(W){O()(function(){U(W)})})}(function S(z){if(global.process&&!global.process.browser||!h||!h.importKey||!h.deriveBits)return Promise.resolve(!1);if(void 0!==d[z])return d[z];var U=E(C=C||t.alloc(8),C,10,128,z).then(function(){return!0}).catch(function(){return!1});return d[z]=U,U}(ue).then(function(le){return le?E(z,U,W,K,ue):I(z,U,W,K,ee)}),ie)}else O()(function(){var le;try{le=I(z,U,W,K,ee)}catch(ne){return ie(ne)}ie(null,le)})}},8867:Ve=>{var q;q=global.process&&global.process.browser?"utf-8":global.process&&global.process.version?parseInt(process.version.split(".")[0].slice(1),10)>=6?"utf-8":"binary":"utf-8",Ve.exports=q},2697:Ve=>{var q=Math.pow(2,30)-1;Ve.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>q||t!=t)throw new TypeError("Bad key length")}},7472:(Ve,q,p)=>{var t=p(5640),e=p(5634),b=p(5244),I=p(3502).Buffer,s=p(2697),C=p(8867),h=p(4566),P=I.alloc(128),d={md5:16,sha1:20,sha224:28,sha256:32,sha384:48,sha512:64,rmd160:20,ripemd160:20};function S(E,R,z){var U=function w(E){return"rmd160"===E||"ripemd160"===E?function z(U){return(new e).update(U).digest()}:"md5"===E?t:function R(U){return b(E).update(U).digest()}}(E),W="sha512"===E||"sha384"===E?128:64;R.length>W?R=U(R):R.length<W&&(R=I.concat([R,P],W));for(var K=I.allocUnsafe(W+d[E]),ee=I.allocUnsafe(W+d[E]),ie=0;ie<W;ie++)K[ie]=54^R[ie],ee[ie]=92^R[ie];var ue=I.allocUnsafe(W+z+4);K.copy(ue,0,0,W),this.ipad1=ue,this.ipad2=K,this.opad=ee,this.alg=E,this.blocksize=W,this.hash=U,this.size=d[E]}S.prototype.run=function(E,R){return E.copy(R,this.blocksize),this.hash(R).copy(this.opad,this.blocksize),this.hash(this.opad)},Ve.exports=function O(E,R,z,U,W){s(z,U);var K=new S(W=W||"sha1",E=h(E,C,"Password"),(R=h(R,C,"Salt")).length),ee=I.allocUnsafe(U),ie=I.allocUnsafe(R.length+4);R.copy(ie,0,0,R.length);for(var ue=0,le=d[W],ne=Math.ceil(U/le),de=1;de<=ne;de++){ie.writeUInt32BE(de,R.length);for(var $=K.run(ie,K.ipad1),me=$,A=1;A<z;A++){me=K.run(me,K.ipad2);for(var i=0;i<le;i++)$[i]^=me[i]}$.copy(ee,ue),ue+=le}return ee}},4566:(Ve,q,p)=>{var t=p(3502).Buffer;Ve.exports=function(e,b,I){if(t.isBuffer(e))return e;if("string"==typeof e)return t.from(e,b);if(ArrayBuffer.isView(e))return t.from(e.buffer);throw new TypeError(I+" must be a string, a Buffer, a typed array or a DataView")}},3701:(Ve,q,p)=>{q.publicEncrypt=p(6562),q.privateDecrypt=p(6705),q.privateEncrypt=function(e,b){return q.publicEncrypt(e,b,!0)},q.publicDecrypt=function(e,b){return q.privateDecrypt(e,b,!0)}},6945:(Ve,q,p)=>{var t=p(6386),e=p(3502).Buffer;function b(I){var s=e.allocUnsafe(4);return s.writeUInt32BE(I,0),s}Ve.exports=function(I,s){for(var P,C=e.alloc(0),h=0;C.length<s;)P=b(h++),C=e.concat([C,t("sha1").update(I).update(P).digest()]);return C.slice(0,s)}},2057:function(Ve,q,p){!function(t,e){"use strict";function b(A,i){if(!A)throw new Error(i||"Assertion failed")}function I(A,i){A.super_=i;var a=function(){};a.prototype=i.prototype,A.prototype=new a,A.prototype.constructor=A}function s(A,i,a){if(s.isBN(A))return A;this.negative=0,this.words=null,this.length=0,this.red=null,null!==A&&(("le"===i||"be"===i)&&(a=i,i=10),this._init(A||0,i||10,a||"be"))}var C;"object"==typeof t?t.exports=s:e.BN=s,s.BN=s,s.wordSize=26;try{C=typeof window<"u"&&typeof window.Buffer<"u"?window.Buffer:p(7108).Buffer}catch{}function h(A,i){var a=A.charCodeAt(i);return a>=65&&a<=70?a-55:a>=97&&a<=102?a-87:a-48&15}function P(A,i,a){var u=h(A,a);return a-1>=i&&(u|=h(A,a-1)<<4),u}function d(A,i,a,u){for(var l=0,y=Math.min(A.length,a),T=i;T<y;T++){var L=A.charCodeAt(T)-48;l*=u,l+=L>=49?L-49+10:L>=17?L-17+10:L}return l}s.isBN=function(i){return i instanceof s||null!==i&&"object"==typeof i&&i.constructor.wordSize===s.wordSize&&Array.isArray(i.words)},s.max=function(i,a){return i.cmp(a)>0?i:a},s.min=function(i,a){return i.cmp(a)<0?i:a},s.prototype._init=function(i,a,u){if("number"==typeof i)return this._initNumber(i,a,u);if("object"==typeof i)return this._initArray(i,a,u);"hex"===a&&(a=16),b(a===(0|a)&&a>=2&&a<=36);var l=0;"-"===(i=i.toString().replace(/\s+/g,""))[0]&&(l++,this.negative=1),l<i.length&&(16===a?this._parseHex(i,l,u):(this._parseBase(i,a,l),"le"===u&&this._initArray(this.toArray(),a,u)))},s.prototype._initNumber=function(i,a,u){i<0&&(this.negative=1,i=-i),i<67108864?(this.words=[67108863&i],this.length=1):i<4503599627370496?(this.words=[67108863&i,i/67108864&67108863],this.length=2):(b(i<9007199254740992),this.words=[67108863&i,i/67108864&67108863,1],this.length=3),"le"===u&&this._initArray(this.toArray(),a,u)},s.prototype._initArray=function(i,a,u){if(b("number"==typeof i.length),i.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(i.length/3),this.words=new Array(this.length);for(var l=0;l<this.length;l++)this.words[l]=0;var y,T,L=0;if("be"===u)for(l=i.length-1,y=0;l>=0;l-=3)this.words[y]|=(T=i[l]|i[l-1]<<8|i[l-2]<<16)<<L&67108863,this.words[y+1]=T>>>26-L&67108863,(L+=24)>=26&&(L-=26,y++);else if("le"===u)for(l=0,y=0;l<i.length;l+=3)this.words[y]|=(T=i[l]|i[l+1]<<8|i[l+2]<<16)<<L&67108863,this.words[y+1]=T>>>26-L&67108863,(L+=24)>=26&&(L-=26,y++);return this.strip()},s.prototype._parseHex=function(i,a,u){this.length=Math.ceil((i.length-a)/6),this.words=new Array(this.length);for(var l=0;l<this.length;l++)this.words[l]=0;var L,y=0,T=0;if("be"===u)for(l=i.length-1;l>=a;l-=2)L=P(i,a,l)<<y,this.words[T]|=67108863&L,y>=18?(y-=18,this.words[T+=1]|=L>>>26):y+=8;else for(l=(i.length-a)%2==0?a+1:a;l<i.length;l+=2)L=P(i,a,l)<<y,this.words[T]|=67108863&L,y>=18?(y-=18,this.words[T+=1]|=L>>>26):y+=8;this.strip()},s.prototype._parseBase=function(i,a,u){this.words=[0],this.length=1;for(var l=0,y=1;y<=67108863;y*=a)l++;l--,y=y/a|0;for(var T=i.length-u,L=T%l,m=Math.min(T,T-L)+u,n=0,_=u;_<m;_+=l)n=d(i,_,_+l,a),this.imuln(y),this.words[0]+n<67108864?this.words[0]+=n:this._iaddn(n);if(0!==L){var B=1;for(n=d(i,_,i.length,a),_=0;_<L;_++)B*=a;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 a=0;a<this.length;a++)i.words[a]=this.words[a];i.length=this.length,i.negative=this.negative,i.red=this.red},s.prototype.clone=function(){var i=new s(null);return this.copy(i),i},s.prototype._expand=function(i){for(;this.length<i;)this.words[this.length++]=0;return this},s.prototype.strip=function(){for(;this.length>1&&0===this.words[this.length-1];)this.length--;return this._normSign()},s.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},s.prototype.inspect=function(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"};var S=["","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],O=[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 R(A,i,a){a.negative=i.negative^A.negative;var u=A.length+i.length|0;a.length=u,u=u-1|0;var l=0|A.words[0],y=0|i.words[0],T=l*y,m=T/67108864|0;a.words[0]=67108863&T;for(var n=1;n<u;n++){for(var _=m>>>26,B=67108863&m,V=Math.min(n,i.length-1),X=Math.max(0,n-A.length+1);X<=V;X++)_+=(T=(l=0|A.words[n-X|0])*(y=0|i.words[X])+B)/67108864|0,B=67108863&T;a.words[n]=0|B,m=0|_}return 0!==m?a.words[n]=0|m:a.length--,a.strip()}s.prototype.toString=function(i,a){var u;if(a=0|a||1,16===(i=i||10)||"hex"===i){u="";for(var l=0,y=0,T=0;T<this.length;T++){var L=this.words[T],m=(16777215&(L<<l|y)).toString(16);u=0!=(y=L>>>24-l&16777215)||T!==this.length-1?S[6-m.length]+m+u:m+u,(l+=2)>=26&&(l-=26,T--)}for(0!==y&&(u=y.toString(16)+u);u.length%a!=0;)u="0"+u;return 0!==this.negative&&(u="-"+u),u}if(i===(0|i)&&i>=2&&i<=36){var n=w[i],_=O[i];u="";var B=this.clone();for(B.negative=0;!B.isZero();){var V=B.modn(_).toString(i);u=(B=B.idivn(_)).isZero()?V+u:S[n-V.length]+V+u}for(this.isZero()&&(u="0"+u);u.length%a!=0;)u="0"+u;return 0!==this.negative&&(u="-"+u),u}b(!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&&b(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-i:i},s.prototype.toJSON=function(){return this.toString(16)},s.prototype.toBuffer=function(i,a){return b(typeof C<"u"),this.toArrayLike(C,i,a)},s.prototype.toArray=function(i,a){return this.toArrayLike(Array,i,a)},s.prototype.toArrayLike=function(i,a,u){var l=this.byteLength(),y=u||Math.max(1,l);b(l<=y,"byte array longer than desired length"),b(y>0,"Requested array length <= 0"),this.strip();var m,n,T="le"===a,L=new i(y),_=this.clone();if(T){for(n=0;!_.isZero();n++)m=_.andln(255),_.iushrn(8),L[n]=m;for(;n<y;n++)L[n]=0}else{for(n=0;n<y-l;n++)L[n]=0;for(n=0;!_.isZero();n++)m=_.andln(255),_.iushrn(8),L[y-n-1]=m}return L},s.prototype._countBits=Math.clz32?function(i){return 32-Math.clz32(i)}:function(i){var a=i,u=0;return a>=4096&&(u+=13,a>>>=13),a>=64&&(u+=7,a>>>=7),a>=8&&(u+=4,a>>>=4),a>=2&&(u+=2,a>>>=2),u+a},s.prototype._zeroBits=function(i){if(0===i)return 26;var a=i,u=0;return 8191&a||(u+=13,a>>>=13),127&a||(u+=7,a>>>=7),15&a||(u+=4,a>>>=4),3&a||(u+=2,a>>>=2),1&a||u++,u},s.prototype.bitLength=function(){var a=this._countBits(this.words[this.length-1]);return 26*(this.length-1)+a},s.prototype.zeroBits=function(){if(this.isZero())return 0;for(var i=0,a=0;a<this.length;a++){var u=this._zeroBits(this.words[a]);if(i+=u,26!==u)break}return i},s.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},s.prototype.toTwos=function(i){return 0!==this.negative?this.abs().inotn(i).iaddn(1):this.clone()},s.prototype.fromTwos=function(i){return this.testn(i-1)?this.notn(i).iaddn(1).ineg():this.clone()},s.prototype.isNeg=function(){return 0!==this.negative},s.prototype.neg=function(){return this.clone().ineg()},s.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},s.prototype.iuor=function(i){for(;this.length<i.length;)this.words[this.length++]=0;for(var a=0;a<i.length;a++)this.words[a]=this.words[a]|i.words[a];return this.strip()},s.prototype.ior=function(i){return b(0==(this.negative|i.negative)),this.iuor(i)},s.prototype.or=function(i){return this.length>i.length?this.clone().ior(i):i.clone().ior(this)},s.prototype.uor=function(i){return this.length>i.length?this.clone().iuor(i):i.clone().iuor(this)},s.prototype.iuand=function(i){var a;a=this.length>i.length?i:this;for(var u=0;u<a.length;u++)this.words[u]=this.words[u]&i.words[u];return this.length=a.length,this.strip()},s.prototype.iand=function(i){return b(0==(this.negative|i.negative)),this.iuand(i)},s.prototype.and=function(i){return this.length>i.length?this.clone().iand(i):i.clone().iand(this)},s.prototype.uand=function(i){return this.length>i.length?this.clone().iuand(i):i.clone().iuand(this)},s.prototype.iuxor=function(i){var a,u;this.length>i.length?(a=this,u=i):(a=i,u=this);for(var l=0;l<u.length;l++)this.words[l]=a.words[l]^u.words[l];if(this!==a)for(;l<a.length;l++)this.words[l]=a.words[l];return this.length=a.length,this.strip()},s.prototype.ixor=function(i){return b(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){b("number"==typeof i&&i>=0);var a=0|Math.ceil(i/26),u=i%26;this._expand(a),u>0&&a--;for(var l=0;l<a;l++)this.words[l]=67108863&~this.words[l];return u>0&&(this.words[l]=~this.words[l]&67108863>>26-u),this.strip()},s.prototype.notn=function(i){return this.clone().inotn(i)},s.prototype.setn=function(i,a){b("number"==typeof i&&i>=0);var u=i/26|0,l=i%26;return this._expand(u+1),this.words[u]=a?this.words[u]|1<<l:this.words[u]&~(1<<l),this.strip()},s.prototype.iadd=function(i){var a,u,l;if(0!==this.negative&&0===i.negative)return this.negative=0,a=this.isub(i),this.negative^=1,this._normSign();if(0===this.negative&&0!==i.negative)return i.negative=0,a=this.isub(i),i.negative=1,a._normSign();this.length>i.length?(u=this,l=i):(u=i,l=this);for(var y=0,T=0;T<l.length;T++)this.words[T]=67108863&(a=(0|u.words[T])+(0|l.words[T])+y),y=a>>>26;for(;0!==y&&T<u.length;T++)this.words[T]=67108863&(a=(0|u.words[T])+y),y=a>>>26;if(this.length=u.length,0!==y)this.words[this.length]=y,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 a;return 0!==i.negative&&0===this.negative?(i.negative=0,a=this.sub(i),i.negative^=1,a):0===i.negative&&0!==this.negative?(this.negative=0,a=i.sub(this),this.negative=1,a):this.length>i.length?this.clone().iadd(i):i.clone().iadd(this)},s.prototype.isub=function(i){if(0!==i.negative){i.negative=0;var a=this.iadd(i);return i.negative=1,a._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(i),this.negative=1,this._normSign();var l,y,u=this.cmp(i);if(0===u)return this.negative=0,this.length=1,this.words[0]=0,this;u>0?(l=this,y=i):(l=i,y=this);for(var T=0,L=0;L<y.length;L++)T=(a=(0|l.words[L])-(0|y.words[L])+T)>>26,this.words[L]=67108863&a;for(;0!==T&&L<l.length;L++)T=(a=(0|l.words[L])+T)>>26,this.words[L]=67108863&a;if(0===T&&L<l.length&&l!==this)for(;L<l.length;L++)this.words[L]=l.words[L];return this.length=Math.max(this.length,L),l!==this&&(this.negative=1),this.strip()},s.prototype.sub=function(i){return this.clone().isub(i)};var z=function(i,a,u){var m,n,_,l=i.words,y=a.words,T=u.words,L=0,B=0|l[0],V=8191&B,X=B>>>13,Le=0|l[1],$e=8191&Le,We=Le>>>13,Fe=0|l[2],De=8191&Fe,ye=Fe>>>13,ce=0|l[3],ve=8191&ce,oe=ce>>>13,je=0|l[4],Ae=8191&je,he=je>>>13,Ce=0|l[5],te=8191&Ce,Ue=Ce>>>13,Be=0|l[6],ae=8191&Be,ge=Be>>>13,ft=0|l[7],Je=8191&ft,dt=ft>>>13,Et=0|l[8],pt=8191&Et,ot=Et>>>13,wt=0|l[9],ke=8191&wt,Ke=wt>>>13,xt=0|y[0],Y=8191&xt,Re=xt>>>13,Tt=0|y[1],Qe=8191&Tt,Ye=Tt>>>13,Ht=0|y[2],Mt=8191&Ht,kt=Ht>>>13,_t=0|y[3],we=8191&_t,J=_t>>>13,be=0|y[4],He=8191&be,at=be>>>13,ii=0|y[5],Gt=8191&ii,ni=ii>>>13,ut=0|y[6],tt=8191&ut,vt=ut>>>13,ti=0|y[7],Ut=8191&ti,ht=ti>>>13,Rt=0|y[8],Oe=8191&Rt,et=Rt>>>13,it=0|y[9],ct=8191&it,Dt=it>>>13;u.negative=i.negative^a.negative,u.length=19;var pi=(L+(m=Math.imul(V,Y))|0)+((8191&(n=(n=Math.imul(V,Re))+Math.imul(X,Y)|0))<<13)|0;L=((_=Math.imul(X,Re))+(n>>>13)|0)+(pi>>>26)|0,pi&=67108863,m=Math.imul($e,Y),n=(n=Math.imul($e,Re))+Math.imul(We,Y)|0,_=Math.imul(We,Re);var Li=(L+(m=m+Math.imul(V,Qe)|0)|0)+((8191&(n=(n=n+Math.imul(V,Ye)|0)+Math.imul(X,Qe)|0))<<13)|0;L=((_=_+Math.imul(X,Ye)|0)+(n>>>13)|0)+(Li>>>26)|0,Li&=67108863,m=Math.imul(De,Y),n=(n=Math.imul(De,Re))+Math.imul(ye,Y)|0,_=Math.imul(ye,Re),m=m+Math.imul($e,Qe)|0,n=(n=n+Math.imul($e,Ye)|0)+Math.imul(We,Qe)|0,_=_+Math.imul(We,Ye)|0;var xi=(L+(m=m+Math.imul(V,Mt)|0)|0)+((8191&(n=(n=n+Math.imul(V,kt)|0)+Math.imul(X,Mt)|0))<<13)|0;L=((_=_+Math.imul(X,kt)|0)+(n>>>13)|0)+(xi>>>26)|0,xi&=67108863,m=Math.imul(ve,Y),n=(n=Math.imul(ve,Re))+Math.imul(oe,Y)|0,_=Math.imul(oe,Re),m=m+Math.imul(De,Qe)|0,n=(n=n+Math.imul(De,Ye)|0)+Math.imul(ye,Qe)|0,_=_+Math.imul(ye,Ye)|0,m=m+Math.imul($e,Mt)|0,n=(n=n+Math.imul($e,kt)|0)+Math.imul(We,Mt)|0,_=_+Math.imul(We,kt)|0;var Fi=(L+(m=m+Math.imul(V,we)|0)|0)+((8191&(n=(n=n+Math.imul(V,J)|0)+Math.imul(X,we)|0))<<13)|0;L=((_=_+Math.imul(X,J)|0)+(n>>>13)|0)+(Fi>>>26)|0,Fi&=67108863,m=Math.imul(Ae,Y),n=(n=Math.imul(Ae,Re))+Math.imul(he,Y)|0,_=Math.imul(he,Re),m=m+Math.imul(ve,Qe)|0,n=(n=n+Math.imul(ve,Ye)|0)+Math.imul(oe,Qe)|0,_=_+Math.imul(oe,Ye)|0,m=m+Math.imul(De,Mt)|0,n=(n=n+Math.imul(De,kt)|0)+Math.imul(ye,Mt)|0,_=_+Math.imul(ye,kt)|0,m=m+Math.imul($e,we)|0,n=(n=n+Math.imul($e,J)|0)+Math.imul(We,we)|0,_=_+Math.imul(We,J)|0;var qe=(L+(m=m+Math.imul(V,He)|0)|0)+((8191&(n=(n=n+Math.imul(V,at)|0)+Math.imul(X,He)|0))<<13)|0;L=((_=_+Math.imul(X,at)|0)+(n>>>13)|0)+(qe>>>26)|0,qe&=67108863,m=Math.imul(te,Y),n=(n=Math.imul(te,Re))+Math.imul(Ue,Y)|0,_=Math.imul(Ue,Re),m=m+Math.imul(Ae,Qe)|0,n=(n=n+Math.imul(Ae,Ye)|0)+Math.imul(he,Qe)|0,_=_+Math.imul(he,Ye)|0,m=m+Math.imul(ve,Mt)|0,n=(n=n+Math.imul(ve,kt)|0)+Math.imul(oe,Mt)|0,_=_+Math.imul(oe,kt)|0,m=m+Math.imul(De,we)|0,n=(n=n+Math.imul(De,J)|0)+Math.imul(ye,we)|0,_=_+Math.imul(ye,J)|0,m=m+Math.imul($e,He)|0,n=(n=n+Math.imul($e,at)|0)+Math.imul(We,He)|0,_=_+Math.imul(We,at)|0;var St=(L+(m=m+Math.imul(V,Gt)|0)|0)+((8191&(n=(n=n+Math.imul(V,ni)|0)+Math.imul(X,Gt)|0))<<13)|0;L=((_=_+Math.imul(X,ni)|0)+(n>>>13)|0)+(St>>>26)|0,St&=67108863,m=Math.imul(ae,Y),n=(n=Math.imul(ae,Re))+Math.imul(ge,Y)|0,_=Math.imul(ge,Re),m=m+Math.imul(te,Qe)|0,n=(n=n+Math.imul(te,Ye)|0)+Math.imul(Ue,Qe)|0,_=_+Math.imul(Ue,Ye)|0,m=m+Math.imul(Ae,Mt)|0,n=(n=n+Math.imul(Ae,kt)|0)+Math.imul(he,Mt)|0,_=_+Math.imul(he,kt)|0,m=m+Math.imul(ve,we)|0,n=(n=n+Math.imul(ve,J)|0)+Math.imul(oe,we)|0,_=_+Math.imul(oe,J)|0,m=m+Math.imul(De,He)|0,n=(n=n+Math.imul(De,at)|0)+Math.imul(ye,He)|0,_=_+Math.imul(ye,at)|0,m=m+Math.imul($e,Gt)|0,n=(n=n+Math.imul($e,ni)|0)+Math.imul(We,Gt)|0,_=_+Math.imul(We,ni)|0;var xe=(L+(m=m+Math.imul(V,tt)|0)|0)+((8191&(n=(n=n+Math.imul(V,vt)|0)+Math.imul(X,tt)|0))<<13)|0;L=((_=_+Math.imul(X,vt)|0)+(n>>>13)|0)+(xe>>>26)|0,xe&=67108863,m=Math.imul(Je,Y),n=(n=Math.imul(Je,Re))+Math.imul(dt,Y)|0,_=Math.imul(dt,Re),m=m+Math.imul(ae,Qe)|0,n=(n=n+Math.imul(ae,Ye)|0)+Math.imul(ge,Qe)|0,_=_+Math.imul(ge,Ye)|0,m=m+Math.imul(te,Mt)|0,n=(n=n+Math.imul(te,kt)|0)+Math.imul(Ue,Mt)|0,_=_+Math.imul(Ue,kt)|0,m=m+Math.imul(Ae,we)|0,n=(n=n+Math.imul(Ae,J)|0)+Math.imul(he,we)|0,_=_+Math.imul(he,J)|0,m=m+Math.imul(ve,He)|0,n=(n=n+Math.imul(ve,at)|0)+Math.imul(oe,He)|0,_=_+Math.imul(oe,at)|0,m=m+Math.imul(De,Gt)|0,n=(n=n+Math.imul(De,ni)|0)+Math.imul(ye,Gt)|0,_=_+Math.imul(ye,ni)|0,m=m+Math.imul($e,tt)|0,n=(n=n+Math.imul($e,vt)|0)+Math.imul(We,tt)|0,_=_+Math.imul(We,vt)|0;var Nt=(L+(m=m+Math.imul(V,Ut)|0)|0)+((8191&(n=(n=n+Math.imul(V,ht)|0)+Math.imul(X,Ut)|0))<<13)|0;L=((_=_+Math.imul(X,ht)|0)+(n>>>13)|0)+(Nt>>>26)|0,Nt&=67108863,m=Math.imul(pt,Y),n=(n=Math.imul(pt,Re))+Math.imul(ot,Y)|0,_=Math.imul(ot,Re),m=m+Math.imul(Je,Qe)|0,n=(n=n+Math.imul(Je,Ye)|0)+Math.imul(dt,Qe)|0,_=_+Math.imul(dt,Ye)|0,m=m+Math.imul(ae,Mt)|0,n=(n=n+Math.imul(ae,kt)|0)+Math.imul(ge,Mt)|0,_=_+Math.imul(ge,kt)|0,m=m+Math.imul(te,we)|0,n=(n=n+Math.imul(te,J)|0)+Math.imul(Ue,we)|0,_=_+Math.imul(Ue,J)|0,m=m+Math.imul(Ae,He)|0,n=(n=n+Math.imul(Ae,at)|0)+Math.imul(he,He)|0,_=_+Math.imul(he,at)|0,m=m+Math.imul(ve,Gt)|0,n=(n=n+Math.imul(ve,ni)|0)+Math.imul(oe,Gt)|0,_=_+Math.imul(oe,ni)|0,m=m+Math.imul(De,tt)|0,n=(n=n+Math.imul(De,vt)|0)+Math.imul(ye,tt)|0,_=_+Math.imul(ye,vt)|0,m=m+Math.imul($e,Ut)|0,n=(n=n+Math.imul($e,ht)|0)+Math.imul(We,Ut)|0,_=_+Math.imul(We,ht)|0;var qt=(L+(m=m+Math.imul(V,Oe)|0)|0)+((8191&(n=(n=n+Math.imul(V,et)|0)+Math.imul(X,Oe)|0))<<13)|0;L=((_=_+Math.imul(X,et)|0)+(n>>>13)|0)+(qt>>>26)|0,qt&=67108863,m=Math.imul(ke,Y),n=(n=Math.imul(ke,Re))+Math.imul(Ke,Y)|0,_=Math.imul(Ke,Re),m=m+Math.imul(pt,Qe)|0,n=(n=n+Math.imul(pt,Ye)|0)+Math.imul(ot,Qe)|0,_=_+Math.imul(ot,Ye)|0,m=m+Math.imul(Je,Mt)|0,n=(n=n+Math.imul(Je,kt)|0)+Math.imul(dt,Mt)|0,_=_+Math.imul(dt,kt)|0,m=m+Math.imul(ae,we)|0,n=(n=n+Math.imul(ae,J)|0)+Math.imul(ge,we)|0,_=_+Math.imul(ge,J)|0,m=m+Math.imul(te,He)|0,n=(n=n+Math.imul(te,at)|0)+Math.imul(Ue,He)|0,_=_+Math.imul(Ue,at)|0,m=m+Math.imul(Ae,Gt)|0,n=(n=n+Math.imul(Ae,ni)|0)+Math.imul(he,Gt)|0,_=_+Math.imul(he,ni)|0,m=m+Math.imul(ve,tt)|0,n=(n=n+Math.imul(ve,vt)|0)+Math.imul(oe,tt)|0,_=_+Math.imul(oe,vt)|0,m=m+Math.imul(De,Ut)|0,n=(n=n+Math.imul(De,ht)|0)+Math.imul(ye,Ut)|0,_=_+Math.imul(ye,ht)|0,m=m+Math.imul($e,Oe)|0,n=(n=n+Math.imul($e,et)|0)+Math.imul(We,Oe)|0,_=_+Math.imul(We,et)|0;var mi=(L+(m=m+Math.imul(V,ct)|0)|0)+((8191&(n=(n=n+Math.imul(V,Dt)|0)+Math.imul(X,ct)|0))<<13)|0;L=((_=_+Math.imul(X,Dt)|0)+(n>>>13)|0)+(mi>>>26)|0,mi&=67108863,m=Math.imul(ke,Qe),n=(n=Math.imul(ke,Ye))+Math.imul(Ke,Qe)|0,_=Math.imul(Ke,Ye),m=m+Math.imul(pt,Mt)|0,n=(n=n+Math.imul(pt,kt)|0)+Math.imul(ot,Mt)|0,_=_+Math.imul(ot,kt)|0,m=m+Math.imul(Je,we)|0,n=(n=n+Math.imul(Je,J)|0)+Math.imul(dt,we)|0,_=_+Math.imul(dt,J)|0,m=m+Math.imul(ae,He)|0,n=(n=n+Math.imul(ae,at)|0)+Math.imul(ge,He)|0,_=_+Math.imul(ge,at)|0,m=m+Math.imul(te,Gt)|0,n=(n=n+Math.imul(te,ni)|0)+Math.imul(Ue,Gt)|0,_=_+Math.imul(Ue,ni)|0,m=m+Math.imul(Ae,tt)|0,n=(n=n+Math.imul(Ae,vt)|0)+Math.imul(he,tt)|0,_=_+Math.imul(he,vt)|0,m=m+Math.imul(ve,Ut)|0,n=(n=n+Math.imul(ve,ht)|0)+Math.imul(oe,Ut)|0,_=_+Math.imul(oe,ht)|0,m=m+Math.imul(De,Oe)|0,n=(n=n+Math.imul(De,et)|0)+Math.imul(ye,Oe)|0,_=_+Math.imul(ye,et)|0;var Ci=(L+(m=m+Math.imul($e,ct)|0)|0)+((8191&(n=(n=n+Math.imul($e,Dt)|0)+Math.imul(We,ct)|0))<<13)|0;L=((_=_+Math.imul(We,Dt)|0)+(n>>>13)|0)+(Ci>>>26)|0,Ci&=67108863,m=Math.imul(ke,Mt),n=(n=Math.imul(ke,kt))+Math.imul(Ke,Mt)|0,_=Math.imul(Ke,kt),m=m+Math.imul(pt,we)|0,n=(n=n+Math.imul(pt,J)|0)+Math.imul(ot,we)|0,_=_+Math.imul(ot,J)|0,m=m+Math.imul(Je,He)|0,n=(n=n+Math.imul(Je,at)|0)+Math.imul(dt,He)|0,_=_+Math.imul(dt,at)|0,m=m+Math.imul(ae,Gt)|0,n=(n=n+Math.imul(ae,ni)|0)+Math.imul(ge,Gt)|0,_=_+Math.imul(ge,ni)|0,m=m+Math.imul(te,tt)|0,n=(n=n+Math.imul(te,vt)|0)+Math.imul(Ue,tt)|0,_=_+Math.imul(Ue,vt)|0,m=m+Math.imul(Ae,Ut)|0,n=(n=n+Math.imul(Ae,ht)|0)+Math.imul(he,Ut)|0,_=_+Math.imul(he,ht)|0,m=m+Math.imul(ve,Oe)|0,n=(n=n+Math.imul(ve,et)|0)+Math.imul(oe,Oe)|0,_=_+Math.imul(oe,et)|0;var Ii=(L+(m=m+Math.imul(De,ct)|0)|0)+((8191&(n=(n=n+Math.imul(De,Dt)|0)+Math.imul(ye,ct)|0))<<13)|0;L=((_=_+Math.imul(ye,Dt)|0)+(n>>>13)|0)+(Ii>>>26)|0,Ii&=67108863,m=Math.imul(ke,we),n=(n=Math.imul(ke,J))+Math.imul(Ke,we)|0,_=Math.imul(Ke,J),m=m+Math.imul(pt,He)|0,n=(n=n+Math.imul(pt,at)|0)+Math.imul(ot,He)|0,_=_+Math.imul(ot,at)|0,m=m+Math.imul(Je,Gt)|0,n=(n=n+Math.imul(Je,ni)|0)+Math.imul(dt,Gt)|0,_=_+Math.imul(dt,ni)|0,m=m+Math.imul(ae,tt)|0,n=(n=n+Math.imul(ae,vt)|0)+Math.imul(ge,tt)|0,_=_+Math.imul(ge,vt)|0,m=m+Math.imul(te,Ut)|0,n=(n=n+Math.imul(te,ht)|0)+Math.imul(Ue,Ut)|0,_=_+Math.imul(Ue,ht)|0,m=m+Math.imul(Ae,Oe)|0,n=(n=n+Math.imul(Ae,et)|0)+Math.imul(he,Oe)|0,_=_+Math.imul(he,et)|0;var Gi=(L+(m=m+Math.imul(ve,ct)|0)|0)+((8191&(n=(n=n+Math.imul(ve,Dt)|0)+Math.imul(oe,ct)|0))<<13)|0;L=((_=_+Math.imul(oe,Dt)|0)+(n>>>13)|0)+(Gi>>>26)|0,Gi&=67108863,m=Math.imul(ke,He),n=(n=Math.imul(ke,at))+Math.imul(Ke,He)|0,_=Math.imul(Ke,at),m=m+Math.imul(pt,Gt)|0,n=(n=n+Math.imul(pt,ni)|0)+Math.imul(ot,Gt)|0,_=_+Math.imul(ot,ni)|0,m=m+Math.imul(Je,tt)|0,n=(n=n+Math.imul(Je,vt)|0)+Math.imul(dt,tt)|0,_=_+Math.imul(dt,vt)|0,m=m+Math.imul(ae,Ut)|0,n=(n=n+Math.imul(ae,ht)|0)+Math.imul(ge,Ut)|0,_=_+Math.imul(ge,ht)|0,m=m+Math.imul(te,Oe)|0,n=(n=n+Math.imul(te,et)|0)+Math.imul(Ue,Oe)|0,_=_+Math.imul(Ue,et)|0;var Yi=(L+(m=m+Math.imul(Ae,ct)|0)|0)+((8191&(n=(n=n+Math.imul(Ae,Dt)|0)+Math.imul(he,ct)|0))<<13)|0;L=((_=_+Math.imul(he,Dt)|0)+(n>>>13)|0)+(Yi>>>26)|0,Yi&=67108863,m=Math.imul(ke,Gt),n=(n=Math.imul(ke,ni))+Math.imul(Ke,Gt)|0,_=Math.imul(Ke,ni),m=m+Math.imul(pt,tt)|0,n=(n=n+Math.imul(pt,vt)|0)+Math.imul(ot,tt)|0,_=_+Math.imul(ot,vt)|0,m=m+Math.imul(Je,Ut)|0,n=(n=n+Math.imul(Je,ht)|0)+Math.imul(dt,Ut)|0,_=_+Math.imul(dt,ht)|0,m=m+Math.imul(ae,Oe)|0,n=(n=n+Math.imul(ae,et)|0)+Math.imul(ge,Oe)|0,_=_+Math.imul(ge,et)|0;var Ji=(L+(m=m+Math.imul(te,ct)|0)|0)+((8191&(n=(n=n+Math.imul(te,Dt)|0)+Math.imul(Ue,ct)|0))<<13)|0;L=((_=_+Math.imul(Ue,Dt)|0)+(n>>>13)|0)+(Ji>>>26)|0,Ji&=67108863,m=Math.imul(ke,tt),n=(n=Math.imul(ke,vt))+Math.imul(Ke,tt)|0,_=Math.imul(Ke,vt),m=m+Math.imul(pt,Ut)|0,n=(n=n+Math.imul(pt,ht)|0)+Math.imul(ot,Ut)|0,_=_+Math.imul(ot,ht)|0,m=m+Math.imul(Je,Oe)|0,n=(n=n+Math.imul(Je,et)|0)+Math.imul(dt,Oe)|0,_=_+Math.imul(dt,et)|0;var Wt=(L+(m=m+Math.imul(ae,ct)|0)|0)+((8191&(n=(n=n+Math.imul(ae,Dt)|0)+Math.imul(ge,ct)|0))<<13)|0;L=((_=_+Math.imul(ge,Dt)|0)+(n>>>13)|0)+(Wt>>>26)|0,Wt&=67108863,m=Math.imul(ke,Ut),n=(n=Math.imul(ke,ht))+Math.imul(Ke,Ut)|0,_=Math.imul(Ke,ht),m=m+Math.imul(pt,Oe)|0,n=(n=n+Math.imul(pt,et)|0)+Math.imul(ot,Oe)|0,_=_+Math.imul(ot,et)|0;var Jt=(L+(m=m+Math.imul(Je,ct)|0)|0)+((8191&(n=(n=n+Math.imul(Je,Dt)|0)+Math.imul(dt,ct)|0))<<13)|0;L=((_=_+Math.imul(dt,Dt)|0)+(n>>>13)|0)+(Jt>>>26)|0,Jt&=67108863,m=Math.imul(ke,Oe),n=(n=Math.imul(ke,et))+Math.imul(Ke,Oe)|0,_=Math.imul(Ke,et);var fe=(L+(m=m+Math.imul(pt,ct)|0)|0)+((8191&(n=(n=n+Math.imul(pt,Dt)|0)+Math.imul(ot,ct)|0))<<13)|0;L=((_=_+Math.imul(ot,Dt)|0)+(n>>>13)|0)+(fe>>>26)|0,fe&=67108863;var lt=(L+(m=Math.imul(ke,ct))|0)+((8191&(n=(n=Math.imul(ke,Dt))+Math.imul(Ke,ct)|0))<<13)|0;return L=((_=Math.imul(Ke,Dt))+(n>>>13)|0)+(lt>>>26)|0,lt&=67108863,T[0]=pi,T[1]=Li,T[2]=xi,T[3]=Fi,T[4]=qe,T[5]=St,T[6]=xe,T[7]=Nt,T[8]=qt,T[9]=mi,T[10]=Ci,T[11]=Ii,T[12]=Gi,T[13]=Yi,T[14]=Ji,T[15]=Wt,T[16]=Jt,T[17]=fe,T[18]=lt,0!==L&&(T[19]=L,u.length++),u};function W(A,i,a){return(new K).mulp(A,i,a)}function K(A,i){this.x=A,this.y=i}Math.imul||(z=R),s.prototype.mulTo=function(i,a){var u,l=this.length+i.length;return u=10===this.length&&10===i.length?z(this,i,a):l<63?R(this,i,a):l<1024?function U(A,i,a){a.negative=i.negative^A.negative,a.length=A.length+i.length;for(var u=0,l=0,y=0;y<a.length-1;y++){var T=l;l=0;for(var L=67108863&u,m=Math.min(y,i.length-1),n=Math.max(0,y-A.length+1);n<=m;n++){var X=(0|A.words[y-n])*(0|i.words[n]),Le=67108863&X;L=67108863&(Le=Le+L|0),l+=(T=(T=T+(X/67108864|0)|0)+(Le>>>26)|0)>>>26,T&=67108863}a.words[y]=L,u=T,T=l}return 0!==u?a.words[y]=u:a.length--,a.strip()}(this,i,a):W(this,i,a),u},K.prototype.makeRBT=function(i){for(var a=new Array(i),u=s.prototype._countBits(i)-1,l=0;l<i;l++)a[l]=this.revBin(l,u,i);return a},K.prototype.revBin=function(i,a,u){if(0===i||i===u-1)return i;for(var l=0,y=0;y<a;y++)l|=(1&i)<<a-y-1,i>>=1;return l},K.prototype.permute=function(i,a,u,l,y,T){for(var L=0;L<T;L++)l[L]=a[i[L]],y[L]=u[i[L]]},K.prototype.transform=function(i,a,u,l,y,T){this.permute(T,i,a,u,l,y);for(var L=1;L<y;L<<=1)for(var m=L<<1,n=Math.cos(2*Math.PI/m),_=Math.sin(2*Math.PI/m),B=0;B<y;B+=m)for(var V=n,X=_,Le=0;Le<L;Le++){var $e=u[B+Le],We=l[B+Le],Fe=u[B+Le+L],De=l[B+Le+L],ye=V*Fe-X*De;De=V*De+X*Fe,u[B+Le]=$e+(Fe=ye),l[B+Le]=We+De,u[B+Le+L]=$e-Fe,l[B+Le+L]=We-De,Le!==m&&(ye=n*V-_*X,X=n*X+_*V,V=ye)}},K.prototype.guessLen13b=function(i,a){var u=1|Math.max(a,i),l=1&u,y=0;for(u=u/2|0;u;u>>>=1)y++;return 1<<y+1+l},K.prototype.conjugate=function(i,a,u){if(!(u<=1))for(var l=0;l<u/2;l++){var y=i[l];i[l]=i[u-l-1],i[u-l-1]=y,y=a[l],a[l]=-a[u-l-1],a[u-l-1]=-y}},K.prototype.normalize13b=function(i,a){for(var u=0,l=0;l<a/2;l++){var y=8192*Math.round(i[2*l+1]/a)+Math.round(i[2*l]/a)+u;i[l]=67108863&y,u=y<67108864?0:y/67108864|0}return i},K.prototype.convert13b=function(i,a,u,l){for(var y=0,T=0;T<a;T++)u[2*T]=8191&(y+=0|i[T]),u[2*T+1]=8191&(y>>>=13),y>>>=13;for(T=2*a;T<l;++T)u[T]=0;b(0===y),b(0==(-8192&y))},K.prototype.stub=function(i){for(var a=new Array(i),u=0;u<i;u++)a[u]=0;return a},K.prototype.mulp=function(i,a,u){var l=2*this.guessLen13b(i.length,a.length),y=this.makeRBT(l),T=this.stub(l),L=new Array(l),m=new Array(l),n=new Array(l),_=new Array(l),B=new Array(l),V=new Array(l),X=u.words;X.length=l,this.convert13b(i.words,i.length,L,l),this.convert13b(a.words,a.length,_,l),this.transform(L,T,m,n,l,y),this.transform(_,T,B,V,l,y);for(var Le=0;Le<l;Le++){var $e=m[Le]*B[Le]-n[Le]*V[Le];n[Le]=m[Le]*V[Le]+n[Le]*B[Le],m[Le]=$e}return this.conjugate(m,n,l),this.transform(m,n,X,T,l,y),this.conjugate(X,T,l),this.normalize13b(X,l),u.negative=i.negative^a.negative,u.length=i.length+a.length,u.strip()},s.prototype.mul=function(i){var a=new s(null);return a.words=new Array(this.length+i.length),this.mulTo(i,a)},s.prototype.mulf=function(i){var a=new s(null);return a.words=new Array(this.length+i.length),W(this,i,a)},s.prototype.imul=function(i){return this.clone().mulTo(i,this)},s.prototype.imuln=function(i){b("number"==typeof i),b(i<67108864);for(var a=0,u=0;u<this.length;u++){var l=(0|this.words[u])*i,y=(67108863&l)+(67108863&a);a>>=26,a+=l/67108864|0,a+=y>>>26,this.words[u]=67108863&y}return 0!==a&&(this.words[u]=a,this.length++),this},s.prototype.muln=function(i){return this.clone().imuln(i)},s.prototype.sqr=function(){return this.mul(this)},s.prototype.isqr=function(){return this.imul(this.clone())},s.prototype.pow=function(i){var a=function E(A){for(var i=new Array(A.bitLength()),a=0;a<i.length;a++){var l=a%26;i[a]=(A.words[a/26|0]&1<<l)>>>l}return i}(i);if(0===a.length)return new s(1);for(var u=this,l=0;l<a.length&&0===a[l];l++,u=u.sqr());if(++l<a.length)for(var y=u.sqr();l<a.length;l++,y=y.sqr())0!==a[l]&&(u=u.mul(y));return u},s.prototype.iushln=function(i){b("number"==typeof i&&i>=0);var y,a=i%26,u=(i-a)/26,l=67108863>>>26-a<<26-a;if(0!==a){var T=0;for(y=0;y<this.length;y++){var L=this.words[y]&l;this.words[y]=(0|this.words[y])-L<<a|T,T=L>>>26-a}T&&(this.words[y]=T,this.length++)}if(0!==u){for(y=this.length-1;y>=0;y--)this.words[y+u]=this.words[y];for(y=0;y<u;y++)this.words[y]=0;this.length+=u}return this.strip()},s.prototype.ishln=function(i){return b(0===this.negative),this.iushln(i)},s.prototype.iushrn=function(i,a,u){var l;b("number"==typeof i&&i>=0),l=a?(a-a%26)/26:0;var y=i%26,T=Math.min((i-y)/26,this.length),L=67108863^67108863>>>y<<y,m=u;if(l-=T,l=Math.max(0,l),m){for(var n=0;n<T;n++)m.words[n]=this.words[n];m.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>=l);n--){var B=0|this.words[n];this.words[n]=_<<26-y|B>>>y,_=B&L}return m&&0!==_&&(m.words[m.length++]=_),0===this.length&&(this.words[0]=0,this.length=1),this.strip()},s.prototype.ishrn=function(i,a,u){return b(0===this.negative),this.iushrn(i,a,u)},s.prototype.shln=function(i){return this.clone().ishln(i)},s.prototype.ushln=function(i){return this.clone().iushln(i)},s.prototype.shrn=function(i){return this.clone().ishrn(i)},s.prototype.ushrn=function(i){return this.clone().iushrn(i)},s.prototype.testn=function(i){b("number"==typeof i&&i>=0);var a=i%26,u=(i-a)/26;return!(this.length<=u||!(this.words[u]&1<<a))},s.prototype.imaskn=function(i){b("number"==typeof i&&i>=0);var a=i%26,u=(i-a)/26;return b(0===this.negative,"imaskn works only with positive numbers"),this.length<=u?this:(0!==a&&u++,this.length=Math.min(u,this.length),0!==a&&(this.words[this.length-1]&=67108863^67108863>>>a<<a),this.strip())},s.prototype.maskn=function(i){return this.clone().imaskn(i)},s.prototype.iaddn=function(i){return b("number"==typeof i),b(i<67108864),i<0?this.isubn(-i):0!==this.negative?1===this.length&&(0|this.words[0])<i?(this.words[0]=i-(0|this.words[0]),this.negative=0,this):(this.negative=0,this.isubn(i),this.negative=1,this):this._iaddn(i)},s.prototype._iaddn=function(i){this.words[0]+=i;for(var a=0;a<this.length&&this.words[a]>=67108864;a++)this.words[a]-=67108864,a===this.length-1?this.words[a+1]=1:this.words[a+1]++;return this.length=Math.max(this.length,a+1),this},s.prototype.isubn=function(i){if(b("number"==typeof i),b(i<67108864),i<0)return this.iaddn(-i);if(0!==this.negative)return this.negative=0,this.iaddn(i),this.negative=1,this;if(this.words[0]-=i,1===this.length&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var a=0;a<this.length&&this.words[a]<0;a++)this.words[a]+=67108864,this.words[a+1]-=1;return this.strip()},s.prototype.addn=function(i){return this.clone().iaddn(i)},s.prototype.subn=function(i){return this.clone().isubn(i)},s.prototype.iabs=function(){return this.negative=0,this},s.prototype.abs=function(){return this.clone().iabs()},s.prototype._ishlnsubmul=function(i,a,u){var y;this._expand(i.length+u);var T,L=0;for(y=0;y<i.length;y++){T=(0|this.words[y+u])+L;var m=(0|i.words[y])*a;L=((T-=67108863&m)>>26)-(m/67108864|0),this.words[y+u]=67108863&T}for(;y<this.length-u;y++)L=(T=(0|this.words[y+u])+L)>>26,this.words[y+u]=67108863&T;if(0===L)return this.strip();for(b(-1===L),L=0,y=0;y<this.length;y++)L=(T=-(0|this.words[y])+L)>>26,this.words[y]=67108863&T;return this.negative=1,this.strip()},s.prototype._wordDiv=function(i,a){var u,l=this.clone(),y=i,T=0|y.words[y.length-1];0!=(u=26-this._countBits(T))&&(y=y.ushln(u),l.iushln(u),T=0|y.words[y.length-1]);var n,m=l.length-y.length;if("mod"!==a){(n=new s(null)).length=m+1,n.words=new Array(n.length);for(var _=0;_<n.length;_++)n.words[_]=0}var B=l.clone()._ishlnsubmul(y,1,m);0===B.negative&&(l=B,n&&(n.words[m]=1));for(var V=m-1;V>=0;V--){var X=67108864*(0|l.words[y.length+V])+(0|l.words[y.length+V-1]);for(X=Math.min(X/T|0,67108863),l._ishlnsubmul(y,X,V);0!==l.negative;)X--,l.negative=0,l._ishlnsubmul(y,1,V),l.isZero()||(l.negative^=1);n&&(n.words[V]=X)}return n&&n.strip(),l.strip(),"div"!==a&&0!==u&&l.iushrn(u),{div:n||null,mod:l}},s.prototype.divmod=function(i,a,u){return b(!i.isZero()),this.isZero()?{div:new s(0),mod:new s(0)}:0!==this.negative&&0===i.negative?(T=this.neg().divmod(i,a),"mod"!==a&&(l=T.div.neg()),"div"!==a&&(y=T.mod.neg(),u&&0!==y.negative&&y.iadd(i)),{div:l,mod:y}):0===this.negative&&0!==i.negative?(T=this.divmod(i.neg(),a),"mod"!==a&&(l=T.div.neg()),{div:l,mod:T.mod}):this.negative&i.negative?(T=this.neg().divmod(i.neg(),a),"div"!==a&&(y=T.mod.neg(),u&&0!==y.negative&&y.isub(i)),{div:T.div,mod:y}):i.length>this.length||this.cmp(i)<0?{div:new s(0),mod:this}:1===i.length?"div"===a?{div:this.divn(i.words[0]),mod:null}:"mod"===a?{div:null,mod:new s(this.modn(i.words[0]))}:{div:this.divn(i.words[0]),mod:new s(this.modn(i.words[0]))}:this._wordDiv(i,a);var l,y,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 a=this.divmod(i);if(a.mod.isZero())return a.div;var u=0!==a.div.negative?a.mod.isub(i):a.mod,l=i.ushrn(1),y=i.andln(1),T=u.cmp(l);return T<0||1===y&&0===T?a.div:0!==a.div.negative?a.div.isubn(1):a.div.iaddn(1)},s.prototype.modn=function(i){b(i<=67108863);for(var a=(1<<26)%i,u=0,l=this.length-1;l>=0;l--)u=(a*u+(0|this.words[l]))%i;return u},s.prototype.idivn=function(i){b(i<=67108863);for(var a=0,u=this.length-1;u>=0;u--){var l=(0|this.words[u])+67108864*a;this.words[u]=l/i|0,a=l%i}return this.strip()},s.prototype.divn=function(i){return this.clone().idivn(i)},s.prototype.egcd=function(i){b(0===i.negative),b(!i.isZero());var a=this,u=i.clone();a=0!==a.negative?a.umod(i):a.clone();for(var l=new s(1),y=new s(0),T=new s(0),L=new s(1),m=0;a.isEven()&&u.isEven();)a.iushrn(1),u.iushrn(1),++m;for(var n=u.clone(),_=a.clone();!a.isZero();){for(var B=0,V=1;!(a.words[0]&V)&&B<26;++B,V<<=1);if(B>0)for(a.iushrn(B);B-- >0;)(l.isOdd()||y.isOdd())&&(l.iadd(n),y.isub(_)),l.iushrn(1),y.iushrn(1);for(var X=0,Le=1;!(u.words[0]&Le)&&X<26;++X,Le<<=1);if(X>0)for(u.iushrn(X);X-- >0;)(T.isOdd()||L.isOdd())&&(T.iadd(n),L.isub(_)),T.iushrn(1),L.iushrn(1);a.cmp(u)>=0?(a.isub(u),l.isub(T),y.isub(L)):(u.isub(a),T.isub(l),L.isub(y))}return{a:T,b:L,gcd:u.iushln(m)}},s.prototype._invmp=function(i){b(0===i.negative),b(!i.isZero());var B,a=this,u=i.clone();a=0!==a.negative?a.umod(i):a.clone();for(var l=new s(1),y=new s(0),T=u.clone();a.cmpn(1)>0&&u.cmpn(1)>0;){for(var L=0,m=1;!(a.words[0]&m)&&L<26;++L,m<<=1);if(L>0)for(a.iushrn(L);L-- >0;)l.isOdd()&&l.iadd(T),l.iushrn(1);for(var n=0,_=1;!(u.words[0]&_)&&n<26;++n,_<<=1);if(n>0)for(u.iushrn(n);n-- >0;)y.isOdd()&&y.iadd(T),y.iushrn(1);a.cmp(u)>=0?(a.isub(u),l.isub(y)):(u.isub(a),y.isub(l))}return(B=0===a.cmpn(1)?l:y).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 a=this.clone(),u=i.clone();a.negative=0,u.negative=0;for(var l=0;a.isEven()&&u.isEven();l++)a.iushrn(1),u.iushrn(1);for(;;){for(;a.isEven();)a.iushrn(1);for(;u.isEven();)u.iushrn(1);var y=a.cmp(u);if(y<0){var T=a;a=u,u=T}else if(0===y||0===u.cmpn(1))break;a.isub(u)}return u.iushln(l)},s.prototype.invm=function(i){return this.egcd(i).a.umod(i)},s.prototype.isEven=function(){return 0==(1&this.words[0])},s.prototype.isOdd=function(){return 1==(1&this.words[0])},s.prototype.andln=function(i){return this.words[0]&i},s.prototype.bincn=function(i){b("number"==typeof i);var a=i%26,u=(i-a)/26,l=1<<a;if(this.length<=u)return this._expand(u+1),this.words[u]|=l,this;for(var y=l,T=u;0!==y&&T<this.length;T++){var L=0|this.words[T];y=(L+=y)>>>26,this.words[T]=L&=67108863}return 0!==y&&(this.words[T]=y,this.length++),this},s.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},s.prototype.cmpn=function(i){var u,a=i<0;if(0!==this.negative&&!a)return-1;if(0===this.negative&&a)return 1;if(this.strip(),this.length>1)u=1;else{a&&(i=-i),b(i<=67108863,"Number is too big");var l=0|this.words[0];u=l===i?0:l<i?-1:1}return 0!==this.negative?0|-u:u},s.prototype.cmp=function(i){if(0!==this.negative&&0===i.negative)return-1;if(0===this.negative&&0!==i.negative)return 1;var a=this.ucmp(i);return 0!==this.negative?0|-a:a},s.prototype.ucmp=function(i){if(this.length>i.length)return 1;if(this.length<i.length)return-1;for(var a=0,u=this.length-1;u>=0;u--){var l=0|this.words[u],y=0|i.words[u];if(l!==y){l<y?a=-1:l>y&&(a=1);break}}return a},s.prototype.gtn=function(i){return 1===this.cmpn(i)},s.prototype.gt=function(i){return 1===this.cmp(i)},s.prototype.gten=function(i){return this.cmpn(i)>=0},s.prototype.gte=function(i){return this.cmp(i)>=0},s.prototype.ltn=function(i){return-1===this.cmpn(i)},s.prototype.lt=function(i){return-1===this.cmp(i)},s.prototype.lten=function(i){return this.cmpn(i)<=0},s.prototype.lte=function(i){return this.cmp(i)<=0},s.prototype.eqn=function(i){return 0===this.cmpn(i)},s.prototype.eq=function(i){return 0===this.cmp(i)},s.red=function(i){return new $(i)},s.prototype.toRed=function(i){return b(!this.red,"Already a number in reduction context"),b(0===this.negative,"red works only with positives"),i.convertTo(this)._forceRed(i)},s.prototype.fromRed=function(){return b(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 b(!this.red,"Already a number in reduction context"),this._forceRed(i)},s.prototype.redAdd=function(i){return b(this.red,"redAdd works only with red numbers"),this.red.add(this,i)},s.prototype.redIAdd=function(i){return b(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,i)},s.prototype.redSub=function(i){return b(this.red,"redSub works only with red numbers"),this.red.sub(this,i)},s.prototype.redISub=function(i){return b(this.red,"redISub works only with red numbers"),this.red.isub(this,i)},s.prototype.redShl=function(i){return b(this.red,"redShl works only with red numbers"),this.red.shl(this,i)},s.prototype.redMul=function(i){return b(this.red,"redMul works only with red numbers"),this.red._verify2(this,i),this.red.mul(this,i)},s.prototype.redIMul=function(i){return b(this.red,"redMul works only with red numbers"),this.red._verify2(this,i),this.red.imul(this,i)},s.prototype.redSqr=function(){return b(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},s.prototype.redISqr=function(){return b(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},s.prototype.redSqrt=function(){return b(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},s.prototype.redInvm=function(){return b(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},s.prototype.redNeg=function(){return b(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},s.prototype.redPow=function(i){return b(this.red&&!i.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,i)};var ee={k256:null,p224:null,p192:null,p25519:null};function ie(A,i){this.name=A,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 ue(){ie.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function le(){ie.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function ne(){ie.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function de(){ie.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function $(A){if("string"==typeof A){var i=s._prime(A);this.m=i.p,this.prime=i}else b(A.gtn(1),"modulus must be greater than 1"),this.m=A,this.prime=null}function me(A){$.call(this,A),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 i=new s(null);return i.words=new Array(Math.ceil(this.n/13)),i},ie.prototype.ireduce=function(i){var u,a=i;do{this.split(a,this.tmp),u=(a=(a=this.imulK(a)).iadd(this.tmp)).bitLength()}while(u>this.n);var l=u<this.n?-1:a.ucmp(this.p);return 0===l?(a.words[0]=0,a.length=1):l>0?a.isub(this.p):void 0!==a.strip?a.strip():a._strip(),a},ie.prototype.split=function(i,a){i.iushrn(this.n,0,a)},ie.prototype.imulK=function(i){return i.imul(this.k)},I(ue,ie),ue.prototype.split=function(i,a){for(var u=4194303,l=Math.min(i.length,9),y=0;y<l;y++)a.words[y]=i.words[y];if(a.length=l,i.length<=9)return i.words[0]=0,void(i.length=1);var T=i.words[9];for(a.words[a.length++]=T&u,y=10;y<i.length;y++){var L=0|i.words[y];i.words[y-10]=(L&u)<<4|T>>>22,T=L}i.words[y-10]=T>>>=22,i.length-=0===T&&i.length>10?10:9},ue.prototype.imulK=function(i){i.words[i.length]=0,i.words[i.length+1]=0,i.length+=2;for(var a=0,u=0;u<i.length;u++){var l=0|i.words[u];i.words[u]=67108863&(a+=977*l),a=64*l+(a/67108864|0)}return 0===i.words[i.length-1]&&(i.length--,0===i.words[i.length-1]&&i.length--),i},I(le,ie),I(ne,ie),I(de,ie),de.prototype.imulK=function(i){for(var a=0,u=0;u<i.length;u++){var l=19*(0|i.words[u])+a,y=67108863&l;l>>>=26,i.words[u]=y,a=l}return 0!==a&&(i.words[i.length++]=a),i},s._prime=function(i){if(ee[i])return ee[i];var a;if("k256"===i)a=new ue;else if("p224"===i)a=new le;else if("p192"===i)a=new ne;else{if("p25519"!==i)throw new Error("Unknown prime "+i);a=new de}return ee[i]=a,a},$.prototype._verify1=function(i){b(0===i.negative,"red works only with positives"),b(i.red,"red works only with red numbers")},$.prototype._verify2=function(i,a){b(0==(i.negative|a.negative),"red works only with positives"),b(i.red&&i.red===a.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,a){this._verify2(i,a);var u=i.add(a);return u.cmp(this.m)>=0&&u.isub(this.m),u._forceRed(this)},$.prototype.iadd=function(i,a){this._verify2(i,a);var u=i.iadd(a);return u.cmp(this.m)>=0&&u.isub(this.m),u},$.prototype.sub=function(i,a){this._verify2(i,a);var u=i.sub(a);return u.cmpn(0)<0&&u.iadd(this.m),u._forceRed(this)},$.prototype.isub=function(i,a){this._verify2(i,a);var u=i.isub(a);return u.cmpn(0)<0&&u.iadd(this.m),u},$.prototype.shl=function(i,a){return this._verify1(i),this.imod(i.ushln(a))},$.prototype.imul=function(i,a){return this._verify2(i,a),this.imod(i.imul(a))},$.prototype.mul=function(i,a){return this._verify2(i,a),this.imod(i.mul(a))},$.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 a=this.m.andln(3);if(b(a%2==1),3===a){var u=this.m.add(new s(1)).iushrn(2);return this.pow(i,u)}for(var l=this.m.subn(1),y=0;!l.isZero()&&0===l.andln(1);)y++,l.iushrn(1);b(!l.isZero());var T=new s(1).toRed(this),L=T.redNeg(),m=this.m.subn(1).iushrn(1),n=this.m.bitLength();for(n=new s(2*n*n).toRed(this);0!==this.pow(n,m).cmp(L);)n.redIAdd(L);for(var _=this.pow(n,l),B=this.pow(i,l.addn(1).iushrn(1)),V=this.pow(i,l),X=y;0!==V.cmp(T);){for(var Le=V,$e=0;0!==Le.cmp(T);$e++)Le=Le.redSqr();b($e<X);var We=this.pow(_,new s(1).iushln(X-$e-1));B=B.redMul(We),_=We.redSqr(),V=V.redMul(_),X=$e}return B},$.prototype.invm=function(i){var a=i._invmp(this.m);return 0!==a.negative?(a.negative=0,this.imod(a).redNeg()):this.imod(a)},$.prototype.pow=function(i,a){if(a.isZero())return new s(1).toRed(this);if(0===a.cmpn(1))return i.clone();var l=new Array(16);l[0]=new s(1).toRed(this),l[1]=i;for(var y=2;y<l.length;y++)l[y]=this.mul(l[y-1],i);var T=l[0],L=0,m=0,n=a.bitLength()%26;for(0===n&&(n=26),y=a.length-1;y>=0;y--){for(var _=a.words[y],B=n-1;B>=0;B--){var V=_>>B&1;T!==l[0]&&(T=this.sqr(T)),0!==V||0!==L?(L<<=1,L|=V,(4==++m||0===y&&0===B)&&(T=this.mul(T,l[L]),m=0,L=0)):m=0}n=26}return T},$.prototype.convertTo=function(i){var a=i.umod(this.m);return a===i?a.clone():a},$.prototype.convertFrom=function(i){var a=i.clone();return a.red=null,a},s.mont=function(i){return new me(i)},I(me,$),me.prototype.convertTo=function(i){return this.imod(i.ushln(this.shift))},me.prototype.convertFrom=function(i){var a=this.imod(i.mul(this.rinv));return a.red=null,a},me.prototype.imul=function(i,a){if(i.isZero()||a.isZero())return i.words[0]=0,i.length=1,i;var u=i.imul(a),l=u.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),y=u.isub(l).iushrn(this.shift),T=y;return y.cmp(this.m)>=0?T=y.isub(this.m):y.cmpn(0)<0&&(T=y.iadd(this.m)),T._forceRed(this)},me.prototype.mul=function(i,a){if(i.isZero()||a.isZero())return new s(0)._forceRed(this);var u=i.mul(a),l=u.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),y=u.isub(l).iushrn(this.shift),T=y;return y.cmp(this.m)>=0?T=y.isub(this.m):y.cmpn(0)<0&&(T=y.iadd(this.m)),T._forceRed(this)},me.prototype.invm=function(i){return this.imod(i._invmp(this.m).mul(this.r2))._forceRed(this)}}(Ve=p.nmd(Ve),this)},6705:(Ve,q,p)=>{var t=p(2772),e=p(6945),b=p(9401),I=p(2057),s=p(8466),C=p(6386),h=p(8651),P=p(3502).Buffer;Ve.exports=function(E,R,z){var U;U=E.padding?E.padding:z?1:4;var ee,W=t(E),K=W.modulus.byteLength();if(R.length>K||new I(R).cmp(W.modulus)>=0)throw new Error("decryption error");ee=z?h(new I(R),W):s(R,W);var ie=P.alloc(K-ee.length);if(ee=P.concat([ie,ee],K),4===U)return function d(O,E){var R=O.modulus.byteLength(),z=C("sha1").update(P.alloc(0)).digest(),U=z.length;if(0!==E[0])throw new Error("decryption error");var W=E.slice(1,U+1),K=E.slice(U+1),ee=b(W,e(K,U)),ie=b(K,e(ee,R-U-1));if(function w(O,E){O=P.from(O),E=P.from(E);var R=0,z=O.length;O.length!==E.length&&(R++,z=Math.min(O.length,E.length));for(var U=-1;++U<z;)R+=O[U]^E[U];return R}(z,ie.slice(0,U)))throw new Error("decryption error");for(var ue=U;0===ie[ue];)ue++;if(1!==ie[ue++])throw new Error("decryption error");return ie.slice(ue)}(W,ee);if(1===U)return function S(O,E,R){for(var z=E.slice(0,2),U=2,W=0;0!==E[U++];)if(U>=E.length){W++;break}var K=E.slice(2,U-1);if(("0002"!==z.toString("hex")&&!R||"0001"!==z.toString("hex")&&R)&&W++,K.length<8&&W++,W)throw new Error("decryption error");return E.slice(U)}(0,ee,z);if(3===U)return ee;throw new Error("unknown padding")}},6562:(Ve,q,p)=>{var t=p(2772),e=p(3753),b=p(6386),I=p(6945),s=p(9401),C=p(2057),h=p(8651),P=p(8466),d=p(3502).Buffer;Ve.exports=function(R,z,U){var W;W=R.padding?R.padding:U?1:4;var ee,K=t(R);if(4===W)ee=function S(E,R){var z=E.modulus.byteLength(),U=R.length,W=b("sha1").update(d.alloc(0)).digest(),K=W.length,ee=2*K;if(U>z-ee-2)throw new Error("message too long");var ie=d.alloc(z-U-ee-2),ue=z-K-1,le=e(K),ne=s(d.concat([W,ie,d.alloc(1,1),R],ue),I(le,ue)),de=s(le,I(ne,K));return new C(d.concat([d.alloc(1),de,ne],z))}(K,z);else if(1===W)ee=function w(E,R,z){var K,U=R.length,W=E.modulus.byteLength();if(U>W-11)throw new Error("message too long");return K=z?d.alloc(W-U-3,255):function O(E){for(var K,R=d.allocUnsafe(E),z=0,U=e(2*E),W=0;z<E;)W===U.length&&(U=e(2*E),W=0),(K=U[W++])&&(R[z++]=K);return R}(W-U-3),new C(d.concat([d.from([0,z?1:2]),K,d.alloc(1),R],W))}(K,z,U);else{if(3!==W)throw new Error("unknown padding");if((ee=new C(z)).cmp(K.modulus)>=0)throw new Error("data too long for modulus")}return U?P(ee,K):h(ee,K)}},8651:(Ve,q,p)=>{var t=p(2057),e=p(3502).Buffer;Ve.exports=function b(I,s){return e.from(I.toRed(t.mont(s.modulus)).redPow(new t(s.publicExponent)).fromRed().toArray())}},9401:Ve=>{Ve.exports=function(p,t){for(var e=p.length,b=-1;++b<e;)p[b]^=t[b];return p}},3259:(Ve,q,p)=>{const t=p(8695),e=p(1465),b=p(3210),I=p(2334);function s(C,h,P,d,S){const w=[].slice.call(arguments,1),O=w.length,E="function"==typeof w[O-1];if(!E&&!t())throw new Error("Callback required as last argument");if(!E){if(O<1)throw new Error("Too few arguments provided");return 1===O?(P=h,h=d=void 0):2===O&&!h.getContext&&(d=P,P=h,h=void 0),new Promise(function(R,z){try{const U=e.create(P,d);R(C(U,h,d))}catch(U){z(U)}})}if(O<2)throw new Error("Too few arguments provided");2===O?(S=P,P=h,h=d=void 0):3===O&&(h.getContext&&typeof S>"u"?(S=d,d=void 0):(S=d,d=P,P=h,h=void 0));try{const R=e.create(P,d);S(null,C(R,h,d))}catch(R){S(R)}}q.create=e.create,q.toCanvas=s.bind(null,b.render),q.toDataURL=s.bind(null,b.renderToDataURL),q.toString=s.bind(null,function(C,h,P){return I.render(C,P)})},8695:Ve=>{Ve.exports=function(){return"function"==typeof Promise&&Promise.prototype&&Promise.prototype.then}},6221:(Ve,q,p)=>{const t=p(4792).getSymbolSize;q.getRowColCoords=function(b){if(1===b)return[];const I=Math.floor(b/7)+2,s=t(b),C=145===s?26:2*Math.ceil((s-13)/(2*I-2)),h=[s-7];for(let P=1;P<I-1;P++)h[P]=h[P-1]-C;return h.push(6),h.reverse()},q.getPositions=function(b){const I=[],s=q.getRowColCoords(b),C=s.length;for(let h=0;h<C;h++)for(let P=0;P<C;P++)0===h&&0===P||0===h&&P===C-1||h===C-1&&0===P||I.push([s[h],s[P]]);return I}},2424:(Ve,q,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 b(I){this.mode=t.ALPHANUMERIC,this.data=I}b.getBitsLength=function(s){return 11*Math.floor(s/2)+s%2*6},b.prototype.getLength=function(){return this.data.length},b.prototype.getBitsLength=function(){return b.getBitsLength(this.data.length)},b.prototype.write=function(s){let C;for(C=0;C+2<=this.data.length;C+=2){let h=45*e.indexOf(this.data[C]);h+=e.indexOf(this.data[C+1]),s.put(h,11)}this.data.length%2&&s.put(e.indexOf(this.data[C]),6)},Ve.exports=b},2118:Ve=>{function q(){this.buffer=[],this.length=0}q.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++}},Ve.exports=q},4425:Ve=>{function q(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)}q.prototype.set=function(p,t,e,b){const I=p*this.size+t;this.data[I]=e,b&&(this.reservedBit[I]=!0)},q.prototype.get=function(p,t){return this.data[p*this.size+t]},q.prototype.xor=function(p,t,e){this.data[p*this.size+t]^=e},q.prototype.isReserved=function(p,t){return this.reservedBit[p*this.size+t]},Ve.exports=q},5663:(Ve,q,p)=>{const t=p(8419),e=p(4016);function b(I){this.mode=e.BYTE,"string"==typeof I&&(I=t(I)),this.data=new Uint8Array(I)}b.getBitsLength=function(s){return 8*s},b.prototype.getLength=function(){return this.data.length},b.prototype.getBitsLength=function(){return b.getBitsLength(this.data.length)},b.prototype.write=function(I){for(let s=0,C=this.data.length;s<C;s++)I.put(this.data[s],8)},Ve.exports=b},4655:(Ve,q,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],b=[7,10,13,17,10,16,22,28,15,26,36,44,20,36,52,64,26,48,72,88,36,64,96,112,40,72,108,130,48,88,132,156,60,110,160,192,72,130,192,224,80,150,224,264,96,176,260,308,104,198,288,352,120,216,320,384,132,240,360,432,144,280,408,480,168,308,448,532,180,338,504,588,196,364,546,650,224,416,600,700,224,442,644,750,252,476,690,816,270,504,750,900,300,560,810,960,312,588,870,1050,336,644,952,1110,360,700,1020,1200,390,728,1050,1260,420,784,1140,1350,450,812,1200,1440,480,868,1290,1530,510,924,1350,1620,540,980,1440,1710,570,1036,1530,1800,570,1064,1590,1890,600,1120,1680,1980,630,1204,1770,2100,660,1260,1860,2220,720,1316,1950,2310,750,1372,2040,2430];q.getBlocksCount=function(s,C){switch(C){case t.L:return e[4*(s-1)+0];case t.M:return e[4*(s-1)+1];case t.Q:return e[4*(s-1)+2];case t.H:return e[4*(s-1)+3];default:return}},q.getTotalCodewordsCount=function(s,C){switch(C){case t.L:return b[4*(s-1)+0];case t.M:return b[4*(s-1)+1];case t.Q:return b[4*(s-1)+2];case t.H:return b[4*(s-1)+3];default:return}}},2259:(Ve,q)=>{q.L={bit:1},q.M={bit:0},q.Q={bit:3},q.H={bit:2},q.isValid=function(e){return e&&typeof e.bit<"u"&&e.bit>=0&&e.bit<4},q.from=function(e,b){if(q.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 q.L;case"m":case"medium":return q.M;case"q":case"quartile":return q.Q;case"h":case"high":return q.H;default:throw new Error("Unknown EC Level: "+t)}}(e)}catch{return b}}},3114:(Ve,q,p)=>{const t=p(4792).getSymbolSize;q.getPositions=function(I){const s=t(I);return[[0,0],[s-7,0],[0,s-7]]}},7078:(Ve,q,p)=>{const t=p(4792),I=t.getBCHDigit(1335);q.getEncodedBits=function(C,h){const P=C.bit<<3|h;let d=P<<10;for(;t.getBCHDigit(d)-I>=0;)d^=1335<<t.getBCHDigit(d)-I;return 21522^(P<<10|d)}},5339:(Ve,q)=>{const p=new Uint8Array(512),t=new Uint8Array(256);(function(){let b=1;for(let I=0;I<255;I++)p[I]=b,t[b]=I,b<<=1,256&b&&(b^=285);for(let I=255;I<512;I++)p[I]=p[I-255]})(),q.log=function(b){if(b<1)throw new Error("log("+b+")");return t[b]},q.exp=function(b){return p[b]},q.mul=function(b,I){return 0===b||0===I?0:p[t[b]+t[I]]}},449:(Ve,q,p)=>{const t=p(4016),e=p(4792);function b(I){this.mode=t.KANJI,this.data=I}b.getBitsLength=function(s){return 13*s},b.prototype.getLength=function(){return this.data.length},b.prototype.getBitsLength=function(){return b.getBitsLength(this.data.length)},b.prototype.write=function(I){let s;for(s=0;s<this.data.length;s++){let C=e.toSJIS(this.data[s]);if(C>=33088&&C<=40956)C-=33088;else{if(!(C>=57408&&C<=60351))throw new Error("Invalid SJIS character: "+this.data[s]+"\nMake sure your charset is UTF-8");C-=49472}C=192*(C>>>8&255)+(255&C),I.put(C,13)}},Ve.exports=b},3667:(Ve,q)=>{q.Patterns={PATTERN000:0,PATTERN001:1,PATTERN010:2,PATTERN011:3,PATTERN100:4,PATTERN101:5,PATTERN110:6,PATTERN111:7};function t(e,b,I){switch(e){case q.Patterns.PATTERN000:return(b+I)%2==0;case q.Patterns.PATTERN001:return b%2==0;case q.Patterns.PATTERN010:return I%3==0;case q.Patterns.PATTERN011:return(b+I)%3==0;case q.Patterns.PATTERN100:return(Math.floor(b/2)+Math.floor(I/3))%2==0;case q.Patterns.PATTERN101:return b*I%2+b*I%3==0;case q.Patterns.PATTERN110:return(b*I%2+b*I%3)%2==0;case q.Patterns.PATTERN111:return(b*I%3+(b+I)%2)%2==0;default:throw new Error("bad maskPattern:"+e)}}q.isValid=function(b){return null!=b&&""!==b&&!isNaN(b)&&b>=0&&b<=7},q.from=function(b){return q.isValid(b)?parseInt(b,10):void 0},q.getPenaltyN1=function(b){const I=b.size;let s=0,C=0,h=0,P=null,d=null;for(let S=0;S<I;S++){C=h=0,P=d=null;for(let w=0;w<I;w++){let O=b.get(S,w);O===P?C++:(C>=5&&(s+=C-5+3),P=O,C=1),O=b.get(w,S),O===d?h++:(h>=5&&(s+=h-5+3),d=O,h=1)}C>=5&&(s+=C-5+3),h>=5&&(s+=h-5+3)}return s},q.getPenaltyN2=function(b){const I=b.size;let s=0;for(let C=0;C<I-1;C++)for(let h=0;h<I-1;h++){const P=b.get(C,h)+b.get(C,h+1)+b.get(C+1,h)+b.get(C+1,h+1);(4===P||0===P)&&s++}return 3*s},q.getPenaltyN3=function(b){const I=b.size;let s=0,C=0,h=0;for(let P=0;P<I;P++){C=h=0;for(let d=0;d<I;d++)C=C<<1&2047|b.get(P,d),d>=10&&(1488===C||93===C)&&s++,h=h<<1&2047|b.get(d,P),d>=10&&(1488===h||93===h)&&s++}return 40*s},q.getPenaltyN4=function(b){let I=0;const s=b.data.length;for(let h=0;h<s;h++)I+=b.data[h];return 10*Math.abs(Math.ceil(100*I/s/5)-10)},q.applyMask=function(b,I){const s=I.size;for(let C=0;C<s;C++)for(let h=0;h<s;h++)I.isReserved(h,C)||I.xor(h,C,t(b,h,C))},q.getBestMask=function(b,I){const s=Object.keys(q.Patterns).length;let C=0,h=1/0;for(let P=0;P<s;P++){I(P),q.applyMask(P,b);const d=q.getPenaltyN1(b)+q.getPenaltyN2(b)+q.getPenaltyN3(b)+q.getPenaltyN4(b);q.applyMask(P,b),d<h&&(h=d,C=P)}return C}},4016:(Ve,q,p)=>{const t=p(4406),e=p(2699);q.NUMERIC={id:"Numeric",bit:1,ccBits:[10,12,14]},q.ALPHANUMERIC={id:"Alphanumeric",bit:2,ccBits:[9,11,13]},q.BYTE={id:"Byte",bit:4,ccBits:[8,16,16]},q.KANJI={id:"Kanji",bit:8,ccBits:[8,10,12]},q.MIXED={bit:-1},q.getCharCountIndicator=function(s,C){if(!s.ccBits)throw new Error("Invalid mode: "+s);if(!t.isValid(C))throw new Error("Invalid version: "+C);return C>=1&&C<10?s.ccBits[0]:C<27?s.ccBits[1]:s.ccBits[2]},q.getBestModeForData=function(s){return e.testNumeric(s)?q.NUMERIC:e.testAlphanumeric(s)?q.ALPHANUMERIC:e.testKanji(s)?q.KANJI:q.BYTE},q.toString=function(s){if(s&&s.id)return s.id;throw new Error("Invalid mode")},q.isValid=function(s){return s&&s.bit&&s.ccBits},q.from=function(s,C){if(q.isValid(s))return s;try{return function b(I){if("string"!=typeof I)throw new Error("Param is not a string");switch(I.toLowerCase()){case"numeric":return q.NUMERIC;case"alphanumeric":return q.ALPHANUMERIC;case"kanji":return q.KANJI;case"byte":return q.BYTE;default:throw new Error("Unknown mode: "+I)}}(s)}catch{return C}}},7783:(Ve,q,p)=>{const t=p(4016);function e(b){this.mode=t.NUMERIC,this.data=b.toString()}e.getBitsLength=function(I){return 10*Math.floor(I/3)+(I%3?I%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(I){let s,C,h;for(s=0;s+3<=this.data.length;s+=3)C=this.data.substr(s,3),h=parseInt(C,10),I.put(h,10);const P=this.data.length-s;P>0&&(C=this.data.substr(s),h=parseInt(C,10),I.put(h,3*P+1))},Ve.exports=e},1106:(Ve,q,p)=>{const t=p(5339);q.mul=function(b,I){const s=new Uint8Array(b.length+I.length-1);for(let C=0;C<b.length;C++)for(let h=0;h<I.length;h++)s[C+h]^=t.mul(b[C],I[h]);return s},q.mod=function(b,I){let s=new Uint8Array(b);for(;s.length-I.length>=0;){const C=s[0];for(let P=0;P<I.length;P++)s[P]^=t.mul(I[P],C);let h=0;for(;h<s.length&&0===s[h];)h++;s=s.slice(h)}return s},q.generateECPolynomial=function(b){let I=new Uint8Array([1]);for(let s=0;s<b;s++)I=q.mul(I,new Uint8Array([1,t.exp(s)]));return I}},1465:(Ve,q,p)=>{const t=p(4792),e=p(2259),b=p(2118),I=p(4425),s=p(6221),C=p(3114),h=p(3667),P=p(4655),d=p(2636),S=p(2088),w=p(7078),O=p(4016),E=p(2033);function K(ne,de,$){const me=ne.size,A=w.getEncodedBits(de,$);let i,a;for(i=0;i<15;i++)a=1==(A>>i&1),ne.set(i<6?i:i<8?i+1:me-15+i,8,a,!0),ne.set(8,i<8?me-i-1:i<9?15-i-1+1:15-i-1,a,!0);ne.set(me-8,8,1,!0)}function le(ne,de,$,me){let A;if(Array.isArray(ne))A=E.fromArray(ne);else{if("string"!=typeof ne)throw new Error("Invalid data");{let y=de;if(!y){const T=E.rawSplit(ne);y=S.getBestVersionForData(T,$)}A=E.fromString(ne,y||40)}}const i=S.getBestVersionForData(A,$);if(!i)throw new Error("The amount of data is too big to be stored in a QR Code");if(de){if(de<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 de=i;const a=function ie(ne,de,$){const me=new b;$.forEach(function(l){me.put(l.mode.bit,4),me.put(l.getLength(),O.getCharCountIndicator(l.mode,ne)),l.write(me)});const a=8*(t.getSymbolTotalCodewords(ne)-P.getTotalCodewordsCount(ne,de));for(me.getLengthInBits()+4<=a&&me.put(0,4);me.getLengthInBits()%8!=0;)me.putBit(0);const u=(a-me.getLengthInBits())/8;for(let l=0;l<u;l++)me.put(l%2?17:236,8);return function ue(ne,de,$){const me=t.getSymbolTotalCodewords(de),i=me-P.getTotalCodewordsCount(de,$),a=P.getBlocksCount(de,$),l=a-me%a,y=Math.floor(me/a),T=Math.floor(i/a),L=T+1,m=y-T,n=new d(m);let _=0;const B=new Array(a),V=new Array(a);let X=0;const Le=new Uint8Array(ne.buffer);for(let ye=0;ye<a;ye++){const ce=ye<l?T:L;B[ye]=Le.slice(_,_+ce),V[ye]=n.encode(B[ye]),_+=ce,X=Math.max(X,ce)}const $e=new Uint8Array(me);let Fe,De,We=0;for(Fe=0;Fe<X;Fe++)for(De=0;De<a;De++)Fe<B[De].length&&($e[We++]=B[De][Fe]);for(Fe=0;Fe<m;Fe++)for(De=0;De<a;De++)$e[We++]=V[De][Fe];return $e}(me,ne,de)}(de,$,A),u=t.getSymbolSize(de),l=new I(u);return function R(ne,de){const $=ne.size,me=C.getPositions(de);for(let A=0;A<me.length;A++){const i=me[A][0],a=me[A][1];for(let u=-1;u<=7;u++)if(!(i+u<=-1||$<=i+u))for(let l=-1;l<=7;l++)a+l<=-1||$<=a+l||ne.set(i+u,a+l,u>=0&&u<=6&&(0===l||6===l)||l>=0&&l<=6&&(0===u||6===u)||u>=2&&u<=4&&l>=2&&l<=4,!0)}}(l,de),function z(ne){const de=ne.size;for(let $=8;$<de-8;$++){const me=$%2==0;ne.set($,6,me,!0),ne.set(6,$,me,!0)}}(l),function U(ne,de){const $=s.getPositions(de);for(let me=0;me<$.length;me++){const A=$[me][0],i=$[me][1];for(let a=-2;a<=2;a++)for(let u=-2;u<=2;u++)ne.set(A+a,i+u,-2===a||2===a||-2===u||2===u||0===a&&0===u,!0)}}(l,de),K(l,$,0),de>=7&&function W(ne,de){const $=ne.size,me=S.getEncodedBits(de);let A,i,a;for(let u=0;u<18;u++)A=Math.floor(u/3),i=u%3+$-8-3,a=1==(me>>u&1),ne.set(A,i,a,!0),ne.set(i,A,a,!0)}(l,de),function ee(ne,de){const $=ne.size;let me=-1,A=$-1,i=7,a=0;for(let u=$-1;u>0;u-=2)for(6===u&&u--;;){for(let l=0;l<2;l++)if(!ne.isReserved(A,u-l)){let y=!1;a<de.length&&(y=1==(de[a]>>>i&1)),ne.set(A,u-l,y),i--,-1===i&&(a++,i=7)}if(A+=me,A<0||$<=A){A-=me,me=-me;break}}}(l,a),isNaN(me)&&(me=h.getBestMask(l,K.bind(null,l,$))),h.applyMask(me,l),K(l,$,me),{modules:l,version:de,errorCorrectionLevel:$,maskPattern:me,segments:A}}q.create=function(de,$){if(typeof de>"u"||""===de)throw new Error("No input text");let A,i,me=e.M;return typeof $<"u"&&(me=e.from($.errorCorrectionLevel,e.M),A=S.from($.version),i=h.from($.maskPattern),$.toSJISFunc&&t.setToSJISFunction($.toSJISFunc)),le(de,A,me,i)}},2636:(Ve,q,p)=>{const t=p(1106);function e(b){this.genPoly=void 0,this.degree=b,this.degree&&this.initialize(this.degree)}e.prototype.initialize=function(I){this.degree=I,this.genPoly=t.generateECPolynomial(this.degree)},e.prototype.encode=function(I){if(!this.genPoly)throw new Error("Encoder not initialized");const s=new Uint8Array(I.length+this.degree);s.set(I);const C=t.mod(s,this.genPoly),h=this.degree-C.length;if(h>0){const P=new Uint8Array(this.degree);return P.set(C,h),P}return C},Ve.exports=e},2699:(Ve,q)=>{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 b="(?:(?![A-Z0-9 $%*+\\-./:]|"+e+")(?:.|[\r\n]))+";q.KANJI=new RegExp(e,"g"),q.BYTE_KANJI=new RegExp("[^A-Z0-9 $%*+\\-./:]+","g"),q.BYTE=new RegExp(b,"g"),q.NUMERIC=new RegExp(p,"g"),q.ALPHANUMERIC=new RegExp("[A-Z $%*+\\-./:]+","g");const I=new RegExp("^"+e+"$"),s=new RegExp("^"+p+"$"),C=new RegExp("^[A-Z0-9 $%*+\\-./:]+$");q.testKanji=function(P){return I.test(P)},q.testNumeric=function(P){return s.test(P)},q.testAlphanumeric=function(P){return C.test(P)}},2033:(Ve,q,p)=>{const t=p(4016),e=p(7783),b=p(2424),I=p(5663),s=p(449),C=p(2699),h=p(4792),P=p(4901);function d(W){return unescape(encodeURIComponent(W)).length}function S(W,K,ee){const ie=[];let ue;for(;null!==(ue=W.exec(ee));)ie.push({data:ue[0],index:ue.index,mode:K,length:ue[0].length});return ie}function w(W){const K=S(C.NUMERIC,t.NUMERIC,W),ee=S(C.ALPHANUMERIC,t.ALPHANUMERIC,W);let ie,ue;return h.isKanjiModeEnabled()?(ie=S(C.BYTE,t.BYTE,W),ue=S(C.KANJI,t.KANJI,W)):(ie=S(C.BYTE_KANJI,t.BYTE,W),ue=[]),K.concat(ee,ie,ue).sort(function(ne,de){return ne.index-de.index}).map(function(ne){return{data:ne.data,mode:ne.mode,length:ne.length}})}function O(W,K){switch(K){case t.NUMERIC:return e.getBitsLength(W);case t.ALPHANUMERIC:return b.getBitsLength(W);case t.KANJI:return s.getBitsLength(W);case t.BYTE:return I.getBitsLength(W)}}function U(W,K){let ee;const ie=t.getBestModeForData(W);if(ee=t.from(K,ie),ee!==t.BYTE&&ee.bit<ie.bit)throw new Error('"'+W+'" cannot be encoded with mode '+t.toString(ee)+".\n Suggested mode is: "+t.toString(ie));switch(ee===t.KANJI&&!h.isKanjiModeEnabled()&&(ee=t.BYTE),ee){case t.NUMERIC:return new e(W);case t.ALPHANUMERIC:return new b(W);case t.KANJI:return new s(W);case t.BYTE:return new I(W)}}q.fromArray=function(K){return K.reduce(function(ee,ie){return"string"==typeof ie?ee.push(U(ie,null)):ie.data&&ee.push(U(ie.data,ie.mode)),ee},[])},q.fromString=function(K,ee){const ue=function R(W){const K=[];for(let ee=0;ee<W.length;ee++){const ie=W[ee];switch(ie.mode){case t.NUMERIC:K.push([ie,{data:ie.data,mode:t.ALPHANUMERIC,length:ie.length},{data:ie.data,mode:t.BYTE,length:ie.length}]);break;case t.ALPHANUMERIC:K.push([ie,{data:ie.data,mode:t.BYTE,length:ie.length}]);break;case t.KANJI:K.push([ie,{data:ie.data,mode:t.BYTE,length:d(ie.data)}]);break;case t.BYTE:K.push([{data:ie.data,mode:t.BYTE,length:d(ie.data)}])}}return K}(w(K,h.isKanjiModeEnabled())),le=function z(W,K){const ee={},ie={start:{}};let ue=["start"];for(let le=0;le<W.length;le++){const ne=W[le],de=[];for(let $=0;$<ne.length;$++){const me=ne[$],A=""+le+$;de.push(A),ee[A]={node:me,lastCount:0},ie[A]={};for(let i=0;i<ue.length;i++){const a=ue[i];ee[a]&&ee[a].node.mode===me.mode?(ie[a][A]=O(ee[a].lastCount+me.length,me.mode)-O(ee[a].lastCount,me.mode),ee[a].lastCount+=me.length):(ee[a]&&(ee[a].lastCount=me.length),ie[a][A]=O(me.length,me.mode)+4+t.getCharCountIndicator(me.mode,K))}}ue=de}for(let le=0;le<ue.length;le++)ie[ue[le]].end=0;return{map:ie,table:ee}}(ue,ee),ne=P.find_path(le.map,"start","end"),de=[];for(let $=1;$<ne.length-1;$++)de.push(le.table[ne[$]].node);return q.fromArray(function E(W){return W.reduce(function(K,ee){const ie=K.length-1>=0?K[K.length-1]:null;return ie&&ie.mode===ee.mode?(K[K.length-1].data+=ee.data,K):(K.push(ee),K)},[])}(de))},q.rawSplit=function(K){return q.fromArray(w(K,h.isKanjiModeEnabled()))}},4792:(Ve,q)=>{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];q.getSymbolSize=function(b){if(!b)throw new Error('"version" cannot be null or undefined');if(b<1||b>40)throw new Error('"version" should be in range from 1 to 40');return 4*b+17},q.getSymbolTotalCodewords=function(b){return t[b]},q.getBCHDigit=function(e){let b=0;for(;0!==e;)b++,e>>>=1;return b},q.setToSJISFunction=function(b){if("function"!=typeof b)throw new Error('"toSJISFunc" is not a valid function.');p=b},q.isKanjiModeEnabled=function(){return typeof p<"u"},q.toSJIS=function(b){return p(b)}},4406:(Ve,q)=>{q.isValid=function(t){return!isNaN(t)&&t>=1&&t<=40}},2088:(Ve,q,p)=>{const t=p(4792),e=p(4655),b=p(2259),I=p(4016),s=p(4406),h=t.getBCHDigit(7973);function d(O,E){return I.getCharCountIndicator(O,E)+4}function S(O,E){let R=0;return O.forEach(function(z){const U=d(z.mode,E);R+=U+z.getBitsLength()}),R}q.from=function(E,R){return s.isValid(E)?parseInt(E,10):R},q.getCapacity=function(E,R,z){if(!s.isValid(E))throw new Error("Invalid QR Code version");typeof z>"u"&&(z=I.BYTE);const K=8*(t.getSymbolTotalCodewords(E)-e.getTotalCodewordsCount(E,R));if(z===I.MIXED)return K;const ee=K-d(z,E);switch(z){case I.NUMERIC:return Math.floor(ee/10*3);case I.ALPHANUMERIC:return Math.floor(ee/11*2);case I.KANJI:return Math.floor(ee/13);default:return Math.floor(ee/8)}},q.getBestVersionForData=function(E,R){let z;const U=b.from(R,b.M);if(Array.isArray(E)){if(E.length>1)return function w(O,E){for(let R=1;R<=40;R++)if(S(O,R)<=q.getCapacity(R,E,I.MIXED))return R}(E,U);if(0===E.length)return 1;z=E[0]}else z=E;return function P(O,E,R){for(let z=1;z<=40;z++)if(E<=q.getCapacity(z,R,O))return z}(z.mode,z.getLength(),U)},q.getEncodedBits=function(E){if(!s.isValid(E)||E<7)throw new Error("Invalid QR Code version");let R=E<<12;for(;t.getBCHDigit(R)-h>=0;)R^=7973<<t.getBCHDigit(R)-h;return E<<12|R}},3210:(Ve,q,p)=>{const t=p(6355);q.render=function(s,C,h){let P=h,d=C;typeof P>"u"&&(!C||!C.getContext)&&(P=C,C=void 0),C||(d=function b(){try{return document.createElement("canvas")}catch{throw new Error("You need to specify a canvas element")}}()),P=t.getOptions(P);const S=t.getImageWidth(s.modules.size,P),w=d.getContext("2d"),O=w.createImageData(S,S);return t.qrToImageData(O.data,s,P),function e(I,s,C){I.clearRect(0,0,s.width,s.height),s.style||(s.style={}),s.height=C,s.width=C,s.style.height=C+"px",s.style.width=C+"px"}(w,d,S),w.putImageData(O,0,0),d},q.renderToDataURL=function(s,C,h){let P=h;return typeof P>"u"&&(!C||!C.getContext)&&(P=C,C=void 0),P||(P={}),q.render(s,C,P).toDataURL(P.type||"image/png",(P.rendererOpts||{}).quality)}},2334:(Ve,q,p)=>{const t=p(6355);function e(s,C){const h=s.a/255,P=C+'="'+s.hex+'"';return h<1?P+" "+C+'-opacity="'+h.toFixed(2).slice(1)+'"':P}function b(s,C,h){let P=s+C;return typeof h<"u"&&(P+=" "+h),P}q.render=function(C,h,P){const d=t.getOptions(h),S=C.modules.size,w=C.modules.data,O=S+2*d.margin,E=d.color.light.a?"<path "+e(d.color.light,"fill")+' d="M0 0h'+O+"v"+O+'H0z"/>':"",R="<path "+e(d.color.dark,"stroke")+' d="'+function I(s,C,h){let P="",d=0,S=!1,w=0;for(let O=0;O<s.length;O++){const E=Math.floor(O%C),R=Math.floor(O/C);!E&&!S&&(S=!0),s[O]?(w++,O>0&&E>0&&s[O-1]||(P+=S?b("M",E+h,.5+R+h):b("m",d,0),d=0,S=!1),E+1<C&&s[O+1]||(P+=b("h",w),w=0)):d++}return P}(w,S,d.margin)+'"/>',W='<svg xmlns="http://www.w3.org/2000/svg" '+(d.width?'width="'+d.width+'" height="'+d.width+'" ':"")+'viewBox="0 0 '+O+" "+O+'" shape-rendering="crispEdges">'+E+R+"</svg>\n";return"function"==typeof P&&P(null,W),W}},6355:(Ve,q)=>{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(I){return[I,I]}))),6===e.length&&e.push("F","F");const b=parseInt(e.join(""),16);return{r:b>>24&255,g:b>>16&255,b:b>>8&255,a:255&b,hex:"#"+e.slice(0,6).join("")}}q.getOptions=function(e){e||(e={}),e.color||(e.color={});const I=e.width&&e.width>=21?e.width:void 0;return{width:I,scale:I?4:e.scale||4,margin:typeof e.margin>"u"||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||{}}},q.getScale=function(e,b){return b.width&&b.width>=e+2*b.margin?b.width/(e+2*b.margin):b.scale},q.getImageWidth=function(e,b){const I=q.getScale(e,b);return Math.floor((e+2*b.margin)*I)},q.qrToImageData=function(e,b,I){const s=b.modules.size,C=b.modules.data,h=q.getScale(s,I),P=Math.floor((s+2*I.margin)*h),d=I.margin*h,S=[I.color.light,I.color.dark];for(let w=0;w<P;w++)for(let O=0;O<P;O++){let E=4*(w*P+O),R=I.color.light;w>=d&&O>=d&&w<P-d&&O<P-d&&(R=S[C[Math.floor((w-d)/h)*s+Math.floor((O-d)/h)]?1:0]),e[E++]=R.r,e[E++]=R.g,e[E++]=R.b,e[E]=R.a}}},3753:(Ve,q,p)=>{"use strict";var t=65536,I=p(3502).Buffer,s=global.crypto||global.msCrypto;Ve.exports=s&&s.getRandomValues?function C(h,P){if(h>4294967295)throw new RangeError("requested too many random bytes");var d=I.allocUnsafe(h);if(h>0)if(h>t)for(var S=0;S<h;S+=t)s.getRandomValues(d.slice(S,S+t));else s.getRandomValues(d);return"function"==typeof P?process.nextTick(function(){P(null,d)}):d}:function b(){throw new Error("Secure random number generation is not supported by this browser.\nUse Chrome, Firefox or Internet Explorer 11")}},4275:(Ve,q,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),b=p(3753),I=e.Buffer,s=e.kMaxLength,C=global.crypto||global.msCrypto,h=Math.pow(2,32)-1;function P(E,R){if("number"!=typeof E||E!=E)throw new TypeError("offset must be a number");if(E>h||E<0)throw new TypeError("offset must be a uint32");if(E>s||E>R)throw new RangeError("offset out of range")}function d(E,R,z){if("number"!=typeof E||E!=E)throw new TypeError("size must be a number");if(E>h||E<0)throw new TypeError("size must be a uint32");if(E+R>z||E>s)throw new RangeError("buffer too small")}function w(E,R,z,U){if(process.browser){var K=new Uint8Array(E.buffer,R,z);return C.getRandomValues(K),U?void process.nextTick(function(){U(null,E)}):E}if(!U)return b(z).copy(E,R),E;b(z,function(ie,ue){if(ie)return U(ie);ue.copy(E,R),U(null,E)})}C&&C.getRandomValues||!process.browser?(q.randomFill=function S(E,R,z,U){if(!(I.isBuffer(E)||E instanceof global.Uint8Array))throw new TypeError('"buf" argument must be a Buffer or Uint8Array');if("function"==typeof R)U=R,R=0,z=E.length;else if("function"==typeof z)U=z,z=E.length-R;else if("function"!=typeof U)throw new TypeError('"cb" argument must be a function');return P(R,E.length),d(z,R,E.length),w(E,R,z,U)},q.randomFillSync=function O(E,R,z){if(typeof R>"u"&&(R=0),!(I.isBuffer(E)||E instanceof global.Uint8Array))throw new TypeError('"buf" argument must be a Buffer or Uint8Array');return P(R,E.length),void 0===z&&(z=E.length-R),d(z,R,E.length),w(E,R,z)}):(q.randomFill=t,q.randomFillSync=t)},891:Ve=>{"use strict";var p={};function t(C,h,P){P||(P=Error);var S=function(w){function O(E,R,z){return w.call(this,function d(w,O,E){return"string"==typeof h?h:h(w,O,E)}(E,R,z))||this}return function q(C,h){C.prototype=Object.create(h.prototype),C.prototype.constructor=C,C.__proto__=h}(O,w),O}(P);S.prototype.name=P.name,S.prototype.code=C,p[C]=S}function e(C,h){if(Array.isArray(C)){var P=C.length;return C=C.map(function(d){return String(d)}),P>2?"one of ".concat(h," ").concat(C.slice(0,P-1).join(", "),", or ")+C[P-1]:2===P?"one of ".concat(h," ").concat(C[0]," or ").concat(C[1]):"of ".concat(h," ").concat(C[0])}return"of ".concat(h," ").concat(String(C))}t("ERR_INVALID_OPT_VALUE",function(C,h){return'The value "'+h+'" is invalid for option "'+C+'"'},TypeError),t("ERR_INVALID_ARG_TYPE",function(C,h,P){var d,S;if("string"==typeof h&&function b(C,h,P){return C.substr(!P||P<0?0:+P,h.length)===h}(h,"not ")?(d="must not be",h=h.replace(/^not /,"")):d="must be",function I(C,h,P){return(void 0===P||P>C.length)&&(P=C.length),C.substring(P-h.length,P)===h}(C," argument"))S="The ".concat(C," ").concat(d," ").concat(e(h,"type"));else{var w=function s(C,h,P){return"number"!=typeof P&&(P=0),!(P+h.length>C.length)&&-1!==C.indexOf(h,P)}(C,".")?"property":"argument";S='The "'.concat(C,'" ').concat(w," ").concat(d," ").concat(e(h,"type"))}return S+". Received type ".concat(typeof P)},TypeError),t("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF"),t("ERR_METHOD_NOT_IMPLEMENTED",function(C){return"The "+C+" method is not implemented"}),t("ERR_STREAM_PREMATURE_CLOSE","Premature close"),t("ERR_STREAM_DESTROYED",function(C){return"Cannot call "+C+" 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(C){return"Unknown encoding: "+C},TypeError),t("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event"),Ve.exports.q=p},1339:(Ve,q,p)=>{"use strict";var t=Object.keys||function(S){var w=[];for(var O in S)w.push(O);return w};Ve.exports=h;var e=p(3154),b=p(520);p(3894)(h,e);for(var I=t(b.prototype),s=0;s<I.length;s++){var C=I[s];h.prototype[C]||(h.prototype[C]=b.prototype[C])}function h(S){if(!(this instanceof h))return new h(S);e.call(this,S),b.call(this,S),this.allowHalfOpen=!0,S&&(!1===S.readable&&(this.readable=!1),!1===S.writable&&(this.writable=!1),!1===S.allowHalfOpen&&(this.allowHalfOpen=!1,this.once("end",P)))}function P(){this._writableState.ended||process.nextTick(d,this)}function d(S){S.end()}Object.defineProperty(h.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),Object.defineProperty(h.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(h.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}}),Object.defineProperty(h.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._readableState&&void 0!==this._writableState&&this._readableState.destroyed&&this._writableState.destroyed},set:function(w){void 0===this._readableState||void 0===this._writableState||(this._readableState.destroyed=w,this._writableState.destroyed=w)}})},6071:(Ve,q,p)=>{"use strict";Ve.exports=e;var t=p(6025);function e(b){if(!(this instanceof e))return new e(b);t.call(this,b)}p(3894)(e,t),e.prototype._transform=function(b,I,s){s(null,b)}},3154:(Ve,q,p)=>{"use strict";var t;Ve.exports=A,A.ReadableState=me,p(9069);var S,b=function(je,Ae){return je.listeners(Ae).length},I=p(4970),s=p(3172).Buffer,C=global.Uint8Array||function(){},d=p(4616);S=d&&d.debuglog?d.debuglog("stream"):function(){};var ie,ue,le,w=p(5019),O=p(1920),R=p(7102).getHighWaterMark,z=p(891).q,U=z.ERR_INVALID_ARG_TYPE,W=z.ERR_STREAM_PUSH_AFTER_EOF,K=z.ERR_METHOD_NOT_IMPLEMENTED,ee=z.ERR_STREAM_UNSHIFT_AFTER_END_EVENT;p(3894)(A,I);var ne=O.errorOrDestroy,de=["error","close","destroy","pause","resume"];function me(oe,je,Ae){t=t||p(1339),"boolean"!=typeof Ae&&(Ae=je instanceof t),this.objectMode=!!(oe=oe||{}).objectMode,Ae&&(this.objectMode=this.objectMode||!!oe.readableObjectMode),this.highWaterMark=R(this,oe,"readableHighWaterMark",Ae),this.buffer=new w,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.paused=!0,this.emitClose=!1!==oe.emitClose,this.autoDestroy=!!oe.autoDestroy,this.destroyed=!1,this.defaultEncoding=oe.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,oe.encoding&&(ie||(ie=p(3054).s),this.decoder=new ie(oe.encoding),this.encoding=oe.encoding)}function A(oe){if(t=t||p(1339),!(this instanceof A))return new A(oe);this._readableState=new me(oe,this,this instanceof t),this.readable=!0,oe&&("function"==typeof oe.read&&(this._read=oe.read),"function"==typeof oe.destroy&&(this._destroy=oe.destroy)),I.call(this)}function i(oe,je,Ae,he,Ce){S("readableAddChunk",je);var Ue,te=oe._readableState;if(null===je)te.reading=!1,function L(oe,je){if(S("onEofChunk"),!je.ended){if(je.decoder){var Ae=je.decoder.end();Ae&&Ae.length&&(je.buffer.push(Ae),je.length+=je.objectMode?1:Ae.length)}je.ended=!0,je.sync?m(oe):(je.needReadable=!1,je.emittedReadable||(je.emittedReadable=!0,n(oe)))}}(oe,te);else if(Ce||(Ue=function u(oe,je){var Ae;return!function P(oe){return s.isBuffer(oe)||oe instanceof C}(je)&&"string"!=typeof je&&void 0!==je&&!oe.objectMode&&(Ae=new U("chunk",["string","Buffer","Uint8Array"],je)),Ae}(te,je)),Ue)ne(oe,Ue);else if(te.objectMode||je&&je.length>0)if("string"!=typeof je&&!te.objectMode&&Object.getPrototypeOf(je)!==s.prototype&&(je=function h(oe){return s.from(oe)}(je)),he)te.endEmitted?ne(oe,new ee):a(oe,te,je,!0);else if(te.ended)ne(oe,new W);else{if(te.destroyed)return!1;te.reading=!1,te.decoder&&!Ae?(je=te.decoder.write(je),te.objectMode||0!==je.length?a(oe,te,je,!1):_(oe,te)):a(oe,te,je,!1)}else he||(te.reading=!1,_(oe,te));return!te.ended&&(te.length<te.highWaterMark||0===te.length)}function a(oe,je,Ae,he){je.flowing&&0===je.length&&!je.sync?(je.awaitDrain=0,oe.emit("data",Ae)):(je.length+=je.objectMode?1:Ae.length,he?je.buffer.unshift(Ae):je.buffer.push(Ae),je.needReadable&&m(oe)),_(oe,je)}Object.defineProperty(A.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._readableState&&this._readableState.destroyed},set:function(je){this._readableState&&(this._readableState.destroyed=je)}}),A.prototype.destroy=O.destroy,A.prototype._undestroy=O.undestroy,A.prototype._destroy=function(oe,je){je(oe)},A.prototype.push=function(oe,je){var he,Ae=this._readableState;return Ae.objectMode?he=!0:"string"==typeof oe&&((je=je||Ae.defaultEncoding)!==Ae.encoding&&(oe=s.from(oe,je),je=""),he=!0),i(this,oe,je,!1,he)},A.prototype.unshift=function(oe){return i(this,oe,null,!0,!1)},A.prototype.isPaused=function(){return!1===this._readableState.flowing},A.prototype.setEncoding=function(oe){ie||(ie=p(3054).s);var je=new ie(oe);this._readableState.decoder=je,this._readableState.encoding=this._readableState.decoder.encoding;for(var Ae=this._readableState.buffer.head,he="";null!==Ae;)he+=je.write(Ae.data),Ae=Ae.next;return this._readableState.buffer.clear(),""!==he&&this._readableState.buffer.push(he),this._readableState.length=he.length,this};var l=1073741824;function T(oe,je){return oe<=0||0===je.length&&je.ended?0:je.objectMode?1:oe!=oe?je.flowing&&je.length?je.buffer.head.data.length:je.length:(oe>je.highWaterMark&&(je.highWaterMark=function y(oe){return oe>=l?oe=l:(oe--,oe|=oe>>>1,oe|=oe>>>2,oe|=oe>>>4,oe|=oe>>>8,oe|=oe>>>16,oe++),oe}(oe)),oe<=je.length?oe:je.ended?je.length:(je.needReadable=!0,0))}function m(oe){var je=oe._readableState;S("emitReadable",je.needReadable,je.emittedReadable),je.needReadable=!1,je.emittedReadable||(S("emitReadable",je.flowing),je.emittedReadable=!0,process.nextTick(n,oe))}function n(oe){var je=oe._readableState;S("emitReadable_",je.destroyed,je.length,je.ended),!je.destroyed&&(je.length||je.ended)&&(oe.emit("readable"),je.emittedReadable=!1),je.needReadable=!je.flowing&&!je.ended&&je.length<=je.highWaterMark,Fe(oe)}function _(oe,je){je.readingMore||(je.readingMore=!0,process.nextTick(B,oe,je))}function B(oe,je){for(;!je.reading&&!je.ended&&(je.length<je.highWaterMark||je.flowing&&0===je.length);){var Ae=je.length;if(S("maybeReadMore read 0"),oe.read(0),Ae===je.length)break}je.readingMore=!1}function X(oe){var je=oe._readableState;je.readableListening=oe.listenerCount("readable")>0,je.resumeScheduled&&!je.paused?je.flowing=!0:oe.listenerCount("data")>0&&oe.resume()}function Le(oe){S("readable nexttick read 0"),oe.read(0)}function We(oe,je){S("resume",je.reading),je.reading||oe.read(0),je.resumeScheduled=!1,oe.emit("resume"),Fe(oe),je.flowing&&!je.reading&&oe.read(0)}function Fe(oe){var je=oe._readableState;for(S("flow",je.flowing);je.flowing&&null!==oe.read(););}function De(oe,je){return 0===je.length?null:(je.objectMode?Ae=je.buffer.shift():!oe||oe>=je.length?(Ae=je.decoder?je.buffer.join(""):1===je.buffer.length?je.buffer.first():je.buffer.concat(je.length),je.buffer.clear()):Ae=je.buffer.consume(oe,je.decoder),Ae);var Ae}function ye(oe){var je=oe._readableState;S("endReadable",je.endEmitted),je.endEmitted||(je.ended=!0,process.nextTick(ce,je,oe))}function ce(oe,je){if(S("endReadableNT",oe.endEmitted,oe.length),!oe.endEmitted&&0===oe.length&&(oe.endEmitted=!0,je.readable=!1,je.emit("end"),oe.autoDestroy)){var Ae=je._writableState;(!Ae||Ae.autoDestroy&&Ae.finished)&&je.destroy()}}function ve(oe,je){for(var Ae=0,he=oe.length;Ae<he;Ae++)if(oe[Ae]===je)return Ae;return-1}A.prototype.read=function(oe){S("read",oe),oe=parseInt(oe,10);var je=this._readableState,Ae=oe;if(0!==oe&&(je.emittedReadable=!1),0===oe&&je.needReadable&&((0!==je.highWaterMark?je.length>=je.highWaterMark:je.length>0)||je.ended))return S("read: emitReadable",je.length,je.ended),0===je.length&&je.ended?ye(this):m(this),null;if(0===(oe=T(oe,je))&&je.ended)return 0===je.length&&ye(this),null;var Ce,he=je.needReadable;return S("need readable",he),(0===je.length||je.length-oe<je.highWaterMark)&&S("length less than watermark",he=!0),je.ended||je.reading?S("reading or ended",he=!1):he&&(S("do read"),je.reading=!0,je.sync=!0,0===je.length&&(je.needReadable=!0),this._read(je.highWaterMark),je.sync=!1,je.reading||(oe=T(Ae,je))),null===(Ce=oe>0?De(oe,je):null)?(je.needReadable=je.length<=je.highWaterMark,oe=0):(je.length-=oe,je.awaitDrain=0),0===je.length&&(je.ended||(je.needReadable=!0),Ae!==oe&&je.ended&&ye(this)),null!==Ce&&this.emit("data",Ce),Ce},A.prototype._read=function(oe){ne(this,new K("_read()"))},A.prototype.pipe=function(oe,je){var Ae=this,he=this._readableState;switch(he.pipesCount){case 0:he.pipes=oe;break;case 1:he.pipes=[he.pipes,oe];break;default:he.pipes.push(oe)}he.pipesCount+=1,S("pipe count=%d opts=%j",he.pipesCount,je);var te=je&&!1===je.end||oe===process.stdout||oe===process.stderr?ot:Be;function Be(){S("onend"),oe.end()}he.endEmitted?process.nextTick(te):Ae.once("end",te),oe.on("unpipe",function Ue(wt,ke){S("onunpipe"),wt===Ae&&ke&&!1===ke.hasUnpiped&&(ke.hasUnpiped=!0,function ft(){S("cleanup"),oe.removeListener("close",Et),oe.removeListener("finish",pt),oe.removeListener("drain",ae),oe.removeListener("error",dt),oe.removeListener("unpipe",Ue),Ae.removeListener("end",Be),Ae.removeListener("end",ot),Ae.removeListener("data",Je),ge=!0,he.awaitDrain&&(!oe._writableState||oe._writableState.needDrain)&&ae()}())});var ae=function V(oe){return function(){var Ae=oe._readableState;S("pipeOnDrain",Ae.awaitDrain),Ae.awaitDrain&&Ae.awaitDrain--,0===Ae.awaitDrain&&b(oe,"data")&&(Ae.flowing=!0,Fe(oe))}}(Ae);oe.on("drain",ae);var ge=!1;function Je(wt){S("ondata");var ke=oe.write(wt);S("dest.write",ke),!1===ke&&((1===he.pipesCount&&he.pipes===oe||he.pipesCount>1&&-1!==ve(he.pipes,oe))&&!ge&&(S("false write response, pause",he.awaitDrain),he.awaitDrain++),Ae.pause())}function dt(wt){S("onerror",wt),ot(),oe.removeListener("error",dt),0===b(oe,"error")&&ne(oe,wt)}function Et(){oe.removeListener("finish",pt),ot()}function pt(){S("onfinish"),oe.removeListener("close",Et),ot()}function ot(){S("unpipe"),Ae.unpipe(oe)}return Ae.on("data",Je),function $(oe,je,Ae){if("function"==typeof oe.prependListener)return oe.prependListener(je,Ae);oe._events&&oe._events[je]?Array.isArray(oe._events[je])?oe._events[je].unshift(Ae):oe._events[je]=[Ae,oe._events[je]]:oe.on(je,Ae)}(oe,"error",dt),oe.once("close",Et),oe.once("finish",pt),oe.emit("pipe",Ae),he.flowing||(S("pipe resume"),Ae.resume()),oe},A.prototype.unpipe=function(oe){var je=this._readableState,Ae={hasUnpiped:!1};if(0===je.pipesCount)return this;if(1===je.pipesCount)return oe&&oe!==je.pipes||(oe||(oe=je.pipes),je.pipes=null,je.pipesCount=0,je.flowing=!1,oe&&oe.emit("unpipe",this,Ae)),this;if(!oe){var he=je.pipes,Ce=je.pipesCount;je.pipes=null,je.pipesCount=0,je.flowing=!1;for(var te=0;te<Ce;te++)he[te].emit("unpipe",this,{hasUnpiped:!1});return this}var Ue=ve(je.pipes,oe);return-1===Ue||(je.pipes.splice(Ue,1),je.pipesCount-=1,1===je.pipesCount&&(je.pipes=je.pipes[0]),oe.emit("unpipe",this,Ae)),this},A.prototype.addListener=A.prototype.on=function(oe,je){var Ae=I.prototype.on.call(this,oe,je),he=this._readableState;return"data"===oe?(he.readableListening=this.listenerCount("readable")>0,!1!==he.flowing&&this.resume()):"readable"===oe&&!he.endEmitted&&!he.readableListening&&(he.readableListening=he.needReadable=!0,he.flowing=!1,he.emittedReadable=!1,S("on readable",he.length,he.reading),he.length?m(this):he.reading||process.nextTick(Le,this)),Ae},A.prototype.removeListener=function(oe,je){var Ae=I.prototype.removeListener.call(this,oe,je);return"readable"===oe&&process.nextTick(X,this),Ae},A.prototype.removeAllListeners=function(oe){var je=I.prototype.removeAllListeners.apply(this,arguments);return("readable"===oe||void 0===oe)&&process.nextTick(X,this),je},A.prototype.resume=function(){var oe=this._readableState;return oe.flowing||(S("resume"),oe.flowing=!oe.readableListening,function $e(oe,je){je.resumeScheduled||(je.resumeScheduled=!0,process.nextTick(We,oe,je))}(this,oe)),oe.paused=!1,this},A.prototype.pause=function(){return S("call pause flowing=%j",this._readableState.flowing),!1!==this._readableState.flowing&&(S("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this},A.prototype.wrap=function(oe){var je=this,Ae=this._readableState,he=!1;for(var Ce in oe.on("end",function(){if(S("wrapped end"),Ae.decoder&&!Ae.ended){var Ue=Ae.decoder.end();Ue&&Ue.length&&je.push(Ue)}je.push(null)}),oe.on("data",function(Ue){S("wrapped data"),Ae.decoder&&(Ue=Ae.decoder.write(Ue)),Ae.objectMode&&null==Ue||!(Ae.objectMode||Ue&&Ue.length)||je.push(Ue)||(he=!0,oe.pause())}),oe)void 0===this[Ce]&&"function"==typeof oe[Ce]&&(this[Ce]=function(Be){return function(){return oe[Be].apply(oe,arguments)}}(Ce));for(var te=0;te<de.length;te++)oe.on(de[te],this.emit.bind(this,de[te]));return this._read=function(Ue){S("wrapped _read",Ue),he&&(he=!1,oe.resume())},this},"function"==typeof Symbol&&(A.prototype[Symbol.asyncIterator]=function(){return void 0===ue&&(ue=p(3872)),ue(this)}),Object.defineProperty(A.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),Object.defineProperty(A.prototype,"readableBuffer",{enumerable:!1,get:function(){return this._readableState&&this._readableState.buffer}}),Object.defineProperty(A.prototype,"readableFlowing",{enumerable:!1,get:function(){return this._readableState.flowing},set:function(je){this._readableState&&(this._readableState.flowing=je)}}),A._fromList=De,Object.defineProperty(A.prototype,"readableLength",{enumerable:!1,get:function(){return this._readableState.length}}),"function"==typeof Symbol&&(A.from=function(oe,je){return void 0===le&&(le=p(7412)),le(A,oe,je)})},6025:(Ve,q,p)=>{"use strict";Ve.exports=P;var t=p(891).q,e=t.ERR_METHOD_NOT_IMPLEMENTED,b=t.ERR_MULTIPLE_CALLBACK,I=t.ERR_TRANSFORM_ALREADY_TRANSFORMING,s=t.ERR_TRANSFORM_WITH_LENGTH_0,C=p(1339);function h(w,O){var E=this._transformState;E.transforming=!1;var R=E.writecb;if(null===R)return this.emit("error",new b);E.writechunk=null,E.writecb=null,null!=O&&this.push(O),R(w);var z=this._readableState;z.reading=!1,(z.needReadable||z.length<z.highWaterMark)&&this._read(z.highWaterMark)}function P(w){if(!(this instanceof P))return new P(w);C.call(this,w),this._transformState={afterTransform:h.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,w&&("function"==typeof w.transform&&(this._transform=w.transform),"function"==typeof w.flush&&(this._flush=w.flush)),this.on("prefinish",d)}function d(){var w=this;"function"!=typeof this._flush||this._readableState.destroyed?S(this,null,null):this._flush(function(O,E){S(w,O,E)})}function S(w,O,E){if(O)return w.emit("error",O);if(null!=E&&w.push(E),w._writableState.length)throw new s;if(w._transformState.transforming)throw new I;return w.push(null)}p(3894)(P,C),P.prototype.push=function(w,O){return this._transformState.needTransform=!1,C.prototype.push.call(this,w,O)},P.prototype._transform=function(w,O,E){E(new e("_transform()"))},P.prototype._write=function(w,O,E){var R=this._transformState;if(R.writecb=E,R.writechunk=w,R.writeencoding=O,!R.transforming){var z=this._readableState;(R.needTransform||z.needReadable||z.length<z.highWaterMark)&&this._read(z.highWaterMark)}},P.prototype._read=function(w){var O=this._transformState;null===O.writechunk||O.transforming?O.needTransform=!0:(O.transforming=!0,this._transform(O.writechunk,O.writeencoding,O.afterTransform))},P.prototype._destroy=function(w,O){C.prototype._destroy.call(this,w,function(E){O(E)})}},520:(Ve,q,p)=>{"use strict";function e(Fe){var De=this;this.next=null,this.entry=null,this.finish=function(){!function We(Fe,De,ye){var ce=Fe.entry;for(Fe.entry=null;ce;){var ve=ce.callback;De.pendingcb--,ve(ye),ce=ce.next}De.corkedRequestsFree.next=Fe}(De,Fe)}}var b;Ve.exports=me,me.WritableState=de;var $,I={deprecate:p(4364)},s=p(4970),C=p(3172).Buffer,h=global.Uint8Array||function(){},S=p(1920),O=p(7102).getHighWaterMark,E=p(891).q,R=E.ERR_INVALID_ARG_TYPE,z=E.ERR_METHOD_NOT_IMPLEMENTED,U=E.ERR_MULTIPLE_CALLBACK,W=E.ERR_STREAM_CANNOT_PIPE,K=E.ERR_STREAM_DESTROYED,ee=E.ERR_STREAM_NULL_VALUES,ie=E.ERR_STREAM_WRITE_AFTER_END,ue=E.ERR_UNKNOWN_ENCODING,le=S.errorOrDestroy;function ne(){}function de(Fe,De,ye){b=b||p(1339),"boolean"!=typeof ye&&(ye=De instanceof b),this.objectMode=!!(Fe=Fe||{}).objectMode,ye&&(this.objectMode=this.objectMode||!!Fe.writableObjectMode),this.highWaterMark=O(this,Fe,"writableHighWaterMark",ye),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1,this.decodeStrings=!(!1===Fe.decodeStrings),this.defaultEncoding=Fe.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(ve){!function L(Fe,De){var ye=Fe._writableState,ce=ye.sync,ve=ye.writecb;if("function"!=typeof ve)throw new U;if(function T(Fe){Fe.writing=!1,Fe.writecb=null,Fe.length-=Fe.writelen,Fe.writelen=0}(ye),De)!function y(Fe,De,ye,ce,ve){--De.pendingcb,ye?(process.nextTick(ve,ce),process.nextTick(Le,Fe,De),Fe._writableState.errorEmitted=!0,le(Fe,ce)):(ve(ce),Fe._writableState.errorEmitted=!0,le(Fe,ce),Le(Fe,De))}(Fe,ye,ce,De,ve);else{var oe=B(ye)||Fe.destroyed;!oe&&!ye.corked&&!ye.bufferProcessing&&ye.bufferedRequest&&_(Fe,ye),ce?process.nextTick(m,Fe,ye,oe,ve):m(Fe,ye,oe,ve)}}(De,ve)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=!1!==Fe.emitClose,this.autoDestroy=!!Fe.autoDestroy,this.bufferedRequestCount=0,this.corkedRequestsFree=new e(this)}function me(Fe){var De=this instanceof(b=b||p(1339));if(!De&&!$.call(me,this))return new me(Fe);this._writableState=new de(Fe,this,De),this.writable=!0,Fe&&("function"==typeof Fe.write&&(this._write=Fe.write),"function"==typeof Fe.writev&&(this._writev=Fe.writev),"function"==typeof Fe.destroy&&(this._destroy=Fe.destroy),"function"==typeof Fe.final&&(this._final=Fe.final)),s.call(this)}function l(Fe,De,ye,ce,ve,oe,je){De.writelen=ce,De.writecb=je,De.writing=!0,De.sync=!0,De.destroyed?De.onwrite(new K("write")):ye?Fe._writev(ve,De.onwrite):Fe._write(ve,oe,De.onwrite),De.sync=!1}function m(Fe,De,ye,ce){ye||function n(Fe,De){0===De.length&&De.needDrain&&(De.needDrain=!1,Fe.emit("drain"))}(Fe,De),De.pendingcb--,ce(),Le(Fe,De)}function _(Fe,De){De.bufferProcessing=!0;var ye=De.bufferedRequest;if(Fe._writev&&ye&&ye.next){var ve=new Array(De.bufferedRequestCount),oe=De.corkedRequestsFree;oe.entry=ye;for(var je=0,Ae=!0;ye;)ve[je]=ye,ye.isBuf||(Ae=!1),ye=ye.next,je+=1;ve.allBuffers=Ae,l(Fe,De,!0,De.length,ve,"",oe.finish),De.pendingcb++,De.lastBufferedRequest=null,oe.next?(De.corkedRequestsFree=oe.next,oe.next=null):De.corkedRequestsFree=new e(De),De.bufferedRequestCount=0}else{for(;ye;){var he=ye.chunk;if(l(Fe,De,!1,De.objectMode?1:he.length,he,ye.encoding,ye.callback),ye=ye.next,De.bufferedRequestCount--,De.writing)break}null===ye&&(De.lastBufferedRequest=null)}De.bufferedRequest=ye,De.bufferProcessing=!1}function B(Fe){return Fe.ending&&0===Fe.length&&null===Fe.bufferedRequest&&!Fe.finished&&!Fe.writing}function V(Fe,De){Fe._final(function(ye){De.pendingcb--,ye&&le(Fe,ye),De.prefinished=!0,Fe.emit("prefinish"),Le(Fe,De)})}function Le(Fe,De){var ye=B(De);if(ye&&(function X(Fe,De){!De.prefinished&&!De.finalCalled&&("function"!=typeof Fe._final||De.destroyed?(De.prefinished=!0,Fe.emit("prefinish")):(De.pendingcb++,De.finalCalled=!0,process.nextTick(V,Fe,De)))}(Fe,De),0===De.pendingcb&&(De.finished=!0,Fe.emit("finish"),De.autoDestroy))){var ce=Fe._readableState;(!ce||ce.autoDestroy&&ce.endEmitted)&&Fe.destroy()}return ye}p(3894)(me,s),de.prototype.getBuffer=function(){for(var De=this.bufferedRequest,ye=[];De;)ye.push(De),De=De.next;return ye},function(){try{Object.defineProperty(de.prototype,"buffer",{get:I.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch{}}(),"function"==typeof Symbol&&Symbol.hasInstance&&"function"==typeof Function.prototype[Symbol.hasInstance]?($=Function.prototype[Symbol.hasInstance],Object.defineProperty(me,Symbol.hasInstance,{value:function(De){return!!$.call(this,De)||this===me&&De&&De._writableState instanceof de}})):$=function(De){return De instanceof this},me.prototype.pipe=function(){le(this,new W)},me.prototype.write=function(Fe,De,ye){var ce=this._writableState,ve=!1,oe=!ce.objectMode&&function d(Fe){return C.isBuffer(Fe)||Fe instanceof h}(Fe);return oe&&!C.isBuffer(Fe)&&(Fe=function P(Fe){return C.from(Fe)}(Fe)),"function"==typeof De&&(ye=De,De=null),oe?De="buffer":De||(De=ce.defaultEncoding),"function"!=typeof ye&&(ye=ne),ce.ending?function A(Fe,De){var ye=new ie;le(Fe,ye),process.nextTick(De,ye)}(this,ye):(oe||function i(Fe,De,ye,ce){var ve;return null===ye?ve=new ee:"string"!=typeof ye&&!De.objectMode&&(ve=new R("chunk",["string","Buffer"],ye)),!ve||(le(Fe,ve),process.nextTick(ce,ve),!1)}(this,ce,Fe,ye))&&(ce.pendingcb++,ve=function u(Fe,De,ye,ce,ve,oe){if(!ye){var je=function a(Fe,De,ye){return!Fe.objectMode&&!1!==Fe.decodeStrings&&"string"==typeof De&&(De=C.from(De,ye)),De}(De,ce,ve);ce!==je&&(ye=!0,ve="buffer",ce=je)}var Ae=De.objectMode?1:ce.length;De.length+=Ae;var he=De.length<De.highWaterMark;if(he||(De.needDrain=!0),De.writing||De.corked){var Ce=De.lastBufferedRequest;De.lastBufferedRequest={chunk:ce,encoding:ve,isBuf:ye,callback:oe,next:null},Ce?Ce.next=De.lastBufferedRequest:De.bufferedRequest=De.lastBufferedRequest,De.bufferedRequestCount+=1}else l(Fe,De,!1,Ae,ce,ve,oe);return he}(this,ce,oe,Fe,De,ye)),ve},me.prototype.cork=function(){this._writableState.corked++},me.prototype.uncork=function(){var Fe=this._writableState;Fe.corked&&(Fe.corked--,!Fe.writing&&!Fe.corked&&!Fe.bufferProcessing&&Fe.bufferedRequest&&_(this,Fe))},me.prototype.setDefaultEncoding=function(De){if("string"==typeof De&&(De=De.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((De+"").toLowerCase())>-1))throw new ue(De);return this._writableState.defaultEncoding=De,this},Object.defineProperty(me.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(me.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),me.prototype._write=function(Fe,De,ye){ye(new z("_write()"))},me.prototype._writev=null,me.prototype.end=function(Fe,De,ye){var ce=this._writableState;return"function"==typeof Fe?(ye=Fe,Fe=null,De=null):"function"==typeof De&&(ye=De,De=null),null!=Fe&&this.write(Fe,De),ce.corked&&(ce.corked=1,this.uncork()),ce.ending||function $e(Fe,De,ye){De.ending=!0,Le(Fe,De),ye&&(De.finished?process.nextTick(ye):Fe.once("finish",ye)),De.ended=!0,Fe.writable=!1}(this,ce,ye),this},Object.defineProperty(me.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}}),Object.defineProperty(me.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._writableState&&this._writableState.destroyed},set:function(De){this._writableState&&(this._writableState.destroyed=De)}}),me.prototype.destroy=S.destroy,me.prototype._undestroy=S.undestroy,me.prototype._destroy=function(Fe,De){De(Fe)}},3872:(Ve,q,p)=>{"use strict";var t;function e(K,ee,ie){return ee in K?Object.defineProperty(K,ee,{value:ie,enumerable:!0,configurable:!0,writable:!0}):K[ee]=ie,K}var b=p(7542),I=Symbol("lastResolve"),s=Symbol("lastReject"),C=Symbol("error"),h=Symbol("ended"),P=Symbol("lastPromise"),d=Symbol("handlePromise"),S=Symbol("stream");function w(K,ee){return{value:K,done:ee}}function O(K){var ee=K[I];if(null!==ee){var ie=K[S].read();null!==ie&&(K[P]=null,K[I]=null,K[s]=null,ee(w(ie,!1)))}}function E(K){process.nextTick(O,K)}var z=Object.getPrototypeOf(function(){}),U=Object.setPrototypeOf((e(t={get stream(){return this[S]},next:function(){var ee=this,ie=this[C];if(null!==ie)return Promise.reject(ie);if(this[h])return Promise.resolve(w(void 0,!0));if(this[S].destroyed)return new Promise(function(de,$){process.nextTick(function(){ee[C]?$(ee[C]):de(w(void 0,!0))})});var le,ue=this[P];if(ue)le=new Promise(function R(K,ee){return function(ie,ue){K.then(function(){ee[h]?ie(w(void 0,!0)):ee[d](ie,ue)},ue)}}(ue,this));else{var ne=this[S].read();if(null!==ne)return Promise.resolve(w(ne,!1));le=new Promise(this[d])}return this[P]=le,le}},Symbol.asyncIterator,function(){return this}),e(t,"return",function(){var ee=this;return new Promise(function(ie,ue){ee[S].destroy(null,function(le){le?ue(le):ie(w(void 0,!0))})})}),t),z);Ve.exports=function(ee){var ie,ue=Object.create(U,(e(ie={},S,{value:ee,writable:!0}),e(ie,I,{value:null,writable:!0}),e(ie,s,{value:null,writable:!0}),e(ie,C,{value:null,writable:!0}),e(ie,h,{value:ee._readableState.endEmitted,writable:!0}),e(ie,d,{value:function(ne,de){var $=ue[S].read();$?(ue[P]=null,ue[I]=null,ue[s]=null,ne(w($,!1))):(ue[I]=ne,ue[s]=de)},writable:!0}),ie));return ue[P]=null,b(ee,function(le){if(le&&"ERR_STREAM_PREMATURE_CLOSE"!==le.code){var ne=ue[s];return null!==ne&&(ue[P]=null,ue[I]=null,ue[s]=null,ne(le)),void(ue[C]=le)}var de=ue[I];null!==de&&(ue[P]=null,ue[I]=null,ue[s]=null,de(w(void 0,!0))),ue[h]=!0}),ee.on("readable",E.bind(null,ue)),ue}},5019:(Ve,q,p)=>{"use strict";function t(E,R){var z=Object.keys(E);if(Object.getOwnPropertySymbols){var U=Object.getOwnPropertySymbols(E);R&&(U=U.filter(function(W){return Object.getOwnPropertyDescriptor(E,W).enumerable})),z.push.apply(z,U)}return z}function b(E,R,z){return R in E?Object.defineProperty(E,R,{value:z,enumerable:!0,configurable:!0,writable:!0}):E[R]=z,E}function s(E,R){for(var z=0;z<R.length;z++){var U=R[z];U.enumerable=U.enumerable||!1,U.configurable=!0,"value"in U&&(U.writable=!0),Object.defineProperty(E,U.key,U)}}var P=p(3172).Buffer,S=p(2361).inspect,w=S&&S.custom||"inspect";function O(E,R,z){P.prototype.copy.call(E,R,z)}Ve.exports=function(){function E(){(function I(E,R){if(!(E instanceof R))throw new TypeError("Cannot call a class as a function")})(this,E),this.head=null,this.tail=null,this.length=0}return function C(E,R,z){R&&s(E.prototype,R),z&&s(E,z)}(E,[{key:"push",value:function(z){var U={data:z,next:null};this.length>0?this.tail.next=U:this.head=U,this.tail=U,++this.length}},{key:"unshift",value:function(z){var U={data:z,next:this.head};0===this.length&&(this.tail=U),this.head=U,++this.length}},{key:"shift",value:function(){if(0!==this.length){var z=this.head.data;return this.head=1===this.length?this.tail=null:this.head.next,--this.length,z}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(z){if(0===this.length)return"";for(var U=this.head,W=""+U.data;U=U.next;)W+=z+U.data;return W}},{key:"concat",value:function(z){if(0===this.length)return P.alloc(0);for(var U=P.allocUnsafe(z>>>0),W=this.head,K=0;W;)O(W.data,U,K),K+=W.data.length,W=W.next;return U}},{key:"consume",value:function(z,U){var W;return z<this.head.data.length?(W=this.head.data.slice(0,z),this.head.data=this.head.data.slice(z)):W=z===this.head.data.length?this.shift():U?this._getString(z):this._getBuffer(z),W}},{key:"first",value:function(){return this.head.data}},{key:"_getString",value:function(z){var U=this.head,W=1,K=U.data;for(z-=K.length;U=U.next;){var ee=U.data,ie=z>ee.length?ee.length:z;if(K+=ie===ee.length?ee:ee.slice(0,z),0==(z-=ie)){ie===ee.length?(++W,this.head=U.next?U.next:this.tail=null):(this.head=U,U.data=ee.slice(ie));break}++W}return this.length-=W,K}},{key:"_getBuffer",value:function(z){var U=P.allocUnsafe(z),W=this.head,K=1;for(W.data.copy(U),z-=W.data.length;W=W.next;){var ee=W.data,ie=z>ee.length?ee.length:z;if(ee.copy(U,U.length-z,0,ie),0==(z-=ie)){ie===ee.length?(++K,this.head=W.next?W.next:this.tail=null):(this.head=W,W.data=ee.slice(ie));break}++K}return this.length-=K,U}},{key:w,value:function(z,U){return S(this,function e(E){for(var R=1;R<arguments.length;R++){var z=null!=arguments[R]?arguments[R]:{};R%2?t(Object(z),!0).forEach(function(U){b(E,U,z[U])}):Object.getOwnPropertyDescriptors?Object.defineProperties(E,Object.getOwnPropertyDescriptors(z)):t(Object(z)).forEach(function(U){Object.defineProperty(E,U,Object.getOwnPropertyDescriptor(z,U))})}return E}({},U,{depth:0,customInspect:!1}))}}]),E}()},1920:Ve=>{"use strict";function p(s,C){b(s,C),t(s)}function t(s){s._writableState&&!s._writableState.emitClose||s._readableState&&!s._readableState.emitClose||s.emit("close")}function b(s,C){s.emit("error",C)}Ve.exports={destroy:function q(s,C){var h=this;return this._readableState&&this._readableState.destroyed||this._writableState&&this._writableState.destroyed?(C?C(s):s&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,process.nextTick(b,this,s)):process.nextTick(b,this,s)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(s||null,function(S){!C&&S?h._writableState?h._writableState.errorEmitted?process.nextTick(t,h):(h._writableState.errorEmitted=!0,process.nextTick(p,h,S)):process.nextTick(p,h,S):C?(process.nextTick(t,h),C(S)):process.nextTick(t,h)}),this)},undestroy:function e(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)},errorOrDestroy:function I(s,C){var h=s._readableState,P=s._writableState;h&&h.autoDestroy||P&&P.autoDestroy?s.destroy(C):s.emit("error",C)}}},7542:(Ve,q,p)=>{"use strict";var t=p(891).q.ERR_STREAM_PREMATURE_CLOSE;function b(){}Ve.exports=function s(C,h,P){if("function"==typeof h)return s(C,null,h);h||(h={}),P=function e(C){var h=!1;return function(){if(!h){h=!0;for(var P=arguments.length,d=new Array(P),S=0;S<P;S++)d[S]=arguments[S];C.apply(this,d)}}}(P||b);var d=h.readable||!1!==h.readable&&C.readable,S=h.writable||!1!==h.writable&&C.writable,w=function(){C.writable||E()},O=C._writableState&&C._writableState.finished,E=function(){S=!1,O=!0,d||P.call(C)},R=C._readableState&&C._readableState.endEmitted,z=function(){d=!1,R=!0,S||P.call(C)},U=function(ie){P.call(C,ie)},W=function(){var ie;return d&&!R?((!C._readableState||!C._readableState.ended)&&(ie=new t),P.call(C,ie)):S&&!O?((!C._writableState||!C._writableState.ended)&&(ie=new t),P.call(C,ie)):void 0},K=function(){C.req.on("finish",E)};return function I(C){return C.setHeader&&"function"==typeof C.abort}(C)?(C.on("complete",E),C.on("abort",W),C.req?K():C.on("request",K)):S&&!C._writableState&&(C.on("end",w),C.on("close",w)),C.on("end",z),C.on("finish",E),!1!==h.error&&C.on("error",U),C.on("close",W),function(){C.removeListener("complete",E),C.removeListener("abort",W),C.removeListener("request",K),C.req&&C.req.removeListener("finish",E),C.removeListener("end",w),C.removeListener("close",w),C.removeListener("finish",E),C.removeListener("end",z),C.removeListener("error",U),C.removeListener("close",W)}}},7412:Ve=>{Ve.exports=function(){throw new Error("Readable.from is not available in the browser")}},954:(Ve,q,p)=>{"use strict";var t,b=p(891).q,I=b.ERR_MISSING_ARGS,s=b.ERR_STREAM_DESTROYED;function C(E){if(E)throw E}function P(E,R,z,U){U=function e(E){var R=!1;return function(){R||(R=!0,E.apply(void 0,arguments))}}(U);var W=!1;E.on("close",function(){W=!0}),void 0===t&&(t=p(7542)),t(E,{readable:R,writable:z},function(ee){if(ee)return U(ee);W=!0,U()});var K=!1;return function(ee){if(!W&&!K){if(K=!0,function h(E){return E.setHeader&&"function"==typeof E.abort}(E))return E.abort();if("function"==typeof E.destroy)return E.destroy();U(ee||new s("pipe"))}}}function d(E){E()}function S(E,R){return E.pipe(R)}function w(E){return E.length&&"function"==typeof E[E.length-1]?E.pop():C}Ve.exports=function O(){for(var E=arguments.length,R=new Array(E),z=0;z<E;z++)R[z]=arguments[z];var U=w(R);if(Array.isArray(R[0])&&(R=R[0]),R.length<2)throw new I("streams");var W,K=R.map(function(ee,ie){var ue=ie<R.length-1;return P(ee,ue,ie>0,function(ne){W||(W=ne),ne&&K.forEach(d),!ue&&(K.forEach(d),U(W))})});return R.reduce(S)}},7102:(Ve,q,p)=>{"use strict";var t=p(891).q.ERR_INVALID_OPT_VALUE;Ve.exports={getHighWaterMark:function b(I,s,C,h){var P=function e(I,s,C){return null!=I.highWaterMark?I.highWaterMark:s?I[C]:null}(s,h,C);if(null!=P){if(!isFinite(P)||Math.floor(P)!==P||P<0)throw new t(h?C:"highWaterMark",P);return Math.floor(P)}return I.objectMode?16:16384}}},4970:(Ve,q,p)=>{Ve.exports=p(9069).EventEmitter},5685:(Ve,q,p)=>{(q=Ve.exports=p(3154)).Stream=q,q.Readable=q,q.Writable=p(520),q.Duplex=p(1339),q.Transform=p(6025),q.PassThrough=p(6071),q.finished=p(7542),q.pipeline=p(954)},5126:Ve=>{"use strict";function q(e){return e instanceof Buffer?Buffer.from(e):new e.constructor(e.buffer.slice(),e.byteOffset,e.length)}Ve.exports=function p(e){return(e=e||{}).circles?function t(e){var b=[],I=[];return e.proto?function h(P){if("object"!=typeof P||null===P)return P;if(P instanceof Date)return new Date(P);if(Array.isArray(P))return s(P,h);if(P instanceof Map)return new Map(s(Array.from(P),h));if(P instanceof Set)return new Set(s(Array.from(P),h));var d={};for(var S in b.push(P),I.push(d),P){var w=P[S];if("object"!=typeof w||null===w)d[S]=w;else if(w instanceof Date)d[S]=new Date(w);else if(w instanceof Map)d[S]=new Map(s(Array.from(w),h));else if(w instanceof Set)d[S]=new Set(s(Array.from(w),h));else if(ArrayBuffer.isView(w))d[S]=q(w);else{var O=b.indexOf(w);d[S]=-1!==O?I[O]:h(w)}}return b.pop(),I.pop(),d}:function C(P){if("object"!=typeof P||null===P)return P;if(P instanceof Date)return new Date(P);if(Array.isArray(P))return s(P,C);if(P instanceof Map)return new Map(s(Array.from(P),C));if(P instanceof Set)return new Set(s(Array.from(P),C));var d={};for(var S in b.push(P),I.push(d),P)if(!1!==Object.hasOwnProperty.call(P,S)){var w=P[S];if("object"!=typeof w||null===w)d[S]=w;else if(w instanceof Date)d[S]=new Date(w);else if(w instanceof Map)d[S]=new Map(s(Array.from(w),C));else if(w instanceof Set)d[S]=new Set(s(Array.from(w),C));else if(ArrayBuffer.isView(w))d[S]=q(w);else{var O=b.indexOf(w);d[S]=-1!==O?I[O]:C(w)}}return b.pop(),I.pop(),d};function s(P,d){for(var S=Object.keys(P),w=new Array(S.length),O=0;O<S.length;O++){var E=S[O],R=P[E];if("object"!=typeof R||null===R)w[E]=R;else if(R instanceof Date)w[E]=new Date(R);else if(ArrayBuffer.isView(R))w[E]=q(R);else{var z=b.indexOf(R);w[E]=-1!==z?I[z]:d(R)}}return w}}(e):e.proto?function s(C){if("object"!=typeof C||null===C)return C;if(C instanceof Date)return new Date(C);if(Array.isArray(C))return b(C,s);if(C instanceof Map)return new Map(b(Array.from(C),s));if(C instanceof Set)return new Set(b(Array.from(C),s));var h={};for(var P in C){var d=C[P];h[P]="object"!=typeof d||null===d?d:d instanceof Date?new Date(d):d instanceof Map?new Map(b(Array.from(d),s)):d instanceof Set?new Set(b(Array.from(d),s)):ArrayBuffer.isView(d)?q(d):s(d)}return h}:function I(C){if("object"!=typeof C||null===C)return C;if(C instanceof Date)return new Date(C);if(Array.isArray(C))return b(C,I);if(C instanceof Map)return new Map(b(Array.from(C),I));if(C instanceof Set)return new Set(b(Array.from(C),I));var h={};for(var P in C)if(!1!==Object.hasOwnProperty.call(C,P)){var d=C[P];h[P]="object"!=typeof d||null===d?d:d instanceof Date?new Date(d):d instanceof Map?new Map(b(Array.from(d),I)):d instanceof Set?new Set(b(Array.from(d),I)):ArrayBuffer.isView(d)?q(d):I(d)}return h};function b(C,h){for(var P=Object.keys(C),d=new Array(P.length),S=0;S<P.length;S++){var w=P[S],O=C[w];d[w]="object"!=typeof O||null===O?O:O instanceof Date?new Date(O):ArrayBuffer.isView(O)?q(O):h(O)}return d}}},5634:(Ve,q,p)=>{"use strict";var t=p(3172).Buffer,e=p(3894),b=p(9650),I=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],C=[5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11],h=[11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6],P=[8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11],d=[0,1518500249,1859775393,2400959708,2840853838],S=[1352829926,1548603684,1836072691,2053994217,0];function w(){b.call(this,64),this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520}function O(K,ee){return K<<ee|K>>>32-ee}function E(K,ee,ie,ue,le,ne,de,$){return O(K+(ee^ie^ue)+ne+de|0,$)+le|0}function R(K,ee,ie,ue,le,ne,de,$){return O(K+(ee&ie|~ee&ue)+ne+de|0,$)+le|0}function z(K,ee,ie,ue,le,ne,de,$){return O(K+((ee|~ie)^ue)+ne+de|0,$)+le|0}function U(K,ee,ie,ue,le,ne,de,$){return O(K+(ee&ue|ie&~ue)+ne+de|0,$)+le|0}function W(K,ee,ie,ue,le,ne,de,$){return O(K+(ee^(ie|~ue))+ne+de|0,$)+le|0}e(w,b),w.prototype._update=function(){for(var K=I,ee=0;ee<16;++ee)K[ee]=this._block.readInt32LE(4*ee);for(var ie=0|this._a,ue=0|this._b,le=0|this._c,ne=0|this._d,de=0|this._e,$=0|this._a,me=0|this._b,A=0|this._c,i=0|this._d,a=0|this._e,u=0;u<80;u+=1){var l,y;u<16?(l=E(ie,ue,le,ne,de,K[s[u]],d[0],h[u]),y=W($,me,A,i,a,K[C[u]],S[0],P[u])):u<32?(l=R(ie,ue,le,ne,de,K[s[u]],d[1],h[u]),y=U($,me,A,i,a,K[C[u]],S[1],P[u])):u<48?(l=z(ie,ue,le,ne,de,K[s[u]],d[2],h[u]),y=z($,me,A,i,a,K[C[u]],S[2],P[u])):u<64?(l=U(ie,ue,le,ne,de,K[s[u]],d[3],h[u]),y=R($,me,A,i,a,K[C[u]],S[3],P[u])):(l=W(ie,ue,le,ne,de,K[s[u]],d[4],h[u]),y=E($,me,A,i,a,K[C[u]],S[4],P[u])),ie=de,de=ne,ne=O(le,10),le=ue,ue=l,$=a,a=i,i=O(A,10),A=me,me=y}var T=this._b+le+i|0;this._b=this._c+ne+a|0,this._c=this._d+de+$|0,this._d=this._e+ie+me|0,this._e=this._a+ue+A|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 K=t.alloc?t.alloc(20):new t(20);return K.writeInt32LE(this._a,0),K.writeInt32LE(this._b,4),K.writeInt32LE(this._c,8),K.writeInt32LE(this._d,12),K.writeInt32LE(this._e,16),K},Ve.exports=w},1135:(Ve,q,p)=>{"use strict";p.d(q,{X:()=>e});var t=p(7579);class e extends t.x{constructor(I){super(),this._value=I}get value(){return this.getValue()}_subscribe(I){const s=super._subscribe(I);return!s.closed&&I.next(this._value),s}getValue(){const{hasError:I,thrownError:s,_value:C}=this;if(I)throw s;return this._throwIfClosed(),C}next(I){super.next(this._value=I)}}},9751:(Ve,q,p)=>{"use strict";p.d(q,{y:()=>P});var t=p(930),e=p(727),b=p(8822),I=p(9635),s=p(2416),C=p(576),h=p(2806);let P=(()=>{class O{constructor(R){R&&(this._subscribe=R)}lift(R){const z=new O;return z.source=this,z.operator=R,z}subscribe(R,z,U){const W=function w(O){return O&&O instanceof t.Lv||function S(O){return O&&(0,C.m)(O.next)&&(0,C.m)(O.error)&&(0,C.m)(O.complete)}(O)&&(0,e.Nn)(O)}(R)?R:new t.Hp(R,z,U);return(0,h.x)(()=>{const{operator:K,source:ee}=this;W.add(K?K.call(W,ee):ee?this._subscribe(W):this._trySubscribe(W))}),W}_trySubscribe(R){try{return this._subscribe(R)}catch(z){R.error(z)}}forEach(R,z){return new(z=d(z))((U,W)=>{const K=new t.Hp({next:ee=>{try{R(ee)}catch(ie){W(ie),K.unsubscribe()}},error:W,complete:U});this.subscribe(K)})}_subscribe(R){var z;return null===(z=this.source)||void 0===z?void 0:z.subscribe(R)}[b.L](){return this}pipe(...R){return(0,I.U)(R)(this)}toPromise(R){return new(R=d(R))((z,U)=>{let W;this.subscribe(K=>W=K,K=>U(K),()=>z(W))})}}return O.create=E=>new O(E),O})();function d(O){var E;return null!==(E=O??s.v.Promise)&&void 0!==E?E:Promise}},4707:(Ve,q,p)=>{"use strict";p.d(q,{t:()=>b});var t=p(7579),e=p(6063);class b extends t.x{constructor(s=1/0,C=1/0,h=e.l){super(),this._bufferSize=s,this._windowTime=C,this._timestampProvider=h,this._buffer=[],this._infiniteTimeWindow=!0,this._infiniteTimeWindow=C===1/0,this._bufferSize=Math.max(1,s),this._windowTime=Math.max(1,C)}next(s){const{isStopped:C,_buffer:h,_infiniteTimeWindow:P,_timestampProvider:d,_windowTime:S}=this;C||(h.push(s),!P&&h.push(d.now()+S)),this._trimBuffer(),super.next(s)}_subscribe(s){this._throwIfClosed(),this._trimBuffer();const C=this._innerSubscribe(s),{_infiniteTimeWindow:h,_buffer:P}=this,d=P.slice();for(let S=0;S<d.length&&!s.closed;S+=h?1:2)s.next(d[S]);return this._checkFinalizedStatuses(s),C}_trimBuffer(){const{_bufferSize:s,_timestampProvider:C,_buffer:h,_infiniteTimeWindow:P}=this,d=(P?1:2)*s;if(s<1/0&&d<h.length&&h.splice(0,h.length-d),!P){const S=C.now();let w=0;for(let O=1;O<h.length&&h[O]<=S;O+=2)w=O;w&&h.splice(0,w+1)}}}},7579:(Ve,q,p)=>{"use strict";p.d(q,{u:()=>P,x:()=>h});var t=p(9751),e=p(727);const I=(0,p(3888).d)(d=>function(){d(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"});var s=p(8737),C=p(2806);let h=(()=>{class d extends t.y{constructor(){super(),this.closed=!1,this.currentObservers=null,this.observers=[],this.isStopped=!1,this.hasError=!1,this.thrownError=null}lift(w){const O=new P(this,this);return O.operator=w,O}_throwIfClosed(){if(this.closed)throw new I}next(w){(0,C.x)(()=>{if(this._throwIfClosed(),!this.isStopped){this.currentObservers||(this.currentObservers=Array.from(this.observers));for(const O of this.currentObservers)O.next(w)}})}error(w){(0,C.x)(()=>{if(this._throwIfClosed(),!this.isStopped){this.hasError=this.isStopped=!0,this.thrownError=w;const{observers:O}=this;for(;O.length;)O.shift().error(w)}})}complete(){(0,C.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:O,isStopped:E,observers:R}=this;return O||E?e.Lc:(this.currentObservers=null,R.push(w),new e.w0(()=>{this.currentObservers=null,(0,s.P)(R,w)}))}_checkFinalizedStatuses(w){const{hasError:O,thrownError:E,isStopped:R}=this;O?w.error(E):R&&w.complete()}asObservable(){const w=new t.y;return w.source=this,w}}return d.create=(S,w)=>new P(S,w),d})();class P extends h{constructor(S,w){super(),this.destination=S,this.source=w}next(S){var w,O;null===(O=null===(w=this.destination)||void 0===w?void 0:w.next)||void 0===O||O.call(w,S)}error(S){var w,O;null===(O=null===(w=this.destination)||void 0===w?void 0:w.error)||void 0===O||O.call(w,S)}complete(){var S,w;null===(w=null===(S=this.destination)||void 0===S?void 0:S.complete)||void 0===w||w.call(S)}_subscribe(S){var w,O;return null!==(O=null===(w=this.source)||void 0===w?void 0:w.subscribe(S))&&void 0!==O?O:e.Lc}}},930:(Ve,q,p)=>{"use strict";p.d(q,{Hp:()=>U,Lv:()=>O});var t=p(576),e=p(727),b=p(2416),I=p(7849),s=p(5032);const C=d("C",void 0,void 0);function d(ue,le,ne){return{kind:ue,value:le,error:ne}}var S=p(3410),w=p(2806);class O extends e.w0{constructor(le){super(),this.isStopped=!1,le?(this.destination=le,(0,e.Nn)(le)&&le.add(this)):this.destination=ie}static create(le,ne,de){return new U(le,ne,de)}next(le){this.isStopped?ee(function P(ue){return d("N",ue,void 0)}(le),this):this._next(le)}error(le){this.isStopped?ee(function h(ue){return d("E",void 0,ue)}(le),this):(this.isStopped=!0,this._error(le))}complete(){this.isStopped?ee(C,this):(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe(),this.destination=null)}_next(le){this.destination.next(le)}_error(le){try{this.destination.error(le)}finally{this.unsubscribe()}}_complete(){try{this.destination.complete()}finally{this.unsubscribe()}}}const E=Function.prototype.bind;function R(ue,le){return E.call(ue,le)}class z{constructor(le){this.partialObserver=le}next(le){const{partialObserver:ne}=this;if(ne.next)try{ne.next(le)}catch(de){W(de)}}error(le){const{partialObserver:ne}=this;if(ne.error)try{ne.error(le)}catch(de){W(de)}else W(le)}complete(){const{partialObserver:le}=this;if(le.complete)try{le.complete()}catch(ne){W(ne)}}}class U extends O{constructor(le,ne,de){let $;if(super(),(0,t.m)(le)||!le)$={next:le??void 0,error:ne??void 0,complete:de??void 0};else{let me;this&&b.v.useDeprecatedNextContext?(me=Object.create(le),me.unsubscribe=()=>this.unsubscribe(),$={next:le.next&&R(le.next,me),error:le.error&&R(le.error,me),complete:le.complete&&R(le.complete,me)}):$=le}this.destination=new z($)}}function W(ue){b.v.useDeprecatedSynchronousErrorHandling?(0,w.O)(ue):(0,I.h)(ue)}function ee(ue,le){const{onStoppedNotification:ne}=b.v;ne&&S.z.setTimeout(()=>ne(ue,le))}const ie={closed:!0,next:s.Z,error:function K(ue){throw ue},complete:s.Z}},727:(Ve,q,p)=>{"use strict";p.d(q,{Lc:()=>C,w0:()=>s,Nn:()=>h});var t=p(576);const b=(0,p(3888).d)(d=>function(w){d(this),this.message=w?`${w.length} errors occurred during unsubscription:\n${w.map((O,E)=>`${E+1}) ${O.toString()}`).join("\n ")}`:"",this.name="UnsubscriptionError",this.errors=w});var I=p(8737);class s{constructor(S){this.initialTeardown=S,this.closed=!1,this._parentage=null,this._finalizers=null}unsubscribe(){let S;if(!this.closed){this.closed=!0;const{_parentage:w}=this;if(w)if(this._parentage=null,Array.isArray(w))for(const R of w)R.remove(this);else w.remove(this);const{initialTeardown:O}=this;if((0,t.m)(O))try{O()}catch(R){S=R instanceof b?R.errors:[R]}const{_finalizers:E}=this;if(E){this._finalizers=null;for(const R of E)try{P(R)}catch(z){S=S??[],z instanceof b?S=[...S,...z.errors]:S.push(z)}}if(S)throw new b(S)}}add(S){var w;if(S&&S!==this)if(this.closed)P(S);else{if(S instanceof s){if(S.closed||S._hasParent(this))return;S._addParent(this)}(this._finalizers=null!==(w=this._finalizers)&&void 0!==w?w:[]).push(S)}}_hasParent(S){const{_parentage:w}=this;return w===S||Array.isArray(w)&&w.includes(S)}_addParent(S){const{_parentage:w}=this;this._parentage=Array.isArray(w)?(w.push(S),w):w?[w,S]:S}_removeParent(S){const{_parentage:w}=this;w===S?this._parentage=null:Array.isArray(w)&&(0,I.P)(w,S)}remove(S){const{_finalizers:w}=this;w&&(0,I.P)(w,S),S instanceof s&&S._removeParent(this)}}s.EMPTY=(()=>{const d=new s;return d.closed=!0,d})();const C=s.EMPTY;function h(d){return d instanceof s||d&&"closed"in d&&(0,t.m)(d.remove)&&(0,t.m)(d.add)&&(0,t.m)(d.unsubscribe)}function P(d){(0,t.m)(d)?d():d.unsubscribe()}},2416:(Ve,q,p)=>{"use strict";p.d(q,{v:()=>t});const t={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1}},4033:(Ve,q,p)=>{"use strict";p.d(q,{c:()=>C});var t=p(9751),e=p(727),b=p(8343),I=p(5403),s=p(4482);class C extends t.y{constructor(P,d){super(),this.source=P,this.subjectFactory=d,this._subject=null,this._refCount=0,this._connection=null,(0,s.A)(P)&&(this.lift=P.lift)}_subscribe(P){return this.getSubject().subscribe(P)}getSubject(){const P=this._subject;return(!P||P.isStopped)&&(this._subject=this.subjectFactory()),this._subject}_teardown(){this._refCount=0;const{_connection:P}=this;this._subject=this._connection=null,P?.unsubscribe()}connect(){let P=this._connection;if(!P){P=this._connection=new e.w0;const d=this.getSubject();P.add(this.source.subscribe((0,I.x)(d,void 0,()=>{this._teardown(),d.complete()},S=>{this._teardown(),d.error(S)},()=>this._teardown()))),P.closed&&(this._connection=null,P=e.w0.EMPTY)}return P}refCount(){return(0,b.x)()(this)}}},9841:(Ve,q,p)=>{"use strict";p.d(q,{a:()=>S});var t=p(9751),e=p(4742),b=p(457),I=p(4671),s=p(3268),C=p(3269),h=p(1810),P=p(5403),d=p(9672);function S(...E){const R=(0,C.yG)(E),z=(0,C.jO)(E),{args:U,keys:W}=(0,e.D)(E);if(0===U.length)return(0,b.D)([],R);const K=new t.y(function w(E,R,z=I.y){return U=>{O(R,()=>{const{length:W}=E,K=new Array(W);let ee=W,ie=W;for(let ue=0;ue<W;ue++)O(R,()=>{const le=(0,b.D)(E[ue],R);let ne=!1;le.subscribe((0,P.x)(U,de=>{K[ue]=de,ne||(ne=!0,ie--),ie||U.next(z(K.slice()))},()=>{--ee||U.complete()}))},U)},U)}}(U,R,W?ee=>(0,h.n)(W,ee):I.y));return z?K.pipe((0,s.Z)(z)):K}function O(E,R,z){E?(0,d.f)(z,E,R):R()}},7272:(Ve,q,p)=>{"use strict";p.d(q,{z:()=>s});var t=p(8189),b=p(3269),I=p(457);function s(...C){return function e(){return(0,t.J)(1)}()((0,I.D)(C,(0,b.yG)(C)))}},9770:(Ve,q,p)=>{"use strict";p.d(q,{P:()=>b});var t=p(9751),e=p(8421);function b(I){return new t.y(s=>{(0,e.Xf)(I()).subscribe(s)})}},515:(Ve,q,p)=>{"use strict";p.d(q,{E:()=>e});const e=new(p(9751).y)(s=>s.complete())},4128:(Ve,q,p)=>{"use strict";p.d(q,{D:()=>P});var t=p(9751),e=p(4742),b=p(8421),I=p(3269),s=p(5403),C=p(3268),h=p(1810);function P(...d){const S=(0,I.jO)(d),{args:w,keys:O}=(0,e.D)(d),E=new t.y(R=>{const{length:z}=w;if(!z)return void R.complete();const U=new Array(z);let W=z,K=z;for(let ee=0;ee<z;ee++){let ie=!1;(0,b.Xf)(w[ee]).subscribe((0,s.x)(R,ue=>{ie||(ie=!0,K--),U[ee]=ue},()=>W--,void 0,()=>{(!W||!ie)&&(K||R.next(O?(0,h.n)(O,U):U),R.complete())}))}});return S?E.pipe((0,C.Z)(S)):E}},457:(Ve,q,p)=>{"use strict";p.d(q,{D:()=>ne});var t=p(8421),e=p(5363),b=p(4482);function I(de,$=0){return(0,b.e)((me,A)=>{A.add(de.schedule(()=>me.subscribe(A),$))})}var h=p(9751),d=p(2202),S=p(576),w=p(9672);function E(de,$){if(!de)throw new Error("Iterable cannot be null");return new h.y(me=>{(0,w.f)(me,$,()=>{const A=de[Symbol.asyncIterator]();(0,w.f)(me,$,()=>{A.next().then(i=>{i.done?me.complete():me.next(i.value)})},0,!0)})})}var R=p(3670),z=p(8239),U=p(1144),W=p(6495),K=p(2206),ee=p(4532),ie=p(3260);function ne(de,$){return $?function le(de,$){if(null!=de){if((0,R.c)(de))return function s(de,$){return(0,t.Xf)(de).pipe(I($),(0,e.Q)($))}(de,$);if((0,U.z)(de))return function P(de,$){return new h.y(me=>{let A=0;return $.schedule(function(){A===de.length?me.complete():(me.next(de[A++]),me.closed||this.schedule())})})}(de,$);if((0,z.t)(de))return function C(de,$){return(0,t.Xf)(de).pipe(I($),(0,e.Q)($))}(de,$);if((0,K.D)(de))return E(de,$);if((0,W.T)(de))return function O(de,$){return new h.y(me=>{let A;return(0,w.f)(me,$,()=>{A=de[d.h](),(0,w.f)(me,$,()=>{let i,a;try{({value:i,done:a}=A.next())}catch(u){return void me.error(u)}a?me.complete():me.next(i)},0,!0)}),()=>(0,S.m)(A?.return)&&A.return()})}(de,$);if((0,ie.L)(de))return function ue(de,$){return E((0,ie.Q)(de),$)}(de,$)}throw(0,ee.z)(de)}(de,$):(0,t.Xf)(de)}},4968:(Ve,q,p)=>{"use strict";p.d(q,{R:()=>S});var t=p(8421),e=p(9751),b=p(5577),I=p(1144),s=p(576),C=p(3268);const h=["addListener","removeListener"],P=["addEventListener","removeEventListener"],d=["on","off"];function S(z,U,W,K){if((0,s.m)(W)&&(K=W,W=void 0),K)return S(z,U,W).pipe((0,C.Z)(K));const[ee,ie]=function R(z){return(0,s.m)(z.addEventListener)&&(0,s.m)(z.removeEventListener)}(z)?P.map(ue=>le=>z[ue](U,le,W)):function O(z){return(0,s.m)(z.addListener)&&(0,s.m)(z.removeListener)}(z)?h.map(w(z,U)):function E(z){return(0,s.m)(z.on)&&(0,s.m)(z.off)}(z)?d.map(w(z,U)):[];if(!ee&&(0,I.z)(z))return(0,b.z)(ue=>S(ue,U,W))((0,t.Xf)(z));if(!ee)throw new TypeError("Invalid event target");return new e.y(ue=>{const le=(...ne)=>ue.next(1<ne.length?ne:ne[0]);return ee(le),()=>ie(le)})}function w(z,U){return W=>K=>z[W](U,K)}},8421:(Ve,q,p)=>{"use strict";p.d(q,{Xf:()=>E});var t=p(655),e=p(1144),b=p(8239),I=p(9751),s=p(3670),C=p(2206),h=p(4532),P=p(6495),d=p(3260),S=p(576),w=p(7849),O=p(8822);function E(ue){if(ue instanceof I.y)return ue;if(null!=ue){if((0,s.c)(ue))return function R(ue){return new I.y(le=>{const ne=ue[O.L]();if((0,S.m)(ne.subscribe))return ne.subscribe(le);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}(ue);if((0,e.z)(ue))return function z(ue){return new I.y(le=>{for(let ne=0;ne<ue.length&&!le.closed;ne++)le.next(ue[ne]);le.complete()})}(ue);if((0,b.t)(ue))return function U(ue){return new I.y(le=>{ue.then(ne=>{le.closed||(le.next(ne),le.complete())},ne=>le.error(ne)).then(null,w.h)})}(ue);if((0,C.D)(ue))return K(ue);if((0,P.T)(ue))return function W(ue){return new I.y(le=>{for(const ne of ue)if(le.next(ne),le.closed)return;le.complete()})}(ue);if((0,d.L)(ue))return function ee(ue){return K((0,d.Q)(ue))}(ue)}throw(0,h.z)(ue)}function K(ue){return new I.y(le=>{(function ie(ue,le){var ne,de,$,me;return(0,t.mG)(this,void 0,void 0,function*(){try{for(ne=(0,t.KL)(ue);!(de=yield ne.next()).done;)if(le.next(de.value),le.closed)return}catch(A){$={error:A}}finally{try{de&&!de.done&&(me=ne.return)&&(yield me.call(ne))}finally{if($)throw $.error}}le.complete()})})(ue,le).catch(ne=>le.error(ne))})}},6451:(Ve,q,p)=>{"use strict";p.d(q,{T:()=>C});var t=p(8189),e=p(8421),b=p(515),I=p(3269),s=p(457);function C(...h){const P=(0,I.yG)(h),d=(0,I._6)(h,1/0),S=h;return S.length?1===S.length?(0,e.Xf)(S[0]):(0,t.J)(d)((0,s.D)(S,P)):b.E}},9646:(Ve,q,p)=>{"use strict";p.d(q,{of:()=>b});var t=p(3269),e=p(457);function b(...I){const s=(0,t.yG)(I);return(0,e.D)(I,s)}},2843:(Ve,q,p)=>{"use strict";p.d(q,{_:()=>b});var t=p(9751),e=p(576);function b(I,s){const C=(0,e.m)(I)?I:()=>I,h=P=>P.error(C());return new t.y(s?P=>s.schedule(h,0,P):h)}},2805:(Ve,q,p)=>{"use strict";p.d(q,{H:()=>s});var t=p(9751),e=p(4986),b=p(3532),I=p(1165);function s(C=0,h,P=e.P){let d=-1;return null!=h&&((0,b.K)(h)?P=h:d=h),new t.y(S=>{let w=(0,I.q)(C)?+C-P.now():C;w<0&&(w=0);let O=0;return P.schedule(function(){S.closed||(S.next(O++),0<=d?this.schedule(void 0,d):S.complete())},w)})}},5403:(Ve,q,p)=>{"use strict";p.d(q,{Q:()=>b,x:()=>e});var t=p(930);function e(I,s,C,h,P){return new b(I,s,C,h,P)}class b extends t.Lv{constructor(s,C,h,P,d,S){super(s),this.onFinalize=d,this.shouldUnsubscribe=S,this._next=C?function(w){try{C(w)}catch(O){s.error(O)}}:super._next,this._error=P?function(w){try{P(w)}catch(O){s.error(O)}finally{this.unsubscribe()}}:super._error,this._complete=h?function(){try{h()}catch(w){s.error(w)}finally{this.unsubscribe()}}:super._complete}unsubscribe(){var s;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){const{closed:C}=this;super.unsubscribe(),!C&&(null===(s=this.onFinalize)||void 0===s||s.call(this))}}}},3601:(Ve,q,p)=>{"use strict";p.d(q,{e:()=>h});var t=p(4986),e=p(4482),b=p(8421),I=p(5403),C=p(2805);function h(P,d=t.z){return function s(P){return(0,e.e)((d,S)=>{let w=!1,O=null,E=null,R=!1;const z=()=>{if(E?.unsubscribe(),E=null,w){w=!1;const W=O;O=null,S.next(W)}R&&S.complete()},U=()=>{E=null,R&&S.complete()};d.subscribe((0,I.x)(S,W=>{w=!0,O=W,E||(0,b.Xf)(P(W)).subscribe(E=(0,I.x)(S,z,U))},()=>{R=!0,(!w||!E||E.closed)&&S.complete()}))})}(()=>(0,C.H)(P,d))}},262:(Ve,q,p)=>{"use strict";p.d(q,{K:()=>I});var t=p(8421),e=p(5403),b=p(4482);function I(s){return(0,b.e)((C,h)=>{let S,P=null,d=!1;P=C.subscribe((0,e.x)(h,void 0,void 0,w=>{S=(0,t.Xf)(s(w,I(s)(C))),P?(P.unsubscribe(),P=null,S.subscribe(h)):d=!0})),d&&(P.unsubscribe(),P=null,S.subscribe(h))})}},4351:(Ve,q,p)=>{"use strict";p.d(q,{b:()=>b});var t=p(5577),e=p(576);function b(I,s){return(0,e.m)(s)?(0,t.z)(I,s,1):(0,t.z)(I,1)}},8372:(Ve,q,p)=>{"use strict";p.d(q,{b:()=>I});var t=p(4986),e=p(4482),b=p(5403);function I(s,C=t.z){return(0,e.e)((h,P)=>{let d=null,S=null,w=null;const O=()=>{if(d){d.unsubscribe(),d=null;const R=S;S=null,P.next(R)}};function E(){const R=w+s,z=C.now();if(z<R)return d=this.schedule(void 0,R-z),void P.add(d);O()}h.subscribe((0,b.x)(P,R=>{S=R,w=C.now(),d||(d=C.schedule(E,s),P.add(d))},()=>{O(),P.complete()},void 0,()=>{S=d=null}))})}},6590:(Ve,q,p)=>{"use strict";p.d(q,{d:()=>b});var t=p(4482),e=p(5403);function b(I){return(0,t.e)((s,C)=>{let h=!1;s.subscribe((0,e.x)(C,P=>{h=!0,C.next(P)},()=>{h||C.next(I),C.complete()}))})}},4086:(Ve,q,p)=>{"use strict";p.d(q,{g:()=>d});var t=p(4986),e=p(7272),b=p(5698),I=p(8502),s=p(9718),C=p(5577);function h(S,w){return w?O=>(0,e.z)(w.pipe((0,b.q)(1),(0,I.l)()),O.pipe(h(S))):(0,C.z)((O,E)=>S(O,E).pipe((0,b.q)(1),(0,s.h)(O)))}var P=p(2805);function d(S,w=t.z){const O=(0,P.H)(S,w);return h(()=>O)}},1884:(Ve,q,p)=>{"use strict";p.d(q,{x:()=>I});var t=p(4671),e=p(4482),b=p(5403);function I(C,h=t.y){return C=C??s,(0,e.e)((P,d)=>{let S,w=!0;P.subscribe((0,b.x)(d,O=>{const E=h(O);(w||!C(S,E))&&(w=!1,S=E,d.next(O))}))})}function s(C,h){return C===h}},9300:(Ve,q,p)=>{"use strict";p.d(q,{h:()=>b});var t=p(4482),e=p(5403);function b(I,s){return(0,t.e)((C,h)=>{let P=0;C.subscribe((0,e.x)(h,d=>I.call(s,d,P++)&&h.next(d)))})}},8746:(Ve,q,p)=>{"use strict";p.d(q,{x:()=>e});var t=p(4482);function e(b){return(0,t.e)((I,s)=>{try{I.subscribe(s)}finally{s.add(b)}})}},590:(Ve,q,p)=>{"use strict";p.d(q,{P:()=>h});var t=p(6805),e=p(9300),b=p(5698),I=p(6590),s=p(8068),C=p(4671);function h(P,d){const S=arguments.length>=2;return w=>w.pipe(P?(0,e.h)((O,E)=>P(O,E,w)):C.y,(0,b.q)(1),S?(0,I.d)(d):(0,s.T)(()=>new t.K))}},8502:(Ve,q,p)=>{"use strict";p.d(q,{l:()=>I});var t=p(4482),e=p(5403),b=p(5032);function I(){return(0,t.e)((s,C)=>{s.subscribe((0,e.x)(C,b.Z))})}},4004:(Ve,q,p)=>{"use strict";p.d(q,{U:()=>b});var t=p(4482),e=p(5403);function b(I,s){return(0,t.e)((C,h)=>{let P=0;C.subscribe((0,e.x)(h,d=>{h.next(I.call(s,d,P++))}))})}},9718:(Ve,q,p)=>{"use strict";p.d(q,{h:()=>e});var t=p(4004);function e(b){return(0,t.U)(()=>b)}},8189:(Ve,q,p)=>{"use strict";p.d(q,{J:()=>b});var t=p(5577),e=p(4671);function b(I=1/0){return(0,t.z)(e.y,I)}},5577:(Ve,q,p)=>{"use strict";p.d(q,{z:()=>P});var t=p(4004),e=p(8421),b=p(4482),I=p(9672),s=p(5403),h=p(576);function P(d,S,w=1/0){return(0,h.m)(S)?P((O,E)=>(0,t.U)((R,z)=>S(O,R,E,z))((0,e.Xf)(d(O,E))),w):("number"==typeof S&&(w=S),(0,b.e)((O,E)=>function C(d,S,w,O,E,R,z,U){const W=[];let K=0,ee=0,ie=!1;const ue=()=>{ie&&!W.length&&!K&&S.complete()},le=de=>K<O?ne(de):W.push(de),ne=de=>{R&&S.next(de),K++;let $=!1;(0,e.Xf)(w(de,ee++)).subscribe((0,s.x)(S,me=>{E?.(me),R?le(me):S.next(me)},()=>{$=!0},void 0,()=>{if($)try{for(K--;W.length&&K<O;){const me=W.shift();z?(0,I.f)(S,z,()=>ne(me)):ne(me)}ue()}catch(me){S.error(me)}}))};return d.subscribe((0,s.x)(S,le,()=>{ie=!0,ue()})),()=>{U?.()}}(O,E,d,w)))}},5363:(Ve,q,p)=>{"use strict";p.d(q,{Q:()=>I});var t=p(9672),e=p(4482),b=p(5403);function I(s,C=0){return(0,e.e)((h,P)=>{h.subscribe((0,b.x)(P,d=>(0,t.f)(P,s,()=>P.next(d),C),()=>(0,t.f)(P,s,()=>P.complete(),C),d=>(0,t.f)(P,s,()=>P.error(d),C)))})}},8343:(Ve,q,p)=>{"use strict";p.d(q,{x:()=>b});var t=p(4482),e=p(5403);function b(){return(0,t.e)((I,s)=>{let C=null;I._refCount++;const h=(0,e.x)(s,void 0,void 0,void 0,()=>{if(!I||I._refCount<=0||0<--I._refCount)return void(C=null);const P=I._connection,d=C;C=null,P&&(!d||P===d)&&P.unsubscribe(),s.unsubscribe()});I.subscribe(h),h.closed||(C=I.connect())})}},5026:(Ve,q,p)=>{"use strict";p.d(q,{R:()=>I});var t=p(4482),e=p(5403);function b(s,C,h,P,d){return(S,w)=>{let O=h,E=C,R=0;S.subscribe((0,e.x)(w,z=>{const U=R++;E=O?s(E,z,U):(O=!0,z),P&&w.next(E)},d&&(()=>{O&&w.next(E),w.complete()})))}}function I(s,C){return(0,t.e)(b(s,C,arguments.length>=2,!0))}},3099:(Ve,q,p)=>{"use strict";p.d(q,{B:()=>s});var t=p(8421),e=p(7579),b=p(930),I=p(4482);function s(h={}){const{connector:P=(()=>new e.x),resetOnError:d=!0,resetOnComplete:S=!0,resetOnRefCountZero:w=!0}=h;return O=>{let E,R,z,U=0,W=!1,K=!1;const ee=()=>{R?.unsubscribe(),R=void 0},ie=()=>{ee(),E=z=void 0,W=K=!1},ue=()=>{const le=E;ie(),le?.unsubscribe()};return(0,I.e)((le,ne)=>{U++,!K&&!W&&ee();const de=z=z??P();ne.add(()=>{U--,0===U&&!K&&!W&&(R=C(ue,w))}),de.subscribe(ne),!E&&U>0&&(E=new b.Hp({next:$=>de.next($),error:$=>{K=!0,ee(),R=C(ie,d,$),de.error($)},complete:()=>{W=!0,ee(),R=C(ie,S),de.complete()}}),(0,t.Xf)(le).subscribe(E))})(O)}}function C(h,P,...d){if(!0===P)return void h();if(!1===P)return;const S=new b.Hp({next:()=>{S.unsubscribe(),h()}});return P(...d).subscribe(S)}},5684:(Ve,q,p)=>{"use strict";p.d(q,{T:()=>e});var t=p(9300);function e(b){return(0,t.h)((I,s)=>b<=s)}},8675:(Ve,q,p)=>{"use strict";p.d(q,{O:()=>I});var t=p(7272),e=p(3269),b=p(4482);function I(...s){const C=(0,e.yG)(s);return(0,b.e)((h,P)=>{(C?(0,t.z)(s,h,C):(0,t.z)(s,h)).subscribe(P)})}},3900:(Ve,q,p)=>{"use strict";p.d(q,{w:()=>I});var t=p(8421),e=p(4482),b=p(5403);function I(s,C){return(0,e.e)((h,P)=>{let d=null,S=0,w=!1;const O=()=>w&&!d&&P.complete();h.subscribe((0,b.x)(P,E=>{d?.unsubscribe();let R=0;const z=S++;(0,t.Xf)(s(E,z)).subscribe(d=(0,b.x)(P,U=>P.next(C?C(E,U,z,R++):U),()=>{d=null,O()}))},()=>{w=!0,O()}))})}},5698:(Ve,q,p)=>{"use strict";p.d(q,{q:()=>I});var t=p(515),e=p(4482),b=p(5403);function I(s){return s<=0?()=>t.E:(0,e.e)((C,h)=>{let P=0;C.subscribe((0,b.x)(h,d=>{++P<=s&&(h.next(d),s<=P&&h.complete())}))})}},2722:(Ve,q,p)=>{"use strict";p.d(q,{R:()=>s});var t=p(4482),e=p(5403),b=p(8421),I=p(5032);function s(C){return(0,t.e)((h,P)=>{(0,b.Xf)(C).subscribe((0,e.x)(P,()=>P.complete(),I.Z)),!P.closed&&h.subscribe(P)})}},2529:(Ve,q,p)=>{"use strict";p.d(q,{o:()=>b});var t=p(4482),e=p(5403);function b(I,s=!1){return(0,t.e)((C,h)=>{let P=0;C.subscribe((0,e.x)(h,d=>{const S=I(d,P++);(S||s)&&h.next(d),!S&&h.complete()}))})}},8505:(Ve,q,p)=>{"use strict";p.d(q,{b:()=>s});var t=p(576),e=p(4482),b=p(5403),I=p(4671);function s(C,h,P){const d=(0,t.m)(C)||h||P?{next:C,error:h,complete:P}:C;return d?(0,e.e)((S,w)=>{var O;null===(O=d.subscribe)||void 0===O||O.call(d);let E=!0;S.subscribe((0,b.x)(w,R=>{var z;null===(z=d.next)||void 0===z||z.call(d,R),w.next(R)},()=>{var R;E=!1,null===(R=d.complete)||void 0===R||R.call(d),w.complete()},R=>{var z;E=!1,null===(z=d.error)||void 0===z||z.call(d,R),w.error(R)},()=>{var R,z;E&&(null===(R=d.unsubscribe)||void 0===R||R.call(d)),null===(z=d.finalize)||void 0===z||z.call(d)}))}):I.y}},8068:(Ve,q,p)=>{"use strict";p.d(q,{T:()=>I});var t=p(6805),e=p(4482),b=p(5403);function I(C=s){return(0,e.e)((h,P)=>{let d=!1;h.subscribe((0,b.x)(P,S=>{d=!0,P.next(S)},()=>d?P.complete():P.error(C())))})}function s(){return new t.K}},7414:(Ve,q,p)=>{"use strict";p.d(q,{V:()=>d});var t=p(4986),e=p(1165),b=p(4482),I=p(8421),s=p(3888),C=p(5403),h=p(9672);const P=(0,s.d)(w=>function(E=null){w(this),this.message="Timeout has occurred",this.name="TimeoutError",this.info=E});function d(w,O){const{first:E,each:R,with:z=S,scheduler:U=O??t.z,meta:W=null}=(0,e.q)(w)?{first:w}:"number"==typeof w?{each:w}:w;if(null==E&&null==R)throw new TypeError("No timeout provided.");return(0,b.e)((K,ee)=>{let ie,ue,le=null,ne=0;const de=$=>{ue=(0,h.f)(ee,U,()=>{try{ie.unsubscribe(),(0,I.Xf)(z({meta:W,lastValue:le,seen:ne})).subscribe(ee)}catch(me){ee.error(me)}},$)};ie=K.subscribe((0,C.x)(ee,$=>{ue?.unsubscribe(),ne++,ee.next(le=$),R>0&&de(R)},void 0,void 0,()=>{ue?.closed||ue?.unsubscribe(),le=null})),!ne&&de(null!=E?"number"==typeof E?E:+E-U.now():R)})}function S(w){throw new P(w)}},1365:(Ve,q,p)=>{"use strict";p.d(q,{M:()=>h});var t=p(4482),e=p(5403),b=p(8421),I=p(4671),s=p(5032),C=p(3269);function h(...P){const d=(0,C.jO)(P);return(0,t.e)((S,w)=>{const O=P.length,E=new Array(O);let R=P.map(()=>!1),z=!1;for(let U=0;U<O;U++)(0,b.Xf)(P[U]).subscribe((0,e.x)(w,W=>{E[U]=W,!z&&!R[U]&&(R[U]=!0,(z=R.every(I.y))&&(R=null))},s.Z));S.subscribe((0,e.x)(w,U=>{if(z){const W=[U,...E];w.next(d?d(...W):W)}}))})}},4408:(Ve,q,p)=>{"use strict";p.d(q,{o:()=>s});var t=p(727);class e extends t.w0{constructor(h,P){super()}schedule(h,P=0){return this}}const b={setInterval(C,h,...P){const{delegate:d}=b;return d?.setInterval?d.setInterval(C,h,...P):setInterval(C,h,...P)},clearInterval(C){const{delegate:h}=b;return(h?.clearInterval||clearInterval)(C)},delegate:void 0};var I=p(8737);class s extends e{constructor(h,P){super(h,P),this.scheduler=h,this.work=P,this.pending=!1}schedule(h,P=0){var d;if(this.closed)return this;this.state=h;const S=this.id,w=this.scheduler;return null!=S&&(this.id=this.recycleAsyncId(w,S,P)),this.pending=!0,this.delay=P,this.id=null!==(d=this.id)&&void 0!==d?d:this.requestAsyncId(w,this.id,P),this}requestAsyncId(h,P,d=0){return b.setInterval(h.flush.bind(h,this),d)}recycleAsyncId(h,P,d=0){if(null!=d&&this.delay===d&&!1===this.pending)return P;null!=P&&b.clearInterval(P)}execute(h,P){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;const d=this._execute(h,P);if(d)return d;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}_execute(h,P){let S,d=!1;try{this.work(h)}catch(w){d=!0,S=w||new Error("Scheduled action threw falsy error")}if(d)return this.unsubscribe(),S}unsubscribe(){if(!this.closed){const{id:h,scheduler:P}=this,{actions:d}=P;this.work=this.state=this.scheduler=null,this.pending=!1,(0,I.P)(d,this),null!=h&&(this.id=this.recycleAsyncId(P,h,null)),this.delay=null,super.unsubscribe()}}}},7565:(Ve,q,p)=>{"use strict";p.d(q,{v:()=>b});var t=p(6063);class e{constructor(s,C=e.now){this.schedulerActionCtor=s,this.now=C}schedule(s,C=0,h){return new this.schedulerActionCtor(this,s).schedule(h,C)}}e.now=t.l.now;class b extends e{constructor(s,C=e.now){super(s,C),this.actions=[],this._active=!1}flush(s){const{actions:C}=this;if(this._active)return void C.push(s);let h;this._active=!0;do{if(h=s.execute(s.state,s.delay))break}while(s=C.shift());if(this._active=!1,h){for(;s=C.shift();)s.unsubscribe();throw h}}}},3101:(Ve,q,p)=>{"use strict";p.d(q,{E:()=>R});var t=p(4408);let b,e=1;const I={};function s(U){return U in I&&(delete I[U],!0)}const C={setImmediate(U){const W=e++;return I[W]=!0,b||(b=Promise.resolve()),b.then(()=>s(W)&&U()),W},clearImmediate(U){s(U)}},{setImmediate:P,clearImmediate:d}=C,S={setImmediate(...U){const{delegate:W}=S;return(W?.setImmediate||P)(...U)},clearImmediate(U){const{delegate:W}=S;return(W?.clearImmediate||d)(U)},delegate:void 0};var O=p(7565);const R=new class E extends O.v{flush(W){this._active=!0;const K=this._scheduled;this._scheduled=void 0;const{actions:ee}=this;let ie;W=W||ee.shift();do{if(ie=W.execute(W.state,W.delay))break}while((W=ee[0])&&W.id===K&&ee.shift());if(this._active=!1,ie){for(;(W=ee[0])&&W.id===K&&ee.shift();)W.unsubscribe();throw ie}}}(class w extends t.o{constructor(W,K){super(W,K),this.scheduler=W,this.work=K}requestAsyncId(W,K,ee=0){return null!==ee&&ee>0?super.requestAsyncId(W,K,ee):(W.actions.push(this),W._scheduled||(W._scheduled=S.setImmediate(W.flush.bind(W,void 0))))}recycleAsyncId(W,K,ee=0){var ie;if(null!=ee?ee>0:this.delay>0)return super.recycleAsyncId(W,K,ee);const{actions:ue}=W;null!=K&&(null===(ie=ue[ue.length-1])||void 0===ie?void 0:ie.id)!==K&&(S.clearImmediate(K),W._scheduled=void 0)}})},4986:(Ve,q,p)=>{"use strict";p.d(q,{P:()=>I,z:()=>b});var t=p(4408);const b=new(p(7565).v)(t.o),I=b},6063:(Ve,q,p)=>{"use strict";p.d(q,{l:()=>t});const t={now:()=>(t.delegate||Date).now(),delegate:void 0}},233:(Ve,q,p)=>{"use strict";p.d(q,{N:()=>s});var t=p(4408),b=p(7565);const s=new class I extends b.v{}(class e extends t.o{constructor(P,d){super(P,d),this.scheduler=P,this.work=d}schedule(P,d=0){return d>0?super.schedule(P,d):(this.delay=d,this.state=P,this.scheduler.flush(this),this)}execute(P,d){return d>0||this.closed?super.execute(P,d):this._execute(P,d)}requestAsyncId(P,d,S=0){return null!=S&&S>0||null==S&&this.delay>0?super.requestAsyncId(P,d,S):(P.flush(this),0)}})},3410:(Ve,q,p)=>{"use strict";p.d(q,{z:()=>t});const t={setTimeout(e,b,...I){const{delegate:s}=t;return s?.setTimeout?s.setTimeout(e,b,...I):setTimeout(e,b,...I)},clearTimeout(e){const{delegate:b}=t;return(b?.clearTimeout||clearTimeout)(e)},delegate:void 0}},2202:(Ve,q,p)=>{"use strict";p.d(q,{h:()=>e});const e=function t(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}()},8822:(Ve,q,p)=>{"use strict";p.d(q,{L:()=>t});const t="function"==typeof Symbol&&Symbol.observable||"@@observable"},6805:(Ve,q,p)=>{"use strict";p.d(q,{K:()=>e});const e=(0,p(3888).d)(b=>function(){b(this),this.name="EmptyError",this.message="no elements in sequence"})},3269:(Ve,q,p)=>{"use strict";p.d(q,{_6:()=>C,jO:()=>I,yG:()=>s});var t=p(576),e=p(3532);function b(h){return h[h.length-1]}function I(h){return(0,t.m)(b(h))?h.pop():void 0}function s(h){return(0,e.K)(b(h))?h.pop():void 0}function C(h,P){return"number"==typeof b(h)?h.pop():P}},4742:(Ve,q,p)=>{"use strict";p.d(q,{D:()=>s});const{isArray:t}=Array,{getPrototypeOf:e,prototype:b,keys:I}=Object;function s(h){if(1===h.length){const P=h[0];if(t(P))return{args:P,keys:null};if(function C(h){return h&&"object"==typeof h&&e(h)===b}(P)){const d=I(P);return{args:d.map(S=>P[S]),keys:d}}}return{args:h,keys:null}}},8737:(Ve,q,p)=>{"use strict";function t(e,b){if(e){const I=e.indexOf(b);0<=I&&e.splice(I,1)}}p.d(q,{P:()=>t})},3888:(Ve,q,p)=>{"use strict";function t(e){const I=e(s=>{Error.call(s),s.stack=(new Error).stack});return I.prototype=Object.create(Error.prototype),I.prototype.constructor=I,I}p.d(q,{d:()=>t})},1810:(Ve,q,p)=>{"use strict";function t(e,b){return e.reduce((I,s,C)=>(I[s]=b[C],I),{})}p.d(q,{n:()=>t})},2806:(Ve,q,p)=>{"use strict";p.d(q,{O:()=>I,x:()=>b});var t=p(2416);let e=null;function b(s){if(t.v.useDeprecatedSynchronousErrorHandling){const C=!e;if(C&&(e={errorThrown:!1,error:null}),s(),C){const{errorThrown:h,error:P}=e;if(e=null,h)throw P}}else s()}function I(s){t.v.useDeprecatedSynchronousErrorHandling&&e&&(e.errorThrown=!0,e.error=s)}},9672:(Ve,q,p)=>{"use strict";function t(e,b,I,s=0,C=!1){const h=b.schedule(function(){I(),C?e.add(this.schedule(null,s)):this.unsubscribe()},s);if(e.add(h),!C)return h}p.d(q,{f:()=>t})},4671:(Ve,q,p)=>{"use strict";function t(e){return e}p.d(q,{y:()=>t})},1144:(Ve,q,p)=>{"use strict";p.d(q,{z:()=>t});const t=e=>e&&"number"==typeof e.length&&"function"!=typeof e},2206:(Ve,q,p)=>{"use strict";p.d(q,{D:()=>e});var t=p(576);function e(b){return Symbol.asyncIterator&&(0,t.m)(b?.[Symbol.asyncIterator])}},1165:(Ve,q,p)=>{"use strict";function t(e){return e instanceof Date&&!isNaN(e)}p.d(q,{q:()=>t})},576:(Ve,q,p)=>{"use strict";function t(e){return"function"==typeof e}p.d(q,{m:()=>t})},3670:(Ve,q,p)=>{"use strict";p.d(q,{c:()=>b});var t=p(8822),e=p(576);function b(I){return(0,e.m)(I[t.L])}},6495:(Ve,q,p)=>{"use strict";p.d(q,{T:()=>b});var t=p(2202),e=p(576);function b(I){return(0,e.m)(I?.[t.h])}},5191:(Ve,q,p)=>{"use strict";p.d(q,{b:()=>b});var t=p(9751),e=p(576);function b(I){return!!I&&(I instanceof t.y||(0,e.m)(I.lift)&&(0,e.m)(I.subscribe))}},8239:(Ve,q,p)=>{"use strict";p.d(q,{t:()=>e});var t=p(576);function e(b){return(0,t.m)(b?.then)}},3260:(Ve,q,p)=>{"use strict";p.d(q,{L:()=>I,Q:()=>b});var t=p(655),e=p(576);function b(s){return(0,t.FC)(this,arguments,function*(){const h=s.getReader();try{for(;;){const{value:P,done:d}=yield(0,t.qq)(h.read());if(d)return yield(0,t.qq)(void 0);yield yield(0,t.qq)(P)}}finally{h.releaseLock()}})}function I(s){return(0,e.m)(s?.getReader)}},3532:(Ve,q,p)=>{"use strict";p.d(q,{K:()=>e});var t=p(576);function e(b){return b&&(0,t.m)(b.schedule)}},4482:(Ve,q,p)=>{"use strict";p.d(q,{A:()=>e,e:()=>b});var t=p(576);function e(I){return(0,t.m)(I?.lift)}function b(I){return s=>{if(e(s))return s.lift(function(C){try{return I(C,this)}catch(h){this.error(h)}});throw new TypeError("Unable to lift unknown Observable type")}}},3268:(Ve,q,p)=>{"use strict";p.d(q,{Z:()=>I});var t=p(4004);const{isArray:e}=Array;function I(s){return(0,t.U)(C=>function b(s,C){return e(C)?s(...C):s(C)}(s,C))}},5032:(Ve,q,p)=>{"use strict";function t(){}p.d(q,{Z:()=>t})},9635:(Ve,q,p)=>{"use strict";p.d(q,{U:()=>b,z:()=>e});var t=p(4671);function e(...I){return b(I)}function b(I){return 0===I.length?t.y:1===I.length?I[0]:function(C){return I.reduce((h,P)=>P(h),C)}}},7849:(Ve,q,p)=>{"use strict";p.d(q,{h:()=>b});var t=p(2416),e=p(3410);function b(I){e.z.setTimeout(()=>{const{onUnhandledError:s}=t.v;if(!s)throw I;s(I)})}},4532:(Ve,q,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(q,{z:()=>t})},3502:(Ve,q,p)=>{var t=p(3172),e=t.Buffer;function b(s,C){for(var h in s)C[h]=s[h]}function I(s,C,h){return e(s,C,h)}e.from&&e.alloc&&e.allocUnsafe&&e.allocUnsafeSlow?Ve.exports=t:(b(t,q),q.Buffer=I),I.prototype=Object.create(e.prototype),b(e,I),I.from=function(s,C,h){if("number"==typeof s)throw new TypeError("Argument must not be a number");return e(s,C,h)},I.alloc=function(s,C,h){if("number"!=typeof s)throw new TypeError("Argument must be a number");var P=e(s);return void 0!==C?"string"==typeof h?P.fill(C,h):P.fill(C):P.fill(0),P},I.allocUnsafe=function(s){if("number"!=typeof s)throw new TypeError("Argument must be a number");return e(s)},I.allocUnsafeSlow=function(s){if("number"!=typeof s)throw new TypeError("Argument must be a number");return t.SlowBuffer(s)}},2038:(Ve,q,p)=>{"use strict";var I,t=p(3172),e=t.Buffer,b={};for(I in t)t.hasOwnProperty(I)&&("SlowBuffer"===I||"Buffer"===I||(b[I]=t[I]));var s=b.Buffer={};for(I in e)e.hasOwnProperty(I)&&("allocUnsafe"===I||"allocUnsafeSlow"===I||(s[I]=e[I]));if(b.Buffer.prototype=e.prototype,(!s.from||s.from===Uint8Array.from)&&(s.from=function(C,h,P){if("number"==typeof C)throw new TypeError('The "value" argument must not be of type number. Received type '+typeof C);if(C&&typeof C.length>"u")throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof C);return e(C,h,P)}),s.alloc||(s.alloc=function(C,h,P){if("number"!=typeof C)throw new TypeError('The "size" argument must be of type number. Received type '+typeof C);if(C<0||C>=2*(1<<30))throw new RangeError('The value "'+C+'" is invalid for option "size"');var d=e(C);return h&&0!==h.length?"string"==typeof P?d.fill(h,P):d.fill(h):d.fill(0),d}),!b.kStringMaxLength)try{b.kStringMaxLength=process.binding("buffer").kStringMaxLength}catch{}b.constants||(b.constants={MAX_LENGTH:b.kMaxLength},b.kStringMaxLength&&(b.constants.MAX_STRING_LENGTH=b.kStringMaxLength)),Ve.exports=b},6692:(Ve,q,p)=>{var t=p(3502).Buffer;function e(b,I){this._block=t.alloc(b),this._finalSize=I,this._blockSize=b,this._len=0}e.prototype.update=function(b,I){"string"==typeof b&&(b=t.from(b,I=I||"utf8"));for(var s=this._block,C=this._blockSize,h=b.length,P=this._len,d=0;d<h;){for(var S=P%C,w=Math.min(h-d,C-S),O=0;O<w;O++)s[S+O]=b[d+O];d+=w,(P+=w)%C==0&&this._update(s)}return this._len+=h,this},e.prototype.digest=function(b){var I=this._len%this._blockSize;this._block[I]=128,this._block.fill(0,I+1),I>=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 C=(4294967295&s)>>>0;this._block.writeUInt32BE((s-C)/4294967296,this._blockSize-8),this._block.writeUInt32BE(C,this._blockSize-4)}this._update(this._block);var P=this._hash();return b?P.toString(b):P},e.prototype._update=function(){throw new Error("_update must be implemented by subclass")},Ve.exports=e},5244:(Ve,q,p)=>{var t=Ve.exports=function(b){b=b.toLowerCase();var I=t[b];if(!I)throw new Error(b+" is not supported (we accept pull requests)");return new I};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:(Ve,q,p)=>{var t=p(3894),e=p(6692),b=p(3502).Buffer,I=[1518500249,1859775393,-1894007588,-899497514],s=new Array(80);function C(){this.init(),this._w=s,e.call(this,64,56)}function h(S){return S<<5|S>>>27}function P(S){return S<<30|S>>>2}function d(S,w,O,E){return 0===S?w&O|~w&E:2===S?w&O|w&E|O&E:w^O^E}t(C,e),C.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,this},C.prototype._update=function(S){for(var w=this._w,O=0|this._a,E=0|this._b,R=0|this._c,z=0|this._d,U=0|this._e,W=0;W<16;++W)w[W]=S.readInt32BE(4*W);for(;W<80;++W)w[W]=w[W-3]^w[W-8]^w[W-14]^w[W-16];for(var K=0;K<80;++K){var ee=~~(K/20),ie=h(O)+d(ee,E,R,z)+U+w[K]+I[ee]|0;U=z,z=R,R=P(E),E=O,O=ie}this._a=O+this._a|0,this._b=E+this._b|0,this._c=R+this._c|0,this._d=z+this._d|0,this._e=U+this._e|0},C.prototype._hash=function(){var S=b.allocUnsafe(20);return S.writeInt32BE(0|this._a,0),S.writeInt32BE(0|this._b,4),S.writeInt32BE(0|this._c,8),S.writeInt32BE(0|this._d,12),S.writeInt32BE(0|this._e,16),S},Ve.exports=C},7736:(Ve,q,p)=>{var t=p(3894),e=p(6692),b=p(3502).Buffer,I=[1518500249,1859775393,-1894007588,-899497514],s=new Array(80);function C(){this.init(),this._w=s,e.call(this,64,56)}function h(w){return w<<1|w>>>31}function P(w){return w<<5|w>>>27}function d(w){return w<<30|w>>>2}function S(w,O,E,R){return 0===w?O&E|~O&R:2===w?O&E|O&R|E&R:O^E^R}t(C,e),C.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,this},C.prototype._update=function(w){for(var O=this._w,E=0|this._a,R=0|this._b,z=0|this._c,U=0|this._d,W=0|this._e,K=0;K<16;++K)O[K]=w.readInt32BE(4*K);for(;K<80;++K)O[K]=h(O[K-3]^O[K-8]^O[K-14]^O[K-16]);for(var ee=0;ee<80;++ee){var ie=~~(ee/20),ue=P(E)+S(ie,R,z,U)+W+O[ee]+I[ie]|0;W=U,U=z,z=d(R),R=E,E=ue}this._a=E+this._a|0,this._b=R+this._b|0,this._c=z+this._c|0,this._d=U+this._d|0,this._e=W+this._e|0},C.prototype._hash=function(){var w=b.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},Ve.exports=C},5044:(Ve,q,p)=>{var t=p(3894),e=p(5014),b=p(6692),I=p(3502).Buffer,s=new Array(64);function C(){this.init(),this._w=s,b.call(this,64,56)}t(C,e),C.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},C.prototype._hash=function(){var h=I.allocUnsafe(28);return h.writeInt32BE(this._a,0),h.writeInt32BE(this._b,4),h.writeInt32BE(this._c,8),h.writeInt32BE(this._d,12),h.writeInt32BE(this._e,16),h.writeInt32BE(this._f,20),h.writeInt32BE(this._g,24),h},Ve.exports=C},5014:(Ve,q,p)=>{var t=p(3894),e=p(6692),b=p(3502).Buffer,I=[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 C(){this.init(),this._w=s,e.call(this,64,56)}function h(E,R,z){return z^E&(R^z)}function P(E,R,z){return E&R|z&(E|R)}function d(E){return(E>>>2|E<<30)^(E>>>13|E<<19)^(E>>>22|E<<10)}function S(E){return(E>>>6|E<<26)^(E>>>11|E<<21)^(E>>>25|E<<7)}function w(E){return(E>>>7|E<<25)^(E>>>18|E<<14)^E>>>3}function O(E){return(E>>>17|E<<15)^(E>>>19|E<<13)^E>>>10}t(C,e),C.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},C.prototype._update=function(E){for(var R=this._w,z=0|this._a,U=0|this._b,W=0|this._c,K=0|this._d,ee=0|this._e,ie=0|this._f,ue=0|this._g,le=0|this._h,ne=0;ne<16;++ne)R[ne]=E.readInt32BE(4*ne);for(;ne<64;++ne)R[ne]=O(R[ne-2])+R[ne-7]+w(R[ne-15])+R[ne-16]|0;for(var de=0;de<64;++de){var $=le+S(ee)+h(ee,ie,ue)+I[de]+R[de]|0,me=d(z)+P(z,U,W)|0;le=ue,ue=ie,ie=ee,ee=K+$|0,K=W,W=U,U=z,z=$+me|0}this._a=z+this._a|0,this._b=U+this._b|0,this._c=W+this._c|0,this._d=K+this._d|0,this._e=ee+this._e|0,this._f=ie+this._f|0,this._g=ue+this._g|0,this._h=le+this._h|0},C.prototype._hash=function(){var E=b.allocUnsafe(32);return E.writeInt32BE(this._a,0),E.writeInt32BE(this._b,4),E.writeInt32BE(this._c,8),E.writeInt32BE(this._d,12),E.writeInt32BE(this._e,16),E.writeInt32BE(this._f,20),E.writeInt32BE(this._g,24),E.writeInt32BE(this._h,28),E},Ve.exports=C},6540:(Ve,q,p)=>{var t=p(3894),e=p(117),b=p(6692),I=p(3502).Buffer,s=new Array(160);function C(){this.init(),this._w=s,b.call(this,128,112)}t(C,e),C.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},C.prototype._hash=function(){var h=I.allocUnsafe(48);function P(d,S,w){h.writeInt32BE(d,w),h.writeInt32BE(S,w+4)}return P(this._ah,this._al,0),P(this._bh,this._bl,8),P(this._ch,this._cl,16),P(this._dh,this._dl,24),P(this._eh,this._el,32),P(this._fh,this._fl,40),h},Ve.exports=C},117:(Ve,q,p)=>{var t=p(3894),e=p(6692),b=p(3502).Buffer,I=[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 C(){this.init(),this._w=s,e.call(this,128,112)}function h(U,W,K){return K^U&(W^K)}function P(U,W,K){return U&W|K&(U|W)}function d(U,W){return(U>>>28|W<<4)^(W>>>2|U<<30)^(W>>>7|U<<25)}function S(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 O(U,W){return(U>>>1|W<<31)^(U>>>8|W<<24)^(U>>>7|W<<25)}function E(U,W){return(U>>>19|W<<13)^(W>>>29|U<<3)^U>>>6}function R(U,W){return(U>>>19|W<<13)^(W>>>29|U<<3)^(U>>>6|W<<26)}function z(U,W){return U>>>0<W>>>0?1:0}t(C,e),C.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},C.prototype._update=function(U){for(var W=this._w,K=0|this._ah,ee=0|this._bh,ie=0|this._ch,ue=0|this._dh,le=0|this._eh,ne=0|this._fh,de=0|this._gh,$=0|this._hh,me=0|this._al,A=0|this._bl,i=0|this._cl,a=0|this._dl,u=0|this._el,l=0|this._fl,y=0|this._gl,T=0|this._hl,L=0;L<32;L+=2)W[L]=U.readInt32BE(4*L),W[L+1]=U.readInt32BE(4*L+4);for(;L<160;L+=2){var m=W[L-30],n=W[L-30+1],_=w(m,n),B=O(n,m),V=E(m=W[L-4],n=W[L-4+1]),X=R(n,m),We=W[L-32],Fe=W[L-32+1],De=B+W[L-14+1]|0,ye=_+W[L-14]+z(De,B)|0;ye=(ye=ye+V+z(De=De+X|0,X)|0)+We+z(De=De+Fe|0,Fe)|0,W[L]=ye,W[L+1]=De}for(var ce=0;ce<160;ce+=2){ye=W[ce],De=W[ce+1];var ve=P(K,ee,ie),oe=P(me,A,i),je=d(K,me),Ae=d(me,K),he=S(le,u),Ce=S(u,le),te=I[ce],Ue=I[ce+1],Be=h(le,ne,de),ae=h(u,l,y),ge=T+Ce|0,ft=$+he+z(ge,T)|0;ft=(ft=(ft=ft+Be+z(ge=ge+ae|0,ae)|0)+te+z(ge=ge+Ue|0,Ue)|0)+ye+z(ge=ge+De|0,De)|0;var Je=Ae+oe|0,dt=je+ve+z(Je,Ae)|0;$=de,T=y,de=ne,y=l,ne=le,l=u,le=ue+ft+z(u=a+ge|0,a)|0,ue=ie,a=i,ie=ee,i=A,ee=K,A=me,K=ft+dt+z(me=ge+Je|0,ge)|0}this._al=this._al+me|0,this._bl=this._bl+A|0,this._cl=this._cl+i|0,this._dl=this._dl+a|0,this._el=this._el+u|0,this._fl=this._fl+l|0,this._gl=this._gl+y|0,this._hl=this._hl+T|0,this._ah=this._ah+K+z(this._al,me)|0,this._bh=this._bh+ee+z(this._bl,A)|0,this._ch=this._ch+ie+z(this._cl,i)|0,this._dh=this._dh+ue+z(this._dl,a)|0,this._eh=this._eh+le+z(this._el,u)|0,this._fh=this._fh+ne+z(this._fl,l)|0,this._gh=this._gh+de+z(this._gl,y)|0,this._hh=this._hh+$+z(this._hl,T)|0},C.prototype._hash=function(){var U=b.allocUnsafe(64);function W(K,ee,ie){U.writeInt32BE(K,ie),U.writeInt32BE(ee,ie+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},Ve.exports=C},8012:function(Ve,q,p){!function(t){"use strict";var e={};Ve.exports?(e.bytesToHex=p(6128).bytesToHex,e.convertString=p(5612),Ve.exports=P):(e.bytesToHex=t.convertHex.bytesToHex,e.convertString=t.convertString,t.sha256=P);var b=[];!function(){function d(E){for(var R=Math.sqrt(E),z=2;z<=R;z++)if(!(E%z))return!1;return!0}for(var w=2,O=0;O<64;)d(w)&&(b[O]=4294967296*((E=Math.pow(w,1/3))-(0|E))|0,O++),w++;var E}();var C=[],h=function(d,S,w){for(var O=d[0],E=d[1],R=d[2],z=d[3],U=d[4],W=d[5],K=d[6],ee=d[7],ie=0;ie<64;ie++){if(ie<16)C[ie]=0|S[w+ie];else{var ue=C[ie-15],ne=C[ie-2];C[ie]=((ue<<25|ue>>>7)^(ue<<14|ue>>>18)^ue>>>3)+C[ie-7]+((ne<<15|ne>>>17)^(ne<<13|ne>>>19)^ne>>>10)+C[ie-16]}var me=O&E^O&R^E&R,a=ee+((U<<26|U>>>6)^(U<<21|U>>>11)^(U<<7|U>>>25))+(U&W^~U&K)+b[ie]+C[ie];ee=K,K=W,W=U,U=z+a|0,z=R,R=E,E=O,O=a+(((O<<30|O>>>2)^(O<<19|O>>>13)^(O<<10|O>>>22))+me)|0}d[0]=d[0]+O|0,d[1]=d[1]+E|0,d[2]=d[2]+R|0,d[3]=d[3]+z|0,d[4]=d[4]+U|0,d[5]=d[5]+W|0,d[6]=d[6]+K|0,d[7]=d[7]+ee|0};function P(d,S){d.constructor===String&&(d=e.convertString.UTF8.stringToBytes(d));var w=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225],O=function(d){for(var S=[],w=0,O=0;w<d.length;w++,O+=8)S[O>>>5]|=d[w]<<24-O%32;return S}(d),E=8*d.length;O[E>>5]|=128<<24-E%32,O[15+(E+64>>9<<4)]=E;for(var R=0;R<O.length;R+=16)h(w,O,R);var z=function(d){for(var S=[],w=0;w<32*d.length;w+=8)S.push(d[w>>>5]>>>24-w%32&255);return S}(w);return S&&S.asBytes?z:S&&S.asString?e.convertString.bytesToString(z):e.bytesToHex(z)}P.x2=function(d,S){return P(P(d,{asBytes:!0}),S)}}(this)},295:(Ve,q,p)=>{Ve.exports=b;var t=p(9069).EventEmitter;function b(){t.call(this)}p(3894)(b,t),b.Readable=p(3154),b.Writable=p(520),b.Duplex=p(1339),b.Transform=p(6025),b.PassThrough=p(6071),b.finished=p(7542),b.pipeline=p(954),b.Stream=b,b.prototype.pipe=function(I,s){var C=this;function h(R){I.writable&&!1===I.write(R)&&C.pause&&C.pause()}function P(){C.readable&&C.resume&&C.resume()}C.on("data",h),I.on("drain",P),!I._isStdio&&(!s||!1!==s.end)&&(C.on("end",S),C.on("close",w));var d=!1;function S(){d||(d=!0,I.end())}function w(){d||(d=!0,"function"==typeof I.destroy&&I.destroy())}function O(R){if(E(),0===t.listenerCount(this,"error"))throw R}function E(){C.removeListener("data",h),I.removeListener("drain",P),C.removeListener("end",S),C.removeListener("close",w),C.removeListener("error",O),I.removeListener("error",O),C.removeListener("end",E),C.removeListener("close",E),I.removeListener("close",E)}return C.on("error",O),I.on("error",O),C.on("end",E),C.on("close",E),I.on("close",E),I.emit("pipe",C),I}},3054:(Ve,q,p)=>{"use strict";var t=p(3502).Buffer,e=t.isEncoding||function(K){switch((K=""+K)&&K.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(K){var ee;switch(this.encoding=function I(K){var ee=function b(K){if(!K)return"utf8";for(var ee;;)switch(K){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 K;default:if(ee)return;K=(""+K).toLowerCase(),ee=!0}}(K);if("string"!=typeof ee&&(t.isEncoding===e||!e(K)))throw new Error("Unknown encoding: "+K);return ee||K}(K),this.encoding){case"utf16le":this.text=O,this.end=E,ee=4;break;case"utf8":this.fillLast=d,ee=4;break;case"base64":this.text=R,this.end=z,ee=3;break;default:return this.write=U,void(this.end=W)}this.lastNeed=0,this.lastTotal=0,this.lastChar=t.allocUnsafe(ee)}function C(K){return K<=127?0:K>>5==6?2:K>>4==14?3:K>>3==30?4:K>>6==2?-1:-2}function d(K){var ee=this.lastTotal-this.lastNeed,ie=function P(K,ee,ie){if(128!=(192&ee[0]))return K.lastNeed=0,"\ufffd";if(K.lastNeed>1&&ee.length>1){if(128!=(192&ee[1]))return K.lastNeed=1,"\ufffd";if(K.lastNeed>2&&ee.length>2&&128!=(192&ee[2]))return K.lastNeed=2,"\ufffd"}}(this,K);return void 0!==ie?ie:this.lastNeed<=K.length?(K.copy(this.lastChar,ee,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal)):(K.copy(this.lastChar,ee,0,K.length),void(this.lastNeed-=K.length))}function O(K,ee){if((K.length-ee)%2==0){var ie=K.toString("utf16le",ee);if(ie){var ue=ie.charCodeAt(ie.length-1);if(ue>=55296&&ue<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=K[K.length-2],this.lastChar[1]=K[K.length-1],ie.slice(0,-1)}return ie}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=K[K.length-1],K.toString("utf16le",ee,K.length-1)}function E(K){var ee=K&&K.length?this.write(K):"";return this.lastNeed?ee+this.lastChar.toString("utf16le",0,this.lastTotal-this.lastNeed):ee}function R(K,ee){var ie=(K.length-ee)%3;return 0===ie?K.toString("base64",ee):(this.lastNeed=3-ie,this.lastTotal=3,1===ie?this.lastChar[0]=K[K.length-1]:(this.lastChar[0]=K[K.length-2],this.lastChar[1]=K[K.length-1]),K.toString("base64",ee,K.length-ie))}function z(K){var ee=K&&K.length?this.write(K):"";return this.lastNeed?ee+this.lastChar.toString("base64",0,3-this.lastNeed):ee}function U(K){return K.toString(this.encoding)}function W(K){return K&&K.length?this.write(K):""}q.s=s,s.prototype.write=function(K){if(0===K.length)return"";var ee,ie;if(this.lastNeed){if(void 0===(ee=this.fillLast(K)))return"";ie=this.lastNeed,this.lastNeed=0}else ie=0;return ie<K.length?ee?ee+this.text(K,ie):this.text(K,ie):ee||""},s.prototype.end=function w(K){var ee=K&&K.length?this.write(K):"";return this.lastNeed?ee+"\ufffd":ee},s.prototype.text=function S(K,ee){var ie=function h(K,ee,ie){var ue=ee.length-1;if(ue<ie)return 0;var le=C(ee[ue]);return le>=0?(le>0&&(K.lastNeed=le-1),le):--ue<ie||-2===le?0:(le=C(ee[ue]))>=0?(le>0&&(K.lastNeed=le-2),le):--ue<ie||-2===le?0:(le=C(ee[ue]))>=0?(le>0&&(2===le?le=0:K.lastNeed=le-3),le):0}(this,K,ee);if(!this.lastNeed)return K.toString("utf8",ee);this.lastTotal=ie;var ue=K.length-(ie-this.lastNeed);return K.copy(this.lastChar,0,ue),K.toString("utf8",ee,ue)},s.prototype.fillLast=function(K){if(this.lastNeed<=K.length)return K.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);K.copy(this.lastChar,this.lastTotal-this.lastNeed,0,K.length),this.lastNeed-=K.length}},2167:(Ve,q,p)=>{var t=p(4606);q.encode=t.encode,q.decode=t.decode},4606:(Ve,q)=>{"use strict";var t=[255,255,26,27,28,29,30,31,255,255,255,255,255,255,255,255,255,0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,255,255,255,255,255,255,0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,255,255,255,255,255];q.encode=function(b){Buffer.isBuffer(b)||(b=new Buffer(b));for(var I=0,s=0,C=0,h=0,P=new Buffer(8*function e(b){var I=Math.floor(b.length/5);return b.length%5==0?I:I+1}(b));I<b.length;){var d=b[I];C>3?(h=(h=d&255>>C)<<(C=(C+5)%8)|(I+1<b.length?b[I+1]:0)>>8-C,I++):(h=d>>8-(C+5)&31,0==(C=(C+5)%8)&&I++),P[s]="ABCDEFGHIJKLMNOPQRSTUVWXYZ234567".charCodeAt(h),s++}for(I=s;I<P.length;I++)P[I]=61;return P},q.decode=function(b){var C,I=0,s=0,h=0;Buffer.isBuffer(b)||(b=new Buffer(b));for(var P=new Buffer(Math.ceil(5*b.length/8)),d=0;d<b.length&&61!==b[d];d++){var S=b[d]-48;if(!(S<t.length))throw new Error("Invalid input - it is not base32 encoded string");s=t[S],I<=3?0==(I=(I+5)%8)?(P[h]=C|=s,h++,C=0):C|=255&s<<8-I:(P[h]=C|=255&s>>>(I=(I+5)%8),h++,C=255&s<<8-I)}return P.slice(0,h)}},4364:Ve=>{function p(t){try{if(!global.localStorage)return!1}catch{return!1}var e=global.localStorage[t];return null!=e&&"true"===String(e).toLowerCase()}Ve.exports=function q(t,e){if(p("noDeprecation"))return t;var b=!1;return function I(){if(!b){if(p("throwDeprecation"))throw new Error(e);p("traceDeprecation")?console.trace(e):console.warn(e),b=!0}return t.apply(this,arguments)}}},655:(Ve,q,p)=>{"use strict";function s(y,T,L,m){var B,n=arguments.length,_=n<3?T:null===m?m=Object.getOwnPropertyDescriptor(T,L):m;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)_=Reflect.decorate(y,T,L,m);else for(var V=y.length-1;V>=0;V--)(B=y[V])&&(_=(n<3?B(_):n>3?B(T,L,_):B(T,L))||_);return n>3&&_&&Object.defineProperty(T,L,_),_}function O(y,T,L,m){return new(L||(L=Promise))(function(_,B){function V($e){try{Le(m.next($e))}catch(We){B(We)}}function X($e){try{Le(m.throw($e))}catch(We){B(We)}}function Le($e){$e.done?_($e.value):function n(_){return _ instanceof L?_:new L(function(B){B(_)})}($e.value).then(V,X)}Le((m=m.apply(y,T||[])).next())})}function ue(y){return this instanceof ue?(this.v=y,this):new ue(y)}function le(y,T,L){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var n,m=L.apply(y,T||[]),_=[];return n={},B("next"),B("throw"),B("return"),n[Symbol.asyncIterator]=function(){return this},n;function B(Fe){m[Fe]&&(n[Fe]=function(De){return new Promise(function(ye,ce){_.push([Fe,De,ye,ce])>1||V(Fe,De)})})}function V(Fe,De){try{!function X(Fe){Fe.value instanceof ue?Promise.resolve(Fe.value.v).then(Le,$e):We(_[0][2],Fe)}(m[Fe](De))}catch(ye){We(_[0][3],ye)}}function Le(Fe){V("next",Fe)}function $e(Fe){V("throw",Fe)}function We(Fe,De){Fe(De),_.shift(),_.length&&V(_[0][0],_[0][1])}}function de(y){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var L,T=y[Symbol.asyncIterator];return T?T.call(y):(y=function U(y){var T="function"==typeof Symbol&&Symbol.iterator,L=T&&y[T],m=0;if(L)return L.call(y);if(y&&"number"==typeof y.length)return{next:function(){return y&&m>=y.length&&(y=void 0),{value:y&&y[m++],done:!y}}};throw new TypeError(T?"Object is not iterable.":"Symbol.iterator is not defined.")}(y),L={},m("next"),m("throw"),m("return"),L[Symbol.asyncIterator]=function(){return this},L);function m(_){L[_]=y[_]&&function(B){return new Promise(function(V,X){!function n(_,B,V,X){Promise.resolve(X).then(function(Le){_({value:Le,done:V})},B)}(V,X,(B=y[_](B)).done,B.value)})}}}p.d(q,{FC:()=>le,KL:()=>de,gn:()=>s,mG:()=>O,qq:()=>ue})},950:()=>{},6601:()=>{},8623:()=>{},7748:()=>{},5568:()=>{},6619:()=>{},7108:()=>{},2361:()=>{},4616:()=>{},7340:(Ve,q,p)=>{"use strict";p.d(q,{F4:()=>S,IO:()=>z,LC:()=>e,SB:()=>d,X$:()=>I,ZE:()=>ee,ZN:()=>K,_j:()=>t,eR:()=>w,jt:()=>s,k1:()=>ie,l3:()=>b,oB:()=>P,pV:()=>E,ru:()=>C,vP:()=>h});class t{}class e{}const b="*";function I(ue,le){return{type:7,name:ue,definitions:le,options:{}}}function s(ue,le=null){return{type:4,styles:le,timings:ue}}function C(ue,le=null){return{type:3,steps:ue,options:le}}function h(ue,le=null){return{type:2,steps:ue,options:le}}function P(ue){return{type:6,styles:ue,offset:null}}function d(ue,le,ne){return{type:0,name:ue,styles:le,options:ne}}function S(ue){return{type:5,steps:ue}}function w(ue,le,ne=null){return{type:1,expr:ue,animation:le,options:ne}}function E(ue=null){return{type:9,options:ue}}function z(ue,le,ne=null){return{type:11,selector:ue,animation:le,options:ne}}function W(ue){Promise.resolve().then(ue)}class K{constructor(le=0,ne=0){this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._originalOnDoneFns=[],this._originalOnStartFns=[],this._started=!1,this._destroyed=!1,this._finished=!1,this._position=0,this.parentPlayer=null,this.totalTime=le+ne}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(le=>le()),this._onDoneFns=[])}onStart(le){this._originalOnStartFns.push(le),this._onStartFns.push(le)}onDone(le){this._originalOnDoneFns.push(le),this._onDoneFns.push(le)}onDestroy(le){this._onDestroyFns.push(le)}hasStarted(){return this._started}init(){}play(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=!0}triggerMicrotask(){W(()=>this._onFinish())}_onStart(){this._onStartFns.forEach(le=>le()),this._onStartFns=[]}pause(){}restart(){}finish(){this._onFinish()}destroy(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach(le=>le()),this._onDestroyFns=[])}reset(){this._started=!1,this._finished=!1,this._onStartFns=this._originalOnStartFns,this._onDoneFns=this._originalOnDoneFns}setPosition(le){this._position=this.totalTime?le*this.totalTime:1}getPosition(){return this.totalTime?this._position/this.totalTime:1}triggerCallback(le){const ne="start"==le?this._onStartFns:this._onDoneFns;ne.forEach(de=>de()),ne.length=0}}class ee{constructor(le){this._onDoneFns=[],this._onStartFns=[],this._finished=!1,this._started=!1,this._destroyed=!1,this._onDestroyFns=[],this.parentPlayer=null,this.totalTime=0,this.players=le;let ne=0,de=0,$=0;const me=this.players.length;0==me?W(()=>this._onFinish()):this.players.forEach(A=>{A.onDone(()=>{++ne==me&&this._onFinish()}),A.onDestroy(()=>{++de==me&&this._onDestroy()}),A.onStart(()=>{++$==me&&this._onStart()})}),this.totalTime=this.players.reduce((A,i)=>Math.max(A,i.totalTime),0)}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(le=>le()),this._onDoneFns=[])}init(){this.players.forEach(le=>le.init())}onStart(le){this._onStartFns.push(le)}_onStart(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach(le=>le()),this._onStartFns=[])}onDone(le){this._onDoneFns.push(le)}onDestroy(le){this._onDestroyFns.push(le)}hasStarted(){return this._started}play(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach(le=>le.play())}pause(){this.players.forEach(le=>le.pause())}restart(){this.players.forEach(le=>le.restart())}finish(){this._onFinish(),this.players.forEach(le=>le.finish())}destroy(){this._onDestroy()}_onDestroy(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach(le=>le.destroy()),this._onDestroyFns.forEach(le=>le()),this._onDestroyFns=[])}reset(){this.players.forEach(le=>le.reset()),this._destroyed=!1,this._finished=!1,this._started=!1}setPosition(le){const ne=le*this.totalTime;this.players.forEach(de=>{const $=de.totalTime?Math.min(1,ne/de.totalTime):1;de.setPosition($)})}getPosition(){const le=this.players.reduce((ne,de)=>null===ne||de.totalTime>ne.totalTime?de:ne,null);return null!=le?le.getPosition():0}beforeDestroy(){this.players.forEach(le=>{le.beforeDestroy&&le.beforeDestroy()})}triggerCallback(le){const ne="start"==le?this._onStartFns:this._onDoneFns;ne.forEach(de=>de()),ne.length=0}}const ie="!"},4761:(Ve,q,p)=>{"use strict";p.d(q,{$s:()=>i,Em:()=>T,Kd:()=>Ke,X6:()=>Be,ic:()=>m,kH:()=>Qe,mK:()=>je,qV:()=>oe,qm:()=>kt,rt:()=>_t,s1:()=>y,tE:()=>Tt,yG:()=>ae});var t=p(6895),e=p(4650),b=p(3353),I=p(7579),s=p(727),C=p(1135),h=p(9646),P=p(9521),d=p(8505),S=p(8372),w=p(9300),O=p(4004),E=p(5698),R=p(5684),z=p(1884),U=p(2722),W=p(1281),K=p(9643),ee=p(2289);function ne(we,J){return(we.getAttribute(J)||"").match(/\S+/g)||[]}const $="cdk-describedby-message",me="cdk-describedby-host";let A=0,i=(()=>{class we{constructor(be,He){this._platform=He,this._messageRegistry=new Map,this._messagesContainer=null,this._id=""+A++,this._document=be,this._id=(0,e.f3M)(e.AFp)+"-"+A++}describe(be,He,at){if(!this._canBeDescribed(be,He))return;const ii=a(He,at);"string"!=typeof He?(u(He,this._id),this._messageRegistry.set(ii,{messageElement:He,referenceCount:0})):this._messageRegistry.has(ii)||this._createMessageElement(He,at),this._isElementDescribedByMessage(be,ii)||this._addMessageReference(be,ii)}removeDescription(be,He,at){if(!He||!this._isElementNode(be))return;const ii=a(He,at);if(this._isElementDescribedByMessage(be,ii)&&this._removeMessageReference(be,ii),"string"==typeof He){const Gt=this._messageRegistry.get(ii);Gt&&0===Gt.referenceCount&&this._deleteMessageElement(ii)}0===this._messagesContainer?.childNodes.length&&(this._messagesContainer.remove(),this._messagesContainer=null)}ngOnDestroy(){const be=this._document.querySelectorAll(`[${me}="${this._id}"]`);for(let He=0;He<be.length;He++)this._removeCdkDescribedByReferenceIds(be[He]),be[He].removeAttribute(me);this._messagesContainer?.remove(),this._messagesContainer=null,this._messageRegistry.clear()}_createMessageElement(be,He){const at=this._document.createElement("div");u(at,this._id),at.textContent=be,He&&at.setAttribute("role",He),this._createMessagesContainer(),this._messagesContainer.appendChild(at),this._messageRegistry.set(a(be,He),{messageElement:at,referenceCount:0})}_deleteMessageElement(be){this._messageRegistry.get(be)?.messageElement?.remove(),this._messageRegistry.delete(be)}_createMessagesContainer(){if(this._messagesContainer)return;const be="cdk-describedby-message-container",He=this._document.querySelectorAll(`.${be}[platform="server"]`);for(let ii=0;ii<He.length;ii++)He[ii].remove();const at=this._document.createElement("div");at.style.visibility="hidden",at.classList.add(be),at.classList.add("cdk-visually-hidden"),this._platform&&!this._platform.isBrowser&&at.setAttribute("platform","server"),this._document.body.appendChild(at),this._messagesContainer=at}_removeCdkDescribedByReferenceIds(be){const He=ne(be,"aria-describedby").filter(at=>0!=at.indexOf($));be.setAttribute("aria-describedby",He.join(" "))}_addMessageReference(be,He){const at=this._messageRegistry.get(He);(function ue(we,J,be){const He=ne(we,J);He.some(at=>at.trim()==be.trim())||(He.push(be.trim()),we.setAttribute(J,He.join(" ")))})(be,"aria-describedby",at.messageElement.id),be.setAttribute(me,this._id),at.referenceCount++}_removeMessageReference(be,He){const at=this._messageRegistry.get(He);at.referenceCount--,function le(we,J,be){const at=ne(we,J).filter(ii=>ii!=be.trim());at.length?we.setAttribute(J,at.join(" ")):we.removeAttribute(J)}(be,"aria-describedby",at.messageElement.id),be.removeAttribute(me)}_isElementDescribedByMessage(be,He){const at=ne(be,"aria-describedby"),ii=this._messageRegistry.get(He),Gt=ii&&ii.messageElement.id;return!!Gt&&-1!=at.indexOf(Gt)}_canBeDescribed(be,He){if(!this._isElementNode(be))return!1;if(He&&"object"==typeof He)return!0;const at=null==He?"":`${He}`.trim(),ii=be.getAttribute("aria-label");return!(!at||ii&&ii.trim()===at)}_isElementNode(be){return be.nodeType===this._document.ELEMENT_NODE}}return we.\u0275fac=function(be){return new(be||we)(e.LFG(t.K0),e.LFG(b.t4))},we.\u0275prov=e.Yz7({token:we,factory:we.\u0275fac,providedIn:"root"}),we})();function a(we,J){return"string"==typeof we?`${J||""}/${we}`:we}function u(we,J){we.id||(we.id=`${$}-${J}-${A++}`)}class l{constructor(J){this._items=J,this._activeItemIndex=-1,this._activeItem=null,this._wrap=!1,this._letterKeyStream=new I.x,this._typeaheadSubscription=s.w0.EMPTY,this._vertical=!0,this._allowedModifierKeys=[],this._homeAndEnd=!1,this._pageUpAndDown={enabled:!1,delta:10},this._skipPredicateFn=be=>be.disabled,this._pressedLetters=[],this.tabOut=new I.x,this.change=new I.x,J instanceof e.n_E&&(this._itemChangesSubscription=J.changes.subscribe(be=>{if(this._activeItem){const at=be.toArray().indexOf(this._activeItem);at>-1&&at!==this._activeItemIndex&&(this._activeItemIndex=at)}}))}skipPredicate(J){return this._skipPredicateFn=J,this}withWrap(J=!0){return this._wrap=J,this}withVerticalOrientation(J=!0){return this._vertical=J,this}withHorizontalOrientation(J){return this._horizontal=J,this}withAllowedModifierKeys(J){return this._allowedModifierKeys=J,this}withTypeAhead(J=200){return this._typeaheadSubscription.unsubscribe(),this._typeaheadSubscription=this._letterKeyStream.pipe((0,d.b)(be=>this._pressedLetters.push(be)),(0,S.b)(J),(0,w.h)(()=>this._pressedLetters.length>0),(0,O.U)(()=>this._pressedLetters.join(""))).subscribe(be=>{const He=this._getItemsArray();for(let at=1;at<He.length+1;at++){const ii=(this._activeItemIndex+at)%He.length,Gt=He[ii];if(!this._skipPredicateFn(Gt)&&0===Gt.getLabel().toUpperCase().trim().indexOf(be)){this.setActiveItem(ii);break}}this._pressedLetters=[]}),this}cancelTypeahead(){return this._pressedLetters=[],this}withHomeAndEnd(J=!0){return this._homeAndEnd=J,this}withPageUpDown(J=!0,be=10){return this._pageUpAndDown={enabled:J,delta:be},this}setActiveItem(J){const be=this._activeItem;this.updateActiveItem(J),this._activeItem!==be&&this.change.next(this._activeItemIndex)}onKeydown(J){const be=J.keyCode,at=["altKey","ctrlKey","metaKey","shiftKey"].every(ii=>!J[ii]||this._allowedModifierKeys.indexOf(ii)>-1);switch(be){case P.Mf:return void this.tabOut.next();case P.JH:if(this._vertical&&at){this.setNextItemActive();break}return;case P.LH:if(this._vertical&&at){this.setPreviousItemActive();break}return;case P.SV:if(this._horizontal&&at){"rtl"===this._horizontal?this.setPreviousItemActive():this.setNextItemActive();break}return;case P.oh:if(this._horizontal&&at){"rtl"===this._horizontal?this.setNextItemActive():this.setPreviousItemActive();break}return;case P.Sd:if(this._homeAndEnd&&at){this.setFirstItemActive();break}return;case P.uR:if(this._homeAndEnd&&at){this.setLastItemActive();break}return;case P.Ku:if(this._pageUpAndDown.enabled&&at){const ii=this._activeItemIndex-this._pageUpAndDown.delta;this._setActiveItemByIndex(ii>0?ii:0,1);break}return;case P.VM:if(this._pageUpAndDown.enabled&&at){const ii=this._activeItemIndex+this._pageUpAndDown.delta,Gt=this._getItemsArray().length;this._setActiveItemByIndex(ii<Gt?ii:Gt-1,-1);break}return;default:return void((at||(0,P.Vb)(J,"shiftKey"))&&(J.key&&1===J.key.length?this._letterKeyStream.next(J.key.toLocaleUpperCase()):(be>=P.A&&be<=P.Z||be>=P.xE&&be<=P.aO)&&this._letterKeyStream.next(String.fromCharCode(be))))}this._pressedLetters=[],J.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(J){const be=this._getItemsArray(),He="number"==typeof J?J:be.indexOf(J);this._activeItem=be[He]??null,this._activeItemIndex=He}destroy(){this._typeaheadSubscription.unsubscribe(),this._itemChangesSubscription?.unsubscribe(),this._letterKeyStream.complete(),this.tabOut.complete(),this.change.complete(),this._pressedLetters=[]}_setActiveItemByDelta(J){this._wrap?this._setActiveInWrapMode(J):this._setActiveInDefaultMode(J)}_setActiveInWrapMode(J){const be=this._getItemsArray();for(let He=1;He<=be.length;He++){const at=(this._activeItemIndex+J*He+be.length)%be.length;if(!this._skipPredicateFn(be[at]))return void this.setActiveItem(at)}}_setActiveInDefaultMode(J){this._setActiveItemByIndex(this._activeItemIndex+J,J)}_setActiveItemByIndex(J,be){const He=this._getItemsArray();if(He[J]){for(;this._skipPredicateFn(He[J]);)if(!He[J+=be])return;this.setActiveItem(J)}}_getItemsArray(){return this._items instanceof e.n_E?this._items.toArray():this._items}}class y extends l{setActiveItem(J){this.activeItem&&this.activeItem.setInactiveStyles(),super.setActiveItem(J),this.activeItem&&this.activeItem.setActiveStyles()}}class T extends l{constructor(){super(...arguments),this._origin="program"}setFocusOrigin(J){return this._origin=J,this}setActiveItem(J){super.setActiveItem(J),this.activeItem&&this.activeItem.focus(this._origin)}}let m=(()=>{class we{constructor(be){this._platform=be}isDisabled(be){return be.hasAttribute("disabled")}isVisible(be){return function _(we){return!!(we.offsetWidth||we.offsetHeight||"function"==typeof we.getClientRects&&we.getClientRects().length)}(be)&&"visible"===getComputedStyle(be).visibility}isTabbable(be){if(!this._platform.isBrowser)return!1;const He=function n(we){try{return we.frameElement}catch{return null}}(function ce(we){return we.ownerDocument&&we.ownerDocument.defaultView||window}(be));if(He&&(-1===Fe(He)||!this.isVisible(He)))return!1;let at=be.nodeName.toLowerCase(),ii=Fe(be);return be.hasAttribute("contenteditable")?-1!==ii:!("iframe"===at||"object"===at||this._platform.WEBKIT&&this._platform.IOS&&!function De(we){let J=we.nodeName.toLowerCase(),be="input"===J&&we.type;return"text"===be||"password"===be||"select"===J||"textarea"===J}(be))&&("audio"===at?!!be.hasAttribute("controls")&&-1!==ii:"video"===at?-1!==ii&&(null!==ii||this._platform.FIREFOX||be.hasAttribute("controls")):be.tabIndex>=0)}isFocusable(be,He){return function ye(we){return!function V(we){return function Le(we){return"input"==we.nodeName.toLowerCase()}(we)&&"hidden"==we.type}(we)&&(function B(we){let J=we.nodeName.toLowerCase();return"input"===J||"select"===J||"button"===J||"textarea"===J}(we)||function X(we){return function $e(we){return"a"==we.nodeName.toLowerCase()}(we)&&we.hasAttribute("href")}(we)||we.hasAttribute("contenteditable")||We(we))}(be)&&!this.isDisabled(be)&&(He?.ignoreVisibility||this.isVisible(be))}}return we.\u0275fac=function(be){return new(be||we)(e.LFG(b.t4))},we.\u0275prov=e.Yz7({token:we,factory:we.\u0275fac,providedIn:"root"}),we})();function We(we){if(!we.hasAttribute("tabindex")||void 0===we.tabIndex)return!1;let J=we.getAttribute("tabindex");return!(!J||isNaN(parseInt(J,10)))}function Fe(we){if(!We(we))return null;const J=parseInt(we.getAttribute("tabindex")||"",10);return isNaN(J)?-1:J}class ve{get enabled(){return this._enabled}set enabled(J){this._enabled=J,this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(J,this._startAnchor),this._toggleAnchorTabIndex(J,this._endAnchor))}constructor(J,be,He,at,ii=!1){this._element=J,this._checker=be,this._ngZone=He,this._document=at,this._hasAttached=!1,this.startAnchorListener=()=>this.focusLastTabbableElement(),this.endAnchorListener=()=>this.focusFirstTabbableElement(),this._enabled=!0,ii||this.attachAnchors()}destroy(){const J=this._startAnchor,be=this._endAnchor;J&&(J.removeEventListener("focus",this.startAnchorListener),J.remove()),be&&(be.removeEventListener("focus",this.endAnchorListener),be.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(J){return new Promise(be=>{this._executeOnStable(()=>be(this.focusInitialElement(J)))})}focusFirstTabbableElementWhenReady(J){return new Promise(be=>{this._executeOnStable(()=>be(this.focusFirstTabbableElement(J)))})}focusLastTabbableElementWhenReady(J){return new Promise(be=>{this._executeOnStable(()=>be(this.focusLastTabbableElement(J)))})}_getRegionBoundary(J){const be=this._element.querySelectorAll(`[cdk-focus-region-${J}], [cdkFocusRegion${J}], [cdk-focus-${J}]`);return"start"==J?be.length?be[0]:this._getFirstTabbableElement(this._element):be.length?be[be.length-1]:this._getLastTabbableElement(this._element)}focusInitialElement(J){const be=this._element.querySelector("[cdk-focus-initial], [cdkFocusInitial]");if(be){if(!this._checker.isFocusable(be)){const He=this._getFirstTabbableElement(be);return He?.focus(J),!!He}return be.focus(J),!0}return this.focusFirstTabbableElement(J)}focusFirstTabbableElement(J){const be=this._getRegionBoundary("start");return be&&be.focus(J),!!be}focusLastTabbableElement(J){const be=this._getRegionBoundary("end");return be&&be.focus(J),!!be}hasAttached(){return this._hasAttached}_getFirstTabbableElement(J){if(this._checker.isFocusable(J)&&this._checker.isTabbable(J))return J;const be=J.children;for(let He=0;He<be.length;He++){const at=be[He].nodeType===this._document.ELEMENT_NODE?this._getFirstTabbableElement(be[He]):null;if(at)return at}return null}_getLastTabbableElement(J){if(this._checker.isFocusable(J)&&this._checker.isTabbable(J))return J;const be=J.children;for(let He=be.length-1;He>=0;He--){const at=be[He].nodeType===this._document.ELEMENT_NODE?this._getLastTabbableElement(be[He]):null;if(at)return at}return null}_createAnchor(){const J=this._document.createElement("div");return this._toggleAnchorTabIndex(this._enabled,J),J.classList.add("cdk-visually-hidden"),J.classList.add("cdk-focus-trap-anchor"),J.setAttribute("aria-hidden","true"),J}_toggleAnchorTabIndex(J,be){J?be.setAttribute("tabindex","0"):be.removeAttribute("tabindex")}toggleAnchors(J){this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(J,this._startAnchor),this._toggleAnchorTabIndex(J,this._endAnchor))}_executeOnStable(J){this._ngZone.isStable?J():this._ngZone.onStable.pipe((0,E.q)(1)).subscribe(J)}}let oe=(()=>{class we{constructor(be,He,at){this._checker=be,this._ngZone=He,this._document=at}create(be,He=!1){return new ve(be,this._checker,this._ngZone,this._document,He)}}return we.\u0275fac=function(be){return new(be||we)(e.LFG(m),e.LFG(e.R0b),e.LFG(t.K0))},we.\u0275prov=e.Yz7({token:we,factory:we.\u0275fac,providedIn:"root"}),we})(),je=(()=>{class we{get enabled(){return this.focusTrap.enabled}set enabled(be){this.focusTrap.enabled=(0,W.Ig)(be)}get autoCapture(){return this._autoCapture}set autoCapture(be){this._autoCapture=(0,W.Ig)(be)}constructor(be,He,at){this._elementRef=be,this._focusTrapFactory=He,this._previouslyFocusedElement=null,this.focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement,!0)}ngOnDestroy(){this.focusTrap.destroy(),this._previouslyFocusedElement&&(this._previouslyFocusedElement.focus(),this._previouslyFocusedElement=null)}ngAfterContentInit(){this.focusTrap.attachAnchors(),this.autoCapture&&this._captureFocus()}ngDoCheck(){this.focusTrap.hasAttached()||this.focusTrap.attachAnchors()}ngOnChanges(be){const He=be.autoCapture;He&&!He.firstChange&&this.autoCapture&&this.focusTrap.hasAttached()&&this._captureFocus()}_captureFocus(){this._previouslyFocusedElement=(0,b.ht)(),this.focusTrap.focusInitialElementWhenReady()}}return we.\u0275fac=function(be){return new(be||we)(e.Y36(e.SBq),e.Y36(oe),e.Y36(t.K0))},we.\u0275dir=e.lG2({type:we,selectors:[["","cdkTrapFocus",""]],inputs:{enabled:["cdkTrapFocus","enabled"],autoCapture:["cdkTrapFocusAutoCapture","autoCapture"]},exportAs:["cdkTrapFocus"],features:[e.TTD]}),we})();function Be(we){return 0===we.buttons||0===we.offsetX&&0===we.offsetY}function ae(we){const J=we.touches&&we.touches[0]||we.changedTouches&&we.changedTouches[0];return!(!J||-1!==J.identifier||null!=J.radiusX&&1!==J.radiusX||null!=J.radiusY&&1!==J.radiusY)}const ge=new e.OlP("cdk-input-modality-detector-options"),ft={ignoreKeys:[P.zL,P.jx,P.b2,P.MW,P.JU]},dt=(0,b.i$)({passive:!0,capture:!0});let Et=(()=>{class we{get mostRecentModality(){return this._modality.value}constructor(be,He,at,ii){this._platform=be,this._mostRecentTarget=null,this._modality=new C.X(null),this._lastTouchMs=0,this._onKeydown=Gt=>{this._options?.ignoreKeys?.some(ni=>ni===Gt.keyCode)||(this._modality.next("keyboard"),this._mostRecentTarget=(0,b.sA)(Gt))},this._onMousedown=Gt=>{Date.now()-this._lastTouchMs<650||(this._modality.next(Be(Gt)?"keyboard":"mouse"),this._mostRecentTarget=(0,b.sA)(Gt))},this._onTouchstart=Gt=>{ae(Gt)?this._modality.next("keyboard"):(this._lastTouchMs=Date.now(),this._modality.next("touch"),this._mostRecentTarget=(0,b.sA)(Gt))},this._options={...ft,...ii},this.modalityDetected=this._modality.pipe((0,R.T)(1)),this.modalityChanged=this.modalityDetected.pipe((0,z.x)()),be.isBrowser&&He.runOutsideAngular(()=>{at.addEventListener("keydown",this._onKeydown,dt),at.addEventListener("mousedown",this._onMousedown,dt),at.addEventListener("touchstart",this._onTouchstart,dt)})}ngOnDestroy(){this._modality.complete(),this._platform.isBrowser&&(document.removeEventListener("keydown",this._onKeydown,dt),document.removeEventListener("mousedown",this._onMousedown,dt),document.removeEventListener("touchstart",this._onTouchstart,dt))}}return we.\u0275fac=function(be){return new(be||we)(e.LFG(b.t4),e.LFG(e.R0b),e.LFG(t.K0),e.LFG(ge,8))},we.\u0275prov=e.Yz7({token:we,factory:we.\u0275fac,providedIn:"root"}),we})();const pt=new e.OlP("liveAnnouncerElement",{providedIn:"root",factory:function ot(){return null}}),wt=new e.OlP("LIVE_ANNOUNCER_DEFAULT_OPTIONS");let ke=0,Ke=(()=>{class we{constructor(be,He,at,ii){this._ngZone=He,this._defaultOptions=ii,this._document=at,this._liveElement=be||this._createLiveElement()}announce(be,...He){const at=this._defaultOptions;let ii,Gt;return 1===He.length&&"number"==typeof He[0]?Gt=He[0]:[ii,Gt]=He,this.clear(),clearTimeout(this._previousTimeout),ii||(ii=at&&at.politeness?at.politeness:"polite"),null==Gt&&at&&(Gt=at.duration),this._liveElement.setAttribute("aria-live",ii),this._liveElement.id&&this._exposeAnnouncerToModals(this._liveElement.id),this._ngZone.runOutsideAngular(()=>(this._currentPromise||(this._currentPromise=new Promise(ni=>this._currentResolve=ni)),clearTimeout(this._previousTimeout),this._previousTimeout=setTimeout(()=>{this._liveElement.textContent=be,"number"==typeof Gt&&(this._previousTimeout=setTimeout(()=>this.clear(),Gt)),this._currentResolve(),this._currentPromise=this._currentResolve=void 0},100),this._currentPromise))}clear(){this._liveElement&&(this._liveElement.textContent="")}ngOnDestroy(){clearTimeout(this._previousTimeout),this._liveElement?.remove(),this._liveElement=null,this._currentResolve?.(),this._currentPromise=this._currentResolve=void 0}_createLiveElement(){const be="cdk-live-announcer-element",He=this._document.getElementsByClassName(be),at=this._document.createElement("div");for(let ii=0;ii<He.length;ii++)He[ii].remove();return at.classList.add(be),at.classList.add("cdk-visually-hidden"),at.setAttribute("aria-atomic","true"),at.setAttribute("aria-live","polite"),at.id="cdk-live-announcer-"+ke++,this._document.body.appendChild(at),at}_exposeAnnouncerToModals(be){const He=this._document.querySelectorAll('body > .cdk-overlay-container [aria-modal="true"]');for(let at=0;at<He.length;at++){const ii=He[at],Gt=ii.getAttribute("aria-owns");Gt?-1===Gt.indexOf(be)&&ii.setAttribute("aria-owns",Gt+" "+be):ii.setAttribute("aria-owns",be)}}}return we.\u0275fac=function(be){return new(be||we)(e.LFG(pt,8),e.LFG(e.R0b),e.LFG(t.K0),e.LFG(wt,8))},we.\u0275prov=e.Yz7({token:we,factory:we.\u0275fac,providedIn:"root"}),we})();const Y=new e.OlP("cdk-focus-monitor-default-options"),Re=(0,b.i$)({passive:!0,capture:!0});let Tt=(()=>{class we{constructor(be,He,at,ii,Gt){this._ngZone=be,this._platform=He,this._inputModalityDetector=at,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 I.x,this._rootNodeFocusAndBlurListener=ni=>{for(let tt=(0,b.sA)(ni);tt;tt=tt.parentElement)"focus"===ni.type?this._onFocus(ni,tt):this._onBlur(ni,tt)},this._document=ii,this._detectionMode=Gt?.detectionMode||0}monitor(be,He=!1){const at=(0,W.fI)(be);if(!this._platform.isBrowser||1!==at.nodeType)return(0,h.of)(null);const ii=(0,b.kV)(at)||this._getDocument(),Gt=this._elementInfo.get(at);if(Gt)return He&&(Gt.checkChildren=!0),Gt.subject;const ni={checkChildren:He,subject:new I.x,rootNode:ii};return this._elementInfo.set(at,ni),this._registerGlobalListeners(ni),ni.subject}stopMonitoring(be){const He=(0,W.fI)(be),at=this._elementInfo.get(He);at&&(at.subject.complete(),this._setClasses(He),this._elementInfo.delete(He),this._removeGlobalListeners(at))}focusVia(be,He,at){const ii=(0,W.fI)(be);ii===this._getDocument().activeElement?this._getClosestElementsInfo(ii).forEach(([ni,ut])=>this._originChanged(ni,He,ut)):(this._setOrigin(He),"function"==typeof ii.focus&&ii.focus(at))}ngOnDestroy(){this._elementInfo.forEach((be,He)=>this.stopMonitoring(He))}_getDocument(){return this._document||document}_getWindow(){return this._getDocument().defaultView||window}_getFocusOrigin(be){return this._origin?this._originFromTouchInteraction?this._shouldBeAttributedToTouch(be)?"touch":"program":this._origin:this._windowFocused&&this._lastFocusOrigin?this._lastFocusOrigin:be&&this._isLastInteractionFromInputLabel(be)?"mouse":"program"}_shouldBeAttributedToTouch(be){return 1===this._detectionMode||!!be?.contains(this._inputModalityDetector._mostRecentTarget)}_setClasses(be,He){be.classList.toggle("cdk-focused",!!He),be.classList.toggle("cdk-touch-focused","touch"===He),be.classList.toggle("cdk-keyboard-focused","keyboard"===He),be.classList.toggle("cdk-mouse-focused","mouse"===He),be.classList.toggle("cdk-program-focused","program"===He)}_setOrigin(be,He=!1){this._ngZone.runOutsideAngular(()=>{this._origin=be,this._originFromTouchInteraction="touch"===be&&He,0===this._detectionMode&&(clearTimeout(this._originTimeoutId),this._originTimeoutId=setTimeout(()=>this._origin=null,this._originFromTouchInteraction?650:1))})}_onFocus(be,He){const at=this._elementInfo.get(He),ii=(0,b.sA)(be);!at||!at.checkChildren&&He!==ii||this._originChanged(He,this._getFocusOrigin(ii),at)}_onBlur(be,He){const at=this._elementInfo.get(He);!at||at.checkChildren&&be.relatedTarget instanceof Node&&He.contains(be.relatedTarget)||(this._setClasses(He),this._emitOrigin(at,null))}_emitOrigin(be,He){be.subject.observers.length&&this._ngZone.run(()=>be.subject.next(He))}_registerGlobalListeners(be){if(!this._platform.isBrowser)return;const He=be.rootNode,at=this._rootNodeFocusListenerCount.get(He)||0;at||this._ngZone.runOutsideAngular(()=>{He.addEventListener("focus",this._rootNodeFocusAndBlurListener,Re),He.addEventListener("blur",this._rootNodeFocusAndBlurListener,Re)}),this._rootNodeFocusListenerCount.set(He,at+1),1==++this._monitoredElementCount&&(this._ngZone.runOutsideAngular(()=>{this._getWindow().addEventListener("focus",this._windowFocusListener)}),this._inputModalityDetector.modalityDetected.pipe((0,U.R)(this._stopInputModalityDetector)).subscribe(ii=>{this._setOrigin(ii,!0)}))}_removeGlobalListeners(be){const He=be.rootNode;if(this._rootNodeFocusListenerCount.has(He)){const at=this._rootNodeFocusListenerCount.get(He);at>1?this._rootNodeFocusListenerCount.set(He,at-1):(He.removeEventListener("focus",this._rootNodeFocusAndBlurListener,Re),He.removeEventListener("blur",this._rootNodeFocusAndBlurListener,Re),this._rootNodeFocusListenerCount.delete(He))}--this._monitoredElementCount||(this._getWindow().removeEventListener("focus",this._windowFocusListener),this._stopInputModalityDetector.next(),clearTimeout(this._windowFocusTimeoutId),clearTimeout(this._originTimeoutId))}_originChanged(be,He,at){this._setClasses(be,He),this._emitOrigin(at,He),this._lastFocusOrigin=He}_getClosestElementsInfo(be){const He=[];return this._elementInfo.forEach((at,ii)=>{(ii===be||at.checkChildren&&ii.contains(be))&&He.push([ii,at])}),He}_isLastInteractionFromInputLabel(be){const{_mostRecentTarget:He,mostRecentModality:at}=this._inputModalityDetector;if("mouse"!==at||!He||He===be||"INPUT"!==be.nodeName&&"TEXTAREA"!==be.nodeName||be.disabled)return!1;const ii=be.labels;if(ii)for(let Gt=0;Gt<ii.length;Gt++)if(ii[Gt].contains(He))return!0;return!1}}return we.\u0275fac=function(be){return new(be||we)(e.LFG(e.R0b),e.LFG(b.t4),e.LFG(Et),e.LFG(t.K0,8),e.LFG(Y,8))},we.\u0275prov=e.Yz7({token:we,factory:we.\u0275fac,providedIn:"root"}),we})(),Qe=(()=>{class we{constructor(be,He){this._elementRef=be,this._focusMonitor=He,this._focusOrigin=null,this.cdkFocusChange=new e.vpe}get focusOrigin(){return this._focusOrigin}ngAfterViewInit(){const be=this._elementRef.nativeElement;this._monitorSubscription=this._focusMonitor.monitor(be,1===be.nodeType&&be.hasAttribute("cdkMonitorSubtreeFocus")).subscribe(He=>{this._focusOrigin=He,this.cdkFocusChange.emit(He)})}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef),this._monitorSubscription&&this._monitorSubscription.unsubscribe()}}return we.\u0275fac=function(be){return new(be||we)(e.Y36(e.SBq),e.Y36(Tt))},we.\u0275dir=e.lG2({type:we,selectors:[["","cdkMonitorElementFocus",""],["","cdkMonitorSubtreeFocus",""]],outputs:{cdkFocusChange:"cdkFocusChange"},exportAs:["cdkMonitorFocus"]}),we})();const Ye="cdk-high-contrast-black-on-white",Ht="cdk-high-contrast-white-on-black",Mt="cdk-high-contrast-active";let kt=(()=>{class we{constructor(be,He){this._platform=be,this._document=He,this._breakpointSubscription=(0,e.f3M)(ee.Yg).observe("(forced-colors: active)").subscribe(()=>{this._hasCheckedHighContrastMode&&(this._hasCheckedHighContrastMode=!1,this._applyBodyHighContrastModeCssClasses())})}getHighContrastMode(){if(!this._platform.isBrowser)return 0;const be=this._document.createElement("div");be.style.backgroundColor="rgb(1,2,3)",be.style.position="absolute",this._document.body.appendChild(be);const He=this._document.defaultView||window,at=He&&He.getComputedStyle?He.getComputedStyle(be):null,ii=(at&&at.backgroundColor||"").replace(/ /g,"");switch(be.remove(),ii){case"rgb(0,0,0)":case"rgb(45,50,54)":case"rgb(32,32,32)":return 2;case"rgb(255,255,255)":case"rgb(255,250,239)":return 1}return 0}ngOnDestroy(){this._breakpointSubscription.unsubscribe()}_applyBodyHighContrastModeCssClasses(){if(!this._hasCheckedHighContrastMode&&this._platform.isBrowser&&this._document.body){const be=this._document.body.classList;be.remove(Mt,Ye,Ht),this._hasCheckedHighContrastMode=!0;const He=this.getHighContrastMode();1===He?be.add(Mt,Ye):2===He&&be.add(Mt,Ht)}}}return we.\u0275fac=function(be){return new(be||we)(e.LFG(b.t4),e.LFG(t.K0))},we.\u0275prov=e.Yz7({token:we,factory:we.\u0275fac,providedIn:"root"}),we})(),_t=(()=>{class we{constructor(be){be._applyBodyHighContrastModeCssClasses()}}return we.\u0275fac=function(be){return new(be||we)(e.LFG(kt))},we.\u0275mod=e.oAB({type:we}),we.\u0275inj=e.cJS({imports:[K.Q8]}),we})()},445:(Ve,q,p)=>{"use strict";p.d(q,{Is:()=>h,vT:()=>d});var t=p(4650),e=p(6895);const b=new t.OlP("cdk-dir-doc",{providedIn:"root",factory:function I(){return(0,t.f3M)(e.K0)}}),s=/^(ar|ckb|dv|he|iw|fa|nqo|ps|sd|ug|ur|yi|.*[-_](Adlm|Arab|Hebr|Nkoo|Rohg|Thaa))(?!.*[-_](Latn|Cyrl)($|-|_))($|-|_)/i;let h=(()=>{class S{constructor(O){this.value="ltr",this.change=new t.vpe,O&&(this.value=function C(S){const w=S?.toLowerCase()||"";return"auto"===w&&typeof navigator<"u"&&navigator?.language?s.test(navigator.language)?"rtl":"ltr":"rtl"===w?"rtl":"ltr"}((O.body?O.body.dir:null)||(O.documentElement?O.documentElement.dir:null)||"ltr"))}ngOnDestroy(){this.change.complete()}}return S.\u0275fac=function(O){return new(O||S)(t.LFG(b,8))},S.\u0275prov=t.Yz7({token:S,factory:S.\u0275fac,providedIn:"root"}),S})(),d=(()=>{class S{}return S.\u0275fac=function(O){return new(O||S)},S.\u0275mod=t.oAB({type:S}),S.\u0275inj=t.cJS({}),S})()},1281:(Ve,q,p)=>{"use strict";p.d(q,{Eq:()=>s,HM:()=>C,Ig:()=>e,du:()=>P,fI:()=>h,su:()=>b,t6:()=>I});var t=p(4650);function e(d){return null!=d&&"false"!=`${d}`}function b(d,S=0){return I(d)?Number(d):S}function I(d){return!isNaN(parseFloat(d))&&!isNaN(Number(d))}function s(d){return Array.isArray(d)?d:[d]}function C(d){return null==d?"":"string"==typeof d?d:`${d}px`}function h(d){return d instanceof t.SBq?d.nativeElement:d}function P(d,S=/\s+/){const w=[];if(null!=d){const O=Array.isArray(d)?d:`${d}`.split(S);for(const E of O){const R=`${E}`.trim();R&&w.push(R)}}return w}},5017:(Ve,q,p)=>{"use strict";p.d(q,{A8:()=>w,Ov:()=>d,Z9:()=>s,eX:()=>P,k:()=>O,o2:()=>I,yy:()=>h});var t=p(4033),e=p(7579),b=p(4650);class I{}function s(E){return E&&"function"==typeof E.connect&&!(E instanceof t.c)}class h{applyChanges(R,z,U,W,K){R.forEachOperation((ee,ie,ue)=>{let le,ne;if(null==ee.previousIndex){const de=U(ee,ie,ue);le=z.createEmbeddedView(de.templateRef,de.context,de.index),ne=1}else null==ue?(z.remove(ie),ne=3):(le=z.get(ie),z.move(le,ue),ne=2);K&&K({context:le?.context,operation:ne,record:ee})})}detach(){}}class P{constructor(){this.viewCacheSize=20,this._viewCache=[]}applyChanges(R,z,U,W,K){R.forEachOperation((ee,ie,ue)=>{let le,ne;null==ee.previousIndex?(le=this._insertView(()=>U(ee,ie,ue),ue,z,W(ee)),ne=le?1:0):null==ue?(this._detachAndCacheView(ie,z),ne=3):(le=this._moveView(ie,ue,z,W(ee)),ne=2),K&&K({context:le?.context,operation:ne,record:ee})})}detach(){for(const R of this._viewCache)R.destroy();this._viewCache=[]}_insertView(R,z,U,W){const K=this._insertViewFromCache(z,U);if(K)return void(K.context.$implicit=W);const ee=R();return U.createEmbeddedView(ee.templateRef,ee.context,ee.index)}_detachAndCacheView(R,z){const U=z.detach(R);this._maybeCacheView(U,z)}_moveView(R,z,U,W){const K=U.get(R);return U.move(K,z),K.context.$implicit=W,K}_maybeCacheView(R,z){if(this._viewCache.length<this.viewCacheSize)this._viewCache.push(R);else{const U=z.indexOf(R);-1===U?R.destroy():z.remove(U)}}_insertViewFromCache(R,z){const U=this._viewCache.pop();return U&&z.insert(U,R),U||null}}class d{get selected(){return this._selected||(this._selected=Array.from(this._selection.values())),this._selected}constructor(R=!1,z,U=!0,W){this._multiple=R,this._emitChanges=U,this.compareWith=W,this._selection=new Set,this._deselectedToEmit=[],this._selectedToEmit=[],this.changed=new e.x,z&&z.length&&(R?z.forEach(K=>this._markSelected(K)):this._markSelected(z[0]),this._selectedToEmit.length=0)}select(...R){this._verifyValueAssignment(R),R.forEach(U=>this._markSelected(U));const z=this._hasQueuedChanges();return this._emitChangeEvent(),z}deselect(...R){this._verifyValueAssignment(R),R.forEach(U=>this._unmarkSelected(U));const z=this._hasQueuedChanges();return this._emitChangeEvent(),z}setSelection(...R){this._verifyValueAssignment(R);const z=this.selected,U=new Set(R);R.forEach(K=>this._markSelected(K)),z.filter(K=>!U.has(K)).forEach(K=>this._unmarkSelected(K));const W=this._hasQueuedChanges();return this._emitChangeEvent(),W}toggle(R){return this.isSelected(R)?this.deselect(R):this.select(R)}clear(R=!0){this._unmarkAll();const z=this._hasQueuedChanges();return R&&this._emitChangeEvent(),z}isSelected(R){return this._selection.has(this._getConcreteValue(R))}isEmpty(){return 0===this._selection.size}hasValue(){return!this.isEmpty()}sort(R){this._multiple&&this.selected&&this._selected.sort(R)}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(R){R=this._getConcreteValue(R),this.isSelected(R)||(this._multiple||this._unmarkAll(),this.isSelected(R)||this._selection.add(R),this._emitChanges&&this._selectedToEmit.push(R))}_unmarkSelected(R){R=this._getConcreteValue(R),this.isSelected(R)&&(this._selection.delete(R),this._emitChanges&&this._deselectedToEmit.push(R))}_unmarkAll(){this.isEmpty()||this._selection.forEach(R=>this._unmarkSelected(R))}_verifyValueAssignment(R){}_hasQueuedChanges(){return!(!this._deselectedToEmit.length&&!this._selectedToEmit.length)}_getConcreteValue(R){if(this.compareWith){for(let z of this._selection)if(this.compareWith(R,z))return z;return R}return R}}let w=(()=>{class E{constructor(){this._listeners=[]}notify(z,U){for(let W of this._listeners)W(z,U)}listen(z){return this._listeners.push(z),()=>{this._listeners=this._listeners.filter(U=>z!==U)}}ngOnDestroy(){this._listeners=[]}}return E.\u0275fac=function(z){return new(z||E)},E.\u0275prov=b.Yz7({token:E,factory:E.\u0275fac,providedIn:"root"}),E})();const O=new b.OlP("_ViewRepeater")},9521:(Ve,q,p)=>{"use strict";p.d(q,{A:()=>V,JH:()=>ie,JU:()=>C,K5:()=>s,Ku:()=>E,LH:()=>K,L_:()=>O,MW:()=>wt,Mf:()=>b,SV:()=>ee,Sd:()=>U,VM:()=>R,Vb:()=>oi,Z:()=>ot,ZH:()=>e,aO:()=>L,b2:()=>zt,hY:()=>w,jx:()=>h,oh:()=>W,uR:()=>z,xE:()=>$,yY:()=>de,zL:()=>P});const e=8,b=9,s=13,C=16,h=17,P=18,w=27,O=32,E=33,R=34,z=35,U=36,W=37,K=38,ee=39,ie=40,de=46,$=48,L=57,V=65,ot=90,wt=91,zt=224;function oi(Yt,...Ni){return Ni.length?Ni.some(on=>Yt[on]):Yt.altKey||Yt.shiftKey||Yt.ctrlKey||Yt.metaKey}},2289:(Ve,q,p)=>{"use strict";p.d(q,{Yg:()=>ie,u3:()=>le,xu:()=>R});var t=p(4650),e=p(1281),b=p(7579),I=p(9841),s=p(7272),C=p(9751),h=p(5698),P=p(5684),d=p(8372),S=p(4004),w=p(8675),O=p(2722),E=p(3353);let R=(()=>{class ne{}return ne.\u0275fac=function($){return new($||ne)},ne.\u0275mod=t.oAB({type:ne}),ne.\u0275inj=t.cJS({}),ne})();const z=new Set;let U,W=(()=>{class ne{constructor($){this._platform=$,this._matchMedia=this._platform.isBrowser&&window.matchMedia?window.matchMedia.bind(window):ee}matchMedia($){return(this._platform.WEBKIT||this._platform.BLINK)&&function K(ne){if(!z.has(ne))try{U||(U=document.createElement("style"),U.setAttribute("type","text/css"),document.head.appendChild(U)),U.sheet&&(U.sheet.insertRule(`@media ${ne} {body{ }}`,0),z.add(ne))}catch(de){console.error(de)}}($),this._matchMedia($)}}return ne.\u0275fac=function($){return new($||ne)(t.LFG(E.t4))},ne.\u0275prov=t.Yz7({token:ne,factory:ne.\u0275fac,providedIn:"root"}),ne})();function ee(ne){return{matches:"all"===ne||""===ne,media:ne,addListener:()=>{},removeListener:()=>{}}}let ie=(()=>{class ne{constructor($,me){this._mediaMatcher=$,this._zone=me,this._queries=new Map,this._destroySubject=new b.x}ngOnDestroy(){this._destroySubject.next(),this._destroySubject.complete()}isMatched($){return ue((0,e.Eq)($)).some(A=>this._registerQuery(A).mql.matches)}observe($){const A=ue((0,e.Eq)($)).map(a=>this._registerQuery(a).observable);let i=(0,I.a)(A);return i=(0,s.z)(i.pipe((0,h.q)(1)),i.pipe((0,P.T)(1),(0,d.b)(0))),i.pipe((0,S.U)(a=>{const u={matches:!1,breakpoints:{}};return a.forEach(({matches:l,query:y})=>{u.matches=u.matches||l,u.breakpoints[y]=l}),u}))}_registerQuery($){if(this._queries.has($))return this._queries.get($);const me=this._mediaMatcher.matchMedia($),i={observable:new C.y(a=>{const u=l=>this._zone.run(()=>a.next(l));return me.addListener(u),()=>{me.removeListener(u)}}).pipe((0,w.O)(me),(0,S.U)(({matches:a})=>({query:$,matches:a})),(0,O.R)(this._destroySubject)),mql:me};return this._queries.set($,i),i}}return ne.\u0275fac=function($){return new($||ne)(t.LFG(W),t.LFG(t.R0b))},ne.\u0275prov=t.Yz7({token:ne,factory:ne.\u0275fac,providedIn:"root"}),ne})();function ue(ne){return ne.map(de=>de.split(",")).reduce((de,$)=>de.concat($)).map(de=>de.trim())}const le={XSmall:"(max-width: 599.98px)",Small:"(min-width: 600px) and (max-width: 959.98px)",Medium:"(min-width: 960px) and (max-width: 1279.98px)",Large:"(min-width: 1280px) and (max-width: 1919.98px)",XLarge:"(min-width: 1920px)",Handset:"(max-width: 599.98px) and (orientation: portrait), (max-width: 959.98px) and (orientation: landscape)",Tablet:"(min-width: 600px) and (max-width: 839.98px) and (orientation: portrait), (min-width: 960px) and (max-width: 1279.98px) and (orientation: landscape)",Web:"(min-width: 840px) and (orientation: portrait), (min-width: 1280px) and (orientation: landscape)",HandsetPortrait:"(max-width: 599.98px) and (orientation: portrait)",TabletPortrait:"(min-width: 600px) and (max-width: 839.98px) and (orientation: portrait)",WebPortrait:"(min-width: 840px) and (orientation: portrait)",HandsetLandscape:"(max-width: 959.98px) and (orientation: landscape)",TabletLandscape:"(min-width: 960px) and (max-width: 1279.98px) and (orientation: landscape)",WebLandscape:"(min-width: 1280px) and (orientation: landscape)"}},9643:(Ve,q,p)=>{"use strict";p.d(q,{Q8:()=>d,wD:()=>P});var t=p(1281),e=p(4650),b=p(9751),I=p(7579),s=p(8372);let C=(()=>{class S{create(O){return typeof MutationObserver>"u"?null:new MutationObserver(O)}}return S.\u0275fac=function(O){return new(O||S)},S.\u0275prov=e.Yz7({token:S,factory:S.\u0275fac,providedIn:"root"}),S})(),h=(()=>{class S{constructor(O){this._mutationObserverFactory=O,this._observedElements=new Map}ngOnDestroy(){this._observedElements.forEach((O,E)=>this._cleanupObserver(E))}observe(O){const E=(0,t.fI)(O);return new b.y(R=>{const U=this._observeElement(E).subscribe(R);return()=>{U.unsubscribe(),this._unobserveElement(E)}})}_observeElement(O){if(this._observedElements.has(O))this._observedElements.get(O).count++;else{const E=new I.x,R=this._mutationObserverFactory.create(z=>E.next(z));R&&R.observe(O,{characterData:!0,childList:!0,subtree:!0}),this._observedElements.set(O,{observer:R,stream:E,count:1})}return this._observedElements.get(O).stream}_unobserveElement(O){this._observedElements.has(O)&&(this._observedElements.get(O).count--,this._observedElements.get(O).count||this._cleanupObserver(O))}_cleanupObserver(O){if(this._observedElements.has(O)){const{observer:E,stream:R}=this._observedElements.get(O);E&&E.disconnect(),R.complete(),this._observedElements.delete(O)}}}return S.\u0275fac=function(O){return new(O||S)(e.LFG(C))},S.\u0275prov=e.Yz7({token:S,factory:S.\u0275fac,providedIn:"root"}),S})(),P=(()=>{class S{get disabled(){return this._disabled}set disabled(O){this._disabled=(0,t.Ig)(O),this._disabled?this._unsubscribe():this._subscribe()}get debounce(){return this._debounce}set debounce(O){this._debounce=(0,t.su)(O),this._subscribe()}constructor(O,E,R){this._contentObserver=O,this._elementRef=E,this._ngZone=R,this.event=new e.vpe,this._disabled=!1,this._currentSubscription=null}ngAfterContentInit(){!this._currentSubscription&&!this.disabled&&this._subscribe()}ngOnDestroy(){this._unsubscribe()}_subscribe(){this._unsubscribe();const O=this._contentObserver.observe(this._elementRef);this._ngZone.runOutsideAngular(()=>{this._currentSubscription=(this.debounce?O.pipe((0,s.b)(this.debounce)):O).subscribe(this.event)})}_unsubscribe(){this._currentSubscription?.unsubscribe()}}return S.\u0275fac=function(O){return new(O||S)(e.Y36(h),e.Y36(e.SBq),e.Y36(e.R0b))},S.\u0275dir=e.lG2({type:S,selectors:[["","cdkObserveContent",""]],inputs:{disabled:["cdkObserveContentDisabled","disabled"],debounce:"debounce"},outputs:{event:"cdkObserveContent"},exportAs:["cdkObserveContent"]}),S})(),d=(()=>{class S{}return S.\u0275fac=function(O){return new(O||S)},S.\u0275mod=e.oAB({type:S}),S.\u0275inj=e.cJS({providers:[C]}),S})()},8184:(Ve,q,p)=>{"use strict";p.d(q,{Iu:()=>L,U8:()=>te,X_:()=>de,Xj:()=>T,_G:()=>_,aV:()=>ce,pI:()=>Ae,xu:()=>je});var t=p(531),e=p(6895),b=p(4650),I=p(1281),s=p(3353),C=p(445),h=p(4080),P=p(7579),d=p(727),S=p(6451),w=p(5698),O=p(2722),E=p(2529),R=p(9521);const z=(0,s.Mq)();class U{constructor(ae,ge){this._viewportRuler=ae,this._previousHTMLStyles={top:"",left:""},this._isEnabled=!1,this._document=ge}attach(){}enable(){if(this._canBeEnabled()){const ae=this._document.documentElement;this._previousScrollPosition=this._viewportRuler.getViewportScrollPosition(),this._previousHTMLStyles.left=ae.style.left||"",this._previousHTMLStyles.top=ae.style.top||"",ae.style.left=(0,I.HM)(-this._previousScrollPosition.left),ae.style.top=(0,I.HM)(-this._previousScrollPosition.top),ae.classList.add("cdk-global-scrollblock"),this._isEnabled=!0}}disable(){if(this._isEnabled){const ae=this._document.documentElement,ft=ae.style,Je=this._document.body.style,dt=ft.scrollBehavior||"",Et=Je.scrollBehavior||"";this._isEnabled=!1,ft.left=this._previousHTMLStyles.left,ft.top=this._previousHTMLStyles.top,ae.classList.remove("cdk-global-scrollblock"),z&&(ft.scrollBehavior=Je.scrollBehavior="auto"),window.scroll(this._previousScrollPosition.left,this._previousScrollPosition.top),z&&(ft.scrollBehavior=dt,Je.scrollBehavior=Et)}}_canBeEnabled(){if(this._document.documentElement.classList.contains("cdk-global-scrollblock")||this._isEnabled)return!1;const ge=this._document.body,ft=this._viewportRuler.getViewportSize();return ge.scrollHeight>ft.height||ge.scrollWidth>ft.width}}class K{constructor(ae,ge,ft,Je){this._scrollDispatcher=ae,this._ngZone=ge,this._viewportRuler=ft,this._config=Je,this._scrollSubscription=null,this._detach=()=>{this.disable(),this._overlayRef.hasAttached()&&this._ngZone.run(()=>this._overlayRef.detach())}}attach(ae){this._overlayRef=ae}enable(){if(this._scrollSubscription)return;const ae=this._scrollDispatcher.scrolled(0);this._config&&this._config.threshold&&this._config.threshold>1?(this._initialScrollPosition=this._viewportRuler.getViewportScrollPosition().top,this._scrollSubscription=ae.subscribe(()=>{const ge=this._viewportRuler.getViewportScrollPosition().top;Math.abs(ge-this._initialScrollPosition)>this._config.threshold?this._detach():this._overlayRef.updatePosition()})):this._scrollSubscription=ae.subscribe(this._detach)}disable(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}detach(){this.disable(),this._overlayRef=null}}class ee{enable(){}disable(){}attach(){}}function ie(Be,ae){return ae.some(ge=>Be.bottom<ge.top||Be.top>ge.bottom||Be.right<ge.left||Be.left>ge.right)}function ue(Be,ae){return ae.some(ge=>Be.top<ge.top||Be.bottom>ge.bottom||Be.left<ge.left||Be.right>ge.right)}class le{constructor(ae,ge,ft,Je){this._scrollDispatcher=ae,this._viewportRuler=ge,this._ngZone=ft,this._config=Je,this._scrollSubscription=null}attach(ae){this._overlayRef=ae}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 ge=this._overlayRef.overlayElement.getBoundingClientRect(),{width:ft,height:Je}=this._viewportRuler.getViewportSize();ie(ge,[{width:ft,height:Je,bottom:Je,right:ft,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 ne=(()=>{class Be{constructor(ge,ft,Je,dt){this._scrollDispatcher=ge,this._viewportRuler=ft,this._ngZone=Je,this.noop=()=>new ee,this.close=Et=>new K(this._scrollDispatcher,this._ngZone,this._viewportRuler,Et),this.block=()=>new U(this._viewportRuler,this._document),this.reposition=Et=>new le(this._scrollDispatcher,this._viewportRuler,this._ngZone,Et),this._document=dt}}return Be.\u0275fac=function(ge){return new(ge||Be)(b.LFG(t.mF),b.LFG(t.rL),b.LFG(b.R0b),b.LFG(e.K0))},Be.\u0275prov=b.Yz7({token:Be,factory:Be.\u0275fac,providedIn:"root"}),Be})();class de{constructor(ae){if(this.scrollStrategy=new ee,this.panelClass="",this.hasBackdrop=!1,this.backdropClass="cdk-overlay-dark-backdrop",this.disposeOnNavigation=!1,ae){const ge=Object.keys(ae);for(const ft of ge)void 0!==ae[ft]&&(this[ft]=ae[ft])}}}class A{constructor(ae,ge){this.connectionPair=ae,this.scrollableViewProperties=ge}}let u=(()=>{class Be{constructor(ge){this._attachedOverlays=[],this._document=ge}ngOnDestroy(){this.detach()}add(ge){this.remove(ge),this._attachedOverlays.push(ge)}remove(ge){const ft=this._attachedOverlays.indexOf(ge);ft>-1&&this._attachedOverlays.splice(ft,1),0===this._attachedOverlays.length&&this.detach()}}return Be.\u0275fac=function(ge){return new(ge||Be)(b.LFG(e.K0))},Be.\u0275prov=b.Yz7({token:Be,factory:Be.\u0275fac,providedIn:"root"}),Be})(),l=(()=>{class Be extends u{constructor(ge,ft){super(ge),this._ngZone=ft,this._keydownListener=Je=>{const dt=this._attachedOverlays;for(let Et=dt.length-1;Et>-1;Et--)if(dt[Et]._keydownEvents.observers.length>0){const pt=dt[Et]._keydownEvents;this._ngZone?this._ngZone.run(()=>pt.next(Je)):pt.next(Je);break}}}add(ge){super.add(ge),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 Be.\u0275fac=function(ge){return new(ge||Be)(b.LFG(e.K0),b.LFG(b.R0b,8))},Be.\u0275prov=b.Yz7({token:Be,factory:Be.\u0275fac,providedIn:"root"}),Be})(),y=(()=>{class Be extends u{constructor(ge,ft,Je){super(ge),this._platform=ft,this._ngZone=Je,this._cursorStyleIsSet=!1,this._pointerDownListener=dt=>{this._pointerDownEventTarget=(0,s.sA)(dt)},this._clickListener=dt=>{const Et=(0,s.sA)(dt),pt="click"===dt.type&&this._pointerDownEventTarget?this._pointerDownEventTarget:Et;this._pointerDownEventTarget=null;const ot=this._attachedOverlays.slice();for(let wt=ot.length-1;wt>-1;wt--){const ke=ot[wt];if(ke._outsidePointerEvents.observers.length<1||!ke.hasAttached())continue;if(ke.overlayElement.contains(Et)||ke.overlayElement.contains(pt))break;const Ke=ke._outsidePointerEvents;this._ngZone?this._ngZone.run(()=>Ke.next(dt)):Ke.next(dt)}}}add(ge){if(super.add(ge),!this._isAttached){const ft=this._document.body;this._ngZone?this._ngZone.runOutsideAngular(()=>this._addEventListeners(ft)):this._addEventListeners(ft),this._platform.IOS&&!this._cursorStyleIsSet&&(this._cursorOriginalValue=ft.style.cursor,ft.style.cursor="pointer",this._cursorStyleIsSet=!0),this._isAttached=!0}}detach(){if(this._isAttached){const ge=this._document.body;ge.removeEventListener("pointerdown",this._pointerDownListener,!0),ge.removeEventListener("click",this._clickListener,!0),ge.removeEventListener("auxclick",this._clickListener,!0),ge.removeEventListener("contextmenu",this._clickListener,!0),this._platform.IOS&&this._cursorStyleIsSet&&(ge.style.cursor=this._cursorOriginalValue,this._cursorStyleIsSet=!1),this._isAttached=!1}}_addEventListeners(ge){ge.addEventListener("pointerdown",this._pointerDownListener,!0),ge.addEventListener("click",this._clickListener,!0),ge.addEventListener("auxclick",this._clickListener,!0),ge.addEventListener("contextmenu",this._clickListener,!0)}}return Be.\u0275fac=function(ge){return new(ge||Be)(b.LFG(e.K0),b.LFG(s.t4),b.LFG(b.R0b,8))},Be.\u0275prov=b.Yz7({token:Be,factory:Be.\u0275fac,providedIn:"root"}),Be})(),T=(()=>{class Be{constructor(ge,ft){this._platform=ft,this._document=ge}ngOnDestroy(){this._containerElement?.remove()}getContainerElement(){return this._containerElement||this._createContainer(),this._containerElement}_createContainer(){const ge="cdk-overlay-container";if(this._platform.isBrowser||(0,s.Oy)()){const Je=this._document.querySelectorAll(`.${ge}[platform="server"], .${ge}[platform="test"]`);for(let dt=0;dt<Je.length;dt++)Je[dt].remove()}const ft=this._document.createElement("div");ft.classList.add(ge),(0,s.Oy)()?ft.setAttribute("platform","test"):this._platform.isBrowser||ft.setAttribute("platform","server"),this._document.body.appendChild(ft),this._containerElement=ft}}return Be.\u0275fac=function(ge){return new(ge||Be)(b.LFG(e.K0),b.LFG(s.t4))},Be.\u0275prov=b.Yz7({token:Be,factory:Be.\u0275fac,providedIn:"root"}),Be})();class L{constructor(ae,ge,ft,Je,dt,Et,pt,ot,wt,ke=!1){this._portalOutlet=ae,this._host=ge,this._pane=ft,this._config=Je,this._ngZone=dt,this._keyboardDispatcher=Et,this._document=pt,this._location=ot,this._outsideClickDispatcher=wt,this._animationsDisabled=ke,this._backdropElement=null,this._backdropClick=new P.x,this._attachments=new P.x,this._detachments=new P.x,this._locationChanges=d.w0.EMPTY,this._backdropClickHandler=Ke=>this._backdropClick.next(Ke),this._backdropTransitionendHandler=Ke=>{this._disposeBackdrop(Ke.target)},this._keydownEvents=new P.x,this._outsidePointerEvents=new P.x,Je.scrollStrategy&&(this._scrollStrategy=Je.scrollStrategy,this._scrollStrategy.attach(this)),this._positionStrategy=Je.positionStrategy}get overlayElement(){return this._pane}get backdropElement(){return this._backdropElement}get hostElement(){return this._host}attach(ae){!this._host.parentElement&&this._previousHostParent&&this._previousHostParent.appendChild(this._host);const ge=this._portalOutlet.attach(ae);return this._positionStrategy&&this._positionStrategy.attach(this),this._updateStackingOrder(),this._updateElementSize(),this._updateElementDirection(),this._scrollStrategy&&this._scrollStrategy.enable(),this._ngZone.onStable.pipe((0,w.q)(1)).subscribe(()=>{this.hasAttached()&&this.updatePosition()}),this._togglePointerEvents(!0),this._config.hasBackdrop&&this._attachBackdrop(),this._config.panelClass&&this._toggleClasses(this._pane,this._config.panelClass,!0),this._attachments.next(),this._keyboardDispatcher.add(this),this._config.disposeOnNavigation&&(this._locationChanges=this._location.subscribe(()=>this.dispose())),this._outsideClickDispatcher.add(this),"function"==typeof ge?.onDestroy&&ge.onDestroy(()=>{this.hasAttached()&&this._ngZone.runOutsideAngular(()=>Promise.resolve().then(()=>this.detach()))}),ge}detach(){if(!this.hasAttached())return;this.detachBackdrop(),this._togglePointerEvents(!1),this._positionStrategy&&this._positionStrategy.detach&&this._positionStrategy.detach(),this._scrollStrategy&&this._scrollStrategy.disable();const ae=this._portalOutlet.detach();return this._detachments.next(),this._keyboardDispatcher.remove(this),this._detachContentWhenStable(),this._locationChanges.unsubscribe(),this._outsideClickDispatcher.remove(this),ae}dispose(){const ae=this.hasAttached();this._positionStrategy&&this._positionStrategy.dispose(),this._disposeScrollStrategy(),this._disposeBackdrop(this._backdropElement),this._locationChanges.unsubscribe(),this._keyboardDispatcher.remove(this),this._portalOutlet.dispose(),this._attachments.complete(),this._backdropClick.complete(),this._keydownEvents.complete(),this._outsidePointerEvents.complete(),this._outsideClickDispatcher.remove(this),this._host?.remove(),this._previousHostParent=this._pane=this._host=null,ae&&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(ae){ae!==this._positionStrategy&&(this._positionStrategy&&this._positionStrategy.dispose(),this._positionStrategy=ae,this.hasAttached()&&(ae.attach(this),this.updatePosition()))}updateSize(ae){this._config={...this._config,...ae},this._updateElementSize()}setDirection(ae){this._config={...this._config,direction:ae},this._updateElementDirection()}addPanelClass(ae){this._pane&&this._toggleClasses(this._pane,ae,!0)}removePanelClass(ae){this._pane&&this._toggleClasses(this._pane,ae,!1)}getDirection(){const ae=this._config.direction;return ae?"string"==typeof ae?ae:ae.value:"ltr"}updateScrollStrategy(ae){ae!==this._scrollStrategy&&(this._disposeScrollStrategy(),this._scrollStrategy=ae,this.hasAttached()&&(ae.attach(this),ae.enable()))}_updateElementDirection(){this._host.setAttribute("dir",this.getDirection())}_updateElementSize(){if(!this._pane)return;const ae=this._pane.style;ae.width=(0,I.HM)(this._config.width),ae.height=(0,I.HM)(this._config.height),ae.minWidth=(0,I.HM)(this._config.minWidth),ae.minHeight=(0,I.HM)(this._config.minHeight),ae.maxWidth=(0,I.HM)(this._config.maxWidth),ae.maxHeight=(0,I.HM)(this._config.maxHeight)}_togglePointerEvents(ae){this._pane.style.pointerEvents=ae?"":"none"}_attachBackdrop(){const ae="cdk-overlay-backdrop-showing";this._backdropElement=this._document.createElement("div"),this._backdropElement.classList.add("cdk-overlay-backdrop"),this._animationsDisabled&&this._backdropElement.classList.add("cdk-overlay-backdrop-noop-animation"),this._config.backdropClass&&this._toggleClasses(this._backdropElement,this._config.backdropClass,!0),this._host.parentElement.insertBefore(this._backdropElement,this._host),this._backdropElement.addEventListener("click",this._backdropClickHandler),!this._animationsDisabled&&typeof requestAnimationFrame<"u"?this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>{this._backdropElement&&this._backdropElement.classList.add(ae)})}):this._backdropElement.classList.add(ae)}_updateStackingOrder(){this._host.nextSibling&&this._host.parentNode.appendChild(this._host)}detachBackdrop(){const ae=this._backdropElement;if(ae){if(this._animationsDisabled)return void this._disposeBackdrop(ae);ae.classList.remove("cdk-overlay-backdrop-showing"),this._ngZone.runOutsideAngular(()=>{ae.addEventListener("transitionend",this._backdropTransitionendHandler)}),ae.style.pointerEvents="none",this._backdropTimeout=this._ngZone.runOutsideAngular(()=>setTimeout(()=>{this._disposeBackdrop(ae)},500))}}_toggleClasses(ae,ge,ft){const Je=(0,I.Eq)(ge||[]).filter(dt=>!!dt);Je.length&&(ft?ae.classList.add(...Je):ae.classList.remove(...Je))}_detachContentWhenStable(){this._ngZone.runOutsideAngular(()=>{const ae=this._ngZone.onStable.pipe((0,O.R)((0,S.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()),ae.unsubscribe())})})}_disposeScrollStrategy(){const ae=this._scrollStrategy;ae&&(ae.disable(),ae.detach&&ae.detach())}_disposeBackdrop(ae){ae&&(ae.removeEventListener("click",this._backdropClickHandler),ae.removeEventListener("transitionend",this._backdropTransitionendHandler),ae.remove(),this._backdropElement===ae&&(this._backdropElement=null)),this._backdropTimeout&&(clearTimeout(this._backdropTimeout),this._backdropTimeout=void 0)}}const m="cdk-overlay-connected-position-bounding-box",n=/([A-Za-z%]+)$/;class _{get positions(){return this._preferredPositions}constructor(ae,ge,ft,Je,dt){this._viewportRuler=ge,this._document=ft,this._platform=Je,this._overlayContainer=dt,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 P.x,this._resizeSubscription=d.w0.EMPTY,this._offsetX=0,this._offsetY=0,this._appliedPanelClasses=[],this.positionChanges=this._positionChanges,this.setOrigin(ae)}attach(ae){this._validatePositions(),ae.hostElement.classList.add(m),this._overlayRef=ae,this._boundingBox=ae.hostElement,this._pane=ae.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 ae=this._originRect,ge=this._overlayRect,ft=this._viewportRect,Je=this._containerRect,dt=[];let Et;for(let pt of this._preferredPositions){let ot=this._getOriginPoint(ae,Je,pt),wt=this._getOverlayPoint(ot,ge,pt),ke=this._getOverlayFit(wt,ge,ft,pt);if(ke.isCompletelyWithinViewport)return this._isPushed=!1,void this._applyPosition(pt,ot);this._canFitWithFlexibleDimensions(ke,wt,ft)?dt.push({position:pt,origin:ot,overlayRect:ge,boundingBoxRect:this._calculateBoundingBoxRect(ot,pt)}):(!Et||Et.overlayFit.visibleArea<ke.visibleArea)&&(Et={overlayFit:ke,overlayPoint:wt,originPoint:ot,position:pt,overlayRect:ge})}if(dt.length){let pt=null,ot=-1;for(const wt of dt){const ke=wt.boundingBoxRect.width*wt.boundingBoxRect.height*(wt.position.weight||1);ke>ot&&(ot=ke,pt=wt)}return this._isPushed=!1,void this._applyPosition(pt.position,pt.origin)}if(this._canPush)return this._isPushed=!0,void this._applyPosition(Et.position,Et.originPoint);this._applyPosition(Et.position,Et.originPoint)}detach(){this._clearPanelClasses(),this._lastPosition=null,this._previousPushAmount=null,this._resizeSubscription.unsubscribe()}dispose(){this._isDisposed||(this._boundingBox&&B(this._boundingBox.style,{top:"",left:"",right:"",bottom:"",height:"",width:"",alignItems:"",justifyContent:""}),this._pane&&this._resetOverlayElementStyles(),this._overlayRef&&this._overlayRef.hostElement.classList.remove(m),this.detach(),this._positionChanges.complete(),this._overlayRef=this._boundingBox=null,this._isDisposed=!0)}reapplyLastPosition(){if(this._isDisposed||!this._platform.isBrowser)return;const ae=this._lastPosition;if(ae){this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._viewportRect=this._getNarrowedViewportRect(),this._containerRect=this._overlayContainer.getContainerElement().getBoundingClientRect();const ge=this._getOriginPoint(this._originRect,this._containerRect,ae);this._applyPosition(ae,ge)}else this.apply()}withScrollableContainers(ae){return this._scrollables=ae,this}withPositions(ae){return this._preferredPositions=ae,-1===ae.indexOf(this._lastPosition)&&(this._lastPosition=null),this._validatePositions(),this}withViewportMargin(ae){return this._viewportMargin=ae,this}withFlexibleDimensions(ae=!0){return this._hasFlexibleDimensions=ae,this}withGrowAfterOpen(ae=!0){return this._growAfterOpen=ae,this}withPush(ae=!0){return this._canPush=ae,this}withLockedPosition(ae=!0){return this._positionLocked=ae,this}setOrigin(ae){return this._origin=ae,this}withDefaultOffsetX(ae){return this._offsetX=ae,this}withDefaultOffsetY(ae){return this._offsetY=ae,this}withTransformOriginOn(ae){return this._transformOriginSelector=ae,this}_getOriginPoint(ae,ge,ft){let Je,dt;if("center"==ft.originX)Je=ae.left+ae.width/2;else{const Et=this._isRtl()?ae.right:ae.left,pt=this._isRtl()?ae.left:ae.right;Je="start"==ft.originX?Et:pt}return ge.left<0&&(Je-=ge.left),dt="center"==ft.originY?ae.top+ae.height/2:"top"==ft.originY?ae.top:ae.bottom,ge.top<0&&(dt-=ge.top),{x:Je,y:dt}}_getOverlayPoint(ae,ge,ft){let Je,dt;return Je="center"==ft.overlayX?-ge.width/2:"start"===ft.overlayX?this._isRtl()?-ge.width:0:this._isRtl()?0:-ge.width,dt="center"==ft.overlayY?-ge.height/2:"top"==ft.overlayY?0:-ge.height,{x:ae.x+Je,y:ae.y+dt}}_getOverlayFit(ae,ge,ft,Je){const dt=X(ge);let{x:Et,y:pt}=ae,ot=this._getOffset(Je,"x"),wt=this._getOffset(Je,"y");ot&&(Et+=ot),wt&&(pt+=wt);let xt=0-pt,Y=pt+dt.height-ft.height,Re=this._subtractOverflows(dt.width,0-Et,Et+dt.width-ft.width),Tt=this._subtractOverflows(dt.height,xt,Y),Qe=Re*Tt;return{visibleArea:Qe,isCompletelyWithinViewport:dt.width*dt.height===Qe,fitsInViewportVertically:Tt===dt.height,fitsInViewportHorizontally:Re==dt.width}}_canFitWithFlexibleDimensions(ae,ge,ft){if(this._hasFlexibleDimensions){const Je=ft.bottom-ge.y,dt=ft.right-ge.x,Et=V(this._overlayRef.getConfig().minHeight),pt=V(this._overlayRef.getConfig().minWidth);return(ae.fitsInViewportVertically||null!=Et&&Et<=Je)&&(ae.fitsInViewportHorizontally||null!=pt&&pt<=dt)}return!1}_pushOverlayOnScreen(ae,ge,ft){if(this._previousPushAmount&&this._positionLocked)return{x:ae.x+this._previousPushAmount.x,y:ae.y+this._previousPushAmount.y};const Je=X(ge),dt=this._viewportRect,Et=Math.max(ae.x+Je.width-dt.width,0),pt=Math.max(ae.y+Je.height-dt.height,0),ot=Math.max(dt.top-ft.top-ae.y,0),wt=Math.max(dt.left-ft.left-ae.x,0);let ke=0,Ke=0;return ke=Je.width<=dt.width?wt||-Et:ae.x<this._viewportMargin?dt.left-ft.left-ae.x:0,Ke=Je.height<=dt.height?ot||-pt:ae.y<this._viewportMargin?dt.top-ft.top-ae.y:0,this._previousPushAmount={x:ke,y:Ke},{x:ae.x+ke,y:ae.y+Ke}}_applyPosition(ae,ge){if(this._setTransformOrigin(ae),this._setOverlayElementStyles(ge,ae),this._setBoundingBoxStyles(ge,ae),ae.panelClass&&this._addPanelClasses(ae.panelClass),this._lastPosition=ae,this._positionChanges.observers.length){const ft=this._getScrollVisibility(),Je=new A(ae,ft);this._positionChanges.next(Je)}this._isInitialRender=!1}_setTransformOrigin(ae){if(!this._transformOriginSelector)return;const ge=this._boundingBox.querySelectorAll(this._transformOriginSelector);let ft,Je=ae.overlayY;ft="center"===ae.overlayX?"center":this._isRtl()?"start"===ae.overlayX?"right":"left":"start"===ae.overlayX?"left":"right";for(let dt=0;dt<ge.length;dt++)ge[dt].style.transformOrigin=`${ft} ${Je}`}_calculateBoundingBoxRect(ae,ge){const ft=this._viewportRect,Je=this._isRtl();let dt,Et,pt,ke,Ke,xt;if("top"===ge.overlayY)Et=ae.y,dt=ft.height-Et+this._viewportMargin;else if("bottom"===ge.overlayY)pt=ft.height-ae.y+2*this._viewportMargin,dt=ft.height-pt+this._viewportMargin;else{const Y=Math.min(ft.bottom-ae.y+ft.top,ae.y),Re=this._lastBoundingBoxSize.height;dt=2*Y,Et=ae.y-Y,dt>Re&&!this._isInitialRender&&!this._growAfterOpen&&(Et=ae.y-Re/2)}if("end"===ge.overlayX&&!Je||"start"===ge.overlayX&&Je)xt=ft.width-ae.x+this._viewportMargin,ke=ae.x-this._viewportMargin;else if("start"===ge.overlayX&&!Je||"end"===ge.overlayX&&Je)Ke=ae.x,ke=ft.right-ae.x;else{const Y=Math.min(ft.right-ae.x+ft.left,ae.x),Re=this._lastBoundingBoxSize.width;ke=2*Y,Ke=ae.x-Y,ke>Re&&!this._isInitialRender&&!this._growAfterOpen&&(Ke=ae.x-Re/2)}return{top:Et,left:Ke,bottom:pt,right:xt,width:ke,height:dt}}_setBoundingBoxStyles(ae,ge){const ft=this._calculateBoundingBoxRect(ae,ge);!this._isInitialRender&&!this._growAfterOpen&&(ft.height=Math.min(ft.height,this._lastBoundingBoxSize.height),ft.width=Math.min(ft.width,this._lastBoundingBoxSize.width));const Je={};if(this._hasExactPosition())Je.top=Je.left="0",Je.bottom=Je.right=Je.maxHeight=Je.maxWidth="",Je.width=Je.height="100%";else{const dt=this._overlayRef.getConfig().maxHeight,Et=this._overlayRef.getConfig().maxWidth;Je.height=(0,I.HM)(ft.height),Je.top=(0,I.HM)(ft.top),Je.bottom=(0,I.HM)(ft.bottom),Je.width=(0,I.HM)(ft.width),Je.left=(0,I.HM)(ft.left),Je.right=(0,I.HM)(ft.right),Je.alignItems="center"===ge.overlayX?"center":"end"===ge.overlayX?"flex-end":"flex-start",Je.justifyContent="center"===ge.overlayY?"center":"bottom"===ge.overlayY?"flex-end":"flex-start",dt&&(Je.maxHeight=(0,I.HM)(dt)),Et&&(Je.maxWidth=(0,I.HM)(Et))}this._lastBoundingBoxSize=ft,B(this._boundingBox.style,Je)}_resetBoundingBoxStyles(){B(this._boundingBox.style,{top:"0",left:"0",right:"0",bottom:"0",height:"",width:"",alignItems:"",justifyContent:""})}_resetOverlayElementStyles(){B(this._pane.style,{top:"",left:"",bottom:"",right:"",position:"",transform:""})}_setOverlayElementStyles(ae,ge){const ft={},Je=this._hasExactPosition(),dt=this._hasFlexibleDimensions,Et=this._overlayRef.getConfig();if(Je){const ke=this._viewportRuler.getViewportScrollPosition();B(ft,this._getExactOverlayY(ge,ae,ke)),B(ft,this._getExactOverlayX(ge,ae,ke))}else ft.position="static";let pt="",ot=this._getOffset(ge,"x"),wt=this._getOffset(ge,"y");ot&&(pt+=`translateX(${ot}px) `),wt&&(pt+=`translateY(${wt}px)`),ft.transform=pt.trim(),Et.maxHeight&&(Je?ft.maxHeight=(0,I.HM)(Et.maxHeight):dt&&(ft.maxHeight="")),Et.maxWidth&&(Je?ft.maxWidth=(0,I.HM)(Et.maxWidth):dt&&(ft.maxWidth="")),B(this._pane.style,ft)}_getExactOverlayY(ae,ge,ft){let Je={top:"",bottom:""},dt=this._getOverlayPoint(ge,this._overlayRect,ae);return this._isPushed&&(dt=this._pushOverlayOnScreen(dt,this._overlayRect,ft)),"bottom"===ae.overlayY?Je.bottom=this._document.documentElement.clientHeight-(dt.y+this._overlayRect.height)+"px":Je.top=(0,I.HM)(dt.y),Je}_getExactOverlayX(ae,ge,ft){let Et,Je={left:"",right:""},dt=this._getOverlayPoint(ge,this._overlayRect,ae);return this._isPushed&&(dt=this._pushOverlayOnScreen(dt,this._overlayRect,ft)),Et=this._isRtl()?"end"===ae.overlayX?"left":"right":"end"===ae.overlayX?"right":"left","right"===Et?Je.right=this._document.documentElement.clientWidth-(dt.x+this._overlayRect.width)+"px":Je.left=(0,I.HM)(dt.x),Je}_getScrollVisibility(){const ae=this._getOriginRect(),ge=this._pane.getBoundingClientRect(),ft=this._scrollables.map(Je=>Je.getElementRef().nativeElement.getBoundingClientRect());return{isOriginClipped:ue(ae,ft),isOriginOutsideView:ie(ae,ft),isOverlayClipped:ue(ge,ft),isOverlayOutsideView:ie(ge,ft)}}_subtractOverflows(ae,...ge){return ge.reduce((ft,Je)=>ft-Math.max(Je,0),ae)}_getNarrowedViewportRect(){const ae=this._document.documentElement.clientWidth,ge=this._document.documentElement.clientHeight,ft=this._viewportRuler.getViewportScrollPosition();return{top:ft.top+this._viewportMargin,left:ft.left+this._viewportMargin,right:ft.left+ae-this._viewportMargin,bottom:ft.top+ge-this._viewportMargin,width:ae-2*this._viewportMargin,height:ge-2*this._viewportMargin}}_isRtl(){return"rtl"===this._overlayRef.getDirection()}_hasExactPosition(){return!this._hasFlexibleDimensions||this._isPushed}_getOffset(ae,ge){return"x"===ge?null==ae.offsetX?this._offsetX:ae.offsetX:null==ae.offsetY?this._offsetY:ae.offsetY}_validatePositions(){}_addPanelClasses(ae){this._pane&&(0,I.Eq)(ae).forEach(ge=>{""!==ge&&-1===this._appliedPanelClasses.indexOf(ge)&&(this._appliedPanelClasses.push(ge),this._pane.classList.add(ge))})}_clearPanelClasses(){this._pane&&(this._appliedPanelClasses.forEach(ae=>{this._pane.classList.remove(ae)}),this._appliedPanelClasses=[])}_getOriginRect(){const ae=this._origin;if(ae instanceof b.SBq)return ae.nativeElement.getBoundingClientRect();if(ae instanceof Element)return ae.getBoundingClientRect();const ge=ae.width||0,ft=ae.height||0;return{top:ae.y,bottom:ae.y+ft,left:ae.x,right:ae.x+ge,height:ft,width:ge}}}function B(Be,ae){for(let ge in ae)ae.hasOwnProperty(ge)&&(Be[ge]=ae[ge]);return Be}function V(Be){if("number"!=typeof Be&&null!=Be){const[ae,ge]=Be.split(n);return ge&&"px"!==ge?null:parseFloat(ae)}return Be||null}function X(Be){return{top:Math.floor(Be.top),right:Math.floor(Be.right),bottom:Math.floor(Be.bottom),left:Math.floor(Be.left),width:Math.floor(Be.width),height:Math.floor(Be.height)}}const We="cdk-global-overlay-wrapper";class Fe{constructor(){this._cssPosition="static",this._topOffset="",this._bottomOffset="",this._alignItems="",this._xPosition="",this._xOffset="",this._width="",this._height="",this._isDisposed=!1}attach(ae){const ge=ae.getConfig();this._overlayRef=ae,this._width&&!ge.width&&ae.updateSize({width:this._width}),this._height&&!ge.height&&ae.updateSize({height:this._height}),ae.hostElement.classList.add(We),this._isDisposed=!1}top(ae=""){return this._bottomOffset="",this._topOffset=ae,this._alignItems="flex-start",this}left(ae=""){return this._xOffset=ae,this._xPosition="left",this}bottom(ae=""){return this._topOffset="",this._bottomOffset=ae,this._alignItems="flex-end",this}right(ae=""){return this._xOffset=ae,this._xPosition="right",this}start(ae=""){return this._xOffset=ae,this._xPosition="start",this}end(ae=""){return this._xOffset=ae,this._xPosition="end",this}width(ae=""){return this._overlayRef?this._overlayRef.updateSize({width:ae}):this._width=ae,this}height(ae=""){return this._overlayRef?this._overlayRef.updateSize({height:ae}):this._height=ae,this}centerHorizontally(ae=""){return this.left(ae),this._xPosition="center",this}centerVertically(ae=""){return this.top(ae),this._alignItems="center",this}apply(){if(!this._overlayRef||!this._overlayRef.hasAttached())return;const ae=this._overlayRef.overlayElement.style,ge=this._overlayRef.hostElement.style,ft=this._overlayRef.getConfig(),{width:Je,height:dt,maxWidth:Et,maxHeight:pt}=ft,ot=!("100%"!==Je&&"100vw"!==Je||Et&&"100%"!==Et&&"100vw"!==Et),wt=!("100%"!==dt&&"100vh"!==dt||pt&&"100%"!==pt&&"100vh"!==pt),ke=this._xPosition,Ke=this._xOffset,xt="rtl"===this._overlayRef.getConfig().direction;let Y="",Re="",Tt="";ot?Tt="flex-start":"center"===ke?(Tt="center",xt?Re=Ke:Y=Ke):xt?"left"===ke||"end"===ke?(Tt="flex-end",Y=Ke):("right"===ke||"start"===ke)&&(Tt="flex-start",Re=Ke):"left"===ke||"start"===ke?(Tt="flex-start",Y=Ke):("right"===ke||"end"===ke)&&(Tt="flex-end",Re=Ke),ae.position=this._cssPosition,ae.marginLeft=ot?"0":Y,ae.marginTop=wt?"0":this._topOffset,ae.marginBottom=this._bottomOffset,ae.marginRight=ot?"0":Re,ge.justifyContent=Tt,ge.alignItems=wt?"flex-start":this._alignItems}dispose(){if(this._isDisposed||!this._overlayRef)return;const ae=this._overlayRef.overlayElement.style,ge=this._overlayRef.hostElement,ft=ge.style;ge.classList.remove(We),ft.justifyContent=ft.alignItems=ae.marginTop=ae.marginBottom=ae.marginLeft=ae.marginRight=ae.position="",this._overlayRef=null,this._isDisposed=!0}}let De=(()=>{class Be{constructor(ge,ft,Je,dt){this._viewportRuler=ge,this._document=ft,this._platform=Je,this._overlayContainer=dt}global(){return new Fe}flexibleConnectedTo(ge){return new _(ge,this._viewportRuler,this._document,this._platform,this._overlayContainer)}}return Be.\u0275fac=function(ge){return new(ge||Be)(b.LFG(t.rL),b.LFG(e.K0),b.LFG(s.t4),b.LFG(T))},Be.\u0275prov=b.Yz7({token:Be,factory:Be.\u0275fac,providedIn:"root"}),Be})(),ye=0,ce=(()=>{class Be{constructor(ge,ft,Je,dt,Et,pt,ot,wt,ke,Ke,xt,Y){this.scrollStrategies=ge,this._overlayContainer=ft,this._componentFactoryResolver=Je,this._positionBuilder=dt,this._keyboardDispatcher=Et,this._injector=pt,this._ngZone=ot,this._document=wt,this._directionality=ke,this._location=Ke,this._outsideClickDispatcher=xt,this._animationsModuleType=Y}create(ge){const ft=this._createHostElement(),Je=this._createPaneElement(ft),dt=this._createPortalOutlet(Je),Et=new de(ge);return Et.direction=Et.direction||this._directionality.value,new L(dt,ft,Je,Et,this._ngZone,this._keyboardDispatcher,this._document,this._location,this._outsideClickDispatcher,"NoopAnimations"===this._animationsModuleType)}position(){return this._positionBuilder}_createPaneElement(ge){const ft=this._document.createElement("div");return ft.id="cdk-overlay-"+ye++,ft.classList.add("cdk-overlay-pane"),ge.appendChild(ft),ft}_createHostElement(){const ge=this._document.createElement("div");return this._overlayContainer.getContainerElement().appendChild(ge),ge}_createPortalOutlet(ge){return this._appRef||(this._appRef=this._injector.get(b.z2F)),new h.u0(ge,this._componentFactoryResolver,this._appRef,this._injector,this._document)}}return Be.\u0275fac=function(ge){return new(ge||Be)(b.LFG(ne),b.LFG(T),b.LFG(b._Vd),b.LFG(De),b.LFG(l),b.LFG(b.zs3),b.LFG(b.R0b),b.LFG(e.K0),b.LFG(C.Is),b.LFG(e.Ye),b.LFG(y),b.LFG(b.QbO,8))},Be.\u0275prov=b.Yz7({token:Be,factory:Be.\u0275fac,providedIn:"root"}),Be})();const ve=[{originX:"start",originY:"bottom",overlayX:"start",overlayY:"top"},{originX:"start",originY:"top",overlayX:"start",overlayY:"bottom"},{originX:"end",originY:"top",overlayX:"end",overlayY:"bottom"},{originX:"end",originY:"bottom",overlayX:"end",overlayY:"top"}],oe=new b.OlP("cdk-connected-overlay-scroll-strategy");let je=(()=>{class Be{constructor(ge){this.elementRef=ge}}return Be.\u0275fac=function(ge){return new(ge||Be)(b.Y36(b.SBq))},Be.\u0275dir=b.lG2({type:Be,selectors:[["","cdk-overlay-origin",""],["","overlay-origin",""],["","cdkOverlayOrigin",""]],exportAs:["cdkOverlayOrigin"],standalone:!0}),Be})(),Ae=(()=>{class Be{get offsetX(){return this._offsetX}set offsetX(ge){this._offsetX=ge,this._position&&this._updatePositionStrategy(this._position)}get offsetY(){return this._offsetY}set offsetY(ge){this._offsetY=ge,this._position&&this._updatePositionStrategy(this._position)}get hasBackdrop(){return this._hasBackdrop}set hasBackdrop(ge){this._hasBackdrop=(0,I.Ig)(ge)}get lockPosition(){return this._lockPosition}set lockPosition(ge){this._lockPosition=(0,I.Ig)(ge)}get flexibleDimensions(){return this._flexibleDimensions}set flexibleDimensions(ge){this._flexibleDimensions=(0,I.Ig)(ge)}get growAfterOpen(){return this._growAfterOpen}set growAfterOpen(ge){this._growAfterOpen=(0,I.Ig)(ge)}get push(){return this._push}set push(ge){this._push=(0,I.Ig)(ge)}constructor(ge,ft,Je,dt,Et){this._overlay=ge,this._dir=Et,this._hasBackdrop=!1,this._lockPosition=!1,this._growAfterOpen=!1,this._flexibleDimensions=!1,this._push=!1,this._backdropSubscription=d.w0.EMPTY,this._attachSubscription=d.w0.EMPTY,this._detachSubscription=d.w0.EMPTY,this._positionSubscription=d.w0.EMPTY,this.viewportMargin=0,this.open=!1,this.disableClose=!1,this.backdropClick=new b.vpe,this.positionChange=new b.vpe,this.attach=new b.vpe,this.detach=new b.vpe,this.overlayKeydown=new b.vpe,this.overlayOutsideClick=new b.vpe,this._templatePortal=new h.UE(ft,Je),this._scrollStrategyFactory=dt,this.scrollStrategy=this._scrollStrategyFactory()}get overlayRef(){return this._overlayRef}get dir(){return this._dir?this._dir.value:"ltr"}ngOnDestroy(){this._attachSubscription.unsubscribe(),this._detachSubscription.unsubscribe(),this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe(),this._overlayRef&&this._overlayRef.dispose()}ngOnChanges(ge){this._position&&(this._updatePositionStrategy(this._position),this._overlayRef.updateSize({width:this.width,minWidth:this.minWidth,height:this.height,minHeight:this.minHeight}),ge.origin&&this.open&&this._position.apply()),ge.open&&(this.open?this._attachOverlay():this._detachOverlay())}_createOverlay(){(!this.positions||!this.positions.length)&&(this.positions=ve);const ge=this._overlayRef=this._overlay.create(this._buildConfig());this._attachSubscription=ge.attachments().subscribe(()=>this.attach.emit()),this._detachSubscription=ge.detachments().subscribe(()=>this.detach.emit()),ge.keydownEvents().subscribe(ft=>{this.overlayKeydown.next(ft),ft.keyCode===R.hY&&!this.disableClose&&!(0,R.Vb)(ft)&&(ft.preventDefault(),this._detachOverlay())}),this._overlayRef.outsidePointerEvents().subscribe(ft=>{this.overlayOutsideClick.next(ft)})}_buildConfig(){const ge=this._position=this.positionStrategy||this._createPositionStrategy(),ft=new de({direction:this._dir,positionStrategy:ge,scrollStrategy:this.scrollStrategy,hasBackdrop:this.hasBackdrop});return(this.width||0===this.width)&&(ft.width=this.width),(this.height||0===this.height)&&(ft.height=this.height),(this.minWidth||0===this.minWidth)&&(ft.minWidth=this.minWidth),(this.minHeight||0===this.minHeight)&&(ft.minHeight=this.minHeight),this.backdropClass&&(ft.backdropClass=this.backdropClass),this.panelClass&&(ft.panelClass=this.panelClass),ft}_updatePositionStrategy(ge){const ft=this.positions.map(Je=>({originX:Je.originX,originY:Je.originY,overlayX:Je.overlayX,overlayY:Je.overlayY,offsetX:Je.offsetX||this.offsetX,offsetY:Je.offsetY||this.offsetY,panelClass:Je.panelClass||void 0}));return ge.setOrigin(this._getFlexibleConnectedPositionStrategyOrigin()).withPositions(ft).withFlexibleDimensions(this.flexibleDimensions).withPush(this.push).withGrowAfterOpen(this.growAfterOpen).withViewportMargin(this.viewportMargin).withLockedPosition(this.lockPosition).withTransformOriginOn(this.transformOriginSelector)}_createPositionStrategy(){const ge=this._overlay.position().flexibleConnectedTo(this._getFlexibleConnectedPositionStrategyOrigin());return this._updatePositionStrategy(ge),ge}_getFlexibleConnectedPositionStrategyOrigin(){return this.origin instanceof je?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(ge=>{this.backdropClick.emit(ge)}):this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe(),this.positionChange.observers.length>0&&(this._positionSubscription=this._position.positionChanges.pipe((0,E.o)(()=>this.positionChange.observers.length>0)).subscribe(ge=>{this.positionChange.emit(ge),0===this.positionChange.observers.length&&this._positionSubscription.unsubscribe()}))}_detachOverlay(){this._overlayRef&&this._overlayRef.detach(),this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe()}}return Be.\u0275fac=function(ge){return new(ge||Be)(b.Y36(ce),b.Y36(b.Rgc),b.Y36(b.s_b),b.Y36(oe),b.Y36(C.Is,8))},Be.\u0275dir=b.lG2({type:Be,selectors:[["","cdk-connected-overlay",""],["","connected-overlay",""],["","cdkConnectedOverlay",""]],inputs:{origin:["cdkConnectedOverlayOrigin","origin"],positions:["cdkConnectedOverlayPositions","positions"],positionStrategy:["cdkConnectedOverlayPositionStrategy","positionStrategy"],offsetX:["cdkConnectedOverlayOffsetX","offsetX"],offsetY:["cdkConnectedOverlayOffsetY","offsetY"],width:["cdkConnectedOverlayWidth","width"],height:["cdkConnectedOverlayHeight","height"],minWidth:["cdkConnectedOverlayMinWidth","minWidth"],minHeight:["cdkConnectedOverlayMinHeight","minHeight"],backdropClass:["cdkConnectedOverlayBackdropClass","backdropClass"],panelClass:["cdkConnectedOverlayPanelClass","panelClass"],viewportMargin:["cdkConnectedOverlayViewportMargin","viewportMargin"],scrollStrategy:["cdkConnectedOverlayScrollStrategy","scrollStrategy"],open:["cdkConnectedOverlayOpen","open"],disableClose:["cdkConnectedOverlayDisableClose","disableClose"],transformOriginSelector:["cdkConnectedOverlayTransformOriginOn","transformOriginSelector"],hasBackdrop:["cdkConnectedOverlayHasBackdrop","hasBackdrop"],lockPosition:["cdkConnectedOverlayLockPosition","lockPosition"],flexibleDimensions:["cdkConnectedOverlayFlexibleDimensions","flexibleDimensions"],growAfterOpen:["cdkConnectedOverlayGrowAfterOpen","growAfterOpen"],push:["cdkConnectedOverlayPush","push"]},outputs:{backdropClick:"backdropClick",positionChange:"positionChange",attach:"attach",detach:"detach",overlayKeydown:"overlayKeydown",overlayOutsideClick:"overlayOutsideClick"},exportAs:["cdkConnectedOverlay"],standalone:!0,features:[b.TTD]}),Be})();const Ce={provide:oe,deps:[ce],useFactory:function he(Be){return()=>Be.scrollStrategies.reposition()}};let te=(()=>{class Be{}return Be.\u0275fac=function(ge){return new(ge||Be)},Be.\u0275mod=b.oAB({type:Be}),Be.\u0275inj=b.cJS({providers:[ce,Ce],imports:[C.vT,h.eL,t.Cl,t.Cl]}),Be})()},3353:(Ve,q,p)=>{"use strict";p.d(q,{Mq:()=>R,Oy:()=>ue,_i:()=>z,ht:()=>ee,i$:()=>w,kV:()=>K,qK:()=>P,sA:()=>ie,t4:()=>I});var t=p(4650),e=p(6895);let b;try{b=typeof Intl<"u"&&Intl.v8BreakIterator}catch{b=!1}let C,I=(()=>{class le{constructor(de){this._platformId=de,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&&!b)&&typeof CSS<"u"&&!this.EDGE&&!this.TRIDENT,this.WEBKIT=this.isBrowser&&/AppleWebKit/i.test(navigator.userAgent)&&!this.BLINK&&!this.EDGE&&!this.TRIDENT,this.IOS=this.isBrowser&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!("MSStream"in window),this.FIREFOX=this.isBrowser&&/(firefox|minefield)/i.test(navigator.userAgent),this.ANDROID=this.isBrowser&&/android/i.test(navigator.userAgent)&&!this.TRIDENT,this.SAFARI=this.isBrowser&&/safari/i.test(navigator.userAgent)&&this.WEBKIT}}return le.\u0275fac=function(de){return new(de||le)(t.LFG(t.Lbi))},le.\u0275prov=t.Yz7({token:le,factory:le.\u0275fac,providedIn:"root"}),le})();const h=["color","button","checkbox","date","datetime-local","email","file","hidden","image","month","number","password","radio","range","reset","search","submit","tel","text","time","url","week"];function P(){if(C)return C;if("object"!=typeof document||!document)return C=new Set(h),C;let le=document.createElement("input");return C=new Set(h.filter(ne=>(le.setAttribute("type",ne),le.type===ne))),C}let d,O,E,U;function w(le){return function S(){if(null==d&&typeof window<"u")try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:()=>d=!0}))}finally{d=d||!1}return d}()?le:!!le.capture}function R(){if(null==E){if("object"!=typeof document||!document||"function"!=typeof Element||!Element)return E=!1,E;if("scrollBehavior"in document.documentElement.style)E=!0;else{const le=Element.prototype.scrollTo;E=!!le&&!/\{\s*\[native code\]\s*\}/.test(le.toString())}}return E}function z(){if("object"!=typeof document||!document)return 0;if(null==O){const le=document.createElement("div"),ne=le.style;le.dir="rtl",ne.width="1px",ne.overflow="auto",ne.visibility="hidden",ne.pointerEvents="none",ne.position="absolute";const de=document.createElement("div"),$=de.style;$.width="2px",$.height="1px",le.appendChild(de),document.body.appendChild(le),O=0,0===le.scrollLeft&&(le.scrollLeft=1,O=0===le.scrollLeft?1:2),le.remove()}return O}function K(le){if(function W(){if(null==U){const le=typeof document<"u"?document.head:null;U=!(!le||!le.createShadowRoot&&!le.attachShadow)}return U}()){const ne=le.getRootNode?le.getRootNode():null;if(typeof ShadowRoot<"u"&&ShadowRoot&&ne instanceof ShadowRoot)return ne}return null}function ee(){let le=typeof document<"u"&&document?document.activeElement:null;for(;le&&le.shadowRoot;){const ne=le.shadowRoot.activeElement;if(ne===le)break;le=ne}return le}function ie(le){return le.composedPath?le.composedPath()[0]:le.target}function ue(){return typeof __karma__<"u"&&!!__karma__||typeof jasmine<"u"&&!!jasmine||typeof jest<"u"&&!!jest||typeof Mocha<"u"&&!!Mocha}},4080:(Ve,q,p)=>{"use strict";p.d(q,{C5:()=>S,Pl:()=>ee,UE:()=>w,eL:()=>ue,en:()=>E,ig:()=>W,u0:()=>z});var t=p(4650),e=p(6895);class d{attach(de){return this._attachedHost=de,de.attach(this)}detach(){let de=this._attachedHost;null!=de&&(this._attachedHost=null,de.detach())}get isAttached(){return null!=this._attachedHost}setAttachedHost(de){this._attachedHost=de}}class S extends d{constructor(de,$,me,A,i){super(),this.component=de,this.viewContainerRef=$,this.injector=me,this.componentFactoryResolver=A,this.projectableNodes=i}}class w extends d{constructor(de,$,me,A){super(),this.templateRef=de,this.viewContainerRef=$,this.context=me,this.injector=A}get origin(){return this.templateRef.elementRef}attach(de,$=this.context){return this.context=$,super.attach(de)}detach(){return this.context=void 0,super.detach()}}class O extends d{constructor(de){super(),this.element=de instanceof t.SBq?de.nativeElement:de}}class E{constructor(){this._isDisposed=!1,this.attachDomPortal=null}hasAttached(){return!!this._attachedPortal}attach(de){return de instanceof S?(this._attachedPortal=de,this.attachComponentPortal(de)):de instanceof w?(this._attachedPortal=de,this.attachTemplatePortal(de)):this.attachDomPortal&&de instanceof O?(this._attachedPortal=de,this.attachDomPortal(de)):void 0}detach(){this._attachedPortal&&(this._attachedPortal.setAttachedHost(null),this._attachedPortal=null),this._invokeDisposeFn()}dispose(){this.hasAttached()&&this.detach(),this._invokeDisposeFn(),this._isDisposed=!0}setDisposeFn(de){this._disposeFn=de}_invokeDisposeFn(){this._disposeFn&&(this._disposeFn(),this._disposeFn=null)}}class z extends E{constructor(de,$,me,A,i){super(),this.outletElement=de,this._componentFactoryResolver=$,this._appRef=me,this._defaultInjector=A,this.attachDomPortal=a=>{const u=a.element,l=this._document.createComment("dom-portal");u.parentNode.insertBefore(l,u),this.outletElement.appendChild(u),this._attachedPortal=a,super.setDisposeFn(()=>{l.parentNode&&l.parentNode.replaceChild(u,l)})},this._document=i}attachComponentPortal(de){const me=(de.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(de.component);let A;return de.viewContainerRef?(A=de.viewContainerRef.createComponent(me,de.viewContainerRef.length,de.injector||de.viewContainerRef.injector,de.projectableNodes||void 0),this.setDisposeFn(()=>A.destroy())):(A=me.create(de.injector||this._defaultInjector||t.zs3.NULL),this._appRef.attachView(A.hostView),this.setDisposeFn(()=>{this._appRef.viewCount>0&&this._appRef.detachView(A.hostView),A.destroy()})),this.outletElement.appendChild(this._getComponentRootNode(A)),this._attachedPortal=de,A}attachTemplatePortal(de){let $=de.viewContainerRef,me=$.createEmbeddedView(de.templateRef,de.context,{injector:de.injector});return me.rootNodes.forEach(A=>this.outletElement.appendChild(A)),me.detectChanges(),this.setDisposeFn(()=>{let A=$.indexOf(me);-1!==A&&$.remove(A)}),this._attachedPortal=de,me}dispose(){super.dispose(),this.outletElement.remove()}_getComponentRootNode(de){return de.hostView.rootNodes[0]}}let W=(()=>{class ne extends w{constructor($,me){super($,me)}}return ne.\u0275fac=function($){return new($||ne)(t.Y36(t.Rgc),t.Y36(t.s_b))},ne.\u0275dir=t.lG2({type:ne,selectors:[["","cdkPortal",""]],exportAs:["cdkPortal"],features:[t.qOj]}),ne})(),ee=(()=>{class ne extends E{constructor($,me,A){super(),this._componentFactoryResolver=$,this._viewContainerRef=me,this._isInitialized=!1,this.attached=new t.vpe,this.attachDomPortal=i=>{const a=i.element,u=this._document.createComment("dom-portal");i.setAttachedHost(this),a.parentNode.insertBefore(u,a),this._getRootNode().appendChild(a),this._attachedPortal=i,super.setDisposeFn(()=>{u.parentNode&&u.parentNode.replaceChild(a,u)})},this._document=A}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._attachedRef=this._attachedPortal=null}attachComponentPortal($){$.setAttachedHost(this);const me=null!=$.viewContainerRef?$.viewContainerRef:this._viewContainerRef,i=($.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory($.component),a=me.createComponent(i,me.length,$.injector||me.injector,$.projectableNodes||void 0);return me!==this._viewContainerRef&&this._getRootNode().appendChild(a.hostView.rootNodes[0]),super.setDisposeFn(()=>a.destroy()),this._attachedPortal=$,this._attachedRef=a,this.attached.emit(a),a}attachTemplatePortal($){$.setAttachedHost(this);const me=this._viewContainerRef.createEmbeddedView($.templateRef,$.context,{injector:$.injector});return super.setDisposeFn(()=>this._viewContainerRef.clear()),this._attachedPortal=$,this._attachedRef=me,this.attached.emit(me),me}_getRootNode(){const $=this._viewContainerRef.element.nativeElement;return $.nodeType===$.ELEMENT_NODE?$:$.parentNode}}return ne.\u0275fac=function($){return new($||ne)(t.Y36(t._Vd),t.Y36(t.s_b),t.Y36(e.K0))},ne.\u0275dir=t.lG2({type:ne,selectors:[["","cdkPortalOutlet",""]],inputs:{portal:["cdkPortalOutlet","portal"]},outputs:{attached:"attached"},exportAs:["cdkPortalOutlet"],features:[t.qOj]}),ne})(),ue=(()=>{class ne{}return ne.\u0275fac=function($){return new($||ne)},ne.\u0275mod=t.oAB({type:ne}),ne.\u0275inj=t.cJS({}),ne})()},531:(Ve,q,p)=>{"use strict";p.d(q,{PQ:()=>l,ZD:()=>We,mF:()=>u,Cl:()=>Fe,rL:()=>T});var t=p(1281),e=p(4650),b=p(7579),I=p(9646),s=p(9751),C=p(4968),h=p(4408),P=p(727);const d={schedule(De){let ye=requestAnimationFrame,ce=cancelAnimationFrame;const{delegate:ve}=d;ve&&(ye=ve.requestAnimationFrame,ce=ve.cancelAnimationFrame);const oe=ye(je=>{ce=void 0,De(je)});return new P.w0(()=>ce?.(oe))},requestAnimationFrame(...De){const{delegate:ye}=d;return(ye?.requestAnimationFrame||requestAnimationFrame)(...De)},cancelAnimationFrame(...De){const{delegate:ye}=d;return(ye?.cancelAnimationFrame||cancelAnimationFrame)(...De)},delegate:void 0};var w=p(7565);const E=new class O extends w.v{flush(ye){this._active=!0;const ce=this._scheduled;this._scheduled=void 0;const{actions:ve}=this;let oe;ye=ye||ve.shift();do{if(oe=ye.execute(ye.state,ye.delay))break}while((ye=ve[0])&&ye.id===ce&&ve.shift());if(this._active=!1,oe){for(;(ye=ve[0])&&ye.id===ce&&ve.shift();)ye.unsubscribe();throw oe}}}(class S extends h.o{constructor(ye,ce){super(ye,ce),this.scheduler=ye,this.work=ce}requestAsyncId(ye,ce,ve=0){return null!==ve&&ve>0?super.requestAsyncId(ye,ce,ve):(ye.actions.push(this),ye._scheduled||(ye._scheduled=d.requestAnimationFrame(()=>ye.flush(void 0))))}recycleAsyncId(ye,ce,ve=0){var oe;if(null!=ve?ve>0:this.delay>0)return super.recycleAsyncId(ye,ce,ve);const{actions:je}=ye;null!=ce&&(null===(oe=je[je.length-1])||void 0===oe?void 0:oe.id)!==ce&&(d.cancelAnimationFrame(ce),ye._scheduled=void 0)}});var z=p(3101),U=p(3601),W=p(9300),K=p(2722),ee=p(8675),ie=p(3353),ue=p(6895),le=p(445);const ne=["contentWrapper"],de=["*"],$=new e.OlP("VIRTUAL_SCROLL_STRATEGY");let u=(()=>{class De{constructor(ce,ve,oe){this._ngZone=ce,this._platform=ve,this._scrolled=new b.x,this._globalSubscription=null,this._scrolledCount=0,this.scrollContainers=new Map,this._document=oe}register(ce){this.scrollContainers.has(ce)||this.scrollContainers.set(ce,ce.elementScrolled().subscribe(()=>this._scrolled.next(ce)))}deregister(ce){const ve=this.scrollContainers.get(ce);ve&&(ve.unsubscribe(),this.scrollContainers.delete(ce))}scrolled(ce=20){return this._platform.isBrowser?new s.y(ve=>{this._globalSubscription||this._addGlobalListener();const oe=ce>0?this._scrolled.pipe((0,U.e)(ce)).subscribe(ve):this._scrolled.subscribe(ve);return this._scrolledCount++,()=>{oe.unsubscribe(),this._scrolledCount--,this._scrolledCount||this._removeGlobalListener()}}):(0,I.of)()}ngOnDestroy(){this._removeGlobalListener(),this.scrollContainers.forEach((ce,ve)=>this.deregister(ve)),this._scrolled.complete()}ancestorScrolled(ce,ve){const oe=this.getAncestorScrollContainers(ce);return this.scrolled(ve).pipe((0,W.h)(je=>!je||oe.indexOf(je)>-1))}getAncestorScrollContainers(ce){const ve=[];return this.scrollContainers.forEach((oe,je)=>{this._scrollableContainsElement(je,ce)&&ve.push(je)}),ve}_getWindow(){return this._document.defaultView||window}_scrollableContainsElement(ce,ve){let oe=(0,t.fI)(ve),je=ce.getElementRef().nativeElement;do{if(oe==je)return!0}while(oe=oe.parentElement);return!1}_addGlobalListener(){this._globalSubscription=this._ngZone.runOutsideAngular(()=>{const ce=this._getWindow();return(0,C.R)(ce.document,"scroll").subscribe(()=>this._scrolled.next())})}_removeGlobalListener(){this._globalSubscription&&(this._globalSubscription.unsubscribe(),this._globalSubscription=null)}}return De.\u0275fac=function(ce){return new(ce||De)(e.LFG(e.R0b),e.LFG(ie.t4),e.LFG(ue.K0,8))},De.\u0275prov=e.Yz7({token:De,factory:De.\u0275fac,providedIn:"root"}),De})(),l=(()=>{class De{constructor(ce,ve,oe,je){this.elementRef=ce,this.scrollDispatcher=ve,this.ngZone=oe,this.dir=je,this._destroyed=new b.x,this._elementScrolled=new s.y(Ae=>this.ngZone.runOutsideAngular(()=>(0,C.R)(this.elementRef.nativeElement,"scroll").pipe((0,K.R)(this._destroyed)).subscribe(Ae)))}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(ce){const ve=this.elementRef.nativeElement,oe=this.dir&&"rtl"==this.dir.value;null==ce.left&&(ce.left=oe?ce.end:ce.start),null==ce.right&&(ce.right=oe?ce.start:ce.end),null!=ce.bottom&&(ce.top=ve.scrollHeight-ve.clientHeight-ce.bottom),oe&&0!=(0,ie._i)()?(null!=ce.left&&(ce.right=ve.scrollWidth-ve.clientWidth-ce.left),2==(0,ie._i)()?ce.left=ce.right:1==(0,ie._i)()&&(ce.left=ce.right?-ce.right:ce.right)):null!=ce.right&&(ce.left=ve.scrollWidth-ve.clientWidth-ce.right),this._applyScrollToOptions(ce)}_applyScrollToOptions(ce){const ve=this.elementRef.nativeElement;(0,ie.Mq)()?ve.scrollTo(ce):(null!=ce.top&&(ve.scrollTop=ce.top),null!=ce.left&&(ve.scrollLeft=ce.left))}measureScrollOffset(ce){const ve="left",je=this.elementRef.nativeElement;if("top"==ce)return je.scrollTop;if("bottom"==ce)return je.scrollHeight-je.clientHeight-je.scrollTop;const Ae=this.dir&&"rtl"==this.dir.value;return"start"==ce?ce=Ae?"right":ve:"end"==ce&&(ce=Ae?ve:"right"),Ae&&2==(0,ie._i)()?ce==ve?je.scrollWidth-je.clientWidth-je.scrollLeft:je.scrollLeft:Ae&&1==(0,ie._i)()?ce==ve?je.scrollLeft+je.scrollWidth-je.clientWidth:-je.scrollLeft:ce==ve?je.scrollLeft:je.scrollWidth-je.clientWidth-je.scrollLeft}}return De.\u0275fac=function(ce){return new(ce||De)(e.Y36(e.SBq),e.Y36(u),e.Y36(e.R0b),e.Y36(le.Is,8))},De.\u0275dir=e.lG2({type:De,selectors:[["","cdk-scrollable",""],["","cdkScrollable",""]],standalone:!0}),De})(),T=(()=>{class De{constructor(ce,ve,oe){this._platform=ce,this._change=new b.x,this._changeListener=je=>{this._change.next(je)},this._document=oe,ve.runOutsideAngular(()=>{if(ce.isBrowser){const je=this._getWindow();je.addEventListener("resize",this._changeListener),je.addEventListener("orientationchange",this._changeListener)}this.change().subscribe(()=>this._viewportSize=null)})}ngOnDestroy(){if(this._platform.isBrowser){const ce=this._getWindow();ce.removeEventListener("resize",this._changeListener),ce.removeEventListener("orientationchange",this._changeListener)}this._change.complete()}getViewportSize(){this._viewportSize||this._updateViewportSize();const ce={width:this._viewportSize.width,height:this._viewportSize.height};return this._platform.isBrowser||(this._viewportSize=null),ce}getViewportRect(){const ce=this.getViewportScrollPosition(),{width:ve,height:oe}=this.getViewportSize();return{top:ce.top,left:ce.left,bottom:ce.top+oe,right:ce.left+ve,height:oe,width:ve}}getViewportScrollPosition(){if(!this._platform.isBrowser)return{top:0,left:0};const ce=this._document,ve=this._getWindow(),oe=ce.documentElement,je=oe.getBoundingClientRect();return{top:-je.top||ce.body.scrollTop||ve.scrollY||oe.scrollTop||0,left:-je.left||ce.body.scrollLeft||ve.scrollX||oe.scrollLeft||0}}change(ce=20){return ce>0?this._change.pipe((0,U.e)(ce)):this._change}_getWindow(){return this._document.defaultView||window}_updateViewportSize(){const ce=this._getWindow();this._viewportSize=this._platform.isBrowser?{width:ce.innerWidth,height:ce.innerHeight}:{width:0,height:0}}}return De.\u0275fac=function(ce){return new(ce||De)(e.LFG(ie.t4),e.LFG(e.R0b),e.LFG(ue.K0,8))},De.\u0275prov=e.Yz7({token:De,factory:De.\u0275fac,providedIn:"root"}),De})();const L=new e.OlP("VIRTUAL_SCROLLABLE");let m=(()=>{class De extends l{constructor(ce,ve,oe,je){super(ce,ve,oe,je)}measureViewportSize(ce){const ve=this.elementRef.nativeElement;return"horizontal"===ce?ve.clientWidth:ve.clientHeight}}return De.\u0275fac=function(ce){return new(ce||De)(e.Y36(e.SBq),e.Y36(u),e.Y36(e.R0b),e.Y36(le.Is,8))},De.\u0275dir=e.lG2({type:De,features:[e.qOj]}),De})();const _=typeof requestAnimationFrame<"u"?E:z.E;let B=(()=>{class De extends m{get orientation(){return this._orientation}set orientation(ce){this._orientation!==ce&&(this._orientation=ce,this._calculateSpacerSize())}get appendOnly(){return this._appendOnly}set appendOnly(ce){this._appendOnly=(0,t.Ig)(ce)}constructor(ce,ve,oe,je,Ae,he,Ce,te){super(ce,he,oe,Ae),this.elementRef=ce,this._changeDetectorRef=ve,this._scrollStrategy=je,this.scrollable=te,this._platform=(0,e.f3M)(ie.t4),this._detachedSubject=new b.x,this._renderedRangeSubject=new b.x,this._orientation="vertical",this._appendOnly=!1,this.scrolledIndexChange=new s.y(Ue=>this._scrollStrategy.scrolledIndexChange.subscribe(Be=>Promise.resolve().then(()=>this.ngZone.run(()=>Ue.next(Be))))),this.renderedRangeStream=this._renderedRangeSubject,this._totalContentSize=0,this._totalContentWidth="",this._totalContentHeight="",this._renderedRange={start:0,end:0},this._dataLength=0,this._viewportSize=0,this._renderedContentOffset=0,this._renderedContentOffsetNeedsRewrite=!1,this._isChangeDetectionPending=!1,this._runAfterChangeDetection=[],this._viewportChanges=P.w0.EMPTY,this._viewportChanges=Ce.change().subscribe(()=>{this.checkViewportSize()}),this.scrollable||(this.elementRef.nativeElement.classList.add("cdk-virtual-scrollable"),this.scrollable=this)}ngOnInit(){this._platform.isBrowser&&(this.scrollable===this&&super.ngOnInit(),this.ngZone.runOutsideAngular(()=>Promise.resolve().then(()=>{this._measureViewportSize(),this._scrollStrategy.attach(this),this.scrollable.elementScrolled().pipe((0,ee.O)(null),(0,U.e)(0,_)).subscribe(()=>this._scrollStrategy.onContentScrolled()),this._markChangeDetectionNeeded()})))}ngOnDestroy(){this.detach(),this._scrollStrategy.detach(),this._renderedRangeSubject.complete(),this._detachedSubject.complete(),this._viewportChanges.unsubscribe(),super.ngOnDestroy()}attach(ce){this.ngZone.runOutsideAngular(()=>{this._forOf=ce,this._forOf.dataStream.pipe((0,K.R)(this._detachedSubject)).subscribe(ve=>{const oe=ve.length;oe!==this._dataLength&&(this._dataLength=oe,this._scrollStrategy.onDataLengthChanged()),this._doChangeDetection()})})}detach(){this._forOf=null,this._detachedSubject.next()}getDataLength(){return this._dataLength}getViewportSize(){return this._viewportSize}getRenderedRange(){return this._renderedRange}measureBoundingClientRectWithScrollOffset(ce){return this.getElementRef().nativeElement.getBoundingClientRect()[ce]}setTotalContentSize(ce){this._totalContentSize!==ce&&(this._totalContentSize=ce,this._calculateSpacerSize(),this._markChangeDetectionNeeded())}setRenderedRange(ce){(function n(De,ye){return De.start==ye.start&&De.end==ye.end})(this._renderedRange,ce)||(this.appendOnly&&(ce={start:0,end:Math.max(this._renderedRange.end,ce.end)}),this._renderedRangeSubject.next(this._renderedRange=ce),this._markChangeDetectionNeeded(()=>this._scrollStrategy.onContentRendered()))}getOffsetToRenderedContentStart(){return this._renderedContentOffsetNeedsRewrite?null:this._renderedContentOffset}setRenderedContentOffset(ce,ve="to-start"){ce=this.appendOnly&&"to-start"===ve?0:ce;const je="horizontal"==this.orientation,Ae=je?"X":"Y";let Ce=`translate${Ae}(${Number((je&&this.dir&&"rtl"==this.dir.value?-1:1)*ce)}px)`;this._renderedContentOffset=ce,"to-end"===ve&&(Ce+=` translate${Ae}(-100%)`,this._renderedContentOffsetNeedsRewrite=!0),this._renderedContentTransform!=Ce&&(this._renderedContentTransform=Ce,this._markChangeDetectionNeeded(()=>{this._renderedContentOffsetNeedsRewrite?(this._renderedContentOffset-=this.measureRenderedContentSize(),this._renderedContentOffsetNeedsRewrite=!1,this.setRenderedContentOffset(this._renderedContentOffset)):this._scrollStrategy.onRenderedOffsetChanged()}))}scrollToOffset(ce,ve="auto"){const oe={behavior:ve};"horizontal"===this.orientation?oe.start=ce:oe.top=ce,this.scrollable.scrollTo(oe)}scrollToIndex(ce,ve="auto"){this._scrollStrategy.scrollToIndex(ce,ve)}measureScrollOffset(ce){let ve;return ve=this.scrollable==this?oe=>super.measureScrollOffset(oe):oe=>this.scrollable.measureScrollOffset(oe),Math.max(0,ve(ce??("horizontal"===this.orientation?"start":"top"))-this.measureViewportOffset())}measureViewportOffset(ce){let ve;const Ae="rtl"==this.dir?.value;ve="start"==ce?Ae?"right":"left":"end"==ce?Ae?"left":"right":ce||("horizontal"===this.orientation?"left":"top");const he=this.scrollable.measureBoundingClientRectWithScrollOffset(ve);return this.elementRef.nativeElement.getBoundingClientRect()[ve]-he}measureRenderedContentSize(){const ce=this._contentWrapper.nativeElement;return"horizontal"===this.orientation?ce.offsetWidth:ce.offsetHeight}measureRangeSize(ce){return this._forOf?this._forOf.measureRangeSize(ce,this.orientation):0}checkViewportSize(){this._measureViewportSize(),this._scrollStrategy.onDataLengthChanged()}_measureViewportSize(){this._viewportSize=this.scrollable.measureViewportSize(this.orientation)}_markChangeDetectionNeeded(ce){ce&&this._runAfterChangeDetection.push(ce),this._isChangeDetectionPending||(this._isChangeDetectionPending=!0,this.ngZone.runOutsideAngular(()=>Promise.resolve().then(()=>{this._doChangeDetection()})))}_doChangeDetection(){this._isChangeDetectionPending=!1,this._contentWrapper.nativeElement.style.transform=this._renderedContentTransform,this.ngZone.run(()=>this._changeDetectorRef.markForCheck());const ce=this._runAfterChangeDetection;this._runAfterChangeDetection=[];for(const ve of ce)ve()}_calculateSpacerSize(){this._totalContentHeight="horizontal"===this.orientation?"":`${this._totalContentSize}px`,this._totalContentWidth="horizontal"===this.orientation?`${this._totalContentSize}px`:""}}return De.\u0275fac=function(ce){return new(ce||De)(e.Y36(e.SBq),e.Y36(e.sBO),e.Y36(e.R0b),e.Y36($,8),e.Y36(le.Is,8),e.Y36(u),e.Y36(T),e.Y36(L,8))},De.\u0275cmp=e.Xpm({type:De,selectors:[["cdk-virtual-scroll-viewport"]],viewQuery:function(ce,ve){if(1&ce&&e.Gf(ne,7),2&ce){let oe;e.iGM(oe=e.CRH())&&(ve._contentWrapper=oe.first)}},hostAttrs:[1,"cdk-virtual-scroll-viewport"],hostVars:4,hostBindings:function(ce,ve){2&ce&&e.ekj("cdk-virtual-scroll-orientation-horizontal","horizontal"===ve.orientation)("cdk-virtual-scroll-orientation-vertical","horizontal"!==ve.orientation)},inputs:{orientation:"orientation",appendOnly:"appendOnly"},outputs:{scrolledIndexChange:"scrolledIndexChange"},standalone:!0,features:[e._Bn([{provide:l,useFactory:(ye,ce)=>ye||ce,deps:[[new e.FiY,new e.tBr(L)],De]}]),e.qOj,e.jDz],ngContentSelectors:de,decls:4,vars:4,consts:[[1,"cdk-virtual-scroll-content-wrapper"],["contentWrapper",""],[1,"cdk-virtual-scroll-spacer"]],template:function(ce,ve){1&ce&&(e.F$t(),e.TgZ(0,"div",0,1),e.Hsn(2),e.qZA(),e._UZ(3,"div",2)),2&ce&&(e.xp6(3),e.Udp("width",ve._totalContentWidth)("height",ve._totalContentHeight))},styles:["cdk-virtual-scroll-viewport{display:block;position:relative;transform:translateZ(0)}.cdk-virtual-scrollable{overflow:auto;will-change:scroll-position;contain:strict;-webkit-overflow-scrolling:touch}.cdk-virtual-scroll-content-wrapper{position:absolute;top:0;left:0;contain:content}[dir=rtl] .cdk-virtual-scroll-content-wrapper{right:0;left:auto}.cdk-virtual-scroll-orientation-horizontal .cdk-virtual-scroll-content-wrapper{min-height:100%}.cdk-virtual-scroll-orientation-horizontal .cdk-virtual-scroll-content-wrapper>dl:not([cdkVirtualFor]),.cdk-virtual-scroll-orientation-horizontal .cdk-virtual-scroll-content-wrapper>ol:not([cdkVirtualFor]),.cdk-virtual-scroll-orientation-horizontal .cdk-virtual-scroll-content-wrapper>table:not([cdkVirtualFor]),.cdk-virtual-scroll-orientation-horizontal .cdk-virtual-scroll-content-wrapper>ul:not([cdkVirtualFor]){padding-left:0;padding-right:0;margin-left:0;margin-right:0;border-left-width:0;border-right-width:0;outline:none}.cdk-virtual-scroll-orientation-vertical .cdk-virtual-scroll-content-wrapper{min-width:100%}.cdk-virtual-scroll-orientation-vertical .cdk-virtual-scroll-content-wrapper>dl:not([cdkVirtualFor]),.cdk-virtual-scroll-orientation-vertical .cdk-virtual-scroll-content-wrapper>ol:not([cdkVirtualFor]),.cdk-virtual-scroll-orientation-vertical .cdk-virtual-scroll-content-wrapper>table:not([cdkVirtualFor]),.cdk-virtual-scroll-orientation-vertical .cdk-virtual-scroll-content-wrapper>ul:not([cdkVirtualFor]){padding-top:0;padding-bottom:0;margin-top:0;margin-bottom:0;border-top-width:0;border-bottom-width:0;outline:none}.cdk-virtual-scroll-spacer{height:1px;transform-origin:0 0;flex:0 0 auto}[dir=rtl] .cdk-virtual-scroll-spacer{transform-origin:100% 0}"],encapsulation:2,changeDetection:0}),De})(),We=(()=>{class De{}return De.\u0275fac=function(ce){return new(ce||De)},De.\u0275mod=e.oAB({type:De}),De.\u0275inj=e.cJS({}),De})(),Fe=(()=>{class De{}return De.\u0275fac=function(ce){return new(ce||De)},De.\u0275mod=e.oAB({type:De}),De.\u0275inj=e.cJS({imports:[le.vT,We,B,le.vT,We]}),De})()},2138:(Ve,q,p)=>{"use strict";p.d(q,{B8:()=>ie,KL:()=>E,U5:()=>ne,be:()=>ee,gx:()=>K,po:()=>le,st:()=>ue,u6:()=>R});var t=p(4761),e=p(445),b=p(1281),I=p(9521),s=p(4650),C=p(3353),h=p(7579),P=p(9646),d=p(8675),S=p(2722);function w(de,$){1&de&&s.Hsn(0)}const O=["*"];let E=(()=>{class de{constructor(me){this._elementRef=me}focus(){this._elementRef.nativeElement.focus()}}return de.\u0275fac=function(me){return new(me||de)(s.Y36(s.SBq))},de.\u0275dir=s.lG2({type:de,selectors:[["","cdkStepHeader",""]],hostAttrs:["role","tab"]}),de})(),R=(()=>{class de{constructor(me){this.template=me}}return de.\u0275fac=function(me){return new(me||de)(s.Y36(s.Rgc))},de.\u0275dir=s.lG2({type:de,selectors:[["","cdkStepLabel",""]]}),de})(),z=0;const K=new s.OlP("STEPPER_GLOBAL_OPTIONS");let ee=(()=>{class de{get editable(){return this._editable}set editable(me){this._editable=(0,b.Ig)(me)}get optional(){return this._optional}set optional(me){this._optional=(0,b.Ig)(me)}get completed(){return null==this._completedOverride?this._getDefaultCompleted():this._completedOverride}set completed(me){this._completedOverride=(0,b.Ig)(me)}_getDefaultCompleted(){return this.stepControl?this.stepControl.valid&&this.interacted:this.interacted}get hasError(){return null==this._customError?this._getDefaultError():this._customError}set hasError(me){this._customError=(0,b.Ig)(me)}_getDefaultError(){return this.stepControl&&this.stepControl.invalid&&this.interacted}constructor(me,A){this._stepper=me,this.interacted=!1,this.interactedStream=new s.vpe,this._editable=!0,this._optional=!1,this._completedOverride=null,this._customError=null,this._stepperOptions=A||{},this._displayDefaultIndicatorType=!1!==this._stepperOptions.displayDefaultIndicatorType}select(){this._stepper.selected=this}reset(){this.interacted=!1,null!=this._completedOverride&&(this._completedOverride=!1),null!=this._customError&&(this._customError=!1),this.stepControl&&this.stepControl.reset()}ngOnChanges(){this._stepper._stateChanged()}_markAsInteracted(){this.interacted||(this.interacted=!0,this.interactedStream.emit(this))}_showError(){return this._stepperOptions.showError??null!=this._customError}}return de.\u0275fac=function(me){return new(me||de)(s.Y36((0,s.Gpc)(()=>ie)),s.Y36(K,8))},de.\u0275cmp=s.Xpm({type:de,selectors:[["cdk-step"]],contentQueries:function(me,A,i){if(1&me&&s.Suo(i,R,5),2&me){let a;s.iGM(a=s.CRH())&&(A.stepLabel=a.first)}},viewQuery:function(me,A){if(1&me&&s.Gf(s.Rgc,7),2&me){let i;s.iGM(i=s.CRH())&&(A.content=i.first)}},inputs:{stepControl:"stepControl",label:"label",errorMessage:"errorMessage",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],state:"state",editable:"editable",optional:"optional",completed:"completed",hasError:"hasError"},outputs:{interactedStream:"interacted"},exportAs:["cdkStep"],features:[s.TTD],ngContentSelectors:O,decls:1,vars:0,template:function(me,A){1&me&&(s.F$t(),s.YNc(0,w,1,0,"ng-template"))},encapsulation:2,changeDetection:0}),de})(),ie=(()=>{class de{get linear(){return this._linear}set linear(me){this._linear=(0,b.Ig)(me)}get selectedIndex(){return this._selectedIndex}set selectedIndex(me){const A=(0,b.su)(me);this.steps&&this._steps?(this._isValidIndex(A),this.selected?._markAsInteracted(),this._selectedIndex!==A&&!this._anyControlsInvalidOrPending(A)&&(A>=this._selectedIndex||this.steps.toArray()[A].editable)&&this._updateSelectedItemIndex(A)):this._selectedIndex=A}get selected(){return this.steps?this.steps.toArray()[this.selectedIndex]:void 0}set selected(me){this.selectedIndex=me&&this.steps?this.steps.toArray().indexOf(me):-1}get orientation(){return this._orientation}set orientation(me){this._orientation=me,this._keyManager&&this._keyManager.withVerticalOrientation("vertical"===me)}constructor(me,A,i){this._dir=me,this._changeDetectorRef=A,this._elementRef=i,this._destroyed=new h.x,this.steps=new s.n_E,this._sortedHeaders=new s.n_E,this._linear=!1,this._selectedIndex=0,this.selectionChange=new s.vpe,this._orientation="horizontal",this._groupId=z++}ngAfterContentInit(){this._steps.changes.pipe((0,d.O)(this._steps),(0,S.R)(this._destroyed)).subscribe(me=>{this.steps.reset(me.filter(A=>A._stepper===this)),this.steps.notifyOnChanges()})}ngAfterViewInit(){this._stepHeader.changes.pipe((0,d.O)(this._stepHeader),(0,S.R)(this._destroyed)).subscribe(me=>{this._sortedHeaders.reset(me.toArray().sort((A,i)=>A._elementRef.nativeElement.compareDocumentPosition(i._elementRef.nativeElement)&Node.DOCUMENT_POSITION_FOLLOWING?-1:1)),this._sortedHeaders.notifyOnChanges()}),this._keyManager=new t.Em(this._sortedHeaders).withWrap().withHomeAndEnd().withVerticalOrientation("vertical"===this._orientation),(this._dir?this._dir.change:(0,P.of)()).pipe((0,d.O)(this._layoutDirection()),(0,S.R)(this._destroyed)).subscribe(me=>this._keyManager.withHorizontalOrientation(me)),this._keyManager.updateActiveItem(this._selectedIndex),this.steps.changes.subscribe(()=>{this.selected||(this._selectedIndex=Math.max(this._selectedIndex-1,0))}),this._isValidIndex(this._selectedIndex)||(this._selectedIndex=0)}ngOnDestroy(){this._keyManager?.destroy(),this.steps.destroy(),this._sortedHeaders.destroy(),this._destroyed.next(),this._destroyed.complete()}next(){this.selectedIndex=Math.min(this._selectedIndex+1,this.steps.length-1)}previous(){this.selectedIndex=Math.max(this._selectedIndex-1,0)}reset(){this._updateSelectedItemIndex(0),this.steps.forEach(me=>me.reset()),this._stateChanged()}_getStepLabelId(me){return`cdk-step-label-${this._groupId}-${me}`}_getStepContentId(me){return`cdk-step-content-${this._groupId}-${me}`}_stateChanged(){this._changeDetectorRef.markForCheck()}_getAnimationDirection(me){const A=me-this._selectedIndex;return A<0?"rtl"===this._layoutDirection()?"next":"previous":A>0?"rtl"===this._layoutDirection()?"previous":"next":"current"}_getIndicatorType(me,A="number"){const i=this.steps.toArray()[me],a=this._isCurrentStep(me);return i._displayDefaultIndicatorType?this._getDefaultIndicatorLogic(i,a):this._getGuidelineLogic(i,a,A)}_getDefaultIndicatorLogic(me,A){return me._showError()&&me.hasError&&!A?"error":!me.completed||A?"number":me.editable?"edit":"done"}_getGuidelineLogic(me,A,i="number"){return me._showError()&&me.hasError&&!A?"error":me.completed&&!A?"done":me.completed&&A?i:me.editable&&A?"edit":i}_isCurrentStep(me){return this._selectedIndex===me}_getFocusIndex(){return this._keyManager?this._keyManager.activeItemIndex:this._selectedIndex}_updateSelectedItemIndex(me){const A=this.steps.toArray();this.selectionChange.emit({selectedIndex:me,previouslySelectedIndex:this._selectedIndex,selectedStep:A[me],previouslySelectedStep:A[this._selectedIndex]}),this._containsFocus()?this._keyManager.setActiveItem(me):this._keyManager.updateActiveItem(me),this._selectedIndex=me,this._stateChanged()}_onKeydown(me){const A=(0,I.Vb)(me),i=me.keyCode,a=this._keyManager;null==a.activeItemIndex||A||i!==I.L_&&i!==I.K5?a.setFocusOrigin("keyboard").onKeydown(me):(this.selectedIndex=a.activeItemIndex,me.preventDefault())}_anyControlsInvalidOrPending(me){return!!(this._linear&&me>=0)&&this.steps.toArray().slice(0,me).some(A=>{const i=A.stepControl;return(i?i.invalid||i.pending||!A.interacted:!A.completed)&&!A.optional&&!A._completedOverride})}_layoutDirection(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"}_containsFocus(){const me=this._elementRef.nativeElement,A=(0,C.ht)();return me===A||me.contains(A)}_isValidIndex(me){return me>-1&&(!this.steps||me<this.steps.length)}}return de.\u0275fac=function(me){return new(me||de)(s.Y36(e.Is,8),s.Y36(s.sBO),s.Y36(s.SBq))},de.\u0275dir=s.lG2({type:de,selectors:[["","cdkStepper",""]],contentQueries:function(me,A,i){if(1&me&&(s.Suo(i,ee,5),s.Suo(i,E,5)),2&me){let a;s.iGM(a=s.CRH())&&(A._steps=a),s.iGM(a=s.CRH())&&(A._stepHeader=a)}},inputs:{linear:"linear",selectedIndex:"selectedIndex",selected:"selected",orientation:"orientation"},outputs:{selectionChange:"selectionChange"},exportAs:["cdkStepper"]}),de})(),ue=(()=>{class de{constructor(me){this._stepper=me,this.type="submit"}}return de.\u0275fac=function(me){return new(me||de)(s.Y36(ie))},de.\u0275dir=s.lG2({type:de,selectors:[["button","cdkStepperNext",""]],hostVars:1,hostBindings:function(me,A){1&me&&s.NdJ("click",function(){return A._stepper.next()}),2&me&&s.Ikx("type",A.type)},inputs:{type:"type"}}),de})(),le=(()=>{class de{constructor(me){this._stepper=me,this.type="button"}}return de.\u0275fac=function(me){return new(me||de)(s.Y36(ie))},de.\u0275dir=s.lG2({type:de,selectors:[["button","cdkStepperPrevious",""]],hostVars:1,hostBindings:function(me,A){1&me&&s.NdJ("click",function(){return A._stepper.previous()}),2&me&&s.Ikx("type",A.type)},inputs:{type:"type"}}),de})(),ne=(()=>{class de{}return de.\u0275fac=function(me){return new(me||de)},de.\u0275mod=s.oAB({type:de}),de.\u0275inj=s.cJS({imports:[e.vT]}),de})()},7851:(Ve,q,p)=>{"use strict";p.d(q,{HI:()=>z,Hs:()=>$,Ud:()=>l,VY:()=>R,XJ:()=>u,Xx:()=>i,_0:()=>de,cu:()=>U,nZ:()=>T,rO:()=>K});var t=p(5017),e=p(5191),b=p(7579),I=p(1135),s=p(9646),C=p(5698),h=p(9300),P=p(2722),d=p(4650),S=p(1281),w=p(445);class O{constructor(){this.expansionModel=new t.Ov(!0)}toggle(m){this.expansionModel.toggle(this._trackByValue(m))}expand(m){this.expansionModel.select(this._trackByValue(m))}collapse(m){this.expansionModel.deselect(this._trackByValue(m))}isExpanded(m){return this.expansionModel.isSelected(this._trackByValue(m))}toggleDescendants(m){this.expansionModel.isSelected(this._trackByValue(m))?this.collapseDescendants(m):this.expandDescendants(m)}collapseAll(){this.expansionModel.clear()}expandDescendants(m){let n=[m];n.push(...this.getDescendants(m)),this.expansionModel.select(...n.map(_=>this._trackByValue(_)))}collapseDescendants(m){let n=[m];n.push(...this.getDescendants(m)),this.expansionModel.deselect(...n.map(_=>this._trackByValue(_)))}_trackByValue(m){return this.trackBy?this.trackBy(m):m}}class R extends O{constructor(m,n){super(),this.getChildren=m,this.options=n,this.options&&(this.trackBy=this.options.trackBy)}expandAll(){this.expansionModel.clear();const m=this.dataNodes.reduce((n,_)=>[...n,...this.getDescendants(_),_],[]);this.expansionModel.select(...m.map(n=>this._trackByValue(n)))}getDescendants(m){const n=[];return this._getDescendants(n,m),n.splice(1)}_getDescendants(m,n){m.push(n);const _=this.getChildren(n);Array.isArray(_)?_.forEach(B=>this._getDescendants(m,B)):(0,e.b)(_)&&_.pipe((0,C.q)(1),(0,h.h)(Boolean)).subscribe(B=>{for(const V of B)this._getDescendants(m,V)})}}const z=new d.OlP("CDK_TREE_NODE_OUTLET_NODE");let U=(()=>{class L{constructor(n,_){this.viewContainer=n,this._node=_}}return L.\u0275fac=function(n){return new(n||L)(d.Y36(d.s_b),d.Y36(z,8))},L.\u0275dir=d.lG2({type:L,selectors:[["","cdkTreeNodeOutlet",""]]}),L})();class W{constructor(m){this.$implicit=m}}let K=(()=>{class L{constructor(n){this.template=n}}return L.\u0275fac=function(n){return new(n||L)(d.Y36(d.Rgc))},L.\u0275dir=d.lG2({type:L,selectors:[["","cdkTreeNodeDef",""]],inputs:{when:["cdkTreeNodeDefWhen","when"]}}),L})(),de=(()=>{class L{get dataSource(){return this._dataSource}set dataSource(n){this._dataSource!==n&&this._switchDataSource(n)}constructor(n,_){this._differs=n,this._changeDetectorRef=_,this._onDestroy=new b.x,this._levels=new Map,this.viewChange=new I.X({start:0,end:Number.MAX_VALUE})}ngOnInit(){this._dataDiffer=this._differs.find([]).create(this.trackBy)}ngOnDestroy(){this._nodeOutlet.viewContainer.clear(),this.viewChange.complete(),this._onDestroy.next(),this._onDestroy.complete(),this._dataSource&&"function"==typeof this._dataSource.disconnect&&this.dataSource.disconnect(this),this._dataSubscription&&(this._dataSubscription.unsubscribe(),this._dataSubscription=null)}ngAfterContentChecked(){const n=this._nodeDefs.filter(_=>!_.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,P.R)(this._onDestroy)).subscribe(_=>this.renderNodeChanges(_)))}renderNodeChanges(n,_=this._dataDiffer,B=this._nodeOutlet.viewContainer,V){const X=_.diff(n);X&&(X.forEachOperation((Le,$e,We)=>{if(null==Le.previousIndex)this.insertNode(n[We],We,B,V);else if(null==We)B.remove($e),this._levels.delete(Le.item);else{const Fe=B.get($e);B.move(Fe,We)}}),this._changeDetectorRef.detectChanges())}_getNodeDef(n,_){return 1===this._nodeDefs.length?this._nodeDefs.first:this._nodeDefs.find(V=>V.when&&V.when(_,n))||this._defaultNodeDef}insertNode(n,_,B,V){const X=this._getNodeDef(n,_),Le=new W(n);Le.level=this.treeControl.getLevel?this.treeControl.getLevel(n):typeof V<"u"&&this._levels.has(V)?this._levels.get(V)+1:0,this._levels.set(n,Le.level),(B||this._nodeOutlet.viewContainer).createEmbeddedView(X.template,Le,_),$.mostRecentTreeNode&&($.mostRecentTreeNode.data=n)}}return L.\u0275fac=function(n){return new(n||L)(d.Y36(d.ZZ4),d.Y36(d.sBO))},L.\u0275cmp=d.Xpm({type:L,selectors:[["cdk-tree"]],contentQueries:function(n,_,B){if(1&n&&d.Suo(B,K,5),2&n){let V;d.iGM(V=d.CRH())&&(_._nodeDefs=V)}},viewQuery:function(n,_){if(1&n&&d.Gf(U,7),2&n){let B;d.iGM(B=d.CRH())&&(_._nodeOutlet=B.first)}},hostAttrs:["role","tree",1,"cdk-tree"],inputs:{dataSource:"dataSource",treeControl:"treeControl",trackBy:"trackBy"},exportAs:["cdkTree"],decls:1,vars:0,consts:[["cdkTreeNodeOutlet",""]],template:function(n,_){1&n&&d.GkF(0,0)},dependencies:[U],encapsulation:2}),L})(),$=(()=>{class L{get role(){return"treeitem"}set role(n){this._elementRef.nativeElement.setAttribute("role",n)}get data(){return this._data}set data(n){n!==this._data&&(this._data=n,this._setRoleFromData(),this._dataChanges.next())}get isExpanded(){return this._tree.treeControl.isExpanded(this._data)}get level(){return this._tree.treeControl.getLevel?this._tree.treeControl.getLevel(this._data):this._parentNodeAriaLevel}constructor(n,_){this._elementRef=n,this._tree=_,this._destroyed=new b.x,this._dataChanges=new b.x,L.mostRecentTreeNode=this,this.role="treeitem"}ngOnInit(){this._parentNodeAriaLevel=function me(L){let m=L.parentElement;for(;m&&!A(m);)m=m.parentElement;return m?m.classList.contains("cdk-nested-tree-node")?(0,S.su)(m.getAttribute("aria-level")):0:-1}(this._elementRef.nativeElement),this._elementRef.nativeElement.setAttribute("aria-level",`${this.level+1}`)}ngOnDestroy(){L.mostRecentTreeNode===this&&(L.mostRecentTreeNode=null),this._dataChanges.complete(),this._destroyed.next(),this._destroyed.complete()}focus(){this._elementRef.nativeElement.focus()}_setRoleFromData(){this.role="treeitem"}}return L.mostRecentTreeNode=null,L.\u0275fac=function(n){return new(n||L)(d.Y36(d.SBq),d.Y36(de))},L.\u0275dir=d.lG2({type:L,selectors:[["cdk-tree-node"]],hostAttrs:[1,"cdk-tree-node"],hostVars:1,hostBindings:function(n,_){2&n&&d.uIk("aria-expanded",_.isExpanded)},inputs:{role:"role"},exportAs:["cdkTreeNode"]}),L})();function A(L){const m=L.classList;return!(!m?.contains("cdk-nested-tree-node")&&!m?.contains("cdk-tree"))}let i=(()=>{class L 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,P.R)(this._destroyed)).subscribe(_=>this.updateChildrenNodes(_)),this.nodeOutlet.changes.pipe((0,P.R)(this._destroyed)).subscribe(()=>this.updateChildrenNodes())}ngOnInit(){super.ngOnInit()}ngOnDestroy(){this._clear(),super.ngOnDestroy()}updateChildrenNodes(n){const _=this._getNodeOutlet();n&&(this._children=n),_&&this._children?this._tree.renderNodeChanges(this._children,this._dataDiffer,_.viewContainer,this._data):this._dataDiffer.diff([])}_clear(){const n=this._getNodeOutlet();n&&(n.viewContainer.clear(),this._dataDiffer.diff([]))}_getNodeOutlet(){const n=this.nodeOutlet;return n&&n.find(_=>!_._node||_._node===this)}}return L.\u0275fac=function(n){return new(n||L)(d.Y36(d.SBq),d.Y36(de),d.Y36(d.ZZ4))},L.\u0275dir=d.lG2({type:L,selectors:[["cdk-nested-tree-node"]],contentQueries:function(n,_,B){if(1&n&&d.Suo(B,U,5),2&n){let V;d.iGM(V=d.CRH())&&(_.nodeOutlet=V)}},hostAttrs:[1,"cdk-nested-tree-node"],inputs:{role:"role",disabled:"disabled",tabIndex:"tabIndex"},exportAs:["cdkNestedTreeNode"],features:[d._Bn([{provide:$,useExisting:L},{provide:z,useExisting:L}]),d.qOj]}),L})();const a=/([A-Za-z%]+)$/;let u=(()=>{class L{get level(){return this._level}set level(n){this._setLevelInput(n)}get indent(){return this._indent}set indent(n){this._setIndentInput(n)}constructor(n,_,B,V){this._treeNode=n,this._tree=_,this._element=B,this._dir=V,this._destroyed=new b.x,this.indentUnits="px",this._indent=40,this._setPadding(),V&&V.change.pipe((0,P.R)(this._destroyed)).subscribe(()=>this._setPadding(!0)),n._dataChanges.subscribe(()=>this._setPadding())}ngOnDestroy(){this._destroyed.next(),this._destroyed.complete()}_paddingIndent(){const n=this._treeNode.data&&this._tree.treeControl.getLevel?this._tree.treeControl.getLevel(this._treeNode.data):null,_=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,V=this._dir&&"rtl"===this._dir.value?"paddingRight":"paddingLeft",X="paddingLeft"===V?"paddingRight":"paddingLeft";B.style[V]=_||"",B.style[X]="",this._currentPadding=_}}_setLevelInput(n){this._level=(0,S.su)(n,null),this._setPadding()}_setIndentInput(n){let _=n,B="px";if("string"==typeof n){const V=n.split(a);_=V[0],B=V[1]||B}this.indentUnits=B,this._indent=(0,S.su)(_),this._setPadding()}}return L.\u0275fac=function(n){return new(n||L)(d.Y36($),d.Y36(de),d.Y36(d.SBq),d.Y36(w.Is,8))},L.\u0275dir=d.lG2({type:L,selectors:[["","cdkTreeNodePadding",""]],inputs:{level:["cdkTreeNodePadding","level"],indent:["cdkTreeNodePaddingIndent","indent"]}}),L})(),l=(()=>{class L{get recursive(){return this._recursive}set recursive(n){this._recursive=(0,S.Ig)(n)}constructor(n,_){this._tree=n,this._treeNode=_,this._recursive=!1}_toggle(n){this.recursive?this._tree.treeControl.toggleDescendants(this._treeNode.data):this._tree.treeControl.toggle(this._treeNode.data),n.stopPropagation()}}return L.\u0275fac=function(n){return new(n||L)(d.Y36(de),d.Y36($))},L.\u0275dir=d.lG2({type:L,selectors:[["","cdkTreeNodeToggle",""]],hostBindings:function(n,_){1&n&&d.NdJ("click",function(V){return _._toggle(V)})},inputs:{recursive:["cdkTreeNodeToggleRecursive","recursive"]}}),L})(),T=(()=>{class L{}return L.\u0275fac=function(n){return new(n||L)},L.\u0275mod=d.oAB({type:L}),L.\u0275inj=d.cJS({}),L})()},6895:(Ve,q,p)=>{"use strict";p.d(q,{Do:()=>ee,ED:()=>Zn,EM:()=>gr,HT:()=>I,JF:()=>nr,JJ:()=>Mo,K0:()=>C,Mx:()=>Ji,NF:()=>pr,Nd:()=>wo,O5:()=>on,OU:()=>lo,Ov:()=>An,PC:()=>si,PM:()=>aa,RF:()=>Ia,S$:()=>U,Ts:()=>Er,V_:()=>d,Ye:()=>ie,b0:()=>K,bD:()=>Zr,ez:()=>ho,gd:()=>Xn,i8:()=>Nn,mk:()=>fe,n9:()=>Oa,q:()=>b,rS:()=>Fn,sg:()=>oi,tP:()=>gi,uU:()=>jn,w_:()=>s});var t=p(4650);let e=null;function b(){return e}function I(Ie){e||(e=Ie)}class s{}const C=new t.OlP("DocumentToken");let h=(()=>{class Ie{historyGo(j){throw new Error("Not implemented")}}return Ie.\u0275fac=function(j){return new(j||Ie)},Ie.\u0275prov=t.Yz7({token:Ie,factory:function(){return function P(){return(0,t.LFG)(S)}()},providedIn:"platform"}),Ie})();const d=new t.OlP("Location Initialized");let S=(()=>{class Ie extends h{constructor(j){super(),this._doc=j,this._location=window.location,this._history=window.history}getBaseHrefFromDOM(){return b().getBaseHref(this._doc)}onPopState(j){const Se=b().getGlobalEventTarget(this._doc,"window");return Se.addEventListener("popstate",j,!1),()=>Se.removeEventListener("popstate",j)}onHashChange(j){const Se=b().getGlobalEventTarget(this._doc,"window");return Se.addEventListener("hashchange",j,!1),()=>Se.removeEventListener("hashchange",j)}get href(){return this._location.href}get protocol(){return this._location.protocol}get hostname(){return this._location.hostname}get port(){return this._location.port}get pathname(){return this._location.pathname}get search(){return this._location.search}get hash(){return this._location.hash}set pathname(j){this._location.pathname=j}pushState(j,Se,ze){w()?this._history.pushState(j,Se,ze):this._location.hash=ze}replaceState(j,Se,ze){w()?this._history.replaceState(j,Se,ze):this._location.hash=ze}forward(){this._history.forward()}back(){this._history.back()}historyGo(j=0){this._history.go(j)}getState(){return this._history.state}}return Ie.\u0275fac=function(j){return new(j||Ie)(t.LFG(C))},Ie.\u0275prov=t.Yz7({token:Ie,factory:function(){return function O(){return new S((0,t.LFG)(C))}()},providedIn:"platform"}),Ie})();function w(){return!!window.history.pushState}function E(Ie,gt){if(0==Ie.length)return gt;if(0==gt.length)return Ie;let j=0;return Ie.endsWith("/")&&j++,gt.startsWith("/")&&j++,2==j?Ie+gt.substring(1):1==j?Ie+gt:Ie+"/"+gt}function R(Ie){const gt=Ie.match(/#|\?|$/),j=gt&&gt.index||Ie.length;return Ie.slice(0,j-("/"===Ie[j-1]?1:0))+Ie.slice(j)}function z(Ie){return Ie&&"?"!==Ie[0]?"?"+Ie:Ie}let U=(()=>{class Ie{historyGo(j){throw new Error("Not implemented")}}return Ie.\u0275fac=function(j){return new(j||Ie)},Ie.\u0275prov=t.Yz7({token:Ie,factory:function(){return(0,t.f3M)(K)},providedIn:"root"}),Ie})();const W=new t.OlP("appBaseHref");let K=(()=>{class Ie extends U{constructor(j,Se){super(),this._platformLocation=j,this._removeListenerFns=[],this._baseHref=Se??this._platformLocation.getBaseHrefFromDOM()??(0,t.f3M)(C).location?.origin??""}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(j){this._removeListenerFns.push(this._platformLocation.onPopState(j),this._platformLocation.onHashChange(j))}getBaseHref(){return this._baseHref}prepareExternalUrl(j){return E(this._baseHref,j)}path(j=!1){const Se=this._platformLocation.pathname+z(this._platformLocation.search),ze=this._platformLocation.hash;return ze&&j?`${Se}${ze}`:Se}pushState(j,Se,ze,yt){const Pe=this.prepareExternalUrl(ze+z(yt));this._platformLocation.pushState(j,Se,Pe)}replaceState(j,Se,ze,yt){const Pe=this.prepareExternalUrl(ze+z(yt));this._platformLocation.replaceState(j,Se,Pe)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(j=0){this._platformLocation.historyGo?.(j)}}return Ie.\u0275fac=function(j){return new(j||Ie)(t.LFG(h),t.LFG(W,8))},Ie.\u0275prov=t.Yz7({token:Ie,factory:Ie.\u0275fac,providedIn:"root"}),Ie})(),ee=(()=>{class Ie extends U{constructor(j,Se){super(),this._platformLocation=j,this._baseHref="",this._removeListenerFns=[],null!=Se&&(this._baseHref=Se)}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(j){this._removeListenerFns.push(this._platformLocation.onPopState(j),this._platformLocation.onHashChange(j))}getBaseHref(){return this._baseHref}path(j=!1){let Se=this._platformLocation.hash;return null==Se&&(Se="#"),Se.length>0?Se.substring(1):Se}prepareExternalUrl(j){const Se=E(this._baseHref,j);return Se.length>0?"#"+Se:Se}pushState(j,Se,ze,yt){let Pe=this.prepareExternalUrl(ze+z(yt));0==Pe.length&&(Pe=this._platformLocation.pathname),this._platformLocation.pushState(j,Se,Pe)}replaceState(j,Se,ze,yt){let Pe=this.prepareExternalUrl(ze+z(yt));0==Pe.length&&(Pe=this._platformLocation.pathname),this._platformLocation.replaceState(j,Se,Pe)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(j=0){this._platformLocation.historyGo?.(j)}}return Ie.\u0275fac=function(j){return new(j||Ie)(t.LFG(h),t.LFG(W,8))},Ie.\u0275prov=t.Yz7({token:Ie,factory:Ie.\u0275fac}),Ie})(),ie=(()=>{class Ie{constructor(j){this._subject=new t.vpe,this._urlChangeListeners=[],this._urlChangeSubscription=null,this._locationStrategy=j;const Se=this._locationStrategy.getBaseHref();this._basePath=function de(Ie){if(new RegExp("^(https?:)?//").test(Ie)){const[,j]=Ie.split(/\/\/[^\/]+/);return j}return Ie}(R(ne(Se))),this._locationStrategy.onPopState(ze=>{this._subject.emit({url:this.path(!0),pop:!0,state:ze.state,type:ze.type})})}ngOnDestroy(){this._urlChangeSubscription?.unsubscribe(),this._urlChangeListeners=[]}path(j=!1){return this.normalize(this._locationStrategy.path(j))}getState(){return this._locationStrategy.getState()}isCurrentPathEqualTo(j,Se=""){return this.path()==this.normalize(j+z(Se))}normalize(j){return Ie.stripTrailingSlash(function le(Ie,gt){return Ie&&new RegExp(`^${Ie}([/;?#]|$)`).test(gt)?gt.substring(Ie.length):gt}(this._basePath,ne(j)))}prepareExternalUrl(j){return j&&"/"!==j[0]&&(j="/"+j),this._locationStrategy.prepareExternalUrl(j)}go(j,Se="",ze=null){this._locationStrategy.pushState(ze,"",j,Se),this._notifyUrlChangeListeners(this.prepareExternalUrl(j+z(Se)),ze)}replaceState(j,Se="",ze=null){this._locationStrategy.replaceState(ze,"",j,Se),this._notifyUrlChangeListeners(this.prepareExternalUrl(j+z(Se)),ze)}forward(){this._locationStrategy.forward()}back(){this._locationStrategy.back()}historyGo(j=0){this._locationStrategy.historyGo?.(j)}onUrlChange(j){return this._urlChangeListeners.push(j),this._urlChangeSubscription||(this._urlChangeSubscription=this.subscribe(Se=>{this._notifyUrlChangeListeners(Se.url,Se.state)})),()=>{const Se=this._urlChangeListeners.indexOf(j);this._urlChangeListeners.splice(Se,1),0===this._urlChangeListeners.length&&(this._urlChangeSubscription?.unsubscribe(),this._urlChangeSubscription=null)}}_notifyUrlChangeListeners(j="",Se){this._urlChangeListeners.forEach(ze=>ze(j,Se))}subscribe(j,Se,ze){return this._subject.subscribe({next:j,error:Se,complete:ze})}}return Ie.normalizeQueryParams=z,Ie.joinWithSlash=E,Ie.stripTrailingSlash=R,Ie.\u0275fac=function(j){return new(j||Ie)(t.LFG(U))},Ie.\u0275prov=t.Yz7({token:Ie,factory:function(){return function ue(){return new ie((0,t.LFG)(U))}()},providedIn:"root"}),Ie})();function ne(Ie){return Ie.replace(/\/index.html$/,"")}var me=(()=>((me=me||{})[me.Decimal=0]="Decimal",me[me.Percent=1]="Percent",me[me.Currency=2]="Currency",me[me.Scientific=3]="Scientific",me))(),i=(()=>((i=i||{})[i.Format=0]="Format",i[i.Standalone=1]="Standalone",i))(),a=(()=>((a=a||{})[a.Narrow=0]="Narrow",a[a.Abbreviated=1]="Abbreviated",a[a.Wide=2]="Wide",a[a.Short=3]="Short",a))(),u=(()=>((u=u||{})[u.Short=0]="Short",u[u.Medium=1]="Medium",u[u.Long=2]="Long",u[u.Full=3]="Full",u))(),l=(()=>((l=l||{})[l.Decimal=0]="Decimal",l[l.Group=1]="Group",l[l.List=2]="List",l[l.PercentSign=3]="PercentSign",l[l.PlusSign=4]="PlusSign",l[l.MinusSign=5]="MinusSign",l[l.Exponential=6]="Exponential",l[l.SuperscriptingExponent=7]="SuperscriptingExponent",l[l.PerMille=8]="PerMille",l[l.Infinity=9]="Infinity",l[l.NaN=10]="NaN",l[l.TimeSeparator=11]="TimeSeparator",l[l.CurrencyDecimal=12]="CurrencyDecimal",l[l.CurrencyGroup=13]="CurrencyGroup",l))();function X(Ie,gt){return te((0,t.cg1)(Ie)[t.wAp.DateFormat],gt)}function Le(Ie,gt){return te((0,t.cg1)(Ie)[t.wAp.TimeFormat],gt)}function $e(Ie,gt){return te((0,t.cg1)(Ie)[t.wAp.DateTimeFormat],gt)}function We(Ie,gt){const j=(0,t.cg1)(Ie),Se=j[t.wAp.NumberSymbols][gt];if(typeof Se>"u"){if(gt===l.CurrencyDecimal)return j[t.wAp.NumberSymbols][l.Decimal];if(gt===l.CurrencyGroup)return j[t.wAp.NumberSymbols][l.Group]}return Se}function je(Ie){if(!Ie[t.wAp.ExtraData])throw new Error(`Missing extra locale data for the locale "${Ie[t.wAp.LocaleId]}". Use "registerLocaleData" to load new data. See the "I18n guide" on angular.io to know more.`)}function te(Ie,gt){for(let j=gt;j>-1;j--)if(typeof Ie[j]<"u")return Ie[j];throw new Error("Locale data API: locale data undefined")}function Ue(Ie){const[gt,j]=Ie.split(":");return{hours:+gt,minutes:+j}}const ft=/^(\d{4,})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/,Je={},dt=/((?:[^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))(),pt=(()=>((pt=pt||{})[pt.FullYear=0]="FullYear",pt[pt.Month=1]="Month",pt[pt.Date=2]="Date",pt[pt.Hours=3]="Hours",pt[pt.Minutes=4]="Minutes",pt[pt.Seconds=5]="Seconds",pt[pt.FractionalSeconds=6]="FractionalSeconds",pt[pt.Day=7]="Day",pt))(),ot=(()=>((ot=ot||{})[ot.DayPeriods=0]="DayPeriods",ot[ot.Days=1]="Days",ot[ot.Months=2]="Months",ot[ot.Eras=3]="Eras",ot))();function wt(Ie,gt,j,Se){let ze=function tt(Ie){if(ti(Ie))return Ie;if("number"==typeof Ie&&!isNaN(Ie))return new Date(Ie);if("string"==typeof Ie){if(Ie=Ie.trim(),/^(\d{4}(-\d{1,2}(-\d{1,2})?)?)$/.test(Ie)){const[ze,yt=1,Pe=1]=Ie.split("-").map(jt=>+jt);return ke(ze,yt-1,Pe)}const j=parseFloat(Ie);if(!isNaN(Ie-j))return new Date(j);let Se;if(Se=Ie.match(ft))return function vt(Ie){const gt=new Date(0);let j=0,Se=0;const ze=Ie[8]?gt.setUTCFullYear:gt.setFullYear,yt=Ie[8]?gt.setUTCHours:gt.setHours;Ie[9]&&(j=Number(Ie[9]+Ie[10]),Se=Number(Ie[9]+Ie[11])),ze.call(gt,Number(Ie[1]),Number(Ie[2])-1,Number(Ie[3]));const Pe=Number(Ie[4]||0)-j,jt=Number(Ie[5]||0)-Se,li=Number(Ie[6]||0),$t=Math.floor(1e3*parseFloat("0."+(Ie[7]||0)));return yt.call(gt,Pe,jt,li,$t),gt}(Se)}const gt=new Date(Ie);if(!ti(gt))throw new Error(`Unable to convert "${Ie}" into a date`);return gt}(Ie);gt=Ke(j,gt)||gt;let jt,Pe=[];for(;gt;){if(jt=dt.exec(gt),!jt){Pe.push(gt);break}{Pe=Pe.concat(jt.slice(1));const _i=Pe.pop();if(!_i)break;gt=_i}}let li=ze.getTimezoneOffset();Se&&(li=Gt(Se,li),ze=function ut(Ie,gt,j){const Se=j?-1:1,ze=Ie.getTimezoneOffset();return function ni(Ie,gt){return(Ie=new Date(Ie.getTime())).setMinutes(Ie.getMinutes()+gt),Ie}(Ie,Se*(Gt(gt,ze)-ze))}(ze,Se,!0));let $t="";return Pe.forEach(_i=>{const Mi=function ii(Ie){if(at[Ie])return at[Ie];let gt;switch(Ie){case"G":case"GG":case"GGG":gt=Ye(ot.Eras,a.Abbreviated);break;case"GGGG":gt=Ye(ot.Eras,a.Wide);break;case"GGGGG":gt=Ye(ot.Eras,a.Narrow);break;case"y":gt=Tt(pt.FullYear,1,0,!1,!0);break;case"yy":gt=Tt(pt.FullYear,2,0,!0,!0);break;case"yyy":gt=Tt(pt.FullYear,3,0,!1,!0);break;case"yyyy":gt=Tt(pt.FullYear,4,0,!1,!0);break;case"Y":gt=He(1);break;case"YY":gt=He(2,!0);break;case"YYY":gt=He(3);break;case"YYYY":gt=He(4);break;case"M":case"L":gt=Tt(pt.Month,1,1);break;case"MM":case"LL":gt=Tt(pt.Month,2,1);break;case"MMM":gt=Ye(ot.Months,a.Abbreviated);break;case"MMMM":gt=Ye(ot.Months,a.Wide);break;case"MMMMM":gt=Ye(ot.Months,a.Narrow);break;case"LLL":gt=Ye(ot.Months,a.Abbreviated,i.Standalone);break;case"LLLL":gt=Ye(ot.Months,a.Wide,i.Standalone);break;case"LLLLL":gt=Ye(ot.Months,a.Narrow,i.Standalone);break;case"w":gt=be(1);break;case"ww":gt=be(2);break;case"W":gt=be(1,!0);break;case"d":gt=Tt(pt.Date,1);break;case"dd":gt=Tt(pt.Date,2);break;case"c":case"cc":gt=Tt(pt.Day,1);break;case"ccc":gt=Ye(ot.Days,a.Abbreviated,i.Standalone);break;case"cccc":gt=Ye(ot.Days,a.Wide,i.Standalone);break;case"ccccc":gt=Ye(ot.Days,a.Narrow,i.Standalone);break;case"cccccc":gt=Ye(ot.Days,a.Short,i.Standalone);break;case"E":case"EE":case"EEE":gt=Ye(ot.Days,a.Abbreviated);break;case"EEEE":gt=Ye(ot.Days,a.Wide);break;case"EEEEE":gt=Ye(ot.Days,a.Narrow);break;case"EEEEEE":gt=Ye(ot.Days,a.Short);break;case"a":case"aa":case"aaa":gt=Ye(ot.DayPeriods,a.Abbreviated);break;case"aaaa":gt=Ye(ot.DayPeriods,a.Wide);break;case"aaaaa":gt=Ye(ot.DayPeriods,a.Narrow);break;case"b":case"bb":case"bbb":gt=Ye(ot.DayPeriods,a.Abbreviated,i.Standalone,!0);break;case"bbbb":gt=Ye(ot.DayPeriods,a.Wide,i.Standalone,!0);break;case"bbbbb":gt=Ye(ot.DayPeriods,a.Narrow,i.Standalone,!0);break;case"B":case"BB":case"BBB":gt=Ye(ot.DayPeriods,a.Abbreviated,i.Format,!0);break;case"BBBB":gt=Ye(ot.DayPeriods,a.Wide,i.Format,!0);break;case"BBBBB":gt=Ye(ot.DayPeriods,a.Narrow,i.Format,!0);break;case"h":gt=Tt(pt.Hours,1,-12);break;case"hh":gt=Tt(pt.Hours,2,-12);break;case"H":gt=Tt(pt.Hours,1);break;case"HH":gt=Tt(pt.Hours,2);break;case"m":gt=Tt(pt.Minutes,1);break;case"mm":gt=Tt(pt.Minutes,2);break;case"s":gt=Tt(pt.Seconds,1);break;case"ss":gt=Tt(pt.Seconds,2);break;case"S":gt=Tt(pt.FractionalSeconds,1);break;case"SS":gt=Tt(pt.FractionalSeconds,2);break;case"SSS":gt=Tt(pt.FractionalSeconds,3);break;case"Z":case"ZZ":case"ZZZ":gt=Mt(Et.Short);break;case"ZZZZZ":gt=Mt(Et.Extended);break;case"O":case"OO":case"OOO":case"z":case"zz":case"zzz":gt=Mt(Et.ShortGMT);break;case"OOOO":case"ZZZZ":case"zzzz":gt=Mt(Et.Long);break;default:return null}return at[Ie]=gt,gt}(_i);$t+=Mi?Mi(ze,j,li):"''"===_i?"'":_i.replace(/(^'|'$)/g,"").replace(/''/g,"'")}),$t}function ke(Ie,gt,j){const Se=new Date(0);return Se.setFullYear(Ie,gt,j),Se.setHours(0,0,0),Se}function Ke(Ie,gt){const j=function T(Ie){return(0,t.cg1)(Ie)[t.wAp.LocaleId]}(Ie);if(Je[j]=Je[j]||{},Je[j][gt])return Je[j][gt];let Se="";switch(gt){case"shortDate":Se=X(Ie,u.Short);break;case"mediumDate":Se=X(Ie,u.Medium);break;case"longDate":Se=X(Ie,u.Long);break;case"fullDate":Se=X(Ie,u.Full);break;case"shortTime":Se=Le(Ie,u.Short);break;case"mediumTime":Se=Le(Ie,u.Medium);break;case"longTime":Se=Le(Ie,u.Long);break;case"fullTime":Se=Le(Ie,u.Full);break;case"short":const ze=Ke(Ie,"shortTime"),yt=Ke(Ie,"shortDate");Se=xt($e(Ie,u.Short),[ze,yt]);break;case"medium":const Pe=Ke(Ie,"mediumTime"),jt=Ke(Ie,"mediumDate");Se=xt($e(Ie,u.Medium),[Pe,jt]);break;case"long":const li=Ke(Ie,"longTime"),$t=Ke(Ie,"longDate");Se=xt($e(Ie,u.Long),[li,$t]);break;case"full":const _i=Ke(Ie,"fullTime"),Mi=Ke(Ie,"fullDate");Se=xt($e(Ie,u.Full),[_i,Mi])}return Se&&(Je[j][gt]=Se),Se}function xt(Ie,gt){return gt&&(Ie=Ie.replace(/\{([^}]+)}/g,function(j,Se){return null!=gt&&Se in gt?gt[Se]:j})),Ie}function Y(Ie,gt,j="-",Se,ze){let yt="";(Ie<0||ze&&Ie<=0)&&(ze?Ie=1-Ie:(Ie=-Ie,yt=j));let Pe=String(Ie);for(;Pe.length<gt;)Pe="0"+Pe;return Se&&(Pe=Pe.slice(Pe.length-gt)),yt+Pe}function Tt(Ie,gt,j=0,Se=!1,ze=!1){return function(yt,Pe){let jt=function Qe(Ie,gt){switch(Ie){case pt.FullYear:return gt.getFullYear();case pt.Month:return gt.getMonth();case pt.Date:return gt.getDate();case pt.Hours:return gt.getHours();case pt.Minutes:return gt.getMinutes();case pt.Seconds:return gt.getSeconds();case pt.FractionalSeconds:return gt.getMilliseconds();case pt.Day:return gt.getDay();default:throw new Error(`Unknown DateType value "${Ie}".`)}}(Ie,yt);if((j>0||jt>-j)&&(jt+=j),Ie===pt.Hours)0===jt&&-12===j&&(jt=12);else if(Ie===pt.FractionalSeconds)return function Re(Ie,gt){return Y(Ie,3).substring(0,gt)}(jt,gt);const li=We(Pe,l.MinusSign);return Y(jt,gt,li,Se,ze)}}function Ye(Ie,gt,j=i.Format,Se=!1){return function(ze,yt){return function Ht(Ie,gt,j,Se,ze,yt){switch(j){case ot.Months:return function n(Ie,gt,j){const Se=(0,t.cg1)(Ie),yt=te([Se[t.wAp.MonthsFormat],Se[t.wAp.MonthsStandalone]],gt);return te(yt,j)}(gt,ze,Se)[Ie.getMonth()];case ot.Days:return function m(Ie,gt,j){const Se=(0,t.cg1)(Ie),yt=te([Se[t.wAp.DaysFormat],Se[t.wAp.DaysStandalone]],gt);return te(yt,j)}(gt,ze,Se)[Ie.getDay()];case ot.DayPeriods:const Pe=Ie.getHours(),jt=Ie.getMinutes();if(yt){const $t=function Ae(Ie){const gt=(0,t.cg1)(Ie);return je(gt),(gt[t.wAp.ExtraData][2]||[]).map(Se=>"string"==typeof Se?Ue(Se):[Ue(Se[0]),Ue(Se[1])])}(gt),_i=function he(Ie,gt,j){const Se=(0,t.cg1)(Ie);je(Se);const yt=te([Se[t.wAp.ExtraData][0],Se[t.wAp.ExtraData][1]],gt)||[];return te(yt,j)||[]}(gt,ze,Se),Mi=$t.findIndex(Hi=>{if(Array.isArray(Hi)){const[Zi,nn]=Hi,xn=Pe>=Zi.hours&&jt>=Zi.minutes,ea=Pe<nn.hours||Pe===nn.hours&&jt<nn.minutes;if(Zi.hours<nn.hours){if(xn&&ea)return!0}else if(xn||ea)return!0}else if(Hi.hours===Pe&&Hi.minutes===jt)return!0;return!1});if(-1!==Mi)return _i[Mi]}return function L(Ie,gt,j){const Se=(0,t.cg1)(Ie),yt=te([Se[t.wAp.DayPeriodsFormat],Se[t.wAp.DayPeriodsStandalone]],gt);return te(yt,j)}(gt,ze,Se)[Pe<12?0:1];case ot.Eras:return function _(Ie,gt){return te((0,t.cg1)(Ie)[t.wAp.Eras],gt)}(gt,Se)[Ie.getFullYear()<=0?0:1];default:throw new Error(`unexpected translation type ${j}`)}}(ze,yt,Ie,gt,j,Se)}}function Mt(Ie){return function(gt,j,Se){const ze=-1*Se,yt=We(j,l.MinusSign),Pe=ze>0?Math.floor(ze/60):Math.ceil(ze/60);switch(Ie){case Et.Short:return(ze>=0?"+":"")+Y(Pe,2,yt)+Y(Math.abs(ze%60),2,yt);case Et.ShortGMT:return"GMT"+(ze>=0?"+":"")+Y(Pe,1,yt);case Et.Long:return"GMT"+(ze>=0?"+":"")+Y(Pe,2,yt)+":"+Y(Math.abs(ze%60),2,yt);case Et.Extended:return 0===Se?"Z":(ze>=0?"+":"")+Y(Pe,2,yt)+":"+Y(Math.abs(ze%60),2,yt);default:throw new Error(`Unknown zone width "${Ie}"`)}}}function J(Ie){return ke(Ie.getFullYear(),Ie.getMonth(),Ie.getDate()+(4-Ie.getDay()))}function be(Ie,gt=!1){return function(j,Se){let ze;if(gt){const yt=new Date(j.getFullYear(),j.getMonth(),1).getDay()-1,Pe=j.getDate();ze=1+Math.floor((Pe+yt)/7)}else{const yt=J(j),Pe=function we(Ie){const gt=ke(Ie,0,1).getDay();return ke(Ie,0,1+(gt<=4?4:11)-gt)}(yt.getFullYear()),jt=yt.getTime()-Pe.getTime();ze=1+Math.round(jt/6048e5)}return Y(ze,Ie,We(Se,l.MinusSign))}}function He(Ie,gt=!1){return function(j,Se){return Y(J(j).getFullYear(),Ie,We(Se,l.MinusSign),gt)}}const at={};function Gt(Ie,gt){Ie=Ie.replace(/:/g,"");const j=Date.parse("Jan 01, 1970 00:00:00 "+Ie)/6e4;return isNaN(j)?gt:j}function ti(Ie){return Ie instanceof Date&&!isNaN(Ie.valueOf())}const Ut=/^(\d+)?\.((\d+)(-(\d+))?)?$/;function mi(Ie){const gt=parseInt(Ie);if(isNaN(gt))throw new Error("Invalid integer literal when parsing "+Ie);return gt}function Ji(Ie,gt){gt=encodeURIComponent(gt);for(const j of Ie.split(";")){const Se=j.indexOf("="),[ze,yt]=-1==Se?[j,""]:[j.slice(0,Se),j.slice(Se+1)];if(ze.trim()===gt)return decodeURIComponent(yt)}return null}const Wt=/\s+/,Jt=[];let fe=(()=>{class Ie{constructor(j,Se,ze,yt){this._iterableDiffers=j,this._keyValueDiffers=Se,this._ngEl=ze,this._renderer=yt,this.initialClasses=Jt,this.stateMap=new Map}set klass(j){this.initialClasses=null!=j?j.trim().split(Wt):Jt}set ngClass(j){this.rawClass="string"==typeof j?j.trim().split(Wt):j}ngDoCheck(){for(const Se of this.initialClasses)this._updateState(Se,!0);const j=this.rawClass;if(Array.isArray(j)||j instanceof Set)for(const Se of j)this._updateState(Se,!0);else if(null!=j)for(const Se of Object.keys(j))this._updateState(Se,Boolean(j[Se]));this._applyStateDiff()}_updateState(j,Se){const ze=this.stateMap.get(j);void 0!==ze?(ze.enabled!==Se&&(ze.changed=!0,ze.enabled=Se),ze.touched=!0):this.stateMap.set(j,{enabled:Se,changed:!0,touched:!0})}_applyStateDiff(){for(const j of this.stateMap){const Se=j[0],ze=j[1];ze.changed?(this._toggleClass(Se,ze.enabled),ze.changed=!1):ze.touched||(ze.enabled&&this._toggleClass(Se,!1),this.stateMap.delete(Se)),ze.touched=!1}}_toggleClass(j,Se){(j=j.trim()).length>0&&j.split(Wt).forEach(ze=>{Se?this._renderer.addClass(this._ngEl.nativeElement,ze):this._renderer.removeClass(this._ngEl.nativeElement,ze)})}}return Ie.\u0275fac=function(j){return new(j||Ie)(t.Y36(t.ZZ4),t.Y36(t.aQg),t.Y36(t.SBq),t.Y36(t.Qsj))},Ie.\u0275dir=t.lG2({type:Ie,selectors:[["","ngClass",""]],inputs:{klass:["class","klass"],ngClass:"ngClass"},standalone:!0}),Ie})();class zt{constructor(gt,j,Se,ze){this.$implicit=gt,this.ngForOf=j,this.index=Se,this.count=ze}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 oi=(()=>{class Ie{set ngForOf(j){this._ngForOf=j,this._ngForOfDirty=!0}set ngForTrackBy(j){this._trackByFn=j}get ngForTrackBy(){return this._trackByFn}constructor(j,Se,ze){this._viewContainer=j,this._template=Se,this._differs=ze,this._ngForOf=null,this._ngForOfDirty=!0,this._differ=null}set ngForTemplate(j){j&&(this._template=j)}ngDoCheck(){if(this._ngForOfDirty){this._ngForOfDirty=!1;const j=this._ngForOf;!this._differ&&j&&(this._differ=this._differs.find(j).create(this.ngForTrackBy))}if(this._differ){const j=this._differ.diff(this._ngForOf);j&&this._applyChanges(j)}}_applyChanges(j){const Se=this._viewContainer;j.forEachOperation((ze,yt,Pe)=>{if(null==ze.previousIndex)Se.createEmbeddedView(this._template,new zt(ze.item,this._ngForOf,-1,-1),null===Pe?void 0:Pe);else if(null==Pe)Se.remove(null===yt?void 0:yt);else if(null!==yt){const jt=Se.get(yt);Se.move(jt,Pe),Yt(jt,ze)}});for(let ze=0,yt=Se.length;ze<yt;ze++){const jt=Se.get(ze).context;jt.index=ze,jt.count=yt,jt.ngForOf=this._ngForOf}j.forEachIdentityChange(ze=>{Yt(Se.get(ze.currentIndex),ze)})}static ngTemplateContextGuard(j,Se){return!0}}return Ie.\u0275fac=function(j){return new(j||Ie)(t.Y36(t.s_b),t.Y36(t.Rgc),t.Y36(t.ZZ4))},Ie.\u0275dir=t.lG2({type:Ie,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"},standalone:!0}),Ie})();function Yt(Ie,gt){Ie.context.$implicit=gt.item}let on=(()=>{class Ie{constructor(j,Se){this._viewContainer=j,this._context=new Ki,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=Se}set ngIf(j){this._context.$implicit=this._context.ngIf=j,this._updateView()}set ngIfThen(j){pa("ngIfThen",j),this._thenTemplateRef=j,this._thenViewRef=null,this._updateView()}set ngIfElse(j){pa("ngIfElse",j),this._elseTemplateRef=j,this._elseViewRef=null,this._updateView()}_updateView(){this._context.$implicit?this._thenViewRef||(this._viewContainer.clear(),this._elseViewRef=null,this._thenTemplateRef&&(this._thenViewRef=this._viewContainer.createEmbeddedView(this._thenTemplateRef,this._context))):this._elseViewRef||(this._viewContainer.clear(),this._thenViewRef=null,this._elseTemplateRef&&(this._elseViewRef=this._viewContainer.createEmbeddedView(this._elseTemplateRef,this._context)))}static ngTemplateContextGuard(j,Se){return!0}}return Ie.\u0275fac=function(j){return new(j||Ie)(t.Y36(t.s_b),t.Y36(t.Rgc))},Ie.\u0275dir=t.lG2({type:Ie,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"},standalone:!0}),Ie})();class Ki{constructor(){this.$implicit=null,this.ngIf=null}}function pa(Ie,gt){if(gt&&!gt.createEmbeddedView)throw new Error(`${Ie} must be a TemplateRef, but received '${(0,t.AaK)(gt)}'.`)}class sa{constructor(gt,j){this._viewContainerRef=gt,this._templateRef=j,this._created=!1}create(){this._created=!0,this._viewContainerRef.createEmbeddedView(this._templateRef)}destroy(){this._created=!1,this._viewContainerRef.clear()}enforceState(gt){gt&&!this._created?this.create():!gt&&this._created&&this.destroy()}}let Ia=(()=>{class Ie{constructor(){this._defaultViews=[],this._defaultUsed=!1,this._caseCount=0,this._lastCaseCheckIndex=0,this._lastCasesMatched=!1}set ngSwitch(j){this._ngSwitch=j,0===this._caseCount&&this._updateDefaultCases(!0)}_addCase(){return this._caseCount++}_addDefault(j){this._defaultViews.push(j)}_matchCase(j){const Se=j==this._ngSwitch;return this._lastCasesMatched=this._lastCasesMatched||Se,this._lastCaseCheckIndex++,this._lastCaseCheckIndex===this._caseCount&&(this._updateDefaultCases(!this._lastCasesMatched),this._lastCaseCheckIndex=0,this._lastCasesMatched=!1),Se}_updateDefaultCases(j){if(this._defaultViews.length>0&&j!==this._defaultUsed){this._defaultUsed=j;for(const Se of this._defaultViews)Se.enforceState(j)}}}return Ie.\u0275fac=function(j){return new(j||Ie)},Ie.\u0275dir=t.lG2({type:Ie,selectors:[["","ngSwitch",""]],inputs:{ngSwitch:"ngSwitch"},standalone:!0}),Ie})(),Oa=(()=>{class Ie{constructor(j,Se,ze){this.ngSwitch=ze,ze._addCase(),this._view=new sa(j,Se)}ngDoCheck(){this._view.enforceState(this.ngSwitch._matchCase(this.ngSwitchCase))}}return Ie.\u0275fac=function(j){return new(j||Ie)(t.Y36(t.s_b),t.Y36(t.Rgc),t.Y36(Ia,9))},Ie.\u0275dir=t.lG2({type:Ie,selectors:[["","ngSwitchCase",""]],inputs:{ngSwitchCase:"ngSwitchCase"},standalone:!0}),Ie})(),Zn=(()=>{class Ie{constructor(j,Se,ze){ze._addDefault(new sa(j,Se))}}return Ie.\u0275fac=function(j){return new(j||Ie)(t.Y36(t.s_b),t.Y36(t.Rgc),t.Y36(Ia,9))},Ie.\u0275dir=t.lG2({type:Ie,selectors:[["","ngSwitchDefault",""]],standalone:!0}),Ie})(),si=(()=>{class Ie{constructor(j,Se,ze){this._ngEl=j,this._differs=Se,this._renderer=ze,this._ngStyle=null,this._differ=null}set ngStyle(j){this._ngStyle=j,!this._differ&&j&&(this._differ=this._differs.find(j).create())}ngDoCheck(){if(this._differ){const j=this._differ.diff(this._ngStyle);j&&this._applyChanges(j)}}_setStyle(j,Se){const[ze,yt]=j.split("."),Pe=-1===ze.indexOf("-")?void 0:t.JOm.DashCase;null!=Se?this._renderer.setStyle(this._ngEl.nativeElement,ze,yt?`${Se}${yt}`:Se,Pe):this._renderer.removeStyle(this._ngEl.nativeElement,ze,Pe)}_applyChanges(j){j.forEachRemovedItem(Se=>this._setStyle(Se.key,null)),j.forEachAddedItem(Se=>this._setStyle(Se.key,Se.currentValue)),j.forEachChangedItem(Se=>this._setStyle(Se.key,Se.currentValue))}}return Ie.\u0275fac=function(j){return new(j||Ie)(t.Y36(t.SBq),t.Y36(t.aQg),t.Y36(t.Qsj))},Ie.\u0275dir=t.lG2({type:Ie,selectors:[["","ngStyle",""]],inputs:{ngStyle:"ngStyle"},standalone:!0}),Ie})(),gi=(()=>{class Ie{constructor(j){this._viewContainerRef=j,this._viewRef=null,this.ngTemplateOutletContext=null,this.ngTemplateOutlet=null,this.ngTemplateOutletInjector=null}ngOnChanges(j){if(j.ngTemplateOutlet||j.ngTemplateOutletInjector){const Se=this._viewContainerRef;if(this._viewRef&&Se.remove(Se.indexOf(this._viewRef)),this.ngTemplateOutlet){const{ngTemplateOutlet:ze,ngTemplateOutletContext:yt,ngTemplateOutletInjector:Pe}=this;this._viewRef=Se.createEmbeddedView(ze,yt,Pe?{injector:Pe}:void 0)}else this._viewRef=null}else this._viewRef&&j.ngTemplateOutletContext&&this.ngTemplateOutletContext&&(this._viewRef.context=this.ngTemplateOutletContext)}}return Ie.\u0275fac=function(j){return new(j||Ie)(t.Y36(t.s_b))},Ie.\u0275dir=t.lG2({type:Ie,selectors:[["","ngTemplateOutlet",""]],inputs:{ngTemplateOutletContext:"ngTemplateOutletContext",ngTemplateOutlet:"ngTemplateOutlet",ngTemplateOutletInjector:"ngTemplateOutletInjector"},standalone:!0,features:[t.TTD]}),Ie})();function Vi(Ie,gt){return new t.vHH(2100,!1)}class fn{createSubscription(gt,j){return gt.subscribe({next:j,error:Se=>{throw Se}})}dispose(gt){gt.unsubscribe()}}class Vn{createSubscription(gt,j){return gt.then(j,Se=>{throw Se})}dispose(gt){}}const zn=new Vn,ga=new fn;let An=(()=>{class Ie{constructor(j){this._latestValue=null,this._subscription=null,this._obj=null,this._strategy=null,this._ref=j}ngOnDestroy(){this._subscription&&this._dispose(),this._ref=null}transform(j){return this._obj?j!==this._obj?(this._dispose(),this.transform(j)):this._latestValue:(j&&this._subscribe(j),this._latestValue)}_subscribe(j){this._obj=j,this._strategy=this._selectStrategy(j),this._subscription=this._strategy.createSubscription(j,Se=>this._updateLatestValue(j,Se))}_selectStrategy(j){if((0,t.QGY)(j))return zn;if((0,t.F4k)(j))return ga;throw Vi()}_dispose(){this._strategy.dispose(this._subscription),this._latestValue=null,this._subscription=null,this._obj=null}_updateLatestValue(j,Se){j===this._obj&&(this._latestValue=Se,this._ref.markForCheck())}}return Ie.\u0275fac=function(j){return new(j||Ie)(t.Y36(t.sBO,16))},Ie.\u0275pipe=t.Yjl({name:"async",type:Ie,pure:!1,standalone:!0}),Ie})(),Nn=(()=>{class Ie{transform(j){if(null==j)return null;if("string"!=typeof j)throw Vi();return j.toLowerCase()}}return Ie.\u0275fac=function(j){return new(j||Ie)},Ie.\u0275pipe=t.Yjl({name:"lowercase",type:Ie,pure:!0,standalone:!0}),Ie})();const jr=/(?:[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 Fn=(()=>{class Ie{transform(j){if(null==j)return null;if("string"!=typeof j)throw Vi();return j.replace(jr,Se=>Se[0].toUpperCase()+Se.slice(1).toLowerCase())}}return Ie.\u0275fac=function(j){return new(j||Ie)},Ie.\u0275pipe=t.Yjl({name:"titlecase",type:Ie,pure:!0,standalone:!0}),Ie})(),Xn=(()=>{class Ie{transform(j){if(null==j)return null;if("string"!=typeof j)throw Vi();return j.toUpperCase()}}return Ie.\u0275fac=function(j){return new(j||Ie)},Ie.\u0275pipe=t.Yjl({name:"uppercase",type:Ie,pure:!0,standalone:!0}),Ie})();const Sr=new t.OlP("DATE_PIPE_DEFAULT_TIMEZONE"),tr=new t.OlP("DATE_PIPE_DEFAULT_OPTIONS");let jn=(()=>{class Ie{constructor(j,Se,ze){this.locale=j,this.defaultTimezone=Se,this.defaultOptions=ze}transform(j,Se,ze,yt){if(null==j||""===j||j!=j)return null;try{return wt(j,Se??this.defaultOptions?.dateFormat??"mediumDate",yt||this.locale,ze??this.defaultOptions?.timezone??this.defaultTimezone??void 0)}catch(Pe){throw Vi()}}}return Ie.\u0275fac=function(j){return new(j||Ie)(t.Y36(t.soG,16),t.Y36(Sr,24),t.Y36(tr,24))},Ie.\u0275pipe=t.Yjl({name:"date",type:Ie,pure:!0,standalone:!0}),Ie})(),Er=(()=>{class Ie{transform(j){return JSON.stringify(j,null,2)}}return Ie.\u0275fac=function(j){return new(j||Ie)},Ie.\u0275pipe=t.Yjl({name:"json",type:Ie,pure:!1,standalone:!0}),Ie})(),wo=(()=>{class Ie{constructor(j){this.differs=j,this.keyValues=[],this.compareFn=wa}transform(j,Se=wa){if(!j||!(j instanceof Map)&&"object"!=typeof j)return null;this.differ||(this.differ=this.differs.find(j).create());const ze=this.differ.diff(j),yt=Se!==this.compareFn;return ze&&(this.keyValues=[],ze.forEachItem(Pe=>{this.keyValues.push(function Qr(Ie,gt){return{key:Ie,value:gt}}(Pe.key,Pe.currentValue))})),(ze||yt)&&(this.keyValues.sort(Se),this.compareFn=Se),this.keyValues}}return Ie.\u0275fac=function(j){return new(j||Ie)(t.Y36(t.aQg,16))},Ie.\u0275pipe=t.Yjl({name:"keyvalue",type:Ie,pure:!1,standalone:!0}),Ie})();function wa(Ie,gt){const j=Ie.key,Se=gt.key;if(j===Se)return 0;if(void 0===j)return 1;if(void 0===Se)return-1;if(null===j)return 1;if(null===Se)return-1;if("string"==typeof j&&"string"==typeof Se)return j<Se?-1:1;if("number"==typeof j&&"number"==typeof Se)return j-Se;if("boolean"==typeof j&&"boolean"==typeof Se)return j<Se?-1:1;const ze=String(j),yt=String(Se);return ze==yt?0:ze<yt?-1:1}let Mo=(()=>{class Ie{constructor(j){this._locale=j}transform(j,Se,ze){if(!function so(Ie){return!(null==Ie||""===Ie||Ie!=Ie)}(j))return null;ze=ze||this._locale;try{return function qe(Ie,gt,j){return function Li(Ie,gt,j,Se,ze,yt,Pe=!1){let jt="",li=!1;if(isFinite(Ie)){let $t=function Nt(Ie){let Se,ze,yt,Pe,jt,gt=Math.abs(Ie)+"",j=0;for((ze=gt.indexOf("."))>-1&&(gt=gt.replace(".","")),(yt=gt.search(/e/i))>0?(ze<0&&(ze=yt),ze+=+gt.slice(yt+1),gt=gt.substring(0,yt)):ze<0&&(ze=gt.length),yt=0;"0"===gt.charAt(yt);yt++);if(yt===(jt=gt.length))Se=[0],ze=1;else{for(jt--;"0"===gt.charAt(jt);)jt--;for(ze-=yt,Se=[],Pe=0;yt<=jt;yt++,Pe++)Se[Pe]=Number(gt.charAt(yt))}return ze>22&&(Se=Se.splice(0,21),j=ze-1,ze=1),{digits:Se,exponent:j,integerLen:ze}}(Ie);Pe&&($t=function xe(Ie){if(0===Ie.digits[0])return Ie;const gt=Ie.digits.length-Ie.integerLen;return Ie.exponent?Ie.exponent+=2:(0===gt?Ie.digits.push(0,0):1===gt&&Ie.digits.push(0),Ie.integerLen+=2),Ie}($t));let _i=gt.minInt,Mi=gt.minFrac,Hi=gt.maxFrac;if(yt){const ma=yt.match(Ut);if(null===ma)throw new Error(`${yt} is not a valid digit info`);const Sa=ma[1],ya=ma[3],xa=ma[5];null!=Sa&&(_i=mi(Sa)),null!=ya&&(Mi=mi(ya)),null!=xa?Hi=mi(xa):null!=ya&&Mi>Hi&&(Hi=Mi)}!function qt(Ie,gt,j){if(gt>j)throw new Error(`The minimum number of digits after fraction (${gt}) is higher than the maximum (${j}).`);let Se=Ie.digits,ze=Se.length-Ie.integerLen;const yt=Math.min(Math.max(gt,ze),j);let Pe=yt+Ie.integerLen,jt=Se[Pe];if(Pe>0){Se.splice(Math.max(Ie.integerLen,Pe));for(let Mi=Pe;Mi<Se.length;Mi++)Se[Mi]=0}else{ze=Math.max(0,ze),Ie.integerLen=1,Se.length=Math.max(1,Pe=yt+1),Se[0]=0;for(let Mi=1;Mi<Pe;Mi++)Se[Mi]=0}if(jt>=5)if(Pe-1<0){for(let Mi=0;Mi>Pe;Mi--)Se.unshift(0),Ie.integerLen++;Se.unshift(1),Ie.integerLen++}else Se[Pe-1]++;for(;ze<Math.max(0,yt);ze++)Se.push(0);let li=0!==yt;const $t=gt+Ie.integerLen,_i=Se.reduceRight(function(Mi,Hi,Zi,nn){return nn[Zi]=(Hi+=Mi)<10?Hi:Hi-10,li&&(0===nn[Zi]&&Zi>=$t?nn.pop():li=!1),Hi>=10?1:0},0);_i&&(Se.unshift(_i),Ie.integerLen++)}($t,Mi,Hi);let Zi=$t.digits,nn=$t.integerLen;const xn=$t.exponent;let ea=[];for(li=Zi.every(ma=>!ma);nn<_i;nn++)Zi.unshift(0);for(;nn<0;nn++)Zi.unshift(0);nn>0?ea=Zi.splice(nn,Zi.length):(ea=Zi,Zi=[0]);const fa=[];for(Zi.length>=gt.lgSize&&fa.unshift(Zi.splice(-gt.lgSize,Zi.length).join(""));Zi.length>gt.gSize;)fa.unshift(Zi.splice(-gt.gSize,Zi.length).join(""));Zi.length&&fa.unshift(Zi.join("")),jt=fa.join(We(j,Se)),ea.length&&(jt+=We(j,ze)+ea.join("")),xn&&(jt+=We(j,l.Exponential)+"+"+xn)}else jt=We(j,l.Infinity);return jt=Ie<0&&!li?gt.negPre+jt+gt.negSuf:gt.posPre+jt+gt.posSuf,jt}(Ie,function St(Ie,gt="-"){const j={minInt:1,minFrac:0,maxFrac:0,posPre:"",posSuf:"",negPre:"",negSuf:"",gSize:0,lgSize:0},Se=Ie.split(";"),ze=Se[0],yt=Se[1],Pe=-1!==ze.indexOf(".")?ze.split("."):[ze.substring(0,ze.lastIndexOf("0")+1),ze.substring(ze.lastIndexOf("0")+1)],jt=Pe[0],li=Pe[1]||"";j.posPre=jt.substring(0,jt.indexOf("#"));for(let _i=0;_i<li.length;_i++){const Mi=li.charAt(_i);"0"===Mi?j.minFrac=j.maxFrac=_i+1:"#"===Mi?j.maxFrac=_i+1:j.posSuf+=Mi}const $t=jt.split(",");if(j.gSize=$t[1]?$t[1].length:0,j.lgSize=$t[2]||$t[1]?($t[2]||$t[1]).length:0,yt){const _i=ze.length-j.posPre.length-j.posSuf.length,Mi=yt.indexOf("#");j.negPre=yt.substring(0,Mi).replace(/'/g,""),j.negSuf=yt.slice(Mi+_i).replace(/'/g,"")}else j.negPre=gt+j.posPre,j.negSuf=j.posSuf;return j}(function Fe(Ie,gt){return(0,t.cg1)(Ie)[t.wAp.NumberFormats][gt]}(gt,me.Decimal),We(gt,l.MinusSign)),gt,l.Group,l.Decimal,j)}(function co(Ie){if("string"==typeof Ie&&!isNaN(Number(Ie)-parseFloat(Ie)))return Number(Ie);if("number"!=typeof Ie)throw new Error(`${Ie} is not a number`);return Ie}(j),ze,Se)}catch(yt){throw Vi()}}}return Ie.\u0275fac=function(j){return new(j||Ie)(t.Y36(t.soG,16))},Ie.\u0275pipe=t.Yjl({name:"number",type:Ie,pure:!0,standalone:!0}),Ie})();let lo=(()=>{class Ie{transform(j,Se,ze){if(null==j)return null;if(!this.supports(j))throw Vi();return j.slice(Se,ze)}supports(j){return"string"==typeof j||Array.isArray(j)}}return Ie.\u0275fac=function(j){return new(j||Ie)},Ie.\u0275pipe=t.Yjl({name:"slice",type:Ie,pure:!1,standalone:!0}),Ie})(),ho=(()=>{class Ie{}return Ie.\u0275fac=function(j){return new(j||Ie)},Ie.\u0275mod=t.oAB({type:Ie}),Ie.\u0275inj=t.cJS({}),Ie})();const Zr="browser";function pr(Ie){return Ie===Zr}function aa(Ie){return"server"===Ie}let gr=(()=>{class Ie{}return Ie.\u0275prov=(0,t.Yz7)({token:Ie,providedIn:"root",factory:()=>new mo((0,t.LFG)(C),window)}),Ie})();class mo{constructor(gt,j){this.document=gt,this.window=j,this.offset=()=>[0,0]}setOffset(gt){this.offset=Array.isArray(gt)?()=>gt:gt}getScrollPosition(){return this.supportsScrolling()?[this.window.pageXOffset,this.window.pageYOffset]:[0,0]}scrollToPosition(gt){this.supportsScrolling()&&this.window.scrollTo(gt[0],gt[1])}scrollToAnchor(gt){if(!this.supportsScrolling())return;const j=function Jr(Ie,gt){const j=Ie.getElementById(gt)||Ie.getElementsByName(gt)[0];if(j)return j;if("function"==typeof Ie.createTreeWalker&&Ie.body&&(Ie.body.createShadowRoot||Ie.body.attachShadow)){const Se=Ie.createTreeWalker(Ie.body,NodeFilter.SHOW_ELEMENT);let ze=Se.currentNode;for(;ze;){const yt=ze.shadowRoot;if(yt){const Pe=yt.getElementById(gt)||yt.querySelector(`[name="${gt}"]`);if(Pe)return Pe}ze=Se.nextNode()}}return null}(this.document,gt);j&&(this.scrollToElement(j),j.focus())}setHistoryScrollRestoration(gt){if(this.supportScrollRestoration()){const j=this.window.history;j&&j.scrollRestoration&&(j.scrollRestoration=gt)}}scrollToElement(gt){const j=gt.getBoundingClientRect(),Se=j.left+this.window.pageXOffset,ze=j.top+this.window.pageYOffset,yt=this.offset();this.window.scrollTo(Se-yt[0],ze-yt[1])}supportScrollRestoration(){try{if(!this.supportsScrolling())return!1;const gt=Pa(this.window.history)||Pa(Object.getPrototypeOf(this.window.history));return!(!gt||!gt.writable&&!gt.set)}catch{return!1}}supportsScrolling(){try{return!!this.window&&!!this.window.scrollTo&&"pageXOffset"in this.window}catch{return!1}}}function Pa(Ie){return Object.getOwnPropertyDescriptor(Ie,"scrollRestoration")}class nr{}},529:(Ve,q,p)=>{"use strict";p.d(q,{JF:()=>Mt,LE:()=>K,TP:()=>_,eN:()=>T});var t=p(6895),e=p(4650),b=p(9646),I=p(9751),s=p(4351),C=p(9300),h=p(4004);class P{}class d{}class S{constructor(J){this.normalizedNames=new Map,this.lazyUpdate=null,J?this.lazyInit="string"==typeof J?()=>{this.headers=new Map,J.split("\n").forEach(be=>{const He=be.indexOf(":");if(He>0){const at=be.slice(0,He),ii=at.toLowerCase(),Gt=be.slice(He+1).trim();this.maybeSetNormalizedName(at,ii),this.headers.has(ii)?this.headers.get(ii).push(Gt):this.headers.set(ii,[Gt])}})}:()=>{this.headers=new Map,Object.keys(J).forEach(be=>{let He=J[be];const at=be.toLowerCase();"string"==typeof He&&(He=[He]),He.length>0&&(this.headers.set(at,He),this.maybeSetNormalizedName(be,at))})}:this.headers=new Map}has(J){return this.init(),this.headers.has(J.toLowerCase())}get(J){this.init();const be=this.headers.get(J.toLowerCase());return be&&be.length>0?be[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(J){return this.init(),this.headers.get(J.toLowerCase())||null}append(J,be){return this.clone({name:J,value:be,op:"a"})}set(J,be){return this.clone({name:J,value:be,op:"s"})}delete(J,be){return this.clone({name:J,value:be,op:"d"})}maybeSetNormalizedName(J,be){this.normalizedNames.has(be)||this.normalizedNames.set(be,J)}init(){this.lazyInit&&(this.lazyInit instanceof S?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(J=>this.applyUpdate(J)),this.lazyUpdate=null))}copyFrom(J){J.init(),Array.from(J.headers.keys()).forEach(be=>{this.headers.set(be,J.headers.get(be)),this.normalizedNames.set(be,J.normalizedNames.get(be))})}clone(J){const be=new S;return be.lazyInit=this.lazyInit&&this.lazyInit instanceof S?this.lazyInit:this,be.lazyUpdate=(this.lazyUpdate||[]).concat([J]),be}applyUpdate(J){const be=J.name.toLowerCase();switch(J.op){case"a":case"s":let He=J.value;if("string"==typeof He&&(He=[He]),0===He.length)return;this.maybeSetNormalizedName(J.name,be);const at=("a"===J.op?this.headers.get(be):void 0)||[];at.push(...He),this.headers.set(be,at);break;case"d":const ii=J.value;if(ii){let Gt=this.headers.get(be);if(!Gt)return;Gt=Gt.filter(ni=>-1===ii.indexOf(ni)),0===Gt.length?(this.headers.delete(be),this.normalizedNames.delete(be)):this.headers.set(be,Gt)}else this.headers.delete(be),this.normalizedNames.delete(be)}}forEach(J){this.init(),Array.from(this.normalizedNames.keys()).forEach(be=>J(this.normalizedNames.get(be),this.headers.get(be)))}}class O{encodeKey(J){return U(J)}encodeValue(J){return U(J)}decodeKey(J){return decodeURIComponent(J)}decodeValue(J){return decodeURIComponent(J)}}const R=/%(\d[a-f0-9])/gi,z={40:"@","3A":":",24:"$","2C":",","3B":";","3D":"=","3F":"?","2F":"/"};function U(we){return encodeURIComponent(we).replace(R,(J,be)=>z[be]??J)}function W(we){return`${we}`}class K{constructor(J={}){if(this.updates=null,this.cloneFrom=null,this.encoder=J.encoder||new O,J.fromString){if(J.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=function E(we,J){const be=new Map;return we.length>0&&we.replace(/^\?/,"").split("&").forEach(at=>{const ii=at.indexOf("="),[Gt,ni]=-1==ii?[J.decodeKey(at),""]:[J.decodeKey(at.slice(0,ii)),J.decodeValue(at.slice(ii+1))],ut=be.get(Gt)||[];ut.push(ni),be.set(Gt,ut)}),be}(J.fromString,this.encoder)}else J.fromObject?(this.map=new Map,Object.keys(J.fromObject).forEach(be=>{const He=J.fromObject[be],at=Array.isArray(He)?He.map(W):[W(He)];this.map.set(be,at)})):this.map=null}has(J){return this.init(),this.map.has(J)}get(J){this.init();const be=this.map.get(J);return be?be[0]:null}getAll(J){return this.init(),this.map.get(J)||null}keys(){return this.init(),Array.from(this.map.keys())}append(J,be){return this.clone({param:J,value:be,op:"a"})}appendAll(J){const be=[];return Object.keys(J).forEach(He=>{const at=J[He];Array.isArray(at)?at.forEach(ii=>{be.push({param:He,value:ii,op:"a"})}):be.push({param:He,value:at,op:"a"})}),this.clone(be)}set(J,be){return this.clone({param:J,value:be,op:"s"})}delete(J,be){return this.clone({param:J,value:be,op:"d"})}toString(){return this.init(),this.keys().map(J=>{const be=this.encoder.encodeKey(J);return this.map.get(J).map(He=>be+"="+this.encoder.encodeValue(He)).join("&")}).filter(J=>""!==J).join("&")}clone(J){const be=new K({encoder:this.encoder});return be.cloneFrom=this.cloneFrom||this,be.updates=(this.updates||[]).concat(J),be}init(){null===this.map&&(this.map=new Map),null!==this.cloneFrom&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(J=>this.map.set(J,this.cloneFrom.map.get(J))),this.updates.forEach(J=>{switch(J.op){case"a":case"s":const be=("a"===J.op?this.map.get(J.param):void 0)||[];be.push(W(J.value)),this.map.set(J.param,be);break;case"d":if(void 0===J.value){this.map.delete(J.param);break}{let He=this.map.get(J.param)||[];const at=He.indexOf(W(J.value));-1!==at&&He.splice(at,1),He.length>0?this.map.set(J.param,He):this.map.delete(J.param)}}}),this.cloneFrom=this.updates=null)}}class ie{constructor(){this.map=new Map}set(J,be){return this.map.set(J,be),this}get(J){return this.map.has(J)||this.map.set(J,J.defaultValue()),this.map.get(J)}delete(J){return this.map.delete(J),this}has(J){return this.map.has(J)}keys(){return this.map.keys()}}function le(we){return typeof ArrayBuffer<"u"&&we instanceof ArrayBuffer}function ne(we){return typeof Blob<"u"&&we instanceof Blob}function de(we){return typeof FormData<"u"&&we instanceof FormData}class me{constructor(J,be,He,at){let ii;if(this.url=be,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=J.toUpperCase(),function ue(we){switch(we){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}(this.method)||at?(this.body=void 0!==He?He:null,ii=at):ii=He,ii&&(this.reportProgress=!!ii.reportProgress,this.withCredentials=!!ii.withCredentials,ii.responseType&&(this.responseType=ii.responseType),ii.headers&&(this.headers=ii.headers),ii.context&&(this.context=ii.context),ii.params&&(this.params=ii.params)),this.headers||(this.headers=new S),this.context||(this.context=new ie),this.params){const Gt=this.params.toString();if(0===Gt.length)this.urlWithParams=be;else{const ni=be.indexOf("?");this.urlWithParams=be+(-1===ni?"?":ni<be.length-1?"&":"")+Gt}}else this.params=new K,this.urlWithParams=be}serializeBody(){return null===this.body?null:le(this.body)||ne(this.body)||de(this.body)||function $(we){return typeof URLSearchParams<"u"&&we instanceof URLSearchParams}(this.body)||"string"==typeof this.body?this.body:this.body instanceof K?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||de(this.body)?null:ne(this.body)?this.body.type||null:le(this.body)?null:"string"==typeof this.body?"text/plain":this.body instanceof K?"application/x-www-form-urlencoded;charset=UTF-8":"object"==typeof this.body||"number"==typeof this.body||"boolean"==typeof this.body?"application/json":null}clone(J={}){const be=J.method||this.method,He=J.url||this.url,at=J.responseType||this.responseType,ii=void 0!==J.body?J.body:this.body,Gt=void 0!==J.withCredentials?J.withCredentials:this.withCredentials,ni=void 0!==J.reportProgress?J.reportProgress:this.reportProgress;let ut=J.headers||this.headers,tt=J.params||this.params;const vt=J.context??this.context;return void 0!==J.setHeaders&&(ut=Object.keys(J.setHeaders).reduce((ti,Ut)=>ti.set(Ut,J.setHeaders[Ut]),ut)),J.setParams&&(tt=Object.keys(J.setParams).reduce((ti,Ut)=>ti.set(Ut,J.setParams[Ut]),tt)),new me(be,He,ii,{params:tt,headers:ut,context:vt,reportProgress:ni,responseType:at,withCredentials:Gt})}}var A=(()=>((A=A||{})[A.Sent=0]="Sent",A[A.UploadProgress=1]="UploadProgress",A[A.ResponseHeader=2]="ResponseHeader",A[A.DownloadProgress=3]="DownloadProgress",A[A.Response=4]="Response",A[A.User=5]="User",A))();class i{constructor(J,be=200,He="OK"){this.headers=J.headers||new S,this.status=void 0!==J.status?J.status:be,this.statusText=J.statusText||He,this.url=J.url||null,this.ok=this.status>=200&&this.status<300}}class a extends i{constructor(J={}){super(J),this.type=A.ResponseHeader}clone(J={}){return new a({headers:J.headers||this.headers,status:void 0!==J.status?J.status:this.status,statusText:J.statusText||this.statusText,url:J.url||this.url||void 0})}}class u extends i{constructor(J={}){super(J),this.type=A.Response,this.body=void 0!==J.body?J.body:null}clone(J={}){return new u({body:void 0!==J.body?J.body:this.body,headers:J.headers||this.headers,status:void 0!==J.status?J.status:this.status,statusText:J.statusText||this.statusText,url:J.url||this.url||void 0})}}class l extends i{constructor(J){super(J,0,"Unknown Error"),this.name="HttpErrorResponse",this.ok=!1,this.message=this.status>=200&&this.status<300?`Http failure during parsing for ${J.url||"(unknown url)"}`:`Http failure response for ${J.url||"(unknown url)"}: ${J.status} ${J.statusText}`,this.error=J.error||null}}function y(we,J){return{body:J,headers:we.headers,context:we.context,observe:we.observe,params:we.params,reportProgress:we.reportProgress,responseType:we.responseType,withCredentials:we.withCredentials}}let T=(()=>{class we{constructor(be){this.handler=be}request(be,He,at={}){let ii;if(be instanceof me)ii=be;else{let ut,tt;ut=at.headers instanceof S?at.headers:new S(at.headers),at.params&&(tt=at.params instanceof K?at.params:new K({fromObject:at.params})),ii=new me(be,He,void 0!==at.body?at.body:null,{headers:ut,context:at.context,params:tt,reportProgress:at.reportProgress,responseType:at.responseType||"json",withCredentials:at.withCredentials})}const Gt=(0,b.of)(ii).pipe((0,s.b)(ut=>this.handler.handle(ut)));if(be instanceof me||"events"===at.observe)return Gt;const ni=Gt.pipe((0,C.h)(ut=>ut instanceof u));switch(at.observe||"body"){case"body":switch(ii.responseType){case"arraybuffer":return ni.pipe((0,h.U)(ut=>{if(null!==ut.body&&!(ut.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return ut.body}));case"blob":return ni.pipe((0,h.U)(ut=>{if(null!==ut.body&&!(ut.body instanceof Blob))throw new Error("Response is not a Blob.");return ut.body}));case"text":return ni.pipe((0,h.U)(ut=>{if(null!==ut.body&&"string"!=typeof ut.body)throw new Error("Response is not a string.");return ut.body}));default:return ni.pipe((0,h.U)(ut=>ut.body))}case"response":return ni;default:throw new Error(`Unreachable: unhandled observe type ${at.observe}}`)}}delete(be,He={}){return this.request("DELETE",be,He)}get(be,He={}){return this.request("GET",be,He)}head(be,He={}){return this.request("HEAD",be,He)}jsonp(be,He){return this.request("JSONP",be,{params:(new K).append(He,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(be,He={}){return this.request("OPTIONS",be,He)}patch(be,He,at={}){return this.request("PATCH",be,y(at,He))}post(be,He,at={}){return this.request("POST",be,y(at,He))}put(be,He,at={}){return this.request("PUT",be,y(at,He))}}return we.\u0275fac=function(be){return new(be||we)(e.LFG(P))},we.\u0275prov=e.Yz7({token:we,factory:we.\u0275fac}),we})();function L(we,J){return J(we)}function m(we,J){return(be,He)=>J.intercept(be,{handle:at=>we(at,He)})}const _=new e.OlP("HTTP_INTERCEPTORS"),B=new e.OlP("HTTP_INTERCEPTOR_FNS");function V(){let we=null;return(J,be)=>(null===we&&(we=((0,e.f3M)(_,{optional:!0})??[]).reduceRight(m,L)),we(J,be))}let X=(()=>{class we extends P{constructor(be,He){super(),this.backend=be,this.injector=He,this.chain=null}handle(be){if(null===this.chain){const He=Array.from(new Set(this.injector.get(B)));this.chain=He.reduceRight((at,ii)=>function n(we,J,be){return(He,at)=>be.runInContext(()=>J(He,ii=>we(ii,at)))}(at,ii,this.injector),L)}return this.chain(be,He=>this.backend.handle(He))}}return we.\u0275fac=function(be){return new(be||we)(e.LFG(d),e.LFG(e.lqb))},we.\u0275prov=e.Yz7({token:we,factory:we.\u0275fac}),we})();const he=/^\)\]\}',?\n/;let te=(()=>{class we{constructor(be){this.xhrFactory=be}handle(be){if("JSONP"===be.method)throw new Error("Attempted to construct Jsonp request without HttpClientJsonpModule installed.");return new I.y(He=>{const at=this.xhrFactory.build();if(at.open(be.method,be.urlWithParams),be.withCredentials&&(at.withCredentials=!0),be.headers.forEach((ht,Rt)=>at.setRequestHeader(ht,Rt.join(","))),be.headers.has("Accept")||at.setRequestHeader("Accept","application/json, text/plain, */*"),!be.headers.has("Content-Type")){const ht=be.detectContentTypeHeader();null!==ht&&at.setRequestHeader("Content-Type",ht)}if(be.responseType){const ht=be.responseType.toLowerCase();at.responseType="json"!==ht?ht:"text"}const ii=be.serializeBody();let Gt=null;const ni=()=>{if(null!==Gt)return Gt;const ht=at.statusText||"OK",Rt=new S(at.getAllResponseHeaders()),Oe=function Ce(we){return"responseURL"in we&&we.responseURL?we.responseURL:/^X-Request-URL:/m.test(we.getAllResponseHeaders())?we.getResponseHeader("X-Request-URL"):null}(at)||be.url;return Gt=new a({headers:Rt,status:at.status,statusText:ht,url:Oe}),Gt},ut=()=>{let{headers:ht,status:Rt,statusText:Oe,url:et}=ni(),it=null;204!==Rt&&(it=typeof at.response>"u"?at.responseText:at.response),0===Rt&&(Rt=it?200:0);let ct=Rt>=200&&Rt<300;if("json"===be.responseType&&"string"==typeof it){const Dt=it;it=it.replace(he,"");try{it=""!==it?JSON.parse(it):null}catch(pi){it=Dt,ct&&(ct=!1,it={error:pi,text:it})}}ct?(He.next(new u({body:it,headers:ht,status:Rt,statusText:Oe,url:et||void 0})),He.complete()):He.error(new l({error:it,headers:ht,status:Rt,statusText:Oe,url:et||void 0}))},tt=ht=>{const{url:Rt}=ni(),Oe=new l({error:ht,status:at.status||0,statusText:at.statusText||"Unknown Error",url:Rt||void 0});He.error(Oe)};let vt=!1;const ti=ht=>{vt||(He.next(ni()),vt=!0);let Rt={type:A.DownloadProgress,loaded:ht.loaded};ht.lengthComputable&&(Rt.total=ht.total),"text"===be.responseType&&at.responseText&&(Rt.partialText=at.responseText),He.next(Rt)},Ut=ht=>{let Rt={type:A.UploadProgress,loaded:ht.loaded};ht.lengthComputable&&(Rt.total=ht.total),He.next(Rt)};return at.addEventListener("load",ut),at.addEventListener("error",tt),at.addEventListener("timeout",tt),at.addEventListener("abort",tt),be.reportProgress&&(at.addEventListener("progress",ti),null!==ii&&at.upload&&at.upload.addEventListener("progress",Ut)),at.send(ii),He.next({type:A.Sent}),()=>{at.removeEventListener("error",tt),at.removeEventListener("abort",tt),at.removeEventListener("load",ut),at.removeEventListener("timeout",tt),be.reportProgress&&(at.removeEventListener("progress",ti),null!==ii&&at.upload&&at.upload.removeEventListener("progress",Ut)),at.readyState!==at.DONE&&at.abort()}})}}return we.\u0275fac=function(be){return new(be||we)(e.LFG(t.JF))},we.\u0275prov=e.Yz7({token:we,factory:we.\u0275fac}),we})();const Ue=new e.OlP("XSRF_ENABLED"),Be="XSRF-TOKEN",ae=new e.OlP("XSRF_COOKIE_NAME",{providedIn:"root",factory:()=>Be}),ge="X-XSRF-TOKEN",ft=new e.OlP("XSRF_HEADER_NAME",{providedIn:"root",factory:()=>ge});class Je{}let dt=(()=>{class we{constructor(be,He,at){this.doc=be,this.platform=He,this.cookieName=at,this.lastCookieString="",this.lastToken=null,this.parseCount=0}getToken(){if("server"===this.platform)return null;const be=this.doc.cookie||"";return be!==this.lastCookieString&&(this.parseCount++,this.lastToken=(0,t.Mx)(be,this.cookieName),this.lastCookieString=be),this.lastToken}}return we.\u0275fac=function(be){return new(be||we)(e.LFG(t.K0),e.LFG(e.Lbi),e.LFG(ae))},we.\u0275prov=e.Yz7({token:we,factory:we.\u0275fac}),we})();function Et(we,J){const be=we.url.toLowerCase();if(!(0,e.f3M)(Ue)||"GET"===we.method||"HEAD"===we.method||be.startsWith("http://")||be.startsWith("https://"))return J(we);const He=(0,e.f3M)(Je).getToken(),at=(0,e.f3M)(ft);return null!=He&&!we.headers.has(at)&&(we=we.clone({headers:we.headers.set(at,He)})),J(we)}var ot=(()=>((ot=ot||{})[ot.Interceptors=0]="Interceptors",ot[ot.LegacyInterceptors=1]="LegacyInterceptors",ot[ot.CustomXsrfConfiguration=2]="CustomXsrfConfiguration",ot[ot.NoXsrfProtection=3]="NoXsrfProtection",ot[ot.JsonpSupport=4]="JsonpSupport",ot[ot.RequestsMadeViaParent=5]="RequestsMadeViaParent",ot))();function wt(we,J){return{\u0275kind:we,\u0275providers:J}}function ke(...we){const J=[T,te,X,{provide:P,useExisting:X},{provide:d,useExisting:te},{provide:B,useValue:Et,multi:!0},{provide:Ue,useValue:!0},{provide:Je,useClass:dt}];for(const be of we)J.push(...be.\u0275providers);return(0,e.MR2)(J)}const xt=new e.OlP("LEGACY_INTERCEPTOR_FN");function Re({cookieName:we,headerName:J}){const be=[];return void 0!==we&&be.push({provide:ae,useValue:we}),void 0!==J&&be.push({provide:ft,useValue:J}),wt(ot.CustomXsrfConfiguration,be)}let Mt=(()=>{class we{}return we.\u0275fac=function(be){return new(be||we)},we.\u0275mod=e.oAB({type:we}),we.\u0275inj=e.cJS({providers:[ke(wt(ot.LegacyInterceptors,[{provide:xt,useFactory:V},{provide:B,useExisting:xt,multi:!0}]),Re({cookieName:Be,headerName:ge}))]}),we})()},4650:(Ve,q,p)=>{"use strict";p.d(q,{$8M:()=>xc,$WT:()=>Yi,$Z:()=>fc,AFp:()=>v6,ALo:()=>rf,AaK:()=>P,AsE:()=>qs,BQk:()=>lu,CHM:()=>Ro,CRH:()=>$4,CZH:()=>gf,CqO:()=>Qn,D6c:()=>e5,DdM:()=>U4,Dn7:()=>W4,EJc:()=>v8,EiD:()=>Q2,EpF:()=>n4,F$t:()=>P0,F4k:()=>hu,FYo:()=>_s,FiY:()=>nc,Gf:()=>Jp,GfV:()=>Fd,GkF:()=>P3,Gpc:()=>w,Gre:()=>q3,HOy:()=>j3,Hsn:()=>Cs,Ikx:()=>Lu,JOm:()=>Do,JVY:()=>H2,JZr:()=>U,Jf7:()=>Vd,KtG:()=>Js,L6k:()=>gh,LAX:()=>vh,LFG:()=>kt,Lbi:()=>m8,Lck:()=>xg,MAs:()=>i4,MGl:()=>yn,MMx:()=>H4,MR2:()=>Mh,NdJ:()=>mc,O4$:()=>Ls,OlP:()=>da,Oqu:()=>Z0,P3R:()=>wh,PXZ:()=>k8,Q6J:()=>k3,QGY:()=>du,QbO:()=>g8,Qsj:()=>Th,R0b:()=>vc,RDi:()=>O2,Rgc:()=>Fu,SBq:()=>pl,Sil:()=>y8,Suo:()=>Xp,TTD:()=>kr,TgZ:()=>su,Tol:()=>Cu,Udp:()=>bu,VKq:()=>Np,W1O:()=>i6,WFA:()=>k0,WLB:()=>G4,X6Q:()=>F8,XFs:()=>Be,Xpm:()=>Li,Xts:()=>Ic,Y36:()=>bs,YKP:()=>Ap,YNc:()=>t4,Yjl:()=>mi,Yz7:()=>We,Z0I:()=>ce,ZZ4:()=>Am,_Bn:()=>Tp,_UZ:()=>O3,_Vd:()=>es,_c5:()=>$8,_uU:()=>Y3,aQg:()=>Lm,c2e:()=>x6,cJS:()=>De,cg1:()=>Du,d8E:()=>ef,dDg:()=>T8,dqk:()=>Et,eBb:()=>_h,eFA:()=>D6,ekj:()=>yu,eoX:()=>T6,f3M:()=>we,g9A:()=>fm,h0i:()=>j0,hGG:()=>K6,hYB:()=>R0,hij:()=>ns,iGM:()=>qp,ifc:()=>ti,ip1:()=>hm,jDz:()=>Dp,kEZ:()=>Fp,kL8:()=>W0,kcU:()=>yc,lG2:()=>qt,lcZ:()=>Wp,lnq:()=>Eu,lqb:()=>Oc,lri:()=>_m,mCW:()=>x1,n5z:()=>a1,n_E:()=>cf,oAB:()=>St,oJD:()=>hl,oxw:()=>O0,pB0:()=>z2,q3G:()=>Ja,qLn:()=>gl,qOj:()=>w3,qZA:()=>n2,qzn:()=>ll,rWj:()=>E6,s9C:()=>pc,sBO:()=>z6,s_b:()=>lf,soG:()=>Vu,tBr:()=>Xc,tb:()=>y6,tp0:()=>ac,uIk:()=>A3,vHH:()=>W,vpe:()=>Ml,wAp:()=>En,xi3:()=>Z4,xp6:()=>Ud,ynx:()=>cu,z2F:()=>Uu,z3N:()=>ro,zSh:()=>ml,zs3:()=>uc});var t=p(7579),e=p(727),b=p(9751),I=p(6451),s=p(3099);function C(o){for(let c in o)if(o[c]===C)return c;throw Error("Could not find renamed property on target object.")}function h(o,c){for(const g in c)c.hasOwnProperty(g)&&!o.hasOwnProperty(g)&&(o[g]=c[g])}function P(o){if("string"==typeof o)return o;if(Array.isArray(o))return"["+o.map(P).join(", ")+"]";if(null==o)return""+o;if(o.overriddenName)return`${o.overriddenName}`;if(o.name)return`${o.name}`;const c=o.toString();if(null==c)return""+c;const g=c.indexOf("\n");return-1===g?c:c.substring(0,g)}function d(o,c){return null==o||""===o?null===c?"":c:null==c||""===c?o:o+" "+c}const S=C({__forward_ref__:C});function w(o){return o.__forward_ref__=w,o.toString=function(){return P(this())},o}function O(o){return E(o)?o():o}function E(o){return"function"==typeof o&&o.hasOwnProperty(S)&&o.__forward_ref__===w}function R(o){return o&&!!o.\u0275providers}const U="https://g.co/ng/security#xss";class W extends Error{constructor(c,g){super(function K(o,c){return`NG0${Math.abs(o)}${c?": "+c.trim():""}`}(c,g)),this.code=c}}function ee(o){return"string"==typeof o?o:null==o?"":String(o)}function de(o,c){throw new W(-201,!1)}function B(o,c){null==o&&function V(o,c,g,D){throw new Error(`ASSERTION ERROR: ${o}`+(null==D?"":` [Expected=> ${g} ${D} ${c} <=Actual]`))}(c,o,null,"!=")}function We(o){return{token:o.token,providedIn:o.providedIn||null,factory:o.factory,value:void 0}}function De(o){return{providers:o.providers||[],imports:o.imports||[]}}function ye(o){return ve(o,he)||ve(o,te)}function ce(o){return null!==ye(o)}function ve(o,c){return o.hasOwnProperty(c)?o[c]:null}function Ae(o){return o&&(o.hasOwnProperty(Ce)||o.hasOwnProperty(Ue))?o[Ce]:null}const he=C({\u0275prov:C}),Ce=C({\u0275inj:C}),te=C({ngInjectableDef:C}),Ue=C({ngInjectorDef:C});var Be=(()=>((Be=Be||{})[Be.Default=0]="Default",Be[Be.Host=1]="Host",Be[Be.Self=2]="Self",Be[Be.SkipSelf=4]="SkipSelf",Be[Be.Optional=8]="Optional",Be))();let ae;function ft(o){const c=ae;return ae=o,c}function Je(o,c,g){const D=ye(o);return D&&"root"==D.providedIn?void 0===D.value?D.value=D.factory():D.value:g&Be.Optional?null:void 0!==c?c:void de(P(o))}const Et=(()=>typeof globalThis<"u"&&globalThis||typeof global<"u"&&global||typeof window<"u"&&window||typeof self<"u"&&typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&self)(),ke={},Ke="__NG_DI_FLAG__",xt="ngTempTokenPath",Re=/\n/gm,Qe="__source";let Ye;function Ht(o){const c=Ye;return Ye=o,c}function Mt(o,c=Be.Default){if(void 0===Ye)throw new W(-203,!1);return null===Ye?Je(o,void 0,c):Ye.get(o,c&Be.Optional?null:void 0,c)}function kt(o,c=Be.Default){return(function ge(){return ae}()||Mt)(O(o),c)}function we(o,c=Be.Default){return kt(o,J(c))}function J(o){return typeof o>"u"||"number"==typeof o?o:0|(o.optional&&8)|(o.host&&1)|(o.self&&2)|(o.skipSelf&&4)}function be(o){const c=[];for(let g=0;g<o.length;g++){const D=O(o[g]);if(Array.isArray(D)){if(0===D.length)throw new W(900,!1);let N,G=Be.Default;for(let se=0;se<D.length;se++){const Ee=D[se],Ze=at(Ee);"number"==typeof Ze?-1===Ze?N=Ee.token:G|=Ze:N=Ee}c.push(kt(N,G))}else c.push(kt(D))}return c}function He(o,c){return o[Ke]=c,o.prototype[Ke]=c,o}function at(o){return o[Ke]}function ni(o){return{toString:o}.toString()}var ut=(()=>((ut=ut||{})[ut.OnPush=0]="OnPush",ut[ut.Default=1]="Default",ut))(),ti=(()=>{return(o=ti||(ti={}))[o.Emulated=0]="Emulated",o[o.None=2]="None",o[o.ShadowDom=3]="ShadowDom",ti;var o})();const Ut={},ht=[],Rt=C({\u0275cmp:C}),Oe=C({\u0275dir:C}),et=C({\u0275pipe:C}),it=C({\u0275mod:C}),ct=C({\u0275fac:C}),Dt=C({__NG_ELEMENT_ID__:C});let pi=0;function Li(o){return ni(()=>{const g=!0===o.standalone,D={},N={type:o.type,providersResolver:null,decls:o.decls,vars:o.vars,factory:null,template:o.template||null,consts:o.consts||null,ngContentSelectors:o.ngContentSelectors,hostBindings:o.hostBindings||null,hostVars:o.hostVars||0,hostAttrs:o.hostAttrs||null,contentQueries:o.contentQueries||null,declaredInputs:D,inputs:null,outputs:null,exportAs:o.exportAs||null,onPush:o.changeDetection===ut.OnPush,directiveDefs:null,pipeDefs:null,standalone:g,dependencies:g&&o.dependencies||null,getStandaloneInjector:null,selectors:o.selectors||ht,viewQuery:o.viewQuery||null,features:o.features||null,data:o.data||{},encapsulation:o.encapsulation||ti.Emulated,id:"c"+pi++,styles:o.styles||ht,_:null,setInput:null,schemas:o.schemas||null,tView:null,findHostDirectiveDefs:null,hostDirectives:null},G=o.dependencies,se=o.features;return N.inputs=Nt(o.inputs,D),N.outputs=Nt(o.outputs),se&&se.forEach(Ee=>Ee(N)),N.directiveDefs=G?()=>("function"==typeof G?G():G).map(Fi).filter(qe):null,N.pipeDefs=G?()=>("function"==typeof G?G():G).map(Gi).filter(qe):null,N})}function Fi(o){return Ci(o)||Ii(o)}function qe(o){return null!==o}function St(o){return ni(()=>({type:o.type,bootstrap:o.bootstrap||ht,declarations:o.declarations||ht,imports:o.imports||ht,exports:o.exports||ht,transitiveCompileScopes:null,schemas:o.schemas||null,id:o.id||null}))}function Nt(o,c){if(null==o)return Ut;const g={};for(const D in o)if(o.hasOwnProperty(D)){let N=o[D],G=N;Array.isArray(N)&&(G=N[1],N=N[0]),g[N]=D,c&&(c[N]=G)}return g}const qt=Li;function mi(o){return{type:o.type,name:o.name,factory:null,pure:!1!==o.pure,standalone:!0===o.standalone,onDestroy:o.type.prototype.ngOnDestroy||null}}function Ci(o){return o[Rt]||null}function Ii(o){return o[Oe]||null}function Gi(o){return o[et]||null}function Yi(o){const c=Ci(o)||Ii(o)||Gi(o);return null!==c&&c.standalone}function Ji(o,c){const g=o[it]||null;if(!g&&!0===c)throw new Error(`Type ${P(o)} does not have '\u0275mod' property.`);return g}function Fn(o){return Array.isArray(o)&&"object"==typeof o[1]}function Xn(o){return Array.isArray(o)&&!0===o[1]}function Dr(o){return 0!=(4&o.flags)}function Sr(o){return o.componentOffset>-1}function tr(o){return 1==(1&o.flags)}function jn(o){return null!==o.template}function Ga(o){return 0!=(256&o[2])}function Ya(o,c){return o.hasOwnProperty(ct)?o[ct]:null}class Ir{constructor(c,g,D){this.previousValue=c,this.currentValue=g,this.firstChange=D}isFirstChange(){return this.firstChange}}function kr(){return gr}function gr(o){return o.type.prototype.ngOnChanges&&(o.setInput=Pa),mo}function mo(){const o=Xr(this),c=o?.current;if(c){const g=o.previous;if(g===Ut)o.previous=c;else for(let D in c)g[D]=c[D];o.current=null,this.ngOnChanges(c)}}function Pa(o,c,g,D){const N=this.declaredInputs[g],G=Xr(o)||function nr(o,c){return o[Jr]=c}(o,{previous:Ut,current:null}),se=G.current||(G.current={}),Ee=G.previous,Ze=Ee[N];se[N]=new Ir(Ze&&Ze.currentValue,c,Ee===Ut),o[D]=c}kr.ngInherit=!0;const Jr="__ngSimpleChanges__";function Xr(o){return o[Jr]||null}function Wn(o){for(;Array.isArray(o);)o=o[0];return o}function ja(o,c){return Wn(c[o])}function ca(o,c){return Wn(c[o.index])}function Vt(o,c){return o.data[c]}function di(o,c){return o[c]}function Ct(o,c){const g=c[o];return Fn(g)?g:g[0]}function Pi(o){return 64==(64&o[2])}function $n(o,c){return null==c?null:o[c]}function la(o){o[18]=0}function ji(o,c){o[5]+=c;let g=o,D=o[3];for(;null!==D&&(1===c&&1===g[5]||-1===c&&0===g[5]);)D[5]+=c,g=D,D=D[3]}const bn={lFrame:Ts(null),bindingsEnabled:!0};function wi(){return bn.bindingsEnabled}function Si(){return bn.lFrame.lView}function Ln(){return bn.lFrame.tView}function Ro(o){return bn.lFrame.contextLView=o,o[8]}function Js(o){return bn.lFrame.contextLView=null,o}function Ha(){let o=Yo();for(;null!==o&&64===o.type;)o=o.parent;return o}function Yo(){return bn.lFrame.currentTNode}function vr(o,c){const g=bn.lFrame;g.currentTNode=o,g.isParent=c}function jo(){return bn.lFrame.isParent}function Ko(){bn.lFrame.isParent=!1}function Dn(){const o=bn.lFrame;let c=o.bindingRootIndex;return-1===c&&(c=o.bindingRootIndex=o.tView.bindingStartIndex),c}function ki(){return bn.lFrame.bindingIndex}function go(){return bn.lFrame.bindingIndex++}function zi(o){const c=bn.lFrame,g=c.bindingIndex;return c.bindingIndex=c.bindingIndex+o,g}function Xs(o,c){const g=bn.lFrame;g.bindingIndex=g.bindingRootIndex=o,os(c)}function os(o){bn.lFrame.currentDirectiveIndex=o}function So(o){const c=bn.lFrame.currentDirectiveIndex;return-1===c?null:o[c]}function Eo(){return bn.lFrame.currentQueryIndex}function ss(o){bn.lFrame.currentQueryIndex=o}function bc(o){const c=o[1];return 2===c.type?c.declTNode:1===c.type?o[6]:null}function Qo(o,c,g){if(g&Be.SkipSelf){let N=c,G=o;for(;!(N=N.parent,null!==N||g&Be.Host||(N=bc(G),null===N||(G=G[15],10&N.type))););if(null===N)return!1;c=N,o=G}const D=bn.lFrame=ec();return D.currentTNode=c,D.lView=o,!0}function $s(o){const c=ec(),g=o[1];bn.lFrame=c,c.currentTNode=g.firstChild,c.lView=o,c.tView=g,c.contextLView=o,c.bindingIndex=g.bindingStartIndex,c.inI18n=!1}function ec(){const o=bn.lFrame,c=null===o?null:o.child;return null===c?Ts(o):c}function Ts(o){const c={currentTNode:null,isParent:!0,lView:null,tView:null,selectedIndex:-1,contextLView:null,elementDepthCount:0,currentNamespace:null,currentDirectiveIndex:-1,bindingRootIndex:-1,bindingIndex:-1,currentQueryIndex:0,parent:o,child:null,inI18n:!1};return null!==o&&(o.child=c),c}function As(){const o=bn.lFrame;return bn.lFrame=o.parent,o.currentTNode=null,o.lView=null,o}const Ra=As;function to(){const o=As();o.isParent=!0,o.tView=null,o.selectedIndex=-1,o.contextLView=null,o.elementDepthCount=0,o.currentDirectiveIndex=-1,o.currentNamespace=null,o.bindingRootIndex=-1,o.bindingIndex=-1,o.currentQueryIndex=0}function ka(){return bn.lFrame.selectedIndex}function qa(o){bn.lFrame.selectedIndex=o}function ua(){const o=bn.lFrame;return Vt(o.tView,o.selectedIndex)}function Ls(){bn.lFrame.currentNamespace="svg"}function yc(){!function Bn(){bn.lFrame.currentNamespace=null}()}function Ma(o,c){for(let g=c.directiveStart,D=c.directiveEnd;g<D;g++){const G=o.data[g].type.prototype,{ngAfterContentInit:se,ngAfterContentChecked:Ee,ngAfterViewInit:Ze,ngAfterViewChecked:mt,ngOnDestroy:Ot}=G;se&&(o.contentHooks||(o.contentHooks=[])).push(-g,se),Ee&&((o.contentHooks||(o.contentHooks=[])).push(g,Ee),(o.contentCheckHooks||(o.contentCheckHooks=[])).push(g,Ee)),Ze&&(o.viewHooks||(o.viewHooks=[])).push(-g,Ze),mt&&((o.viewHooks||(o.viewHooks=[])).push(g,mt),(o.viewCheckHooks||(o.viewCheckHooks=[])).push(g,mt)),null!=Ot&&(o.destroyHooks||(o.destroyHooks=[])).push(g,Ot)}}function Wi(o,c,g){j(o,c,3,g)}function Ie(o,c,g,D){(3&o[2])===g&&j(o,c,g,D)}function gt(o,c){let g=o[2];(3&g)===c&&(g&=2047,g+=1,o[2]=g)}function j(o,c,g,D){const G=D??-1,se=c.length-1;let Ee=0;for(let Ze=void 0!==D?65535&o[18]:0;Ze<se;Ze++)if("number"==typeof c[Ze+1]){if(Ee=c[Ze],null!=D&&Ee>=D)break}else c[Ze]<0&&(o[18]+=65536),(Ee<G||-1==G)&&(Se(o,g,c,Ze),o[18]=(4294901760&o[18])+Ze+2),Ze++}function Se(o,c,g,D){const N=g[D]<0,G=g[D+1],Ee=o[N?-g[D]:g[D]];if(N){if(o[2]>>11<o[18]>>16&&(3&o[2])===c){o[2]+=2048;try{G.call(Ee)}finally{}}}else try{G.call(Ee)}finally{}}class yt{constructor(c,g,D){this.factory=c,this.resolving=!1,this.canSeeViewProviders=g,this.injectImpl=D}}function nn(o,c,g){let D=0;for(;D<g.length;){const N=g[D];if("number"==typeof N){if(0!==N)break;D++;const G=g[D++],se=g[D++],Ee=g[D++];o.setAttribute(c,se,Ee,G)}else{const G=N,se=g[++D];ea(G)?o.setProperty(c,G,se):o.setAttribute(c,G,se),D++}}return D}function xn(o){return 3===o||4===o||6===o}function ea(o){return 64===o.charCodeAt(0)}function fa(o,c){if(null!==c&&0!==c.length)if(null===o||0===o.length)o=c.slice();else{let g=-1;for(let D=0;D<c.length;D++){const N=c[D];"number"==typeof N?g=N:0===g||ma(o,g,N,null,-1===g||2===g?c[++D]:null)}}return o}function ma(o,c,g,D,N){let G=0,se=o.length;if(-1===c)se=-1;else for(;G<o.length;){const Ee=o[G++];if("number"==typeof Ee){if(Ee===c){se=-1;break}if(Ee>c){se=G-1;break}}}for(;G<o.length;){const Ee=o[G];if("number"==typeof Ee)break;if(Ee===g){if(null===D)return void(null!==N&&(o[G+1]=N));if(D===o[G+1])return void(o[G+2]=N)}G++,null!==D&&G++,null!==N&&G++}-1!==se&&(o.splice(se,0,c),G=se+1),o.splice(G++,0,g),null!==D&&o.splice(G++,0,D),null!==N&&o.splice(G++,0,N)}function Sa(o){return-1!==o}function ya(o){return 32767&o}function yr(o,c){let g=function xa(o){return o>>16}(o),D=c;for(;g>0;)D=D[15],g--;return D}let Ea=!0;function io(o){const c=Ea;return Ea=o,c}let Zc=0;const Ho={};function Wc(o,c){const g=Pr(o,c);if(-1!==g)return g;const D=c[1];D.firstCreatePass&&(o.injectorIndex=c.length,Sl(D.data,o),Sl(c,null),Sl(D.blueprint,null));const N=Yc(o,c),G=o.injectorIndex;if(Sa(N)){const se=ya(N),Ee=yr(N,c),Ze=Ee[1].data;for(let mt=0;mt<8;mt++)c[G+mt]=Ee[se+mt]|Ze[se+mt]}return c[G+8]=N,G}function Sl(o,c){o.push(0,0,0,0,0,0,0,0,c)}function Pr(o,c){return-1===o.injectorIndex||o.parent&&o.parent.injectorIndex===o.injectorIndex||null===c[o.injectorIndex+8]?-1:o.injectorIndex}function Yc(o,c){if(o.parent&&-1!==o.parent.injectorIndex)return o.parent.injectorIndex;let g=0,D=null,N=c;for(;null!==N;){if(D=Tl(N),null===D)return-1;if(g++,N=N[15],-1!==D.injectorIndex)return D.injectorIndex|g<<16}return-1}function tc(o,c,g){!function e1(o,c,g){let D;"string"==typeof g?D=g.charCodeAt(0)||0:g.hasOwnProperty(Dt)&&(D=g[Dt]),null==D&&(D=g[Dt]=Zc++);const N=255&D;c.data[o+(N>>5)]|=1<<N}(o,c,g)}function t1(o,c,g){if(g&Be.Optional||void 0!==o)return o;de()}function El(o,c,g,D){if(g&Be.Optional&&void 0===D&&(D=null),!(g&(Be.Self|Be.Host))){const N=o[9],G=ft(void 0);try{return N?N.get(c,D,g&Be.Optional):Je(c,D,g&Be.Optional)}finally{ft(G)}}return t1(D,0,g)}function K1(o,c,g,D=Be.Default,N){if(null!==o){if(1024&c[2]){const se=function J1(o,c,g,D,N){let G=o,se=c;for(;null!==G&&null!==se&&1024&se[2]&&!(256&se[2]);){const Ee=Q1(G,se,g,D|Be.Self,Ho);if(Ee!==Ho)return Ee;let Ze=G.parent;if(!Ze){const mt=se[21];if(mt){const Ot=mt.get(g,Ho,D);if(Ot!==Ho)return Ot}Ze=Tl(se),se=se[15]}G=Ze}return N}(o,c,g,D,Ho);if(se!==Ho)return se}const G=Q1(o,c,g,D,Ho);if(G!==Ho)return G}return El(c,g,D,N)}function Q1(o,c,g,D,N){const G=function Is(o){if("string"==typeof o)return o.charCodeAt(0)||0;const c=o.hasOwnProperty(Dt)?o[Dt]:void 0;return"number"==typeof c?c>=0?255&c:zo:c}(g);if("function"==typeof G){if(!Qo(c,o,D))return D&Be.Host?t1(N,0,D):El(c,g,D,N);try{const se=G(D);if(null!=se||D&Be.Optional)return se;de()}finally{Ra()}}else if("number"==typeof G){let se=null,Ee=Pr(o,c),Ze=-1,mt=D&Be.Host?c[16][6]:null;for((-1===Ee||D&Be.SkipSelf)&&(Ze=-1===Ee?Yc(o,c):c[Ee+8],-1!==Ze&&ks(D,!1)?(se=c[1],Ee=ya(Ze),c=yr(Ze,c)):Ee=-1);-1!==Ee;){const Ot=c[1];if(q1(G,Ee,Ot.data)){const Xt=n1(Ee,c,g,se,D,mt);if(Xt!==Ho)return Xt}Ze=c[Ee+8],-1!==Ze&&ks(D,c[1].data[Ee+8]===mt)&&q1(G,Ee,c)?(se=Ot,Ee=ya(Ze),c=yr(Ze,c)):Ee=-1}}return N}function n1(o,c,g,D,N,G){const se=c[1],Ee=se.data[o+8],Ot=Ds(Ee,se,g,null==D?Sr(Ee)&&Ea:D!=se&&0!=(3&Ee.type),N&Be.Host&&G===Ee);return null!==Ot?cs(c,se,Ot,Ee):Ho}function Ds(o,c,g,D,N){const G=o.providerIndexes,se=c.data,Ee=1048575&G,Ze=o.directiveStart,Ot=G>>20,hi=N?Ee+Ot:o.directiveEnd;for(let bi=D?Ee:Ee+Ot;bi<hi;bi++){const Ri=se[bi];if(bi<Ze&&g===Ri||bi>=Ze&&Ri.type===g)return bi}if(N){const bi=se[Ze];if(bi&&jn(bi)&&bi.type===g)return Ze}return null}function cs(o,c,g,D){let N=o[g];const G=c.data;if(function Pe(o){return o instanceof yt}(N)){const se=N;se.resolving&&function ue(o,c){const g=c?`. Dependency path: ${c.join(" > ")} > ${o}`:"";throw new W(-200,`Circular dependency in DI detected for ${o}${g}`)}(function ie(o){return"function"==typeof o?o.name||o.toString():"object"==typeof o&&null!=o&&"function"==typeof o.type?o.type.name||o.type.toString():ee(o)}(G[g]));const Ee=io(se.canSeeViewProviders);se.resolving=!0;const Ze=se.injectImpl?ft(se.injectImpl):null;Qo(o,D,Be.Default);try{N=o[g]=se.factory(void 0,G,o,D),c.firstCreatePass&&g>=D.directiveStart&&function ba(o,c,g){const{ngOnChanges:D,ngOnInit:N,ngDoCheck:G}=c.type.prototype;if(D){const se=gr(c);(g.preOrderHooks||(g.preOrderHooks=[])).push(o,se),(g.preOrderCheckHooks||(g.preOrderCheckHooks=[])).push(o,se)}N&&(g.preOrderHooks||(g.preOrderHooks=[])).push(0-o,N),G&&((g.preOrderHooks||(g.preOrderHooks=[])).push(o,G),(g.preOrderCheckHooks||(g.preOrderCheckHooks=[])).push(o,G))}(g,G[g],c)}finally{null!==Ze&&ft(Ze),io(Ee),se.resolving=!1,Ra()}}return N}function q1(o,c,g){return!!(g[c+(o>>5)]&1<<o)}function ks(o,c){return!(o&Be.Self||o&Be.Host&&c)}class lr{constructor(c,g){this._tNode=c,this._lView=g}get(c,g,D){return K1(this._tNode,this._lView,c,J(D),g)}}function zo(){return new lr(Ha(),Si())}function a1(o){return ni(()=>{const c=o.prototype.constructor,g=c[ct]||r1(c),D=Object.prototype;let N=Object.getPrototypeOf(o.prototype).constructor;for(;N&&N!==D;){const G=N[ct]||r1(N);if(G&&G!==g)return G;N=Object.getPrototypeOf(N)}return G=>new G})}function r1(o){return E(o)?()=>{const c=r1(O(o));return c&&c()}:Ya(o)}function Tl(o){const c=o[1],g=c.type;return 2===g?c.declTNode:1===g?o[6]:null}function xc(o){return function jc(o,c){if("class"===c)return o.classes;if("style"===c)return o.styles;const g=o.attrs;if(g){const D=g.length;let N=0;for(;N<D;){const G=g[N];if(xn(G))break;if(0===G)N+=2;else if("number"==typeof G)for(N++;N<D&&"string"==typeof g[N];)N++;else{if(G===c)return g[N+1];N+=2}}}return null}(Ha(),o)}const Ao="__parameters__";function Ps(o,c,g){return ni(()=>{const D=function Kc(o){return function(...g){if(o){const D=o(...g);for(const N in D)this[N]=D[N]}}}(c);function N(...G){if(this instanceof N)return D.apply(this,G),this;const se=new N(...G);return Ee.annotation=se,Ee;function Ee(Ze,mt,Ot){const Xt=Ze.hasOwnProperty(Ao)?Ze[Ao]:Object.defineProperty(Ze,Ao,{value:[]})[Ao];for(;Xt.length<=Ot;)Xt.push(null);return(Xt[Ot]=Xt[Ot]||[]).push(se),Ze}}return g&&(N.prototype=Object.create(g.prototype)),N.prototype.ngMetadataName=o,N.annotationCls=N,N})}class da{constructor(c,g){this._desc=c,this.ngMetadataName="InjectionToken",this.\u0275prov=void 0,"number"==typeof g?this.__NG_ELEMENT_ID__=g:void 0!==g&&(this.\u0275prov=We({token:this,providedIn:g.providedIn||"root",factory:g.factory}))}get multi(){return this}toString(){return`InjectionToken ${this._desc}`}}function re(o,c){o.forEach(g=>Array.isArray(g)?re(g,c):c(g))}function Ne(o,c,g){c>=o.length?o.push(g):o.splice(c,0,g)}function nt(o,c){return c>=o.length-1?o.pop():o.splice(c,1)[0]}function At(o,c){const g=[];for(let D=0;D<o;D++)g.push(c);return g}function qi(o,c,g){let D=Ta(o,c);return D>=0?o[1|D]=g:(D=~D,function Di(o,c,g,D){let N=o.length;if(N==c)o.push(g,D);else if(1===N)o.push(D,o[0]),o[0]=g;else{for(N--,o.push(o[N-1],o[N]);N>c;)o[N]=o[N-2],N--;o[c]=g,o[c+1]=D}}(o,D,c,g)),D}function qn(o,c){const g=Ta(o,c);if(g>=0)return o[1|g]}function Ta(o,c){return function Aa(o,c,g){let D=0,N=o.length>>g;for(;N!==D;){const G=D+(N-D>>1),se=o[G<<g];if(c===se)return G<<g;se>c?N=G:D=G+1}return~(N<<g)}(o,c,1)}const Xc=He(Ps("Inject",o=>({token:o})),-1),nc=He(Ps("Optional"),8),ac=He(Ps("SkipSelf"),4);var Do=(()=>((Do=Do||{})[Do.Important=1]="Important",Do[Do.DashCase=2]="DashCase",Do))();const sd=new Map;let b2=0;const u1="__ngContext__";function Wr(o,c){Fn(c)?(o[u1]=c[20],function nh(o){sd.set(o[20],o)}(c)):o[u1]=c}function f1(o,c){return undefined(o,c)}function Pl(o){const c=o[3];return Xn(c)?c[3]:c}function rl(o){return ud(o[13])}function Tc(o){return ud(o[4])}function ud(o){for(;null!==o&&!Xn(o);)o=o[4];return o}function Xo(o,c,g,D,N){if(null!=D){let G,se=!1;Xn(D)?G=D:Fn(D)&&(se=!0,D=D[0]);const Ee=Wn(D);0===o&&null!==g?null==N?gd(c,g,Ee):$o(c,g,Ee,N||null,!0):1===o&&null!==g?$o(c,g,Ee,N||null,!0):2===o?function bd(o,c,g){const D=_1(o,c);D&&function _d(o,c,g,D){o.removeChild(c,g,D)}(o,D,c,g)}(c,Ee,se):3===o&&c.destroyNode(Ee),null!=G&&function lh(o,c,g,D,N){const G=g[7];G!==Wn(g)&&Xo(c,o,D,G,N);for(let Ee=10;Ee<g.length;Ee++){const Ze=g[Ee];Fl(Ze[1],Ze,o,c,D,G)}}(c,o,G,g,N)}}function ps(o,c,g){return o.createElement(c,g)}function md(o,c){const g=o[9],D=g.indexOf(c),N=c[3];512&c[2]&&(c[2]&=-513,ji(N,-1)),g.splice(D,1)}function S2(o,c){if(o.length<=10)return;const g=10+c,D=o[g];if(D){const N=D[17];null!==N&&N!==o&&md(N,D),c>0&&(o[g-1][4]=D[4]);const G=nt(o,10+c);!function Qu(o,c){Fl(o,c,c[11],2,null,null),c[0]=null,c[6]=null}(D[1],D);const se=G[19];null!==se&&se.detachView(G[1]),D[3]=null,D[4]=null,D[2]&=-65}return D}function sc(o,c){if(!(128&c[2])){const g=c[11];g.destroyNode&&Fl(o,c,g,3,null,null),function Xu(o){let c=o[13];if(!c)return Hs(o[1],o);for(;c;){let g=null;if(Fn(c))g=c[13];else{const D=c[10];D&&(g=D)}if(!g){for(;c&&!c[4]&&c!==o;)Fn(c)&&Hs(c[1],c),c=c[3];null===c&&(c=o),Fn(c)&&Hs(c[1],c),g=c&&c[4]}c=g}}(c)}}function Hs(o,c){if(!(128&c[2])){c[2]&=-65,c[2]|=128,function pd(o,c){let g;if(null!=o&&null!=(g=o.destroyHooks))for(let D=0;D<g.length;D+=2){const N=c[g[D]];if(!(N instanceof yt)){const G=g[D+1];if(Array.isArray(G))for(let se=0;se<G.length;se+=2){const Ee=N[G[se]],Ze=G[se+1];try{Ze.call(Ee)}finally{}}else try{G.call(N)}finally{}}}}(o,c),function $u(o,c){const g=o.cleanup,D=c[7];let N=-1;if(null!==g)for(let G=0;G<g.length-1;G+=2)if("string"==typeof g[G]){const se=g[G+3];se>=0?D[N=se]():D[N=-se].unsubscribe(),G+=2}else{const se=D[N=g[G+1]];g[G].call(se)}if(null!==D){for(let G=N+1;G<D.length;G++)(0,D[G])();c[7]=null}}(o,c),1===c[1].type&&c[11].destroy();const g=c[17];if(null!==g&&Xn(c[3])){g!==c[3]&&md(g,c);const D=c[19];null!==D&&D.detachView(o)}!function Yu(o){sd.delete(o[20])}(c)}}function ch(o,c,g){return function E2(o,c,g){let D=c;for(;null!==D&&40&D.type;)D=(c=D).parent;if(null===D)return g[0];{const{componentOffset:N}=D;if(N>-1){const{encapsulation:G}=o.data[D.directiveStart+N];if(G===ti.None||G===ti.Emulated)return null}return ca(D,g)}}(o,c.parent,g)}function $o(o,c,g,D,N){o.insertBefore(c,g,D,N)}function gd(o,c,g){o.appendChild(c,g)}function cc(o,c,g,D,N){null!==D?$o(o,c,g,D,N):gd(o,c,g)}function _1(o,c){return o.parentNode(c)}function xr(o,c,g){return vd(o,c,g)}let Hl,y1,zl,vd=function sl(o,c,g){return 40&o.type?ca(o,g):null};function lc(o,c,g,D){const N=ch(o,D,c),G=c[11],Ee=xr(D.parent||c[6],D,c);if(null!=N)if(Array.isArray(g))for(let Ze=0;Ze<g.length;Ze++)cc(G,N,g[Ze],Ee,!1);else cc(G,N,g,Ee,!1)}function zs(o,c){if(null!==c){const g=c.type;if(3&g)return ca(c,o);if(4&g)return v1(-1,o[c.index]);if(8&g){const D=c.child;if(null!==D)return zs(o,D);{const N=o[c.index];return Xn(N)?v1(-1,N):Wn(N)}}if(32&g)return f1(c,o)()||Wn(o[c.index]);{const D=L2(o,c);return null!==D?Array.isArray(D)?D[0]:zs(Pl(o[16]),D):zs(o,c.next)}}return null}function L2(o,c){return null!==c?o[16][6].projection[c.projection]:null}function v1(o,c){const g=10+o+1;if(g<c.length){const D=c[g],N=D[1].firstChild;if(null!==N)return zs(D,N)}return c[7]}function yd(o,c,g,D,N,G,se){for(;null!=g;){const Ee=D[g.index],Ze=g.type;if(se&&0===c&&(Ee&&Wr(Wn(Ee),D),g.flags|=2),32!=(32&g.flags))if(8&Ze)yd(o,c,g.child,D,N,G,!1),Xo(c,o,N,Ee,G);else if(32&Ze){const mt=f1(g,D);let Ot;for(;Ot=mt();)Xo(c,o,N,Ot,G);Xo(c,o,N,Ee,G)}else 16&Ze?xd(o,c,D,g,N,G):Xo(c,o,N,Ee,G);g=se?g.projectionNext:g.next}}function Fl(o,c,g,D,N,G){yd(g,D,o.firstChild,c,N,G,!1)}function xd(o,c,g,D,N,G){const se=g[16],Ze=se[6].projection[D.projection];if(Array.isArray(Ze))for(let mt=0;mt<Ze.length;mt++)Xo(c,o,N,Ze[mt],G);else yd(o,c,Ze,se[3],N,G,!0)}function Cd(o,c,g){""===g?o.removeAttribute(c,"class"):o.setAttribute(c,"class",g)}function wd(o,c,g){const{mergedAttrs:D,classes:N,styles:G}=g;null!==D&&nn(o,c,D),null!==N&&Cd(o,c,N),null!==G&&function I2(o,c,g){o.setAttribute(c,"style",g)}(o,c,G)}function Ac(o){return function b1(){if(void 0===Hl&&(Hl=null,Et.trustedTypes))try{Hl=Et.trustedTypes.createPolicy("angular",{createHTML:o=>o,createScript:o=>o,createScriptURL:o=>o})}catch{}return Hl}()?.createHTML(o)||o}function O2(o){y1=o}function Md(){if(void 0===zl&&(zl=null,Et.trustedTypes))try{zl=Et.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:o=>o,createScript:o=>o,createScriptURL:o=>o})}catch{}return zl}function Sd(o){return Md()?.createHTML(o)||o}function Ed(o){return Md()?.createScriptURL(o)||o}class Lc{constructor(c){this.changingThisBreaksApplicationSecurity=c}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see ${U})`}}class R2 extends Lc{getTypeName(){return"HTML"}}class fh extends Lc{getTypeName(){return"Style"}}class N2 extends Lc{getTypeName(){return"Script"}}class F2 extends Lc{getTypeName(){return"URL"}}class mh extends Lc{getTypeName(){return"ResourceURL"}}function ro(o){return o instanceof Lc?o.changingThisBreaksApplicationSecurity:o}function ll(o,c){const g=function ph(o){return o instanceof Lc&&o.getTypeName()||null}(o);if(null!=g&&g!==c){if("ResourceURL"===g&&"URL"===c)return!0;throw new Error(`Required a safe ${c}, got a ${g} (see ${U})`)}return g===c}function H2(o){return new R2(o)}function gh(o){return new fh(o)}function _h(o){return new N2(o)}function vh(o){return new F2(o)}function z2(o){return new mh(o)}class bh{constructor(c){this.inertDocumentHelper=c}getInertBodyElement(c){c="<body><remove></remove>"+c;try{const g=(new window.DOMParser).parseFromString(Ac(c),"text/html").body;return null===g?this.inertDocumentHelper.getInertBodyElement(c):(g.removeChild(g.firstChild),g)}catch{return null}}}class yh{constructor(c){if(this.defaultDoc=c,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert"),null==this.inertDocument.body){const g=this.inertDocument.createElement("html");this.inertDocument.appendChild(g);const D=this.inertDocument.createElement("body");g.appendChild(D)}}getInertBodyElement(c){const g=this.inertDocument.createElement("template");if("content"in g)return g.innerHTML=Ac(c),g;const D=this.inertDocument.createElement("body");return D.innerHTML=Ac(c),this.defaultDoc.documentMode&&this.stripCustomNsAttrs(D),D}stripCustomNsAttrs(c){const g=c.attributes;for(let N=g.length-1;0<N;N--){const se=g.item(N).name;("xmlns:ns1"===se||0===se.indexOf("ns1:"))&&c.removeAttribute(se)}let D=c.firstChild;for(;D;)D.nodeType===Node.ELEMENT_NODE&&this.stripCustomNsAttrs(D),D=D.nextSibling}}const U2=/^(?:(?:https?|mailto|data|ftp|tel|file|sms):|[^&:/?#]*(?:[/?#]|$))/gi;function x1(o){return(o=String(o)).match(U2)?o:"unsafe:"+o}function gs(o){const c={};for(const g of o.split(","))c[g]=!0;return c}function Vl(...o){const c={};for(const g of o)for(const D in g)g.hasOwnProperty(D)&&(c[D]=!0);return c}const G2=gs("area,br,col,hr,img,wbr"),Z2=gs("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),C1=gs("rp,rt"),Td=Vl(G2,Vl(Z2,gs("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")),Vl(C1,gs("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")),Vl(C1,Z2)),w1=gs("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),Ad=Vl(w1,gs("abbr,accesskey,align,alt,autoplay,axis,bgcolor,border,cellpadding,cellspacing,class,clear,color,cols,colspan,compact,controls,coords,datetime,default,dir,download,face,headers,height,hidden,hreflang,hspace,ismap,itemscope,itemprop,kind,label,lang,language,loop,media,muted,nohref,nowrap,open,preload,rel,rev,role,rows,rowspan,rules,scope,scrolling,shape,size,sizes,span,srclang,srcset,start,summary,tabindex,target,title,translate,type,usemap,valign,value,vspace,width"),gs("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")),Y2=gs("script,style,template");class j2{constructor(){this.sanitizedSomething=!1,this.buf=[]}sanitizeChildren(c){let g=c.firstChild,D=!0;for(;g;)if(g.nodeType===Node.ELEMENT_NODE?D=this.startElement(g):g.nodeType===Node.TEXT_NODE?this.chars(g.nodeValue):this.sanitizedSomething=!0,D&&g.firstChild)g=g.firstChild;else for(;g;){g.nodeType===Node.ELEMENT_NODE&&this.endElement(g);let N=this.checkClobberedElement(g,g.nextSibling);if(N){g=N;break}g=this.checkClobberedElement(g,g.parentNode)}return this.buf.join("")}startElement(c){const g=c.nodeName.toLowerCase();if(!Td.hasOwnProperty(g))return this.sanitizedSomething=!0,!Y2.hasOwnProperty(g);this.buf.push("<"),this.buf.push(g);const D=c.attributes;for(let N=0;N<D.length;N++){const G=D.item(N),se=G.name,Ee=se.toLowerCase();if(!Ad.hasOwnProperty(Ee)){this.sanitizedSomething=!0;continue}let Ze=G.value;w1[Ee]&&(Ze=x1(Ze)),this.buf.push(" ",se,'="',Ld(Ze),'"')}return this.buf.push(">"),!0}endElement(c){const g=c.nodeName.toLowerCase();Td.hasOwnProperty(g)&&!G2.hasOwnProperty(g)&&(this.buf.push("</"),this.buf.push(g),this.buf.push(">"))}chars(c){this.buf.push(Ld(c))}checkClobberedElement(c,g){if(g&&(c.compareDocumentPosition(g)&Node.DOCUMENT_POSITION_CONTAINED_BY)===Node.DOCUMENT_POSITION_CONTAINED_BY)throw new Error(`Failed to sanitize html because the element is clobbered: ${c.outerHTML}`);return g}}const K2=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,dl=/([^\#-~ |!])/g;function Ld(o){return o.replace(/&/g,"&amp;").replace(K2,function(c){return"&#"+(1024*(c.charCodeAt(0)-55296)+(c.charCodeAt(1)-56320)+65536)+";"}).replace(dl,function(c){return"&#"+c.charCodeAt(0)+";"}).replace(/</g,"&lt;").replace(/>/g,"&gt;")}let M1;function Q2(o,c){let g=null;try{M1=M1||function V2(o){const c=new yh(o);return function B2(){try{return!!(new window.DOMParser).parseFromString(Ac(""),"text/html")}catch{return!1}}()?new bh(c):c}(o);let D=c?String(c):"";g=M1.getInertBodyElement(D);let N=5,G=D;do{if(0===N)throw new Error("Failed to sanitize html because the input is unstable");N--,D=G,G=g.innerHTML,g=M1.getInertBodyElement(D)}while(D!==G);return Ac((new j2).sanitizeChildren(Dd(g)||g))}finally{if(g){const D=Dd(g)||g;for(;D.firstChild;)D.removeChild(D.firstChild)}}}function Dd(o){return"content"in o&&function q2(o){return o.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===o.nodeName}(o)?o.content:null}var Ja=(()=>((Ja=Ja||{})[Ja.NONE=0]="NONE",Ja[Ja.HTML=1]="HTML",Ja[Ja.STYLE=2]="STYLE",Ja[Ja.SCRIPT=3]="SCRIPT",Ja[Ja.URL=4]="URL",Ja[Ja.RESOURCE_URL=5]="RESOURCE_URL",Ja))();function hl(o){const c=Dc();return c?Sd(c.sanitize(Ja.HTML,o)||""):ll(o,"HTML")?Sd(ro(o)):Q2(function P2(){return void 0!==y1?y1:typeof document<"u"?document:void 0}(),ee(o))}function X2(o){const c=Dc();return c?c.sanitize(Ja.URL,o)||"":ll(o,"URL")?ro(o):x1(ee(o))}function ul(o){const c=Dc();if(c)return Ed(c.sanitize(Ja.RESOURCE_URL,o)||"");if(ll(o,"ResourceURL"))return Ed(ro(o));throw new W(904,!1)}function wh(o,c,g){return function o3(o,c){return"src"===c&&("embed"===o||"frame"===o||"iframe"===o||"media"===o||"script"===o)||"href"===c&&("base"===o||"link"===o)?ul:X2}(c,g)(o)}function Dc(){const o=Si();return o&&o[12]}const Ic=new da("ENVIRONMENT_INITIALIZER"),$2=new da("INJECTOR",-1),e0=new da("INJECTOR_DEF_TYPES");class dc{get(c,g=ke){if(g===ke){const D=new Error(`NullInjectorError: No provider for ${P(c)}!`);throw D.name="NullInjectorError",D}return g}}function Mh(o){return{\u0275providers:o}}function Id(...o){return{\u0275providers:fl(0,o),\u0275fromNgModule:!0}}function fl(o,...c){const g=[],D=new Set;let N;return re(c,G=>{const se=G;kc(se,g,[],D)&&(N||(N=[]),N.push(se))}),void 0!==N&&t0(N,g),g}function t0(o,c){for(let g=0;g<o.length;g++){const{providers:N}=o[g];Vs(N,G=>{c.push(G)})}}function kc(o,c,g,D){if(!(o=O(o)))return!1;let N=null,G=Ae(o);const se=!G&&Ci(o);if(G||se){if(se&&!se.standalone)return!1;N=o}else{const Ze=o.ngModule;if(G=Ae(Ze),!G)return!1;N=Ze}const Ee=D.has(N);if(se){if(Ee)return!1;if(D.add(N),se.dependencies){const Ze="function"==typeof se.dependencies?se.dependencies():se.dependencies;for(const mt of Ze)kc(mt,c,g,D)}}else{if(!G)return!1;{if(null!=G.imports&&!Ee){let mt;D.add(N);try{re(G.imports,Ot=>{kc(Ot,c,g,D)&&(mt||(mt=[]),mt.push(Ot))})}finally{}void 0!==mt&&t0(mt,c)}if(!Ee){const mt=Ya(N)||(()=>new N);c.push({provide:N,useFactory:mt,deps:ht},{provide:e0,useValue:N,multi:!0},{provide:Ic,useValue:()=>kt(N),multi:!0})}const Ze=G.providers;null==Ze||Ee||Vs(Ze,Ot=>{c.push(Ot)})}}return N!==o&&void 0!==o.providers}function Vs(o,c){for(let g of o)R(g)&&(g=g.\u0275providers),Array.isArray(g)?Vs(g,c):c(g)}const Ar=C({provide:String,useValue:C});function Ul(o){return null!==o&&"object"==typeof o&&Ar in o}function Bs(o){return"function"==typeof o}const ml=new da("Set Injector scope."),Us={},Sh={};let S1;function Zl(){return void 0===S1&&(S1=new dc),S1}class Oc{}class kd extends Oc{get destroyed(){return this._destroyed}constructor(c,g,D,N){super(),this.parent=g,this.source=D,this.scopes=N,this.records=new Map,this._ngOnDestroyHooks=new Set,this._onDestroyHooks=[],this._destroyed=!1,hc(c,se=>this.processProvider(se)),this.records.set($2,Pc(void 0,this)),N.has("environment")&&this.records.set(Oc,Pc(void 0,this));const G=this.records.get(ml);null!=G&&"string"==typeof G.value&&this.scopes.add(G.value),this.injectorDefTypes=new Set(this.get(e0.multi,ht,Be.Self))}destroy(){this.assertNotDestroyed(),this._destroyed=!0;try{for(const c of this._ngOnDestroyHooks)c.ngOnDestroy();for(const c of this._onDestroyHooks)c()}finally{this.records.clear(),this._ngOnDestroyHooks.clear(),this.injectorDefTypes.clear(),this._onDestroyHooks.length=0}}onDestroy(c){this._onDestroyHooks.push(c)}runInContext(c){this.assertNotDestroyed();const g=Ht(this),D=ft(void 0);try{return c()}finally{Ht(g),ft(D)}}get(c,g=ke,D=Be.Default){this.assertNotDestroyed(),D=J(D);const N=Ht(this),G=ft(void 0);try{if(!(D&Be.SkipSelf)){let Ee=this.records.get(c);if(void 0===Ee){const Ze=function E1(o){return"function"==typeof o||"object"==typeof o&&o instanceof da}(c)&&ye(c);Ee=Ze&&this.injectableDefInScope(Ze)?Pc(Od(c),Us):null,this.records.set(c,Ee)}if(null!=Ee)return this.hydrate(c,Ee)}return(D&Be.Self?Zl():this.parent).get(c,g=D&Be.Optional&&g===ke?null:g)}catch(se){if("NullInjectorError"===se.name){if((se[xt]=se[xt]||[]).unshift(P(c)),N)throw se;return function ii(o,c,g,D){const N=o[xt];throw c[Qe]&&N.unshift(c[Qe]),o.message=function Gt(o,c,g,D=null){o=o&&"\n"===o.charAt(0)&&"\u0275"==o.charAt(1)?o.slice(2):o;let N=P(c);if(Array.isArray(c))N=c.map(P).join(" -> ");else if("object"==typeof c){let G=[];for(let se in c)if(c.hasOwnProperty(se)){let Ee=c[se];G.push(se+":"+("string"==typeof Ee?JSON.stringify(Ee):P(Ee)))}N=`{${G.join(", ")}}`}return`${g}${D?"("+D+")":""}[${N}]: ${o.replace(Re,"\n ")}`}("\n"+o.message,N,g,D),o.ngTokenPath=N,o[xt]=null,o}(se,c,"R3InjectorError",this.source)}throw se}finally{ft(G),Ht(N)}}resolveInjectorInitializers(){const c=Ht(this),g=ft(void 0);try{const D=this.get(Ic.multi,ht,Be.Self);for(const N of D)N()}finally{Ht(c),ft(g)}}toString(){const c=[],g=this.records;for(const D of g.keys())c.push(P(D));return`R3Injector[${c.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new W(205,!1)}processProvider(c){let g=Bs(c=O(c))?c:O(c&&c.provide);const D=function o0(o){return Ul(o)?Pc(void 0,o.useValue):Pc(Pd(o),Us)}(c);if(Bs(c)||!0!==c.multi)this.records.get(g);else{let N=this.records.get(g);N||(N=Pc(void 0,Us,!0),N.factory=()=>be(N.multi),this.records.set(g,N)),g=c,N.multi.push(c)}this.records.set(g,D)}hydrate(c,g){return g.value===Us&&(g.value=Sh,g.value=g.factory()),"object"==typeof g.value&&g.value&&function Eh(o){return null!==o&&"object"==typeof o&&"function"==typeof o.ngOnDestroy}(g.value)&&this._ngOnDestroyHooks.add(g.value),g.value}injectableDefInScope(c){if(!c.providedIn)return!1;const g=O(c.providedIn);return"string"==typeof g?"any"===g||this.scopes.has(g):this.injectorDefTypes.has(g)}}function Od(o){const c=ye(o),g=null!==c?c.factory:Ya(o);if(null!==g)return g;if(o instanceof da)throw new W(204,!1);if(o instanceof Function)return function r0(o){const c=o.length;if(c>0)throw At(c,"?"),new W(204,!1);const g=function oe(o){const c=o&&(o[he]||o[te]);if(c){const g=function je(o){if(o.hasOwnProperty("name"))return o.name;const c=(""+o).match(/^function\s*([^\s(]+)/);return null===c?"":c[1]}(o);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.`),c}return null}(o);return null!==g?()=>g.factory(o):()=>new o}(o);throw new W(204,!1)}function Pd(o,c,g){let D;if(Bs(o)){const N=O(o);return Ya(N)||Od(N)}if(Ul(o))D=()=>O(o.useValue);else if(function Gl(o){return!(!o||!o.useFactory)}(o))D=()=>o.useFactory(...be(o.deps||[]));else if(function n0(o){return!(!o||!o.useExisting)}(o))D=()=>kt(O(o.useExisting));else{const N=O(o&&(o.useClass||o.provide));if(!function s0(o){return!!o.deps}(o))return Ya(N)||Od(N);D=()=>new N(...be(o.deps))}return D}function Pc(o,c,g=!1){return{factory:o,value:c,multi:g?[]:void 0}}function hc(o,c){for(const g of o)Array.isArray(g)?hc(g,c):g&&R(g)?hc(g.\u0275providers,c):c(g)}class c0{}class l0{}class Nd{resolveComponentFactory(c){throw function d0(o){const c=Error(`No component factory found for ${P(o)}. Did you add it to @NgModule.entryComponents?`);return c.ngComponent=o,c}(c)}}let es=(()=>{class o{}return o.NULL=new Nd,o})();function T1(){return Rr(Ha(),Si())}function Rr(o,c){return new pl(ca(o,c))}let pl=(()=>{class o{constructor(g){this.nativeElement=g}}return o.__NG_ELEMENT_ID__=T1,o})();function Wl(o){return o instanceof pl?o.nativeElement:o}class _s{}let Th=(()=>{class o{}return o.__NG_ELEMENT_ID__=()=>function c3(){const o=Si(),g=Ct(Ha().index,o);return(Fn(g)?g:o)[11]}(),o})(),u0=(()=>{class o{}return o.\u0275prov=We({token:o,providedIn:"root",factory:()=>null}),o})();class Fd{constructor(c){this.full=c,this.major=c.split(".")[0],this.minor=c.split(".")[1],this.patch=c.split(".").slice(2).join(".")}}const Ah=new Fd("15.1.5"),A1={};function zd(o){return o.ngOriginalError}class gl{constructor(){this._console=console}handleError(c){const g=this._findOriginalError(c);this._console.error("ERROR",c),g&&this._console.error("ORIGINAL ERROR",g)}_findOriginalError(c){let g=c&&zd(c);for(;g&&zd(g);)g=zd(g);return g||null}}function Vd(o){return o.ownerDocument.defaultView}function Gs(o){return o instanceof Function?o():o}function g0(o,c,g){let D=o.length;for(;;){const N=o.indexOf(c,g);if(-1===N)return N;if(0===N||o.charCodeAt(N-1)<=32){const G=c.length;if(N+G===D||o.charCodeAt(N+G)<=32)return N}g=N+1}}const bl="ng-template";function Fh(o,c,g){let D=0;for(;D<o.length;){let N=o[D++];if(g&&"class"===N){if(N=o[D],-1!==g0(N.toLowerCase(),c,0))return!0}else if(1===N){for(;D<o.length&&"string"==typeof(N=o[D++]);)if(N.toLowerCase()===c)return!0;return!1}}return!1}function _0(o){return 4===o.type&&o.value!==bl}function Hh(o,c,g){return c===(4!==o.type||g?o.value:bl)}function zh(o,c,g){let D=4;const N=o.attrs||[],G=function Bh(o){for(let c=0;c<o.length;c++)if(xn(o[c]))return c;return o.length}(N);let se=!1;for(let Ee=0;Ee<c.length;Ee++){const Ze=c[Ee];if("number"!=typeof Ze){if(!se)if(4&D){if(D=2|1&D,""!==Ze&&!Hh(o,Ze,g)||""===Ze&&1===c.length){if(ts(D))return!1;se=!0}}else{const mt=8&D?Ze:c[++Ee];if(8&D&&null!==o.attrs){if(!Fh(o.attrs,mt,g)){if(ts(D))return!1;se=!0}continue}const Xt=v0(8&D?"class":Ze,N,_0(o),g);if(-1===Xt){if(ts(D))return!1;se=!0;continue}if(""!==mt){let hi;hi=Xt>G?"":N[Xt+1].toLowerCase();const bi=8&D?hi:null;if(bi&&-1!==g0(bi,mt,0)||2&D&&mt!==hi){if(ts(D))return!1;se=!0}}}}else{if(!se&&!ts(D)&&!ts(Ze))return!1;if(se&&ts(Ze))continue;se=!1,D=Ze|1&D}}return ts(D)||se}function ts(o){return 0==(1&o)}function v0(o,c,g,D){if(null===c)return-1;let N=0;if(D||!g){let G=!1;for(;N<c.length;){const se=c[N];if(se===o)return N;if(3===se||6===se)G=!0;else{if(1===se||2===se){let Ee=c[++N];for(;"string"==typeof Ee;)Ee=c[++N];continue}if(4===se)break;if(0===se){N+=4;continue}}N+=G?1:2}return-1}return function y0(o,c){let g=o.indexOf(4);if(g>-1)for(g++;g<o.length;){const D=o[g];if("number"==typeof D)return-1;if(D===c)return g;g++}return-1}(c,o)}function b0(o,c,g=!1){for(let D=0;D<c.length;D++)if(zh(o,c[D],g))return!0;return!1}function Yl(o,c){e:for(let g=0;g<c.length;g++){const D=c[g];if(o.length===D.length){for(let N=0;N<o.length;N++)if(o[N]!==D[N])continue e;return!0}}return!1}function Rc(o,c){return o?":not("+c.trim()+")":c}function Uh(o){let c=o[0],g=1,D=2,N="",G=!1;for(;g<o.length;){let se=o[g];if("string"==typeof se)if(2&D){const Ee=o[++g];N+="["+se+(Ee.length>0?'="'+Ee+'"':"")+"]"}else 8&D?N+="."+se:4&D&&(N+=" "+se);else""!==N&&!ts(se)&&(c+=Rc(G,N),N=""),D=se,G=G||!ts(D);g++}return""!==N&&(c+=Rc(G,N)),c}const Rn={};function Ud(o){Gd(Ln(),Si(),ka()+o,!1)}function Gd(o,c,g,D){if(!D)if(3==(3&c[2])){const G=o.preOrderCheckHooks;null!==G&&Wi(c,G,g)}else{const G=o.preOrderHooks;null!==G&&Ie(c,G,0,g)}qa(g)}function jd(o,c=null,g=null,D){const N=Kd(o,c,g,D);return N.resolveInjectorInitializers(),N}function Kd(o,c=null,g=null,D,N=new Set){const G=[g||ht,Id(o)];return D=D||("object"==typeof o?void 0:P(o)),new kd(G,c||Zl(),D||null,N)}let uc=(()=>{class o{static create(g,D){if(Array.isArray(g))return jd({name:""},D,g,"");{const N=g.name??"";return jd({name:N},g.parent,g.providers,N)}}}return o.THROW_IF_NOT_FOUND=ke,o.NULL=new dc,o.\u0275prov=We({token:o,providedIn:"any",factory:()=>kt($2)}),o.__NG_ELEMENT_ID__=-1,o})();function bs(o,c=Be.Default){const g=Si();return null===g?kt(o,c):K1(Ha(),g,O(o),c)}function fc(){throw new Error("invalid")}function Qd(o,c){const g=o.contentQueries;if(null!==g)for(let D=0;D<g.length;D+=2){const G=g[D+1];if(-1!==G){const se=o.data[G];ss(g[D]),se.contentQueries(2,c[G],G)}}}function Sn(o,c,g,D,N,G,se,Ee,Ze,mt,Ot){const Xt=c.blueprint.slice();return Xt[0]=N,Xt[2]=76|D,(null!==Ot||o&&1024&o[2])&&(Xt[2]|=1024),la(Xt),Xt[3]=Xt[15]=o,Xt[8]=g,Xt[10]=se||o&&o[10],Xt[11]=Ee||o&&o[11],Xt[12]=Ze||o&&o[12]||null,Xt[9]=mt||o&&o[9]||null,Xt[6]=G,Xt[20]=function al(){return b2++}(),Xt[21]=Ot,Xt[16]=2==c.type?o[16]:Xt,Xt}function Jn(o,c,g,D,N){let G=o.data[c];if(null===G)G=function Xa(o,c,g,D,N){const G=Yo(),se=jo(),Ze=o.data[c]=function Mf(o,c,g,D,N,G){return{type:g,index:D,insertBeforeIndex:null,injectorIndex:c?c.injectorIndex:-1,directiveStart:-1,directiveEnd:-1,directiveStylingLast:-1,componentOffset:-1,propertyBindings:null,flags:0,providerIndexes:0,value:N,attrs:G,mergedAttrs:null,localNames:null,initialInputs:void 0,inputs:null,outputs:null,tViews:null,next:null,projectionNext:null,child:null,parent:c,projection:null,styles:null,stylesWithoutHost:null,residualStyles:void 0,classes:null,classesWithoutHost:null,residualClasses:void 0,classBindings:0,styleBindings:0}}(0,se?G:G&&G.parent,g,c,D,N);return null===o.firstChild&&(o.firstChild=Ze),null!==G&&(se?null==G.child&&null!==Ze.parent&&(G.child=Ze):null===G.next&&(G.next=Ze)),Ze}(o,c,g,D,N),function No(){return bn.lFrame.inI18n}()&&(G.flags|=32);else if(64&G.type){G.type=g,G.value=D,G.attrs=N;const se=function eo(){const o=bn.lFrame,c=o.currentTNode;return o.isParent?c:c.parent}();G.injectorIndex=null===se?-1:se.injectorIndex}return vr(G,!0),G}function ko(o,c,g,D){if(0===g)return-1;const N=c.length;for(let G=0;G<g;G++)c.push(D),o.blueprint.push(D),o.data.push(null);return N}function bo(o,c,g){$s(c);try{const D=o.viewQuery;null!==D&&$h(1,D,g);const N=o.template;null!==N&&Va(o,c,N,1,g),o.firstCreatePass&&(o.firstCreatePass=!1),o.staticContentQueries&&Qd(o,c),o.staticViewQueries&&$h(2,o.viewQuery,g);const G=o.components;null!==G&&function Cn(o,c){for(let g=0;g<c.length;g++)Jh(o,c[g])}(c,G)}catch(D){throw o.firstCreatePass&&(o.incompleteFirstPass=!0,o.firstCreatePass=!1),D}finally{c[2]&=-5,to()}}function ys(o,c,g,D){const N=c[2];if(128!=(128&N)){$s(c);try{la(c),function Qa(o){return bn.lFrame.bindingIndex=o}(o.bindingStartIndex),null!==g&&Va(o,c,g,2,D);const se=3==(3&N);if(se){const mt=o.preOrderCheckHooks;null!==mt&&Wi(c,mt,null)}else{const mt=o.preOrderHooks;null!==mt&&Ie(c,mt,0,null),gt(c,0)}if(function Nm(o){for(let c=rl(o);null!==c;c=Tc(c)){if(!c[2])continue;const g=c[9];for(let D=0;D<g.length;D++){const N=g[D];512&N[2]||ji(N[3],1),N[2]|=512}}}(c),function g3(o){for(let c=rl(o);null!==c;c=Tc(c))for(let g=10;g<c.length;g++){const D=c[g],N=D[1];Pi(D)&&ys(N,D,N.template,D[8])}}(c),null!==o.contentQueries&&Qd(o,c),se){const mt=o.contentCheckHooks;null!==mt&&Wi(c,mt)}else{const mt=o.contentHooks;null!==mt&&Ie(c,mt,1),gt(c,1)}!function Yh(o,c){const g=o.hostBindingOpCodes;if(null!==g)try{for(let D=0;D<g.length;D++){const N=g[D];if(N<0)qa(~N);else{const G=N,se=g[++D],Ee=g[++D];Xs(se,G),Ee(2,c[G])}}}finally{qa(-1)}}(o,c);const Ee=o.components;null!==Ee&&function mn(o,c){for(let g=0;g<c.length;g++)Fm(o,c[g])}(c,Ee);const Ze=o.viewQuery;if(null!==Ze&&$h(2,Ze,D),se){const mt=o.viewCheckHooks;null!==mt&&Wi(c,mt)}else{const mt=o.viewHooks;null!==mt&&Ie(c,mt,2),gt(c,2)}!0===o.firstUpdatePass&&(o.firstUpdatePass=!1),c[2]&=-41,512&c[2]&&(c[2]&=-513,ji(c[3],-1))}finally{to()}}}function Va(o,c,g,D,N){const G=ka(),se=2&D;try{qa(-1),se&&c.length>22&&Gd(o,c,22,!1),g(D,N)}finally{qa(G)}}function qd(o,c,g){if(Dr(c)){const N=c.directiveEnd;for(let G=c.directiveStart;G<N;G++){const se=o.data[G];se.contentQueries&&se.contentQueries(1,g[G],G)}}}function Jd(o,c,g){wi()&&(function Lf(o,c,g,D){const N=g.directiveStart,G=g.directiveEnd;Sr(g)&&function Pf(o,c,g){const D=ca(c,o),N=Ys(g),G=o[10],se=T0(o,Sn(o,N,null,g.onPush?32:16,D,c,G,G.createRenderer(D,g),null,null,null));o[c.index]=se}(c,g,o.data[N+g.componentOffset]),o.firstCreatePass||Wc(g,c),Wr(D,c);const se=g.initialInputs;for(let Ee=N;Ee<G;Ee++){const Ze=o.data[Ee],mt=cs(c,o,Ee,g);Wr(mt,c),null!==se&&Rf(0,Ee-N,mt,Ze,0,se),jn(Ze)&&(Ct(g.index,c)[8]=cs(c,o,Ee,g))}}(o,c,g,ca(g,c)),64==(64&g.flags)&&f3(o,c,g))}function Hr(o,c,g=ca){const D=c.localNames;if(null!==D){let N=c.index+1;for(let G=0;G<D.length;G+=2){const se=D[G+1],Ee=-1===se?g(c,o):o[se];o[N++]=Ee}}}function Ys(o){const c=o.tView;return null===c||c.incompleteFirstPass?o.tView=Oo(1,null,o.template,o.decls,o.vars,o.directiveDefs,o.pipeDefs,o.viewQuery,o.schemas,o.consts):c}function Oo(o,c,g,D,N,G,se,Ee,Ze,mt){const Ot=22+D,Xt=Ot+N,hi=function I1(o,c){const g=[];for(let D=0;D<c;D++)g.push(D<o?null:Rn);return g}(Ot,Xt),bi="function"==typeof mt?mt():mt;return hi[1]={type:o,blueprint:hi,template:g,queries:null,viewQuery:Ee,declTNode:c,data:hi.slice().fill(null,Ot),bindingStartIndex:Ot,expandoStartIndex:Xt,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 se?se():se,firstChild:null,schemas:Ze,consts:bi,incompleteFirstPass:!1}}function d3(o,c,g,D){const N=b3(c);null===g?N.push(D):(N.push(g),o.firstCreatePass&&Hf(o).push(D,N.length-1))}function h3(o,c,g,D){for(let N in o)if(o.hasOwnProperty(N)){g=null===g?{}:g;const G=o[N];null===D?Sf(g,c,N,G):D.hasOwnProperty(N)&&Sf(g,c,D[N],G)}return g}function Sf(o,c,g,D){o.hasOwnProperty(g)?o[g].push(c,D):o[g]=[c,D]}function Po(o,c,g,D,N,G,se,Ee){const Ze=ca(c,g);let Ot,mt=c.inputs;!Ee&&null!=mt&&(Ot=mt[D])?(eu(o,g,Ot,D,N),Sr(c)&&Ef(g,c.index)):3&c.type&&(D=function Pm(o){return"class"===o?"className":"for"===o?"htmlFor":"formaction"===o?"formAction":"innerHtml"===o?"innerHTML":"readonly"===o?"readOnly":"tabindex"===o?"tabIndex":o}(D),N=null!=se?se(N,c.value||"",D):N,G.setProperty(Ze,D,N))}function Ef(o,c){const g=Ct(c,o);16&g[2]||(g[2]|=32)}function jh(o,c,g,D){let N=!1;if(wi()){const G=null===D?null:{"":-1},se=function m3(o,c){const g=o.directiveRegistry;let D=null,N=null;if(g)for(let G=0;G<g.length;G++){const se=g[G];if(b0(c,se.selectors,!1))if(D||(D=[]),jn(se))if(null!==se.findHostDirectiveDefs){const Ee=[];N=N||new Map,se.findHostDirectiveDefs(se,Ee,N),D.unshift(...Ee,se),Qh(o,c,Ee.length)}else D.unshift(se),Qh(o,c,0);else N=N||new Map,se.findHostDirectiveDefs?.(se,D,N),D.push(se)}return null===D?null:[D,N]}(o,g);let Ee,Ze;null===se?Ee=Ze=null:[Ee,Ze]=se,null!==Ee&&(N=!0,Kh(o,c,g,Ee,G,Ze)),G&&function If(o,c,g){if(c){const D=o.localNames=[];for(let N=0;N<c.length;N+=2){const G=g[c[N+1]];if(null==G)throw new W(-301,!1);D.push(c[N],G)}}}(g,D,G)}return g.mergedAttrs=fa(g.mergedAttrs,g.attrs),N}function Kh(o,c,g,D,N,G){for(let mt=0;mt<D.length;mt++)tc(Wc(g,c),o,D[mt].type);!function kf(o,c,g){o.flags|=1,o.directiveStart=c,o.directiveEnd=c+g,o.providerIndexes=c}(g,o.data.length,D.length);for(let mt=0;mt<D.length;mt++){const Ot=D[mt];Ot.providersResolver&&Ot.providersResolver(Ot)}let se=!1,Ee=!1,Ze=ko(o,c,D.length,null);for(let mt=0;mt<D.length;mt++){const Ot=D[mt];g.mergedAttrs=fa(g.mergedAttrs,Ot.hostAttrs),Of(o,g,c,Ze,Ot),qh(Ze,Ot,N),null!==Ot.contentQueries&&(g.flags|=4),(null!==Ot.hostBindings||null!==Ot.hostAttrs||0!==Ot.hostVars)&&(g.flags|=64);const Xt=Ot.type.prototype;!se&&(Xt.ngOnChanges||Xt.ngOnInit||Xt.ngDoCheck)&&((o.preOrderHooks||(o.preOrderHooks=[])).push(g.index),se=!0),!Ee&&(Xt.ngOnChanges||Xt.ngDoCheck)&&((o.preOrderCheckHooks||(o.preOrderCheckHooks=[])).push(g.index),Ee=!0),Ze++}!function Om(o,c,g){const N=c.directiveEnd,G=o.data,se=c.attrs,Ee=[];let Ze=null,mt=null;for(let Ot=c.directiveStart;Ot<N;Ot++){const Xt=G[Ot],hi=g?g.get(Xt):null,Ri=hi?hi.outputs:null;Ze=h3(Xt.inputs,Ot,Ze,hi?hi.inputs:null),mt=h3(Xt.outputs,Ot,mt,Ri);const $i=null===Ze||null===se||_0(c)?null:Nf(Ze,Ot,se);Ee.push($i)}null!==Ze&&(Ze.hasOwnProperty("class")&&(c.flags|=8),Ze.hasOwnProperty("style")&&(c.flags|=16)),c.initialInputs=Ee,c.inputs=Ze,c.outputs=mt}(o,g,G)}function f3(o,c,g){const D=g.directiveStart,N=g.directiveEnd,G=g.index,se=function Es(){return bn.lFrame.currentDirectiveIndex}();try{qa(G);for(let Ee=D;Ee<N;Ee++){const Ze=o.data[Ee],mt=c[Ee];os(Ee),(null!==Ze.hostBindings||0!==Ze.hostVars||null!==Ze.hostAttrs)&&Df(Ze,mt)}}finally{qa(-1),os(se)}}function Df(o,c){null!==o.hostBindings&&o.hostBindings(1,c)}function Qh(o,c,g){c.componentOffset=g,(o.components||(o.components=[])).push(c.index)}function qh(o,c,g){if(g){if(c.exportAs)for(let D=0;D<c.exportAs.length;D++)g[c.exportAs[D]]=o;jn(c)&&(g[""]=o)}}function Of(o,c,g,D,N){o.data[D]=N;const G=N.factory||(N.factory=Ya(N.type)),se=new yt(G,jn(N),bs);o.blueprint[D]=se,g[D]=se,function Af(o,c,g,D,N){const G=N.hostBindings;if(G){let se=o.hostBindingOpCodes;null===se&&(se=o.hostBindingOpCodes=[]);const Ee=~c.index;(function u3(o){let c=o.length;for(;c>0;){const g=o[--c];if("number"==typeof g&&g<0)return g}return 0})(se)!=Ee&&se.push(Ee),se.push(g,D,G)}}(o,c,D,ko(o,g,N.hostVars,Rn),N)}function js(o,c,g,D,N,G){const se=ca(o,c);!function p3(o,c,g,D,N,G,se){if(null==G)o.removeAttribute(c,N,g);else{const Ee=null==se?ee(G):se(G,D||"",N);o.setAttribute(c,N,Ee,g)}}(c[11],se,G,o.value,g,D,N)}function Rf(o,c,g,D,N,G){const se=G[c];if(null!==se){const Ee=D.setInput;for(let Ze=0;Ze<se.length;){const mt=se[Ze++],Ot=se[Ze++],Xt=se[Ze++];null!==Ee?D.setInput(g,Xt,mt,Ot):g[Ot]=Xt}}}function Nf(o,c,g){let D=null,N=0;for(;N<g.length;){const G=g[N];if(0!==G)if(5!==G){if("number"==typeof G)break;if(o.hasOwnProperty(G)){null===D&&(D=[]);const se=o[G];for(let Ee=0;Ee<se.length;Ee+=2)if(se[Ee]===c){D.push(G,se[Ee+1],g[N+1]);break}}N+=2}else N+=2;else N+=4}return D}function Ff(o,c,g,D){return[o,!0,!1,c,null,0,D,g,null,null]}function Fm(o,c){const g=Ct(c,o);if(Pi(g)){const D=g[1];48&g[2]?ys(D,g,D.template,g[8]):g[5]>0&&_3(g)}}function _3(o){for(let D=rl(o);null!==D;D=Tc(D))for(let N=10;N<D.length;N++){const G=D[N];if(Pi(G))if(512&G[2]){const se=G[1];ys(se,G,se.template,G[8])}else G[5]>0&&_3(G)}const g=o[1].components;if(null!==g)for(let D=0;D<g.length;D++){const N=Ct(g[D],o);Pi(N)&&N[5]>0&&_3(N)}}function Jh(o,c){const g=Ct(c,o),D=g[1];(function Hm(o,c){for(let g=c.length;g<o.blueprint.length;g++)c.push(o.blueprint[g])})(D,g),bo(D,g,g[8])}function T0(o,c){return o[13]?o[14][4]=c:o[13]=c,o[14]=c,c}function v3(o){for(;o;){o[2]|=32;const c=Pl(o);if(Ga(o)&&!c)return o;o=c}return null}function Xh(o,c,g,D=!0){const N=c[10];N.begin&&N.begin();try{ys(o,c,o.template,g)}catch(se){throw D&&x3(c,se),se}finally{N.end&&N.end()}}function $h(o,c,g){ss(0),c(o,g)}function b3(o){return o[7]||(o[7]=[])}function Hf(o){return o.cleanup||(o.cleanup=[])}function y3(o,c,g){return(null===o||jn(o))&&(g=function _r(o){for(;Array.isArray(o);){if("object"==typeof o[1])return o;o=o[0]}return null}(g[c.index])),g[11]}function x3(o,c){const g=o[9],D=g?g.get(gl,null):null;D&&D.handleError(c)}function eu(o,c,g,D,N){for(let G=0;G<g.length;){const se=g[G++],Ee=g[G++],Ze=c[se],mt=o.data[se];null!==mt.setInput?mt.setInput(Ze,N,D,Ee):Ze[Ee]=N}}function yl(o,c,g){const D=ja(c,o);!function Rl(o,c,g){o.setValue(c,g)}(o[11],D,g)}function tu(o,c,g){let D=g?o.styles:null,N=g?o.classes:null,G=0;if(null!==c)for(let se=0;se<c.length;se++){const Ee=c[se];"number"==typeof Ee?G=Ee:1==G?N=d(N,Ee):2==G&&(D=d(D,Ee+": "+c[++se]+";"))}g?o.styles=D:o.stylesWithoutHost=D,g?o.classes=N:o.classesWithoutHost=N}function A0(o,c,g,D,N=!1){for(;null!==g;){const G=c[g.index];if(null!==G&&D.push(Wn(G)),Xn(G))for(let Ee=10;Ee<G.length;Ee++){const Ze=G[Ee],mt=Ze[1].firstChild;null!==mt&&A0(Ze[1],Ze,mt,D)}const se=g.type;if(8&se)A0(o,c,g.child,D);else if(32&se){const Ee=f1(g,c);let Ze;for(;Ze=Ee();)D.push(Ze)}else if(16&se){const Ee=L2(c,g);if(Array.isArray(Ee))D.push(...Ee);else{const Ze=Pl(c[16]);A0(Ze[1],Ze,Ee,D,!0)}}g=N?g.projectionNext:g.next}return D}class Xd{get rootNodes(){const c=this._lView,g=c[1];return A0(g,c,g.firstChild,[])}constructor(c,g){this._lView=c,this._cdRefInjectingView=g,this._appRef=null,this._attachedToViewContainer=!1}get context(){return this._lView[8]}set context(c){this._lView[8]=c}get destroyed(){return 128==(128&this._lView[2])}destroy(){if(this._appRef)this._appRef.detachView(this);else if(this._attachedToViewContainer){const c=this._lView[3];if(Xn(c)){const g=c[8],D=g?g.indexOf(this):-1;D>-1&&(S2(c,D),nt(g,D))}this._attachedToViewContainer=!1}sc(this._lView[1],this._lView)}onDestroy(c){d3(this._lView[1],this._lView,null,c)}markForCheck(){v3(this._cdRefInjectingView||this._lView)}detach(){this._lView[2]&=-65}reattach(){this._lView[2]|=64}detectChanges(){Xh(this._lView[1],this._lView,this.context)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new W(902,!1);this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null,function Ju(o,c){Fl(o,c,c[11],2,null,null)}(this._lView[1],this._lView)}attachToAppRef(c){if(this._attachedToViewContainer)throw new W(902,!1);this._appRef=c}}class zf extends Xd{constructor(c){super(c),this._view=c}detectChanges(){const c=this._view;Xh(c[1],c,c[8],!1)}checkNoChanges(){}get context(){return null}}class C3 extends es{constructor(c){super(),this.ngModule=c}resolveComponentFactory(c){const g=Ci(c);return new $d(g,this.ngModule)}}function Vf(o){const c=[];for(let g in o)o.hasOwnProperty(g)&&c.push({propName:o[g],templateName:g});return c}class Bf{constructor(c,g){this.injector=c,this.parentInjector=g}get(c,g,D){D=J(D);const N=this.injector.get(c,A1,D);return N!==A1||g===A1?N:this.parentInjector.get(c,g,D)}}class $d extends l0{get inputs(){return Vf(this.componentDef.inputs)}get outputs(){return Vf(this.componentDef.outputs)}constructor(c,g){super(),this.componentDef=c,this.ngModule=g,this.componentType=c.type,this.selector=function Gh(o){return o.map(Uh).join(",")}(c.selectors),this.ngContentSelectors=c.ngContentSelectors?c.ngContentSelectors:[],this.isBoundToModule=!!g}create(c,g,D,N){let G=(N=N||this.ngModule)instanceof Oc?N:N?.injector;G&&null!==this.componentDef.getStandaloneInjector&&(G=this.componentDef.getStandaloneInjector(G)||G);const se=G?new Bf(c,G):c,Ee=se.get(_s,null);if(null===Ee)throw new W(407,!1);const Ze=se.get(u0,null),mt=Ee.createRenderer(null,this.componentDef),Ot=this.componentDef.selectors[0][0]||"div",Xt=D?function E0(o,c,g){return o.selectRootElement(c,g===ti.ShadowDom)}(mt,D,this.componentDef.encapsulation):ps(mt,Ot,function zm(o){const c=o.toLowerCase();return"svg"===c?"svg":"math"===c?"math":null}(Ot)),hi=this.componentDef.onPush?288:272,bi=Oo(0,null,null,1,0,null,null,null,null,null),Ri=Sn(null,bi,null,hi,null,null,Ee,mt,Ze,se,null);let $i,cn;$s(Ri);try{const _n=this.componentDef;let On,Ui=null;_n.findHostDirectiveDefs?(On=[],Ui=new Map,_n.findHostDirectiveDefs(_n,On,Ui),On.push(_n)):On=[_n];const Gn=function Bm(o,c){const g=o[1];return o[22]=c,Jn(g,22,2,"#host",null)}(Ri,Xt),mr=function Um(o,c,g,D,N,G,se,Ee){const Ze=N[1];!function Gm(o,c,g,D){for(const N of o)c.mergedAttrs=fa(c.mergedAttrs,N.hostAttrs);null!==c.mergedAttrs&&(tu(c,c.mergedAttrs,!0),null!==g&&wd(D,g,c))}(D,o,c,se);const mt=G.createRenderer(c,g),Ot=Sn(N,Ys(g),null,g.onPush?32:16,N[o.index],o,G,mt,Ee||null,null,null);return Ze.firstCreatePass&&Qh(Ze,o,D.length-1),T0(N,Ot),N[o.index]=Ot}(Gn,Xt,_n,On,Ri,Ee,mt);cn=Vt(bi,22),Xt&&function Wm(o,c,g,D){if(D)nn(o,g,["ng-version",Ah.full]);else{const{attrs:N,classes:G}=function Bd(o){const c=[],g=[];let D=1,N=2;for(;D<o.length;){let G=o[D];if("string"==typeof G)2===N?""!==G&&c.push(G,o[++D]):8===N&&g.push(G);else{if(!ts(N))break;N=G}D++}return{attrs:c,classes:g}}(c.selectors[0]);N&&nn(o,g,N),G&&G.length>0&&Cd(o,g,G.join(" "))}}(mt,_n,Xt,D),void 0!==g&&function Uf(o,c,g){const D=o.projection=[];for(let N=0;N<c.length;N++){const G=g[N];D.push(null!=G?Array.from(G):null)}}(cn,this.ngContentSelectors,g),$i=function Zm(o,c,g,D,N,G){const se=Ha(),Ee=N[1],Ze=ca(se,N);Kh(Ee,N,se,g,null,D);for(let Ot=0;Ot<g.length;Ot++)Wr(cs(N,Ee,se.directiveStart+Ot,se),N);f3(Ee,N,se),Ze&&Wr(Ze,N);const mt=cs(N,Ee,se.directiveStart+se.componentOffset,se);if(o[8]=N[8]=mt,null!==G)for(const Ot of G)Ot(mt,c);return qd(Ee,se,o),mt}(mr,_n,On,Ui,Ri,[Ym]),bo(bi,Ri,null)}finally{to()}return new Vm(this.componentType,$i,Rr(cn,Ri),Ri,cn)}}class Vm extends c0{constructor(c,g,D,N,G){super(),this.location=D,this._rootLView=N,this._tNode=G,this.instance=g,this.hostView=this.changeDetectorRef=new zf(N),this.componentType=c}setInput(c,g){const D=this._tNode.inputs;let N;if(null!==D&&(N=D[c])){const G=this._rootLView;eu(G[1],G,N,c,g),Ef(G,this._tNode.index)}}get injector(){return new lr(this._tNode,this._rootLView)}destroy(){this.hostView.destroy()}onDestroy(c){this.hostView.onDestroy(c)}}function Ym(){const o=Ha();Ma(Si()[1],o)}function w3(o){let c=function Gf(o){return Object.getPrototypeOf(o.prototype).constructor}(o.type),g=!0;const D=[o];for(;c;){let N;if(jn(o))N=c.\u0275cmp||c.\u0275dir;else{if(c.\u0275cmp)throw new W(903,!1);N=c.\u0275dir}if(N){if(g){D.push(N);const se=o;se.inputs=iu(o.inputs),se.declaredInputs=iu(o.declaredInputs),se.outputs=iu(o.outputs);const Ee=N.hostBindings;Ee&&jm(o,Ee);const Ze=N.viewQuery,mt=N.contentQueries;if(Ze&&Wf(o,Ze),mt&&Yf(o,mt),h(o.inputs,N.inputs),h(o.declaredInputs,N.declaredInputs),h(o.outputs,N.outputs),jn(N)&&N.data.animation){const Ot=o.data;Ot.animation=(Ot.animation||[]).concat(N.data.animation)}}const G=N.features;if(G)for(let se=0;se<G.length;se++){const Ee=G[se];Ee&&Ee.ngInherit&&Ee(o),Ee===w3&&(g=!1)}}c=Object.getPrototypeOf(c)}!function Zf(o){let c=0,g=null;for(let D=o.length-1;D>=0;D--){const N=o[D];N.hostVars=c+=N.hostVars,N.hostAttrs=fa(N.hostAttrs,g=fa(g,N.hostAttrs))}}(D)}function iu(o){return o===Ut?{}:o===ht?[]:o}function Wf(o,c){const g=o.viewQuery;o.viewQuery=g?(D,N)=>{c(D,N),g(D,N)}:c}function Yf(o,c){const g=o.contentQueries;o.contentQueries=g?(D,N,G)=>{c(D,N,G),g(D,N,G)}:c}function jm(o,c){const g=o.hostBindings;o.hostBindings=g?(D,N)=>{c(D,N),g(D,N)}:c}let au=null;function Hc(){if(!au){const o=Et.Symbol;if(o&&o.iterator)au=o.iterator;else{const c=Object.getOwnPropertyNames(Map.prototype);for(let g=0;g<c.length;++g){const D=c[g];"entries"!==D&&"size"!==D&&Map.prototype[D]===Map.prototype.entries&&(au=D)}}}return au}function ru(o){return!!T3(o)&&(Array.isArray(o)||!(o instanceof Map)&&Hc()in o)}function T3(o){return null!==o&&("function"==typeof o||"object"==typeof o)}function zc(o,c,g){return o[c]=g}function yo(o,c,g){return!Object.is(o[c],g)&&(o[c]=g,!0)}function k1(o,c,g,D){const N=yo(o,c,g);return yo(o,c+1,D)||N}function D0(o,c,g,D,N){const G=k1(o,c,g,D);return yo(o,c+2,N)||G}function A3(o,c,g,D){const N=Si();return yo(N,go(),c)&&(Ln(),js(ua(),N,o,c,g,D)),A3}function e2(o,c,g,D){return yo(o,go(),g)?c+ee(g)+D:Rn}function P1(o,c,g,D,N,G){const Ee=k1(o,ki(),g,N);return zi(2),Ee?c+ee(g)+D+ee(N)+G:Rn}function N1(o,c,g,D,N,G,se,Ee,Ze,mt){const Xt=function xs(o,c,g,D,N,G){const se=k1(o,c,g,D);return k1(o,c+2,N,G)||se}(o,ki(),g,N,se,Ze);return zi(4),Xt?c+ee(g)+D+ee(N)+G+ee(se)+Ee+ee(Ze)+mt:Rn}function t4(o,c,g,D,N,G,se,Ee){const Ze=Si(),mt=Ln(),Ot=o+22,Xt=mt.firstCreatePass?function $m(o,c,g,D,N,G,se,Ee,Ze){const mt=c.consts,Ot=Jn(c,o,4,se||null,$n(mt,Ee));jh(c,g,Ot,$n(mt,Ze)),Ma(c,Ot);const Xt=Ot.tViews=Oo(2,Ot,D,N,G,c.directiveRegistry,c.pipeRegistry,null,c.schemas,mt);return null!==c.queries&&(c.queries.template(c,Ot),Xt.queries=c.queries.embeddedTView(Ot)),Ot}(Ot,mt,Ze,c,g,D,N,G,se):mt.data[Ot];vr(Xt,!1);const hi=Ze[11].createComment("");lc(mt,Ze,hi,Xt),Wr(hi,Ze),T0(Ze,Ze[Ot]=Ff(hi,Ze,hi,Xt)),tr(Xt)&&Jd(mt,Ze,Xt),null!=se&&Hr(Ze,Xt,Ee)}function i4(o){return di(function Ss(){return bn.lFrame.contextLView}(),22+o)}function k3(o,c,g){const D=Si();return yo(D,go(),c)&&Po(Ln(),ua(),D,o,c,D[11],g,!1),k3}function ou(o,c,g,D,N){const se=N?"class":"style";eu(o,g,c.inputs[se],se,D)}function su(o,c,g,D){const N=Si(),G=Ln(),se=22+o,Ee=N[11],Ze=N[se]=ps(Ee,c,function Xi(){return bn.lFrame.currentNamespace}()),mt=G.firstCreatePass?function tp(o,c,g,D,N,G,se){const Ee=c.consts,mt=Jn(c,o,2,N,$n(Ee,G));return jh(c,g,mt,$n(Ee,se)),null!==mt.attrs&&tu(mt,mt.attrs,!1),null!==mt.mergedAttrs&&tu(mt,mt.mergedAttrs,!0),null!==c.queries&&c.queries.elementStart(c,mt),mt}(se,G,N,0,c,g,D):G.data[se];return vr(mt,!0),wd(Ee,Ze,mt),32!=(32&mt.flags)&&lc(G,N,Ze,mt),0===function Xe(){return bn.lFrame.elementDepthCount}()&&Wr(Ze,N),function Ge(){bn.lFrame.elementDepthCount++}(),tr(mt)&&(Jd(G,N,mt),qd(G,mt,N)),null!==D&&Hr(N,mt),su}function n2(){let o=Ha();jo()?Ko():(o=o.parent,vr(o,!1));const c=o;!function Pt(){bn.lFrame.elementDepthCount--}();const g=Ln();return g.firstCreatePass&&(Ma(g,o),Dr(o)&&g.queries.elementEnd(o)),null!=c.classesWithoutHost&&function _i(o){return 0!=(8&o.flags)}(c)&&ou(g,c,Si(),c.classesWithoutHost,!0),null!=c.stylesWithoutHost&&function Mi(o){return 0!=(16&o.flags)}(c)&&ou(g,c,Si(),c.stylesWithoutHost,!1),n2}function O3(o,c,g,D){return su(o,c,g,D),n2(),O3}function cu(o,c,g){const D=Si(),N=Ln(),G=o+22,se=N.firstCreatePass?function ip(o,c,g,D,N){const G=c.consts,se=$n(G,D),Ee=Jn(c,o,8,"ng-container",se);return null!==se&&tu(Ee,se,!0),jh(c,g,Ee,$n(G,N)),null!==c.queries&&c.queries.elementStart(c,Ee),Ee}(G,N,D,c,g):N.data[G];vr(se,!0);const Ee=D[G]=D[11].createComment("");return lc(N,D,Ee,se),Wr(Ee,D),tr(se)&&(Jd(N,D,se),qd(N,se,D)),null!=g&&Hr(D,se),cu}function lu(){let o=Ha();const c=Ln();return jo()?Ko():(o=o.parent,vr(o,!1)),c.firstCreatePass&&(Ma(c,o),Dr(o)&&c.queries.elementEnd(o)),lu}function P3(o,c,g){return cu(o,c,g),lu(),P3}function n4(){return Si()}function du(o){return!!o&&"function"==typeof o.then}function hu(o){return!!o&&"function"==typeof o.subscribe}const Qn=hu;function mc(o,c,g,D){const N=Si(),G=Ln(),se=Ha();return Uo(G,N,N[11],se,o,c,D),mc}function k0(o,c){const g=Ha(),D=Si(),N=Ln();return Uo(N,D,y3(So(N.data),g,D),g,o,c),k0}function Uo(o,c,g,D,N,G,se){const Ee=tr(D),mt=o.firstCreatePass&&Hf(o),Ot=c[8],Xt=b3(c);let hi=!0;if(3&D.type||se){const $i=ca(D,c),cn=se?se($i):$i,_n=Xt.length,On=se?Gn=>se(Wn(Gn[D.index])):D.index;let Ui=null;if(!se&&Ee&&(Ui=function uu(o,c,g,D){const N=o.cleanup;if(null!=N)for(let G=0;G<N.length-1;G+=2){const se=N[G];if(se===g&&N[G+1]===D){const Ee=c[7],Ze=N[G+2];return Ee.length>Ze?Ee[Ze]:null}"string"==typeof se&&(G+=2)}return null}(o,c,N,D.index)),null!==Ui)(Ui.__ngLastListenerFn__||Ui).__ngNextListenerFn__=G,Ui.__ngLastListenerFn__=G,hi=!1;else{G=N3(D,c,Ot,G,!1);const Gn=g.listen(cn,N,G);Xt.push(G,Gn),mt&&mt.push(N,On,_n,_n+1)}}else G=N3(D,c,Ot,G,!1);const bi=D.outputs;let Ri;if(hi&&null!==bi&&(Ri=bi[N])){const $i=Ri.length;if($i)for(let cn=0;cn<$i;cn+=2){const mr=c[Ri[cn]][Ri[cn+1]].subscribe(G),Ur=Xt.length;Xt.push(G,mr),mt&&mt.push(N,D.index,Ur,-(Ur+1))}}}function R3(o,c,g,D){try{return!1!==g(D)}catch(N){return x3(o,N),!1}}function N3(o,c,g,D,N){return function G(se){if(se===Function)return D;v3(o.componentOffset>-1?Ct(o.index,c):c);let Ze=R3(c,0,D,se),mt=G.__ngNextListenerFn__;for(;mt;)Ze=R3(c,0,mt,se)&&Ze,mt=mt.__ngNextListenerFn__;return N&&!1===Ze&&(se.preventDefault(),se.returnValue=!1),Ze}}function O0(o=1){return function To(o){return(bn.lFrame.contextLView=function an(o,c){for(;o>0;)c=c[15],o--;return c}(o,bn.lFrame.contextLView))[8]}(o)}function F3(o,c){let g=null;const D=function Vh(o){const c=o.attrs;if(null!=c){const g=c.indexOf(5);if(!(1&g))return c[g+1]}return null}(o);for(let N=0;N<c.length;N++){const G=c[N];if("*"!==G){if(null===D?b0(o,G,!0):Yl(D,G))return N}else g=N}return g}function P0(o){const c=Si()[16][6];if(!c.projection){const D=c.projection=At(o?o.length:1,null),N=D.slice();let G=c.child;for(;null!==G;){const se=o?F3(G,o):0;null!==se&&(N[se]?N[se].projectionNext=G:D[se]=G,N[se]=G),G=G.next}}}function Cs(o,c=0,g){const D=Si(),N=Ln(),G=Jn(N,22+o,16,null,g||null);null===G.projection&&(G.projection=c),Ko(),32!=(32&G.flags)&&function D2(o,c,g){xd(c[11],0,c,g,ch(o,g,c),xr(g.parent||c[6],g,c))}(N,D,G)}function pc(o,c,g){return yn(o,"",c,"",g),pc}function yn(o,c,g,D,N){const G=Si(),se=e2(G,c,g,D);return se!==Rn&&Po(Ln(),ua(),G,o,se,G[11],N,!1),yn}function R0(o,c,g,D,N,G,se){const Ee=Si(),Ze=P1(Ee,c,g,D,N,G);return Ze!==Rn&&Po(Ln(),ua(),Ee,o,Ze,Ee[11],se,!1),R0}function z0(o,c){return o<<17|c<<2}function Ks(o){return o>>17&32767}function a2(o){return 2|o}function xl(o){return(131068&o)>>2}function Go(o,c){return-131069&o|c<<2}function V0(o){return 1|o}function Cl(o,c,g,D,N){const G=o[g+1],se=null===c;let Ee=D?Ks(G):xl(G),Ze=!1;for(;0!==Ee&&(!1===Ze||se);){const Ot=o[Ee+1];wl(o[Ee],c)&&(Ze=!0,o[Ee+1]=D?V0(Ot):a2(Ot)),Ee=D?Ks(Ot):xl(Ot)}Ze&&(o[g+1]=D?a2(G):V0(G))}function wl(o,c){return null===o||null==c||(Array.isArray(o)?o[1]:o)===c||!(!Array.isArray(o)||"string"!=typeof c)&&Ta(o,c)>=0}const wr={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function B0(o){return o.substring(wr.key,wr.keyEnd)}function or(o,c){const g=wr.textEnd;return g===c?-1:(c=wr.keyEnd=function _u(o,c,g){for(;c<g&&o.charCodeAt(c)>32;)c++;return c}(o,wr.key=c,g),V1(o,c,g))}function V1(o,c,g){for(;c<g&&o.charCodeAt(c)<=32;)c++;return c}function bu(o,c,g){return gc(o,c,g,!1),bu}function yu(o,c){return gc(o,c,null,!0),yu}function Cu(o){_c(qi,ws,o,!0)}function ws(o,c){for(let g=function z1(o){return function ql(o){wr.key=0,wr.keyEnd=0,wr.value=0,wr.valueEnd=0,wr.textEnd=o.length}(o),or(o,V1(o,0,wr.textEnd))}(c);g>=0;g=or(c,g))qi(o,B0(c),!0)}function gc(o,c,g,D){const N=Si(),G=Ln(),se=zi(2);G.firstUpdatePass&&c4(G,o,se,D),c!==Rn&&yo(N,se,c)&&d4(G,G.data[ka()],N,N[11],o,N[se+1]=function rp(o,c){return null==o||("string"==typeof c?o+=c:"object"==typeof o&&(o=P(ro(o)))),o}(c,g),D,se)}function _c(o,c,g,D){const N=Ln(),G=zi(2);N.firstUpdatePass&&c4(N,null,G,D);const se=Si();if(g!==Rn&&yo(se,G,g)){const Ee=N.data[ka()];if(W3(Ee,D)&&!s4(N,G)){let Ze=D?Ee.classesWithoutHost:Ee.stylesWithoutHost;null!==Ze&&(g=d(Ze,g||"")),ou(N,Ee,se,g,D)}else!function ap(o,c,g,D,N,G,se,Ee){N===Rn&&(N=ht);let Ze=0,mt=0,Ot=0<N.length?N[0]:null,Xt=0<G.length?G[0]:null;for(;null!==Ot||null!==Xt;){const hi=Ze<N.length?N[Ze+1]:void 0,bi=mt<G.length?G[mt+1]:void 0;let $i,Ri=null;Ot===Xt?(Ze+=2,mt+=2,hi!==bi&&(Ri=Xt,$i=bi)):null===Xt||null!==Ot&&Ot<Xt?(Ze+=2,Ri=Ot):(mt+=2,Ri=Xt,$i=bi),null!==Ri&&d4(o,c,g,D,Ri,$i,se,Ee),Ot=Ze<N.length?N[Ze]:null,Xt=mt<G.length?G[mt]:null}}(N,Ee,se,se[11],se[G+1],se[G+1]=function np(o,c,g){if(null==g||""===g)return ht;const D=[],N=ro(g);if(Array.isArray(N))for(let G=0;G<N.length;G++)o(D,N[G],!0);else if("object"==typeof N)for(const G in N)N.hasOwnProperty(G)&&o(D,G,N[G]);else"string"==typeof N&&c(D,N);return D}(o,c,g),D,G)}}function s4(o,c){return c>=o.expandoStartIndex}function c4(o,c,g,D){const N=o.data;if(null===N[g+1]){const G=N[ka()],se=s4(o,g);W3(G,D)&&null===c&&!se&&(c=!1),c=function Ms(o,c,g,D){const N=So(o);let G=D?c.residualClasses:c.residualStyles;if(null===N)0===(D?c.classBindings:c.styleBindings)&&(g=o2(g=Mu(null,o,c,g,D),c.attrs,D),G=null);else{const se=c.directiveStylingLast;if(-1===se||o[se]!==N)if(g=Mu(N,o,c,g,D),null===G){let Ze=function wu(o,c,g){const D=g?c.classBindings:c.styleBindings;if(0!==xl(D))return o[Ks(D)]}(o,c,D);void 0!==Ze&&Array.isArray(Ze)&&(Ze=Mu(null,o,c,Ze[1],D),Ze=o2(Ze,c.attrs,D),function U3(o,c,g,D){o[Ks(g?c.classBindings:c.styleBindings)]=D}(o,c,D,Ze))}else G=function G3(o,c,g){let D;const N=c.directiveEnd;for(let G=1+c.directiveStylingLast;G<N;G++)D=o2(D,o[G].hostAttrs,g);return o2(D,c.attrs,g)}(o,c,D)}return void 0!==G&&(D?c.residualClasses=G:c.residualStyles=G),g}(N,G,c,D),function V3(o,c,g,D,N,G){let se=G?c.classBindings:c.styleBindings,Ee=Ks(se),Ze=xl(se);o[D]=g;let Ot,mt=!1;if(Array.isArray(g)?(Ot=g[1],(null===Ot||Ta(g,Ot)>0)&&(mt=!0)):Ot=g,N)if(0!==Ze){const hi=Ks(o[Ee+1]);o[D+1]=z0(hi,Ee),0!==hi&&(o[hi+1]=Go(o[hi+1],D)),o[Ee+1]=function z3(o,c){return 131071&o|c<<17}(o[Ee+1],D)}else o[D+1]=z0(Ee,0),0!==Ee&&(o[Ee+1]=Go(o[Ee+1],D)),Ee=D;else o[D+1]=z0(Ze,0),0===Ee?Ee=D:o[Ze+1]=Go(o[Ze+1],D),Ze=D;mt&&(o[D+1]=a2(o[D+1])),Cl(o,Ot,D,!0),Cl(o,Ot,D,!1),function gu(o,c,g,D,N){const G=N?o.residualClasses:o.residualStyles;null!=G&&"string"==typeof c&&Ta(G,c)>=0&&(g[D+1]=V0(g[D+1]))}(c,Ot,o,D,G),se=z0(Ee,Ze),G?c.classBindings=se:c.styleBindings=se}(N,G,c,g,se,D)}}function Mu(o,c,g,D,N){let G=null;const se=g.directiveEnd;let Ee=g.directiveStylingLast;for(-1===Ee?Ee=g.directiveStart:Ee++;Ee<se&&(G=c[Ee],D=o2(D,G.hostAttrs,N),G!==o);)Ee++;return null!==o&&(g.directiveStylingLast=Ee),D}function o2(o,c,g){const D=g?1:2;let N=-1;if(null!==c)for(let G=0;G<c.length;G++){const se=c[G];"number"==typeof se?N=se:N===D&&(Array.isArray(o)||(o=void 0===o?[]:["",o]),qi(o,se,!!g||c[++G]))}return void 0===o?null:o}function d4(o,c,g,D,N,G,se,Ee){if(!(3&c.type))return;const Ze=o.data,mt=Ze[Ee+1],Ot=function pu(o){return 1==(1&o)}(mt)?Z3(Ze,c,g,N,xl(mt),se):void 0;Su(Ot)||(Su(G)||function zr(o){return 2==(2&o)}(mt)&&(G=Z3(Ze,null,g,N,Ee,se)),function dh(o,c,g,D,N){if(c)N?o.addClass(g,D):o.removeClass(g,D);else{let G=-1===D.indexOf("-")?void 0:Do.DashCase;null==N?o.removeStyle(g,D,G):("string"==typeof N&&N.endsWith("!important")&&(N=N.slice(0,-10),G|=Do.Important),o.setStyle(g,D,N,G))}}(D,se,ja(ka(),g),N,G))}function Z3(o,c,g,D,N,G){const se=null===c;let Ee;for(;N>0;){const Ze=o[N],mt=Array.isArray(Ze),Ot=mt?Ze[1]:Ze,Xt=null===Ot;let hi=g[N+1];hi===Rn&&(hi=Xt?ht:void 0);let bi=Xt?qn(hi,D):Ot===D?hi:void 0;if(mt&&!Su(bi)&&(bi=qn(Ze,D)),Su(bi)&&(Ee=bi,se))return Ee;const Ri=o[N+1];N=se?Ks(Ri):xl(Ri)}if(null!==c){let Ze=G?c.residualClasses:c.residualStyles;null!=Ze&&(Ee=qn(Ze,D))}return Ee}function Su(o){return void 0!==o}function W3(o,c){return 0!=(o.flags&(c?8:16))}function Y3(o,c=""){const g=Si(),D=Ln(),N=o+22,G=D.firstCreatePass?Jn(D,N,1,c,null):D.data[N],se=g[N]=function p1(o,c){return o.createText(c)}(g[11],c);lc(D,g,se,G),vr(G,!1)}function Z0(o){return ns("",o,""),Z0}function ns(o,c,g){const D=Si(),N=e2(D,o,c,g);return N!==Rn&&yl(D,ka(),N),ns}function qs(o,c,g,D,N){const G=Si(),se=P1(G,o,c,g,D,N);return se!==Rn&&yl(G,ka(),se),qs}function Eu(o,c,g,D,N,G,se){const Ee=Si(),Ze=function R1(o,c,g,D,N,G,se,Ee){const mt=D0(o,ki(),g,N,se);return zi(3),mt?c+ee(g)+D+ee(N)+G+ee(se)+Ee:Rn}(Ee,o,c,g,D,N,G,se);return Ze!==Rn&&yl(Ee,ka(),Ze),Eu}function j3(o,c,g,D,N,G,se,Ee,Ze){const mt=Si(),Ot=N1(mt,o,c,g,D,N,G,se,Ee,Ze);return Ot!==Rn&&yl(mt,ka(),Ot),j3}function q3(o,c,g){_c(qi,ws,e2(Si(),o,c,g),!0)}function Lu(o,c,g){const D=Si();return yo(D,go(),c)&&Po(Ln(),ua(),D,o,c,D[11],g,!0),Lu}function ef(o,c,g){const D=Si();if(yo(D,go(),c)){const G=Ln(),se=ua();Po(G,se,D,o,c,y3(So(G.data),se,D),g,!0)}return ef}const Jl=void 0;var tf=["en",[["a","p"],["AM","PM"],Jl],[["AM","PM"],Jl,Jl],[["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"]],Jl,[["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"]],Jl,[["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}",Jl,"{1} 'at' {0}",Jl],[".",",",";","%","+","-","E","\xd7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0%","\xa4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",function pp(o){const g=Math.floor(Math.abs(o)),D=o.toString().replace(/^[^.]*\.?/,"").length;return 1===g&&0===D?1:5}];let s2={};function Du(o){const c=function _p(o){return o.toLowerCase().replace(/_/g,"-")}(o);let g=Iu(c);if(g)return g;const D=c.split("-")[0];if(g=Iu(D),g)return g;if("en"===D)return tf;throw new W(701,!1)}function W0(o){return Du(o)[En.PluralCase]}function Iu(o){return o in s2||(s2[o]=Et.ng&&Et.ng.common&&Et.ng.common.locales&&Et.ng.common.locales[o]),s2[o]}var En=(()=>((En=En||{})[En.LocaleId=0]="LocaleId",En[En.DayPeriodsFormat=1]="DayPeriodsFormat",En[En.DayPeriodsStandalone=2]="DayPeriodsStandalone",En[En.DaysFormat=3]="DaysFormat",En[En.DaysStandalone=4]="DaysStandalone",En[En.MonthsFormat=5]="MonthsFormat",En[En.MonthsStandalone=6]="MonthsStandalone",En[En.Eras=7]="Eras",En[En.FirstDayOfWeek=8]="FirstDayOfWeek",En[En.WeekendRange=9]="WeekendRange",En[En.DateFormat=10]="DateFormat",En[En.TimeFormat=11]="TimeFormat",En[En.DateTimeFormat=12]="DateTimeFormat",En[En.NumberSymbols=13]="NumberSymbols",En[En.NumberFormats=14]="NumberFormats",En[En.CurrencyCode=15]="CurrencyCode",En[En.CurrencySymbol=16]="CurrencySymbol",En[En.CurrencyName=17]="CurrencyName",En[En.Currencies=18]="Currencies",En[En.Directionality=19]="Directionality",En[En.PluralCase=20]="PluralCase",En[En.ExtraData=21]="ExtraData",En))();const U1="en-US";let nf=U1;function R4(o,c,g,D,N){if(o=O(o),Array.isArray(o))for(let G=0;G<o.length;G++)R4(o[G],c,g,D,N);else{const G=Ln(),se=Si();let Ee=Bs(o)?o:O(o.provide),Ze=Pd(o);const mt=Ha(),Ot=1048575&mt.providerIndexes,Xt=mt.directiveStart,hi=mt.providerIndexes>>20;if(Bs(o)||!o.multi){const bi=new yt(Ze,N,bs),Ri=N4(Ee,c,N?Ot:Ot+hi,Xt);-1===Ri?(tc(Wc(mt,se),G,Ee),Pu(G,o,c.length),c.push(Ee),mt.directiveStart++,mt.directiveEnd++,N&&(mt.providerIndexes+=1048576),g.push(bi),se.push(bi)):(g[Ri]=bi,se[Ri]=bi)}else{const bi=N4(Ee,c,Ot+hi,Xt),Ri=N4(Ee,c,Ot,Ot+hi),cn=Ri>=0&&g[Ri];if(N&&!cn||!N&&!(bi>=0&&g[bi])){tc(Wc(mt,se),G,Ee);const _n=function yg(o,c,g,D,N){const G=new yt(o,g,bs);return G.multi=[],G.index=c,G.componentProviders=0,Ep(G,N,D&&!g),G}(N?bg:vg,g.length,N,D,Ze);!N&&cn&&(g[Ri].providerFactory=_n),Pu(G,o,c.length,0),c.push(Ee),mt.directiveStart++,mt.directiveEnd++,N&&(mt.providerIndexes+=1048576),g.push(_n),se.push(_n)}else Pu(G,o,bi>-1?bi:Ri,Ep(g[N?Ri:bi],Ze,!N&&D));!N&&D&&cn&&g[Ri].componentProviders++}}}function Pu(o,c,g,D){const N=Bs(c),G=function a0(o){return!!o.useClass}(c);if(N||G){const Ze=(G?O(c.useClass):c).prototype.ngOnDestroy;if(Ze){const mt=o.destroyHooks||(o.destroyHooks=[]);if(!N&&c.multi){const Ot=mt.indexOf(g);-1===Ot?mt.push(g,[D,Ze]):mt[Ot+1].push(D,Ze)}else mt.push(g,Ze)}}}function Ep(o,c,g){return g&&o.componentProviders++,o.multi.push(c)-1}function N4(o,c,g,D){for(let N=g;N<D;N++)if(c[N]===o)return N;return-1}function vg(o,c,g,D){return af(this.multi,[])}function bg(o,c,g,D){const N=this.multi;let G;if(this.providerFactory){const se=this.providerFactory.componentProviders,Ee=cs(g,g[1],this.providerFactory.index,D);G=Ee.slice(0,se),af(N,G);for(let Ze=se;Ze<Ee.length;Ze++)G.push(Ee[Ze])}else G=[],af(N,G);return G}function af(o,c){for(let g=0;g<o.length;g++)c.push((0,o[g])());return c}function Tp(o,c=[]){return g=>{g.providersResolver=(D,N)=>function Sp(o,c,g){const D=Ln();if(D.firstCreatePass){const N=jn(o);R4(g,D.data,D.blueprint,N,!0),R4(c,D.data,D.blueprint,N,!1)}}(D,N?N(o):o,c)}}class j0{}class Ap{}function xg(o,c){return new Lp(o,c??null)}class Lp extends j0{constructor(c,g){super(),this._parent=g,this._bootstrapComponents=[],this.destroyCbs=[],this.componentFactoryResolver=new C3(this);const D=Ji(c);this._bootstrapComponents=Gs(D.bootstrap),this._r3Injector=Kd(c,g,[{provide:j0,useValue:this},{provide:es,useValue:this.componentFactoryResolver}],P(c),new Set(["environment"])),this._r3Injector.resolveInjectorInitializers(),this.instance=this._r3Injector.get(c)}get injector(){return this._r3Injector}destroy(){const c=this._r3Injector;!c.destroyed&&c.destroy(),this.destroyCbs.forEach(g=>g()),this.destroyCbs=null}onDestroy(c){this.destroyCbs.push(c)}}class F4 extends Ap{constructor(c){super(),this.moduleType=c}create(c){return new Lp(this.moduleType,c)}}class Cg extends j0{constructor(c,g,D){super(),this.componentFactoryResolver=new C3(this),this.instance=null;const N=new kd([...c,{provide:j0,useValue:this},{provide:es,useValue:this.componentFactoryResolver}],g||Zl(),D,new Set(["environment"]));this.injector=N,N.resolveInjectorInitializers()}destroy(){this.injector.destroy()}onDestroy(c){this.injector.onDestroy(c)}}function H4(o,c,g=null){return new Cg(o,c,g).injector}let wg=(()=>{class o{constructor(g){this._injector=g,this.cachedInjectors=new Map}getOrCreateStandaloneInjector(g){if(!g.standalone)return null;if(!this.cachedInjectors.has(g.id)){const D=fl(0,g.type),N=D.length>0?H4([D],this._injector,`Standalone[${g.type.name}]`):null;this.cachedInjectors.set(g.id,N)}return this.cachedInjectors.get(g.id)}ngOnDestroy(){try{for(const g of this.cachedInjectors.values())null!==g&&g.destroy()}finally{this.cachedInjectors.clear()}}}return o.\u0275prov=We({token:o,providedIn:"environment",factory:()=>new o(kt(Oc))}),o})();function Dp(o){o.getStandaloneInjector=c=>c.get(wg).getOrCreateStandaloneInjector(o)}function U4(o,c,g){const D=Dn()+o,N=Si();return N[D]===Rn?zc(N,D,g?c.call(g):c()):function L0(o,c){return o[c]}(N,D)}function Np(o,c,g,D){return Vp(Si(),Dn(),o,c,g,D)}function G4(o,c,g,D,N){return Bp(Si(),Dn(),o,c,g,D,N)}function Fp(o,c,g,D,N,G){return Up(Si(),Dn(),o,c,g,D,N,G)}function Ru(o,c){const g=o[c];return g===Rn?void 0:g}function Vp(o,c,g,D,N,G){const se=c+g;return yo(o,se,N)?zc(o,se+1,G?D.call(G,N):D(N)):Ru(o,se+1)}function Bp(o,c,g,D,N,G,se){const Ee=c+g;return k1(o,Ee,N,G)?zc(o,Ee+2,se?D.call(se,N,G):D(N,G)):Ru(o,Ee+2)}function Up(o,c,g,D,N,G,se,Ee){const Ze=c+g;return D0(o,Ze,N,G,se)?zc(o,Ze+3,Ee?D.call(Ee,N,G,se):D(N,G,se)):Ru(o,Ze+3)}function rf(o,c){const g=Ln();let D;const N=o+22;g.firstCreatePass?(D=function Fg(o,c){if(c)for(let g=c.length-1;g>=0;g--){const D=c[g];if(o===D.name)return D}}(c,g.pipeRegistry),g.data[N]=D,D.onDestroy&&(g.destroyHooks||(g.destroyHooks=[])).push(N,D.onDestroy)):D=g.data[N];const G=D.factory||(D.factory=Ya(D.type)),se=ft(bs);try{const Ee=io(!1),Ze=G();return io(Ee),function ep(o,c,g,D){g>=o.data.length&&(o.data[g]=null,o.blueprint[g]=null),c[g]=D}(g,Si(),N,Ze),Ze}finally{ft(se)}}function Wp(o,c,g){const D=o+22,N=Si(),G=di(N,D);return Nu(N,D)?Vp(N,Dn(),c,G.transform,g,G):G.transform(g)}function Z4(o,c,g,D){const N=o+22,G=Si(),se=di(G,N);return Nu(G,N)?Bp(G,Dn(),c,se.transform,g,D,se):se.transform(g,D)}function W4(o,c,g,D,N){const G=o+22,se=Si(),Ee=di(se,G);return Nu(se,G)?Up(se,Dn(),c,Ee.transform,g,D,N,Ee):Ee.transform(g,D,N)}function Nu(o,c){return o[1].data[c].pure}function sf(o){return c=>{setTimeout(o,void 0,c)}}const Ml=class Vg extends t.x{constructor(c=!1){super(),this.__isAsync=c}emit(c){super.next(c)}subscribe(c,g,D){let N=c,G=g||(()=>null),se=D;if(c&&"object"==typeof c){const Ze=c;N=Ze.next?.bind(Ze),G=Ze.error?.bind(Ze),se=Ze.complete?.bind(Ze)}this.__isAsync&&(G=sf(G),N&&(N=sf(N)),se&&(se=sf(se)));const Ee=super.subscribe({next:N,error:G,complete:se});return c instanceof e.w0&&c.add(Ee),Ee}};function Bg(){return this._results[Hc()]()}class cf{get changes(){return this._changes||(this._changes=new Ml)}constructor(c=!1){this._emitDistinctChangesOnly=c,this.dirty=!0,this._results=[],this._changesDetected=!1,this._changes=null,this.length=0,this.first=void 0,this.last=void 0;const g=Hc(),D=cf.prototype;D[g]||(D[g]=Bg)}get(c){return this._results[c]}map(c){return this._results.map(c)}filter(c){return this._results.filter(c)}find(c){return this._results.find(c)}reduce(c,g){return this._results.reduce(c,g)}forEach(c){this._results.forEach(c)}some(c){return this._results.some(c)}toArray(){return this._results.slice()}toString(){return this._results.toString()}reset(c,g){const D=this;D.dirty=!1;const N=function Me(o){return o.flat(Number.POSITIVE_INFINITY)}(c);(this._changesDetected=!function pe(o,c,g){if(o.length!==c.length)return!1;for(let D=0;D<o.length;D++){let N=o[D],G=c[D];if(g&&(N=g(N),G=g(G)),G!==N)return!1}return!0}(D._results,N,g))&&(D._results=N,D.length=N.length,D.last=N[this.length-1],D.first=N[0])}notifyOnChanges(){this._changes&&(this._changesDetected||!this._emitDistinctChangesOnly)&&this._changes.emit(this)}setDirty(){this.dirty=!0}destroy(){this.changes.complete(),this.changes.unsubscribe()}}let Fu=(()=>{class o{}return o.__NG_ELEMENT_ID__=Zg,o})();const Ug=Fu,Gg=class extends Ug{constructor(c,g,D){super(),this._declarationLView=c,this._declarationTContainer=g,this.elementRef=D}createEmbeddedView(c,g){const D=this._declarationTContainer.tViews,N=Sn(this._declarationLView,D,c,16,null,D.declTNode,null,null,null,null,g||null);N[17]=this._declarationLView[this._declarationTContainer.index];const se=this._declarationLView[19];return null!==se&&(N[19]=se.createEmbeddedView(D)),bo(D,N,c),new Xd(N)}};function Zg(){return Hu(Ha(),Si())}function Hu(o,c){return 4&o.type?new Gg(c,o,Rr(o,c)):null}let lf=(()=>{class o{}return o.__NG_ELEMENT_ID__=Wg,o})();function Wg(){return Kp(Ha(),Si())}const Yp=lf,jp=class extends Yp{constructor(c,g,D){super(),this._lContainer=c,this._hostTNode=g,this._hostLView=D}get element(){return Rr(this._hostTNode,this._hostLView)}get injector(){return new lr(this._hostTNode,this._hostLView)}get parentInjector(){const c=Yc(this._hostTNode,this._hostLView);if(Sa(c)){const g=yr(c,this._hostLView),D=ya(c);return new lr(g[1].data[D+8],g)}return new lr(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(c){const g=Y4(this._lContainer);return null!==g&&g[c]||null}get length(){return this._lContainer.length-10}createEmbeddedView(c,g,D){let N,G;"number"==typeof D?N=D:null!=D&&(N=D.index,G=D.injector);const se=c.createEmbeddedView(g||{},G);return this.insert(se,N),se}createComponent(c,g,D,N,G){const se=c&&!function Jc(o){return"function"==typeof o}(c);let Ee;if(se)Ee=g;else{const Xt=g||{};Ee=Xt.index,D=Xt.injector,N=Xt.projectableNodes,G=Xt.environmentInjector||Xt.ngModuleRef}const Ze=se?c:new $d(Ci(c)),mt=D||this.parentInjector;if(!G&&null==Ze.ngModule){const hi=(se?mt:this.parentInjector).get(Oc,null);hi&&(G=hi)}const Ot=Ze.create(mt,N,void 0,G);return this.insert(Ot.hostView,Ee),Ot}insert(c,g){const D=c._lView,N=D[1];if(function tn(o){return Xn(o[3])}(D)){const Ot=this.indexOf(c);if(-1!==Ot)this.detach(Ot);else{const Xt=D[3],hi=new jp(Xt,Xt[6],Xt[3]);hi.detach(hi.indexOf(c))}}const G=this._adjustIndex(g),se=this._lContainer;!function g1(o,c,g,D){const N=10+D,G=g.length;D>0&&(g[N-1][4]=c),D<G-10?(c[4]=g[N],Ne(g,10+D,c)):(g.push(c),c[4]=null),c[3]=g;const se=c[17];null!==se&&g!==se&&function ol(o,c){const g=o[9];c[16]!==c[3][3][16]&&(o[2]=!0),null===g?o[9]=[c]:g.push(c)}(se,c);const Ee=c[19];null!==Ee&&Ee.insertView(o),c[2]|=64}(N,D,se,G);const Ee=v1(G,se),Ze=D[11],mt=_1(Ze,se[7]);return null!==mt&&function qu(o,c,g,D,N,G){D[0]=N,D[6]=c,Fl(o,D,g,1,N,G)}(N,se[6],Ze,D,mt,Ee),c.attachToViewContainerRef(),Ne(df(se),G,c),c}move(c,g){return this.insert(c,g)}indexOf(c){const g=Y4(this._lContainer);return null!==g?g.indexOf(c):-1}remove(c){const g=this._adjustIndex(c,-1),D=S2(this._lContainer,g);D&&(nt(df(this._lContainer),g),sc(D[1],D))}detach(c){const g=this._adjustIndex(c,-1),D=S2(this._lContainer,g);return D&&null!=nt(df(this._lContainer),g)?new Xd(D):null}_adjustIndex(c,g=0){return c??this.length+g}};function Y4(o){return o[8]}function df(o){return o[8]||(o[8]=[])}function Kp(o,c){let g;const D=c[o.index];if(Xn(D))g=D;else{let N;if(8&o.type)N=Wn(D);else{const G=c[11];N=G.createComment("");const se=ca(o,c);$o(G,_1(G,se),N,function T2(o,c){return o.nextSibling(c)}(G,se),!1)}c[o.index]=g=Ff(D,c,N,o),T0(c,g)}return new jp(g,o,c)}class hf{constructor(c){this.queryList=c,this.matches=null}clone(){return new hf(this.queryList)}setDirty(){this.queryList.setDirty()}}class j4{constructor(c=[]){this.queries=c}createEmbeddedView(c){const g=c.queries;if(null!==g){const D=null!==c.contentQueries?c.contentQueries[0]:g.length,N=[];for(let G=0;G<D;G++){const se=g.getByIndex(G);N.push(this.queries[se.indexInDeclarationView].clone())}return new j4(N)}return null}insertView(c){this.dirtyQueriesWithMatches(c)}detachView(c){this.dirtyQueriesWithMatches(c)}dirtyQueriesWithMatches(c){for(let g=0;g<this.queries.length;g++)null!==t6(c,g).matches&&this.queries[g].setDirty()}}class Qp{constructor(c,g,D=null){this.predicate=c,this.flags=g,this.read=D}}class K4{constructor(c=[]){this.queries=c}elementStart(c,g){for(let D=0;D<this.queries.length;D++)this.queries[D].elementStart(c,g)}elementEnd(c){for(let g=0;g<this.queries.length;g++)this.queries[g].elementEnd(c)}embeddedTView(c){let g=null;for(let D=0;D<this.length;D++){const N=null!==g?g.length:0,G=this.getByIndex(D).embeddedTView(c,N);G&&(G.indexInDeclarationView=D,null!==g?g.push(G):g=[G])}return null!==g?new K4(g):null}template(c,g){for(let D=0;D<this.queries.length;D++)this.queries[D].template(c,g)}getByIndex(c){return this.queries[c]}get length(){return this.queries.length}track(c){this.queries.push(c)}}class Q4{constructor(c,g=-1){this.metadata=c,this.matches=null,this.indexInDeclarationView=-1,this.crossesNgTemplate=!1,this._appliesToNextNode=!0,this._declarationNodeIndex=g}elementStart(c,g){this.isApplyingToNode(g)&&this.matchTNode(c,g)}elementEnd(c){this._declarationNodeIndex===c.index&&(this._appliesToNextNode=!1)}template(c,g){this.elementStart(c,g)}embeddedTView(c,g){return this.isApplyingToNode(c)?(this.crossesNgTemplate=!0,this.addMatch(-c.index,g),new Q4(this.metadata)):null}isApplyingToNode(c){if(this._appliesToNextNode&&1!=(1&this.metadata.flags)){const g=this._declarationNodeIndex;let D=c.parent;for(;null!==D&&8&D.type&&D.index!==g;)D=D.parent;return g===(null!==D?D.index:-1)}return this._appliesToNextNode}matchTNode(c,g){const D=this.metadata.predicate;if(Array.isArray(D))for(let N=0;N<D.length;N++){const G=D[N];this.matchTNodeWithReadOption(c,g,Yg(g,G)),this.matchTNodeWithReadOption(c,g,Ds(g,c,G,!1,!1))}else D===Fu?4&g.type&&this.matchTNodeWithReadOption(c,g,-1):this.matchTNodeWithReadOption(c,g,Ds(g,c,D,!1,!1))}matchTNodeWithReadOption(c,g,D){if(null!==D){const N=this.metadata.read;if(null!==N)if(N===pl||N===lf||N===Fu&&4&g.type)this.addMatch(g.index,-2);else{const G=Ds(g,c,N,!1,!1);null!==G&&this.addMatch(g.index,G)}else this.addMatch(g.index,D)}}addMatch(c,g){null===this.matches?this.matches=[c,g]:this.matches.push(c,g)}}function Yg(o,c){const g=o.localNames;if(null!==g)for(let D=0;D<g.length;D+=2)if(g[D]===c)return g[D+1];return null}function jg(o,c,g,D){return-1===g?function q4(o,c){return 11&o.type?Rr(o,c):4&o.type?Hu(o,c):null}(c,o):-2===g?function Kg(o,c,g){return g===pl?Rr(c,o):g===Fu?Hu(c,o):g===lf?Kp(c,o):void 0}(o,c,D):cs(o,o[1],g,c)}function J4(o,c,g,D){const N=c[19].queries[D];if(null===N.matches){const G=o.data,se=g.matches,Ee=[];for(let Ze=0;Ze<se.length;Ze+=2){const mt=se[Ze];Ee.push(mt<0?null:jg(c,G[mt],se[Ze+1],g.metadata.read))}N.matches=Ee}return N.matches}function X4(o,c,g,D){const N=o.queries.getByIndex(g),G=N.matches;if(null!==G){const se=J4(o,c,N,g);for(let Ee=0;Ee<G.length;Ee+=2){const Ze=G[Ee];if(Ze>0)D.push(se[Ee/2]);else{const mt=G[Ee+1],Ot=c[-Ze];for(let Xt=10;Xt<Ot.length;Xt++){const hi=Ot[Xt];hi[17]===hi[3]&&X4(hi[1],hi,mt,D)}if(null!==Ot[9]){const Xt=Ot[9];for(let hi=0;hi<Xt.length;hi++){const bi=Xt[hi];X4(bi[1],bi,mt,D)}}}}}return D}function qp(o){const c=Si(),g=Ln(),D=Eo();ss(D+1);const N=t6(g,D);if(o.dirty&&function ri(o){return 4==(4&o[2])}(c)===(2==(2&N.metadata.flags))){if(null===N.matches)o.reset([]);else{const G=N.crossesNgTemplate?X4(g,c,D,[]):J4(g,c,N,D);o.reset(G,Wl),o.notifyOnChanges()}return!0}return!1}function Jp(o,c,g){const D=Ln();D.firstCreatePass&&(e6(D,new Qp(o,c,g),-1),2==(2&c)&&(D.staticViewQueries=!0)),$p(D,Si(),c)}function Xp(o,c,g,D){const N=Ln();if(N.firstCreatePass){const G=Ha();e6(N,new Qp(c,g,D),G.index),function qg(o,c){const g=o.contentQueries||(o.contentQueries=[]);c!==(g.length?g[g.length-1]:-1)&&g.push(o.queries.length-1,c)}(N,o),2==(2&g)&&(N.staticContentQueries=!0)}$p(N,Si(),g)}function $4(){return function Qg(o,c){return o[19].queries[c].queryList}(Si(),Eo())}function $p(o,c,g){const D=new cf(4==(4&g));d3(o,c,D,D.destroy),null===c[19]&&(c[19]=new j4),c[19].queries.push(new hf(D))}function e6(o,c,g){null===o.queries&&(o.queries=new K4),o.queries.track(new Q4(c,g))}function t6(o,c){return o.queries.getByIndex(c)}function i6(o,c){return Hu(o,c)}function pf(...o){}const hm=new da("Application Initializer");let gf=(()=>{class o{constructor(g){this.appInits=g,this.resolve=pf,this.reject=pf,this.initialized=!1,this.done=!1,this.donePromise=new Promise((D,N)=>{this.resolve=D,this.reject=N})}runInitializers(){if(this.initialized)return;const g=[],D=()=>{this.done=!0,this.resolve()};if(this.appInits)for(let N=0;N<this.appInits.length;N++){const G=this.appInits[N]();if(du(G))g.push(G);else if(Qn(G)){const se=new Promise((Ee,Ze)=>{G.subscribe({complete:Ee,error:Ze})});g.push(se)}}Promise.all(g).then(()=>{D()}).catch(N=>{this.reject(N)}),0===g.length&&D(),this.initialized=!0}}return o.\u0275fac=function(g){return new(g||o)(kt(hm,8))},o.\u0275prov=We({token:o,factory:o.\u0275fac,providedIn:"root"}),o})();const v6=new da("AppId",{providedIn:"root",factory:function b6(){return`${um()}${um()}${um()}`}});function um(){return String.fromCharCode(97+Math.floor(25*Math.random()))}const fm=new da("Platform Initializer"),m8=new da("Platform ID",{providedIn:"platform",factory:()=>"unknown"}),y6=new da("appBootstrapListener"),g8=new da("AnimationModuleType");let x6=(()=>{class o{log(g){console.log(g)}warn(g){console.warn(g)}}return o.\u0275fac=function(g){return new(g||o)},o.\u0275prov=We({token:o,factory:o.\u0275fac,providedIn:"platform"}),o})();const Vu=new da("LocaleId",{providedIn:"root",factory:()=>we(Vu,Be.Optional|Be.SkipSelf)||function _8(){return typeof $localize<"u"&&$localize.locale||U1}()}),v8=new da("DefaultCurrencyCode",{providedIn:"root",factory:()=>"USD"});class b8{constructor(c,g){this.ngModuleFactory=c,this.componentFactories=g}}let y8=(()=>{class o{compileModuleSync(g){return new F4(g)}compileModuleAsync(g){return Promise.resolve(this.compileModuleSync(g))}compileModuleAndAllComponentsSync(g){const D=this.compileModuleSync(g),G=Gs(Ji(g).declarations).reduce((se,Ee)=>{const Ze=Ci(Ee);return Ze&&se.push(new $d(Ze)),se},[]);return new b8(D,G)}compileModuleAndAllComponentsAsync(g){return Promise.resolve(this.compileModuleAndAllComponentsSync(g))}clearCache(){}clearCacheFor(g){}getModuleId(g){}}return o.\u0275fac=function(g){return new(g||o)},o.\u0275prov=We({token:o,factory:o.\u0275fac,providedIn:"root"}),o})();const C8=(()=>Promise.resolve(0))();function _f(o){typeof Zone>"u"?C8.then(()=>{o&&o.apply(null,null)}):Zone.current.scheduleMicroTask("scheduleMicrotask",o)}class vc{constructor({enableLongStackTrace:c=!1,shouldCoalesceEventChangeDetection:g=!1,shouldCoalesceRunChangeDetection:D=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new Ml(!1),this.onMicrotaskEmpty=new Ml(!1),this.onStable=new Ml(!1),this.onError=new Ml(!1),typeof Zone>"u")throw new W(908,!1);Zone.assertZonePatched();const N=this;N._nesting=0,N._outer=N._inner=Zone.current,Zone.TaskTrackingZoneSpec&&(N._inner=N._inner.fork(new Zone.TaskTrackingZoneSpec)),c&&Zone.longStackTraceZoneSpec&&(N._inner=N._inner.fork(Zone.longStackTraceZoneSpec)),N.shouldCoalesceEventChangeDetection=!D&&g,N.shouldCoalesceRunChangeDetection=D,N.lastRequestAnimationFrameId=-1,N.nativeRequestAnimationFrame=function w8(){let o=Et.requestAnimationFrame,c=Et.cancelAnimationFrame;if(typeof Zone<"u"&&o&&c){const g=o[Zone.__symbol__("OriginalDelegate")];g&&(o=g);const D=c[Zone.__symbol__("OriginalDelegate")];D&&(c=D)}return{nativeRequestAnimationFrame:o,nativeCancelAnimationFrame:c}}().nativeRequestAnimationFrame,function S8(o){const c=()=>{!function M8(o){o.isCheckStableRunning||-1!==o.lastRequestAnimationFrameId||(o.lastRequestAnimationFrameId=o.nativeRequestAnimationFrame.call(Et,()=>{o.fakeTopEventTask||(o.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",()=>{o.lastRequestAnimationFrameId=-1,pm(o),o.isCheckStableRunning=!0,mm(o),o.isCheckStableRunning=!1},void 0,()=>{},()=>{})),o.fakeTopEventTask.invoke()}),pm(o))}(o)};o._inner=o._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:(g,D,N,G,se,Ee)=>{try{return gm(o),g.invokeTask(N,G,se,Ee)}finally{(o.shouldCoalesceEventChangeDetection&&"eventTask"===G.type||o.shouldCoalesceRunChangeDetection)&&c(),S6(o)}},onInvoke:(g,D,N,G,se,Ee,Ze)=>{try{return gm(o),g.invoke(N,G,se,Ee,Ze)}finally{o.shouldCoalesceRunChangeDetection&&c(),S6(o)}},onHasTask:(g,D,N,G)=>{g.hasTask(N,G),D===N&&("microTask"==G.change?(o._hasPendingMicrotasks=G.microTask,pm(o),mm(o)):"macroTask"==G.change&&(o.hasPendingMacrotasks=G.macroTask))},onHandleError:(g,D,N,G)=>(g.handleError(N,G),o.runOutsideAngular(()=>o.onError.emit(G)),!1)})}(N)}static isInAngularZone(){return typeof Zone<"u"&&!0===Zone.current.get("isAngularZone")}static assertInAngularZone(){if(!vc.isInAngularZone())throw new W(909,!1)}static assertNotInAngularZone(){if(vc.isInAngularZone())throw new W(909,!1)}run(c,g,D){return this._inner.run(c,g,D)}runTask(c,g,D,N){const G=this._inner,se=G.scheduleEventTask("NgZoneEvent: "+N,c,M6,pf,pf);try{return G.runTask(se,g,D)}finally{G.cancelTask(se)}}runGuarded(c,g,D){return this._inner.runGuarded(c,g,D)}runOutsideAngular(c){return this._outer.run(c)}}const M6={};function mm(o){if(0==o._nesting&&!o.hasPendingMicrotasks&&!o.isStable)try{o._nesting++,o.onMicrotaskEmpty.emit(null)}finally{if(o._nesting--,!o.hasPendingMicrotasks)try{o.runOutsideAngular(()=>o.onStable.emit(null))}finally{o.isStable=!0}}}function pm(o){o.hasPendingMicrotasks=!!(o._hasPendingMicrotasks||(o.shouldCoalesceEventChangeDetection||o.shouldCoalesceRunChangeDetection)&&-1!==o.lastRequestAnimationFrameId)}function gm(o){o._nesting++,o.isStable&&(o.isStable=!1,o.onUnstable.emit(null))}function S6(o){o._nesting--,mm(o)}class E8{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new Ml,this.onMicrotaskEmpty=new Ml,this.onStable=new Ml,this.onError=new Ml}run(c,g,D){return c.apply(g,D)}runGuarded(c,g,D){return c.apply(g,D)}runOutsideAngular(c){return c()}runTask(c,g,D,N){return c.apply(g,D)}}const _m=new da(""),E6=new da("");let vm,T8=(()=>{class o{constructor(g,D,N){this._ngZone=g,this.registry=D,this._pendingCount=0,this._isZoneStable=!0,this._didWork=!1,this._callbacks=[],this.taskTrackingZone=null,vm||(function A8(o){vm=o}(N),N.addToWindow(D)),this._watchAngularEvents(),g.run(()=>{this.taskTrackingZone=typeof Zone>"u"?null:Zone.current.get("TaskTrackingZone")})}_watchAngularEvents(){this._ngZone.onUnstable.subscribe({next:()=>{this._didWork=!0,this._isZoneStable=!1}}),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.subscribe({next:()=>{vc.assertNotInAngularZone(),_f(()=>{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())_f(()=>{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(D=>!D.updateCb||!D.updateCb(g)||(clearTimeout(D.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,D,N){let G=-1;D&&D>0&&(G=setTimeout(()=>{this._callbacks=this._callbacks.filter(se=>se.timeoutId!==G),g(this._didWork,this.getPendingTasks())},D)),this._callbacks.push({doneCb:g,timeoutId:G,updateCb:N})}whenStable(g,D,N){if(N&&!this.taskTrackingZone)throw new Error('Task tracking zone is required when passing an update callback to whenStable(). Is "zone.js/plugins/task-tracking" loaded?');this.addCallback(g,D,N),this._runCallbacksIfReady()}getPendingRequestCount(){return this._pendingCount}registerApplication(g){this.registry.registerApplication(g,this)}unregisterApplication(g){this.registry.unregisterApplication(g)}findProviders(g,D,N){return[]}}return o.\u0275fac=function(g){return new(g||o)(kt(vc),kt(T6),kt(E6))},o.\u0275prov=We({token:o,factory:o.\u0275fac}),o})(),T6=(()=>{class o{constructor(){this._applications=new Map}registerApplication(g,D){this._applications.set(g,D)}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,D=!0){return vm?.findTestabilityInTree(this,g,D)??null}}return o.\u0275fac=function(g){return new(g||o)},o.\u0275prov=We({token:o,factory:o.\u0275fac,providedIn:"platform"}),o})(),Y1=null;const bm=new da("AllowMultipleToken"),ym=new da("PlatformDestroyListeners");class k8{constructor(c,g){this.name=c,this.token=g}}function D6(o,c,g=[]){const D=`Platform: ${c}`,N=new da(D);return(G=[])=>{let se=xm();if(!se||se.injector.get(bm,!1)){const Ee=[...g,...G,{provide:N,useValue:!0}];o?o(Ee):function O8(o){if(Y1&&!Y1.get(bm,!1))throw new W(400,!1);Y1=o;const c=o.get(k6);(function L6(o){const c=o.get(fm,null);c&&c.forEach(g=>g())})(o)}(function I6(o=[],c){return uc.create({name:c,providers:[{provide:ml,useValue:"platform"},{provide:ym,useValue:new Set([()=>Y1=null])},...o]})}(Ee,D))}return function P8(o){const c=xm();if(!c)throw new W(401,!1);return c}()}}function xm(){return Y1?.get(k6)??null}let k6=(()=>{class o{constructor(g){this._injector=g,this._modules=[],this._destroyListeners=[],this._destroyed=!1}bootstrapModuleFactory(g,D){const N=function P6(o,c){let g;return g="noop"===o?new E8:("zone.js"===o?void 0:o)||new vc(c),g}(D?.ngZone,function O6(o){return{enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:!(!o||!o.ngZoneEventCoalescing)||!1,shouldCoalesceRunChangeDetection:!(!o||!o.ngZoneRunCoalescing)||!1}}(D)),G=[{provide:vc,useValue:N}];return N.run(()=>{const se=uc.create({providers:G,parent:this.injector,name:g.moduleType.name}),Ee=g.create(se),Ze=Ee.injector.get(gl,null);if(!Ze)throw new W(402,!1);return N.runOutsideAngular(()=>{const mt=N.onError.subscribe({next:Ot=>{Ze.handleError(Ot)}});Ee.onDestroy(()=>{vf(this._modules,Ee),mt.unsubscribe()})}),function R6(o,c,g){try{const D=g();return du(D)?D.catch(N=>{throw c.runOutsideAngular(()=>o.handleError(N)),N}):D}catch(D){throw c.runOutsideAngular(()=>o.handleError(D)),D}}(Ze,N,()=>{const mt=Ee.injector.get(gf);return mt.runInitializers(),mt.donePromise.then(()=>(function Ou(o){B(o,"Expected localeId to be defined"),"string"==typeof o&&(nf=o.toLowerCase().replace(/_/g,"-"))}(Ee.injector.get(Vu,U1)||U1),this._moduleDoBootstrap(Ee),Ee))})})}bootstrapModule(g,D=[]){const N=N6({},D);return function L8(o,c,g){const D=new F4(g);return Promise.resolve(D)}(0,0,g).then(G=>this.bootstrapModuleFactory(G,N))}_moduleDoBootstrap(g){const D=g.injector.get(Uu);if(g._bootstrapComponents.length>0)g._bootstrapComponents.forEach(N=>D.bootstrap(N));else{if(!g.instance.ngDoBootstrap)throw new W(-403,!1);g.instance.ngDoBootstrap(D)}this._modules.push(g)}onDestroy(g){this._destroyListeners.push(g)}get injector(){return this._injector}destroy(){if(this._destroyed)throw new W(404,!1);this._modules.slice().forEach(D=>D.destroy()),this._destroyListeners.forEach(D=>D());const g=this._injector.get(ym,null);g&&(g.forEach(D=>D()),g.clear()),this._destroyed=!0}get destroyed(){return this._destroyed}}return o.\u0275fac=function(g){return new(g||o)(kt(uc))},o.\u0275prov=We({token:o,factory:o.\u0275fac,providedIn:"platform"}),o})();function N6(o,c){return Array.isArray(c)?c.reduce(N6,o):{...o,...c}}let Uu=(()=>{class o{get destroyed(){return this._destroyed}get injector(){return this._injector}constructor(g,D,N){this._zone=g,this._injector=D,this._exceptionHandler=N,this._bootstrapListeners=[],this._views=[],this._runningTick=!1,this._stable=!0,this._destroyed=!1,this._destroyListeners=[],this.componentTypes=[],this.components=[],this._onMicrotaskEmptySubscription=this._zone.onMicrotaskEmpty.subscribe({next:()=>{this._zone.run(()=>{this.tick()})}});const G=new b.y(Ee=>{this._stable=this._zone.isStable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks,this._zone.runOutsideAngular(()=>{Ee.next(this._stable),Ee.complete()})}),se=new b.y(Ee=>{let Ze;this._zone.runOutsideAngular(()=>{Ze=this._zone.onStable.subscribe(()=>{vc.assertNotInAngularZone(),_f(()=>{!this._stable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks&&(this._stable=!0,Ee.next(!0))})})});const mt=this._zone.onUnstable.subscribe(()=>{vc.assertInAngularZone(),this._stable&&(this._stable=!1,this._zone.runOutsideAngular(()=>{Ee.next(!1)}))});return()=>{Ze.unsubscribe(),mt.unsubscribe()}});this.isStable=(0,I.T)(G,se.pipe((0,s.B)()))}bootstrap(g,D){const N=g instanceof l0;if(!this._injector.get(gf).done)throw!N&&Yi(g),new W(405,false);let se;se=N?g:this._injector.get(es).resolveComponentFactory(g),this.componentTypes.push(se.componentType);const Ee=function I8(o){return o.isBoundToModule}(se)?void 0:this._injector.get(j0),mt=se.create(uc.NULL,[],D||se.selector,Ee),Ot=mt.location.nativeElement,Xt=mt.injector.get(_m,null);return Xt?.registerApplication(Ot),mt.onDestroy(()=>{this.detachView(mt.hostView),vf(this.components,mt),Xt?.unregisterApplication(Ot)}),this._loadComponent(mt),mt}tick(){if(this._runningTick)throw new W(101,!1);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 D=g;this._views.push(D),D.attachToAppRef(this)}detachView(g){const D=g;vf(this._views,D),D.detachFromAppRef()}_loadComponent(g){this.attachView(g.hostView),this.tick(),this.components.push(g);const D=this._injector.get(y6,[]);D.push(...this._bootstrapListeners),D.forEach(N=>N(g))}ngOnDestroy(){if(!this._destroyed)try{this._destroyListeners.forEach(g=>g()),this._views.slice().forEach(g=>g.destroy()),this._onMicrotaskEmptySubscription.unsubscribe()}finally{this._destroyed=!0,this._views=[],this._bootstrapListeners=[],this._destroyListeners=[]}}onDestroy(g){return this._destroyListeners.push(g),()=>vf(this._destroyListeners,g)}destroy(){if(this._destroyed)throw new W(406,!1);const g=this._injector;g.destroy&&!g.destroyed&&g.destroy()}get viewCount(){return this._views.length}warnIfDestroyed(){}}return o.\u0275fac=function(g){return new(g||o)(kt(vc),kt(Oc),kt(gl))},o.\u0275prov=We({token:o,factory:o.\u0275fac,providedIn:"root"}),o})();function vf(o,c){const g=o.indexOf(c);g>-1&&o.splice(g,1)}function F8(){return!1}let z6=(()=>{class o{}return o.__NG_ELEMENT_ID__=V8,o})();function V8(o){return function Cm(o,c,g){if(Sr(o)&&!g){const D=Ct(o.index,c);return new Xd(D,D)}return 47&o.type?new Xd(c[16],c):null}(Ha(),Si(),16==(16&o))}class W6{constructor(){}supports(c){return ru(c)}create(c){return new Z8(c)}}const G8=(o,c)=>c;class Z8{constructor(c){this.length=0,this._linkedRecords=null,this._unlinkedRecords=null,this._previousItHead=null,this._itHead=null,this._itTail=null,this._additionsHead=null,this._additionsTail=null,this._movesHead=null,this._movesTail=null,this._removalsHead=null,this._removalsTail=null,this._identityChangesHead=null,this._identityChangesTail=null,this._trackByFn=c||G8}forEachItem(c){let g;for(g=this._itHead;null!==g;g=g._next)c(g)}forEachOperation(c){let g=this._itHead,D=this._removalsHead,N=0,G=null;for(;g||D;){const se=!D||g&&g.currentIndex<Y6(D,N,G)?g:D,Ee=Y6(se,N,G),Ze=se.currentIndex;if(se===D)N--,D=D._nextRemoved;else if(g=g._next,null==se.previousIndex)N++;else{G||(G=[]);const mt=Ee-N,Ot=Ze-N;if(mt!=Ot){for(let hi=0;hi<mt;hi++){const bi=hi<G.length?G[hi]:G[hi]=0,Ri=bi+hi;Ot<=Ri&&Ri<mt&&(G[hi]=bi+1)}G[se.previousIndex]=Ot-mt}}Ee!==Ze&&c(se,Ee,Ze)}}forEachPreviousItem(c){let g;for(g=this._previousItHead;null!==g;g=g._nextPrevious)c(g)}forEachAddedItem(c){let g;for(g=this._additionsHead;null!==g;g=g._nextAdded)c(g)}forEachMovedItem(c){let g;for(g=this._movesHead;null!==g;g=g._nextMoved)c(g)}forEachRemovedItem(c){let g;for(g=this._removalsHead;null!==g;g=g._nextRemoved)c(g)}forEachIdentityChange(c){let g;for(g=this._identityChangesHead;null!==g;g=g._nextIdentityChange)c(g)}diff(c){if(null==c&&(c=[]),!ru(c))throw new W(900,!1);return this.check(c)?this:null}onDestroy(){}check(c){this._reset();let N,G,se,g=this._itHead,D=!1;if(Array.isArray(c)){this.length=c.length;for(let Ee=0;Ee<this.length;Ee++)G=c[Ee],se=this._trackByFn(Ee,G),null!==g&&Object.is(g.trackById,se)?(D&&(g=this._verifyReinsertion(g,G,se,Ee)),Object.is(g.item,G)||this._addIdentityChange(g,G)):(g=this._mismatch(g,G,se,Ee),D=!0),g=g._next}else N=0,function E3(o,c){if(Array.isArray(o))for(let g=0;g<o.length;g++)c(o[g]);else{const g=o[Hc()]();let D;for(;!(D=g.next()).done;)c(D.value)}}(c,Ee=>{se=this._trackByFn(N,Ee),null!==g&&Object.is(g.trackById,se)?(D&&(g=this._verifyReinsertion(g,Ee,se,N)),Object.is(g.item,Ee)||this._addIdentityChange(g,Ee)):(g=this._mismatch(g,Ee,se,N),D=!0),g=g._next,N++}),this.length=N;return this._truncate(g),this.collection=c,this.isDirty}get isDirty(){return null!==this._additionsHead||null!==this._movesHead||null!==this._removalsHead||null!==this._identityChangesHead}_reset(){if(this.isDirty){let c;for(c=this._previousItHead=this._itHead;null!==c;c=c._next)c._nextPrevious=c._next;for(c=this._additionsHead;null!==c;c=c._nextAdded)c.previousIndex=c.currentIndex;for(this._additionsHead=this._additionsTail=null,c=this._movesHead;null!==c;c=c._nextMoved)c.previousIndex=c.currentIndex;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}_mismatch(c,g,D,N){let G;return null===c?G=this._itTail:(G=c._prev,this._remove(c)),null!==(c=null===this._unlinkedRecords?null:this._unlinkedRecords.get(D,null))?(Object.is(c.item,g)||this._addIdentityChange(c,g),this._reinsertAfter(c,G,N)):null!==(c=null===this._linkedRecords?null:this._linkedRecords.get(D,N))?(Object.is(c.item,g)||this._addIdentityChange(c,g),this._moveAfter(c,G,N)):c=this._addAfter(new W8(g,D),G,N),c}_verifyReinsertion(c,g,D,N){let G=null===this._unlinkedRecords?null:this._unlinkedRecords.get(D,null);return null!==G?c=this._reinsertAfter(G,c._prev,N):c.currentIndex!=N&&(c.currentIndex=N,this._addToMoves(c,N)),c}_truncate(c){for(;null!==c;){const g=c._next;this._addToRemovals(this._unlink(c)),c=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(c,g,D){null!==this._unlinkedRecords&&this._unlinkedRecords.remove(c);const N=c._prevRemoved,G=c._nextRemoved;return null===N?this._removalsHead=G:N._nextRemoved=G,null===G?this._removalsTail=N:G._prevRemoved=N,this._insertAfter(c,g,D),this._addToMoves(c,D),c}_moveAfter(c,g,D){return this._unlink(c),this._insertAfter(c,g,D),this._addToMoves(c,D),c}_addAfter(c,g,D){return this._insertAfter(c,g,D),this._additionsTail=null===this._additionsTail?this._additionsHead=c:this._additionsTail._nextAdded=c,c}_insertAfter(c,g,D){const N=null===g?this._itHead:g._next;return c._next=N,c._prev=g,null===N?this._itTail=c:N._prev=c,null===g?this._itHead=c:g._next=c,null===this._linkedRecords&&(this._linkedRecords=new Em),this._linkedRecords.put(c),c.currentIndex=D,c}_remove(c){return this._addToRemovals(this._unlink(c))}_unlink(c){null!==this._linkedRecords&&this._linkedRecords.remove(c);const g=c._prev,D=c._next;return null===g?this._itHead=D:g._next=D,null===D?this._itTail=g:D._prev=g,c}_addToMoves(c,g){return c.previousIndex===g||(this._movesTail=null===this._movesTail?this._movesHead=c:this._movesTail._nextMoved=c),c}_addToRemovals(c){return null===this._unlinkedRecords&&(this._unlinkedRecords=new Em),this._unlinkedRecords.put(c),c.currentIndex=null,c._nextRemoved=null,null===this._removalsTail?(this._removalsTail=this._removalsHead=c,c._prevRemoved=null):(c._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=c),c}_addIdentityChange(c,g){return c.item=g,this._identityChangesTail=null===this._identityChangesTail?this._identityChangesHead=c:this._identityChangesTail._nextIdentityChange=c,c}}class W8{constructor(c,g){this.item=c,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 Y8{constructor(){this._head=null,this._tail=null}add(c){null===this._head?(this._head=this._tail=c,c._nextDup=null,c._prevDup=null):(this._tail._nextDup=c,c._prevDup=this._tail,c._nextDup=null,this._tail=c)}get(c,g){let D;for(D=this._head;null!==D;D=D._nextDup)if((null===g||g<=D.currentIndex)&&Object.is(D.trackById,c))return D;return null}remove(c){const g=c._prevDup,D=c._nextDup;return null===g?this._head=D:g._nextDup=D,null===D?this._tail=g:D._prevDup=g,null===this._head}}class Em{constructor(){this.map=new Map}put(c){const g=c.trackById;let D=this.map.get(g);D||(D=new Y8,this.map.set(g,D)),D.add(c)}get(c,g){const N=this.map.get(c);return N?N.get(c,g):null}remove(c){const g=c.trackById;return this.map.get(g).remove(c)&&this.map.delete(g),c}get isEmpty(){return 0===this.map.size}clear(){this.map.clear()}}function Y6(o,c,g){const D=o.previousIndex;if(null===D)return D;let N=0;return g&&D<g.length&&(N=g[D]),D+c+N}class xf{constructor(){}supports(c){return c instanceof Map||T3(c)}create(){return new j8}}class j8{constructor(){this._records=new Map,this._mapHead=null,this._appendAfter=null,this._previousMapHead=null,this._changesHead=null,this._changesTail=null,this._additionsHead=null,this._additionsTail=null,this._removalsHead=null,this._removalsTail=null}get isDirty(){return null!==this._additionsHead||null!==this._changesHead||null!==this._removalsHead}forEachItem(c){let g;for(g=this._mapHead;null!==g;g=g._next)c(g)}forEachPreviousItem(c){let g;for(g=this._previousMapHead;null!==g;g=g._nextPrevious)c(g)}forEachChangedItem(c){let g;for(g=this._changesHead;null!==g;g=g._nextChanged)c(g)}forEachAddedItem(c){let g;for(g=this._additionsHead;null!==g;g=g._nextAdded)c(g)}forEachRemovedItem(c){let g;for(g=this._removalsHead;null!==g;g=g._nextRemoved)c(g)}diff(c){if(c){if(!(c instanceof Map||T3(c)))throw new W(900,!1)}else c=new Map;return this.check(c)?this:null}onDestroy(){}check(c){this._reset();let g=this._mapHead;if(this._appendAfter=null,this._forEach(c,(D,N)=>{if(g&&g.key===N)this._maybeAddToChanges(g,D),this._appendAfter=g,g=g._next;else{const G=this._getOrCreateRecordForKey(N,D);g=this._insertBeforeOrAppend(g,G)}}),g){g._prev&&(g._prev._next=null),this._removalsHead=g;for(let D=g;null!==D;D=D._nextRemoved)D===this._mapHead&&(this._mapHead=null),this._records.delete(D.key),D._nextRemoved=D._next,D.previousValue=D.currentValue,D.currentValue=null,D._prev=null,D._next=null}return this._changesTail&&(this._changesTail._nextChanged=null),this._additionsTail&&(this._additionsTail._nextAdded=null),this.isDirty}_insertBeforeOrAppend(c,g){if(c){const D=c._prev;return g._next=c,g._prev=D,c._prev=g,D&&(D._next=g),c===this._mapHead&&(this._mapHead=g),this._appendAfter=c,c}return this._appendAfter?(this._appendAfter._next=g,g._prev=this._appendAfter):this._mapHead=g,this._appendAfter=g,null}_getOrCreateRecordForKey(c,g){if(this._records.has(c)){const N=this._records.get(c);this._maybeAddToChanges(N,g);const G=N._prev,se=N._next;return G&&(G._next=se),se&&(se._prev=G),N._next=null,N._prev=null,N}const D=new K8(c);return this._records.set(c,D),D.currentValue=g,this._addToAdditions(D),D}_reset(){if(this.isDirty){let c;for(this._previousMapHead=this._mapHead,c=this._previousMapHead;null!==c;c=c._next)c._nextPrevious=c._next;for(c=this._changesHead;null!==c;c=c._nextChanged)c.previousValue=c.currentValue;for(c=this._additionsHead;null!=c;c=c._nextAdded)c.previousValue=c.currentValue;this._changesHead=this._changesTail=null,this._additionsHead=this._additionsTail=null,this._removalsHead=null}}_maybeAddToChanges(c,g){Object.is(g,c.currentValue)||(c.previousValue=c.currentValue,c.currentValue=g,this._addToChanges(c))}_addToAdditions(c){null===this._additionsHead?this._additionsHead=this._additionsTail=c:(this._additionsTail._nextAdded=c,this._additionsTail=c)}_addToChanges(c){null===this._changesHead?this._changesHead=this._changesTail=c:(this._changesTail._nextChanged=c,this._changesTail=c)}_forEach(c,g){c instanceof Map?c.forEach(g):Object.keys(c).forEach(D=>g(c[D],D))}}class K8{constructor(c){this.key=c,this.previousValue=null,this.currentValue=null,this._nextPrevious=null,this._next=null,this._prev=null,this._nextAdded=null,this._nextRemoved=null,this._nextChanged=null}}function Tm(){return new Am([new W6])}let Am=(()=>{class o{constructor(g){this.factories=g}static create(g,D){if(null!=D){const N=D.factories.slice();g=g.concat(N)}return new o(g)}static extend(g){return{provide:o,useFactory:D=>o.create(g,D||Tm()),deps:[[o,new ac,new nc]]}}find(g){const D=this.factories.find(N=>N.supports(g));if(null!=D)return D;throw new W(901,!1)}}return o.\u0275prov=We({token:o,providedIn:"root",factory:Tm}),o})();function j6(){return new Lm([new xf])}let Lm=(()=>{class o{constructor(g){this.factories=g}static create(g,D){if(D){const N=D.factories.slice();g=g.concat(N)}return new o(g)}static extend(g){return{provide:o,useFactory:D=>o.create(g,D||j6()),deps:[[o,new ac,new nc]]}}find(g){const D=this.factories.find(N=>N.supports(g));if(D)return D;throw new W(901,!1)}}return o.\u0275prov=We({token:o,providedIn:"root",factory:j6}),o})();const $8=D6(null,"core",[]);let K6=(()=>{class o{constructor(g){}}return o.\u0275fac=function(g){return new(g||o)(kt(Uu))},o.\u0275mod=St({type:o}),o.\u0275inj=De({}),o})();function e5(o){return"boolean"==typeof o?o:null!=o&&"false"!==o}},5863:(Ve,q,p)=>{"use strict";function t(S){for(let w in S){let O=S[w]??"";switch(w){case"display":S.display="flex"===O?["-webkit-flex","flex"]:"inline-flex"===O?["-webkit-inline-flex","inline-flex"]:O;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":S["-webkit-"+w]=O;break;case"flex-direction":S["-webkit-flex-direction"]=O,S["flex-direction"]=O;break;case"order":S.order=S["-webkit-"+w]=isNaN(+O)?"0":O}}return S}p.d(q,{Ar:()=>I,GK:()=>t,iQ:()=>b,kt:()=>d,tj:()=>C});const e="inline",b=["row","column","row-reverse","column-reverse"];function I(S){let[w,O,E]=s(S);return function P(S,w=null,O=!1){return{display:O?"inline-flex":"flex","box-sizing":"border-box","flex-direction":S,"flex-wrap":w||null}}(w,O,E)}function s(S){S=S?.toLowerCase()??"";let[w,O,E]=S.split(" ");return b.find(R=>R===w)||(w=b[0]),O===e&&(O=E!==e?E:"",E=e),[w,h(O),!!E]}function C(S){let[w]=s(S);return w.indexOf("row")>-1}function h(S){if(S)switch(S.toLowerCase()){case"reverse":case"wrap-reverse":case"reverse-wrap":S="wrap-reverse";break;case"no":case"none":case"nowrap":S="nowrap";break;default:S="wrap"}return S}function d(S,...w){if(null==S)throw TypeError("Cannot convert undefined or null to object");for(let O of w)if(null!=O)for(let E in O)O.hasOwnProperty(E)&&(S[E]=O[E]);return S}},2233:(Ve,q,p)=>{"use strict";p.d(q,{Bs:()=>ee,FL:()=>Y,IR:()=>E,Ot:()=>ke,QI:()=>ue,RK:()=>le,WU:()=>W,g5:()=>U,iR:()=>ae,wY:()=>K,yB:()=>Ue});var t=p(4650),e=p(6895),b=p(1135),I=p(9751),s=p(6451),C=p(7579),h=p(5863),P=p(9300),d=p(8505);const w={provide:t.tb,useFactory:function S(Re,Tt){return()=>{if((0,e.NF)(Tt)){const Qe=Array.from(Re.querySelectorAll(`[class*=${O}]`)),Ye=/\bflex-layout-.+?\b/g;Qe.forEach(Ht=>{Ht.classList.contains(`${O}ssr`)&&Ht.parentNode?Ht.parentNode.removeChild(Ht):Ht.className.replace(Ye,"")})}}},deps:[e.K0,t.Lbi],multi:!0},O="flex-layout-";let E=(()=>{class Re{}return Re.\u0275fac=function(Qe){return new(Qe||Re)},Re.\u0275mod=t.oAB({type:Re}),Re.\u0275inj=t.cJS({providers:[w]}),Re})();class R{constructor(Tt=!1,Qe="all",Ye="",Ht="",Mt=0){this.matches=Tt,this.mediaQuery=Qe,this.mqAlias=Ye,this.suffix=Ht,this.priority=Mt,this.property=""}clone(){return new R(this.matches,this.mediaQuery,this.mqAlias,this.suffix)}}let z=(()=>{class Re{constructor(){this.stylesheet=new Map}addStyleToElement(Qe,Ye,Ht){const Mt=this.stylesheet.get(Qe);Mt?Mt.set(Ye,Ht):this.stylesheet.set(Qe,new Map([[Ye,Ht]]))}clearStyles(){this.stylesheet.clear()}getStyleForElement(Qe,Ye){const Ht=this.stylesheet.get(Qe);let Mt="";if(Ht){const kt=Ht.get(Ye);("number"==typeof kt||"string"==typeof kt)&&(Mt=kt+"")}return Mt}}return Re.\u0275fac=function(Qe){return new(Qe||Re)},Re.\u0275prov=t.Yz7({token:Re,factory:Re.\u0275fac,providedIn:"root"}),Re})();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}),K=new t.OlP("FlexLayoutServerLoaded",{providedIn:"root",factory:()=>!1}),ee=new t.OlP("Flex Layout token, collect all breakpoints into one provider",{providedIn:"root",factory:()=>null});function ie(Re,Tt){return Re=Re?.clone()??new R,Tt&&(Re.mqAlias=Tt.alias,Re.mediaQuery=Tt.mediaQuery,Re.suffix=Tt.suffix,Re.priority=Tt.priority),Re}class ue{constructor(){this.shouldCache=!0}sideEffect(Tt,Qe,Ye){}}let le=(()=>{class Re{constructor(Qe,Ye,Ht,Mt){this._serverStylesheet=Qe,this._serverModuleLoaded=Ye,this._platformId=Ht,this.layoutConfig=Mt}applyStyleToElement(Qe,Ye,Ht=null){let Mt={};"string"==typeof Ye&&(Mt[Ye]=Ht,Ye=Mt),Mt=this.layoutConfig.disableVendorPrefixes?Ye:(0,h.GK)(Ye),this._applyMultiValueStyleToElement(Mt,Qe)}applyStyleToElements(Qe,Ye=[]){const Ht=this.layoutConfig.disableVendorPrefixes?Qe:(0,h.GK)(Qe);Ye.forEach(Mt=>{this._applyMultiValueStyleToElement(Ht,Mt)})}getFlowDirection(Qe){const Ye="flex-direction";let Ht=this.lookupStyle(Qe,Ye);return[Ht||"row",this.lookupInlineStyle(Qe,Ye)||(0,e.PM)(this._platformId)&&this._serverModuleLoaded?Ht:""]}hasWrap(Qe){return"wrap"===this.lookupStyle(Qe,"flex-wrap")}lookupAttributeValue(Qe,Ye){return Qe.getAttribute(Ye)??""}lookupInlineStyle(Qe,Ye){return(0,e.NF)(this._platformId)?Qe.style.getPropertyValue(Ye):function ne(Re,Tt){return me(Re)[Tt]??""}(Qe,Ye)}lookupStyle(Qe,Ye,Ht=!1){let Mt="";return Qe&&((Mt=this.lookupInlineStyle(Qe,Ye))||((0,e.NF)(this._platformId)?Ht||(Mt=getComputedStyle(Qe).getPropertyValue(Ye)):this._serverModuleLoaded&&(Mt=this._serverStylesheet.getStyleForElement(Qe,Ye)))),Mt?Mt.trim():""}_applyMultiValueStyleToElement(Qe,Ye){Object.keys(Qe).sort().forEach(Ht=>{const Mt=Qe[Ht],kt=Array.isArray(Mt)?Mt:[Mt];kt.sort();for(let _t of kt)_t=_t?_t+"":"",(0,e.NF)(this._platformId)||!this._serverModuleLoaded?(0,e.NF)(this._platformId)?Ye.style.setProperty(Ht,_t):de(Ye,Ht,_t):this._serverStylesheet.addStyleToElement(Ye,Ht,_t)})}}return Re.\u0275fac=function(Qe){return new(Qe||Re)(t.LFG(z),t.LFG(K),t.LFG(t.Lbi),t.LFG(W))},Re.\u0275prov=t.Yz7({token:Re,factory:Re.\u0275fac,providedIn:"root"}),Re})();function de(Re,Tt,Qe){Tt=Tt.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase();const Ye=me(Re);Ye[Tt]=Qe??"",function $(Re,Tt){let Qe="";for(const Ye in Tt)Tt[Ye]&&(Qe+=`${Ye}:${Tt[Ye]};`);Re.setAttribute("style",Qe)}(Re,Ye)}function me(Re){const Tt={},Qe=Re.getAttribute("style");if(Qe){const Ye=Qe.split(/;+/g);for(let Ht=0;Ht<Ye.length;Ht++){const Mt=Ye[Ht].trim();if(Mt.length>0){const kt=Mt.indexOf(":");if(-1===kt)throw new Error(`Invalid CSS style: ${Mt}`);Tt[Mt.substr(0,kt).trim()]=Mt.substr(kt+1).trim()}}}return Tt}function A(Re,Tt){return(Tt&&Tt.priority||0)-(Re&&Re.priority||0)}function i(Re,Tt){return(Re.priority||0)-(Tt.priority||0)}let a=(()=>{class Re{constructor(Qe,Ye,Ht){this._zone=Qe,this._platformId=Ye,this._document=Ht,this.source=new b.X(new R(!0)),this.registry=new Map,this.pendingRemoveListenerFns=[],this._observable$=this.source.asObservable()}get activations(){const Qe=[];return this.registry.forEach((Ye,Ht)=>{Ye.matches&&Qe.push(Ht)}),Qe}isActive(Qe){return this.registry.get(Qe)?.matches??this.registerQuery(Qe).some(Ht=>Ht.matches)}observe(Qe,Ye=!1){if(Qe&&Qe.length){const Ht=this._observable$.pipe((0,P.h)(kt=>!Ye||Qe.indexOf(kt.mediaQuery)>-1)),Mt=new I.y(kt=>{const _t=this.registerQuery(Qe);if(_t.length){const we=_t.pop();_t.forEach(J=>{kt.next(J)}),this.source.next(we)}kt.complete()});return(0,s.T)(Mt,Ht)}return this._observable$}registerQuery(Qe){const Ye=Array.isArray(Qe)?Qe:[Qe],Ht=[];return function l(Re,Tt){const Qe=Re.filter(Ye=>!u[Ye]);if(Qe.length>0){const Ye=Qe.join(", ");try{const Ht=Tt.createElement("style");Ht.setAttribute("type","text/css"),Ht.styleSheet||Ht.appendChild(Tt.createTextNode(`\n/*\n @angular/flex-layout - workaround for possible browser quirk with mediaQuery listeners\n see http://bit.ly/2sd4HMP\n*/\n@media ${Ye} {.fx-query-test{ }}\n`)),Tt.head.appendChild(Ht),Qe.forEach(Mt=>u[Mt]=Ht)}catch(Ht){console.error(Ht)}}}(Ye,this._document),Ye.forEach(Mt=>{const kt=we=>{this._zone.run(()=>this.source.next(new R(we.matches,Mt)))};let _t=this.registry.get(Mt);_t||(_t=this.buildMQL(Mt),_t.addListener(kt),this.pendingRemoveListenerFns.push(()=>_t.removeListener(kt)),this.registry.set(Mt,_t)),_t.matches&&Ht.push(new R(!0,Mt))}),Ht}ngOnDestroy(){let Qe;for(;Qe=this.pendingRemoveListenerFns.pop();)Qe()}buildMQL(Qe){return function T(Re,Tt){return Tt&&window.matchMedia("all").addListener?window.matchMedia(Re):function y(Re){const Tt=new EventTarget;return Tt.matches="all"===Re||""===Re,Tt.media=Re,Tt.addListener=()=>{},Tt.removeListener=()=>{},Tt.addEventListener=()=>{},Tt.dispatchEvent=()=>!1,Tt.onchange=null,Tt}(Re)}(Qe,(0,e.NF)(this._platformId))}}return Re.\u0275fac=function(Qe){return new(Qe||Re)(t.LFG(t.R0b),t.LFG(t.Lbi),t.LFG(e.K0))},Re.\u0275prov=t.Yz7({token:Re,factory:Re.\u0275fac,providedIn:"root"}),Re})();const u={},L=[{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}],m="(orientation: portrait) and (max-width: 599.98px)",n="(orientation: landscape) and (max-width: 959.98px)",_="(orientation: portrait) and (min-width: 600px) and (max-width: 839.98px)",B="(orientation: landscape) and (min-width: 960px) and (max-width: 1279.98px)",V="(orientation: portrait) and (min-width: 840px)",X="(orientation: landscape) and (min-width: 1280px)",Le={HANDSET:`${m}, ${n}`,TABLET:`${_} , ${B}`,WEB:`${V}, ${X} `,HANDSET_PORTRAIT:`${m}`,TABLET_PORTRAIT:`${_} `,WEB_PORTRAIT:`${V}`,HANDSET_LANDSCAPE:`${n}`,TABLET_LANDSCAPE:`${B}`,WEB_LANDSCAPE:`${X}`},$e=[{alias:"handset",priority:2e3,mediaQuery:Le.HANDSET},{alias:"handset.landscape",priority:2e3,mediaQuery:Le.HANDSET_LANDSCAPE},{alias:"handset.portrait",priority:2e3,mediaQuery:Le.HANDSET_PORTRAIT},{alias:"tablet",priority:2100,mediaQuery:Le.TABLET},{alias:"tablet.landscape",priority:2100,mediaQuery:Le.TABLET_LANDSCAPE},{alias:"tablet.portrait",priority:2100,mediaQuery:Le.TABLET_PORTRAIT},{alias:"web",priority:2200,mediaQuery:Le.WEB,overlapping:!0},{alias:"web.landscape",priority:2200,mediaQuery:Le.WEB_LANDSCAPE,overlapping:!0},{alias:"web.portrait",priority:2200,mediaQuery:Le.WEB_PORTRAIT,overlapping:!0}],We=/(\.|-|_)/g;function Fe(Re){let Tt=Re.length>0?Re.charAt(0):"",Qe=Re.length>1?Re.slice(1):"";return Tt.toUpperCase()+Qe}const ve=new t.OlP("Token (@angular/flex-layout) Breakpoints",{providedIn:"root",factory:()=>{const Re=(0,t.f3M)(ee),Tt=(0,t.f3M)(W),Qe=[].concat.apply([],(Re||[]).map(Ht=>Array.isArray(Ht)?Ht:[Ht]));return function ce(Re,Tt=[]){const Qe={};return Re.forEach(Ye=>{Qe[Ye.alias]=Ye}),Tt.forEach(Ye=>{Qe[Ye.alias]?(0,h.kt)(Qe[Ye.alias],Ye):Qe[Ye.alias]=Ye}),function ye(Re){return Re.forEach(Tt=>{Tt.suffix||(Tt.suffix=function De(Re){return Re.replace(We,"|").split("|").map(Fe).join("")}(Tt.alias),Tt.overlapping=!!Tt.overlapping)}),Re}(Object.keys(Qe).map(Ye=>Qe[Ye]))}((Tt.disableDefaultBps?[]:L).concat(Tt.addOrientationBps?$e:[]),Qe)}});let oe=(()=>{class Re{constructor(Qe){this.findByMap=new Map,this.items=[...Qe].sort(i)}findByAlias(Qe){return Qe?this.findWithPredicate(Qe,Ye=>Ye.alias===Qe):null}findByQuery(Qe){return this.findWithPredicate(Qe,Ye=>Ye.mediaQuery===Qe)}get overlappings(){return this.items.filter(Qe=>Qe.overlapping)}get aliases(){return this.items.map(Qe=>Qe.alias)}get suffixes(){return this.items.map(Qe=>Qe?.suffix??"")}findWithPredicate(Qe,Ye){let Ht=this.findByMap.get(Qe);return Ht||(Ht=this.items.find(Ye)??null,this.findByMap.set(Qe,Ht)),Ht??null}}return Re.\u0275fac=function(Qe){return new(Qe||Re)(t.LFG(ve))},Re.\u0275prov=t.Yz7({token:Re,factory:Re.\u0275fac,providedIn:"root"}),Re})();const je="print",Ae={alias:je,mediaQuery:je,priority:1e3};let he=(()=>{class Re{constructor(Qe,Ye,Ht){this.breakpoints=Qe,this.layoutConfig=Ye,this._document=Ht,this.registeredBeforeAfterPrintHooks=!1,this.isPrintingBeforeAfterEvent=!1,this.beforePrintEventListeners=[],this.afterPrintEventListeners=[],this.formerActivations=null,this.isPrinting=!1,this.queue=new Ce,this.deactivations=[]}withPrintQuery(Qe){return[...Qe,je]}isPrintEvent(Qe){return Qe.mediaQuery.startsWith(je)}get printAlias(){return[...this.layoutConfig.printWithBreakpoints??[]]}get printBreakPoints(){return this.printAlias.map(Qe=>this.breakpoints.findByAlias(Qe)).filter(Qe=>null!==Qe)}getEventBreakpoints({mediaQuery:Qe}){const Ye=this.breakpoints.findByQuery(Qe);return(Ye?[...this.printBreakPoints,Ye]:this.printBreakPoints).sort(A)}updateEvent(Qe){let Ye=this.breakpoints.findByQuery(Qe.mediaQuery);return this.isPrintEvent(Qe)&&(Ye=this.getEventBreakpoints(Qe)[0],Qe.mediaQuery=Ye?.mediaQuery??""),ie(Qe,Ye)}registerBeforeAfterPrintHooks(Qe){if(!this._document.defaultView||this.registeredBeforeAfterPrintHooks)return;this.registeredBeforeAfterPrintHooks=!0;const Ye=()=>{this.isPrinting||(this.isPrintingBeforeAfterEvent=!0,this.startPrinting(Qe,this.getEventBreakpoints(new R(!0,je))),Qe.updateStyles())},Ht=()=>{this.isPrintingBeforeAfterEvent=!1,this.isPrinting&&(this.stopPrinting(Qe),Qe.updateStyles())};this._document.defaultView.addEventListener("beforeprint",Ye),this._document.defaultView.addEventListener("afterprint",Ht),this.beforePrintEventListeners.push(Ye),this.afterPrintEventListeners.push(Ht)}interceptEvents(Qe){return Ye=>{this.isPrintEvent(Ye)?Ye.matches&&!this.isPrinting?(this.startPrinting(Qe,this.getEventBreakpoints(Ye)),Qe.updateStyles()):!Ye.matches&&this.isPrinting&&!this.isPrintingBeforeAfterEvent&&(this.stopPrinting(Qe),Qe.updateStyles()):this.collectActivations(Qe,Ye)}}blockPropagation(){return Qe=>!(this.isPrinting||this.isPrintEvent(Qe))}startPrinting(Qe,Ye){this.isPrinting=!0,this.formerActivations=Qe.activatedBreakpoints,Qe.activatedBreakpoints=this.queue.addPrintBreakpoints(Ye)}stopPrinting(Qe){Qe.activatedBreakpoints=this.deactivations,this.deactivations=[],this.formerActivations=null,this.queue.clear(),this.isPrinting=!1}collectActivations(Qe,Ye){if(!this.isPrinting||this.isPrintingBeforeAfterEvent){if(!this.isPrintingBeforeAfterEvent)return void(this.deactivations=[]);if(!Ye.matches){const Ht=this.breakpoints.findByQuery(Ye.mediaQuery);if(Ht){const Mt=this.formerActivations&&this.formerActivations.includes(Ht),kt=!this.formerActivations&&Qe.activatedBreakpoints.includes(Ht);(Mt||kt)&&(this.deactivations.push(Ht),this.deactivations.sort(A))}}}}ngOnDestroy(){this._document.defaultView&&(this.beforePrintEventListeners.forEach(Qe=>this._document.defaultView.removeEventListener("beforeprint",Qe)),this.afterPrintEventListeners.forEach(Qe=>this._document.defaultView.removeEventListener("afterprint",Qe)))}}return Re.\u0275fac=function(Qe){return new(Qe||Re)(t.LFG(oe),t.LFG(W),t.LFG(e.K0))},Re.\u0275prov=t.Yz7({token:Re,factory:Re.\u0275fac,providedIn:"root"}),Re})();class Ce{constructor(){this.printBreakpoints=[]}addPrintBreakpoints(Tt){return Tt.push(Ae),Tt.sort(A),Tt.forEach(Qe=>this.addBreakpoint(Qe)),this.printBreakpoints}addBreakpoint(Tt){Tt&&void 0===this.printBreakpoints.find(Ye=>Ye.mediaQuery===Tt.mediaQuery)&&(this.printBreakpoints=function te(Re){return Re?.mediaQuery.startsWith(je)??!1}(Tt)?[Tt,...this.printBreakpoints]:[...this.printBreakpoints,Tt])}clear(){this.printBreakpoints=[]}}let Ue=(()=>{class Re{constructor(Qe,Ye,Ht){this.matchMedia=Qe,this.breakpoints=Ye,this.hook=Ht,this._useFallbacks=!0,this._activatedBreakpoints=[],this.elementMap=new Map,this.elementKeyMap=new WeakMap,this.watcherMap=new WeakMap,this.updateMap=new WeakMap,this.clearMap=new WeakMap,this.subject=new C.x,this.observeActivations()}get activatedAlias(){return this.activatedBreakpoints[0]?.alias??""}set activatedBreakpoints(Qe){this._activatedBreakpoints=[...Qe]}get activatedBreakpoints(){return[...this._activatedBreakpoints]}set useFallbacks(Qe){this._useFallbacks=Qe}onMediaChange(Qe){const Ye=this.findByQuery(Qe.mediaQuery);if(Ye){Qe=ie(Qe,Ye);const Ht=this.activatedBreakpoints.indexOf(Ye);Qe.matches&&-1===Ht?(this._activatedBreakpoints.push(Ye),this._activatedBreakpoints.sort(A),this.updateStyles()):!Qe.matches&&-1!==Ht&&(this._activatedBreakpoints.splice(Ht,1),this._activatedBreakpoints.sort(A),this.updateStyles())}}init(Qe,Ye,Ht,Mt,kt=[]){Be(this.updateMap,Qe,Ye,Ht),Be(this.clearMap,Qe,Ye,Mt),this.buildElementKeyMap(Qe,Ye),this.watchExtraTriggers(Qe,Ye,kt)}getValue(Qe,Ye,Ht){const Mt=this.elementMap.get(Qe);if(Mt){const kt=void 0!==Ht?Mt.get(Ht):this.getActivatedValues(Mt,Ye);if(kt)return kt.get(Ye)}}hasValue(Qe,Ye){const Ht=this.elementMap.get(Qe);if(Ht){const Mt=this.getActivatedValues(Ht,Ye);if(Mt)return void 0!==Mt.get(Ye)||!1}return!1}setValue(Qe,Ye,Ht,Mt){let kt=this.elementMap.get(Qe);if(kt){const we=(kt.get(Mt)??new Map).set(Ye,Ht);kt.set(Mt,we),this.elementMap.set(Qe,kt)}else kt=(new Map).set(Mt,(new Map).set(Ye,Ht)),this.elementMap.set(Qe,kt);const _t=this.getValue(Qe,Ye);void 0!==_t&&this.updateElement(Qe,Ye,_t)}trackValue(Qe,Ye){return this.subject.asObservable().pipe((0,P.h)(Ht=>Ht.element===Qe&&Ht.key===Ye))}updateStyles(){this.elementMap.forEach((Qe,Ye)=>{const Ht=new Set(this.elementKeyMap.get(Ye));let Mt=this.getActivatedValues(Qe);Mt&&Mt.forEach((kt,_t)=>{this.updateElement(Ye,_t,kt),Ht.delete(_t)}),Ht.forEach(kt=>{if(Mt=this.getActivatedValues(Qe,kt),Mt){const _t=Mt.get(kt);this.updateElement(Ye,kt,_t)}else this.clearElement(Ye,kt)})})}clearElement(Qe,Ye){const Ht=this.clearMap.get(Qe);if(Ht){const Mt=Ht.get(Ye);Mt&&(Mt(),this.subject.next({element:Qe,key:Ye,value:""}))}}updateElement(Qe,Ye,Ht){const Mt=this.updateMap.get(Qe);if(Mt){const kt=Mt.get(Ye);kt&&(kt(Ht),this.subject.next({element:Qe,key:Ye,value:Ht}))}}releaseElement(Qe){const Ye=this.watcherMap.get(Qe);Ye&&(Ye.forEach(Mt=>Mt.unsubscribe()),this.watcherMap.delete(Qe));const Ht=this.elementMap.get(Qe);Ht&&(Ht.forEach((Mt,kt)=>Ht.delete(kt)),this.elementMap.delete(Qe))}triggerUpdate(Qe,Ye){const Ht=this.elementMap.get(Qe);if(Ht){const Mt=this.getActivatedValues(Ht,Ye);Mt&&(Ye?this.updateElement(Qe,Ye,Mt.get(Ye)):Mt.forEach((kt,_t)=>this.updateElement(Qe,_t,kt)))}}buildElementKeyMap(Qe,Ye){let Ht=this.elementKeyMap.get(Qe);Ht||(Ht=new Set,this.elementKeyMap.set(Qe,Ht)),Ht.add(Ye)}watchExtraTriggers(Qe,Ye,Ht){if(Ht&&Ht.length){let Mt=this.watcherMap.get(Qe);if(Mt||(Mt=new Map,this.watcherMap.set(Qe,Mt)),!Mt.get(Ye)){const _t=(0,s.T)(...Ht).subscribe(()=>{const we=this.getValue(Qe,Ye);this.updateElement(Qe,Ye,we)});Mt.set(Ye,_t)}}}findByQuery(Qe){return this.breakpoints.findByQuery(Qe)}getActivatedValues(Qe,Ye){for(let Mt=0;Mt<this.activatedBreakpoints.length;Mt++){const _t=Qe.get(this.activatedBreakpoints[Mt].alias);if(_t&&(void 0===Ye||_t.has(Ye)&&null!=_t.get(Ye)))return _t}if(!this._useFallbacks)return;const Ht=Qe.get("");return void 0===Ye||Ht&&Ht.has(Ye)?Ht:void 0}observeActivations(){const Qe=this.breakpoints.items.map(Ye=>Ye.mediaQuery);this.hook.registerBeforeAfterPrintHooks(this),this.matchMedia.observe(this.hook.withPrintQuery(Qe)).pipe((0,d.b)(this.hook.interceptEvents(this)),(0,P.h)(this.hook.blockPropagation())).subscribe(this.onMediaChange.bind(this))}}return Re.\u0275fac=function(Qe){return new(Qe||Re)(t.LFG(a),t.LFG(oe),t.LFG(he))},Re.\u0275prov=t.Yz7({token:Re,factory:Re.\u0275fac,providedIn:"root"}),Re})();function Be(Re,Tt,Qe,Ye){if(void 0!==Ye){const Ht=Re.get(Tt)??new Map;Ht.set(Qe,Ye),Re.set(Tt,Ht)}}let ae=(()=>{class Re{constructor(Qe,Ye,Ht,Mt){this.elementRef=Qe,this.styleBuilder=Ye,this.styler=Ht,this.marshal=Mt,this.DIRECTIVE_KEY="",this.inputs=[],this.mru={},this.destroySubject=new C.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(Qe){this.marshal.setValue(this.nativeElement,this.DIRECTIVE_KEY,Qe,this.marshal.activatedAlias)}ngOnChanges(Qe){Object.keys(Qe).forEach(Ye=>{if(-1!==this.inputs.indexOf(Ye)){const Ht=Ye.split(".").slice(1).join(".");this.setValue(Qe[Ye].currentValue,Ht)}})}ngOnDestroy(){this.destroySubject.next(),this.destroySubject.complete(),this.marshal.releaseElement(this.nativeElement)}init(Qe=[]){this.marshal.init(this.elementRef.nativeElement,this.DIRECTIVE_KEY,this.updateWithValue.bind(this),this.clearStyles.bind(this),Qe)}addStyles(Qe,Ye){const Ht=this.styleBuilder,Mt=Ht.shouldCache;let kt=this.styleCache.get(Qe);(!kt||!Mt)&&(kt=Ht.buildStyles(Qe,Ye),Mt&&this.styleCache.set(Qe,kt)),this.mru={...kt},this.applyStyleToElement(kt),Ht.sideEffect(Qe,kt,Ye)}clearStyles(){Object.keys(this.mru).forEach(Qe=>{this.mru[Qe]=""}),this.applyStyleToElement(this.mru),this.mru={},this.currentValue=void 0}triggerUpdate(){this.marshal.triggerUpdate(this.nativeElement,this.DIRECTIVE_KEY)}getFlexFlowDirection(Qe,Ye=!1){if(Qe){const[Ht,Mt]=this.styler.getFlowDirection(Qe);if(!Mt&&Ye){const kt=(0,h.Ar)(Ht);this.styler.applyStyleToElements(kt,[Qe])}return Ht.trim()}return"row"}hasWrap(Qe){return this.styler.hasWrap(Qe)}applyStyleToElement(Qe,Ye,Ht=this.nativeElement){this.styler.applyStyleToElement(Ht,Qe,Ye)}setValue(Qe,Ye){this.marshal.setValue(this.nativeElement,this.DIRECTIVE_KEY,Qe,Ye)}updateWithValue(Qe){this.currentValue!==Qe&&(this.addStyles(Qe),this.currentValue=Qe)}}return Re.\u0275fac=function(Qe){return new(Qe||Re)(t.Y36(t.SBq),t.Y36(ue),t.Y36(le),t.Y36(Ue))},Re.\u0275dir=t.lG2({type:Re,features:[t.TTD]}),Re})();class ft extends EventTarget{constructor(Tt){super(),this._mediaQuery=Tt,this._isActive=!1,this._listeners=[],this.onchange=null}get matches(){return this._isActive}get media(){return this._mediaQuery}destroy(){this.deactivate(),this._listeners=[]}activate(){return this._isActive||(this._isActive=!0,this._listeners.forEach(Tt=>{Tt.call(this,{matches:this.matches,media:this.media})})),this}deactivate(){return this._isActive&&(this._isActive=!1,this._listeners.forEach(Tt=>{Tt.call(this,{matches:this.matches,media:this.media})})),this}addListener(Tt){-1===this._listeners.indexOf(Tt)&&this._listeners.push(Tt),this._isActive&&Tt.call(this,{matches:this.matches,media:this.media})}removeListener(Tt){}dispatchEvent(Tt){return!1}}function ke(Re,Tt="1",Qe="1"){let Ye=[Tt,Qe,Re],Ht=Re.indexOf("calc");if(Ht>0){Ye[2]=Ke(Re.substring(Ht).trim());let Mt=Re.substr(0,Ht).trim().split(" ");2==Mt.length&&(Ye[0]=Mt[0],Ye[1]=Mt[1])}else if(0==Ht)Ye[2]=Ke(Re.trim());else{let Mt=Re.split(" ");Ye=3===Mt.length?Mt:[Tt,Qe,Re]}return Ye}function Ke(Re){return Re.replace(/[\s]/g,"").replace(/[\/\*\+\-]/g," $& ")}function Y(Re,Tt){if(void 0===Tt)return Re;const Qe=Ye=>{const Ht=+Ye.slice(0,-"x".length);return Re.endsWith("x")&&!isNaN(Ht)?`${Ht*Tt.value}${Tt.unit}`:Re};return Re.includes(" ")?Re.split(" ").map(Qe).join(" "):Qe(Re)}},5829:(Ve,q,p)=>{"use strict";p.d(q,{Zl:()=>T,aT:()=>n,oO:()=>U});var t=p(4650),e=p(2233),b=p(6895),C=(p(1281),p(2722),p(1481));let E=(()=>{class _ extends e.iR{constructor(V,X,Le,$e,We,Fe,De){super(V,null,X,Le),this.ngClassInstance=De,this.DIRECTIVE_KEY="ngClass",this.ngClassInstance||(this.ngClassInstance=new b.mk($e,We,V,Fe)),this.init(),this.setValue("","")}set klass(V){this.ngClassInstance.klass=V,this.setValue(V,"")}updateWithValue(V){this.ngClassInstance.ngClass=V,this.ngClassInstance.ngDoCheck()}ngDoCheck(){this.ngClassInstance.ngDoCheck()}}return _.\u0275fac=function(V){return new(V||_)(t.Y36(t.SBq),t.Y36(e.RK),t.Y36(e.yB),t.Y36(t.ZZ4),t.Y36(t.aQg),t.Y36(t.Qsj),t.Y36(b.mk,10))},_.\u0275dir=t.lG2({type:_,inputs:{klass:["class","klass"]},features:[t.qOj]}),_})();const R=["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 E{constructor(){super(...arguments),this.inputs=R}}return _.\u0275fac=function(){let B;return function(X){return(B||(B=t.n5z(_)))(X||_)}}(),_.\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 ne{constructor(B,V,X=!0){this.key=B,this.value=V,this.key=X?B.replace(/['"]/g,"").trim():B.trim(),this.value=X?V.replace(/['"]/g,"").trim():V.trim(),this.value=this.value.replace(/;/,"")}}function de(_){let B=typeof _;return"object"===B?_.constructor===Array?"array":_.constructor===Set?"set":"object":B}function i(_){const[B,...V]=_.split(":");return new ne(B,V.join(":"))}function a(_,B){return B.key&&(_[B.key]=B.value),_}let u=(()=>{class _ extends e.iR{constructor(V,X,Le,$e,We,Fe,De,ye,ce){super(V,null,X,Le),this.sanitizer=$e,this.ngStyleInstance=De,this.DIRECTIVE_KEY="ngStyle",this.ngStyleInstance||(this.ngStyleInstance=new b.PC(V,We,Fe)),this.init();const ve=this.nativeElement.getAttribute("style")??"";this.fallbackStyles=this.buildStyleMap(ve),this.isServer=ye&&(0,b.PM)(ce)}updateWithValue(V){const X=this.buildStyleMap(V);this.ngStyleInstance.ngStyle={...this.fallbackStyles,...X},this.isServer&&this.applyStyleToElement(X),this.ngStyleInstance.ngDoCheck()}clearStyles(){this.ngStyleInstance.ngStyle=this.fallbackStyles,this.ngStyleInstance.ngDoCheck()}buildStyleMap(V){const X=Le=>this.sanitizer.sanitize(t.q3G.STYLE,Le)??"";if(V)switch(de(V)){case"string":return L(function $(_,B=";"){return String(_).trim().split(B).map(V=>V.trim()).filter(V=>""!==V)}(V),X);case"array":return L(V,X);default:return function A(_,B){let V=[];return"set"===de(_)?_.forEach(X=>V.push(X)):Object.keys(_).forEach(X=>{V.push(`${X}:${_[X]}`)}),function me(_,B){return _.map(i).filter(X=>!!X).map(X=>(B&&(X.value=B(X.value)),X)).reduce(a,{})}(V,B)}(V,X)}return{}}ngDoCheck(){this.ngStyleInstance.ngDoCheck()}}return _.\u0275fac=function(V){return new(V||_)(t.Y36(t.SBq),t.Y36(e.RK),t.Y36(e.yB),t.Y36(C.H7),t.Y36(t.aQg),t.Y36(t.Qsj),t.Y36(b.PC,10),t.Y36(e.wY),t.Y36(t.Lbi))},_.\u0275dir=t.lG2({type:_,features:[t.qOj]}),_})();const l=["ngStyle","ngStyle.xs","ngStyle.sm","ngStyle.md","ngStyle.lg","ngStyle.xl","ngStyle.lt-sm","ngStyle.lt-md","ngStyle.lt-lg","ngStyle.lt-xl","ngStyle.gt-xs","ngStyle.gt-sm","ngStyle.gt-md","ngStyle.gt-lg"];let T=(()=>{class _ extends u{constructor(){super(...arguments),this.inputs=l}}return _.\u0275fac=function(){let B;return function(X){return(B||(B=t.n5z(_)))(X||_)}}(),_.\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 L(_,B){return _.map(i).filter(X=>!!X).map(X=>(B&&(X.value=B(X.value)),X)).reduce(a,{})}let n=(()=>{class _{}return _.\u0275fac=function(V){return new(V||_)},_.\u0275mod=t.oAB({type:_}),_.\u0275inj=t.cJS({imports:[e.IR]}),_})()},1576:(Ve,q,p)=>{"use strict";p.d(q,{Wh:()=>ke,ae:()=>kt,xw:()=>w,yH:()=>y});var t=p(4650),e=p(445),b=p(2233),I=p(5863),C=(p(7579),p(2722));let h=(()=>{class _t extends b.QI{buildStyles(J,{display:be}){const He=(0,I.Ar)(J);return{...He,display:"none"===be?be:He.display}}}return _t.\u0275fac=function(){let we;return function(be){return(we||(we=t.n5z(_t)))(be||_t)}}(),_t.\u0275prov=t.Yz7({token:_t,factory:_t.\u0275fac,providedIn:"root"}),_t})();const P=["fxLayout","fxLayout.xs","fxLayout.sm","fxLayout.md","fxLayout.lg","fxLayout.xl","fxLayout.lt-sm","fxLayout.lt-md","fxLayout.lt-lg","fxLayout.lt-xl","fxLayout.gt-xs","fxLayout.gt-sm","fxLayout.gt-md","fxLayout.gt-lg"];let S=(()=>{class _t extends b.iR{constructor(J,be,He,at,ii){super(J,He,be,at),this._config=ii,this.DIRECTIVE_KEY="layout",this.init()}updateWithValue(J){const He=this._config.detectLayoutDisplay?this.styler.lookupStyle(this.nativeElement,"display"):"";this.styleCache=O.get(He)??new Map,O.set(He,this.styleCache),this.currentValue!==J&&(this.addStyles(J,{display:He}),this.currentValue=J)}}return _t.\u0275fac=function(J){return new(J||_t)(t.Y36(t.SBq),t.Y36(b.RK),t.Y36(h),t.Y36(b.yB),t.Y36(b.WU))},_t.\u0275dir=t.lG2({type:_t,features:[t.qOj]}),_t})(),w=(()=>{class _t extends S{constructor(){super(...arguments),this.inputs=P}}return _t.\u0275fac=function(){let we;return function(be){return(we||(we=t.n5z(_t)))(be||_t)}}(),_t.\u0275dir=t.lG2({type:_t,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]}),_t})();const O=new Map;let i=(()=>{class _t extends b.QI{constructor(J){super(),this.layoutConfig=J}buildStyles(J,be){let[He,at,...ii]=J.split(" "),Gt=ii.join(" ");const ni=be.direction.indexOf("column")>-1?"column":"row",ut=(0,I.tj)(ni)?"max-width":"max-height",tt=(0,I.tj)(ni)?"min-width":"min-height",vt=String(Gt).indexOf("calc")>-1,ti=vt||"auto"===Gt,Ut=String(Gt).indexOf("%")>-1&&!vt,ht=String(Gt).indexOf("px")>-1||String(Gt).indexOf("rem")>-1||String(Gt).indexOf("em")>-1||String(Gt).indexOf("vw")>-1||String(Gt).indexOf("vh")>-1;let Rt=vt||ht;He="0"==He?0:He,at="0"==at?0:at;const Oe=!He&&!at;let et={};const it={"max-width":null,"max-height":null,"min-width":null,"min-height":null};switch(Gt||""){case"":Gt="row"===ni?"0%":!1!==this.layoutConfig.useColumnBasisZero?"0.000000001px":"auto";break;case"initial":case"nogrow":He=0,Gt="auto";break;case"grow":Gt="100%";break;case"noshrink":at=0,Gt="auto";break;case"auto":break;case"none":He=0,at=0,Gt="auto";break;default:!Rt&&!Ut&&!isNaN(Gt)&&(Gt+="%"),"0%"===Gt&&(Rt=!0),"0px"===Gt&&(Gt="0%"),et=(0,I.kt)(it,vt?{"flex-grow":He,"flex-shrink":at,"flex-basis":Rt?Gt:"100%"}:{flex:`${He} ${at} ${Rt?Gt:"100%"}`})}return et.flex||et["flex-grow"]||(et=(0,I.kt)(it,vt?{"flex-grow":He,"flex-shrink":at,"flex-basis":Gt}:{flex:`${He} ${at} ${Gt}`})),"0%"!==Gt&&"0px"!==Gt&&"0.000000001px"!==Gt&&"auto"!==Gt&&(et[tt]=Oe||Rt&&He?Gt:null,et[ut]=Oe||!ti&&at?Gt:null),et[tt]||et[ut]?be.hasWrap&&(et[vt?"flex-basis":"flex"]=et[ut]?vt?et[ut]:`${He} ${at} ${et[ut]}`:vt?et[tt]:`${He} ${at} ${et[tt]}`):et=(0,I.kt)(it,vt?{"flex-grow":He,"flex-shrink":at,"flex-basis":Gt}:{flex:`${He} ${at} ${Gt}`}),(0,I.kt)(et,{"box-sizing":"border-box"})}}return _t.\u0275fac=function(J){return new(J||_t)(t.LFG(b.WU))},_t.\u0275prov=t.Yz7({token:_t,factory:_t.\u0275fac,providedIn:"root"}),_t})();const a=["fxFlex","fxFlex.xs","fxFlex.sm","fxFlex.md","fxFlex.lg","fxFlex.xl","fxFlex.lt-sm","fxFlex.lt-md","fxFlex.lt-lg","fxFlex.lt-xl","fxFlex.gt-xs","fxFlex.gt-sm","fxFlex.gt-md","fxFlex.gt-lg"];let l=(()=>{class _t extends b.iR{constructor(J,be,He,at,ii){super(J,at,be,ii),this.layoutConfig=He,this.marshal=ii,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(J){this.flexShrink=J||"1",this.triggerReflow()}get grow(){return this.flexGrow}set grow(J){this.flexGrow=J||"1",this.triggerReflow()}ngOnInit(){this.parentElement&&(this.marshal.trackValue(this.parentElement,"layout").pipe((0,C.R)(this.destroySubject)).subscribe(this.onLayoutChange.bind(this)),this.marshal.trackValue(this.nativeElement,"layout-align").pipe((0,C.R)(this.destroySubject)).subscribe(this.triggerReflow.bind(this)))}onLayoutChange(J){const He=J.value.split(" ");this.direction=He[0],this.wrap=void 0!==He[1]&&"wrap"===He[1],this.triggerUpdate()}updateWithValue(J){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 He=this.direction,at=He.startsWith("row"),ii=this.wrap;at&&ii?this.styleCache=m:at&&!ii?this.styleCache=T:!at&&ii?this.styleCache=n:!at&&!ii&&(this.styleCache=L);const Gt=String(J).replace(";",""),ni=(0,b.Ot)(Gt,this.flexGrow,this.flexShrink);this.addStyles(ni.join(" "),{direction:He,hasWrap:ii})}triggerReflow(){const J=this.activatedValue;if(void 0!==J){const be=(0,b.Ot)(J+"",this.flexGrow,this.flexShrink);this.marshal.updateElement(this.nativeElement,this.DIRECTIVE_KEY,be.join(" "))}}}return _t.\u0275fac=function(J){return new(J||_t)(t.Y36(t.SBq),t.Y36(b.RK),t.Y36(b.WU),t.Y36(i),t.Y36(b.yB))},_t.\u0275dir=t.lG2({type:_t,inputs:{shrink:["fxShrink","shrink"],grow:["fxGrow","grow"]},features:[t.qOj]}),_t})(),y=(()=>{class _t extends l{constructor(){super(...arguments),this.inputs=a}}return _t.\u0275fac=function(){let we;return function(be){return(we||(we=t.n5z(_t)))(be||_t)}}(),_t.\u0275dir=t.lG2({type:_t,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]}),_t})();const T=new Map,L=new Map,m=new Map,n=new Map;let Et=(()=>{class _t extends b.QI{buildStyles(J,be){const He={},[at,ii]=J.split(" ");switch(at){case"center":He["justify-content"]="center";break;case"space-around":He["justify-content"]="space-around";break;case"space-between":He["justify-content"]="space-between";break;case"space-evenly":He["justify-content"]="space-evenly";break;case"end":case"flex-end":He["justify-content"]="flex-end";break;default:He["justify-content"]="flex-start"}switch(ii){case"start":case"flex-start":He["align-items"]=He["align-content"]="flex-start";break;case"center":He["align-items"]=He["align-content"]="center";break;case"end":case"flex-end":He["align-items"]=He["align-content"]="flex-end";break;case"space-between":He["align-content"]="space-between",He["align-items"]="stretch";break;case"space-around":He["align-content"]="space-around",He["align-items"]="stretch";break;case"baseline":He["align-content"]="stretch",He["align-items"]="baseline";break;default:He["align-items"]=He["align-content"]="stretch"}return(0,I.kt)(He,{display:be.inline?"inline-flex":"flex","flex-direction":be.layout,"box-sizing":"border-box","max-width":"stretch"===ii?(0,I.tj)(be.layout)?null:"100%":null,"max-height":"stretch"===ii&&(0,I.tj)(be.layout)?"100%":null})}}return _t.\u0275fac=function(){let we;return function(be){return(we||(we=t.n5z(_t)))(be||_t)}}(),_t.\u0275prov=t.Yz7({token:_t,factory:_t.\u0275fac,providedIn:"root"}),_t})();const pt=["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 wt=(()=>{class _t extends b.iR{constructor(J,be,He,at){super(J,He,be,at),this.DIRECTIVE_KEY="layout-align",this.layout="row",this.inline=!1,this.init(),this.marshal.trackValue(this.nativeElement,"layout").pipe((0,C.R)(this.destroySubject)).subscribe(this.onLayoutChange.bind(this))}updateWithValue(J){const be=this.layout||"row",He=this.inline;"row"===be&&He?this.styleCache=Tt:"row"!==be||He?"row-reverse"===be&&He?this.styleCache=Ye:"row-reverse"!==be||He?"column"===be&&He?this.styleCache=Qe:"column"!==be||He?"column-reverse"===be&&He?this.styleCache=Ht:"column-reverse"===be&&!He&&(this.styleCache=Re):this.styleCache=xt:this.styleCache=Y:this.styleCache=Ke,this.addStyles(J,{layout:be,inline:He})}onLayoutChange(J){const be=J.value.split(" ");this.layout=be[0],this.inline=J.value.includes("inline"),I.iQ.find(He=>He===this.layout)||(this.layout="row"),this.triggerUpdate()}}return _t.\u0275fac=function(J){return new(J||_t)(t.Y36(t.SBq),t.Y36(b.RK),t.Y36(Et),t.Y36(b.yB))},_t.\u0275dir=t.lG2({type:_t,features:[t.qOj]}),_t})(),ke=(()=>{class _t extends wt{constructor(){super(...arguments),this.inputs=pt}}return _t.\u0275fac=function(){let we;return function(be){return(we||(we=t.n5z(_t)))(be||_t)}}(),_t.\u0275dir=t.lG2({type:_t,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]}),_t})();const Ke=new Map,xt=new Map,Y=new Map,Re=new Map,Tt=new Map,Qe=new Map,Ye=new Map,Ht=new Map;let kt=(()=>{class _t{}return _t.\u0275fac=function(J){return new(J||_t)},_t.\u0275mod=t.oAB({type:_t}),_t.\u0275inj=t.cJS({imports:[b.IR,e.vT]}),_t})()},4006:(Ve,q,p)=>{"use strict";p.d(q,{Cf:()=>K,F:()=>zt,Fd:()=>Ir,Fj:()=>R,JJ:()=>te,JL:()=>Ue,JU:()=>P,On:()=>gi,Q7:()=>Jr,QS:()=>la,UX:()=>ar,Zs:()=>Xr,_Y:()=>Oi,a5:()=>je,kI:()=>ue,oH:()=>Sr,p4:()=>on,qQ:()=>gr,qu:()=>tn,sg:()=>jn,u:()=>wa,u5:()=>bn,wV:()=>fn});var t=p(4650),e=p(6895),b=p(457),I=p(4128),s=p(4004);let C=(()=>{class rt{constructor(Ge,Pt){this._renderer=Ge,this._elementRef=Pt,this.onChange=wi=>{},this.onTouched=()=>{}}setProperty(Ge,Pt){this._renderer.setProperty(this._elementRef.nativeElement,Ge,Pt)}registerOnTouched(Ge){this.onTouched=Ge}registerOnChange(Ge){this.onChange=Ge}setDisabledState(Ge){this.setProperty("disabled",Ge)}}return rt.\u0275fac=function(Ge){return new(Ge||rt)(t.Y36(t.Qsj),t.Y36(t.SBq))},rt.\u0275dir=t.lG2({type:rt}),rt})(),h=(()=>{class rt extends C{}return rt.\u0275fac=function(){let Xe;return function(Pt){return(Xe||(Xe=t.n5z(rt)))(Pt||rt)}}(),rt.\u0275dir=t.lG2({type:rt,features:[t.qOj]}),rt})();const P=new t.OlP("NgValueAccessor"),w={provide:P,useExisting:(0,t.Gpc)(()=>R),multi:!0},E=new t.OlP("CompositionEventMode");let R=(()=>{class rt extends C{constructor(Ge,Pt,wi){super(Ge,Pt),this._compositionMode=wi,this._composing=!1,null==this._compositionMode&&(this._compositionMode=!function O(){const rt=(0,e.q)()?(0,e.q)().getUserAgent():"";return/android (\d+)/.test(rt.toLowerCase())}())}writeValue(Ge){this.setProperty("value",Ge??"")}_handleInput(Ge){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(Ge)}_compositionStart(){this._composing=!0}_compositionEnd(Ge){this._composing=!1,this._compositionMode&&this.onChange(Ge)}}return rt.\u0275fac=function(Ge){return new(Ge||rt)(t.Y36(t.Qsj),t.Y36(t.SBq),t.Y36(E,8))},rt.\u0275dir=t.lG2({type:rt,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(Ge,Pt){1&Ge&&t.NdJ("input",function(ln){return Pt._handleInput(ln.target.value)})("blur",function(){return Pt.onTouched()})("compositionstart",function(){return Pt._compositionStart()})("compositionend",function(ln){return Pt._compositionEnd(ln.target.value)})},features:[t._Bn([w]),t.qOj]}),rt})();function U(rt){return null==rt||("string"==typeof rt||Array.isArray(rt))&&0===rt.length}function W(rt){return null!=rt&&"number"==typeof rt.length}const K=new t.OlP("NgValidators"),ee=new t.OlP("NgAsyncValidators"),ie=/^(?=.{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 ue{static min(Xe){return le(Xe)}static max(Xe){return ne(Xe)}static required(Xe){return de(Xe)}static requiredTrue(Xe){return $(Xe)}static email(Xe){return function me(rt){return U(rt.value)||ie.test(rt.value)?null:{email:!0}}(Xe)}static minLength(Xe){return function A(rt){return Xe=>U(Xe.value)||!W(Xe.value)?null:Xe.value.length<rt?{minlength:{requiredLength:rt,actualLength:Xe.value.length}}:null}(Xe)}static maxLength(Xe){return function i(rt){return Xe=>W(Xe.value)&&Xe.value.length>rt?{maxlength:{requiredLength:rt,actualLength:Xe.value.length}}:null}(Xe)}static pattern(Xe){return function a(rt){if(!rt)return u;let Xe,Ge;return"string"==typeof rt?(Ge="","^"!==rt.charAt(0)&&(Ge+="^"),Ge+=rt,"$"!==rt.charAt(rt.length-1)&&(Ge+="$"),Xe=new RegExp(Ge)):(Ge=rt.toString(),Xe=rt),Pt=>{if(U(Pt.value))return null;const wi=Pt.value;return Xe.test(wi)?null:{pattern:{requiredPattern:Ge,actualValue:wi}}}}(Xe)}static nullValidator(Xe){return null}static compose(Xe){return _(Xe)}static composeAsync(Xe){return V(Xe)}}function le(rt){return Xe=>{if(U(Xe.value)||U(rt))return null;const Ge=parseFloat(Xe.value);return!isNaN(Ge)&&Ge<rt?{min:{min:rt,actual:Xe.value}}:null}}function ne(rt){return Xe=>{if(U(Xe.value)||U(rt))return null;const Ge=parseFloat(Xe.value);return!isNaN(Ge)&&Ge>rt?{max:{max:rt,actual:Xe.value}}:null}}function de(rt){return U(rt.value)?{required:!0}:null}function $(rt){return!0===rt.value?null:{required:!0}}function u(rt){return null}function l(rt){return null!=rt}function y(rt){return(0,t.QGY)(rt)?(0,b.D)(rt):rt}function T(rt){let Xe={};return rt.forEach(Ge=>{Xe=null!=Ge?{...Xe,...Ge}:Xe}),0===Object.keys(Xe).length?null:Xe}function L(rt,Xe){return Xe.map(Ge=>Ge(rt))}function n(rt){return rt.map(Xe=>function m(rt){return!rt.validate}(Xe)?Xe:Ge=>Xe.validate(Ge))}function _(rt){if(!rt)return null;const Xe=rt.filter(l);return 0==Xe.length?null:function(Ge){return T(L(Ge,Xe))}}function B(rt){return null!=rt?_(n(rt)):null}function V(rt){if(!rt)return null;const Xe=rt.filter(l);return 0==Xe.length?null:function(Ge){const Pt=L(Ge,Xe).map(y);return(0,I.D)(Pt).pipe((0,s.U)(T))}}function X(rt){return null!=rt?V(n(rt)):null}function Le(rt,Xe){return null===rt?[Xe]:Array.isArray(rt)?[...rt,Xe]:[rt,Xe]}function $e(rt){return rt._rawValidators}function We(rt){return rt._rawAsyncValidators}function Fe(rt){return rt?Array.isArray(rt)?rt:[rt]:[]}function De(rt,Xe){return Array.isArray(rt)?rt.includes(Xe):rt===Xe}function ye(rt,Xe){const Ge=Fe(Xe);return Fe(rt).forEach(wi=>{De(Ge,wi)||Ge.push(wi)}),Ge}function ce(rt,Xe){return Fe(Xe).filter(Ge=>!De(rt,Ge))}class ve{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(Xe){this._rawValidators=Xe||[],this._composedValidatorFn=B(this._rawValidators)}_setAsyncValidators(Xe){this._rawAsyncValidators=Xe||[],this._composedAsyncValidatorFn=X(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_registerOnDestroy(Xe){this._onDestroyCallbacks.push(Xe)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(Xe=>Xe()),this._onDestroyCallbacks=[]}reset(Xe){this.control&&this.control.reset(Xe)}hasError(Xe,Ge){return!!this.control&&this.control.hasError(Xe,Ge)}getError(Xe,Ge){return this.control?this.control.getError(Xe,Ge):null}}class oe extends ve{get formDirective(){return null}get path(){return null}}class je extends ve{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null}}class Ae{constructor(Xe){this._cd=Xe}get isTouched(){return!!this._cd?.control?.touched}get isUntouched(){return!!this._cd?.control?.untouched}get isPristine(){return!!this._cd?.control?.pristine}get isDirty(){return!!this._cd?.control?.dirty}get isValid(){return!!this._cd?.control?.valid}get isInvalid(){return!!this._cd?.control?.invalid}get isPending(){return!!this._cd?.control?.pending}get isSubmitted(){return!!this._cd?.submitted}}let te=(()=>{class rt extends Ae{constructor(Ge){super(Ge)}}return rt.\u0275fac=function(Ge){return new(Ge||rt)(t.Y36(je,2))},rt.\u0275dir=t.lG2({type:rt,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(Ge,Pt){2&Ge&&t.ekj("ng-untouched",Pt.isUntouched)("ng-touched",Pt.isTouched)("ng-pristine",Pt.isPristine)("ng-dirty",Pt.isDirty)("ng-valid",Pt.isValid)("ng-invalid",Pt.isInvalid)("ng-pending",Pt.isPending)},features:[t.qOj]}),rt})(),Ue=(()=>{class rt extends Ae{constructor(Ge){super(Ge)}}return rt.\u0275fac=function(Ge){return new(Ge||rt)(t.Y36(oe,10))},rt.\u0275dir=t.lG2({type:rt,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:16,hostBindings:function(Ge,Pt){2&Ge&&t.ekj("ng-untouched",Pt.isUntouched)("ng-touched",Pt.isTouched)("ng-pristine",Pt.isPristine)("ng-dirty",Pt.isDirty)("ng-valid",Pt.isValid)("ng-invalid",Pt.isInvalid)("ng-pending",Pt.isPending)("ng-submitted",Pt.isSubmitted)},features:[t.qOj]}),rt})();const Ht="VALID",Mt="INVALID",kt="PENDING",_t="DISABLED";function we(rt){return(at(rt)?rt.validators:rt)||null}function be(rt,Xe){return(at(Xe)?Xe.asyncValidators:rt)||null}function at(rt){return null!=rt&&!Array.isArray(rt)&&"object"==typeof rt}function ii(rt,Xe,Ge){const Pt=rt.controls;if(!(Xe?Object.keys(Pt):Pt).length)throw new t.vHH(1e3,"");if(!Pt[Ge])throw new t.vHH(1001,"")}function Gt(rt,Xe,Ge){rt._forEachChild((Pt,wi)=>{if(void 0===Ge[wi])throw new t.vHH(1002,"")})}class ni{constructor(Xe,Ge){this._pendingDirty=!1,this._hasOwnPendingAsyncValidator=!1,this._pendingTouched=!1,this._onCollectionChange=()=>{},this._parent=null,this.pristine=!0,this.touched=!1,this._onDisabledChange=[],this._assignValidators(Xe),this._assignAsyncValidators(Ge)}get validator(){return this._composedValidatorFn}set validator(Xe){this._rawValidators=this._composedValidatorFn=Xe}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(Xe){this._rawAsyncValidators=this._composedAsyncValidatorFn=Xe}get parent(){return this._parent}get valid(){return this.status===Ht}get invalid(){return this.status===Mt}get pending(){return this.status==kt}get disabled(){return this.status===_t}get enabled(){return this.status!==_t}get dirty(){return!this.pristine}get untouched(){return!this.touched}get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(Xe){this._assignValidators(Xe)}setAsyncValidators(Xe){this._assignAsyncValidators(Xe)}addValidators(Xe){this.setValidators(ye(Xe,this._rawValidators))}addAsyncValidators(Xe){this.setAsyncValidators(ye(Xe,this._rawAsyncValidators))}removeValidators(Xe){this.setValidators(ce(Xe,this._rawValidators))}removeAsyncValidators(Xe){this.setAsyncValidators(ce(Xe,this._rawAsyncValidators))}hasValidator(Xe){return De(this._rawValidators,Xe)}hasAsyncValidator(Xe){return De(this._rawAsyncValidators,Xe)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(Xe={}){this.touched=!0,this._parent&&!Xe.onlySelf&&this._parent.markAsTouched(Xe)}markAllAsTouched(){this.markAsTouched({onlySelf:!0}),this._forEachChild(Xe=>Xe.markAllAsTouched())}markAsUntouched(Xe={}){this.touched=!1,this._pendingTouched=!1,this._forEachChild(Ge=>{Ge.markAsUntouched({onlySelf:!0})}),this._parent&&!Xe.onlySelf&&this._parent._updateTouched(Xe)}markAsDirty(Xe={}){this.pristine=!1,this._parent&&!Xe.onlySelf&&this._parent.markAsDirty(Xe)}markAsPristine(Xe={}){this.pristine=!0,this._pendingDirty=!1,this._forEachChild(Ge=>{Ge.markAsPristine({onlySelf:!0})}),this._parent&&!Xe.onlySelf&&this._parent._updatePristine(Xe)}markAsPending(Xe={}){this.status=kt,!1!==Xe.emitEvent&&this.statusChanges.emit(this.status),this._parent&&!Xe.onlySelf&&this._parent.markAsPending(Xe)}disable(Xe={}){const Ge=this._parentMarkedDirty(Xe.onlySelf);this.status=_t,this.errors=null,this._forEachChild(Pt=>{Pt.disable({...Xe,onlySelf:!0})}),this._updateValue(),!1!==Xe.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors({...Xe,skipPristineCheck:Ge}),this._onDisabledChange.forEach(Pt=>Pt(!0))}enable(Xe={}){const Ge=this._parentMarkedDirty(Xe.onlySelf);this.status=Ht,this._forEachChild(Pt=>{Pt.enable({...Xe,onlySelf:!0})}),this.updateValueAndValidity({onlySelf:!0,emitEvent:Xe.emitEvent}),this._updateAncestors({...Xe,skipPristineCheck:Ge}),this._onDisabledChange.forEach(Pt=>Pt(!1))}_updateAncestors(Xe){this._parent&&!Xe.onlySelf&&(this._parent.updateValueAndValidity(Xe),Xe.skipPristineCheck||this._parent._updatePristine(),this._parent._updateTouched())}setParent(Xe){this._parent=Xe}getRawValue(){return this.value}updateValueAndValidity(Xe={}){this._setInitialStatus(),this._updateValue(),this.enabled&&(this._cancelExistingSubscription(),this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===Ht||this.status===kt)&&this._runAsyncValidator(Xe.emitEvent)),!1!==Xe.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!Xe.onlySelf&&this._parent.updateValueAndValidity(Xe)}_updateTreeValidity(Xe={emitEvent:!0}){this._forEachChild(Ge=>Ge._updateTreeValidity(Xe)),this.updateValueAndValidity({onlySelf:!0,emitEvent:Xe.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?_t:Ht}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(Xe){if(this.asyncValidator){this.status=kt,this._hasOwnPendingAsyncValidator=!0;const Ge=y(this.asyncValidator(this));this._asyncValidationSubscription=Ge.subscribe(Pt=>{this._hasOwnPendingAsyncValidator=!1,this.setErrors(Pt,{emitEvent:Xe})})}}_cancelExistingSubscription(){this._asyncValidationSubscription&&(this._asyncValidationSubscription.unsubscribe(),this._hasOwnPendingAsyncValidator=!1)}setErrors(Xe,Ge={}){this.errors=Xe,this._updateControlsErrors(!1!==Ge.emitEvent)}get(Xe){let Ge=Xe;return null==Ge||(Array.isArray(Ge)||(Ge=Ge.split(".")),0===Ge.length)?null:Ge.reduce((Pt,wi)=>Pt&&Pt._find(wi),this)}getError(Xe,Ge){const Pt=Ge?this.get(Ge):this;return Pt&&Pt.errors?Pt.errors[Xe]:null}hasError(Xe,Ge){return!!this.getError(Xe,Ge)}get root(){let Xe=this;for(;Xe._parent;)Xe=Xe._parent;return Xe}_updateControlsErrors(Xe){this.status=this._calculateStatus(),Xe&&this.statusChanges.emit(this.status),this._parent&&this._parent._updateControlsErrors(Xe)}_initObservables(){this.valueChanges=new t.vpe,this.statusChanges=new t.vpe}_calculateStatus(){return this._allControlsDisabled()?_t:this.errors?Mt:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(kt)?kt:this._anyControlsHaveStatus(Mt)?Mt:Ht}_anyControlsHaveStatus(Xe){return this._anyControls(Ge=>Ge.status===Xe)}_anyControlsDirty(){return this._anyControls(Xe=>Xe.dirty)}_anyControlsTouched(){return this._anyControls(Xe=>Xe.touched)}_updatePristine(Xe={}){this.pristine=!this._anyControlsDirty(),this._parent&&!Xe.onlySelf&&this._parent._updatePristine(Xe)}_updateTouched(Xe={}){this.touched=this._anyControlsTouched(),this._parent&&!Xe.onlySelf&&this._parent._updateTouched(Xe)}_registerOnCollectionChange(Xe){this._onCollectionChange=Xe}_setUpdateStrategy(Xe){at(Xe)&&null!=Xe.updateOn&&(this._updateOn=Xe.updateOn)}_parentMarkedDirty(Xe){return!Xe&&!(!this._parent||!this._parent.dirty)&&!this._parent._anyControlsDirty()}_find(Xe){return null}_assignValidators(Xe){this._rawValidators=Array.isArray(Xe)?Xe.slice():Xe,this._composedValidatorFn=function J(rt){return Array.isArray(rt)?B(rt):rt||null}(this._rawValidators)}_assignAsyncValidators(Xe){this._rawAsyncValidators=Array.isArray(Xe)?Xe.slice():Xe,this._composedAsyncValidatorFn=function He(rt){return Array.isArray(rt)?X(rt):rt||null}(this._rawAsyncValidators)}}class ut extends ni{constructor(Xe,Ge,Pt){super(we(Ge),be(Pt,Ge)),this.controls=Xe,this._initObservables(),this._setUpdateStrategy(Ge),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}registerControl(Xe,Ge){return this.controls[Xe]?this.controls[Xe]:(this.controls[Xe]=Ge,Ge.setParent(this),Ge._registerOnCollectionChange(this._onCollectionChange),Ge)}addControl(Xe,Ge,Pt={}){this.registerControl(Xe,Ge),this.updateValueAndValidity({emitEvent:Pt.emitEvent}),this._onCollectionChange()}removeControl(Xe,Ge={}){this.controls[Xe]&&this.controls[Xe]._registerOnCollectionChange(()=>{}),delete this.controls[Xe],this.updateValueAndValidity({emitEvent:Ge.emitEvent}),this._onCollectionChange()}setControl(Xe,Ge,Pt={}){this.controls[Xe]&&this.controls[Xe]._registerOnCollectionChange(()=>{}),delete this.controls[Xe],Ge&&this.registerControl(Xe,Ge),this.updateValueAndValidity({emitEvent:Pt.emitEvent}),this._onCollectionChange()}contains(Xe){return this.controls.hasOwnProperty(Xe)&&this.controls[Xe].enabled}setValue(Xe,Ge={}){Gt(this,0,Xe),Object.keys(Xe).forEach(Pt=>{ii(this,!0,Pt),this.controls[Pt].setValue(Xe[Pt],{onlySelf:!0,emitEvent:Ge.emitEvent})}),this.updateValueAndValidity(Ge)}patchValue(Xe,Ge={}){null!=Xe&&(Object.keys(Xe).forEach(Pt=>{const wi=this.controls[Pt];wi&&wi.patchValue(Xe[Pt],{onlySelf:!0,emitEvent:Ge.emitEvent})}),this.updateValueAndValidity(Ge))}reset(Xe={},Ge={}){this._forEachChild((Pt,wi)=>{Pt.reset(Xe[wi],{onlySelf:!0,emitEvent:Ge.emitEvent})}),this._updatePristine(Ge),this._updateTouched(Ge),this.updateValueAndValidity(Ge)}getRawValue(){return this._reduceChildren({},(Xe,Ge,Pt)=>(Xe[Pt]=Ge.getRawValue(),Xe))}_syncPendingControls(){let Xe=this._reduceChildren(!1,(Ge,Pt)=>!!Pt._syncPendingControls()||Ge);return Xe&&this.updateValueAndValidity({onlySelf:!0}),Xe}_forEachChild(Xe){Object.keys(this.controls).forEach(Ge=>{const Pt=this.controls[Ge];Pt&&Xe(Pt,Ge)})}_setUpControls(){this._forEachChild(Xe=>{Xe.setParent(this),Xe._registerOnCollectionChange(this._onCollectionChange)})}_updateValue(){this.value=this._reduceValue()}_anyControls(Xe){for(const[Ge,Pt]of Object.entries(this.controls))if(this.contains(Ge)&&Xe(Pt))return!0;return!1}_reduceValue(){return this._reduceChildren({},(Ge,Pt,wi)=>((Pt.enabled||this.disabled)&&(Ge[wi]=Pt.value),Ge))}_reduceChildren(Xe,Ge){let Pt=Xe;return this._forEachChild((wi,ln)=>{Pt=Ge(Pt,wi,ln)}),Pt}_allControlsDisabled(){for(const Xe of Object.keys(this.controls))if(this.controls[Xe].enabled)return!1;return Object.keys(this.controls).length>0||this.disabled}_find(Xe){return this.controls.hasOwnProperty(Xe)?this.controls[Xe]:null}}class ti extends ut{}const ht=new t.OlP("CallSetDisabledState",{providedIn:"root",factory:()=>Rt}),Rt="always";function Oe(rt,Xe){return[...Xe.path,rt]}function et(rt,Xe,Ge=Rt){pi(rt,Xe),Xe.valueAccessor.writeValue(rt.value),(rt.disabled||"always"===Ge)&&Xe.valueAccessor.setDisabledState?.(rt.disabled),function xi(rt,Xe){Xe.valueAccessor.registerOnChange(Ge=>{rt._pendingValue=Ge,rt._pendingChange=!0,rt._pendingDirty=!0,"change"===rt.updateOn&&qe(rt,Xe)})}(rt,Xe),function St(rt,Xe){const Ge=(Pt,wi)=>{Xe.valueAccessor.writeValue(Pt),wi&&Xe.viewToModelUpdate(Pt)};rt.registerOnChange(Ge),Xe._registerOnDestroy(()=>{rt._unregisterOnChange(Ge)})}(rt,Xe),function Fi(rt,Xe){Xe.valueAccessor.registerOnTouched(()=>{rt._pendingTouched=!0,"blur"===rt.updateOn&&rt._pendingChange&&qe(rt,Xe),"submit"!==rt.updateOn&&rt.markAsTouched()})}(rt,Xe),function Dt(rt,Xe){if(Xe.valueAccessor.setDisabledState){const Ge=Pt=>{Xe.valueAccessor.setDisabledState(Pt)};rt.registerOnDisabledChange(Ge),Xe._registerOnDestroy(()=>{rt._unregisterOnDisabledChange(Ge)})}}(rt,Xe)}function it(rt,Xe,Ge=!0){const Pt=()=>{};Xe.valueAccessor&&(Xe.valueAccessor.registerOnChange(Pt),Xe.valueAccessor.registerOnTouched(Pt)),Li(rt,Xe),rt&&(Xe._invokeOnDestroyCallbacks(),rt._registerOnCollectionChange(()=>{}))}function ct(rt,Xe){rt.forEach(Ge=>{Ge.registerOnValidatorChange&&Ge.registerOnValidatorChange(Xe)})}function pi(rt,Xe){const Ge=$e(rt);null!==Xe.validator?rt.setValidators(Le(Ge,Xe.validator)):"function"==typeof Ge&&rt.setValidators([Ge]);const Pt=We(rt);null!==Xe.asyncValidator?rt.setAsyncValidators(Le(Pt,Xe.asyncValidator)):"function"==typeof Pt&&rt.setAsyncValidators([Pt]);const wi=()=>rt.updateValueAndValidity();ct(Xe._rawValidators,wi),ct(Xe._rawAsyncValidators,wi)}function Li(rt,Xe){let Ge=!1;if(null!==rt){if(null!==Xe.validator){const wi=$e(rt);if(Array.isArray(wi)&&wi.length>0){const ln=wi.filter(ha=>ha!==Xe.validator);ln.length!==wi.length&&(Ge=!0,rt.setValidators(ln))}}if(null!==Xe.asyncValidator){const wi=We(rt);if(Array.isArray(wi)&&wi.length>0){const ln=wi.filter(ha=>ha!==Xe.asyncValidator);ln.length!==wi.length&&(Ge=!0,rt.setAsyncValidators(ln))}}}const Pt=()=>{};return ct(Xe._rawValidators,Pt),ct(Xe._rawAsyncValidators,Pt),Ge}function qe(rt,Xe){rt._pendingDirty&&rt.markAsDirty(),rt.setValue(rt._pendingValue,{emitModelToViewChange:!1}),Xe.viewToModelUpdate(rt._pendingValue),rt._pendingChange=!1}function xe(rt,Xe){pi(rt,Xe)}function Yi(rt,Xe){if(!rt.hasOwnProperty("model"))return!1;const Ge=rt.model;return!!Ge.isFirstChange()||!Object.is(Xe,Ge.currentValue)}function Wt(rt,Xe){rt._syncPendingControls(),Xe.forEach(Ge=>{const Pt=Ge.control;"submit"===Pt.updateOn&&Pt._pendingChange&&(Ge.viewToModelUpdate(Pt._pendingValue),Pt._pendingChange=!1)})}function Jt(rt,Xe){if(!Xe)return null;let Ge,Pt,wi;return Array.isArray(Xe),Xe.forEach(ln=>{ln.constructor===R?Ge=ln:function Ji(rt){return Object.getPrototypeOf(rt.constructor)===h}(ln)?Pt=ln:wi=ln}),wi||Pt||Ge||null}const It={provide:oe,useExisting:(0,t.Gpc)(()=>zt)},Bt=(()=>Promise.resolve())();let zt=(()=>{class rt extends oe{constructor(Ge,Pt,wi){super(),this.callSetDisabledState=wi,this.submitted=!1,this._directives=new Set,this.ngSubmit=new t.vpe,this.form=new ut({},B(Ge),X(Pt))}ngAfterViewInit(){this._setUpdateStrategy()}get formDirective(){return this}get control(){return this.form}get path(){return[]}get controls(){return this.form.controls}addControl(Ge){Bt.then(()=>{const Pt=this._findContainer(Ge.path);Ge.control=Pt.registerControl(Ge.name,Ge.control),et(Ge.control,Ge,this.callSetDisabledState),Ge.control.updateValueAndValidity({emitEvent:!1}),this._directives.add(Ge)})}getControl(Ge){return this.form.get(Ge.path)}removeControl(Ge){Bt.then(()=>{const Pt=this._findContainer(Ge.path);Pt&&Pt.removeControl(Ge.name),this._directives.delete(Ge)})}addFormGroup(Ge){Bt.then(()=>{const Pt=this._findContainer(Ge.path),wi=new ut({});xe(wi,Ge),Pt.registerControl(Ge.name,wi),wi.updateValueAndValidity({emitEvent:!1})})}removeFormGroup(Ge){Bt.then(()=>{const Pt=this._findContainer(Ge.path);Pt&&Pt.removeControl(Ge.name)})}getFormGroup(Ge){return this.form.get(Ge.path)}updateModel(Ge,Pt){Bt.then(()=>{this.form.get(Ge.path).setValue(Pt)})}setValue(Ge){this.control.setValue(Ge)}onSubmit(Ge){return this.submitted=!0,Wt(this.form,this._directives),this.ngSubmit.emit(Ge),"dialog"===Ge?.target?.method}onReset(){this.resetForm()}resetForm(Ge){this.form.reset(Ge),this.submitted=!1}_setUpdateStrategy(){this.options&&null!=this.options.updateOn&&(this.form._updateOn=this.options.updateOn)}_findContainer(Ge){return Ge.pop(),Ge.length?this.form.get(Ge):this.form}}return rt.\u0275fac=function(Ge){return new(Ge||rt)(t.Y36(K,10),t.Y36(ee,10),t.Y36(ht,8))},rt.\u0275dir=t.lG2({type:rt,selectors:[["form",3,"ngNoForm","",3,"formGroup",""],["ng-form"],["","ngForm",""]],hostBindings:function(Ge,Pt){1&Ge&&t.NdJ("submit",function(ln){return Pt.onSubmit(ln)})("reset",function(){return Pt.onReset()})},inputs:{options:["ngFormOptions","options"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[t._Bn([It]),t.qOj]}),rt})();function oi(rt,Xe){const Ge=rt.indexOf(Xe);Ge>-1&&rt.splice(Ge,1)}function Yt(rt){return"object"==typeof rt&&null!==rt&&2===Object.keys(rt).length&&"value"in rt&&"disabled"in rt}const Ni=class extends ni{constructor(Xe=null,Ge,Pt){super(we(Ge),be(Pt,Ge)),this.defaultValue=null,this._onChange=[],this._pendingChange=!1,this._applyFormState(Xe),this._setUpdateStrategy(Ge),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator}),at(Ge)&&(Ge.nonNullable||Ge.initialValueIsDefault)&&(this.defaultValue=Yt(Xe)?Xe.value:Xe)}setValue(Xe,Ge={}){this.value=this._pendingValue=Xe,this._onChange.length&&!1!==Ge.emitModelToViewChange&&this._onChange.forEach(Pt=>Pt(this.value,!1!==Ge.emitViewToModelChange)),this.updateValueAndValidity(Ge)}patchValue(Xe,Ge={}){this.setValue(Xe,Ge)}reset(Xe=this.defaultValue,Ge={}){this._applyFormState(Xe),this.markAsPristine(Ge),this.markAsUntouched(Ge),this.setValue(this.value,Ge),this._pendingChange=!1}_updateValue(){}_anyControls(Xe){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(Xe){this._onChange.push(Xe)}_unregisterOnChange(Xe){oi(this._onChange,Xe)}registerOnDisabledChange(Xe){this._onDisabledChange.push(Xe)}_unregisterOnDisabledChange(Xe){oi(this._onDisabledChange,Xe)}_forEachChild(Xe){}_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(Xe){Yt(Xe)?(this.value=this._pendingValue=Xe.value,Xe.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=Xe}},on=Ni,ai={provide:je,useExisting:(0,t.Gpc)(()=>gi)},si=(()=>Promise.resolve())();let gi=(()=>{class rt extends je{constructor(Ge,Pt,wi,ln,ha,Si){super(),this._changeDetectorRef=ha,this.callSetDisabledState=Si,this.control=new Ni,this._registered=!1,this.update=new t.vpe,this._parent=Ge,this._setValidators(Pt),this._setAsyncValidators(wi),this.valueAccessor=Jt(0,ln)}ngOnChanges(Ge){if(this._checkForErrors(),!this._registered||"name"in Ge){if(this._registered&&(this._checkName(),this.formDirective)){const Pt=Ge.name.previousValue;this.formDirective.removeControl({name:Pt,path:this._getPath(Pt)})}this._setUpControl()}"isDisabled"in Ge&&this._updateDisabled(Ge),Yi(Ge,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(Ge){this.viewModel=Ge,this.update.emit(Ge)}_setUpControl(){this._setUpdateStrategy(),this._isStandalone()?this._setUpStandalone():this.formDirective.addControl(this),this._registered=!0}_setUpdateStrategy(){this.options&&null!=this.options.updateOn&&(this.control._updateOn=this.options.updateOn)}_isStandalone(){return!this._parent||!(!this.options||!this.options.standalone)}_setUpStandalone(){et(this.control,this,this.callSetDisabledState),this.control.updateValueAndValidity({emitEvent:!1})}_checkForErrors(){this._isStandalone()||this._checkParentType(),this._checkName()}_checkParentType(){}_checkName(){this.options&&this.options.name&&(this.name=this.options.name),this._isStandalone()}_updateValue(Ge){si.then(()=>{this.control.setValue(Ge,{emitViewToModelChange:!1}),this._changeDetectorRef?.markForCheck()})}_updateDisabled(Ge){const Pt=Ge.isDisabled.currentValue,wi=0!==Pt&&(0,t.D6c)(Pt);si.then(()=>{wi&&!this.control.disabled?this.control.disable():!wi&&this.control.disabled&&this.control.enable(),this._changeDetectorRef?.markForCheck()})}_getPath(Ge){return this._parent?Oe(Ge,this._parent):[Ge]}}return rt.\u0275fac=function(Ge){return new(Ge||rt)(t.Y36(oe,9),t.Y36(K,10),t.Y36(ee,10),t.Y36(P,10),t.Y36(t.sBO,8),t.Y36(ht,8))},rt.\u0275dir=t.lG2({type:rt,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([ai]),t.qOj,t.TTD]}),rt})(),Oi=(()=>{class rt{}return rt.\u0275fac=function(Ge){return new(Ge||rt)},rt.\u0275dir=t.lG2({type:rt,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""]}),rt})();const Vi={provide:P,useExisting:(0,t.Gpc)(()=>fn),multi:!0};let fn=(()=>{class rt extends h{writeValue(Ge){this.setProperty("value",Ge??"")}registerOnChange(Ge){this.onChange=Pt=>{Ge(""==Pt?null:parseFloat(Pt))}}}return rt.\u0275fac=function(){let Xe;return function(Pt){return(Xe||(Xe=t.n5z(rt)))(Pt||rt)}}(),rt.\u0275dir=t.lG2({type:rt,selectors:[["input","type","number","formControlName",""],["input","type","number","formControl",""],["input","type","number","ngModel",""]],hostBindings:function(Ge,Pt){1&Ge&&t.NdJ("input",function(ln){return Pt.onChange(ln.target.value)})("blur",function(){return Pt.onTouched()})},features:[t._Bn([Vi]),t.qOj]}),rt})(),ga=(()=>{class rt{}return rt.\u0275fac=function(Ge){return new(Ge||rt)},rt.\u0275mod=t.oAB({type:rt}),rt.\u0275inj=t.cJS({}),rt})();const Xn=new t.OlP("NgModelWithFormControlWarning"),Dr={provide:je,useExisting:(0,t.Gpc)(()=>Sr)};let Sr=(()=>{class rt extends je{set isDisabled(Ge){}constructor(Ge,Pt,wi,ln,ha){super(),this._ngModelWarningConfig=ln,this.callSetDisabledState=ha,this.update=new t.vpe,this._ngModelWarningSent=!1,this._setValidators(Ge),this._setAsyncValidators(Pt),this.valueAccessor=Jt(0,wi)}ngOnChanges(Ge){if(this._isControlChanged(Ge)){const Pt=Ge.form.previousValue;Pt&&it(Pt,this,!1),et(this.form,this,this.callSetDisabledState),this.form.updateValueAndValidity({emitEvent:!1})}Yi(Ge,this.viewModel)&&(this.form.setValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.form&&it(this.form,this,!1)}get path(){return[]}get control(){return this.form}viewToModelUpdate(Ge){this.viewModel=Ge,this.update.emit(Ge)}_isControlChanged(Ge){return Ge.hasOwnProperty("form")}}return rt._ngModelWarningSentOnce=!1,rt.\u0275fac=function(Ge){return new(Ge||rt)(t.Y36(K,10),t.Y36(ee,10),t.Y36(P,10),t.Y36(Xn,8),t.Y36(ht,8))},rt.\u0275dir=t.lG2({type:rt,selectors:[["","formControl",""]],inputs:{form:["formControl","form"],isDisabled:["disabled","isDisabled"],model:["ngModel","model"]},outputs:{update:"ngModelChange"},exportAs:["ngForm"],features:[t._Bn([Dr]),t.qOj,t.TTD]}),rt})();const tr={provide:oe,useExisting:(0,t.Gpc)(()=>jn)};let jn=(()=>{class rt extends oe{constructor(Ge,Pt,wi){super(),this.callSetDisabledState=wi,this.submitted=!1,this._onCollectionChange=()=>this._updateDomValue(),this.directives=[],this.form=null,this.ngSubmit=new t.vpe,this._setValidators(Ge),this._setAsyncValidators(Pt)}ngOnChanges(Ge){this._checkFormPresent(),Ge.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations(),this._oldForm=this.form)}ngOnDestroy(){this.form&&(Li(this.form,this),this.form._onCollectionChange===this._onCollectionChange&&this.form._registerOnCollectionChange(()=>{}))}get formDirective(){return this}get control(){return this.form}get path(){return[]}addControl(Ge){const Pt=this.form.get(Ge.path);return et(Pt,Ge,this.callSetDisabledState),Pt.updateValueAndValidity({emitEvent:!1}),this.directives.push(Ge),Pt}getControl(Ge){return this.form.get(Ge.path)}removeControl(Ge){it(Ge.control||null,Ge,!1),function fe(rt,Xe){const Ge=rt.indexOf(Xe);Ge>-1&&rt.splice(Ge,1)}(this.directives,Ge)}addFormGroup(Ge){this._setUpFormContainer(Ge)}removeFormGroup(Ge){this._cleanUpFormContainer(Ge)}getFormGroup(Ge){return this.form.get(Ge.path)}addFormArray(Ge){this._setUpFormContainer(Ge)}removeFormArray(Ge){this._cleanUpFormContainer(Ge)}getFormArray(Ge){return this.form.get(Ge.path)}updateModel(Ge,Pt){this.form.get(Ge.path).setValue(Pt)}onSubmit(Ge){return this.submitted=!0,Wt(this.form,this.directives),this.ngSubmit.emit(Ge),"dialog"===Ge?.target?.method}onReset(){this.resetForm()}resetForm(Ge){this.form.reset(Ge),this.submitted=!1}_updateDomValue(){this.directives.forEach(Ge=>{const Pt=Ge.control,wi=this.form.get(Ge.path);Pt!==wi&&(it(Pt||null,Ge),(rt=>rt instanceof Ni)(wi)&&(et(wi,Ge,this.callSetDisabledState),Ge.control=wi))}),this.form._updateTreeValidity({emitEvent:!1})}_setUpFormContainer(Ge){const Pt=this.form.get(Ge.path);xe(Pt,Ge),Pt.updateValueAndValidity({emitEvent:!1})}_cleanUpFormContainer(Ge){if(this.form){const Pt=this.form.get(Ge.path);Pt&&function Nt(rt,Xe){return Li(rt,Xe)}(Pt,Ge)&&Pt.updateValueAndValidity({emitEvent:!1})}}_updateRegistrations(){this.form._registerOnCollectionChange(this._onCollectionChange),this._oldForm&&this._oldForm._registerOnCollectionChange(()=>{})}_updateValidators(){pi(this.form,this),this._oldForm&&Li(this._oldForm,this)}_checkFormPresent(){}}return rt.\u0275fac=function(Ge){return new(Ge||rt)(t.Y36(K,10),t.Y36(ee,10),t.Y36(ht,8))},rt.\u0275dir=t.lG2({type:rt,selectors:[["","formGroup",""]],hostBindings:function(Ge,Pt){1&Ge&&t.NdJ("submit",function(ln){return Pt.onSubmit(ln)})("reset",function(){return Pt.onReset()})},inputs:{form:["formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[t._Bn([tr]),t.qOj,t.TTD]}),rt})();const wo={provide:je,useExisting:(0,t.Gpc)(()=>wa)};let wa=(()=>{class rt extends je{set isDisabled(Ge){}constructor(Ge,Pt,wi,ln,ha){super(),this._ngModelWarningConfig=ha,this._added=!1,this.update=new t.vpe,this._ngModelWarningSent=!1,this._parent=Ge,this._setValidators(Pt),this._setAsyncValidators(wi),this.valueAccessor=Jt(0,ln)}ngOnChanges(Ge){this._added||this._setUpControl(),Yi(Ge,this.viewModel)&&(this.viewModel=this.model,this.formDirective.updateModel(this,this.model))}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}viewToModelUpdate(Ge){this.viewModel=Ge,this.update.emit(Ge)}get path(){return Oe(null==this.name?this.name:this.name.toString(),this._parent)}get formDirective(){return this._parent?this._parent.formDirective:null}_checkParentType(){}_setUpControl(){this._checkParentType(),this.control=this.formDirective.addControl(this),this._added=!0}}return rt._ngModelWarningSentOnce=!1,rt.\u0275fac=function(Ge){return new(Ge||rt)(t.Y36(oe,13),t.Y36(K,10),t.Y36(ee,10),t.Y36(P,10),t.Y36(Xn,8))},rt.\u0275dir=t.lG2({type:rt,selectors:[["","formControlName",""]],inputs:{name:["formControlName","name"],isDisabled:["disabled","isDisabled"],model:["ngModel","model"]},outputs:{update:"ngModelChange"},features:[t._Bn([wo]),t.qOj,t.TTD]}),rt})();function pr(rt){return"number"==typeof rt?rt:parseFloat(rt)}let aa=(()=>{class rt{constructor(){this._validator=u}ngOnChanges(Ge){if(this.inputName in Ge){const Pt=this.normalizeInput(Ge[this.inputName].currentValue);this._enabled=this.enabled(Pt),this._validator=this._enabled?this.createValidator(Pt):u,this._onChange&&this._onChange()}}validate(Ge){return this._validator(Ge)}registerOnValidatorChange(Ge){this._onChange=Ge}enabled(Ge){return null!=Ge}}return rt.\u0275fac=function(Ge){return new(Ge||rt)},rt.\u0275dir=t.lG2({type:rt,features:[t.TTD]}),rt})();const Ya={provide:K,useExisting:(0,t.Gpc)(()=>Ir),multi:!0};let Ir=(()=>{class rt extends aa{constructor(){super(...arguments),this.inputName="max",this.normalizeInput=Ge=>pr(Ge),this.createValidator=Ge=>ne(Ge)}}return rt.\u0275fac=function(){let Xe;return function(Pt){return(Xe||(Xe=t.n5z(rt)))(Pt||rt)}}(),rt.\u0275dir=t.lG2({type:rt,selectors:[["input","type","number","max","","formControlName",""],["input","type","number","max","","formControl",""],["input","type","number","max","","ngModel",""]],hostVars:1,hostBindings:function(Ge,Pt){2&Ge&&t.uIk("max",Pt._enabled?Pt.max:null)},inputs:{max:"max"},features:[t._Bn([Ya]),t.qOj]}),rt})();const kr={provide:K,useExisting:(0,t.Gpc)(()=>gr),multi:!0};let gr=(()=>{class rt extends aa{constructor(){super(...arguments),this.inputName="min",this.normalizeInput=Ge=>pr(Ge),this.createValidator=Ge=>le(Ge)}}return rt.\u0275fac=function(){let Xe;return function(Pt){return(Xe||(Xe=t.n5z(rt)))(Pt||rt)}}(),rt.\u0275dir=t.lG2({type:rt,selectors:[["input","type","number","min","","formControlName",""],["input","type","number","min","","formControl",""],["input","type","number","min","","ngModel",""]],hostVars:1,hostBindings:function(Ge,Pt){2&Ge&&t.uIk("min",Pt._enabled?Pt.min:null)},inputs:{min:"min"},features:[t._Bn([kr]),t.qOj]}),rt})();const mo={provide:K,useExisting:(0,t.Gpc)(()=>Jr),multi:!0},Pa={provide:K,useExisting:(0,t.Gpc)(()=>Xr),multi:!0};let Jr=(()=>{class rt extends aa{constructor(){super(...arguments),this.inputName="required",this.normalizeInput=t.D6c,this.createValidator=Ge=>de}enabled(Ge){return Ge}}return rt.\u0275fac=function(){let Xe;return function(Pt){return(Xe||(Xe=t.n5z(rt)))(Pt||rt)}}(),rt.\u0275dir=t.lG2({type:rt,selectors:[["","required","","formControlName","",3,"type","checkbox"],["","required","","formControl","",3,"type","checkbox"],["","required","","ngModel","",3,"type","checkbox"]],hostVars:1,hostBindings:function(Ge,Pt){2&Ge&&t.uIk("required",Pt._enabled?"":null)},inputs:{required:"required"},features:[t._Bn([mo]),t.qOj]}),rt})(),Xr=(()=>{class rt extends Jr{constructor(){super(...arguments),this.createValidator=Ge=>$}}return rt.\u0275fac=function(){let Xe;return function(Pt){return(Xe||(Xe=t.n5z(rt)))(Pt||rt)}}(),rt.\u0275dir=t.lG2({type:rt,selectors:[["input","type","checkbox","required","","formControlName",""],["input","type","checkbox","required","","formControl",""],["input","type","checkbox","required","","ngModel",""]],hostVars:1,hostBindings:function(Ge,Pt){2&Ge&&t.uIk("required",Pt._enabled?"":null)},features:[t._Bn([Pa]),t.qOj]}),rt})(),Vt=(()=>{class rt{}return rt.\u0275fac=function(Ge){return new(Ge||rt)},rt.\u0275mod=t.oAB({type:rt}),rt.\u0275inj=t.cJS({imports:[ga]}),rt})();class di extends ni{constructor(Xe,Ge,Pt){super(we(Ge),be(Pt,Ge)),this.controls=Xe,this._initObservables(),this._setUpdateStrategy(Ge),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}at(Xe){return this.controls[this._adjustIndex(Xe)]}push(Xe,Ge={}){this.controls.push(Xe),this._registerControl(Xe),this.updateValueAndValidity({emitEvent:Ge.emitEvent}),this._onCollectionChange()}insert(Xe,Ge,Pt={}){this.controls.splice(Xe,0,Ge),this._registerControl(Ge),this.updateValueAndValidity({emitEvent:Pt.emitEvent})}removeAt(Xe,Ge={}){let Pt=this._adjustIndex(Xe);Pt<0&&(Pt=0),this.controls[Pt]&&this.controls[Pt]._registerOnCollectionChange(()=>{}),this.controls.splice(Pt,1),this.updateValueAndValidity({emitEvent:Ge.emitEvent})}setControl(Xe,Ge,Pt={}){let wi=this._adjustIndex(Xe);wi<0&&(wi=0),this.controls[wi]&&this.controls[wi]._registerOnCollectionChange(()=>{}),this.controls.splice(wi,1),Ge&&(this.controls.splice(wi,0,Ge),this._registerControl(Ge)),this.updateValueAndValidity({emitEvent:Pt.emitEvent}),this._onCollectionChange()}get length(){return this.controls.length}setValue(Xe,Ge={}){Gt(this,0,Xe),Xe.forEach((Pt,wi)=>{ii(this,!1,wi),this.at(wi).setValue(Pt,{onlySelf:!0,emitEvent:Ge.emitEvent})}),this.updateValueAndValidity(Ge)}patchValue(Xe,Ge={}){null!=Xe&&(Xe.forEach((Pt,wi)=>{this.at(wi)&&this.at(wi).patchValue(Pt,{onlySelf:!0,emitEvent:Ge.emitEvent})}),this.updateValueAndValidity(Ge))}reset(Xe=[],Ge={}){this._forEachChild((Pt,wi)=>{Pt.reset(Xe[wi],{onlySelf:!0,emitEvent:Ge.emitEvent})}),this._updatePristine(Ge),this._updateTouched(Ge),this.updateValueAndValidity(Ge)}getRawValue(){return this.controls.map(Xe=>Xe.getRawValue())}clear(Xe={}){this.controls.length<1||(this._forEachChild(Ge=>Ge._registerOnCollectionChange(()=>{})),this.controls.splice(0),this.updateValueAndValidity({emitEvent:Xe.emitEvent}))}_adjustIndex(Xe){return Xe<0?Xe+this.length:Xe}_syncPendingControls(){let Xe=this.controls.reduce((Ge,Pt)=>!!Pt._syncPendingControls()||Ge,!1);return Xe&&this.updateValueAndValidity({onlySelf:!0}),Xe}_forEachChild(Xe){this.controls.forEach((Ge,Pt)=>{Xe(Ge,Pt)})}_updateValue(){this.value=this.controls.filter(Xe=>Xe.enabled||this.disabled).map(Xe=>Xe.value)}_anyControls(Xe){return this.controls.some(Ge=>Ge.enabled&&Xe(Ge))}_setUpControls(){this._forEachChild(Xe=>this._registerControl(Xe))}_allControlsDisabled(){for(const Xe of this.controls)if(Xe.enabled)return!1;return this.controls.length>0||this.disabled}_registerControl(Xe){Xe.setParent(this),Xe._registerOnCollectionChange(this._onCollectionChange)}_find(Xe){return this.at(Xe)??null}}function Pi(rt){return!!rt&&(void 0!==rt.asyncValidators||void 0!==rt.validators||void 0!==rt.updateOn)}let tn=(()=>{class rt{constructor(){this.useNonNullable=!1}get nonNullable(){const Ge=new rt;return Ge.useNonNullable=!0,Ge}group(Ge,Pt=null){const wi=this._reduceControls(Ge);let ln={};return Pi(Pt)?ln=Pt:null!==Pt&&(ln.validators=Pt.validator,ln.asyncValidators=Pt.asyncValidator),new ut(wi,ln)}record(Ge,Pt=null){const wi=this._reduceControls(Ge);return new ti(wi,Pt)}control(Ge,Pt,wi){let ln={};return this.useNonNullable?(Pi(Pt)?ln=Pt:(ln.validators=Pt,ln.asyncValidators=wi),new Ni(Ge,{...ln,nonNullable:!0})):new Ni(Ge,Pt,wi)}array(Ge,Pt,wi){const ln=Ge.map(ha=>this._createControl(ha));return new di(ln,Pt,wi)}_reduceControls(Ge){const Pt={};return Object.keys(Ge).forEach(wi=>{Pt[wi]=this._createControl(Ge[wi])}),Pt}_createControl(Ge){return Ge instanceof Ni||Ge instanceof ni?Ge:Array.isArray(Ge)?this.control(Ge[0],Ge.length>1?Ge[1]:null,Ge.length>2?Ge[2]:null):this.control(Ge)}}return rt.\u0275fac=function(Ge){return new(Ge||rt)},rt.\u0275prov=t.Yz7({token:rt,factory:rt.\u0275fac,providedIn:"root"}),rt})(),la=(()=>{class rt extends tn{group(Ge,Pt=null){return super.group(Ge,Pt)}control(Ge,Pt,wi){return super.control(Ge,Pt,wi)}array(Ge,Pt,wi){return super.array(Ge,Pt,wi)}}return rt.\u0275fac=function(){let Xe;return function(Pt){return(Xe||(Xe=t.n5z(rt)))(Pt||rt)}}(),rt.\u0275prov=t.Yz7({token:rt,factory:rt.\u0275fac,providedIn:"root"}),rt})(),bn=(()=>{class rt{static withConfig(Ge){return{ngModule:rt,providers:[{provide:ht,useValue:Ge.callSetDisabledState??Rt}]}}}return rt.\u0275fac=function(Ge){return new(Ge||rt)},rt.\u0275mod=t.oAB({type:rt}),rt.\u0275inj=t.cJS({imports:[Vt]}),rt})(),ar=(()=>{class rt{static withConfig(Ge){return{ngModule:rt,providers:[{provide:Xn,useValue:Ge.warnOnNgModelWithFormControl??"always"},{provide:ht,useValue:Ge.callSetDisabledState??Rt}]}}}return rt.\u0275fac=function(Ge){return new(Ge||rt)},rt.\u0275mod=t.oAB({type:rt}),rt.\u0275inj=t.cJS({imports:[Vt]}),rt})()},7957:(Ve,q,p)=>{"use strict";p.d(q,{Bb:()=>ve,XC:()=>B,ZL:()=>ce});var t=p(4650),e=p(3238),b=p(6895),I=p(531),s=p(8184),C=p(4761),h=p(1281),P=p(3353),d=p(7340),S=p(727),w=p(7579),O=p(9770),E=p(6451),R=p(9646),z=p(4968),U=p(9521),W=p(4080),K=p(4006),ee=p(9549),ie=p(8675),ue=p(3900),le=p(5698),ne=p(9300),de=p(4004),$=p(8505),me=p(4086),A=p(445);const i=["panel"];function a(oe,je){if(1&oe&&(t.TgZ(0,"div",0,1),t.Hsn(2),t.qZA()),2&oe){const Ae=je.id,he=t.oxw();t.Q6J("id",he.id)("ngClass",he._classList)("@panelAnimation",he.isOpen?"visible":"hidden"),t.uIk("aria-label",he.ariaLabel||null)("aria-labelledby",he._getPanelAriaLabelledby(Ae))}}const u=["*"],l=(0,d.X$)("panelAnimation",[(0,d.SB)("void, hidden",(0,d.oB)({opacity:0,transform:"scaleY(0.8)"})),(0,d.eR)(":enter, hidden => visible",[(0,d.ru)([(0,d.jt)("0.03s linear",(0,d.oB)({opacity:1})),(0,d.jt)("0.12s cubic-bezier(0, 0, 0.2, 1)",(0,d.oB)({transform:"scaleY(1)"}))])]),(0,d.eR)(":leave, visible => hidden",[(0,d.jt)("0.075s linear",(0,d.oB)({opacity:0}))])]);let y=0;class T{constructor(je,Ae){this.source=je,this.option=Ae}}const L=(0,e.Kr)(class{}),m=new t.OlP("mat-autocomplete-default-options",{providedIn:"root",factory:function n(){return{autoActiveFirstOption:!1,autoSelectActiveOption:!1}}});let _=(()=>{class oe extends L{get isOpen(){return this._isOpen&&this.showPanel}_setColor(Ae){this._color=Ae,this._setThemeClasses(this._classList)}get autoActiveFirstOption(){return this._autoActiveFirstOption}set autoActiveFirstOption(Ae){this._autoActiveFirstOption=(0,h.Ig)(Ae)}get autoSelectActiveOption(){return this._autoSelectActiveOption}set autoSelectActiveOption(Ae){this._autoSelectActiveOption=(0,h.Ig)(Ae)}set classList(Ae){this._classList=Ae&&Ae.length?(0,h.du)(Ae).reduce((he,Ce)=>(he[Ce]=!0,he),{}):{},this._setVisibilityClasses(this._classList),this._setThemeClasses(this._classList),this._elementRef.nativeElement.className=""}constructor(Ae,he,Ce,te){super(),this._changeDetectorRef=Ae,this._elementRef=he,this._activeOptionChanges=S.w0.EMPTY,this.showPanel=!1,this._isOpen=!1,this.displayWith=null,this.optionSelected=new t.vpe,this.opened=new t.vpe,this.closed=new t.vpe,this.optionActivated=new t.vpe,this._classList={},this.id="mat-autocomplete-"+y++,this.inertGroups=te?.SAFARI||!1,this._autoActiveFirstOption=!!Ce.autoActiveFirstOption,this._autoSelectActiveOption=!!Ce.autoSelectActiveOption}ngAfterContentInit(){this._keyManager=new C.s1(this.options).withWrap(),this._activeOptionChanges=this._keyManager.change.subscribe(Ae=>{this.isOpen&&this.optionActivated.emit({source:this,option:this.options.toArray()[Ae]||null})}),this._setVisibility()}ngOnDestroy(){this._keyManager?.destroy(),this._activeOptionChanges.unsubscribe()}_setScrollTop(Ae){this.panel&&(this.panel.nativeElement.scrollTop=Ae)}_getScrollTop(){return this.panel?this.panel.nativeElement.scrollTop:0}_setVisibility(){this.showPanel=!!this.options.length,this._setVisibilityClasses(this._classList),this._changeDetectorRef.markForCheck()}_emitSelectEvent(Ae){const he=new T(this,Ae);this.optionSelected.emit(he)}_getPanelAriaLabelledby(Ae){return this.ariaLabel?null:this.ariaLabelledby?(Ae?Ae+" ":"")+this.ariaLabelledby:Ae}_setVisibilityClasses(Ae){Ae[this._visibleClass]=this.showPanel,Ae[this._hiddenClass]=!this.showPanel}_setThemeClasses(Ae){Ae["mat-primary"]="primary"===this._color,Ae["mat-warn"]="warn"===this._color,Ae["mat-accent"]="accent"===this._color}}return oe.\u0275fac=function(Ae){return new(Ae||oe)(t.Y36(t.sBO),t.Y36(t.SBq),t.Y36(m),t.Y36(P.t4))},oe.\u0275dir=t.lG2({type:oe,viewQuery:function(Ae,he){if(1&Ae&&(t.Gf(t.Rgc,7),t.Gf(i,5)),2&Ae){let Ce;t.iGM(Ce=t.CRH())&&(he.template=Ce.first),t.iGM(Ce=t.CRH())&&(he.panel=Ce.first)}},inputs:{ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],displayWith:"displayWith",autoActiveFirstOption:"autoActiveFirstOption",autoSelectActiveOption:"autoSelectActiveOption",panelWidth:"panelWidth",classList:["class","classList"]},outputs:{optionSelected:"optionSelected",opened:"opened",closed:"closed",optionActivated:"optionActivated"},features:[t.qOj]}),oe})(),B=(()=>{class oe extends _{constructor(){super(...arguments),this._visibleClass="mat-mdc-autocomplete-visible",this._hiddenClass="mat-mdc-autocomplete-hidden"}}return oe.\u0275fac=function(){let je;return function(he){return(je||(je=t.n5z(oe)))(he||oe)}}(),oe.\u0275cmp=t.Xpm({type:oe,selectors:[["mat-autocomplete"]],contentQueries:function(Ae,he,Ce){if(1&Ae&&(t.Suo(Ce,e.K7,5),t.Suo(Ce,e.ey,5)),2&Ae){let te;t.iGM(te=t.CRH())&&(he.optionGroups=te),t.iGM(te=t.CRH())&&(he.options=te)}},hostAttrs:[1,"mat-mdc-autocomplete"],inputs:{disableRipple:"disableRipple"},exportAs:["matAutocomplete"],features:[t._Bn([{provide:e.HF,useExisting:oe}]),t.qOj],ngContentSelectors:u,decls:1,vars:0,consts:[["role","listbox",1,"mat-mdc-autocomplete-panel","mdc-menu-surface","mdc-menu-surface--open",3,"id","ngClass"],["panel",""]],template:function(Ae,he){1&Ae&&(t.F$t(),t.YNc(0,a,3,5,"ng-template"))},dependencies:[b.mk],styles:[".mdc-menu-surface{display:none;position:absolute;box-sizing:border-box;max-width:calc(100vw - 32px);max-width:var(--mdc-menu-max-width, calc(100vw - 32px));max-height:calc(100vh - 32px);max-height:var(--mdc-menu-max-height, calc(100vh - 32px));margin:0;padding:0;transform:scale(1);transform-origin:top left;opacity:0;overflow:auto;will-change:transform,opacity;z-index:8;border-radius:4px;border-radius:var(--mdc-shape-medium, 4px);transform-origin-left:top left;transform-origin-right:top right}.mdc-menu-surface:focus{outline:none}.mdc-menu-surface--animating-open{display:inline-block;transform:scale(0.8);opacity:0}.mdc-menu-surface--open{display:inline-block;transform:scale(1);opacity:1}.mdc-menu-surface--animating-closed{display:inline-block;opacity:0}[dir=rtl] .mdc-menu-surface,.mdc-menu-surface[dir=rtl]{transform-origin-left:top right;transform-origin-right:top left}.mdc-menu-surface--anchor{position:relative;overflow:visible}.mdc-menu-surface--fixed{position:fixed}.mdc-menu-surface--fullwidth{width:100%}.mdc-menu-surface.mat-mdc-autocomplete-panel{width:100%;max-height:256px;position:static;visibility:hidden;transform-origin:center top;margin:0;padding:8px 0;list-style-type:none}.mdc-menu-surface.mat-mdc-autocomplete-panel:focus{outline:none}.cdk-high-contrast-active .mdc-menu-surface.mat-mdc-autocomplete-panel{outline:solid 1px}.cdk-overlay-pane:not(.mat-mdc-autocomplete-panel-above) .mdc-menu-surface.mat-mdc-autocomplete-panel{border-top-left-radius:0;border-top-right-radius:0}.mat-mdc-autocomplete-panel-above .mdc-menu-surface.mat-mdc-autocomplete-panel{border-bottom-left-radius:0;border-bottom-right-radius:0;transform-origin:center bottom}.mdc-menu-surface.mat-mdc-autocomplete-panel.mat-mdc-autocomplete-visible{visibility:visible}.mdc-menu-surface.mat-mdc-autocomplete-panel.mat-mdc-autocomplete-hidden{visibility:hidden}mat-autocomplete{display:none}"],encapsulation:2,data:{animation:[l]},changeDetection:0}),oe})();const Le={provide:K.JU,useExisting:(0,t.Gpc)(()=>ce),multi:!0},We=new t.OlP("mat-autocomplete-scroll-strategy"),De={provide:We,deps:[s.aV],useFactory:function Fe(oe){return()=>oe.scrollStrategies.reposition()}};let ye=(()=>{class oe{get autocompleteDisabled(){return this._autocompleteDisabled}set autocompleteDisabled(Ae){this._autocompleteDisabled=(0,h.Ig)(Ae)}constructor(Ae,he,Ce,te,Ue,Be,ae,ge,ft,Je,dt){this._element=Ae,this._overlay=he,this._viewContainerRef=Ce,this._zone=te,this._changeDetectorRef=Ue,this._dir=ae,this._formField=ge,this._document=ft,this._viewportRuler=Je,this._defaults=dt,this._componentDestroyed=!1,this._autocompleteDisabled=!1,this._manuallyFloatingLabel=!1,this._viewportSubscription=S.w0.EMPTY,this._canOpenOnNextFocus=!0,this._closeKeyEventStream=new w.x,this._windowBlurHandler=()=>{this._canOpenOnNextFocus=this._document.activeElement!==this._element.nativeElement||this.panelOpen},this._onChange=()=>{},this._onTouched=()=>{},this.position="auto",this.autocompleteAttribute="off",this._overlayAttached=!1,this.optionSelections=(0,O.P)(()=>{const Et=this.autocomplete?this.autocomplete.options:null;return Et?Et.changes.pipe((0,ie.O)(Et),(0,ue.w)(()=>(0,E.T)(...Et.map(pt=>pt.onSelectionChange)))):this._zone.onStable.pipe((0,le.q)(1),(0,ue.w)(()=>this.optionSelections))}),this._scrollStrategy=Be}ngAfterViewInit(){const Ae=this._getWindow();typeof Ae<"u"&&this._zone.runOutsideAngular(()=>Ae.addEventListener("blur",this._windowBlurHandler))}ngOnChanges(Ae){Ae.position&&this._positionStrategy&&(this._setStrategyPositions(this._positionStrategy),this.panelOpen&&this._overlayRef.updatePosition())}ngOnDestroy(){const Ae=this._getWindow();typeof Ae<"u"&&Ae.removeEventListener("blur",this._windowBlurHandler),this._viewportSubscription.unsubscribe(),this._componentDestroyed=!0,this._destroyPanel(),this._closeKeyEventStream.complete()}get panelOpen(){return this._overlayAttached&&this.autocomplete.showPanel}openPanel(){this._attachOverlay(),this._floatLabel()}closePanel(){this._resetLabel(),this._overlayAttached&&(this.panelOpen&&this._zone.run(()=>{this.autocomplete.closed.emit()}),this.autocomplete._isOpen=this._overlayAttached=!1,this._pendingAutoselectedOption=null,this._overlayRef&&this._overlayRef.hasAttached()&&(this._overlayRef.detach(),this._closingActionsSubscription.unsubscribe()),this._componentDestroyed||this._changeDetectorRef.detectChanges())}updatePosition(){this._overlayAttached&&this._overlayRef.updatePosition()}get panelClosingActions(){return(0,E.T)(this.optionSelections,this.autocomplete._keyManager.tabOut.pipe((0,ne.h)(()=>this._overlayAttached)),this._closeKeyEventStream,this._getOutsideClickStream(),this._overlayRef?this._overlayRef.detachments().pipe((0,ne.h)(()=>this._overlayAttached)):(0,R.of)()).pipe((0,de.U)(Ae=>Ae instanceof e.rN?Ae:null))}get activeOption(){return this.autocomplete&&this.autocomplete._keyManager?this.autocomplete._keyManager.activeItem:null}_getOutsideClickStream(){return(0,E.T)((0,z.R)(this._document,"click"),(0,z.R)(this._document,"auxclick"),(0,z.R)(this._document,"touchend")).pipe((0,ne.h)(Ae=>{const he=(0,P.sA)(Ae),Ce=this._formField?this._formField._elementRef.nativeElement:null,te=this.connectedTo?this.connectedTo.elementRef.nativeElement:null;return this._overlayAttached&&he!==this._element.nativeElement&&this._document.activeElement!==this._element.nativeElement&&(!Ce||!Ce.contains(he))&&(!te||!te.contains(he))&&!!this._overlayRef&&!this._overlayRef.overlayElement.contains(he)}))}writeValue(Ae){Promise.resolve(null).then(()=>this._assignOptionValue(Ae))}registerOnChange(Ae){this._onChange=Ae}registerOnTouched(Ae){this._onTouched=Ae}setDisabledState(Ae){this._element.nativeElement.disabled=Ae}_handleKeydown(Ae){const he=Ae.keyCode,Ce=(0,U.Vb)(Ae);if(he===U.hY&&!Ce&&Ae.preventDefault(),this.activeOption&&he===U.K5&&this.panelOpen&&!Ce)this.activeOption._selectViaInteraction(),this._resetActiveItem(),Ae.preventDefault();else if(this.autocomplete){const te=this.autocomplete._keyManager.activeItem,Ue=he===U.LH||he===U.JH;he===U.Mf||Ue&&!Ce&&this.panelOpen?this.autocomplete._keyManager.onKeydown(Ae):Ue&&this._canOpen()&&this.openPanel(),(Ue||this.autocomplete._keyManager.activeItem!==te)&&(this._scrollToOption(this.autocomplete._keyManager.activeItemIndex||0),this.autocomplete.autoSelectActiveOption&&this.activeOption&&(this._pendingAutoselectedOption||(this._valueBeforeAutoSelection=this._element.nativeElement.value),this._pendingAutoselectedOption=this.activeOption,this._assignOptionValue(this.activeOption.value)))}}_handleInput(Ae){let he=Ae.target,Ce=he.value;"number"===he.type&&(Ce=""==Ce?null:parseFloat(Ce)),this._previousValue!==Ce&&(this._previousValue=Ce,this._pendingAutoselectedOption=null,this._onChange(Ce),this._canOpen()&&this._document.activeElement===Ae.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(Ae=!1){this._formField&&"auto"===this._formField.floatLabel&&(Ae?this._formField._animateAndLockLabel():this._formField.floatLabel="always",this._manuallyFloatingLabel=!0)}_resetLabel(){this._manuallyFloatingLabel&&(this._formField&&(this._formField.floatLabel="auto"),this._manuallyFloatingLabel=!1)}_subscribeToClosingActions(){const Ae=this._zone.onStable.pipe((0,le.q)(1)),he=this.autocomplete.options.changes.pipe((0,$.b)(()=>this._positionStrategy.reapplyLastPosition()),(0,me.g)(0));return(0,E.T)(Ae,he).pipe((0,ue.w)(()=>(this._zone.run(()=>{const Ce=this.panelOpen;this._resetActiveItem(),this.autocomplete._setVisibility(),this._changeDetectorRef.detectChanges(),this.panelOpen&&this._overlayRef.updatePosition(),Ce!==this.panelOpen&&(this.panelOpen?this.autocomplete.opened.emit():this.autocomplete.closed.emit())}),this.panelClosingActions)),(0,le.q)(1)).subscribe(Ce=>this._setValueAndClose(Ce))}_destroyPanel(){this._overlayRef&&(this.closePanel(),this._overlayRef.dispose(),this._overlayRef=null)}_assignOptionValue(Ae){const he=this.autocomplete&&this.autocomplete.displayWith?this.autocomplete.displayWith(Ae):Ae;this._updateNativeInputValue(he??"")}_updateNativeInputValue(Ae){this._formField?this._formField._control.value=Ae:this._element.nativeElement.value=Ae,this._previousValue=Ae}_setValueAndClose(Ae){const he=Ae?Ae.source:this._pendingAutoselectedOption;he&&(this._clearPreviousSelectedOption(he),this._assignOptionValue(he.value),this._onChange(he.value),this.autocomplete._emitSelectEvent(he),this._element.nativeElement.focus()),this.closePanel()}_clearPreviousSelectedOption(Ae){this.autocomplete.options.forEach(he=>{he!==Ae&&he.selected&&he.deselect()})}_attachOverlay(){let Ae=this._overlayRef;Ae?(this._positionStrategy.setOrigin(this._getConnectedElement()),Ae.updateSize({width:this._getPanelWidth()})):(this._portal=new W.UE(this.autocomplete.template,this._viewContainerRef,{id:this._formField?.getLabelId()}),Ae=this._overlay.create(this._getOverlayConfig()),this._overlayRef=Ae,this._handleOverlayEvents(Ae),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 he=this.panelOpen;this.autocomplete._setVisibility(),this.autocomplete._isOpen=this._overlayAttached=!0,this.autocomplete._setColor(this._formField?.color),this.panelOpen&&he!==this.panelOpen&&this.autocomplete.opened.emit()}_getOverlayConfig(){return new s.X_({positionStrategy:this._getOverlayPosition(),scrollStrategy:this._scrollStrategy(),width:this._getPanelWidth(),direction:this._dir??void 0,panelClass:this._defaults?.overlayPanelClass})}_getOverlayPosition(){const Ae=this._overlay.position().flexibleConnectedTo(this._getConnectedElement()).withFlexibleDimensions(!1).withPush(!1);return this._setStrategyPositions(Ae),this._positionStrategy=Ae,Ae}_setStrategyPositions(Ae){const he=[{originX:"start",originY:"bottom",overlayX:"start",overlayY:"top"},{originX:"end",originY:"bottom",overlayX:"end",overlayY:"top"}],Ce=this._aboveClass,te=[{originX:"start",originY:"top",overlayX:"start",overlayY:"bottom",panelClass:Ce},{originX:"end",originY:"top",overlayX:"end",overlayY:"bottom",panelClass:Ce}];let Ue;Ue="above"===this.position?te:"below"===this.position?he:[...he,...te],Ae.withPositions(Ue)}_getConnectedElement(){return this.connectedTo?this.connectedTo.elementRef:this._formField?this._formField.getConnectedOverlayOrigin():this._element}_getPanelWidth(){return this.autocomplete.panelWidth||this._getHostWidth()}_getHostWidth(){return this._getConnectedElement().nativeElement.getBoundingClientRect().width}_resetActiveItem(){const Ae=this.autocomplete;Ae.autoActiveFirstOption?Ae._keyManager.setFirstItemActive():Ae._keyManager.setActiveItem(-1)}_canOpen(){const Ae=this._element.nativeElement;return!Ae.readOnly&&!Ae.disabled&&!this._autocompleteDisabled}_getWindow(){return this._document?.defaultView||window}_scrollToOption(Ae){const he=this.autocomplete,Ce=(0,e.CB)(Ae,he.options,he.optionGroups);if(0===Ae&&1===Ce)he._setScrollTop(0);else if(he.panel){const te=he.options.toArray()[Ae];if(te){const Ue=te._getHostElement(),Be=(0,e.jH)(Ue.offsetTop,Ue.offsetHeight,he._getScrollTop(),he.panel.nativeElement.offsetHeight);he._setScrollTop(Be)}}}_handleOverlayEvents(Ae){Ae.keydownEvents().subscribe(he=>{(he.keyCode===U.hY&&!(0,U.Vb)(he)||he.keyCode===U.LH&&(0,U.Vb)(he,"altKey"))&&(this._pendingAutoselectedOption&&(this._updateNativeInputValue(this._valueBeforeAutoSelection??""),this._pendingAutoselectedOption=null),this._closeKeyEventStream.next(),this._resetActiveItem(),he.stopPropagation(),he.preventDefault())}),Ae.outsidePointerEvents().subscribe()}}return oe.\u0275fac=function(Ae){return new(Ae||oe)(t.Y36(t.SBq),t.Y36(s.aV),t.Y36(t.s_b),t.Y36(t.R0b),t.Y36(t.sBO),t.Y36(We),t.Y36(A.Is,8),t.Y36(ee.G_,9),t.Y36(b.K0,8),t.Y36(I.rL),t.Y36(m,8))},oe.\u0275dir=t.lG2({type:oe,inputs:{autocomplete:["matAutocomplete","autocomplete"],position:["matAutocompletePosition","position"],connectedTo:["matAutocompleteConnectedTo","connectedTo"],autocompleteAttribute:["autocomplete","autocompleteAttribute"],autocompleteDisabled:["matAutocompleteDisabled","autocompleteDisabled"]},features:[t.TTD]}),oe})(),ce=(()=>{class oe extends ye{constructor(){super(...arguments),this._aboveClass="mat-mdc-autocomplete-panel-above"}}return oe.\u0275fac=function(){let je;return function(he){return(je||(je=t.n5z(oe)))(he||oe)}}(),oe.\u0275dir=t.lG2({type:oe,selectors:[["input","matAutocomplete",""],["textarea","matAutocomplete",""]],hostAttrs:[1,"mat-mdc-autocomplete-trigger"],hostVars:7,hostBindings:function(Ae,he){1&Ae&&t.NdJ("focusin",function(){return he._handleFocus()})("blur",function(){return he._onTouched()})("input",function(te){return he._handleInput(te)})("keydown",function(te){return he._handleKeydown(te)})("click",function(){return he._handleClick()}),2&Ae&&t.uIk("autocomplete",he.autocompleteAttribute)("role",he.autocompleteDisabled?null:"combobox")("aria-autocomplete",he.autocompleteDisabled?null:"list")("aria-activedescendant",he.panelOpen&&he.activeOption?he.activeOption.id:null)("aria-expanded",he.autocompleteDisabled?null:he.panelOpen.toString())("aria-owns",he.autocompleteDisabled||!he.panelOpen||null==he.autocomplete?null:he.autocomplete.id)("aria-haspopup",he.autocompleteDisabled?null:"listbox")},exportAs:["matAutocompleteTrigger"],features:[t._Bn([Le]),t.qOj]}),oe})(),ve=(()=>{class oe{}return oe.\u0275fac=function(Ae){return new(Ae||oe)},oe.\u0275mod=t.oAB({type:oe}),oe.\u0275inj=t.cJS({providers:[De],imports:[s.U8,e.Ng,e.BQ,b.ez,I.ZD,e.Ng,e.BQ]}),oe})()},2673:(Ve,q,p)=>{"use strict";p.d(q,{g:()=>d,k:()=>P});var t=p(4650),e=p(3238),b=p(4761),I=p(1281);let s=0;const C=(0,e.Id)(class{}),h="mat-badge-content";let P=(()=>{class S extends C{get color(){return this._color}set color(O){this._setColor(O),this._color=O}get overlap(){return this._overlap}set overlap(O){this._overlap=(0,I.Ig)(O)}get content(){return this._content}set content(O){this._updateRenderedContent(O)}get description(){return this._description}set description(O){this._updateHostAriaDescription(O)}get hidden(){return this._hidden}set hidden(O){this._hidden=(0,I.Ig)(O)}constructor(O,E,R,z,U){super(),this._ngZone=O,this._elementRef=E,this._ariaDescriber=R,this._renderer=z,this._animationMode=U,this._color="primary",this._overlap=!0,this.position="above after",this.size="medium",this._id=s++,this._isInitialized=!1}isAbove(){return-1===this.position.indexOf("below")}isAfter(){return-1===this.position.indexOf("before")}getBadgeElement(){return this._badgeElement}ngOnInit(){this._clearExistingBadges(),this.content&&!this._badgeElement&&(this._badgeElement=this._createBadgeElement(),this._updateRenderedContent(this.content)),this._isInitialized=!0}ngOnDestroy(){this._renderer.destroyNode&&this._renderer.destroyNode(this._badgeElement),this._ariaDescriber.removeDescription(this._elementRef.nativeElement,this.description)}_createBadgeElement(){const O=this._renderer.createElement("span"),E="mat-badge-active";return O.setAttribute("id",`mat-badge-content-${this._id}`),O.setAttribute("aria-hidden","true"),O.classList.add(h),"NoopAnimations"===this._animationMode&&O.classList.add("_mat-animation-noopable"),this._elementRef.nativeElement.appendChild(O),"function"==typeof requestAnimationFrame&&"NoopAnimations"!==this._animationMode?this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>{O.classList.add(E)})}):O.classList.add(E),O}_updateRenderedContent(O){const E=`${O??""}`.trim();this._isInitialized&&E&&!this._badgeElement&&(this._badgeElement=this._createBadgeElement()),this._badgeElement&&(this._badgeElement.textContent=E),this._content=E}_updateHostAriaDescription(O){this._ariaDescriber.removeDescription(this._elementRef.nativeElement,this.description),O&&this._ariaDescriber.describe(this._elementRef.nativeElement,O),this._description=O}_setColor(O){const E=this._elementRef.nativeElement.classList;E.remove(`mat-badge-${this._color}`),O&&E.add(`mat-badge-${O}`)}_clearExistingBadges(){const O=this._elementRef.nativeElement.querySelectorAll(`:scope > .${h}`);for(const E of Array.from(O))E!==this._badgeElement&&E.remove()}}return S.\u0275fac=function(O){return new(O||S)(t.Y36(t.R0b),t.Y36(t.SBq),t.Y36(b.$s),t.Y36(t.Qsj),t.Y36(t.QbO,8))},S.\u0275dir=t.lG2({type:S,selectors:[["","matBadge",""]],hostAttrs:[1,"mat-badge"],hostVars:20,hostBindings:function(O,E){2&O&&t.ekj("mat-badge-overlap",E.overlap)("mat-badge-above",E.isAbove())("mat-badge-below",!E.isAbove())("mat-badge-before",!E.isAfter())("mat-badge-after",E.isAfter())("mat-badge-small","small"===E.size)("mat-badge-medium","medium"===E.size)("mat-badge-large","large"===E.size)("mat-badge-hidden",E.hidden||!E.content)("mat-badge-disabled",E.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]}),S})(),d=(()=>{class S{}return S.\u0275fac=function(O){return new(O||S)},S.\u0275mod=t.oAB({type:S}),S.\u0275inj=t.cJS({imports:[b.rt,e.BQ,e.BQ]}),S})()},4859:(Ve,q,p)=>{"use strict";p.d(q,{RK:()=>L,lW:()=>de,nh:()=>l,ot:()=>n});var t=p(3353),e=p(4650),b=p(4761),I=p(3238);const s=["mat-button",""],C=[[["",8,"material-icons",3,"iconPositionEnd",""],["mat-icon",3,"iconPositionEnd",""],["","matButtonIcon","",3,"iconPositionEnd",""]],"*",[["","iconPositionEnd","",8,"material-icons"],["mat-icon","iconPositionEnd",""],["","matButtonIcon","","iconPositionEnd",""]]],h=[".material-icons:not([iconPositionEnd]), mat-icon:not([iconPositionEnd]), [matButtonIcon]:not([iconPositionEnd])","*",".material-icons[iconPositionEnd], mat-icon[iconPositionEnd], [matButtonIcon][iconPositionEnd]"],w=["mat-mini-fab",""],E=["mat-icon-button",""],R=["*"],K=[{selector:"mat-button",mdcClasses:["mdc-button","mat-mdc-button"]},{selector:"mat-flat-button",mdcClasses:["mdc-button","mdc-button--unelevated","mat-mdc-unelevated-button"]},{selector:"mat-raised-button",mdcClasses:["mdc-button","mdc-button--raised","mat-mdc-raised-button"]},{selector:"mat-stroked-button",mdcClasses:["mdc-button","mdc-button--outlined","mat-mdc-outlined-button"]},{selector:"mat-fab",mdcClasses:["mdc-fab","mat-mdc-fab"]},{selector:"mat-mini-fab",mdcClasses:["mdc-fab","mdc-fab--mini","mat-mdc-mini-fab"]},{selector:"mat-icon-button",mdcClasses:["mdc-icon-button","mat-mdc-icon-button"]}],ee=(0,I.pj)((0,I.Id)((0,I.Kr)(class{constructor(_){this._elementRef=_}})));let ie=(()=>{class _ extends ee{constructor(V,X,Le,$e){super(V),this._platform=X,this._ngZone=Le,this._animationMode=$e,this._focusMonitor=(0,e.f3M)(b.tE),this._isFab=!1;const We=V.nativeElement.classList;for(const Fe of K)this._hasHostAttributes(Fe.selector)&&Fe.mdcClasses.forEach(De=>{We.add(De)})}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0)}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef)}focus(V="program",X){V?this._focusMonitor.focusVia(this._elementRef.nativeElement,V,X):this._elementRef.nativeElement.focus(X)}_hasHostAttributes(...V){return V.some(X=>this._elementRef.nativeElement.hasAttribute(X))}_isRippleDisabled(){return this.disableRipple||this.disabled}}return _.\u0275fac=function(V){e.$Z()},_.\u0275dir=e.lG2({type:_,viewQuery:function(V,X){if(1&V&&e.Gf(I.wG,5),2&V){let Le;e.iGM(Le=e.CRH())&&(X.ripple=Le.first)}},features:[e.qOj]}),_})(),de=(()=>{class _ extends ie{constructor(V,X,Le,$e){super(V,X,Le,$e)}}return _.\u0275fac=function(V){return new(V||_)(e.Y36(e.SBq),e.Y36(t.t4),e.Y36(e.R0b),e.Y36(e.QbO,8))},_.\u0275cmp=e.Xpm({type:_,selectors:[["button","mat-button",""],["button","mat-raised-button",""],["button","mat-flat-button",""],["button","mat-stroked-button",""]],hostVars:7,hostBindings:function(V,X){2&V&&(e.uIk("disabled",X.disabled||null),e.ekj("_mat-animation-noopable","NoopAnimations"===X._animationMode)("mat-unthemed",!X.color)("mat-mdc-button-base",!0))},inputs:{disabled:"disabled",disableRipple:"disableRipple",color:"color"},exportAs:["matButton"],features:[e.qOj],attrs:s,ngContentSelectors:h,decls:8,vars:6,consts:[[1,"mat-mdc-button-persistent-ripple"],[1,"mdc-button__label"],[1,"mat-mdc-focus-indicator"],["matRipple","",1,"mat-mdc-button-ripple",3,"matRippleDisabled","matRippleTrigger"],[1,"mat-mdc-button-touch-target"]],template:function(V,X){1&V&&(e.F$t(C),e._UZ(0,"span",0),e.Hsn(1),e.TgZ(2,"span",1),e.Hsn(3,1),e.qZA(),e.Hsn(4,2),e._UZ(5,"span",2)(6,"span",3)(7,"span",4)),2&V&&(e.ekj("mdc-button__ripple",!X._isFab)("mdc-fab__ripple",X._isFab),e.xp6(6),e.Q6J("matRippleDisabled",X._isRippleDisabled())("matRippleTrigger",X._elementRef.nativeElement))},dependencies:[I.wG],styles:['.mdc-touch-target-wrapper{display:inline}.mdc-elevation-overlay{position:absolute;border-radius:inherit;pointer-events:none;opacity:var(--mdc-elevation-overlay-opacity, 0);transition:opacity 280ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-button{position:relative;display:inline-flex;align-items:center;justify-content:center;box-sizing:border-box;min-width:64px;border:none;outline:none;line-height:inherit;user-select:none;-webkit-appearance:none;overflow:visible;vertical-align:middle;background:rgba(0,0,0,0)}.mdc-button .mdc-elevation-overlay{width:100%;height:100%;top:0;left:0}.mdc-button::-moz-focus-inner{padding:0;border:0}.mdc-button:active{outline:none}.mdc-button:hover{cursor:pointer}.mdc-button:disabled{cursor:default;pointer-events:none}.mdc-button[hidden]{display:none}.mdc-button .mdc-button__icon{margin-left:0;margin-right:8px;display:inline-block;position:relative;vertical-align:top}[dir=rtl] .mdc-button .mdc-button__icon,.mdc-button .mdc-button__icon[dir=rtl]{margin-left:8px;margin-right:0}.mdc-button .mdc-button__progress-indicator{font-size:0;position:absolute;transform:translate(-50%, -50%);top:50%;left:50%;line-height:initial}.mdc-button .mdc-button__label{position:relative}.mdc-button .mdc-button__focus-ring{pointer-events:none;border:2px solid rgba(0,0,0,0);border-radius:6px;box-sizing:content-box;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);height:calc(\n 100% + 4px\n );width:calc(\n 100% + 4px\n );display:none}@media screen and (forced-colors: active){.mdc-button .mdc-button__focus-ring{border-color:CanvasText}}.mdc-button .mdc-button__focus-ring::after{content:"";border:2px solid rgba(0,0,0,0);border-radius:8px;display:block;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);height:calc(100% + 4px);width:calc(100% + 4px)}@media screen and (forced-colors: active){.mdc-button .mdc-button__focus-ring::after{border-color:CanvasText}}@media screen and (forced-colors: active){.mdc-button.mdc-ripple-upgraded--background-focused .mdc-button__focus-ring,.mdc-button:not(.mdc-ripple-upgraded):focus .mdc-button__focus-ring{display:block}}.mdc-button .mdc-button__touch{position:absolute;top:50%;height:48px;left:0;right:0;transform:translateY(-50%)}.mdc-button__label+.mdc-button__icon{margin-left:8px;margin-right:0}[dir=rtl] .mdc-button__label+.mdc-button__icon,.mdc-button__label+.mdc-button__icon[dir=rtl]{margin-left:0;margin-right:8px}svg.mdc-button__icon{fill:currentColor}.mdc-button--touch{margin-top:6px;margin-bottom:6px}.mdc-button{padding:0 8px 0 8px}.mdc-button--unelevated{transition:box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);padding:0 16px 0 16px}.mdc-button--unelevated.mdc-button--icon-trailing{padding:0 12px 0 16px}.mdc-button--unelevated.mdc-button--icon-leading{padding:0 16px 0 12px}.mdc-button--raised{transition:box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);padding:0 16px 0 16px}.mdc-button--raised.mdc-button--icon-trailing{padding:0 12px 0 16px}.mdc-button--raised.mdc-button--icon-leading{padding:0 16px 0 12px}.mdc-button--outlined{border-style:solid;transition:border 280ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-button--outlined .mdc-button__ripple{border-style:solid;border-color:rgba(0,0,0,0)}.mat-mdc-button{height:var(--mdc-text-button-container-height, 36px);border-radius:var(--mdc-text-button-container-shape, var(--mdc-shape-small, 4px))}.mat-mdc-button:not(:disabled){color:var(--mdc-text-button-label-text-color, inherit)}.mat-mdc-button:disabled{color:var(--mdc-text-button-disabled-label-text-color, rgba(0, 0, 0, 0.38))}.mat-mdc-button .mdc-button__ripple{border-radius:var(--mdc-text-button-container-shape, var(--mdc-shape-small, 4px))}.mat-mdc-unelevated-button{height:var(--mdc-filled-button-container-height, 36px);border-radius:var(--mdc-filled-button-container-shape, var(--mdc-shape-small, 4px))}.mat-mdc-unelevated-button:not(:disabled){background-color:var(--mdc-filled-button-container-color, transparent)}.mat-mdc-unelevated-button:disabled{background-color:var(--mdc-filled-button-disabled-container-color, rgba(0, 0, 0, 0.12))}.mat-mdc-unelevated-button:not(:disabled){color:var(--mdc-filled-button-label-text-color, inherit)}.mat-mdc-unelevated-button:disabled{color:var(--mdc-filled-button-disabled-label-text-color, rgba(0, 0, 0, 0.38))}.mat-mdc-unelevated-button .mdc-button__ripple{border-radius:var(--mdc-filled-button-container-shape, var(--mdc-shape-small, 4px))}.mat-mdc-raised-button{height:var(--mdc-protected-button-container-height, 36px);border-radius:var(--mdc-protected-button-container-shape, var(--mdc-shape-small, 4px));box-shadow:var(--mdc-protected-button-container-elevation, 0px 3px 1px -2px rgba(0, 0, 0, 0.2), 0px 2px 2px 0px rgba(0, 0, 0, 0.14), 0px 1px 5px 0px rgba(0, 0, 0, 0.12))}.mat-mdc-raised-button:not(:disabled){background-color:var(--mdc-protected-button-container-color, transparent)}.mat-mdc-raised-button:disabled{background-color:var(--mdc-protected-button-disabled-container-color, rgba(0, 0, 0, 0.12))}.mat-mdc-raised-button:not(:disabled){color:var(--mdc-protected-button-label-text-color, inherit)}.mat-mdc-raised-button:disabled{color:var(--mdc-protected-button-disabled-label-text-color, rgba(0, 0, 0, 0.38))}.mat-mdc-raised-button .mdc-button__ripple{border-radius:var(--mdc-protected-button-container-shape, var(--mdc-shape-small, 4px))}.mat-mdc-raised-button.mdc-ripple-upgraded--background-focused,.mat-mdc-raised-button:not(.mdc-ripple-upgraded):focus{box-shadow:var(--mdc-protected-button-focus-container-elevation, 0px 2px 4px -1px rgba(0, 0, 0, 0.2), 0px 4px 5px 0px rgba(0, 0, 0, 0.14), 0px 1px 10px 0px rgba(0, 0, 0, 0.12))}.mat-mdc-raised-button:hover{box-shadow:var(--mdc-protected-button-hover-container-elevation, 0px 2px 4px -1px rgba(0, 0, 0, 0.2), 0px 4px 5px 0px rgba(0, 0, 0, 0.14), 0px 1px 10px 0px rgba(0, 0, 0, 0.12))}.mat-mdc-raised-button:not(:disabled):active{box-shadow:var(--mdc-protected-button-pressed-container-elevation, 0px 5px 5px -3px rgba(0, 0, 0, 0.2), 0px 8px 10px 1px rgba(0, 0, 0, 0.14), 0px 3px 14px 2px rgba(0, 0, 0, 0.12))}.mat-mdc-raised-button:disabled{box-shadow:var(--mdc-protected-button-disabled-container-elevation, 0px 0px 0px 0px rgba(0, 0, 0, 0.2), 0px 0px 0px 0px rgba(0, 0, 0, 0.14), 0px 0px 0px 0px rgba(0, 0, 0, 0.12))}.mat-mdc-outlined-button{height:var(--mdc-outlined-button-container-height, 36px);border-radius:var(--mdc-outlined-button-container-shape, var(--mdc-shape-small, 4px));padding:0 15px 0 15px;border-width:var(--mdc-outlined-button-outline-width, 1px)}.mat-mdc-outlined-button:not(:disabled){color:var(--mdc-outlined-button-label-text-color, inherit)}.mat-mdc-outlined-button:disabled{color:var(--mdc-outlined-button-disabled-label-text-color, rgba(0, 0, 0, 0.38))}.mat-mdc-outlined-button .mdc-button__ripple{border-radius:var(--mdc-outlined-button-container-shape, var(--mdc-shape-small, 4px))}.mat-mdc-outlined-button:not(:disabled){border-color:var(--mdc-outlined-button-outline-color, rgba(0, 0, 0, 0.12))}.mat-mdc-outlined-button:disabled{border-color:var(--mdc-outlined-button-disabled-outline-color, rgba(0, 0, 0, 0.12))}.mat-mdc-outlined-button.mdc-button--icon-trailing{padding:0 11px 0 15px}.mat-mdc-outlined-button.mdc-button--icon-leading{padding:0 15px 0 11px}.mat-mdc-outlined-button .mdc-button__ripple{top:-1px;left:-1px;bottom:-1px;right:-1px;border-width:var(--mdc-outlined-button-outline-width, 1px)}.mat-mdc-outlined-button .mdc-button__touch{left:calc(-1 * var(--mdc-outlined-button-outline-width, 1px));width:calc(100% + 2 * var(--mdc-outlined-button-outline-width, 1px))}.mat-mdc-button,.mat-mdc-unelevated-button,.mat-mdc-raised-button,.mat-mdc-outlined-button{-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-mdc-button .mat-mdc-button-ripple,.mat-mdc-button .mat-mdc-button-persistent-ripple,.mat-mdc-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-unelevated-button .mat-mdc-button-ripple,.mat-mdc-unelevated-button .mat-mdc-button-persistent-ripple,.mat-mdc-unelevated-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-raised-button .mat-mdc-button-ripple,.mat-mdc-raised-button .mat-mdc-button-persistent-ripple,.mat-mdc-raised-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-outlined-button .mat-mdc-button-ripple,.mat-mdc-outlined-button .mat-mdc-button-persistent-ripple,.mat-mdc-outlined-button .mat-mdc-button-persistent-ripple::before{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-mdc-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-unelevated-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-raised-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-outlined-button .mat-mdc-button-persistent-ripple::before{content:"";opacity:0;background-color:var(--mat-mdc-button-persistent-ripple-color)}.mat-mdc-button .mat-ripple-element,.mat-mdc-unelevated-button .mat-ripple-element,.mat-mdc-raised-button .mat-ripple-element,.mat-mdc-outlined-button .mat-ripple-element{background-color:var(--mat-mdc-button-ripple-color)}.mat-mdc-button .mdc-button__label,.mat-mdc-unelevated-button .mdc-button__label,.mat-mdc-raised-button .mdc-button__label,.mat-mdc-outlined-button .mdc-button__label{z-index:1}.mat-mdc-button .mat-mdc-focus-indicator,.mat-mdc-unelevated-button .mat-mdc-focus-indicator,.mat-mdc-raised-button .mat-mdc-focus-indicator,.mat-mdc-outlined-button .mat-mdc-focus-indicator{top:0;left:0;right:0;bottom:0;position:absolute}.mat-mdc-button:focus .mat-mdc-focus-indicator::before,.mat-mdc-unelevated-button:focus .mat-mdc-focus-indicator::before,.mat-mdc-raised-button:focus .mat-mdc-focus-indicator::before,.mat-mdc-outlined-button:focus .mat-mdc-focus-indicator::before{content:""}.mat-mdc-button[disabled],.mat-mdc-unelevated-button[disabled],.mat-mdc-raised-button[disabled],.mat-mdc-outlined-button[disabled]{cursor:default;pointer-events:none}.mat-mdc-button .mat-mdc-button-touch-target,.mat-mdc-unelevated-button .mat-mdc-button-touch-target,.mat-mdc-raised-button .mat-mdc-button-touch-target,.mat-mdc-outlined-button .mat-mdc-button-touch-target{position:absolute;top:50%;height:48px;left:0;right:0;transform:translateY(-50%)}.mat-mdc-button._mat-animation-noopable,.mat-mdc-unelevated-button._mat-animation-noopable,.mat-mdc-raised-button._mat-animation-noopable,.mat-mdc-outlined-button._mat-animation-noopable{transition:none !important;animation:none !important}.mat-mdc-button>.mat-icon{margin-left:0;margin-right:8px;display:inline-block;position:relative;vertical-align:top;font-size:1.125rem;height:1.125rem;width:1.125rem}[dir=rtl] .mat-mdc-button>.mat-icon,.mat-mdc-button>.mat-icon[dir=rtl]{margin-left:8px;margin-right:0}.mat-mdc-button .mdc-button__label+.mat-icon{margin-left:8px;margin-right:0}[dir=rtl] .mat-mdc-button .mdc-button__label+.mat-icon,.mat-mdc-button .mdc-button__label+.mat-icon[dir=rtl]{margin-left:0;margin-right:8px}.mat-mdc-unelevated-button>.mat-icon,.mat-mdc-raised-button>.mat-icon,.mat-mdc-outlined-button>.mat-icon{margin-left:0;margin-right:8px;display:inline-block;position:relative;vertical-align:top;font-size:1.125rem;height:1.125rem;width:1.125rem;margin-left:-4px;margin-right:8px}[dir=rtl] .mat-mdc-unelevated-button>.mat-icon,[dir=rtl] .mat-mdc-raised-button>.mat-icon,[dir=rtl] .mat-mdc-outlined-button>.mat-icon,.mat-mdc-unelevated-button>.mat-icon[dir=rtl],.mat-mdc-raised-button>.mat-icon[dir=rtl],.mat-mdc-outlined-button>.mat-icon[dir=rtl]{margin-left:8px;margin-right:0}[dir=rtl] .mat-mdc-unelevated-button>.mat-icon,[dir=rtl] .mat-mdc-raised-button>.mat-icon,[dir=rtl] .mat-mdc-outlined-button>.mat-icon,.mat-mdc-unelevated-button>.mat-icon[dir=rtl],.mat-mdc-raised-button>.mat-icon[dir=rtl],.mat-mdc-outlined-button>.mat-icon[dir=rtl]{margin-left:8px;margin-right:-4px}.mat-mdc-unelevated-button .mdc-button__label+.mat-icon,.mat-mdc-raised-button .mdc-button__label+.mat-icon,.mat-mdc-outlined-button .mdc-button__label+.mat-icon{margin-left:8px;margin-right:-4px}[dir=rtl] .mat-mdc-unelevated-button .mdc-button__label+.mat-icon,[dir=rtl] .mat-mdc-raised-button .mdc-button__label+.mat-icon,[dir=rtl] .mat-mdc-outlined-button .mdc-button__label+.mat-icon,.mat-mdc-unelevated-button .mdc-button__label+.mat-icon[dir=rtl],.mat-mdc-raised-button .mdc-button__label+.mat-icon[dir=rtl],.mat-mdc-outlined-button .mdc-button__label+.mat-icon[dir=rtl]{margin-left:-4px;margin-right:8px}.mat-mdc-outlined-button .mat-mdc-button-ripple,.mat-mdc-outlined-button .mdc-button__ripple{top:-1px;left:-1px;bottom:-1px;right:-1px;border-width:-1px}.mat-mdc-unelevated-button .mat-mdc-focus-indicator::before,.mat-mdc-raised-button .mat-mdc-focus-indicator::before{margin:calc(calc(var(--mat-mdc-focus-indicator-border-width, 3px) + 2px) * -1)}.mat-mdc-outlined-button .mat-mdc-focus-indicator::before{margin:calc(calc(var(--mat-mdc-focus-indicator-border-width, 3px) + 3px) * -1)}',".cdk-high-contrast-active .mat-mdc-button:not(.mdc-button--outlined),.cdk-high-contrast-active .mat-mdc-unelevated-button:not(.mdc-button--outlined),.cdk-high-contrast-active .mat-mdc-raised-button:not(.mdc-button--outlined),.cdk-high-contrast-active .mat-mdc-outlined-button:not(.mdc-button--outlined),.cdk-high-contrast-active .mat-mdc-icon-button{outline:solid 1px}"],encapsulation:2,changeDetection:0}),_})();const me=new e.OlP("mat-mdc-fab-default-options",{providedIn:"root",factory:A});function A(){return{color:"accent"}}const i=A();let l=(()=>{class _ extends ie{constructor(V,X,Le,$e,We){super(V,X,Le,$e),this._options=We,this._isFab=!0,this._options=this._options||i,this.color=this.defaultColor=this._options.color||i.color}}return _.\u0275fac=function(V){return new(V||_)(e.Y36(e.SBq),e.Y36(t.t4),e.Y36(e.R0b),e.Y36(e.QbO,8),e.Y36(me,8))},_.\u0275cmp=e.Xpm({type:_,selectors:[["button","mat-mini-fab",""]],hostVars:7,hostBindings:function(V,X){2&V&&(e.uIk("disabled",X.disabled||null),e.ekj("_mat-animation-noopable","NoopAnimations"===X._animationMode)("mat-unthemed",!X.color)("mat-mdc-button-base",!0))},inputs:{disabled:"disabled",disableRipple:"disableRipple",color:"color"},exportAs:["matButton"],features:[e.qOj],attrs:w,ngContentSelectors:h,decls:8,vars:6,consts:[[1,"mat-mdc-button-persistent-ripple"],[1,"mdc-button__label"],[1,"mat-mdc-focus-indicator"],["matRipple","",1,"mat-mdc-button-ripple",3,"matRippleDisabled","matRippleTrigger"],[1,"mat-mdc-button-touch-target"]],template:function(V,X){1&V&&(e.F$t(C),e._UZ(0,"span",0),e.Hsn(1),e.TgZ(2,"span",1),e.Hsn(3,1),e.qZA(),e.Hsn(4,2),e._UZ(5,"span",2)(6,"span",3)(7,"span",4)),2&V&&(e.ekj("mdc-button__ripple",!X._isFab)("mdc-fab__ripple",X._isFab),e.xp6(6),e.Q6J("matRippleDisabled",X._isRippleDisabled())("matRippleTrigger",X._elementRef.nativeElement))},dependencies:[I.wG],styles:['.mdc-touch-target-wrapper{display:inline}.mdc-elevation-overlay{position:absolute;border-radius:inherit;pointer-events:none;opacity:var(--mdc-elevation-overlay-opacity, 0);transition:opacity 280ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-fab{position:relative;display:inline-flex;position:relative;align-items:center;justify-content:center;box-sizing:border-box;width:56px;height:56px;padding:0;border:none;fill:currentColor;text-decoration:none;cursor:pointer;user-select:none;-moz-appearance:none;-webkit-appearance:none;overflow:visible;transition:box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1),opacity 15ms linear 30ms,transform 270ms 0ms cubic-bezier(0, 0, 0.2, 1)}.mdc-fab .mdc-elevation-overlay{width:100%;height:100%;top:0;left:0}.mdc-fab[hidden]{display:none}.mdc-fab::-moz-focus-inner{padding:0;border:0}.mdc-fab .mdc-fab__focus-ring{position:absolute}.mdc-fab.mdc-ripple-upgraded--background-focused .mdc-fab__focus-ring,.mdc-fab:not(.mdc-ripple-upgraded):focus .mdc-fab__focus-ring{pointer-events:none;border:2px solid rgba(0,0,0,0);border-radius:6px;box-sizing:content-box;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);height:calc(\n 100% + 4px\n );width:calc(\n 100% + 4px\n )}@media screen and (forced-colors: active){.mdc-fab.mdc-ripple-upgraded--background-focused .mdc-fab__focus-ring,.mdc-fab:not(.mdc-ripple-upgraded):focus .mdc-fab__focus-ring{border-color:CanvasText}}.mdc-fab.mdc-ripple-upgraded--background-focused .mdc-fab__focus-ring::after,.mdc-fab:not(.mdc-ripple-upgraded):focus .mdc-fab__focus-ring::after{content:"";border:2px solid rgba(0,0,0,0);border-radius:8px;display:block;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);height:calc(100% + 4px);width:calc(100% + 4px)}@media screen and (forced-colors: active){.mdc-fab.mdc-ripple-upgraded--background-focused .mdc-fab__focus-ring::after,.mdc-fab:not(.mdc-ripple-upgraded):focus .mdc-fab__focus-ring::after{border-color:CanvasText}}.mdc-fab:active,.mdc-fab:focus{outline:none}.mdc-fab:hover{cursor:pointer}.mdc-fab>svg{width:100%}.mdc-fab--mini{width:40px;height:40px}.mdc-fab--extended{border-radius:24px;padding-left:20px;padding-right:20px;width:auto;max-width:100%;height:48px;line-height:normal}.mdc-fab--extended .mdc-fab__ripple{border-radius:24px}.mdc-fab--extended .mdc-fab__icon{margin-left:calc(12px - 20px);margin-right:12px}[dir=rtl] .mdc-fab--extended .mdc-fab__icon,.mdc-fab--extended .mdc-fab__icon[dir=rtl]{margin-left:12px;margin-right:calc(12px - 20px)}.mdc-fab--extended .mdc-fab__label+.mdc-fab__icon{margin-left:12px;margin-right:calc(12px - 20px)}[dir=rtl] .mdc-fab--extended .mdc-fab__label+.mdc-fab__icon,.mdc-fab--extended .mdc-fab__label+.mdc-fab__icon[dir=rtl]{margin-left:calc(12px - 20px);margin-right:12px}.mdc-fab--touch{margin-top:4px;margin-bottom:4px;margin-right:4px;margin-left:4px}.mdc-fab--touch .mdc-fab__touch{position:absolute;top:50%;height:48px;left:50%;width:48px;transform:translate(-50%, -50%)}.mdc-fab::before{position:absolute;box-sizing:border-box;width:100%;height:100%;top:0;left:0;border:1px solid rgba(0,0,0,0);border-radius:inherit;content:"";pointer-events:none}@media screen and (forced-colors: active){.mdc-fab::before{border-color:CanvasText}}.mdc-fab__label{justify-content:flex-start;text-overflow:ellipsis;white-space:nowrap;overflow-x:hidden;overflow-y:visible}.mdc-fab__icon{transition:transform 180ms 90ms cubic-bezier(0, 0, 0.2, 1);fill:currentColor;will-change:transform}.mdc-fab .mdc-fab__icon{display:inline-flex;align-items:center;justify-content:center}.mdc-fab--exited{transform:scale(0);opacity:0;transition:opacity 15ms linear 150ms,transform 180ms 0ms cubic-bezier(0.4, 0, 1, 1)}.mdc-fab--exited .mdc-fab__icon{transform:scale(0);transition:transform 135ms 0ms cubic-bezier(0.4, 0, 1, 1)}.mdc-fab .mdc-fab__icon{width:24px;height:24px;font-size:24px}.mdc-fab:not(.mdc-fab--extended){border-radius:50%}.mdc-fab:not(.mdc-fab--extended) .mdc-fab__ripple{border-radius:50%}.mat-mdc-fab,.mat-mdc-mini-fab{-webkit-tap-highlight-color:rgba(0,0,0,0);background-color:var(--mdc-fab-container-color, transparent);box-shadow:0px 3px 5px -1px rgba(0, 0, 0, 0.2), 0px 6px 10px 0px rgba(0, 0, 0, 0.14), 0px 1px 18px 0px rgba(0, 0, 0, 0.12);color:var(--mat-mdc-fab-color, inherit);flex-shrink:0}.mat-mdc-fab .mat-mdc-button-ripple,.mat-mdc-fab .mat-mdc-button-persistent-ripple,.mat-mdc-fab .mat-mdc-button-persistent-ripple::before,.mat-mdc-mini-fab .mat-mdc-button-ripple,.mat-mdc-mini-fab .mat-mdc-button-persistent-ripple,.mat-mdc-mini-fab .mat-mdc-button-persistent-ripple::before{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-mdc-fab .mat-mdc-button-persistent-ripple::before,.mat-mdc-mini-fab .mat-mdc-button-persistent-ripple::before{content:"";opacity:0;background-color:var(--mat-mdc-button-persistent-ripple-color)}.mat-mdc-fab .mat-ripple-element,.mat-mdc-mini-fab .mat-ripple-element{background-color:var(--mat-mdc-button-ripple-color)}.mat-mdc-fab .mdc-button__label,.mat-mdc-mini-fab .mdc-button__label{z-index:1}.mat-mdc-fab .mat-mdc-focus-indicator,.mat-mdc-mini-fab .mat-mdc-focus-indicator{top:0;left:0;right:0;bottom:0;position:absolute}.mat-mdc-fab:focus .mat-mdc-focus-indicator::before,.mat-mdc-mini-fab:focus .mat-mdc-focus-indicator::before{content:""}.mat-mdc-fab .mat-mdc-button-touch-target,.mat-mdc-mini-fab .mat-mdc-button-touch-target{position:absolute;top:50%;height:48px;left:50%;width:48px;transform:translate(-50%, -50%)}.mat-mdc-fab._mat-animation-noopable,.mat-mdc-mini-fab._mat-animation-noopable{transition:none !important;animation:none !important}.mat-mdc-fab:not(:disabled) .mdc-fab__icon,.mat-mdc-mini-fab:not(:disabled) .mdc-fab__icon{color:var(--mdc-fab-icon-color, inherit)}.mat-mdc-fab:not(.mdc-fab--extended),.mat-mdc-mini-fab:not(.mdc-fab--extended){border-radius:var(--mdc-fab-container-shape, 50%)}.mat-mdc-fab:not(.mdc-fab--extended) .mdc-fab__ripple,.mat-mdc-mini-fab:not(.mdc-fab--extended) .mdc-fab__ripple{border-radius:var(--mdc-fab-container-shape, 50%)}.mat-mdc-fab:hover,.mat-mdc-fab:focus,.mat-mdc-mini-fab:hover,.mat-mdc-mini-fab:focus{box-shadow:0px 5px 5px -3px rgba(0, 0, 0, 0.2), 0px 8px 10px 1px rgba(0, 0, 0, 0.14), 0px 3px 14px 2px rgba(0, 0, 0, 0.12)}.mat-mdc-fab:active,.mat-mdc-fab:focus:active,.mat-mdc-mini-fab:active,.mat-mdc-mini-fab:focus:active{box-shadow:0px 7px 8px -4px rgba(0, 0, 0, 0.2), 0px 12px 17px 2px rgba(0, 0, 0, 0.14), 0px 5px 22px 4px rgba(0, 0, 0, 0.12)}.mat-mdc-fab[disabled],.mat-mdc-mini-fab[disabled]{cursor:default;pointer-events:none;box-shadow:0px 0px 0px 0px rgba(0, 0, 0, 0.2), 0px 0px 0px 0px rgba(0, 0, 0, 0.14), 0px 0px 0px 0px rgba(0, 0, 0, 0.12)}.mat-mdc-fab:not(.mdc-ripple-upgraded):focus::before,.mat-mdc-mini-fab:not(.mdc-ripple-upgraded):focus::before{background:rgba(0,0,0,0);opacity:1}.mat-mdc-fab .mat-icon,.mat-mdc-fab .material-icons,.mat-mdc-mini-fab .mat-icon,.mat-mdc-mini-fab .material-icons{transition:transform 180ms 90ms cubic-bezier(0, 0, 0.2, 1);fill:currentColor;will-change:transform}.mat-mdc-fab .mat-mdc-focus-indicator::before,.mat-mdc-mini-fab .mat-mdc-focus-indicator::before{margin:calc(calc(var(--mat-mdc-focus-indicator-border-width, 3px) + 2px) * -1)}.mat-mdc-extended-fab{border-radius:24px;padding-left:20px;padding-right:20px;width:auto;max-width:100%;height:48px;line-height:normal}.mat-mdc-extended-fab .mdc-fab__ripple{border-radius:24px}.mat-mdc-extended-fab .mdc-fab__icon{margin-left:calc(12px - 20px);margin-right:12px}[dir=rtl] .mat-mdc-extended-fab .mdc-fab__icon,.mat-mdc-extended-fab .mdc-fab__icon[dir=rtl]{margin-left:12px;margin-right:calc(12px - 20px)}.mat-mdc-extended-fab .mdc-fab__label+.mdc-fab__icon{margin-left:12px;margin-right:calc(12px - 20px)}[dir=rtl] .mat-mdc-extended-fab .mdc-fab__label+.mdc-fab__icon,.mat-mdc-extended-fab .mdc-fab__label+.mdc-fab__icon[dir=rtl]{margin-left:calc(12px - 20px);margin-right:12px}.mat-mdc-extended-fab>.mat-icon,.mat-mdc-extended-fab>.material-icons{margin-left:calc(12px - 20px);margin-right:12px}[dir=rtl] .mat-mdc-extended-fab>.mat-icon,[dir=rtl] .mat-mdc-extended-fab>.material-icons,.mat-mdc-extended-fab>.mat-icon[dir=rtl],.mat-mdc-extended-fab>.material-icons[dir=rtl]{margin-left:12px;margin-right:calc(12px - 20px)}.mat-mdc-extended-fab .mdc-button__label+.mat-icon,.mat-mdc-extended-fab .mdc-button__label+.material-icons{margin-left:12px;margin-right:calc(12px - 20px)}[dir=rtl] .mat-mdc-extended-fab .mdc-button__label+.mat-icon,[dir=rtl] .mat-mdc-extended-fab .mdc-button__label+.material-icons,.mat-mdc-extended-fab .mdc-button__label+.mat-icon[dir=rtl],.mat-mdc-extended-fab .mdc-button__label+.material-icons[dir=rtl]{margin-left:calc(12px - 20px);margin-right:12px}.mat-mdc-extended-fab .mat-mdc-button-touch-target{width:100%}'],encapsulation:2,changeDetection:0}),_})(),L=(()=>{class _ extends ie{constructor(V,X,Le,$e){super(V,X,Le,$e)}}return _.\u0275fac=function(V){return new(V||_)(e.Y36(e.SBq),e.Y36(t.t4),e.Y36(e.R0b),e.Y36(e.QbO,8))},_.\u0275cmp=e.Xpm({type:_,selectors:[["button","mat-icon-button",""]],hostVars:7,hostBindings:function(V,X){2&V&&(e.uIk("disabled",X.disabled||null),e.ekj("_mat-animation-noopable","NoopAnimations"===X._animationMode)("mat-unthemed",!X.color)("mat-mdc-button-base",!0))},inputs:{disabled:"disabled",disableRipple:"disableRipple",color:"color"},exportAs:["matButton"],features:[e.qOj],attrs:E,ngContentSelectors:R,decls:5,vars:3,consts:[[1,"mat-mdc-button-persistent-ripple","mdc-icon-button__ripple"],[1,"mat-mdc-focus-indicator"],["matRipple","",1,"mat-mdc-button-ripple",3,"matRippleDisabled","matRippleCentered","matRippleTrigger"],[1,"mat-mdc-button-touch-target"]],template:function(V,X){1&V&&(e.F$t(),e._UZ(0,"span",0),e.Hsn(1),e._UZ(2,"span",1)(3,"span",2)(4,"span",3)),2&V&&(e.xp6(3),e.Q6J("matRippleDisabled",X._isRippleDisabled())("matRippleCentered",!0)("matRippleTrigger",X._elementRef.nativeElement))},dependencies:[I.wG],styles:['.mdc-icon-button{font-size:24px;width:48px;height:48px;padding:12px}.mdc-icon-button .mdc-icon-button__focus-ring{max-height:48px;max-width:48px}.mdc-icon-button.mdc-icon-button--reduced-size .mdc-icon-button__ripple{width:40px;height:40px;margin-top:4px;margin-bottom:4px;margin-right:4px;margin-left:4px}.mdc-icon-button.mdc-icon-button--reduced-size .mdc-icon-button__focus-ring{max-height:40px;max-width:40px}.mdc-icon-button .mdc-icon-button__touch{position:absolute;top:50%;height:48px;left:50%;width:48px;transform:translate(-50%, -50%)}.mdc-icon-button svg,.mdc-icon-button img{width:24px;height:24px}.mdc-icon-button{display:inline-block;position:relative;box-sizing:border-box;border:none;outline:none;background-color:rgba(0,0,0,0);fill:currentColor;color:inherit;text-decoration:none;cursor:pointer;user-select:none;z-index:0;overflow:visible}.mdc-icon-button .mdc-icon-button__touch{position:absolute;top:50%;height:48px;left:50%;width:48px;transform:translate(-50%, -50%)}@media screen and (forced-colors: active){.mdc-icon-button.mdc-ripple-upgraded--background-focused .mdc-icon-button__focus-ring,.mdc-icon-button:not(.mdc-ripple-upgraded):focus .mdc-icon-button__focus-ring{display:block}}.mdc-icon-button:disabled{cursor:default;pointer-events:none}.mdc-icon-button[hidden]{display:none}.mdc-icon-button--display-flex{align-items:center;display:inline-flex;justify-content:center}.mdc-icon-button__focus-ring{pointer-events:none;border:2px solid rgba(0,0,0,0);border-radius:6px;box-sizing:content-box;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);height:100%;width:100%;display:none}@media screen and (forced-colors: active){.mdc-icon-button__focus-ring{border-color:CanvasText}}.mdc-icon-button__focus-ring::after{content:"";border:2px solid rgba(0,0,0,0);border-radius:8px;display:block;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);height:calc(100% + 4px);width:calc(100% + 4px)}@media screen and (forced-colors: active){.mdc-icon-button__focus-ring::after{border-color:CanvasText}}.mdc-icon-button__icon{display:inline-block}.mdc-icon-button__icon.mdc-icon-button__icon--on{display:none}.mdc-icon-button--on .mdc-icon-button__icon{display:none}.mdc-icon-button--on .mdc-icon-button__icon.mdc-icon-button__icon--on{display:inline-block}.mdc-icon-button__link{height:100%;left:0;outline:none;position:absolute;top:0;width:100%}.mat-mdc-icon-button{height:var(--mdc-icon-button-state-layer-size, 48px);width:var(--mdc-icon-button-state-layer-size, 48px);color:var(--mdc-icon-button-icon-color, inherit);border-radius:50%;flex-shrink:0;text-align:center;-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-mdc-icon-button .mdc-button__icon{font-size:var(--mdc-icon-button-icon-size, 24px)}.mat-mdc-icon-button svg,.mat-mdc-icon-button img{width:var(--mdc-icon-button-icon-size, 24px);height:var(--mdc-icon-button-icon-size, 24px)}.mat-mdc-icon-button:disabled{opacity:var(--mdc-icon-button-disabled-icon-opacity, 0.38)}.mat-mdc-icon-button:disabled{color:var(--mdc-icon-button-disabled-icon-color, #000)}.mat-mdc-icon-button svg{vertical-align:baseline}.mat-mdc-icon-button[disabled]{cursor:default;pointer-events:none;opacity:1}.mat-mdc-icon-button .mat-mdc-button-ripple,.mat-mdc-icon-button .mat-mdc-button-persistent-ripple,.mat-mdc-icon-button .mat-mdc-button-persistent-ripple::before{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-mdc-icon-button .mat-mdc-button-persistent-ripple::before{content:"";opacity:0;background-color:var(--mat-mdc-button-persistent-ripple-color)}.mat-mdc-icon-button .mat-ripple-element{background-color:var(--mat-mdc-button-ripple-color)}.mat-mdc-icon-button .mdc-button__label{z-index:1}.mat-mdc-icon-button .mat-mdc-focus-indicator{top:0;left:0;right:0;bottom:0;position:absolute}.mat-mdc-icon-button:focus .mat-mdc-focus-indicator::before{content:""}.mat-mdc-icon-button .mat-mdc-button-touch-target{position:absolute;top:50%;height:48px;left:50%;width:48px;transform:translate(-50%, -50%)}.mat-mdc-icon-button._mat-animation-noopable{transition:none !important;animation:none !important}.mat-mdc-icon-button .mat-mdc-button-persistent-ripple{border-radius:50%}.mat-mdc-icon-button.mat-unthemed:not(.mdc-ripple-upgraded):focus::before,.mat-mdc-icon-button.mat-primary:not(.mdc-ripple-upgraded):focus::before,.mat-mdc-icon-button.mat-accent:not(.mdc-ripple-upgraded):focus::before,.mat-mdc-icon-button.mat-warn:not(.mdc-ripple-upgraded):focus::before{background:rgba(0,0,0,0);opacity:1}',".cdk-high-contrast-active .mat-mdc-button:not(.mdc-button--outlined),.cdk-high-contrast-active .mat-mdc-unelevated-button:not(.mdc-button--outlined),.cdk-high-contrast-active .mat-mdc-raised-button:not(.mdc-button--outlined),.cdk-high-contrast-active .mat-mdc-outlined-button:not(.mdc-button--outlined),.cdk-high-contrast-active .mat-mdc-icon-button{outline:solid 1px}"],encapsulation:2,changeDetection:0}),_})(),n=(()=>{class _{}return _.\u0275fac=function(V){return new(V||_)},_.\u0275mod=e.oAB({type:_}),_.\u0275inj=e.cJS({imports:[I.BQ,I.si,I.BQ]}),_})()},3546:(Ve,q,p)=>{"use strict";p.d(q,{$j:()=>R,QW:()=>$,a8:()=>S,dk:()=>U,dn:()=>E,n5:()=>w});var t=p(4650),e=p(6895),b=p(3238);const I=["*"],h=[[["","mat-card-avatar",""],["","matCardAvatar",""]],[["mat-card-title"],["mat-card-subtitle"],["","mat-card-title",""],["","mat-card-subtitle",""],["","matCardTitle",""],["","matCardSubtitle",""]],"*"],P=["[mat-card-avatar], [matCardAvatar]","mat-card-title, mat-card-subtitle,\n [mat-card-title], [mat-card-subtitle],\n [matCardTitle], [matCardSubtitle]","*"],d=new t.OlP("MAT_CARD_CONFIG");let S=(()=>{class me{constructor(i){this.appearance=i?.appearance||"raised"}}return me.\u0275fac=function(i){return new(i||me)(t.Y36(d,8))},me.\u0275cmp=t.Xpm({type:me,selectors:[["mat-card"]],hostAttrs:[1,"mat-mdc-card","mdc-card"],hostVars:4,hostBindings:function(i,a){2&i&&t.ekj("mat-mdc-card-outlined","outlined"===a.appearance)("mdc-card--outlined","outlined"===a.appearance)},inputs:{appearance:"appearance"},exportAs:["matCard"],ngContentSelectors:I,decls:1,vars:0,template:function(i,a){1&i&&(t.F$t(),t.Hsn(0))},styles:['.mdc-card{display:flex;flex-direction:column;box-sizing:border-box}.mdc-card::after{position:absolute;box-sizing:border-box;width:100%;height:100%;top:0;left:0;border:1px solid rgba(0,0,0,0);border-radius:inherit;content:"";pointer-events:none;pointer-events:none}@media screen and (forced-colors: active){.mdc-card::after{border-color:CanvasText}}.mdc-card--outlined::after{border:none}.mdc-card__content{border-radius:inherit;height:100%}.mdc-card__media{position:relative;box-sizing:border-box;background-repeat:no-repeat;background-position:center;background-size:cover}.mdc-card__media::before{display:block;content:""}.mdc-card__media:first-child{border-top-left-radius:inherit;border-top-right-radius:inherit}.mdc-card__media:last-child{border-bottom-left-radius:inherit;border-bottom-right-radius:inherit}.mdc-card__media--square::before{margin-top:100%}.mdc-card__media--16-9::before{margin-top:56.25%}.mdc-card__media-content{position:absolute;top:0;right:0;bottom:0;left:0;box-sizing:border-box}.mdc-card__primary-action{display:flex;flex-direction:column;box-sizing:border-box;position:relative;outline:none;color:inherit;text-decoration:none;cursor:pointer;overflow:hidden}.mdc-card__primary-action:first-child{border-top-left-radius:inherit;border-top-right-radius:inherit}.mdc-card__primary-action:last-child{border-bottom-left-radius:inherit;border-bottom-right-radius:inherit}.mdc-card__actions{display:flex;flex-direction:row;align-items:center;box-sizing:border-box;min-height:52px;padding:8px}.mdc-card__actions--full-bleed{padding:0}.mdc-card__action-buttons,.mdc-card__action-icons{display:flex;flex-direction:row;align-items:center;box-sizing:border-box}.mdc-card__action-icons{flex-grow:1;justify-content:flex-end}.mdc-card__action-buttons+.mdc-card__action-icons{margin-left:16px;margin-right:0}[dir=rtl] .mdc-card__action-buttons+.mdc-card__action-icons,.mdc-card__action-buttons+.mdc-card__action-icons[dir=rtl]{margin-left:0;margin-right:16px}.mdc-card__action{display:inline-flex;flex-direction:row;align-items:center;box-sizing:border-box;justify-content:center;cursor:pointer;user-select:none}.mdc-card__action:focus{outline:none}.mdc-card__action--button{margin-left:0;margin-right:8px;padding:0 8px}[dir=rtl] .mdc-card__action--button,.mdc-card__action--button[dir=rtl]{margin-left:8px;margin-right:0}.mdc-card__action--button:last-child{margin-left:0;margin-right:0}[dir=rtl] .mdc-card__action--button:last-child,.mdc-card__action--button:last-child[dir=rtl]{margin-left:0;margin-right:0}.mdc-card__actions--full-bleed .mdc-card__action--button{justify-content:space-between;width:100%;height:auto;max-height:none;margin:0;padding:8px 16px;text-align:left}[dir=rtl] .mdc-card__actions--full-bleed .mdc-card__action--button,.mdc-card__actions--full-bleed .mdc-card__action--button[dir=rtl]{text-align:right}.mdc-card__action--icon{margin:-6px 0;padding:12px}.mat-mdc-card{position:relative;border-radius:var(--mdc-elevated-card-container-shape, var(--mdc-shape-medium, 4px));background-color:var(--mdc-elevated-card-container-color, transparent);border-width:0;border-style:solid;border-color:var(--mdc-elevated-card-container-color, transparent)}.mat-mdc-card .mdc-card::after{border-radius:var(--mdc-elevated-card-container-shape, var(--mdc-shape-medium, 4px))}.mat-mdc-card-outlined{border-width:var(--mdc-outlined-card-outline-width, 1px);border-style:solid;border-color:var(--mdc-outlined-card-outline-color, transparent)}.mat-mdc-card-title,.mat-mdc-card-subtitle{display:block;margin:0}.mat-mdc-card-avatar~.mat-mdc-card-header-text .mat-mdc-card-title,.mat-mdc-card-avatar~.mat-mdc-card-header-text .mat-mdc-card-subtitle{padding:16px 16px 0}.mat-mdc-card-header{display:flex;padding:16px 16px 0}.mat-mdc-card-content{display:block;padding:0 16px}.mat-mdc-card-content:first-child{padding-top:16px}.mat-mdc-card-content:last-child{padding-bottom:16px}.mat-mdc-card-title-group{display:flex;justify-content:space-between;width:100%}.mat-mdc-card-avatar{height:40px;width:40px;border-radius:50%;flex-shrink:0;margin-bottom:16px;object-fit:cover}.mat-mdc-card-avatar~.mat-mdc-card-header-text .mat-mdc-card-subtitle,.mat-mdc-card-avatar~.mat-mdc-card-header-text .mat-mdc-card-title{line-height:normal}.mat-mdc-card-sm-image{width:80px;height:80px}.mat-mdc-card-md-image{width:112px;height:112px}.mat-mdc-card-lg-image{width:152px;height:152px}.mat-mdc-card-xl-image{width:240px;height:240px}.mat-mdc-card-subtitle~.mat-mdc-card-title,.mat-mdc-card-title~.mat-mdc-card-subtitle,.mat-mdc-card-header .mat-mdc-card-header-text .mat-mdc-card-title,.mat-mdc-card-header .mat-mdc-card-header-text .mat-mdc-card-subtitle,.mat-mdc-card-title-group .mat-mdc-card-title,.mat-mdc-card-title-group .mat-mdc-card-subtitle{padding-top:0}.mat-mdc-card-content>:last-child:not(.mat-mdc-card-footer){margin-bottom:0}.mat-mdc-card-actions-align-end{justify-content:flex-end}'],encapsulation:2,changeDetection:0}),me})(),w=(()=>{class me{}return me.\u0275fac=function(i){return new(i||me)},me.\u0275dir=t.lG2({type:me,selectors:[["mat-card-title"],["","mat-card-title",""],["","matCardTitle",""]],hostAttrs:[1,"mat-mdc-card-title"]}),me})(),E=(()=>{class me{}return me.\u0275fac=function(i){return new(i||me)},me.\u0275dir=t.lG2({type:me,selectors:[["mat-card-content"]],hostAttrs:[1,"mat-mdc-card-content"]}),me})(),R=(()=>{class me{}return me.\u0275fac=function(i){return new(i||me)},me.\u0275dir=t.lG2({type:me,selectors:[["mat-card-subtitle"],["","mat-card-subtitle",""],["","matCardSubtitle",""]],hostAttrs:[1,"mat-mdc-card-subtitle"]}),me})(),U=(()=>{class me{}return me.\u0275fac=function(i){return new(i||me)},me.\u0275cmp=t.Xpm({type:me,selectors:[["mat-card-header"]],hostAttrs:[1,"mat-mdc-card-header"],ngContentSelectors:P,decls:4,vars:0,consts:[[1,"mat-mdc-card-header-text"]],template:function(i,a){1&i&&(t.F$t(h),t.Hsn(0),t.TgZ(1,"div",0),t.Hsn(2,1),t.qZA(),t.Hsn(3,2))},encapsulation:2,changeDetection:0}),me})(),$=(()=>{class me{}return me.\u0275fac=function(i){return new(i||me)},me.\u0275mod=t.oAB({type:me}),me.\u0275inj=t.cJS({imports:[b.BQ,e.ez,b.BQ]}),me})()},6709:(Ve,q,p)=>{"use strict";p.d(q,{oG:()=>U,p9:()=>ie});var t=p(4650),e=p(4006),b=p(3238),I=p(1281);const s=["input"],C=["label"],h=["*"],P=new t.OlP("mat-checkbox-default-options",{providedIn:"root",factory:d});function d(){return{color:"accent",clickAction:"check-indeterminate"}}const S={provide:e.JU,useExisting:(0,t.Gpc)(()=>U),multi:!0};class w{}let O=0;const E=d(),R=(0,b.sb)((0,b.pj)((0,b.Kr)((0,b.Id)(class{constructor(ue){this._elementRef=ue}}))));let z=(()=>{class ue extends R{get inputId(){return`${this.id||this._uniqueId}-input`}get required(){return this._required}set required(ne){this._required=(0,I.Ig)(ne)}constructor(ne,de,$,me,A,i,a){super(de),this._changeDetectorRef=$,this._ngZone=me,this._animationMode=i,this._options=a,this.ariaLabel="",this.ariaLabelledby=null,this.labelPosition="after",this.name=null,this.change=new t.vpe,this.indeterminateChange=new t.vpe,this._onTouched=()=>{},this._currentAnimationClass="",this._currentCheckState=0,this._controlValueAccessorChangeFn=()=>{},this._checked=!1,this._disabled=!1,this._indeterminate=!1,this._options=this._options||E,this.color=this.defaultColor=this._options.color||E.color,this.tabIndex=parseInt(A)||0,this.id=this._uniqueId=`${ne}${++O}`}ngAfterViewInit(){this._syncIndeterminate(this._indeterminate)}get checked(){return this._checked}set checked(ne){const de=(0,I.Ig)(ne);de!=this.checked&&(this._checked=de,this._changeDetectorRef.markForCheck())}get disabled(){return this._disabled}set disabled(ne){const de=(0,I.Ig)(ne);de!==this.disabled&&(this._disabled=de,this._changeDetectorRef.markForCheck())}get indeterminate(){return this._indeterminate}set indeterminate(ne){const de=ne!=this._indeterminate;this._indeterminate=(0,I.Ig)(ne),de&&(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(ne){this.checked=!!ne}registerOnChange(ne){this._controlValueAccessorChangeFn=ne}registerOnTouched(ne){this._onTouched=ne}setDisabledState(ne){this.disabled=ne}_getAriaChecked(){return this.checked?"true":this.indeterminate?"mixed":"false"}_transitionCheckState(ne){let de=this._currentCheckState,$=this._getAnimationTargetElement();if(de!==ne&&$&&(this._currentAnimationClass&&$.classList.remove(this._currentAnimationClass),this._currentAnimationClass=this._getAnimationClassForCheckStateTransition(de,ne),this._currentCheckState=ne,this._currentAnimationClass.length>0)){$.classList.add(this._currentAnimationClass);const me=this._currentAnimationClass;this._ngZone.runOutsideAngular(()=>{setTimeout(()=>{$.classList.remove(me)},1e3)})}}_emitChangeEvent(){this._controlValueAccessorChangeFn(this.checked),this.change.emit(this._createChangeEvent(this.checked)),this._inputElement&&(this._inputElement.nativeElement.checked=this.checked)}toggle(){this.checked=!this.checked,this._controlValueAccessorChangeFn(this.checked)}_handleInputClick(){const ne=this._options?.clickAction;this.disabled||"noop"===ne?!this.disabled&&"noop"===ne&&(this._inputElement.nativeElement.checked=this.checked,this._inputElement.nativeElement.indeterminate=this.indeterminate):(this.indeterminate&&"check"!==ne&&Promise.resolve().then(()=>{this._indeterminate=!1,this.indeterminateChange.emit(this._indeterminate)}),this._checked=!this._checked,this._transitionCheckState(this._checked?1:2),this._emitChangeEvent())}_onInteractionEvent(ne){ne.stopPropagation()}_onBlur(){Promise.resolve().then(()=>{this._onTouched(),this._changeDetectorRef.markForCheck()})}_getAnimationClassForCheckStateTransition(ne,de){if("NoopAnimations"===this._animationMode)return"";switch(ne){case 0:if(1===de)return this._animationClasses.uncheckedToChecked;if(3==de)return this._checked?this._animationClasses.checkedToIndeterminate:this._animationClasses.uncheckedToIndeterminate;break;case 2:return 1===de?this._animationClasses.uncheckedToChecked:this._animationClasses.uncheckedToIndeterminate;case 1:return 2===de?this._animationClasses.checkedToUnchecked:this._animationClasses.checkedToIndeterminate;case 3:return 1===de?this._animationClasses.indeterminateToChecked:this._animationClasses.indeterminateToUnchecked}return""}_syncIndeterminate(ne){const de=this._inputElement;de&&(de.nativeElement.indeterminate=ne)}}return ue.\u0275fac=function(ne){t.$Z()},ue.\u0275dir=t.lG2({type:ue,viewQuery:function(ne,de){if(1&ne&&(t.Gf(s,5),t.Gf(C,5),t.Gf(b.wG,5)),2&ne){let $;t.iGM($=t.CRH())&&(de._inputElement=$.first),t.iGM($=t.CRH())&&(de._labelElement=$.first),t.iGM($=t.CRH())&&(de.ripple=$.first)}},inputs:{ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],ariaDescribedby:["aria-describedby","ariaDescribedby"],id:"id",required:"required",labelPosition:"labelPosition",name:"name",value:"value",checked:"checked",disabled:"disabled",indeterminate:"indeterminate"},outputs:{change:"change",indeterminateChange:"indeterminateChange"},features:[t.qOj]}),ue})(),U=(()=>{class ue extends z{constructor(ne,de,$,me,A,i){super("mat-mdc-checkbox-",ne,de,$,me,A,i),this._animationClasses={uncheckedToChecked:"mdc-checkbox--anim-unchecked-checked",uncheckedToIndeterminate:"mdc-checkbox--anim-unchecked-indeterminate",checkedToUnchecked:"mdc-checkbox--anim-checked-unchecked",checkedToIndeterminate:"mdc-checkbox--anim-checked-indeterminate",indeterminateToChecked:"mdc-checkbox--anim-indeterminate-checked",indeterminateToUnchecked:"mdc-checkbox--anim-indeterminate-unchecked"}}focus(){this._inputElement.nativeElement.focus()}_createChangeEvent(ne){const de=new w;return de.source=this,de.checked=ne,de}_getAnimationTargetElement(){return this._inputElement?.nativeElement}_onInputClick(){super._handleInputClick()}_onTouchTargetClick(){super._handleInputClick(),this.disabled||this._inputElement.nativeElement.focus()}_preventBubblingFromLabel(ne){ne.target&&this._labelElement.nativeElement.contains(ne.target)&&ne.stopPropagation()}}return ue.\u0275fac=function(ne){return new(ne||ue)(t.Y36(t.SBq),t.Y36(t.sBO),t.Y36(t.R0b),t.$8M("tabindex"),t.Y36(t.QbO,8),t.Y36(P,8))},ue.\u0275cmp=t.Xpm({type:ue,selectors:[["mat-checkbox"]],hostAttrs:[1,"mat-mdc-checkbox"],hostVars:12,hostBindings:function(ne,de){2&ne&&(t.Ikx("id",de.id),t.uIk("tabindex",null)("aria-label",null)("aria-labelledby",null),t.ekj("_mat-animation-noopable","NoopAnimations"===de._animationMode)("mdc-checkbox--disabled",de.disabled)("mat-mdc-checkbox-disabled",de.disabled)("mat-mdc-checkbox-checked",de.checked))},inputs:{disableRipple:"disableRipple",color:"color",tabIndex:"tabIndex"},exportAs:["matCheckbox"],features:[t._Bn([S]),t.qOj],ngContentSelectors:h,decls:15,vars:19,consts:[[1,"mdc-form-field",3,"click"],[1,"mdc-checkbox"],["checkbox",""],[1,"mat-mdc-checkbox-touch-target",3,"click"],["type","checkbox",1,"mdc-checkbox__native-control",3,"checked","disabled","id","required","tabIndex","blur","click","change"],["input",""],[1,"mdc-checkbox__ripple"],[1,"mdc-checkbox__background"],["focusable","false","viewBox","0 0 24 24","aria-hidden","true",1,"mdc-checkbox__checkmark"],["fill","none","d","M1.73,12.91 8.1,19.28 22.79,4.59",1,"mdc-checkbox__checkmark-path"],[1,"mdc-checkbox__mixedmark"],["mat-ripple","",1,"mat-mdc-checkbox-ripple","mat-mdc-focus-indicator",3,"matRippleTrigger","matRippleDisabled","matRippleCentered"],[3,"for"],["label",""]],template:function(ne,de){if(1&ne&&(t.F$t(),t.TgZ(0,"div",0),t.NdJ("click",function(me){return de._preventBubblingFromLabel(me)}),t.TgZ(1,"div",1,2)(3,"div",3),t.NdJ("click",function(){return de._onTouchTargetClick()}),t.qZA(),t.TgZ(4,"input",4,5),t.NdJ("blur",function(){return de._onBlur()})("click",function(){return de._onInputClick()})("change",function(me){return de._onInteractionEvent(me)}),t.qZA(),t._UZ(6,"div",6),t.TgZ(7,"div",7),t.O4$(),t.TgZ(8,"svg",8),t._UZ(9,"path",9),t.qZA(),t.kcU(),t._UZ(10,"div",10),t.qZA(),t._UZ(11,"div",11),t.qZA(),t.TgZ(12,"label",12,13),t.Hsn(14),t.qZA()()),2&ne){const $=t.MAs(2);t.ekj("mdc-form-field--align-end","before"==de.labelPosition),t.xp6(4),t.ekj("mdc-checkbox--selected",de.checked),t.Q6J("checked",de.checked)("disabled",de.disabled)("id",de.inputId)("required",de.required)("tabIndex",de.tabIndex),t.uIk("aria-checked",de._getAriaChecked())("aria-label",de.ariaLabel||null)("aria-labelledby",de.ariaLabelledby)("aria-describedby",de.ariaDescribedby)("name",de.name)("value",de.value),t.xp6(7),t.Q6J("matRippleTrigger",$)("matRippleDisabled",de.disableRipple||de.disabled)("matRippleCentered",!0),t.xp6(1),t.Q6J("for",de.inputId)}},dependencies:[b.wG],styles:['.mdc-touch-target-wrapper{display:inline}@keyframes mdc-checkbox-unchecked-checked-checkmark-path{0%,50%{stroke-dashoffset:29.7833385}50%{animation-timing-function:cubic-bezier(0, 0, 0.2, 1)}100%{stroke-dashoffset:0}}@keyframes mdc-checkbox-unchecked-indeterminate-mixedmark{0%,68.2%{transform:scaleX(0)}68.2%{animation-timing-function:cubic-bezier(0, 0, 0, 1)}100%{transform:scaleX(1)}}@keyframes mdc-checkbox-checked-unchecked-checkmark-path{from{animation-timing-function:cubic-bezier(0.4, 0, 1, 1);opacity:1;stroke-dashoffset:0}to{opacity:0;stroke-dashoffset:-29.7833385}}@keyframes mdc-checkbox-checked-indeterminate-checkmark{from{animation-timing-function:cubic-bezier(0, 0, 0.2, 1);transform:rotate(0deg);opacity:1}to{transform:rotate(45deg);opacity:0}}@keyframes mdc-checkbox-indeterminate-checked-checkmark{from{animation-timing-function:cubic-bezier(0.14, 0, 0, 1);transform:rotate(45deg);opacity:0}to{transform:rotate(360deg);opacity:1}}@keyframes mdc-checkbox-checked-indeterminate-mixedmark{from{animation-timing-function:mdc-animation-deceleration-curve-timing-function;transform:rotate(-45deg);opacity:0}to{transform:rotate(0deg);opacity:1}}@keyframes mdc-checkbox-indeterminate-checked-mixedmark{from{animation-timing-function:cubic-bezier(0.14, 0, 0, 1);transform:rotate(0deg);opacity:1}to{transform:rotate(315deg);opacity:0}}@keyframes mdc-checkbox-indeterminate-unchecked-mixedmark{0%{animation-timing-function:linear;transform:scaleX(1);opacity:1}32.8%,100%{transform:scaleX(0);opacity:0}}.mdc-checkbox{display:inline-block;position:relative;flex:0 0 18px;box-sizing:content-box;width:18px;height:18px;line-height:0;white-space:nowrap;cursor:pointer;vertical-align:bottom}.mdc-checkbox[hidden]{display:none}.mdc-checkbox.mdc-ripple-upgraded--background-focused .mdc-checkbox__focus-ring,.mdc-checkbox:not(.mdc-ripple-upgraded):focus .mdc-checkbox__focus-ring{pointer-events:none;border:2px solid rgba(0,0,0,0);border-radius:6px;box-sizing:content-box;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);height:100%;width:100%}@media screen and (forced-colors: active){.mdc-checkbox.mdc-ripple-upgraded--background-focused .mdc-checkbox__focus-ring,.mdc-checkbox:not(.mdc-ripple-upgraded):focus .mdc-checkbox__focus-ring{border-color:CanvasText}}.mdc-checkbox.mdc-ripple-upgraded--background-focused .mdc-checkbox__focus-ring::after,.mdc-checkbox:not(.mdc-ripple-upgraded):focus .mdc-checkbox__focus-ring::after{content:"";border:2px solid rgba(0,0,0,0);border-radius:8px;display:block;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);height:calc(100% + 4px);width:calc(100% + 4px)}@media screen and (forced-colors: active){.mdc-checkbox.mdc-ripple-upgraded--background-focused .mdc-checkbox__focus-ring::after,.mdc-checkbox:not(.mdc-ripple-upgraded):focus .mdc-checkbox__focus-ring::after{border-color:CanvasText}}@media all and (-ms-high-contrast: none){.mdc-checkbox .mdc-checkbox__focus-ring{display:none}}@media screen and (forced-colors: active),(-ms-high-contrast: active){.mdc-checkbox__mixedmark{margin:0 1px}}.mdc-checkbox--disabled{cursor:default;pointer-events:none}.mdc-checkbox__background{display:inline-flex;position:absolute;align-items:center;justify-content:center;box-sizing:border-box;width:18px;height:18px;border:2px solid currentColor;border-radius:2px;background-color:rgba(0,0,0,0);pointer-events:none;will-change:background-color,border-color;transition:background-color 90ms 0ms cubic-bezier(0.4, 0, 0.6, 1),border-color 90ms 0ms cubic-bezier(0.4, 0, 0.6, 1)}.mdc-checkbox__checkmark{position:absolute;top:0;right:0;bottom:0;left:0;width:100%;opacity:0;transition:opacity 180ms 0ms cubic-bezier(0.4, 0, 0.6, 1)}.mdc-checkbox--upgraded .mdc-checkbox__checkmark{opacity:1}.mdc-checkbox__checkmark-path{transition:stroke-dashoffset 180ms 0ms cubic-bezier(0.4, 0, 0.6, 1);stroke:currentColor;stroke-width:3.12px;stroke-dashoffset:29.7833385;stroke-dasharray:29.7833385}.mdc-checkbox__mixedmark{width:100%;height:0;transform:scaleX(0) rotate(0deg);border-width:1px;border-style:solid;opacity:0;transition:opacity 90ms 0ms cubic-bezier(0.4, 0, 0.6, 1),transform 90ms 0ms cubic-bezier(0.4, 0, 0.6, 1)}.mdc-checkbox--anim-unchecked-checked .mdc-checkbox__background,.mdc-checkbox--anim-unchecked-indeterminate .mdc-checkbox__background,.mdc-checkbox--anim-checked-unchecked .mdc-checkbox__background,.mdc-checkbox--anim-indeterminate-unchecked .mdc-checkbox__background{animation-duration:180ms;animation-timing-function:linear}.mdc-checkbox--anim-unchecked-checked .mdc-checkbox__checkmark-path{animation:mdc-checkbox-unchecked-checked-checkmark-path 180ms linear 0s;transition:none}.mdc-checkbox--anim-unchecked-indeterminate .mdc-checkbox__mixedmark{animation:mdc-checkbox-unchecked-indeterminate-mixedmark 90ms linear 0s;transition:none}.mdc-checkbox--anim-checked-unchecked .mdc-checkbox__checkmark-path{animation:mdc-checkbox-checked-unchecked-checkmark-path 90ms linear 0s;transition:none}.mdc-checkbox--anim-checked-indeterminate .mdc-checkbox__checkmark{animation:mdc-checkbox-checked-indeterminate-checkmark 90ms linear 0s;transition:none}.mdc-checkbox--anim-checked-indeterminate .mdc-checkbox__mixedmark{animation:mdc-checkbox-checked-indeterminate-mixedmark 90ms linear 0s;transition:none}.mdc-checkbox--anim-indeterminate-checked .mdc-checkbox__checkmark{animation:mdc-checkbox-indeterminate-checked-checkmark 500ms linear 0s;transition:none}.mdc-checkbox--anim-indeterminate-checked .mdc-checkbox__mixedmark{animation:mdc-checkbox-indeterminate-checked-mixedmark 500ms linear 0s;transition:none}.mdc-checkbox--anim-indeterminate-unchecked .mdc-checkbox__mixedmark{animation:mdc-checkbox-indeterminate-unchecked-mixedmark 300ms linear 0s;transition:none}.mdc-checkbox__native-control:checked~.mdc-checkbox__background,.mdc-checkbox__native-control:indeterminate~.mdc-checkbox__background,.mdc-checkbox__native-control[data-indeterminate=true]~.mdc-checkbox__background{transition:border-color 90ms 0ms cubic-bezier(0, 0, 0.2, 1),background-color 90ms 0ms cubic-bezier(0, 0, 0.2, 1)}.mdc-checkbox__native-control:checked~.mdc-checkbox__background .mdc-checkbox__checkmark-path,.mdc-checkbox__native-control:indeterminate~.mdc-checkbox__background .mdc-checkbox__checkmark-path,.mdc-checkbox__native-control[data-indeterminate=true]~.mdc-checkbox__background .mdc-checkbox__checkmark-path{stroke-dashoffset:0}.mdc-checkbox__native-control{position:absolute;margin:0;padding:0;opacity:0;cursor:inherit}.mdc-checkbox__native-control:disabled{cursor:default;pointer-events:none}.mdc-checkbox--touch{margin:calc((var(--mdc-checkbox-state-layer-size, 48px) - var(--mdc-checkbox-state-layer-size, 40px)) / 2)}.mdc-checkbox--touch .mdc-checkbox__native-control{top:calc((var(--mdc-checkbox-state-layer-size, 40px) - var(--mdc-checkbox-state-layer-size, 48px)) / 2);right:calc((var(--mdc-checkbox-state-layer-size, 40px) - var(--mdc-checkbox-state-layer-size, 48px)) / 2);left:calc((var(--mdc-checkbox-state-layer-size, 40px) - var(--mdc-checkbox-state-layer-size, 48px)) / 2);width:var(--mdc-checkbox-state-layer-size, 48px);height:var(--mdc-checkbox-state-layer-size, 48px)}.mdc-checkbox__native-control:checked~.mdc-checkbox__background .mdc-checkbox__checkmark{transition:opacity 180ms 0ms cubic-bezier(0, 0, 0.2, 1),transform 180ms 0ms cubic-bezier(0, 0, 0.2, 1);opacity:1}.mdc-checkbox__native-control:checked~.mdc-checkbox__background .mdc-checkbox__mixedmark{transform:scaleX(1) rotate(-45deg)}.mdc-checkbox__native-control:indeterminate~.mdc-checkbox__background .mdc-checkbox__checkmark,.mdc-checkbox__native-control[data-indeterminate=true]~.mdc-checkbox__background .mdc-checkbox__checkmark{transform:rotate(45deg);opacity:0;transition:opacity 90ms 0ms cubic-bezier(0.4, 0, 0.6, 1),transform 90ms 0ms cubic-bezier(0.4, 0, 0.6, 1)}.mdc-checkbox__native-control:indeterminate~.mdc-checkbox__background .mdc-checkbox__mixedmark,.mdc-checkbox__native-control[data-indeterminate=true]~.mdc-checkbox__background .mdc-checkbox__mixedmark{transform:scaleX(1) rotate(0deg);opacity:1}.mdc-checkbox.mdc-checkbox--upgraded .mdc-checkbox__background,.mdc-checkbox.mdc-checkbox--upgraded .mdc-checkbox__checkmark,.mdc-checkbox.mdc-checkbox--upgraded .mdc-checkbox__checkmark-path,.mdc-checkbox.mdc-checkbox--upgraded .mdc-checkbox__mixedmark{transition:none}.mdc-form-field{display:inline-flex;align-items:center;vertical-align:middle}.mdc-form-field[hidden]{display:none}.mdc-form-field>label{margin-left:0;margin-right:auto;padding-left:4px;padding-right:0;order:0}[dir=rtl] .mdc-form-field>label,.mdc-form-field>label[dir=rtl]{margin-left:auto;margin-right:0}[dir=rtl] .mdc-form-field>label,.mdc-form-field>label[dir=rtl]{padding-left:0;padding-right:4px}.mdc-form-field--nowrap>label{text-overflow:ellipsis;overflow:hidden;white-space:nowrap}.mdc-form-field--align-end>label{margin-left:auto;margin-right:0;padding-left:0;padding-right:4px;order:-1}[dir=rtl] .mdc-form-field--align-end>label,.mdc-form-field--align-end>label[dir=rtl]{margin-left:0;margin-right:auto}[dir=rtl] .mdc-form-field--align-end>label,.mdc-form-field--align-end>label[dir=rtl]{padding-left:4px;padding-right:0}.mdc-form-field--space-between{justify-content:space-between}.mdc-form-field--space-between>label{margin:0}[dir=rtl] .mdc-form-field--space-between>label,.mdc-form-field--space-between>label[dir=rtl]{margin:0}.mat-mdc-checkbox{display:inline-block;position:relative;-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-mdc-checkbox .mdc-checkbox{padding:calc((var(--mdc-checkbox-state-layer-size, 40px) - 18px) / 2);margin:calc((var(--mdc-checkbox-state-layer-size, 40px) - var(--mdc-checkbox-state-layer-size, 40px)) / 2)}.mat-mdc-checkbox .mdc-checkbox .mdc-checkbox__native-control[disabled]:not(:checked):not(:indeterminate):not([data-indeterminate=true])~.mdc-checkbox__background{border-color:var(--mdc-checkbox-disabled-unselected-icon-color, rgba(0, 0, 0, 0.38));background-color:transparent}.mat-mdc-checkbox .mdc-checkbox .mdc-checkbox__native-control[disabled]:checked~.mdc-checkbox__background,.mat-mdc-checkbox .mdc-checkbox .mdc-checkbox__native-control[disabled]:indeterminate~.mdc-checkbox__background,.mat-mdc-checkbox .mdc-checkbox .mdc-checkbox__native-control[data-indeterminate=true][disabled]~.mdc-checkbox__background{border-color:transparent;background-color:var(--mdc-checkbox-disabled-selected-icon-color, rgba(0, 0, 0, 0.38))}.mat-mdc-checkbox .mdc-checkbox .mdc-checkbox__native-control:enabled~.mdc-checkbox__background .mdc-checkbox__checkmark{color:var(--mdc-checkbox-selected-checkmark-color, #fff)}.mat-mdc-checkbox .mdc-checkbox .mdc-checkbox__native-control:enabled~.mdc-checkbox__background .mdc-checkbox__mixedmark{border-color:var(--mdc-checkbox-selected-checkmark-color, #fff)}.mat-mdc-checkbox .mdc-checkbox .mdc-checkbox__native-control:disabled~.mdc-checkbox__background .mdc-checkbox__checkmark{color:var(--mdc-checkbox-disabled-selected-checkmark-color, #fff)}.mat-mdc-checkbox .mdc-checkbox .mdc-checkbox__native-control:disabled~.mdc-checkbox__background .mdc-checkbox__mixedmark{border-color:var(--mdc-checkbox-disabled-selected-checkmark-color, #fff)}.mat-mdc-checkbox .mdc-checkbox .mdc-checkbox__native-control:enabled:not(:checked):not(:indeterminate):not([data-indeterminate=true])~.mdc-checkbox__background{border-color:var(--mdc-checkbox-unselected-icon-color, rgba(0, 0, 0, 0.54));background-color:transparent}.mat-mdc-checkbox .mdc-checkbox .mdc-checkbox__native-control:enabled:checked~.mdc-checkbox__background,.mat-mdc-checkbox .mdc-checkbox .mdc-checkbox__native-control:enabled:indeterminate~.mdc-checkbox__background,.mat-mdc-checkbox .mdc-checkbox .mdc-checkbox__native-control[data-indeterminate=true]:enabled~.mdc-checkbox__background{border-color:var(--mdc-checkbox-selected-icon-color, var(--mdc-theme-secondary, #018786));background-color:var(--mdc-checkbox-selected-icon-color, var(--mdc-theme-secondary, #018786))}@keyframes mdc-checkbox-fade-in-background-8A000000FF01878600000000FF018786{0%{border-color:var(--mdc-checkbox-unselected-icon-color, rgba(0, 0, 0, 0.54));background-color:transparent}50%{border-color:var(--mdc-checkbox-selected-icon-color, var(--mdc-theme-secondary, #018786));background-color:var(--mdc-checkbox-selected-icon-color, var(--mdc-theme-secondary, #018786))}}@keyframes mdc-checkbox-fade-out-background-8A000000FF01878600000000FF018786{0%,80%{border-color:var(--mdc-checkbox-selected-icon-color, var(--mdc-theme-secondary, #018786));background-color:var(--mdc-checkbox-selected-icon-color, var(--mdc-theme-secondary, #018786))}100%{border-color:var(--mdc-checkbox-unselected-icon-color, rgba(0, 0, 0, 0.54));background-color:transparent}}.mat-mdc-checkbox .mdc-checkbox.mdc-checkbox--anim-unchecked-checked .mdc-checkbox__native-control:enabled~.mdc-checkbox__background,.mat-mdc-checkbox .mdc-checkbox.mdc-checkbox--anim-unchecked-indeterminate .mdc-checkbox__native-control:enabled~.mdc-checkbox__background{animation-name:mdc-checkbox-fade-in-background-8A000000FF01878600000000FF018786}.mat-mdc-checkbox .mdc-checkbox.mdc-checkbox--anim-checked-unchecked .mdc-checkbox__native-control:enabled~.mdc-checkbox__background,.mat-mdc-checkbox .mdc-checkbox.mdc-checkbox--anim-indeterminate-unchecked .mdc-checkbox__native-control:enabled~.mdc-checkbox__background{animation-name:mdc-checkbox-fade-out-background-8A000000FF01878600000000FF018786}.mat-mdc-checkbox .mdc-checkbox:hover .mdc-checkbox__native-control:enabled:not(:checked):not(:indeterminate):not([data-indeterminate=true])~.mdc-checkbox__background{border-color:var(--mdc-checkbox-unselected-hover-icon-color, var(--mdc-theme-secondary, #018786));background-color:transparent}.mat-mdc-checkbox .mdc-checkbox:hover .mdc-checkbox__native-control:enabled:checked~.mdc-checkbox__background,.mat-mdc-checkbox .mdc-checkbox:hover .mdc-checkbox__native-control:enabled:indeterminate~.mdc-checkbox__background,.mat-mdc-checkbox .mdc-checkbox:hover .mdc-checkbox__native-control[data-indeterminate=true]:enabled~.mdc-checkbox__background{border-color:var(--mdc-checkbox-selected-hover-icon-color, var(--mdc-theme-secondary, #018786));background-color:var(--mdc-checkbox-selected-hover-icon-color, var(--mdc-theme-secondary, #018786))}@keyframes mdc-checkbox-fade-in-background-FF018786FF01878600000000FF018786{0%{border-color:var(--mdc-checkbox-unselected-hover-icon-color, var(--mdc-theme-secondary, #018786));background-color:transparent}50%{border-color:var(--mdc-checkbox-selected-hover-icon-color, var(--mdc-theme-secondary, #018786));background-color:var(--mdc-checkbox-selected-hover-icon-color, var(--mdc-theme-secondary, #018786))}}@keyframes mdc-checkbox-fade-out-background-FF018786FF01878600000000FF018786{0%,80%{border-color:var(--mdc-checkbox-selected-hover-icon-color, var(--mdc-theme-secondary, #018786));background-color:var(--mdc-checkbox-selected-hover-icon-color, var(--mdc-theme-secondary, #018786))}100%{border-color:var(--mdc-checkbox-unselected-hover-icon-color, var(--mdc-theme-secondary, #018786));background-color:transparent}}.mat-mdc-checkbox .mdc-checkbox:hover.mdc-checkbox--anim-unchecked-checked .mdc-checkbox__native-control:enabled~.mdc-checkbox__background,.mat-mdc-checkbox .mdc-checkbox:hover.mdc-checkbox--anim-unchecked-indeterminate .mdc-checkbox__native-control:enabled~.mdc-checkbox__background{animation-name:mdc-checkbox-fade-in-background-FF018786FF01878600000000FF018786}.mat-mdc-checkbox .mdc-checkbox:hover.mdc-checkbox--anim-checked-unchecked .mdc-checkbox__native-control:enabled~.mdc-checkbox__background,.mat-mdc-checkbox .mdc-checkbox:hover.mdc-checkbox--anim-indeterminate-unchecked .mdc-checkbox__native-control:enabled~.mdc-checkbox__background{animation-name:mdc-checkbox-fade-out-background-FF018786FF01878600000000FF018786}.mat-mdc-checkbox .mdc-checkbox.mdc-ripple-upgraded--background-focused .mdc-checkbox__native-control:enabled:not(:checked):not(:indeterminate):not([data-indeterminate=true])~.mdc-checkbox__background,.mat-mdc-checkbox .mdc-checkbox:not(.mdc-ripple-upgraded):focus .mdc-checkbox__native-control:enabled:not(:checked):not(:indeterminate):not([data-indeterminate=true])~.mdc-checkbox__background{border-color:var(--mdc-checkbox-unselected-focus-icon-color, var(--mdc-theme-secondary, #018786));background-color:transparent}.mat-mdc-checkbox .mdc-checkbox.mdc-ripple-upgraded--background-focused .mdc-checkbox__native-control:enabled:checked~.mdc-checkbox__background,.mat-mdc-checkbox .mdc-checkbox.mdc-ripple-upgraded--background-focused .mdc-checkbox__native-control:enabled:indeterminate~.mdc-checkbox__background,.mat-mdc-checkbox .mdc-checkbox.mdc-ripple-upgraded--background-focused .mdc-checkbox__native-control[data-indeterminate=true]:enabled~.mdc-checkbox__background,.mat-mdc-checkbox .mdc-checkbox:not(.mdc-ripple-upgraded):focus .mdc-checkbox__native-control:enabled:checked~.mdc-checkbox__background,.mat-mdc-checkbox .mdc-checkbox:not(.mdc-ripple-upgraded):focus .mdc-checkbox__native-control:enabled:indeterminate~.mdc-checkbox__background,.mat-mdc-checkbox .mdc-checkbox:not(.mdc-ripple-upgraded):focus .mdc-checkbox__native-control[data-indeterminate=true]:enabled~.mdc-checkbox__background{border-color:var(--mdc-checkbox-selected-focus-icon-color, var(--mdc-theme-secondary, #018786));background-color:var(--mdc-checkbox-selected-focus-icon-color, var(--mdc-theme-secondary, #018786))}@keyframes mdc-checkbox-fade-in-background-FF018786FF01878600000000FF018786{0%{border-color:var(--mdc-checkbox-unselected-focus-icon-color, var(--mdc-theme-secondary, #018786));background-color:transparent}50%{border-color:var(--mdc-checkbox-selected-focus-icon-color, var(--mdc-theme-secondary, #018786));background-color:var(--mdc-checkbox-selected-focus-icon-color, var(--mdc-theme-secondary, #018786))}}@keyframes mdc-checkbox-fade-out-background-FF018786FF01878600000000FF018786{0%,80%{border-color:var(--mdc-checkbox-selected-focus-icon-color, var(--mdc-theme-secondary, #018786));background-color:var(--mdc-checkbox-selected-focus-icon-color, var(--mdc-theme-secondary, #018786))}100%{border-color:var(--mdc-checkbox-unselected-focus-icon-color, var(--mdc-theme-secondary, #018786));background-color:transparent}}.mat-mdc-checkbox .mdc-checkbox.mdc-ripple-upgraded--background-focused.mdc-checkbox--anim-unchecked-checked .mdc-checkbox__native-control:enabled~.mdc-checkbox__background,.mat-mdc-checkbox .mdc-checkbox.mdc-ripple-upgraded--background-focused.mdc-checkbox--anim-unchecked-indeterminate .mdc-checkbox__native-control:enabled~.mdc-checkbox__background,.mat-mdc-checkbox .mdc-checkbox:not(.mdc-ripple-upgraded):focus.mdc-checkbox--anim-unchecked-checked .mdc-checkbox__native-control:enabled~.mdc-checkbox__background,.mat-mdc-checkbox .mdc-checkbox:not(.mdc-ripple-upgraded):focus.mdc-checkbox--anim-unchecked-indeterminate .mdc-checkbox__native-control:enabled~.mdc-checkbox__background{animation-name:mdc-checkbox-fade-in-background-FF018786FF01878600000000FF018786}.mat-mdc-checkbox .mdc-checkbox.mdc-ripple-upgraded--background-focused.mdc-checkbox--anim-checked-unchecked .mdc-checkbox__native-control:enabled~.mdc-checkbox__background,.mat-mdc-checkbox .mdc-checkbox.mdc-ripple-upgraded--background-focused.mdc-checkbox--anim-indeterminate-unchecked .mdc-checkbox__native-control:enabled~.mdc-checkbox__background,.mat-mdc-checkbox .mdc-checkbox:not(.mdc-ripple-upgraded):focus.mdc-checkbox--anim-checked-unchecked .mdc-checkbox__native-control:enabled~.mdc-checkbox__background,.mat-mdc-checkbox .mdc-checkbox:not(.mdc-ripple-upgraded):focus.mdc-checkbox--anim-indeterminate-unchecked .mdc-checkbox__native-control:enabled~.mdc-checkbox__background{animation-name:mdc-checkbox-fade-out-background-FF018786FF01878600000000FF018786}.mat-mdc-checkbox .mdc-checkbox:not(:disabled):active .mdc-checkbox__native-control:enabled:not(:checked):not(:indeterminate):not([data-indeterminate=true])~.mdc-checkbox__background{border-color:var(--mdc-checkbox-unselected-pressed-icon-color, rgba(0, 0, 0, 0.54));background-color:transparent}.mat-mdc-checkbox .mdc-checkbox:not(:disabled):active .mdc-checkbox__native-control:enabled:checked~.mdc-checkbox__background,.mat-mdc-checkbox .mdc-checkbox:not(:disabled):active .mdc-checkbox__native-control:enabled:indeterminate~.mdc-checkbox__background,.mat-mdc-checkbox .mdc-checkbox:not(:disabled):active .mdc-checkbox__native-control[data-indeterminate=true]:enabled~.mdc-checkbox__background{border-color:var(--mdc-checkbox-selected-pressed-icon-color, var(--mdc-theme-secondary, #018786));background-color:var(--mdc-checkbox-selected-pressed-icon-color, var(--mdc-theme-secondary, #018786))}@keyframes mdc-checkbox-fade-in-background-8A000000FF01878600000000FF018786{0%{border-color:var(--mdc-checkbox-unselected-pressed-icon-color, rgba(0, 0, 0, 0.54));background-color:transparent}50%{border-color:var(--mdc-checkbox-selected-pressed-icon-color, var(--mdc-theme-secondary, #018786));background-color:var(--mdc-checkbox-selected-pressed-icon-color, var(--mdc-theme-secondary, #018786))}}@keyframes mdc-checkbox-fade-out-background-8A000000FF01878600000000FF018786{0%,80%{border-color:var(--mdc-checkbox-selected-pressed-icon-color, var(--mdc-theme-secondary, #018786));background-color:var(--mdc-checkbox-selected-pressed-icon-color, var(--mdc-theme-secondary, #018786))}100%{border-color:var(--mdc-checkbox-unselected-pressed-icon-color, rgba(0, 0, 0, 0.54));background-color:transparent}}.mat-mdc-checkbox .mdc-checkbox:not(:disabled):active.mdc-checkbox--anim-unchecked-checked .mdc-checkbox__native-control:enabled~.mdc-checkbox__background,.mat-mdc-checkbox .mdc-checkbox:not(:disabled):active.mdc-checkbox--anim-unchecked-indeterminate .mdc-checkbox__native-control:enabled~.mdc-checkbox__background{animation-name:mdc-checkbox-fade-in-background-8A000000FF01878600000000FF018786}.mat-mdc-checkbox .mdc-checkbox:not(:disabled):active.mdc-checkbox--anim-checked-unchecked .mdc-checkbox__native-control:enabled~.mdc-checkbox__background,.mat-mdc-checkbox .mdc-checkbox:not(:disabled):active.mdc-checkbox--anim-indeterminate-unchecked .mdc-checkbox__native-control:enabled~.mdc-checkbox__background{animation-name:mdc-checkbox-fade-out-background-8A000000FF01878600000000FF018786}.mat-mdc-checkbox .mdc-checkbox .mdc-checkbox__background{top:calc((var(--mdc-checkbox-state-layer-size, 40px) - 18px) / 2);left:calc((var(--mdc-checkbox-state-layer-size, 40px) - 18px) / 2)}.mat-mdc-checkbox .mdc-checkbox .mdc-checkbox__native-control{top:calc((var(--mdc-checkbox-state-layer-size, 40px) - var(--mdc-checkbox-state-layer-size, 40px)) / 2);right:calc((var(--mdc-checkbox-state-layer-size, 40px) - var(--mdc-checkbox-state-layer-size, 40px)) / 2);left:calc((var(--mdc-checkbox-state-layer-size, 40px) - var(--mdc-checkbox-state-layer-size, 40px)) / 2);width:var(--mdc-checkbox-state-layer-size, 40px);height:var(--mdc-checkbox-state-layer-size, 40px)}.mat-mdc-checkbox .mdc-checkbox:hover .mdc-checkbox__native-control:not([disabled])~.mdc-checkbox__ripple{opacity:.04;transform:scale(1);transition:opacity 80ms 0 cubic-bezier(0, 0, 0.2, 1),transform 80ms 0 cubic-bezier(0, 0, 0.2, 1)}.mat-mdc-checkbox .mdc-checkbox .mdc-checkbox__native-control:not([disabled]):focus~.mdc-checkbox__ripple{opacity:.16}.mat-mdc-checkbox .mdc-checkbox__background{-webkit-print-color-adjust:exact;color-adjust:exact}.mat-mdc-checkbox._mat-animation-noopable *,.mat-mdc-checkbox._mat-animation-noopable *::before{transition:none !important;animation:none !important}.mat-mdc-checkbox label{cursor:pointer}.mat-mdc-checkbox.mat-mdc-checkbox-disabled label{cursor:default}.mat-mdc-checkbox label:empty{display:none}.mat-mdc-checkbox .mdc-checkbox__native-control:focus:enabled:not(:checked):not(:indeterminate):not([data-indeterminate=true])~.mdc-checkbox__background{border-color:var(--mdc-checkbox-unselected-focus-icon-color, black)}.cdk-high-contrast-active .mat-mdc-checkbox.mat-mdc-checkbox-disabled{opacity:.5}.cdk-high-contrast-active .mat-mdc-checkbox .mdc-checkbox__checkmark{--mdc-checkbox-selected-checkmark-color: CanvasText;--mdc-checkbox-disabled-selected-checkmark-color: CanvasText}.mat-mdc-checkbox .mdc-checkbox__ripple{opacity:0}.mat-mdc-checkbox-ripple,.mdc-checkbox__ripple{top:0;left:0;right:0;bottom:0;position:absolute;border-radius:50%;pointer-events:none}.mat-mdc-checkbox-ripple:not(:empty),.mdc-checkbox__ripple:not(:empty){transform:translateZ(0)}.mat-mdc-checkbox-touch-target{position:absolute;top:50%;height:48px;left:50%;width:48px;transform:translate(-50%, -50%)}.mat-mdc-checkbox-ripple::before{border-radius:50%}.mdc-checkbox__native-control:focus~.mat-mdc-focus-indicator::before{content:""}'],encapsulation:2,changeDetection:0}),ue})(),ee=(()=>{class ue{}return ue.\u0275fac=function(ne){return new(ne||ue)},ue.\u0275mod=t.oAB({type:ue}),ue.\u0275inj=t.cJS({}),ue})(),ie=(()=>{class ue{}return ue.\u0275fac=function(ne){return new(ne||ue)},ue.\u0275mod=t.oAB({type:ue}),ue.\u0275inj=t.cJS({imports:[b.BQ,b.si,ee,b.BQ,ee]}),ue})()},7331:(Ve,q,p)=>{"use strict";p.d(q,{HS:()=>ve,Hi:()=>ke});var t=p(1281),e=p(4650),b=p(6895),I=p(3238),s=p(4761),C=p(7579),P=(p(6451),p(5698)),O=(p(2722),p(8675),p(3900),p(9521));function U(Ke,xt){1&Ke&&(e.TgZ(0,"span",8),e.Hsn(1,1),e.qZA())}function W(Ke,xt){1&Ke&&(e.TgZ(0,"span",9),e.Hsn(1,2),e.qZA())}p(445),p(4006),p(9549);const K=["*",[["mat-chip-avatar"],["","matChipAvatar",""]],[["mat-chip-trailing-icon"],["","matChipRemove",""],["","matChipTrailingIcon",""]]],ee=["*","mat-chip-avatar, [matChipAvatar]","mat-chip-trailing-icon,[matChipRemove],[matChipTrailingIcon]"],m=new e.OlP("mat-chips-default-options"),n=new e.OlP("MatChipAvatar"),_=new e.OlP("MatChipTrailingIcon"),B=new e.OlP("MatChipRemove"),V=new e.OlP("MatChip");class X{}const Le=(0,I.sb)(X,-1);let $e=(()=>{class Ke extends Le{get disabled(){return this._disabled||this._parentChip.disabled}set disabled(Y){this._disabled=(0,t.Ig)(Y)}_getDisabledAttribute(){return this.disabled&&!this._allowFocusWhenDisabled?"":null}_getTabindex(){return this.disabled&&!this._allowFocusWhenDisabled||!this.isInteractive?null:this.tabIndex.toString()}constructor(Y,Re){super(),this._elementRef=Y,this._parentChip=Re,this.isInteractive=!0,this._isPrimary=!0,this._disabled=!1,this._allowFocusWhenDisabled=!1,"BUTTON"===Y.nativeElement.nodeName&&Y.nativeElement.setAttribute("type","button")}focus(){this._elementRef.nativeElement.focus()}_handleClick(Y){!this.disabled&&this.isInteractive&&this._isPrimary&&(Y.preventDefault(),this._parentChip._handlePrimaryActionInteraction())}_handleKeydown(Y){(Y.keyCode===O.K5||Y.keyCode===O.L_)&&!this.disabled&&this.isInteractive&&this._isPrimary&&!this._parentChip._isEditing&&(Y.preventDefault(),this._parentChip._handlePrimaryActionInteraction())}}return Ke.\u0275fac=function(Y){return new(Y||Ke)(e.Y36(e.SBq),e.Y36(V))},Ke.\u0275dir=e.lG2({type:Ke,selectors:[["","matChipAction",""]],hostAttrs:[1,"mdc-evolution-chip__action","mat-mdc-chip-action"],hostVars:9,hostBindings:function(Y,Re){1&Y&&e.NdJ("click",function(Qe){return Re._handleClick(Qe)})("keydown",function(Qe){return Re._handleKeydown(Qe)}),2&Y&&(e.uIk("tabindex",Re._getTabindex())("disabled",Re._getDisabledAttribute())("aria-disabled",Re.disabled),e.ekj("mdc-evolution-chip__action--primary",Re._isPrimary)("mdc-evolution-chip__action--presentational",!Re.isInteractive)("mdc-evolution-chip__action--trailing",!Re._isPrimary))},inputs:{disabled:"disabled",tabIndex:"tabIndex",isInteractive:"isInteractive",_allowFocusWhenDisabled:"_allowFocusWhenDisabled"},features:[e.qOj]}),Ke})(),ye=0;const ce=(0,I.sb)((0,I.pj)((0,I.Kr)((0,I.Id)(class{constructor(Ke){this._elementRef=Ke}})),"primary"),-1);let ve=(()=>{class Ke extends ce{_hasFocus(){return this._hasFocusInternal}get value(){return void 0!==this._value?this._value:this._textElement.textContent.trim()}set value(Y){this._value=Y}get removable(){return this._removable}set removable(Y){this._removable=(0,t.Ig)(Y)}get highlighted(){return this._highlighted}set highlighted(Y){this._highlighted=(0,t.Ig)(Y)}constructor(Y,Re,Tt,Qe,Ye,Ht,Mt,kt){super(Re),this._changeDetectorRef=Y,this._ngZone=Tt,this._focusMonitor=Qe,this._globalRippleOptions=Mt,this._isRippleCentered=!1,this._onFocus=new C.x,this._onBlur=new C.x,this.role=null,this._hasFocusInternal=!1,this.id="mat-mdc-chip-"+ye++,this.ariaLabel=null,this.ariaDescription=null,this._ariaDescriptionId=`${this.id}-aria-description`,this._removable=!0,this._highlighted=!1,this.removed=new e.vpe,this.destroyed=new e.vpe,this.basicChipAttrName="mat-basic-chip";const _t=Re.nativeElement;this._document=Ye,this._animationsDisabled="NoopAnimations"===Ht,this._isBasicChip=_t.hasAttribute(this.basicChipAttrName)||_t.tagName.toLowerCase()===this.basicChipAttrName,null!=kt&&(this.tabIndex=parseInt(kt)??this.defaultTabIndex),this._monitorFocus()}ngAfterViewInit(){this._textElement=this._elementRef.nativeElement.querySelector(".mat-mdc-chip-action-label"),this._pendingFocus&&(this._pendingFocus=!1,this.focus())}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef),this.destroyed.emit({chip:this}),this.destroyed.complete()}remove(){this.removable&&this.removed.emit({chip:this})}_isRippleDisabled(){return this.disabled||this.disableRipple||this._animationsDisabled||this._isBasicChip||!!this._globalRippleOptions?.disabled}_hasTrailingIcon(){return!(!this.trailingIcon&&!this.removeIcon)}_handleKeydown(Y){(Y.keyCode===O.ZH||Y.keyCode===O.yY)&&(Y.preventDefault(),this.remove())}focus(){this.disabled||(this.primaryAction?this.primaryAction.focus():this._pendingFocus=!0)}_getSourceAction(Y){return this._getActions().find(Re=>{const Tt=Re._elementRef.nativeElement;return Tt===Y||Tt.contains(Y)})}_getActions(){const Y=[];return this.primaryAction&&Y.push(this.primaryAction),this.removeIcon&&Y.push(this.removeIcon),this.trailingIcon&&Y.push(this.trailingIcon),Y}_handlePrimaryActionInteraction(){}_monitorFocus(){this._focusMonitor.monitor(this._elementRef,!0).subscribe(Y=>{const Re=null!==Y;Re!==this._hasFocusInternal&&(this._hasFocusInternal=Re,Re?this._onFocus.next({chip:this}):this._ngZone.onStable.pipe((0,P.q)(1)).subscribe(()=>this._ngZone.run(()=>this._onBlur.next({chip:this}))))})}}return Ke.\u0275fac=function(Y){return new(Y||Ke)(e.Y36(e.sBO),e.Y36(e.SBq),e.Y36(e.R0b),e.Y36(s.tE),e.Y36(b.K0),e.Y36(e.QbO,8),e.Y36(I.Y2,8),e.$8M("tabindex"))},Ke.\u0275cmp=e.Xpm({type:Ke,selectors:[["mat-basic-chip"],["mat-chip"]],contentQueries:function(Y,Re,Tt){if(1&Y&&(e.Suo(Tt,n,5),e.Suo(Tt,_,5),e.Suo(Tt,B,5)),2&Y){let Qe;e.iGM(Qe=e.CRH())&&(Re.leadingIcon=Qe.first),e.iGM(Qe=e.CRH())&&(Re.trailingIcon=Qe.first),e.iGM(Qe=e.CRH())&&(Re.removeIcon=Qe.first)}},viewQuery:function(Y,Re){if(1&Y&&(e.Gf(I.wG,5),e.Gf($e,5)),2&Y){let Tt;e.iGM(Tt=e.CRH())&&(Re.ripple=Tt.first),e.iGM(Tt=e.CRH())&&(Re.primaryAction=Tt.first)}},hostAttrs:[1,"mat-mdc-chip"],hostVars:30,hostBindings:function(Y,Re){1&Y&&e.NdJ("keydown",function(Qe){return Re._handleKeydown(Qe)}),2&Y&&(e.Ikx("id",Re.id),e.uIk("role",Re.role)("tabindex",Re.role?Re.tabIndex:null)("aria-label",Re.ariaLabel),e.ekj("mdc-evolution-chip",!Re._isBasicChip)("mdc-evolution-chip--disabled",Re.disabled)("mdc-evolution-chip--with-trailing-action",Re._hasTrailingIcon())("mdc-evolution-chip--with-primary-graphic",Re.leadingIcon)("mdc-evolution-chip--with-primary-icon",Re.leadingIcon)("mdc-evolution-chip--with-avatar",Re.leadingIcon)("mat-mdc-chip-with-avatar",Re.leadingIcon)("mat-mdc-chip-highlighted",Re.highlighted)("mat-mdc-chip-disabled",Re.disabled)("mat-mdc-basic-chip",Re._isBasicChip)("mat-mdc-standard-chip",!Re._isBasicChip)("mat-mdc-chip-with-trailing-icon",Re._hasTrailingIcon())("_mat-animation-noopable",Re._animationsDisabled))},inputs:{color:"color",disabled:"disabled",disableRipple:"disableRipple",tabIndex:"tabIndex",role:"role",id:"id",ariaLabel:["aria-label","ariaLabel"],ariaDescription:["aria-description","ariaDescription"],value:"value",removable:"removable",highlighted:"highlighted"},outputs:{removed:"removed",destroyed:"destroyed"},exportAs:["matChip"],features:[e._Bn([{provide:V,useExisting:Ke}]),e.qOj],ngContentSelectors:ee,decls:9,vars:6,consts:[["matRipple","",1,"mat-mdc-chip-ripple",3,"matRippleDisabled","matRippleCentered","matRippleTrigger"],[1,"mat-mdc-chip-focus-overlay"],[1,"mdc-evolution-chip__cell","mdc-evolution-chip__cell--primary"],["matChipAction","",3,"isInteractive"],["class","mdc-evolution-chip__graphic mat-mdc-chip-graphic",4,"ngIf"],[1,"mdc-evolution-chip__text-label","mat-mdc-chip-action-label"],[1,"mat-mdc-chip-primary-focus-indicator","mat-mdc-focus-indicator"],["class","mdc-evolution-chip__cell mdc-evolution-chip__cell--trailing",4,"ngIf"],[1,"mdc-evolution-chip__graphic","mat-mdc-chip-graphic"],[1,"mdc-evolution-chip__cell","mdc-evolution-chip__cell--trailing"]],template:function(Y,Re){1&Y&&(e.F$t(K),e._UZ(0,"span",0)(1,"span",1),e.TgZ(2,"span",2)(3,"span",3),e.YNc(4,U,2,0,"span",4),e.TgZ(5,"span",5),e.Hsn(6),e._UZ(7,"span",6),e.qZA()()(),e.YNc(8,W,2,0,"span",7)),2&Y&&(e.Q6J("matRippleDisabled",Re._isRippleDisabled())("matRippleCentered",Re._isRippleCentered)("matRippleTrigger",Re._elementRef.nativeElement),e.xp6(3),e.Q6J("isInteractive",!1),e.xp6(1),e.Q6J("ngIf",Re.leadingIcon),e.xp6(4),e.Q6J("ngIf",Re._hasTrailingIcon()))},dependencies:[b.O5,I.wG,$e],styles:['.mdc-evolution-chip,.mdc-evolution-chip__cell,.mdc-evolution-chip__action{display:inline-flex;align-items:center}.mdc-evolution-chip{position:relative;max-width:100%}.mdc-evolution-chip .mdc-elevation-overlay{width:100%;height:100%;top:0;left:0}.mdc-evolution-chip__cell,.mdc-evolution-chip__action{height:100%}.mdc-evolution-chip__cell--primary{overflow-x:hidden}.mdc-evolution-chip__cell--trailing{flex:1 0 auto}.mdc-evolution-chip__action{align-items:center;background:none;border:none;box-sizing:content-box;cursor:pointer;display:inline-flex;justify-content:center;outline:none;padding:0;text-decoration:none;color:inherit}.mdc-evolution-chip__action--presentational{cursor:auto}.mdc-evolution-chip--disabled,.mdc-evolution-chip__action:disabled{pointer-events:none}.mdc-evolution-chip__action--primary{overflow-x:hidden}.mdc-evolution-chip__action--trailing{position:relative;overflow:visible}.mdc-evolution-chip__action--primary:before{box-sizing:border-box;content:"";height:100%;left:0;position:absolute;pointer-events:none;top:0;width:100%;z-index:1}.mdc-evolution-chip--touch{margin-top:8px;margin-bottom:8px}.mdc-evolution-chip__action-touch{position:absolute;top:50%;height:48px;left:0;right:0;transform:translateY(-50%)}.mdc-evolution-chip__text-label{white-space:nowrap;user-select:none;text-overflow:ellipsis;overflow:hidden}.mdc-evolution-chip__graphic{align-items:center;display:inline-flex;justify-content:center;overflow:hidden;pointer-events:none;position:relative;flex:1 0 auto}.mdc-evolution-chip__checkmark{position:absolute;opacity:0;top:50%;left:50%}.mdc-evolution-chip--selectable:not(.mdc-evolution-chip--selected):not(.mdc-evolution-chip--with-primary-icon) .mdc-evolution-chip__graphic{width:0}.mdc-evolution-chip__checkmark-background{opacity:0}.mdc-evolution-chip__checkmark-svg{display:block}.mdc-evolution-chip__checkmark-path{stroke-width:2px;stroke-dasharray:29.7833385;stroke-dashoffset:29.7833385;stroke:currentColor}.mdc-evolution-chip--selecting .mdc-evolution-chip__graphic{transition:width 150ms 0ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-evolution-chip--selecting .mdc-evolution-chip__checkmark{transition:transform 150ms 0ms cubic-bezier(0.4, 0, 0.2, 1);transform:translate(-75%, -50%)}.mdc-evolution-chip--selecting .mdc-evolution-chip__checkmark-path{transition:stroke-dashoffset 150ms 45ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-evolution-chip--deselecting .mdc-evolution-chip__graphic{transition:width 100ms 0ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-evolution-chip--deselecting .mdc-evolution-chip__checkmark{transition:opacity 50ms 0ms linear,transform 100ms 0ms cubic-bezier(0.4, 0, 0.2, 1);transform:translate(-75%, -50%)}.mdc-evolution-chip--deselecting .mdc-evolution-chip__checkmark-path{stroke-dashoffset:0}.mdc-evolution-chip--selecting-with-primary-icon .mdc-evolution-chip__icon--primary{transition:opacity 75ms 0ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-evolution-chip--selecting-with-primary-icon .mdc-evolution-chip__checkmark-path{transition:stroke-dashoffset 150ms 75ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-evolution-chip--deselecting-with-primary-icon .mdc-evolution-chip__icon--primary{transition:opacity 150ms 75ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-evolution-chip--deselecting-with-primary-icon .mdc-evolution-chip__checkmark{transition:opacity 75ms 0ms cubic-bezier(0.4, 0, 0.2, 1);transform:translate(-50%, -50%)}.mdc-evolution-chip--deselecting-with-primary-icon .mdc-evolution-chip__checkmark-path{stroke-dashoffset:0}.mdc-evolution-chip--selected .mdc-evolution-chip__icon--primary{opacity:0}.mdc-evolution-chip--selected .mdc-evolution-chip__checkmark{transform:translate(-50%, -50%);opacity:1}.mdc-evolution-chip--selected .mdc-evolution-chip__checkmark-path{stroke-dashoffset:0}@keyframes mdc-evolution-chip-enter{from{transform:scale(0.8);opacity:.4}to{transform:scale(1);opacity:1}}.mdc-evolution-chip--enter{animation:mdc-evolution-chip-enter 100ms 0ms cubic-bezier(0, 0, 0.2, 1)}@keyframes mdc-evolution-chip-exit{from{opacity:1}to{opacity:0}}.mdc-evolution-chip--exit{animation:mdc-evolution-chip-exit 75ms 0ms cubic-bezier(0.4, 0, 1, 1)}.mdc-evolution-chip--hidden{opacity:0;pointer-events:none;transition:width 150ms 0ms cubic-bezier(0.4, 0, 1, 1)}.mat-mdc-standard-chip .mdc-evolution-chip__checkmark{height:20px;width:20px}.mat-mdc-standard-chip .mdc-evolution-chip__icon--trailing{height:18px;width:18px;font-size:18px}.mat-mdc-standard-chip .mdc-evolution-chip__action--primary{padding-left:12px;padding-right:12px}[dir=rtl] .mat-mdc-standard-chip .mdc-evolution-chip__action--primary,.mat-mdc-standard-chip .mdc-evolution-chip__action--primary[dir=rtl]{padding-left:12px;padding-right:12px}.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__graphic{padding-left:6px;padding-right:6px}[dir=rtl] .mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__graphic,.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__graphic[dir=rtl]{padding-left:6px;padding-right:6px}.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__action--primary{padding-left:0;padding-right:12px}[dir=rtl] .mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__action--primary,.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__action--primary[dir=rtl]{padding-left:12px;padding-right:0}.mat-mdc-standard-chip.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--trailing{padding-left:8px;padding-right:8px}[dir=rtl] .mat-mdc-standard-chip.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--trailing,.mat-mdc-standard-chip.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--trailing[dir=rtl]{padding-left:8px;padding-right:8px}.mat-mdc-standard-chip.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__ripple--trailing{left:8px;right:initial}[dir=rtl] .mat-mdc-standard-chip.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__ripple--trailing,.mat-mdc-standard-chip.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__ripple--trailing[dir=rtl]{left:initial;right:8px}.mat-mdc-standard-chip.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary{padding-left:12px;padding-right:0}[dir=rtl] .mat-mdc-standard-chip.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary,.mat-mdc-standard-chip.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary[dir=rtl]{padding-left:0;padding-right:12px}.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__graphic{padding-left:6px;padding-right:6px}[dir=rtl] .mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__graphic,.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__graphic[dir=rtl]{padding-left:6px;padding-right:6px}.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--trailing{padding-left:8px;padding-right:8px}[dir=rtl] .mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--trailing,.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--trailing[dir=rtl]{padding-left:8px;padding-right:8px}.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__ripple--trailing{left:8px;right:initial}[dir=rtl] .mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__ripple--trailing,.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__ripple--trailing[dir=rtl]{left:initial;right:8px}.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary{padding-left:0;padding-right:0}[dir=rtl] .mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary,.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary[dir=rtl]{padding-left:0;padding-right:0}.mat-mdc-standard-chip.mdc-evolution-chip--disabled .mdc-evolution-chip__checkmark{color:var(--mdc-chip-with-icon-selected-icon-color, currentColor)}.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__graphic{padding-left:4px;padding-right:8px}[dir=rtl] .mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__graphic,.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__graphic[dir=rtl]{padding-left:8px;padding-right:4px}.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__action--primary{padding-left:0;padding-right:12px}[dir=rtl] .mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__action--primary,.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__action--primary[dir=rtl]{padding-left:12px;padding-right:0}.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__graphic{padding-left:4px;padding-right:8px}[dir=rtl] .mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__graphic,.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__graphic[dir=rtl]{padding-left:8px;padding-right:4px}.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--trailing{padding-left:8px;padding-right:8px}[dir=rtl] .mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--trailing,.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--trailing[dir=rtl]{padding-left:8px;padding-right:8px}.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__ripple--trailing{left:8px;right:initial}[dir=rtl] .mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__ripple--trailing,.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__ripple--trailing[dir=rtl]{left:initial;right:8px}.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary{padding-left:0;padding-right:0}[dir=rtl] .mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary,.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary[dir=rtl]{padding-left:0;padding-right:0}.mdc-evolution-chip--with-avatar.mdc-evolution-chip--selectable:not(.mdc-evolution-chip--with-primary-icon){--mdc-chip-graphic-selected-width:24px}.mdc-evolution-chip--with-avatar .mdc-evolution-chip__graphic{height:24px;width:24px;font-size:24px}.mdc-evolution-chip--with-avatar .mdc-evolution-chip__icon--primary{height:24px;width:24px;font-size:24px}.mat-mdc-standard-chip{-webkit-tap-highlight-color:rgba(0,0,0,0);border-radius:var(--mdc-chip-container-shape-radius, 16px 16px 16px 16px);height:var(--mdc-chip-container-height, 32px)}.mat-mdc-standard-chip .mdc-evolution-chip__ripple{border-radius:var(--mdc-chip-container-shape-radius, 16px 16px 16px 16px)}.mat-mdc-standard-chip .mdc-evolution-chip__action--primary:before{border-radius:var(--mdc-chip-container-shape-radius, 16px 16px 16px 16px)}.mat-mdc-standard-chip .mdc-evolution-chip__icon--primary{border-radius:var(--mdc-chip-with-avatar-avatar-shape-radius, 14px 14px 14px 14px)}.mat-mdc-standard-chip.mdc-evolution-chip--selectable:not(.mdc-evolution-chip--with-primary-icon){--mdc-chip-graphic-selected-width:var(--mdc-chip-with-avatar-avatar-size, 28px)}.mat-mdc-standard-chip .mdc-evolution-chip__graphic{height:var(--mdc-chip-with-avatar-avatar-size, 28px);width:var(--mdc-chip-with-avatar-avatar-size, 28px);font-size:var(--mdc-chip-with-avatar-avatar-size, 28px)}.mat-mdc-standard-chip .mdc-evolution-chip__action--primary:before{border-width:var(--mdc-chip-outline-width, 1px)}.mat-mdc-standard-chip .mdc-evolution-chip__action--primary:before{border-width:var(--mdc-chip-flat-outline-width, 1px)}.mat-mdc-standard-chip.mdc-evolution-chip--selected .mdc-evolution-chip__action--primary:before{border-width:var(--mdc-chip-flat-selected-outline-width, 0)}.mat-mdc-standard-chip:not(.mdc-evolution-chip--selected) .mdc-evolution-chip__action--primary:before{border-width:var(--mdc-chip-flat-unselected-outline-width, 1px)}.mat-mdc-standard-chip:not(.mdc-evolution-chip--disabled){background-color:var(--mdc-chip-elevated-container-color, transparent)}.mat-mdc-standard-chip.mdc-evolution-chip--disabled{background-color:var(--mdc-chip-elevated-disabled-container-color, transparent)}.mat-mdc-standard-chip.mdc-evolution-chip--selected.mdc-evolution-chip--disabled{background-color:var(--mdc-chip-elevated-disabled-container-color, transparent)}.mat-mdc-standard-chip:not(.mdc-evolution-chip--disabled) .mdc-evolution-chip__text-label{color:var(--mdc-chip-label-text-color, currentColor)}.mat-mdc-standard-chip.mdc-evolution-chip--disabled .mdc-evolution-chip__text-label{color:var(--mdc-chip-disabled-label-text-color, currentColor)}.mat-mdc-standard-chip.mdc-evolution-chip--selected.mdc-evolution-chip--disabled .mdc-evolution-chip__text-label{color:var(--mdc-chip-disabled-label-text-color, currentColor)}.mat-mdc-standard-chip .mdc-evolution-chip__icon--primary{height:var(--mdc-chip-with-icon-icon-size, 18px);width:var(--mdc-chip-with-icon-icon-size, 18px);font-size:var(--mdc-chip-with-icon-icon-size, 18px)}.mat-mdc-standard-chip:not(.mdc-evolution-chip--disabled) .mdc-evolution-chip__icon--primary{color:var(--mdc-chip-with-icon-icon-color, currentColor)}.mat-mdc-standard-chip.mdc-evolution-chip--disabled .mdc-evolution-chip__icon--primary{color:var(--mdc-chip-with-icon-disabled-icon-color, currentColor)}.mat-mdc-standard-chip:not(.mdc-evolution-chip--disabled) .mdc-evolution-chip__checkmark{color:var(--mdc-chip-with-icon-selected-icon-color, currentColor)}.mat-mdc-standard-chip.mdc-evolution-chip--disabled .mdc-evolution-chip__checkmark{color:var(--mdc-chip-with-icon-disabled-icon-color, currentColor)}.mat-mdc-standard-chip:not(.mdc-evolution-chip--disabled) .mdc-evolution-chip__icon--trailing{color:var(--mdc-chip-with-trailing-icon-trailing-icon-color, currentColor)}.mat-mdc-standard-chip.mdc-evolution-chip--disabled .mdc-evolution-chip__icon--trailing{color:var(--mdc-chip-with-trailing-icon-disabled-trailing-icon-color, currentColor)}.cdk-high-contrast-active .mat-mdc-standard-chip{outline:solid 1px}.cdk-high-contrast-active .mat-mdc-standard-chip .mdc-evolution-chip__checkmark-path{stroke:CanvasText !important}.mat-mdc-standard-chip.mdc-evolution-chip--disabled{opacity:.4}.mat-mdc-standard-chip .mdc-evolution-chip__cell--primary,.mat-mdc-standard-chip .mdc-evolution-chip__action--primary,.mat-mdc-standard-chip .mat-mdc-chip-action-label{overflow:visible}.mat-mdc-standard-chip .mdc-evolution-chip__cell--primary{width:100%}.mat-mdc-standard-chip .mdc-evolution-chip__action--primary{font:inherit;letter-spacing:inherit;white-space:inherit}.mat-mdc-standard-chip .mat-mdc-chip-graphic,.mat-mdc-standard-chip .mat-mdc-chip-trailing-icon{box-sizing:content-box}.mat-mdc-standard-chip._mat-animation-noopable,.mat-mdc-standard-chip._mat-animation-noopable .mdc-evolution-chip__graphic,.mat-mdc-standard-chip._mat-animation-noopable .mdc-evolution-chip__checkmark,.mat-mdc-standard-chip._mat-animation-noopable .mdc-evolution-chip__checkmark-path{transition-duration:1ms;animation-duration:1ms}.mat-mdc-chip-focus-overlay{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;opacity:0;border-radius:inherit;transition:opacity 150ms linear}._mat-animation-noopable .mat-mdc-chip-focus-overlay{transition:none}.mat-mdc-basic-chip .mat-mdc-chip-focus-overlay{display:none}.mat-mdc-chip:hover .mat-mdc-chip-focus-overlay{opacity:.04}.mat-mdc-chip.cdk-focused .mat-mdc-chip-focus-overlay{opacity:.12}.mat-mdc-chip-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-mdc-chip-avatar{text-align:center;line-height:1;color:var(--mdc-chip-with-icon-icon-color, currentColor)}.mat-mdc-chip{position:relative}.mat-mdc-chip-action-label{text-align:left;z-index:1}[dir=rtl] .mat-mdc-chip-action-label{text-align:right}.mat-mdc-chip.mdc-evolution-chip--with-trailing-action .mat-mdc-chip-action-label{position:relative}.mat-mdc-chip-action-label .mat-mdc-chip-primary-focus-indicator{position:absolute;top:0;right:0;bottom:0;left:0;pointer-events:none}.mat-mdc-chip-action-label .mat-mdc-focus-indicator::before{margin:calc(calc(var(--mat-mdc-focus-indicator-border-width, 3px) + 2px) * -1)}.mat-mdc-chip-remove{opacity:.54}.mat-mdc-chip-remove:focus{opacity:1}.mat-mdc-chip-remove::before{margin:calc(var(--mat-mdc-focus-indicator-border-width, 3px) * -1);left:8px;right:8px}.mat-mdc-chip-remove .mat-icon{width:inherit;height:inherit;font-size:inherit;box-sizing:content-box}.mat-chip-edit-input{cursor:text;display:inline-block;color:inherit;outline:0}.cdk-high-contrast-active .mat-mdc-chip-selected:not(.mat-mdc-chip-multiple){outline-width:3px}.mat-mdc-chip-action:focus .mat-mdc-focus-indicator::before{content:""}'],encapsulation:2,changeDetection:0}),Ke})(),ke=(()=>{class Ke{}return Ke.\u0275fac=function(Y){return new(Y||Ke)},Ke.\u0275mod=e.oAB({type:Ke}),Ke.\u0275inj=e.cJS({providers:[I.rD,{provide:m,useValue:{separatorKeyCodes:[O.K5]}}],imports:[I.BQ,b.ez,I.si,I.BQ]}),Ke})()},3238:(Ve,q,p)=>{"use strict";p.d(q,{yN:()=>ee,mZ:()=>ie,_A:()=>m,rD:()=>Fe,sG:()=>n,Ad:()=>T,K7:()=>xt,HF:()=>ot,Y2:()=>ft,BQ:()=>ne,uc:()=>ve,XK:()=>$e,ey:()=>Ye,Ng:()=>kt,rN:()=>Tt,us:()=>pt,wG:()=>Je,si:()=>dt,LF:()=>V,IR:()=>ae,CB:()=>Ht,jH:()=>Mt,pj:()=>i,Kr:()=>a,Id:()=>A,FD:()=>l,dB:()=>y,sb:()=>u});var t=p(4650),e=p(4761),b=p(445),s=p(6895),C=p(3353),h=p(1281),P=p(9751),d=p(7579),S=p(9521);const E=["text"];function R(_t,we){if(1&_t&&t._UZ(0,"mat-pseudo-checkbox",5),2&_t){const J=t.oxw();t.Q6J("state",J.selected?"checked":"unchecked")("disabled",J.disabled)}}function z(_t,we){if(1&_t&&(t.TgZ(0,"span",6),t._uU(1),t.qZA()),2&_t){const J=t.oxw();t.xp6(1),t.hij("(",J.group.label,")")}}const U=[[["mat-icon"]],"*"],W=["mat-icon","*"];let ee=(()=>{class _t{}return _t.STANDARD_CURVE="cubic-bezier(0.4,0.0,0.2,1)",_t.DECELERATION_CURVE="cubic-bezier(0.0,0.0,0.2,1)",_t.ACCELERATION_CURVE="cubic-bezier(0.4,0.0,1,1)",_t.SHARP_CURVE="cubic-bezier(0.4,0.0,0.6,1)",_t})(),ie=(()=>{class _t{}return _t.COMPLEX="375ms",_t.ENTERING="225ms",_t.EXITING="195ms",_t})();const le=new t.OlP("mat-sanity-checks",{providedIn:"root",factory:function ue(){return!0}});let ne=(()=>{class _t{constructor(J,be,He){this._sanityChecks=be,this._document=He,this._hasDoneGlobalChecks=!1,J._applyBodyHighContrastModeCssClasses(),this._hasDoneGlobalChecks||(this._hasDoneGlobalChecks=!0)}_checkIsEnabled(J){return!(0,C.Oy)()&&("boolean"==typeof this._sanityChecks?this._sanityChecks:!!this._sanityChecks[J])}}return _t.\u0275fac=function(J){return new(J||_t)(t.LFG(e.qm),t.LFG(le,8),t.LFG(s.K0))},_t.\u0275mod=t.oAB({type:_t}),_t.\u0275inj=t.cJS({imports:[b.vT,b.vT]}),_t})();function A(_t){return class extends _t{get disabled(){return this._disabled}set disabled(we){this._disabled=(0,h.Ig)(we)}constructor(...we){super(...we),this._disabled=!1}}}function i(_t,we){return class extends _t{get color(){return this._color}set color(J){const be=J||this.defaultColor;be!==this._color&&(this._color&&this._elementRef.nativeElement.classList.remove(`mat-${this._color}`),be&&this._elementRef.nativeElement.classList.add(`mat-${be}`),this._color=be)}constructor(...J){super(...J),this.defaultColor=we,this.color=we}}}function a(_t){return class extends _t{get disableRipple(){return this._disableRipple}set disableRipple(we){this._disableRipple=(0,h.Ig)(we)}constructor(...we){super(...we),this._disableRipple=!1}}}function u(_t,we=0){return class extends _t{get tabIndex(){return this.disabled?-1:this._tabIndex}set tabIndex(J){this._tabIndex=null!=J?(0,h.su)(J):this.defaultTabIndex}constructor(...J){super(...J),this._tabIndex=we,this.defaultTabIndex=we}}}function l(_t){return class extends _t{updateErrorState(){const we=this.errorState,at=(this.errorStateMatcher||this._defaultErrorStateMatcher).isErrorState(this.ngControl?this.ngControl.control:null,this._parentFormGroup||this._parentForm);at!==we&&(this.errorState=at,this.stateChanges.next())}constructor(...we){super(...we),this.errorState=!1}}}function y(_t){return class extends _t{constructor(...we){super(...we),this._isInitialized=!1,this._pendingSubscribers=[],this.initialized=new P.y(J=>{this._isInitialized?this._notifySubscriber(J):this._pendingSubscribers.push(J)})}_markInitialized(){this._isInitialized=!0,this._pendingSubscribers.forEach(this._notifySubscriber),this._pendingSubscribers=null}_notifySubscriber(we){we.next(),we.complete()}}}const T=new t.OlP("MAT_DATE_LOCALE",{providedIn:"root",factory:function L(){return(0,t.f3M)(t.soG)}});class m{constructor(){this._localeChanges=new d.x,this.localeChanges=this._localeChanges}getValidDateOrNull(we){return this.isDateInstance(we)&&this.isValid(we)?we:null}deserialize(we){return null==we||this.isDateInstance(we)&&this.isValid(we)?we:this.invalid()}setLocale(we){this.locale=we,this._localeChanges.next()}compareDate(we,J){return this.getYear(we)-this.getYear(J)||this.getMonth(we)-this.getMonth(J)||this.getDate(we)-this.getDate(J)}sameDate(we,J){if(we&&J){let be=this.isValid(we),He=this.isValid(J);return be&&He?!this.compareDate(we,J):be==He}return we==J}clampDate(we,J,be){return J&&this.compareDate(we,J)<0?J:be&&this.compareDate(we,be)>0?be:we}}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(_t,we){const J=Array(_t);for(let be=0;be<_t;be++)J[be]=we(be);return J}let V=(()=>{class _t extends m{constructor(J,be){super(),this.useUtcForDisplay=!1,super.setLocale(J)}getYear(J){return J.getFullYear()}getMonth(J){return J.getMonth()}getDate(J){return J.getDate()}getDayOfWeek(J){return J.getDay()}getMonthNames(J){const be=new Intl.DateTimeFormat(this.locale,{month:J,timeZone:"utc"});return B(12,He=>this._format(be,new Date(2017,He,1)))}getDateNames(){const J=new Intl.DateTimeFormat(this.locale,{day:"numeric",timeZone:"utc"});return B(31,be=>this._format(J,new Date(2017,0,be+1)))}getDayOfWeekNames(J){const be=new Intl.DateTimeFormat(this.locale,{weekday:J,timeZone:"utc"});return B(7,He=>this._format(be,new Date(2017,0,He+1)))}getYearName(J){const be=new Intl.DateTimeFormat(this.locale,{year:"numeric",timeZone:"utc"});return this._format(be,J)}getFirstDayOfWeek(){return 0}getNumDaysInMonth(J){return this.getDate(this._createDateWithOverflow(this.getYear(J),this.getMonth(J)+1,0))}clone(J){return new Date(J.getTime())}createDate(J,be,He){let at=this._createDateWithOverflow(J,be,He);return at.getMonth(),at}today(){return new Date}parse(J,be){return"number"==typeof J?new Date(J):J?new Date(Date.parse(J)):null}format(J,be){if(!this.isValid(J))throw Error("NativeDateAdapter: Cannot format invalid date.");const He=new Intl.DateTimeFormat(this.locale,{...be,timeZone:"utc"});return this._format(He,J)}addCalendarYears(J,be){return this.addCalendarMonths(J,12*be)}addCalendarMonths(J,be){let He=this._createDateWithOverflow(this.getYear(J),this.getMonth(J)+be,this.getDate(J));return this.getMonth(He)!=((this.getMonth(J)+be)%12+12)%12&&(He=this._createDateWithOverflow(this.getYear(He),this.getMonth(He),0)),He}addCalendarDays(J,be){return this._createDateWithOverflow(this.getYear(J),this.getMonth(J),this.getDate(J)+be)}toIso8601(J){return[J.getUTCFullYear(),this._2digit(J.getUTCMonth()+1),this._2digit(J.getUTCDate())].join("-")}deserialize(J){if("string"==typeof J){if(!J)return null;if(_.test(J)){let be=new Date(J);if(this.isValid(be))return be}}return super.deserialize(J)}isDateInstance(J){return J instanceof Date}isValid(J){return!isNaN(J.getTime())}invalid(){return new Date(NaN)}_createDateWithOverflow(J,be,He){const at=new Date;return at.setFullYear(J,be,He),at.setHours(0,0,0,0),at}_2digit(J){return("00"+J).slice(-2)}_format(J,be){const He=new Date;return He.setUTCFullYear(be.getFullYear(),be.getMonth(),be.getDate()),He.setUTCHours(be.getHours(),be.getMinutes(),be.getSeconds(),be.getMilliseconds()),J.format(He)}}return _t.\u0275fac=function(J){return new(J||_t)(t.LFG(T,8),t.LFG(C.t4))},_t.\u0275prov=t.Yz7({token:_t,factory:_t.\u0275fac}),_t})();const X={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 Le=(()=>{class _t{}return _t.\u0275fac=function(J){return new(J||_t)},_t.\u0275mod=t.oAB({type:_t}),_t.\u0275inj=t.cJS({providers:[{provide:m,useClass:V}]}),_t})(),$e=(()=>{class _t{}return _t.\u0275fac=function(J){return new(J||_t)},_t.\u0275mod=t.oAB({type:_t}),_t.\u0275inj=t.cJS({providers:[{provide:n,useValue:X}],imports:[Le]}),_t})(),Fe=(()=>{class _t{isErrorState(J,be){return!!(J&&J.invalid&&(J.touched||be&&be.submitted))}}return _t.\u0275fac=function(J){return new(J||_t)},_t.\u0275prov=t.Yz7({token:_t,factory:_t.\u0275fac,providedIn:"root"}),_t})(),ve=(()=>{class _t{}return _t.\u0275fac=function(J){return new(J||_t)},_t.\u0275mod=t.oAB({type:_t}),_t.\u0275inj=t.cJS({imports:[ne,ne]}),_t})();class oe{constructor(we,J,be,He=!1){this._renderer=we,this.element=J,this.config=be,this._animationForciblyDisabledThroughCss=He,this.state=3}fadeOut(){this._renderer.fadeOutRipple(this)}}const je=(0,C.i$)({passive:!0,capture:!0});class Ae{constructor(){this._events=new Map,this._delegateEventHandler=we=>{const J=(0,C.sA)(we);J&&this._events.get(we.type)?.forEach((be,He)=>{(He===J||He.contains(J))&&be.forEach(at=>at.handleEvent(we))})}}addHandler(we,J,be,He){const at=this._events.get(J);if(at){const ii=at.get(be);ii?ii.add(He):at.set(be,new Set([He]))}else this._events.set(J,new Map([[be,new Set([He])]])),we.runOutsideAngular(()=>{document.addEventListener(J,this._delegateEventHandler,je)})}removeHandler(we,J,be){const He=this._events.get(we);if(!He)return;const at=He.get(J);at&&(at.delete(be),0===at.size&&He.delete(J),0===He.size&&(this._events.delete(we),document.removeEventListener(we,this._delegateEventHandler,je)))}}const he={enterDuration:225,exitDuration:150},te=(0,C.i$)({passive:!0,capture:!0}),Ue=["mousedown","touchstart"],Be=["mouseup","mouseleave","touchend","touchcancel"];class ae{constructor(we,J,be,He){this._target=we,this._ngZone=J,this._platform=He,this._isPointerDown=!1,this._activeRipples=new Map,this._pointerUpEventsRegistered=!1,He.isBrowser&&(this._containerElement=(0,h.fI)(be))}fadeInRipple(we,J,be={}){const He=this._containerRect=this._containerRect||this._containerElement.getBoundingClientRect(),at={...he,...be.animation};be.centered&&(we=He.left+He.width/2,J=He.top+He.height/2);const ii=be.radius||function ge(_t,we,J){const be=Math.max(Math.abs(_t-J.left),Math.abs(_t-J.right)),He=Math.max(Math.abs(we-J.top),Math.abs(we-J.bottom));return Math.sqrt(be*be+He*He)}(we,J,He),Gt=we-He.left,ni=J-He.top,ut=at.enterDuration,tt=document.createElement("div");tt.classList.add("mat-ripple-element"),tt.style.left=Gt-ii+"px",tt.style.top=ni-ii+"px",tt.style.height=2*ii+"px",tt.style.width=2*ii+"px",null!=be.color&&(tt.style.backgroundColor=be.color),tt.style.transitionDuration=`${ut}ms`,this._containerElement.appendChild(tt);const vt=window.getComputedStyle(tt),Ut=vt.transitionDuration,ht="none"===vt.transitionProperty||"0s"===Ut||"0s, 0s"===Ut||0===He.width&&0===He.height,Rt=new oe(this,tt,be,ht);tt.style.transform="scale3d(1, 1, 1)",Rt.state=0,be.persistent||(this._mostRecentTransientRipple=Rt);let Oe=null;return!ht&&(ut||at.exitDuration)&&this._ngZone.runOutsideAngular(()=>{const et=()=>this._finishRippleTransition(Rt),it=()=>this._destroyRipple(Rt);tt.addEventListener("transitionend",et),tt.addEventListener("transitioncancel",it),Oe={onTransitionEnd:et,onTransitionCancel:it}}),this._activeRipples.set(Rt,Oe),(ht||!ut)&&this._finishRippleTransition(Rt),Rt}fadeOutRipple(we){if(2===we.state||3===we.state)return;const J=we.element,be={...he,...we.config.animation};J.style.transitionDuration=`${be.exitDuration}ms`,J.style.opacity="0",we.state=2,(we._animationForciblyDisabledThroughCss||!be.exitDuration)&&this._finishRippleTransition(we)}fadeOutAll(){this._getActiveRipples().forEach(we=>we.fadeOut())}fadeOutAllNonPersistent(){this._getActiveRipples().forEach(we=>{we.config.persistent||we.fadeOut()})}setupTriggerEvents(we){const J=(0,h.fI)(we);!this._platform.isBrowser||!J||J===this._triggerElement||(this._removeTriggerEvents(),this._triggerElement=J,Ue.forEach(be=>{ae._eventManager.addHandler(this._ngZone,be,J,this)}))}handleEvent(we){"mousedown"===we.type?this._onMousedown(we):"touchstart"===we.type?this._onTouchStart(we):this._onPointerUp(),this._pointerUpEventsRegistered||(this._ngZone.runOutsideAngular(()=>{Be.forEach(J=>{this._triggerElement.addEventListener(J,this,te)})}),this._pointerUpEventsRegistered=!0)}_finishRippleTransition(we){0===we.state?this._startFadeOutTransition(we):2===we.state&&this._destroyRipple(we)}_startFadeOutTransition(we){const J=we===this._mostRecentTransientRipple,{persistent:be}=we.config;we.state=1,!be&&(!J||!this._isPointerDown)&&we.fadeOut()}_destroyRipple(we){const J=this._activeRipples.get(we)??null;this._activeRipples.delete(we),this._activeRipples.size||(this._containerRect=null),we===this._mostRecentTransientRipple&&(this._mostRecentTransientRipple=null),we.state=3,null!==J&&(we.element.removeEventListener("transitionend",J.onTransitionEnd),we.element.removeEventListener("transitioncancel",J.onTransitionCancel)),we.element.remove()}_onMousedown(we){const J=(0,e.X6)(we),be=this._lastTouchStartEvent&&Date.now()<this._lastTouchStartEvent+800;!this._target.rippleDisabled&&!J&&!be&&(this._isPointerDown=!0,this.fadeInRipple(we.clientX,we.clientY,this._target.rippleConfig))}_onTouchStart(we){if(!this._target.rippleDisabled&&!(0,e.yG)(we)){this._lastTouchStartEvent=Date.now(),this._isPointerDown=!0;const J=we.changedTouches;for(let be=0;be<J.length;be++)this.fadeInRipple(J[be].clientX,J[be].clientY,this._target.rippleConfig)}}_onPointerUp(){this._isPointerDown&&(this._isPointerDown=!1,this._getActiveRipples().forEach(we=>{!we.config.persistent&&(1===we.state||we.config.terminateOnPointerUp&&0===we.state)&&we.fadeOut()}))}_getActiveRipples(){return Array.from(this._activeRipples.keys())}_removeTriggerEvents(){const we=this._triggerElement;we&&(Ue.forEach(J=>ae._eventManager.removeHandler(J,we,this)),this._pointerUpEventsRegistered&&Be.forEach(J=>we.removeEventListener(J,this,te)))}}ae._eventManager=new Ae;const ft=new t.OlP("mat-ripple-global-options");let Je=(()=>{class _t{get disabled(){return this._disabled}set disabled(J){J&&this.fadeOutAllNonPersistent(),this._disabled=J,this._setupTriggerEventsIfEnabled()}get trigger(){return this._trigger||this._elementRef.nativeElement}set trigger(J){this._trigger=J,this._setupTriggerEventsIfEnabled()}constructor(J,be,He,at,ii){this._elementRef=J,this._animationMode=ii,this.radius=0,this._disabled=!1,this._isInitialized=!1,this._globalOptions=at||{},this._rippleRenderer=new ae(this,be,J,He)}ngOnInit(){this._isInitialized=!0,this._setupTriggerEventsIfEnabled()}ngOnDestroy(){this._rippleRenderer._removeTriggerEvents()}fadeOutAll(){this._rippleRenderer.fadeOutAll()}fadeOutAllNonPersistent(){this._rippleRenderer.fadeOutAllNonPersistent()}get rippleConfig(){return{centered:this.centered,radius:this.radius,color:this.color,animation:{...this._globalOptions.animation,..."NoopAnimations"===this._animationMode?{enterDuration:0,exitDuration:0}:{},...this.animation},terminateOnPointerUp:this._globalOptions.terminateOnPointerUp}}get rippleDisabled(){return this.disabled||!!this._globalOptions.disabled}_setupTriggerEventsIfEnabled(){!this.disabled&&this._isInitialized&&this._rippleRenderer.setupTriggerEvents(this.trigger)}launch(J,be=0,He){return"number"==typeof J?this._rippleRenderer.fadeInRipple(J,be,{...this.rippleConfig,...He}):this._rippleRenderer.fadeInRipple(0,0,{...this.rippleConfig,...J})}}return _t.\u0275fac=function(J){return new(J||_t)(t.Y36(t.SBq),t.Y36(t.R0b),t.Y36(C.t4),t.Y36(ft,8),t.Y36(t.QbO,8))},_t.\u0275dir=t.lG2({type:_t,selectors:[["","mat-ripple",""],["","matRipple",""]],hostAttrs:[1,"mat-ripple"],hostVars:2,hostBindings:function(J,be){2&J&&t.ekj("mat-ripple-unbounded",be.unbounded)},inputs:{color:["matRippleColor","color"],unbounded:["matRippleUnbounded","unbounded"],centered:["matRippleCentered","centered"],radius:["matRippleRadius","radius"],animation:["matRippleAnimation","animation"],disabled:["matRippleDisabled","disabled"],trigger:["matRippleTrigger","trigger"]},exportAs:["matRipple"]}),_t})(),dt=(()=>{class _t{}return _t.\u0275fac=function(J){return new(J||_t)},_t.\u0275mod=t.oAB({type:_t}),_t.\u0275inj=t.cJS({imports:[ne,ne]}),_t})(),Et=(()=>{class _t{constructor(J){this._animationMode=J,this.state="unchecked",this.disabled=!1}}return _t.\u0275fac=function(J){return new(J||_t)(t.Y36(t.QbO,8))},_t.\u0275cmp=t.Xpm({type:_t,selectors:[["mat-pseudo-checkbox"]],hostAttrs:[1,"mat-pseudo-checkbox"],hostVars:8,hostBindings:function(J,be){2&J&&t.ekj("mat-pseudo-checkbox-indeterminate","indeterminate"===be.state)("mat-pseudo-checkbox-checked","checked"===be.state)("mat-pseudo-checkbox-disabled",be.disabled)("_mat-animation-noopable","NoopAnimations"===be._animationMode)},inputs:{state:"state",disabled:"disabled"},decls:0,vars:0,template:function(J,be){},styles:['.mat-pseudo-checkbox{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:rgba(0,0,0,0)}.mat-pseudo-checkbox._mat-animation-noopable{transition:none !important;animation:none !important}.mat-pseudo-checkbox._mat-animation-noopable::after{transition:none}.mat-pseudo-checkbox-disabled{cursor:default}.mat-pseudo-checkbox-indeterminate::after{left:1px;opacity:1;border-radius:2px}.mat-pseudo-checkbox-checked::after{left:1px;border-left:2px solid currentColor;transform:rotate(-45deg);opacity:1;box-sizing:content-box}.mat-pseudo-checkbox{width:18px;height:18px}.mat-pseudo-checkbox-indeterminate::after{top:6px;width:12px}.mat-pseudo-checkbox-checked::after{top:2.7px;width:10px;height:4px}'],encapsulation:2,changeDetection:0}),_t})(),pt=(()=>{class _t{}return _t.\u0275fac=function(J){return new(J||_t)},_t.\u0275mod=t.oAB({type:_t}),_t.\u0275inj=t.cJS({imports:[ne]}),_t})();const ot=new t.OlP("MAT_OPTION_PARENT_COMPONENT"),xt=new t.OlP("MatOptgroup");let Re=0;class Tt{constructor(we,J=!1){this.source=we,this.isUserInput=J}}let Qe=(()=>{class _t{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(J){this._disabled=(0,h.Ig)(J)}get disableRipple(){return!(!this._parent||!this._parent.disableRipple)}constructor(J,be,He,at){this._element=J,this._changeDetectorRef=be,this._parent=He,this.group=at,this._selected=!1,this._active=!1,this._disabled=!1,this._mostRecentViewValue="",this.id="mat-option-"+Re++,this.onSelectionChange=new t.vpe,this._stateChanges=new d.x}get active(){return this._active}get viewValue(){return(this._text?.nativeElement.textContent||"").trim()}select(){this._selected||(this._selected=!0,this._changeDetectorRef.markForCheck(),this._emitSelectionChangeEvent())}deselect(){this._selected&&(this._selected=!1,this._changeDetectorRef.markForCheck(),this._emitSelectionChangeEvent())}focus(J,be){const He=this._getHostElement();"function"==typeof He.focus&&He.focus(be)}setActiveStyles(){this._active||(this._active=!0,this._changeDetectorRef.markForCheck())}setInactiveStyles(){this._active&&(this._active=!1,this._changeDetectorRef.markForCheck())}getLabel(){return this.viewValue}_handleKeydown(J){(J.keyCode===S.K5||J.keyCode===S.L_)&&!(0,S.Vb)(J)&&(this._selectViaInteraction(),J.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 J=this.viewValue;J!==this._mostRecentViewValue&&(this._mostRecentViewValue&&this._stateChanges.next(),this._mostRecentViewValue=J)}}ngOnDestroy(){this._stateChanges.complete()}_emitSelectionChangeEvent(J=!1){this.onSelectionChange.emit(new Tt(this,J))}}return _t.\u0275fac=function(J){t.$Z()},_t.\u0275dir=t.lG2({type:_t,viewQuery:function(J,be){if(1&J&&t.Gf(E,7),2&J){let He;t.iGM(He=t.CRH())&&(be._text=He.first)}},inputs:{value:"value",id:"id",disabled:"disabled"},outputs:{onSelectionChange:"onSelectionChange"}}),_t})(),Ye=(()=>{class _t extends Qe{constructor(J,be,He,at){super(J,be,He,at)}}return _t.\u0275fac=function(J){return new(J||_t)(t.Y36(t.SBq),t.Y36(t.sBO),t.Y36(ot,8),t.Y36(xt,8))},_t.\u0275cmp=t.Xpm({type:_t,selectors:[["mat-option"]],hostAttrs:["role","option",1,"mat-mdc-option","mat-mdc-focus-indicator","mdc-list-item"],hostVars:12,hostBindings:function(J,be){1&J&&t.NdJ("click",function(){return be._selectViaInteraction()})("keydown",function(at){return be._handleKeydown(at)}),2&J&&(t.Ikx("id",be.id),t.uIk("tabindex",be._getTabIndex())("aria-selected",be._getAriaSelected())("aria-disabled",be.disabled.toString()),t.ekj("mdc-list-item--selected",be.selected)("mat-mdc-option-multiple",be.multiple)("mat-mdc-option-active",be.active)("mdc-list-item--disabled",be.disabled))},exportAs:["matOption"],features:[t.qOj],ngContentSelectors:W,decls:7,vars:4,consts:[["class","mat-mdc-option-pseudo-checkbox",3,"state","disabled",4,"ngIf"],[1,"mdc-list-item__primary-text"],["text",""],["class","cdk-visually-hidden",4,"ngIf"],["mat-ripple","",1,"mat-mdc-option-ripple",3,"matRippleTrigger","matRippleDisabled"],[1,"mat-mdc-option-pseudo-checkbox",3,"state","disabled"],[1,"cdk-visually-hidden"]],template:function(J,be){1&J&&(t.F$t(U),t.YNc(0,R,1,2,"mat-pseudo-checkbox",0),t.Hsn(1),t.TgZ(2,"span",1,2),t.Hsn(4,1),t.qZA(),t.YNc(5,z,2,1,"span",3),t._UZ(6,"div",4)),2&J&&(t.Q6J("ngIf",be.multiple),t.xp6(5),t.Q6J("ngIf",be.group&&be.group._inert),t.xp6(1),t.Q6J("matRippleTrigger",be._getHostElement())("matRippleDisabled",be.disabled||be.disableRipple))},dependencies:[Je,s.O5,Et],styles:['.mat-mdc-option{display:flex;position:relative;align-items:center;justify-content:flex-start;overflow:hidden;padding:0;padding-left:16px;padding-right:16px;-webkit-user-select:none;user-select:none;cursor:pointer;-webkit-tap-highlight-color:rgba(0,0,0,0);min-height:48px}.mat-mdc-option:focus{outline:none}[dir=rtl] .mat-mdc-option,.mat-mdc-option[dir=rtl]{padding-left:16px;padding-right:16px}.mat-mdc-option.mdc-list-item{align-items:center}.mat-mdc-option.mdc-list-item--disabled{opacity:.38;cursor:default}.mat-mdc-optgroup .mat-mdc-option:not(.mat-mdc-option-multiple){padding-left:32px}[dir=rtl] .mat-mdc-optgroup .mat-mdc-option:not(.mat-mdc-option-multiple){padding-left:16px;padding-right:32px}.mat-mdc-option .mat-icon,.mat-mdc-option .mat-pseudo-checkbox{margin-right:16px;flex-shrink:0}[dir=rtl] .mat-mdc-option .mat-icon,[dir=rtl] .mat-mdc-option .mat-pseudo-checkbox{margin-right:0;margin-left:16px}.mat-mdc-option .mat-mdc-option-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-mdc-option .mdc-list-item__primary-text{white-space:normal;font-size:inherit;font-weight:inherit;letter-spacing:inherit;line-height:inherit;font-family:inherit;text-decoration:inherit;text-transform:inherit}.cdk-high-contrast-active .mat-mdc-option.mdc-list-item--selected:not(.mat-mdc-option-multiple)::after{content:"";position:absolute;top:50%;right:16px;transform:translateY(-50%);width:10px;height:0;border-bottom:solid 10px;border-radius:10px}[dir=rtl] .cdk-high-contrast-active .mat-mdc-option.mdc-list-item--selected:not(.mat-mdc-option-multiple)::after{right:auto;left:16px}.mat-mdc-option-active::before{content:""}'],encapsulation:2,changeDetection:0}),_t})();function Ht(_t,we,J){if(J.length){let be=we.toArray(),He=J.toArray(),at=0;for(let ii=0;ii<_t+1;ii++)be[ii].group&&be[ii].group===He[at]&&at++;return at}return 0}function Mt(_t,we,J,be){return _t<J?_t:_t+we>J+be?Math.max(0,_t-be+we):J}let kt=(()=>{class _t{}return _t.\u0275fac=function(J){return new(J||_t)},_t.\u0275mod=t.oAB({type:_t}),_t.\u0275inj=t.cJS({imports:[dt,s.ez,ne,pt]}),_t})()},9602:(Ve,q,p)=>{"use strict";p.d(q,{FA:()=>Ji,Mq:()=>tt,hl:()=>Oe,nW:()=>it});var t=p(4761),e=p(8184),b=p(4080),I=p(6895),s=p(4650),C=p(4859),h=p(531),P=p(3238),d=p(7579),S=p(727),w=p(6451),O=p(9646),E=p(9521),R=p(445),z=p(5698),U=p(8675),W=p(9300),K=p(1281),ee=p(3353),ie=p(7340),ue=p(4006),le=p(9549),ne=p(4144);const de=["mat-calendar-body",""];function $(Wt,Jt){if(1&Wt&&(s.TgZ(0,"tr",3)(1,"td",4),s._uU(2),s.qZA()()),2&Wt){const fe=s.oxw();s.xp6(1),s.Udp("padding-top",fe._cellPadding)("padding-bottom",fe._cellPadding),s.uIk("colspan",fe.numCols),s.xp6(1),s.hij(" ",fe.label," ")}}function me(Wt,Jt){if(1&Wt&&(s.TgZ(0,"td",4),s._uU(1),s.qZA()),2&Wt){const fe=s.oxw(2);s.Udp("padding-top",fe._cellPadding)("padding-bottom",fe._cellPadding),s.uIk("colspan",fe._firstRowOffset),s.xp6(1),s.hij(" ",fe._firstRowOffset>=fe.labelMinRequiredCells?fe.label:""," ")}}function A(Wt,Jt){if(1&Wt){const fe=s.EpF();s.TgZ(0,"td",8)(1,"button",9),s.NdJ("click",function(It){const zt=s.CHM(fe).$implicit,oi=s.oxw(2);return s.KtG(oi._cellClicked(zt,It))})("focus",function(It){const zt=s.CHM(fe).$implicit,oi=s.oxw(2);return s.KtG(oi._emitActiveDateChange(zt,It))}),s.TgZ(2,"div",10),s._uU(3),s.qZA(),s._UZ(4,"div",11),s.qZA()()}if(2&Wt){const fe=Jt.$implicit,lt=Jt.index,It=s.oxw().index,Bt=s.oxw();s.Udp("width",Bt._cellWidth)("padding-top",Bt._cellPadding)("padding-bottom",Bt._cellPadding),s.uIk("data-mat-row",It)("data-mat-col",lt),s.xp6(1),s.ekj("mat-calendar-body-disabled",!fe.enabled)("mat-calendar-body-active",Bt._isActiveCell(It,lt))("mat-calendar-body-range-start",Bt._isRangeStart(fe.compareValue))("mat-calendar-body-range-end",Bt._isRangeEnd(fe.compareValue))("mat-calendar-body-in-range",Bt._isInRange(fe.compareValue))("mat-calendar-body-comparison-bridge-start",Bt._isComparisonBridgeStart(fe.compareValue,It,lt))("mat-calendar-body-comparison-bridge-end",Bt._isComparisonBridgeEnd(fe.compareValue,It,lt))("mat-calendar-body-comparison-start",Bt._isComparisonStart(fe.compareValue))("mat-calendar-body-comparison-end",Bt._isComparisonEnd(fe.compareValue))("mat-calendar-body-in-comparison-range",Bt._isInComparisonRange(fe.compareValue))("mat-calendar-body-preview-start",Bt._isPreviewStart(fe.compareValue))("mat-calendar-body-preview-end",Bt._isPreviewEnd(fe.compareValue))("mat-calendar-body-in-preview",Bt._isInPreview(fe.compareValue)),s.Q6J("ngClass",fe.cssClasses)("tabindex",Bt._isActiveCell(It,lt)?0:-1),s.uIk("aria-label",fe.ariaLabel)("aria-disabled",!fe.enabled||null)("aria-pressed",Bt._isSelected(fe.compareValue))("aria-current",Bt.todayValue===fe.compareValue?"date":null)("aria-describedby",Bt._getDescribedby(fe.compareValue)),s.xp6(1),s.ekj("mat-calendar-body-selected",Bt._isSelected(fe.compareValue))("mat-calendar-body-comparison-identical",Bt._isComparisonIdentical(fe.compareValue))("mat-calendar-body-today",Bt.todayValue===fe.compareValue),s.xp6(1),s.hij(" ",fe.displayValue," ")}}function i(Wt,Jt){if(1&Wt&&(s.TgZ(0,"tr",5),s.YNc(1,me,2,6,"td",6),s.YNc(2,A,5,48,"td",7),s.qZA()),2&Wt){const fe=Jt.$implicit,lt=Jt.index,It=s.oxw();s.xp6(1),s.Q6J("ngIf",0===lt&&It._firstRowOffset),s.xp6(1),s.Q6J("ngForOf",fe)}}function a(Wt,Jt){if(1&Wt&&(s.TgZ(0,"th",5)(1,"span",6),s._uU(2),s.qZA(),s.TgZ(3,"span",7),s._uU(4),s.qZA()()),2&Wt){const fe=Jt.$implicit;s.xp6(2),s.Oqu(fe.long),s.xp6(2),s.Oqu(fe.narrow)}}const u=["*"];function l(Wt,Jt){}function y(Wt,Jt){if(1&Wt){const fe=s.EpF();s.TgZ(0,"mat-month-view",5),s.NdJ("activeDateChange",function(It){s.CHM(fe);const Bt=s.oxw();return s.KtG(Bt.activeDate=It)})("_userSelection",function(It){s.CHM(fe);const Bt=s.oxw();return s.KtG(Bt._dateSelected(It))})("dragStarted",function(It){s.CHM(fe);const Bt=s.oxw();return s.KtG(Bt._dragStarted(It))})("dragEnded",function(It){s.CHM(fe);const Bt=s.oxw();return s.KtG(Bt._dragEnded(It))}),s.qZA()}if(2&Wt){const fe=s.oxw();s.Q6J("activeDate",fe.activeDate)("selected",fe.selected)("dateFilter",fe.dateFilter)("maxDate",fe.maxDate)("minDate",fe.minDate)("dateClass",fe.dateClass)("comparisonStart",fe.comparisonStart)("comparisonEnd",fe.comparisonEnd)("startDateAccessibleName",fe.startDateAccessibleName)("endDateAccessibleName",fe.endDateAccessibleName)("activeDrag",fe._activeDrag)}}function T(Wt,Jt){if(1&Wt){const fe=s.EpF();s.TgZ(0,"mat-year-view",6),s.NdJ("activeDateChange",function(It){s.CHM(fe);const Bt=s.oxw();return s.KtG(Bt.activeDate=It)})("monthSelected",function(It){s.CHM(fe);const Bt=s.oxw();return s.KtG(Bt._monthSelectedInYearView(It))})("selectedChange",function(It){s.CHM(fe);const Bt=s.oxw();return s.KtG(Bt._goToDateInView(It,"month"))}),s.qZA()}if(2&Wt){const fe=s.oxw();s.Q6J("activeDate",fe.activeDate)("selected",fe.selected)("dateFilter",fe.dateFilter)("maxDate",fe.maxDate)("minDate",fe.minDate)("dateClass",fe.dateClass)}}function L(Wt,Jt){if(1&Wt){const fe=s.EpF();s.TgZ(0,"mat-multi-year-view",7),s.NdJ("activeDateChange",function(It){s.CHM(fe);const Bt=s.oxw();return s.KtG(Bt.activeDate=It)})("yearSelected",function(It){s.CHM(fe);const Bt=s.oxw();return s.KtG(Bt._yearSelectedInMultiYearView(It))})("selectedChange",function(It){s.CHM(fe);const Bt=s.oxw();return s.KtG(Bt._goToDateInView(It,"year"))}),s.qZA()}if(2&Wt){const fe=s.oxw();s.Q6J("activeDate",fe.activeDate)("selected",fe.selected)("dateFilter",fe.dateFilter)("maxDate",fe.maxDate)("minDate",fe.minDate)("dateClass",fe.dateClass)}}function m(Wt,Jt){}const n=["button"];function _(Wt,Jt){1&Wt&&(s.O4$(),s.TgZ(0,"svg",3),s._UZ(1,"path",4),s.qZA())}const B=[[["","matDatepickerToggleIcon",""]]],V=["[matDatepickerToggleIcon]"];let Fe=(()=>{class Wt{constructor(){this.changes=new d.x,this.calendarLabel="Calendar",this.openCalendarLabel="Open calendar",this.closeCalendarLabel="Close calendar",this.prevMonthLabel="Previous month",this.nextMonthLabel="Next month",this.prevYearLabel="Previous year",this.nextYearLabel="Next year",this.prevMultiYearLabel="Previous 24 years",this.nextMultiYearLabel="Next 24 years",this.switchToMonthViewLabel="Choose date",this.switchToMultiYearViewLabel="Choose month and year",this.startDateLabel="Start date",this.endDateLabel="End date"}formatYearRange(fe,lt){return`${fe} \u2013 ${lt}`}formatYearRangeLabel(fe,lt){return`${fe} to ${lt}`}}return Wt.\u0275fac=function(fe){return new(fe||Wt)},Wt.\u0275prov=s.Yz7({token:Wt,factory:Wt.\u0275fac,providedIn:"root"}),Wt})();class De{constructor(Jt,fe,lt,It,Bt={},zt=Jt,oi){this.value=Jt,this.displayValue=fe,this.ariaLabel=lt,this.enabled=It,this.cssClasses=Bt,this.compareValue=zt,this.rawValue=oi}}let ye=1,ce=(()=>{class Wt{ngAfterViewChecked(){this._focusActiveCellAfterViewChecked&&(this._focusActiveCell(),this._focusActiveCellAfterViewChecked=!1)}constructor(fe,lt){this._elementRef=fe,this._ngZone=lt,this._focusActiveCellAfterViewChecked=!1,this.numCols=7,this.activeCell=0,this.isRange=!1,this.cellAspectRatio=1,this.previewStart=null,this.previewEnd=null,this.selectedValueChange=new s.vpe,this.previewChange=new s.vpe,this.activeDateChange=new s.vpe,this.dragStarted=new s.vpe,this.dragEnded=new s.vpe,this._didDragSinceMouseDown=!1,this._enterHandler=It=>{if(this._skipNextFocus&&"focus"===It.type)this._skipNextFocus=!1;else if(It.target&&this.isRange){const Bt=this._getCellFromElement(It.target);Bt&&this._ngZone.run(()=>this.previewChange.emit({value:Bt.enabled?Bt:null,event:It}))}},this._touchmoveHandler=It=>{if(!this.isRange)return;const Bt=Ce(It),zt=Bt?this._getCellFromElement(Bt):null;Bt!==It.target&&(this._didDragSinceMouseDown=!0),oe(It.target)&&It.preventDefault(),this._ngZone.run(()=>this.previewChange.emit({value:zt?.enabled?zt:null,event:It}))},this._leaveHandler=It=>{null!==this.previewEnd&&this.isRange&&("blur"!==It.type&&(this._didDragSinceMouseDown=!0),It.target&&this._getCellFromElement(It.target)&&(!It.relatedTarget||!this._getCellFromElement(It.relatedTarget))&&this._ngZone.run(()=>this.previewChange.emit({value:null,event:It})))},this._mousedownHandler=It=>{if(!this.isRange)return;this._didDragSinceMouseDown=!1;const Bt=It.target&&this._getCellFromElement(It.target);!Bt||!this._isInRange(Bt.rawValue)||this._ngZone.run(()=>{this.dragStarted.emit({value:Bt.rawValue,event:It})})},this._mouseupHandler=It=>{if(!this.isRange)return;const Bt=oe(It.target);Bt?Bt.closest(".mat-calendar-body")===this._elementRef.nativeElement&&this._ngZone.run(()=>{const zt=this._getCellFromElement(Bt);this.dragEnded.emit({value:zt?.rawValue??null,event:It})}):this._ngZone.run(()=>{this.dragEnded.emit({value:null,event:It})})},this._touchendHandler=It=>{const Bt=Ce(It);Bt&&this._mouseupHandler({target:Bt})},this._id="mat-calendar-body-"+ye++,this._startDateLabelId=`${this._id}-start-date`,this._endDateLabelId=`${this._id}-end-date`,lt.runOutsideAngular(()=>{const It=fe.nativeElement;It.addEventListener("mouseenter",this._enterHandler,!0),It.addEventListener("touchmove",this._touchmoveHandler,!0),It.addEventListener("focus",this._enterHandler,!0),It.addEventListener("mouseleave",this._leaveHandler,!0),It.addEventListener("blur",this._leaveHandler,!0),It.addEventListener("mousedown",this._mousedownHandler),It.addEventListener("touchstart",this._mousedownHandler),window.addEventListener("mouseup",this._mouseupHandler),window.addEventListener("touchend",this._touchendHandler)})}_cellClicked(fe,lt){this._didDragSinceMouseDown||fe.enabled&&this.selectedValueChange.emit({value:fe.value,event:lt})}_emitActiveDateChange(fe,lt){fe.enabled&&this.activeDateChange.emit({value:fe.value,event:lt})}_isSelected(fe){return this.startValue===fe||this.endValue===fe}ngOnChanges(fe){const lt=fe.numCols,{rows:It,numCols:Bt}=this;(fe.rows||lt)&&(this._firstRowOffset=It&&It.length&&It[0].length?Bt-It[0].length:0),(fe.cellAspectRatio||lt||!this._cellPadding)&&(this._cellPadding=50*this.cellAspectRatio/Bt+"%"),(lt||!this._cellWidth)&&(this._cellWidth=100/Bt+"%")}ngOnDestroy(){const fe=this._elementRef.nativeElement;fe.removeEventListener("mouseenter",this._enterHandler,!0),fe.removeEventListener("touchmove",this._touchmoveHandler,!0),fe.removeEventListener("focus",this._enterHandler,!0),fe.removeEventListener("mouseleave",this._leaveHandler,!0),fe.removeEventListener("blur",this._leaveHandler,!0),fe.removeEventListener("mousedown",this._mousedownHandler),fe.removeEventListener("touchstart",this._mousedownHandler),window.removeEventListener("mouseup",this._mouseupHandler),window.removeEventListener("touchend",this._touchendHandler)}_isActiveCell(fe,lt){let It=fe*this.numCols+lt;return fe&&(It-=this._firstRowOffset),It==this.activeCell}_focusActiveCell(fe=!0){this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.pipe((0,z.q)(1)).subscribe(()=>{setTimeout(()=>{const lt=this._elementRef.nativeElement.querySelector(".mat-calendar-body-active");lt&&(fe||(this._skipNextFocus=!0),lt.focus())})})})}_scheduleFocusActiveCellAfterViewChecked(){this._focusActiveCellAfterViewChecked=!0}_isRangeStart(fe){return je(fe,this.startValue,this.endValue)}_isRangeEnd(fe){return Ae(fe,this.startValue,this.endValue)}_isInRange(fe){return he(fe,this.startValue,this.endValue,this.isRange)}_isComparisonStart(fe){return je(fe,this.comparisonStart,this.comparisonEnd)}_isComparisonBridgeStart(fe,lt,It){if(!this._isComparisonStart(fe)||this._isRangeStart(fe)||!this._isInRange(fe))return!1;let Bt=this.rows[lt][It-1];if(!Bt){const zt=this.rows[lt-1];Bt=zt&&zt[zt.length-1]}return Bt&&!this._isRangeEnd(Bt.compareValue)}_isComparisonBridgeEnd(fe,lt,It){if(!this._isComparisonEnd(fe)||this._isRangeEnd(fe)||!this._isInRange(fe))return!1;let Bt=this.rows[lt][It+1];if(!Bt){const zt=this.rows[lt+1];Bt=zt&&zt[0]}return Bt&&!this._isRangeStart(Bt.compareValue)}_isComparisonEnd(fe){return Ae(fe,this.comparisonStart,this.comparisonEnd)}_isInComparisonRange(fe){return he(fe,this.comparisonStart,this.comparisonEnd,this.isRange)}_isComparisonIdentical(fe){return this.comparisonStart===this.comparisonEnd&&fe===this.comparisonStart}_isPreviewStart(fe){return je(fe,this.previewStart,this.previewEnd)}_isPreviewEnd(fe){return Ae(fe,this.previewStart,this.previewEnd)}_isInPreview(fe){return he(fe,this.previewStart,this.previewEnd,this.isRange)}_getDescribedby(fe){return this.isRange?this.startValue===fe&&this.endValue===fe?`${this._startDateLabelId} ${this._endDateLabelId}`:this.startValue===fe?this._startDateLabelId:this.endValue===fe?this._endDateLabelId:null:null}_getCellFromElement(fe){const lt=oe(fe);if(lt){const It=lt.getAttribute("data-mat-row"),Bt=lt.getAttribute("data-mat-col");if(It&&Bt)return this.rows[parseInt(It)][parseInt(Bt)]}return null}}return Wt.\u0275fac=function(fe){return new(fe||Wt)(s.Y36(s.SBq),s.Y36(s.R0b))},Wt.\u0275cmp=s.Xpm({type:Wt,selectors:[["","mat-calendar-body",""]],hostAttrs:[1,"mat-calendar-body"],inputs:{label:"label",rows:"rows",todayValue:"todayValue",startValue:"startValue",endValue:"endValue",labelMinRequiredCells:"labelMinRequiredCells",numCols:"numCols",activeCell:"activeCell",isRange:"isRange",cellAspectRatio:"cellAspectRatio",comparisonStart:"comparisonStart",comparisonEnd:"comparisonEnd",previewStart:"previewStart",previewEnd:"previewEnd",startDateAccessibleName:"startDateAccessibleName",endDateAccessibleName:"endDateAccessibleName"},outputs:{selectedValueChange:"selectedValueChange",previewChange:"previewChange",activeDateChange:"activeDateChange",dragStarted:"dragStarted",dragEnded:"dragEnded"},exportAs:["matCalendarBody"],features:[s.TTD],attrs:de,decls:6,vars:6,consts:[["aria-hidden","true",4,"ngIf"],["role","row",4,"ngFor","ngForOf"],[1,"mat-calendar-body-hidden-label",3,"id"],["aria-hidden","true"],[1,"mat-calendar-body-label"],["role","row"],["class","mat-calendar-body-label",3,"paddingTop","paddingBottom",4,"ngIf"],["role","gridcell","class","mat-calendar-body-cell-container",3,"width","paddingTop","paddingBottom",4,"ngFor","ngForOf"],["role","gridcell",1,"mat-calendar-body-cell-container"],["type","button",1,"mat-calendar-body-cell",3,"ngClass","tabindex","click","focus"],[1,"mat-calendar-body-cell-content","mat-focus-indicator"],["aria-hidden","true",1,"mat-calendar-body-cell-preview"]],template:function(fe,lt){1&fe&&(s.YNc(0,$,3,6,"tr",0),s.YNc(1,i,3,2,"tr",1),s.TgZ(2,"label",2),s._uU(3),s.qZA(),s.TgZ(4,"label",2),s._uU(5),s.qZA()),2&fe&&(s.Q6J("ngIf",lt._firstRowOffset<lt.labelMinRequiredCells),s.xp6(1),s.Q6J("ngForOf",lt.rows),s.xp6(1),s.Q6J("id",lt._startDateLabelId),s.xp6(1),s.hij(" ",lt.startDateAccessibleName,"\n"),s.xp6(1),s.Q6J("id",lt._endDateLabelId),s.xp6(1),s.hij(" ",lt.endDateAccessibleName,"\n"))},dependencies:[I.mk,I.sg,I.O5],styles:['.mat-calendar-body{min-width:224px}.mat-calendar-body-label{height:0;line-height:0;text-align:left;padding-left:4.7142857143%;padding-right:4.7142857143%}.mat-calendar-body-hidden-label{display:none}.mat-calendar-body-cell-container{position:relative;height:0;line-height:0}.mat-calendar-body-cell{-webkit-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:rgba(0,0,0,0);position:absolute;top:0;left:0;width:100%;height:100%;background:none;text-align:center;outline:none;font-family:inherit;margin:0}.mat-calendar-body-cell::-moz-focus-inner{border:0}.mat-calendar-body-cell::before,.mat-calendar-body-cell::after,.mat-calendar-body-cell-preview{content:"";position:absolute;top:5%;left:0;z-index:0;box-sizing:border-box;height:90%;width:100%}.mat-calendar-body-range-start:not(.mat-calendar-body-in-comparison-range)::before,.mat-calendar-body-range-start::after,.mat-calendar-body-comparison-start:not(.mat-calendar-body-comparison-bridge-start)::before,.mat-calendar-body-comparison-start::after,.mat-calendar-body-preview-start .mat-calendar-body-cell-preview{left:5%;width:95%;border-top-left-radius:999px;border-bottom-left-radius:999px}[dir=rtl] .mat-calendar-body-range-start:not(.mat-calendar-body-in-comparison-range)::before,[dir=rtl] .mat-calendar-body-range-start::after,[dir=rtl] .mat-calendar-body-comparison-start:not(.mat-calendar-body-comparison-bridge-start)::before,[dir=rtl] .mat-calendar-body-comparison-start::after,[dir=rtl] .mat-calendar-body-preview-start .mat-calendar-body-cell-preview{left:0;border-radius:0;border-top-right-radius:999px;border-bottom-right-radius:999px}.mat-calendar-body-range-end:not(.mat-calendar-body-in-comparison-range)::before,.mat-calendar-body-range-end::after,.mat-calendar-body-comparison-end:not(.mat-calendar-body-comparison-bridge-end)::before,.mat-calendar-body-comparison-end::after,.mat-calendar-body-preview-end .mat-calendar-body-cell-preview{width:95%;border-top-right-radius:999px;border-bottom-right-radius:999px}[dir=rtl] .mat-calendar-body-range-end:not(.mat-calendar-body-in-comparison-range)::before,[dir=rtl] .mat-calendar-body-range-end::after,[dir=rtl] .mat-calendar-body-comparison-end:not(.mat-calendar-body-comparison-bridge-end)::before,[dir=rtl] .mat-calendar-body-comparison-end::after,[dir=rtl] .mat-calendar-body-preview-end .mat-calendar-body-cell-preview{left:5%;border-radius:0;border-top-left-radius:999px;border-bottom-left-radius:999px}[dir=rtl] .mat-calendar-body-comparison-bridge-start.mat-calendar-body-range-end::after,[dir=rtl] .mat-calendar-body-comparison-bridge-end.mat-calendar-body-range-start::after{width:95%;border-top-right-radius:999px;border-bottom-right-radius:999px}.mat-calendar-body-comparison-start.mat-calendar-body-range-end::after,[dir=rtl] .mat-calendar-body-comparison-start.mat-calendar-body-range-end::after,.mat-calendar-body-comparison-end.mat-calendar-body-range-start::after,[dir=rtl] .mat-calendar-body-comparison-end.mat-calendar-body-range-start::after{width:90%}.mat-calendar-body-in-preview .mat-calendar-body-cell-preview{border-top:dashed 1px;border-bottom:dashed 1px}.mat-calendar-body-preview-start .mat-calendar-body-cell-preview{border-left:dashed 1px}[dir=rtl] .mat-calendar-body-preview-start .mat-calendar-body-cell-preview{border-left:0;border-right:dashed 1px}.mat-calendar-body-preview-end .mat-calendar-body-cell-preview{border-right:dashed 1px}[dir=rtl] .mat-calendar-body-preview-end .mat-calendar-body-cell-preview{border-right:0;border-left:dashed 1px}.mat-calendar-body-disabled{cursor:default}.cdk-high-contrast-active .mat-calendar-body-disabled{opacity:.5}.mat-calendar-body-cell-content{top:5%;left:5%;z-index:1;display:flex;align-items:center;justify-content:center;box-sizing:border-box;width:90%;height:90%;line-height:1;border-width:1px;border-style:solid;border-radius:999px}.mat-calendar-body-cell-content.mat-focus-indicator{position:absolute}.cdk-high-contrast-active .mat-calendar-body-cell-content{border:none}.cdk-high-contrast-active .mat-datepicker-popup:not(:empty),.cdk-high-contrast-active .mat-calendar-body-cell:not(.mat-calendar-body-in-range) .mat-calendar-body-selected{outline:solid 1px}.cdk-high-contrast-active .mat-calendar-body-today{outline:dotted 1px}.cdk-high-contrast-active .mat-calendar-body-cell::before,.cdk-high-contrast-active .mat-calendar-body-cell::after,.cdk-high-contrast-active .mat-calendar-body-selected{background:none}.cdk-high-contrast-active .mat-calendar-body-in-range::before,.cdk-high-contrast-active .mat-calendar-body-comparison-bridge-start::before,.cdk-high-contrast-active .mat-calendar-body-comparison-bridge-end::before{border-top:solid 1px;border-bottom:solid 1px}.cdk-high-contrast-active .mat-calendar-body-range-start::before{border-left:solid 1px}[dir=rtl] .cdk-high-contrast-active .mat-calendar-body-range-start::before{border-left:0;border-right:solid 1px}.cdk-high-contrast-active .mat-calendar-body-range-end::before{border-right:solid 1px}[dir=rtl] .cdk-high-contrast-active .mat-calendar-body-range-end::before{border-right:0;border-left:solid 1px}.cdk-high-contrast-active .mat-calendar-body-in-comparison-range::before{border-top:dashed 1px;border-bottom:dashed 1px}.cdk-high-contrast-active .mat-calendar-body-comparison-start::before{border-left:dashed 1px}[dir=rtl] .cdk-high-contrast-active .mat-calendar-body-comparison-start::before{border-left:0;border-right:dashed 1px}.cdk-high-contrast-active .mat-calendar-body-comparison-end::before{border-right:dashed 1px}[dir=rtl] .cdk-high-contrast-active .mat-calendar-body-comparison-end::before{border-right:0;border-left:dashed 1px}[dir=rtl] .mat-calendar-body-label{text-align:right}'],encapsulation:2,changeDetection:0}),Wt})();function ve(Wt){return"TD"===Wt?.nodeName}function oe(Wt){let Jt;return ve(Wt)?Jt=Wt:ve(Wt.parentNode)?Jt=Wt.parentNode:ve(Wt.parentNode?.parentNode)&&(Jt=Wt.parentNode.parentNode),null!=Jt?.getAttribute("data-mat-row")?Jt:null}function je(Wt,Jt,fe){return null!==fe&&Jt!==fe&&Wt<fe&&Wt===Jt}function Ae(Wt,Jt,fe){return null!==Jt&&Jt!==fe&&Wt>=Jt&&Wt===fe}function he(Wt,Jt,fe,lt){return lt&&null!==Jt&&null!==fe&&Jt!==fe&&Wt>=Jt&&Wt<=fe}function Ce(Wt){const Jt=Wt.changedTouches[0];return document.elementFromPoint(Jt.clientX,Jt.clientY)}class te{constructor(Jt,fe){this.start=Jt,this.end=fe}}let Ue=(()=>{class Wt{constructor(fe,lt){this.selection=fe,this._adapter=lt,this._selectionChanged=new d.x,this.selectionChanged=this._selectionChanged,this.selection=fe}updateSelection(fe,lt){const It=this.selection;this.selection=fe,this._selectionChanged.next({selection:fe,source:lt,oldValue:It})}ngOnDestroy(){this._selectionChanged.complete()}_isValidDateInstance(fe){return this._adapter.isDateInstance(fe)&&this._adapter.isValid(fe)}}return Wt.\u0275fac=function(fe){s.$Z()},Wt.\u0275prov=s.Yz7({token:Wt,factory:Wt.\u0275fac}),Wt})(),Be=(()=>{class Wt extends Ue{constructor(fe){super(null,fe)}add(fe){super.updateSelection(fe,this)}isValid(){return null!=this.selection&&this._isValidDateInstance(this.selection)}isComplete(){return null!=this.selection}clone(){const fe=new Wt(this._adapter);return fe.updateSelection(this.selection,this),fe}}return Wt.\u0275fac=function(fe){return new(fe||Wt)(s.LFG(P._A))},Wt.\u0275prov=s.Yz7({token:Wt,factory:Wt.\u0275fac}),Wt})();const ft={provide:Ue,deps:[[new s.FiY,new s.tp0,Ue],P._A],useFactory:function ge(Wt,Jt){return Wt||new Be(Jt)}},Et=new s.OlP("MAT_DATE_RANGE_SELECTION_STRATEGY");let Ke=(()=>{class Wt{get activeDate(){return this._activeDate}set activeDate(fe){const lt=this._activeDate,It=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(fe))||this._dateAdapter.today();this._activeDate=this._dateAdapter.clampDate(It,this.minDate,this.maxDate),this._hasSameMonthAndYear(lt,this._activeDate)||this._init()}get selected(){return this._selected}set selected(fe){this._selected=fe instanceof te?fe:this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(fe)),this._setRanges(this._selected)}get minDate(){return this._minDate}set minDate(fe){this._minDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(fe))}get maxDate(){return this._maxDate}set maxDate(fe){this._maxDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(fe))}constructor(fe,lt,It,Bt,zt){this._changeDetectorRef=fe,this._dateFormats=lt,this._dateAdapter=It,this._dir=Bt,this._rangeStrategy=zt,this._rerenderSubscription=S.w0.EMPTY,this.activeDrag=null,this.selectedChange=new s.vpe,this._userSelection=new s.vpe,this.dragStarted=new s.vpe,this.dragEnded=new s.vpe,this.activeDateChange=new s.vpe,this._activeDate=this._dateAdapter.today()}ngAfterContentInit(){this._rerenderSubscription=this._dateAdapter.localeChanges.pipe((0,U.O)(null)).subscribe(()=>this._init())}ngOnChanges(fe){const lt=fe.comparisonStart||fe.comparisonEnd;lt&&!lt.firstChange&&this._setRanges(this.selected),fe.activeDrag&&!this.activeDrag&&this._clearPreview()}ngOnDestroy(){this._rerenderSubscription.unsubscribe()}_dateSelected(fe){const lt=fe.value,It=this._getDateFromDayOfMonth(lt);let Bt,zt;this._selected instanceof te?(Bt=this._getDateInCurrentMonth(this._selected.start),zt=this._getDateInCurrentMonth(this._selected.end)):Bt=zt=this._getDateInCurrentMonth(this._selected),(Bt!==lt||zt!==lt)&&this.selectedChange.emit(It),this._userSelection.emit({value:It,event:fe.event}),this._clearPreview(),this._changeDetectorRef.markForCheck()}_updateActiveDate(fe){const It=this._activeDate;this.activeDate=this._getDateFromDayOfMonth(fe.value),this._dateAdapter.compareDate(It,this.activeDate)&&this.activeDateChange.emit(this._activeDate)}_handleCalendarBodyKeydown(fe){const lt=this._activeDate,It=this._isRtl();switch(fe.keyCode){case E.oh:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,It?1:-1);break;case E.SV:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,It?-1:1);break;case E.LH:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,-7);break;case E.JH:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,7);break;case E.Sd:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,1-this._dateAdapter.getDate(this._activeDate));break;case E.uR:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,this._dateAdapter.getNumDaysInMonth(this._activeDate)-this._dateAdapter.getDate(this._activeDate));break;case E.Ku:this.activeDate=fe.altKey?this._dateAdapter.addCalendarYears(this._activeDate,-1):this._dateAdapter.addCalendarMonths(this._activeDate,-1);break;case E.VM:this.activeDate=fe.altKey?this._dateAdapter.addCalendarYears(this._activeDate,1):this._dateAdapter.addCalendarMonths(this._activeDate,1);break;case E.K5:case E.L_:return this._selectionKeyPressed=!0,void(this._canSelect(this._activeDate)&&fe.preventDefault());case E.hY:return void(null!=this._previewEnd&&!(0,E.Vb)(fe)&&(this._clearPreview(),this.activeDrag?this.dragEnded.emit({value:null,event:fe}):(this.selectedChange.emit(null),this._userSelection.emit({value:null,event:fe})),fe.preventDefault(),fe.stopPropagation()));default:return}this._dateAdapter.compareDate(lt,this.activeDate)&&(this.activeDateChange.emit(this.activeDate),this._focusActiveCellAfterViewChecked()),fe.preventDefault()}_handleCalendarBodyKeyup(fe){(fe.keyCode===E.L_||fe.keyCode===E.K5)&&(this._selectionKeyPressed&&this._canSelect(this._activeDate)&&this._dateSelected({value:this._dateAdapter.getDate(this._activeDate),event:fe}),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 fe=this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),this._dateAdapter.getMonth(this.activeDate),1);this._firstWeekOffset=(7+this._dateAdapter.getDayOfWeek(fe)-this._dateAdapter.getFirstDayOfWeek())%7,this._initWeekdays(),this._createWeekCells(),this._changeDetectorRef.markForCheck()}_focusActiveCell(fe){this._matCalendarBody._focusActiveCell(fe)}_focusActiveCellAfterViewChecked(){this._matCalendarBody._scheduleFocusActiveCellAfterViewChecked()}_previewChanged({event:fe,value:lt}){if(this._rangeStrategy){const It=lt?lt.rawValue:null,Bt=this._rangeStrategy.createPreview(It,this.selected,fe);if(this._previewStart=this._getCellCompareValue(Bt.start),this._previewEnd=this._getCellCompareValue(Bt.end),this.activeDrag&&It){const zt=this._rangeStrategy.createDrag?.(this.activeDrag.value,this.selected,It,fe);zt&&(this._previewStart=this._getCellCompareValue(zt.start),this._previewEnd=this._getCellCompareValue(zt.end))}this._changeDetectorRef.detectChanges()}}_dragEnded(fe){if(this.activeDrag)if(fe.value){const lt=this._rangeStrategy?.createDrag?.(this.activeDrag.value,this.selected,fe.value,fe.event);this.dragEnded.emit({value:lt??null,event:fe.event})}else this.dragEnded.emit({value:null,event:fe.event})}_getDateFromDayOfMonth(fe){return this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),this._dateAdapter.getMonth(this.activeDate),fe)}_initWeekdays(){const fe=this._dateAdapter.getFirstDayOfWeek(),lt=this._dateAdapter.getDayOfWeekNames("narrow");let Bt=this._dateAdapter.getDayOfWeekNames("long").map((zt,oi)=>({long:zt,narrow:lt[oi]}));this._weekdays=Bt.slice(fe).concat(Bt.slice(0,fe))}_createWeekCells(){const fe=this._dateAdapter.getNumDaysInMonth(this.activeDate),lt=this._dateAdapter.getDateNames();this._weeks=[[]];for(let It=0,Bt=this._firstWeekOffset;It<fe;It++,Bt++){7==Bt&&(this._weeks.push([]),Bt=0);const zt=this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),this._dateAdapter.getMonth(this.activeDate),It+1),oi=this._shouldEnableDate(zt),Yt=this._dateAdapter.format(zt,this._dateFormats.display.dateA11yLabel),Ni=this.dateClass?this.dateClass(zt,"month"):void 0;this._weeks[this._weeks.length-1].push(new De(It+1,lt[It],Yt,oi,Ni,this._getCellCompareValue(zt),zt))}}_shouldEnableDate(fe){return!!fe&&(!this.minDate||this._dateAdapter.compareDate(fe,this.minDate)>=0)&&(!this.maxDate||this._dateAdapter.compareDate(fe,this.maxDate)<=0)&&(!this.dateFilter||this.dateFilter(fe))}_getDateInCurrentMonth(fe){return fe&&this._hasSameMonthAndYear(fe,this.activeDate)?this._dateAdapter.getDate(fe):null}_hasSameMonthAndYear(fe,lt){return!(!fe||!lt||this._dateAdapter.getMonth(fe)!=this._dateAdapter.getMonth(lt)||this._dateAdapter.getYear(fe)!=this._dateAdapter.getYear(lt))}_getCellCompareValue(fe){if(fe){const lt=this._dateAdapter.getYear(fe),It=this._dateAdapter.getMonth(fe),Bt=this._dateAdapter.getDate(fe);return new Date(lt,It,Bt).getTime()}return null}_isRtl(){return this._dir&&"rtl"===this._dir.value}_setRanges(fe){fe instanceof te?(this._rangeStart=this._getCellCompareValue(fe.start),this._rangeEnd=this._getCellCompareValue(fe.end),this._isRange=!0):(this._rangeStart=this._rangeEnd=this._getCellCompareValue(fe),this._isRange=!1),this._comparisonRangeStart=this._getCellCompareValue(this.comparisonStart),this._comparisonRangeEnd=this._getCellCompareValue(this.comparisonEnd)}_canSelect(fe){return!this.dateFilter||this.dateFilter(fe)}_clearPreview(){this._previewStart=this._previewEnd=null}}return Wt.\u0275fac=function(fe){return new(fe||Wt)(s.Y36(s.sBO),s.Y36(P.sG,8),s.Y36(P._A,8),s.Y36(R.Is,8),s.Y36(Et,8))},Wt.\u0275cmp=s.Xpm({type:Wt,selectors:[["mat-month-view"]],viewQuery:function(fe,lt){if(1&fe&&s.Gf(ce,5),2&fe){let It;s.iGM(It=s.CRH())&&(lt._matCalendarBody=It.first)}},inputs:{activeDate:"activeDate",selected:"selected",minDate:"minDate",maxDate:"maxDate",dateFilter:"dateFilter",dateClass:"dateClass",comparisonStart:"comparisonStart",comparisonEnd:"comparisonEnd",startDateAccessibleName:"startDateAccessibleName",endDateAccessibleName:"endDateAccessibleName",activeDrag:"activeDrag"},outputs:{selectedChange:"selectedChange",_userSelection:"_userSelection",dragStarted:"dragStarted",dragEnded:"dragEnded",activeDateChange:"activeDateChange"},exportAs:["matMonthView"],features:[s.TTD],decls:7,vars:15,consts:[["role","grid",1,"mat-calendar-table"],[1,"mat-calendar-table-header"],["scope","col",4,"ngFor","ngForOf"],["aria-hidden","true","colspan","7",1,"mat-calendar-table-header-divider"],["mat-calendar-body","",3,"label","rows","todayValue","startValue","endValue","comparisonStart","comparisonEnd","previewStart","previewEnd","isRange","labelMinRequiredCells","activeCell","startDateAccessibleName","endDateAccessibleName","selectedValueChange","activeDateChange","previewChange","dragStarted","dragEnded","keyup","keydown"],["scope","col"],[1,"cdk-visually-hidden"],["aria-hidden","true"]],template:function(fe,lt){1&fe&&(s.TgZ(0,"table",0)(1,"thead",1)(2,"tr"),s.YNc(3,a,5,2,"th",2),s.qZA(),s.TgZ(4,"tr"),s._UZ(5,"th",3),s.qZA()(),s.TgZ(6,"tbody",4),s.NdJ("selectedValueChange",function(Bt){return lt._dateSelected(Bt)})("activeDateChange",function(Bt){return lt._updateActiveDate(Bt)})("previewChange",function(Bt){return lt._previewChanged(Bt)})("dragStarted",function(Bt){return lt.dragStarted.emit(Bt)})("dragEnded",function(Bt){return lt._dragEnded(Bt)})("keyup",function(Bt){return lt._handleCalendarBodyKeyup(Bt)})("keydown",function(Bt){return lt._handleCalendarBodyKeydown(Bt)}),s.qZA()()),2&fe&&(s.xp6(3),s.Q6J("ngForOf",lt._weekdays),s.xp6(3),s.Q6J("label",lt._monthLabel)("rows",lt._weeks)("todayValue",lt._todayDate)("startValue",lt._rangeStart)("endValue",lt._rangeEnd)("comparisonStart",lt._comparisonRangeStart)("comparisonEnd",lt._comparisonRangeEnd)("previewStart",lt._previewStart)("previewEnd",lt._previewEnd)("isRange",lt._isRange)("labelMinRequiredCells",3)("activeCell",lt._dateAdapter.getDate(lt.activeDate)-1)("startDateAccessibleName",lt.startDateAccessibleName)("endDateAccessibleName",lt.endDateAccessibleName))},dependencies:[I.sg,ce],encapsulation:2,changeDetection:0}),Wt})(),Re=(()=>{class Wt{get activeDate(){return this._activeDate}set activeDate(fe){let lt=this._activeDate;const It=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(fe))||this._dateAdapter.today();this._activeDate=this._dateAdapter.clampDate(It,this.minDate,this.maxDate),Tt(this._dateAdapter,lt,this._activeDate,this.minDate,this.maxDate)||this._init()}get selected(){return this._selected}set selected(fe){this._selected=fe instanceof te?fe:this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(fe)),this._setSelectedYear(fe)}get minDate(){return this._minDate}set minDate(fe){this._minDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(fe))}get maxDate(){return this._maxDate}set maxDate(fe){this._maxDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(fe))}constructor(fe,lt,It){this._changeDetectorRef=fe,this._dateAdapter=lt,this._dir=It,this._rerenderSubscription=S.w0.EMPTY,this.selectedChange=new s.vpe,this.yearSelected=new s.vpe,this.activeDateChange=new s.vpe,this._activeDate=this._dateAdapter.today()}ngAfterContentInit(){this._rerenderSubscription=this._dateAdapter.localeChanges.pipe((0,U.O)(null)).subscribe(()=>this._init())}ngOnDestroy(){this._rerenderSubscription.unsubscribe()}_init(){this._todayYear=this._dateAdapter.getYear(this._dateAdapter.today());const lt=this._dateAdapter.getYear(this._activeDate)-Qe(this._dateAdapter,this.activeDate,this.minDate,this.maxDate);this._years=[];for(let It=0,Bt=[];It<24;It++)Bt.push(lt+It),4==Bt.length&&(this._years.push(Bt.map(zt=>this._createCellForYear(zt))),Bt=[]);this._changeDetectorRef.markForCheck()}_yearSelected(fe){const lt=fe.value,It=this._dateAdapter.createDate(lt,0,1),Bt=this._getDateFromYear(lt);this.yearSelected.emit(It),this.selectedChange.emit(Bt)}_updateActiveDate(fe){const It=this._activeDate;this.activeDate=this._getDateFromYear(fe.value),this._dateAdapter.compareDate(It,this.activeDate)&&this.activeDateChange.emit(this.activeDate)}_handleCalendarBodyKeydown(fe){const lt=this._activeDate,It=this._isRtl();switch(fe.keyCode){case E.oh:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,It?1:-1);break;case E.SV:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,It?-1:1);break;case E.LH:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,-4);break;case E.JH:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,4);break;case E.Sd:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,-Qe(this._dateAdapter,this.activeDate,this.minDate,this.maxDate));break;case E.uR:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,24-Qe(this._dateAdapter,this.activeDate,this.minDate,this.maxDate)-1);break;case E.Ku:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,fe.altKey?-240:-24);break;case E.VM:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,fe.altKey?240:24);break;case E.K5:case E.L_:this._selectionKeyPressed=!0;break;default:return}this._dateAdapter.compareDate(lt,this.activeDate)&&this.activeDateChange.emit(this.activeDate),this._focusActiveCellAfterViewChecked(),fe.preventDefault()}_handleCalendarBodyKeyup(fe){(fe.keyCode===E.L_||fe.keyCode===E.K5)&&(this._selectionKeyPressed&&this._yearSelected({value:this._dateAdapter.getYear(this._activeDate),event:fe}),this._selectionKeyPressed=!1)}_getActiveCell(){return Qe(this._dateAdapter,this.activeDate,this.minDate,this.maxDate)}_focusActiveCell(){this._matCalendarBody._focusActiveCell()}_focusActiveCellAfterViewChecked(){this._matCalendarBody._scheduleFocusActiveCellAfterViewChecked()}_getDateFromYear(fe){const lt=this._dateAdapter.getMonth(this.activeDate),It=this._dateAdapter.getNumDaysInMonth(this._dateAdapter.createDate(fe,lt,1));return this._dateAdapter.createDate(fe,lt,Math.min(this._dateAdapter.getDate(this.activeDate),It))}_createCellForYear(fe){const lt=this._dateAdapter.createDate(fe,0,1),It=this._dateAdapter.getYearName(lt),Bt=this.dateClass?this.dateClass(lt,"multi-year"):void 0;return new De(fe,It,It,this._shouldEnableYear(fe),Bt)}_shouldEnableYear(fe){if(null==fe||this.maxDate&&fe>this._dateAdapter.getYear(this.maxDate)||this.minDate&&fe<this._dateAdapter.getYear(this.minDate))return!1;if(!this.dateFilter)return!0;for(let It=this._dateAdapter.createDate(fe,0,1);this._dateAdapter.getYear(It)==fe;It=this._dateAdapter.addCalendarDays(It,1))if(this.dateFilter(It))return!0;return!1}_isRtl(){return this._dir&&"rtl"===this._dir.value}_setSelectedYear(fe){if(this._selectedYear=null,fe instanceof te){const lt=fe.start||fe.end;lt&&(this._selectedYear=this._dateAdapter.getYear(lt))}else fe&&(this._selectedYear=this._dateAdapter.getYear(fe))}}return Wt.\u0275fac=function(fe){return new(fe||Wt)(s.Y36(s.sBO),s.Y36(P._A,8),s.Y36(R.Is,8))},Wt.\u0275cmp=s.Xpm({type:Wt,selectors:[["mat-multi-year-view"]],viewQuery:function(fe,lt){if(1&fe&&s.Gf(ce,5),2&fe){let It;s.iGM(It=s.CRH())&&(lt._matCalendarBody=It.first)}},inputs:{activeDate:"activeDate",selected:"selected",minDate:"minDate",maxDate:"maxDate",dateFilter:"dateFilter",dateClass:"dateClass"},outputs:{selectedChange:"selectedChange",yearSelected:"yearSelected",activeDateChange:"activeDateChange"},exportAs:["matMultiYearView"],decls:5,vars:7,consts:[["role","grid",1,"mat-calendar-table"],["aria-hidden","true",1,"mat-calendar-table-header"],["colspan","4",1,"mat-calendar-table-header-divider"],["mat-calendar-body","",3,"rows","todayValue","startValue","endValue","numCols","cellAspectRatio","activeCell","selectedValueChange","activeDateChange","keyup","keydown"]],template:function(fe,lt){1&fe&&(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(Bt){return lt._yearSelected(Bt)})("activeDateChange",function(Bt){return lt._updateActiveDate(Bt)})("keyup",function(Bt){return lt._handleCalendarBodyKeyup(Bt)})("keydown",function(Bt){return lt._handleCalendarBodyKeydown(Bt)}),s.qZA()()),2&fe&&(s.xp6(4),s.Q6J("rows",lt._years)("todayValue",lt._todayYear)("startValue",lt._selectedYear)("endValue",lt._selectedYear)("numCols",4)("cellAspectRatio",4/7)("activeCell",lt._getActiveCell()))},dependencies:[ce],encapsulation:2,changeDetection:0}),Wt})();function Tt(Wt,Jt,fe,lt,It){const Bt=Wt.getYear(Jt),zt=Wt.getYear(fe),oi=Ye(Wt,lt,It);return Math.floor((Bt-oi)/24)===Math.floor((zt-oi)/24)}function Qe(Wt,Jt,fe,lt){return function Ht(Wt,Jt){return(Wt%Jt+Jt)%Jt}(Wt.getYear(Jt)-Ye(Wt,fe,lt),24)}function Ye(Wt,Jt,fe){let lt=0;return fe?lt=Wt.getYear(fe)-24+1:Jt&&(lt=Wt.getYear(Jt)),lt}let Mt=(()=>{class Wt{get activeDate(){return this._activeDate}set activeDate(fe){let lt=this._activeDate;const It=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(fe))||this._dateAdapter.today();this._activeDate=this._dateAdapter.clampDate(It,this.minDate,this.maxDate),this._dateAdapter.getYear(lt)!==this._dateAdapter.getYear(this._activeDate)&&this._init()}get selected(){return this._selected}set selected(fe){this._selected=fe instanceof te?fe:this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(fe)),this._setSelectedMonth(fe)}get minDate(){return this._minDate}set minDate(fe){this._minDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(fe))}get maxDate(){return this._maxDate}set maxDate(fe){this._maxDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(fe))}constructor(fe,lt,It,Bt){this._changeDetectorRef=fe,this._dateFormats=lt,this._dateAdapter=It,this._dir=Bt,this._rerenderSubscription=S.w0.EMPTY,this.selectedChange=new s.vpe,this.monthSelected=new s.vpe,this.activeDateChange=new s.vpe,this._activeDate=this._dateAdapter.today()}ngAfterContentInit(){this._rerenderSubscription=this._dateAdapter.localeChanges.pipe((0,U.O)(null)).subscribe(()=>this._init())}ngOnDestroy(){this._rerenderSubscription.unsubscribe()}_monthSelected(fe){const lt=fe.value,It=this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),lt,1);this.monthSelected.emit(It);const Bt=this._getDateFromMonth(lt);this.selectedChange.emit(Bt)}_updateActiveDate(fe){const It=this._activeDate;this.activeDate=this._getDateFromMonth(fe.value),this._dateAdapter.compareDate(It,this.activeDate)&&this.activeDateChange.emit(this.activeDate)}_handleCalendarBodyKeydown(fe){const lt=this._activeDate,It=this._isRtl();switch(fe.keyCode){case E.oh:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,It?1:-1);break;case E.SV:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,It?-1:1);break;case E.LH:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,-4);break;case E.JH:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,4);break;case E.Sd:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,-this._dateAdapter.getMonth(this._activeDate));break;case E.uR:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,11-this._dateAdapter.getMonth(this._activeDate));break;case E.Ku:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,fe.altKey?-10:-1);break;case E.VM:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,fe.altKey?10:1);break;case E.K5:case E.L_:this._selectionKeyPressed=!0;break;default:return}this._dateAdapter.compareDate(lt,this.activeDate)&&(this.activeDateChange.emit(this.activeDate),this._focusActiveCellAfterViewChecked()),fe.preventDefault()}_handleCalendarBodyKeyup(fe){(fe.keyCode===E.L_||fe.keyCode===E.K5)&&(this._selectionKeyPressed&&this._monthSelected({value:this._dateAdapter.getMonth(this._activeDate),event:fe}),this._selectionKeyPressed=!1)}_init(){this._setSelectedMonth(this.selected),this._todayMonth=this._getMonthInCurrentYear(this._dateAdapter.today()),this._yearLabel=this._dateAdapter.getYearName(this.activeDate);let fe=this._dateAdapter.getMonthNames("short");this._months=[[0,1,2,3],[4,5,6,7],[8,9,10,11]].map(lt=>lt.map(It=>this._createCellForMonth(It,fe[It]))),this._changeDetectorRef.markForCheck()}_focusActiveCell(){this._matCalendarBody._focusActiveCell()}_focusActiveCellAfterViewChecked(){this._matCalendarBody._scheduleFocusActiveCellAfterViewChecked()}_getMonthInCurrentYear(fe){return fe&&this._dateAdapter.getYear(fe)==this._dateAdapter.getYear(this.activeDate)?this._dateAdapter.getMonth(fe):null}_getDateFromMonth(fe){const lt=this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),fe,1),It=this._dateAdapter.getNumDaysInMonth(lt);return this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),fe,Math.min(this._dateAdapter.getDate(this.activeDate),It))}_createCellForMonth(fe,lt){const It=this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),fe,1),Bt=this._dateAdapter.format(It,this._dateFormats.display.monthYearA11yLabel),zt=this.dateClass?this.dateClass(It,"year"):void 0;return new De(fe,lt.toLocaleUpperCase(),Bt,this._shouldEnableMonth(fe),zt)}_shouldEnableMonth(fe){const lt=this._dateAdapter.getYear(this.activeDate);if(null==fe||this._isYearAndMonthAfterMaxDate(lt,fe)||this._isYearAndMonthBeforeMinDate(lt,fe))return!1;if(!this.dateFilter)return!0;for(let Bt=this._dateAdapter.createDate(lt,fe,1);this._dateAdapter.getMonth(Bt)==fe;Bt=this._dateAdapter.addCalendarDays(Bt,1))if(this.dateFilter(Bt))return!0;return!1}_isYearAndMonthAfterMaxDate(fe,lt){if(this.maxDate){const It=this._dateAdapter.getYear(this.maxDate),Bt=this._dateAdapter.getMonth(this.maxDate);return fe>It||fe===It&&lt>Bt}return!1}_isYearAndMonthBeforeMinDate(fe,lt){if(this.minDate){const It=this._dateAdapter.getYear(this.minDate),Bt=this._dateAdapter.getMonth(this.minDate);return fe<It||fe===It&&lt<Bt}return!1}_isRtl(){return this._dir&&"rtl"===this._dir.value}_setSelectedMonth(fe){this._selectedMonth=fe instanceof te?this._getMonthInCurrentYear(fe.start)||this._getMonthInCurrentYear(fe.end):this._getMonthInCurrentYear(fe)}}return Wt.\u0275fac=function(fe){return new(fe||Wt)(s.Y36(s.sBO),s.Y36(P.sG,8),s.Y36(P._A,8),s.Y36(R.Is,8))},Wt.\u0275cmp=s.Xpm({type:Wt,selectors:[["mat-year-view"]],viewQuery:function(fe,lt){if(1&fe&&s.Gf(ce,5),2&fe){let It;s.iGM(It=s.CRH())&&(lt._matCalendarBody=It.first)}},inputs:{activeDate:"activeDate",selected:"selected",minDate:"minDate",maxDate:"maxDate",dateFilter:"dateFilter",dateClass:"dateClass"},outputs:{selectedChange:"selectedChange",monthSelected:"monthSelected",activeDateChange:"activeDateChange"},exportAs:["matYearView"],decls:5,vars:9,consts:[["role","grid",1,"mat-calendar-table"],["aria-hidden","true",1,"mat-calendar-table-header"],["colspan","4",1,"mat-calendar-table-header-divider"],["mat-calendar-body","",3,"label","rows","todayValue","startValue","endValue","labelMinRequiredCells","numCols","cellAspectRatio","activeCell","selectedValueChange","activeDateChange","keyup","keydown"]],template:function(fe,lt){1&fe&&(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(Bt){return lt._monthSelected(Bt)})("activeDateChange",function(Bt){return lt._updateActiveDate(Bt)})("keyup",function(Bt){return lt._handleCalendarBodyKeyup(Bt)})("keydown",function(Bt){return lt._handleCalendarBodyKeydown(Bt)}),s.qZA()()),2&fe&&(s.xp6(4),s.Q6J("label",lt._yearLabel)("rows",lt._months)("todayValue",lt._todayMonth)("startValue",lt._selectedMonth)("endValue",lt._selectedMonth)("labelMinRequiredCells",2)("numCols",4)("cellAspectRatio",4/7)("activeCell",lt._dateAdapter.getMonth(lt.activeDate)))},dependencies:[ce],encapsulation:2,changeDetection:0}),Wt})(),kt=1,_t=(()=>{class Wt{constructor(fe,lt,It,Bt,zt){this._intl=fe,this.calendar=lt,this._dateAdapter=It,this._dateFormats=Bt,this._id="mat-calendar-header-"+kt++,this._periodButtonLabelId=`${this._id}-period-label`,this.calendar.stateChanges.subscribe(()=>zt.markForCheck())}get periodButtonText(){return"month"==this.calendar.currentView?this._dateAdapter.format(this.calendar.activeDate,this._dateFormats.display.monthYearLabel).toLocaleUpperCase():"year"==this.calendar.currentView?this._dateAdapter.getYearName(this.calendar.activeDate):this._intl.formatYearRange(...this._formatMinAndMaxYearLabels())}get periodButtonDescription(){return"month"==this.calendar.currentView?this._dateAdapter.format(this.calendar.activeDate,this._dateFormats.display.monthYearLabel).toLocaleUpperCase():"year"==this.calendar.currentView?this._dateAdapter.getYearName(this.calendar.activeDate):this._intl.formatYearRangeLabel(...this._formatMinAndMaxYearLabels())}get periodButtonLabel(){return"month"==this.calendar.currentView?this._intl.switchToMultiYearViewLabel:this._intl.switchToMonthViewLabel}get prevButtonLabel(){return{month:this._intl.prevMonthLabel,year:this._intl.prevYearLabel,"multi-year":this._intl.prevMultiYearLabel}[this.calendar.currentView]}get nextButtonLabel(){return{month:this._intl.nextMonthLabel,year:this._intl.nextYearLabel,"multi-year":this._intl.nextMultiYearLabel}[this.calendar.currentView]}currentPeriodClicked(){this.calendar.currentView="month"==this.calendar.currentView?"multi-year":"month"}previousClicked(){this.calendar.activeDate="month"==this.calendar.currentView?this._dateAdapter.addCalendarMonths(this.calendar.activeDate,-1):this._dateAdapter.addCalendarYears(this.calendar.activeDate,"year"==this.calendar.currentView?-1:-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(fe,lt){return"month"==this.calendar.currentView?this._dateAdapter.getYear(fe)==this._dateAdapter.getYear(lt)&&this._dateAdapter.getMonth(fe)==this._dateAdapter.getMonth(lt):"year"==this.calendar.currentView?this._dateAdapter.getYear(fe)==this._dateAdapter.getYear(lt):Tt(this._dateAdapter,fe,lt,this.calendar.minDate,this.calendar.maxDate)}_formatMinAndMaxYearLabels(){const lt=this._dateAdapter.getYear(this.calendar.activeDate)-Qe(this._dateAdapter,this.calendar.activeDate,this.calendar.minDate,this.calendar.maxDate),It=lt+24-1;return[this._dateAdapter.getYearName(this._dateAdapter.createDate(lt,0,1)),this._dateAdapter.getYearName(this._dateAdapter.createDate(It,0,1))]}}return Wt.\u0275fac=function(fe){return new(fe||Wt)(s.Y36(Fe),s.Y36((0,s.Gpc)(()=>we)),s.Y36(P._A,8),s.Y36(P.sG,8),s.Y36(s.sBO))},Wt.\u0275cmp=s.Xpm({type:Wt,selectors:[["mat-calendar-header"]],exportAs:["matCalendarHeader"],ngContentSelectors:u,decls:13,vars:11,consts:[[1,"mat-calendar-header"],[1,"mat-calendar-controls"],["mat-button","","type","button","aria-live","polite",1,"mat-calendar-period-button",3,"click"],["aria-hidden","true"],["viewBox","0 0 10 5","focusable","false","aria-hidden","true",1,"mat-calendar-arrow"],["points","0,0 5,5 10,0"],[1,"mat-calendar-spacer"],["mat-icon-button","","type","button",1,"mat-calendar-previous-button",3,"disabled","click"],["mat-icon-button","","type","button",1,"mat-calendar-next-button",3,"disabled","click"],[1,"mat-calendar-hidden-label",3,"id"]],template:function(fe,lt){1&fe&&(s.F$t(),s.TgZ(0,"div",0)(1,"div",1)(2,"button",2),s.NdJ("click",function(){return lt.currentPeriodClicked()}),s.TgZ(3,"span",3),s._uU(4),s.qZA(),s.O4$(),s.TgZ(5,"svg",4),s._UZ(6,"polygon",5),s.qZA()(),s.kcU(),s._UZ(7,"div",6),s.Hsn(8),s.TgZ(9,"button",7),s.NdJ("click",function(){return lt.previousClicked()}),s.qZA(),s.TgZ(10,"button",8),s.NdJ("click",function(){return lt.nextClicked()}),s.qZA()()(),s.TgZ(11,"label",9),s._uU(12),s.qZA()),2&fe&&(s.xp6(2),s.uIk("aria-label",lt.periodButtonLabel)("aria-describedby",lt._periodButtonLabelId),s.xp6(2),s.Oqu(lt.periodButtonText),s.xp6(1),s.ekj("mat-calendar-invert","month"!==lt.calendar.currentView),s.xp6(4),s.Q6J("disabled",!lt.previousEnabled()),s.uIk("aria-label",lt.prevButtonLabel),s.xp6(1),s.Q6J("disabled",!lt.nextEnabled()),s.uIk("aria-label",lt.nextButtonLabel),s.xp6(1),s.Q6J("id",lt._periodButtonLabelId),s.xp6(1),s.Oqu(lt.periodButtonDescription))},dependencies:[C.lW,C.RK],encapsulation:2,changeDetection:0}),Wt})(),we=(()=>{class Wt{get startAt(){return this._startAt}set startAt(fe){this._startAt=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(fe))}get selected(){return this._selected}set selected(fe){this._selected=fe instanceof te?fe:this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(fe))}get minDate(){return this._minDate}set minDate(fe){this._minDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(fe))}get maxDate(){return this._maxDate}set maxDate(fe){this._maxDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(fe))}get activeDate(){return this._clampedActiveDate}set activeDate(fe){this._clampedActiveDate=this._dateAdapter.clampDate(fe,this.minDate,this.maxDate),this.stateChanges.next(),this._changeDetectorRef.markForCheck()}get currentView(){return this._currentView}set currentView(fe){const lt=this._currentView!==fe?fe:null;this._currentView=fe,this._moveFocusOnNextTick=!0,this._changeDetectorRef.markForCheck(),lt&&this.viewChanged.emit(lt)}constructor(fe,lt,It,Bt){this._dateAdapter=lt,this._dateFormats=It,this._changeDetectorRef=Bt,this._moveFocusOnNextTick=!1,this.startView="month",this.selectedChange=new s.vpe,this.yearSelected=new s.vpe,this.monthSelected=new s.vpe,this.viewChanged=new s.vpe(!0),this._userSelection=new s.vpe,this._userDragDrop=new s.vpe,this._activeDrag=null,this.stateChanges=new d.x,this._intlChanges=fe.changes.subscribe(()=>{Bt.markForCheck(),this.stateChanges.next()})}ngAfterContentInit(){this._calendarHeaderPortal=new b.C5(this.headerComponent||_t),this.activeDate=this.startAt||this._dateAdapter.today(),this._currentView=this.startView}ngAfterViewChecked(){this._moveFocusOnNextTick&&(this._moveFocusOnNextTick=!1,this.focusActiveCell())}ngOnDestroy(){this._intlChanges.unsubscribe(),this.stateChanges.complete()}ngOnChanges(fe){const lt=fe.minDate&&!this._dateAdapter.sameDate(fe.minDate.previousValue,fe.minDate.currentValue)?fe.minDate:void 0,It=fe.maxDate&&!this._dateAdapter.sameDate(fe.maxDate.previousValue,fe.maxDate.currentValue)?fe.maxDate:void 0,Bt=lt||It||fe.dateFilter;if(Bt&&!Bt.firstChange){const zt=this._getCurrentViewComponent();zt&&(this._changeDetectorRef.detectChanges(),zt._init())}this.stateChanges.next()}focusActiveCell(){this._getCurrentViewComponent()._focusActiveCell(!1)}updateTodaysDate(){this._getCurrentViewComponent()._init()}_dateSelected(fe){const lt=fe.value;(this.selected instanceof te||lt&&!this._dateAdapter.sameDate(lt,this.selected))&&this.selectedChange.emit(lt),this._userSelection.emit(fe)}_yearSelectedInMultiYearView(fe){this.yearSelected.emit(fe)}_monthSelectedInYearView(fe){this.monthSelected.emit(fe)}_goToDateInView(fe,lt){this.activeDate=fe,this.currentView=lt}_dragStarted(fe){this._activeDrag=fe}_dragEnded(fe){this._activeDrag&&(fe.value&&this._userDragDrop.emit(fe),this._activeDrag=null)}_getCurrentViewComponent(){return this.monthView||this.yearView||this.multiYearView}}return Wt.\u0275fac=function(fe){return new(fe||Wt)(s.Y36(Fe),s.Y36(P._A,8),s.Y36(P.sG,8),s.Y36(s.sBO))},Wt.\u0275cmp=s.Xpm({type:Wt,selectors:[["mat-calendar"]],viewQuery:function(fe,lt){if(1&fe&&(s.Gf(Ke,5),s.Gf(Mt,5),s.Gf(Re,5)),2&fe){let It;s.iGM(It=s.CRH())&&(lt.monthView=It.first),s.iGM(It=s.CRH())&&(lt.yearView=It.first),s.iGM(It=s.CRH())&&(lt.multiYearView=It.first)}},hostAttrs:[1,"mat-calendar"],inputs:{headerComponent:"headerComponent",startAt:"startAt",startView:"startView",selected:"selected",minDate:"minDate",maxDate:"maxDate",dateFilter:"dateFilter",dateClass:"dateClass",comparisonStart:"comparisonStart",comparisonEnd:"comparisonEnd",startDateAccessibleName:"startDateAccessibleName",endDateAccessibleName:"endDateAccessibleName"},outputs:{selectedChange:"selectedChange",yearSelected:"yearSelected",monthSelected:"monthSelected",viewChanged:"viewChanged",_userSelection:"_userSelection",_userDragDrop:"_userDragDrop"},exportAs:["matCalendar"],features:[s._Bn([ft]),s.TTD],decls:5,vars:5,consts:[[3,"cdkPortalOutlet"],["cdkMonitorSubtreeFocus","","tabindex","-1",1,"mat-calendar-content",3,"ngSwitch"],[3,"activeDate","selected","dateFilter","maxDate","minDate","dateClass","comparisonStart","comparisonEnd","startDateAccessibleName","endDateAccessibleName","activeDrag","activeDateChange","_userSelection","dragStarted","dragEnded",4,"ngSwitchCase"],[3,"activeDate","selected","dateFilter","maxDate","minDate","dateClass","activeDateChange","monthSelected","selectedChange",4,"ngSwitchCase"],[3,"activeDate","selected","dateFilter","maxDate","minDate","dateClass","activeDateChange","yearSelected","selectedChange",4,"ngSwitchCase"],[3,"activeDate","selected","dateFilter","maxDate","minDate","dateClass","comparisonStart","comparisonEnd","startDateAccessibleName","endDateAccessibleName","activeDrag","activeDateChange","_userSelection","dragStarted","dragEnded"],[3,"activeDate","selected","dateFilter","maxDate","minDate","dateClass","activeDateChange","monthSelected","selectedChange"],[3,"activeDate","selected","dateFilter","maxDate","minDate","dateClass","activeDateChange","yearSelected","selectedChange"]],template:function(fe,lt){1&fe&&(s.YNc(0,l,0,0,"ng-template",0),s.TgZ(1,"div",1),s.YNc(2,y,1,11,"mat-month-view",2),s.YNc(3,T,1,6,"mat-year-view",3),s.YNc(4,L,1,6,"mat-multi-year-view",4),s.qZA()),2&fe&&(s.Q6J("cdkPortalOutlet",lt._calendarHeaderPortal),s.xp6(1),s.Q6J("ngSwitch",lt.currentView),s.xp6(1),s.Q6J("ngSwitchCase","month"),s.xp6(1),s.Q6J("ngSwitchCase","year"),s.xp6(1),s.Q6J("ngSwitchCase","multi-year"))},dependencies:[I.RF,I.n9,t.kH,b.Pl,Ke,Mt,Re],styles:['.mat-calendar{display:block}.mat-calendar-header{padding:8px 8px 0 8px}.mat-calendar-content{padding:0 8px 8px 8px;outline:none}.mat-calendar-controls{display:flex;align-items:center;margin:5% calc(4.7142857143% - 16px)}.mat-calendar-spacer{flex:1 1 auto}.mat-calendar-period-button{min-width:0;margin:0 8px}.mat-calendar-arrow{display:inline-block;width:10px;height:5px;margin:0 0 0 5px;vertical-align:middle}.mat-calendar-arrow.mat-calendar-invert{transform:rotate(180deg)}[dir=rtl] .mat-calendar-arrow{margin:0 5px 0 0}.cdk-high-contrast-active .mat-calendar-arrow{fill:CanvasText}.mat-calendar-previous-button,.mat-calendar-next-button{position:relative}.mat-calendar-previous-button::after,.mat-calendar-next-button::after{top:0;left:0;right:0;bottom:0;position:absolute;content:"";margin:15.5px;border:0 solid currentColor;border-top-width:2px}[dir=rtl] .mat-calendar-previous-button,[dir=rtl] .mat-calendar-next-button{transform:rotate(180deg)}.mat-calendar-previous-button::after{border-left-width:2px;transform:translateX(2px) rotate(-45deg)}.mat-calendar-next-button::after{border-right-width:2px;transform:translateX(-2px) rotate(45deg)}.mat-calendar-table{border-spacing:0;border-collapse:collapse;width:100%}.mat-calendar-table-header th{text-align:center;padding:0 0 8px 0}.mat-calendar-table-header-divider{position:relative;height:1px}.mat-calendar-table-header-divider::after{content:"";position:absolute;top:0;left:-8px;right:-8px;height:1px}.mat-calendar-body-cell-content::before{margin:calc(calc(var(--mat-focus-indicator-border-width, 3px) + 3px) * -1)}.mat-calendar-body-cell:focus .mat-focus-indicator::before{content:""}.mat-calendar-hidden-label{display:none}'],encapsulation:2,changeDetection:0}),Wt})();const J={transformPanel:(0,ie.X$)("transformPanel",[(0,ie.eR)("void => enter-dropdown",(0,ie.jt)("120ms cubic-bezier(0, 0, 0.2, 1)",(0,ie.F4)([(0,ie.oB)({opacity:0,transform:"scale(1, 0.8)"}),(0,ie.oB)({opacity:1,transform:"scale(1, 1)"})]))),(0,ie.eR)("void => enter-dialog",(0,ie.jt)("150ms cubic-bezier(0, 0, 0.2, 1)",(0,ie.F4)([(0,ie.oB)({opacity:0,transform:"scale(0.7)"}),(0,ie.oB)({transform:"none",opacity:1})]))),(0,ie.eR)("* => void",(0,ie.jt)("100ms linear",(0,ie.oB)({opacity:0})))]),fadeInCalendar:(0,ie.X$)("fadeInCalendar",[(0,ie.SB)("void",(0,ie.oB)({opacity:0})),(0,ie.SB)("enter",(0,ie.oB)({opacity:1})),(0,ie.eR)("void => *",(0,ie.jt)("120ms 100ms cubic-bezier(0.55, 0, 0.55, 0.2)"))])};let be=0;const He=new s.OlP("mat-datepicker-scroll-strategy"),ii={provide:He,deps:[e.aV],useFactory:function at(Wt){return()=>Wt.scrollStrategies.reposition()}},Gt=(0,P.pj)(class{constructor(Wt){this._elementRef=Wt}});let ni=(()=>{class Wt extends Gt{constructor(fe,lt,It,Bt,zt,oi){super(fe),this._changeDetectorRef=lt,this._globalModel=It,this._dateAdapter=Bt,this._rangeSelectionStrategy=zt,this._subscriptions=new S.w0,this._animationDone=new d.x,this._isAnimating=!1,this._actionsPortal=null,this._closeButtonText=oi.closeCalendarLabel}ngOnInit(){this._animationState=this.datepicker.touchUi?"enter-dialog":"enter-dropdown"}ngAfterViewInit(){this._subscriptions.add(this.datepicker.stateChanges.subscribe(()=>{this._changeDetectorRef.markForCheck()})),this._calendar.focusActiveCell()}ngOnDestroy(){this._subscriptions.unsubscribe(),this._animationDone.complete()}_handleUserSelection(fe){const lt=this._model.selection,It=fe.value,Bt=lt instanceof te;if(Bt&&this._rangeSelectionStrategy){const zt=this._rangeSelectionStrategy.selectionFinished(It,lt,fe.event);this._model.updateSelection(zt,this)}else It&&(Bt||!this._dateAdapter.sameDate(It,lt))&&this._model.add(It);(!this._model||this._model.isComplete())&&!this._actionsPortal&&this.datepicker.close()}_handleUserDragDrop(fe){this._model.updateSelection(fe.value,this)}_startExitAnimation(){this._animationState="void",this._changeDetectorRef.markForCheck()}_handleAnimationEvent(fe){this._isAnimating="start"===fe.phaseName,this._isAnimating||this._animationDone.next()}_getSelected(){return this._model.selection}_applyPendingSelection(){this._model!==this._globalModel&&this._globalModel.updateSelection(this._model.selection,this)}_assignActions(fe,lt){this._model=fe?this._globalModel.clone():this._globalModel,this._actionsPortal=fe,lt&&this._changeDetectorRef.detectChanges()}}return Wt.\u0275fac=function(fe){return new(fe||Wt)(s.Y36(s.SBq),s.Y36(s.sBO),s.Y36(Ue),s.Y36(P._A),s.Y36(Et,8),s.Y36(Fe))},Wt.\u0275cmp=s.Xpm({type:Wt,selectors:[["mat-datepicker-content"]],viewQuery:function(fe,lt){if(1&fe&&s.Gf(we,5),2&fe){let It;s.iGM(It=s.CRH())&&(lt._calendar=It.first)}},hostAttrs:[1,"mat-datepicker-content"],hostVars:3,hostBindings:function(fe,lt){1&fe&&s.WFA("@transformPanel.start",function(Bt){return lt._handleAnimationEvent(Bt)})("@transformPanel.done",function(Bt){return lt._handleAnimationEvent(Bt)}),2&fe&&(s.d8E("@transformPanel",lt._animationState),s.ekj("mat-datepicker-content-touch",lt.datepicker.touchUi))},inputs:{color:"color"},exportAs:["matDatepickerContent"],features:[s.qOj],decls:5,vars:26,consts:[["cdkTrapFocus","","role","dialog",1,"mat-datepicker-content-container"],[3,"id","ngClass","startAt","startView","minDate","maxDate","dateFilter","headerComponent","selected","dateClass","comparisonStart","comparisonEnd","startDateAccessibleName","endDateAccessibleName","yearSelected","monthSelected","viewChanged","_userSelection","_userDragDrop"],[3,"cdkPortalOutlet"],["type","button","mat-raised-button","",1,"mat-datepicker-close-button",3,"color","focus","blur","click"]],template:function(fe,lt){if(1&fe&&(s.TgZ(0,"div",0)(1,"mat-calendar",1),s.NdJ("yearSelected",function(Bt){return lt.datepicker._selectYear(Bt)})("monthSelected",function(Bt){return lt.datepicker._selectMonth(Bt)})("viewChanged",function(Bt){return lt.datepicker._viewChanged(Bt)})("_userSelection",function(Bt){return lt._handleUserSelection(Bt)})("_userDragDrop",function(Bt){return lt._handleUserDragDrop(Bt)}),s.qZA(),s.YNc(2,m,0,0,"ng-template",2),s.TgZ(3,"button",3),s.NdJ("focus",function(){return lt._closeButtonFocused=!0})("blur",function(){return lt._closeButtonFocused=!1})("click",function(){return lt.datepicker.close()}),s._uU(4),s.qZA()()),2&fe){let It;s.ekj("mat-datepicker-content-container-with-custom-header",lt.datepicker.calendarHeaderComponent)("mat-datepicker-content-container-with-actions",lt._actionsPortal),s.uIk("aria-modal",!0)("aria-labelledby",null!==(It=lt._dialogLabelId)&&void 0!==It?It:void 0),s.xp6(1),s.Q6J("id",lt.datepicker.id)("ngClass",lt.datepicker.panelClass)("startAt",lt.datepicker.startAt)("startView",lt.datepicker.startView)("minDate",lt.datepicker._getMinDate())("maxDate",lt.datepicker._getMaxDate())("dateFilter",lt.datepicker._getDateFilter())("headerComponent",lt.datepicker.calendarHeaderComponent)("selected",lt._getSelected())("dateClass",lt.datepicker.dateClass)("comparisonStart",lt.comparisonStart)("comparisonEnd",lt.comparisonEnd)("@fadeInCalendar","enter")("startDateAccessibleName",lt.startDateAccessibleName)("endDateAccessibleName",lt.endDateAccessibleName),s.xp6(1),s.Q6J("cdkPortalOutlet",lt._actionsPortal),s.xp6(1),s.ekj("cdk-visually-hidden",!lt._closeButtonFocused),s.Q6J("color",lt.color||"primary"),s.xp6(1),s.Oqu(lt._closeButtonText)}},dependencies:[I.mk,C.lW,t.mK,b.Pl,we],styles:[".mat-datepicker-content{display:block;border-radius:4px}.mat-datepicker-content .mat-calendar{width:296px;height:354px}.mat-datepicker-content .mat-datepicker-content-container-with-custom-header .mat-calendar{height:auto}.mat-datepicker-content .mat-datepicker-close-button{position:absolute;top:100%;left:0;margin-top:8px}.ng-animating .mat-datepicker-content .mat-datepicker-close-button{display:none}.mat-datepicker-content-container{display:flex;flex-direction:column;justify-content:space-between}.mat-datepicker-content-touch{display:block;max-height:80vh;position:relative;overflow:visible}.mat-datepicker-content-touch .mat-datepicker-content-container{min-height:312px;max-height:788px;min-width:250px;max-width:750px}.mat-datepicker-content-touch .mat-calendar{width:100%;height:auto}@media all and (orientation: landscape){.mat-datepicker-content-touch .mat-datepicker-content-container{width:64vh;height:80vh}}@media all and (orientation: portrait){.mat-datepicker-content-touch .mat-datepicker-content-container{width:80vw;height:100vw}.mat-datepicker-content-touch .mat-datepicker-content-container-with-actions{height:115vw}}"],encapsulation:2,data:{animation:[J.transformPanel,J.fadeInCalendar]},changeDetection:0}),Wt})(),ut=(()=>{class Wt{get startAt(){return this._startAt||(this.datepickerInput?this.datepickerInput.getStartValue():null)}set startAt(fe){this._startAt=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(fe))}get color(){return this._color||(this.datepickerInput?this.datepickerInput.getThemePalette():void 0)}set color(fe){this._color=fe}get touchUi(){return this._touchUi}set touchUi(fe){this._touchUi=(0,K.Ig)(fe)}get disabled(){return void 0===this._disabled&&this.datepickerInput?this.datepickerInput.disabled:!!this._disabled}set disabled(fe){const lt=(0,K.Ig)(fe);lt!==this._disabled&&(this._disabled=lt,this.stateChanges.next(void 0))}get restoreFocus(){return this._restoreFocus}set restoreFocus(fe){this._restoreFocus=(0,K.Ig)(fe)}get panelClass(){return this._panelClass}set panelClass(fe){this._panelClass=(0,K.du)(fe)}get opened(){return this._opened}set opened(fe){(0,K.Ig)(fe)?this.open():this.close()}_getMinDate(){return this.datepickerInput&&this.datepickerInput.min}_getMaxDate(){return this.datepickerInput&&this.datepickerInput.max}_getDateFilter(){return this.datepickerInput&&this.datepickerInput.dateFilter}constructor(fe,lt,It,Bt,zt,oi,Yt){this._overlay=fe,this._ngZone=lt,this._viewContainerRef=It,this._dateAdapter=zt,this._dir=oi,this._model=Yt,this._inputStateChanges=S.w0.EMPTY,this._document=(0,s.f3M)(I.K0),this.startView="month",this._touchUi=!1,this.xPosition="start",this.yPosition="below",this._restoreFocus=!0,this.yearSelected=new s.vpe,this.monthSelected=new s.vpe,this.viewChanged=new s.vpe(!0),this.openedStream=new s.vpe,this.closedStream=new s.vpe,this._opened=!1,this.id="mat-datepicker-"+be++,this._focusedElementBeforeOpen=null,this._backdropHarnessClass=`${this.id}-backdrop`,this.stateChanges=new d.x,this._scrollStrategy=Bt}ngOnChanges(fe){const lt=fe.xPosition||fe.yPosition;if(lt&&!lt.firstChange&&this._overlayRef){const It=this._overlayRef.getConfig().positionStrategy;It instanceof e._G&&(this._setConnectedPositions(It),this.opened&&this._overlayRef.updatePosition())}this.stateChanges.next(void 0)}ngOnDestroy(){this._destroyOverlay(),this.close(),this._inputStateChanges.unsubscribe(),this.stateChanges.complete()}select(fe){this._model.add(fe)}_selectYear(fe){this.yearSelected.emit(fe)}_selectMonth(fe){this.monthSelected.emit(fe)}_viewChanged(fe){this.viewChanged.emit(fe)}registerInput(fe){return this._inputStateChanges.unsubscribe(),this.datepickerInput=fe,this._inputStateChanges=fe.stateChanges.subscribe(()=>this.stateChanges.next(void 0)),this._model}registerActions(fe){this._actionsPortal=fe,this._componentRef?.instance._assignActions(fe,!0)}removeActions(fe){fe===this._actionsPortal&&(this._actionsPortal=null,this._componentRef?.instance._assignActions(null,!0))}open(){this._opened||this.disabled||this._componentRef?.instance._isAnimating||(this._focusedElementBeforeOpen=(0,ee.ht)(),this._openOverlay(),this._opened=!0,this.openedStream.emit())}close(){if(!this._opened||this._componentRef?.instance._isAnimating)return;const fe=this._restoreFocus&&this._focusedElementBeforeOpen&&"function"==typeof this._focusedElementBeforeOpen.focus,lt=()=>{this._opened&&(this._opened=!1,this.closedStream.emit())};if(this._componentRef){const{instance:It,location:Bt}=this._componentRef;It._startExitAnimation(),It._animationDone.pipe((0,z.q)(1)).subscribe(()=>{const zt=this._document.activeElement;fe&&(!zt||zt===this._document.activeElement||Bt.nativeElement.contains(zt))&&this._focusedElementBeforeOpen.focus(),this._focusedElementBeforeOpen=null,this._destroyOverlay()})}fe?setTimeout(lt):lt()}_applyPendingSelection(){this._componentRef?.instance?._applyPendingSelection()}_forwardContentValues(fe){fe.datepicker=this,fe.color=this.color,fe._dialogLabelId=this.datepickerInput.getOverlayLabelId(),fe._assignActions(this._actionsPortal,!1)}_openOverlay(){this._destroyOverlay();const fe=this.touchUi,lt=new b.C5(ni,this._viewContainerRef),It=this._overlayRef=this._overlay.create(new e.X_({positionStrategy:fe?this._getDialogStrategy():this._getDropdownStrategy(),hasBackdrop:!0,backdropClass:[fe?"cdk-overlay-dark-backdrop":"mat-overlay-transparent-backdrop",this._backdropHarnessClass],direction:this._dir,scrollStrategy:fe?this._overlay.scrollStrategies.block():this._scrollStrategy(),panelClass:"mat-datepicker-"+(fe?"dialog":"popup")}));this._getCloseStream(It).subscribe(Bt=>{Bt&&Bt.preventDefault(),this.close()}),It.keydownEvents().subscribe(Bt=>{const zt=Bt.keyCode;(zt===E.LH||zt===E.JH||zt===E.oh||zt===E.SV||zt===E.Ku||zt===E.VM)&&Bt.preventDefault()}),this._componentRef=It.attach(lt),this._forwardContentValues(this._componentRef.instance),fe||this._ngZone.onStable.pipe((0,z.q)(1)).subscribe(()=>It.updatePosition())}_destroyOverlay(){this._overlayRef&&(this._overlayRef.dispose(),this._overlayRef=this._componentRef=null)}_getDialogStrategy(){return this._overlay.position().global().centerHorizontally().centerVertically()}_getDropdownStrategy(){const fe=this._overlay.position().flexibleConnectedTo(this.datepickerInput.getConnectedOverlayOrigin()).withTransformOriginOn(".mat-datepicker-content").withFlexibleDimensions(!1).withViewportMargin(8).withLockedPosition();return this._setConnectedPositions(fe)}_setConnectedPositions(fe){const lt="end"===this.xPosition?"end":"start",It="start"===lt?"end":"start",Bt="above"===this.yPosition?"bottom":"top",zt="top"===Bt?"bottom":"top";return fe.withPositions([{originX:lt,originY:zt,overlayX:lt,overlayY:Bt},{originX:lt,originY:Bt,overlayX:lt,overlayY:zt},{originX:It,originY:zt,overlayX:It,overlayY:Bt},{originX:It,originY:Bt,overlayX:It,overlayY:zt}])}_getCloseStream(fe){const lt=["ctrlKey","shiftKey","metaKey"];return(0,w.T)(fe.backdropClick(),fe.detachments(),fe.keydownEvents().pipe((0,W.h)(It=>It.keyCode===E.hY&&!(0,E.Vb)(It)||this.datepickerInput&&(0,E.Vb)(It,"altKey")&&It.keyCode===E.LH&&lt.every(Bt=>!(0,E.Vb)(It,Bt)))))}}return Wt.\u0275fac=function(fe){return new(fe||Wt)(s.Y36(e.aV),s.Y36(s.R0b),s.Y36(s.s_b),s.Y36(He),s.Y36(P._A,8),s.Y36(R.Is,8),s.Y36(Ue))},Wt.\u0275dir=s.lG2({type:Wt,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]}),Wt})(),tt=(()=>{class Wt extends ut{}return Wt.\u0275fac=function(){let Jt;return function(lt){return(Jt||(Jt=s.n5z(Wt)))(lt||Wt)}}(),Wt.\u0275cmp=s.Xpm({type:Wt,selectors:[["mat-datepicker"]],exportAs:["matDatepicker"],features:[s._Bn([ft,{provide:ut,useExisting:Wt}]),s.qOj],decls:0,vars:0,template:function(fe,lt){},encapsulation:2,changeDetection:0}),Wt})();class vt{constructor(Jt,fe){this.target=Jt,this.targetElement=fe,this.value=this.target.value}}let ti=(()=>{class Wt{get value(){return this._model?this._getValueFromModel(this._model.selection):this._pendingValue}set value(fe){this._assignValueProgrammatically(fe)}get disabled(){return!!this._disabled||this._parentDisabled()}set disabled(fe){const lt=(0,K.Ig)(fe),It=this._elementRef.nativeElement;this._disabled!==lt&&(this._disabled=lt,this.stateChanges.next(void 0)),lt&&this._isInitialized&&It.blur&&It.blur()}_getValidators(){return[this._parseValidator,this._minValidator,this._maxValidator,this._filterValidator]}_registerModel(fe){this._model=fe,this._valueChangesSubscription.unsubscribe(),this._pendingValue&&this._assignValue(this._pendingValue),this._valueChangesSubscription=this._model.selectionChanged.subscribe(lt=>{if(this._shouldHandleChangeEvent(lt)){const It=this._getValueFromModel(lt.selection);this._lastValueValid=this._isValidValue(It),this._cvaOnChange(It),this._onTouched(),this._formatValue(It),this.dateInput.emit(new vt(this,this._elementRef.nativeElement)),this.dateChange.emit(new vt(this,this._elementRef.nativeElement))}})}constructor(fe,lt,It){this._elementRef=fe,this._dateAdapter=lt,this._dateFormats=It,this.dateChange=new s.vpe,this.dateInput=new s.vpe,this.stateChanges=new d.x,this._onTouched=()=>{},this._validatorOnChange=()=>{},this._cvaOnChange=()=>{},this._valueChangesSubscription=S.w0.EMPTY,this._localeSubscription=S.w0.EMPTY,this._parseValidator=()=>this._lastValueValid?null:{matDatepickerParse:{text:this._elementRef.nativeElement.value}},this._filterValidator=Bt=>{const zt=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(Bt.value));return!zt||this._matchesFilter(zt)?null:{matDatepickerFilter:!0}},this._minValidator=Bt=>{const zt=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(Bt.value)),oi=this._getMinDate();return!oi||!zt||this._dateAdapter.compareDate(oi,zt)<=0?null:{matDatepickerMin:{min:oi,actual:zt}}},this._maxValidator=Bt=>{const zt=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(Bt.value)),oi=this._getMaxDate();return!oi||!zt||this._dateAdapter.compareDate(oi,zt)>=0?null:{matDatepickerMax:{max:oi,actual:zt}}},this._lastValueValid=!1,this._localeSubscription=lt.localeChanges.subscribe(()=>{this._assignValueProgrammatically(this.value)})}ngAfterViewInit(){this._isInitialized=!0}ngOnChanges(fe){(function Ut(Wt,Jt){const fe=Object.keys(Wt);for(let lt of fe){const{previousValue:It,currentValue:Bt}=Wt[lt];if(!Jt.isDateInstance(It)||!Jt.isDateInstance(Bt))return!0;if(!Jt.sameDate(It,Bt))return!0}return!1})(fe,this._dateAdapter)&&this.stateChanges.next(void 0)}ngOnDestroy(){this._valueChangesSubscription.unsubscribe(),this._localeSubscription.unsubscribe(),this.stateChanges.complete()}registerOnValidatorChange(fe){this._validatorOnChange=fe}validate(fe){return this._validator?this._validator(fe):null}writeValue(fe){this._assignValueProgrammatically(fe)}registerOnChange(fe){this._cvaOnChange=fe}registerOnTouched(fe){this._onTouched=fe}setDisabledState(fe){this.disabled=fe}_onKeydown(fe){(0,E.Vb)(fe,"altKey")&&fe.keyCode===E.JH&&["ctrlKey","shiftKey","metaKey"].every(Bt=>!(0,E.Vb)(fe,Bt))&&!this._elementRef.nativeElement.readOnly&&(this._openPopup(),fe.preventDefault())}_onInput(fe){const lt=this._lastValueValid;let It=this._dateAdapter.parse(fe,this._dateFormats.parse.dateInput);this._lastValueValid=this._isValidValue(It),It=this._dateAdapter.getValidDateOrNull(It);const Bt=!this._dateAdapter.sameDate(It,this.value);!It||Bt?this._cvaOnChange(It):(fe&&!this.value&&this._cvaOnChange(It),lt!==this._lastValueValid&&this._validatorOnChange()),Bt&&(this._assignValue(It),this.dateInput.emit(new vt(this,this._elementRef.nativeElement)))}_onChange(){this.dateChange.emit(new vt(this,this._elementRef.nativeElement))}_onBlur(){this.value&&this._formatValue(this.value),this._onTouched()}_formatValue(fe){this._elementRef.nativeElement.value=null!=fe?this._dateAdapter.format(fe,this._dateFormats.display.dateInput):""}_assignValue(fe){this._model?(this._assignValueToModel(fe),this._pendingValue=null):this._pendingValue=fe}_isValidValue(fe){return!fe||this._dateAdapter.isValid(fe)}_parentDisabled(){return!1}_assignValueProgrammatically(fe){fe=this._dateAdapter.deserialize(fe),this._lastValueValid=this._isValidValue(fe),fe=this._dateAdapter.getValidDateOrNull(fe),this._assignValue(fe),this._formatValue(fe)}_matchesFilter(fe){const lt=this._getDateFilter();return!lt||lt(fe)}}return Wt.\u0275fac=function(fe){return new(fe||Wt)(s.Y36(s.SBq),s.Y36(P._A,8),s.Y36(P.sG,8))},Wt.\u0275dir=s.lG2({type:Wt,inputs:{value:"value",disabled:"disabled"},outputs:{dateChange:"dateChange",dateInput:"dateInput"},features:[s.TTD]}),Wt})();const ht={provide:ue.JU,useExisting:(0,s.Gpc)(()=>Oe),multi:!0},Rt={provide:ue.Cf,useExisting:(0,s.Gpc)(()=>Oe),multi:!0};let Oe=(()=>{class Wt extends ti{set matDatepicker(fe){fe&&(this._datepicker=fe,this._closedSubscription=fe.closedStream.subscribe(()=>this._onTouched()),this._registerModel(fe.registerInput(this)))}get min(){return this._min}set min(fe){const lt=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(fe));this._dateAdapter.sameDate(lt,this._min)||(this._min=lt,this._validatorOnChange())}get max(){return this._max}set max(fe){const lt=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(fe));this._dateAdapter.sameDate(lt,this._max)||(this._max=lt,this._validatorOnChange())}get dateFilter(){return this._dateFilter}set dateFilter(fe){const lt=this._matchesFilter(this.value);this._dateFilter=fe,this._matchesFilter(this.value)!==lt&&this._validatorOnChange()}constructor(fe,lt,It,Bt){super(fe,lt,It),this._formField=Bt,this._closedSubscription=S.w0.EMPTY,this._validator=ue.kI.compose(super._getValidators())}getConnectedOverlayOrigin(){return this._formField?this._formField.getConnectedOverlayOrigin():this._elementRef}getOverlayLabelId(){return this._formField?this._formField.getLabelId():this._elementRef.nativeElement.getAttribute("aria-labelledby")}getThemePalette(){return this._formField?this._formField.color:void 0}getStartValue(){return this.value}ngOnDestroy(){super.ngOnDestroy(),this._closedSubscription.unsubscribe()}_openPopup(){this._datepicker&&this._datepicker.open()}_getValueFromModel(fe){return fe}_assignValueToModel(fe){this._model&&this._model.updateSelection(fe,this)}_getMinDate(){return this._min}_getMaxDate(){return this._max}_getDateFilter(){return this._dateFilter}_shouldHandleChangeEvent(fe){return fe.source!==this}}return Wt.\u0275fac=function(fe){return new(fe||Wt)(s.Y36(s.SBq),s.Y36(P._A,8),s.Y36(P.sG,8),s.Y36(le.G_,8))},Wt.\u0275dir=s.lG2({type:Wt,selectors:[["input","matDatepicker",""]],hostAttrs:[1,"mat-datepicker-input"],hostVars:6,hostBindings:function(fe,lt){1&fe&&s.NdJ("input",function(Bt){return lt._onInput(Bt.target.value)})("change",function(){return lt._onChange()})("blur",function(){return lt._onBlur()})("keydown",function(Bt){return lt._onKeydown(Bt)}),2&fe&&(s.Ikx("disabled",lt.disabled),s.uIk("aria-haspopup",lt._datepicker?"dialog":null)("aria-owns",(null==lt._datepicker?null:lt._datepicker.opened)&&lt._datepicker.id||null)("min",lt.min?lt._dateAdapter.toIso8601(lt.min):null)("max",lt.max?lt._dateAdapter.toIso8601(lt.max):null)("data-mat-calendar",lt._datepicker?lt._datepicker.id:null))},inputs:{matDatepicker:"matDatepicker",min:"min",max:"max",dateFilter:["matDatepickerFilter","dateFilter"]},exportAs:["matDatepickerInput"],features:[s._Bn([ht,Rt,{provide:ne.Jk,useExisting:Wt}]),s.qOj]}),Wt})(),et=(()=>{class Wt{}return Wt.\u0275fac=function(fe){return new(fe||Wt)},Wt.\u0275dir=s.lG2({type:Wt,selectors:[["","matDatepickerToggleIcon",""]]}),Wt})(),it=(()=>{class Wt{get disabled(){return void 0===this._disabled&&this.datepicker?this.datepicker.disabled:!!this._disabled}set disabled(fe){this._disabled=(0,K.Ig)(fe)}constructor(fe,lt,It){this._intl=fe,this._changeDetectorRef=lt,this._stateChanges=S.w0.EMPTY;const Bt=Number(It);this.tabIndex=Bt||0===Bt?Bt:null}ngOnChanges(fe){fe.datepicker&&this._watchStateChanges()}ngOnDestroy(){this._stateChanges.unsubscribe()}ngAfterContentInit(){this._watchStateChanges()}_open(fe){this.datepicker&&!this.disabled&&(this.datepicker.open(),fe.stopPropagation())}_watchStateChanges(){const fe=this.datepicker?this.datepicker.stateChanges:(0,O.of)(),lt=this.datepicker&&this.datepicker.datepickerInput?this.datepicker.datepickerInput.stateChanges:(0,O.of)(),It=this.datepicker?(0,w.T)(this.datepicker.openedStream,this.datepicker.closedStream):(0,O.of)();this._stateChanges.unsubscribe(),this._stateChanges=(0,w.T)(this._intl.changes,fe,lt,It).subscribe(()=>this._changeDetectorRef.markForCheck())}}return Wt.\u0275fac=function(fe){return new(fe||Wt)(s.Y36(Fe),s.Y36(s.sBO),s.$8M("tabindex"))},Wt.\u0275cmp=s.Xpm({type:Wt,selectors:[["mat-datepicker-toggle"]],contentQueries:function(fe,lt,It){if(1&fe&&s.Suo(It,et,5),2&fe){let Bt;s.iGM(Bt=s.CRH())&&(lt._customIcon=Bt.first)}},viewQuery:function(fe,lt){if(1&fe&&s.Gf(n,5),2&fe){let It;s.iGM(It=s.CRH())&&(lt._button=It.first)}},hostAttrs:[1,"mat-datepicker-toggle"],hostVars:8,hostBindings:function(fe,lt){1&fe&&s.NdJ("click",function(Bt){return lt._open(Bt)}),2&fe&&(s.uIk("tabindex",null)("data-mat-calendar",lt.datepicker?lt.datepicker.id:null),s.ekj("mat-datepicker-toggle-active",lt.datepicker&&lt.datepicker.opened)("mat-accent",lt.datepicker&&"accent"===lt.datepicker.color)("mat-warn",lt.datepicker&&"warn"===lt.datepicker.color))},inputs:{datepicker:["for","datepicker"],tabIndex:"tabIndex",ariaLabel:["aria-label","ariaLabel"],disabled:"disabled",disableRipple:"disableRipple"},exportAs:["matDatepickerToggle"],features:[s.TTD],ngContentSelectors:V,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(fe,lt){1&fe&&(s.F$t(B),s.TgZ(0,"button",0,1),s.YNc(2,_,2,0,"svg",2),s.Hsn(3),s.qZA()),2&fe&&(s.Q6J("disabled",lt.disabled)("disableRipple",lt.disableRipple),s.uIk("aria-haspopup",lt.datepicker?"dialog":null)("aria-label",lt.ariaLabel||lt._intl.openCalendarLabel)("tabindex",lt.disabled?-1:lt.tabIndex),s.xp6(2),s.Q6J("ngIf",!lt._customIcon))},dependencies:[I.O5,C.RK],styles:[".mat-datepicker-toggle{pointer-events:auto}.cdk-high-contrast-active .mat-datepicker-toggle-default-icon{color:CanvasText}"],encapsulation:2,changeDetection:0}),Wt})(),Ji=(()=>{class Wt{}return Wt.\u0275fac=function(fe){return new(fe||Wt)},Wt.\u0275mod=s.oAB({type:Wt}),Wt.\u0275inj=s.cJS({providers:[Fe,ii],imports:[I.ez,C.ot,e.U8,t.rt,b.eL,P.BQ,h.ZD]}),Wt})()},5412:(Ve,q,p)=>{"use strict";p.d(q,{WI:()=>ye,Bq:()=>ce,uw:()=>te,ZT:()=>Be,Is:()=>dt,so:()=>Fe});var t=p(8184),e=p(6895),b=p(4650),I=p(4761),s=p(3353),C=p(4080),h=p(9521),P=p(7579),d=p(9770),S=p(9646),w=p(445),O=p(8675);function E(ot,wt){}class R{constructor(){this.role="dialog",this.panelClass="",this.hasBackdrop=!0,this.backdropClass="",this.disableClose=!1,this.width="",this.height="",this.data=null,this.ariaDescribedBy=null,this.ariaLabelledBy=null,this.ariaLabel=null,this.ariaModal=!0,this.autoFocus="first-tabbable",this.restoreFocus=!0,this.closeOnNavigation=!0,this.closeOnDestroy=!0}}let U=(()=>{class ot extends C.en{constructor(ke,Ke,xt,Y,Re,Tt,Qe,Ye){super(),this._elementRef=ke,this._focusTrapFactory=Ke,this._config=Y,this._interactivityChecker=Re,this._ngZone=Tt,this._overlayRef=Qe,this._focusMonitor=Ye,this._elementFocusedBeforeDialogWasOpened=null,this._closeInteractionType=null,this.attachDomPortal=Ht=>{this._portalOutlet.hasAttached();const Mt=this._portalOutlet.attachDomPortal(Ht);return this._contentAttached(),Mt},this._ariaLabelledBy=this._config.ariaLabelledBy||null,this._document=xt}_contentAttached(){this._initializeFocusTrap(),this._handleBackdropClicks(),this._captureInitialFocus()}_captureInitialFocus(){this._trapFocus()}ngOnDestroy(){this._restoreFocus()}attachComponentPortal(ke){this._portalOutlet.hasAttached();const Ke=this._portalOutlet.attachComponentPortal(ke);return this._contentAttached(),Ke}attachTemplatePortal(ke){this._portalOutlet.hasAttached();const Ke=this._portalOutlet.attachTemplatePortal(ke);return this._contentAttached(),Ke}_recaptureFocus(){this._containsFocus()||this._trapFocus()}_forceFocus(ke,Ke){this._interactivityChecker.isFocusable(ke)||(ke.tabIndex=-1,this._ngZone.runOutsideAngular(()=>{const xt=()=>{ke.removeEventListener("blur",xt),ke.removeEventListener("mousedown",xt),ke.removeAttribute("tabindex")};ke.addEventListener("blur",xt),ke.addEventListener("mousedown",xt)})),ke.focus(Ke)}_focusByCssSelector(ke,Ke){let xt=this._elementRef.nativeElement.querySelector(ke);xt&&this._forceFocus(xt,Ke)}_trapFocus(){const ke=this._elementRef.nativeElement;switch(this._config.autoFocus){case!1:case"dialog":this._containsFocus()||ke.focus();break;case!0:case"first-tabbable":this._focusTrap.focusInitialElementWhenReady().then(Ke=>{Ke||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 ke=this._config.restoreFocus;let Ke=null;if("string"==typeof ke?Ke=this._document.querySelector(ke):"boolean"==typeof ke?Ke=ke?this._elementFocusedBeforeDialogWasOpened:null:ke&&(Ke=ke),this._config.restoreFocus&&Ke&&"function"==typeof Ke.focus){const xt=(0,s.ht)(),Y=this._elementRef.nativeElement;(!xt||xt===this._document.body||xt===Y||Y.contains(xt))&&(this._focusMonitor?(this._focusMonitor.focusVia(Ke,this._closeInteractionType),this._closeInteractionType=null):Ke.focus())}this._focusTrap&&this._focusTrap.destroy()}_focusDialogContainer(){this._elementRef.nativeElement.focus&&this._elementRef.nativeElement.focus()}_containsFocus(){const ke=this._elementRef.nativeElement,Ke=(0,s.ht)();return ke===Ke||ke.contains(Ke)}_initializeFocusTrap(){this._focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement),this._document&&(this._elementFocusedBeforeDialogWasOpened=(0,s.ht)())}_handleBackdropClicks(){this._overlayRef.backdropClick().subscribe(()=>{this._config.disableClose&&this._recaptureFocus()})}}return ot.\u0275fac=function(ke){return new(ke||ot)(b.Y36(b.SBq),b.Y36(I.qV),b.Y36(e.K0,8),b.Y36(R),b.Y36(I.ic),b.Y36(b.R0b),b.Y36(t.Iu),b.Y36(I.tE))},ot.\u0275cmp=b.Xpm({type:ot,selectors:[["cdk-dialog-container"]],viewQuery:function(ke,Ke){if(1&ke&&b.Gf(C.Pl,7),2&ke){let xt;b.iGM(xt=b.CRH())&&(Ke._portalOutlet=xt.first)}},hostAttrs:["tabindex","-1",1,"cdk-dialog-container"],hostVars:6,hostBindings:function(ke,Ke){2&ke&&b.uIk("id",Ke._config.id||null)("role",Ke._config.role)("aria-modal",Ke._config.ariaModal)("aria-labelledby",Ke._config.ariaLabel?null:Ke._ariaLabelledBy)("aria-label",Ke._config.ariaLabel)("aria-describedby",Ke._config.ariaDescribedBy||null)},features:[b.qOj],decls:1,vars:0,consts:[["cdkPortalOutlet",""]],template:function(ke,Ke){1&ke&&b.YNc(0,E,0,0,"ng-template",0)},dependencies:[C.Pl],styles:[".cdk-dialog-container{display:block;width:100%;height:100%;min-height:inherit;max-height:inherit}"],encapsulation:2}),ot})();class W{constructor(wt,ke){this.overlayRef=wt,this.config=ke,this.closed=new P.x,this.disableClose=ke.disableClose,this.backdropClick=wt.backdropClick(),this.keydownEvents=wt.keydownEvents(),this.outsidePointerEvents=wt.outsidePointerEvents(),this.id=ke.id,this.keydownEvents.subscribe(Ke=>{Ke.keyCode===h.hY&&!this.disableClose&&!(0,h.Vb)(Ke)&&(Ke.preventDefault(),this.close(void 0,{focusOrigin:"keyboard"}))}),this.backdropClick.subscribe(()=>{this.disableClose||this.close(void 0,{focusOrigin:"mouse"})})}close(wt,ke){if(this.containerInstance){const Ke=this.closed;this.containerInstance._closeInteractionType=ke?.focusOrigin||"program",this.overlayRef.dispose(),Ke.next(wt),Ke.complete(),this.componentInstance=this.containerInstance=null}}updatePosition(){return this.overlayRef.updatePosition(),this}updateSize(wt="",ke=""){return this.overlayRef.updateSize({width:wt,height:ke}),this}addPanelClass(wt){return this.overlayRef.addPanelClass(wt),this}removePanelClass(wt){return this.overlayRef.removePanelClass(wt),this}}const K=new b.OlP("DialogScrollStrategy"),ee=new b.OlP("DialogData"),ie=new b.OlP("DefaultDialogConfig"),le={provide:K,deps:[t.aV],useFactory:function ue(ot){return()=>ot.scrollStrategies.block()}};let ne=0,de=(()=>{class ot{get openDialogs(){return this._parentDialog?this._parentDialog.openDialogs:this._openDialogsAtThisLevel}get afterOpened(){return this._parentDialog?this._parentDialog.afterOpened:this._afterOpenedAtThisLevel}constructor(ke,Ke,xt,Y,Re,Tt){this._overlay=ke,this._injector=Ke,this._defaultOptions=xt,this._parentDialog=Y,this._overlayContainer=Re,this._openDialogsAtThisLevel=[],this._afterAllClosedAtThisLevel=new P.x,this._afterOpenedAtThisLevel=new P.x,this._ariaHiddenElements=new Map,this.afterAllClosed=(0,d.P)(()=>this.openDialogs.length?this._getAfterAllClosed():this._getAfterAllClosed().pipe((0,O.O)(void 0))),this._scrollStrategy=Tt}open(ke,Ke){(Ke={...this._defaultOptions||new R,...Ke}).id=Ke.id||"cdk-dialog-"+ne++,Ke.id&&this.getDialogById(Ke.id);const Y=this._getOverlayConfig(Ke),Re=this._overlay.create(Y),Tt=new W(Re,Ke),Qe=this._attachContainer(Re,Tt,Ke);return Tt.containerInstance=Qe,this._attachDialogContent(ke,Tt,Qe,Ke),this.openDialogs.length||this._hideNonDialogContentFromAssistiveTechnology(),this.openDialogs.push(Tt),Tt.closed.subscribe(()=>this._removeOpenDialog(Tt,!0)),this.afterOpened.next(Tt),Tt}closeAll(){$(this.openDialogs,ke=>ke.close())}getDialogById(ke){return this.openDialogs.find(Ke=>Ke.id===ke)}ngOnDestroy(){$(this._openDialogsAtThisLevel,ke=>{!1===ke.config.closeOnDestroy&&this._removeOpenDialog(ke,!1)}),$(this._openDialogsAtThisLevel,ke=>ke.close()),this._afterAllClosedAtThisLevel.complete(),this._afterOpenedAtThisLevel.complete(),this._openDialogsAtThisLevel=[]}_getOverlayConfig(ke){const Ke=new t.X_({positionStrategy:ke.positionStrategy||this._overlay.position().global().centerHorizontally().centerVertically(),scrollStrategy:ke.scrollStrategy||this._scrollStrategy(),panelClass:ke.panelClass,hasBackdrop:ke.hasBackdrop,direction:ke.direction,minWidth:ke.minWidth,minHeight:ke.minHeight,maxWidth:ke.maxWidth,maxHeight:ke.maxHeight,width:ke.width,height:ke.height,disposeOnNavigation:ke.closeOnNavigation});return ke.backdropClass&&(Ke.backdropClass=ke.backdropClass),Ke}_attachContainer(ke,Ke,xt){const Y=xt.injector||xt.viewContainerRef?.injector,Re=[{provide:R,useValue:xt},{provide:W,useValue:Ke},{provide:t.Iu,useValue:ke}];let Tt;xt.container?"function"==typeof xt.container?Tt=xt.container:(Tt=xt.container.type,Re.push(...xt.container.providers(xt))):Tt=U;const Qe=new C.C5(Tt,xt.viewContainerRef,b.zs3.create({parent:Y||this._injector,providers:Re}),xt.componentFactoryResolver);return ke.attach(Qe).instance}_attachDialogContent(ke,Ke,xt,Y){if(ke instanceof b.Rgc){const Re=this._createInjector(Y,Ke,xt,void 0);let Tt={$implicit:Y.data,dialogRef:Ke};Y.templateContext&&(Tt={...Tt,..."function"==typeof Y.templateContext?Y.templateContext():Y.templateContext}),xt.attachTemplatePortal(new C.UE(ke,null,Tt,Re))}else{const Re=this._createInjector(Y,Ke,xt,this._injector),Tt=xt.attachComponentPortal(new C.C5(ke,Y.viewContainerRef,Re,Y.componentFactoryResolver));Ke.componentInstance=Tt.instance}}_createInjector(ke,Ke,xt,Y){const Re=ke.injector||ke.viewContainerRef?.injector,Tt=[{provide:ee,useValue:ke.data},{provide:W,useValue:Ke}];return ke.providers&&("function"==typeof ke.providers?Tt.push(...ke.providers(Ke,ke,xt)):Tt.push(...ke.providers)),ke.direction&&(!Re||!Re.get(w.Is,null,{optional:!0}))&&Tt.push({provide:w.Is,useValue:{value:ke.direction,change:(0,S.of)()}}),b.zs3.create({parent:Re||Y,providers:Tt})}_removeOpenDialog(ke,Ke){const xt=this.openDialogs.indexOf(ke);xt>-1&&(this.openDialogs.splice(xt,1),this.openDialogs.length||(this._ariaHiddenElements.forEach((Y,Re)=>{Y?Re.setAttribute("aria-hidden",Y):Re.removeAttribute("aria-hidden")}),this._ariaHiddenElements.clear(),Ke&&this._getAfterAllClosed().next()))}_hideNonDialogContentFromAssistiveTechnology(){const ke=this._overlayContainer.getContainerElement();if(ke.parentElement){const Ke=ke.parentElement.children;for(let xt=Ke.length-1;xt>-1;xt--){const Y=Ke[xt];Y!==ke&&"SCRIPT"!==Y.nodeName&&"STYLE"!==Y.nodeName&&!Y.hasAttribute("aria-live")&&(this._ariaHiddenElements.set(Y,Y.getAttribute("aria-hidden")),Y.setAttribute("aria-hidden","true"))}}}_getAfterAllClosed(){const ke=this._parentDialog;return ke?ke._getAfterAllClosed():this._afterAllClosedAtThisLevel}}return ot.\u0275fac=function(ke){return new(ke||ot)(b.LFG(t.aV),b.LFG(b.zs3),b.LFG(ie,8),b.LFG(ot,12),b.LFG(t.Xj),b.LFG(K))},ot.\u0275prov=b.Yz7({token:ot,factory:ot.\u0275fac}),ot})();function $(ot,wt){let ke=ot.length;for(;ke--;)wt(ot[ke])}let me=(()=>{class ot{}return ot.\u0275fac=function(ke){return new(ke||ot)},ot.\u0275mod=b.oAB({type:ot}),ot.\u0275inj=b.cJS({providers:[de,le],imports:[t.U8,C.eL,I.rt,C.eL]}),ot})();var A=p(1281),i=p(6451),a=p(9300),u=p(5698),l=p(3238);function T(ot,wt){}p(7340);class L{constructor(){this.role="dialog",this.panelClass="",this.hasBackdrop=!0,this.backdropClass="",this.disableClose=!1,this.width="",this.height="",this.maxWidth="80vw",this.data=null,this.ariaDescribedBy=null,this.ariaLabelledBy=null,this.ariaLabel=null,this.ariaModal=!0,this.autoFocus="first-tabbable",this.restoreFocus=!0,this.delayFocusTrap=!0,this.closeOnNavigation=!0}}const m="mdc-dialog--open",n="mdc-dialog--opening",_="mdc-dialog--closing";let X=(()=>{class ot extends U{constructor(ke,Ke,xt,Y,Re,Tt,Qe,Ye){super(ke,Ke,xt,Y,Re,Tt,Qe,Ye),this._animationStateChanged=new b.vpe}_captureInitialFocus(){this._config.delayFocusTrap||this._trapFocus()}_openAnimationDone(ke){this._config.delayFocusTrap&&this._trapFocus(),this._animationStateChanged.next({state:"opened",totalTime:ke})}}return ot.\u0275fac=function(ke){return new(ke||ot)(b.Y36(b.SBq),b.Y36(I.qV),b.Y36(e.K0,8),b.Y36(L),b.Y36(I.ic),b.Y36(b.R0b),b.Y36(t.Iu),b.Y36(I.tE))},ot.\u0275cmp=b.Xpm({type:ot,selectors:[["ng-component"]],features:[b.qOj],decls:0,vars:0,template:function(ke,Ke){},encapsulation:2}),ot})();const Le="--mat-dialog-transition-duration";function $e(ot){return null==ot?null:"number"==typeof ot?ot:ot.endsWith("ms")?(0,A.su)(ot.substring(0,ot.length-2)):ot.endsWith("s")?1e3*(0,A.su)(ot.substring(0,ot.length-1)):"0"===ot?0:null}let We=(()=>{class ot extends X{constructor(ke,Ke,xt,Y,Re,Tt,Qe,Ye,Ht){super(ke,Ke,xt,Y,Re,Tt,Qe,Ht),this._animationMode=Ye,this._animationsEnabled="NoopAnimations"!==this._animationMode,this._hostElement=this._elementRef.nativeElement,this._openAnimationDuration=this._animationsEnabled?$e(this._config.enterAnimationDuration)??150:0,this._closeAnimationDuration=this._animationsEnabled?$e(this._config.exitAnimationDuration)??75:0,this._animationTimer=null,this._finishDialogOpen=()=>{this._clearAnimationClasses(),this._openAnimationDone(this._openAnimationDuration)},this._finishDialogClose=()=>{this._clearAnimationClasses(),this._animationStateChanged.emit({state:"closed",totalTime:this._closeAnimationDuration})}}_contentAttached(){super._contentAttached(),this._startOpenAnimation()}ngOnDestroy(){super.ngOnDestroy(),null!==this._animationTimer&&clearTimeout(this._animationTimer)}_startOpenAnimation(){this._animationStateChanged.emit({state:"opening",totalTime:this._openAnimationDuration}),this._animationsEnabled?(this._hostElement.style.setProperty(Le,`${this._openAnimationDuration}ms`),this._hostElement.classList.add(n),this._hostElement.classList.add(m),this._waitForAnimationToComplete(this._openAnimationDuration,this._finishDialogOpen)):(this._hostElement.classList.add(m),Promise.resolve().then(()=>this._finishDialogOpen()))}_startExitAnimation(){this._animationStateChanged.emit({state:"closing",totalTime:this._closeAnimationDuration}),this._hostElement.classList.remove(m),this._animationsEnabled?(this._hostElement.style.setProperty(Le,`${this._openAnimationDuration}ms`),this._hostElement.classList.add(_),this._waitForAnimationToComplete(this._closeAnimationDuration,this._finishDialogClose)):Promise.resolve().then(()=>this._finishDialogClose())}_clearAnimationClasses(){this._hostElement.classList.remove(n),this._hostElement.classList.remove(_)}_waitForAnimationToComplete(ke,Ke){null!==this._animationTimer&&clearTimeout(this._animationTimer),this._animationTimer=setTimeout(Ke,ke)}}return ot.\u0275fac=function(ke){return new(ke||ot)(b.Y36(b.SBq),b.Y36(I.qV),b.Y36(e.K0,8),b.Y36(L),b.Y36(I.ic),b.Y36(b.R0b),b.Y36(t.Iu),b.Y36(b.QbO,8),b.Y36(I.tE))},ot.\u0275cmp=b.Xpm({type:ot,selectors:[["mat-dialog-container"]],hostAttrs:["tabindex","-1",1,"mat-mdc-dialog-container","mdc-dialog"],hostVars:8,hostBindings:function(ke,Ke){2&ke&&(b.Ikx("id",Ke._config.id),b.uIk("aria-modal",Ke._config.ariaModal)("role",Ke._config.role)("aria-labelledby",Ke._config.ariaLabel?null:Ke._ariaLabelledBy)("aria-label",Ke._config.ariaLabel)("aria-describedby",Ke._config.ariaDescribedBy||null),b.ekj("_mat-animation-noopable",!Ke._animationsEnabled))},features:[b.qOj],decls:3,vars:0,consts:[[1,"mdc-dialog__container"],[1,"mat-mdc-dialog-surface","mdc-dialog__surface"],["cdkPortalOutlet",""]],template:function(ke,Ke){1&ke&&(b.TgZ(0,"div",0)(1,"div",1),b.YNc(2,T,0,0,"ng-template",2),b.qZA()())},dependencies:[C.Pl],styles:['.mdc-elevation-overlay{position:absolute;border-radius:inherit;pointer-events:none;opacity:var(--mdc-elevation-overlay-opacity, 0);transition:opacity 280ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-dialog,.mdc-dialog__scrim{position:fixed;top:0;left:0;align-items:center;justify-content:center;box-sizing:border-box;width:100%;height:100%}.mdc-dialog{display:none;z-index:var(--mdc-dialog-z-index, 7)}.mdc-dialog .mdc-dialog__content{padding:20px 24px 20px 24px}.mdc-dialog .mdc-dialog__surface{min-width:280px}@media(max-width: 592px){.mdc-dialog .mdc-dialog__surface{max-width:calc(100vw - 32px)}}@media(min-width: 592px){.mdc-dialog .mdc-dialog__surface{max-width:560px}}.mdc-dialog .mdc-dialog__surface{max-height:calc(100% - 32px)}.mdc-dialog.mdc-dialog--fullscreen .mdc-dialog__surface{max-width:none}@media(max-width: 960px){.mdc-dialog.mdc-dialog--fullscreen .mdc-dialog__surface{max-height:560px;width:560px}.mdc-dialog.mdc-dialog--fullscreen .mdc-dialog__surface .mdc-dialog__close{right:-12px}}@media(max-width: 720px)and (max-width: 672px){.mdc-dialog.mdc-dialog--fullscreen .mdc-dialog__surface{width:calc(100vw - 112px)}}@media(max-width: 720px)and (min-width: 672px){.mdc-dialog.mdc-dialog--fullscreen .mdc-dialog__surface{width:560px}}@media(max-width: 720px)and (max-height: 720px){.mdc-dialog.mdc-dialog--fullscreen .mdc-dialog__surface{max-height:calc(100vh - 160px)}}@media(max-width: 720px)and (min-height: 720px){.mdc-dialog.mdc-dialog--fullscreen .mdc-dialog__surface{max-height:560px}}@media(max-width: 720px){.mdc-dialog.mdc-dialog--fullscreen .mdc-dialog__surface .mdc-dialog__close{right:-12px}}@media(max-width: 720px)and (max-height: 400px),(max-width: 600px),(min-width: 720px)and (max-height: 400px){.mdc-dialog.mdc-dialog--fullscreen .mdc-dialog__surface{height:100%;max-height:100vh;max-width:100vw;width:100vw;border-radius:0}.mdc-dialog.mdc-dialog--fullscreen .mdc-dialog__surface .mdc-dialog__close{order:-1;left:-12px}.mdc-dialog.mdc-dialog--fullscreen .mdc-dialog__surface .mdc-dialog__header{padding:0 16px 9px;justify-content:flex-start}.mdc-dialog.mdc-dialog--fullscreen .mdc-dialog__surface .mdc-dialog__title{margin-left:calc(16px - 2 * 12px)}}@media(min-width: 960px){.mdc-dialog.mdc-dialog--fullscreen .mdc-dialog__surface{width:calc(100vw - 400px)}.mdc-dialog.mdc-dialog--fullscreen .mdc-dialog__surface .mdc-dialog__close{right:-12px}}.mdc-dialog.mdc-dialog__scrim--hidden .mdc-dialog__scrim{opacity:0}.mdc-dialog__scrim{opacity:0;z-index:-1}.mdc-dialog__container{display:flex;flex-direction:row;align-items:center;justify-content:space-around;box-sizing:border-box;height:100%;transform:scale(0.8);opacity:0;pointer-events:none}.mdc-dialog__surface{position:relative;display:flex;flex-direction:column;flex-grow:0;flex-shrink:0;box-sizing:border-box;max-width:100%;max-height:100%;pointer-events:auto;overflow-y:auto}.mdc-dialog__surface .mdc-elevation-overlay{width:100%;height:100%;top:0;left:0}[dir=rtl] .mdc-dialog__surface,.mdc-dialog__surface[dir=rtl]{text-align:right}@media screen and (forced-colors: active),(-ms-high-contrast: active){.mdc-dialog__surface{outline:2px solid windowText}}.mdc-dialog__surface::before{position:absolute;box-sizing:border-box;width:100%;height:100%;top:0;left:0;border:2px solid rgba(0,0,0,0);border-radius:inherit;content:"";pointer-events:none}@media screen and (forced-colors: active){.mdc-dialog__surface::before{border-color:CanvasText}}@media screen and (-ms-high-contrast: active),screen and (-ms-high-contrast: none){.mdc-dialog__surface::before{content:none}}.mdc-dialog__title{display:block;margin-top:0;position:relative;flex-shrink:0;box-sizing:border-box;margin:0 0 1px;padding:0 24px 9px}.mdc-dialog__title::before{display:inline-block;width:0;height:40px;content:"";vertical-align:0}[dir=rtl] .mdc-dialog__title,.mdc-dialog__title[dir=rtl]{text-align:right}.mdc-dialog--scrollable .mdc-dialog__title{margin-bottom:1px;padding-bottom:15px}.mdc-dialog--fullscreen .mdc-dialog__header{align-items:baseline;border-bottom:1px solid rgba(0,0,0,0);display:inline-flex;justify-content:space-between;padding:0 24px 9px;z-index:1}@media screen and (forced-colors: active){.mdc-dialog--fullscreen .mdc-dialog__header{border-bottom-color:CanvasText}}.mdc-dialog--fullscreen .mdc-dialog__header .mdc-dialog__close{right:-12px}.mdc-dialog--fullscreen .mdc-dialog__title{margin-bottom:0;padding:0;border-bottom:0}.mdc-dialog--fullscreen.mdc-dialog--scrollable .mdc-dialog__title{border-bottom:0;margin-bottom:0}.mdc-dialog--fullscreen .mdc-dialog__close{top:5px}.mdc-dialog--fullscreen.mdc-dialog--scrollable .mdc-dialog__actions{border-top:1px solid rgba(0,0,0,0)}@media screen and (forced-colors: active){.mdc-dialog--fullscreen.mdc-dialog--scrollable .mdc-dialog__actions{border-top-color:CanvasText}}.mdc-dialog--fullscreen--titleless .mdc-dialog__close{margin-top:4px}.mdc-dialog--fullscreen--titleless.mdc-dialog--scrollable .mdc-dialog__close{margin-top:0}.mdc-dialog__content{flex-grow:1;box-sizing:border-box;margin:0;overflow:auto}.mdc-dialog__content>:first-child{margin-top:0}.mdc-dialog__content>:last-child{margin-bottom:0}.mdc-dialog__title+.mdc-dialog__content,.mdc-dialog__header+.mdc-dialog__content{padding-top:0}.mdc-dialog--scrollable .mdc-dialog__title+.mdc-dialog__content{padding-top:8px;padding-bottom:8px}.mdc-dialog__content .mdc-deprecated-list:first-child:last-child{padding:6px 0 0}.mdc-dialog--scrollable .mdc-dialog__content .mdc-deprecated-list:first-child:last-child{padding:0}.mdc-dialog__actions{display:flex;position:relative;flex-shrink:0;flex-wrap:wrap;align-items:center;justify-content:flex-end;box-sizing:border-box;min-height:52px;margin:0;padding:8px;border-top:1px solid rgba(0,0,0,0)}@media screen and (forced-colors: active){.mdc-dialog__actions{border-top-color:CanvasText}}.mdc-dialog--stacked .mdc-dialog__actions{flex-direction:column;align-items:flex-end}.mdc-dialog__button{margin-left:8px;margin-right:0;max-width:100%;text-align:right}[dir=rtl] .mdc-dialog__button,.mdc-dialog__button[dir=rtl]{margin-left:0;margin-right:8px}.mdc-dialog__button:first-child{margin-left:0;margin-right:0}[dir=rtl] .mdc-dialog__button:first-child,.mdc-dialog__button:first-child[dir=rtl]{margin-left:0;margin-right:0}[dir=rtl] .mdc-dialog__button,.mdc-dialog__button[dir=rtl]{text-align:left}.mdc-dialog--stacked .mdc-dialog__button:not(:first-child){margin-top:12px}.mdc-dialog--open,.mdc-dialog--opening,.mdc-dialog--closing{display:flex}.mdc-dialog--opening .mdc-dialog__scrim{transition:opacity 150ms linear}.mdc-dialog--opening .mdc-dialog__container{transition:opacity 75ms linear,transform 150ms 0ms cubic-bezier(0, 0, 0.2, 1)}.mdc-dialog--closing .mdc-dialog__scrim,.mdc-dialog--closing .mdc-dialog__container{transition:opacity 75ms linear}.mdc-dialog--closing .mdc-dialog__container{transform:none}.mdc-dialog--open .mdc-dialog__scrim{opacity:1}.mdc-dialog--open .mdc-dialog__container{transform:none;opacity:1}.mdc-dialog--open.mdc-dialog__surface-scrim--shown .mdc-dialog__surface-scrim{opacity:1}.mdc-dialog--open.mdc-dialog__surface-scrim--hiding .mdc-dialog__surface-scrim{transition:opacity 75ms linear}.mdc-dialog--open.mdc-dialog__surface-scrim--showing .mdc-dialog__surface-scrim{transition:opacity 150ms linear}.mdc-dialog__surface-scrim{display:none;opacity:0;position:absolute;width:100%;height:100%;z-index:1}.mdc-dialog__surface-scrim--shown .mdc-dialog__surface-scrim,.mdc-dialog__surface-scrim--showing .mdc-dialog__surface-scrim,.mdc-dialog__surface-scrim--hiding .mdc-dialog__surface-scrim{display:block}.mdc-dialog-scroll-lock{overflow:hidden}.mdc-dialog--no-content-padding .mdc-dialog__content{padding:0}.mdc-dialog--sheet .mdc-dialog__close{right:12px;top:9px;position:absolute;z-index:1}.mdc-dialog__scrim--removed{pointer-events:none}.mdc-dialog__scrim--removed .mdc-dialog__scrim,.mdc-dialog__scrim--removed .mdc-dialog__surface-scrim{display:none}.mat-mdc-dialog-content{max-height:65vh}.mat-mdc-dialog-container{position:static;display:block}.mat-mdc-dialog-container,.mat-mdc-dialog-container .mdc-dialog__container,.mat-mdc-dialog-container .mdc-dialog__surface{max-height:inherit;min-height:inherit;min-width:inherit;max-width:inherit}.mat-mdc-dialog-container .mdc-dialog__surface{display:block;width:100%;height:100%}.mat-mdc-dialog-container{outline:0}.mat-mdc-dialog-container .mdc-dialog__surface{background-color:var(--mdc-dialog-container-color, white)}.mat-mdc-dialog-container .mdc-dialog__surface{box-shadow:var(--mdc-dialog-container-elevation, 0px 11px 15px -7px rgba(0, 0, 0, 0.2), 0px 24px 38px 3px rgba(0, 0, 0, 0.14), 0px 9px 46px 8px rgba(0, 0, 0, 0.12))}.mat-mdc-dialog-container .mdc-dialog__surface{border-radius:var(--mdc-dialog-container-shape, var(--mdc-shape-medium, 4px))}.mat-mdc-dialog-container.mdc-dialog--scrollable .mdc-dialog__title,.mat-mdc-dialog-container.mdc-dialog--scrollable .mdc-dialog__actions,.mat-mdc-dialog-container.mdc-dialog--scrollable.mdc-dialog-scroll-divider-footer .mdc-dialog__actions{border-color:var(--mdc-dialog-with-divider-divider-color, black)}.mat-mdc-dialog-container.mdc-dialog--scrollable .mdc-dialog__title{border-bottom-color:var(--mdc-dialog-with-divider-divider-color, black)}.mat-mdc-dialog-container .mdc-dialog__title{font-family:var(--mdc-dialog-subhead-font, "Arial");line-height:var(--mdc-dialog-subhead-line-height, 14px);font-size:var(--mdc-dialog-subhead-size, 14px);font-weight:var(--mdc-dialog-subhead-weight, 500);letter-spacing:var(--mdc-dialog-subhead-tracking, 1px)}.mat-mdc-dialog-container .mdc-dialog__title{color:var(--mdc-dialog-subhead-color, black)}.mat-mdc-dialog-container .mdc-dialog__content{font-family:var(--mdc-dialog-supporting-text-font, "Arial");line-height:var(--mdc-dialog-supporting-text-line-height, 14px);font-size:var(--mdc-dialog-supporting-text-size, 14px);font-weight:var(--mdc-dialog-supporting-text-weight, 500);letter-spacing:var(--mdc-dialog-supporting-text-tracking, 1px)}.mat-mdc-dialog-container .mdc-dialog__content{color:var(--mdc-dialog-supporting-text-color, black)}.mat-mdc-dialog-container .mdc-dialog__container{transition-duration:var(--mat-dialog-transition-duration, 0ms)}.mat-mdc-dialog-container._mat-animation-noopable .mdc-dialog__container{transition:none}.mat-mdc-dialog-content{display:block}.mat-mdc-dialog-actions{justify-content:start}.mat-mdc-dialog-actions.mat-mdc-dialog-actions-align-center,.mat-mdc-dialog-actions[align=center]{justify-content:center}.mat-mdc-dialog-actions.mat-mdc-dialog-actions-align-end,.mat-mdc-dialog-actions[align=end]{justify-content:flex-end}.mat-mdc-dialog-actions .mat-button-base+.mat-button-base,.mat-mdc-dialog-actions .mat-mdc-button-base+.mat-mdc-button-base{margin-left:8px}[dir=rtl] .mat-mdc-dialog-actions .mat-button-base+.mat-button-base,[dir=rtl] .mat-mdc-dialog-actions .mat-mdc-button-base+.mat-mdc-button-base{margin-left:0;margin-right:8px}'],encapsulation:2}),ot})();class Fe{constructor(wt,ke,Ke){this._ref=wt,this._containerInstance=Ke,this._afterOpened=new P.x,this._beforeClosed=new P.x,this._state=0,this.disableClose=ke.disableClose,this.id=wt.id,Ke._animationStateChanged.pipe((0,a.h)(xt=>"opened"===xt.state),(0,u.q)(1)).subscribe(()=>{this._afterOpened.next(),this._afterOpened.complete()}),Ke._animationStateChanged.pipe((0,a.h)(xt=>"closed"===xt.state),(0,u.q)(1)).subscribe(()=>{clearTimeout(this._closeFallbackTimeout),this._finishDialogClose()}),wt.overlayRef.detachments().subscribe(()=>{this._beforeClosed.next(this._result),this._beforeClosed.complete(),this._finishDialogClose()}),(0,i.T)(this.backdropClick(),this.keydownEvents().pipe((0,a.h)(xt=>xt.keyCode===h.hY&&!this.disableClose&&!(0,h.Vb)(xt)))).subscribe(xt=>{this.disableClose||(xt.preventDefault(),De(this,"keydown"===xt.type?"keyboard":"mouse"))})}close(wt){this._result=wt,this._containerInstance._animationStateChanged.pipe((0,a.h)(ke=>"closing"===ke.state),(0,u.q)(1)).subscribe(ke=>{this._beforeClosed.next(wt),this._beforeClosed.complete(),this._ref.overlayRef.detachBackdrop(),this._closeFallbackTimeout=setTimeout(()=>this._finishDialogClose(),ke.totalTime+100)}),this._state=1,this._containerInstance._startExitAnimation()}afterOpened(){return this._afterOpened}afterClosed(){return this._ref.closed}beforeClosed(){return this._beforeClosed}backdropClick(){return this._ref.backdropClick}keydownEvents(){return this._ref.keydownEvents}updatePosition(wt){let ke=this._ref.config.positionStrategy;return wt&&(wt.left||wt.right)?wt.left?ke.left(wt.left):ke.right(wt.right):ke.centerHorizontally(),wt&&(wt.top||wt.bottom)?wt.top?ke.top(wt.top):ke.bottom(wt.bottom):ke.centerVertically(),this._ref.updatePosition(),this}updateSize(wt="",ke=""){return this._ref.updateSize(wt,ke),this}addPanelClass(wt){return this._ref.addPanelClass(wt),this}removePanelClass(wt){return this._ref.removePanelClass(wt),this}getState(){return this._state}_finishDialogClose(){this._state=2,this._ref.close(this._result,{focusOrigin:this._closeInteractionType}),this.componentInstance=null}}function De(ot,wt,ke){return ot._closeInteractionType=wt,ot.close(ke)}const ye=new b.OlP("MatMdcDialogData"),ce=new b.OlP("mat-mdc-dialog-default-options"),ve=new b.OlP("mat-mdc-dialog-scroll-strategy"),je={provide:ve,deps:[t.aV],useFactory:function oe(ot){return()=>ot.scrollStrategies.block()}};let he=0,Ce=(()=>{class ot{get openDialogs(){return this._parentDialog?this._parentDialog.openDialogs:this._openDialogsAtThisLevel}get afterOpened(){return this._parentDialog?this._parentDialog.afterOpened:this._afterOpenedAtThisLevel}_getAfterAllClosed(){const ke=this._parentDialog;return ke?ke._getAfterAllClosed():this._afterAllClosedAtThisLevel}constructor(ke,Ke,xt,Y,Re,Tt,Qe,Ye,Ht,Mt){this._overlay=ke,this._defaultOptions=xt,this._parentDialog=Y,this._dialogRefConstructor=Qe,this._dialogContainerType=Ye,this._dialogDataToken=Ht,this._openDialogsAtThisLevel=[],this._afterAllClosedAtThisLevel=new P.x,this._afterOpenedAtThisLevel=new P.x,this._idPrefix="mat-dialog-",this.dialogConfigClass=L,this.afterAllClosed=(0,d.P)(()=>this.openDialogs.length?this._getAfterAllClosed():this._getAfterAllClosed().pipe((0,O.O)(void 0))),this._scrollStrategy=Tt,this._dialog=Ke.get(de)}open(ke,Ke){let xt;(Ke={...this._defaultOptions||new L,...Ke}).id=Ke.id||`${this._idPrefix}${he++}`,Ke.scrollStrategy=Ke.scrollStrategy||this._scrollStrategy();const Y=this._dialog.open(ke,{...Ke,positionStrategy:this._overlay.position().global().centerHorizontally().centerVertically(),disableClose:!0,closeOnDestroy:!1,container:{type:this._dialogContainerType,providers:()=>[{provide:this.dialogConfigClass,useValue:Ke},{provide:R,useValue:Ke}]},templateContext:()=>({dialogRef:xt}),providers:(Re,Tt,Qe)=>(xt=new this._dialogRefConstructor(Re,Ke,Qe),xt.updatePosition(Ke?.position),[{provide:this._dialogContainerType,useValue:Qe},{provide:this._dialogDataToken,useValue:Tt.data},{provide:this._dialogRefConstructor,useValue:xt}])});return xt.componentInstance=Y.componentInstance,this.openDialogs.push(xt),this.afterOpened.next(xt),xt.afterClosed().subscribe(()=>{const Re=this.openDialogs.indexOf(xt);Re>-1&&(this.openDialogs.splice(Re,1),this.openDialogs.length||this._getAfterAllClosed().next())}),xt}closeAll(){this._closeDialogs(this.openDialogs)}getDialogById(ke){return this.openDialogs.find(Ke=>Ke.id===ke)}ngOnDestroy(){this._closeDialogs(this._openDialogsAtThisLevel),this._afterAllClosedAtThisLevel.complete(),this._afterOpenedAtThisLevel.complete()}_closeDialogs(ke){let Ke=ke.length;for(;Ke--;)ke[Ke].close()}}return ot.\u0275fac=function(ke){b.$Z()},ot.\u0275prov=b.Yz7({token:ot,factory:ot.\u0275fac}),ot})(),te=(()=>{class ot extends Ce{constructor(ke,Ke,xt,Y,Re,Tt,Qe,Ye){super(ke,Ke,Y,Tt,Qe,Re,Fe,We,ye,Ye),this._idPrefix="mat-mdc-dialog-"}}return ot.\u0275fac=function(ke){return new(ke||ot)(b.LFG(t.aV),b.LFG(b.zs3),b.LFG(e.Ye,8),b.LFG(ce,8),b.LFG(ve),b.LFG(ot,12),b.LFG(t.Xj),b.LFG(b.QbO,8))},ot.\u0275prov=b.Yz7({token:ot,factory:ot.\u0275fac}),ot})(),Be=(()=>{class ot{constructor(ke,Ke,xt){this.dialogRef=ke,this._elementRef=Ke,this._dialog=xt,this.type="button"}ngOnInit(){this.dialogRef||(this.dialogRef=function Je(ot,wt){let ke=ot.nativeElement.parentElement;for(;ke&&!ke.classList.contains("mat-mdc-dialog-container");)ke=ke.parentElement;return ke?wt.find(Ke=>Ke.id===ke.id):null}(this._elementRef,this._dialog.openDialogs))}ngOnChanges(ke){const Ke=ke._matDialogClose||ke._matDialogCloseResult;Ke&&(this.dialogResult=Ke.currentValue)}_onButtonClick(ke){De(this.dialogRef,0===ke.screenX&&0===ke.screenY?"keyboard":"mouse",this.dialogResult)}}return ot.\u0275fac=function(ke){return new(ke||ot)(b.Y36(Fe,8),b.Y36(b.SBq),b.Y36(te))},ot.\u0275dir=b.lG2({type:ot,selectors:[["","mat-dialog-close",""],["","matDialogClose",""]],hostVars:2,hostBindings:function(ke,Ke){1&ke&&b.NdJ("click",function(Y){return Ke._onButtonClick(Y)}),2&ke&&b.uIk("aria-label",Ke.ariaLabel||null)("type",Ke.type)},inputs:{ariaLabel:["aria-label","ariaLabel"],type:"type",dialogResult:["mat-dialog-close","dialogResult"],_matDialogClose:["matDialogClose","_matDialogClose"]},exportAs:["matDialogClose"],features:[b.TTD]}),ot})(),dt=(()=>{class ot{}return ot.\u0275fac=function(ke){return new(ke||ot)},ot.\u0275mod=b.oAB({type:ot}),ot.\u0275inj=b.cJS({providers:[te,je],imports:[me,t.U8,C.eL,l.BQ,l.BQ]}),ot})()},4850:(Ve,q,p)=>{"use strict";p.d(q,{d:()=>I,t:()=>s});var t=p(4650),e=p(1281),b=p(3238);let I=(()=>{class C{constructor(){this._vertical=!1,this._inset=!1}get vertical(){return this._vertical}set vertical(P){this._vertical=(0,e.Ig)(P)}get inset(){return this._inset}set inset(P){this._inset=(0,e.Ig)(P)}}return C.\u0275fac=function(P){return new(P||C)},C.\u0275cmp=t.Xpm({type:C,selectors:[["mat-divider"]],hostAttrs:["role","separator",1,"mat-divider"],hostVars:7,hostBindings:function(P,d){2&P&&(t.uIk("aria-orientation",d.vertical?"vertical":"horizontal"),t.ekj("mat-divider-vertical",d.vertical)("mat-divider-horizontal",!d.vertical)("mat-divider-inset",d.inset))},inputs:{vertical:"vertical",inset:"inset"},decls:0,vars:0,template:function(P,d){},styles:[".mat-divider{display:block;margin:0;border-top-width:1px;border-top-style:solid}.mat-divider.mat-divider-vertical{border-top:0;border-right-width:1px;border-right-style:solid}.mat-divider.mat-divider-inset{margin-left:80px}[dir=rtl] .mat-divider.mat-divider-inset{margin-left:auto;margin-right:80px}"],encapsulation:2,changeDetection:0}),C})(),s=(()=>{class C{}return C.\u0275fac=function(P){return new(P||C)},C.\u0275mod=t.oAB({type:C}),C.\u0275inj=t.cJS({imports:[b.BQ,b.BQ]}),C})()},752:(Ve,q,p)=>{"use strict";p.d(q,{pp:()=>De,To:()=>ye,ib:()=>B,u4:()=>We,yz:()=>$e,yK:()=>Fe});var t=p(4650),e=p(5017),b=p(1281),I=p(7579),s=p(727);let C=0;const h=new t.OlP("CdkAccordion");let P=(()=>{class ce{constructor(){this._stateChanges=new I.x,this._openCloseAllActions=new I.x,this.id="cdk-accordion-"+C++,this._multi=!1}get multi(){return this._multi}set multi(oe){this._multi=(0,b.Ig)(oe)}openAll(){this._multi&&this._openCloseAllActions.next(!0)}closeAll(){this._openCloseAllActions.next(!1)}ngOnChanges(oe){this._stateChanges.next(oe)}ngOnDestroy(){this._stateChanges.complete(),this._openCloseAllActions.complete()}}return ce.\u0275fac=function(oe){return new(oe||ce)},ce.\u0275dir=t.lG2({type:ce,selectors:[["cdk-accordion"],["","cdkAccordion",""]],inputs:{multi:"multi"},exportAs:["cdkAccordion"],features:[t._Bn([{provide:h,useExisting:ce}]),t.TTD]}),ce})(),d=0,S=(()=>{class ce{get expanded(){return this._expanded}set expanded(oe){oe=(0,b.Ig)(oe),this._expanded!==oe&&(this._expanded=oe,this.expandedChange.emit(oe),oe?(this.opened.emit(),this._expansionDispatcher.notify(this.id,this.accordion?this.accordion.id:this.id)):this.closed.emit(),this._changeDetectorRef.markForCheck())}get disabled(){return this._disabled}set disabled(oe){this._disabled=(0,b.Ig)(oe)}constructor(oe,je,Ae){this.accordion=oe,this._changeDetectorRef=je,this._expansionDispatcher=Ae,this._openCloseAllSubscription=s.w0.EMPTY,this.closed=new t.vpe,this.opened=new t.vpe,this.destroyed=new t.vpe,this.expandedChange=new t.vpe,this.id="cdk-accordion-child-"+d++,this._expanded=!1,this._disabled=!1,this._removeUniqueSelectionListener=()=>{},this._removeUniqueSelectionListener=Ae.listen((he,Ce)=>{this.accordion&&!this.accordion.multi&&this.accordion.id===Ce&&this.id!==he&&(this.expanded=!1)}),this.accordion&&(this._openCloseAllSubscription=this._subscribeToOpenCloseAllActions())}ngOnDestroy(){this.opened.complete(),this.closed.complete(),this.destroyed.emit(),this.destroyed.complete(),this._removeUniqueSelectionListener(),this._openCloseAllSubscription.unsubscribe()}toggle(){this.disabled||(this.expanded=!this.expanded)}close(){this.disabled||(this.expanded=!1)}open(){this.disabled||(this.expanded=!0)}_subscribeToOpenCloseAllActions(){return this.accordion._openCloseAllActions.subscribe(oe=>{this.disabled||(this.expanded=oe)})}}return ce.\u0275fac=function(oe){return new(oe||ce)(t.Y36(h,12),t.Y36(t.sBO),t.Y36(e.A8))},ce.\u0275dir=t.lG2({type:ce,selectors:[["cdk-accordion-item"],["","cdkAccordionItem",""]],inputs:{expanded:"expanded",disabled:"disabled"},outputs:{closed:"closed",opened:"opened",destroyed:"destroyed",expandedChange:"expandedChange"},exportAs:["cdkAccordionItem"],features:[t._Bn([{provide:h,useValue:void 0}])]}),ce})(),w=(()=>{class ce{}return ce.\u0275fac=function(oe){return new(oe||ce)},ce.\u0275mod=t.oAB({type:ce}),ce.\u0275inj=t.cJS({}),ce})();var O=p(4080),E=p(6895),R=p(3238),z=p(4761),U=p(1884),W=p(8675),K=p(9300),ee=p(5698),ie=p(9521),ue=p(515),le=p(6451),ne=p(7340);const de=["body"];function $(ce,ve){}const me=[[["mat-expansion-panel-header"]],"*",[["mat-action-row"]]],A=["mat-expansion-panel-header","*","mat-action-row"];function i(ce,ve){if(1&ce&&t._UZ(0,"span",2),2&ce){const oe=t.oxw();t.Q6J("@indicatorRotate",oe._getExpandedState())}}const a=[[["mat-panel-title"]],[["mat-panel-description"]],"*"],u=["mat-panel-title","mat-panel-description","*"],l=new t.OlP("MAT_ACCORDION"),y="225ms cubic-bezier(0.4,0.0,0.2,1)",T={indicatorRotate:(0,ne.X$)("indicatorRotate",[(0,ne.SB)("collapsed, void",(0,ne.oB)({transform:"rotate(0deg)"})),(0,ne.SB)("expanded",(0,ne.oB)({transform:"rotate(180deg)"})),(0,ne.eR)("expanded <=> collapsed, void => collapsed",(0,ne.jt)(y))]),bodyExpansion:(0,ne.X$)("bodyExpansion",[(0,ne.SB)("collapsed, void",(0,ne.oB)({height:"0px",visibility:"hidden"})),(0,ne.SB)("expanded",(0,ne.oB)({height:"*",visibility:"visible"})),(0,ne.eR)("expanded <=> collapsed, void => collapsed",(0,ne.jt)(y))])},L=new t.OlP("MAT_EXPANSION_PANEL");let m=(()=>{class ce{constructor(oe,je){this._template=oe,this._expansionPanel=je}}return ce.\u0275fac=function(oe){return new(oe||ce)(t.Y36(t.Rgc),t.Y36(L,8))},ce.\u0275dir=t.lG2({type:ce,selectors:[["ng-template","matExpansionPanelContent",""]]}),ce})(),n=0;const _=new t.OlP("MAT_EXPANSION_PANEL_DEFAULT_OPTIONS");let B=(()=>{class ce extends S{get hideToggle(){return this._hideToggle||this.accordion&&this.accordion.hideToggle}set hideToggle(oe){this._hideToggle=(0,b.Ig)(oe)}get togglePosition(){return this._togglePosition||this.accordion&&this.accordion.togglePosition}set togglePosition(oe){this._togglePosition=oe}constructor(oe,je,Ae,he,Ce,te,Ue){super(oe,je,Ae),this._viewContainerRef=he,this._animationMode=te,this._hideToggle=!1,this.afterExpand=new t.vpe,this.afterCollapse=new t.vpe,this._inputChanges=new I.x,this._headerId="mat-expansion-panel-header-"+n++,this._bodyAnimationDone=new I.x,this.accordion=oe,this._document=Ce,this._bodyAnimationDone.pipe((0,U.x)((Be,ae)=>Be.fromState===ae.fromState&&Be.toState===ae.toState)).subscribe(Be=>{"void"!==Be.fromState&&("expanded"===Be.toState?this.afterExpand.emit():"collapsed"===Be.toState&&this.afterCollapse.emit())}),Ue&&(this.hideToggle=Ue.hideToggle)}_hasSpacing(){return!!this.accordion&&this.expanded&&"default"===this.accordion.displayMode}_getExpandedState(){return this.expanded?"expanded":"collapsed"}toggle(){this.expanded=!this.expanded}close(){this.expanded=!1}open(){this.expanded=!0}ngAfterContentInit(){this._lazyContent&&this._lazyContent._expansionPanel===this&&this.opened.pipe((0,W.O)(null),(0,K.h)(()=>this.expanded&&!this._portal),(0,ee.q)(1)).subscribe(()=>{this._portal=new O.UE(this._lazyContent._template,this._viewContainerRef)})}ngOnChanges(oe){this._inputChanges.next(oe)}ngOnDestroy(){super.ngOnDestroy(),this._bodyAnimationDone.complete(),this._inputChanges.complete()}_containsFocus(){if(this._body){const oe=this._document.activeElement,je=this._body.nativeElement;return oe===je||je.contains(oe)}return!1}}return ce.\u0275fac=function(oe){return new(oe||ce)(t.Y36(l,12),t.Y36(t.sBO),t.Y36(e.A8),t.Y36(t.s_b),t.Y36(E.K0),t.Y36(t.QbO,8),t.Y36(_,8))},ce.\u0275cmp=t.Xpm({type:ce,selectors:[["mat-expansion-panel"]],contentQueries:function(oe,je,Ae){if(1&oe&&t.Suo(Ae,m,5),2&oe){let he;t.iGM(he=t.CRH())&&(je._lazyContent=he.first)}},viewQuery:function(oe,je){if(1&oe&&t.Gf(de,5),2&oe){let Ae;t.iGM(Ae=t.CRH())&&(je._body=Ae.first)}},hostAttrs:[1,"mat-expansion-panel"],hostVars:6,hostBindings:function(oe,je){2&oe&&t.ekj("mat-expanded",je.expanded)("_mat-animation-noopable","NoopAnimations"===je._animationMode)("mat-expansion-panel-spacing",je._hasSpacing())},inputs:{disabled:"disabled",expanded:"expanded",hideToggle:"hideToggle",togglePosition:"togglePosition"},outputs:{opened:"opened",closed:"closed",expandedChange:"expandedChange",afterExpand:"afterExpand",afterCollapse:"afterCollapse"},exportAs:["matExpansionPanel"],features:[t._Bn([{provide:l,useValue:void 0},{provide:L,useExisting:ce}]),t.qOj,t.TTD],ngContentSelectors:A,decls:7,vars:4,consts:[["role","region",1,"mat-expansion-panel-content",3,"id"],["body",""],[1,"mat-expansion-panel-body"],[3,"cdkPortalOutlet"]],template:function(oe,je){1&oe&&(t.F$t(me),t.Hsn(0),t.TgZ(1,"div",0,1),t.NdJ("@bodyExpansion.done",function(he){return je._bodyAnimationDone.next(he)}),t.TgZ(3,"div",2),t.Hsn(4,1),t.YNc(5,$,0,0,"ng-template",3),t.qZA(),t.Hsn(6,2),t.qZA()),2&oe&&(t.xp6(1),t.Q6J("@bodyExpansion",je._getExpandedState())("id",je.id),t.uIk("aria-labelledby",je._headerId),t.xp6(4),t.Q6J("cdkPortalOutlet",je._portal))},dependencies:[O.Pl],styles:['.mat-expansion-panel{box-sizing:content-box;display:block;margin:0;border-radius:4px;overflow:hidden;transition:margin 225ms cubic-bezier(0.4, 0, 0.2, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);position:relative}.mat-accordion .mat-expansion-panel:not(.mat-expanded),.mat-accordion .mat-expansion-panel:not(.mat-expansion-panel-spacing){border-radius:0}.mat-accordion .mat-expansion-panel:first-of-type{border-top-right-radius:4px;border-top-left-radius:4px}.mat-accordion .mat-expansion-panel:last-of-type{border-bottom-right-radius:4px;border-bottom-left-radius:4px}.cdk-high-contrast-active .mat-expansion-panel{outline:solid 1px}.mat-expansion-panel.ng-animate-disabled,.ng-animate-disabled .mat-expansion-panel,.mat-expansion-panel._mat-animation-noopable{transition:none}.mat-expansion-panel-content{display:flex;flex-direction:column;overflow:visible}.mat-expansion-panel-content[style*="visibility: hidden"] *{visibility:hidden !important}.mat-expansion-panel-body{padding:0 24px 16px}.mat-expansion-panel-spacing{margin:16px 0}.mat-accordion>.mat-expansion-panel-spacing:first-child,.mat-accordion>*:first-child:not(.mat-expansion-panel) .mat-expansion-panel-spacing{margin-top:0}.mat-accordion>.mat-expansion-panel-spacing:last-child,.mat-accordion>*:last-child:not(.mat-expansion-panel) .mat-expansion-panel-spacing{margin-bottom:0}.mat-action-row{border-top-style:solid;border-top-width:1px;display:flex;flex-direction:row;justify-content:flex-end;padding:16px 8px 16px 24px}.mat-action-row .mat-button-base,.mat-action-row .mat-mdc-button-base{margin-left:8px}[dir=rtl] .mat-action-row .mat-button-base,[dir=rtl] .mat-action-row .mat-mdc-button-base{margin-left:0;margin-right:8px}'],encapsulation:2,data:{animation:[T.bodyExpansion]},changeDetection:0}),ce})();class X{}const Le=(0,R.sb)(X);let $e=(()=>{class ce extends Le{constructor(oe,je,Ae,he,Ce,te,Ue){super(),this.panel=oe,this._element=je,this._focusMonitor=Ae,this._changeDetectorRef=he,this._animationMode=te,this._parentChangeSubscription=s.w0.EMPTY;const Be=oe.accordion?oe.accordion._stateChanges.pipe((0,K.h)(ae=>!(!ae.hideToggle&&!ae.togglePosition))):ue.E;this.tabIndex=parseInt(Ue||"")||0,this._parentChangeSubscription=(0,le.T)(oe.opened,oe.closed,Be,oe._inputChanges.pipe((0,K.h)(ae=>!!(ae.hideToggle||ae.disabled||ae.togglePosition)))).subscribe(()=>this._changeDetectorRef.markForCheck()),oe.closed.pipe((0,K.h)(()=>oe._containsFocus())).subscribe(()=>Ae.focusVia(je,"program")),Ce&&(this.expandedHeight=Ce.expandedHeight,this.collapsedHeight=Ce.collapsedHeight)}get disabled(){return this.panel.disabled}_toggle(){this.disabled||this.panel.toggle()}_isExpanded(){return this.panel.expanded}_getExpandedState(){return this.panel._getExpandedState()}_getPanelId(){return this.panel.id}_getTogglePosition(){return this.panel.togglePosition}_showToggle(){return!this.panel.hideToggle&&!this.panel.disabled}_getHeaderHeight(){const oe=this._isExpanded();return oe&&this.expandedHeight?this.expandedHeight:!oe&&this.collapsedHeight?this.collapsedHeight:null}_keydown(oe){switch(oe.keyCode){case ie.L_:case ie.K5:(0,ie.Vb)(oe)||(oe.preventDefault(),this._toggle());break;default:return void(this.panel.accordion&&this.panel.accordion._handleHeaderKeydown(oe))}}focus(oe,je){oe?this._focusMonitor.focusVia(this._element,oe,je):this._element.nativeElement.focus(je)}ngAfterViewInit(){this._focusMonitor.monitor(this._element).subscribe(oe=>{oe&&this.panel.accordion&&this.panel.accordion._handleHeaderFocus(this)})}ngOnDestroy(){this._parentChangeSubscription.unsubscribe(),this._focusMonitor.stopMonitoring(this._element)}}return ce.\u0275fac=function(oe){return new(oe||ce)(t.Y36(B,1),t.Y36(t.SBq),t.Y36(z.tE),t.Y36(t.sBO),t.Y36(_,8),t.Y36(t.QbO,8),t.$8M("tabindex"))},ce.\u0275cmp=t.Xpm({type:ce,selectors:[["mat-expansion-panel-header"]],hostAttrs:["role","button",1,"mat-expansion-panel-header","mat-focus-indicator"],hostVars:15,hostBindings:function(oe,je){1&oe&&t.NdJ("click",function(){return je._toggle()})("keydown",function(he){return je._keydown(he)}),2&oe&&(t.uIk("id",je.panel._headerId)("tabindex",je.tabIndex)("aria-controls",je._getPanelId())("aria-expanded",je._isExpanded())("aria-disabled",je.panel.disabled),t.Udp("height",je._getHeaderHeight()),t.ekj("mat-expanded",je._isExpanded())("mat-expansion-toggle-indicator-after","after"===je._getTogglePosition())("mat-expansion-toggle-indicator-before","before"===je._getTogglePosition())("_mat-animation-noopable","NoopAnimations"===je._animationMode))},inputs:{tabIndex:"tabIndex",expandedHeight:"expandedHeight",collapsedHeight:"collapsedHeight"},features:[t.qOj],ngContentSelectors:u,decls:5,vars:3,consts:[[1,"mat-content"],["class","mat-expansion-indicator",4,"ngIf"],[1,"mat-expansion-indicator"]],template:function(oe,je){1&oe&&(t.F$t(a),t.TgZ(0,"span",0),t.Hsn(1),t.Hsn(2,1),t.Hsn(3,2),t.qZA(),t.YNc(4,i,1,1,"span",1)),2&oe&&(t.ekj("mat-content-hide-toggle",!je._showToggle()),t.xp6(4),t.Q6J("ngIf",je._showToggle()))},dependencies:[E.O5],styles:['.mat-expansion-panel-header{display:flex;flex-direction:row;align-items:center;padding:0 24px;border-radius:inherit;transition:height 225ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-expansion-panel-header._mat-animation-noopable{transition:none}.mat-expansion-panel-header:focus,.mat-expansion-panel-header:hover{outline:none}.mat-expansion-panel-header.mat-expanded:focus,.mat-expansion-panel-header.mat-expanded:hover{background:inherit}.mat-expansion-panel-header:not([aria-disabled=true]){cursor:pointer}.mat-expansion-panel-header.mat-expansion-toggle-indicator-before{flex-direction:row-reverse}.mat-expansion-panel-header.mat-expansion-toggle-indicator-before .mat-expansion-indicator{margin:0 16px 0 0}[dir=rtl] .mat-expansion-panel-header.mat-expansion-toggle-indicator-before .mat-expansion-indicator{margin:0 0 0 16px}.mat-content{display:flex;flex:1;flex-direction:row;overflow:hidden}.mat-content.mat-content-hide-toggle{margin-right:8px}[dir=rtl] .mat-content.mat-content-hide-toggle{margin-right:0;margin-left:8px}.mat-expansion-toggle-indicator-before .mat-content.mat-content-hide-toggle{margin-left:24px;margin-right:0}[dir=rtl] .mat-expansion-toggle-indicator-before .mat-content.mat-content-hide-toggle{margin-right:24px;margin-left:0}.mat-expansion-panel-header-title,.mat-expansion-panel-header-description{display:flex;flex-grow:1;flex-basis:0;margin-right:16px;align-items:center}[dir=rtl] .mat-expansion-panel-header-title,[dir=rtl] .mat-expansion-panel-header-description{margin-right:0;margin-left:16px}.mat-expansion-panel-header-description{flex-grow:2}.mat-expansion-indicator::after{border-style:solid;border-width:0 2px 2px 0;content:"";display:inline-block;padding:3px;transform:rotate(45deg);vertical-align:middle}.cdk-high-contrast-active .mat-expansion-panel-content{border-top:1px solid;border-top-left-radius:0;border-top-right-radius:0}'],encapsulation:2,data:{animation:[T.indicatorRotate]},changeDetection:0}),ce})(),We=(()=>{class ce{}return ce.\u0275fac=function(oe){return new(oe||ce)},ce.\u0275dir=t.lG2({type:ce,selectors:[["mat-panel-description"]],hostAttrs:[1,"mat-expansion-panel-header-description"]}),ce})(),Fe=(()=>{class ce{}return ce.\u0275fac=function(oe){return new(oe||ce)},ce.\u0275dir=t.lG2({type:ce,selectors:[["mat-panel-title"]],hostAttrs:[1,"mat-expansion-panel-header-title"]}),ce})(),De=(()=>{class ce extends P{constructor(){super(...arguments),this._ownHeaders=new t.n_E,this._hideToggle=!1,this.displayMode="default",this.togglePosition="after"}get hideToggle(){return this._hideToggle}set hideToggle(oe){this._hideToggle=(0,b.Ig)(oe)}ngAfterContentInit(){this._headers.changes.pipe((0,W.O)(this._headers)).subscribe(oe=>{this._ownHeaders.reset(oe.filter(je=>je.panel.accordion===this)),this._ownHeaders.notifyOnChanges()}),this._keyManager=new z.Em(this._ownHeaders).withWrap().withHomeAndEnd()}_handleHeaderKeydown(oe){this._keyManager.onKeydown(oe)}_handleHeaderFocus(oe){this._keyManager.updateActiveItem(oe)}ngOnDestroy(){super.ngOnDestroy(),this._keyManager?.destroy(),this._ownHeaders.destroy()}}return ce.\u0275fac=function(){let ve;return function(je){return(ve||(ve=t.n5z(ce)))(je||ce)}}(),ce.\u0275dir=t.lG2({type:ce,selectors:[["mat-accordion"]],contentQueries:function(oe,je,Ae){if(1&oe&&t.Suo(Ae,$e,5),2&oe){let he;t.iGM(he=t.CRH())&&(je._headers=he)}},hostAttrs:[1,"mat-accordion"],hostVars:2,hostBindings:function(oe,je){2&oe&&t.ekj("mat-accordion-multi",je.multi)},inputs:{multi:"multi",hideToggle:"hideToggle",displayMode:"displayMode",togglePosition:"togglePosition"},exportAs:["matAccordion"],features:[t._Bn([{provide:l,useExisting:ce}]),t.qOj]}),ce})(),ye=(()=>{class ce{}return ce.\u0275fac=function(oe){return new(oe||ce)},ce.\u0275mod=t.oAB({type:ce}),ce.\u0275inj=t.cJS({imports:[E.ez,R.BQ,w,O.eL]}),ce})()},9549:(Ve,q,p)=>{"use strict";p.d(q,{Eo:()=>Ce,G_:()=>ae,KE:()=>ot,R9:()=>De,TO:()=>V,bx:()=>Le,hX:()=>n,lN:()=>wt});var t=p(4650),e=p(445),b=p(3353),I=p(7579),s=p(6451),C=p(2722),h=p(6895),P=p(1281),d=p(7340),S=p(9643),w=p(3238);const O=["matFormFieldNotchedOutline",""],E=["*"],R=["textField"],z=["iconPrefixContainer"],U=["textPrefixContainer"];function W(ke,Ke){1&ke&&t._UZ(0,"span",19)}function K(ke,Ke){if(1&ke){const xt=t.EpF();t.TgZ(0,"label",17),t.NdJ("cdkObserveContent",function(){t.CHM(xt);const Re=t.oxw(2);return t.KtG(Re._refreshOutlineNotchWidth())}),t.Hsn(1,1),t.YNc(2,W,1,0,"span",18),t.qZA()}if(2&ke){const xt=t.oxw(2);t.Q6J("floating",xt._shouldLabelFloat())("cdkObserveContentDisabled",!xt._hasOutline())("id",xt._labelId),t.uIk("for",xt._control.id)("aria-owns",xt._control.id),t.xp6(2),t.Q6J("ngIf",!xt.hideRequiredMarker&&xt._control.required)}}function ee(ke,Ke){if(1&ke&&t.YNc(0,K,3,6,"label",16),2&ke){const xt=t.oxw();t.Q6J("ngIf",xt._hasFloatingLabel())}}function ie(ke,Ke){1&ke&&t._UZ(0,"div",20)}function ue(ke,Ke){}function le(ke,Ke){if(1&ke&&t.YNc(0,ue,0,0,"ng-template",22),2&ke){t.oxw(2);const xt=t.MAs(1);t.Q6J("ngTemplateOutlet",xt)}}function ne(ke,Ke){if(1&ke&&(t.TgZ(0,"div",21),t.YNc(1,le,1,1,"ng-template",9),t.qZA()),2&ke){const xt=t.oxw();t.Q6J("matFormFieldNotchedOutlineOpen",xt._shouldLabelFloat())("matFormFieldNotchedOutlineLabelWidth",xt._labelWidth),t.xp6(1),t.Q6J("ngIf",!xt._forceDisplayInfixLabel())}}function de(ke,Ke){1&ke&&(t.TgZ(0,"div",23,24),t.Hsn(2,2),t.qZA())}function $(ke,Ke){1&ke&&(t.TgZ(0,"div",25,26),t.Hsn(2,3),t.qZA())}function me(ke,Ke){}function A(ke,Ke){if(1&ke&&t.YNc(0,me,0,0,"ng-template",22),2&ke){t.oxw();const xt=t.MAs(1);t.Q6J("ngTemplateOutlet",xt)}}function i(ke,Ke){1&ke&&(t.TgZ(0,"div",27),t.Hsn(1,4),t.qZA())}function a(ke,Ke){1&ke&&(t.TgZ(0,"div",28),t.Hsn(1,5),t.qZA())}function u(ke,Ke){1&ke&&t._UZ(0,"div",29)}function l(ke,Ke){if(1&ke&&(t.TgZ(0,"div",30),t.Hsn(1,6),t.qZA()),2&ke){const xt=t.oxw();t.Q6J("@transitionMessages",xt._subscriptAnimationState)}}function y(ke,Ke){if(1&ke&&(t.TgZ(0,"mat-hint",34),t._uU(1),t.qZA()),2&ke){const xt=t.oxw(2);t.Q6J("id",xt._hintLabelId),t.xp6(1),t.Oqu(xt.hintLabel)}}function T(ke,Ke){if(1&ke&&(t.TgZ(0,"div",31),t.YNc(1,y,2,2,"mat-hint",32),t.Hsn(2,7),t._UZ(3,"div",33),t.Hsn(4,8),t.qZA()),2&ke){const xt=t.oxw();t.Q6J("@transitionMessages",xt._subscriptAnimationState),t.xp6(1),t.Q6J("ngIf",xt.hintLabel)}}const L=["*",[["mat-label"]],[["","matPrefix",""],["","matIconPrefix",""]],[["","matTextPrefix",""]],[["","matTextSuffix",""]],[["","matSuffix",""],["","matIconSuffix",""]],[["mat-error"],["","matError",""]],[["mat-hint",3,"align","end"]],[["mat-hint","align","end"]]],m=["*","mat-label","[matPrefix], [matIconPrefix]","[matTextPrefix]","[matTextSuffix]","[matSuffix], [matIconSuffix]","mat-error, [matError]","mat-hint:not([align='end'])","mat-hint[align='end']"];let n=(()=>{class ke{}return ke.\u0275fac=function(xt){return new(xt||ke)},ke.\u0275dir=t.lG2({type:ke,selectors:[["mat-label"]]}),ke})(),_=0;const B=new t.OlP("MatError");let V=(()=>{class ke{constructor(xt,Y){this.id="mat-mdc-error-"+_++,xt||Y.nativeElement.setAttribute("aria-live","polite")}}return ke.\u0275fac=function(xt){return new(xt||ke)(t.$8M("aria-live"),t.Y36(t.SBq))},ke.\u0275dir=t.lG2({type:ke,selectors:[["mat-error"],["","matError",""]],hostAttrs:["aria-atomic","true",1,"mat-mdc-form-field-error","mat-mdc-form-field-bottom-align"],hostVars:1,hostBindings:function(xt,Y){2&xt&&t.Ikx("id",Y.id)},inputs:{id:"id"},features:[t._Bn([{provide:B,useExisting:ke}])]}),ke})(),X=0,Le=(()=>{class ke{constructor(){this.align="start",this.id="mat-mdc-hint-"+X++}}return ke.\u0275fac=function(xt){return new(xt||ke)},ke.\u0275dir=t.lG2({type:ke,selectors:[["mat-hint"]],hostAttrs:[1,"mat-mdc-form-field-hint","mat-mdc-form-field-bottom-align"],hostVars:4,hostBindings:function(xt,Y){2&xt&&(t.Ikx("id",Y.id),t.uIk("align",null),t.ekj("mat-mdc-form-field-hint-end","end"===Y.align))},inputs:{align:"align",id:"id"}}),ke})();const $e=new t.OlP("MatPrefix"),Fe=new t.OlP("MatSuffix");let De=(()=>{class ke{constructor(){this._isText=!1}set _isTextSelector(xt){this._isText=!0}}return ke.\u0275fac=function(xt){return new(xt||ke)},ke.\u0275dir=t.lG2({type:ke,selectors:[["","matSuffix",""],["","matIconSuffix",""],["","matTextSuffix",""]],inputs:{_isTextSelector:["matTextSuffix","_isTextSelector"]},features:[t._Bn([{provide:Fe,useExisting:ke}])]}),ke})(),ye=(()=>{class ke{constructor(xt){this._elementRef=xt,this.floating=!1}getWidth(){return function ce(ke){if(null!==ke.offsetParent)return ke.scrollWidth;const xt=ke.cloneNode(!0);xt.style.setProperty("position","absolute"),xt.style.setProperty("transform","translate(-9999px, -9999px)"),document.documentElement.appendChild(xt);const Y=xt.scrollWidth;return xt.remove(),Y}(this._elementRef.nativeElement)}get element(){return this._elementRef.nativeElement}}return ke.\u0275fac=function(xt){return new(xt||ke)(t.Y36(t.SBq))},ke.\u0275dir=t.lG2({type:ke,selectors:[["label","matFormFieldFloatingLabel",""]],hostAttrs:[1,"mdc-floating-label","mat-mdc-floating-label"],hostVars:2,hostBindings:function(xt,Y){2&xt&&t.ekj("mdc-floating-label--float-above",Y.floating)},inputs:{floating:"floating"}}),ke})();const ve="mdc-line-ripple--active",oe="mdc-line-ripple--deactivating";let je=(()=>{class ke{constructor(xt,Y){this._elementRef=xt,this._handleTransitionEnd=Re=>{const Tt=this._elementRef.nativeElement.classList,Qe=Tt.contains(oe);"opacity"===Re.propertyName&&Qe&&Tt.remove(ve,oe)},Y.runOutsideAngular(()=>{xt.nativeElement.addEventListener("transitionend",this._handleTransitionEnd)})}activate(){const xt=this._elementRef.nativeElement.classList;xt.remove(oe),xt.add(ve)}deactivate(){this._elementRef.nativeElement.classList.add(oe)}ngOnDestroy(){this._elementRef.nativeElement.removeEventListener("transitionend",this._handleTransitionEnd)}}return ke.\u0275fac=function(xt){return new(xt||ke)(t.Y36(t.SBq),t.Y36(t.R0b))},ke.\u0275dir=t.lG2({type:ke,selectors:[["div","matFormFieldLineRipple",""]],hostAttrs:[1,"mdc-line-ripple"]}),ke})(),Ae=(()=>{class ke{constructor(xt,Y){this._elementRef=xt,this._ngZone=Y,this.labelWidth=0,this.open=!1}ngAfterViewInit(){const xt=this._elementRef.nativeElement.querySelector(".mdc-floating-label");xt?(this._elementRef.nativeElement.classList.add("mdc-notched-outline--upgraded"),"function"==typeof requestAnimationFrame&&(xt.style.transitionDuration="0s",this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>xt.style.transitionDuration="")}))):this._elementRef.nativeElement.classList.add("mdc-notched-outline--no-label")}_getNotchWidth(){return this.open?this.labelWidth>0?`calc(${this.labelWidth}px * var(--mat-mdc-form-field-floating-label-scale, 0.75) + 9px)`:"0px":null}}return ke.\u0275fac=function(xt){return new(xt||ke)(t.Y36(t.SBq),t.Y36(t.R0b))},ke.\u0275cmp=t.Xpm({type:ke,selectors:[["div","matFormFieldNotchedOutline",""]],hostAttrs:[1,"mdc-notched-outline"],hostVars:2,hostBindings:function(xt,Y){2&xt&&t.ekj("mdc-notched-outline--notched",Y.open)},inputs:{labelWidth:["matFormFieldNotchedOutlineLabelWidth","labelWidth"],open:["matFormFieldNotchedOutlineOpen","open"]},attrs:O,ngContentSelectors:E,decls:4,vars:2,consts:[[1,"mdc-notched-outline__leading"],[1,"mdc-notched-outline__notch"],[1,"mdc-notched-outline__trailing"]],template:function(xt,Y){1&xt&&(t.F$t(),t._UZ(0,"div",0),t.TgZ(1,"div",1),t.Hsn(2),t.qZA(),t._UZ(3,"div",2)),2&xt&&(t.xp6(1),t.Udp("width",Y._getNotchWidth()))},encapsulation:2,changeDetection:0}),ke})();const he={transitionMessages:(0,d.X$)("transitionMessages",[(0,d.SB)("enter",(0,d.oB)({opacity:1,transform:"translateY(0%)"})),(0,d.eR)("void => enter",[(0,d.oB)({opacity:0,transform:"translateY(-5px)"}),(0,d.jt)("300ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])};let Ce=(()=>{class ke{}return ke.\u0275fac=function(xt){return new(xt||ke)},ke.\u0275dir=t.lG2({type:ke}),ke})();const ae=new t.OlP("MatFormField"),ge=new t.OlP("MAT_FORM_FIELD_DEFAULT_OPTIONS");let ft=0,ot=(()=>{class ke{get hideRequiredMarker(){return this._hideRequiredMarker}set hideRequiredMarker(xt){this._hideRequiredMarker=(0,P.Ig)(xt)}get floatLabel(){return this._floatLabel||this._defaults?.floatLabel||"auto"}set floatLabel(xt){xt!==this._floatLabel&&(this._floatLabel=xt,this._changeDetectorRef.markForCheck())}get appearance(){return this._appearance}set appearance(xt){const Y=this._appearance;this._appearance=xt||this._defaults?.appearance||"fill","outline"===this._appearance&&this._appearance!==Y&&(this._refreshOutlineNotchWidth(),this._needsOutlineLabelOffsetUpdateOnStable=!0)}get subscriptSizing(){return this._subscriptSizing||this._defaults?.subscriptSizing||"fixed"}set subscriptSizing(xt){this._subscriptSizing=xt||this._defaults?.subscriptSizing||"fixed"}get hintLabel(){return this._hintLabel}set hintLabel(xt){this._hintLabel=xt,this._processHints()}get _control(){return this._explicitFormFieldControl||this._formFieldControl}set _control(xt){this._explicitFormFieldControl=xt}constructor(xt,Y,Re,Tt,Qe,Ye,Ht,Mt){this._elementRef=xt,this._changeDetectorRef=Y,this._ngZone=Re,this._dir=Tt,this._platform=Qe,this._defaults=Ye,this._animationMode=Ht,this._document=Mt,this._hideRequiredMarker=!1,this.color="primary",this._appearance="fill",this._subscriptSizing=null,this._hintLabel="",this._hasIconPrefix=!1,this._hasTextPrefix=!1,this._hasIconSuffix=!1,this._hasTextSuffix=!1,this._labelId="mat-mdc-form-field-label-"+ft++,this._hintLabelId="mat-mdc-hint-"+ft++,this._subscriptAnimationState="",this._labelWidth=0,this._destroyed=new I.x,this._isFocused=null,this._needsOutlineLabelOffsetUpdateOnStable=!1,Ye&&(Ye.appearance&&(this.appearance=Ye.appearance),this._hideRequiredMarker=Boolean(Ye?.hideRequiredMarker),Ye.color&&(this.color=Ye.color))}ngAfterViewInit(){this._updateFocusState(),this._refreshOutlineNotchWidth(),this._document?.fonts?.ready?this._document.fonts.ready.then(()=>{this._refreshOutlineNotchWidth(),this._changeDetectorRef.markForCheck()}):setTimeout(()=>this._refreshOutlineNotchWidth(),100),this._subscriptAnimationState="enter",this._changeDetectorRef.detectChanges()}ngAfterContentInit(){this._assertFormFieldControl(),this._initializeControl(),this._initializeSubscript(),this._initializePrefixAndSuffix(),this._initializeOutlineLabelOffsetSubscriptions()}ngAfterContentChecked(){this._assertFormFieldControl()}ngOnDestroy(){this._destroyed.next(),this._destroyed.complete()}getLabelId(){return this._hasFloatingLabel()?this._labelId:null}getConnectedOverlayOrigin(){return this._textField||this._elementRef}_animateAndLockLabel(){this._hasFloatingLabel()&&(this.floatLabel="always")}_initializeControl(){const xt=this._control;xt.controlType&&this._elementRef.nativeElement.classList.add(`mat-mdc-form-field-type-${xt.controlType}`),xt.stateChanges.subscribe(()=>{this._updateFocusState(),this._syncDescribedByIds(),this._changeDetectorRef.markForCheck()}),xt.ngControl&&xt.ngControl.valueChanges&&xt.ngControl.valueChanges.pipe((0,C.R)(this._destroyed)).subscribe(()=>this._changeDetectorRef.markForCheck())}_checkPrefixAndSuffixTypes(){this._hasIconPrefix=!!this._prefixChildren.find(xt=>!xt._isText),this._hasTextPrefix=!!this._prefixChildren.find(xt=>xt._isText),this._hasIconSuffix=!!this._suffixChildren.find(xt=>!xt._isText),this._hasTextSuffix=!!this._suffixChildren.find(xt=>xt._isText)}_initializePrefixAndSuffix(){this._checkPrefixAndSuffixTypes(),(0,s.T)(this._prefixChildren.changes,this._suffixChildren.changes).subscribe(()=>{this._checkPrefixAndSuffixTypes(),this._changeDetectorRef.markForCheck()})}_initializeSubscript(){this._hintChildren.changes.subscribe(()=>{this._processHints(),this._changeDetectorRef.markForCheck()}),this._errorChildren.changes.subscribe(()=>{this._syncDescribedByIds(),this._changeDetectorRef.markForCheck()}),this._validateHints(),this._syncDescribedByIds()}_assertFormFieldControl(){}_updateFocusState(){this._control.focused&&!this._isFocused?(this._isFocused=!0,this._lineRipple?.activate()):!this._control.focused&&(this._isFocused||null===this._isFocused)&&(this._isFocused=!1,this._lineRipple?.deactivate()),this._textField?.nativeElement.classList.toggle("mdc-text-field--focused",this._control.focused)}_initializeOutlineLabelOffsetSubscriptions(){this._prefixChildren.changes.subscribe(()=>this._needsOutlineLabelOffsetUpdateOnStable=!0),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.pipe((0,C.R)(this._destroyed)).subscribe(()=>{this._needsOutlineLabelOffsetUpdateOnStable&&(this._needsOutlineLabelOffsetUpdateOnStable=!1,this._updateOutlineLabelOffset())})}),this._dir.change.pipe((0,C.R)(this._destroyed)).subscribe(()=>this._needsOutlineLabelOffsetUpdateOnStable=!0)}_shouldAlwaysFloat(){return"always"===this.floatLabel}_hasOutline(){return"outline"===this.appearance}_forceDisplayInfixLabel(){return!this._platform.isBrowser&&this._prefixChildren.length&&!this._shouldLabelFloat()}_hasFloatingLabel(){return!!this._labelChildNonStatic||!!this._labelChildStatic}_shouldLabelFloat(){return this._control.shouldLabelFloat||this._shouldAlwaysFloat()}_shouldForward(xt){const Y=this._control?this._control.ngControl:null;return Y&&Y[xt]}_getDisplayedMessages(){return this._errorChildren&&this._errorChildren.length>0&&this._control.errorState?"error":"hint"}_refreshOutlineNotchWidth(){!this._hasOutline()||!this._floatingLabel||(this._labelWidth=this._floatingLabel.getWidth())}_processHints(){this._validateHints(),this._syncDescribedByIds()}_validateHints(){}_syncDescribedByIds(){if(this._control){let xt=[];if(this._control.userAriaDescribedBy&&"string"==typeof this._control.userAriaDescribedBy&&xt.push(...this._control.userAriaDescribedBy.split(" ")),"hint"===this._getDisplayedMessages()){const Y=this._hintChildren?this._hintChildren.find(Tt=>"start"===Tt.align):null,Re=this._hintChildren?this._hintChildren.find(Tt=>"end"===Tt.align):null;Y?xt.push(Y.id):this._hintLabel&&xt.push(this._hintLabelId),Re&&xt.push(Re.id)}else this._errorChildren&&xt.push(...this._errorChildren.map(Y=>Y.id));this._control.setDescribedByIds(xt)}}_updateOutlineLabelOffset(){if(!this._platform.isBrowser||!this._hasOutline()||!this._floatingLabel)return;const xt=this._floatingLabel.element;if(!this._iconPrefixContainer&&!this._textPrefixContainer)return void(xt.style.transform="");if(!this._isAttachedToDom())return void(this._needsOutlineLabelOffsetUpdateOnStable=!0);const Y=this._iconPrefixContainer?.nativeElement,Re=this._textPrefixContainer?.nativeElement,Tt=Y?.getBoundingClientRect().width??0,Qe=Re?.getBoundingClientRect().width??0;xt.style.transform=`var(\n --mat-mdc-form-field-label-transform,\n translateY(-50%) translateX(calc(${"rtl"===this._dir.value?"-1":"1"} * (${Tt+Qe}px + var(--mat-mdc-form-field-label-offset-x, 0px))))\n )`}_isAttachedToDom(){const xt=this._elementRef.nativeElement;if(xt.getRootNode){const Y=xt.getRootNode();return Y&&Y!==xt}return document.documentElement.contains(xt)}}return ke.\u0275fac=function(xt){return new(xt||ke)(t.Y36(t.SBq),t.Y36(t.sBO),t.Y36(t.R0b),t.Y36(e.Is),t.Y36(b.t4),t.Y36(ge,8),t.Y36(t.QbO,8),t.Y36(h.K0))},ke.\u0275cmp=t.Xpm({type:ke,selectors:[["mat-form-field"]],contentQueries:function(xt,Y,Re){if(1&xt&&(t.Suo(Re,n,5),t.Suo(Re,n,7),t.Suo(Re,Ce,5),t.Suo(Re,$e,5),t.Suo(Re,Fe,5),t.Suo(Re,B,5),t.Suo(Re,Le,5)),2&xt){let Tt;t.iGM(Tt=t.CRH())&&(Y._labelChildNonStatic=Tt.first),t.iGM(Tt=t.CRH())&&(Y._labelChildStatic=Tt.first),t.iGM(Tt=t.CRH())&&(Y._formFieldControl=Tt.first),t.iGM(Tt=t.CRH())&&(Y._prefixChildren=Tt),t.iGM(Tt=t.CRH())&&(Y._suffixChildren=Tt),t.iGM(Tt=t.CRH())&&(Y._errorChildren=Tt),t.iGM(Tt=t.CRH())&&(Y._hintChildren=Tt)}},viewQuery:function(xt,Y){if(1&xt&&(t.Gf(R,5),t.Gf(z,5),t.Gf(U,5),t.Gf(ye,5),t.Gf(Ae,5),t.Gf(je,5)),2&xt){let Re;t.iGM(Re=t.CRH())&&(Y._textField=Re.first),t.iGM(Re=t.CRH())&&(Y._iconPrefixContainer=Re.first),t.iGM(Re=t.CRH())&&(Y._textPrefixContainer=Re.first),t.iGM(Re=t.CRH())&&(Y._floatingLabel=Re.first),t.iGM(Re=t.CRH())&&(Y._notchedOutline=Re.first),t.iGM(Re=t.CRH())&&(Y._lineRipple=Re.first)}},hostAttrs:[1,"mat-mdc-form-field"],hostVars:42,hostBindings:function(xt,Y){2&xt&&t.ekj("mat-mdc-form-field-label-always-float",Y._shouldAlwaysFloat())("mat-mdc-form-field-has-icon-prefix",Y._hasIconPrefix)("mat-mdc-form-field-has-icon-suffix",Y._hasIconSuffix)("mat-form-field-invalid",Y._control.errorState)("mat-form-field-disabled",Y._control.disabled)("mat-form-field-autofilled",Y._control.autofilled)("mat-form-field-no-animations","NoopAnimations"===Y._animationMode)("mat-form-field-appearance-fill","fill"==Y.appearance)("mat-form-field-appearance-outline","outline"==Y.appearance)("mat-form-field-hide-placeholder",Y._hasFloatingLabel()&&!Y._shouldLabelFloat())("mat-focused",Y._control.focused)("mat-primary","accent"!==Y.color&&"warn"!==Y.color)("mat-accent","accent"===Y.color)("mat-warn","warn"===Y.color)("ng-untouched",Y._shouldForward("untouched"))("ng-touched",Y._shouldForward("touched"))("ng-pristine",Y._shouldForward("pristine"))("ng-dirty",Y._shouldForward("dirty"))("ng-valid",Y._shouldForward("valid"))("ng-invalid",Y._shouldForward("invalid"))("ng-pending",Y._shouldForward("pending"))},inputs:{hideRequiredMarker:"hideRequiredMarker",color:"color",floatLabel:"floatLabel",appearance:"appearance",subscriptSizing:"subscriptSizing",hintLabel:"hintLabel"},exportAs:["matFormField"],features:[t._Bn([{provide:ae,useExisting:ke}])],ngContentSelectors:m,decls:18,vars:23,consts:[["labelTemplate",""],[1,"mat-mdc-text-field-wrapper","mdc-text-field",3,"click"],["textField",""],["class","mat-mdc-form-field-focus-overlay",4,"ngIf"],[1,"mat-mdc-form-field-flex"],["matFormFieldNotchedOutline","",3,"matFormFieldNotchedOutlineOpen","matFormFieldNotchedOutlineLabelWidth",4,"ngIf"],["class","mat-mdc-form-field-icon-prefix",4,"ngIf"],["class","mat-mdc-form-field-text-prefix",4,"ngIf"],[1,"mat-mdc-form-field-infix"],[3,"ngIf"],["class","mat-mdc-form-field-text-suffix",4,"ngIf"],["class","mat-mdc-form-field-icon-suffix",4,"ngIf"],["matFormFieldLineRipple","",4,"ngIf"],[1,"mat-mdc-form-field-subscript-wrapper","mat-mdc-form-field-bottom-align",3,"ngSwitch"],["class","mat-mdc-form-field-error-wrapper",4,"ngSwitchCase"],["class","mat-mdc-form-field-hint-wrapper",4,"ngSwitchCase"],["matFormFieldFloatingLabel","",3,"floating","cdkObserveContentDisabled","id","cdkObserveContent",4,"ngIf"],["matFormFieldFloatingLabel","",3,"floating","cdkObserveContentDisabled","id","cdkObserveContent"],["aria-hidden","true","class","mat-mdc-form-field-required-marker mdc-floating-label--required",4,"ngIf"],["aria-hidden","true",1,"mat-mdc-form-field-required-marker","mdc-floating-label--required"],[1,"mat-mdc-form-field-focus-overlay"],["matFormFieldNotchedOutline","",3,"matFormFieldNotchedOutlineOpen","matFormFieldNotchedOutlineLabelWidth"],[3,"ngTemplateOutlet"],[1,"mat-mdc-form-field-icon-prefix"],["iconPrefixContainer",""],[1,"mat-mdc-form-field-text-prefix"],["textPrefixContainer",""],[1,"mat-mdc-form-field-text-suffix"],[1,"mat-mdc-form-field-icon-suffix"],["matFormFieldLineRipple",""],[1,"mat-mdc-form-field-error-wrapper"],[1,"mat-mdc-form-field-hint-wrapper"],[3,"id",4,"ngIf"],[1,"mat-mdc-form-field-hint-spacer"],[3,"id"]],template:function(xt,Y){1&xt&&(t.F$t(L),t.YNc(0,ee,1,1,"ng-template",null,0,t.W1O),t.TgZ(2,"div",1,2),t.NdJ("click",function(Tt){return Y._control.onContainerClick&&Y._control.onContainerClick(Tt)}),t.YNc(4,ie,1,0,"div",3),t.TgZ(5,"div",4),t.YNc(6,ne,2,3,"div",5),t.YNc(7,de,3,0,"div",6),t.YNc(8,$,3,0,"div",7),t.TgZ(9,"div",8),t.YNc(10,A,1,1,"ng-template",9),t.Hsn(11),t.qZA(),t.YNc(12,i,2,0,"div",10),t.YNc(13,a,2,0,"div",11),t.qZA(),t.YNc(14,u,1,0,"div",12),t.qZA(),t.TgZ(15,"div",13),t.YNc(16,l,2,1,"div",14),t.YNc(17,T,5,2,"div",15),t.qZA()),2&xt&&(t.xp6(2),t.ekj("mdc-text-field--filled",!Y._hasOutline())("mdc-text-field--outlined",Y._hasOutline())("mdc-text-field--no-label",!Y._hasFloatingLabel())("mdc-text-field--disabled",Y._control.disabled)("mdc-text-field--invalid",Y._control.errorState),t.xp6(2),t.Q6J("ngIf",!Y._hasOutline()&&!Y._control.disabled),t.xp6(2),t.Q6J("ngIf",Y._hasOutline()),t.xp6(1),t.Q6J("ngIf",Y._hasIconPrefix),t.xp6(1),t.Q6J("ngIf",Y._hasTextPrefix),t.xp6(2),t.Q6J("ngIf",!Y._hasOutline()||Y._forceDisplayInfixLabel()),t.xp6(2),t.Q6J("ngIf",Y._hasTextSuffix),t.xp6(1),t.Q6J("ngIf",Y._hasIconSuffix),t.xp6(1),t.Q6J("ngIf",!Y._hasOutline()),t.xp6(1),t.ekj("mat-mdc-form-field-subscript-dynamic-size","dynamic"===Y.subscriptSizing),t.Q6J("ngSwitch",Y._getDisplayedMessages()),t.xp6(1),t.Q6J("ngSwitchCase","error"),t.xp6(1),t.Q6J("ngSwitchCase","hint"))},dependencies:[h.O5,h.tP,h.RF,h.n9,S.wD,Le,ye,Ae,je],styles:['.mdc-text-field{border-top-left-radius:var(--mdc-shape-small, 4px);border-top-right-radius:var(--mdc-shape-small, 4px);border-bottom-right-radius:0;border-bottom-left-radius:0;display:inline-flex;align-items:baseline;padding:0 16px;position:relative;box-sizing:border-box;overflow:hidden;will-change:opacity,transform,color}.mdc-text-field .mdc-floating-label{top:50%;transform:translateY(-50%);pointer-events:none}.mdc-text-field__input{height:28px;width:100%;min-width:0;border:none;border-radius:0;background:none;appearance:none;padding:0}.mdc-text-field__input::-ms-clear{display:none}.mdc-text-field__input::-webkit-calendar-picker-indicator{display:none}.mdc-text-field__input:focus{outline:none}.mdc-text-field__input:invalid{box-shadow:none}@media all{.mdc-text-field__input::placeholder{opacity:0}}@media all{.mdc-text-field__input:-ms-input-placeholder{opacity:0}}@media all{.mdc-text-field--no-label .mdc-text-field__input::placeholder,.mdc-text-field--focused .mdc-text-field__input::placeholder{opacity:1}}@media all{.mdc-text-field--no-label .mdc-text-field__input:-ms-input-placeholder,.mdc-text-field--focused .mdc-text-field__input:-ms-input-placeholder{opacity:1}}.mdc-text-field__affix{height:28px;opacity:0;white-space:nowrap}.mdc-text-field--label-floating .mdc-text-field__affix,.mdc-text-field--no-label .mdc-text-field__affix{opacity:1}@supports(-webkit-hyphens: none){.mdc-text-field--outlined .mdc-text-field__affix{align-items:center;align-self:center;display:inline-flex;height:100%}}.mdc-text-field__affix--prefix{padding-left:0;padding-right:2px}[dir=rtl] .mdc-text-field__affix--prefix,.mdc-text-field__affix--prefix[dir=rtl]{padding-left:2px;padding-right:0}.mdc-text-field--end-aligned .mdc-text-field__affix--prefix{padding-left:0;padding-right:12px}[dir=rtl] .mdc-text-field--end-aligned .mdc-text-field__affix--prefix,.mdc-text-field--end-aligned .mdc-text-field__affix--prefix[dir=rtl]{padding-left:12px;padding-right:0}.mdc-text-field__affix--suffix{padding-left:12px;padding-right:0}[dir=rtl] .mdc-text-field__affix--suffix,.mdc-text-field__affix--suffix[dir=rtl]{padding-left:0;padding-right:12px}.mdc-text-field--end-aligned .mdc-text-field__affix--suffix{padding-left:2px;padding-right:0}[dir=rtl] .mdc-text-field--end-aligned .mdc-text-field__affix--suffix,.mdc-text-field--end-aligned .mdc-text-field__affix--suffix[dir=rtl]{padding-left:0;padding-right:2px}.mdc-text-field--filled{height:56px}.mdc-text-field--filled::before{display:inline-block;width:0;height:40px;content:"";vertical-align:0}.mdc-text-field--filled .mdc-floating-label{left:16px;right:initial}[dir=rtl] .mdc-text-field--filled .mdc-floating-label,.mdc-text-field--filled .mdc-floating-label[dir=rtl]{left:initial;right:16px}.mdc-text-field--filled .mdc-floating-label--float-above{transform:translateY(-106%) scale(0.75)}.mdc-text-field--filled.mdc-text-field--no-label .mdc-text-field__input{height:100%}.mdc-text-field--filled.mdc-text-field--no-label .mdc-floating-label{display:none}.mdc-text-field--filled.mdc-text-field--no-label::before{display:none}@supports(-webkit-hyphens: none){.mdc-text-field--filled.mdc-text-field--no-label .mdc-text-field__affix{align-items:center;align-self:center;display:inline-flex;height:100%}}.mdc-text-field--outlined{height:56px;overflow:visible}.mdc-text-field--outlined .mdc-floating-label--float-above{transform:translateY(-37.25px) scale(1)}.mdc-text-field--outlined .mdc-floating-label--float-above{font-size:.75rem}.mdc-text-field--outlined.mdc-notched-outline--upgraded .mdc-floating-label--float-above,.mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above{transform:translateY(-34.75px) scale(0.75)}.mdc-text-field--outlined.mdc-notched-outline--upgraded .mdc-floating-label--float-above,.mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above{font-size:1rem}.mdc-text-field--outlined .mdc-text-field__input{height:100%}.mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__leading{border-top-left-radius:var(--mdc-shape-small, 4px);border-top-right-radius:0;border-bottom-right-radius:0;border-bottom-left-radius:var(--mdc-shape-small, 4px)}[dir=rtl] .mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__leading,.mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__leading[dir=rtl]{border-top-left-radius:0;border-top-right-radius:var(--mdc-shape-small, 4px);border-bottom-right-radius:var(--mdc-shape-small, 4px);border-bottom-left-radius:0}@supports(top: max(0%)){.mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__leading{width:max(12px, var(--mdc-shape-small, 4px))}}@supports(top: max(0%)){.mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__notch{max-width:calc(100% - max(12px, var(--mdc-shape-small, 4px))*2)}}.mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__trailing{border-top-left-radius:0;border-top-right-radius:var(--mdc-shape-small, 4px);border-bottom-right-radius:var(--mdc-shape-small, 4px);border-bottom-left-radius:0}[dir=rtl] .mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__trailing,.mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__trailing[dir=rtl]{border-top-left-radius:var(--mdc-shape-small, 4px);border-top-right-radius:0;border-bottom-right-radius:0;border-bottom-left-radius:var(--mdc-shape-small, 4px)}@supports(top: max(0%)){.mdc-text-field--outlined{padding-left:max(16px, calc(var(--mdc-shape-small, 4px) + 4px))}}@supports(top: max(0%)){.mdc-text-field--outlined{padding-right:max(16px, var(--mdc-shape-small, 4px))}}@supports(top: max(0%)){.mdc-text-field--outlined+.mdc-text-field-helper-line{padding-left:max(16px, calc(var(--mdc-shape-small, 4px) + 4px))}}@supports(top: max(0%)){.mdc-text-field--outlined+.mdc-text-field-helper-line{padding-right:max(16px, var(--mdc-shape-small, 4px))}}.mdc-text-field--outlined.mdc-text-field--with-leading-icon{padding-left:0}@supports(top: max(0%)){.mdc-text-field--outlined.mdc-text-field--with-leading-icon{padding-right:max(16px, var(--mdc-shape-small, 4px))}}[dir=rtl] .mdc-text-field--outlined.mdc-text-field--with-leading-icon,.mdc-text-field--outlined.mdc-text-field--with-leading-icon[dir=rtl]{padding-right:0}@supports(top: max(0%)){[dir=rtl] .mdc-text-field--outlined.mdc-text-field--with-leading-icon,.mdc-text-field--outlined.mdc-text-field--with-leading-icon[dir=rtl]{padding-left:max(16px, var(--mdc-shape-small, 4px))}}.mdc-text-field--outlined.mdc-text-field--with-trailing-icon{padding-right:0}@supports(top: max(0%)){.mdc-text-field--outlined.mdc-text-field--with-trailing-icon{padding-left:max(16px, calc(var(--mdc-shape-small, 4px) + 4px))}}[dir=rtl] .mdc-text-field--outlined.mdc-text-field--with-trailing-icon,.mdc-text-field--outlined.mdc-text-field--with-trailing-icon[dir=rtl]{padding-left:0}@supports(top: max(0%)){[dir=rtl] .mdc-text-field--outlined.mdc-text-field--with-trailing-icon,.mdc-text-field--outlined.mdc-text-field--with-trailing-icon[dir=rtl]{padding-right:max(16px, calc(var(--mdc-shape-small, 4px) + 4px))}}.mdc-text-field--outlined.mdc-text-field--with-leading-icon.mdc-text-field--with-trailing-icon{padding-left:0;padding-right:0}.mdc-text-field--outlined .mdc-notched-outline--notched .mdc-notched-outline__notch{padding-top:1px}.mdc-text-field--outlined .mdc-floating-label{left:4px;right:initial}[dir=rtl] .mdc-text-field--outlined .mdc-floating-label,.mdc-text-field--outlined .mdc-floating-label[dir=rtl]{left:initial;right:4px}.mdc-text-field--outlined .mdc-text-field__input{display:flex;border:none !important;background-color:rgba(0,0,0,0)}.mdc-text-field--outlined .mdc-notched-outline{z-index:1}.mdc-text-field--textarea{flex-direction:column;align-items:center;width:auto;height:auto;padding:0}.mdc-text-field--textarea .mdc-floating-label{top:19px}.mdc-text-field--textarea .mdc-floating-label:not(.mdc-floating-label--float-above){transform:none}.mdc-text-field--textarea .mdc-text-field__input{flex-grow:1;height:auto;min-height:1.5rem;overflow-x:hidden;overflow-y:auto;box-sizing:border-box;resize:none;padding:0 16px}.mdc-text-field--textarea.mdc-text-field--filled::before{display:none}.mdc-text-field--textarea.mdc-text-field--filled .mdc-floating-label--float-above{transform:translateY(-10.25px) scale(0.75)}.mdc-text-field--textarea.mdc-text-field--filled .mdc-text-field__input{margin-top:23px;margin-bottom:9px}.mdc-text-field--textarea.mdc-text-field--filled.mdc-text-field--no-label .mdc-text-field__input{margin-top:16px;margin-bottom:16px}.mdc-text-field--textarea.mdc-text-field--outlined .mdc-notched-outline--notched .mdc-notched-outline__notch{padding-top:0}.mdc-text-field--textarea.mdc-text-field--outlined .mdc-floating-label--float-above{transform:translateY(-27.25px) scale(1)}.mdc-text-field--textarea.mdc-text-field--outlined .mdc-floating-label--float-above{font-size:.75rem}.mdc-text-field--textarea.mdc-text-field--outlined.mdc-notched-outline--upgraded .mdc-floating-label--float-above,.mdc-text-field--textarea.mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above{transform:translateY(-24.75px) scale(0.75)}.mdc-text-field--textarea.mdc-text-field--outlined.mdc-notched-outline--upgraded .mdc-floating-label--float-above,.mdc-text-field--textarea.mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above{font-size:1rem}.mdc-text-field--textarea.mdc-text-field--outlined .mdc-text-field__input{margin-top:16px;margin-bottom:16px}.mdc-text-field--textarea.mdc-text-field--outlined .mdc-floating-label{top:18px}.mdc-text-field--textarea.mdc-text-field--with-internal-counter .mdc-text-field__input{margin-bottom:2px}.mdc-text-field--textarea.mdc-text-field--with-internal-counter .mdc-text-field-character-counter{align-self:flex-end;padding:0 16px}.mdc-text-field--textarea.mdc-text-field--with-internal-counter .mdc-text-field-character-counter::after{display:inline-block;width:0;height:16px;content:"";vertical-align:-16px}.mdc-text-field--textarea.mdc-text-field--with-internal-counter .mdc-text-field-character-counter::before{display:none}.mdc-text-field__resizer{align-self:stretch;display:inline-flex;flex-direction:column;flex-grow:1;max-height:100%;max-width:100%;min-height:56px;min-width:fit-content;min-width:-moz-available;min-width:-webkit-fill-available;overflow:hidden;resize:both}.mdc-text-field--filled .mdc-text-field__resizer{transform:translateY(-1px)}.mdc-text-field--filled .mdc-text-field__resizer .mdc-text-field__input,.mdc-text-field--filled .mdc-text-field__resizer .mdc-text-field-character-counter{transform:translateY(1px)}.mdc-text-field--outlined .mdc-text-field__resizer{transform:translateX(-1px) translateY(-1px)}[dir=rtl] .mdc-text-field--outlined .mdc-text-field__resizer,.mdc-text-field--outlined .mdc-text-field__resizer[dir=rtl]{transform:translateX(1px) translateY(-1px)}.mdc-text-field--outlined .mdc-text-field__resizer .mdc-text-field__input,.mdc-text-field--outlined .mdc-text-field__resizer .mdc-text-field-character-counter{transform:translateX(1px) translateY(1px)}[dir=rtl] .mdc-text-field--outlined .mdc-text-field__resizer .mdc-text-field__input,[dir=rtl] .mdc-text-field--outlined .mdc-text-field__resizer .mdc-text-field-character-counter,.mdc-text-field--outlined .mdc-text-field__resizer .mdc-text-field__input[dir=rtl],.mdc-text-field--outlined .mdc-text-field__resizer .mdc-text-field-character-counter[dir=rtl]{transform:translateX(-1px) translateY(1px)}.mdc-text-field--with-leading-icon{padding-left:0;padding-right:16px}[dir=rtl] .mdc-text-field--with-leading-icon,.mdc-text-field--with-leading-icon[dir=rtl]{padding-left:16px;padding-right:0}.mdc-text-field--with-leading-icon.mdc-text-field--filled .mdc-floating-label{max-width:calc(100% - 48px);left:48px;right:initial}[dir=rtl] .mdc-text-field--with-leading-icon.mdc-text-field--filled .mdc-floating-label,.mdc-text-field--with-leading-icon.mdc-text-field--filled .mdc-floating-label[dir=rtl]{left:initial;right:48px}.mdc-text-field--with-leading-icon.mdc-text-field--filled .mdc-floating-label--float-above{max-width:calc(100% / 0.75 - 64px / 0.75)}.mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-floating-label{left:36px;right:initial}[dir=rtl] .mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-floating-label,.mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-floating-label[dir=rtl]{left:initial;right:36px}.mdc-text-field--with-leading-icon.mdc-text-field--outlined :not(.mdc-notched-outline--notched) .mdc-notched-outline__notch{max-width:calc(100% - 60px)}.mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-floating-label--float-above{transform:translateY(-37.25px) translateX(-32px) scale(1)}[dir=rtl] .mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-floating-label--float-above,.mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-floating-label--float-above[dir=rtl]{transform:translateY(-37.25px) translateX(32px) scale(1)}.mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-floating-label--float-above{font-size:.75rem}.mdc-text-field--with-leading-icon.mdc-text-field--outlined.mdc-notched-outline--upgraded .mdc-floating-label--float-above,.mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above{transform:translateY(-34.75px) translateX(-32px) scale(0.75)}[dir=rtl] .mdc-text-field--with-leading-icon.mdc-text-field--outlined.mdc-notched-outline--upgraded .mdc-floating-label--float-above,[dir=rtl] .mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above,.mdc-text-field--with-leading-icon.mdc-text-field--outlined.mdc-notched-outline--upgraded .mdc-floating-label--float-above[dir=rtl],.mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above[dir=rtl]{transform:translateY(-34.75px) translateX(32px) scale(0.75)}.mdc-text-field--with-leading-icon.mdc-text-field--outlined.mdc-notched-outline--upgraded .mdc-floating-label--float-above,.mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above{font-size:1rem}.mdc-text-field--with-trailing-icon{padding-left:16px;padding-right:0}[dir=rtl] .mdc-text-field--with-trailing-icon,.mdc-text-field--with-trailing-icon[dir=rtl]{padding-left:0;padding-right:16px}.mdc-text-field--with-trailing-icon.mdc-text-field--filled .mdc-floating-label{max-width:calc(100% - 64px)}.mdc-text-field--with-trailing-icon.mdc-text-field--filled .mdc-floating-label--float-above{max-width:calc(100% / 0.75 - 64px / 0.75)}.mdc-text-field--with-trailing-icon.mdc-text-field--outlined :not(.mdc-notched-outline--notched) .mdc-notched-outline__notch{max-width:calc(100% - 60px)}.mdc-text-field--with-leading-icon.mdc-text-field--with-trailing-icon{padding-left:0;padding-right:0}.mdc-text-field--with-leading-icon.mdc-text-field--with-trailing-icon.mdc-text-field--filled .mdc-floating-label{max-width:calc(100% - 96px)}.mdc-text-field--with-leading-icon.mdc-text-field--with-trailing-icon.mdc-text-field--filled .mdc-floating-label--float-above{max-width:calc(100% / 0.75 - 96px / 0.75)}.mdc-text-field-helper-line{display:flex;justify-content:space-between;box-sizing:border-box}.mdc-text-field+.mdc-text-field-helper-line{padding-right:16px;padding-left:16px}.mdc-form-field>.mdc-text-field+label{align-self:flex-start}.mdc-text-field--focused .mdc-notched-outline__leading,.mdc-text-field--focused .mdc-notched-outline__notch,.mdc-text-field--focused .mdc-notched-outline__trailing{border-width:2px}.mdc-text-field--focused+.mdc-text-field-helper-line .mdc-text-field-helper-text:not(.mdc-text-field-helper-text--validation-msg){opacity:1}.mdc-text-field--focused.mdc-text-field--outlined .mdc-notched-outline--notched .mdc-notched-outline__notch{padding-top:2px}.mdc-text-field--focused.mdc-text-field--outlined.mdc-text-field--textarea .mdc-notched-outline--notched .mdc-notched-outline__notch{padding-top:0}.mdc-text-field--invalid+.mdc-text-field-helper-line .mdc-text-field-helper-text--validation-msg{opacity:1}.mdc-text-field--disabled{pointer-events:none}@media screen and (forced-colors: active){.mdc-text-field--disabled .mdc-text-field__input{background-color:Window}.mdc-text-field--disabled .mdc-floating-label{z-index:1}}.mdc-text-field--disabled .mdc-floating-label{cursor:default}.mdc-text-field--disabled.mdc-text-field--filled .mdc-text-field__ripple{display:none}.mdc-text-field--disabled .mdc-text-field__input{pointer-events:auto}.mdc-text-field--end-aligned .mdc-text-field__input{text-align:right}[dir=rtl] .mdc-text-field--end-aligned .mdc-text-field__input,.mdc-text-field--end-aligned .mdc-text-field__input[dir=rtl]{text-align:left}[dir=rtl] .mdc-text-field--ltr-text .mdc-text-field__input,[dir=rtl] .mdc-text-field--ltr-text .mdc-text-field__affix,.mdc-text-field--ltr-text[dir=rtl] .mdc-text-field__input,.mdc-text-field--ltr-text[dir=rtl] .mdc-text-field__affix{direction:ltr}[dir=rtl] .mdc-text-field--ltr-text .mdc-text-field__affix--prefix,.mdc-text-field--ltr-text[dir=rtl] .mdc-text-field__affix--prefix{padding-left:0;padding-right:2px}[dir=rtl] .mdc-text-field--ltr-text .mdc-text-field__affix--suffix,.mdc-text-field--ltr-text[dir=rtl] .mdc-text-field__affix--suffix{padding-left:12px;padding-right:0}[dir=rtl] .mdc-text-field--ltr-text .mdc-text-field__icon--leading,.mdc-text-field--ltr-text[dir=rtl] .mdc-text-field__icon--leading{order:1}[dir=rtl] .mdc-text-field--ltr-text .mdc-text-field__affix--suffix,.mdc-text-field--ltr-text[dir=rtl] .mdc-text-field__affix--suffix{order:2}[dir=rtl] .mdc-text-field--ltr-text .mdc-text-field__input,.mdc-text-field--ltr-text[dir=rtl] .mdc-text-field__input{order:3}[dir=rtl] .mdc-text-field--ltr-text .mdc-text-field__affix--prefix,.mdc-text-field--ltr-text[dir=rtl] .mdc-text-field__affix--prefix{order:4}[dir=rtl] .mdc-text-field--ltr-text .mdc-text-field__icon--trailing,.mdc-text-field--ltr-text[dir=rtl] .mdc-text-field__icon--trailing{order:5}[dir=rtl] .mdc-text-field--ltr-text.mdc-text-field--end-aligned .mdc-text-field__input,.mdc-text-field--ltr-text.mdc-text-field--end-aligned[dir=rtl] .mdc-text-field__input{text-align:right}[dir=rtl] .mdc-text-field--ltr-text.mdc-text-field--end-aligned .mdc-text-field__affix--prefix,.mdc-text-field--ltr-text.mdc-text-field--end-aligned[dir=rtl] .mdc-text-field__affix--prefix{padding-right:12px}[dir=rtl] .mdc-text-field--ltr-text.mdc-text-field--end-aligned .mdc-text-field__affix--suffix,.mdc-text-field--ltr-text.mdc-text-field--end-aligned[dir=rtl] .mdc-text-field__affix--suffix{padding-left:2px}.mdc-floating-label{position:absolute;left:0;-webkit-transform-origin:left top;transform-origin:left top;line-height:1.15rem;text-align:left;text-overflow:ellipsis;white-space:nowrap;cursor:text;overflow:hidden;will-change:transform}[dir=rtl] .mdc-floating-label,.mdc-floating-label[dir=rtl]{right:0;left:auto;-webkit-transform-origin:right top;transform-origin:right top;text-align:right}.mdc-floating-label--float-above{cursor:auto}.mdc-floating-label--required:not(.mdc-floating-label--hide-required-marker)::after{margin-left:1px;margin-right:0px;content:"*"}[dir=rtl] .mdc-floating-label--required:not(.mdc-floating-label--hide-required-marker)::after,.mdc-floating-label--required:not(.mdc-floating-label--hide-required-marker)[dir=rtl]::after{margin-left:0;margin-right:1px}.mdc-floating-label--float-above{transform:translateY(-106%) scale(0.75)}.mdc-notched-outline{display:flex;position:absolute;top:0;right:0;left:0;box-sizing:border-box;width:100%;max-width:100%;height:100%;text-align:left;pointer-events:none}[dir=rtl] .mdc-notched-outline,.mdc-notched-outline[dir=rtl]{text-align:right}.mdc-notched-outline__leading,.mdc-notched-outline__notch,.mdc-notched-outline__trailing{box-sizing:border-box;height:100%;border-top:1px solid;border-bottom:1px solid;pointer-events:none}.mdc-notched-outline__leading{border-left:1px solid;border-right:none;width:12px}[dir=rtl] .mdc-notched-outline__leading,.mdc-notched-outline__leading[dir=rtl]{border-left:none;border-right:1px solid}.mdc-notched-outline__trailing{border-left:none;border-right:1px solid;flex-grow:1}[dir=rtl] .mdc-notched-outline__trailing,.mdc-notched-outline__trailing[dir=rtl]{border-left:1px solid;border-right:none}.mdc-notched-outline__notch{flex:0 0 auto;width:auto;max-width:calc(100% - 12px * 2)}.mdc-notched-outline .mdc-floating-label{display:inline-block;position:relative;max-width:100%}.mdc-notched-outline .mdc-floating-label--float-above{text-overflow:clip}.mdc-notched-outline--upgraded .mdc-floating-label--float-above{max-width:133.3333333333%}.mdc-notched-outline--notched .mdc-notched-outline__notch{padding-left:0;padding-right:8px;border-top:none}[dir=rtl] .mdc-notched-outline--notched .mdc-notched-outline__notch,.mdc-notched-outline--notched .mdc-notched-outline__notch[dir=rtl]{padding-left:8px;padding-right:0}.mdc-notched-outline--no-label .mdc-notched-outline__notch{display:none}.mdc-line-ripple::before,.mdc-line-ripple::after{position:absolute;bottom:0;left:0;width:100%;border-bottom-style:solid;content:""}.mdc-line-ripple::before{border-bottom-width:1px}.mdc-line-ripple::after{border-bottom-width:2px}.mdc-line-ripple::before{z-index:1}.mdc-line-ripple::after{transform:scaleX(0);opacity:0;z-index:2}.mdc-line-ripple--active::after{transform:scaleX(1);opacity:1}.mdc-line-ripple--deactivating::after{opacity:0}.mat-mdc-form-field-textarea-control{vertical-align:middle;resize:vertical;box-sizing:border-box;height:auto;margin:0;padding:0;border:none;overflow:auto}.mat-mdc-form-field-input-control.mat-mdc-form-field-input-control{font:inherit;letter-spacing:inherit;text-decoration:inherit;text-transform:inherit;border:none}.mat-mdc-form-field .mat-mdc-floating-label.mdc-floating-label{line-height:normal;pointer-events:all}.mdc-text-field--no-label:not(.mdc-text-field--textarea) .mat-mdc-form-field-input-control.mdc-text-field__input,.mat-mdc-text-field-wrapper .mat-mdc-form-field-input-control{height:auto}.mat-mdc-text-field-wrapper .mat-mdc-form-field-input-control.mdc-text-field__input[type=color]{height:23px}.mat-mdc-text-field-wrapper{height:auto;flex:auto}.mat-mdc-form-field-has-icon-prefix .mat-mdc-text-field-wrapper{padding-left:0;--mat-mdc-form-field-label-offset-x: -16px}.mat-mdc-form-field-has-icon-suffix .mat-mdc-text-field-wrapper{padding-right:0}[dir=rtl] .mat-mdc-text-field-wrapper{padding-left:16px;padding-right:16px}[dir=rtl] .mat-mdc-form-field-has-icon-suffix .mat-mdc-text-field-wrapper{padding-left:0}[dir=rtl] .mat-mdc-form-field-has-icon-prefix .mat-mdc-text-field-wrapper{padding-right:0}.mat-mdc-form-field-label-always-float .mdc-text-field__input::placeholder{transition-delay:40ms;transition-duration:110ms;opacity:1}.mat-mdc-text-field-wrapper .mat-mdc-form-field-infix .mat-mdc-floating-label{left:auto;right:auto}.mat-mdc-text-field-wrapper.mdc-text-field--outlined .mdc-text-field__input{display:inline-block}.mat-mdc-form-field .mat-mdc-text-field-wrapper.mdc-text-field .mdc-notched-outline__notch{padding-top:0}.mat-mdc-text-field-wrapper::before{content:none}.mat-mdc-form-field-subscript-wrapper{box-sizing:border-box;width:100%;position:relative}.mat-mdc-form-field-hint-wrapper,.mat-mdc-form-field-error-wrapper{position:absolute;top:0;left:0;right:0;padding:0 16px}.mat-mdc-form-field-subscript-dynamic-size .mat-mdc-form-field-hint-wrapper,.mat-mdc-form-field-subscript-dynamic-size .mat-mdc-form-field-error-wrapper{position:static}.mat-mdc-form-field-bottom-align::before{content:"";display:inline-block;height:16px}.mat-mdc-form-field-bottom-align.mat-mdc-form-field-subscript-dynamic-size::before{content:unset}.mat-mdc-form-field-hint-end{order:1}.mat-mdc-form-field-hint-wrapper{display:flex}.mat-mdc-form-field-hint-spacer{flex:1 0 1em}.mat-mdc-form-field-error{display:block}.mat-mdc-form-field-focus-overlay{top:0;left:0;right:0;bottom:0;position:absolute;opacity:0;pointer-events:none}select.mat-mdc-form-field-input-control{-moz-appearance:none;-webkit-appearance:none;background-color:rgba(0,0,0,0);display:inline-flex;box-sizing:border-box}select.mat-mdc-form-field-input-control:not(:disabled){cursor:pointer}.mat-mdc-form-field-type-mat-native-select .mat-mdc-form-field-infix::after{content:"";width:0;height:0;border-left:5px solid rgba(0,0,0,0);border-right:5px solid rgba(0,0,0,0);border-top:5px solid;position:absolute;right:0;top:50%;margin-top:-2.5px;pointer-events:none}[dir=rtl] .mat-mdc-form-field-type-mat-native-select .mat-mdc-form-field-infix::after{right:auto;left:0}.mat-mdc-form-field-type-mat-native-select .mat-mdc-form-field-input-control{padding-right:15px}[dir=rtl] .mat-mdc-form-field-type-mat-native-select .mat-mdc-form-field-input-control{padding-right:0;padding-left:15px}.cdk-high-contrast-active .mat-form-field-appearance-fill .mat-mdc-text-field-wrapper{outline:solid 1px}.cdk-high-contrast-active .mat-form-field-appearance-fill.mat-form-field-disabled .mat-mdc-text-field-wrapper{outline-color:GrayText}.cdk-high-contrast-active .mat-form-field-appearance-fill.mat-focused .mat-mdc-text-field-wrapper{outline:dashed 3px}.cdk-high-contrast-active .mat-mdc-form-field.mat-focused .mdc-notched-outline{border:dashed 3px}.mat-mdc-form-field{--mat-mdc-form-field-floating-label-scale: 0.75;display:inline-flex;flex-direction:column;min-width:0;text-align:left}[dir=rtl] .mat-mdc-form-field{text-align:right}.mat-mdc-form-field-flex{display:inline-flex;align-items:baseline;box-sizing:border-box;width:100%}.mat-mdc-text-field-wrapper{width:100%}.mat-mdc-form-field-icon-prefix,.mat-mdc-form-field-icon-suffix{align-self:center;line-height:0;pointer-events:auto}.mat-mdc-form-field-icon-prefix,[dir=rtl] .mat-mdc-form-field-icon-suffix{padding:0 4px 0 0}.mat-mdc-form-field-icon-suffix,[dir=rtl] .mat-mdc-form-field-icon-prefix{padding:0 0 0 4px}.mat-mdc-form-field-icon-prefix>.mat-icon,.mat-mdc-form-field-icon-suffix>.mat-icon{padding:12px;box-sizing:content-box}.mat-mdc-form-field-subscript-wrapper .mat-icon,.mat-mdc-form-field label .mat-icon{width:1em;height:1em;font-size:inherit}.mat-mdc-form-field-infix{flex:auto;min-width:0;width:180px;position:relative;box-sizing:border-box}.mat-mdc-form-field .mdc-notched-outline__notch{margin-left:-1px;-webkit-clip-path:inset(-9em -999em -9em 1px);clip-path:inset(-9em -999em -9em 1px)}[dir=rtl] .mat-mdc-form-field .mdc-notched-outline__notch{margin-left:0;margin-right:-1px;-webkit-clip-path:inset(-9em 1px -9em -999em);clip-path:inset(-9em 1px -9em -999em)}.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field__input{transition:opacity 150ms 0ms cubic-bezier(0.4, 0, 0.2, 1)}@media all{.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field__input::placeholder{transition:opacity 67ms 0ms cubic-bezier(0.4, 0, 0.2, 1)}}@media all{.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field__input:-ms-input-placeholder{transition:opacity 67ms 0ms cubic-bezier(0.4, 0, 0.2, 1)}}@media all{.mdc-text-field--no-label .mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field__input::placeholder,.mdc-text-field--focused .mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field__input::placeholder{transition-delay:40ms;transition-duration:110ms}}@media all{.mdc-text-field--no-label .mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field__input:-ms-input-placeholder,.mdc-text-field--focused .mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field__input:-ms-input-placeholder{transition-delay:40ms;transition-duration:110ms}}.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field__affix{transition:opacity 150ms 0ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field--filled.mdc-ripple-upgraded--background-focused .mdc-text-field__ripple::before,.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field--filled:not(.mdc-ripple-upgraded):focus .mdc-text-field__ripple::before{transition-duration:75ms}.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field--outlined .mdc-floating-label--shake{animation:mdc-floating-label-shake-float-above-text-field-outlined 250ms 1}@keyframes mdc-floating-label-shake-float-above-text-field-outlined{0%{transform:translateX(calc(0 - 0%)) translateY(-34.75px) scale(0.75)}33%{animation-timing-function:cubic-bezier(0.5, 0, 0.701732, 0.495819);transform:translateX(calc(4% - 0%)) translateY(-34.75px) scale(0.75)}66%{animation-timing-function:cubic-bezier(0.302435, 0.381352, 0.55, 0.956352);transform:translateX(calc(-4% - 0%)) translateY(-34.75px) scale(0.75)}100%{transform:translateX(calc(0 - 0%)) translateY(-34.75px) scale(0.75)}}.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field--textarea{transition:none}.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field--textarea.mdc-text-field--filled .mdc-floating-label--shake{animation:mdc-floating-label-shake-float-above-textarea-filled 250ms 1}@keyframes mdc-floating-label-shake-float-above-textarea-filled{0%{transform:translateX(calc(0 - 0%)) translateY(-10.25px) scale(0.75)}33%{animation-timing-function:cubic-bezier(0.5, 0, 0.701732, 0.495819);transform:translateX(calc(4% - 0%)) translateY(-10.25px) scale(0.75)}66%{animation-timing-function:cubic-bezier(0.302435, 0.381352, 0.55, 0.956352);transform:translateX(calc(-4% - 0%)) translateY(-10.25px) scale(0.75)}100%{transform:translateX(calc(0 - 0%)) translateY(-10.25px) scale(0.75)}}.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field--textarea.mdc-text-field--outlined .mdc-floating-label--shake{animation:mdc-floating-label-shake-float-above-textarea-outlined 250ms 1}@keyframes mdc-floating-label-shake-float-above-textarea-outlined{0%{transform:translateX(calc(0 - 0%)) translateY(-24.75px) scale(0.75)}33%{animation-timing-function:cubic-bezier(0.5, 0, 0.701732, 0.495819);transform:translateX(calc(4% - 0%)) translateY(-24.75px) scale(0.75)}66%{animation-timing-function:cubic-bezier(0.302435, 0.381352, 0.55, 0.956352);transform:translateX(calc(-4% - 0%)) translateY(-24.75px) scale(0.75)}100%{transform:translateX(calc(0 - 0%)) translateY(-24.75px) scale(0.75)}}.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-floating-label--shake{animation:mdc-floating-label-shake-float-above-text-field-outlined-leading-icon 250ms 1}@keyframes mdc-floating-label-shake-float-above-text-field-outlined-leading-icon{0%{transform:translateX(calc(0 - 32px)) translateY(-34.75px) scale(0.75)}33%{animation-timing-function:cubic-bezier(0.5, 0, 0.701732, 0.495819);transform:translateX(calc(4% - 32px)) translateY(-34.75px) scale(0.75)}66%{animation-timing-function:cubic-bezier(0.302435, 0.381352, 0.55, 0.956352);transform:translateX(calc(-4% - 32px)) translateY(-34.75px) scale(0.75)}100%{transform:translateX(calc(0 - 32px)) translateY(-34.75px) scale(0.75)}}[dir=rtl] .mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-floating-label--shake,.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field--with-leading-icon.mdc-text-field--outlined[dir=rtl] .mdc-floating-label--shake{animation:mdc-floating-label-shake-float-above-text-field-outlined-leading-icon 250ms 1}@keyframes mdc-floating-label-shake-float-above-text-field-outlined-leading-icon-rtl{0%{transform:translateX(calc(0 - -32px)) translateY(-34.75px) scale(0.75)}33%{animation-timing-function:cubic-bezier(0.5, 0, 0.701732, 0.495819);transform:translateX(calc(4% - -32px)) translateY(-34.75px) scale(0.75)}66%{animation-timing-function:cubic-bezier(0.302435, 0.381352, 0.55, 0.956352);transform:translateX(calc(-4% - -32px)) translateY(-34.75px) scale(0.75)}100%{transform:translateX(calc(0 - -32px)) translateY(-34.75px) scale(0.75)}}.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-floating-label{transition:transform 150ms cubic-bezier(0.4, 0, 0.2, 1),color 150ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-floating-label--shake{animation:mdc-floating-label-shake-float-above-standard 250ms 1}@keyframes mdc-floating-label-shake-float-above-standard{0%{transform:translateX(calc(0 - 0%)) translateY(-106%) scale(0.75)}33%{animation-timing-function:cubic-bezier(0.5, 0, 0.701732, 0.495819);transform:translateX(calc(4% - 0%)) translateY(-106%) scale(0.75)}66%{animation-timing-function:cubic-bezier(0.302435, 0.381352, 0.55, 0.956352);transform:translateX(calc(-4% - 0%)) translateY(-106%) scale(0.75)}100%{transform:translateX(calc(0 - 0%)) translateY(-106%) scale(0.75)}}.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-line-ripple::after{transition:transform 180ms cubic-bezier(0.4, 0, 0.2, 1),opacity 180ms cubic-bezier(0.4, 0, 0.2, 1)}'],encapsulation:2,data:{animation:[he.transitionMessages]},changeDetection:0}),ke})(),wt=(()=>{class ke{}return ke.\u0275fac=function(xt){return new(xt||ke)},ke.\u0275mod=t.oAB({type:ke}),ke.\u0275inj=t.cJS({imports:[w.BQ,h.ez,S.Q8,w.BQ]}),ke})()},782:(Ve,q,p)=>{"use strict";p.d(q,{DX:()=>O,Il:()=>$,N6:()=>me});var t=p(4650),e=p(3238),b=p(1281),I=p(445);const s=["*"];class d{constructor(){this.columnIndex=0,this.rowIndex=0}get rowCount(){return this.rowIndex+1}get rowspan(){const a=Math.max(...this.tracker);return a>1?this.rowCount+a-1:this.rowCount}update(a,u){this.columnIndex=0,this.rowIndex=0,this.tracker=new Array(a),this.tracker.fill(0,0,this.tracker.length),this.positions=u.map(l=>this._trackTile(l))}_trackTile(a){const u=this._findMatchingGap(a.colspan);return this._markTilePosition(u,a),this.columnIndex=u+a.colspan,new S(this.rowIndex,u)}_findMatchingGap(a){let u=-1,l=-1;do{this.columnIndex+a>this.tracker.length?(this._nextRow(),u=this.tracker.indexOf(0,this.columnIndex),l=this._findGapEndIndex(u)):(u=this.tracker.indexOf(0,this.columnIndex),-1!=u?(l=this._findGapEndIndex(u),this.columnIndex=u+1):(this._nextRow(),u=this.tracker.indexOf(0,this.columnIndex),l=this._findGapEndIndex(u)))}while(l-u<a||0==l);return Math.max(u,0)}_nextRow(){this.columnIndex=0,this.rowIndex++;for(let a=0;a<this.tracker.length;a++)this.tracker[a]=Math.max(0,this.tracker[a]-1)}_findGapEndIndex(a){for(let u=a+1;u<this.tracker.length;u++)if(0!=this.tracker[u])return u;return this.tracker.length}_markTilePosition(a,u){for(let l=0;l<u.colspan;l++)this.tracker[a+l]=u.rowspan}}class S{constructor(a,u){this.row=a,this.col=u}}const w=new t.OlP("MAT_GRID_LIST");let O=(()=>{class i{constructor(u,l){this._element=u,this._gridList=l,this._rowspan=1,this._colspan=1}get rowspan(){return this._rowspan}set rowspan(u){this._rowspan=Math.round((0,b.su)(u))}get colspan(){return this._colspan}set colspan(u){this._colspan=Math.round((0,b.su)(u))}_setStyle(u,l){this._element.nativeElement.style[u]=l}}return i.\u0275fac=function(u){return new(u||i)(t.Y36(t.SBq),t.Y36(w,8))},i.\u0275cmp=t.Xpm({type:i,selectors:[["mat-grid-tile"]],hostAttrs:[1,"mat-grid-tile"],hostVars:2,hostBindings:function(u,l){2&u&&t.uIk("rowspan",l.rowspan)("colspan",l.colspan)},inputs:{rowspan:"rowspan",colspan:"colspan"},exportAs:["matGridTile"],ngContentSelectors:s,decls:2,vars:0,consts:[[1,"mat-grid-tile-content"]],template:function(u,l){1&u&&(t.F$t(),t.TgZ(0,"div",0),t.Hsn(1),t.qZA())},styles:[".mat-grid-list{display:block;position:relative}.mat-grid-tile{display:block;position:absolute;overflow:hidden}.mat-grid-tile .mat-grid-tile-header,.mat-grid-tile .mat-grid-tile-footer{display:flex;align-items:center;height:48px;color:#fff;background:rgba(0,0,0,.38);overflow:hidden;padding:0 16px;position:absolute;left:0;right:0}.mat-grid-tile .mat-grid-tile-header>*,.mat-grid-tile .mat-grid-tile-footer>*{margin:0;padding:0;font-weight:normal;font-size:inherit}.mat-grid-tile .mat-grid-tile-header.mat-2-line,.mat-grid-tile .mat-grid-tile-footer.mat-2-line{height:68px}.mat-grid-tile .mat-grid-list-text{display:flex;flex-direction:column;flex:auto;box-sizing:border-box;overflow:hidden}.mat-grid-tile .mat-grid-list-text>*{margin:0;padding:0;font-weight:normal;font-size:inherit}.mat-grid-tile .mat-grid-list-text:empty{display:none}.mat-grid-tile .mat-grid-tile-header{top:0}.mat-grid-tile .mat-grid-tile-footer{bottom:0}.mat-grid-tile .mat-grid-avatar{padding-right:16px}[dir=rtl] .mat-grid-tile .mat-grid-avatar{padding-right:0;padding-left:16px}.mat-grid-tile .mat-grid-avatar:empty{display:none}.mat-grid-tile-content{top:0;left:0;right:0;bottom:0;position:absolute;display:flex;align-items:center;justify-content:center;height:100%;padding:0;margin:0}"],encapsulation:2,changeDetection:0}),i})();const W=/^-?\d+((\.\d+)?[A-Za-z%$]?)+$/;class K{constructor(){this._rows=0,this._rowspan=0}init(a,u,l,y){this._gutterSize=ne(a),this._rows=u.rowCount,this._rowspan=u.rowspan,this._cols=l,this._direction=y}getBaseTileSize(a,u){return`(${a}% - (${this._gutterSize} * ${u}))`}getTilePosition(a,u){return 0===u?"0":le(`(${a} + ${this._gutterSize}) * ${u}`)}getTileSize(a,u){return`(${a} * ${u}) + (${u-1} * ${this._gutterSize})`}setStyle(a,u,l){let y=100/this._cols,T=(this._cols-1)/this._cols;this.setColStyles(a,l,y,T),this.setRowStyles(a,u,y,T)}setColStyles(a,u,l,y){let T=this.getBaseTileSize(l,y);a._setStyle("rtl"===this._direction?"right":"left",this.getTilePosition(T,u)),a._setStyle("width",le(this.getTileSize(T,a.colspan)))}getGutterSpan(){return`${this._gutterSize} * (${this._rowspan} - 1)`}getTileSpan(a){return`${this._rowspan} * ${this.getTileSize(a,1)}`}getComputedHeight(){return null}}class ee extends K{constructor(a){super(),this.fixedRowHeight=a}init(a,u,l,y){super.init(a,u,l,y),this.fixedRowHeight=ne(this.fixedRowHeight),W.test(this.fixedRowHeight)}setRowStyles(a,u){a._setStyle("top",this.getTilePosition(this.fixedRowHeight,u)),a._setStyle("height",le(this.getTileSize(this.fixedRowHeight,a.rowspan)))}getComputedHeight(){return["height",le(`${this.getTileSpan(this.fixedRowHeight)} + ${this.getGutterSpan()}`)]}reset(a){a._setListStyle(["height",null]),a._tiles&&a._tiles.forEach(u=>{u._setStyle("top",null),u._setStyle("height",null)})}}class ie extends K{constructor(a){super(),this._parseRatio(a)}setRowStyles(a,u,l,y){this.baseTileHeight=this.getBaseTileSize(l/this.rowHeightRatio,y),a._setStyle("marginTop",this.getTilePosition(this.baseTileHeight,u)),a._setStyle("paddingTop",le(this.getTileSize(this.baseTileHeight,a.rowspan)))}getComputedHeight(){return["paddingBottom",le(`${this.getTileSpan(this.baseTileHeight)} + ${this.getGutterSpan()}`)]}reset(a){a._setListStyle(["paddingBottom",null]),a._tiles.forEach(u=>{u._setStyle("marginTop",null),u._setStyle("paddingTop",null)})}_parseRatio(a){const u=a.split(":");this.rowHeightRatio=parseFloat(u[0])/parseFloat(u[1])}}class ue extends K{setRowStyles(a,u){let T=this.getBaseTileSize(100/this._rowspan,(this._rows-1)/this._rows);a._setStyle("top",this.getTilePosition(T,u)),a._setStyle("height",le(this.getTileSize(T,a.rowspan)))}reset(a){a._tiles&&a._tiles.forEach(u=>{u._setStyle("top",null),u._setStyle("height",null)})}}function le(i){return`calc(${i})`}function ne(i){return i.match(/([A-Za-z%]+)$/)?i:`${i}px`}let $=(()=>{class i{constructor(u,l){this._element=u,this._dir=l,this._gutter="1px"}get cols(){return this._cols}set cols(u){this._cols=Math.max(1,Math.round((0,b.su)(u)))}get gutterSize(){return this._gutter}set gutterSize(u){this._gutter=`${u??""}`}get rowHeight(){return this._rowHeight}set rowHeight(u){const l=`${u??""}`;l!==this._rowHeight&&(this._rowHeight=l,this._setTileStyler(this._rowHeight))}ngOnInit(){this._checkCols(),this._checkRowHeight()}ngAfterContentChecked(){this._layoutTiles()}_checkCols(){}_checkRowHeight(){this._rowHeight||this._setTileStyler("1:1")}_setTileStyler(u){this._tileStyler&&this._tileStyler.reset(this),this._tileStyler="fit"===u?new ue:u&&u.indexOf(":")>-1?new ie(u):new ee(u)}_layoutTiles(){this._tileCoordinator||(this._tileCoordinator=new d);const u=this._tileCoordinator,l=this._tiles.filter(T=>!T._gridList||T._gridList===this),y=this._dir?this._dir.value:"ltr";this._tileCoordinator.update(this.cols,l),this._tileStyler.init(this.gutterSize,u,this.cols,y),l.forEach((T,L)=>{const m=u.positions[L];this._tileStyler.setStyle(T,m.row,m.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(I.Is,8))},i.\u0275cmp=t.Xpm({type:i,selectors:[["mat-grid-list"]],contentQueries:function(u,l,y){if(1&u&&t.Suo(y,O,5),2&u){let T;t.iGM(T=t.CRH())&&(l._tiles=T)}},hostAttrs:[1,"mat-grid-list"],hostVars:1,hostBindings:function(u,l){2&u&&t.uIk("cols",l.cols)},inputs:{cols:"cols",gutterSize:"gutterSize",rowHeight:"rowHeight"},exportAs:["matGridList"],features:[t._Bn([{provide:w,useExisting:i}])],ngContentSelectors:s,decls:2,vars:0,template:function(u,l){1&u&&(t.F$t(),t.TgZ(0,"div"),t.Hsn(1),t.qZA())},styles:[".mat-grid-list{display:block;position:relative}.mat-grid-tile{display:block;position:absolute;overflow:hidden}.mat-grid-tile .mat-grid-tile-header,.mat-grid-tile .mat-grid-tile-footer{display:flex;align-items:center;height:48px;color:#fff;background:rgba(0,0,0,.38);overflow:hidden;padding:0 16px;position:absolute;left:0;right:0}.mat-grid-tile .mat-grid-tile-header>*,.mat-grid-tile .mat-grid-tile-footer>*{margin:0;padding:0;font-weight:normal;font-size:inherit}.mat-grid-tile .mat-grid-tile-header.mat-2-line,.mat-grid-tile .mat-grid-tile-footer.mat-2-line{height:68px}.mat-grid-tile .mat-grid-list-text{display:flex;flex-direction:column;flex:auto;box-sizing:border-box;overflow:hidden}.mat-grid-tile .mat-grid-list-text>*{margin:0;padding:0;font-weight:normal;font-size:inherit}.mat-grid-tile .mat-grid-list-text:empty{display:none}.mat-grid-tile .mat-grid-tile-header{top:0}.mat-grid-tile .mat-grid-tile-footer{bottom:0}.mat-grid-tile .mat-grid-avatar{padding-right:16px}[dir=rtl] .mat-grid-tile .mat-grid-avatar{padding-right:0;padding-left:16px}.mat-grid-tile .mat-grid-avatar:empty{display:none}.mat-grid-tile-content{top:0;left:0;right:0;bottom:0;position:absolute;display:flex;align-items:center;justify-content:center;height:100%;padding:0;margin:0}"],encapsulation:2,changeDetection:0}),i})(),me=(()=>{class i{}return i.\u0275fac=function(u){return new(u||i)},i.\u0275mod=t.oAB({type:i}),i.\u0275inj=t.cJS({imports:[e.uc,e.BQ,e.uc,e.BQ]}),i})()},7392:(Ve,q,p)=>{"use strict";p.d(q,{Hw:()=>V,Ps:()=>X});var t=p(4650),e=p(3238),b=p(1281),I=p(6895),s=p(9646),C=p(2843),h=p(4128),P=p(727),d=p(8505),S=p(4004),w=p(262),O=p(8746),E=p(3099),R=p(5698),z=p(529),U=p(1481);const W=["*"];let K;function ie(Le){return function ee(){if(void 0===K&&(K=null,typeof window<"u")){const Le=window;void 0!==Le.trustedTypes&&(K=Le.trustedTypes.createPolicy("angular#components",{createHTML:$e=>$e}))}return K}()?.createHTML(Le)||Le}function ue(Le){return Error(`Unable to find icon with the name "${Le}"`)}function ne(Le){return Error(`The URL provided to MatIconRegistry was not trusted as a resource URL via Angular's DomSanitizer. Attempted URL was "${Le}".`)}function de(Le){return Error(`The literal provided to MatIconRegistry was not trusted as safe HTML by Angular's DomSanitizer. Attempted literal was "${Le}".`)}class ${constructor($e,We,Fe){this.url=$e,this.svgText=We,this.options=Fe}}let me=(()=>{class Le{constructor(We,Fe,De,ye){this._httpClient=We,this._sanitizer=Fe,this._errorHandler=ye,this._svgIconConfigs=new Map,this._iconSetConfigs=new Map,this._cachedIconsByUrl=new Map,this._inProgressUrlFetches=new Map,this._fontCssClassesByAlias=new Map,this._resolvers=[],this._defaultFontSetClass=["material-icons","mat-ligature-font"],this._document=De}addSvgIcon(We,Fe,De){return this.addSvgIconInNamespace("",We,Fe,De)}addSvgIconLiteral(We,Fe,De){return this.addSvgIconLiteralInNamespace("",We,Fe,De)}addSvgIconInNamespace(We,Fe,De,ye){return this._addSvgIconConfig(We,Fe,new $(De,null,ye))}addSvgIconResolver(We){return this._resolvers.push(We),this}addSvgIconLiteralInNamespace(We,Fe,De,ye){const ce=this._sanitizer.sanitize(t.q3G.HTML,De);if(!ce)throw de(De);const ve=ie(ce);return this._addSvgIconConfig(We,Fe,new $("",ve,ye))}addSvgIconSet(We,Fe){return this.addSvgIconSetInNamespace("",We,Fe)}addSvgIconSetLiteral(We,Fe){return this.addSvgIconSetLiteralInNamespace("",We,Fe)}addSvgIconSetInNamespace(We,Fe,De){return this._addSvgIconSetConfig(We,new $(Fe,null,De))}addSvgIconSetLiteralInNamespace(We,Fe,De){const ye=this._sanitizer.sanitize(t.q3G.HTML,Fe);if(!ye)throw de(Fe);const ce=ie(ye);return this._addSvgIconSetConfig(We,new $("",ce,De))}registerFontClassAlias(We,Fe=We){return this._fontCssClassesByAlias.set(We,Fe),this}classNameForFontAlias(We){return this._fontCssClassesByAlias.get(We)||We}setDefaultFontSetClass(...We){return this._defaultFontSetClass=We,this}getDefaultFontSetClass(){return this._defaultFontSetClass}getSvgIconFromUrl(We){const Fe=this._sanitizer.sanitize(t.q3G.RESOURCE_URL,We);if(!Fe)throw ne(We);const De=this._cachedIconsByUrl.get(Fe);return De?(0,s.of)(a(De)):this._loadSvgIconFromConfig(new $(We,null)).pipe((0,d.b)(ye=>this._cachedIconsByUrl.set(Fe,ye)),(0,S.U)(ye=>a(ye)))}getNamedSvgIcon(We,Fe=""){const De=u(Fe,We);let ye=this._svgIconConfigs.get(De);if(ye)return this._getSvgFromConfig(ye);if(ye=this._getIconConfigFromResolvers(Fe,We),ye)return this._svgIconConfigs.set(De,ye),this._getSvgFromConfig(ye);const ce=this._iconSetConfigs.get(Fe);return ce?this._getSvgFromIconSetConfigs(We,ce):(0,C._)(ue(De))}ngOnDestroy(){this._resolvers=[],this._svgIconConfigs.clear(),this._iconSetConfigs.clear(),this._cachedIconsByUrl.clear()}_getSvgFromConfig(We){return We.svgText?(0,s.of)(a(this._svgElementFromConfig(We))):this._loadSvgIconFromConfig(We).pipe((0,S.U)(Fe=>a(Fe)))}_getSvgFromIconSetConfigs(We,Fe){const De=this._extractIconWithNameFromAnySet(We,Fe);if(De)return(0,s.of)(De);const ye=Fe.filter(ce=>!ce.svgText).map(ce=>this._loadSvgIconSetFromConfig(ce).pipe((0,w.K)(ve=>{const je=`Loading icon set URL: ${this._sanitizer.sanitize(t.q3G.RESOURCE_URL,ce.url)} failed: ${ve.message}`;return this._errorHandler.handleError(new Error(je)),(0,s.of)(null)})));return(0,h.D)(ye).pipe((0,S.U)(()=>{const ce=this._extractIconWithNameFromAnySet(We,Fe);if(!ce)throw ue(We);return ce}))}_extractIconWithNameFromAnySet(We,Fe){for(let De=Fe.length-1;De>=0;De--){const ye=Fe[De];if(ye.svgText&&ye.svgText.toString().indexOf(We)>-1){const ce=this._svgElementFromConfig(ye),ve=this._extractSvgIconFromSet(ce,We,ye.options);if(ve)return ve}}return null}_loadSvgIconFromConfig(We){return this._fetchIcon(We).pipe((0,d.b)(Fe=>We.svgText=Fe),(0,S.U)(()=>this._svgElementFromConfig(We)))}_loadSvgIconSetFromConfig(We){return We.svgText?(0,s.of)(null):this._fetchIcon(We).pipe((0,d.b)(Fe=>We.svgText=Fe))}_extractSvgIconFromSet(We,Fe,De){const ye=We.querySelector(`[id="${Fe}"]`);if(!ye)return null;const ce=ye.cloneNode(!0);if(ce.removeAttribute("id"),"svg"===ce.nodeName.toLowerCase())return this._setSvgAttributes(ce,De);if("symbol"===ce.nodeName.toLowerCase())return this._setSvgAttributes(this._toSvgElement(ce),De);const ve=this._svgElementFromString(ie("<svg></svg>"));return ve.appendChild(ce),this._setSvgAttributes(ve,De)}_svgElementFromString(We){const Fe=this._document.createElement("DIV");Fe.innerHTML=We;const De=Fe.querySelector("svg");if(!De)throw Error("<svg> tag not found");return De}_toSvgElement(We){const Fe=this._svgElementFromString(ie("<svg></svg>")),De=We.attributes;for(let ye=0;ye<De.length;ye++){const{name:ce,value:ve}=De[ye];"id"!==ce&&Fe.setAttribute(ce,ve)}for(let ye=0;ye<We.childNodes.length;ye++)We.childNodes[ye].nodeType===this._document.ELEMENT_NODE&&Fe.appendChild(We.childNodes[ye].cloneNode(!0));return Fe}_setSvgAttributes(We,Fe){return We.setAttribute("fit",""),We.setAttribute("height","100%"),We.setAttribute("width","100%"),We.setAttribute("preserveAspectRatio","xMidYMid meet"),We.setAttribute("focusable","false"),Fe&&Fe.viewBox&&We.setAttribute("viewBox",Fe.viewBox),We}_fetchIcon(We){const{url:Fe,options:De}=We,ye=De?.withCredentials??!1;if(!this._httpClient)throw function le(){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==Fe)throw Error(`Cannot fetch icon from URL "${Fe}".`);const ce=this._sanitizer.sanitize(t.q3G.RESOURCE_URL,Fe);if(!ce)throw ne(Fe);const ve=this._inProgressUrlFetches.get(ce);if(ve)return ve;const oe=this._httpClient.get(ce,{responseType:"text",withCredentials:ye}).pipe((0,S.U)(je=>ie(je)),(0,O.x)(()=>this._inProgressUrlFetches.delete(ce)),(0,E.B)());return this._inProgressUrlFetches.set(ce,oe),oe}_addSvgIconConfig(We,Fe,De){return this._svgIconConfigs.set(u(We,Fe),De),this}_addSvgIconSetConfig(We,Fe){const De=this._iconSetConfigs.get(We);return De?De.push(Fe):this._iconSetConfigs.set(We,[Fe]),this}_svgElementFromConfig(We){if(!We.svgElement){const Fe=this._svgElementFromString(We.svgText);this._setSvgAttributes(Fe,We.options),We.svgElement=Fe}return We.svgElement}_getIconConfigFromResolvers(We,Fe){for(let De=0;De<this._resolvers.length;De++){const ye=this._resolvers[De](Fe,We);if(ye)return l(ye)?new $(ye.url,null,ye.options):new $(ye,null)}}}return Le.\u0275fac=function(We){return new(We||Le)(t.LFG(z.eN,8),t.LFG(U.H7),t.LFG(I.K0,8),t.LFG(t.qLn))},Le.\u0275prov=t.Yz7({token:Le,factory:Le.\u0275fac,providedIn:"root"}),Le})();function a(Le){return Le.cloneNode(!0)}function u(Le,$e){return Le+":"+$e}function l(Le){return!(!Le.url||!Le.options)}const y=(0,e.pj)(class{constructor(Le){this._elementRef=Le}}),T=new t.OlP("MAT_ICON_DEFAULT_OPTIONS"),L=new t.OlP("mat-icon-location",{providedIn:"root",factory:function m(){const Le=(0,t.f3M)(I.K0),$e=Le?Le.location:null;return{getPathname:()=>$e?$e.pathname+$e.search:""}}}),n=["clip-path","color-profile","src","cursor","fill","filter","marker","marker-start","marker-mid","marker-end","mask","stroke"],_=n.map(Le=>`[${Le}]`).join(", "),B=/^url\(['"]?#(.*?)['"]?\)$/;let V=(()=>{class Le extends y{get inline(){return this._inline}set inline(We){this._inline=(0,b.Ig)(We)}get svgIcon(){return this._svgIcon}set svgIcon(We){We!==this._svgIcon&&(We?this._updateSvgIcon(We):this._svgIcon&&this._clearSvgElement(),this._svgIcon=We)}get fontSet(){return this._fontSet}set fontSet(We){const Fe=this._cleanupFontValue(We);Fe!==this._fontSet&&(this._fontSet=Fe,this._updateFontIconClasses())}get fontIcon(){return this._fontIcon}set fontIcon(We){const Fe=this._cleanupFontValue(We);Fe!==this._fontIcon&&(this._fontIcon=Fe,this._updateFontIconClasses())}constructor(We,Fe,De,ye,ce,ve){super(We),this._iconRegistry=Fe,this._location=ye,this._errorHandler=ce,this._inline=!1,this._previousFontSetClass=[],this._currentIconFetch=P.w0.EMPTY,ve&&(ve.color&&(this.color=this.defaultColor=ve.color),ve.fontSet&&(this.fontSet=ve.fontSet)),De||We.nativeElement.setAttribute("aria-hidden","true")}_splitIconName(We){if(!We)return["",""];const Fe=We.split(":");switch(Fe.length){case 1:return["",Fe[0]];case 2:return Fe;default:throw Error(`Invalid icon name: "${We}"`)}}ngOnInit(){this._updateFontIconClasses()}ngAfterViewChecked(){const We=this._elementsWithExternalReferences;if(We&&We.size){const Fe=this._location.getPathname();Fe!==this._previousPath&&(this._previousPath=Fe,this._prependPathToReferences(Fe))}}ngOnDestroy(){this._currentIconFetch.unsubscribe(),this._elementsWithExternalReferences&&this._elementsWithExternalReferences.clear()}_usingFontIcon(){return!this.svgIcon}_setSvgElement(We){this._clearSvgElement();const Fe=this._location.getPathname();this._previousPath=Fe,this._cacheChildrenWithExternalReferences(We),this._prependPathToReferences(Fe),this._elementRef.nativeElement.appendChild(We)}_clearSvgElement(){const We=this._elementRef.nativeElement;let Fe=We.childNodes.length;for(this._elementsWithExternalReferences&&this._elementsWithExternalReferences.clear();Fe--;){const De=We.childNodes[Fe];(1!==De.nodeType||"svg"===De.nodeName.toLowerCase())&&De.remove()}}_updateFontIconClasses(){if(!this._usingFontIcon())return;const We=this._elementRef.nativeElement,Fe=(this.fontSet?this._iconRegistry.classNameForFontAlias(this.fontSet).split(/ +/):this._iconRegistry.getDefaultFontSetClass()).filter(De=>De.length>0);this._previousFontSetClass.forEach(De=>We.classList.remove(De)),Fe.forEach(De=>We.classList.add(De)),this._previousFontSetClass=Fe,this.fontIcon!==this._previousFontIconClass&&!Fe.includes("mat-ligature-font")&&(this._previousFontIconClass&&We.classList.remove(this._previousFontIconClass),this.fontIcon&&We.classList.add(this.fontIcon),this._previousFontIconClass=this.fontIcon)}_cleanupFontValue(We){return"string"==typeof We?We.trim().split(" ")[0]:We}_prependPathToReferences(We){const Fe=this._elementsWithExternalReferences;Fe&&Fe.forEach((De,ye)=>{De.forEach(ce=>{ye.setAttribute(ce.name,`url('${We}#${ce.value}')`)})})}_cacheChildrenWithExternalReferences(We){const Fe=We.querySelectorAll(_),De=this._elementsWithExternalReferences=this._elementsWithExternalReferences||new Map;for(let ye=0;ye<Fe.length;ye++)n.forEach(ce=>{const ve=Fe[ye],oe=ve.getAttribute(ce),je=oe?oe.match(B):null;if(je){let Ae=De.get(ve);Ae||(Ae=[],De.set(ve,Ae)),Ae.push({name:ce,value:je[1]})}})}_updateSvgIcon(We){if(this._svgNamespace=null,this._svgName=null,this._currentIconFetch.unsubscribe(),We){const[Fe,De]=this._splitIconName(We);Fe&&(this._svgNamespace=Fe),De&&(this._svgName=De),this._currentIconFetch=this._iconRegistry.getNamedSvgIcon(De,Fe).pipe((0,R.q)(1)).subscribe(ye=>this._setSvgElement(ye),ye=>{this._errorHandler.handleError(new Error(`Error retrieving icon ${Fe}:${De}! ${ye.message}`))})}}}return Le.\u0275fac=function(We){return new(We||Le)(t.Y36(t.SBq),t.Y36(me),t.$8M("aria-hidden"),t.Y36(L),t.Y36(t.qLn),t.Y36(T,8))},Le.\u0275cmp=t.Xpm({type:Le,selectors:[["mat-icon"]],hostAttrs:["role","img",1,"mat-icon","notranslate"],hostVars:8,hostBindings:function(We,Fe){2&We&&(t.uIk("data-mat-icon-type",Fe._usingFontIcon()?"font":"svg")("data-mat-icon-name",Fe._svgName||Fe.fontIcon)("data-mat-icon-namespace",Fe._svgNamespace||Fe.fontSet)("fontIcon",Fe._usingFontIcon()?Fe.fontIcon:null),t.ekj("mat-icon-inline",Fe.inline)("mat-icon-no-color","primary"!==Fe.color&&"accent"!==Fe.color&&"warn"!==Fe.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(We,Fe){1&We&&(t.F$t(),t.Hsn(0))},styles:[".mat-icon{-webkit-user-select:none;user-select:none;background-repeat:no-repeat;display:inline-block;fill:currentColor;height:24px;width:24px;overflow:hidden}.mat-icon.mat-icon-inline{font-size:inherit;height:inherit;line-height:inherit;width:inherit}.mat-icon.mat-ligature-font[fontIcon]::before{content:attr(fontIcon)}[dir=rtl] .mat-icon-rtl-mirror{transform:scale(-1, 1)}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon{display:block}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon-button .mat-icon,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon-button .mat-icon{margin:auto}"],encapsulation:2,changeDetection:0}),Le})(),X=(()=>{class Le{}return Le.\u0275fac=function(We){return new(We||Le)},Le.\u0275mod=t.oAB({type:Le}),Le.\u0275inj=t.cJS({imports:[e.BQ,e.BQ]}),Le})()},4144:(Ve,q,p)=>{"use strict";p.d(q,{Jk:()=>z,Nt:()=>ee,c:()=>ie});var t=p(1281),e=p(3353),b=p(4650),I=p(515),s=p(7579);const C=(0,e.i$)({passive:!0});let h=(()=>{class ue{constructor(ne,de){this._platform=ne,this._ngZone=de,this._monitoredElements=new Map}monitor(ne){if(!this._platform.isBrowser)return I.E;const de=(0,t.fI)(ne),$=this._monitoredElements.get(de);if($)return $.subject;const me=new s.x,A="cdk-text-field-autofilled",i=a=>{"cdk-text-field-autofill-start"!==a.animationName||de.classList.contains(A)?"cdk-text-field-autofill-end"===a.animationName&&de.classList.contains(A)&&(de.classList.remove(A),this._ngZone.run(()=>me.next({target:a.target,isAutofilled:!1}))):(de.classList.add(A),this._ngZone.run(()=>me.next({target:a.target,isAutofilled:!0})))};return this._ngZone.runOutsideAngular(()=>{de.addEventListener("animationstart",i,C),de.classList.add("cdk-text-field-autofill-monitored")}),this._monitoredElements.set(de,{subject:me,unlisten:()=>{de.removeEventListener("animationstart",i,C)}}),me}stopMonitoring(ne){const de=(0,t.fI)(ne),$=this._monitoredElements.get(de);$&&($.unlisten(),$.subject.complete(),de.classList.remove("cdk-text-field-autofill-monitored"),de.classList.remove("cdk-text-field-autofilled"),this._monitoredElements.delete(de))}ngOnDestroy(){this._monitoredElements.forEach((ne,de)=>this.stopMonitoring(de))}}return ue.\u0275fac=function(ne){return new(ne||ue)(b.LFG(e.t4),b.LFG(b.R0b))},ue.\u0275prov=b.Yz7({token:ue,factory:ue.\u0275fac,providedIn:"root"}),ue})(),S=(()=>{class ue{}return ue.\u0275fac=function(ne){return new(ne||ue)},ue.\u0275mod=b.oAB({type:ue}),ue.\u0275inj=b.cJS({}),ue})();var w=p(4006),O=p(3238),E=p(9549);const z=new b.OlP("MAT_INPUT_VALUE_ACCESSOR"),U=["button","checkbox","file","hidden","image","radio","range","reset","submit"];let W=0;const K=(0,O.FD)(class{constructor(ue,le,ne,de){this._defaultErrorStateMatcher=ue,this._parentForm=le,this._parentFormGroup=ne,this.ngControl=de,this.stateChanges=new s.x}});let ee=(()=>{class ue extends K{get disabled(){return this._disabled}set disabled(ne){this._disabled=(0,t.Ig)(ne),this.focused&&(this.focused=!1,this.stateChanges.next())}get id(){return this._id}set id(ne){this._id=ne||this._uid}get required(){return this._required??this.ngControl?.control?.hasValidator(w.kI.required)??!1}set required(ne){this._required=(0,t.Ig)(ne)}get type(){return this._type}set type(ne){this._type=ne||"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(ne){ne!==this.value&&(this._inputValueAccessor.value=ne,this.stateChanges.next())}get readonly(){return this._readonly}set readonly(ne){this._readonly=(0,t.Ig)(ne)}constructor(ne,de,$,me,A,i,a,u,l,y){super(i,me,A,$),this._elementRef=ne,this._platform=de,this._autofillMonitor=u,this._formField=y,this._uid="mat-input-"+W++,this.focused=!1,this.stateChanges=new s.x,this.controlType="mat-input",this.autofilled=!1,this._disabled=!1,this._type="text",this._readonly=!1,this._neverEmptyInputTypes=["date","datetime","datetime-local","month","time","week"].filter(m=>(0,e.qK)().has(m)),this._iOSKeyupListener=m=>{const n=m.target;!n.value&&0===n.selectionStart&&0===n.selectionEnd&&(n.setSelectionRange(1,1),n.setSelectionRange(0,0))};const T=this._elementRef.nativeElement,L=T.nodeName.toLowerCase();this._inputValueAccessor=a||T,this._previousNativeValue=this.value,this.id=this.id,de.IOS&&l.runOutsideAngular(()=>{ne.nativeElement.addEventListener("keyup",this._iOSKeyupListener)}),this._isServer=!this._platform.isBrowser,this._isNativeSelect="select"===L,this._isTextarea="textarea"===L,this._isInFormField=!!y,this._isNativeSelect&&(this.controlType=T.multiple?"mat-native-select-multiple":"mat-native-select")}ngAfterViewInit(){this._platform.isBrowser&&this._autofillMonitor.monitor(this._elementRef.nativeElement).subscribe(ne=>{this.autofilled=ne.isAutofilled,this.stateChanges.next()})}ngOnChanges(){this.stateChanges.next()}ngOnDestroy(){this.stateChanges.complete(),this._platform.isBrowser&&this._autofillMonitor.stopMonitoring(this._elementRef.nativeElement),this._platform.IOS&&this._elementRef.nativeElement.removeEventListener("keyup",this._iOSKeyupListener)}ngDoCheck(){this.ngControl&&(this.updateErrorState(),null!==this.ngControl.disabled&&this.ngControl.disabled!==this.disabled&&(this.disabled=this.ngControl.disabled,this.stateChanges.next())),this._dirtyCheckNativeValue(),this._dirtyCheckPlaceholder()}focus(ne){this._elementRef.nativeElement.focus(ne)}_focusChanged(ne){ne!==this.focused&&(this.focused=ne,this.stateChanges.next())}_onInput(){}_dirtyCheckNativeValue(){const ne=this._elementRef.nativeElement.value;this._previousNativeValue!==ne&&(this._previousNativeValue=ne,this.stateChanges.next())}_dirtyCheckPlaceholder(){const ne=this._getPlaceholder();if(ne!==this._previousPlaceholder){const de=this._elementRef.nativeElement;this._previousPlaceholder=ne,ne?de.setAttribute("placeholder",ne):de.removeAttribute("placeholder")}}_getPlaceholder(){return this.placeholder||null}_validateType(){U.indexOf(this._type)}_isNeverEmpty(){return this._neverEmptyInputTypes.indexOf(this._type)>-1}_isBadInput(){let ne=this._elementRef.nativeElement.validity;return ne&&ne.badInput}get empty(){return!(this._isNeverEmpty()||this._elementRef.nativeElement.value||this._isBadInput()||this.autofilled)}get shouldLabelFloat(){if(this._isNativeSelect){const ne=this._elementRef.nativeElement,de=ne.options[0];return this.focused||ne.multiple||!this.empty||!!(ne.selectedIndex>-1&&de&&de.label)}return this.focused||!this.empty}setDescribedByIds(ne){ne.length?this._elementRef.nativeElement.setAttribute("aria-describedby",ne.join(" ")):this._elementRef.nativeElement.removeAttribute("aria-describedby")}onContainerClick(){this.focused||this.focus()}_isInlineSelect(){const ne=this._elementRef.nativeElement;return this._isNativeSelect&&(ne.multiple||ne.size>1)}}return ue.\u0275fac=function(ne){return new(ne||ue)(b.Y36(b.SBq),b.Y36(e.t4),b.Y36(w.a5,10),b.Y36(w.F,8),b.Y36(w.sg,8),b.Y36(O.rD),b.Y36(z,10),b.Y36(h),b.Y36(b.R0b),b.Y36(E.G_,8))},ue.\u0275dir=b.lG2({type:ue,selectors:[["input","matInput",""],["textarea","matInput",""],["select","matNativeControl",""],["input","matNativeControl",""],["textarea","matNativeControl",""]],hostAttrs:[1,"mat-mdc-input-element"],hostVars:18,hostBindings:function(ne,de){1&ne&&b.NdJ("focus",function(){return de._focusChanged(!0)})("blur",function(){return de._focusChanged(!1)})("input",function(){return de._onInput()}),2&ne&&(b.Ikx("id",de.id)("disabled",de.disabled)("required",de.required),b.uIk("name",de.name||null)("readonly",de.readonly&&!de._isNativeSelect||null)("aria-invalid",de.empty&&de.required?null:de.errorState)("aria-required",de.required)("id",de.id),b.ekj("mat-input-server",de._isServer)("mat-mdc-form-field-textarea-control",de._isInFormField&&de._isTextarea)("mat-mdc-form-field-input-control",de._isInFormField)("mdc-text-field__input",de._isInFormField)("mat-mdc-native-select-inline",de._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:[b._Bn([{provide:E.Eo,useExisting:ue}]),b.qOj,b.TTD]}),ue})(),ie=(()=>{class ue{}return ue.\u0275fac=function(ne){return new(ne||ue)},ue.\u0275mod=b.oAB({type:ue}),ue.\u0275inj=b.cJS({imports:[O.BQ,E.lN,E.lN,S,O.BQ]}),ue})()},6338:(Ve,q,p)=>{"use strict";p.d(q,{Tg:()=>Ce,i$:()=>he,ie:()=>Et});var t=p(4650),e=p(1281),b=p(3353),I=p(3238),s=p(727),C=p(6451),P=(p(7579),p(9643)),d=p(6895),S=p(4850);p(4761),p(5017),p(9521),p(4006),p(2722);const U=["*"],K=["unscopedContent"],ee=["text"],ie=[[["","matListItemAvatar",""],["","matListItemIcon",""]],[["","matListItemTitle",""]],[["","matListItemLine",""]],"*",[["","matListItemMeta",""]],[["mat-divider"]]],ue=["[matListItemAvatar],[matListItemIcon]","[matListItemTitle]","[matListItemLine]","*","[matListItemMeta]","mat-divider"],V=new t.OlP("ListOption");let X=(()=>{class pt{constructor(wt){this._elementRef=wt}}return pt.\u0275fac=function(wt){return new(wt||pt)(t.Y36(t.SBq))},pt.\u0275dir=t.lG2({type:pt,selectors:[["","matListItemTitle",""]],hostAttrs:[1,"mat-mdc-list-item-title","mdc-list-item__primary-text"]}),pt})(),Le=(()=>{class pt{constructor(wt){this._elementRef=wt}}return pt.\u0275fac=function(wt){return new(wt||pt)(t.Y36(t.SBq))},pt.\u0275dir=t.lG2({type:pt,selectors:[["","matListItemLine",""]],hostAttrs:[1,"mat-mdc-list-item-line","mdc-list-item__secondary-text"]}),pt})(),$e=(()=>{class pt{}return pt.\u0275fac=function(wt){return new(wt||pt)},pt.\u0275dir=t.lG2({type:pt,selectors:[["","matListItemMeta",""]],hostAttrs:[1,"mat-mdc-list-item-meta","mdc-list-item__end"]}),pt})(),We=(()=>{class pt{constructor(wt){this._listOption=wt}_isAlignedAtStart(){return!this._listOption||"after"===this._listOption?._getTogglePosition()}}return pt.\u0275fac=function(wt){return new(wt||pt)(t.Y36(V,8))},pt.\u0275dir=t.lG2({type:pt,hostVars:4,hostBindings:function(wt,ke){2&wt&&t.ekj("mdc-list-item__start",ke._isAlignedAtStart())("mdc-list-item__end",!ke._isAlignedAtStart())}}),pt})(),Fe=(()=>{class pt extends We{}return pt.\u0275fac=function(){let ot;return function(ke){return(ot||(ot=t.n5z(pt)))(ke||pt)}}(),pt.\u0275dir=t.lG2({type:pt,selectors:[["","matListItemAvatar",""]],hostAttrs:[1,"mat-mdc-list-item-avatar"],features:[t.qOj]}),pt})(),De=(()=>{class pt extends We{}return pt.\u0275fac=function(){let ot;return function(ke){return(ot||(ot=t.n5z(pt)))(ke||pt)}}(),pt.\u0275dir=t.lG2({type:pt,selectors:[["","matListItemIcon",""]],hostAttrs:[1,"mat-mdc-list-item-icon"],features:[t.qOj]}),pt})();const ye=new t.OlP("MAT_LIST_CONFIG");let ce=(()=>{class pt{constructor(){this._isNonInteractive=!0,this._disableRipple=!1,this._disabled=!1,this._defaultOptions=(0,t.f3M)(ye,{optional:!0})}get disableRipple(){return this._disableRipple}set disableRipple(wt){this._disableRipple=(0,e.Ig)(wt)}get disabled(){return this._disabled}set disabled(wt){this._disabled=(0,e.Ig)(wt)}}return pt.\u0275fac=function(wt){return new(wt||pt)},pt.\u0275dir=t.lG2({type:pt,hostVars:1,hostBindings:function(wt,ke){2&wt&&t.uIk("aria-disabled",ke.disabled)},inputs:{disableRipple:"disableRipple",disabled:"disabled"}}),pt})(),ve=(()=>{class pt{set lines(wt){this._explicitLines=(0,e.su)(wt,null),this._updateItemLines(!1)}get disableRipple(){return this.disabled||this._disableRipple||this._noopAnimations||!!this._listBase?.disableRipple}set disableRipple(wt){this._disableRipple=(0,e.Ig)(wt)}get disabled(){return this._disabled||!!this._listBase?.disabled}set disabled(wt){this._disabled=(0,e.Ig)(wt)}get rippleDisabled(){return this.disableRipple||!!this.rippleConfig.disabled}constructor(wt,ke,Ke,xt,Y,Re){this._elementRef=wt,this._ngZone=ke,this._listBase=Ke,this._platform=xt,this._explicitLines=null,this._disableRipple=!1,this._disabled=!1,this._subscriptions=new s.w0,this._rippleRenderer=null,this._hasUnscopedTextContent=!1,this.rippleConfig=Y||{},this._hostElement=this._elementRef.nativeElement,this._noopAnimations="NoopAnimations"===Re,Ke&&!Ke._isNonInteractive&&this._initInteractiveListItem(),"button"===this._hostElement.nodeName.toLowerCase()&&!this._hostElement.hasAttribute("type")&&this._hostElement.setAttribute("type","button")}ngAfterViewInit(){this._monitorProjectedLinesAndTitle(),this._updateItemLines(!0)}ngOnDestroy(){this._subscriptions.unsubscribe(),null!==this._rippleRenderer&&this._rippleRenderer._removeTriggerEvents()}_hasIconOrAvatar(){return!(!this._avatars.length&&!this._icons.length)}_initInteractiveListItem(){this._hostElement.classList.add("mat-mdc-list-item-interactive"),this._rippleRenderer=new I.IR(this,this._ngZone,this._hostElement,this._platform),this._rippleRenderer.setupTriggerEvents(this._hostElement)}_monitorProjectedLinesAndTitle(){this._ngZone.runOutsideAngular(()=>{this._subscriptions.add((0,C.T)(this._lines.changes,this._titles.changes).subscribe(()=>this._updateItemLines(!1)))})}_updateItemLines(wt){if(!this._lines||!this._titles||!this._unscopedContent)return;wt&&this._checkDomForUnscopedTextContent();const ke=this._explicitLines??this._inferLinesFromContent(),Ke=this._unscopedContent.nativeElement;if(this._hostElement.classList.toggle("mat-mdc-list-item-single-line",ke<=1),this._hostElement.classList.toggle("mdc-list-item--with-one-line",ke<=1),this._hostElement.classList.toggle("mdc-list-item--with-two-lines",2===ke),this._hostElement.classList.toggle("mdc-list-item--with-three-lines",3===ke),this._hasUnscopedTextContent){const xt=0===this._titles.length&&1===ke;Ke.classList.toggle("mdc-list-item__primary-text",xt),Ke.classList.toggle("mdc-list-item__secondary-text",!xt)}else Ke.classList.remove("mdc-list-item__primary-text"),Ke.classList.remove("mdc-list-item__secondary-text")}_inferLinesFromContent(){let wt=this._titles.length+this._lines.length;return this._hasUnscopedTextContent&&(wt+=1),wt}_checkDomForUnscopedTextContent(){this._hasUnscopedTextContent=Array.from(this._unscopedContent.nativeElement.childNodes).filter(wt=>wt.nodeType!==wt.COMMENT_NODE).some(wt=>!(!wt.textContent||!wt.textContent.trim()))}}return pt.\u0275fac=function(wt){return new(wt||pt)(t.Y36(t.SBq),t.Y36(t.R0b),t.Y36(ce,8),t.Y36(b.t4),t.Y36(I.Y2,8),t.Y36(t.QbO,8))},pt.\u0275dir=t.lG2({type:pt,contentQueries:function(wt,ke,Ke){if(1&wt&&(t.Suo(Ke,Fe,4),t.Suo(Ke,De,4)),2&wt){let xt;t.iGM(xt=t.CRH())&&(ke._avatars=xt),t.iGM(xt=t.CRH())&&(ke._icons=xt)}},hostVars:3,hostBindings:function(wt,ke){2&wt&&(t.uIk("aria-disabled",ke.disabled),t.ekj("mdc-list-item--disabled",ke.disabled))},inputs:{lines:"lines",disableRipple:"disableRipple",disabled:"disabled"}}),pt})(),he=(()=>{class pt extends ce{}return pt.\u0275fac=function(){let ot;return function(ke){return(ot||(ot=t.n5z(pt)))(ke||pt)}}(),pt.\u0275cmp=t.Xpm({type:pt,selectors:[["mat-list"]],hostAttrs:[1,"mat-mdc-list","mat-mdc-list-base","mdc-list"],exportAs:["matList"],features:[t._Bn([{provide:ce,useExisting:pt}]),t.qOj],ngContentSelectors:U,decls:1,vars:0,template:function(wt,ke){1&wt&&(t.F$t(),t.Hsn(0))},styles:['.mdc-list-item--with-leading-avatar .mdc-list-item__start{width:40px;height:40px}.mdc-list-item--with-leading-icon .mdc-list-item__start{width:24px;height:24px}.mdc-list-item--with-leading-thumbnail .mdc-list-item__start{width:40px;height:40px}.mdc-list-item--with-leading-image .mdc-list-item__start{width:56px;height:56px}.mdc-list-item--with-leading-video .mdc-list-item__start{width:100px;height:56px}.mdc-list-item--with-leading-checkbox .mdc-list-item__start{width:40px;height:40px}.mdc-list-item--with-leading-radio .mdc-list-item__start{width:40px;height:40px}.mdc-list-item--with-leading-switch .mdc-list-item__start{width:36px;height:20px}.mdc-list-item--with-trailing-icon .mdc-list-item__end{width:24px;height:24px}.mdc-list-item--with-trailing-checkbox .mdc-list-item__end{width:40px;height:40px}.mdc-list-item--with-trailing-radio .mdc-list-item__end{width:40px;height:40px}.mdc-list-item--with-trailing-switch .mdc-list-item__end{width:36px;height:20px}.mdc-list-divider{height:1px}@media screen and (forced-colors: active),(-ms-high-contrast: active){.mdc-list-divider::after{content:"";display:block;border-bottom-width:1px;border-bottom-style:solid}}.mdc-list{margin:0;padding:8px 0;list-style-type:none}.mdc-list:focus{outline:none}.mdc-list-item__wrapper{display:block}.mdc-list-item{display:flex;position:relative;align-items:center;justify-content:flex-start;overflow:hidden;padding:0;align-items:stretch;cursor:pointer}.mdc-list-item:focus{outline:none}.mdc-list-item.mdc-list-item--with-one-line{height:48px}.mdc-list-item.mdc-list-item--with-two-lines{height:64px}.mdc-list-item.mdc-list-item--with-three-lines{height:88px}.mdc-list-item.mdc-list-item--with-one-line .mdc-list-item__start{align-self:center;margin-top:0}.mdc-list-item.mdc-list-item--with-two-lines .mdc-list-item__start{align-self:flex-start;margin-top:16px}.mdc-list-item.mdc-list-item--with-three-lines .mdc-list-item__start{align-self:flex-start;margin-top:16px}.mdc-list-item.mdc-list-item--with-one-line .mdc-list-item__end{align-self:center;margin-top:0}.mdc-list-item.mdc-list-item--with-two-lines .mdc-list-item__end{align-self:center;margin-top:0}.mdc-list-item.mdc-list-item--with-three-lines .mdc-list-item__end{align-self:flex-start;margin-top:16px}.mdc-list-item.mdc-list-item--disabled,.mdc-list-item.mdc-list-item--non-interactive{cursor:auto}.mdc-list-item:not(.mdc-list-item--selected):focus::before,.mdc-list-item.mdc-ripple-upgraded--background-focused::before{position:absolute;box-sizing:border-box;width:100%;height:100%;top:0;left:0;border:1px solid rgba(0,0,0,0);border-radius:inherit;content:"";pointer-events:none}@media screen and (forced-colors: active){.mdc-list-item:not(.mdc-list-item--selected):focus::before,.mdc-list-item.mdc-ripple-upgraded--background-focused::before{border-color:CanvasText}}.mdc-list-item.mdc-list-item--selected::before{position:absolute;box-sizing:border-box;width:100%;height:100%;top:0;left:0;border:3px double rgba(0,0,0,0);border-radius:inherit;content:"";pointer-events:none}@media screen and (forced-colors: active){.mdc-list-item.mdc-list-item--selected::before{border-color:CanvasText}}.mdc-list-item.mdc-list-item--selected:focus::before{position:absolute;box-sizing:border-box;width:100%;height:100%;top:0;left:0;border:3px solid rgba(0,0,0,0);border-radius:inherit;content:"";pointer-events:none}@media screen and (forced-colors: active){.mdc-list-item.mdc-list-item--selected:focus::before{border-color:CanvasText}}a.mdc-list-item{color:inherit;text-decoration:none}.mdc-list-item__start{fill:currentColor;flex-shrink:0;pointer-events:none}.mdc-list-item__end{flex-shrink:0;pointer-events:none}.mdc-list-item__content{text-overflow:ellipsis;white-space:nowrap;overflow:hidden;align-self:center;flex:1;pointer-events:none}.mdc-list-item--with-two-lines .mdc-list-item__content,.mdc-list-item--with-three-lines .mdc-list-item__content{align-self:stretch}.mdc-list-item__content[for]{pointer-events:none}.mdc-list-item__primary-text{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.mdc-list-item--with-two-lines .mdc-list-item__primary-text,.mdc-list-item--with-three-lines .mdc-list-item__primary-text{display:block;margin-top:0;line-height:normal;margin-bottom:-20px}.mdc-list-item--with-two-lines .mdc-list-item__primary-text::before,.mdc-list-item--with-three-lines .mdc-list-item__primary-text::before{display:inline-block;width:0;height:28px;content:"";vertical-align:0}.mdc-list-item--with-two-lines .mdc-list-item__primary-text::after,.mdc-list-item--with-three-lines .mdc-list-item__primary-text::after{display:inline-block;width:0;height:20px;content:"";vertical-align:-20px}.mdc-list-item__secondary-text{text-overflow:ellipsis;white-space:nowrap;overflow:hidden;display:block;margin-top:0;line-height:normal}.mdc-list-item__secondary-text::before{display:inline-block;width:0;height:20px;content:"";vertical-align:0}.mdc-list-item--with-three-lines .mdc-list-item__secondary-text{white-space:normal;line-height:20px}.mdc-list-item--with-overline .mdc-list-item__secondary-text{white-space:nowrap;line-height:auto}.mdc-list-item__overline-text{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.mdc-list-item--with-two-lines .mdc-list-item__overline-text{display:block;margin-top:0;line-height:normal;margin-bottom:-20px}.mdc-list-item--with-two-lines .mdc-list-item__overline-text::before{display:inline-block;width:0;height:24px;content:"";vertical-align:0}.mdc-list-item--with-two-lines .mdc-list-item__overline-text::after{display:inline-block;width:0;height:20px;content:"";vertical-align:-20px}.mdc-list-item--with-three-lines .mdc-list-item__overline-text{display:block;margin-top:0;line-height:normal;margin-bottom:-20px}.mdc-list-item--with-three-lines .mdc-list-item__overline-text::before{display:inline-block;width:0;height:28px;content:"";vertical-align:0}.mdc-list-item--with-three-lines .mdc-list-item__overline-text::after{display:inline-block;width:0;height:20px;content:"";vertical-align:-20px}.mdc-list-item--with-leading-avatar.mdc-list-item{padding-left:0;padding-right:auto}[dir=rtl] .mdc-list-item--with-leading-avatar.mdc-list-item,.mdc-list-item--with-leading-avatar.mdc-list-item[dir=rtl]{padding-left:auto;padding-right:0}.mdc-list-item--with-leading-avatar .mdc-list-item__start{margin-left:16px;margin-right:16px}[dir=rtl] .mdc-list-item--with-leading-avatar .mdc-list-item__start,.mdc-list-item--with-leading-avatar .mdc-list-item__start[dir=rtl]{margin-left:16px;margin-right:16px}.mdc-list-item--with-leading-avatar.mdc-list-item--with-two-lines .mdc-list-item__primary-text{display:block;margin-top:0;line-height:normal;margin-bottom:-20px}.mdc-list-item--with-leading-avatar.mdc-list-item--with-two-lines .mdc-list-item__primary-text::before{display:inline-block;width:0;height:32px;content:"";vertical-align:0}.mdc-list-item--with-leading-avatar.mdc-list-item--with-two-lines .mdc-list-item__primary-text::after{display:inline-block;width:0;height:20px;content:"";vertical-align:-20px}.mdc-list-item--with-leading-avatar.mdc-list-item--with-two-lines .mdc-list-item__overline-text{display:block;margin-top:0;line-height:normal;margin-bottom:-20px}.mdc-list-item--with-leading-avatar.mdc-list-item--with-two-lines .mdc-list-item__overline-text::before{display:inline-block;width:0;height:28px;content:"";vertical-align:0}.mdc-list-item--with-leading-avatar.mdc-list-item--with-two-lines .mdc-list-item__overline-text::after{display:inline-block;width:0;height:20px;content:"";vertical-align:-20px}.mdc-list-item--with-leading-avatar.mdc-list-item--with-two-lines.mdc-list-item--with-trailing-meta .mdc-list-item__end{display:block;margin-top:0;line-height:normal}.mdc-list-item--with-leading-avatar.mdc-list-item--with-two-lines.mdc-list-item--with-trailing-meta .mdc-list-item__end::before{display:inline-block;width:0;height:32px;content:"";vertical-align:0}.mdc-list-item--with-leading-avatar.mdc-list-item--with-one-line{height:56px}.mdc-list-item--with-leading-avatar.mdc-list-item--with-two-lines{height:72px}.mdc-list-item--with-leading-avatar .mdc-list-item__start{border-radius:50%}.mdc-list-item--with-leading-icon.mdc-list-item{padding-left:0;padding-right:auto}[dir=rtl] .mdc-list-item--with-leading-icon.mdc-list-item,.mdc-list-item--with-leading-icon.mdc-list-item[dir=rtl]{padding-left:auto;padding-right:0}.mdc-list-item--with-leading-icon .mdc-list-item__start{margin-left:16px;margin-right:32px}[dir=rtl] .mdc-list-item--with-leading-icon .mdc-list-item__start,.mdc-list-item--with-leading-icon .mdc-list-item__start[dir=rtl]{margin-left:32px;margin-right:16px}.mdc-list-item--with-leading-icon.mdc-list-item--with-two-lines .mdc-list-item__primary-text{display:block;margin-top:0;line-height:normal;margin-bottom:-20px}.mdc-list-item--with-leading-icon.mdc-list-item--with-two-lines .mdc-list-item__primary-text::before{display:inline-block;width:0;height:32px;content:"";vertical-align:0}.mdc-list-item--with-leading-icon.mdc-list-item--with-two-lines .mdc-list-item__primary-text::after{display:inline-block;width:0;height:20px;content:"";vertical-align:-20px}.mdc-list-item--with-leading-icon.mdc-list-item--with-two-lines .mdc-list-item__overline-text{display:block;margin-top:0;line-height:normal;margin-bottom:-20px}.mdc-list-item--with-leading-icon.mdc-list-item--with-two-lines .mdc-list-item__overline-text::before{display:inline-block;width:0;height:28px;content:"";vertical-align:0}.mdc-list-item--with-leading-icon.mdc-list-item--with-two-lines .mdc-list-item__overline-text::after{display:inline-block;width:0;height:20px;content:"";vertical-align:-20px}.mdc-list-item--with-leading-icon.mdc-list-item--with-two-lines.mdc-list-item--with-trailing-meta .mdc-list-item__end{display:block;margin-top:0;line-height:normal}.mdc-list-item--with-leading-icon.mdc-list-item--with-two-lines.mdc-list-item--with-trailing-meta .mdc-list-item__end::before{display:inline-block;width:0;height:32px;content:"";vertical-align:0}.mdc-list-item--with-leading-icon.mdc-list-item--with-one-line{height:56px}.mdc-list-item--with-leading-icon.mdc-list-item--with-two-lines{height:72px}.mdc-list-item--with-leading-thumbnail.mdc-list-item{padding-left:0;padding-right:auto}[dir=rtl] .mdc-list-item--with-leading-thumbnail.mdc-list-item,.mdc-list-item--with-leading-thumbnail.mdc-list-item[dir=rtl]{padding-left:auto;padding-right:0}.mdc-list-item--with-leading-thumbnail .mdc-list-item__start{margin-left:16px;margin-right:16px}[dir=rtl] .mdc-list-item--with-leading-thumbnail .mdc-list-item__start,.mdc-list-item--with-leading-thumbnail .mdc-list-item__start[dir=rtl]{margin-left:16px;margin-right:16px}.mdc-list-item--with-leading-thumbnail.mdc-list-item--with-two-lines .mdc-list-item__primary-text{display:block;margin-top:0;line-height:normal;margin-bottom:-20px}.mdc-list-item--with-leading-thumbnail.mdc-list-item--with-two-lines .mdc-list-item__primary-text::before{display:inline-block;width:0;height:32px;content:"";vertical-align:0}.mdc-list-item--with-leading-thumbnail.mdc-list-item--with-two-lines .mdc-list-item__primary-text::after{display:inline-block;width:0;height:20px;content:"";vertical-align:-20px}.mdc-list-item--with-leading-thumbnail.mdc-list-item--with-two-lines .mdc-list-item__overline-text{display:block;margin-top:0;line-height:normal;margin-bottom:-20px}.mdc-list-item--with-leading-thumbnail.mdc-list-item--with-two-lines .mdc-list-item__overline-text::before{display:inline-block;width:0;height:28px;content:"";vertical-align:0}.mdc-list-item--with-leading-thumbnail.mdc-list-item--with-two-lines .mdc-list-item__overline-text::after{display:inline-block;width:0;height:20px;content:"";vertical-align:-20px}.mdc-list-item--with-leading-thumbnail.mdc-list-item--with-two-lines.mdc-list-item--with-trailing-meta .mdc-list-item__end{display:block;margin-top:0;line-height:normal}.mdc-list-item--with-leading-thumbnail.mdc-list-item--with-two-lines.mdc-list-item--with-trailing-meta .mdc-list-item__end::before{display:inline-block;width:0;height:32px;content:"";vertical-align:0}.mdc-list-item--with-leading-thumbnail.mdc-list-item--with-one-line{height:56px}.mdc-list-item--with-leading-thumbnail.mdc-list-item--with-two-lines{height:72px}.mdc-list-item--with-leading-image.mdc-list-item{padding-left:0;padding-right:auto}[dir=rtl] .mdc-list-item--with-leading-image.mdc-list-item,.mdc-list-item--with-leading-image.mdc-list-item[dir=rtl]{padding-left:auto;padding-right:0}.mdc-list-item--with-leading-image .mdc-list-item__start{margin-left:16px;margin-right:16px}[dir=rtl] .mdc-list-item--with-leading-image .mdc-list-item__start,.mdc-list-item--with-leading-image .mdc-list-item__start[dir=rtl]{margin-left:16px;margin-right:16px}.mdc-list-item--with-leading-image.mdc-list-item--with-two-lines .mdc-list-item__primary-text{display:block;margin-top:0;line-height:normal;margin-bottom:-20px}.mdc-list-item--with-leading-image.mdc-list-item--with-two-lines .mdc-list-item__primary-text::before{display:inline-block;width:0;height:32px;content:"";vertical-align:0}.mdc-list-item--with-leading-image.mdc-list-item--with-two-lines .mdc-list-item__primary-text::after{display:inline-block;width:0;height:20px;content:"";vertical-align:-20px}.mdc-list-item--with-leading-image.mdc-list-item--with-two-lines .mdc-list-item__overline-text{display:block;margin-top:0;line-height:normal;margin-bottom:-20px}.mdc-list-item--with-leading-image.mdc-list-item--with-two-lines .mdc-list-item__overline-text::before{display:inline-block;width:0;height:28px;content:"";vertical-align:0}.mdc-list-item--with-leading-image.mdc-list-item--with-two-lines .mdc-list-item__overline-text::after{display:inline-block;width:0;height:20px;content:"";vertical-align:-20px}.mdc-list-item--with-leading-image.mdc-list-item--with-two-lines.mdc-list-item--with-trailing-meta .mdc-list-item__end{display:block;margin-top:0;line-height:normal}.mdc-list-item--with-leading-image.mdc-list-item--with-two-lines.mdc-list-item--with-trailing-meta .mdc-list-item__end::before{display:inline-block;width:0;height:32px;content:"";vertical-align:0}.mdc-list-item--with-leading-image.mdc-list-item--with-one-line{height:72px}.mdc-list-item--with-leading-image.mdc-list-item--with-two-lines{height:72px}.mdc-list-item--with-leading-video.mdc-list-item--with-two-lines .mdc-list-item__start{align-self:flex-start;margin-top:8px}.mdc-list-item--with-leading-video.mdc-list-item{padding-left:0;padding-right:auto}[dir=rtl] .mdc-list-item--with-leading-video.mdc-list-item,.mdc-list-item--with-leading-video.mdc-list-item[dir=rtl]{padding-left:auto;padding-right:0}.mdc-list-item--with-leading-video .mdc-list-item__start{margin-left:0;margin-right:16px}[dir=rtl] .mdc-list-item--with-leading-video .mdc-list-item__start,.mdc-list-item--with-leading-video .mdc-list-item__start[dir=rtl]{margin-left:16px;margin-right:0}.mdc-list-item--with-leading-video.mdc-list-item--with-two-lines .mdc-list-item__primary-text{display:block;margin-top:0;line-height:normal;margin-bottom:-20px}.mdc-list-item--with-leading-video.mdc-list-item--with-two-lines .mdc-list-item__primary-text::before{display:inline-block;width:0;height:32px;content:"";vertical-align:0}.mdc-list-item--with-leading-video.mdc-list-item--with-two-lines .mdc-list-item__primary-text::after{display:inline-block;width:0;height:20px;content:"";vertical-align:-20px}.mdc-list-item--with-leading-video.mdc-list-item--with-two-lines .mdc-list-item__overline-text{display:block;margin-top:0;line-height:normal;margin-bottom:-20px}.mdc-list-item--with-leading-video.mdc-list-item--with-two-lines .mdc-list-item__overline-text::before{display:inline-block;width:0;height:28px;content:"";vertical-align:0}.mdc-list-item--with-leading-video.mdc-list-item--with-two-lines .mdc-list-item__overline-text::after{display:inline-block;width:0;height:20px;content:"";vertical-align:-20px}.mdc-list-item--with-leading-video.mdc-list-item--with-two-lines.mdc-list-item--with-trailing-meta .mdc-list-item__end{display:block;margin-top:0;line-height:normal}.mdc-list-item--with-leading-video.mdc-list-item--with-two-lines.mdc-list-item--with-trailing-meta .mdc-list-item__end::before{display:inline-block;width:0;height:32px;content:"";vertical-align:0}.mdc-list-item--with-leading-video.mdc-list-item--with-one-line{height:72px}.mdc-list-item--with-leading-video.mdc-list-item--with-two-lines{height:72px}.mdc-list-item--with-leading-checkbox.mdc-list-item{padding-left:0;padding-right:auto}[dir=rtl] .mdc-list-item--with-leading-checkbox.mdc-list-item,.mdc-list-item--with-leading-checkbox.mdc-list-item[dir=rtl]{padding-left:auto;padding-right:0}.mdc-list-item--with-leading-checkbox .mdc-list-item__start{margin-left:8px;margin-right:24px}[dir=rtl] .mdc-list-item--with-leading-checkbox .mdc-list-item__start,.mdc-list-item--with-leading-checkbox .mdc-list-item__start[dir=rtl]{margin-left:24px;margin-right:8px}.mdc-list-item--with-leading-checkbox.mdc-list-item--with-two-lines .mdc-list-item__start{align-self:flex-start;margin-top:8px}.mdc-list-item--with-leading-checkbox.mdc-list-item--with-two-lines .mdc-list-item__primary-text{display:block;margin-top:0;line-height:normal;margin-bottom:-20px}.mdc-list-item--with-leading-checkbox.mdc-list-item--with-two-lines .mdc-list-item__primary-text::before{display:inline-block;width:0;height:32px;content:"";vertical-align:0}.mdc-list-item--with-leading-checkbox.mdc-list-item--with-two-lines .mdc-list-item__primary-text::after{display:inline-block;width:0;height:20px;content:"";vertical-align:-20px}.mdc-list-item--with-leading-checkbox.mdc-list-item--with-two-lines .mdc-list-item__overline-text{display:block;margin-top:0;line-height:normal;margin-bottom:-20px}.mdc-list-item--with-leading-checkbox.mdc-list-item--with-two-lines .mdc-list-item__overline-text::before{display:inline-block;width:0;height:28px;content:"";vertical-align:0}.mdc-list-item--with-leading-checkbox.mdc-list-item--with-two-lines .mdc-list-item__overline-text::after{display:inline-block;width:0;height:20px;content:"";vertical-align:-20px}.mdc-list-item--with-leading-checkbox.mdc-list-item--with-two-lines.mdc-list-item--with-trailing-meta .mdc-list-item__end{display:block;margin-top:0;line-height:normal}.mdc-list-item--with-leading-checkbox.mdc-list-item--with-two-lines.mdc-list-item--with-trailing-meta .mdc-list-item__end::before{display:inline-block;width:0;height:32px;content:"";vertical-align:0}.mdc-list-item--with-leading-checkbox.mdc-list-item--with-one-line{height:56px}.mdc-list-item--with-leading-checkbox.mdc-list-item--with-two-lines{height:72px}.mdc-list-item--with-leading-radio.mdc-list-item{padding-left:0;padding-right:auto}[dir=rtl] .mdc-list-item--with-leading-radio.mdc-list-item,.mdc-list-item--with-leading-radio.mdc-list-item[dir=rtl]{padding-left:auto;padding-right:0}.mdc-list-item--with-leading-radio .mdc-list-item__start{margin-left:8px;margin-right:24px}[dir=rtl] .mdc-list-item--with-leading-radio .mdc-list-item__start,.mdc-list-item--with-leading-radio .mdc-list-item__start[dir=rtl]{margin-left:24px;margin-right:8px}.mdc-list-item--with-leading-radio.mdc-list-item--with-two-lines .mdc-list-item__start{align-self:flex-start;margin-top:8px}.mdc-list-item--with-leading-radio.mdc-list-item--with-two-lines .mdc-list-item__primary-text{display:block;margin-top:0;line-height:normal;margin-bottom:-20px}.mdc-list-item--with-leading-radio.mdc-list-item--with-two-lines .mdc-list-item__primary-text::before{display:inline-block;width:0;height:32px;content:"";vertical-align:0}.mdc-list-item--with-leading-radio.mdc-list-item--with-two-lines .mdc-list-item__primary-text::after{display:inline-block;width:0;height:20px;content:"";vertical-align:-20px}.mdc-list-item--with-leading-radio.mdc-list-item--with-two-lines .mdc-list-item__overline-text{display:block;margin-top:0;line-height:normal;margin-bottom:-20px}.mdc-list-item--with-leading-radio.mdc-list-item--with-two-lines .mdc-list-item__overline-text::before{display:inline-block;width:0;height:28px;content:"";vertical-align:0}.mdc-list-item--with-leading-radio.mdc-list-item--with-two-lines .mdc-list-item__overline-text::after{display:inline-block;width:0;height:20px;content:"";vertical-align:-20px}.mdc-list-item--with-leading-radio.mdc-list-item--with-two-lines.mdc-list-item--with-trailing-meta .mdc-list-item__end{display:block;margin-top:0;line-height:normal}.mdc-list-item--with-leading-radio.mdc-list-item--with-two-lines.mdc-list-item--with-trailing-meta .mdc-list-item__end::before{display:inline-block;width:0;height:32px;content:"";vertical-align:0}.mdc-list-item--with-leading-radio.mdc-list-item--with-one-line{height:56px}.mdc-list-item--with-leading-radio.mdc-list-item--with-two-lines{height:72px}.mdc-list-item--with-leading-switch.mdc-list-item{padding-left:0;padding-right:auto}[dir=rtl] .mdc-list-item--with-leading-switch.mdc-list-item,.mdc-list-item--with-leading-switch.mdc-list-item[dir=rtl]{padding-left:auto;padding-right:0}.mdc-list-item--with-leading-switch .mdc-list-item__start{margin-left:16px;margin-right:16px}[dir=rtl] .mdc-list-item--with-leading-switch .mdc-list-item__start,.mdc-list-item--with-leading-switch .mdc-list-item__start[dir=rtl]{margin-left:16px;margin-right:16px}.mdc-list-item--with-leading-switch.mdc-list-item--with-two-lines .mdc-list-item__start{align-self:flex-start;margin-top:16px}.mdc-list-item--with-leading-switch.mdc-list-item--with-two-lines .mdc-list-item__primary-text{display:block;margin-top:0;line-height:normal;margin-bottom:-20px}.mdc-list-item--with-leading-switch.mdc-list-item--with-two-lines .mdc-list-item__primary-text::before{display:inline-block;width:0;height:32px;content:"";vertical-align:0}.mdc-list-item--with-leading-switch.mdc-list-item--with-two-lines .mdc-list-item__primary-text::after{display:inline-block;width:0;height:20px;content:"";vertical-align:-20px}.mdc-list-item--with-leading-switch.mdc-list-item--with-two-lines .mdc-list-item__overline-text{display:block;margin-top:0;line-height:normal;margin-bottom:-20px}.mdc-list-item--with-leading-switch.mdc-list-item--with-two-lines .mdc-list-item__overline-text::before{display:inline-block;width:0;height:28px;content:"";vertical-align:0}.mdc-list-item--with-leading-switch.mdc-list-item--with-two-lines .mdc-list-item__overline-text::after{display:inline-block;width:0;height:20px;content:"";vertical-align:-20px}.mdc-list-item--with-leading-switch.mdc-list-item--with-two-lines.mdc-list-item--with-trailing-meta .mdc-list-item__end{display:block;margin-top:0;line-height:normal}.mdc-list-item--with-leading-switch.mdc-list-item--with-two-lines.mdc-list-item--with-trailing-meta .mdc-list-item__end::before{display:inline-block;width:0;height:32px;content:"";vertical-align:0}.mdc-list-item--with-leading-switch.mdc-list-item--with-one-line{height:56px}.mdc-list-item--with-leading-switch.mdc-list-item--with-two-lines{height:72px}.mdc-list-item--with-trailing-icon.mdc-list-item{padding-left:auto;padding-right:0}[dir=rtl] .mdc-list-item--with-trailing-icon.mdc-list-item,.mdc-list-item--with-trailing-icon.mdc-list-item[dir=rtl]{padding-left:0;padding-right:auto}.mdc-list-item--with-trailing-icon .mdc-list-item__end{margin-left:16px;margin-right:16px}[dir=rtl] .mdc-list-item--with-trailing-icon .mdc-list-item__end,.mdc-list-item--with-trailing-icon .mdc-list-item__end[dir=rtl]{margin-left:16px;margin-right:16px}.mdc-list-item--with-trailing-meta.mdc-list-item--with-two-lines .mdc-list-item__end{align-self:flex-start;margin-top:0}.mdc-list-item--with-trailing-meta.mdc-list-item--with-three-lines .mdc-list-item__end{align-self:flex-start;margin-top:0}.mdc-list-item--with-trailing-meta.mdc-list-item{padding-left:auto;padding-right:0}[dir=rtl] .mdc-list-item--with-trailing-meta.mdc-list-item,.mdc-list-item--with-trailing-meta.mdc-list-item[dir=rtl]{padding-left:0;padding-right:auto}.mdc-list-item--with-trailing-meta .mdc-list-item__end{margin-left:28px;margin-right:16px}[dir=rtl] .mdc-list-item--with-trailing-meta .mdc-list-item__end,.mdc-list-item--with-trailing-meta .mdc-list-item__end[dir=rtl]{margin-left:16px;margin-right:28px}.mdc-list-item--with-trailing-meta.mdc-list-item--with-two-lines .mdc-list-item__end{display:block;margin-top:0;line-height:normal}.mdc-list-item--with-trailing-meta.mdc-list-item--with-two-lines .mdc-list-item__end::before{display:inline-block;width:0;height:28px;content:"";vertical-align:0}.mdc-list-item--with-trailing-meta.mdc-list-item--with-three-lines .mdc-list-item__end{display:block;margin-top:0;line-height:normal}.mdc-list-item--with-trailing-meta.mdc-list-item--with-three-lines .mdc-list-item__end::before{display:inline-block;width:0;height:28px;content:"";vertical-align:0}.mdc-list-item--with-trailing-checkbox.mdc-list-item{padding-left:auto;padding-right:0}[dir=rtl] .mdc-list-item--with-trailing-checkbox.mdc-list-item,.mdc-list-item--with-trailing-checkbox.mdc-list-item[dir=rtl]{padding-left:0;padding-right:auto}.mdc-list-item--with-trailing-checkbox .mdc-list-item__end{margin-left:24px;margin-right:8px}[dir=rtl] .mdc-list-item--with-trailing-checkbox .mdc-list-item__end,.mdc-list-item--with-trailing-checkbox .mdc-list-item__end[dir=rtl]{margin-left:8px;margin-right:24px}.mdc-list-item--with-trailing-checkbox.mdc-list-item--with-three-lines .mdc-list-item__end{align-self:flex-start;margin-top:8px}.mdc-list-item--with-trailing-radio.mdc-list-item{padding-left:auto;padding-right:0}[dir=rtl] .mdc-list-item--with-trailing-radio.mdc-list-item,.mdc-list-item--with-trailing-radio.mdc-list-item[dir=rtl]{padding-left:0;padding-right:auto}.mdc-list-item--with-trailing-radio .mdc-list-item__end{margin-left:24px;margin-right:8px}[dir=rtl] .mdc-list-item--with-trailing-radio .mdc-list-item__end,.mdc-list-item--with-trailing-radio .mdc-list-item__end[dir=rtl]{margin-left:8px;margin-right:24px}.mdc-list-item--with-trailing-radio.mdc-list-item--with-three-lines .mdc-list-item__end{align-self:flex-start;margin-top:8px}.mdc-list-item--with-trailing-switch.mdc-list-item{padding-left:auto;padding-right:0}[dir=rtl] .mdc-list-item--with-trailing-switch.mdc-list-item,.mdc-list-item--with-trailing-switch.mdc-list-item[dir=rtl]{padding-left:0;padding-right:auto}.mdc-list-item--with-trailing-switch .mdc-list-item__end{margin-left:16px;margin-right:16px}[dir=rtl] .mdc-list-item--with-trailing-switch .mdc-list-item__end,.mdc-list-item--with-trailing-switch .mdc-list-item__end[dir=rtl]{margin-left:16px;margin-right:16px}.mdc-list-item--with-trailing-switch.mdc-list-item--with-three-lines .mdc-list-item__end{align-self:flex-start;margin-top:16px}.mdc-list-item--with-overline.mdc-list-item--with-two-lines .mdc-list-item__primary-text{display:block;margin-top:0;line-height:normal}.mdc-list-item--with-overline.mdc-list-item--with-two-lines .mdc-list-item__primary-text::before{display:inline-block;width:0;height:20px;content:"";vertical-align:0}.mdc-list-item--with-overline.mdc-list-item--with-three-lines .mdc-list-item__primary-text{display:block;margin-top:0;line-height:normal}.mdc-list-item--with-overline.mdc-list-item--with-three-lines .mdc-list-item__primary-text::before{display:inline-block;width:0;height:20px;content:"";vertical-align:0}.mdc-list-item{padding-left:16px;padding-right:16px}[dir=rtl] .mdc-list-item,.mdc-list-item[dir=rtl]{padding-left:16px;padding-right:16px}.mdc-list-group .mdc-deprecated-list{padding:0}.mdc-list-group__subheader{margin:calc((3rem - 1.5rem)/2) 16px}.mdc-list-divider{padding:0;background-clip:content-box}.mdc-list-divider.mdc-list-divider--with-leading-inset,.mdc-list-divider--with-leading-text.mdc-list-divider--with-leading-inset,.mdc-list-divider--with-leading-icon.mdc-list-divider--with-leading-inset,.mdc-list-divider--with-leading-image.mdc-list-divider--with-leading-inset,.mdc-list-divider--with-leading-thumbnail.mdc-list-divider--with-leading-inset,.mdc-list-divider--with-leading-avatar.mdc-list-divider--with-leading-inset,.mdc-list-divider--with-leading-checkbox.mdc-list-divider--with-leading-inset,.mdc-list-divider--with-leading-switch.mdc-list-divider--with-leading-inset,.mdc-list-divider--with-leading-radio.mdc-list-divider--with-leading-inset{padding-left:16px;padding-right:auto}[dir=rtl] .mdc-list-divider.mdc-list-divider--with-leading-inset,[dir=rtl] .mdc-list-divider--with-leading-text.mdc-list-divider--with-leading-inset,[dir=rtl] .mdc-list-divider--with-leading-icon.mdc-list-divider--with-leading-inset,[dir=rtl] .mdc-list-divider--with-leading-image.mdc-list-divider--with-leading-inset,[dir=rtl] .mdc-list-divider--with-leading-thumbnail.mdc-list-divider--with-leading-inset,[dir=rtl] .mdc-list-divider--with-leading-avatar.mdc-list-divider--with-leading-inset,[dir=rtl] .mdc-list-divider--with-leading-checkbox.mdc-list-divider--with-leading-inset,[dir=rtl] .mdc-list-divider--with-leading-switch.mdc-list-divider--with-leading-inset,[dir=rtl] .mdc-list-divider--with-leading-radio.mdc-list-divider--with-leading-inset,.mdc-list-divider.mdc-list-divider--with-leading-inset[dir=rtl],.mdc-list-divider--with-leading-text.mdc-list-divider--with-leading-inset[dir=rtl],.mdc-list-divider--with-leading-icon.mdc-list-divider--with-leading-inset[dir=rtl],.mdc-list-divider--with-leading-image.mdc-list-divider--with-leading-inset[dir=rtl],.mdc-list-divider--with-leading-thumbnail.mdc-list-divider--with-leading-inset[dir=rtl],.mdc-list-divider--with-leading-avatar.mdc-list-divider--with-leading-inset[dir=rtl],.mdc-list-divider--with-leading-checkbox.mdc-list-divider--with-leading-inset[dir=rtl],.mdc-list-divider--with-leading-switch.mdc-list-divider--with-leading-inset[dir=rtl],.mdc-list-divider--with-leading-radio.mdc-list-divider--with-leading-inset[dir=rtl]{padding-left:auto;padding-right:16px}.mdc-list-divider.mdc-list-divider--with-trailing-inset,.mdc-list-divider--with-leading-text.mdc-list-divider--with-trailing-inset,.mdc-list-divider--with-leading-icon.mdc-list-divider--with-trailing-inset,.mdc-list-divider--with-leading-image.mdc-list-divider--with-trailing-inset,.mdc-list-divider--with-leading-thumbnail.mdc-list-divider--with-trailing-inset,.mdc-list-divider--with-leading-avatar.mdc-list-divider--with-trailing-inset,.mdc-list-divider--with-leading-checkbox.mdc-list-divider--with-trailing-inset,.mdc-list-divider--with-leading-switch.mdc-list-divider--with-trailing-inset,.mdc-list-divider--with-leading-radio.mdc-list-divider--with-trailing-inset{padding-left:auto;padding-right:16px}[dir=rtl] .mdc-list-divider.mdc-list-divider--with-trailing-inset,[dir=rtl] .mdc-list-divider--with-leading-text.mdc-list-divider--with-trailing-inset,[dir=rtl] .mdc-list-divider--with-leading-icon.mdc-list-divider--with-trailing-inset,[dir=rtl] .mdc-list-divider--with-leading-image.mdc-list-divider--with-trailing-inset,[dir=rtl] .mdc-list-divider--with-leading-thumbnail.mdc-list-divider--with-trailing-inset,[dir=rtl] .mdc-list-divider--with-leading-avatar.mdc-list-divider--with-trailing-inset,[dir=rtl] .mdc-list-divider--with-leading-checkbox.mdc-list-divider--with-trailing-inset,[dir=rtl] .mdc-list-divider--with-leading-switch.mdc-list-divider--with-trailing-inset,[dir=rtl] .mdc-list-divider--with-leading-radio.mdc-list-divider--with-trailing-inset,.mdc-list-divider.mdc-list-divider--with-trailing-inset[dir=rtl],.mdc-list-divider--with-leading-text.mdc-list-divider--with-trailing-inset[dir=rtl],.mdc-list-divider--with-leading-icon.mdc-list-divider--with-trailing-inset[dir=rtl],.mdc-list-divider--with-leading-image.mdc-list-divider--with-trailing-inset[dir=rtl],.mdc-list-divider--with-leading-thumbnail.mdc-list-divider--with-trailing-inset[dir=rtl],.mdc-list-divider--with-leading-avatar.mdc-list-divider--with-trailing-inset[dir=rtl],.mdc-list-divider--with-leading-checkbox.mdc-list-divider--with-trailing-inset[dir=rtl],.mdc-list-divider--with-leading-switch.mdc-list-divider--with-trailing-inset[dir=rtl],.mdc-list-divider--with-leading-radio.mdc-list-divider--with-trailing-inset[dir=rtl]{padding-left:16px;padding-right:auto}.mdc-list-divider--with-leading-video.mdc-list-divider--with-leading-inset{padding-left:0px;padding-right:auto}[dir=rtl] .mdc-list-divider--with-leading-video.mdc-list-divider--with-leading-inset,.mdc-list-divider--with-leading-video.mdc-list-divider--with-leading-inset[dir=rtl]{padding-left:auto;padding-right:0px}[dir=rtl] .mdc-list-divider,.mdc-list-divider[dir=rtl]{padding:0}.cdk-high-contrast-active a.mdc-list-item--activated::after{content:"";position:absolute;top:50%;right:16px;transform:translateY(-50%);width:10px;height:0;border-bottom:solid 10px;border-radius:10px}.cdk-high-contrast-active a.mdc-list-item--activated [dir=rtl]::after{right:auto;left:16px}.mat-mdc-list-base{display:block}.mat-mdc-list-base .mdc-list-item__start,.mat-mdc-list-base .mdc-list-item__end,.mat-mdc-list-base .mdc-list-item__content{pointer-events:auto}.mat-mdc-list-item,.mat-mdc-list-option{width:100%;box-sizing:border-box;-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-mdc-list-item:not(.mat-mdc-list-item-interactive),.mat-mdc-list-option:not(.mat-mdc-list-item-interactive){cursor:default}.mat-mdc-list-item .mat-divider-inset,.mat-mdc-list-option .mat-divider-inset{position:absolute;left:0;right:0;bottom:0}.mat-mdc-list-item .mat-mdc-list-item-avatar~.mat-divider-inset,.mat-mdc-list-option .mat-mdc-list-item-avatar~.mat-divider-inset{margin-left:72px}[dir=rtl] .mat-mdc-list-item .mat-mdc-list-item-avatar~.mat-divider-inset,[dir=rtl] .mat-mdc-list-option .mat-mdc-list-item-avatar~.mat-divider-inset{margin-right:72px}.mat-mdc-list-item-interactive::before{top:0;left:0;right:0;bottom:0;position:absolute;content:"";opacity:0;pointer-events:none}.mat-mdc-list-item>.mat-mdc-focus-indicator{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-mdc-list-item:focus>.mat-mdc-focus-indicator::before{content:""}.mat-mdc-list-item.mdc-list-item--with-three-lines .mat-mdc-list-item-line.mdc-list-item__secondary-text{white-space:nowrap;line-height:normal}.mat-mdc-list-item.mdc-list-item--with-three-lines .mat-mdc-list-item-unscoped-content.mdc-list-item__secondary-text{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2}mat-action-list button{background:none;color:inherit;border:none;font:inherit;outline:inherit;-webkit-tap-highlight-color:rgba(0,0,0,0);text-align:left}[dir=rtl] mat-action-list button{text-align:right}mat-action-list button::-moz-focus-inner{border:0}'],encapsulation:2,changeDetection:0}),pt})(),Ce=(()=>{class pt extends ve{get activated(){return this._activated}set activated(wt){this._activated=(0,e.Ig)(wt)}constructor(wt,ke,Ke,xt,Y,Re){super(wt,ke,Ke,xt,Y,Re),this._activated=!1}_getAriaCurrent(){return"A"===this._hostElement.nodeName&&this._activated?"page":null}}return pt.\u0275fac=function(wt){return new(wt||pt)(t.Y36(t.SBq),t.Y36(t.R0b),t.Y36(ce,8),t.Y36(b.t4),t.Y36(I.Y2,8),t.Y36(t.QbO,8))},pt.\u0275cmp=t.Xpm({type:pt,selectors:[["mat-list-item"],["a","mat-list-item",""],["button","mat-list-item",""]],contentQueries:function(wt,ke,Ke){if(1&wt&&(t.Suo(Ke,Le,5),t.Suo(Ke,X,5),t.Suo(Ke,$e,5)),2&wt){let xt;t.iGM(xt=t.CRH())&&(ke._lines=xt),t.iGM(xt=t.CRH())&&(ke._titles=xt),t.iGM(xt=t.CRH())&&(ke._meta=xt)}},viewQuery:function(wt,ke){if(1&wt&&(t.Gf(K,5),t.Gf(ee,5)),2&wt){let Ke;t.iGM(Ke=t.CRH())&&(ke._unscopedContent=Ke.first),t.iGM(Ke=t.CRH())&&(ke._itemText=Ke.first)}},hostAttrs:[1,"mat-mdc-list-item","mdc-list-item"],hostVars:11,hostBindings:function(wt,ke){2&wt&&(t.uIk("aria-current",ke._getAriaCurrent()),t.ekj("mdc-list-item--activated",ke.activated)("mdc-list-item--with-leading-avatar",0!==ke._avatars.length)("mdc-list-item--with-leading-icon",0!==ke._icons.length)("mdc-list-item--with-trailing-meta",0!==ke._meta.length)("_mat-animation-noopable",ke._noopAnimations))},inputs:{activated:"activated"},exportAs:["matListItem"],features:[t.qOj],ngContentSelectors:ue,decls:10,vars:0,consts:[[1,"mdc-list-item__content"],[1,"mat-mdc-list-item-unscoped-content",3,"cdkObserveContent"],["unscopedContent",""],[1,"mat-mdc-focus-indicator"]],template:function(wt,ke){1&wt&&(t.F$t(ie),t.Hsn(0),t.TgZ(1,"span",0),t.Hsn(2,1),t.Hsn(3,2),t.TgZ(4,"span",1,2),t.NdJ("cdkObserveContent",function(){return ke._updateItemLines(!0)}),t.Hsn(6,3),t.qZA()(),t.Hsn(7,4),t.Hsn(8,5),t._UZ(9,"div",3))},dependencies:[P.wD],encapsulation:2,changeDetection:0}),pt})(),Et=(()=>{class pt{}return pt.\u0275fac=function(wt){return new(wt||pt)},pt.\u0275mod=t.oAB({type:pt}),pt.\u0275inj=t.cJS({imports:[P.Q8,d.ez,I.BQ,I.si,I.us,S.t]}),pt})()},8255:(Ve,q,p)=>{"use strict";p.d(q,{OP:()=>y,Tx:()=>te,VK:()=>ye,p6:()=>Ce});var t=p(4650),e=p(4761),b=p(1281),I=p(9521),s=p(7579),C=p(6451),h=p(727),P=p(9646),d=p(3101),S=p(8675),w=p(3900),O=p(5698),E=p(2722),R=p(9300),z=p(4086),U=p(3238),W=p(6895),K=p(4080),ee=p(7340),ie=p(445),ue=p(8184),le=p(3353),ne=p(531);const de=["mat-menu-item",""];function $(Ue,Be){1&Ue&&(t.O4$(),t.TgZ(0,"svg",3),t._UZ(1,"polygon",4),t.qZA())}const me=[[["mat-icon"],["","matMenuItemIcon",""]],"*"],A=["mat-icon, [matMenuItemIcon]","*"];function i(Ue,Be){if(1&Ue){const ae=t.EpF();t.TgZ(0,"div",0),t.NdJ("keydown",function(ft){t.CHM(ae);const Je=t.oxw();return t.KtG(Je._handleKeydown(ft))})("click",function(){t.CHM(ae);const ft=t.oxw();return t.KtG(ft.closed.emit("click"))})("@transformMenu.start",function(ft){t.CHM(ae);const Je=t.oxw();return t.KtG(Je._onAnimationStart(ft))})("@transformMenu.done",function(ft){t.CHM(ae);const Je=t.oxw();return t.KtG(Je._onAnimationDone(ft))}),t.TgZ(1,"div",1),t.Hsn(2),t.qZA()()}if(2&Ue){const ae=t.oxw();t.Q6J("id",ae.panelId)("ngClass",ae._classList)("@transformMenu",ae._panelAnimationState),t.uIk("aria-label",ae.ariaLabel||null)("aria-labelledby",ae.ariaLabelledby||null)("aria-describedby",ae.ariaDescribedby||null)}}const a=["*"],u=new t.OlP("MAT_MENU_PANEL"),l=(0,U.Kr)((0,U.Id)(class{}));let y=(()=>{class Ue extends l{constructor(ae,ge,ft,Je,dt){super(),this._elementRef=ae,this._document=ge,this._focusMonitor=ft,this._parentMenu=Je,this._changeDetectorRef=dt,this.role="menuitem",this._hovered=new s.x,this._focused=new s.x,this._highlighted=!1,this._triggersSubmenu=!1,Je?.addItem?.(this)}focus(ae,ge){this._focusMonitor&&ae?this._focusMonitor.focusVia(this._getHostElement(),ae,ge):this._getHostElement().focus(ge),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(ae){this.disabled&&(ae.preventDefault(),ae.stopPropagation())}_handleMouseEnter(){this._hovered.next(this)}getLabel(){const ae=this._elementRef.nativeElement.cloneNode(!0),ge=ae.querySelectorAll("mat-icon, .material-icons");for(let ft=0;ft<ge.length;ft++)ge[ft].remove();return ae.textContent?.trim()||""}_setHighlighted(ae){this._highlighted=ae,this._changeDetectorRef?.markForCheck()}_setTriggersSubmenu(ae){this._triggersSubmenu=ae,this._changeDetectorRef?.markForCheck()}_hasFocus(){return this._document&&this._document.activeElement===this._getHostElement()}}return Ue.\u0275fac=function(ae){return new(ae||Ue)(t.Y36(t.SBq),t.Y36(W.K0),t.Y36(e.tE),t.Y36(u,8),t.Y36(t.sBO))},Ue.\u0275cmp=t.Xpm({type:Ue,selectors:[["","mat-menu-item",""]],hostAttrs:[1,"mat-mdc-menu-item","mat-mdc-focus-indicator","mdc-list-item"],hostVars:8,hostBindings:function(ae,ge){1&ae&&t.NdJ("click",function(Je){return ge._checkDisabled(Je)})("mouseenter",function(){return ge._handleMouseEnter()}),2&ae&&(t.uIk("role",ge.role)("tabindex",ge._getTabIndex())("aria-disabled",ge.disabled)("disabled",ge.disabled||null),t.ekj("mat-mdc-menu-item-highlighted",ge._highlighted)("mat-mdc-menu-item-submenu-trigger",ge._triggersSubmenu))},inputs:{disabled:"disabled",disableRipple:"disableRipple",role:"role"},exportAs:["matMenuItem"],features:[t.qOj],attrs:de,ngContentSelectors:A,decls:5,vars:3,consts:[[1,"mdc-list-item__primary-text"],["matRipple","",1,"mat-mdc-menu-ripple",3,"matRippleDisabled","matRippleTrigger"],["class","mat-mdc-menu-submenu-icon","viewBox","0 0 5 10","focusable","false",4,"ngIf"],["viewBox","0 0 5 10","focusable","false",1,"mat-mdc-menu-submenu-icon"],["points","0,0 5,5 0,10"]],template:function(ae,ge){1&ae&&(t.F$t(me),t.Hsn(0),t.TgZ(1,"span",0),t.Hsn(2,1),t.qZA(),t._UZ(3,"div",1),t.YNc(4,$,2,0,"svg",2)),2&ae&&(t.xp6(3),t.Q6J("matRippleDisabled",ge.disableRipple||ge.disabled)("matRippleTrigger",ge._getHostElement()),t.xp6(1),t.Q6J("ngIf",ge._triggersSubmenu))},dependencies:[W.O5,U.wG],encapsulation:2,changeDetection:0}),Ue})();const n=new t.OlP("MatMenuContent"),V={transformMenu:(0,ee.X$)("transformMenu",[(0,ee.SB)("void",(0,ee.oB)({opacity:0,transform:"scale(0.8)"})),(0,ee.eR)("void => enter",(0,ee.jt)("120ms cubic-bezier(0, 0, 0.2, 1)",(0,ee.oB)({opacity:1,transform:"scale(1)"}))),(0,ee.eR)("* => void",(0,ee.jt)("100ms 25ms linear",(0,ee.oB)({opacity:0})))]),fadeInItems:(0,ee.X$)("fadeInItems",[(0,ee.SB)("showing",(0,ee.oB)({opacity:1})),(0,ee.eR)("void => *",[(0,ee.oB)({opacity:0}),(0,ee.jt)("400ms 100ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])};let $e=0;const We=new t.OlP("mat-menu-default-options",{providedIn:"root",factory:function Fe(){return{overlapTrigger:!1,xPosition:"after",yPosition:"below",backdropClass:"cdk-overlay-transparent-backdrop"}}});let De=(()=>{class Ue{get xPosition(){return this._xPosition}set xPosition(ae){this._xPosition=ae,this.setPositionClasses()}get yPosition(){return this._yPosition}set yPosition(ae){this._yPosition=ae,this.setPositionClasses()}get overlapTrigger(){return this._overlapTrigger}set overlapTrigger(ae){this._overlapTrigger=(0,b.Ig)(ae)}get hasBackdrop(){return this._hasBackdrop}set hasBackdrop(ae){this._hasBackdrop=(0,b.Ig)(ae)}set panelClass(ae){const ge=this._previousPanelClass;ge&&ge.length&&ge.split(" ").forEach(ft=>{this._classList[ft]=!1}),this._previousPanelClass=ae,ae&&ae.length&&(ae.split(" ").forEach(ft=>{this._classList[ft]=!0}),this._elementRef.nativeElement.className="")}get classList(){return this.panelClass}set classList(ae){this.panelClass=ae}constructor(ae,ge,ft,Je){this._elementRef=ae,this._ngZone=ge,this._defaultOptions=ft,this._changeDetectorRef=Je,this._xPosition=this._defaultOptions.xPosition,this._yPosition=this._defaultOptions.yPosition,this._directDescendantItems=new t.n_E,this._classList={},this._panelAnimationState="void",this._animationDone=new s.x,this.overlayPanelClass=this._defaultOptions.overlayPanelClass||"",this.backdropClass=this._defaultOptions.backdropClass,this._overlapTrigger=this._defaultOptions.overlapTrigger,this._hasBackdrop=this._defaultOptions.hasBackdrop,this.closed=new t.vpe,this.close=this.closed,this.panelId="mat-menu-panel-"+$e++}ngOnInit(){this.setPositionClasses()}ngAfterContentInit(){this._updateDirectDescendants(),this._keyManager=new e.Em(this._directDescendantItems).withWrap().withTypeAhead().withHomeAndEnd(),this._keyManager.tabOut.subscribe(()=>this.closed.emit("tab")),this._directDescendantItems.changes.pipe((0,S.O)(this._directDescendantItems),(0,w.w)(ae=>(0,C.T)(...ae.map(ge=>ge._focused)))).subscribe(ae=>this._keyManager.updateActiveItem(ae)),this._directDescendantItems.changes.subscribe(ae=>{const ge=this._keyManager;if("enter"===this._panelAnimationState&&ge.activeItem?._hasFocus()){const ft=ae.toArray(),Je=Math.max(0,Math.min(ft.length-1,ge.activeItemIndex||0));ft[Je]&&!ft[Je].disabled?ge.setActiveItem(Je):ge.setNextItemActive()}})}ngOnDestroy(){this._keyManager?.destroy(),this._directDescendantItems.destroy(),this.closed.complete(),this._firstItemFocusSubscription?.unsubscribe()}_hovered(){return this._directDescendantItems.changes.pipe((0,S.O)(this._directDescendantItems),(0,w.w)(ge=>(0,C.T)(...ge.map(ft=>ft._hovered))))}addItem(ae){}removeItem(ae){}_handleKeydown(ae){const ge=ae.keyCode,ft=this._keyManager;switch(ge){case I.hY:(0,I.Vb)(ae)||(ae.preventDefault(),this.closed.emit("keydown"));break;case I.oh:this.parentMenu&&"ltr"===this.direction&&this.closed.emit("keydown");break;case I.SV:this.parentMenu&&"rtl"===this.direction&&this.closed.emit("keydown");break;default:return(ge===I.LH||ge===I.JH)&&ft.setFocusOrigin("keyboard"),void ft.onKeydown(ae)}ae.stopPropagation()}focusFirstItem(ae="program"){this._firstItemFocusSubscription?.unsubscribe(),this._firstItemFocusSubscription=this._ngZone.onStable.pipe((0,O.q)(1)).subscribe(()=>{let ge=null;if(this._directDescendantItems.length&&(ge=this._directDescendantItems.first._getHostElement().closest('[role="menu"]')),!ge||!ge.contains(document.activeElement)){const ft=this._keyManager;ft.setFocusOrigin(ae).setFirstItemActive(),!ft.activeItem&&ge&&ge.focus()}})}resetActiveItem(){this._keyManager.setActiveItem(-1)}setElevation(ae){const ge=Math.min(this._baseElevation+ae,24),ft=`${this._elevationPrefix}${ge}`,Je=Object.keys(this._classList).find(dt=>dt.startsWith(this._elevationPrefix));(!Je||Je===this._previousElevation)&&(this._previousElevation&&(this._classList[this._previousElevation]=!1),this._classList[ft]=!0,this._previousElevation=ft)}setPositionClasses(ae=this.xPosition,ge=this.yPosition){const ft=this._classList;ft["mat-menu-before"]="before"===ae,ft["mat-menu-after"]="after"===ae,ft["mat-menu-above"]="above"===ge,ft["mat-menu-below"]="below"===ge,this._changeDetectorRef?.markForCheck()}_startAnimation(){this._panelAnimationState="enter"}_resetAnimation(){this._panelAnimationState="void"}_onAnimationDone(ae){this._animationDone.next(ae),this._isAnimating=!1}_onAnimationStart(ae){this._isAnimating=!0,"enter"===ae.toState&&0===this._keyManager.activeItemIndex&&(ae.element.scrollTop=0)}_updateDirectDescendants(){this._allItems.changes.pipe((0,S.O)(this._allItems)).subscribe(ae=>{this._directDescendantItems.reset(ae.filter(ge=>ge._parentMenu===this)),this._directDescendantItems.notifyOnChanges()})}}return Ue.\u0275fac=function(ae){return new(ae||Ue)(t.Y36(t.SBq),t.Y36(t.R0b),t.Y36(We),t.Y36(t.sBO))},Ue.\u0275dir=t.lG2({type:Ue,contentQueries:function(ae,ge,ft){if(1&ae&&(t.Suo(ft,n,5),t.Suo(ft,y,5),t.Suo(ft,y,4)),2&ae){let Je;t.iGM(Je=t.CRH())&&(ge.lazyContent=Je.first),t.iGM(Je=t.CRH())&&(ge._allItems=Je),t.iGM(Je=t.CRH())&&(ge.items=Je)}},viewQuery:function(ae,ge){if(1&ae&&t.Gf(t.Rgc,5),2&ae){let ft;t.iGM(ft=t.CRH())&&(ge.templateRef=ft.first)}},inputs:{backdropClass:"backdropClass",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],ariaDescribedby:["aria-describedby","ariaDescribedby"],xPosition:"xPosition",yPosition:"yPosition",overlapTrigger:"overlapTrigger",hasBackdrop:"hasBackdrop",panelClass:["class","panelClass"],classList:"classList"},outputs:{closed:"closed",close:"close"}}),Ue})(),ye=(()=>{class Ue extends De{constructor(ae,ge,ft,Je){super(ae,ge,ft,Je),this._elevationPrefix="mat-elevation-z",this._baseElevation=8}}return Ue.\u0275fac=function(ae){return new(ae||Ue)(t.Y36(t.SBq),t.Y36(t.R0b),t.Y36(We),t.Y36(t.sBO))},Ue.\u0275cmp=t.Xpm({type:Ue,selectors:[["mat-menu"]],hostVars:3,hostBindings:function(ae,ge){2&ae&&t.uIk("aria-label",null)("aria-labelledby",null)("aria-describedby",null)},exportAs:["matMenu"],features:[t._Bn([{provide:u,useExisting:Ue}]),t.qOj],ngContentSelectors:a,decls:1,vars:0,consts:[["tabindex","-1","role","menu",1,"mat-mdc-menu-panel","mdc-menu-surface","mdc-menu-surface--open","mat-mdc-elevation-specific",3,"id","ngClass","keydown","click"],[1,"mat-mdc-menu-content","mdc-list"]],template:function(ae,ge){1&ae&&(t.F$t(),t.YNc(0,i,3,6,"ng-template"))},dependencies:[W.mk],styles:['.mdc-menu-surface{display:none;position:absolute;box-sizing:border-box;max-width:var(--mdc-menu-max-width, calc(100vw - 32px));max-height:var(--mdc-menu-max-height, calc(100vh - 32px));margin:0;padding:0;transform:scale(1);transform-origin:top left;opacity:0;overflow:auto;will-change:transform,opacity;z-index:8;border-radius:var(--mdc-shape-medium, 4px);transform-origin-left:top left;transform-origin-right:top right}.mdc-menu-surface:focus{outline:none}.mdc-menu-surface--animating-open{display:inline-block;transform:scale(0.8);opacity:0}.mdc-menu-surface--open{display:inline-block;transform:scale(1);opacity:1}.mdc-menu-surface--animating-closed{display:inline-block;opacity:0}[dir=rtl] .mdc-menu-surface,.mdc-menu-surface[dir=rtl]{transform-origin-left:top right;transform-origin-right:top left}.mdc-menu-surface--anchor{position:relative;overflow:visible}.mdc-menu-surface--fixed{position:fixed}.mdc-menu-surface--fullwidth{width:100%}mat-menu{display:none}.mat-mdc-menu-content{margin:0;padding:8px 0;list-style-type:none}.mat-mdc-menu-content:focus{outline:none}.mat-mdc-menu-panel.ng-animating{pointer-events:none}.cdk-high-contrast-active .mat-mdc-menu-panel{outline:solid 1px}.mat-mdc-menu-panel.mat-mdc-menu-panel{min-width:112px;max-width:280px;overflow:auto;-webkit-overflow-scrolling:touch;position:relative}.mat-mdc-menu-item{display:flex;position:relative;align-items:center;justify-content:flex-start;overflow:hidden;padding:0;padding-left:16px;padding-right:16px;-webkit-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:rgba(0,0,0,0);cursor:pointer;width:100%;text-align:left;box-sizing:border-box;color:inherit;font-size:inherit;background:none;text-decoration:none;margin:0;min-height:48px}.mat-mdc-menu-item:focus{outline:none}[dir=rtl] .mat-mdc-menu-item,.mat-mdc-menu-item[dir=rtl]{padding-left:16px;padding-right:16px}.mat-mdc-menu-item::-moz-focus-inner{border:0}.mat-mdc-menu-item.mdc-list-item{align-items:center}.mat-mdc-menu-item[disabled]{cursor:default;opacity:.38}.mat-mdc-menu-item[disabled]::after{display:block;position:absolute;content:"";top:0;left:0;bottom:0;right:0}.mat-mdc-menu-item .mat-icon{margin-right:16px}[dir=rtl] .mat-mdc-menu-item{text-align:right}[dir=rtl] .mat-mdc-menu-item .mat-icon{margin-right:0;margin-left:16px}.mat-mdc-menu-item .mdc-list-item__primary-text{white-space:normal}.mat-mdc-menu-item.mat-mdc-menu-item-submenu-trigger{padding-right:32px}[dir=rtl] .mat-mdc-menu-item.mat-mdc-menu-item-submenu-trigger{padding-right:16px;padding-left:32px}.cdk-high-contrast-active .mat-mdc-menu-item{margin-top:1px}.mat-mdc-menu-submenu-icon{position:absolute;top:50%;right:16px;transform:translateY(-50%);width:5px;height:10px;fill:currentColor}[dir=rtl] .mat-mdc-menu-submenu-icon{right:auto;left:16px;transform:translateY(-50%) scaleX(-1)}.cdk-high-contrast-active .mat-mdc-menu-submenu-icon{fill:CanvasText}.mat-mdc-menu-item .mat-mdc-menu-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}'],encapsulation:2,data:{animation:[V.transformMenu,V.fadeInItems]},changeDetection:0}),Ue})();const ce=new t.OlP("mat-menu-scroll-strategy"),oe={provide:ce,deps:[ue.aV],useFactory:function ve(Ue){return()=>Ue.scrollStrategies.reposition()}},je=(0,le.i$)({passive:!0});let he=(()=>{class Ue{get _deprecatedMatMenuTriggerFor(){return this.menu}set _deprecatedMatMenuTriggerFor(ae){this.menu=ae}get menu(){return this._menu}set menu(ae){ae!==this._menu&&(this._menu=ae,this._menuCloseSubscription.unsubscribe(),ae&&(this._menuCloseSubscription=ae.close.subscribe(ge=>{this._destroyMenu(ge),("click"===ge||"tab"===ge)&&this._parentMaterialMenu&&this._parentMaterialMenu.closed.emit(ge)})),this._menuItemInstance?._setTriggersSubmenu(this.triggersSubmenu()))}constructor(ae,ge,ft,Je,dt,Et,pt,ot,wt){this._overlay=ae,this._element=ge,this._viewContainerRef=ft,this._menuItemInstance=Et,this._dir=pt,this._focusMonitor=ot,this._ngZone=wt,this._overlayRef=null,this._menuOpen=!1,this._closingActionsSubscription=h.w0.EMPTY,this._hoverSubscription=h.w0.EMPTY,this._menuCloseSubscription=h.w0.EMPTY,this._changeDetectorRef=(0,t.f3M)(t.sBO),this._handleTouchStart=ke=>{(0,e.yG)(ke)||(this._openedBy="touch")},this._openedBy=void 0,this.restoreFocus=!0,this.menuOpened=new t.vpe,this.onMenuOpen=this.menuOpened,this.menuClosed=new t.vpe,this.onMenuClose=this.menuClosed,this._scrollStrategy=Je,this._parentMaterialMenu=dt instanceof De?dt:void 0,ge.nativeElement.addEventListener("touchstart",this._handleTouchStart,je)}ngAfterContentInit(){this._handleHover()}ngOnDestroy(){this._overlayRef&&(this._overlayRef.dispose(),this._overlayRef=null),this._element.nativeElement.removeEventListener("touchstart",this._handleTouchStart,je),this._menuCloseSubscription.unsubscribe(),this._closingActionsSubscription.unsubscribe(),this._hoverSubscription.unsubscribe()}get menuOpen(){return this._menuOpen}get dir(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"}triggersSubmenu(){return!!(this._menuItemInstance&&this._parentMaterialMenu&&this.menu)}toggleMenu(){return this._menuOpen?this.closeMenu():this.openMenu()}openMenu(){const ae=this.menu;if(this._menuOpen||!ae)return;const ge=this._createOverlay(ae),ft=ge.getConfig(),Je=ft.positionStrategy;this._setPosition(ae,Je),ft.hasBackdrop=null==ae.hasBackdrop?!this.triggersSubmenu():ae.hasBackdrop,ge.attach(this._getPortal(ae)),ae.lazyContent&&ae.lazyContent.attach(this.menuData),this._closingActionsSubscription=this._menuClosingActions().subscribe(()=>this.closeMenu()),this._initMenu(ae),ae instanceof De&&(ae._startAnimation(),ae._directDescendantItems.changes.pipe((0,E.R)(ae.close)).subscribe(()=>{Je.withLockedPosition(!1).reapplyLastPosition(),Je.withLockedPosition(!0)}))}closeMenu(){this.menu?.close.emit()}focus(ae,ge){this._focusMonitor&&ae?this._focusMonitor.focusVia(this._element,ae,ge):this._element.nativeElement.focus(ge)}updatePosition(){this._overlayRef?.updatePosition()}_destroyMenu(ae){if(!this._overlayRef||!this.menuOpen)return;const ge=this.menu;this._closingActionsSubscription.unsubscribe(),this._overlayRef.detach(),this.restoreFocus&&("keydown"===ae||!this._openedBy||!this.triggersSubmenu())&&this.focus(this._openedBy),this._openedBy=void 0,ge instanceof De?(ge._resetAnimation(),ge.lazyContent?ge._animationDone.pipe((0,R.h)(ft=>"void"===ft.toState),(0,O.q)(1),(0,E.R)(ge.lazyContent._attached)).subscribe({next:()=>ge.lazyContent.detach(),complete:()=>this._setIsMenuOpen(!1)}):this._setIsMenuOpen(!1)):(this._setIsMenuOpen(!1),ge?.lazyContent?.detach())}_initMenu(ae){ae.parentMenu=this.triggersSubmenu()?this._parentMaterialMenu:void 0,ae.direction=this.dir,this._setMenuElevation(ae),ae.focusFirstItem(this._openedBy||"program"),this._setIsMenuOpen(!0)}_setMenuElevation(ae){if(ae.setElevation){let ge=0,ft=ae.parentMenu;for(;ft;)ge++,ft=ft.parentMenu;ae.setElevation(ge)}}_setIsMenuOpen(ae){ae!==this._menuOpen&&(this._menuOpen=ae,this._menuOpen?this.menuOpened.emit():this.menuClosed.emit(),this.triggersSubmenu()&&this._menuItemInstance._setHighlighted(ae),this._changeDetectorRef.markForCheck())}_createOverlay(ae){if(!this._overlayRef){const ge=this._getOverlayConfig(ae);this._subscribeToPositions(ae,ge.positionStrategy),this._overlayRef=this._overlay.create(ge),this._overlayRef.keydownEvents().subscribe()}return this._overlayRef}_getOverlayConfig(ae){return new ue.X_({positionStrategy:this._overlay.position().flexibleConnectedTo(this._element).withLockedPosition().withGrowAfterOpen().withTransformOriginOn(".mat-menu-panel, .mat-mdc-menu-panel"),backdropClass:ae.backdropClass||"cdk-overlay-transparent-backdrop",panelClass:ae.overlayPanelClass,scrollStrategy:this._scrollStrategy(),direction:this._dir})}_subscribeToPositions(ae,ge){ae.setPositionClasses&&ge.positionChanges.subscribe(ft=>{const Je="start"===ft.connectionPair.overlayX?"after":"before",dt="top"===ft.connectionPair.overlayY?"below":"above";this._ngZone?this._ngZone.run(()=>ae.setPositionClasses(Je,dt)):ae.setPositionClasses(Je,dt)})}_setPosition(ae,ge){let[ft,Je]="before"===ae.xPosition?["end","start"]:["start","end"],[dt,Et]="above"===ae.yPosition?["bottom","top"]:["top","bottom"],[pt,ot]=[dt,Et],[wt,ke]=[ft,Je],Ke=0;if(this.triggersSubmenu()){if(ke=ft="before"===ae.xPosition?"start":"end",Je=wt="end"===ft?"start":"end",this._parentMaterialMenu){if(null==this._parentInnerPadding){const xt=this._parentMaterialMenu.items.first;this._parentInnerPadding=xt?xt._getHostElement().offsetTop:0}Ke="bottom"===dt?this._parentInnerPadding:-this._parentInnerPadding}}else ae.overlapTrigger||(pt="top"===dt?"bottom":"top",ot="top"===Et?"bottom":"top");ge.withPositions([{originX:ft,originY:pt,overlayX:wt,overlayY:dt,offsetY:Ke},{originX:Je,originY:pt,overlayX:ke,overlayY:dt,offsetY:Ke},{originX:ft,originY:ot,overlayX:wt,overlayY:Et,offsetY:-Ke},{originX:Je,originY:ot,overlayX:ke,overlayY:Et,offsetY:-Ke}])}_menuClosingActions(){const ae=this._overlayRef.backdropClick(),ge=this._overlayRef.detachments(),ft=this._parentMaterialMenu?this._parentMaterialMenu.closed:(0,P.of)(),Je=this._parentMaterialMenu?this._parentMaterialMenu._hovered().pipe((0,R.h)(dt=>dt!==this._menuItemInstance),(0,R.h)(()=>this._menuOpen)):(0,P.of)();return(0,C.T)(ae,ft,Je,ge)}_handleMousedown(ae){(0,e.X6)(ae)||(this._openedBy=0===ae.button?"mouse":void 0,this.triggersSubmenu()&&ae.preventDefault())}_handleKeydown(ae){const ge=ae.keyCode;(ge===I.K5||ge===I.L_)&&(this._openedBy="keyboard"),this.triggersSubmenu()&&(ge===I.SV&&"ltr"===this.dir||ge===I.oh&&"rtl"===this.dir)&&(this._openedBy="keyboard",this.openMenu())}_handleClick(ae){this.triggersSubmenu()?(ae.stopPropagation(),this.openMenu()):this.toggleMenu()}_handleHover(){!this.triggersSubmenu()||!this._parentMaterialMenu||(this._hoverSubscription=this._parentMaterialMenu._hovered().pipe((0,R.h)(ae=>ae===this._menuItemInstance&&!ae.disabled),(0,z.g)(0,d.E)).subscribe(()=>{this._openedBy="mouse",this.menu instanceof De&&this.menu._isAnimating?this.menu._animationDone.pipe((0,O.q)(1),(0,z.g)(0,d.E),(0,E.R)(this._parentMaterialMenu._hovered())).subscribe(()=>this.openMenu()):this.openMenu()}))}_getPortal(ae){return(!this._portal||this._portal.templateRef!==ae.templateRef)&&(this._portal=new K.UE(ae.templateRef,this._viewContainerRef)),this._portal}}return Ue.\u0275fac=function(ae){return new(ae||Ue)(t.Y36(ue.aV),t.Y36(t.SBq),t.Y36(t.s_b),t.Y36(ce),t.Y36(u,8),t.Y36(y,10),t.Y36(ie.Is,8),t.Y36(e.tE),t.Y36(t.R0b))},Ue.\u0275dir=t.lG2({type:Ue,hostVars:3,hostBindings:function(ae,ge){1&ae&&t.NdJ("click",function(Je){return ge._handleClick(Je)})("mousedown",function(Je){return ge._handleMousedown(Je)})("keydown",function(Je){return ge._handleKeydown(Je)}),2&ae&&t.uIk("aria-haspopup",ge.menu?"menu":null)("aria-expanded",ge.menuOpen)("aria-controls",ge.menuOpen?ge.menu.panelId:null)},inputs:{_deprecatedMatMenuTriggerFor:["mat-menu-trigger-for","_deprecatedMatMenuTriggerFor"],menu:["matMenuTriggerFor","menu"],menuData:["matMenuTriggerData","menuData"],restoreFocus:["matMenuTriggerRestoreFocus","restoreFocus"]},outputs:{menuOpened:"menuOpened",onMenuOpen:"onMenuOpen",menuClosed:"menuClosed",onMenuClose:"onMenuClose"}}),Ue})(),Ce=(()=>{class Ue extends he{}return Ue.\u0275fac=function(){let Be;return function(ge){return(Be||(Be=t.n5z(Ue)))(ge||Ue)}}(),Ue.\u0275dir=t.lG2({type:Ue,selectors:[["","mat-menu-trigger-for",""],["","matMenuTriggerFor",""]],hostAttrs:[1,"mat-mdc-menu-trigger"],exportAs:["matMenuTrigger"],features:[t.qOj]}),Ue})(),te=(()=>{class Ue{}return Ue.\u0275fac=function(ae){return new(ae||Ue)},Ue.\u0275mod=t.oAB({type:Ue}),Ue.\u0275inj=t.cJS({providers:[oe],imports:[W.ez,U.si,U.BQ,ue.U8,ne.ZD,U.BQ]}),Ue})()},8739:(Ve,q,p)=>{"use strict";p.d(q,{NW:()=>$,TU:()=>me,ye:()=>U});var t=p(6895),e=p(4650),b=p(7579),I=p(4859),s=p(4385),C=p(266),h=p(3238),P=p(1281),d=p(9549);function S(A,i){if(1&A&&(e.TgZ(0,"mat-option",19),e._uU(1),e.qZA()),2&A){const a=i.$implicit;e.Q6J("value",a),e.xp6(1),e.hij(" ",a," ")}}function w(A,i){if(1&A){const a=e.EpF();e.TgZ(0,"mat-form-field",16)(1,"mat-select",17),e.NdJ("selectionChange",function(l){e.CHM(a);const y=e.oxw(2);return e.KtG(y._changePageSize(l.value))}),e.YNc(2,S,2,2,"mat-option",18),e.qZA()()}if(2&A){const a=e.oxw(2);e.Q6J("appearance",a._formFieldAppearance)("color",a.color),e.xp6(1),e.Q6J("value",a.pageSize)("disabled",a.disabled)("aria-labelledby",a._pageSizeLabelId)("panelClass",a.selectConfig.panelClass||"")("disableOptionCentering",a.selectConfig.disableOptionCentering),e.xp6(1),e.Q6J("ngForOf",a._displayedPageSizeOptions)}}function O(A,i){if(1&A&&(e.TgZ(0,"div",20),e._uU(1),e.qZA()),2&A){const a=e.oxw(2);e.xp6(1),e.Oqu(a.pageSize)}}function E(A,i){if(1&A&&(e.TgZ(0,"div",12)(1,"div",13),e._uU(2),e.qZA(),e.YNc(3,w,3,8,"mat-form-field",14),e.YNc(4,O,2,1,"div",15),e.qZA()),2&A){const a=e.oxw();e.xp6(1),e.s9C("id",a._pageSizeLabelId),e.xp6(1),e.hij(" ",a._intl.itemsPerPageLabel," "),e.xp6(1),e.Q6J("ngIf",a._displayedPageSizeOptions.length>1),e.xp6(1),e.Q6J("ngIf",a._displayedPageSizeOptions.length<=1)}}function R(A,i){if(1&A){const a=e.EpF();e.TgZ(0,"button",21),e.NdJ("click",function(){e.CHM(a);const l=e.oxw();return e.KtG(l.firstPage())}),e.O4$(),e.TgZ(1,"svg",7),e._UZ(2,"path",22),e.qZA()()}if(2&A){const a=e.oxw();e.Q6J("matTooltip",a._intl.firstPageLabel)("matTooltipDisabled",a._previousButtonsDisabled())("matTooltipPosition","above")("disabled",a._previousButtonsDisabled()),e.uIk("aria-label",a._intl.firstPageLabel)}}function z(A,i){if(1&A){const a=e.EpF();e.O4$(),e.kcU(),e.TgZ(0,"button",23),e.NdJ("click",function(){e.CHM(a);const l=e.oxw();return e.KtG(l.lastPage())}),e.O4$(),e.TgZ(1,"svg",7),e._UZ(2,"path",24),e.qZA()()}if(2&A){const a=e.oxw();e.Q6J("matTooltip",a._intl.lastPageLabel)("matTooltipDisabled",a._nextButtonsDisabled())("matTooltipPosition","above")("disabled",a._nextButtonsDisabled()),e.uIk("aria-label",a._intl.lastPageLabel)}}let U=(()=>{class A{constructor(){this.changes=new b.x,this.itemsPerPageLabel="Items per page:",this.nextPageLabel="Next page",this.previousPageLabel="Previous page",this.firstPageLabel="First page",this.lastPageLabel="Last page",this.getRangeLabel=(a,u,l)=>{if(0==l||0==u)return`0 of ${l}`;const y=a*u;return`${y+1} \u2013 ${y<(l=Math.max(l,0))?Math.min(y+u,l):y+u} of ${l}`}}}return A.\u0275fac=function(a){return new(a||A)},A.\u0275prov=e.Yz7({token:A,factory:A.\u0275fac,providedIn:"root"}),A})();const K={provide:U,deps:[[new e.FiY,new e.tp0,U]],useFactory:function W(A){return A||new U}},ue=new e.OlP("MAT_PAGINATOR_DEFAULT_OPTIONS"),le=(0,h.Id)((0,h.dB)(class{}));let ne=(()=>{class A extends le{get pageIndex(){return this._pageIndex}set pageIndex(a){this._pageIndex=Math.max((0,P.su)(a),0),this._changeDetectorRef.markForCheck()}get length(){return this._length}set length(a){this._length=(0,P.su)(a),this._changeDetectorRef.markForCheck()}get pageSize(){return this._pageSize}set pageSize(a){this._pageSize=Math.max((0,P.su)(a),0),this._updateDisplayedPageSizeOptions()}get pageSizeOptions(){return this._pageSizeOptions}set pageSizeOptions(a){this._pageSizeOptions=(a||[]).map(u=>(0,P.su)(u)),this._updateDisplayedPageSizeOptions()}get hidePageSize(){return this._hidePageSize}set hidePageSize(a){this._hidePageSize=(0,P.Ig)(a)}get showFirstLastButtons(){return this._showFirstLastButtons}set showFirstLastButtons(a){this._showFirstLastButtons=(0,P.Ig)(a)}constructor(a,u,l){if(super(),this._intl=a,this._changeDetectorRef=u,this._pageIndex=0,this._length=0,this._pageSizeOptions=[],this._hidePageSize=!1,this._showFirstLastButtons=!1,this.selectConfig={},this.page=new e.vpe,this._intlChanges=a.changes.subscribe(()=>this._changeDetectorRef.markForCheck()),l){const{pageSize:y,pageSizeOptions:T,hidePageSize:L,showFirstLastButtons:m}=l;null!=y&&(this._pageSize=y),null!=T&&(this._pageSizeOptions=T),null!=L&&(this._hidePageSize=L),null!=m&&(this._showFirstLastButtons=m)}}ngOnInit(){this._initialized=!0,this._updateDisplayedPageSizeOptions(),this._markInitialized()}ngOnDestroy(){this._intlChanges.unsubscribe()}nextPage(){if(!this.hasNextPage())return;const a=this.pageIndex;this.pageIndex=this.pageIndex+1,this._emitPageEvent(a)}previousPage(){if(!this.hasPreviousPage())return;const a=this.pageIndex;this.pageIndex=this.pageIndex-1,this._emitPageEvent(a)}firstPage(){if(!this.hasPreviousPage())return;const a=this.pageIndex;this.pageIndex=0,this._emitPageEvent(a)}lastPage(){if(!this.hasNextPage())return;const a=this.pageIndex;this.pageIndex=this.getNumberOfPages()-1,this._emitPageEvent(a)}hasPreviousPage(){return this.pageIndex>=1&&0!=this.pageSize}hasNextPage(){const a=this.getNumberOfPages()-1;return this.pageIndex<a&&0!=this.pageSize}getNumberOfPages(){return this.pageSize?Math.ceil(this.length/this.pageSize):0}_changePageSize(a){const l=this.pageIndex;this.pageIndex=Math.floor(this.pageIndex*this.pageSize/a)||0,this.pageSize=a,this._emitPageEvent(l)}_nextButtonsDisabled(){return this.disabled||!this.hasNextPage()}_previousButtonsDisabled(){return this.disabled||!this.hasPreviousPage()}_updateDisplayedPageSizeOptions(){this._initialized&&(this.pageSize||(this._pageSize=0!=this.pageSizeOptions.length?this.pageSizeOptions[0]:50),this._displayedPageSizeOptions=this.pageSizeOptions.slice(),-1===this._displayedPageSizeOptions.indexOf(this.pageSize)&&this._displayedPageSizeOptions.push(this.pageSize),this._displayedPageSizeOptions.sort((a,u)=>a-u),this._changeDetectorRef.markForCheck())}_emitPageEvent(a){this.page.emit({previousPageIndex:a,pageIndex:this.pageIndex,pageSize:this.pageSize,length:this.length})}}return A.\u0275fac=function(a){e.$Z()},A.\u0275dir=e.lG2({type:A,inputs:{color:"color",pageIndex:"pageIndex",length:"length",pageSize:"pageSize",pageSizeOptions:"pageSizeOptions",hidePageSize:"hidePageSize",showFirstLastButtons:"showFirstLastButtons",selectConfig:"selectConfig"},outputs:{page:"page"},features:[e.qOj]}),A})(),de=0,$=(()=>{class A extends ne{constructor(a,u,l){super(a,u,l),this._pageSizeLabelId="mat-paginator-page-size-label-"+de++,this._formFieldAppearance=l?.formFieldAppearance||"outline"}}return A.\u0275fac=function(a){return new(a||A)(e.Y36(U),e.Y36(e.sBO),e.Y36(ue,8))},A.\u0275cmp=e.Xpm({type:A,selectors:[["mat-paginator"]],hostAttrs:["role","group",1,"mat-mdc-paginator"],inputs:{disabled:"disabled"},exportAs:["matPaginator"],features:[e.qOj],decls:14,vars:14,consts:[[1,"mat-mdc-paginator-outer-container"],[1,"mat-mdc-paginator-container"],["class","mat-mdc-paginator-page-size",4,"ngIf"],[1,"mat-mdc-paginator-range-actions"],["aria-live","polite",1,"mat-mdc-paginator-range-label"],["mat-icon-button","","type","button","class","mat-mdc-paginator-navigation-first",3,"matTooltip","matTooltipDisabled","matTooltipPosition","disabled","click",4,"ngIf"],["mat-icon-button","","type","button",1,"mat-mdc-paginator-navigation-previous",3,"matTooltip","matTooltipDisabled","matTooltipPosition","disabled","click"],["viewBox","0 0 24 24","focusable","false",1,"mat-mdc-paginator-icon"],["d","M15.41 7.41L14 6l-6 6 6 6 1.41-1.41L10.83 12z"],["mat-icon-button","","type","button",1,"mat-mdc-paginator-navigation-next",3,"matTooltip","matTooltipDisabled","matTooltipPosition","disabled","click"],["d","M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"],["mat-icon-button","","type","button","class","mat-mdc-paginator-navigation-last",3,"matTooltip","matTooltipDisabled","matTooltipPosition","disabled","click",4,"ngIf"],[1,"mat-mdc-paginator-page-size"],[1,"mat-mdc-paginator-page-size-label",3,"id"],["class","mat-mdc-paginator-page-size-select",3,"appearance","color",4,"ngIf"],["class","mat-mdc-paginator-page-size-value",4,"ngIf"],[1,"mat-mdc-paginator-page-size-select",3,"appearance","color"],[3,"value","disabled","aria-labelledby","panelClass","disableOptionCentering","selectionChange"],[3,"value",4,"ngFor","ngForOf"],[3,"value"],[1,"mat-mdc-paginator-page-size-value"],["mat-icon-button","","type","button",1,"mat-mdc-paginator-navigation-first",3,"matTooltip","matTooltipDisabled","matTooltipPosition","disabled","click"],["d","M18.41 16.59L13.82 12l4.59-4.59L17 6l-6 6 6 6zM6 6h2v12H6z"],["mat-icon-button","","type","button",1,"mat-mdc-paginator-navigation-last",3,"matTooltip","matTooltipDisabled","matTooltipPosition","disabled","click"],["d","M5.59 7.41L10.18 12l-4.59 4.59L7 18l6-6-6-6zM16 6h2v12h-2z"]],template:function(a,u){1&a&&(e.TgZ(0,"div",0)(1,"div",1),e.YNc(2,E,5,4,"div",2),e.TgZ(3,"div",3)(4,"div",4),e._uU(5),e.qZA(),e.YNc(6,R,3,5,"button",5),e.TgZ(7,"button",6),e.NdJ("click",function(){return u.previousPage()}),e.O4$(),e.TgZ(8,"svg",7),e._UZ(9,"path",8),e.qZA()(),e.kcU(),e.TgZ(10,"button",9),e.NdJ("click",function(){return u.nextPage()}),e.O4$(),e.TgZ(11,"svg",7),e._UZ(12,"path",10),e.qZA()(),e.YNc(13,z,3,5,"button",11),e.qZA()()()),2&a&&(e.xp6(2),e.Q6J("ngIf",!u.hidePageSize),e.xp6(3),e.hij(" ",u._intl.getRangeLabel(u.pageIndex,u.pageSize,u.length)," "),e.xp6(1),e.Q6J("ngIf",u.showFirstLastButtons),e.xp6(1),e.Q6J("matTooltip",u._intl.previousPageLabel)("matTooltipDisabled",u._previousButtonsDisabled())("matTooltipPosition","above")("disabled",u._previousButtonsDisabled()),e.uIk("aria-label",u._intl.previousPageLabel),e.xp6(3),e.Q6J("matTooltip",u._intl.nextPageLabel)("matTooltipDisabled",u._nextButtonsDisabled())("matTooltipPosition","above")("disabled",u._nextButtonsDisabled()),e.uIk("aria-label",u._intl.nextPageLabel),e.xp6(3),e.Q6J("ngIf",u.showFirstLastButtons))},dependencies:[t.sg,t.O5,I.RK,d.KE,s.gD,h.ey,C.gM],styles:[".mat-mdc-paginator{display:block}.mat-mdc-paginator .mat-mdc-form-field-subscript-wrapper{display:none}.mat-mdc-paginator .mat-mdc-select{line-height:1.5}.mat-mdc-paginator-outer-container{display:flex}.mat-mdc-paginator-container{display:flex;align-items:center;justify-content:flex-end;padding:0 8px;flex-wrap:wrap-reverse;width:100%}.mat-mdc-paginator-page-size{display:flex;align-items:baseline;margin-right:8px}[dir=rtl] .mat-mdc-paginator-page-size{margin-right:0;margin-left:8px}.mat-mdc-paginator-page-size-label{margin:0 4px}.mat-mdc-paginator-page-size-select{margin:0 4px;width:84px}.mat-mdc-paginator-range-label{margin:0 32px 0 24px}.mat-mdc-paginator-range-actions{display:flex;align-items:center}.mat-mdc-paginator-icon{display:inline-block;width:28px}[dir=rtl] .mat-mdc-paginator-icon{transform:rotate(180deg)}.cdk-high-contrast-active .mat-mdc-icon-button[disabled] .mat-mdc-paginator-icon,.cdk-high-contrast-active .mat-mdc-paginator-icon{fill:currentColor;fill:CanvasText}.cdk-high-contrast-active .mat-mdc-paginator-range-actions .mat-mdc-icon-button{outline:solid 1px}"],encapsulation:2,changeDetection:0}),A})(),me=(()=>{class A{}return A.\u0275fac=function(a){return new(a||A)},A.\u0275mod=e.oAB({type:A}),A.\u0275inj=e.cJS({providers:[K],imports:[t.ez,I.ot,s.LD,C.AV]}),A})()},3162:(Ve,q,p)=>{"use strict";p.d(q,{Cv:()=>w,pW:()=>d});var t=p(4650),b=(p(6895),p(3238)),I=p(1281);const s=new t.OlP("MAT_PROGRESS_BAR_DEFAULT_OPTIONS"),P=(0,b.pj)(class{constructor(O){this._elementRef=O}},"primary");let d=(()=>{class O extends P{constructor(R,z,U,W,K){super(R),this._ngZone=z,this._changeDetectorRef=U,this._animationMode=W,this._isNoopAnimation=!1,this._value=0,this._bufferValue=0,this.animationEnd=new t.vpe,this._mode="determinate",this._transitionendHandler=ee=>{0===this.animationEnd.observers.length||!ee.target||!ee.target.classList.contains("mdc-linear-progress__primary-bar")||("determinate"===this.mode||"buffer"===this.mode)&&this._ngZone.run(()=>this.animationEnd.next({value:this.value}))},this._isNoopAnimation="NoopAnimations"===W,K&&(K.color&&(this.color=this.defaultColor=K.color),this.mode=K.mode||this.mode)}get value(){return this._value}set value(R){this._value=S((0,I.su)(R)),this._changeDetectorRef.markForCheck()}get bufferValue(){return this._bufferValue||0}set bufferValue(R){this._bufferValue=S((0,I.su)(R)),this._changeDetectorRef.markForCheck()}get mode(){return this._mode}set mode(R){this._mode=R,this._changeDetectorRef.markForCheck()}ngAfterViewInit(){this._ngZone.runOutsideAngular(()=>{this._elementRef.nativeElement.addEventListener("transitionend",this._transitionendHandler)})}ngOnDestroy(){this._elementRef.nativeElement.removeEventListener("transitionend",this._transitionendHandler)}_getPrimaryBarTransform(){return`scaleX(${this._isIndeterminate()?1:this.value/100})`}_getBufferBarFlexBasis(){return`${"buffer"===this.mode?this.bufferValue:100}%`}_isIndeterminate(){return"indeterminate"===this.mode||"query"===this.mode}}return O.\u0275fac=function(R){return new(R||O)(t.Y36(t.SBq),t.Y36(t.R0b),t.Y36(t.sBO),t.Y36(t.QbO,8),t.Y36(s,8))},O.\u0275cmp=t.Xpm({type:O,selectors:[["mat-progress-bar"]],hostAttrs:["role","progressbar","aria-valuemin","0","aria-valuemax","100","tabindex","-1",1,"mat-mdc-progress-bar","mdc-linear-progress"],hostVars:8,hostBindings:function(R,z){2&R&&(t.uIk("aria-valuenow",z._isIndeterminate()?null:z.value)("mode",z.mode),t.ekj("_mat-animation-noopable",z._isNoopAnimation)("mdc-linear-progress--animation-ready",!z._isNoopAnimation)("mdc-linear-progress--indeterminate",z._isIndeterminate()))},inputs:{color:"color",value:"value",bufferValue:"bufferValue",mode:"mode"},outputs:{animationEnd:"animationEnd"},exportAs:["matProgressBar"],features:[t.qOj],decls:7,vars:4,consts:[["aria-hidden","true",1,"mdc-linear-progress__buffer"],[1,"mdc-linear-progress__buffer-bar"],[1,"mdc-linear-progress__buffer-dots"],["aria-hidden","true",1,"mdc-linear-progress__bar","mdc-linear-progress__primary-bar"],[1,"mdc-linear-progress__bar-inner"],["aria-hidden","true",1,"mdc-linear-progress__bar","mdc-linear-progress__secondary-bar"]],template:function(R,z){1&R&&(t.TgZ(0,"div",0),t._UZ(1,"div",1)(2,"div",2),t.qZA(),t.TgZ(3,"div",3),t._UZ(4,"span",4),t.qZA(),t.TgZ(5,"div",5),t._UZ(6,"span",4),t.qZA()),2&R&&(t.xp6(1),t.Udp("flex-basis",z._getBufferBarFlexBasis()),t.xp6(2),t.Udp("transform",z._getPrimaryBarTransform()))},styles:["@keyframes mdc-linear-progress-primary-indeterminate-translate{0%{transform:translateX(0)}20%{animation-timing-function:cubic-bezier(0.5, 0, 0.701732, 0.495819);transform:translateX(0)}59.15%{animation-timing-function:cubic-bezier(0.302435, 0.381352, 0.55, 0.956352);transform:translateX(var(--mdc-linear-progress-primary-half, 83.67142%))}100%{transform:translateX(var(--mdc-linear-progress-primary-full, 200.611057%))}}@keyframes mdc-linear-progress-primary-indeterminate-scale{0%{transform:scaleX(0.08)}36.65%{animation-timing-function:cubic-bezier(0.334731, 0.12482, 0.785844, 1);transform:scaleX(0.08)}69.15%{animation-timing-function:cubic-bezier(0.06, 0.11, 0.6, 1);transform:scaleX(0.661479)}100%{transform:scaleX(0.08)}}@keyframes mdc-linear-progress-secondary-indeterminate-translate{0%{animation-timing-function:cubic-bezier(0.15, 0, 0.515058, 0.409685);transform:translateX(0)}25%{animation-timing-function:cubic-bezier(0.31033, 0.284058, 0.8, 0.733712);transform:translateX(var(--mdc-linear-progress-secondary-quarter, 37.651913%))}48.35%{animation-timing-function:cubic-bezier(0.4, 0.627035, 0.6, 0.902026);transform:translateX(var(--mdc-linear-progress-secondary-half, 84.386165%))}100%{transform:translateX(var(--mdc-linear-progress-secondary-full, 160.277782%))}}@keyframes mdc-linear-progress-secondary-indeterminate-scale{0%{animation-timing-function:cubic-bezier(0.205028, 0.057051, 0.57661, 0.453971);transform:scaleX(0.08)}19.15%{animation-timing-function:cubic-bezier(0.152313, 0.196432, 0.648374, 1.004315);transform:scaleX(0.457104)}44.15%{animation-timing-function:cubic-bezier(0.257759, -0.003163, 0.211762, 1.38179);transform:scaleX(0.72796)}100%{transform:scaleX(0.08)}}@keyframes mdc-linear-progress-buffering{from{transform:rotate(180deg) translateX(-10px)}}@keyframes mdc-linear-progress-primary-indeterminate-translate-reverse{0%{transform:translateX(0)}20%{animation-timing-function:cubic-bezier(0.5, 0, 0.701732, 0.495819);transform:translateX(0)}59.15%{animation-timing-function:cubic-bezier(0.302435, 0.381352, 0.55, 0.956352);transform:translateX(var(--mdc-linear-progress-primary-half-neg, -83.67142%))}100%{transform:translateX(var(--mdc-linear-progress-primary-full-neg, -200.611057%))}}@keyframes mdc-linear-progress-secondary-indeterminate-translate-reverse{0%{animation-timing-function:cubic-bezier(0.15, 0, 0.515058, 0.409685);transform:translateX(0)}25%{animation-timing-function:cubic-bezier(0.31033, 0.284058, 0.8, 0.733712);transform:translateX(var(--mdc-linear-progress-secondary-quarter-neg, -37.651913%))}48.35%{animation-timing-function:cubic-bezier(0.4, 0.627035, 0.6, 0.902026);transform:translateX(var(--mdc-linear-progress-secondary-half-neg, -84.386165%))}100%{transform:translateX(var(--mdc-linear-progress-secondary-full-neg, -160.277782%))}}@keyframes mdc-linear-progress-buffering-reverse{from{transform:translateX(-10px)}}.mdc-linear-progress{position:relative;width:100%;transform:translateZ(0);outline:1px solid rgba(0,0,0,0);overflow:hidden;transition:opacity 250ms 0ms cubic-bezier(0.4, 0, 0.6, 1)}@media screen and (forced-colors: active){.mdc-linear-progress{outline-color:CanvasText}}.mdc-linear-progress__bar{position:absolute;width:100%;height:100%;animation:none;transform-origin:top left;transition:transform 250ms 0ms cubic-bezier(0.4, 0, 0.6, 1)}.mdc-linear-progress__bar-inner{display:inline-block;position:absolute;width:100%;animation:none;border-top-style:solid}.mdc-linear-progress__buffer{display:flex;position:absolute;width:100%;height:100%}.mdc-linear-progress__buffer-dots{background-repeat:repeat-x;flex:auto;transform:rotate(180deg);animation:mdc-linear-progress-buffering 250ms infinite linear}.mdc-linear-progress__buffer-bar{flex:0 1 100%;transition:flex-basis 250ms 0ms cubic-bezier(0.4, 0, 0.6, 1)}.mdc-linear-progress__primary-bar{transform:scaleX(0)}.mdc-linear-progress__secondary-bar{display:none}.mdc-linear-progress--indeterminate .mdc-linear-progress__bar{transition:none}.mdc-linear-progress--indeterminate .mdc-linear-progress__primary-bar{left:-145.166611%}.mdc-linear-progress--indeterminate .mdc-linear-progress__secondary-bar{left:-54.888891%;display:block}.mdc-linear-progress--indeterminate.mdc-linear-progress--animation-ready .mdc-linear-progress__primary-bar{animation:mdc-linear-progress-primary-indeterminate-translate 2s infinite linear}.mdc-linear-progress--indeterminate.mdc-linear-progress--animation-ready .mdc-linear-progress__primary-bar>.mdc-linear-progress__bar-inner{animation:mdc-linear-progress-primary-indeterminate-scale 2s infinite linear}.mdc-linear-progress--indeterminate.mdc-linear-progress--animation-ready .mdc-linear-progress__secondary-bar{animation:mdc-linear-progress-secondary-indeterminate-translate 2s infinite linear}.mdc-linear-progress--indeterminate.mdc-linear-progress--animation-ready .mdc-linear-progress__secondary-bar>.mdc-linear-progress__bar-inner{animation:mdc-linear-progress-secondary-indeterminate-scale 2s infinite linear}[dir=rtl] .mdc-linear-progress:not([dir=ltr]) .mdc-linear-progress__bar,.mdc-linear-progress[dir=rtl]:not([dir=ltr]) .mdc-linear-progress__bar{right:0;-webkit-transform-origin:center right;transform-origin:center right}[dir=rtl] .mdc-linear-progress:not([dir=ltr]).mdc-linear-progress--animation-ready .mdc-linear-progress__primary-bar,.mdc-linear-progress[dir=rtl]:not([dir=ltr]).mdc-linear-progress--animation-ready .mdc-linear-progress__primary-bar{animation-name:mdc-linear-progress-primary-indeterminate-translate-reverse}[dir=rtl] .mdc-linear-progress:not([dir=ltr]).mdc-linear-progress--animation-ready .mdc-linear-progress__secondary-bar,.mdc-linear-progress[dir=rtl]:not([dir=ltr]).mdc-linear-progress--animation-ready .mdc-linear-progress__secondary-bar{animation-name:mdc-linear-progress-secondary-indeterminate-translate-reverse}[dir=rtl] .mdc-linear-progress:not([dir=ltr]) .mdc-linear-progress__buffer-dots,.mdc-linear-progress[dir=rtl]:not([dir=ltr]) .mdc-linear-progress__buffer-dots{animation:mdc-linear-progress-buffering-reverse 250ms infinite linear;transform:rotate(0)}[dir=rtl] .mdc-linear-progress:not([dir=ltr]).mdc-linear-progress--indeterminate .mdc-linear-progress__primary-bar,.mdc-linear-progress[dir=rtl]:not([dir=ltr]).mdc-linear-progress--indeterminate .mdc-linear-progress__primary-bar{right:-145.166611%;left:auto}[dir=rtl] .mdc-linear-progress:not([dir=ltr]).mdc-linear-progress--indeterminate .mdc-linear-progress__secondary-bar,.mdc-linear-progress[dir=rtl]:not([dir=ltr]).mdc-linear-progress--indeterminate .mdc-linear-progress__secondary-bar{right:-54.888891%;left:auto}.mdc-linear-progress--closed{opacity:0}.mdc-linear-progress--closed-animation-off .mdc-linear-progress__buffer-dots{animation:none}.mdc-linear-progress--closed-animation-off.mdc-linear-progress--indeterminate .mdc-linear-progress__bar,.mdc-linear-progress--closed-animation-off.mdc-linear-progress--indeterminate .mdc-linear-progress__bar .mdc-linear-progress__bar-inner{animation:none}.mdc-linear-progress__bar-inner{border-color:var(--mdc-linear-progress-active-indicator-color, #6200ee)}.mdc-linear-progress__buffer-dots{background-image:url(\"data:image/svg+xml,%3Csvg version='1.1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' x='0px' y='0px' enable-background='new 0 0 5 2' xml:space='preserve' viewBox='0 0 5 2' preserveAspectRatio='none slice'%3E%3Ccircle cx='1' cy='1' r='1' fill='%23e6e6e6'/%3E%3C/svg%3E\")}.mdc-linear-progress__buffer-bar{background-color:#e6e6e6}.mdc-linear-progress{height:var(--mdc-linear-progress-track-height, 4px)}.mdc-linear-progress__bar-inner{border-top-width:var(--mdc-linear-progress-track-height, 4px)}.mdc-linear-progress__buffer-dots{background-size:10px var(--mdc-linear-progress-track-height, 4px)}.mat-mdc-progress-bar{display:block}.mat-mdc-progress-bar[mode=query]{transform:scaleX(-1)}.mat-mdc-progress-bar._mat-animation-noopable .mdc-linear-progress__buffer-dots,.mat-mdc-progress-bar._mat-animation-noopable .mdc-linear-progress__primary-bar,.mat-mdc-progress-bar._mat-animation-noopable .mdc-linear-progress__secondary-bar,.mat-mdc-progress-bar._mat-animation-noopable .mdc-linear-progress__bar-inner.mdc-linear-progress__bar-inner{animation:none}.mat-mdc-progress-bar._mat-animation-noopable .mdc-linear-progress__primary-bar,.mat-mdc-progress-bar._mat-animation-noopable .mdc-linear-progress__buffer-bar{transition:transform 1ms}"],encapsulation:2,changeDetection:0}),O})();function S(O,E=0,R=100){return Math.max(E,Math.min(R,O))}let w=(()=>{class O{}return O.\u0275fac=function(R){return new(R||O)},O.\u0275mod=t.oAB({type:O}),O.\u0275inj=t.cJS({imports:[b.BQ]}),O})()},1572:(Ve,q,p)=>{"use strict";p.d(q,{Cq:()=>R,Ou:()=>O});var t=p(4650),e=p(3238),b=p(1281),I=p(6895);const s=["determinateSpinner"];function C(z,U){if(1&z&&(t.O4$(),t.TgZ(0,"svg",11),t._UZ(1,"circle",12),t.qZA()),2&z){const W=t.oxw();t.uIk("viewBox",W._viewBox()),t.xp6(1),t.Udp("stroke-dasharray",W._strokeCircumference(),"px")("stroke-dashoffset",W._strokeCircumference()/2,"px")("stroke-width",W._circleStrokeWidth(),"%"),t.uIk("r",W._circleRadius())}}const h=(0,e.pj)(class{constructor(z){this._elementRef=z}},"primary"),P=new t.OlP("mat-progress-spinner-default-options",{providedIn:"root",factory:function d(){return{diameter:S}}}),S=100;let O=(()=>{class z extends h{constructor(W,K,ee){super(W),this.mode="mat-spinner"===this._elementRef.nativeElement.nodeName.toLowerCase()?"indeterminate":"determinate",this._value=0,this._diameter=S,this._noopAnimations="NoopAnimations"===K&&!!ee&&!ee._forceAnimations,ee&&(ee.color&&(this.color=this.defaultColor=ee.color),ee.diameter&&(this.diameter=ee.diameter),ee.strokeWidth&&(this.strokeWidth=ee.strokeWidth))}get value(){return"determinate"===this.mode?this._value:0}set value(W){this._value=Math.max(0,Math.min(100,(0,b.su)(W)))}get diameter(){return this._diameter}set diameter(W){this._diameter=(0,b.su)(W)}get strokeWidth(){return this._strokeWidth??this.diameter/10}set strokeWidth(W){this._strokeWidth=(0,b.su)(W)}_circleRadius(){return(this.diameter-10)/2}_viewBox(){const W=2*this._circleRadius()+this.strokeWidth;return`0 0 ${W} ${W}`}_strokeCircumference(){return 2*Math.PI*this._circleRadius()}_strokeDashOffset(){return"determinate"===this.mode?this._strokeCircumference()*(100-this._value)/100:null}_circleStrokeWidth(){return this.strokeWidth/this.diameter*100}}return z.\u0275fac=function(W){return new(W||z)(t.Y36(t.SBq),t.Y36(t.QbO,8),t.Y36(P))},z.\u0275cmp=t.Xpm({type:z,selectors:[["mat-progress-spinner"],["mat-spinner"]],viewQuery:function(W,K){if(1&W&&t.Gf(s,5),2&W){let ee;t.iGM(ee=t.CRH())&&(K._determinateCircle=ee.first)}},hostAttrs:["role","progressbar","tabindex","-1",1,"mat-mdc-progress-spinner","mdc-circular-progress"],hostVars:12,hostBindings:function(W,K){2&W&&(t.uIk("aria-valuemin",0)("aria-valuemax",100)("aria-valuenow","determinate"===K.mode?K.value:null)("mode",K.mode),t.Udp("width",K.diameter,"px")("height",K.diameter,"px"),t.ekj("_mat-animation-noopable",K._noopAnimations)("mdc-circular-progress--indeterminate","indeterminate"===K.mode))},inputs:{color:"color",mode:"mode",value:"value",diameter:"diameter",strokeWidth:"strokeWidth"},exportAs:["matProgressSpinner"],features:[t.qOj],decls:14,vars:11,consts:[["circle",""],["aria-hidden","true",1,"mdc-circular-progress__determinate-container"],["determinateSpinner",""],["xmlns","http://www.w3.org/2000/svg","focusable","false",1,"mdc-circular-progress__determinate-circle-graphic"],["cx","50%","cy","50%",1,"mdc-circular-progress__determinate-circle"],["aria-hidden","true",1,"mdc-circular-progress__indeterminate-container"],[1,"mdc-circular-progress__spinner-layer"],[1,"mdc-circular-progress__circle-clipper","mdc-circular-progress__circle-left"],[3,"ngTemplateOutlet"],[1,"mdc-circular-progress__gap-patch"],[1,"mdc-circular-progress__circle-clipper","mdc-circular-progress__circle-right"],["xmlns","http://www.w3.org/2000/svg","focusable","false",1,"mdc-circular-progress__indeterminate-circle-graphic"],["cx","50%","cy","50%"]],template:function(W,K){if(1&W&&(t.YNc(0,C,2,8,"ng-template",null,0,t.W1O),t.TgZ(2,"div",1,2),t.O4$(),t.TgZ(4,"svg",3),t._UZ(5,"circle",4),t.qZA()(),t.kcU(),t.TgZ(6,"div",5)(7,"div",6)(8,"div",7),t.GkF(9,8),t.qZA(),t.TgZ(10,"div",9),t.GkF(11,8),t.qZA(),t.TgZ(12,"div",10),t.GkF(13,8),t.qZA()()()),2&W){const ee=t.MAs(1);t.xp6(4),t.uIk("viewBox",K._viewBox()),t.xp6(1),t.Udp("stroke-dasharray",K._strokeCircumference(),"px")("stroke-dashoffset",K._strokeDashOffset(),"px")("stroke-width",K._circleStrokeWidth(),"%"),t.uIk("r",K._circleRadius()),t.xp6(4),t.Q6J("ngTemplateOutlet",ee),t.xp6(2),t.Q6J("ngTemplateOutlet",ee),t.xp6(2),t.Q6J("ngTemplateOutlet",ee)}},dependencies:[I.tP],styles:["@keyframes mdc-circular-progress-container-rotate{to{transform:rotate(360deg)}}@keyframes mdc-circular-progress-spinner-layer-rotate{12.5%{transform:rotate(135deg)}25%{transform:rotate(270deg)}37.5%{transform:rotate(405deg)}50%{transform:rotate(540deg)}62.5%{transform:rotate(675deg)}75%{transform:rotate(810deg)}87.5%{transform:rotate(945deg)}100%{transform:rotate(1080deg)}}@keyframes mdc-circular-progress-color-1-fade-in-out{from{opacity:.99}25%{opacity:.99}26%{opacity:0}89%{opacity:0}90%{opacity:.99}to{opacity:.99}}@keyframes mdc-circular-progress-color-2-fade-in-out{from{opacity:0}15%{opacity:0}25%{opacity:.99}50%{opacity:.99}51%{opacity:0}to{opacity:0}}@keyframes mdc-circular-progress-color-3-fade-in-out{from{opacity:0}40%{opacity:0}50%{opacity:.99}75%{opacity:.99}76%{opacity:0}to{opacity:0}}@keyframes mdc-circular-progress-color-4-fade-in-out{from{opacity:0}65%{opacity:0}75%{opacity:.99}90%{opacity:.99}to{opacity:0}}@keyframes mdc-circular-progress-left-spin{from{transform:rotate(265deg)}50%{transform:rotate(130deg)}to{transform:rotate(265deg)}}@keyframes mdc-circular-progress-right-spin{from{transform:rotate(-265deg)}50%{transform:rotate(-130deg)}to{transform:rotate(-265deg)}}.mdc-circular-progress{display:inline-flex;position:relative;direction:ltr;line-height:0;transition:opacity 250ms 0ms cubic-bezier(0.4, 0, 0.6, 1)}.mdc-circular-progress__determinate-container,.mdc-circular-progress__indeterminate-circle-graphic,.mdc-circular-progress__indeterminate-container,.mdc-circular-progress__spinner-layer{position:absolute;width:100%;height:100%}.mdc-circular-progress__determinate-container{transform:rotate(-90deg)}.mdc-circular-progress__indeterminate-container{font-size:0;letter-spacing:0;white-space:nowrap;opacity:0}.mdc-circular-progress__determinate-circle-graphic,.mdc-circular-progress__indeterminate-circle-graphic{fill:rgba(0,0,0,0)}.mdc-circular-progress__determinate-circle{transition:stroke-dashoffset 500ms 0ms cubic-bezier(0, 0, 0.2, 1)}.mdc-circular-progress__gap-patch{position:absolute;top:0;left:47.5%;box-sizing:border-box;width:5%;height:100%;overflow:hidden}.mdc-circular-progress__gap-patch .mdc-circular-progress__indeterminate-circle-graphic{left:-900%;width:2000%;transform:rotate(180deg)}.mdc-circular-progress__circle-clipper{display:inline-flex;position:relative;width:50%;height:100%;overflow:hidden}.mdc-circular-progress__circle-clipper .mdc-circular-progress__indeterminate-circle-graphic{width:200%}.mdc-circular-progress__circle-right .mdc-circular-progress__indeterminate-circle-graphic{left:-100%}.mdc-circular-progress--indeterminate .mdc-circular-progress__determinate-container{opacity:0}.mdc-circular-progress--indeterminate .mdc-circular-progress__indeterminate-container{opacity:1}.mdc-circular-progress--indeterminate .mdc-circular-progress__indeterminate-container{animation:mdc-circular-progress-container-rotate 1568.2352941176ms linear infinite}.mdc-circular-progress--indeterminate .mdc-circular-progress__spinner-layer{animation:mdc-circular-progress-spinner-layer-rotate 5332ms cubic-bezier(0.4, 0, 0.2, 1) infinite both}.mdc-circular-progress--indeterminate .mdc-circular-progress__color-1{animation:mdc-circular-progress-spinner-layer-rotate 5332ms cubic-bezier(0.4, 0, 0.2, 1) infinite both,mdc-circular-progress-color-1-fade-in-out 5332ms cubic-bezier(0.4, 0, 0.2, 1) infinite both}.mdc-circular-progress--indeterminate .mdc-circular-progress__color-2{animation:mdc-circular-progress-spinner-layer-rotate 5332ms cubic-bezier(0.4, 0, 0.2, 1) infinite both,mdc-circular-progress-color-2-fade-in-out 5332ms cubic-bezier(0.4, 0, 0.2, 1) infinite both}.mdc-circular-progress--indeterminate .mdc-circular-progress__color-3{animation:mdc-circular-progress-spinner-layer-rotate 5332ms cubic-bezier(0.4, 0, 0.2, 1) infinite both,mdc-circular-progress-color-3-fade-in-out 5332ms cubic-bezier(0.4, 0, 0.2, 1) infinite both}.mdc-circular-progress--indeterminate .mdc-circular-progress__color-4{animation:mdc-circular-progress-spinner-layer-rotate 5332ms cubic-bezier(0.4, 0, 0.2, 1) infinite both,mdc-circular-progress-color-4-fade-in-out 5332ms cubic-bezier(0.4, 0, 0.2, 1) infinite both}.mdc-circular-progress--indeterminate .mdc-circular-progress__circle-left .mdc-circular-progress__indeterminate-circle-graphic{animation:mdc-circular-progress-left-spin 1333ms cubic-bezier(0.4, 0, 0.2, 1) infinite both}.mdc-circular-progress--indeterminate .mdc-circular-progress__circle-right .mdc-circular-progress__indeterminate-circle-graphic{animation:mdc-circular-progress-right-spin 1333ms cubic-bezier(0.4, 0, 0.2, 1) infinite both}.mdc-circular-progress--closed{opacity:0}.mat-mdc-progress-spinner{display:block;overflow:hidden;line-height:0}.mat-mdc-progress-spinner .mdc-circular-progress__determinate-circle,.mat-mdc-progress-spinner .mdc-circular-progress__indeterminate-circle-graphic{stroke:var(--mdc-circular-progress-active-indicator-color, transparent)}@media screen and (forced-colors: active),(-ms-high-contrast: active){.mat-mdc-progress-spinner .mdc-circular-progress__determinate-circle,.mat-mdc-progress-spinner .mdc-circular-progress__indeterminate-circle-graphic{stroke:CanvasText}}@media screen and (forced-colors: active),(-ms-high-contrast: active){.mat-mdc-progress-spinner .mdc-circular-progress--four-color .mdc-circular-progress__color-1 .mdc-circular-progress__indeterminate-circle-graphic{stroke:CanvasText}}@media screen and (forced-colors: active),(-ms-high-contrast: active){.mat-mdc-progress-spinner .mdc-circular-progress--four-color .mdc-circular-progress__color-2 .mdc-circular-progress__indeterminate-circle-graphic{stroke:CanvasText}}@media screen and (forced-colors: active),(-ms-high-contrast: active){.mat-mdc-progress-spinner .mdc-circular-progress--four-color .mdc-circular-progress__color-3 .mdc-circular-progress__indeterminate-circle-graphic{stroke:CanvasText}}@media screen and (forced-colors: active),(-ms-high-contrast: active){.mat-mdc-progress-spinner .mdc-circular-progress--four-color .mdc-circular-progress__color-4 .mdc-circular-progress__indeterminate-circle-graphic{stroke:CanvasText}}.mat-mdc-progress-spinner._mat-animation-noopable,.mat-mdc-progress-spinner._mat-animation-noopable .mdc-circular-progress__determinate-circle{transition:none}.mat-mdc-progress-spinner._mat-animation-noopable .mdc-circular-progress__indeterminate-circle-graphic,.mat-mdc-progress-spinner._mat-animation-noopable .mdc-circular-progress__spinner-layer,.mat-mdc-progress-spinner._mat-animation-noopable .mdc-circular-progress__indeterminate-container{animation:none}.mat-mdc-progress-spinner._mat-animation-noopable .mdc-circular-progress__indeterminate-container circle{stroke-dasharray:0 !important}.cdk-high-contrast-active .mat-mdc-progress-spinner .mdc-circular-progress__indeterminate-circle-graphic,.cdk-high-contrast-active .mat-mdc-progress-spinner .mdc-circular-progress__determinate-circle{stroke:currentColor;stroke:CanvasText}"],encapsulation:2,changeDetection:0}),z})(),R=(()=>{class z{}return z.\u0275fac=function(W){return new(W||z)},z.\u0275mod=t.oAB({type:z}),z.\u0275inj=t.cJS({imports:[I.ez,e.BQ]}),z})()},1948:(Ve,q,p)=>{"use strict";p.d(q,{Fk:()=>le,U0:()=>ue,VQ:()=>ie});var t=p(4650),e=p(3238),b=p(4761),I=p(1281),s=p(5017),C=p(4006),h=p(6895);const P=["input"],d=["*"];let S=0;class w{constructor(de,$){this.source=de,this.value=$}}const O={provide:C.JU,useExisting:(0,t.Gpc)(()=>ie),multi:!0},E=new t.OlP("MatRadioGroup"),R=new t.OlP("mat-radio-default-options",{providedIn:"root",factory:function z(){return{color:"accent"}}});let U=(()=>{class ne{get name(){return this._name}set name($){this._name=$,this._updateRadioButtonNames()}get labelPosition(){return this._labelPosition}set labelPosition($){this._labelPosition="before"===$?"before":"after",this._markRadiosForCheck()}get value(){return this._value}set value($){this._value!==$&&(this._value=$,this._updateSelectedRadioFromValue(),this._checkSelectedRadioButton())}_checkSelectedRadioButton(){this._selected&&!this._selected.checked&&(this._selected.checked=!0)}get selected(){return this._selected}set selected($){this._selected=$,this.value=$?$.value:null,this._checkSelectedRadioButton()}get disabled(){return this._disabled}set disabled($){this._disabled=(0,I.Ig)($),this._markRadiosForCheck()}get required(){return this._required}set required($){this._required=(0,I.Ig)($),this._markRadiosForCheck()}constructor($){this._changeDetector=$,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}ngAfterContentInit(){this._isInitialized=!0}_touch(){this.onTouched&&this.onTouched()}_updateRadioButtonNames(){this._radios&&this._radios.forEach($=>{$.name=this.name,$._markForCheck()})}_updateSelectedRadioFromValue(){this._radios&&(null===this._selected||this._selected.value!==this._value)&&(this._selected=null,this._radios.forEach(me=>{me.checked=this.value===me.value,me.checked&&(this._selected=me)}))}_emitChangeEvent(){this._isInitialized&&this.change.emit(new w(this._selected,this._value))}_markRadiosForCheck(){this._radios&&this._radios.forEach($=>$._markForCheck())}writeValue($){this.value=$,this._changeDetector.markForCheck()}registerOnChange($){this._controlValueAccessorChangeFn=$}registerOnTouched($){this.onTouched=$}setDisabledState($){this.disabled=$,this._changeDetector.markForCheck()}}return ne.\u0275fac=function($){return new($||ne)(t.Y36(t.sBO))},ne.\u0275dir=t.lG2({type:ne,inputs:{color:"color",name:"name",labelPosition:"labelPosition",value:"value",selected:"selected",disabled:"disabled",required:"required"},outputs:{change:"change"}}),ne})();class W{constructor(de){this._elementRef=de}}const K=(0,e.Kr)((0,e.sb)(W));let ee=(()=>{class ne extends K{get checked(){return this._checked}set checked($){const me=(0,I.Ig)($);this._checked!==me&&(this._checked=me,me&&this.radioGroup&&this.radioGroup.value!==this.value?this.radioGroup.selected=this:!me&&this.radioGroup&&this.radioGroup.value===this.value&&(this.radioGroup.selected=null),me&&this._radioDispatcher.notify(this.id,this.name),this._changeDetector.markForCheck())}get value(){return this._value}set value($){this._value!==$&&(this._value=$,null!==this.radioGroup&&(this.checked||(this.checked=this.radioGroup.value===$),this.checked&&(this.radioGroup.selected=this)))}get labelPosition(){return this._labelPosition||this.radioGroup&&this.radioGroup.labelPosition||"after"}set labelPosition($){this._labelPosition=$}get disabled(){return this._disabled||null!==this.radioGroup&&this.radioGroup.disabled}set disabled($){this._setDisabled((0,I.Ig)($))}get required(){return this._required||this.radioGroup&&this.radioGroup.required}set required($){this._required=(0,I.Ig)($)}get color(){return this._color||this.radioGroup&&this.radioGroup.color||this._providerOverride&&this._providerOverride.color||"accent"}set color($){this._color=$}get inputId(){return`${this.id||this._uniqueId}-input`}constructor($,me,A,i,a,u,l,y){super(me),this._changeDetector=A,this._focusMonitor=i,this._radioDispatcher=a,this._providerOverride=l,this._uniqueId="mat-radio-"+ ++S,this.id=this._uniqueId,this.change=new t.vpe,this._checked=!1,this._value=null,this._removeUniqueSelectionListener=()=>{},this.radioGroup=$,this._noopAnimations="NoopAnimations"===u,y&&(this.tabIndex=(0,I.su)(y,0))}focus($,me){me?this._focusMonitor.focusVia(this._inputElement,me,$):this._inputElement.nativeElement.focus($)}_markForCheck(){this._changeDetector.markForCheck()}ngOnInit(){this.radioGroup&&(this.checked=this.radioGroup.value===this._value,this.checked&&(this.radioGroup.selected=this),this.name=this.radioGroup.name),this._removeUniqueSelectionListener=this._radioDispatcher.listen(($,me)=>{$!==this.id&&me===this.name&&(this.checked=!1)})}ngDoCheck(){this._updateTabIndex()}ngAfterViewInit(){this._updateTabIndex(),this._focusMonitor.monitor(this._elementRef,!0).subscribe($=>{!$&&this.radioGroup&&this.radioGroup._touch()})}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef),this._removeUniqueSelectionListener()}_emitChangeEvent(){this.change.emit(new w(this,this._value))}_isRippleDisabled(){return this.disableRipple||this.disabled}_onInputClick($){$.stopPropagation()}_onInputInteraction($){if($.stopPropagation(),!this.checked&&!this.disabled){const me=this.radioGroup&&this.value!==this.radioGroup.value;this.checked=!0,this._emitChangeEvent(),this.radioGroup&&(this.radioGroup._controlValueAccessorChangeFn(this.value),me&&this.radioGroup._emitChangeEvent())}}_onTouchTargetClick($){this._onInputInteraction($),this.disabled||this._inputElement.nativeElement.focus()}_setDisabled($){this._disabled!==$&&(this._disabled=$,this._changeDetector.markForCheck())}_updateTabIndex(){const $=this.radioGroup;let me;if(me=$&&$.selected&&!this.disabled?$.selected===this?this.tabIndex:-1:this.tabIndex,me!==this._previousTabIndex){const A=this._inputElement?.nativeElement;A&&(A.setAttribute("tabindex",me+""),this._previousTabIndex=me)}}}return ne.\u0275fac=function($){t.$Z()},ne.\u0275dir=t.lG2({type:ne,viewQuery:function($,me){if(1&$&&t.Gf(P,5),2&$){let A;t.iGM(A=t.CRH())&&(me._inputElement=A.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]}),ne})(),ie=(()=>{class ne extends U{}return ne.\u0275fac=function(){let de;return function(me){return(de||(de=t.n5z(ne)))(me||ne)}}(),ne.\u0275dir=t.lG2({type:ne,selectors:[["mat-radio-group"]],contentQueries:function($,me,A){if(1&$&&t.Suo(A,ue,5),2&$){let i;t.iGM(i=t.CRH())&&(me._radios=i)}},hostAttrs:["role","radiogroup",1,"mat-mdc-radio-group"],exportAs:["matRadioGroup"],features:[t._Bn([O,{provide:E,useExisting:ne}]),t.qOj]}),ne})(),ue=(()=>{class ne extends ee{constructor($,me,A,i,a,u,l,y){super($,me,A,i,a,u,l,y)}}return ne.\u0275fac=function($){return new($||ne)(t.Y36(E,8),t.Y36(t.SBq),t.Y36(t.sBO),t.Y36(b.tE),t.Y36(s.A8),t.Y36(t.QbO,8),t.Y36(R,8),t.$8M("tabindex"))},ne.\u0275cmp=t.Xpm({type:ne,selectors:[["mat-radio-button"]],hostAttrs:[1,"mat-mdc-radio-button"],hostVars:15,hostBindings:function($,me){1&$&&t.NdJ("focus",function(){return me._inputElement.nativeElement.focus()}),2&$&&(t.uIk("id",me.id)("tabindex",null)("aria-label",null)("aria-labelledby",null)("aria-describedby",null),t.ekj("mat-primary","primary"===me.color)("mat-accent","accent"===me.color)("mat-warn","warn"===me.color)("mat-mdc-radio-checked",me.checked)("_mat-animation-noopable",me._noopAnimations))},inputs:{disableRipple:"disableRipple",tabIndex:"tabIndex"},exportAs:["matRadioButton"],features:[t.qOj],ngContentSelectors:d,decls:13,vars:17,consts:[[1,"mdc-form-field"],["formField",""],[1,"mdc-radio"],[1,"mat-mdc-radio-touch-target",3,"click"],["type","radio",1,"mdc-radio__native-control",3,"id","checked","disabled","required","change"],["input",""],[1,"mdc-radio__background"],[1,"mdc-radio__outer-circle"],[1,"mdc-radio__inner-circle"],["mat-ripple","",1,"mat-radio-ripple","mat-mdc-focus-indicator",3,"matRippleTrigger","matRippleDisabled","matRippleCentered"],[1,"mat-ripple-element","mat-radio-persistent-ripple"],[3,"for"]],template:function($,me){if(1&$&&(t.F$t(),t.TgZ(0,"div",0,1)(2,"div",2)(3,"div",3),t.NdJ("click",function(i){return me._onTouchTargetClick(i)}),t.qZA(),t.TgZ(4,"input",4,5),t.NdJ("change",function(i){return me._onInputInteraction(i)}),t.qZA(),t.TgZ(6,"div",6),t._UZ(7,"div",7)(8,"div",8),t.qZA(),t.TgZ(9,"div",9),t._UZ(10,"div",10),t.qZA()(),t.TgZ(11,"label",11),t.Hsn(12),t.qZA()()),2&$){const A=t.MAs(1);t.ekj("mdc-form-field--align-end","before"==me.labelPosition),t.xp6(2),t.ekj("mdc-radio--disabled",me.disabled),t.xp6(2),t.Q6J("id",me.inputId)("checked",me.checked)("disabled",me.disabled)("required",me.required),t.uIk("name",me.name)("value",me.value)("aria-label",me.ariaLabel)("aria-labelledby",me.ariaLabelledby)("aria-describedby",me.ariaDescribedby),t.xp6(5),t.Q6J("matRippleTrigger",A)("matRippleDisabled",me._isRippleDisabled())("matRippleCentered",!0),t.xp6(2),t.Q6J("for",me.inputId)}},dependencies:[e.wG],styles:['.mdc-radio{display:inline-block;position:relative;flex:0 0 auto;box-sizing:content-box;width:20px;height:20px;cursor:pointer;will-change:opacity,transform,border-color,color}.mdc-radio[hidden]{display:none}.mdc-radio__background{display:inline-block;position:relative;box-sizing:border-box;width:20px;height:20px}.mdc-radio__background::before{position:absolute;transform:scale(0, 0);border-radius:50%;opacity:0;pointer-events:none;content:"";transition:opacity 120ms 0ms cubic-bezier(0.4, 0, 0.6, 1),transform 120ms 0ms cubic-bezier(0.4, 0, 0.6, 1)}.mdc-radio__outer-circle{position:absolute;top:0;left:0;box-sizing:border-box;width:100%;height:100%;border-width:2px;border-style:solid;border-radius:50%;transition:border-color 120ms 0ms cubic-bezier(0.4, 0, 0.6, 1)}.mdc-radio__inner-circle{position:absolute;top:0;left:0;box-sizing:border-box;width:100%;height:100%;transform:scale(0, 0);border-width:10px;border-style:solid;border-radius:50%;transition:transform 120ms 0ms cubic-bezier(0.4, 0, 0.6, 1),border-color 120ms 0ms cubic-bezier(0.4, 0, 0.6, 1)}.mdc-radio__native-control{position:absolute;margin:0;padding:0;opacity:0;cursor:inherit;z-index:1}.mdc-radio--touch{margin-top:4px;margin-bottom:4px;margin-right:4px;margin-left:4px}.mdc-radio--touch .mdc-radio__native-control{top:calc((40px - 48px) / 2);right:calc((40px - 48px) / 2);left:calc((40px - 48px) / 2);width:48px;height:48px}.mdc-radio.mdc-ripple-upgraded--background-focused .mdc-radio__focus-ring,.mdc-radio:not(.mdc-ripple-upgraded):focus .mdc-radio__focus-ring{pointer-events:none;border:2px solid rgba(0,0,0,0);border-radius:6px;box-sizing:content-box;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);height:100%;width:100%}@media screen and (forced-colors: active){.mdc-radio.mdc-ripple-upgraded--background-focused .mdc-radio__focus-ring,.mdc-radio:not(.mdc-ripple-upgraded):focus .mdc-radio__focus-ring{border-color:CanvasText}}.mdc-radio.mdc-ripple-upgraded--background-focused .mdc-radio__focus-ring::after,.mdc-radio:not(.mdc-ripple-upgraded):focus .mdc-radio__focus-ring::after{content:"";border:2px solid rgba(0,0,0,0);border-radius:8px;display:block;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);height:calc(100% + 4px);width:calc(100% + 4px)}@media screen and (forced-colors: active){.mdc-radio.mdc-ripple-upgraded--background-focused .mdc-radio__focus-ring::after,.mdc-radio:not(.mdc-ripple-upgraded):focus .mdc-radio__focus-ring::after{border-color:CanvasText}}.mdc-radio__native-control:checked+.mdc-radio__background,.mdc-radio__native-control:disabled+.mdc-radio__background{transition:opacity 120ms 0ms cubic-bezier(0, 0, 0.2, 1),transform 120ms 0ms cubic-bezier(0, 0, 0.2, 1)}.mdc-radio__native-control:checked+.mdc-radio__background .mdc-radio__outer-circle,.mdc-radio__native-control:disabled+.mdc-radio__background .mdc-radio__outer-circle{transition:border-color 120ms 0ms cubic-bezier(0, 0, 0.2, 1)}.mdc-radio__native-control:checked+.mdc-radio__background .mdc-radio__inner-circle,.mdc-radio__native-control:disabled+.mdc-radio__background .mdc-radio__inner-circle{transition:transform 120ms 0ms cubic-bezier(0, 0, 0.2, 1),border-color 120ms 0ms cubic-bezier(0, 0, 0.2, 1)}.mdc-radio--disabled{cursor:default;pointer-events:none}.mdc-radio__native-control:checked+.mdc-radio__background .mdc-radio__inner-circle{transform:scale(0.5);transition:transform 120ms 0ms cubic-bezier(0, 0, 0.2, 1),border-color 120ms 0ms cubic-bezier(0, 0, 0.2, 1)}.mdc-radio__native-control:disabled+.mdc-radio__background,[aria-disabled=true] .mdc-radio__native-control+.mdc-radio__background{cursor:default}.mdc-radio__native-control:focus+.mdc-radio__background::before{transform:scale(1);opacity:.12;transition:opacity 120ms 0ms cubic-bezier(0, 0, 0.2, 1),transform 120ms 0ms cubic-bezier(0, 0, 0.2, 1)}.mdc-form-field{display:inline-flex;align-items:center;vertical-align:middle}.mdc-form-field[hidden]{display:none}.mdc-form-field>label{margin-left:0;margin-right:auto;padding-left:4px;padding-right:0;order:0}[dir=rtl] .mdc-form-field>label,.mdc-form-field>label[dir=rtl]{margin-left:auto;margin-right:0}[dir=rtl] .mdc-form-field>label,.mdc-form-field>label[dir=rtl]{padding-left:0;padding-right:4px}.mdc-form-field--nowrap>label{text-overflow:ellipsis;overflow:hidden;white-space:nowrap}.mdc-form-field--align-end>label{margin-left:auto;margin-right:0;padding-left:0;padding-right:4px;order:-1}[dir=rtl] .mdc-form-field--align-end>label,.mdc-form-field--align-end>label[dir=rtl]{margin-left:0;margin-right:auto}[dir=rtl] .mdc-form-field--align-end>label,.mdc-form-field--align-end>label[dir=rtl]{padding-left:4px;padding-right:0}.mdc-form-field--space-between{justify-content:space-between}.mdc-form-field--space-between>label{margin:0}[dir=rtl] .mdc-form-field--space-between>label,.mdc-form-field--space-between>label[dir=rtl]{margin:0}.mat-mdc-radio-button{-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-mdc-radio-button .mdc-radio{padding:calc((var(--mdc-radio-state-layer-size, 40px) - 20px) / 2)}.mat-mdc-radio-button .mdc-radio [aria-disabled=true] .mdc-radio__native-control:checked+.mdc-radio__background .mdc-radio__outer-circle,.mat-mdc-radio-button .mdc-radio .mdc-radio__native-control:disabled:checked+.mdc-radio__background .mdc-radio__outer-circle{border-color:var(--mdc-radio-disabled-selected-icon-color, #000)}.mat-mdc-radio-button .mdc-radio [aria-disabled=true] .mdc-radio__native-control+.mdc-radio__background .mdc-radio__inner-circle,.mat-mdc-radio-button .mdc-radio .mdc-radio__native-control:disabled+.mdc-radio__background .mdc-radio__inner-circle{border-color:var(--mdc-radio-disabled-selected-icon-color, #000)}.mat-mdc-radio-button .mdc-radio [aria-disabled=true] .mdc-radio__native-control:checked+.mdc-radio__background .mdc-radio__outer-circle,.mat-mdc-radio-button .mdc-radio .mdc-radio__native-control:disabled:checked+.mdc-radio__background .mdc-radio__outer-circle{opacity:var(--mdc-radio-disabled-selected-icon-opacity, 0.38)}.mat-mdc-radio-button .mdc-radio [aria-disabled=true] .mdc-radio__native-control+.mdc-radio__background .mdc-radio__inner-circle,.mat-mdc-radio-button .mdc-radio .mdc-radio__native-control:disabled+.mdc-radio__background .mdc-radio__inner-circle{opacity:var(--mdc-radio-disabled-selected-icon-opacity, 0.38)}.mat-mdc-radio-button .mdc-radio [aria-disabled=true] .mdc-radio__native-control:not(:checked)+.mdc-radio__background .mdc-radio__outer-circle,.mat-mdc-radio-button .mdc-radio .mdc-radio__native-control:disabled:not(:checked)+.mdc-radio__background .mdc-radio__outer-circle{border-color:var(--mdc-radio-disabled-unselected-icon-color, #000)}.mat-mdc-radio-button .mdc-radio [aria-disabled=true] .mdc-radio__native-control:not(:checked)+.mdc-radio__background .mdc-radio__outer-circle,.mat-mdc-radio-button .mdc-radio .mdc-radio__native-control:disabled:not(:checked)+.mdc-radio__background .mdc-radio__outer-circle{opacity:var(--mdc-radio-disabled-unselected-icon-opacity, 0.38)}.mat-mdc-radio-button .mdc-radio.mdc-ripple-upgraded--background-focused .mdc-radio__native-control:enabled:checked+.mdc-radio__background .mdc-radio__outer-circle,.mat-mdc-radio-button .mdc-radio:not(.mdc-ripple-upgraded):focus .mdc-radio__native-control:enabled:checked+.mdc-radio__background .mdc-radio__outer-circle{border-color:var(--mdc-radio-selected-focus-icon-color, #6200ee)}.mat-mdc-radio-button .mdc-radio.mdc-ripple-upgraded--background-focused .mdc-radio__native-control:enabled+.mdc-radio__background .mdc-radio__inner-circle,.mat-mdc-radio-button .mdc-radio:not(.mdc-ripple-upgraded):focus .mdc-radio__native-control:enabled+.mdc-radio__background .mdc-radio__inner-circle{border-color:var(--mdc-radio-selected-focus-icon-color, #6200ee)}.mat-mdc-radio-button .mdc-radio:hover .mdc-radio__native-control:enabled:checked+.mdc-radio__background .mdc-radio__outer-circle{border-color:var(--mdc-radio-selected-hover-icon-color, #6200ee)}.mat-mdc-radio-button .mdc-radio:hover .mdc-radio__native-control:enabled+.mdc-radio__background .mdc-radio__inner-circle{border-color:var(--mdc-radio-selected-hover-icon-color, #6200ee)}.mat-mdc-radio-button .mdc-radio .mdc-radio__native-control:enabled:checked+.mdc-radio__background .mdc-radio__outer-circle{border-color:var(--mdc-radio-selected-icon-color, #6200ee)}.mat-mdc-radio-button .mdc-radio .mdc-radio__native-control:enabled+.mdc-radio__background .mdc-radio__inner-circle{border-color:var(--mdc-radio-selected-icon-color, #6200ee)}.mat-mdc-radio-button .mdc-radio:not(:disabled):active .mdc-radio__native-control:enabled:checked+.mdc-radio__background .mdc-radio__outer-circle{border-color:var(--mdc-radio-selected-pressed-icon-color, #6200ee)}.mat-mdc-radio-button .mdc-radio:not(:disabled):active .mdc-radio__native-control:enabled+.mdc-radio__background .mdc-radio__inner-circle{border-color:var(--mdc-radio-selected-pressed-icon-color, #6200ee)}.mat-mdc-radio-button .mdc-radio:hover .mdc-radio__native-control:enabled:not(:checked)+.mdc-radio__background .mdc-radio__outer-circle{border-color:var(--mdc-radio-unselected-hover-icon-color, #000)}.mat-mdc-radio-button .mdc-radio .mdc-radio__native-control:enabled:not(:checked)+.mdc-radio__background .mdc-radio__outer-circle{border-color:var(--mdc-radio-unselected-icon-color, #000)}.mat-mdc-radio-button .mdc-radio:not(:disabled):active .mdc-radio__native-control:enabled:not(:checked)+.mdc-radio__background .mdc-radio__outer-circle{border-color:var(--mdc-radio-unselected-pressed-icon-color, #000)}.mat-mdc-radio-button .mdc-radio .mdc-radio__background::before{top:calc(-1 * (var(--mdc-radio-state-layer-size, 40px) - 20px) / 2);left:calc(-1 * (var(--mdc-radio-state-layer-size, 40px) - 20px) / 2);width:var(--mdc-radio-state-layer-size, 40px);height:var(--mdc-radio-state-layer-size, 40px)}.mat-mdc-radio-button .mdc-radio .mdc-radio__native-control{top:calc((var(--mdc-radio-state-layer-size, 40px) - var(--mdc-radio-state-layer-size, 40px)) / 2);right:calc((var(--mdc-radio-state-layer-size, 40px) - var(--mdc-radio-state-layer-size, 40px)) / 2);left:calc((var(--mdc-radio-state-layer-size, 40px) - var(--mdc-radio-state-layer-size, 40px)) / 2);width:var(--mdc-radio-state-layer-size, 40px);height:var(--mdc-radio-state-layer-size, 40px)}.mat-mdc-radio-button .mdc-radio .mdc-radio__background::before{background-color:var(--mat-mdc-radio-ripple-color, transparent)}.mat-mdc-radio-button .mdc-radio:hover .mdc-radio__native-control:not([disabled]):not(:focus)~.mdc-radio__background::before{opacity:.04;transform:scale(1)}.mat-mdc-radio-button.mat-mdc-radio-checked .mdc-radio__background::before{background-color:var(--mat-mdc-radio-checked-ripple-color, transparent)}.mat-mdc-radio-button.mat-mdc-radio-checked .mat-ripple-element{background-color:var(--mat-mdc-radio-checked-ripple-color, transparent)}.mat-mdc-radio-button .mat-radio-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:50%}.mat-mdc-radio-button .mat-radio-ripple .mat-ripple-element{opacity:.14}.mat-mdc-radio-button .mat-radio-ripple::before{border-radius:50%}.mat-mdc-radio-button._mat-animation-noopable .mdc-radio__background::before,.mat-mdc-radio-button._mat-animation-noopable .mdc-radio__outer-circle,.mat-mdc-radio-button._mat-animation-noopable .mdc-radio__inner-circle{transition:none !important}.mat-mdc-radio-button .mdc-radio .mdc-radio__native-control:focus:enabled:not(:checked)~.mdc-radio__background .mdc-radio__outer-circle{border-color:var(--mdc-radio-unselected-focus-icon-color, black)}.mat-mdc-radio-button.cdk-focused .mat-mdc-focus-indicator::before{content:""}.mat-mdc-radio-touch-target{position:absolute;top:50%;height:48px;left:50%;width:48px;transform:translate(-50%, -50%)}[dir=rtl] .mat-mdc-radio-touch-target{left:0;right:50%;transform:translate(50%, -50%)}'],encapsulation:2,changeDetection:0}),ne})(),le=(()=>{class ne{}return ne.\u0275fac=function($){return new($||ne)},ne.\u0275mod=t.oAB({type:ne}),ne.\u0275inj=t.cJS({imports:[e.BQ,h.ez,e.si,e.BQ]}),ne})()},4385:(Ve,q,p)=>{"use strict";p.d(q,{$L:()=>ye,LD:()=>ve,PG:()=>X,gD:()=>ce});var t=p(8184),e=p(6895),b=p(4650),I=p(3238),s=p(9549),C=p(531),h=p(4761),P=p(445),d=p(1281),S=p(5017),w=p(9521),O=p(4006),E=p(7579),R=p(9770),z=p(6451),U=p(8675),W=p(3900),K=p(5698),ee=p(9300),ie=p(4004),ue=p(1884),le=p(2722),ne=p(7340);const de=["trigger"],$=["panel"];function me(oe,je){if(1&oe&&(b.TgZ(0,"span",10),b._uU(1),b.qZA()),2&oe){const Ae=b.oxw();b.xp6(1),b.Oqu(Ae.placeholder)}}function A(oe,je){if(1&oe&&(b.TgZ(0,"span",14),b._uU(1),b.qZA()),2&oe){const Ae=b.oxw(2);b.xp6(1),b.Oqu(Ae.triggerValue)}}function i(oe,je){1&oe&&b.Hsn(0,0,["*ngSwitchCase","true"])}function a(oe,je){if(1&oe&&(b.TgZ(0,"span",11),b.YNc(1,A,2,1,"span",12),b.YNc(2,i,1,0,"ng-content",13),b.qZA()),2&oe){const Ae=b.oxw();b.Q6J("ngSwitch",!!Ae.customTrigger),b.xp6(2),b.Q6J("ngSwitchCase",!0)}}function u(oe,je){if(1&oe){const Ae=b.EpF();b.O4$(),b.kcU(),b.TgZ(0,"div",15,16),b.NdJ("@transformPanel.done",function(Ce){b.CHM(Ae);const te=b.oxw();return b.KtG(te._panelDoneAnimatingStream.next(Ce.toState))})("keydown",function(Ce){b.CHM(Ae);const te=b.oxw();return b.KtG(te._handleKeydown(Ce))}),b.Hsn(2,1),b.qZA()}if(2&oe){const Ae=b.oxw();b.Gre("mat-mdc-select-panel mdc-menu-surface mdc-menu-surface--open ",Ae._getPanelTheme(),""),b.Q6J("ngClass",Ae.panelClass)("@transformPanel","showing"),b.uIk("id",Ae.id+"-panel")("aria-multiselectable",Ae.multiple)("aria-label",Ae.ariaLabel||null)("aria-labelledby",Ae._getPanelAriaLabelledby())}}const l=[[["mat-select-trigger"]],"*"],y=["mat-select-trigger","*"],T={transformPanelWrap:(0,ne.X$)("transformPanelWrap",[(0,ne.eR)("* => void",(0,ne.IO)("@transformPanel",[(0,ne.pV)()],{optional:!0}))]),transformPanel:(0,ne.X$)("transformPanel",[(0,ne.SB)("void",(0,ne.oB)({opacity:0,transform:"scale(1, 0.8)"})),(0,ne.eR)("void => showing",(0,ne.jt)("120ms cubic-bezier(0, 0, 0.2, 1)",(0,ne.oB)({opacity:1,transform:"scale(1, 1)"}))),(0,ne.eR)("* => void",(0,ne.jt)("100ms linear",(0,ne.oB)({opacity:0})))])};let _=0;const B=new b.OlP("mat-select-scroll-strategy"),X=new b.OlP("MAT_SELECT_CONFIG"),Le={provide:B,deps:[t.aV],useFactory:function V(oe){return()=>oe.scrollStrategies.reposition()}},$e=new b.OlP("MatSelectTrigger");class We{constructor(je,Ae){this.source=je,this.value=Ae}}const Fe=(0,I.Kr)((0,I.sb)((0,I.Id)((0,I.FD)(class{constructor(oe,je,Ae,he,Ce){this._elementRef=oe,this._defaultErrorStateMatcher=je,this._parentForm=Ae,this._parentFormGroup=he,this.ngControl=Ce,this.stateChanges=new E.x}}))));let De=(()=>{class oe extends Fe{get focused(){return this._focused||this._panelOpen}get placeholder(){return this._placeholder}set placeholder(Ae){this._placeholder=Ae,this.stateChanges.next()}get required(){return this._required??this.ngControl?.control?.hasValidator(O.kI.required)??!1}set required(Ae){this._required=(0,d.Ig)(Ae),this.stateChanges.next()}get multiple(){return this._multiple}set multiple(Ae){this._multiple=(0,d.Ig)(Ae)}get disableOptionCentering(){return this._disableOptionCentering}set disableOptionCentering(Ae){this._disableOptionCentering=(0,d.Ig)(Ae)}get compareWith(){return this._compareWith}set compareWith(Ae){this._compareWith=Ae,this._selectionModel&&this._initializeSelection()}get value(){return this._value}set value(Ae){this._assignValue(Ae)&&this._onChange(Ae)}get typeaheadDebounceInterval(){return this._typeaheadDebounceInterval}set typeaheadDebounceInterval(Ae){this._typeaheadDebounceInterval=(0,d.su)(Ae)}get id(){return this._id}set id(Ae){this._id=Ae||this._uid,this.stateChanges.next()}constructor(Ae,he,Ce,te,Ue,Be,ae,ge,ft,Je,dt,Et,pt,ot){super(Ue,te,ae,ge,Je),this._viewportRuler=Ae,this._changeDetectorRef=he,this._ngZone=Ce,this._dir=Be,this._parentFormField=ft,this._liveAnnouncer=pt,this._defaultOptions=ot,this._panelOpen=!1,this._compareWith=(wt,ke)=>wt===ke,this._uid="mat-select-"+_++,this._triggerAriaLabelledBy=null,this._destroy=new E.x,this._onChange=()=>{},this._onTouched=()=>{},this._valueId="mat-select-value-"+_++,this._panelDoneAnimatingStream=new E.x,this._overlayPanelClass=this._defaultOptions?.overlayPanelClass||"",this._focused=!1,this.controlType="mat-select",this._multiple=!1,this._disableOptionCentering=this._defaultOptions?.disableOptionCentering??!1,this.ariaLabel="",this.optionSelectionChanges=(0,R.P)(()=>{const wt=this.options;return wt?wt.changes.pipe((0,U.O)(wt),(0,W.w)(()=>(0,z.T)(...wt.map(ke=>ke.onSelectionChange)))):this._ngZone.onStable.pipe((0,K.q)(1),(0,W.w)(()=>this.optionSelectionChanges))}),this.openedChange=new b.vpe,this._openedStream=this.openedChange.pipe((0,ee.h)(wt=>wt),(0,ie.U)(()=>{})),this._closedStream=this.openedChange.pipe((0,ee.h)(wt=>!wt),(0,ie.U)(()=>{})),this.selectionChange=new b.vpe,this.valueChange=new b.vpe,this.ngControl&&(this.ngControl.valueAccessor=this),null!=ot?.typeaheadDebounceInterval&&(this._typeaheadDebounceInterval=ot.typeaheadDebounceInterval),this._scrollStrategyFactory=Et,this._scrollStrategy=this._scrollStrategyFactory(),this.tabIndex=parseInt(dt)||0,this.id=this.id}ngOnInit(){this._selectionModel=new S.Ov(this.multiple),this.stateChanges.next(),this._panelDoneAnimatingStream.pipe((0,ue.x)(),(0,le.R)(this._destroy)).subscribe(()=>this._panelDoneAnimating(this.panelOpen))}ngAfterContentInit(){this._initKeyManager(),this._selectionModel.changed.pipe((0,le.R)(this._destroy)).subscribe(Ae=>{Ae.added.forEach(he=>he.select()),Ae.removed.forEach(he=>he.deselect())}),this.options.changes.pipe((0,U.O)(null),(0,le.R)(this._destroy)).subscribe(()=>{this._resetOptions(),this._initializeSelection()})}ngDoCheck(){const Ae=this._getTriggerAriaLabelledby(),he=this.ngControl;if(Ae!==this._triggerAriaLabelledBy){const Ce=this._elementRef.nativeElement;this._triggerAriaLabelledBy=Ae,Ae?Ce.setAttribute("aria-labelledby",Ae):Ce.removeAttribute("aria-labelledby")}he&&(this._previousControl!==he.control&&(void 0!==this._previousControl&&null!==he.disabled&&he.disabled!==this.disabled&&(this.disabled=he.disabled),this._previousControl=he.control),this.updateErrorState())}ngOnChanges(Ae){(Ae.disabled||Ae.userAriaDescribedBy)&&this.stateChanges.next(),Ae.typeaheadDebounceInterval&&this._keyManager&&this._keyManager.withTypeAhead(this._typeaheadDebounceInterval)}ngOnDestroy(){this._keyManager?.destroy(),this._destroy.next(),this._destroy.complete(),this.stateChanges.complete()}toggle(){this.panelOpen?this.close():this.open()}open(){this._canOpen()&&(this._panelOpen=!0,this._keyManager.withHorizontalOrientation(null),this._highlightCorrectOption(),this._changeDetectorRef.markForCheck())}close(){this._panelOpen&&(this._panelOpen=!1,this._keyManager.withHorizontalOrientation(this._isRtl()?"rtl":"ltr"),this._changeDetectorRef.markForCheck(),this._onTouched())}writeValue(Ae){this._assignValue(Ae)}registerOnChange(Ae){this._onChange=Ae}registerOnTouched(Ae){this._onTouched=Ae}setDisabledState(Ae){this.disabled=Ae,this._changeDetectorRef.markForCheck(),this.stateChanges.next()}get panelOpen(){return this._panelOpen}get selected(){return this.multiple?this._selectionModel?.selected||[]:this._selectionModel?.selected[0]}get triggerValue(){if(this.empty)return"";if(this._multiple){const Ae=this._selectionModel.selected.map(he=>he.viewValue);return this._isRtl()&&Ae.reverse(),Ae.join(", ")}return this._selectionModel.selected[0].viewValue}_isRtl(){return!!this._dir&&"rtl"===this._dir.value}_handleKeydown(Ae){this.disabled||(this.panelOpen?this._handleOpenKeydown(Ae):this._handleClosedKeydown(Ae))}_handleClosedKeydown(Ae){const he=Ae.keyCode,Ce=he===w.JH||he===w.LH||he===w.oh||he===w.SV,te=he===w.K5||he===w.L_,Ue=this._keyManager;if(!Ue.isTyping()&&te&&!(0,w.Vb)(Ae)||(this.multiple||Ae.altKey)&&Ce)Ae.preventDefault(),this.open();else if(!this.multiple){const Be=this.selected;Ue.onKeydown(Ae);const ae=this.selected;ae&&Be!==ae&&this._liveAnnouncer.announce(ae.viewValue,1e4)}}_handleOpenKeydown(Ae){const he=this._keyManager,Ce=Ae.keyCode,te=Ce===w.JH||Ce===w.LH,Ue=he.isTyping();if(te&&Ae.altKey)Ae.preventDefault(),this.close();else if(Ue||Ce!==w.K5&&Ce!==w.L_||!he.activeItem||(0,w.Vb)(Ae))if(!Ue&&this._multiple&&Ce===w.A&&Ae.ctrlKey){Ae.preventDefault();const Be=this.options.some(ae=>!ae.disabled&&!ae.selected);this.options.forEach(ae=>{ae.disabled||(Be?ae.select():ae.deselect())})}else{const Be=he.activeItemIndex;he.onKeydown(Ae),this._multiple&&te&&Ae.shiftKey&&he.activeItem&&he.activeItemIndex!==Be&&he.activeItem._selectViaInteraction()}else Ae.preventDefault(),he.activeItem._selectViaInteraction()}_onFocus(){this.disabled||(this._focused=!0,this.stateChanges.next())}_onBlur(){this._focused=!1,this._keyManager?.cancelTypeahead(),!this.disabled&&!this.panelOpen&&(this._onTouched(),this._changeDetectorRef.markForCheck(),this.stateChanges.next())}_onAttached(){this._overlayDir.positionChange.pipe((0,K.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(Ae){if(this.options.forEach(he=>he.setInactiveStyles()),this._selectionModel.clear(),this.multiple&&Ae)Array.isArray(Ae),Ae.forEach(he=>this._selectOptionByValue(he)),this._sortValues();else{const he=this._selectOptionByValue(Ae);he?this._keyManager.updateActiveItem(he):this.panelOpen||this._keyManager.updateActiveItem(-1)}this._changeDetectorRef.markForCheck()}_selectOptionByValue(Ae){const he=this.options.find(Ce=>{if(this._selectionModel.isSelected(Ce))return!1;try{return null!=Ce.value&&this._compareWith(Ce.value,Ae)}catch{return!1}});return he&&this._selectionModel.select(he),he}_assignValue(Ae){return!!(Ae!==this._value||this._multiple&&Array.isArray(Ae))&&(this.options&&this._setSelectionByValue(Ae),this._value=Ae,!0)}_initKeyManager(){this._keyManager=new h.s1(this.options).withTypeAhead(this._typeaheadDebounceInterval).withVerticalOrientation().withHorizontalOrientation(this._isRtl()?"rtl":"ltr").withHomeAndEnd().withPageUpDown().withAllowedModifierKeys(["shiftKey"]),this._keyManager.tabOut.subscribe(()=>{this.panelOpen&&(!this.multiple&&this._keyManager.activeItem&&this._keyManager.activeItem._selectViaInteraction(),this.focus(),this.close())}),this._keyManager.change.subscribe(()=>{this._panelOpen&&this.panel?this._scrollOptionIntoView(this._keyManager.activeItemIndex||0):!this._panelOpen&&!this.multiple&&this._keyManager.activeItem&&this._keyManager.activeItem._selectViaInteraction()})}_resetOptions(){const Ae=(0,z.T)(this.options.changes,this._destroy);this.optionSelectionChanges.pipe((0,le.R)(Ae)).subscribe(he=>{this._onSelect(he.source,he.isUserInput),he.isUserInput&&!this.multiple&&this._panelOpen&&(this.close(),this.focus())}),(0,z.T)(...this.options.map(he=>he._stateChanges)).pipe((0,le.R)(Ae)).subscribe(()=>{this._changeDetectorRef.detectChanges(),this.stateChanges.next()})}_onSelect(Ae,he){const Ce=this._selectionModel.isSelected(Ae);null!=Ae.value||this._multiple?(Ce!==Ae.selected&&(Ae.selected?this._selectionModel.select(Ae):this._selectionModel.deselect(Ae)),he&&this._keyManager.setActiveItem(Ae),this.multiple&&(this._sortValues(),he&&this.focus())):(Ae.deselect(),this._selectionModel.clear(),null!=this.value&&this._propagateChanges(Ae.value)),Ce!==this._selectionModel.isSelected(Ae)&&this._propagateChanges(),this.stateChanges.next()}_sortValues(){if(this.multiple){const Ae=this.options.toArray();this._selectionModel.sort((he,Ce)=>this.sortComparator?this.sortComparator(he,Ce,Ae):Ae.indexOf(he)-Ae.indexOf(Ce)),this.stateChanges.next()}}_propagateChanges(Ae){let he=null;he=this.multiple?this.selected.map(Ce=>Ce.value):this.selected?this.selected.value:Ae,this._value=he,this.valueChange.emit(he),this._onChange(he),this.selectionChange.emit(this._getChangeEvent(he)),this._changeDetectorRef.markForCheck()}_highlightCorrectOption(){this._keyManager&&(this.empty?this._keyManager.setFirstItemActive():this._keyManager.setActiveItem(this._selectionModel.selected[0]))}_canOpen(){return!this._panelOpen&&!this.disabled&&this.options?.length>0}focus(Ae){this._elementRef.nativeElement.focus(Ae)}_getPanelAriaLabelledby(){if(this.ariaLabel)return null;const Ae=this._parentFormField?.getLabelId();return this.ariaLabelledby?(Ae?Ae+" ":"")+this.ariaLabelledby:Ae}_getAriaActiveDescendant(){return this.panelOpen&&this._keyManager&&this._keyManager.activeItem?this._keyManager.activeItem.id:null}_getTriggerAriaLabelledby(){if(this.ariaLabel)return null;const Ae=this._parentFormField?.getLabelId();let he=(Ae?Ae+" ":"")+this._valueId;return this.ariaLabelledby&&(he+=" "+this.ariaLabelledby),he}_panelDoneAnimating(Ae){this.openedChange.emit(Ae)}setDescribedByIds(Ae){Ae.length?this._elementRef.nativeElement.setAttribute("aria-describedby",Ae.join(" ")):this._elementRef.nativeElement.removeAttribute("aria-describedby")}onContainerClick(){this.focus(),this.open()}get shouldLabelFloat(){return this._panelOpen||!this.empty||this._focused&&!!this._placeholder}}return oe.\u0275fac=function(Ae){return new(Ae||oe)(b.Y36(C.rL),b.Y36(b.sBO),b.Y36(b.R0b),b.Y36(I.rD),b.Y36(b.SBq),b.Y36(P.Is,8),b.Y36(O.F,8),b.Y36(O.sg,8),b.Y36(s.G_,8),b.Y36(O.a5,10),b.$8M("tabindex"),b.Y36(B),b.Y36(h.Kd),b.Y36(X,8))},oe.\u0275dir=b.lG2({type:oe,viewQuery:function(Ae,he){if(1&Ae&&(b.Gf(de,5),b.Gf($,5),b.Gf(t.pI,5)),2&Ae){let Ce;b.iGM(Ce=b.CRH())&&(he.trigger=Ce.first),b.iGM(Ce=b.CRH())&&(he.panel=Ce.first),b.iGM(Ce=b.CRH())&&(he._overlayDir=Ce.first)}},inputs:{userAriaDescribedBy:["aria-describedby","userAriaDescribedBy"],panelClass:"panelClass",placeholder:"placeholder",required:"required",multiple:"multiple",disableOptionCentering:"disableOptionCentering",compareWith:"compareWith",value:"value",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],errorStateMatcher:"errorStateMatcher",typeaheadDebounceInterval:"typeaheadDebounceInterval",sortComparator:"sortComparator",id:"id"},outputs:{openedChange:"openedChange",_openedStream:"opened",_closedStream:"closed",selectionChange:"selectionChange",valueChange:"valueChange"},features:[b.qOj,b.TTD]}),oe})(),ye=(()=>{class oe{}return oe.\u0275fac=function(Ae){return new(Ae||oe)},oe.\u0275dir=b.lG2({type:oe,selectors:[["mat-select-trigger"]],features:[b._Bn([{provide:$e,useExisting:oe}])]}),oe})(),ce=(()=>{class oe extends De{constructor(){super(...arguments),this._positions=[{originX:"start",originY:"bottom",overlayX:"start",overlayY:"top"},{originX:"start",originY:"top",overlayX:"start",overlayY:"bottom",panelClass:"mat-mdc-select-panel-above"}]}get shouldLabelFloat(){return this.panelOpen||!this.empty||this.focused&&!!this.placeholder}ngOnInit(){super.ngOnInit(),this._viewportRuler.change().pipe((0,le.R)(this._destroy)).subscribe(()=>{this.panelOpen&&(this._overlayWidth=this._getOverlayWidth(),this._changeDetectorRef.detectChanges())})}ngAfterViewInit(){this._parentFormField&&(this._preferredOverlayOrigin=this._parentFormField.getConnectedOverlayOrigin())}open(){this._overlayWidth=this._getOverlayWidth(),super.open(),this.stateChanges.next()}close(){super.close(),this.stateChanges.next()}_scrollOptionIntoView(Ae){const he=this.options.toArray()[Ae];if(he){const Ce=this.panel.nativeElement,te=(0,I.CB)(Ae,this.options,this.optionGroups),Ue=he._getHostElement();Ce.scrollTop=0===Ae&&1===te?0:(0,I.jH)(Ue.offsetTop,Ue.offsetHeight,Ce.scrollTop,Ce.offsetHeight)}}_positioningSettled(){this._scrollOptionIntoView(this._keyManager.activeItemIndex||0)}_getChangeEvent(Ae){return new We(this,Ae)}_getOverlayWidth(){return(this._preferredOverlayOrigin instanceof t.xu?this._preferredOverlayOrigin.elementRef:this._preferredOverlayOrigin||this._elementRef).nativeElement.getBoundingClientRect().width}}return oe.\u0275fac=function(){let je;return function(he){return(je||(je=b.n5z(oe)))(he||oe)}}(),oe.\u0275cmp=b.Xpm({type:oe,selectors:[["mat-select"]],contentQueries:function(Ae,he,Ce){if(1&Ae&&(b.Suo(Ce,$e,5),b.Suo(Ce,I.ey,5),b.Suo(Ce,I.K7,5)),2&Ae){let te;b.iGM(te=b.CRH())&&(he.customTrigger=te.first),b.iGM(te=b.CRH())&&(he.options=te),b.iGM(te=b.CRH())&&(he.optionGroups=te)}},hostAttrs:["role","combobox","aria-autocomplete","none","aria-haspopup","listbox",1,"mat-mdc-select"],hostVars:19,hostBindings:function(Ae,he){1&Ae&&b.NdJ("keydown",function(te){return he._handleKeydown(te)})("focus",function(){return he._onFocus()})("blur",function(){return he._onBlur()}),2&Ae&&(b.uIk("id",he.id)("tabindex",he.tabIndex)("aria-controls",he.panelOpen?he.id+"-panel":null)("aria-expanded",he.panelOpen)("aria-label",he.ariaLabel||null)("aria-required",he.required.toString())("aria-disabled",he.disabled.toString())("aria-invalid",he.errorState)("aria-activedescendant",he._getAriaActiveDescendant()),b.ekj("mat-mdc-select-disabled",he.disabled)("mat-mdc-select-invalid",he.errorState)("mat-mdc-select-required",he.required)("mat-mdc-select-empty",he.empty)("mat-mdc-select-multiple",he.multiple))},inputs:{disabled:"disabled",disableRipple:"disableRipple",tabIndex:"tabIndex"},exportAs:["matSelect"],features:[b._Bn([{provide:s.Eo,useExisting:oe},{provide:I.HF,useExisting:oe}]),b.qOj],ngContentSelectors:y,decls:11,vars:11,consts:[["cdk-overlay-origin","",1,"mat-mdc-select-trigger",3,"click"],["fallbackOverlayOrigin","cdkOverlayOrigin","trigger",""],[1,"mat-mdc-select-value",3,"ngSwitch"],["class","mat-mdc-select-placeholder mat-mdc-select-min-line",4,"ngSwitchCase"],["class","mat-mdc-select-value-text",3,"ngSwitch",4,"ngSwitchCase"],[1,"mat-mdc-select-arrow-wrapper"],[1,"mat-mdc-select-arrow"],["viewBox","0 0 24 24","width","24px","height","24px","focusable","false"],["d","M7 10l5 5 5-5z"],["cdk-connected-overlay","","cdkConnectedOverlayLockPosition","","cdkConnectedOverlayHasBackdrop","","cdkConnectedOverlayBackdropClass","cdk-overlay-transparent-backdrop",3,"cdkConnectedOverlayPanelClass","cdkConnectedOverlayScrollStrategy","cdkConnectedOverlayOrigin","cdkConnectedOverlayOpen","cdkConnectedOverlayPositions","cdkConnectedOverlayWidth","backdropClick","attach","detach"],[1,"mat-mdc-select-placeholder","mat-mdc-select-min-line"],[1,"mat-mdc-select-value-text",3,"ngSwitch"],["class","mat-mdc-select-min-line",4,"ngSwitchDefault"],[4,"ngSwitchCase"],[1,"mat-mdc-select-min-line"],["role","listbox","tabindex","-1",3,"ngClass","keydown"],["panel",""]],template:function(Ae,he){if(1&Ae&&(b.F$t(l),b.TgZ(0,"div",0,1),b.NdJ("click",function(){return he.toggle()}),b.TgZ(3,"div",2),b.YNc(4,me,2,1,"span",3),b.YNc(5,a,3,2,"span",4),b.qZA(),b.TgZ(6,"div",5)(7,"div",6),b.O4$(),b.TgZ(8,"svg",7),b._UZ(9,"path",8),b.qZA()()()(),b.YNc(10,u,3,9,"ng-template",9),b.NdJ("backdropClick",function(){return he.close()})("attach",function(){return he._onAttached()})("detach",function(){return he.close()})),2&Ae){const Ce=b.MAs(1);b.uIk("aria-owns",he.panelOpen?he.id+"-panel":null),b.xp6(3),b.Q6J("ngSwitch",he.empty),b.uIk("id",he._valueId),b.xp6(1),b.Q6J("ngSwitchCase",!0),b.xp6(1),b.Q6J("ngSwitchCase",!1),b.xp6(5),b.Q6J("cdkConnectedOverlayPanelClass",he._overlayPanelClass)("cdkConnectedOverlayScrollStrategy",he._scrollStrategy)("cdkConnectedOverlayOrigin",he._preferredOverlayOrigin||Ce)("cdkConnectedOverlayOpen",he.panelOpen)("cdkConnectedOverlayPositions",he._positions)("cdkConnectedOverlayWidth",he._overlayWidth)}},dependencies:[e.mk,e.RF,e.n9,e.ED,t.pI,t.xu],styles:['.mdc-menu-surface{display:none;position:absolute;box-sizing:border-box;max-width:calc(100vw - 32px);max-width:var(--mdc-menu-max-width, calc(100vw - 32px));max-height:calc(100vh - 32px);max-height:var(--mdc-menu-max-height, calc(100vh - 32px));margin:0;padding:0;transform:scale(1);transform-origin:top left;opacity:0;overflow:auto;will-change:transform,opacity;z-index:8;border-radius:4px;border-radius:var(--mdc-shape-medium, 4px);transform-origin-left:top left;transform-origin-right:top right}.mdc-menu-surface:focus{outline:none}.mdc-menu-surface--animating-open{display:inline-block;transform:scale(0.8);opacity:0}.mdc-menu-surface--open{display:inline-block;transform:scale(1);opacity:1}.mdc-menu-surface--animating-closed{display:inline-block;opacity:0}[dir=rtl] .mdc-menu-surface,.mdc-menu-surface[dir=rtl]{transform-origin-left:top right;transform-origin-right:top left}.mdc-menu-surface--anchor{position:relative;overflow:visible}.mdc-menu-surface--fixed{position:fixed}.mdc-menu-surface--fullwidth{width:100%}.mat-mdc-select{display:inline-block;width:100%;outline:none}.mat-mdc-select-trigger{display:inline-flex;align-items:center;cursor:pointer;position:relative;box-sizing:border-box;width:100%}.mat-mdc-select-disabled .mat-mdc-select-trigger{-webkit-user-select:none;user-select:none;cursor:default}.mat-mdc-select-value{width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.mat-mdc-select-value-text{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.mat-mdc-select-arrow-wrapper{height:24px;flex-shrink:0;display:inline-flex;align-items:center}.mat-form-field-appearance-fill .mat-mdc-select-arrow-wrapper{transform:translateY(-8px)}.mat-form-field-appearance-fill .mdc-text-field--no-label .mat-mdc-select-arrow-wrapper{transform:none}.mat-mdc-select-arrow{width:10px;height:5px;position:relative}.mat-mdc-select-arrow svg{fill:currentColor;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%)}.cdk-high-contrast-active .mat-mdc-select-arrow svg{fill:CanvasText}.mat-mdc-select-disabled .cdk-high-contrast-active .mat-mdc-select-arrow svg{fill:GrayText}.mdc-menu-surface.mat-mdc-select-panel{width:100%;max-height:275px;position:static;outline:0;margin:0;padding:8px 0;list-style-type:none}.mdc-menu-surface.mat-mdc-select-panel:focus{outline:none}.cdk-high-contrast-active .mdc-menu-surface.mat-mdc-select-panel{outline:solid 1px}.cdk-overlay-pane:not(.mat-mdc-select-panel-above) .mdc-menu-surface.mat-mdc-select-panel{border-top-left-radius:0;border-top-right-radius:0;transform-origin:top center}.mat-mdc-select-panel-above .mdc-menu-surface.mat-mdc-select-panel{border-bottom-left-radius:0;border-bottom-right-radius:0;transform-origin:bottom center}.mat-mdc-select-placeholder{transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1)}._mat-animation-noopable .mat-mdc-select-placeholder{transition:none}.mat-form-field-hide-placeholder .mat-mdc-select-placeholder{color:rgba(0,0,0,0);-webkit-text-fill-color:rgba(0,0,0,0);transition:none;display:block}.mat-mdc-form-field-type-mat-select.mat-form-field-appearance-fill .mat-mdc-floating-label{max-width:calc(100% - 18px)}.mat-mdc-form-field-type-mat-select.mat-form-field-appearance-fill .mdc-floating-label--float-above{max-width:calc(100% / 0.75 - 24px)}.mat-mdc-form-field-type-mat-select.mat-form-field-appearance-outline .mdc-notched-outline__notch{max-width:calc(100% - 60px)}.mat-mdc-form-field-type-mat-select.mat-form-field-appearance-outline .mdc-text-field--label-floating .mdc-notched-outline__notch{max-width:calc(100% - 24px)}.mat-mdc-select-min-line:empty::before{content:" ";white-space:pre;width:1px;display:inline-block;visibility:hidden}'],encapsulation:2,data:{animation:[T.transformPanel]},changeDetection:0}),oe})(),ve=(()=>{class oe{}return oe.\u0275fac=function(Ae){return new(Ae||oe)},oe.\u0275mod=b.oAB({type:oe}),oe.\u0275inj=b.cJS({providers:[Le],imports:[e.ez,t.U8,I.Ng,I.BQ,C.ZD,s.lN,I.Ng,I.BQ]}),oe})()},3267:(Ve,q,p)=>{"use strict";p.d(q,{JX:()=>$e,Rh:()=>Le,SJ:()=>Fe,TM:()=>We});var t=p(531),e=p(6895),b=p(4650),I=p(3238),s=p(4761),C=p(445),h=p(1281),P=p(9521),d=p(3353),S=p(7579),w=p(4968),O=p(6451),E=p(9300),R=p(4004),z=p(9718),U=p(2722),W=p(1884),K=p(5698),ee=p(8675),ie=p(8372),ue=p(7340);const le=["*"],ne=["content"];function de(De,ye){if(1&De){const ce=b.EpF();b.TgZ(0,"div",2),b.NdJ("click",function(){b.CHM(ce);const oe=b.oxw();return b.KtG(oe._onBackdropClicked())}),b.qZA()}if(2&De){const ce=b.oxw();b.ekj("mat-drawer-shown",ce._isShowingBackdrop())}}function $(De,ye){1&De&&(b.TgZ(0,"mat-drawer-content"),b.Hsn(1,2),b.qZA())}const me=[[["mat-drawer"]],[["mat-drawer-content"]],"*"],A=["mat-drawer","mat-drawer-content","*"];function i(De,ye){if(1&De){const ce=b.EpF();b.TgZ(0,"div",2),b.NdJ("click",function(){b.CHM(ce);const oe=b.oxw();return b.KtG(oe._onBackdropClicked())}),b.qZA()}if(2&De){const ce=b.oxw();b.ekj("mat-drawer-shown",ce._isShowingBackdrop())}}function a(De,ye){1&De&&(b.TgZ(0,"mat-sidenav-content"),b.Hsn(1,2),b.qZA())}const u=[[["mat-sidenav"]],[["mat-sidenav-content"]],"*"],l=["mat-sidenav","mat-sidenav-content","*"],T={transformDrawer:(0,ue.X$)("transform",[(0,ue.SB)("open, open-instant",(0,ue.oB)({transform:"none",visibility:"visible"})),(0,ue.SB)("void",(0,ue.oB)({"box-shadow":"none",visibility:"hidden"})),(0,ue.eR)("void => open-instant",(0,ue.jt)("0ms")),(0,ue.eR)("void <=> open, open-instant => void",(0,ue.jt)("400ms cubic-bezier(0.25, 0.8, 0.25, 1)"))])},m=new b.OlP("MAT_DRAWER_DEFAULT_AUTOSIZE",{providedIn:"root",factory:function _(){return!1}}),n=new b.OlP("MAT_DRAWER_CONTAINER");let B=(()=>{class De extends t.PQ{constructor(ce,ve,oe,je,Ae){super(oe,je,Ae),this._changeDetectorRef=ce,this._container=ve}ngAfterContentInit(){this._container._contentMarginChanges.subscribe(()=>{this._changeDetectorRef.markForCheck()})}}return De.\u0275fac=function(ce){return new(ce||De)(b.Y36(b.sBO),b.Y36((0,b.Gpc)(()=>X)),b.Y36(b.SBq),b.Y36(t.mF),b.Y36(b.R0b))},De.\u0275cmp=b.Xpm({type:De,selectors:[["mat-drawer-content"]],hostAttrs:[1,"mat-drawer-content"],hostVars:4,hostBindings:function(ce,ve){2&ce&&b.Udp("margin-left",ve._container._contentMargins.left,"px")("margin-right",ve._container._contentMargins.right,"px")},features:[b._Bn([{provide:t.PQ,useExisting:De}]),b.qOj],ngContentSelectors:le,decls:1,vars:0,template:function(ce,ve){1&ce&&(b.F$t(),b.Hsn(0))},encapsulation:2,changeDetection:0}),De})(),V=(()=>{class De{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,h.Ig)(ce)}get autoFocus(){return this._autoFocus??("side"===this.mode?"dialog":"first-tabbable")}set autoFocus(ce){("true"===ce||"false"===ce||null==ce)&&(ce=(0,h.Ig)(ce)),this._autoFocus=ce}get opened(){return this._opened}set opened(ce){this.toggle((0,h.Ig)(ce))}constructor(ce,ve,oe,je,Ae,he,Ce,te){this._elementRef=ce,this._focusTrapFactory=ve,this._focusMonitor=oe,this._platform=je,this._ngZone=Ae,this._interactivityChecker=he,this._doc=Ce,this._container=te,this._elementFocusedBeforeDrawerWasOpened=null,this._enableAnimations=!1,this._position="start",this._mode="over",this._disableClose=!1,this._opened=!1,this._animationStarted=new S.x,this._animationEnd=new S.x,this._animationState="void",this.openedChange=new b.vpe(!0),this._openedStream=this.openedChange.pipe((0,E.h)(Ue=>Ue),(0,R.U)(()=>{})),this.openedStart=this._animationStarted.pipe((0,E.h)(Ue=>Ue.fromState!==Ue.toState&&0===Ue.toState.indexOf("open")),(0,z.h)(void 0)),this._closedStream=this.openedChange.pipe((0,E.h)(Ue=>!Ue),(0,R.U)(()=>{})),this.closedStart=this._animationStarted.pipe((0,E.h)(Ue=>Ue.fromState!==Ue.toState&&"void"===Ue.toState),(0,z.h)(void 0)),this._destroyed=new S.x,this.onPositionChanged=new b.vpe,this._modeChanged=new S.x,this.openedChange.subscribe(Ue=>{Ue?(this._doc&&(this._elementFocusedBeforeDrawerWasOpened=this._doc.activeElement),this._takeFocus()):this._isFocusWithinDrawer()&&this._restoreFocus(this._openedVia||"program")}),this._ngZone.runOutsideAngular(()=>{(0,w.R)(this._elementRef.nativeElement,"keydown").pipe((0,E.h)(Ue=>Ue.keyCode===P.hY&&!this.disableClose&&!(0,P.Vb)(Ue)),(0,U.R)(this._destroyed)).subscribe(Ue=>this._ngZone.run(()=>{this.close(),Ue.stopPropagation(),Ue.preventDefault()}))}),this._animationEnd.pipe((0,W.x)((Ue,Be)=>Ue.fromState===Be.fromState&&Ue.toState===Be.toState)).subscribe(Ue=>{const{fromState:Be,toState:ae}=Ue;(0===ae.indexOf("open")&&"void"===Be||"void"===ae&&0===Be.indexOf("open"))&&this.openedChange.emit(this._opened)})}_forceFocus(ce,ve){this._interactivityChecker.isFocusable(ce)||(ce.tabIndex=-1,this._ngZone.runOutsideAngular(()=>{const oe=()=>{ce.removeEventListener("blur",oe),ce.removeEventListener("mousedown",oe),ce.removeAttribute("tabindex")};ce.addEventListener("blur",oe),ce.addEventListener("mousedown",oe)})),ce.focus(ve)}_focusByCssSelector(ce,ve){let oe=this._elementRef.nativeElement.querySelector(ce);oe&&this._forceFocus(oe,ve)}_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(ve=>{!ve&&"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(){this._focusTrap&&this._focusTrap.destroy(),this._anchor?.remove(),this._anchor=null,this._animationStarted.complete(),this._animationEnd.complete(),this._modeChanged.complete(),this._destroyed.next(),this._destroyed.complete()}open(ce){return this.toggle(!0,ce)}close(){return this.toggle(!1)}_closeViaBackdropClick(){return this._setOpen(!1,!0,"mouse")}toggle(ce=!this.opened,ve){ce&&ve&&(this._openedVia=ve);const oe=this._setOpen(ce,!ce&&this._isFocusWithinDrawer(),this._openedVia||"program");return ce||(this._openedVia=null),oe}_setOpen(ce,ve,oe){return this._opened=ce,ce?this._animationState=this._enableAnimations?"open":"open-instant":(this._animationState="void",ve&&this._restoreFocus(oe)),this._updateFocusTrapState(),new Promise(je=>{this.openedChange.pipe((0,K.q)(1)).subscribe(Ae=>je(Ae?"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 ve=this._elementRef.nativeElement,oe=ve.parentNode;"end"===ce?(this._anchor||(this._anchor=this._doc.createComment("mat-drawer-anchor"),oe.insertBefore(this._anchor,ve)),oe.appendChild(ve)):this._anchor&&this._anchor.parentNode.insertBefore(ve,this._anchor)}}return De.\u0275fac=function(ce){return new(ce||De)(b.Y36(b.SBq),b.Y36(s.qV),b.Y36(s.tE),b.Y36(d.t4),b.Y36(b.R0b),b.Y36(s.ic),b.Y36(e.K0,8),b.Y36(n,8))},De.\u0275cmp=b.Xpm({type:De,selectors:[["mat-drawer"]],viewQuery:function(ce,ve){if(1&ce&&b.Gf(ne,5),2&ce){let oe;b.iGM(oe=b.CRH())&&(ve._content=oe.first)}},hostAttrs:["tabIndex","-1",1,"mat-drawer"],hostVars:12,hostBindings:function(ce,ve){1&ce&&b.WFA("@transform.start",function(je){return ve._animationStarted.next(je)})("@transform.done",function(je){return ve._animationEnd.next(je)}),2&ce&&(b.uIk("align",null),b.d8E("@transform",ve._animationState),b.ekj("mat-drawer-end","end"===ve.position)("mat-drawer-over","over"===ve.mode)("mat-drawer-push","push"===ve.mode)("mat-drawer-side","side"===ve.mode)("mat-drawer-opened",ve.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:le,decls:3,vars:0,consts:[["cdkScrollable","",1,"mat-drawer-inner-container"],["content",""]],template:function(ce,ve){1&ce&&(b.F$t(),b.TgZ(0,"div",0,1),b.Hsn(2),b.qZA())},dependencies:[t.PQ],encapsulation:2,data:{animation:[T.transformDrawer]},changeDetection:0}),De})(),X=(()=>{class De{get start(){return this._start}get end(){return this._end}get autosize(){return this._autosize}set autosize(ce){this._autosize=(0,h.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,h.Ig)(ce)}get scrollable(){return this._userContent||this._content}constructor(ce,ve,oe,je,Ae,he=!1,Ce){this._dir=ce,this._element=ve,this._ngZone=oe,this._changeDetectorRef=je,this._animationMode=Ce,this._drawers=new b.n_E,this.backdropClick=new b.vpe,this._destroyed=new S.x,this._doCheckSubject=new S.x,this._contentMargins={left:null,right:null},this._contentMarginChanges=new S.x,ce&&ce.change.pipe((0,U.R)(this._destroyed)).subscribe(()=>{this._validateDrawers(),this.updateContentMargins()}),Ae.change().pipe((0,U.R)(this._destroyed)).subscribe(()=>this.updateContentMargins()),this._autosize=he}ngAfterContentInit(){this._allDrawers.changes.pipe((0,ee.O)(this._allDrawers),(0,U.R)(this._destroyed)).subscribe(ce=>{this._drawers.reset(ce.filter(ve=>!ve._container||ve._container===this)),this._drawers.notifyOnChanges()}),this._drawers.changes.pipe((0,ee.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,ie.b)(10),(0,U.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,ve=0;if(this._left&&this._left.opened)if("side"==this._left.mode)ce+=this._left._getWidth();else if("push"==this._left.mode){const oe=this._left._getWidth();ce+=oe,ve-=oe}if(this._right&&this._right.opened)if("side"==this._right.mode)ve+=this._right._getWidth();else if("push"==this._right.mode){const oe=this._right._getWidth();ve+=oe,ce-=oe}ce=ce||null,ve=ve||null,(ce!==this._contentMargins.left||ve!==this._contentMargins.right)&&(this._contentMargins={left:ce,right:ve},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,E.h)(ve=>ve.fromState!==ve.toState),(0,U.R)(this._drawers.changes)).subscribe(ve=>{"open-instant"!==ve.toState&&"NoopAnimations"!==this._animationMode&&this._element.nativeElement.classList.add("mat-drawer-transition"),this.updateContentMargins(),this._changeDetectorRef.markForCheck()}),"side"!==ce.mode&&ce.openedChange.pipe((0,U.R)(this._drawers.changes)).subscribe(()=>this._setContainerClass(ce.opened))}_watchDrawerPosition(ce){ce&&ce.onPositionChanged.pipe((0,U.R)(this._drawers.changes)).subscribe(()=>{this._ngZone.onMicrotaskEmpty.pipe((0,K.q)(1)).subscribe(()=>{this._validateDrawers()})})}_watchDrawerMode(ce){ce&&ce._modeChanged.pipe((0,U.R)((0,O.T)(this._drawers.changes,this._destroyed))).subscribe(()=>{this.updateContentMargins(),this._changeDetectorRef.markForCheck()})}_setContainerClass(ce){const ve=this._element.nativeElement.classList,oe="mat-drawer-container-has-open";ce?ve.add(oe):ve.remove(oe)}_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 De.\u0275fac=function(ce){return new(ce||De)(b.Y36(C.Is,8),b.Y36(b.SBq),b.Y36(b.R0b),b.Y36(b.sBO),b.Y36(t.rL),b.Y36(m),b.Y36(b.QbO,8))},De.\u0275cmp=b.Xpm({type:De,selectors:[["mat-drawer-container"]],contentQueries:function(ce,ve,oe){if(1&ce&&(b.Suo(oe,B,5),b.Suo(oe,V,5)),2&ce){let je;b.iGM(je=b.CRH())&&(ve._content=je.first),b.iGM(je=b.CRH())&&(ve._allDrawers=je)}},viewQuery:function(ce,ve){if(1&ce&&b.Gf(B,5),2&ce){let oe;b.iGM(oe=b.CRH())&&(ve._userContent=oe.first)}},hostAttrs:[1,"mat-drawer-container"],hostVars:2,hostBindings:function(ce,ve){2&ce&&b.ekj("mat-drawer-container-explicit-backdrop",ve._backdropOverride)},inputs:{autosize:"autosize",hasBackdrop:"hasBackdrop"},outputs:{backdropClick:"backdropClick"},exportAs:["matDrawerContainer"],features:[b._Bn([{provide:n,useExisting:De}])],ngContentSelectors:A,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,ve){1&ce&&(b.F$t(me),b.YNc(0,de,1,2,"div",0),b.Hsn(1),b.Hsn(2,1),b.YNc(3,$,2,0,"mat-drawer-content",1)),2&ce&&(b.Q6J("ngIf",ve.hasBackdrop),b.xp6(3),b.Q6J("ngIf",!ve._content))},dependencies:[e.O5,B],styles:['.mat-drawer-container{position:relative;z-index:1;box-sizing:border-box;-webkit-overflow-scrolling:touch;display:block;overflow:hidden}.mat-drawer-container[fullscreen]{top:0;left:0;right:0;bottom:0;position:absolute}.mat-drawer-container[fullscreen].mat-drawer-container-has-open{overflow:hidden}.mat-drawer-container.mat-drawer-container-explicit-backdrop .mat-drawer-side{z-index:3}.mat-drawer-container.ng-animate-disabled .mat-drawer-backdrop,.mat-drawer-container.ng-animate-disabled .mat-drawer-content,.ng-animate-disabled .mat-drawer-container .mat-drawer-backdrop,.ng-animate-disabled .mat-drawer-container .mat-drawer-content{transition:none}.mat-drawer-backdrop{top:0;left:0;right:0;bottom:0;position:absolute;display:block;z-index:3;visibility:hidden}.mat-drawer-backdrop.mat-drawer-shown{visibility:visible}.mat-drawer-transition .mat-drawer-backdrop{transition-duration:400ms;transition-timing-function:cubic-bezier(0.25, 0.8, 0.25, 1);transition-property:background-color,visibility}.cdk-high-contrast-active .mat-drawer-backdrop{opacity:.5}.mat-drawer-content{position:relative;z-index:1;display:block;height:100%;overflow:auto}.mat-drawer-transition .mat-drawer-content{transition-duration:400ms;transition-timing-function:cubic-bezier(0.25, 0.8, 0.25, 1);transition-property:transform,margin-left,margin-right}.mat-drawer{position:relative;z-index:4;display:block;position:absolute;top:0;bottom:0;z-index:3;outline:0;box-sizing:border-box;overflow-y:auto;transform:translate3d(-100%, 0, 0)}.cdk-high-contrast-active .mat-drawer,.cdk-high-contrast-active [dir=rtl] .mat-drawer.mat-drawer-end{border-right:solid 1px currentColor}.cdk-high-contrast-active [dir=rtl] .mat-drawer,.cdk-high-contrast-active .mat-drawer.mat-drawer-end{border-left:solid 1px currentColor;border-right:none}.mat-drawer.mat-drawer-side{z-index:2}.mat-drawer.mat-drawer-end{right:0;transform:translate3d(100%, 0, 0)}[dir=rtl] .mat-drawer{transform:translate3d(100%, 0, 0)}[dir=rtl] .mat-drawer.mat-drawer-end{left:0;right:auto;transform:translate3d(-100%, 0, 0)}.mat-drawer[style*="visibility: hidden"]{display:none}.mat-drawer-inner-container{width:100%;height:100%;overflow:auto;-webkit-overflow-scrolling:touch}.mat-sidenav-fixed{position:fixed}'],encapsulation:2,changeDetection:0}),De})(),Le=(()=>{class De extends B{constructor(ce,ve,oe,je,Ae){super(ce,ve,oe,je,Ae)}}return De.\u0275fac=function(ce){return new(ce||De)(b.Y36(b.sBO),b.Y36((0,b.Gpc)(()=>We)),b.Y36(b.SBq),b.Y36(t.mF),b.Y36(b.R0b))},De.\u0275cmp=b.Xpm({type:De,selectors:[["mat-sidenav-content"]],hostAttrs:[1,"mat-drawer-content","mat-sidenav-content"],hostVars:4,hostBindings:function(ce,ve){2&ce&&b.Udp("margin-left",ve._container._contentMargins.left,"px")("margin-right",ve._container._contentMargins.right,"px")},features:[b._Bn([{provide:t.PQ,useExisting:De}]),b.qOj],ngContentSelectors:le,decls:1,vars:0,template:function(ce,ve){1&ce&&(b.F$t(),b.Hsn(0))},encapsulation:2,changeDetection:0}),De})(),$e=(()=>{class De extends V{constructor(){super(...arguments),this._fixedInViewport=!1,this._fixedTopGap=0,this._fixedBottomGap=0}get fixedInViewport(){return this._fixedInViewport}set fixedInViewport(ce){this._fixedInViewport=(0,h.Ig)(ce)}get fixedTopGap(){return this._fixedTopGap}set fixedTopGap(ce){this._fixedTopGap=(0,h.su)(ce)}get fixedBottomGap(){return this._fixedBottomGap}set fixedBottomGap(ce){this._fixedBottomGap=(0,h.su)(ce)}}return De.\u0275fac=function(){let ye;return function(ve){return(ye||(ye=b.n5z(De)))(ve||De)}}(),De.\u0275cmp=b.Xpm({type:De,selectors:[["mat-sidenav"]],hostAttrs:["tabIndex","-1",1,"mat-drawer","mat-sidenav"],hostVars:17,hostBindings:function(ce,ve){2&ce&&(b.uIk("align",null),b.Udp("top",ve.fixedInViewport?ve.fixedTopGap:null,"px")("bottom",ve.fixedInViewport?ve.fixedBottomGap:null,"px"),b.ekj("mat-drawer-end","end"===ve.position)("mat-drawer-over","over"===ve.mode)("mat-drawer-push","push"===ve.mode)("mat-drawer-side","side"===ve.mode)("mat-drawer-opened",ve.opened)("mat-sidenav-fixed",ve.fixedInViewport))},inputs:{fixedInViewport:"fixedInViewport",fixedTopGap:"fixedTopGap",fixedBottomGap:"fixedBottomGap"},exportAs:["matSidenav"],features:[b.qOj],ngContentSelectors:le,decls:3,vars:0,consts:[["cdkScrollable","",1,"mat-drawer-inner-container"],["content",""]],template:function(ce,ve){1&ce&&(b.F$t(),b.TgZ(0,"div",0,1),b.Hsn(2),b.qZA())},dependencies:[t.PQ],encapsulation:2,data:{animation:[T.transformDrawer]},changeDetection:0}),De})(),We=(()=>{class De extends X{}return De.\u0275fac=function(){let ye;return function(ve){return(ye||(ye=b.n5z(De)))(ve||De)}}(),De.\u0275cmp=b.Xpm({type:De,selectors:[["mat-sidenav-container"]],contentQueries:function(ce,ve,oe){if(1&ce&&(b.Suo(oe,Le,5),b.Suo(oe,$e,5)),2&ce){let je;b.iGM(je=b.CRH())&&(ve._content=je.first),b.iGM(je=b.CRH())&&(ve._allDrawers=je)}},hostAttrs:[1,"mat-drawer-container","mat-sidenav-container"],hostVars:2,hostBindings:function(ce,ve){2&ce&&b.ekj("mat-drawer-container-explicit-backdrop",ve._backdropOverride)},exportAs:["matSidenavContainer"],features:[b._Bn([{provide:n,useExisting:De}]),b.qOj],ngContentSelectors:l,decls:4,vars:2,consts:[["class","mat-drawer-backdrop",3,"mat-drawer-shown","click",4,"ngIf"],[4,"ngIf"],[1,"mat-drawer-backdrop",3,"click"]],template:function(ce,ve){1&ce&&(b.F$t(u),b.YNc(0,i,1,2,"div",0),b.Hsn(1),b.Hsn(2,1),b.YNc(3,a,2,0,"mat-sidenav-content",1)),2&ce&&(b.Q6J("ngIf",ve.hasBackdrop),b.xp6(3),b.Q6J("ngIf",!ve._content))},dependencies:[e.O5,Le],styles:['.mat-drawer-container{position:relative;z-index:1;box-sizing:border-box;-webkit-overflow-scrolling:touch;display:block;overflow:hidden}.mat-drawer-container[fullscreen]{top:0;left:0;right:0;bottom:0;position:absolute}.mat-drawer-container[fullscreen].mat-drawer-container-has-open{overflow:hidden}.mat-drawer-container.mat-drawer-container-explicit-backdrop .mat-drawer-side{z-index:3}.mat-drawer-container.ng-animate-disabled .mat-drawer-backdrop,.mat-drawer-container.ng-animate-disabled .mat-drawer-content,.ng-animate-disabled .mat-drawer-container .mat-drawer-backdrop,.ng-animate-disabled .mat-drawer-container .mat-drawer-content{transition:none}.mat-drawer-backdrop{top:0;left:0;right:0;bottom:0;position:absolute;display:block;z-index:3;visibility:hidden}.mat-drawer-backdrop.mat-drawer-shown{visibility:visible}.mat-drawer-transition .mat-drawer-backdrop{transition-duration:400ms;transition-timing-function:cubic-bezier(0.25, 0.8, 0.25, 1);transition-property:background-color,visibility}.cdk-high-contrast-active .mat-drawer-backdrop{opacity:.5}.mat-drawer-content{position:relative;z-index:1;display:block;height:100%;overflow:auto}.mat-drawer-transition .mat-drawer-content{transition-duration:400ms;transition-timing-function:cubic-bezier(0.25, 0.8, 0.25, 1);transition-property:transform,margin-left,margin-right}.mat-drawer{position:relative;z-index:4;display:block;position:absolute;top:0;bottom:0;z-index:3;outline:0;box-sizing:border-box;overflow-y:auto;transform:translate3d(-100%, 0, 0)}.cdk-high-contrast-active .mat-drawer,.cdk-high-contrast-active [dir=rtl] .mat-drawer.mat-drawer-end{border-right:solid 1px currentColor}.cdk-high-contrast-active [dir=rtl] .mat-drawer,.cdk-high-contrast-active .mat-drawer.mat-drawer-end{border-left:solid 1px currentColor;border-right:none}.mat-drawer.mat-drawer-side{z-index:2}.mat-drawer.mat-drawer-end{right:0;transform:translate3d(100%, 0, 0)}[dir=rtl] .mat-drawer{transform:translate3d(100%, 0, 0)}[dir=rtl] .mat-drawer.mat-drawer-end{left:0;right:auto;transform:translate3d(-100%, 0, 0)}.mat-drawer[style*="visibility: hidden"]{display:none}.mat-drawer-inner-container{width:100%;height:100%;overflow:auto;-webkit-overflow-scrolling:touch}.mat-sidenav-fixed{position:fixed}'],encapsulation:2,changeDetection:0}),De})(),Fe=(()=>{class De{}return De.\u0275fac=function(ce){return new(ce||De)},De.\u0275mod=b.oAB({type:De}),De.\u0275inj=b.cJS({imports:[e.ez,I.BQ,t.ZD,t.ZD,I.BQ]}),De})()},455:(Ve,q,p)=>{"use strict";p.d(q,{Rr:()=>z,rP:()=>ee});var t=p(4650),e=p(4006),b=p(4761),I=p(3238),s=p(1281),C=p(6895);const h=["switch"],P=["*"],d=new t.OlP("mat-slide-toggle-default-options",{providedIn:"root",factory:()=>({disableToggleValue:!1})}),S={provide:e.JU,useExisting:(0,t.Gpc)(()=>z),multi:!0};class w{constructor(ue,le){this.source=ue,this.checked=le}}let O=0;const E=(0,I.sb)((0,I.pj)((0,I.Kr)((0,I.Id)(class{constructor(ie){this._elementRef=ie}}))));let R=(()=>{class ie extends E{get required(){return this._required}set required(le){this._required=(0,s.Ig)(le)}get checked(){return this._checked}set checked(le){this._checked=(0,s.Ig)(le),this._changeDetectorRef.markForCheck()}get inputId(){return`${this.id||this._uniqueId}-input`}constructor(le,ne,de,$,me,A,i){super(le),this._focusMonitor=ne,this._changeDetectorRef=de,this.defaults=me,this._onChange=a=>{},this._onTouched=()=>{},this._required=!1,this._checked=!1,this.name=null,this.labelPosition="after",this.ariaLabel=null,this.ariaLabelledby=null,this.change=new t.vpe,this.toggleChange=new t.vpe,this.tabIndex=parseInt($)||0,this.color=this.defaultColor=me.color||"accent",this._noopAnimations="NoopAnimations"===A,this.id=this._uniqueId=`${i}${++O}`}ngAfterContentInit(){this._focusMonitor.monitor(this._elementRef,!0).subscribe(le=>{"keyboard"===le||"program"===le?(this._focused=!0,this._changeDetectorRef.markForCheck()):le||Promise.resolve().then(()=>{this._focused=!1,this._onTouched(),this._changeDetectorRef.markForCheck()})})}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef)}writeValue(le){this.checked=!!le}registerOnChange(le){this._onChange=le}registerOnTouched(le){this._onTouched=le}setDisabledState(le){this.disabled=le,this._changeDetectorRef.markForCheck()}toggle(){this.checked=!this.checked,this._onChange(this.checked)}_emitChangeEvent(){this._onChange(this.checked),this.change.emit(this._createChangeEvent(this.checked))}}return ie.\u0275fac=function(le){t.$Z()},ie.\u0275dir=t.lG2({type:ie,inputs:{name:"name",id:"id",labelPosition:"labelPosition",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],ariaDescribedby:["aria-describedby","ariaDescribedby"],required:"required",checked:"checked"},outputs:{change:"change",toggleChange:"toggleChange"},features:[t.qOj]}),ie})(),z=(()=>{class ie extends R{get buttonId(){return`${this.id||this._uniqueId}-button`}constructor(le,ne,de,$,me,A){super(le,ne,de,$,me,A,"mat-mdc-slide-toggle-"),this._labelId=this._uniqueId+"-label"}_handleClick(){this.toggleChange.emit(),this.defaults.disableToggleValue||(this.checked=!this.checked,this._onChange(this.checked),this.change.emit(new w(this,this.checked)))}focus(){this._switchElement.nativeElement.focus()}_createChangeEvent(le){return new w(this,le)}_getAriaLabelledBy(){return this.ariaLabelledby?this.ariaLabelledby:this.ariaLabel?null:this._labelId}}return ie.\u0275fac=function(le){return new(le||ie)(t.Y36(t.SBq),t.Y36(b.tE),t.Y36(t.sBO),t.$8M("tabindex"),t.Y36(d),t.Y36(t.QbO,8))},ie.\u0275cmp=t.Xpm({type:ie,selectors:[["mat-slide-toggle"]],viewQuery:function(le,ne){if(1&le&&t.Gf(h,5),2&le){let de;t.iGM(de=t.CRH())&&(ne._switchElement=de.first)}},hostAttrs:[1,"mat-mdc-slide-toggle"],hostVars:11,hostBindings:function(le,ne){2&le&&(t.Ikx("id",ne.id),t.uIk("tabindex",null)("aria-label",null)("name",null)("aria-labelledby",null),t.ekj("mat-mdc-slide-toggle-focused",ne._focused)("mat-mdc-slide-toggle-checked",ne.checked)("_mat-animation-noopable",ne._noopAnimations))},inputs:{disabled:"disabled",disableRipple:"disableRipple",color:"color",tabIndex:"tabIndex"},exportAs:["matSlideToggle"],features:[t._Bn([S]),t.qOj],ngContentSelectors:P,decls:17,vars:24,consts:[[1,"mdc-form-field"],["role","switch","type","button",1,"mdc-switch",3,"tabIndex","disabled","click"],["switch",""],[1,"mdc-switch__track"],[1,"mdc-switch__handle-track"],[1,"mdc-switch__handle"],[1,"mdc-switch__shadow"],[1,"mdc-elevation-overlay"],[1,"mdc-switch__ripple"],["mat-ripple","",1,"mat-mdc-slide-toggle-ripple","mat-mdc-focus-indicator",3,"matRippleTrigger","matRippleDisabled","matRippleCentered"],[1,"mdc-switch__icons"],["viewBox","0 0 24 24",1,"mdc-switch__icon","mdc-switch__icon--on"],["d","M19.69,5.23L8.96,15.96l-4.23-4.23L2.96,13.5l6,6L21.46,7L19.69,5.23z"],["viewBox","0 0 24 24",1,"mdc-switch__icon","mdc-switch__icon--off"],["d","M20 13H4v-2h16v2z"],[3,"for","click"]],template:function(le,ne){if(1&le&&(t.F$t(),t.TgZ(0,"div",0)(1,"button",1,2),t.NdJ("click",function(){return ne._handleClick()}),t._UZ(3,"div",3),t.TgZ(4,"div",4)(5,"div",5)(6,"div",6),t._UZ(7,"div",7),t.qZA(),t.TgZ(8,"div",8),t._UZ(9,"div",9),t.qZA(),t.TgZ(10,"div",10),t.O4$(),t.TgZ(11,"svg",11),t._UZ(12,"path",12),t.qZA(),t.TgZ(13,"svg",13),t._UZ(14,"path",14),t.qZA()()()()(),t.kcU(),t.TgZ(15,"label",15),t.NdJ("click",function($){return $.stopPropagation()}),t.Hsn(16),t.qZA()()),2&le){const de=t.MAs(2);t.ekj("mdc-form-field--align-end","before"==ne.labelPosition),t.xp6(1),t.ekj("mdc-switch--selected",ne.checked)("mdc-switch--unselected",!ne.checked)("mdc-switch--checked",ne.checked)("mdc-switch--disabled",ne.disabled),t.Q6J("tabIndex",ne.tabIndex)("disabled",ne.disabled),t.uIk("id",ne.buttonId)("name",ne.name)("aria-label",ne.ariaLabel)("aria-labelledby",ne._getAriaLabelledBy())("aria-describedby",ne.ariaDescribedby)("aria-required",ne.required||null)("aria-checked",ne.checked),t.xp6(8),t.Q6J("matRippleTrigger",de)("matRippleDisabled",ne.disableRipple||ne.disabled)("matRippleCentered",!0),t.xp6(6),t.Q6J("for",ne.buttonId),t.uIk("id",ne._labelId)}},dependencies:[I.wG],styles:['.mdc-form-field{display:inline-flex;align-items:center;vertical-align:middle}.mdc-form-field[hidden]{display:none}.mdc-form-field>label{margin-left:0;margin-right:auto;padding-left:4px;padding-right:0;order:0}[dir=rtl] .mdc-form-field>label,.mdc-form-field>label[dir=rtl]{margin-left:auto;margin-right:0}[dir=rtl] .mdc-form-field>label,.mdc-form-field>label[dir=rtl]{padding-left:0;padding-right:4px}.mdc-form-field--nowrap>label{text-overflow:ellipsis;overflow:hidden;white-space:nowrap}.mdc-form-field--align-end>label{margin-left:auto;margin-right:0;padding-left:0;padding-right:4px;order:-1}[dir=rtl] .mdc-form-field--align-end>label,.mdc-form-field--align-end>label[dir=rtl]{margin-left:0;margin-right:auto}[dir=rtl] .mdc-form-field--align-end>label,.mdc-form-field--align-end>label[dir=rtl]{padding-left:4px;padding-right:0}.mdc-form-field--space-between{justify-content:space-between}.mdc-form-field--space-between>label{margin:0}[dir=rtl] .mdc-form-field--space-between>label,.mdc-form-field--space-between>label[dir=rtl]{margin:0}.mdc-elevation-overlay{position:absolute;border-radius:inherit;pointer-events:none;opacity:var(--mdc-elevation-overlay-opacity, 0);transition:opacity 280ms cubic-bezier(0.4, 0, 0.2, 1);background-color:var(--mdc-elevation-overlay-color, #fff)}.mdc-switch{align-items:center;background:none;border:none;cursor:pointer;display:inline-flex;flex-shrink:0;margin:0;outline:none;overflow:visible;padding:0;position:relative}.mdc-switch[hidden]{display:none}.mdc-switch:disabled{cursor:default;pointer-events:none}.mdc-switch__track{overflow:hidden;position:relative;width:100%}.mdc-switch__track::before,.mdc-switch__track::after{border:1px solid rgba(0,0,0,0);border-radius:inherit;box-sizing:border-box;content:"";height:100%;left:0;position:absolute;width:100%}@media screen and (forced-colors: active){.mdc-switch__track::before,.mdc-switch__track::after{border-color:currentColor}}.mdc-switch__track::before{transition:transform 75ms 0ms cubic-bezier(0, 0, 0.2, 1);transform:translateX(0)}.mdc-switch__track::after{transition:transform 75ms 0ms cubic-bezier(0.4, 0, 0.6, 1);transform:translateX(-100%)}[dir=rtl] .mdc-switch__track::after,.mdc-switch__track[dir=rtl]::after{transform:translateX(100%)}.mdc-switch--selected .mdc-switch__track::before{transition:transform 75ms 0ms cubic-bezier(0.4, 0, 0.6, 1);transform:translateX(100%)}[dir=rtl] .mdc-switch--selected .mdc-switch__track::before,.mdc-switch--selected .mdc-switch__track[dir=rtl]::before{transform:translateX(-100%)}.mdc-switch--selected .mdc-switch__track::after{transition:transform 75ms 0ms cubic-bezier(0, 0, 0.2, 1);transform:translateX(0)}.mdc-switch__handle-track{height:100%;pointer-events:none;position:absolute;top:0;transition:transform 75ms 0ms cubic-bezier(0.4, 0, 0.2, 1);left:0;right:auto;transform:translateX(0)}[dir=rtl] .mdc-switch__handle-track,.mdc-switch__handle-track[dir=rtl]{left:auto;right:0}.mdc-switch--selected .mdc-switch__handle-track{transform:translateX(100%)}[dir=rtl] .mdc-switch--selected .mdc-switch__handle-track,.mdc-switch--selected .mdc-switch__handle-track[dir=rtl]{transform:translateX(-100%)}.mdc-switch__handle{display:flex;pointer-events:auto;position:absolute;top:50%;transform:translateY(-50%);left:0;right:auto}[dir=rtl] .mdc-switch__handle,.mdc-switch__handle[dir=rtl]{left:auto;right:0}.mdc-switch__handle::before,.mdc-switch__handle::after{border:1px solid rgba(0,0,0,0);border-radius:inherit;box-sizing:border-box;content:"";width:100%;height:100%;left:0;position:absolute;top:0;transition:background-color 75ms 0ms cubic-bezier(0.4, 0, 0.2, 1),border-color 75ms 0ms cubic-bezier(0.4, 0, 0.2, 1);z-index:-1}@media screen and (forced-colors: active){.mdc-switch__handle::before,.mdc-switch__handle::after{border-color:currentColor}}.mdc-switch__shadow{border-radius:inherit;bottom:0;left:0;position:absolute;right:0;top:0}.mdc-elevation-overlay{bottom:0;left:0;right:0;top:0}.mdc-switch__ripple{left:50%;position:absolute;top:50%;transform:translate(-50%, -50%);z-index:-1}.mdc-switch:disabled .mdc-switch__ripple{display:none}.mdc-switch__icons{height:100%;position:relative;width:100%;z-index:1}.mdc-switch__icon{bottom:0;left:0;margin:auto;position:absolute;right:0;top:0;opacity:0;transition:opacity 30ms 0ms cubic-bezier(0.4, 0, 1, 1)}.mdc-switch--selected .mdc-switch__icon--on,.mdc-switch--unselected .mdc-switch__icon--off{opacity:1;transition:opacity 45ms 30ms cubic-bezier(0, 0, 0.2, 1)}.mat-mdc-slide-toggle{display:inline-block;-webkit-tap-highlight-color:rgba(0,0,0,0);outline:0}.mat-mdc-slide-toggle .mdc-switch{width:var(--mdc-switch-track-width, 36px)}.mat-mdc-slide-toggle .mdc-switch.mdc-switch--selected:enabled .mdc-switch__handle::after{background:var(--mdc-switch-selected-handle-color, var(--mdc-theme-primary, #6200ee))}.mat-mdc-slide-toggle .mdc-switch.mdc-switch--selected:enabled:hover:not(:focus):not(:active) .mdc-switch__handle::after{background:var(--mdc-switch-selected-hover-handle-color, #310077)}.mat-mdc-slide-toggle .mdc-switch.mdc-switch--selected:enabled:focus:not(:active) .mdc-switch__handle::after{background:var(--mdc-switch-selected-focus-handle-color, #310077)}.mat-mdc-slide-toggle .mdc-switch.mdc-switch--selected:enabled:active .mdc-switch__handle::after{background:var(--mdc-switch-selected-pressed-handle-color, #310077)}.mat-mdc-slide-toggle .mdc-switch.mdc-switch--selected:disabled .mdc-switch__handle::after{background:var(--mdc-switch-disabled-selected-handle-color, #424242)}.mat-mdc-slide-toggle .mdc-switch.mdc-switch--unselected:enabled .mdc-switch__handle::after{background:var(--mdc-switch-unselected-handle-color, #616161)}.mat-mdc-slide-toggle .mdc-switch.mdc-switch--unselected:enabled:hover:not(:focus):not(:active) .mdc-switch__handle::after{background:var(--mdc-switch-unselected-hover-handle-color, #212121)}.mat-mdc-slide-toggle .mdc-switch.mdc-switch--unselected:enabled:focus:not(:active) .mdc-switch__handle::after{background:var(--mdc-switch-unselected-focus-handle-color, #212121)}.mat-mdc-slide-toggle .mdc-switch.mdc-switch--unselected:enabled:active .mdc-switch__handle::after{background:var(--mdc-switch-unselected-pressed-handle-color, #212121)}.mat-mdc-slide-toggle .mdc-switch.mdc-switch--unselected:disabled .mdc-switch__handle::after{background:var(--mdc-switch-disabled-unselected-handle-color, #424242)}.mat-mdc-slide-toggle .mdc-switch .mdc-switch__handle::before{background:var(--mdc-switch-handle-surface-color, var(--mdc-theme-surface, #fff))}.mat-mdc-slide-toggle .mdc-switch:enabled .mdc-switch__shadow{box-shadow:var(--mdc-switch-handle-elevation, 0px 2px 1px -1px rgba(0, 0, 0, 0.2), 0px 1px 1px 0px rgba(0, 0, 0, 0.14), 0px 1px 3px 0px rgba(0, 0, 0, 0.12))}.mat-mdc-slide-toggle .mdc-switch:disabled .mdc-switch__shadow{box-shadow:var(--mdc-switch-disabled-handle-elevation, 0px 0px 0px 0px rgba(0, 0, 0, 0.2), 0px 0px 0px 0px rgba(0, 0, 0, 0.14), 0px 0px 0px 0px rgba(0, 0, 0, 0.12))}.mat-mdc-slide-toggle .mdc-switch .mdc-switch__focus-ring-wrapper,.mat-mdc-slide-toggle .mdc-switch .mdc-switch__handle{height:var(--mdc-switch-handle-height, 20px)}.mat-mdc-slide-toggle .mdc-switch:disabled .mdc-switch__handle::after{opacity:var(--mdc-switch-disabled-handle-opacity, 0.38)}.mat-mdc-slide-toggle .mdc-switch .mdc-switch__handle{border-radius:var(--mdc-switch-handle-shape, 10px)}.mat-mdc-slide-toggle .mdc-switch .mdc-switch__handle{width:var(--mdc-switch-handle-width, 20px)}.mat-mdc-slide-toggle .mdc-switch .mdc-switch__handle-track{width:calc(100% - var(--mdc-switch-handle-width, 20px))}.mat-mdc-slide-toggle .mdc-switch.mdc-switch--selected:enabled .mdc-switch__icon{fill:var(--mdc-switch-selected-icon-color, var(--mdc-theme-on-primary, #fff))}.mat-mdc-slide-toggle .mdc-switch.mdc-switch--selected:disabled .mdc-switch__icon{fill:var(--mdc-switch-disabled-selected-icon-color, var(--mdc-theme-on-primary, #fff))}.mat-mdc-slide-toggle .mdc-switch.mdc-switch--unselected:enabled .mdc-switch__icon{fill:var(--mdc-switch-unselected-icon-color, var(--mdc-theme-on-primary, #fff))}.mat-mdc-slide-toggle .mdc-switch.mdc-switch--unselected:disabled .mdc-switch__icon{fill:var(--mdc-switch-disabled-unselected-icon-color, var(--mdc-theme-on-primary, #fff))}.mat-mdc-slide-toggle .mdc-switch.mdc-switch--selected:disabled .mdc-switch__icons{opacity:var(--mdc-switch-disabled-selected-icon-opacity, 0.38)}.mat-mdc-slide-toggle .mdc-switch.mdc-switch--unselected:disabled .mdc-switch__icons{opacity:var(--mdc-switch-disabled-unselected-icon-opacity, 0.38)}.mat-mdc-slide-toggle .mdc-switch.mdc-switch--selected .mdc-switch__icon{width:var(--mdc-switch-selected-icon-size, 18px);height:var(--mdc-switch-selected-icon-size, 18px)}.mat-mdc-slide-toggle .mdc-switch.mdc-switch--unselected .mdc-switch__icon{width:var(--mdc-switch-unselected-icon-size, 18px);height:var(--mdc-switch-unselected-icon-size, 18px)}.mat-mdc-slide-toggle .mdc-switch.mdc-switch--selected:enabled:hover:not(:focus) .mdc-switch__ripple::before,.mat-mdc-slide-toggle .mdc-switch.mdc-switch--selected:enabled:hover:not(:focus) .mdc-switch__ripple::after{background-color:var(--mdc-switch-selected-hover-state-layer-color, var(--mdc-theme-primary, #6200ee))}.mat-mdc-slide-toggle .mdc-switch.mdc-switch--selected:enabled:focus .mdc-switch__ripple::before,.mat-mdc-slide-toggle .mdc-switch.mdc-switch--selected:enabled:focus .mdc-switch__ripple::after{background-color:var(--mdc-switch-selected-focus-state-layer-color, var(--mdc-theme-primary, #6200ee))}.mat-mdc-slide-toggle .mdc-switch.mdc-switch--selected:enabled:active .mdc-switch__ripple::before,.mat-mdc-slide-toggle .mdc-switch.mdc-switch--selected:enabled:active .mdc-switch__ripple::after{background-color:var(--mdc-switch-selected-pressed-state-layer-color, var(--mdc-theme-primary, #6200ee))}.mat-mdc-slide-toggle .mdc-switch.mdc-switch--unselected:enabled:hover:not(:focus) .mdc-switch__ripple::before,.mat-mdc-slide-toggle .mdc-switch.mdc-switch--unselected:enabled:hover:not(:focus) .mdc-switch__ripple::after{background-color:var(--mdc-switch-unselected-hover-state-layer-color, #424242)}.mat-mdc-slide-toggle .mdc-switch.mdc-switch--unselected:enabled:focus .mdc-switch__ripple::before,.mat-mdc-slide-toggle .mdc-switch.mdc-switch--unselected:enabled:focus .mdc-switch__ripple::after{background-color:var(--mdc-switch-unselected-focus-state-layer-color, #424242)}.mat-mdc-slide-toggle .mdc-switch.mdc-switch--unselected:enabled:active .mdc-switch__ripple::before,.mat-mdc-slide-toggle .mdc-switch.mdc-switch--unselected:enabled:active .mdc-switch__ripple::after{background-color:var(--mdc-switch-unselected-pressed-state-layer-color, #424242)}.mat-mdc-slide-toggle .mdc-switch.mdc-switch--selected:enabled:hover:not(:focus):hover .mdc-switch__ripple::before,.mat-mdc-slide-toggle .mdc-switch.mdc-switch--selected:enabled:hover:not(:focus).mdc-ripple-surface--hover .mdc-switch__ripple::before{opacity:var(--mdc-switch-selected-hover-state-layer-opacity, 0.04)}.mat-mdc-slide-toggle .mdc-switch.mdc-switch--selected:enabled:focus.mdc-ripple-upgraded--background-focused .mdc-switch__ripple::before,.mat-mdc-slide-toggle .mdc-switch.mdc-switch--selected:enabled:focus:not(.mdc-ripple-upgraded):focus .mdc-switch__ripple::before{transition-duration:75ms;opacity:var(--mdc-switch-selected-focus-state-layer-opacity, 0.12)}.mat-mdc-slide-toggle .mdc-switch.mdc-switch--selected:enabled:active:not(.mdc-ripple-upgraded) .mdc-switch__ripple::after{transition:opacity 150ms linear}.mat-mdc-slide-toggle .mdc-switch.mdc-switch--selected:enabled:active:not(.mdc-ripple-upgraded):active .mdc-switch__ripple::after{transition-duration:75ms;opacity:var(--mdc-switch-selected-pressed-state-layer-opacity, 0.1)}.mat-mdc-slide-toggle .mdc-switch.mdc-switch--selected:enabled:active.mdc-ripple-upgraded{--mdc-ripple-fg-opacity:var(--mdc-switch-selected-pressed-state-layer-opacity, 0.1)}.mat-mdc-slide-toggle .mdc-switch.mdc-switch--unselected:enabled:hover:not(:focus):hover .mdc-switch__ripple::before,.mat-mdc-slide-toggle .mdc-switch.mdc-switch--unselected:enabled:hover:not(:focus).mdc-ripple-surface--hover .mdc-switch__ripple::before{opacity:var(--mdc-switch-unselected-hover-state-layer-opacity, 0.04)}.mat-mdc-slide-toggle .mdc-switch.mdc-switch--unselected:enabled:focus.mdc-ripple-upgraded--background-focused .mdc-switch__ripple::before,.mat-mdc-slide-toggle .mdc-switch.mdc-switch--unselected:enabled:focus:not(.mdc-ripple-upgraded):focus .mdc-switch__ripple::before{transition-duration:75ms;opacity:var(--mdc-switch-unselected-focus-state-layer-opacity, 0.12)}.mat-mdc-slide-toggle .mdc-switch.mdc-switch--unselected:enabled:active:not(.mdc-ripple-upgraded) .mdc-switch__ripple::after{transition:opacity 150ms linear}.mat-mdc-slide-toggle .mdc-switch.mdc-switch--unselected:enabled:active:not(.mdc-ripple-upgraded):active .mdc-switch__ripple::after{transition-duration:75ms;opacity:var(--mdc-switch-unselected-pressed-state-layer-opacity, 0.1)}.mat-mdc-slide-toggle .mdc-switch.mdc-switch--unselected:enabled:active.mdc-ripple-upgraded{--mdc-ripple-fg-opacity:var(--mdc-switch-unselected-pressed-state-layer-opacity, 0.1)}.mat-mdc-slide-toggle .mdc-switch .mdc-switch__ripple{height:var(--mdc-switch-state-layer-size, 48px);width:var(--mdc-switch-state-layer-size, 48px)}.mat-mdc-slide-toggle .mdc-switch .mdc-switch__track{height:var(--mdc-switch-track-height, 14px)}.mat-mdc-slide-toggle .mdc-switch:disabled .mdc-switch__track{opacity:var(--mdc-switch-disabled-track-opacity, 0.12)}.mat-mdc-slide-toggle .mdc-switch:enabled .mdc-switch__track::after{background:var(--mdc-switch-selected-track-color, #d7bbff)}.mat-mdc-slide-toggle .mdc-switch:enabled:hover:not(:focus):not(:active) .mdc-switch__track::after{background:var(--mdc-switch-selected-hover-track-color, #d7bbff)}.mat-mdc-slide-toggle .mdc-switch:enabled:focus:not(:active) .mdc-switch__track::after{background:var(--mdc-switch-selected-focus-track-color, #d7bbff)}.mat-mdc-slide-toggle .mdc-switch:enabled:active .mdc-switch__track::after{background:var(--mdc-switch-selected-pressed-track-color, #d7bbff)}.mat-mdc-slide-toggle .mdc-switch:disabled .mdc-switch__track::after{background:var(--mdc-switch-disabled-selected-track-color, #424242)}.mat-mdc-slide-toggle .mdc-switch:enabled .mdc-switch__track::before{background:var(--mdc-switch-unselected-track-color, #e0e0e0)}.mat-mdc-slide-toggle .mdc-switch:enabled:hover:not(:focus):not(:active) .mdc-switch__track::before{background:var(--mdc-switch-unselected-hover-track-color, #e0e0e0)}.mat-mdc-slide-toggle .mdc-switch:enabled:focus:not(:active) .mdc-switch__track::before{background:var(--mdc-switch-unselected-focus-track-color, #e0e0e0)}.mat-mdc-slide-toggle .mdc-switch:enabled:active .mdc-switch__track::before{background:var(--mdc-switch-unselected-pressed-track-color, #e0e0e0)}.mat-mdc-slide-toggle .mdc-switch:disabled .mdc-switch__track::before{background:var(--mdc-switch-disabled-unselected-track-color, #424242)}.mat-mdc-slide-toggle .mdc-switch .mdc-switch__track{border-radius:var(--mdc-switch-track-shape, 7px)}.mat-mdc-slide-toggle .mat-mdc-slide-toggle-ripple,.mat-mdc-slide-toggle .mdc-switch__ripple::after{top:0;left:0;right:0;bottom:0;position:absolute;border-radius:50%;pointer-events:none}.mat-mdc-slide-toggle .mat-mdc-slide-toggle-ripple:not(:empty),.mat-mdc-slide-toggle .mdc-switch__ripple::after:not(:empty){transform:translateZ(0)}.mat-mdc-slide-toggle .mdc-switch__ripple::after{content:"";opacity:0}.mat-mdc-slide-toggle .mdc-switch:hover .mdc-switch__ripple::after{opacity:.04;transition:opacity 75ms 0ms cubic-bezier(0, 0, 0.2, 1)}.mat-mdc-slide-toggle.mat-mdc-slide-toggle-focused .mdc-switch .mdc-switch__ripple::after{opacity:.12}.mat-mdc-slide-toggle.mat-mdc-slide-toggle-focused .mat-mdc-focus-indicator::before{content:""}.mat-mdc-slide-toggle .mat-ripple-element{opacity:.12}.mat-mdc-slide-toggle .mat-mdc-focus-indicator::before{border-radius:50%}.mat-mdc-slide-toggle._mat-animation-noopable .mdc-switch__handle-track,.mat-mdc-slide-toggle._mat-animation-noopable .mdc-elevation-overlay,.mat-mdc-slide-toggle._mat-animation-noopable .mdc-switch__icon,.mat-mdc-slide-toggle._mat-animation-noopable .mdc-switch__handle::before,.mat-mdc-slide-toggle._mat-animation-noopable .mdc-switch__handle::after,.mat-mdc-slide-toggle._mat-animation-noopable .mdc-switch__track::before,.mat-mdc-slide-toggle._mat-animation-noopable .mdc-switch__track::after{transition:none}'],encapsulation:2,changeDetection:0}),ie})(),K=(()=>{class ie{}return ie.\u0275fac=function(le){return new(le||ie)},ie.\u0275mod=t.oAB({type:ie}),ie.\u0275inj=t.cJS({}),ie})(),ee=(()=>{class ie{}return ie.\u0275fac=function(le){return new(le||ie)},ie.\u0275mod=t.oAB({type:ie}),ie.\u0275inj=t.cJS({imports:[K,I.BQ,I.si,C.ez,K,I.BQ]}),ie})()},7009:(Ve,q,p)=>{"use strict";p.d(q,{Ve:()=>u,ZX:()=>i,ux:()=>y});var t=p(4650),e=p(7579),b=p(6895),I=p(4859),s=p(7340),C=p(4080),h=p(3353),P=p(5698),d=p(2722),S=p(4761),w=p(2289),O=p(8184),E=p(3238);function R(T,L){if(1&T){const m=t.EpF();t.TgZ(0,"div",2)(1,"button",3),t.NdJ("click",function(){t.CHM(m);const _=t.oxw();return t.KtG(_.action())}),t._uU(2),t.qZA()()}if(2&T){const m=t.oxw();t.xp6(2),t.hij(" ",m.data.action," ")}}const z=["label"];function U(T,L){}const W=Math.pow(2,31)-1;class K{constructor(L,m){this._overlayRef=m,this._afterDismissed=new e.x,this._afterOpened=new e.x,this._onAction=new e.x,this._dismissedByAction=!1,this.containerInstance=L,L._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(L){this._durationTimeoutId=setTimeout(()=>this.dismiss(),Math.min(L,W))}_open(){this._afterOpened.closed||(this._afterOpened.next(),this._afterOpened.complete())}_finishDismiss(){this._overlayRef.dispose(),this._onAction.closed||this._onAction.complete(),this._afterDismissed.next({dismissedByAction:this._dismissedByAction}),this._afterDismissed.complete(),this._dismissedByAction=!1}afterDismissed(){return this._afterDismissed}afterOpened(){return this.containerInstance._onEnter}onAction(){return this._onAction}}const ee=new t.OlP("MatSnackBarData");class ie{constructor(){this.politeness="assertive",this.announcementMessage="",this.duration=0,this.data=null,this.horizontalPosition="center",this.verticalPosition="bottom"}}let ue=(()=>{class T{}return T.\u0275fac=function(m){return new(m||T)},T.\u0275dir=t.lG2({type:T,selectors:[["","matSnackBarLabel",""]],hostAttrs:[1,"mat-mdc-snack-bar-label","mdc-snackbar__label"]}),T})(),le=(()=>{class T{}return T.\u0275fac=function(m){return new(m||T)},T.\u0275dir=t.lG2({type:T,selectors:[["","matSnackBarActions",""]],hostAttrs:[1,"mat-mdc-snack-bar-actions","mdc-snackbar__actions"]}),T})(),ne=(()=>{class T{}return T.\u0275fac=function(m){return new(m||T)},T.\u0275dir=t.lG2({type:T,selectors:[["","matSnackBarAction",""]],hostAttrs:[1,"mat-mdc-snack-bar-action","mdc-snackbar__action"]}),T})(),de=(()=>{class T{constructor(m,n){this.snackBarRef=m,this.data=n}action(){this.snackBarRef.dismissWithAction()}get hasAction(){return!!this.data.action}}return T.\u0275fac=function(m){return new(m||T)(t.Y36(K),t.Y36(ee))},T.\u0275cmp=t.Xpm({type:T,selectors:[["simple-snack-bar"]],hostAttrs:[1,"mat-mdc-simple-snack-bar"],exportAs:["matSnackBar"],decls:3,vars:2,consts:[["matSnackBarLabel",""],["matSnackBarActions","",4,"ngIf"],["matSnackBarActions",""],["mat-button","","matSnackBarAction","",3,"click"]],template:function(m,n){1&m&&(t.TgZ(0,"div",0),t._uU(1),t.qZA(),t.YNc(2,R,3,1,"div",1)),2&m&&(t.xp6(1),t.hij(" ",n.data.message,"\n"),t.xp6(1),t.Q6J("ngIf",n.hasAction))},dependencies:[b.O5,I.lW,ue,le,ne],styles:[".mat-mdc-simple-snack-bar{display:flex}"],encapsulation:2,changeDetection:0}),T})();const $={snackBarState:(0,s.X$)("state",[(0,s.SB)("void, hidden",(0,s.oB)({transform:"scale(0.8)",opacity:0})),(0,s.SB)("visible",(0,s.oB)({transform:"scale(1)",opacity:1})),(0,s.eR)("* => visible",(0,s.jt)("150ms cubic-bezier(0, 0, 0.2, 1)")),(0,s.eR)("* => void, * => hidden",(0,s.jt)("75ms cubic-bezier(0.4, 0.0, 1, 1)",(0,s.oB)({opacity:0})))])};let me=(()=>{class T extends C.en{constructor(m,n,_,B,V){super(),this._ngZone=m,this._elementRef=n,this._changeDetectorRef=_,this._platform=B,this.snackBarConfig=V,this._announceDelay=150,this._destroyed=!1,this._onAnnounce=new e.x,this._onExit=new e.x,this._onEnter=new e.x,this._animationState="void",this.attachDomPortal=X=>{this._assertNotAttached();const Le=this._portalOutlet.attachDomPortal(X);return this._afterPortalAttached(),Le},this._live="assertive"!==V.politeness||V.announcementMessage?"off"===V.politeness?"off":"polite":"assertive",this._platform.FIREFOX&&("polite"===this._live&&(this._role="status"),"assertive"===this._live&&(this._role="alert"))}attachComponentPortal(m){this._assertNotAttached();const n=this._portalOutlet.attachComponentPortal(m);return this._afterPortalAttached(),n}attachTemplatePortal(m){this._assertNotAttached();const n=this._portalOutlet.attachTemplatePortal(m);return this._afterPortalAttached(),n}onAnimationEnd(m){const{fromState:n,toState:_}=m;if(("void"===_&&"void"!==n||"hidden"===_)&&this._completeExit(),"visible"===_){const B=this._onEnter;this._ngZone.run(()=>{B.next(),B.complete()})}}enter(){this._destroyed||(this._animationState="visible",this._changeDetectorRef.detectChanges(),this._screenReaderAnnounce())}exit(){return this._ngZone.run(()=>{this._animationState="hidden",this._elementRef.nativeElement.setAttribute("mat-exit",""),clearTimeout(this._announceTimeoutId)}),this._onExit}ngOnDestroy(){this._destroyed=!0,this._completeExit()}_completeExit(){this._ngZone.onMicrotaskEmpty.pipe((0,P.q)(1)).subscribe(()=>{this._ngZone.run(()=>{this._onExit.next(),this._onExit.complete()})})}_afterPortalAttached(){const m=this._elementRef.nativeElement,n=this.snackBarConfig.panelClass;n&&(Array.isArray(n)?n.forEach(_=>m.classList.add(_)):m.classList.add(n))}_assertNotAttached(){this._portalOutlet.hasAttached()}_screenReaderAnnounce(){this._announceTimeoutId||this._ngZone.runOutsideAngular(()=>{this._announceTimeoutId=setTimeout(()=>{const m=this._elementRef.nativeElement.querySelector("[aria-hidden]"),n=this._elementRef.nativeElement.querySelector("[aria-live]");if(m&&n){let _=null;this._platform.isBrowser&&document.activeElement instanceof HTMLElement&&m.contains(document.activeElement)&&(_=document.activeElement),m.removeAttribute("aria-hidden"),n.appendChild(m),_?.focus(),this._onAnnounce.next(),this._onAnnounce.complete()}},this._announceDelay)})}}return T.\u0275fac=function(m){return new(m||T)(t.Y36(t.R0b),t.Y36(t.SBq),t.Y36(t.sBO),t.Y36(h.t4),t.Y36(ie))},T.\u0275dir=t.lG2({type:T,viewQuery:function(m,n){if(1&m&&t.Gf(C.Pl,7),2&m){let _;t.iGM(_=t.CRH())&&(n._portalOutlet=_.first)}},features:[t.qOj]}),T})(),A=(()=>{class T extends me{_afterPortalAttached(){super._afterPortalAttached();const m=this._label.nativeElement,n="mdc-snackbar__label";m.classList.toggle(n,!m.querySelector(`.${n}`))}}return T.\u0275fac=function(){let L;return function(n){return(L||(L=t.n5z(T)))(n||T)}}(),T.\u0275cmp=t.Xpm({type:T,selectors:[["mat-snack-bar-container"]],viewQuery:function(m,n){if(1&m&&t.Gf(z,7),2&m){let _;t.iGM(_=t.CRH())&&(n._label=_.first)}},hostAttrs:[1,"mdc-snackbar","mat-mdc-snack-bar-container","mdc-snackbar--open"],hostVars:1,hostBindings:function(m,n){1&m&&t.WFA("@state.done",function(B){return n.onAnimationEnd(B)}),2&m&&t.d8E("@state",n._animationState)},features:[t.qOj],decls:6,vars:2,consts:[[1,"mdc-snackbar__surface"],[1,"mat-mdc-snack-bar-label"],["label",""],["aria-hidden","true"],["cdkPortalOutlet",""]],template:function(m,n){1&m&&(t.TgZ(0,"div",0)(1,"div",1,2)(3,"div",3),t.YNc(4,U,0,0,"ng-template",4),t.qZA(),t._UZ(5,"div"),t.qZA()()),2&m&&(t.xp6(5),t.uIk("aria-live",n._live)("role",n._role))},dependencies:[C.Pl],styles:['.mdc-snackbar{display:none;position:fixed;right:0;bottom:0;left:0;align-items:center;justify-content:center;box-sizing:border-box;pointer-events:none;-webkit-tap-highlight-color:rgba(0,0,0,0)}.mdc-snackbar--opening,.mdc-snackbar--open,.mdc-snackbar--closing{display:flex}.mdc-snackbar--open .mdc-snackbar__label,.mdc-snackbar--open .mdc-snackbar__actions{visibility:visible}.mdc-snackbar__surface{padding-left:0;padding-right:8px;display:flex;align-items:center;justify-content:flex-start;box-sizing:border-box;transform:scale(0.8);opacity:0}.mdc-snackbar__surface::before{position:absolute;box-sizing:border-box;width:100%;height:100%;top:0;left:0;border:1px solid rgba(0,0,0,0);border-radius:inherit;content:"";pointer-events:none}@media screen and (forced-colors: active){.mdc-snackbar__surface::before{border-color:CanvasText}}[dir=rtl] .mdc-snackbar__surface,.mdc-snackbar__surface[dir=rtl]{padding-left:8px;padding-right:0}.mdc-snackbar--open .mdc-snackbar__surface{transform:scale(1);opacity:1;pointer-events:auto}.mdc-snackbar--closing .mdc-snackbar__surface{transform:scale(1)}.mdc-snackbar__label{padding-left:16px;padding-right:8px;width:100%;flex-grow:1;box-sizing:border-box;margin:0;visibility:hidden;padding-top:14px;padding-bottom:14px}[dir=rtl] .mdc-snackbar__label,.mdc-snackbar__label[dir=rtl]{padding-left:8px;padding-right:16px}.mdc-snackbar__label::before{display:inline;content:attr(data-mdc-snackbar-label-text)}.mdc-snackbar__actions{display:flex;flex-shrink:0;align-items:center;box-sizing:border-box;visibility:hidden}.mdc-snackbar__action+.mdc-snackbar__dismiss{margin-left:8px;margin-right:0}[dir=rtl] .mdc-snackbar__action+.mdc-snackbar__dismiss,.mdc-snackbar__action+.mdc-snackbar__dismiss[dir=rtl]{margin-left:0;margin-right:8px}.mat-mdc-snack-bar-container{margin:8px;position:static}.mat-mdc-snack-bar-container .mdc-snackbar__surface{min-width:344px}@media(max-width: 480px),(max-width: 344px){.mat-mdc-snack-bar-container .mdc-snackbar__surface{min-width:100%}}@media(max-width: 480px),(max-width: 344px){.mat-mdc-snack-bar-container{width:100vw}}.mat-mdc-snack-bar-container .mdc-snackbar__surface{max-width:672px}.mat-mdc-snack-bar-container .mdc-snackbar__surface{box-shadow:0px 3px 5px -1px rgba(0, 0, 0, 0.2), 0px 6px 10px 0px rgba(0, 0, 0, 0.14), 0px 1px 18px 0px rgba(0, 0, 0, 0.12)}.mat-mdc-snack-bar-container .mdc-snackbar__dismiss .mdc-button__icon{font-size:var(--mdc-icon-button-icon-size, var(--mdc-snackbar-icon-size, 24px))}.mat-mdc-snack-bar-container .mdc-snackbar__dismiss svg,.mat-mdc-snack-bar-container .mdc-snackbar__dismiss img{width:var(--mdc-icon-button-icon-size, var(--mdc-snackbar-icon-size, 24px));height:var(--mdc-icon-button-icon-size, var(--mdc-snackbar-icon-size, 24px))}.mat-mdc-snack-bar-container .mdc-snackbar__surface{background-color:var(--mdc-snackbar-container-color, inherit)}.mat-mdc-snack-bar-container .mdc-snackbar__surface{border-radius:var(--mdc-snackbar-container-shape, var(--mdc-shape-small, 4px))}.mat-mdc-snack-bar-container .mdc-snackbar__label{color:var(--mdc-snackbar-supporting-text-color, inherit)}.mat-mdc-snack-bar-container .mdc-snackbar__label{font-size:var(--mdc-snackbar-supporting-text-size, inherit);font-family:var(--mdc-snackbar-supporting-text-font, inherit);font-weight:var(--mdc-snackbar-supporting-text-weight, inherit);line-height:var(--mdc-snackbar-supporting-text-line-height, inherit)}.mat-mdc-snack-bar-container .mat-mdc-button.mat-mdc-snack-bar-action:not(:disabled){color:var(--mat-mdc-snack-bar-button-color, transparent);--mat-mdc-button-persistent-ripple-color: currentColor}.mat-mdc-snack-bar-container .mat-mdc-button.mat-mdc-snack-bar-action:not(:disabled) .mat-ripple-element{background-color:currentColor;opacity:.1}.mat-mdc-snack-bar-handset,.mat-mdc-snack-bar-container,.mat-mdc-snack-bar-label{flex:1 1 auto}.mat-mdc-snack-bar-handset .mdc-snackbar__surface{width:100%}'],encapsulation:2,data:{animation:[$.snackBarState]}}),T})(),i=(()=>{class T{}return T.\u0275fac=function(m){return new(m||T)},T.\u0275mod=t.oAB({type:T}),T.\u0275inj=t.cJS({imports:[O.U8,C.eL,b.ez,I.ot,E.BQ,E.BQ]}),T})();const u=new t.OlP("mat-snack-bar-default-options",{providedIn:"root",factory:function a(){return new ie}});let l=(()=>{class T{get _openedSnackBarRef(){const m=this._parentSnackBar;return m?m._openedSnackBarRef:this._snackBarRefAtThisLevel}set _openedSnackBarRef(m){this._parentSnackBar?this._parentSnackBar._openedSnackBarRef=m:this._snackBarRefAtThisLevel=m}constructor(m,n,_,B,V,X){this._overlay=m,this._live=n,this._injector=_,this._breakpointObserver=B,this._parentSnackBar=V,this._defaultConfig=X,this._snackBarRefAtThisLevel=null}openFromComponent(m,n){return this._attach(m,n)}openFromTemplate(m,n){return this._attach(m,n)}open(m,n="",_){const B={...this._defaultConfig,..._};return B.data={message:m,action:n},B.announcementMessage===m&&(B.announcementMessage=void 0),this.openFromComponent(this.simpleSnackBarComponent,B)}dismiss(){this._openedSnackBarRef&&this._openedSnackBarRef.dismiss()}ngOnDestroy(){this._snackBarRefAtThisLevel&&this._snackBarRefAtThisLevel.dismiss()}_attachSnackBarContainer(m,n){const B=t.zs3.create({parent:n&&n.viewContainerRef&&n.viewContainerRef.injector||this._injector,providers:[{provide:ie,useValue:n}]}),V=new C.C5(this.snackBarContainerComponent,n.viewContainerRef,B),X=m.attach(V);return X.instance.snackBarConfig=n,X.instance}_attach(m,n){const _={...new ie,...this._defaultConfig,...n},B=this._createOverlay(_),V=this._attachSnackBarContainer(B,_),X=new K(V,B);if(m instanceof t.Rgc){const Le=new C.UE(m,null,{$implicit:_.data,snackBarRef:X});X.instance=V.attachTemplatePortal(Le)}else{const Le=this._createInjector(_,X),$e=new C.C5(m,void 0,Le),We=V.attachComponentPortal($e);X.instance=We.instance}return this._breakpointObserver.observe(w.u3.HandsetPortrait).pipe((0,d.R)(B.detachments())).subscribe(Le=>{B.overlayElement.classList.toggle(this.handsetCssClass,Le.matches)}),_.announcementMessage&&V._onAnnounce.subscribe(()=>{this._live.announce(_.announcementMessage,_.politeness)}),this._animateSnackBar(X,_),this._openedSnackBarRef=X,this._openedSnackBarRef}_animateSnackBar(m,n){m.afterDismissed().subscribe(()=>{this._openedSnackBarRef==m&&(this._openedSnackBarRef=null),n.announcementMessage&&this._live.clear()}),this._openedSnackBarRef?(this._openedSnackBarRef.afterDismissed().subscribe(()=>{m.containerInstance.enter()}),this._openedSnackBarRef.dismiss()):m.containerInstance.enter(),n.duration&&n.duration>0&&m.afterOpened().subscribe(()=>m._dismissAfter(n.duration))}_createOverlay(m){const n=new O.X_;n.direction=m.direction;let _=this._overlay.position().global();const B="rtl"===m.direction,V="left"===m.horizontalPosition||"start"===m.horizontalPosition&&!B||"end"===m.horizontalPosition&&B,X=!V&&"center"!==m.horizontalPosition;return V?_.left("0"):X?_.right("0"):_.centerHorizontally(),"top"===m.verticalPosition?_.top("0"):_.bottom("0"),n.positionStrategy=_,this._overlay.create(n)}_createInjector(m,n){return t.zs3.create({parent:m&&m.viewContainerRef&&m.viewContainerRef.injector||this._injector,providers:[{provide:K,useValue:n},{provide:ee,useValue:m.data}]})}}return T.\u0275fac=function(m){return new(m||T)(t.LFG(O.aV),t.LFG(S.Kd),t.LFG(t.zs3),t.LFG(w.Yg),t.LFG(T,12),t.LFG(u))},T.\u0275prov=t.Yz7({token:T,factory:T.\u0275fac}),T})(),y=(()=>{class T extends l{constructor(m,n,_,B,V,X){super(m,n,_,B,V,X),this.simpleSnackBarComponent=de,this.snackBarContainerComponent=A,this.handsetCssClass="mat-mdc-snack-bar-handset"}}return T.\u0275fac=function(m){return new(m||T)(t.LFG(O.aV),t.LFG(S.Kd),t.LFG(t.zs3),t.LFG(w.Yg),t.LFG(T,12),t.LFG(u))},T.\u0275prov=t.Yz7({token:T,factory:T.\u0275fac,providedIn:i}),T})()},6308:(Ve,q,p)=>{"use strict";p.d(q,{JX:()=>i,YE:()=>ee,nU:()=>A});var t=p(4650),e=p(4761),b=p(1281),I=p(9521),s=p(3238),C=p(7579),h=p(6451),P=p(7340),d=p(6895);const S=["mat-sort-header",""];function w(a,u){if(1&a){const l=t.EpF();t.TgZ(0,"div",3),t.NdJ("@arrowPosition.start",function(){t.CHM(l);const T=t.oxw();return t.KtG(T._disableViewStateAnimation=!0)})("@arrowPosition.done",function(){t.CHM(l);const T=t.oxw();return t.KtG(T._disableViewStateAnimation=!1)}),t._UZ(1,"div",4),t.TgZ(2,"div",5),t._UZ(3,"div",6)(4,"div",7)(5,"div",8),t.qZA()()}if(2&a){const l=t.oxw();t.Q6J("@arrowOpacity",l._getArrowViewState())("@arrowPosition",l._getArrowViewState())("@allowChildren",l._getArrowDirectionState()),t.xp6(2),t.Q6J("@indicator",l._getArrowDirectionState()),t.xp6(1),t.Q6J("@leftPointer",l._getArrowDirectionState()),t.xp6(1),t.Q6J("@rightPointer",l._getArrowDirectionState())}}const O=["*"],W=new t.OlP("MAT_SORT_DEFAULT_OPTIONS"),K=(0,s.dB)((0,s.Id)(class{}));let ee=(()=>{class a extends K{get direction(){return this._direction}set direction(l){this._direction=l}get disableClear(){return this._disableClear}set disableClear(l){this._disableClear=(0,b.Ig)(l)}constructor(l){super(),this._defaultOptions=l,this.sortables=new Map,this._stateChanges=new C.x,this.start="asc",this._direction="",this.sortChange=new t.vpe}register(l){this.sortables.set(l.id,l)}deregister(l){this.sortables.delete(l.id)}sort(l){this.active!=l.id?(this.active=l.id,this.direction=l.start?l.start:this.start):this.direction=this.getNextSortDirection(l),this.sortChange.emit({active:this.active,direction:this.direction})}getNextSortDirection(l){if(!l)return"";let T=function ie(a,u){let l=["asc","desc"];return"desc"==a&&l.reverse(),u||l.push(""),l}(l.start||this.start,l?.disableClear??this.disableClear??!!this._defaultOptions?.disableClear),L=T.indexOf(this.direction)+1;return L>=T.length&&(L=0),T[L]}ngOnInit(){this._markInitialized()}ngOnChanges(){this._stateChanges.next()}ngOnDestroy(){this._stateChanges.complete()}}return a.\u0275fac=function(l){return new(l||a)(t.Y36(W,8))},a.\u0275dir=t.lG2({type:a,selectors:[["","matSort",""]],hostAttrs:[1,"mat-sort"],inputs:{disabled:["matSortDisabled","disabled"],active:["matSortActive","active"],start:["matSortStart","start"],direction:["matSortDirection","direction"],disableClear:["matSortDisableClear","disableClear"]},outputs:{sortChange:"matSortChange"},exportAs:["matSort"],features:[t.qOj,t.TTD]}),a})();const ue=s.mZ.ENTERING+" "+s.yN.STANDARD_CURVE,le={indicator:(0,P.X$)("indicator",[(0,P.SB)("active-asc, asc",(0,P.oB)({transform:"translateY(0px)"})),(0,P.SB)("active-desc, desc",(0,P.oB)({transform:"translateY(10px)"})),(0,P.eR)("active-asc <=> active-desc",(0,P.jt)(ue))]),leftPointer:(0,P.X$)("leftPointer",[(0,P.SB)("active-asc, asc",(0,P.oB)({transform:"rotate(-45deg)"})),(0,P.SB)("active-desc, desc",(0,P.oB)({transform:"rotate(45deg)"})),(0,P.eR)("active-asc <=> active-desc",(0,P.jt)(ue))]),rightPointer:(0,P.X$)("rightPointer",[(0,P.SB)("active-asc, asc",(0,P.oB)({transform:"rotate(45deg)"})),(0,P.SB)("active-desc, desc",(0,P.oB)({transform:"rotate(-45deg)"})),(0,P.eR)("active-asc <=> active-desc",(0,P.jt)(ue))]),arrowOpacity:(0,P.X$)("arrowOpacity",[(0,P.SB)("desc-to-active, asc-to-active, active",(0,P.oB)({opacity:1})),(0,P.SB)("desc-to-hint, asc-to-hint, hint",(0,P.oB)({opacity:.54})),(0,P.SB)("hint-to-desc, active-to-desc, desc, hint-to-asc, active-to-asc, asc, void",(0,P.oB)({opacity:0})),(0,P.eR)("* => asc, * => desc, * => active, * => hint, * => void",(0,P.jt)("0ms")),(0,P.eR)("* <=> *",(0,P.jt)(ue))]),arrowPosition:(0,P.X$)("arrowPosition",[(0,P.eR)("* => desc-to-hint, * => desc-to-active",(0,P.jt)(ue,(0,P.F4)([(0,P.oB)({transform:"translateY(-25%)"}),(0,P.oB)({transform:"translateY(0)"})]))),(0,P.eR)("* => hint-to-desc, * => active-to-desc",(0,P.jt)(ue,(0,P.F4)([(0,P.oB)({transform:"translateY(0)"}),(0,P.oB)({transform:"translateY(25%)"})]))),(0,P.eR)("* => asc-to-hint, * => asc-to-active",(0,P.jt)(ue,(0,P.F4)([(0,P.oB)({transform:"translateY(25%)"}),(0,P.oB)({transform:"translateY(0)"})]))),(0,P.eR)("* => hint-to-asc, * => active-to-asc",(0,P.jt)(ue,(0,P.F4)([(0,P.oB)({transform:"translateY(0)"}),(0,P.oB)({transform:"translateY(-25%)"})]))),(0,P.SB)("desc-to-hint, asc-to-hint, hint, desc-to-active, asc-to-active, active",(0,P.oB)({transform:"translateY(0)"})),(0,P.SB)("hint-to-desc, active-to-desc, desc",(0,P.oB)({transform:"translateY(-25%)"})),(0,P.SB)("hint-to-asc, active-to-asc, asc",(0,P.oB)({transform:"translateY(25%)"}))]),allowChildren:(0,P.X$)("allowChildren",[(0,P.eR)("* <=> *",[(0,P.IO)("@*",(0,P.pV)(),{optional:!0})])])};let ne=(()=>{class a{constructor(){this.changes=new C.x}}return a.\u0275fac=function(l){return new(l||a)},a.\u0275prov=t.Yz7({token:a,factory:a.\u0275fac,providedIn:"root"}),a})();const $={provide:ne,deps:[[new t.FiY,new t.tp0,ne]],useFactory:function de(a){return a||new ne}},me=(0,s.Id)(class{});let A=(()=>{class a extends me{get sortActionDescription(){return this._sortActionDescription}set sortActionDescription(l){this._updateSortActionDescription(l)}get disableClear(){return this._disableClear}set disableClear(l){this._disableClear=(0,b.Ig)(l)}constructor(l,y,T,L,m,n,_,B){super(),this._intl=l,this._changeDetectorRef=y,this._sort=T,this._columnDef=L,this._focusMonitor=m,this._elementRef=n,this._ariaDescriber=_,this._showIndicatorHint=!1,this._viewState={},this._arrowDirection="",this._disableViewStateAnimation=!1,this.arrowPosition="after",this._sortActionDescription="Sort",B?.arrowPosition&&(this.arrowPosition=B?.arrowPosition),this._handleStateChanges()}ngOnInit(){!this.id&&this._columnDef&&(this.id=this._columnDef.name),this._updateArrowDirection(),this._setAnimationTransitionState({toState:this._isSorted()?"active":this._arrowDirection}),this._sort.register(this),this._sortButton=this._elementRef.nativeElement.querySelector(".mat-sort-header-container"),this._updateSortActionDescription(this._sortActionDescription)}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0).subscribe(l=>{const y=!!l;y!==this._showIndicatorHint&&(this._setIndicatorHintVisible(y),this._changeDetectorRef.markForCheck())})}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef),this._sort.deregister(this),this._rerenderSubscription.unsubscribe()}_setIndicatorHintVisible(l){this._isDisabled()&&l||(this._showIndicatorHint=l,this._isSorted()||(this._updateArrowDirection(),this._setAnimationTransitionState(this._showIndicatorHint?{fromState:this._arrowDirection,toState:"hint"}:{fromState:"hint",toState:this._arrowDirection})))}_setAnimationTransitionState(l){this._viewState=l||{},this._disableViewStateAnimation&&(this._viewState={toState:l.toState})}_toggleOnInteraction(){this._sort.sort(this),("hint"===this._viewState.toState||"active"===this._viewState.toState)&&(this._disableViewStateAnimation=!0)}_handleClick(){this._isDisabled()||this._sort.sort(this)}_handleKeydown(l){!this._isDisabled()&&(l.keyCode===I.L_||l.keyCode===I.K5)&&(l.preventDefault(),this._toggleOnInteraction())}_isSorted(){return this._sort.active==this.id&&("asc"===this._sort.direction||"desc"===this._sort.direction)}_getArrowDirectionState(){return`${this._isSorted()?"active-":""}${this._arrowDirection}`}_getArrowViewState(){const l=this._viewState.fromState;return(l?`${l}-to-`:"")+this._viewState.toState}_updateArrowDirection(){this._arrowDirection=this._isSorted()?this._sort.direction:this.start||this._sort.start}_isDisabled(){return this._sort.disabled||this.disabled}_getAriaSortAttribute(){return this._isSorted()?"asc"==this._sort.direction?"ascending":"descending":"none"}_renderArrow(){return!this._isDisabled()||this._isSorted()}_updateSortActionDescription(l){this._sortButton&&(this._ariaDescriber?.removeDescription(this._sortButton,this._sortActionDescription),this._ariaDescriber?.describe(this._sortButton,l)),this._sortActionDescription=l}_handleStateChanges(){this._rerenderSubscription=(0,h.T)(this._sort.sortChange,this._sort._stateChanges,this._intl.changes).subscribe(()=>{this._isSorted()&&(this._updateArrowDirection(),("hint"===this._viewState.toState||"active"===this._viewState.toState)&&(this._disableViewStateAnimation=!0),this._setAnimationTransitionState({fromState:this._arrowDirection,toState:"active"}),this._showIndicatorHint=!1),!this._isSorted()&&this._viewState&&"active"===this._viewState.toState&&(this._disableViewStateAnimation=!1,this._setAnimationTransitionState({fromState:"active",toState:this._arrowDirection})),this._changeDetectorRef.markForCheck()})}}return a.\u0275fac=function(l){return new(l||a)(t.Y36(ne),t.Y36(t.sBO),t.Y36(ee,8),t.Y36("MAT_SORT_HEADER_COLUMN_DEF",8),t.Y36(e.tE),t.Y36(t.SBq),t.Y36(e.$s,8),t.Y36(W,8))},a.\u0275cmp=t.Xpm({type:a,selectors:[["","mat-sort-header",""]],hostAttrs:[1,"mat-sort-header"],hostVars:3,hostBindings:function(l,y){1&l&&t.NdJ("click",function(){return y._handleClick()})("keydown",function(L){return y._handleKeydown(L)})("mouseenter",function(){return y._setIndicatorHintVisible(!0)})("mouseleave",function(){return y._setIndicatorHintVisible(!1)}),2&l&&(t.uIk("aria-sort",y._getAriaSortAttribute()),t.ekj("mat-sort-header-disabled",y._isDisabled()))},inputs:{disabled:"disabled",id:["mat-sort-header","id"],arrowPosition:"arrowPosition",start:"start",sortActionDescription:"sortActionDescription",disableClear:"disableClear"},exportAs:["matSortHeader"],features:[t.qOj],attrs:S,ngContentSelectors:O,decls:4,vars:7,consts:[[1,"mat-sort-header-container","mat-focus-indicator"],[1,"mat-sort-header-content"],["class","mat-sort-header-arrow",4,"ngIf"],[1,"mat-sort-header-arrow"],[1,"mat-sort-header-stem"],[1,"mat-sort-header-indicator"],[1,"mat-sort-header-pointer-left"],[1,"mat-sort-header-pointer-right"],[1,"mat-sort-header-pointer-middle"]],template:function(l,y){1&l&&(t.F$t(),t.TgZ(0,"div",0)(1,"div",1),t.Hsn(2),t.qZA(),t.YNc(3,w,6,6,"div",2),t.qZA()),2&l&&(t.ekj("mat-sort-header-sorted",y._isSorted())("mat-sort-header-position-before","before"===y.arrowPosition),t.uIk("tabindex",y._isDisabled()?null:0)("role",y._isDisabled()?null:"button"),t.xp6(3),t.Q6J("ngIf",y._renderArrow()))},dependencies:[d.O5],styles:[".mat-sort-header-container{display:flex;cursor:pointer;align-items:center;letter-spacing:normal;outline:0}[mat-sort-header].cdk-keyboard-focused .mat-sort-header-container,[mat-sort-header].cdk-program-focused .mat-sort-header-container{border-bottom:solid 1px currentColor}.mat-sort-header-disabled .mat-sort-header-container{cursor:default}.mat-sort-header-container::before{margin:calc(calc(var(--mat-focus-indicator-border-width, 3px) + 2px) * -1)}.mat-sort-header-content{text-align:center;display:flex;align-items:center}.mat-sort-header-position-before{flex-direction:row-reverse}.mat-sort-header-arrow{height:12px;width:12px;min-width:12px;position:relative;display:flex;opacity:0}.mat-sort-header-arrow,[dir=rtl] .mat-sort-header-position-before .mat-sort-header-arrow{margin:0 0 0 6px}.mat-sort-header-position-before .mat-sort-header-arrow,[dir=rtl] .mat-sort-header-arrow{margin:0 6px 0 0}.mat-sort-header-stem{background:currentColor;height:10px;width:2px;margin:auto;display:flex;align-items:center}.cdk-high-contrast-active .mat-sort-header-stem{width:0;border-left:solid 2px}.mat-sort-header-indicator{width:100%;height:2px;display:flex;align-items:center;position:absolute;top:0;left:0}.mat-sort-header-pointer-middle{margin:auto;height:2px;width:2px;background:currentColor;transform:rotate(45deg)}.cdk-high-contrast-active .mat-sort-header-pointer-middle{width:0;height:0;border-top:solid 2px;border-left:solid 2px}.mat-sort-header-pointer-left,.mat-sort-header-pointer-right{background:currentColor;width:6px;height:2px;position:absolute;top:0}.cdk-high-contrast-active .mat-sort-header-pointer-left,.cdk-high-contrast-active .mat-sort-header-pointer-right{width:0;height:0;border-left:solid 6px;border-top:solid 2px}.mat-sort-header-pointer-left{transform-origin:right;left:0}.mat-sort-header-pointer-right{transform-origin:left;right:0}"],encapsulation:2,data:{animation:[le.indicator,le.leftPointer,le.rightPointer,le.arrowOpacity,le.arrowPosition,le.allowChildren]},changeDetection:0}),a})(),i=(()=>{class a{}return a.\u0275fac=function(l){return new(l||a)},a.\u0275mod=t.oAB({type:a}),a.\u0275inj=t.cJS({providers:[$],imports:[d.ez,s.BQ]}),a})()},8425:(Ve,q,p)=>{"use strict";p.d(q,{C0:()=>Ae,Ic:()=>Ce,T5:()=>Ue,VY:()=>X,Vq:()=>he,fd:()=>te,z9:()=>oe});var t=p(4080),e=p(2138),b=p(6895),I=p(4650),s=p(3238),C=p(7392),h=p(4761),P=p(7579),d=p(727),S=p(445),w=p(3900),O=p(4004),E=p(8675),R=p(2722),z=p(1884),U=p(7340);function W(Be,ae){if(1&Be&&I.GkF(0,8),2&Be){const ge=I.oxw();I.Q6J("ngTemplateOutlet",ge.iconOverrides[ge.state])("ngTemplateOutletContext",ge._getIconContext())}}function K(Be,ae){if(1&Be&&(I.TgZ(0,"span",13),I._uU(1),I.qZA()),2&Be){const ge=I.oxw(2);I.xp6(1),I.Oqu(ge._getDefaultTextForState(ge.state))}}function ee(Be,ae){if(1&Be&&(I.TgZ(0,"span",14),I._uU(1),I.qZA()),2&Be){const ge=I.oxw(2);I.xp6(1),I.Oqu(ge._intl.completedLabel)}}function ie(Be,ae){if(1&Be&&(I.TgZ(0,"span",14),I._uU(1),I.qZA()),2&Be){const ge=I.oxw(2);I.xp6(1),I.Oqu(ge._intl.editableLabel)}}function ue(Be,ae){if(1&Be&&(I.TgZ(0,"mat-icon",13),I._uU(1),I.qZA()),2&Be){const ge=I.oxw(2);I.xp6(1),I.Oqu(ge._getDefaultTextForState(ge.state))}}function le(Be,ae){if(1&Be&&(I.ynx(0,9),I.YNc(1,K,2,1,"span",10),I.YNc(2,ee,2,1,"span",11),I.YNc(3,ie,2,1,"span",11),I.YNc(4,ue,2,1,"mat-icon",12),I.BQk()),2&Be){const ge=I.oxw();I.Q6J("ngSwitch",ge.state),I.xp6(1),I.Q6J("ngSwitchCase","number"),I.xp6(1),I.Q6J("ngIf","done"===ge.state),I.xp6(1),I.Q6J("ngIf","edit"===ge.state)}}function ne(Be,ae){if(1&Be&&(I.TgZ(0,"div",15),I.GkF(1,16),I.qZA()),2&Be){const ge=I.oxw();I.xp6(1),I.Q6J("ngTemplateOutlet",ge._templateLabel().template)}}function de(Be,ae){if(1&Be&&(I.TgZ(0,"div",15),I._uU(1),I.qZA()),2&Be){const ge=I.oxw();I.xp6(1),I.Oqu(ge.label)}}function $(Be,ae){if(1&Be&&(I.TgZ(0,"div",17),I._uU(1),I.qZA()),2&Be){const ge=I.oxw();I.xp6(1),I.Oqu(ge._intl.optionalLabel)}}function me(Be,ae){if(1&Be&&(I.TgZ(0,"div",18),I._uU(1),I.qZA()),2&Be){const ge=I.oxw();I.xp6(1),I.Oqu(ge.errorMessage)}}function A(Be,ae){}function i(Be,ae){if(1&Be&&(I.Hsn(0),I.YNc(1,A,0,0,"ng-template",0)),2&Be){const ge=I.oxw();I.xp6(1),I.Q6J("cdkPortalOutlet",ge._portal)}}const a=["*"];function u(Be,ae){1&Be&&I._UZ(0,"div",11)}const l=function(Be,ae){return{step:Be,i:ae}};function y(Be,ae){if(1&Be&&(I.ynx(0),I.GkF(1,9),I.YNc(2,u,1,0,"div",10),I.BQk()),2&Be){const ge=ae.$implicit,ft=ae.index,Je=ae.last;I.oxw(2);const dt=I.MAs(4);I.xp6(1),I.Q6J("ngTemplateOutlet",dt)("ngTemplateOutletContext",I.WLB(3,l,ge,ft)),I.xp6(1),I.Q6J("ngIf",!Je)}}const T=function(Be){return{animationDuration:Be}},L=function(Be,ae){return{value:Be,params:ae}};function m(Be,ae){if(1&Be){const ge=I.EpF();I.TgZ(0,"div",12),I.NdJ("@horizontalStepTransition.done",function(Je){I.CHM(ge);const dt=I.oxw(2);return I.KtG(dt._animationDone.next(Je))}),I.GkF(1,13),I.qZA()}if(2&Be){const ge=ae.$implicit,ft=ae.index,Je=I.oxw(2);I.ekj("mat-horizontal-stepper-content-inactive",Je.selectedIndex!==ft),I.Q6J("@horizontalStepTransition",I.WLB(8,L,Je._getAnimationDirection(ft),I.VKq(6,T,Je._getAnimationDuration())))("id",Je._getStepContentId(ft)),I.uIk("aria-labelledby",Je._getStepLabelId(ft)),I.xp6(1),I.Q6J("ngTemplateOutlet",ge.content)}}function n(Be,ae){if(1&Be&&(I.TgZ(0,"div",4)(1,"div",5),I.YNc(2,y,3,6,"ng-container",6),I.qZA(),I.TgZ(3,"div",7),I.YNc(4,m,2,11,"div",8),I.qZA()()),2&Be){const ge=I.oxw();I.xp6(2),I.Q6J("ngForOf",ge.steps),I.xp6(2),I.Q6J("ngForOf",ge.steps)}}function _(Be,ae){if(1&Be){const ge=I.EpF();I.TgZ(0,"div",15),I.GkF(1,9),I.TgZ(2,"div",16)(3,"div",17),I.NdJ("@verticalStepTransition.done",function(Je){I.CHM(ge);const dt=I.oxw(2);return I.KtG(dt._animationDone.next(Je))}),I.TgZ(4,"div",18),I.GkF(5,13),I.qZA()()()()}if(2&Be){const ge=ae.$implicit,ft=ae.index,Je=ae.last,dt=I.oxw(2),Et=I.MAs(4);I.xp6(1),I.Q6J("ngTemplateOutlet",Et)("ngTemplateOutletContext",I.WLB(10,l,ge,ft)),I.xp6(1),I.ekj("mat-stepper-vertical-line",!Je),I.xp6(1),I.ekj("mat-vertical-stepper-content-inactive",dt.selectedIndex!==ft),I.Q6J("@verticalStepTransition",I.WLB(15,L,dt._getAnimationDirection(ft),I.VKq(13,T,dt._getAnimationDuration())))("id",dt._getStepContentId(ft)),I.uIk("aria-labelledby",dt._getStepLabelId(ft)),I.xp6(2),I.Q6J("ngTemplateOutlet",ge.content)}}function B(Be,ae){if(1&Be&&(I.ynx(0),I.YNc(1,_,6,18,"div",14),I.BQk()),2&Be){const ge=I.oxw();I.xp6(1),I.Q6J("ngForOf",ge.steps)}}function V(Be,ae){if(1&Be){const ge=I.EpF();I.TgZ(0,"mat-step-header",19),I.NdJ("click",function(){const dt=I.CHM(ge).step;return I.KtG(dt.select())})("keydown",function(Je){I.CHM(ge);const dt=I.oxw();return I.KtG(dt._onKeydown(Je))}),I.qZA()}if(2&Be){const ge=ae.step,ft=ae.i,Je=I.oxw();I.ekj("mat-horizontal-stepper-header","horizontal"===Je.orientation)("mat-vertical-stepper-header","vertical"===Je.orientation),I.Q6J("tabIndex",Je._getFocusIndex()===ft?0:-1)("id",Je._getStepLabelId(ft))("index",ft)("state",Je._getIndicatorType(ft,ge.state))("label",ge.stepLabel||ge.label)("selected",Je.selectedIndex===ft)("active",Je._stepIsNavigable(ft,ge))("optional",ge.optional)("errorMessage",ge.errorMessage)("iconOverrides",Je._iconOverrides)("disableRipple",Je.disableRipple||!Je._stepIsNavigable(ft,ge))("color",ge.color||Je.color),I.uIk("aria-posinset",ft+1)("aria-setsize",Je.steps.length)("aria-controls",Je._getStepContentId(ft))("aria-selected",Je.selectedIndex==ft)("aria-label",ge.ariaLabel||null)("aria-labelledby",!ge.ariaLabel&&ge.ariaLabelledby?ge.ariaLabelledby:null)("aria-disabled",!Je._stepIsNavigable(ft,ge)||null)}}let X=(()=>{class Be extends e.u6{}return Be.\u0275fac=function(){let ae;return function(ft){return(ae||(ae=I.n5z(Be)))(ft||Be)}}(),Be.\u0275dir=I.lG2({type:Be,selectors:[["","matStepLabel",""]],features:[I.qOj]}),Be})(),Le=(()=>{class Be{constructor(){this.changes=new P.x,this.optionalLabel="Optional",this.completedLabel="Completed",this.editableLabel="Editable"}}return Be.\u0275fac=function(ge){return new(ge||Be)},Be.\u0275prov=I.Yz7({token:Be,factory:Be.\u0275fac,providedIn:"root"}),Be})();const We={provide:Le,deps:[[new I.FiY,new I.tp0,Le]],useFactory:function $e(Be){return Be||new Le}},Fe=(0,s.pj)(class extends e.KL{constructor(ae){super(ae)}},"primary");let De=(()=>{class Be extends Fe{constructor(ge,ft,Je,dt){super(Je),this._intl=ge,this._focusMonitor=ft,this._intlSubscription=ge.changes.subscribe(()=>dt.markForCheck())}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0)}ngOnDestroy(){this._intlSubscription.unsubscribe(),this._focusMonitor.stopMonitoring(this._elementRef)}focus(ge,ft){ge?this._focusMonitor.focusVia(this._elementRef,ge,ft):this._elementRef.nativeElement.focus(ft)}_stringLabel(){return this.label instanceof X?null:this.label}_templateLabel(){return this.label instanceof X?this.label:null}_getHostElement(){return this._elementRef.nativeElement}_getIconContext(){return{index:this.index,active:this.active,optional:this.optional}}_getDefaultTextForState(ge){return"number"==ge?`${this.index+1}`:"edit"==ge?"create":"error"==ge?"warning":ge}}return Be.\u0275fac=function(ge){return new(ge||Be)(I.Y36(Le),I.Y36(h.tE),I.Y36(I.SBq),I.Y36(I.sBO))},Be.\u0275cmp=I.Xpm({type:Be,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:[I.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(ge,ft){1&ge&&(I._UZ(0,"div",0),I.TgZ(1,"div")(2,"div",1),I.YNc(3,W,1,2,"ng-container",2),I.YNc(4,le,5,4,"ng-container",3),I.qZA()(),I.TgZ(5,"div",4),I.YNc(6,ne,2,1,"div",5),I.YNc(7,de,2,1,"div",5),I.YNc(8,$,2,1,"div",6),I.YNc(9,me,2,1,"div",7),I.qZA()),2&ge&&(I.Q6J("matRippleTrigger",ft._getHostElement())("matRippleDisabled",ft.disableRipple),I.xp6(1),I.Gre("mat-step-icon-state-",ft.state," mat-step-icon"),I.ekj("mat-step-icon-selected",ft.selected),I.xp6(1),I.Q6J("ngSwitch",!(!ft.iconOverrides||!ft.iconOverrides[ft.state])),I.xp6(1),I.Q6J("ngSwitchCase",!0),I.xp6(2),I.ekj("mat-step-label-active",ft.active)("mat-step-label-selected",ft.selected)("mat-step-label-error","error"==ft.state),I.xp6(1),I.Q6J("ngIf",ft._templateLabel()),I.xp6(1),I.Q6J("ngIf",ft._stringLabel()),I.xp6(1),I.Q6J("ngIf",ft.optional&&"error"!=ft.state),I.xp6(1),I.Q6J("ngIf","error"==ft.state))},dependencies:[b.O5,b.tP,b.RF,b.n9,b.ED,C.Hw,s.wG],styles:['.mat-step-header{overflow:hidden;outline:none;cursor:pointer;position:relative;box-sizing:content-box;-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-step-header:focus .mat-focus-indicator::before{content:""}.cdk-high-contrast-active .mat-step-header{outline:solid 1px}.cdk-high-contrast-active .mat-step-header[aria-selected=true] .mat-step-label{text-decoration:underline}.cdk-high-contrast-active .mat-step-header[aria-disabled=true]{outline-color:GrayText}.cdk-high-contrast-active .mat-step-header[aria-disabled=true] .mat-step-label,.cdk-high-contrast-active .mat-step-header[aria-disabled=true] .mat-step-icon,.cdk-high-contrast-active .mat-step-header[aria-disabled=true] .mat-step-optional{color:GrayText}.mat-step-optional,.mat-step-sub-label-error{font-size:12px}.mat-step-icon{border-radius:50%;height:24px;width:24px;flex-shrink:0;position:relative}.mat-step-icon-content{position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);display:flex}.mat-step-icon .mat-icon{font-size:16px;height:16px;width:16px}.mat-step-icon-state-error .mat-icon{font-size:24px;height:24px;width:24px}.mat-step-label{display:inline-block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;min-width:50px;vertical-align:middle}.mat-step-text-label{text-overflow:ellipsis;overflow:hidden}.mat-step-header .mat-step-header-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}'],encapsulation:2,changeDetection:0}),Be})();const ve={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)("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)"),{params:{animationDuration:"500ms"}})]),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)("{{animationDuration}} cubic-bezier(0.4, 0.0, 0.2, 1)"),{params:{animationDuration:"225ms"}})])};let oe=(()=>{class Be{constructor(ge){this.templateRef=ge}}return Be.\u0275fac=function(ge){return new(ge||Be)(I.Y36(I.Rgc))},Be.\u0275dir=I.lG2({type:Be,selectors:[["ng-template","matStepperIcon",""]],inputs:{name:["matStepperIcon","name"]}}),Be})(),je=(()=>{class Be{constructor(ge){this._template=ge}}return Be.\u0275fac=function(ge){return new(ge||Be)(I.Y36(I.Rgc))},Be.\u0275dir=I.lG2({type:Be,selectors:[["ng-template","matStepContent",""]]}),Be})(),Ae=(()=>{class Be extends e.be{constructor(ge,ft,Je,dt){super(ge,dt),this._errorStateMatcher=ft,this._viewContainerRef=Je,this._isSelected=d.w0.EMPTY}ngAfterContentInit(){this._isSelected=this._stepper.steps.changes.pipe((0,w.w)(()=>this._stepper.selectionChange.pipe((0,O.U)(ge=>ge.selectedStep===this),(0,E.O)(this._stepper.selected===this)))).subscribe(ge=>{ge&&this._lazyContent&&!this._portal&&(this._portal=new t.UE(this._lazyContent._template,this._viewContainerRef))})}ngOnDestroy(){this._isSelected.unsubscribe()}isErrorState(ge,ft){return this._errorStateMatcher.isErrorState(ge,ft)||!!(ge&&ge.invalid&&this.interacted)}}return Be.\u0275fac=function(ge){return new(ge||Be)(I.Y36((0,I.Gpc)(()=>he)),I.Y36(s.rD,4),I.Y36(I.s_b),I.Y36(e.gx,8))},Be.\u0275cmp=I.Xpm({type:Be,selectors:[["mat-step"]],contentQueries:function(ge,ft,Je){if(1&ge&&(I.Suo(Je,X,5),I.Suo(Je,je,5)),2&ge){let dt;I.iGM(dt=I.CRH())&&(ft.stepLabel=dt.first),I.iGM(dt=I.CRH())&&(ft._lazyContent=dt.first)}},inputs:{color:"color"},exportAs:["matStep"],features:[I._Bn([{provide:s.rD,useExisting:Be},{provide:e.be,useExisting:Be}]),I.qOj],ngContentSelectors:a,decls:1,vars:0,consts:[[3,"cdkPortalOutlet"]],template:function(ge,ft){1&ge&&(I.F$t(),I.YNc(0,i,2,1,"ng-template"))},dependencies:[t.Pl],encapsulation:2,changeDetection:0}),Be})(),he=(()=>{class Be extends e.B8{get animationDuration(){return this._animationDuration}set animationDuration(ge){this._animationDuration=/^\d+$/.test(ge)?ge+"ms":ge}constructor(ge,ft,Je){super(ge,ft,Je),this.steps=new I.n_E,this.animationDone=new I.vpe,this.labelPosition="end",this.headerPosition="top",this._iconOverrides={},this._animationDone=new P.x,this._animationDuration="";const dt=Je.nativeElement.nodeName.toLowerCase();this.orientation="mat-vertical-stepper"===dt?"vertical":"horizontal"}ngAfterContentInit(){super.ngAfterContentInit(),this._icons.forEach(({name:ge,templateRef:ft})=>this._iconOverrides[ge]=ft),this.steps.changes.pipe((0,R.R)(this._destroyed)).subscribe(()=>{this._stateChanged()}),this._animationDone.pipe((0,z.x)((ge,ft)=>ge.fromState===ft.fromState&&ge.toState===ft.toState),(0,R.R)(this._destroyed)).subscribe(ge=>{"current"===ge.toState&&this.animationDone.emit()})}_stepIsNavigable(ge,ft){return ft.completed||this.selectedIndex===ge||!this.linear}_getAnimationDuration(){return this.animationDuration?this.animationDuration:"horizontal"===this.orientation?"500ms":"225ms"}}return Be.\u0275fac=function(ge){return new(ge||Be)(I.Y36(S.Is,8),I.Y36(I.sBO),I.Y36(I.SBq))},Be.\u0275cmp=I.Xpm({type:Be,selectors:[["mat-stepper"],["mat-vertical-stepper"],["mat-horizontal-stepper"],["","matStepper",""]],contentQueries:function(ge,ft,Je){if(1&ge&&(I.Suo(Je,Ae,5),I.Suo(Je,oe,5)),2&ge){let dt;I.iGM(dt=I.CRH())&&(ft._steps=dt),I.iGM(dt=I.CRH())&&(ft._icons=dt)}},viewQuery:function(ge,ft){if(1&ge&&I.Gf(De,5),2&ge){let Je;I.iGM(Je=I.CRH())&&(ft._stepHeader=Je)}},hostAttrs:["role","tablist"],hostVars:11,hostBindings:function(ge,ft){2&ge&&(I.uIk("aria-orientation",ft.orientation),I.ekj("mat-stepper-horizontal","horizontal"===ft.orientation)("mat-stepper-vertical","vertical"===ft.orientation)("mat-stepper-label-position-end","horizontal"===ft.orientation&&"end"==ft.labelPosition)("mat-stepper-label-position-bottom","horizontal"===ft.orientation&&"bottom"==ft.labelPosition)("mat-stepper-header-position-bottom","bottom"===ft.headerPosition))},inputs:{selectedIndex:"selectedIndex",disableRipple:"disableRipple",color:"color",labelPosition:"labelPosition",headerPosition:"headerPosition",animationDuration:"animationDuration"},outputs:{animationDone:"animationDone"},exportAs:["matStepper","matVerticalStepper","matHorizontalStepper"],features:[I._Bn([{provide:e.B8,useExisting:Be}]),I.qOj],decls:5,vars:3,consts:[[3,"ngSwitch"],["class","mat-horizontal-stepper-wrapper",4,"ngSwitchCase"],[4,"ngSwitchCase"],["stepTemplate",""],[1,"mat-horizontal-stepper-wrapper"],[1,"mat-horizontal-stepper-header-container"],[4,"ngFor","ngForOf"],[1,"mat-horizontal-content-container"],["class","mat-horizontal-stepper-content","role","tabpanel",3,"id","mat-horizontal-stepper-content-inactive",4,"ngFor","ngForOf"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],["class","mat-stepper-horizontal-line",4,"ngIf"],[1,"mat-stepper-horizontal-line"],["role","tabpanel",1,"mat-horizontal-stepper-content",3,"id"],[3,"ngTemplateOutlet"],["class","mat-step",4,"ngFor","ngForOf"],[1,"mat-step"],[1,"mat-vertical-content-container"],["role","tabpanel",1,"mat-vertical-stepper-content",3,"id"],[1,"mat-vertical-content"],[3,"tabIndex","id","index","state","label","selected","active","optional","errorMessage","iconOverrides","disableRipple","color","click","keydown"]],template:function(ge,ft){1&ge&&(I.ynx(0,0),I.YNc(1,n,5,2,"div",1),I.YNc(2,B,2,1,"ng-container",2),I.BQk(),I.YNc(3,V,1,23,"ng-template",null,3,I.W1O)),2&ge&&(I.Q6J("ngSwitch",ft.orientation),I.xp6(1),I.Q6J("ngSwitchCase","horizontal"),I.xp6(1),I.Q6J("ngSwitchCase","vertical"))},dependencies:[b.sg,b.O5,b.tP,b.RF,b.n9,De],styles:['.mat-stepper-vertical,.mat-stepper-horizontal{display:block}.mat-horizontal-stepper-header-container{white-space:nowrap;display:flex;align-items:center}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header-container{align-items:flex-start}.mat-stepper-header-position-bottom .mat-horizontal-stepper-header-container{order:1}.mat-stepper-horizontal-line{border-top-width:1px;border-top-style:solid;flex:auto;height:0;margin:0 -16px;min-width:32px}.mat-stepper-label-position-bottom .mat-stepper-horizontal-line{margin:0;min-width:0;position:relative}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:first-child)::before,[dir=rtl] .mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:last-child)::before,.mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:last-child)::after,[dir=rtl] .mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:first-child)::after{border-top-width:1px;border-top-style:solid;content:"";display:inline-block;height:0;position:absolute;width:calc(50% - 20px)}.mat-horizontal-stepper-header{display:flex;height:72px;overflow:hidden;align-items:center;padding:0 24px}.mat-horizontal-stepper-header .mat-step-icon{margin-right:8px;flex:none}[dir=rtl] .mat-horizontal-stepper-header .mat-step-icon{margin-right:0;margin-left:8px}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header{box-sizing:border-box;flex-direction:column;height:auto}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:last-child)::after,[dir=rtl] .mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:first-child)::after{right:0}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:first-child)::before,[dir=rtl] .mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:last-child)::before{left:0}[dir=rtl] .mat-stepper-label-position-bottom .mat-horizontal-stepper-header:last-child::before,[dir=rtl] .mat-stepper-label-position-bottom .mat-horizontal-stepper-header:first-child::after{display:none}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header .mat-step-icon{margin-right:0;margin-left:0}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header .mat-step-label{padding:16px 0 0 0;text-align:center;width:100%}.mat-vertical-stepper-header{display:flex;align-items:center;height:24px}.mat-vertical-stepper-header .mat-step-icon{margin-right:12px}[dir=rtl] .mat-vertical-stepper-header .mat-step-icon{margin-right:0;margin-left:12px}.mat-horizontal-stepper-wrapper{display:flex;flex-direction:column}.mat-horizontal-stepper-content{outline:0}.mat-horizontal-stepper-content.mat-horizontal-stepper-content-inactive{height:0;overflow:hidden}.mat-horizontal-stepper-content:not(.mat-horizontal-stepper-content-inactive){visibility:inherit !important}.mat-horizontal-content-container{overflow:hidden;padding:0 24px 24px 24px}.cdk-high-contrast-active .mat-horizontal-content-container{outline:solid 1px}.mat-stepper-header-position-bottom .mat-horizontal-content-container{padding:24px 24px 0 24px}.mat-vertical-content-container{margin-left:36px;border:0;position:relative}.cdk-high-contrast-active .mat-vertical-content-container{outline:solid 1px}[dir=rtl] .mat-vertical-content-container{margin-left:0;margin-right:36px}.mat-stepper-vertical-line::before{content:"";position:absolute;left:0;border-left-width:1px;border-left-style:solid}[dir=rtl] .mat-stepper-vertical-line::before{left:auto;right:0}.mat-vertical-stepper-content{overflow:hidden;outline:0}.mat-vertical-stepper-content:not(.mat-vertical-stepper-content-inactive){visibility:inherit !important}.mat-vertical-content{padding:0 24px 24px 24px}.mat-step:last-child .mat-vertical-content-container{border:none}'],encapsulation:2,data:{animation:[ve.horizontalStepTransition,ve.verticalStepTransition]},changeDetection:0}),Be})(),Ce=(()=>{class Be extends e.st{}return Be.\u0275fac=function(){let ae;return function(ft){return(ae||(ae=I.n5z(Be)))(ft||Be)}}(),Be.\u0275dir=I.lG2({type:Be,selectors:[["button","matStepperNext",""]],hostAttrs:[1,"mat-stepper-next"],hostVars:1,hostBindings:function(ge,ft){2&ge&&I.Ikx("type",ft.type)},inputs:{type:"type"},features:[I.qOj]}),Be})(),te=(()=>{class Be extends e.po{}return Be.\u0275fac=function(){let ae;return function(ft){return(ae||(ae=I.n5z(Be)))(ft||Be)}}(),Be.\u0275dir=I.lG2({type:Be,selectors:[["button","matStepperPrevious",""]],hostAttrs:[1,"mat-stepper-previous"],hostVars:1,hostBindings:function(ge,ft){2&ge&&I.Ikx("type",ft.type)},inputs:{type:"type"},features:[I.qOj]}),Be})(),Ue=(()=>{class Be{}return Be.\u0275fac=function(ge){return new(ge||Be)},Be.\u0275mod=I.oAB({type:Be}),Be.\u0275inj=I.cJS({providers:[We,s.rD],imports:[s.BQ,b.ez,t.eL,e.U5,C.Ps,s.si,s.BQ]}),Be})()},671:(Ve,q,p)=>{"use strict";p.d(q,{ev:()=>vt,Dz:()=>at,w1:()=>ni,yh:()=>tt,mD:()=>Gt,Q2:()=>Oe,Ke:()=>Ut,ge:()=>ut,fO:()=>ii,XQ:()=>Rt,as:()=>ti,Gk:()=>et,nj:()=>ht,BZ:()=>He,by:()=>Fi,p0:()=>pi});var t=p(4650),e=p(445),b=p(1281),I=p(5017),s=p(3353),C=p(531),h=p(6895),P=p(7579),d=p(457),S=p(1135),w=p(5191),O=p(9646),E=p(2722),R=p(5698);const z=[[["caption"]],[["colgroup"],["col"]]],U=["caption","colgroup, col"];function ee(qe){return class extends qe{get sticky(){return this._sticky}set sticky(St){const xe=this._sticky;this._sticky=(0,b.Ig)(St),this._hasStickyChanged=xe!==this._sticky}hasStickyChanged(){const St=this._hasStickyChanged;return this._hasStickyChanged=!1,St}resetStickyChanged(){this._hasStickyChanged=!1}constructor(...St){super(...St),this._sticky=!1,this._hasStickyChanged=!1}}}const ie=new t.OlP("CDK_TABLE");let le=(()=>{class qe{constructor(xe){this.template=xe}}return qe.\u0275fac=function(xe){return new(xe||qe)(t.Y36(t.Rgc))},qe.\u0275dir=t.lG2({type:qe,selectors:[["","cdkCellDef",""]]}),qe})(),ne=(()=>{class qe{constructor(xe){this.template=xe}}return qe.\u0275fac=function(xe){return new(xe||qe)(t.Y36(t.Rgc))},qe.\u0275dir=t.lG2({type:qe,selectors:[["","cdkHeaderCellDef",""]]}),qe})(),de=(()=>{class qe{constructor(xe){this.template=xe}}return qe.\u0275fac=function(xe){return new(xe||qe)(t.Y36(t.Rgc))},qe.\u0275dir=t.lG2({type:qe,selectors:[["","cdkFooterCellDef",""]]}),qe})();class ${}const me=ee($);let A=(()=>{class qe extends me{get name(){return this._name}set name(xe){this._setNameInput(xe)}get stickyEnd(){return this._stickyEnd}set stickyEnd(xe){const Nt=this._stickyEnd;this._stickyEnd=(0,b.Ig)(xe),this._hasStickyChanged=Nt!==this._stickyEnd}constructor(xe){super(),this._table=xe,this._stickyEnd=!1}_updateColumnCssClassName(){this._columnCssClassName=[`cdk-column-${this.cssClassFriendlyName}`]}_setNameInput(xe){xe&&(this._name=xe,this.cssClassFriendlyName=xe.replace(/[^a-z0-9_-]/gi,"-"),this._updateColumnCssClassName())}}return qe.\u0275fac=function(xe){return new(xe||qe)(t.Y36(ie,8))},qe.\u0275dir=t.lG2({type:qe,selectors:[["","cdkColumnDef",""]],contentQueries:function(xe,Nt,qt){if(1&xe&&(t.Suo(qt,le,5),t.Suo(qt,ne,5),t.Suo(qt,de,5)),2&xe){let mi;t.iGM(mi=t.CRH())&&(Nt.cell=mi.first),t.iGM(mi=t.CRH())&&(Nt.headerCell=mi.first),t.iGM(mi=t.CRH())&&(Nt.footerCell=mi.first)}},inputs:{sticky:"sticky",name:["cdkColumnDef","name"],stickyEnd:"stickyEnd"},features:[t._Bn([{provide:"MAT_SORT_HEADER_COLUMN_DEF",useExisting:qe}]),t.qOj]}),qe})();class i{constructor(St,xe){xe.nativeElement.classList.add(...St._columnCssClassName)}}let a=(()=>{class qe extends i{constructor(xe,Nt){super(xe,Nt)}}return qe.\u0275fac=function(xe){return new(xe||qe)(t.Y36(A),t.Y36(t.SBq))},qe.\u0275dir=t.lG2({type:qe,selectors:[["cdk-header-cell"],["th","cdk-header-cell",""]],hostAttrs:["role","columnheader",1,"cdk-header-cell"],features:[t.qOj]}),qe})(),u=(()=>{class qe extends i{constructor(xe,Nt){if(super(xe,Nt),1===xe._table?._elementRef.nativeElement.nodeType){const qt=xe._table._elementRef.nativeElement.getAttribute("role");Nt.nativeElement.setAttribute("role","grid"===qt||"treegrid"===qt?"gridcell":"cell")}}}return qe.\u0275fac=function(xe){return new(xe||qe)(t.Y36(A),t.Y36(t.SBq))},qe.\u0275dir=t.lG2({type:qe,selectors:[["cdk-footer-cell"],["td","cdk-footer-cell",""]],hostAttrs:[1,"cdk-footer-cell"],features:[t.qOj]}),qe})(),l=(()=>{class qe extends i{constructor(xe,Nt){if(super(xe,Nt),1===xe._table?._elementRef.nativeElement.nodeType){const qt=xe._table._elementRef.nativeElement.getAttribute("role");Nt.nativeElement.setAttribute("role","grid"===qt||"treegrid"===qt?"gridcell":"cell")}}}return qe.\u0275fac=function(xe){return new(xe||qe)(t.Y36(A),t.Y36(t.SBq))},qe.\u0275dir=t.lG2({type:qe,selectors:[["cdk-cell"],["td","cdk-cell",""]],hostAttrs:[1,"cdk-cell"],features:[t.qOj]}),qe})();class y{constructor(){this.tasks=[],this.endTasks=[]}}const T=new t.OlP("_COALESCED_STYLE_SCHEDULER");let L=(()=>{class qe{constructor(xe){this._ngZone=xe,this._currentSchedule=null,this._destroyed=new P.x}schedule(xe){this._createScheduleIfNeeded(),this._currentSchedule.tasks.push(xe)}scheduleEnd(xe){this._createScheduleIfNeeded(),this._currentSchedule.endTasks.push(xe)}ngOnDestroy(){this._destroyed.next(),this._destroyed.complete()}_createScheduleIfNeeded(){this._currentSchedule||(this._currentSchedule=new y,this._getScheduleObservable().pipe((0,E.R)(this._destroyed)).subscribe(()=>{for(;this._currentSchedule.tasks.length||this._currentSchedule.endTasks.length;){const xe=this._currentSchedule;this._currentSchedule=new y;for(const Nt of xe.tasks)Nt();for(const Nt of xe.endTasks)Nt()}this._currentSchedule=null}))}_getScheduleObservable(){return this._ngZone.isStable?(0,d.D)(Promise.resolve(void 0)):this._ngZone.onStable.pipe((0,R.q)(1))}}return qe.\u0275fac=function(xe){return new(xe||qe)(t.LFG(t.R0b))},qe.\u0275prov=t.Yz7({token:qe,factory:qe.\u0275fac}),qe})(),n=(()=>{class qe{constructor(xe,Nt){this.template=xe,this._differs=Nt}ngOnChanges(xe){if(!this._columnsDiffer){const Nt=xe.columns&&xe.columns.currentValue||[];this._columnsDiffer=this._differs.find(Nt).create(),this._columnsDiffer.diff(Nt)}}getColumnsDiff(){return this._columnsDiffer.diff(this.columns)}extractCellTemplate(xe){return this instanceof V?xe.headerCell.template:this instanceof $e?xe.footerCell.template:xe.cell.template}}return qe.\u0275fac=function(xe){return new(xe||qe)(t.Y36(t.Rgc),t.Y36(t.ZZ4))},qe.\u0275dir=t.lG2({type:qe,features:[t.TTD]}),qe})();class _ extends n{}const B=ee(_);let V=(()=>{class qe extends B{constructor(xe,Nt,qt){super(xe,Nt),this._table=qt}ngOnChanges(xe){super.ngOnChanges(xe)}}return qe.\u0275fac=function(xe){return new(xe||qe)(t.Y36(t.Rgc),t.Y36(t.ZZ4),t.Y36(ie,8))},qe.\u0275dir=t.lG2({type:qe,selectors:[["","cdkHeaderRowDef",""]],inputs:{columns:["cdkHeaderRowDef","columns"],sticky:["cdkHeaderRowDefSticky","sticky"]},features:[t.qOj,t.TTD]}),qe})();class X extends n{}const Le=ee(X);let $e=(()=>{class qe extends Le{constructor(xe,Nt,qt){super(xe,Nt),this._table=qt}ngOnChanges(xe){super.ngOnChanges(xe)}}return qe.\u0275fac=function(xe){return new(xe||qe)(t.Y36(t.Rgc),t.Y36(t.ZZ4),t.Y36(ie,8))},qe.\u0275dir=t.lG2({type:qe,selectors:[["","cdkFooterRowDef",""]],inputs:{columns:["cdkFooterRowDef","columns"],sticky:["cdkFooterRowDefSticky","sticky"]},features:[t.qOj,t.TTD]}),qe})(),We=(()=>{class qe extends n{constructor(xe,Nt,qt){super(xe,Nt),this._table=qt}}return qe.\u0275fac=function(xe){return new(xe||qe)(t.Y36(t.Rgc),t.Y36(t.ZZ4),t.Y36(ie,8))},qe.\u0275dir=t.lG2({type:qe,selectors:[["","cdkRowDef",""]],inputs:{columns:["cdkRowDefColumns","columns"],when:["cdkRowDefWhen","when"]},features:[t.qOj]}),qe})(),Fe=(()=>{class qe{constructor(xe){this._viewContainer=xe,qe.mostRecentCellOutlet=this}ngOnDestroy(){qe.mostRecentCellOutlet===this&&(qe.mostRecentCellOutlet=null)}}return qe.mostRecentCellOutlet=null,qe.\u0275fac=function(xe){return new(xe||qe)(t.Y36(t.s_b))},qe.\u0275dir=t.lG2({type:qe,selectors:[["","cdkCellOutlet",""]]}),qe})(),De=(()=>{class qe{}return qe.\u0275fac=function(xe){return new(xe||qe)},qe.\u0275cmp=t.Xpm({type:qe,selectors:[["cdk-header-row"],["tr","cdk-header-row",""]],hostAttrs:["role","row",1,"cdk-header-row"],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(xe,Nt){1&xe&&t.GkF(0,0)},dependencies:[Fe],encapsulation:2}),qe})(),ye=(()=>{class qe{}return qe.\u0275fac=function(xe){return new(xe||qe)},qe.\u0275cmp=t.Xpm({type:qe,selectors:[["cdk-footer-row"],["tr","cdk-footer-row",""]],hostAttrs:["role","row",1,"cdk-footer-row"],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(xe,Nt){1&xe&&t.GkF(0,0)},dependencies:[Fe],encapsulation:2}),qe})(),ce=(()=>{class qe{}return qe.\u0275fac=function(xe){return new(xe||qe)},qe.\u0275cmp=t.Xpm({type:qe,selectors:[["cdk-row"],["tr","cdk-row",""]],hostAttrs:["role","row",1,"cdk-row"],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(xe,Nt){1&xe&&t.GkF(0,0)},dependencies:[Fe],encapsulation:2}),qe})(),ve=(()=>{class qe{constructor(xe){this.templateRef=xe,this._contentClassName="cdk-no-data-row"}}return qe.\u0275fac=function(xe){return new(xe||qe)(t.Y36(t.Rgc))},qe.\u0275dir=t.lG2({type:qe,selectors:[["ng-template","cdkNoDataRow",""]]}),qe})();const oe=["top","bottom","left","right"];class je{constructor(St,xe,Nt,qt,mi=!0,Ci=!0,Ii){this._isNativeHtmlTable=St,this._stickCellCss=xe,this.direction=Nt,this._coalescedStyleScheduler=qt,this._isBrowser=mi,this._needsPositionStickyOnElement=Ci,this._positionListener=Ii,this._cachedCellWidths=[],this._borderCellCss={top:`${xe}-border-elem-top`,bottom:`${xe}-border-elem-bottom`,left:`${xe}-border-elem-left`,right:`${xe}-border-elem-right`}}clearStickyPositioning(St,xe){const Nt=[];for(const qt of St)if(qt.nodeType===qt.ELEMENT_NODE){Nt.push(qt);for(let mi=0;mi<qt.children.length;mi++)Nt.push(qt.children[mi])}this._coalescedStyleScheduler.schedule(()=>{for(const qt of Nt)this._removeStickyStyle(qt,xe)})}updateStickyColumns(St,xe,Nt,qt=!0){if(!St.length||!this._isBrowser||!xe.some(Jt=>Jt)&&!Nt.some(Jt=>Jt))return void(this._positionListener&&(this._positionListener.stickyColumnsUpdated({sizes:[]}),this._positionListener.stickyEndColumnsUpdated({sizes:[]})));const mi=St[0],Ci=mi.children.length,Ii=this._getCellWidths(mi,qt),Gi=this._getStickyStartColumnPositions(Ii,xe),Yi=this._getStickyEndColumnPositions(Ii,Nt),Ji=xe.lastIndexOf(!0),Wt=Nt.indexOf(!0);this._coalescedStyleScheduler.schedule(()=>{const Jt="rtl"===this.direction,fe=Jt?"right":"left",lt=Jt?"left":"right";for(const It of St)for(let Bt=0;Bt<Ci;Bt++){const zt=It.children[Bt];xe[Bt]&&this._addStickyStyle(zt,fe,Gi[Bt],Bt===Ji),Nt[Bt]&&this._addStickyStyle(zt,lt,Yi[Bt],Bt===Wt)}this._positionListener&&(this._positionListener.stickyColumnsUpdated({sizes:-1===Ji?[]:Ii.slice(0,Ji+1).map((It,Bt)=>xe[Bt]?It:null)}),this._positionListener.stickyEndColumnsUpdated({sizes:-1===Wt?[]:Ii.slice(Wt).map((It,Bt)=>Nt[Bt+Wt]?It:null).reverse()}))})}stickRows(St,xe,Nt){if(!this._isBrowser)return;const qt="bottom"===Nt?St.slice().reverse():St,mi="bottom"===Nt?xe.slice().reverse():xe,Ci=[],Ii=[],Gi=[];for(let Ji=0,Wt=0;Ji<qt.length;Ji++){if(!mi[Ji])continue;Ci[Ji]=Wt;const Jt=qt[Ji];Gi[Ji]=this._isNativeHtmlTable?Array.from(Jt.children):[Jt];const fe=Jt.getBoundingClientRect().height;Wt+=fe,Ii[Ji]=fe}const Yi=mi.lastIndexOf(!0);this._coalescedStyleScheduler.schedule(()=>{for(let Ji=0;Ji<qt.length;Ji++){if(!mi[Ji])continue;const Wt=Ci[Ji],Jt=Ji===Yi;for(const fe of Gi[Ji])this._addStickyStyle(fe,Nt,Wt,Jt)}"top"===Nt?this._positionListener?.stickyHeaderRowsUpdated({sizes:Ii,offsets:Ci,elements:Gi}):this._positionListener?.stickyFooterRowsUpdated({sizes:Ii,offsets:Ci,elements:Gi})})}updateStickyFooterContainer(St,xe){if(!this._isNativeHtmlTable)return;const Nt=St.querySelector("tfoot");this._coalescedStyleScheduler.schedule(()=>{xe.some(qt=>!qt)?this._removeStickyStyle(Nt,["bottom"]):this._addStickyStyle(Nt,"bottom",0,!1)})}_removeStickyStyle(St,xe){for(const qt of xe)St.style[qt]="",St.classList.remove(this._borderCellCss[qt]);oe.some(qt=>-1===xe.indexOf(qt)&&St.style[qt])?St.style.zIndex=this._getCalculatedZIndex(St):(St.style.zIndex="",this._needsPositionStickyOnElement&&(St.style.position=""),St.classList.remove(this._stickCellCss))}_addStickyStyle(St,xe,Nt,qt){St.classList.add(this._stickCellCss),qt&&St.classList.add(this._borderCellCss[xe]),St.style[xe]=`${Nt}px`,St.style.zIndex=this._getCalculatedZIndex(St),this._needsPositionStickyOnElement&&(St.style.cssText+="position: -webkit-sticky; position: sticky; ")}_getCalculatedZIndex(St){const xe={top:100,bottom:10,left:1,right:1};let Nt=0;for(const qt of oe)St.style[qt]&&(Nt+=xe[qt]);return Nt?`${Nt}`:""}_getCellWidths(St,xe=!0){if(!xe&&this._cachedCellWidths.length)return this._cachedCellWidths;const Nt=[],qt=St.children;for(let mi=0;mi<qt.length;mi++)Nt.push(qt[mi].getBoundingClientRect().width);return this._cachedCellWidths=Nt,Nt}_getStickyStartColumnPositions(St,xe){const Nt=[];let qt=0;for(let mi=0;mi<St.length;mi++)xe[mi]&&(Nt[mi]=qt,qt+=St[mi]);return Nt}_getStickyEndColumnPositions(St,xe){const Nt=[];let qt=0;for(let mi=St.length;mi>0;mi--)xe[mi]&&(Nt[mi]=qt,qt+=St[mi]);return Nt}}const ft=new t.OlP("CDK_SPL");let dt=(()=>{class qe{constructor(xe,Nt){this.viewContainer=xe,this.elementRef=Nt}}return qe.\u0275fac=function(xe){return new(xe||qe)(t.Y36(t.s_b),t.Y36(t.SBq))},qe.\u0275dir=t.lG2({type:qe,selectors:[["","rowOutlet",""]]}),qe})(),Et=(()=>{class qe{constructor(xe,Nt){this.viewContainer=xe,this.elementRef=Nt}}return qe.\u0275fac=function(xe){return new(xe||qe)(t.Y36(t.s_b),t.Y36(t.SBq))},qe.\u0275dir=t.lG2({type:qe,selectors:[["","headerRowOutlet",""]]}),qe})(),pt=(()=>{class qe{constructor(xe,Nt){this.viewContainer=xe,this.elementRef=Nt}}return qe.\u0275fac=function(xe){return new(xe||qe)(t.Y36(t.s_b),t.Y36(t.SBq))},qe.\u0275dir=t.lG2({type:qe,selectors:[["","footerRowOutlet",""]]}),qe})(),ot=(()=>{class qe{constructor(xe,Nt){this.viewContainer=xe,this.elementRef=Nt}}return qe.\u0275fac=function(xe){return new(xe||qe)(t.Y36(t.s_b),t.Y36(t.SBq))},qe.\u0275dir=t.lG2({type:qe,selectors:[["","noDataRowOutlet",""]]}),qe})(),Ke=(()=>{class qe{get trackBy(){return this._trackByFn}set trackBy(xe){this._trackByFn=xe}get dataSource(){return this._dataSource}set dataSource(xe){this._dataSource!==xe&&this._switchDataSource(xe)}get multiTemplateDataRows(){return this._multiTemplateDataRows}set multiTemplateDataRows(xe){this._multiTemplateDataRows=(0,b.Ig)(xe),this._rowOutlet&&this._rowOutlet.viewContainer.length&&(this._forceRenderDataRows(),this.updateStickyColumnStyles())}get fixedLayout(){return this._fixedLayout}set fixedLayout(xe){this._fixedLayout=(0,b.Ig)(xe),this._forceRecalculateCellWidths=!0,this._stickyColumnStylesNeedReset=!0}constructor(xe,Nt,qt,mi,Ci,Ii,Gi,Yi,Ji,Wt,Jt,fe){this._differs=xe,this._changeDetectorRef=Nt,this._elementRef=qt,this._dir=Ci,this._platform=Gi,this._viewRepeater=Yi,this._coalescedStyleScheduler=Ji,this._viewportRuler=Wt,this._stickyPositioningListener=Jt,this._ngZone=fe,this._onDestroy=new P.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 S.X({start:0,end:Number.MAX_VALUE}),mi||this._elementRef.nativeElement.setAttribute("role","table"),this._document=Ii,this._isNativeHtmlTable="TABLE"===this._elementRef.nativeElement.nodeName}ngOnInit(){this._setupStickyStyler(),this._isNativeHtmlTable&&this._applyNativeTableSections(),this._dataDiffer=this._differs.find([]).create((xe,Nt)=>this.trackBy?this.trackBy(Nt.dataIndex,Nt.data):Nt),this._viewportRuler.change().pipe((0,E.R)(this._onDestroy)).subscribe(()=>{this._forceRecalculateCellWidths=!0})}ngAfterContentChecked(){this._cacheRowDefs(),this._cacheColumnDefs();const Nt=this._renderUpdatedColumns()||this._headerRowDefChanged||this._footerRowDefChanged;this._stickyColumnStylesNeedReset=this._stickyColumnStylesNeedReset||Nt,this._forceRecalculateCellWidths=Nt,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(xe=>{xe.clear()}),this._headerRowDefs=[],this._footerRowDefs=[],this._defaultRowDef=null,this._onDestroy.next(),this._onDestroy.complete(),(0,I.Z9)(this.dataSource)&&this.dataSource.disconnect(this)}renderRows(){this._renderRows=this._getAllRenderRows();const xe=this._dataDiffer.diff(this._renderRows);if(!xe)return this._updateNoDataRow(),void this.contentChanged.next();const Nt=this._rowOutlet.viewContainer;this._viewRepeater.applyChanges(xe,Nt,(qt,mi,Ci)=>this._getEmbeddedViewArgs(qt.item,Ci),qt=>qt.item.data,qt=>{1===qt.operation&&qt.context&&this._renderCellTemplateForItem(qt.record.item.rowDef,qt.context)}),this._updateRowIndexContext(),xe.forEachIdentityChange(qt=>{Nt.get(qt.currentIndex).context.$implicit=qt.item.data}),this._updateNoDataRow(),this._ngZone&&t.R0b.isInAngularZone()?this._ngZone.onStable.pipe((0,R.q)(1),(0,E.R)(this._onDestroy)).subscribe(()=>{this.updateStickyColumnStyles()}):this.updateStickyColumnStyles(),this.contentChanged.next()}addColumnDef(xe){this._customColumnDefs.add(xe)}removeColumnDef(xe){this._customColumnDefs.delete(xe)}addRowDef(xe){this._customRowDefs.add(xe)}removeRowDef(xe){this._customRowDefs.delete(xe)}addHeaderRowDef(xe){this._customHeaderRowDefs.add(xe),this._headerRowDefChanged=!0}removeHeaderRowDef(xe){this._customHeaderRowDefs.delete(xe),this._headerRowDefChanged=!0}addFooterRowDef(xe){this._customFooterRowDefs.add(xe),this._footerRowDefChanged=!0}removeFooterRowDef(xe){this._customFooterRowDefs.delete(xe),this._footerRowDefChanged=!0}setNoDataRow(xe){this._customNoDataRow=xe}updateStickyHeaderRowStyles(){const xe=this._getRenderedRows(this._headerRowOutlet),qt=this._elementRef.nativeElement.querySelector("thead");qt&&(qt.style.display=xe.length?"":"none");const mi=this._headerRowDefs.map(Ci=>Ci.sticky);this._stickyStyler.clearStickyPositioning(xe,["top"]),this._stickyStyler.stickRows(xe,mi,"top"),this._headerRowDefs.forEach(Ci=>Ci.resetStickyChanged())}updateStickyFooterRowStyles(){const xe=this._getRenderedRows(this._footerRowOutlet),qt=this._elementRef.nativeElement.querySelector("tfoot");qt&&(qt.style.display=xe.length?"":"none");const mi=this._footerRowDefs.map(Ci=>Ci.sticky);this._stickyStyler.clearStickyPositioning(xe,["bottom"]),this._stickyStyler.stickRows(xe,mi,"bottom"),this._stickyStyler.updateStickyFooterContainer(this._elementRef.nativeElement,mi),this._footerRowDefs.forEach(Ci=>Ci.resetStickyChanged())}updateStickyColumnStyles(){const xe=this._getRenderedRows(this._headerRowOutlet),Nt=this._getRenderedRows(this._rowOutlet),qt=this._getRenderedRows(this._footerRowOutlet);(this._isNativeHtmlTable&&!this._fixedLayout||this._stickyColumnStylesNeedReset)&&(this._stickyStyler.clearStickyPositioning([...xe,...Nt,...qt],["left","right"]),this._stickyColumnStylesNeedReset=!1),xe.forEach((mi,Ci)=>{this._addStickyColumnStyles([mi],this._headerRowDefs[Ci])}),this._rowDefs.forEach(mi=>{const Ci=[];for(let Ii=0;Ii<Nt.length;Ii++)this._renderRows[Ii].rowDef===mi&&Ci.push(Nt[Ii]);this._addStickyColumnStyles(Ci,mi)}),qt.forEach((mi,Ci)=>{this._addStickyColumnStyles([mi],this._footerRowDefs[Ci])}),Array.from(this._columnDefsByName.values()).forEach(mi=>mi.resetStickyChanged())}_getAllRenderRows(){const xe=[],Nt=this._cachedRenderRowsMap;this._cachedRenderRowsMap=new Map;for(let qt=0;qt<this._data.length;qt++){let mi=this._data[qt];const Ci=this._getRenderRowsForData(mi,qt,Nt.get(mi));this._cachedRenderRowsMap.has(mi)||this._cachedRenderRowsMap.set(mi,new WeakMap);for(let Ii=0;Ii<Ci.length;Ii++){let Gi=Ci[Ii];const Yi=this._cachedRenderRowsMap.get(Gi.data);Yi.has(Gi.rowDef)?Yi.get(Gi.rowDef).push(Gi):Yi.set(Gi.rowDef,[Gi]),xe.push(Gi)}}return xe}_getRenderRowsForData(xe,Nt,qt){return this._getRowDefs(xe,Nt).map(Ci=>{const Ii=qt&&qt.has(Ci)?qt.get(Ci):[];if(Ii.length){const Gi=Ii.shift();return Gi.dataIndex=Nt,Gi}return{data:xe,rowDef:Ci,dataIndex:Nt}})}_cacheColumnDefs(){this._columnDefsByName.clear(),xt(this._getOwnDefs(this._contentColumnDefs),this._customColumnDefs).forEach(Nt=>{this._columnDefsByName.has(Nt.name),this._columnDefsByName.set(Nt.name,Nt)})}_cacheRowDefs(){this._headerRowDefs=xt(this._getOwnDefs(this._contentHeaderRowDefs),this._customHeaderRowDefs),this._footerRowDefs=xt(this._getOwnDefs(this._contentFooterRowDefs),this._customFooterRowDefs),this._rowDefs=xt(this._getOwnDefs(this._contentRowDefs),this._customRowDefs);const xe=this._rowDefs.filter(Nt=>!Nt.when);this._defaultRowDef=xe[0]}_renderUpdatedColumns(){const xe=(Ci,Ii)=>Ci||!!Ii.getColumnsDiff(),Nt=this._rowDefs.reduce(xe,!1);Nt&&this._forceRenderDataRows();const qt=this._headerRowDefs.reduce(xe,!1);qt&&this._forceRenderHeaderRows();const mi=this._footerRowDefs.reduce(xe,!1);return mi&&this._forceRenderFooterRows(),Nt||qt||mi}_switchDataSource(xe){this._data=[],(0,I.Z9)(this.dataSource)&&this.dataSource.disconnect(this),this._renderChangeSubscription&&(this._renderChangeSubscription.unsubscribe(),this._renderChangeSubscription=null),xe||(this._dataDiffer&&this._dataDiffer.diff([]),this._rowOutlet.viewContainer.clear()),this._dataSource=xe}_observeRenderChanges(){if(!this.dataSource)return;let xe;(0,I.Z9)(this.dataSource)?xe=this.dataSource.connect(this):(0,w.b)(this.dataSource)?xe=this.dataSource:Array.isArray(this.dataSource)&&(xe=(0,O.of)(this.dataSource)),this._renderChangeSubscription=xe.pipe((0,E.R)(this._onDestroy)).subscribe(Nt=>{this._data=Nt||[],this.renderRows()})}_forceRenderHeaderRows(){this._headerRowOutlet.viewContainer.length>0&&this._headerRowOutlet.viewContainer.clear(),this._headerRowDefs.forEach((xe,Nt)=>this._renderRow(this._headerRowOutlet,xe,Nt)),this.updateStickyHeaderRowStyles()}_forceRenderFooterRows(){this._footerRowOutlet.viewContainer.length>0&&this._footerRowOutlet.viewContainer.clear(),this._footerRowDefs.forEach((xe,Nt)=>this._renderRow(this._footerRowOutlet,xe,Nt)),this.updateStickyFooterRowStyles()}_addStickyColumnStyles(xe,Nt){const qt=Array.from(Nt.columns||[]).map(Ii=>this._columnDefsByName.get(Ii)),mi=qt.map(Ii=>Ii.sticky),Ci=qt.map(Ii=>Ii.stickyEnd);this._stickyStyler.updateStickyColumns(xe,mi,Ci,!this._fixedLayout||this._forceRecalculateCellWidths)}_getRenderedRows(xe){const Nt=[];for(let qt=0;qt<xe.viewContainer.length;qt++){const mi=xe.viewContainer.get(qt);Nt.push(mi.rootNodes[0])}return Nt}_getRowDefs(xe,Nt){if(1==this._rowDefs.length)return[this._rowDefs[0]];let qt=[];if(this.multiTemplateDataRows)qt=this._rowDefs.filter(mi=>!mi.when||mi.when(Nt,xe));else{let mi=this._rowDefs.find(Ci=>Ci.when&&Ci.when(Nt,xe))||this._defaultRowDef;mi&&qt.push(mi)}return qt}_getEmbeddedViewArgs(xe,Nt){return{templateRef:xe.rowDef.template,context:{$implicit:xe.data},index:Nt}}_renderRow(xe,Nt,qt,mi={}){const Ci=xe.viewContainer.createEmbeddedView(Nt.template,mi,qt);return this._renderCellTemplateForItem(Nt,mi),Ci}_renderCellTemplateForItem(xe,Nt){for(let qt of this._getCellTemplates(xe))Fe.mostRecentCellOutlet&&Fe.mostRecentCellOutlet._viewContainer.createEmbeddedView(qt,Nt);this._changeDetectorRef.markForCheck()}_updateRowIndexContext(){const xe=this._rowOutlet.viewContainer;for(let Nt=0,qt=xe.length;Nt<qt;Nt++){const Ci=xe.get(Nt).context;Ci.count=qt,Ci.first=0===Nt,Ci.last=Nt===qt-1,Ci.even=Nt%2==0,Ci.odd=!Ci.even,this.multiTemplateDataRows?(Ci.dataIndex=this._renderRows[Nt].dataIndex,Ci.renderIndex=Nt):Ci.index=this._renderRows[Nt].dataIndex}}_getCellTemplates(xe){return xe&&xe.columns?Array.from(xe.columns,Nt=>{const qt=this._columnDefsByName.get(Nt);return xe.extractCellTemplate(qt)}):[]}_applyNativeTableSections(){const xe=this._document.createDocumentFragment(),Nt=[{tag:"thead",outlets:[this._headerRowOutlet]},{tag:"tbody",outlets:[this._rowOutlet,this._noDataRowOutlet]},{tag:"tfoot",outlets:[this._footerRowOutlet]}];for(const qt of Nt){const mi=this._document.createElement(qt.tag);mi.setAttribute("role","rowgroup");for(const Ci of qt.outlets)mi.appendChild(Ci.elementRef.nativeElement);xe.appendChild(mi)}this._elementRef.nativeElement.appendChild(xe)}_forceRenderDataRows(){this._dataDiffer.diff([]),this._rowOutlet.viewContainer.clear(),this.renderRows()}_checkStickyStates(){const xe=(Nt,qt)=>Nt||qt.hasStickyChanged();this._headerRowDefs.reduce(xe,!1)&&this.updateStickyHeaderRowStyles(),this._footerRowDefs.reduce(xe,!1)&&this.updateStickyFooterRowStyles(),Array.from(this._columnDefsByName.values()).reduce(xe,!1)&&(this._stickyColumnStylesNeedReset=!0,this.updateStickyColumnStyles())}_setupStickyStyler(){this._stickyStyler=new je(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,O.of)()).pipe((0,E.R)(this._onDestroy)).subscribe(Nt=>{this._stickyStyler.direction=Nt,this.updateStickyColumnStyles()})}_getOwnDefs(xe){return xe.filter(Nt=>!Nt._table||Nt._table===this)}_updateNoDataRow(){const xe=this._customNoDataRow||this._noDataRow;if(!xe)return;const Nt=0===this._rowOutlet.viewContainer.length;if(Nt===this._isShowingNoDataRow)return;const qt=this._noDataRowOutlet.viewContainer;if(Nt){const mi=qt.createEmbeddedView(xe.templateRef),Ci=mi.rootNodes[0];1===mi.rootNodes.length&&Ci?.nodeType===this._document.ELEMENT_NODE&&(Ci.setAttribute("role","row"),Ci.classList.add(xe._contentClassName))}else qt.clear();this._isShowingNoDataRow=Nt}}return qe.\u0275fac=function(xe){return new(xe||qe)(t.Y36(t.ZZ4),t.Y36(t.sBO),t.Y36(t.SBq),t.$8M("role"),t.Y36(e.Is,8),t.Y36(h.K0),t.Y36(s.t4),t.Y36(I.k),t.Y36(T),t.Y36(C.rL),t.Y36(ft,12),t.Y36(t.R0b,8))},qe.\u0275cmp=t.Xpm({type:qe,selectors:[["cdk-table"],["table","cdk-table",""]],contentQueries:function(xe,Nt,qt){if(1&xe&&(t.Suo(qt,ve,5),t.Suo(qt,A,5),t.Suo(qt,We,5),t.Suo(qt,V,5),t.Suo(qt,$e,5)),2&xe){let mi;t.iGM(mi=t.CRH())&&(Nt._noDataRow=mi.first),t.iGM(mi=t.CRH())&&(Nt._contentColumnDefs=mi),t.iGM(mi=t.CRH())&&(Nt._contentRowDefs=mi),t.iGM(mi=t.CRH())&&(Nt._contentHeaderRowDefs=mi),t.iGM(mi=t.CRH())&&(Nt._contentFooterRowDefs=mi)}},viewQuery:function(xe,Nt){if(1&xe&&(t.Gf(dt,7),t.Gf(Et,7),t.Gf(pt,7),t.Gf(ot,7)),2&xe){let qt;t.iGM(qt=t.CRH())&&(Nt._rowOutlet=qt.first),t.iGM(qt=t.CRH())&&(Nt._headerRowOutlet=qt.first),t.iGM(qt=t.CRH())&&(Nt._footerRowOutlet=qt.first),t.iGM(qt=t.CRH())&&(Nt._noDataRowOutlet=qt.first)}},hostAttrs:[1,"cdk-table"],hostVars:2,hostBindings:function(xe,Nt){2&xe&&t.ekj("cdk-table-fixed-layout",Nt.fixedLayout)},inputs:{trackBy:"trackBy",dataSource:"dataSource",multiTemplateDataRows:"multiTemplateDataRows",fixedLayout:"fixedLayout"},outputs:{contentChanged:"contentChanged"},exportAs:["cdkTable"],features:[t._Bn([{provide:ie,useExisting:qe},{provide:I.k,useClass:I.yy},{provide:T,useClass:L},{provide:ft,useValue:null}])],ngContentSelectors:U,decls:6,vars:0,consts:[["headerRowOutlet",""],["rowOutlet",""],["noDataRowOutlet",""],["footerRowOutlet",""]],template:function(xe,Nt){1&xe&&(t.F$t(z),t.Hsn(0),t.Hsn(1,1),t.GkF(2,0)(3,1)(4,2)(5,3))},dependencies:[dt,Et,pt,ot],styles:[".cdk-table-fixed-layout{table-layout:fixed}"],encapsulation:2}),qe})();function xt(qe,St){return qe.concat(Array.from(St))}let Tt=(()=>{class qe{}return qe.\u0275fac=function(xe){return new(xe||qe)},qe.\u0275mod=t.oAB({type:qe}),qe.\u0275inj=t.cJS({imports:[C.Cl]}),qe})();var Qe=p(3238),Ye=p(6451),Ht=p(9841),Mt=p(4004);const kt=[[["caption"]],[["colgroup"],["col"]]],_t=["caption","colgroup, col"];let He=(()=>{class qe extends Ke{constructor(){super(...arguments),this.stickyCssClass="mat-mdc-table-sticky",this.needsPositionStickyOnElement=!1}ngOnInit(){super.ngOnInit(),this._isNativeHtmlTable&&this._elementRef.nativeElement.querySelector("tbody").classList.add("mdc-data-table__content")}}return qe.\u0275fac=function(){let St;return function(Nt){return(St||(St=t.n5z(qe)))(Nt||qe)}}(),qe.\u0275cmp=t.Xpm({type:qe,selectors:[["mat-table"],["table","mat-table",""]],hostAttrs:[1,"mat-mdc-table","mdc-data-table__table"],hostVars:2,hostBindings:function(xe,Nt){2&xe&&t.ekj("mdc-table-fixed-layout",Nt.fixedLayout)},exportAs:["matTable"],features:[t._Bn([{provide:Ke,useExisting:qe},{provide:ie,useExisting:qe},{provide:T,useClass:L},{provide:I.k,useClass:I.yy},{provide:ft,useValue:null}]),t.qOj],ngContentSelectors:_t,decls:6,vars:0,consts:[["headerRowOutlet",""],["rowOutlet",""],["noDataRowOutlet",""],["footerRowOutlet",""]],template:function(xe,Nt){1&xe&&(t.F$t(kt),t.Hsn(0),t.Hsn(1,1),t.GkF(2,0)(3,1)(4,2)(5,3))},dependencies:[dt,Et,pt,ot],styles:[".mdc-data-table{border-radius:var(--mdc-shape-medium, 4px);border-width:1px;border-style:solid}.mdc-data-table .mdc-data-table__header-cell:first-child{border-top-left-radius:var(--mdc-shape-medium, 4px)}[dir=rtl] .mdc-data-table .mdc-data-table__header-cell:first-child,.mdc-data-table .mdc-data-table__header-cell:first-child[dir=rtl]{border-top-right-radius:var(--mdc-shape-medium, 4px);border-top-left-radius:0}.mdc-data-table .mdc-data-table__header-cell:last-child{border-top-right-radius:var(--mdc-shape-medium, 4px)}[dir=rtl] .mdc-data-table .mdc-data-table__header-cell:last-child,.mdc-data-table .mdc-data-table__header-cell:last-child[dir=rtl]{border-top-left-radius:var(--mdc-shape-medium, 4px);border-top-right-radius:0}.mdc-data-table.mdc-data-table--without-footer .mdc-data-table__row:last-child .mdc-data-table__cell:first-child{border-bottom-left-radius:var(--mdc-shape-medium, 4px)}[dir=rtl] .mdc-data-table.mdc-data-table--without-footer .mdc-data-table__row:last-child .mdc-data-table__cell:first-child,.mdc-data-table.mdc-data-table--without-footer .mdc-data-table__row:last-child .mdc-data-table__cell:first-child[dir=rtl]{border-bottom-right-radius:var(--mdc-shape-medium, 4px);border-bottom-left-radius:0}.mdc-data-table.mdc-data-table--without-footer .mdc-data-table__row:last-child .mdc-data-table__cell:last-child{border-bottom-right-radius:var(--mdc-shape-medium, 4px)}[dir=rtl] .mdc-data-table.mdc-data-table--without-footer .mdc-data-table__row:last-child .mdc-data-table__cell:last-child,.mdc-data-table.mdc-data-table--without-footer .mdc-data-table__row:last-child .mdc-data-table__cell:last-child[dir=rtl]{border-bottom-left-radius:var(--mdc-shape-medium, 4px);border-bottom-right-radius:0}.mdc-data-table__cell,.mdc-data-table__header-cell{border-bottom-width:1px;border-bottom-style:solid}.mdc-data-table__pagination{border-top-width:1px;border-top-style:solid}.mdc-data-table__row:last-child .mdc-data-table__cell{border-bottom:none}.mdc-data-table__row{height:52px}.mdc-data-table__pagination{min-height:52px}.mdc-data-table__header-row{height:56px}.mdc-data-table__cell,.mdc-data-table__header-cell{padding:0 16px 0 16px}.mdc-data-table__header-cell--checkbox,.mdc-data-table__cell--checkbox{padding-left:4px;padding-right:0}[dir=rtl] .mdc-data-table__header-cell--checkbox,[dir=rtl] .mdc-data-table__cell--checkbox,.mdc-data-table__header-cell--checkbox[dir=rtl],.mdc-data-table__cell--checkbox[dir=rtl]{padding-left:0;padding-right:4px}.mdc-data-table__cell{box-sizing:border-box;overflow:hidden;text-align:left;text-overflow:ellipsis}[dir=rtl] .mdc-data-table__cell,.mdc-data-table__cell[dir=rtl]{text-align:right}.mdc-data-table__cell--numeric{text-align:right}[dir=rtl] .mdc-data-table__cell--numeric,.mdc-data-table__cell--numeric[dir=rtl]{text-align:left}.mdc-data-table__cell--checkbox{width:1px}.mdc-data-table__header-cell{box-sizing:border-box;text-overflow:ellipsis;overflow:hidden;outline:none;text-align:left}[dir=rtl] .mdc-data-table__header-cell,.mdc-data-table__header-cell[dir=rtl]{text-align:right}.mdc-data-table__header-cell--checkbox{width:1px}.mdc-data-table__header-cell--numeric{text-align:right}[dir=rtl] .mdc-data-table__header-cell--numeric,.mdc-data-table__header-cell--numeric[dir=rtl]{text-align:left}.mdc-data-table__sort-icon-button{width:28px;height:28px;padding:2px;transform:rotate(0.0001deg);margin-left:4px;margin-right:0;opacity:0}.mdc-data-table__sort-icon-button .mdc-icon-button__focus-ring{max-height:28px;max-width:28px}.mdc-data-table__sort-icon-button.mdc-icon-button--reduced-size .mdc-icon-button__ripple{width:28px;height:28px;margin-top:0px;margin-bottom:0px;margin-right:0px;margin-left:0px}.mdc-data-table__sort-icon-button.mdc-icon-button--reduced-size .mdc-icon-button__focus-ring{max-height:28px;max-width:28px}.mdc-data-table__sort-icon-button .mdc-icon-button__touch{position:absolute;top:50%;height:28px;left:50%;width:28px;transform:translate(-50%, -50%)}[dir=rtl] .mdc-data-table__sort-icon-button,.mdc-data-table__sort-icon-button[dir=rtl]{margin-left:0;margin-right:4px}.mdc-data-table__header-cell--numeric .mdc-data-table__sort-icon-button{margin-left:0;margin-right:4px}[dir=rtl] .mdc-data-table__header-cell--numeric .mdc-data-table__sort-icon-button,.mdc-data-table__header-cell--numeric .mdc-data-table__sort-icon-button[dir=rtl]{margin-left:4px;margin-right:0}.mdc-data-table__header-cell--sorted-descending .mdc-data-table__sort-icon-button{transform:rotate(-180deg)}.mdc-data-table__sort-icon-button:focus,.mdc-data-table__header-cell:hover .mdc-data-table__sort-icon-button,.mdc-data-table__header-cell--sorted .mdc-data-table__sort-icon-button{opacity:1}.mdc-data-table__header-cell-wrapper{align-items:center;display:inline-flex;vertical-align:middle}.mdc-data-table__header-cell--with-sort{cursor:pointer}.mdc-data-table__sort-status-label{clip:rect(1px, 1px, 1px, 1px);height:1px;overflow:hidden;position:absolute;white-space:nowrap;width:1px}.mdc-data-table--sticky-header .mdc-data-table__header-cell{position:sticky;top:0;z-index:1}.mdc-data-table{-webkit-overflow-scrolling:touch;display:inline-flex;flex-direction:column;box-sizing:border-box;position:relative}.mdc-data-table__table-container{-webkit-overflow-scrolling:touch;overflow-x:auto;width:100%}.mdc-data-table__table{min-width:100%;border:0;white-space:nowrap;border-spacing:0;table-layout:fixed}.mdc-data-table__header-cell{box-sizing:border-box;text-overflow:ellipsis;overflow:hidden;outline:none;text-align:left}[dir=rtl] .mdc-data-table__header-cell,.mdc-data-table__header-cell[dir=rtl]{text-align:right}.mdc-data-table__header-cell--checkbox{width:1px}.mdc-data-table__header-cell--numeric{text-align:right}[dir=rtl] .mdc-data-table__header-cell--numeric,.mdc-data-table__header-cell--numeric[dir=rtl]{text-align:left}.mdc-data-table__sort-icon-button{width:28px;height:28px;padding:2px;transform:rotate(0.0001deg);margin-left:4px;margin-right:0;opacity:0}.mdc-data-table__sort-icon-button .mdc-icon-button__focus-ring{max-height:28px;max-width:28px}.mdc-data-table__sort-icon-button.mdc-icon-button--reduced-size .mdc-icon-button__ripple{width:28px;height:28px;margin-top:0px;margin-bottom:0px;margin-right:0px;margin-left:0px}.mdc-data-table__sort-icon-button.mdc-icon-button--reduced-size .mdc-icon-button__focus-ring{max-height:28px;max-width:28px}.mdc-data-table__sort-icon-button .mdc-icon-button__touch{position:absolute;top:50%;height:28px;left:50%;width:28px;transform:translate(-50%, -50%)}[dir=rtl] .mdc-data-table__sort-icon-button,.mdc-data-table__sort-icon-button[dir=rtl]{margin-left:0;margin-right:4px}.mdc-data-table__header-cell--numeric .mdc-data-table__sort-icon-button{margin-left:0;margin-right:4px}[dir=rtl] .mdc-data-table__header-cell--numeric .mdc-data-table__sort-icon-button,.mdc-data-table__header-cell--numeric .mdc-data-table__sort-icon-button[dir=rtl]{margin-left:4px;margin-right:0}.mdc-data-table__header-cell--sorted-descending .mdc-data-table__sort-icon-button{transform:rotate(-180deg)}.mdc-data-table__sort-icon-button:focus,.mdc-data-table__header-cell:hover .mdc-data-table__sort-icon-button,.mdc-data-table__header-cell--sorted .mdc-data-table__sort-icon-button{opacity:1}.mdc-data-table__header-cell-wrapper{align-items:center;display:inline-flex;vertical-align:middle}.mdc-data-table__header-cell--with-sort{cursor:pointer}.mdc-data-table__sort-status-label{clip:rect(1px, 1px, 1px, 1px);height:1px;overflow:hidden;position:absolute;white-space:nowrap;width:1px}.mdc-data-table__cell{box-sizing:border-box;overflow:hidden;text-align:left;text-overflow:ellipsis}[dir=rtl] .mdc-data-table__cell,.mdc-data-table__cell[dir=rtl]{text-align:right}.mdc-data-table__cell--numeric{text-align:right}[dir=rtl] .mdc-data-table__cell--numeric,.mdc-data-table__cell--numeric[dir=rtl]{text-align:left}.mdc-data-table__cell--checkbox{width:1px}.mdc-data-table__pagination{box-sizing:border-box;display:flex;justify-content:flex-end}.mdc-data-table__pagination-trailing{margin-left:4px;margin-right:0;align-items:center;display:flex;flex-wrap:wrap;justify-content:flex-end}[dir=rtl] .mdc-data-table__pagination-trailing,.mdc-data-table__pagination-trailing[dir=rtl]{margin-left:0;margin-right:4px}.mdc-data-table__pagination-navigation{align-items:center;display:flex}.mdc-data-table__pagination-button{margin-left:0;margin-right:4px}[dir=rtl] .mdc-data-table__pagination-button .mdc-button__icon,.mdc-data-table__pagination-button .mdc-button__icon[dir=rtl]{transform:rotate(180deg)}[dir=rtl] .mdc-data-table__pagination-button,.mdc-data-table__pagination-button[dir=rtl]{margin-left:4px;margin-right:0}.mdc-data-table__pagination-total{margin-left:14px;margin-right:36px;white-space:nowrap}[dir=rtl] .mdc-data-table__pagination-total,.mdc-data-table__pagination-total[dir=rtl]{margin-left:36px;margin-right:14px}.mdc-data-table__pagination-rows-per-page{margin-left:0;margin-right:22px;align-items:center;display:inline-flex}[dir=rtl] .mdc-data-table__pagination-rows-per-page,.mdc-data-table__pagination-rows-per-page[dir=rtl]{margin-left:22px;margin-right:0}.mdc-data-table__pagination-rows-per-page-label{margin-left:0;margin-right:12px;white-space:nowrap}[dir=rtl] .mdc-data-table__pagination-rows-per-page-label,.mdc-data-table__pagination-rows-per-page-label[dir=rtl]{margin-left:12px;margin-right:0}.mdc-data-table__pagination-rows-per-page-select{min-width:var(--mdc-menu-min-width, 80px);margin:8px 0}.mdc-data-table__pagination-rows-per-page-select .mdc-select__anchor{width:100%;min-width:80px}.mdc-data-table__pagination-rows-per-page-select .mdc-select__anchor{height:36px}.mdc-data-table__pagination-rows-per-page-select .mdc-select__anchor .mdc-floating-label--float-above{transform:translateY(-27.25px) scale(1)}.mdc-data-table__pagination-rows-per-page-select .mdc-select__anchor .mdc-floating-label--float-above{font-size:.75rem}.mdc-data-table__pagination-rows-per-page-select .mdc-select__anchor.mdc-notched-outline--upgraded .mdc-floating-label--float-above,.mdc-data-table__pagination-rows-per-page-select .mdc-select__anchor .mdc-notched-outline--upgraded .mdc-floating-label--float-above{transform:translateY(-24.75px) scale(0.75)}.mdc-data-table__pagination-rows-per-page-select .mdc-select__anchor.mdc-notched-outline--upgraded .mdc-floating-label--float-above,.mdc-data-table__pagination-rows-per-page-select .mdc-select__anchor .mdc-notched-outline--upgraded .mdc-floating-label--float-above{font-size:1rem}.mdc-data-table__pagination-rows-per-page-select .mdc-select__dropdown-icon{width:20px;height:20px}.mdc-data-table__pagination-rows-per-page-select.mdc-select--outlined .mdc-select__anchor :not(.mdc-notched-outline--notched) .mdc-notched-outline__notch{max-width:calc(100% - 56px)}.mdc-data-table__pagination-rows-per-page-select .mdc-list-item.mdc-list-item--with-one-line{height:36px}.mdc-data-table__progress-indicator{display:none;position:absolute;width:100%}.mdc-data-table--in-progress .mdc-data-table__progress-indicator{display:block}.mdc-data-table__scrim{background-color:var(--mdc-theme-surface, #fff);height:100%;opacity:.32;position:absolute;top:0;width:100%}mat-table{display:block}mat-header-row{min-height:56px}mat-row,mat-footer-row{min-height:48px}mat-row,mat-header-row,mat-footer-row{display:flex;border-width:0;border-bottom-width:1px;border-style:solid;align-items:center;box-sizing:border-box}mat-cell:first-of-type,mat-header-cell:first-of-type,mat-footer-cell:first-of-type{padding-left:24px}[dir=rtl] mat-cell:first-of-type:not(:only-of-type),[dir=rtl] mat-header-cell:first-of-type:not(:only-of-type),[dir=rtl] mat-footer-cell:first-of-type:not(:only-of-type){padding-left:0;padding-right:24px}mat-cell:last-of-type,mat-header-cell:last-of-type,mat-footer-cell:last-of-type{padding-right:24px}[dir=rtl] mat-cell:last-of-type:not(:only-of-type),[dir=rtl] mat-header-cell:last-of-type:not(:only-of-type),[dir=rtl] mat-footer-cell:last-of-type:not(:only-of-type){padding-right:0;padding-left:24px}mat-cell,mat-header-cell,mat-footer-cell{flex:1;display:flex;align-items:center;overflow:hidden;word-wrap:break-word;min-height:inherit}.mat-mdc-table-sticky{position:sticky !important}.mat-mdc-table{table-layout:auto;white-space:normal}mat-row.mat-mdc-row,mat-header-row.mat-mdc-header-row,mat-footer-row.mat-mdc-footer-row{border-bottom:none}.mat-mdc-table tbody,.mat-mdc-table tfoot,.mat-mdc-table thead,.mat-mdc-cell,.mat-mdc-footer-cell,.mat-mdc-header-row,.mat-mdc-row,.mat-mdc-footer-row,.mat-mdc-table .mat-mdc-header-cell{background:inherit}.mat-mdc-table .mat-mdc-row:hover,.mat-mdc-table .mat-mdc-footer-row:hover{background-color:inherit}.mat-mdc-table mat-header-row.mat-mdc-header-row,.mat-mdc-table mat-row.mat-mdc-row,.mat-mdc-table mat-footer-row.mat-mdc-footer-cell{height:unset}mat-header-cell.mat-mdc-header-cell,mat-cell.mat-mdc-cell,mat-footer-cell.mat-mdc-footer-cell{align-self:stretch}"],encapsulation:2}),qe})(),at=(()=>{class qe extends le{}return qe.\u0275fac=function(){let St;return function(Nt){return(St||(St=t.n5z(qe)))(Nt||qe)}}(),qe.\u0275dir=t.lG2({type:qe,selectors:[["","matCellDef",""]],features:[t._Bn([{provide:le,useExisting:qe}]),t.qOj]}),qe})(),ii=(()=>{class qe extends ne{}return qe.\u0275fac=function(){let St;return function(Nt){return(St||(St=t.n5z(qe)))(Nt||qe)}}(),qe.\u0275dir=t.lG2({type:qe,selectors:[["","matHeaderCellDef",""]],features:[t._Bn([{provide:ne,useExisting:qe}]),t.qOj]}),qe})(),Gt=(()=>{class qe extends de{}return qe.\u0275fac=function(){let St;return function(Nt){return(St||(St=t.n5z(qe)))(Nt||qe)}}(),qe.\u0275dir=t.lG2({type:qe,selectors:[["","matFooterCellDef",""]],features:[t._Bn([{provide:de,useExisting:qe}]),t.qOj]}),qe})(),ni=(()=>{class qe extends A{get name(){return this._name}set name(xe){this._setNameInput(xe)}_updateColumnCssClassName(){super._updateColumnCssClassName(),this._columnCssClassName.push(`mat-column-${this.cssClassFriendlyName}`)}}return qe.\u0275fac=function(){let St;return function(Nt){return(St||(St=t.n5z(qe)))(Nt||qe)}}(),qe.\u0275dir=t.lG2({type:qe,selectors:[["","matColumnDef",""]],inputs:{sticky:"sticky",name:["matColumnDef","name"]},features:[t._Bn([{provide:A,useExisting:qe},{provide:"MAT_SORT_HEADER_COLUMN_DEF",useExisting:qe}]),t.qOj]}),qe})(),ut=(()=>{class qe extends a{}return qe.\u0275fac=function(){let St;return function(Nt){return(St||(St=t.n5z(qe)))(Nt||qe)}}(),qe.\u0275dir=t.lG2({type:qe,selectors:[["mat-header-cell"],["th","mat-header-cell",""]],hostAttrs:["role","columnheader",1,"mat-mdc-header-cell","mdc-data-table__header-cell"],features:[t.qOj]}),qe})(),tt=(()=>{class qe extends u{}return qe.\u0275fac=function(){let St;return function(Nt){return(St||(St=t.n5z(qe)))(Nt||qe)}}(),qe.\u0275dir=t.lG2({type:qe,selectors:[["mat-footer-cell"],["td","mat-footer-cell",""]],hostAttrs:[1,"mat-mdc-footer-cell","mdc-data-table__cell"],features:[t.qOj]}),qe})(),vt=(()=>{class qe extends l{}return qe.\u0275fac=function(){let St;return function(Nt){return(St||(St=t.n5z(qe)))(Nt||qe)}}(),qe.\u0275dir=t.lG2({type:qe,selectors:[["mat-cell"],["td","mat-cell",""]],hostAttrs:[1,"mat-mdc-cell","mdc-data-table__cell"],features:[t.qOj]}),qe})(),ti=(()=>{class qe extends V{}return qe.\u0275fac=function(){let St;return function(Nt){return(St||(St=t.n5z(qe)))(Nt||qe)}}(),qe.\u0275dir=t.lG2({type:qe,selectors:[["","matHeaderRowDef",""]],inputs:{columns:["matHeaderRowDef","columns"],sticky:["matHeaderRowDefSticky","sticky"]},features:[t._Bn([{provide:V,useExisting:qe}]),t.qOj]}),qe})(),Ut=(()=>{class qe extends $e{}return qe.\u0275fac=function(){let St;return function(Nt){return(St||(St=t.n5z(qe)))(Nt||qe)}}(),qe.\u0275dir=t.lG2({type:qe,selectors:[["","matFooterRowDef",""]],inputs:{columns:["matFooterRowDef","columns"],sticky:["matFooterRowDefSticky","sticky"]},features:[t._Bn([{provide:$e,useExisting:qe}]),t.qOj]}),qe})(),ht=(()=>{class qe extends We{}return qe.\u0275fac=function(){let St;return function(Nt){return(St||(St=t.n5z(qe)))(Nt||qe)}}(),qe.\u0275dir=t.lG2({type:qe,selectors:[["","matRowDef",""]],inputs:{columns:["matRowDefColumns","columns"],when:["matRowDefWhen","when"]},features:[t._Bn([{provide:We,useExisting:qe}]),t.qOj]}),qe})(),Rt=(()=>{class qe extends De{}return qe.\u0275fac=function(){let St;return function(Nt){return(St||(St=t.n5z(qe)))(Nt||qe)}}(),qe.\u0275cmp=t.Xpm({type:qe,selectors:[["mat-header-row"],["tr","mat-header-row",""]],hostAttrs:["role","row",1,"mat-mdc-header-row","mdc-data-table__header-row"],exportAs:["matHeaderRow"],features:[t._Bn([{provide:De,useExisting:qe}]),t.qOj],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(xe,Nt){1&xe&&t.GkF(0,0)},dependencies:[Fe],encapsulation:2}),qe})(),Oe=(()=>{class qe extends ye{}return qe.\u0275fac=function(){let St;return function(Nt){return(St||(St=t.n5z(qe)))(Nt||qe)}}(),qe.\u0275cmp=t.Xpm({type:qe,selectors:[["mat-footer-row"],["tr","mat-footer-row",""]],hostAttrs:["role","row",1,"mat-mdc-footer-row","mdc-data-table__row"],exportAs:["matFooterRow"],features:[t._Bn([{provide:ye,useExisting:qe}]),t.qOj],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(xe,Nt){1&xe&&t.GkF(0,0)},dependencies:[Fe],encapsulation:2}),qe})(),et=(()=>{class qe extends ce{}return qe.\u0275fac=function(){let St;return function(Nt){return(St||(St=t.n5z(qe)))(Nt||qe)}}(),qe.\u0275cmp=t.Xpm({type:qe,selectors:[["mat-row"],["tr","mat-row",""]],hostAttrs:["role","row",1,"mat-mdc-row","mdc-data-table__row"],exportAs:["matRow"],features:[t._Bn([{provide:ce,useExisting:qe}]),t.qOj],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(xe,Nt){1&xe&&t.GkF(0,0)},dependencies:[Fe],encapsulation:2}),qe})(),pi=(()=>{class qe{}return qe.\u0275fac=function(xe){return new(xe||qe)},qe.\u0275mod=t.oAB({type:qe}),qe.\u0275inj=t.cJS({imports:[Qe.BQ,Tt,Qe.BQ]}),qe})();class xi extends I.o2{get data(){return this._data.value}set data(St){St=Array.isArray(St)?St:[],this._data.next(St),this._renderChangesSubscription||this._filterData(St)}get filter(){return this._filter.value}set filter(St){this._filter.next(St),this._renderChangesSubscription||this._filterData(this.data)}get sort(){return this._sort}set sort(St){this._sort=St,this._updateChangeSubscription()}get paginator(){return this._paginator}set paginator(St){this._paginator=St,this._updateChangeSubscription()}constructor(St=[]){super(),this._renderData=new S.X([]),this._filter=new S.X(""),this._internalPageChanges=new P.x,this._renderChangesSubscription=null,this.sortingDataAccessor=(xe,Nt)=>{const qt=xe[Nt];if((0,b.t6)(qt)){const mi=Number(qt);return mi<9007199254740991?mi:qt}return qt},this.sortData=(xe,Nt)=>{const qt=Nt.active,mi=Nt.direction;return qt&&""!=mi?xe.sort((Ci,Ii)=>{let Gi=this.sortingDataAccessor(Ci,qt),Yi=this.sortingDataAccessor(Ii,qt);const Ji=typeof Gi,Wt=typeof Yi;Ji!==Wt&&("number"===Ji&&(Gi+=""),"number"===Wt&&(Yi+=""));let Jt=0;return null!=Gi&&null!=Yi?Gi>Yi?Jt=1:Gi<Yi&&(Jt=-1):null!=Gi?Jt=1:null!=Yi&&(Jt=-1),Jt*("asc"==mi?1:-1)}):xe},this.filterPredicate=(xe,Nt)=>{const qt=Object.keys(xe).reduce((Ci,Ii)=>Ci+xe[Ii]+"\u25ec","").toLowerCase(),mi=Nt.trim().toLowerCase();return-1!=qt.indexOf(mi)},this._data=new S.X(St),this._updateChangeSubscription()}_updateChangeSubscription(){const St=this._sort?(0,Ye.T)(this._sort.sortChange,this._sort.initialized):(0,O.of)(null),xe=this._paginator?(0,Ye.T)(this._paginator.page,this._internalPageChanges,this._paginator.initialized):(0,O.of)(null),qt=(0,Ht.a)([this._data,this._filter]).pipe((0,Mt.U)(([Ii])=>this._filterData(Ii))),mi=(0,Ht.a)([qt,St]).pipe((0,Mt.U)(([Ii])=>this._orderData(Ii))),Ci=(0,Ht.a)([mi,xe]).pipe((0,Mt.U)(([Ii])=>this._pageData(Ii)));this._renderChangesSubscription?.unsubscribe(),this._renderChangesSubscription=Ci.subscribe(Ii=>this._renderData.next(Ii))}_filterData(St){return this.filteredData=null==this.filter||""===this.filter?St:St.filter(xe=>this.filterPredicate(xe,this.filter)),this.paginator&&this._updatePaginator(this.filteredData.length),this.filteredData}_orderData(St){return this.sort?this.sortData(St.slice(),this.sort):St}_pageData(St){if(!this.paginator)return St;const xe=this.paginator.pageIndex*this.paginator.pageSize;return St.slice(xe,xe+this.paginator.pageSize)}_updatePaginator(St){Promise.resolve().then(()=>{const xe=this.paginator;if(xe&&(xe.length=St,xe.pageIndex>0)){const Nt=Math.ceil(xe.length/xe.pageSize)-1||0,qt=Math.min(xe.pageIndex,Nt);qt!==xe.pageIndex&&(xe.pageIndex=qt,this._internalPageChanges.next())}})}connect(){return this._renderChangesSubscription||this._updateChangeSubscription(),this._renderData}disconnect(){this._renderChangesSubscription?.unsubscribe(),this._renderChangesSubscription=null}}class Fi extends xi{}},3848:(Ve,q,p)=>{"use strict";p.d(q,{BU:()=>ti,Nh:()=>Rt,Nj:()=>Ut,SP:()=>at,sW:()=>ht,uD:()=>Be,uX:()=>Re});var t=p(6895),e=p(4650),b=p(3238),I=p(4080),s=p(9643),C=p(4761),h=p(445),P=p(727),d=p(7579),S=p(4968),w=p(9646),O=p(6451),E=p(515),R=p(9751),z=p(2805),U=p(1135),W=p(8675),K=p(1884),ee=p(2722),ie=p(5698),ue=p(3900),le=p(5684),ne=p(9300),de=p(7340),$=p(1281),me=p(531),A=p(3353),i=p(9521);function a(Oe,et){}const u=function(Oe){return{animationDuration:Oe}},l=function(Oe,et){return{value:Oe,params:et}};function y(Oe,et){1&Oe&&e.Hsn(0)}const T=["*"],L=["tabListContainer"],m=["tabList"],n=["tabListInner"],_=["nextPaginator"],B=["previousPaginator"],V=["tabBodyWrapper"],X=["tabHeader"];function Le(Oe,et){}function $e(Oe,et){if(1&Oe&&e.YNc(0,Le,0,0,"ng-template",14),2&Oe){const it=e.oxw().$implicit;e.Q6J("cdkPortalOutlet",it.templateLabel)}}function We(Oe,et){if(1&Oe&&e._uU(0),2&Oe){const it=e.oxw().$implicit;e.Oqu(it.textLabel)}}function Fe(Oe,et){if(1&Oe){const it=e.EpF();e.TgZ(0,"div",6,7),e.NdJ("click",function(){const Dt=e.CHM(it),pi=Dt.$implicit,Li=Dt.index,xi=e.oxw(),Fi=e.MAs(1);return e.KtG(xi._handleClick(pi,Fi,Li))})("cdkFocusChange",function(Dt){const Li=e.CHM(it).index,xi=e.oxw();return e.KtG(xi._tabFocusChanged(Dt,Li))}),e._UZ(2,"span",8)(3,"div",9),e.TgZ(4,"span",10)(5,"span",11),e.YNc(6,$e,1,1,"ng-template",12),e.YNc(7,We,1,1,"ng-template",null,13,e.W1O),e.qZA()()()}if(2&Oe){const it=et.$implicit,ct=et.index,Dt=e.MAs(1),pi=e.MAs(8),Li=e.oxw();e.ekj("mdc-tab--active",Li.selectedIndex===ct),e.Q6J("id",Li._getTabLabelId(ct))("ngClass",it.labelClass)("disabled",it.disabled)("fitInkBarToContent",Li.fitInkBarToContent),e.uIk("tabIndex",Li._getTabIndex(ct))("aria-posinset",ct+1)("aria-setsize",Li._tabs.length)("aria-controls",Li._getTabContentId(ct))("aria-selected",Li.selectedIndex===ct)("aria-label",it.ariaLabel||null)("aria-labelledby",!it.ariaLabel&&it.ariaLabelledby?it.ariaLabelledby:null),e.xp6(3),e.Q6J("matRippleTrigger",Dt)("matRippleDisabled",it.disabled||Li.disableRipple),e.xp6(3),e.Q6J("ngIf",it.templateLabel)("ngIfElse",pi)}}function De(Oe,et){if(1&Oe){const it=e.EpF();e.TgZ(0,"mat-tab-body",15),e.NdJ("_onCentered",function(){e.CHM(it);const Dt=e.oxw();return e.KtG(Dt._removeTabBodyWrapperHeight())})("_onCentering",function(Dt){e.CHM(it);const pi=e.oxw();return e.KtG(pi._setTabBodyWrapperHeight(Dt))}),e.qZA()}if(2&Oe){const it=et.$implicit,ct=et.index,Dt=e.oxw();e.ekj("mat-mdc-tab-body-active",Dt.selectedIndex===ct),e.Q6J("id",Dt._getTabContentId(ct))("ngClass",it.bodyClass)("content",it.content)("position",it.position)("origin",it.origin)("animationDuration",Dt.animationDuration)("preserveContent",Dt.preserveContent),e.uIk("tabindex",null!=Dt.contentTabIndex&&Dt.selectedIndex===ct?Dt.contentTabIndex:null)("aria-labelledby",Dt._getTabLabelId(ct))}}const ye=["mat-tab-nav-bar",""],ce=["mat-tab-link",""],ve={translateTab:(0,de.X$)("translateTab",[(0,de.SB)("center, void, left-origin-center, right-origin-center",(0,de.oB)({transform:"none"})),(0,de.SB)("left",(0,de.oB)({transform:"translate3d(-100%, 0, 0)",minHeight:"1px",visibility:"hidden"})),(0,de.SB)("right",(0,de.oB)({transform:"translate3d(100%, 0, 0)",minHeight:"1px",visibility:"hidden"})),(0,de.eR)("* => left, * => right, left => center, right => center",(0,de.jt)("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")),(0,de.eR)("void => left-origin-center",[(0,de.oB)({transform:"translate3d(-100%, 0, 0)",visibility:"hidden"}),(0,de.jt)("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")]),(0,de.eR)("void => right-origin-center",[(0,de.oB)({transform:"translate3d(100%, 0, 0)",visibility:"hidden"}),(0,de.jt)("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")])])};let oe=(()=>{class Oe extends I.Pl{constructor(it,ct,Dt,pi){super(it,ct,pi),this._host=Dt,this._centeringSub=P.w0.EMPTY,this._leavingSub=P.w0.EMPTY}ngOnInit(){super.ngOnInit(),this._centeringSub=this._host._beforeCentering.pipe((0,W.O)(this._host._isCenterPosition(this._host._position))).subscribe(it=>{it&&!this.hasAttached()&&this.attach(this._host._content)}),this._leavingSub=this._host._afterLeavingCenter.subscribe(()=>{this._host.preserveContent||this.detach()})}ngOnDestroy(){super.ngOnDestroy(),this._centeringSub.unsubscribe(),this._leavingSub.unsubscribe()}}return Oe.\u0275fac=function(it){return new(it||Oe)(e.Y36(e._Vd),e.Y36(e.s_b),e.Y36((0,e.Gpc)(()=>Ae)),e.Y36(t.K0))},Oe.\u0275dir=e.lG2({type:Oe,selectors:[["","matTabBodyHost",""]],features:[e.qOj]}),Oe})(),je=(()=>{class Oe{set position(it){this._positionIndex=it,this._computePositionAnimationState()}constructor(it,ct,Dt){this._elementRef=it,this._dir=ct,this._dirChangeSubscription=P.w0.EMPTY,this._translateTabComplete=new d.x,this._onCentering=new e.vpe,this._beforeCentering=new e.vpe,this._afterLeavingCenter=new e.vpe,this._onCentered=new e.vpe(!0),this.animationDuration="500ms",this.preserveContent=!1,ct&&(this._dirChangeSubscription=ct.change.subscribe(pi=>{this._computePositionAnimationState(pi),Dt.markForCheck()})),this._translateTabComplete.pipe((0,K.x)((pi,Li)=>pi.fromState===Li.fromState&&pi.toState===Li.toState)).subscribe(pi=>{this._isCenterPosition(pi.toState)&&this._isCenterPosition(this._position)&&this._onCentered.emit(),this._isCenterPosition(pi.fromState)&&!this._isCenterPosition(this._position)&&this._afterLeavingCenter.emit()})}ngOnInit(){"center"==this._position&&null!=this.origin&&(this._position=this._computePositionFromOrigin(this.origin))}ngOnDestroy(){this._dirChangeSubscription.unsubscribe(),this._translateTabComplete.complete()}_onTranslateTabStarted(it){const ct=this._isCenterPosition(it.toState);this._beforeCentering.emit(ct),ct&&this._onCentering.emit(this._elementRef.nativeElement.clientHeight)}_getLayoutDirection(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"}_isCenterPosition(it){return"center"==it||"left-origin-center"==it||"right-origin-center"==it}_computePositionAnimationState(it=this._getLayoutDirection()){this._position=this._positionIndex<0?"ltr"==it?"left":"right":this._positionIndex>0?"ltr"==it?"right":"left":"center"}_computePositionFromOrigin(it){const ct=this._getLayoutDirection();return"ltr"==ct&&it<=0||"rtl"==ct&&it>0?"left-origin-center":"right-origin-center"}}return Oe.\u0275fac=function(it){return new(it||Oe)(e.Y36(e.SBq),e.Y36(h.Is,8),e.Y36(e.sBO))},Oe.\u0275dir=e.lG2({type:Oe,inputs:{_content:["content","_content"],origin:"origin",animationDuration:"animationDuration",preserveContent:"preserveContent",position:"position"},outputs:{_onCentering:"_onCentering",_beforeCentering:"_beforeCentering",_afterLeavingCenter:"_afterLeavingCenter",_onCentered:"_onCentered"}}),Oe})(),Ae=(()=>{class Oe extends je{constructor(it,ct,Dt){super(it,ct,Dt)}}return Oe.\u0275fac=function(it){return new(it||Oe)(e.Y36(e.SBq),e.Y36(h.Is,8),e.Y36(e.sBO))},Oe.\u0275cmp=e.Xpm({type:Oe,selectors:[["mat-tab-body"]],viewQuery:function(it,ct){if(1&it&&e.Gf(I.Pl,5),2&it){let Dt;e.iGM(Dt=e.CRH())&&(ct._portalHost=Dt.first)}},hostAttrs:[1,"mat-mdc-tab-body"],features:[e.qOj],decls:3,vars:6,consts:[["cdkScrollable","",1,"mat-mdc-tab-body-content"],["content",""],["matTabBodyHost",""]],template:function(it,ct){1&it&&(e.TgZ(0,"div",0,1),e.NdJ("@translateTab.start",function(pi){return ct._onTranslateTabStarted(pi)})("@translateTab.done",function(pi){return ct._translateTabComplete.next(pi)}),e.YNc(2,a,0,0,"ng-template",2),e.qZA()),2&it&&e.Q6J("@translateTab",e.WLB(3,l,ct._position,e.VKq(1,u,ct.animationDuration)))},dependencies:[oe],styles:['.mat-mdc-tab-body{top:0;left:0;right:0;bottom:0;position:absolute;display:block;overflow:hidden;outline:0;flex-basis:100%}.mat-mdc-tab-body.mat-mdc-tab-body-active{position:relative;overflow-x:hidden;overflow-y:auto;z-index:1;flex-grow:1}.mat-mdc-tab-group.mat-mdc-tab-group-dynamic-height .mat-mdc-tab-body.mat-mdc-tab-body-active{overflow-y:hidden}.mat-mdc-tab-body-content{height:100%;overflow:auto}.mat-mdc-tab-group-dynamic-height .mat-mdc-tab-body-content{overflow:hidden}.mat-mdc-tab-body-content[style*="visibility: hidden"]{display:none}'],encapsulation:2,data:{animation:[ve.translateTab]}}),Oe})();const he=new e.OlP("MatTabContent");let Ce=(()=>{class Oe{constructor(it){this.template=it}}return Oe.\u0275fac=function(it){return new(it||Oe)(e.Y36(e.Rgc))},Oe.\u0275dir=e.lG2({type:Oe,selectors:[["","matTabContent",""]],features:[e._Bn([{provide:he,useExisting:Oe}])]}),Oe})();const te=new e.OlP("MatTabLabel"),Ue=new e.OlP("MAT_TAB");let Be=(()=>{class Oe extends I.ig{constructor(it,ct,Dt){super(it,ct),this._closestTab=Dt}}return Oe.\u0275fac=function(it){return new(it||Oe)(e.Y36(e.Rgc),e.Y36(e.s_b),e.Y36(Ue,8))},Oe.\u0275dir=e.lG2({type:Oe,selectors:[["","mat-tab-label",""],["","matTabLabel",""]],features:[e._Bn([{provide:te,useExisting:Oe}]),e.qOj]}),Oe})();const ae="mdc-tab-indicator--active",ge="mdc-tab-indicator--no-transition";class ft{constructor(et){this._items=et}hide(){this._items.forEach(et=>et.deactivateInkBar())}alignToElement(et){const it=this._items.find(Dt=>Dt.elementRef.nativeElement===et),ct=this._currentItem;if(ct?.deactivateInkBar(),it){const Dt=ct?.elementRef.nativeElement.getBoundingClientRect?.();it.activateInkBar(Dt),this._currentItem=it}}}function Je(Oe){return class extends Oe{constructor(...et){super(...et),this._fitToContent=!1}get fitInkBarToContent(){return this._fitToContent}set fitInkBarToContent(et){const it=(0,$.Ig)(et);this._fitToContent!==it&&(this._fitToContent=it,this._inkBarElement&&this._appendInkBarElement())}activateInkBar(et){const it=this.elementRef.nativeElement;if(!et||!it.getBoundingClientRect||!this._inkBarContentElement)return void it.classList.add(ae);const ct=it.getBoundingClientRect(),Dt=et.width/ct.width,pi=et.left-ct.left;it.classList.add(ge),this._inkBarContentElement.style.setProperty("transform",`translateX(${pi}px) scaleX(${Dt})`),it.getBoundingClientRect(),it.classList.remove(ge),it.classList.add(ae),this._inkBarContentElement.style.setProperty("transform","")}deactivateInkBar(){this.elementRef.nativeElement.classList.remove(ae)}ngOnInit(){this._createInkBarElement()}ngOnDestroy(){this._inkBarElement?.remove(),this._inkBarElement=this._inkBarContentElement=null}_createInkBarElement(){const et=this.elementRef.nativeElement.ownerDocument||document;this._inkBarElement=et.createElement("span"),this._inkBarContentElement=et.createElement("span"),this._inkBarElement.className="mdc-tab-indicator",this._inkBarContentElement.className="mdc-tab-indicator__content mdc-tab-indicator__content--underline",this._inkBarElement.appendChild(this._inkBarContentElement),this._appendInkBarElement()}_appendInkBarElement(){(this._fitToContent?this.elementRef.nativeElement.querySelector(".mdc-tab__content"):this.elementRef.nativeElement).appendChild(this._inkBarElement)}}}const pt=(0,b.Id)(class{}),wt=Je((()=>{class Oe extends pt{constructor(it){super(),this.elementRef=it}focus(){this.elementRef.nativeElement.focus()}getOffsetLeft(){return this.elementRef.nativeElement.offsetLeft}getOffsetWidth(){return this.elementRef.nativeElement.offsetWidth}}return Oe.\u0275fac=function(it){return new(it||Oe)(e.Y36(e.SBq))},Oe.\u0275dir=e.lG2({type:Oe,features:[e.qOj]}),Oe})());let ke=(()=>{class Oe extends wt{}return Oe.\u0275fac=function(){let et;return function(ct){return(et||(et=e.n5z(Oe)))(ct||Oe)}}(),Oe.\u0275dir=e.lG2({type:Oe,selectors:[["","matTabLabelWrapper",""]],hostVars:3,hostBindings:function(it,ct){2&it&&(e.uIk("aria-disabled",!!ct.disabled),e.ekj("mat-mdc-tab-disabled",ct.disabled))},inputs:{disabled:"disabled",fitInkBarToContent:"fitInkBarToContent"},features:[e.qOj]}),Oe})();const Ke=(0,b.Id)(class{}),xt=new e.OlP("MAT_TAB_GROUP");let Y=(()=>{class Oe extends Ke{get content(){return this._contentPortal}constructor(it,ct){super(),this._viewContainerRef=it,this._closestTabGroup=ct,this.textLabel="",this._contentPortal=null,this._stateChanges=new d.x,this.position=null,this.origin=null,this.isActive=!1}ngOnChanges(it){(it.hasOwnProperty("textLabel")||it.hasOwnProperty("disabled"))&&this._stateChanges.next()}ngOnDestroy(){this._stateChanges.complete()}ngOnInit(){this._contentPortal=new I.UE(this._explicitContent||this._implicitContent,this._viewContainerRef)}_setTemplateLabelInput(it){it&&it._closestTab===this&&(this._templateLabel=it)}}return Oe.\u0275fac=function(it){return new(it||Oe)(e.Y36(e.s_b),e.Y36(xt,8))},Oe.\u0275dir=e.lG2({type:Oe,viewQuery:function(it,ct){if(1&it&&e.Gf(e.Rgc,7),2&it){let Dt;e.iGM(Dt=e.CRH())&&(ct._implicitContent=Dt.first)}},inputs:{textLabel:["label","textLabel"],ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],labelClass:"labelClass",bodyClass:"bodyClass"},features:[e.qOj,e.TTD]}),Oe})(),Re=(()=>{class Oe extends Y{get templateLabel(){return this._templateLabel}set templateLabel(it){this._setTemplateLabelInput(it)}}return Oe.\u0275fac=function(){let et;return function(ct){return(et||(et=e.n5z(Oe)))(ct||Oe)}}(),Oe.\u0275cmp=e.Xpm({type:Oe,selectors:[["mat-tab"]],contentQueries:function(it,ct,Dt){if(1&it&&(e.Suo(Dt,Ce,7,e.Rgc),e.Suo(Dt,Be,5)),2&it){let pi;e.iGM(pi=e.CRH())&&(ct._explicitContent=pi.first),e.iGM(pi=e.CRH())&&(ct.templateLabel=pi.first)}},inputs:{disabled:"disabled"},exportAs:["matTab"],features:[e._Bn([{provide:Ue,useExisting:Oe}]),e.qOj],ngContentSelectors:T,decls:1,vars:0,template:function(it,ct){1&it&&(e.F$t(),e.YNc(0,y,1,0,"ng-template"))},encapsulation:2}),Oe})();const Tt=(0,A.i$)({passive:!0});let Mt=(()=>{class Oe{get disablePagination(){return this._disablePagination}set disablePagination(it){this._disablePagination=(0,$.Ig)(it)}get selectedIndex(){return this._selectedIndex}set selectedIndex(it){it=(0,$.su)(it),this._selectedIndex!=it&&(this._selectedIndexChanged=!0,this._selectedIndex=it,this._keyManager&&this._keyManager.updateActiveItem(it))}constructor(it,ct,Dt,pi,Li,xi,Fi){this._elementRef=it,this._changeDetectorRef=ct,this._viewportRuler=Dt,this._dir=pi,this._ngZone=Li,this._platform=xi,this._animationMode=Fi,this._scrollDistance=0,this._selectedIndexChanged=!1,this._destroyed=new d.x,this._showPaginationControls=!1,this._disableScrollAfter=!0,this._disableScrollBefore=!0,this._stopScrolling=new d.x,this._disablePagination=!1,this._selectedIndex=0,this.selectFocusedIndex=new e.vpe,this.indexFocused=new e.vpe,Li.runOutsideAngular(()=>{(0,S.R)(it.nativeElement,"mouseleave").pipe((0,ee.R)(this._destroyed)).subscribe(()=>{this._stopInterval()})})}ngAfterViewInit(){(0,S.R)(this._previousPaginator.nativeElement,"touchstart",Tt).pipe((0,ee.R)(this._destroyed)).subscribe(()=>{this._handlePaginatorPress("before")}),(0,S.R)(this._nextPaginator.nativeElement,"touchstart",Tt).pipe((0,ee.R)(this._destroyed)).subscribe(()=>{this._handlePaginatorPress("after")})}ngAfterContentInit(){const it=this._dir?this._dir.change:(0,w.of)("ltr"),ct=this._viewportRuler.change(150),Dt=()=>{this.updatePagination(),this._alignInkBarToSelectedTab()};this._keyManager=new C.Em(this._items).withHorizontalOrientation(this._getLayoutDirection()).withHomeAndEnd().withWrap().skipPredicate(()=>!1),this._keyManager.updateActiveItem(this._selectedIndex),this._ngZone.onStable.pipe((0,ie.q)(1)).subscribe(Dt),(0,O.T)(it,ct,this._items.changes,this._itemsResized()).pipe((0,ee.R)(this._destroyed)).subscribe(()=>{this._ngZone.run(()=>{Promise.resolve().then(()=>{this._scrollDistance=Math.max(0,Math.min(this._getMaxScrollDistance(),this._scrollDistance)),Dt()})}),this._keyManager.withHorizontalOrientation(this._getLayoutDirection())}),this._keyManager.change.subscribe(pi=>{this.indexFocused.emit(pi),this._setTabFocus(pi)})}_itemsResized(){return"function"!=typeof ResizeObserver?E.E:this._items.changes.pipe((0,W.O)(this._items),(0,ue.w)(it=>new R.y(ct=>this._ngZone.runOutsideAngular(()=>{const Dt=new ResizeObserver(pi=>ct.next(pi));return it.forEach(pi=>Dt.observe(pi.elementRef.nativeElement)),()=>{Dt.disconnect()}}))),(0,le.T)(1),(0,ne.h)(it=>it.some(ct=>ct.contentRect.width>0&&ct.contentRect.height>0)))}ngAfterContentChecked(){this._tabLabelCount!=this._items.length&&(this.updatePagination(),this._tabLabelCount=this._items.length,this._changeDetectorRef.markForCheck()),this._selectedIndexChanged&&(this._scrollToLabel(this._selectedIndex),this._checkScrollingControls(),this._alignInkBarToSelectedTab(),this._selectedIndexChanged=!1,this._changeDetectorRef.markForCheck()),this._scrollDistanceChanged&&(this._updateTabScrollPosition(),this._scrollDistanceChanged=!1,this._changeDetectorRef.markForCheck())}ngOnDestroy(){this._keyManager?.destroy(),this._destroyed.next(),this._destroyed.complete(),this._stopScrolling.complete()}_handleKeydown(it){if(!(0,i.Vb)(it))switch(it.keyCode){case i.K5:case i.L_:if(this.focusIndex!==this.selectedIndex){const ct=this._items.get(this.focusIndex);ct&&!ct.disabled&&(this.selectFocusedIndex.emit(this.focusIndex),this._itemSelected(it))}break;default:this._keyManager.onKeydown(it)}}_onContentChanges(){const it=this._elementRef.nativeElement.textContent;it!==this._currentTextContent&&(this._currentTextContent=it||"",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(it){!this._isValidIndex(it)||this.focusIndex===it||!this._keyManager||this._keyManager.setActiveItem(it)}_isValidIndex(it){return!this._items||!!this._items.toArray()[it]}_setTabFocus(it){if(this._showPaginationControls&&this._scrollToLabel(it),this._items&&this._items.length){this._items.toArray()[it].focus();const ct=this._tabListContainer.nativeElement;ct.scrollLeft="ltr"==this._getLayoutDirection()?0:ct.scrollWidth-ct.offsetWidth}}_getLayoutDirection(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"}_updateTabScrollPosition(){if(this.disablePagination)return;const it=this.scrollDistance,ct="ltr"===this._getLayoutDirection()?-it:it;this._tabList.nativeElement.style.transform=`translateX(${Math.round(ct)}px)`,(this._platform.TRIDENT||this._platform.EDGE)&&(this._tabListContainer.nativeElement.scrollLeft=0)}get scrollDistance(){return this._scrollDistance}set scrollDistance(it){this._scrollTo(it)}_scrollHeader(it){return this._scrollTo(this._scrollDistance+("before"==it?-1:1)*this._tabListContainer.nativeElement.offsetWidth/3)}_handlePaginatorClick(it){this._stopInterval(),this._scrollHeader(it)}_scrollToLabel(it){if(this.disablePagination)return;const ct=this._items?this._items.toArray()[it]:null;if(!ct)return;const Dt=this._tabListContainer.nativeElement.offsetWidth,{offsetLeft:pi,offsetWidth:Li}=ct.elementRef.nativeElement;let xi,Fi;"ltr"==this._getLayoutDirection()?(xi=pi,Fi=xi+Li):(Fi=this._tabListInner.nativeElement.offsetWidth-pi,xi=Fi-Li);const qe=this.scrollDistance,St=this.scrollDistance+Dt;xi<qe?this.scrollDistance-=qe-xi+60:Fi>St&&(this.scrollDistance+=Fi-St+60)}_checkPaginationEnabled(){if(this.disablePagination)this._showPaginationControls=!1;else{const it=this._tabListInner.nativeElement.scrollWidth>this._elementRef.nativeElement.offsetWidth;it||(this.scrollDistance=0),it!==this._showPaginationControls&&this._changeDetectorRef.markForCheck(),this._showPaginationControls=it}}_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 it=this._items&&this._items.length?this._items.toArray()[this.selectedIndex]:null,ct=it?it.elementRef.nativeElement:null;ct?this._inkBar.alignToElement(ct):this._inkBar.hide()}_stopInterval(){this._stopScrolling.next()}_handlePaginatorPress(it,ct){ct&&null!=ct.button&&0!==ct.button||(this._stopInterval(),(0,z.H)(650,100).pipe((0,ee.R)((0,O.T)(this._stopScrolling,this._destroyed))).subscribe(()=>{const{maxScrollDistance:Dt,distance:pi}=this._scrollHeader(it);(0===pi||pi>=Dt)&&this._stopInterval()}))}_scrollTo(it){if(this.disablePagination)return{maxScrollDistance:0,distance:0};const ct=this._getMaxScrollDistance();return this._scrollDistance=Math.max(0,Math.min(ct,it)),this._scrollDistanceChanged=!0,this._checkScrollingControls(),{maxScrollDistance:ct,distance:this._scrollDistance}}}return Oe.\u0275fac=function(it){return new(it||Oe)(e.Y36(e.SBq),e.Y36(e.sBO),e.Y36(me.rL),e.Y36(h.Is,8),e.Y36(e.R0b),e.Y36(A.t4),e.Y36(e.QbO,8))},Oe.\u0275dir=e.lG2({type:Oe,inputs:{disablePagination:"disablePagination"}}),Oe})(),kt=(()=>{class Oe extends Mt{get disableRipple(){return this._disableRipple}set disableRipple(it){this._disableRipple=(0,$.Ig)(it)}constructor(it,ct,Dt,pi,Li,xi,Fi){super(it,ct,Dt,pi,Li,xi,Fi),this._disableRipple=!1}_itemSelected(it){it.preventDefault()}}return Oe.\u0275fac=function(it){return new(it||Oe)(e.Y36(e.SBq),e.Y36(e.sBO),e.Y36(me.rL),e.Y36(h.Is,8),e.Y36(e.R0b),e.Y36(A.t4),e.Y36(e.QbO,8))},Oe.\u0275dir=e.lG2({type:Oe,inputs:{disableRipple:"disableRipple"},features:[e.qOj]}),Oe})(),_t=(()=>{class Oe extends kt{constructor(it,ct,Dt,pi,Li,xi,Fi){super(it,ct,Dt,pi,Li,xi,Fi)}ngAfterContentInit(){this._inkBar=new ft(this._items),super.ngAfterContentInit()}}return Oe.\u0275fac=function(it){return new(it||Oe)(e.Y36(e.SBq),e.Y36(e.sBO),e.Y36(me.rL),e.Y36(h.Is,8),e.Y36(e.R0b),e.Y36(A.t4),e.Y36(e.QbO,8))},Oe.\u0275cmp=e.Xpm({type:Oe,selectors:[["mat-tab-header"]],contentQueries:function(it,ct,Dt){if(1&it&&e.Suo(Dt,ke,4),2&it){let pi;e.iGM(pi=e.CRH())&&(ct._items=pi)}},viewQuery:function(it,ct){if(1&it&&(e.Gf(L,7),e.Gf(m,7),e.Gf(n,7),e.Gf(_,5),e.Gf(B,5)),2&it){let Dt;e.iGM(Dt=e.CRH())&&(ct._tabListContainer=Dt.first),e.iGM(Dt=e.CRH())&&(ct._tabList=Dt.first),e.iGM(Dt=e.CRH())&&(ct._tabListInner=Dt.first),e.iGM(Dt=e.CRH())&&(ct._nextPaginator=Dt.first),e.iGM(Dt=e.CRH())&&(ct._previousPaginator=Dt.first)}},hostAttrs:[1,"mat-mdc-tab-header"],hostVars:4,hostBindings:function(it,ct){2&it&&e.ekj("mat-mdc-tab-header-pagination-controls-enabled",ct._showPaginationControls)("mat-mdc-tab-header-rtl","rtl"==ct._getLayoutDirection())},inputs:{selectedIndex:"selectedIndex"},outputs:{selectFocusedIndex:"selectFocusedIndex",indexFocused:"indexFocused"},features:[e.qOj],ngContentSelectors:T,decls:13,vars:10,consts:[["aria-hidden","true","type","button","mat-ripple","","tabindex","-1",1,"mat-mdc-tab-header-pagination","mat-mdc-tab-header-pagination-before",3,"matRippleDisabled","disabled","click","mousedown","touchend"],["previousPaginator",""],[1,"mat-mdc-tab-header-pagination-chevron"],[1,"mat-mdc-tab-label-container",3,"keydown"],["tabListContainer",""],["role","tablist",1,"mat-mdc-tab-list",3,"cdkObserveContent"],["tabList",""],[1,"mat-mdc-tab-labels"],["tabListInner",""],["aria-hidden","true","type","button","mat-ripple","","tabindex","-1",1,"mat-mdc-tab-header-pagination","mat-mdc-tab-header-pagination-after",3,"matRippleDisabled","disabled","mousedown","click","touchend"],["nextPaginator",""]],template:function(it,ct){1&it&&(e.F$t(),e.TgZ(0,"button",0,1),e.NdJ("click",function(){return ct._handlePaginatorClick("before")})("mousedown",function(pi){return ct._handlePaginatorPress("before",pi)})("touchend",function(){return ct._stopInterval()}),e._UZ(2,"div",2),e.qZA(),e.TgZ(3,"div",3,4),e.NdJ("keydown",function(pi){return ct._handleKeydown(pi)}),e.TgZ(5,"div",5,6),e.NdJ("cdkObserveContent",function(){return ct._onContentChanges()}),e.TgZ(7,"div",7,8),e.Hsn(9),e.qZA()()(),e.TgZ(10,"button",9,10),e.NdJ("mousedown",function(pi){return ct._handlePaginatorPress("after",pi)})("click",function(){return ct._handlePaginatorClick("after")})("touchend",function(){return ct._stopInterval()}),e._UZ(12,"div",2),e.qZA()),2&it&&(e.ekj("mat-mdc-tab-header-pagination-disabled",ct._disableScrollBefore),e.Q6J("matRippleDisabled",ct._disableScrollBefore||ct.disableRipple)("disabled",ct._disableScrollBefore||null),e.xp6(3),e.ekj("_mat-animation-noopable","NoopAnimations"===ct._animationMode),e.xp6(7),e.ekj("mat-mdc-tab-header-pagination-disabled",ct._disableScrollAfter),e.Q6J("matRippleDisabled",ct._disableScrollAfter||ct.disableRipple)("disabled",ct._disableScrollAfter||null))},dependencies:[b.wG,s.wD],styles:[".mat-mdc-tab-header{display:flex;overflow:hidden;position:relative;flex-shrink:0}.mat-mdc-tab-header-pagination{-webkit-user-select:none;user-select:none;position:relative;display:none;justify-content:center;align-items:center;min-width:32px;cursor:pointer;z-index:2;-webkit-tap-highlight-color:rgba(0,0,0,0);touch-action:none;box-sizing:content-box;background:none;border:none;outline:0;padding:0}.mat-mdc-tab-header-pagination::-moz-focus-inner{border:0}.mat-mdc-tab-header-pagination .mat-ripple-element{opacity:.12}.mat-mdc-tab-header-pagination-controls-enabled .mat-mdc-tab-header-pagination{display:flex}.mat-mdc-tab-header-pagination-before,.mat-mdc-tab-header-rtl .mat-mdc-tab-header-pagination-after{padding-left:4px}.mat-mdc-tab-header-pagination-before .mat-mdc-tab-header-pagination-chevron,.mat-mdc-tab-header-rtl .mat-mdc-tab-header-pagination-after .mat-mdc-tab-header-pagination-chevron{transform:rotate(-135deg)}.mat-mdc-tab-header-rtl .mat-mdc-tab-header-pagination-before,.mat-mdc-tab-header-pagination-after{padding-right:4px}.mat-mdc-tab-header-rtl .mat-mdc-tab-header-pagination-before .mat-mdc-tab-header-pagination-chevron,.mat-mdc-tab-header-pagination-after .mat-mdc-tab-header-pagination-chevron{transform:rotate(45deg)}.mat-mdc-tab-header-pagination-chevron{border-style:solid;border-width:2px 2px 0 0;height:8px;width:8px}.mat-mdc-tab-header-pagination-disabled{box-shadow:none;cursor:default;pointer-events:none}.mat-mdc-tab-header-pagination-disabled .mat-mdc-tab-header-pagination-chevron{opacity:.4}.mat-mdc-tab-list{flex-grow:1;position:relative;transition:transform 500ms cubic-bezier(0.35, 0, 0.25, 1)}._mat-animation-noopable .mat-mdc-tab-list{transition:none}._mat-animation-noopable span.mdc-tab-indicator__content,._mat-animation-noopable span.mdc-tab__text-label{transition:none}.mat-mdc-tab-label-container{display:flex;flex-grow:1;overflow:hidden;z-index:1}.mat-mdc-tab-labels{display:flex;flex:1 0 auto}[mat-align-tabs=center]>.mat-mdc-tab-header .mat-mdc-tab-labels{justify-content:center}[mat-align-tabs=end]>.mat-mdc-tab-header .mat-mdc-tab-labels{justify-content:flex-end}.mat-mdc-tab::before{margin:5px}.cdk-high-contrast-active .mat-mdc-tab[aria-disabled=true]{color:GrayText}"],encapsulation:2}),Oe})();const we=new e.OlP("MAT_TABS_CONFIG");let J=0;const be=(0,b.pj)((0,b.Kr)(class{constructor(Oe){this._elementRef=Oe}}),"primary");let He=(()=>{class Oe extends be{get dynamicHeight(){return this._dynamicHeight}set dynamicHeight(it){this._dynamicHeight=(0,$.Ig)(it)}get selectedIndex(){return this._selectedIndex}set selectedIndex(it){this._indexToSelect=(0,$.su)(it,null)}get animationDuration(){return this._animationDuration}set animationDuration(it){this._animationDuration=/^\d+$/.test(it+"")?it+"ms":it}get contentTabIndex(){return this._contentTabIndex}set contentTabIndex(it){this._contentTabIndex=(0,$.su)(it,null)}get disablePagination(){return this._disablePagination}set disablePagination(it){this._disablePagination=(0,$.Ig)(it)}get preserveContent(){return this._preserveContent}set preserveContent(it){this._preserveContent=(0,$.Ig)(it)}get backgroundColor(){return this._backgroundColor}set backgroundColor(it){const ct=this._elementRef.nativeElement.classList;ct.remove("mat-tabs-with-background",`mat-background-${this.backgroundColor}`),it&&ct.add("mat-tabs-with-background",`mat-background-${it}`),this._backgroundColor=it}constructor(it,ct,Dt,pi){super(it),this._changeDetectorRef=ct,this._animationMode=pi,this._tabs=new e.n_E,this._indexToSelect=0,this._lastFocusedTabIndex=null,this._tabBodyWrapperHeight=0,this._tabsSubscription=P.w0.EMPTY,this._tabLabelSubscription=P.w0.EMPTY,this._dynamicHeight=!1,this._selectedIndex=null,this.headerPosition="above",this._disablePagination=!1,this._preserveContent=!1,this.selectedIndexChange=new e.vpe,this.focusChange=new e.vpe,this.animationDone=new e.vpe,this.selectedTabChange=new e.vpe(!0),this._groupId=J++,this.animationDuration=Dt&&Dt.animationDuration?Dt.animationDuration:"500ms",this.disablePagination=!(!Dt||null==Dt.disablePagination)&&Dt.disablePagination,this.dynamicHeight=!(!Dt||null==Dt.dynamicHeight)&&Dt.dynamicHeight,this.contentTabIndex=Dt?.contentTabIndex??null,this.preserveContent=!!Dt?.preserveContent}ngAfterContentChecked(){const it=this._indexToSelect=this._clampTabIndex(this._indexToSelect);if(this._selectedIndex!=it){const ct=null==this._selectedIndex;if(!ct){this.selectedTabChange.emit(this._createChangeEvent(it));const Dt=this._tabBodyWrapper.nativeElement;Dt.style.minHeight=Dt.clientHeight+"px"}Promise.resolve().then(()=>{this._tabs.forEach((Dt,pi)=>Dt.isActive=pi===it),ct||(this.selectedIndexChange.emit(it),this._tabBodyWrapper.nativeElement.style.minHeight="")})}this._tabs.forEach((ct,Dt)=>{ct.position=Dt-it,null!=this._selectedIndex&&0==ct.position&&!ct.origin&&(ct.origin=it-this._selectedIndex)}),this._selectedIndex!==it&&(this._selectedIndex=it,this._lastFocusedTabIndex=null,this._changeDetectorRef.markForCheck())}ngAfterContentInit(){this._subscribeToAllTabChanges(),this._subscribeToTabLabels(),this._tabsSubscription=this._tabs.changes.subscribe(()=>{const it=this._clampTabIndex(this._indexToSelect);if(it===this._selectedIndex){const ct=this._tabs.toArray();let Dt;for(let pi=0;pi<ct.length;pi++)if(ct[pi].isActive){this._indexToSelect=this._selectedIndex=pi,this._lastFocusedTabIndex=null,Dt=ct[pi];break}!Dt&&ct[it]&&Promise.resolve().then(()=>{ct[it].isActive=!0,this.selectedTabChange.emit(this._createChangeEvent(it))})}this._changeDetectorRef.markForCheck()})}_subscribeToAllTabChanges(){this._allTabs.changes.pipe((0,W.O)(this._allTabs)).subscribe(it=>{this._tabs.reset(it.filter(ct=>ct._closestTabGroup===this||!ct._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(it){const ct=this._tabHeader;ct&&(ct.focusIndex=it)}_focusChanged(it){this._lastFocusedTabIndex=it,this.focusChange.emit(this._createChangeEvent(it))}_createChangeEvent(it){const ct=new ii;return ct.index=it,this._tabs&&this._tabs.length&&(ct.tab=this._tabs.toArray()[it]),ct}_subscribeToTabLabels(){this._tabLabelSubscription&&this._tabLabelSubscription.unsubscribe(),this._tabLabelSubscription=(0,O.T)(...this._tabs.map(it=>it._stateChanges)).subscribe(()=>this._changeDetectorRef.markForCheck())}_clampTabIndex(it){return Math.min(this._tabs.length-1,Math.max(it||0,0))}_getTabLabelId(it){return`mat-tab-label-${this._groupId}-${it}`}_getTabContentId(it){return`mat-tab-content-${this._groupId}-${it}`}_setTabBodyWrapperHeight(it){if(!this._dynamicHeight||!this._tabBodyWrapperHeight)return;const ct=this._tabBodyWrapper.nativeElement;ct.style.height=this._tabBodyWrapperHeight+"px",this._tabBodyWrapper.nativeElement.offsetHeight&&(ct.style.height=it+"px")}_removeTabBodyWrapperHeight(){const it=this._tabBodyWrapper.nativeElement;this._tabBodyWrapperHeight=it.clientHeight,it.style.height="",this.animationDone.emit()}_handleClick(it,ct,Dt){ct.focusIndex=Dt,it.disabled||(this.selectedIndex=Dt)}_getTabIndex(it){return it===(this._lastFocusedTabIndex??this.selectedIndex)?0:-1}_tabFocusChanged(it,ct){it&&"mouse"!==it&&"touch"!==it&&(this._tabHeader.focusIndex=ct)}}return Oe.\u0275fac=function(it){return new(it||Oe)(e.Y36(e.SBq),e.Y36(e.sBO),e.Y36(we,8),e.Y36(e.QbO,8))},Oe.\u0275dir=e.lG2({type:Oe,inputs:{dynamicHeight:"dynamicHeight",selectedIndex:"selectedIndex",headerPosition:"headerPosition",animationDuration:"animationDuration",contentTabIndex:"contentTabIndex",disablePagination:"disablePagination",preserveContent:"preserveContent",backgroundColor:"backgroundColor"},outputs:{selectedIndexChange:"selectedIndexChange",focusChange:"focusChange",animationDone:"animationDone",selectedTabChange:"selectedTabChange"},features:[e.qOj]}),Oe})(),at=(()=>{class Oe extends He{get fitInkBarToContent(){return this._fitInkBarToContent}set fitInkBarToContent(it){this._fitInkBarToContent=(0,$.Ig)(it),this._changeDetectorRef.markForCheck()}get stretchTabs(){return this._stretchTabs}set stretchTabs(it){this._stretchTabs=(0,$.Ig)(it)}constructor(it,ct,Dt,pi){super(it,ct,Dt,pi),this._fitInkBarToContent=!1,this._stretchTabs=!0,this.fitInkBarToContent=!(!Dt||null==Dt.fitInkBarToContent)&&Dt.fitInkBarToContent}}return Oe.\u0275fac=function(it){return new(it||Oe)(e.Y36(e.SBq),e.Y36(e.sBO),e.Y36(we,8),e.Y36(e.QbO,8))},Oe.\u0275cmp=e.Xpm({type:Oe,selectors:[["mat-tab-group"]],contentQueries:function(it,ct,Dt){if(1&it&&e.Suo(Dt,Re,5),2&it){let pi;e.iGM(pi=e.CRH())&&(ct._allTabs=pi)}},viewQuery:function(it,ct){if(1&it&&(e.Gf(V,5),e.Gf(X,5)),2&it){let Dt;e.iGM(Dt=e.CRH())&&(ct._tabBodyWrapper=Dt.first),e.iGM(Dt=e.CRH())&&(ct._tabHeader=Dt.first)}},hostAttrs:[1,"mat-mdc-tab-group"],hostVars:6,hostBindings:function(it,ct){2&it&&e.ekj("mat-mdc-tab-group-dynamic-height",ct.dynamicHeight)("mat-mdc-tab-group-inverted-header","below"===ct.headerPosition)("mat-mdc-tab-group-stretch-tabs",ct.stretchTabs)},inputs:{color:"color",disableRipple:"disableRipple",fitInkBarToContent:"fitInkBarToContent",stretchTabs:["mat-stretch-tabs","stretchTabs"]},exportAs:["matTabGroup"],features:[e._Bn([{provide:xt,useExisting:Oe}]),e.qOj],decls:6,vars:6,consts:[[3,"selectedIndex","disableRipple","indexFocused","selectFocusedIndex"],["tabHeader",""],["class","mdc-tab mat-mdc-tab mat-mdc-focus-indicator","role","tab","matTabLabelWrapper","","cdkMonitorElementFocus","",3,"id","mdc-tab--active","ngClass","disabled","fitInkBarToContent","click","cdkFocusChange",4,"ngFor","ngForOf"],[1,"mat-mdc-tab-body-wrapper"],["tabBodyWrapper",""],["role","tabpanel",3,"id","mat-mdc-tab-body-active","ngClass","content","position","origin","animationDuration","preserveContent","_onCentered","_onCentering",4,"ngFor","ngForOf"],["role","tab","matTabLabelWrapper","","cdkMonitorElementFocus","",1,"mdc-tab","mat-mdc-tab","mat-mdc-focus-indicator",3,"id","ngClass","disabled","fitInkBarToContent","click","cdkFocusChange"],["tabNode",""],[1,"mdc-tab__ripple"],["mat-ripple","",1,"mat-mdc-tab-ripple",3,"matRippleTrigger","matRippleDisabled"],[1,"mdc-tab__content"],[1,"mdc-tab__text-label"],[3,"ngIf","ngIfElse"],["tabTextLabel",""],[3,"cdkPortalOutlet"],["role","tabpanel",3,"id","ngClass","content","position","origin","animationDuration","preserveContent","_onCentered","_onCentering"]],template:function(it,ct){1&it&&(e.TgZ(0,"mat-tab-header",0,1),e.NdJ("indexFocused",function(pi){return ct._focusChanged(pi)})("selectFocusedIndex",function(pi){return ct.selectedIndex=pi}),e.YNc(2,Fe,9,17,"div",2),e.qZA(),e.TgZ(3,"div",3,4),e.YNc(5,De,1,11,"mat-tab-body",5),e.qZA()),2&it&&(e.Q6J("selectedIndex",ct.selectedIndex||0)("disableRipple",ct.disableRipple),e.xp6(2),e.Q6J("ngForOf",ct._tabs),e.xp6(1),e.ekj("_mat-animation-noopable","NoopAnimations"===ct._animationMode),e.xp6(2),e.Q6J("ngForOf",ct._tabs))},dependencies:[t.mk,t.sg,t.O5,I.Pl,b.wG,C.kH,Ae,ke,_t],styles:['.mdc-tab{min-width:90px;padding-right:24px;padding-left:24px;display:flex;flex:1 0 auto;justify-content:center;box-sizing:border-box;margin:0;padding-top:0;padding-bottom:0;border:none;outline:none;text-align:center;white-space:nowrap;cursor:pointer;-webkit-appearance:none;z-index:1}.mdc-tab::-moz-focus-inner{padding:0;border:0}.mdc-tab[hidden]{display:none}.mdc-tab--min-width{flex:0 1 auto}.mdc-tab__content{display:flex;align-items:center;justify-content:center;height:inherit;pointer-events:none}.mdc-tab__text-label{transition:150ms color linear;display:inline-block;line-height:1;z-index:2}.mdc-tab__icon{transition:150ms color linear;z-index:2}.mdc-tab--stacked .mdc-tab__content{flex-direction:column;align-items:center;justify-content:center}.mdc-tab--stacked .mdc-tab__text-label{padding-top:6px;padding-bottom:4px}.mdc-tab--active .mdc-tab__text-label,.mdc-tab--active .mdc-tab__icon{transition-delay:100ms}.mdc-tab:not(.mdc-tab--stacked) .mdc-tab__icon+.mdc-tab__text-label{padding-left:8px;padding-right:0}[dir=rtl] .mdc-tab:not(.mdc-tab--stacked) .mdc-tab__icon+.mdc-tab__text-label,.mdc-tab:not(.mdc-tab--stacked) .mdc-tab__icon+.mdc-tab__text-label[dir=rtl]{padding-left:0;padding-right:8px}.mdc-tab-indicator .mdc-tab-indicator__content--underline{border-top-width:2px}.mdc-tab-indicator .mdc-tab-indicator__content--icon{height:34px;font-size:34px}.mdc-tab-indicator{display:flex;position:absolute;top:0;left:0;justify-content:center;width:100%;height:100%;pointer-events:none;z-index:1}.mdc-tab-indicator__content{transform-origin:left;opacity:0}.mdc-tab-indicator__content--underline{align-self:flex-end;box-sizing:border-box;width:100%;border-top-style:solid}.mdc-tab-indicator__content--icon{align-self:center;margin:0 auto}.mdc-tab-indicator--active .mdc-tab-indicator__content{opacity:1}.mdc-tab-indicator .mdc-tab-indicator__content{transition:250ms transform cubic-bezier(0.4, 0, 0.2, 1)}.mdc-tab-indicator--no-transition .mdc-tab-indicator__content{transition:none}.mdc-tab-indicator--fade .mdc-tab-indicator__content{transition:150ms opacity linear}.mdc-tab-indicator--active.mdc-tab-indicator--fade .mdc-tab-indicator__content{transition-delay:100ms}.mat-mdc-tab-ripple{position:absolute;top:0;left:0;bottom:0;right:0;pointer-events:none}.mat-mdc-tab{-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-mdc-tab.mdc-tab{height:48px;flex-grow:0}.mat-mdc-tab .mdc-tab__ripple::before{content:"";display:block;position:absolute;top:0;left:0;right:0;bottom:0;opacity:0;pointer-events:none}.mat-mdc-tab .mdc-tab__text-label{display:inline-flex;align-items:center}.mat-mdc-tab .mdc-tab__content{position:relative;pointer-events:auto}.mat-mdc-tab:hover .mdc-tab__ripple::before{opacity:.04}.mat-mdc-tab.cdk-program-focused .mdc-tab__ripple::before,.mat-mdc-tab.cdk-keyboard-focused .mdc-tab__ripple::before{opacity:.12}.mat-mdc-tab .mat-ripple-element{opacity:.12}.mat-mdc-tab-group.mat-mdc-tab-group-stretch-tabs>.mat-mdc-tab-header .mat-mdc-tab{flex-grow:1}.mat-mdc-tab-disabled{opacity:.4}.mat-mdc-tab-group{display:flex;flex-direction:column;max-width:100%}.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header,.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header-pagination{background-color:var(--mat-mdc-tab-header-with-background-background-color, transparent)}.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header .mat-mdc-tab .mdc-tab__text-label,.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header .mat-mdc-tab-link .mdc-tab__text-label{color:var(--mat-mdc-tab-header-with-background-foreground-color, inherit)}.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header .mdc-tab-indicator__content--underline,.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header .mat-mdc-tab-header-pagination-chevron,.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header .mat-mdc-focus-indicator::before{border-color:var(--mat-mdc-tab-header-with-background-foreground-color, inherit)}.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header .mat-ripple-element,.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header .mdc-tab__ripple::before,.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header-pagination .mat-ripple-element,.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header-pagination .mdc-tab__ripple::before{background-color:var(--mat-mdc-tab-header-with-background-foreground-color, inherit)}.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header .mat-mdc-tab-header-pagination-chevron,.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header-pagination .mat-mdc-tab-header-pagination-chevron{border-color:var(--mat-mdc-tab-header-with-background-foreground-color, inherit)}.mat-mdc-tab-group.mat-mdc-tab-group-inverted-header{flex-direction:column-reverse}.mat-mdc-tab-group.mat-mdc-tab-group-inverted-header .mdc-tab-indicator__content--underline{align-self:flex-start}.mat-mdc-tab-body-wrapper{position:relative;overflow:hidden;display:flex;transition:height 500ms cubic-bezier(0.35, 0, 0.25, 1)}.mat-mdc-tab-body-wrapper._mat-animation-noopable{transition:none !important;animation:none !important}'],encapsulation:2}),Oe})();class ii{}let Gt=0,ni=(()=>{class Oe extends Mt{get backgroundColor(){return this._backgroundColor}set backgroundColor(it){const ct=this._elementRef.nativeElement.classList;ct.remove("mat-tabs-with-background",`mat-background-${this.backgroundColor}`),it&&ct.add("mat-tabs-with-background",`mat-background-${it}`),this._backgroundColor=it}get disableRipple(){return this._disableRipple}set disableRipple(it){this._disableRipple=(0,$.Ig)(it)}constructor(it,ct,Dt,pi,Li,xi,Fi){super(it,pi,Li,ct,Dt,xi,Fi),this._disableRipple=!1,this.color="primary"}_itemSelected(){}ngAfterContentInit(){this._items.changes.pipe((0,W.O)(null),(0,ee.R)(this._destroyed)).subscribe(()=>{this.updateActiveLink()}),super.ngAfterContentInit()}updateActiveLink(){if(!this._items)return;const it=this._items.toArray();for(let ct=0;ct<it.length;ct++)if(it[ct].active)return this.selectedIndex=ct,this._changeDetectorRef.markForCheck(),void(this.tabPanel&&(this.tabPanel._activeTabId=it[ct].id));this.selectedIndex=-1,this._inkBar.hide()}_getRole(){return this.tabPanel?"tablist":this._elementRef.nativeElement.getAttribute("role")}}return Oe.\u0275fac=function(it){return new(it||Oe)(e.Y36(e.SBq),e.Y36(h.Is,8),e.Y36(e.R0b),e.Y36(e.sBO),e.Y36(me.rL),e.Y36(A.t4),e.Y36(e.QbO,8))},Oe.\u0275dir=e.lG2({type:Oe,inputs:{backgroundColor:"backgroundColor",disableRipple:"disableRipple",color:"color",tabPanel:"tabPanel"},features:[e.qOj]}),Oe})();const ut=(0,b.sb)((0,b.Kr)((0,b.Id)(class{}))),vt=Je((()=>{class Oe extends ut{get active(){return this._isActive}set active(it){const ct=(0,$.Ig)(it);ct!==this._isActive&&(this._isActive=ct,this._tabNavBar.updateActiveLink())}get rippleDisabled(){return this.disabled||this.disableRipple||this._tabNavBar.disableRipple||!!this.rippleConfig.disabled}constructor(it,ct,Dt,pi,Li,xi){super(),this._tabNavBar=it,this.elementRef=ct,this._focusMonitor=Li,this._isActive=!1,this.id="mat-tab-link-"+Gt++,this.rippleConfig=Dt||{},this.tabIndex=parseInt(pi)||0,"NoopAnimations"===xi&&(this.rippleConfig.animation={enterDuration:0,exitDuration:0})}focus(){this.elementRef.nativeElement.focus()}ngAfterViewInit(){this._focusMonitor.monitor(this.elementRef)}ngOnDestroy(){this._focusMonitor.stopMonitoring(this.elementRef)}_handleFocus(){this._tabNavBar.focusIndex=this._tabNavBar._items.toArray().indexOf(this)}_handleKeydown(it){this._tabNavBar.tabPanel&&it.keyCode===i.L_&&this.elementRef.nativeElement.click()}_getAriaControls(){return this._tabNavBar.tabPanel?this._tabNavBar.tabPanel?.id:this.elementRef.nativeElement.getAttribute("aria-controls")}_getAriaSelected(){return this._tabNavBar.tabPanel?this.active?"true":"false":this.elementRef.nativeElement.getAttribute("aria-selected")}_getAriaCurrent(){return this.active&&!this._tabNavBar.tabPanel?"page":null}_getRole(){return this._tabNavBar.tabPanel?"tab":this.elementRef.nativeElement.getAttribute("role")}_getTabIndex(){return this._tabNavBar.tabPanel?this._isActive&&!this.disabled?0:-1:this.tabIndex}}return Oe.\u0275fac=function(it){return new(it||Oe)(e.Y36(ni),e.Y36(e.SBq),e.Y36(b.Y2,8),e.$8M("tabindex"),e.Y36(C.tE),e.Y36(e.QbO,8))},Oe.\u0275dir=e.lG2({type:Oe,inputs:{active:"active",id:"id"},features:[e.qOj]}),Oe})());let ti=(()=>{class Oe extends ni{get fitInkBarToContent(){return this._fitInkBarToContent.value}set fitInkBarToContent(it){this._fitInkBarToContent.next((0,$.Ig)(it)),this._changeDetectorRef.markForCheck()}get stretchTabs(){return this._stretchTabs}set stretchTabs(it){this._stretchTabs=(0,$.Ig)(it)}constructor(it,ct,Dt,pi,Li,xi,Fi,qe){super(it,ct,Dt,pi,Li,xi,Fi),this._fitInkBarToContent=new U.X(!1),this._stretchTabs=!0,this.disablePagination=!(!qe||null==qe.disablePagination)&&qe.disablePagination,this.fitInkBarToContent=!(!qe||null==qe.fitInkBarToContent)&&qe.fitInkBarToContent}ngAfterContentInit(){this._inkBar=new ft(this._items),super.ngAfterContentInit()}ngAfterViewInit(){super.ngAfterViewInit()}}return Oe.\u0275fac=function(it){return new(it||Oe)(e.Y36(e.SBq),e.Y36(h.Is,8),e.Y36(e.R0b),e.Y36(e.sBO),e.Y36(me.rL),e.Y36(A.t4),e.Y36(e.QbO,8),e.Y36(we,8))},Oe.\u0275cmp=e.Xpm({type:Oe,selectors:[["","mat-tab-nav-bar",""]],contentQueries:function(it,ct,Dt){if(1&it&&e.Suo(Dt,Ut,5),2&it){let pi;e.iGM(pi=e.CRH())&&(ct._items=pi)}},viewQuery:function(it,ct){if(1&it&&(e.Gf(L,7),e.Gf(m,7),e.Gf(n,7),e.Gf(_,5),e.Gf(B,5)),2&it){let Dt;e.iGM(Dt=e.CRH())&&(ct._tabListContainer=Dt.first),e.iGM(Dt=e.CRH())&&(ct._tabList=Dt.first),e.iGM(Dt=e.CRH())&&(ct._tabListInner=Dt.first),e.iGM(Dt=e.CRH())&&(ct._nextPaginator=Dt.first),e.iGM(Dt=e.CRH())&&(ct._previousPaginator=Dt.first)}},hostAttrs:[1,"mat-mdc-tab-nav-bar","mat-mdc-tab-header"],hostVars:15,hostBindings:function(it,ct){2&it&&(e.uIk("role",ct._getRole()),e.ekj("mat-mdc-tab-header-pagination-controls-enabled",ct._showPaginationControls)("mat-mdc-tab-header-rtl","rtl"==ct._getLayoutDirection())("mat-mdc-tab-nav-bar-stretch-tabs",ct.stretchTabs)("mat-primary","warn"!==ct.color&&"accent"!==ct.color)("mat-accent","accent"===ct.color)("mat-warn","warn"===ct.color)("_mat-animation-noopable","NoopAnimations"===ct._animationMode))},inputs:{color:"color",fitInkBarToContent:"fitInkBarToContent",stretchTabs:["mat-stretch-tabs","stretchTabs"]},exportAs:["matTabNavBar","matTabNav"],features:[e.qOj],attrs:ye,ngContentSelectors:T,decls:13,vars:8,consts:[["aria-hidden","true","type","button","mat-ripple","","tabindex","-1",1,"mat-mdc-tab-header-pagination","mat-mdc-tab-header-pagination-before",3,"matRippleDisabled","disabled","click","mousedown","touchend"],["previousPaginator",""],[1,"mat-mdc-tab-header-pagination-chevron"],[1,"mat-mdc-tab-link-container",3,"keydown"],["tabListContainer",""],[1,"mat-mdc-tab-list",3,"cdkObserveContent"],["tabList",""],[1,"mat-mdc-tab-links"],["tabListInner",""],["aria-hidden","true","type","button","mat-ripple","","tabindex","-1",1,"mat-mdc-tab-header-pagination","mat-mdc-tab-header-pagination-after",3,"matRippleDisabled","disabled","mousedown","click","touchend"],["nextPaginator",""]],template:function(it,ct){1&it&&(e.F$t(),e.TgZ(0,"button",0,1),e.NdJ("click",function(){return ct._handlePaginatorClick("before")})("mousedown",function(pi){return ct._handlePaginatorPress("before",pi)})("touchend",function(){return ct._stopInterval()}),e._UZ(2,"div",2),e.qZA(),e.TgZ(3,"div",3,4),e.NdJ("keydown",function(pi){return ct._handleKeydown(pi)}),e.TgZ(5,"div",5,6),e.NdJ("cdkObserveContent",function(){return ct._onContentChanges()}),e.TgZ(7,"div",7,8),e.Hsn(9),e.qZA()()(),e.TgZ(10,"button",9,10),e.NdJ("mousedown",function(pi){return ct._handlePaginatorPress("after",pi)})("click",function(){return ct._handlePaginatorClick("after")})("touchend",function(){return ct._stopInterval()}),e._UZ(12,"div",2),e.qZA()),2&it&&(e.ekj("mat-mdc-tab-header-pagination-disabled",ct._disableScrollBefore),e.Q6J("matRippleDisabled",ct._disableScrollBefore||ct.disableRipple)("disabled",ct._disableScrollBefore||null),e.xp6(10),e.ekj("mat-mdc-tab-header-pagination-disabled",ct._disableScrollAfter),e.Q6J("matRippleDisabled",ct._disableScrollAfter||ct.disableRipple)("disabled",ct._disableScrollAfter||null))},dependencies:[b.wG,s.wD],styles:[".mdc-tab{min-width:90px;padding-right:24px;padding-left:24px;display:flex;flex:1 0 auto;justify-content:center;box-sizing:border-box;margin:0;padding-top:0;padding-bottom:0;border:none;outline:none;text-align:center;white-space:nowrap;cursor:pointer;-webkit-appearance:none;z-index:1}.mdc-tab::-moz-focus-inner{padding:0;border:0}.mdc-tab[hidden]{display:none}.mdc-tab--min-width{flex:0 1 auto}.mdc-tab__content{display:flex;align-items:center;justify-content:center;height:inherit;pointer-events:none}.mdc-tab__text-label{transition:150ms color linear;display:inline-block;line-height:1;z-index:2}.mdc-tab__icon{transition:150ms color linear;z-index:2}.mdc-tab--stacked .mdc-tab__content{flex-direction:column;align-items:center;justify-content:center}.mdc-tab--stacked .mdc-tab__text-label{padding-top:6px;padding-bottom:4px}.mdc-tab--active .mdc-tab__text-label,.mdc-tab--active .mdc-tab__icon{transition-delay:100ms}.mdc-tab:not(.mdc-tab--stacked) .mdc-tab__icon+.mdc-tab__text-label{padding-left:8px;padding-right:0}[dir=rtl] .mdc-tab:not(.mdc-tab--stacked) .mdc-tab__icon+.mdc-tab__text-label,.mdc-tab:not(.mdc-tab--stacked) .mdc-tab__icon+.mdc-tab__text-label[dir=rtl]{padding-left:0;padding-right:8px}.mdc-tab-indicator .mdc-tab-indicator__content--underline{border-top-width:2px}.mdc-tab-indicator .mdc-tab-indicator__content--icon{height:34px;font-size:34px}.mdc-tab-indicator{display:flex;position:absolute;top:0;left:0;justify-content:center;width:100%;height:100%;pointer-events:none;z-index:1}.mdc-tab-indicator__content{transform-origin:left;opacity:0}.mdc-tab-indicator__content--underline{align-self:flex-end;box-sizing:border-box;width:100%;border-top-style:solid}.mdc-tab-indicator__content--icon{align-self:center;margin:0 auto}.mdc-tab-indicator--active .mdc-tab-indicator__content{opacity:1}.mdc-tab-indicator .mdc-tab-indicator__content{transition:250ms transform cubic-bezier(0.4, 0, 0.2, 1)}.mdc-tab-indicator--no-transition .mdc-tab-indicator__content{transition:none}.mdc-tab-indicator--fade .mdc-tab-indicator__content{transition:150ms opacity linear}.mdc-tab-indicator--active.mdc-tab-indicator--fade .mdc-tab-indicator__content{transition-delay:100ms}.mat-mdc-tab-ripple{position:absolute;top:0;left:0;bottom:0;right:0;pointer-events:none}.mat-mdc-tab-header{display:flex;overflow:hidden;position:relative;flex-shrink:0}.mat-mdc-tab-header-pagination{-webkit-user-select:none;user-select:none;position:relative;display:none;justify-content:center;align-items:center;min-width:32px;cursor:pointer;z-index:2;-webkit-tap-highlight-color:rgba(0,0,0,0);touch-action:none;box-sizing:content-box;background:none;border:none;outline:0;padding:0}.mat-mdc-tab-header-pagination::-moz-focus-inner{border:0}.mat-mdc-tab-header-pagination .mat-ripple-element{opacity:.12}.mat-mdc-tab-header-pagination-controls-enabled .mat-mdc-tab-header-pagination{display:flex}.mat-mdc-tab-header-pagination-before,.mat-mdc-tab-header-rtl .mat-mdc-tab-header-pagination-after{padding-left:4px}.mat-mdc-tab-header-pagination-before .mat-mdc-tab-header-pagination-chevron,.mat-mdc-tab-header-rtl .mat-mdc-tab-header-pagination-after .mat-mdc-tab-header-pagination-chevron{transform:rotate(-135deg)}.mat-mdc-tab-header-rtl .mat-mdc-tab-header-pagination-before,.mat-mdc-tab-header-pagination-after{padding-right:4px}.mat-mdc-tab-header-rtl .mat-mdc-tab-header-pagination-before .mat-mdc-tab-header-pagination-chevron,.mat-mdc-tab-header-pagination-after .mat-mdc-tab-header-pagination-chevron{transform:rotate(45deg)}.mat-mdc-tab-header-pagination-chevron{border-style:solid;border-width:2px 2px 0 0;height:8px;width:8px}.mat-mdc-tab-header-pagination-disabled{box-shadow:none;cursor:default;pointer-events:none}.mat-mdc-tab-header-pagination-disabled .mat-mdc-tab-header-pagination-chevron{opacity:.4}.mat-mdc-tab-list{flex-grow:1;position:relative;transition:transform 500ms cubic-bezier(0.35, 0, 0.25, 1)}._mat-animation-noopable .mat-mdc-tab-list{transition:none}._mat-animation-noopable span.mdc-tab-indicator__content,._mat-animation-noopable span.mdc-tab__text-label{transition:none}.mat-mdc-tab-links{display:flex;flex:1 0 auto}[mat-align-tabs=center]>.mat-mdc-tab-link-container .mat-mdc-tab-links{justify-content:center}[mat-align-tabs=end]>.mat-mdc-tab-link-container .mat-mdc-tab-links{justify-content:flex-end}.mat-mdc-tab-link-container{display:flex;flex-grow:1;overflow:hidden;z-index:1}.mat-mdc-tab-nav-bar.mat-tabs-with-background>.mat-mdc-tab-link-container,.mat-mdc-tab-nav-bar.mat-tabs-with-background>.mat-mdc-tab-header-pagination{background-color:var(--mat-mdc-tab-header-with-background-background-color, transparent)}.mat-mdc-tab-nav-bar.mat-tabs-with-background>.mat-mdc-tab-link-container .mat-mdc-tab .mdc-tab__text-label,.mat-mdc-tab-nav-bar.mat-tabs-with-background>.mat-mdc-tab-link-container .mat-mdc-tab-link .mdc-tab__text-label{color:var(--mat-mdc-tab-header-with-background-foreground-color, inherit)}.mat-mdc-tab-nav-bar.mat-tabs-with-background>.mat-mdc-tab-link-container .mdc-tab-indicator__content--underline,.mat-mdc-tab-nav-bar.mat-tabs-with-background>.mat-mdc-tab-link-container .mat-mdc-tab-header-pagination-chevron,.mat-mdc-tab-nav-bar.mat-tabs-with-background>.mat-mdc-tab-link-container .mat-mdc-focus-indicator::before{border-color:var(--mat-mdc-tab-header-with-background-foreground-color, inherit)}.mat-mdc-tab-nav-bar.mat-tabs-with-background>.mat-mdc-tab-link-container .mat-ripple-element,.mat-mdc-tab-nav-bar.mat-tabs-with-background>.mat-mdc-tab-link-container .mdc-tab__ripple::before,.mat-mdc-tab-nav-bar.mat-tabs-with-background>.mat-mdc-tab-header-pagination .mat-ripple-element,.mat-mdc-tab-nav-bar.mat-tabs-with-background>.mat-mdc-tab-header-pagination .mdc-tab__ripple::before{background-color:var(--mat-mdc-tab-header-with-background-foreground-color, inherit)}.mat-mdc-tab-nav-bar.mat-tabs-with-background>.mat-mdc-tab-link-container .mat-mdc-tab-header-pagination-chevron,.mat-mdc-tab-nav-bar.mat-tabs-with-background>.mat-mdc-tab-header-pagination .mat-mdc-tab-header-pagination-chevron{border-color:var(--mat-mdc-tab-header-with-background-foreground-color, inherit)}"],encapsulation:2}),Oe})(),Ut=(()=>{class Oe extends vt{constructor(it,ct,Dt,pi,Li,xi){super(it,ct,Dt,pi,Li,xi),this._destroyed=new d.x,it._fitInkBarToContent.pipe((0,ee.R)(this._destroyed)).subscribe(Fi=>{this.fitInkBarToContent=Fi})}ngOnDestroy(){this._destroyed.next(),this._destroyed.complete(),super.ngOnDestroy()}}return Oe.\u0275fac=function(it){return new(it||Oe)(e.Y36(ti),e.Y36(e.SBq),e.Y36(b.Y2,8),e.$8M("tabindex"),e.Y36(C.tE),e.Y36(e.QbO,8))},Oe.\u0275cmp=e.Xpm({type:Oe,selectors:[["","mat-tab-link",""],["","matTabLink",""]],hostAttrs:[1,"mdc-tab","mat-mdc-tab-link","mat-mdc-focus-indicator"],hostVars:11,hostBindings:function(it,ct){1&it&&e.NdJ("focus",function(){return ct._handleFocus()})("keydown",function(pi){return ct._handleKeydown(pi)}),2&it&&(e.uIk("aria-controls",ct._getAriaControls())("aria-current",ct._getAriaCurrent())("aria-disabled",ct.disabled)("aria-selected",ct._getAriaSelected())("id",ct.id)("tabIndex",ct._getTabIndex())("role",ct._getRole()),e.ekj("mat-mdc-tab-disabled",ct.disabled)("mdc-tab--active",ct.active))},inputs:{disabled:"disabled",disableRipple:"disableRipple",tabIndex:"tabIndex",active:"active",id:"id"},exportAs:["matTabLink"],features:[e.qOj],attrs:ce,ngContentSelectors:T,decls:5,vars:2,consts:[[1,"mdc-tab__ripple"],["mat-ripple","",1,"mat-mdc-tab-ripple",3,"matRippleTrigger","matRippleDisabled"],[1,"mdc-tab__content"],[1,"mdc-tab__text-label"]],template:function(it,ct){1&it&&(e.F$t(),e._UZ(0,"span",0)(1,"div",1),e.TgZ(2,"span",2)(3,"span",3),e.Hsn(4),e.qZA()()),2&it&&(e.xp6(1),e.Q6J("matRippleTrigger",ct.elementRef.nativeElement)("matRippleDisabled",ct.rippleDisabled))},dependencies:[b.wG],styles:['.mat-mdc-tab-link{-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-mdc-tab-link.mdc-tab{height:48px;flex-grow:0}.mat-mdc-tab-link .mdc-tab__ripple::before{content:"";display:block;position:absolute;top:0;left:0;right:0;bottom:0;opacity:0;pointer-events:none}.mat-mdc-tab-link .mdc-tab__text-label{display:inline-flex;align-items:center}.mat-mdc-tab-link .mdc-tab__content{position:relative;pointer-events:auto}.mat-mdc-tab-link:hover .mdc-tab__ripple::before{opacity:.04}.mat-mdc-tab-link.cdk-program-focused .mdc-tab__ripple::before,.mat-mdc-tab-link.cdk-keyboard-focused .mdc-tab__ripple::before{opacity:.12}.mat-mdc-tab-link .mat-ripple-element{opacity:.12}.mat-mdc-tab-link.mat-mdc-tab-disabled{pointer-events:none;opacity:.4}.mat-mdc-tab-header.mat-mdc-tab-nav-bar-stretch-tabs .mat-mdc-tab-link{flex-grow:1}.mat-mdc-tab-link::before{margin:5px}@media(max-width: 599px){.mat-mdc-tab-link{min-width:72px}}'],encapsulation:2,changeDetection:0}),Oe})(),ht=(()=>{class Oe{constructor(){this.id="mat-tab-nav-panel-"+Gt++}}return Oe.\u0275fac=function(it){return new(it||Oe)},Oe.\u0275cmp=e.Xpm({type:Oe,selectors:[["mat-tab-nav-panel"]],hostAttrs:["role","tabpanel",1,"mat-mdc-tab-nav-panel"],hostVars:2,hostBindings:function(it,ct){2&it&&e.uIk("aria-labelledby",ct._activeTabId)("id",ct.id)},inputs:{id:"id"},exportAs:["matTabNavPanel"],ngContentSelectors:T,decls:1,vars:0,template:function(it,ct){1&it&&(e.F$t(),e.Hsn(0))},encapsulation:2,changeDetection:0}),Oe})(),Rt=(()=>{class Oe{}return Oe.\u0275fac=function(it){return new(it||Oe)},Oe.\u0275mod=e.oAB({type:Oe}),Oe.\u0275inj=e.cJS({imports:[t.ez,b.BQ,I.eL,b.si,s.Q8,C.rt,b.BQ]}),Oe})()},3683:(Ve,q,p)=>{"use strict";p.d(q,{Ye:()=>d,g0:()=>w});var t=p(4650),e=p(3238),b=p(3353),I=p(6895);const s=["*",[["mat-toolbar-row"]]],C=["*","mat-toolbar-row"],h=(0,e.pj)(class{constructor(O){this._elementRef=O}});let P=(()=>{class O{}return O.\u0275fac=function(R){return new(R||O)},O.\u0275dir=t.lG2({type:O,selectors:[["mat-toolbar-row"]],hostAttrs:[1,"mat-toolbar-row"],exportAs:["matToolbarRow"]}),O})(),d=(()=>{class O extends h{constructor(R,z,U){super(R),this._platform=z,this._document=U}ngAfterViewInit(){this._platform.isBrowser&&(this._checkToolbarMixedModes(),this._toolbarRows.changes.subscribe(()=>this._checkToolbarMixedModes()))}_checkToolbarMixedModes(){}}return O.\u0275fac=function(R){return new(R||O)(t.Y36(t.SBq),t.Y36(b.t4),t.Y36(I.K0))},O.\u0275cmp=t.Xpm({type:O,selectors:[["mat-toolbar"]],contentQueries:function(R,z,U){if(1&R&&t.Suo(U,P,5),2&R){let W;t.iGM(W=t.CRH())&&(z._toolbarRows=W)}},hostAttrs:[1,"mat-toolbar"],hostVars:4,hostBindings:function(R,z){2&R&&t.ekj("mat-toolbar-multiple-rows",z._toolbarRows.length>0)("mat-toolbar-single-row",0===z._toolbarRows.length)},inputs:{color:"color"},exportAs:["matToolbar"],features:[t.qOj],ngContentSelectors:C,decls:2,vars:0,template:function(R,z){1&R&&(t.F$t(s),t.Hsn(0),t.Hsn(1,1))},styles:[".cdk-high-contrast-active .mat-toolbar{outline:solid 1px}.mat-toolbar .mat-mdc-button-base.mat-unthemed{--mdc-text-button-label-text-color: inherit;--mdc-outlined-button-label-text-color: inherit}.mat-toolbar-row,.mat-toolbar-single-row{display:flex;box-sizing:border-box;padding:0 16px;width:100%;flex-direction:row;align-items:center;white-space:nowrap}.mat-toolbar-multiple-rows{display:flex;box-sizing:border-box;flex-direction:column;width:100%}"],encapsulation:2,changeDetection:0}),O})(),w=(()=>{class O{}return O.\u0275fac=function(R){return new(R||O)},O.\u0275mod=t.oAB({type:O}),O.\u0275inj=t.cJS({imports:[e.BQ,e.BQ]}),O})()},266:(Ve,q,p)=>{"use strict";p.d(q,{AV:()=>_,gM:()=>T});var t=p(2722),e=p(5698),b=p(1281),I=p(9521),s=p(4650),C=p(6895),h=p(3353),P=p(4761),d=p(445),S=p(8184),w=p(531),O=p(4080),E=p(7579),z=(p(7340),p(3238));const U=["tooltip"],ee=new s.OlP("mat-tooltip-scroll-strategy"),ue={provide:ee,deps:[S.aV],useFactory:function ie(B){return()=>B.scrollStrategies.reposition({scrollThrottle:20})}},ne=new s.OlP("mat-tooltip-default-options",{providedIn:"root",factory:function le(){return{showDelay:0,hideDelay:0,touchendHideDelay:1500}}}),$="tooltip-panel",me=(0,h.i$)({passive:!0});let y=(()=>{class B{get position(){return this._position}set position(X){X!==this._position&&(this._position=X,this._overlayRef&&(this._updatePosition(this._overlayRef),this._tooltipInstance?.show(0),this._overlayRef.updatePosition()))}get positionAtOrigin(){return this._positionAtOrigin}set positionAtOrigin(X){this._positionAtOrigin=(0,b.Ig)(X),this._detach(),this._overlayRef=null}get disabled(){return this._disabled}set disabled(X){this._disabled=(0,b.Ig)(X),this._disabled?this.hide(0):this._setupPointerEnterEventsIfNeeded()}get showDelay(){return this._showDelay}set showDelay(X){this._showDelay=(0,b.su)(X)}get hideDelay(){return this._hideDelay}set hideDelay(X){this._hideDelay=(0,b.su)(X),this._tooltipInstance&&(this._tooltipInstance._mouseLeaveHideDelay=this._hideDelay)}get message(){return this._message}set message(X){this._ariaDescriber.removeDescription(this._elementRef.nativeElement,this._message,"tooltip"),this._message=null!=X?String(X).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(X){this._tooltipClass=X,this._tooltipInstance&&this._setTooltipClass(this._tooltipClass)}constructor(X,Le,$e,We,Fe,De,ye,ce,ve,oe,je,Ae){this._overlay=X,this._elementRef=Le,this._scrollDispatcher=$e,this._viewContainerRef=We,this._ngZone=Fe,this._platform=De,this._ariaDescriber=ye,this._focusMonitor=ce,this._dir=oe,this._defaultOptions=je,this._position="below",this._positionAtOrigin=!1,this._disabled=!1,this._viewInitialized=!1,this._pointerExitEventsInitialized=!1,this._viewportMargin=8,this._cssClassPrefix="mat",this._showDelay=this._defaultOptions.showDelay,this._hideDelay=this._defaultOptions.hideDelay,this.touchGestures="auto",this._message="",this._passiveListeners=[],this._destroyed=new E.x,this._scrollStrategy=ve,this._document=Ae,je&&(je.position&&(this.position=je.position),je.positionAtOrigin&&(this.positionAtOrigin=je.positionAtOrigin),je.touchGestures&&(this.touchGestures=je.touchGestures)),oe.change.pipe((0,t.R)(this._destroyed)).subscribe(()=>{this._overlayRef&&this._updatePosition(this._overlayRef)})}ngAfterViewInit(){this._viewInitialized=!0,this._setupPointerEnterEventsIfNeeded(),this._focusMonitor.monitor(this._elementRef).pipe((0,t.R)(this._destroyed)).subscribe(X=>{X?"keyboard"===X&&this._ngZone.run(()=>this.show()):this._ngZone.run(()=>this.hide(0))})}ngOnDestroy(){const X=this._elementRef.nativeElement;clearTimeout(this._touchstartTimeout),this._overlayRef&&(this._overlayRef.dispose(),this._tooltipInstance=null),this._passiveListeners.forEach(([Le,$e])=>{X.removeEventListener(Le,$e,me)}),this._passiveListeners.length=0,this._destroyed.next(),this._destroyed.complete(),this._ariaDescriber.removeDescription(X,this.message,"tooltip"),this._focusMonitor.stopMonitoring(X)}show(X=this.showDelay,Le){if(this.disabled||!this.message||this._isTooltipVisible())return void this._tooltipInstance?._cancelPendingAnimations();const $e=this._createOverlay(Le);this._detach(),this._portal=this._portal||new O.C5(this._tooltipComponent,this._viewContainerRef);const We=this._tooltipInstance=$e.attach(this._portal).instance;We._triggerElement=this._elementRef.nativeElement,We._mouseLeaveHideDelay=this._hideDelay,We.afterHidden().pipe((0,t.R)(this._destroyed)).subscribe(()=>this._detach()),this._setTooltipClass(this._tooltipClass),this._updateTooltipMessage(),We.show(X)}hide(X=this.hideDelay){const Le=this._tooltipInstance;Le&&(Le.isVisible()?Le.hide(X):(Le._cancelPendingAnimations(),this._detach()))}toggle(X){this._isTooltipVisible()?this.hide():this.show(void 0,X)}_isTooltipVisible(){return!!this._tooltipInstance&&this._tooltipInstance.isVisible()}_createOverlay(X){if(this._overlayRef){const We=this._overlayRef.getConfig().positionStrategy;if((!this.positionAtOrigin||!X)&&We._origin instanceof s.SBq)return this._overlayRef;this._detach()}const Le=this._scrollDispatcher.getAncestorScrollContainers(this._elementRef),$e=this._overlay.position().flexibleConnectedTo(this.positionAtOrigin&&X||this._elementRef).withTransformOriginOn(`.${this._cssClassPrefix}-tooltip`).withFlexibleDimensions(!1).withViewportMargin(this._viewportMargin).withScrollableContainers(Le);return $e.positionChanges.pipe((0,t.R)(this._destroyed)).subscribe(We=>{this._updateCurrentPositionClass(We.connectionPair),this._tooltipInstance&&We.scrollableViewProperties.isOverlayClipped&&this._tooltipInstance.isVisible()&&this._ngZone.run(()=>this.hide(0))}),this._overlayRef=this._overlay.create({direction:this._dir,positionStrategy:$e,panelClass:`${this._cssClassPrefix}-${$}`,scrollStrategy:this._scrollStrategy()}),this._updatePosition(this._overlayRef),this._overlayRef.detachments().pipe((0,t.R)(this._destroyed)).subscribe(()=>this._detach()),this._overlayRef.outsidePointerEvents().pipe((0,t.R)(this._destroyed)).subscribe(()=>this._tooltipInstance?._handleBodyInteraction()),this._overlayRef.keydownEvents().pipe((0,t.R)(this._destroyed)).subscribe(We=>{this._isTooltipVisible()&&We.keyCode===I.hY&&!(0,I.Vb)(We)&&(We.preventDefault(),We.stopPropagation(),this._ngZone.run(()=>this.hide(0)))}),this._defaultOptions?.disableTooltipInteractivity&&this._overlayRef.addPanelClass(`${this._cssClassPrefix}-tooltip-panel-non-interactive`),this._overlayRef}_detach(){this._overlayRef&&this._overlayRef.hasAttached()&&this._overlayRef.detach(),this._tooltipInstance=null}_updatePosition(X){const Le=X.getConfig().positionStrategy,$e=this._getOrigin(),We=this._getOverlayPosition();Le.withPositions([this._addOffset({...$e.main,...We.main}),this._addOffset({...$e.fallback,...We.fallback})])}_addOffset(X){return X}_getOrigin(){const X=!this._dir||"ltr"==this._dir.value,Le=this.position;let $e;"above"==Le||"below"==Le?$e={originX:"center",originY:"above"==Le?"top":"bottom"}:"before"==Le||"left"==Le&&X||"right"==Le&&!X?$e={originX:"start",originY:"center"}:("after"==Le||"right"==Le&&X||"left"==Le&&!X)&&($e={originX:"end",originY:"center"});const{x:We,y:Fe}=this._invertPosition($e.originX,$e.originY);return{main:$e,fallback:{originX:We,originY:Fe}}}_getOverlayPosition(){const X=!this._dir||"ltr"==this._dir.value,Le=this.position;let $e;"above"==Le?$e={overlayX:"center",overlayY:"bottom"}:"below"==Le?$e={overlayX:"center",overlayY:"top"}:"before"==Le||"left"==Le&&X||"right"==Le&&!X?$e={overlayX:"end",overlayY:"center"}:("after"==Le||"right"==Le&&X||"left"==Le&&!X)&&($e={overlayX:"start",overlayY:"center"});const{x:We,y:Fe}=this._invertPosition($e.overlayX,$e.overlayY);return{main:$e,fallback:{overlayX:We,overlayY:Fe}}}_updateTooltipMessage(){this._tooltipInstance&&(this._tooltipInstance.message=this.message,this._tooltipInstance._markForCheck(),this._ngZone.onMicrotaskEmpty.pipe((0,e.q)(1),(0,t.R)(this._destroyed)).subscribe(()=>{this._tooltipInstance&&this._overlayRef.updatePosition()}))}_setTooltipClass(X){this._tooltipInstance&&(this._tooltipInstance.tooltipClass=X,this._tooltipInstance._markForCheck())}_invertPosition(X,Le){return"above"===this.position||"below"===this.position?"top"===Le?Le="bottom":"bottom"===Le&&(Le="top"):"end"===X?X="start":"start"===X&&(X="end"),{x:X,y:Le}}_updateCurrentPositionClass(X){const{overlayY:Le,originX:$e,originY:We}=X;let Fe;if(Fe="center"===Le?this._dir&&"rtl"===this._dir.value?"end"===$e?"left":"right":"start"===$e?"left":"right":"bottom"===Le&&"top"===We?"above":"below",Fe!==this._currentPosition){const De=this._overlayRef;if(De){const ye=`${this._cssClassPrefix}-${$}-`;De.removePanelClass(ye+this._currentPosition),De.addPanelClass(ye+Fe)}this._currentPosition=Fe}}_setupPointerEnterEventsIfNeeded(){this._disabled||!this.message||!this._viewInitialized||this._passiveListeners.length||(this._platformSupportsMouseEvents()?this._passiveListeners.push(["mouseenter",X=>{let Le;this._setupPointerExitEventsIfNeeded(),void 0!==X.x&&void 0!==X.y&&(Le=X),this.show(void 0,Le)}]):"off"!==this.touchGestures&&(this._disableNativeGesturesIfNecessary(),this._passiveListeners.push(["touchstart",X=>{const Le=X.targetTouches?.[0],$e=Le?{x:Le.clientX,y:Le.clientY}:void 0;this._setupPointerExitEventsIfNeeded(),clearTimeout(this._touchstartTimeout),this._touchstartTimeout=setTimeout(()=>this.show(void 0,$e),500)}])),this._addListeners(this._passiveListeners))}_setupPointerExitEventsIfNeeded(){if(this._pointerExitEventsInitialized)return;this._pointerExitEventsInitialized=!0;const X=[];if(this._platformSupportsMouseEvents())X.push(["mouseleave",Le=>{const $e=Le.relatedTarget;(!$e||!this._overlayRef?.overlayElement.contains($e))&&this.hide()}],["wheel",Le=>this._wheelListener(Le)]);else if("off"!==this.touchGestures){this._disableNativeGesturesIfNecessary();const Le=()=>{clearTimeout(this._touchstartTimeout),this.hide(this._defaultOptions.touchendHideDelay)};X.push(["touchend",Le],["touchcancel",Le])}this._addListeners(X),this._passiveListeners.push(...X)}_addListeners(X){X.forEach(([Le,$e])=>{this._elementRef.nativeElement.addEventListener(Le,$e,me)})}_platformSupportsMouseEvents(){return!this._platform.IOS&&!this._platform.ANDROID}_wheelListener(X){if(this._isTooltipVisible()){const Le=this._document.elementFromPoint(X.clientX,X.clientY),$e=this._elementRef.nativeElement;Le!==$e&&!$e.contains(Le)&&this.hide()}}_disableNativeGesturesIfNecessary(){const X=this.touchGestures;if("off"!==X){const Le=this._elementRef.nativeElement,$e=Le.style;("on"===X||"INPUT"!==Le.nodeName&&"TEXTAREA"!==Le.nodeName)&&($e.userSelect=$e.msUserSelect=$e.webkitUserSelect=$e.MozUserSelect="none"),("on"===X||!Le.draggable)&&($e.webkitUserDrag="none"),$e.touchAction="none",$e.webkitTapHighlightColor="transparent"}}}return B.\u0275fac=function(X){s.$Z()},B.\u0275dir=s.lG2({type:B,inputs:{position:["matTooltipPosition","position"],positionAtOrigin:["matTooltipPositionAtOrigin","positionAtOrigin"],disabled:["matTooltipDisabled","disabled"],showDelay:["matTooltipShowDelay","showDelay"],hideDelay:["matTooltipHideDelay","hideDelay"],touchGestures:["matTooltipTouchGestures","touchGestures"],message:["matTooltip","message"],tooltipClass:["matTooltipClass","tooltipClass"]}}),B})(),T=(()=>{class B extends y{constructor(X,Le,$e,We,Fe,De,ye,ce,ve,oe,je,Ae){super(X,Le,$e,We,Fe,De,ye,ce,ve,oe,je,Ae),this._tooltipComponent=m,this._cssClassPrefix="mat-mdc",this._viewportMargin=8}_addOffset(X){const $e=!this._dir||"ltr"==this._dir.value;return"top"===X.originY?X.offsetY=-8:"bottom"===X.originY?X.offsetY=8:"start"===X.originX?X.offsetX=$e?-8:8:"end"===X.originX&&(X.offsetX=$e?8:-8),X}}return B.\u0275fac=function(X){return new(X||B)(s.Y36(S.aV),s.Y36(s.SBq),s.Y36(w.mF),s.Y36(s.s_b),s.Y36(s.R0b),s.Y36(h.t4),s.Y36(P.$s),s.Y36(P.tE),s.Y36(ee),s.Y36(d.Is,8),s.Y36(ne,8),s.Y36(C.K0))},B.\u0275dir=s.lG2({type:B,selectors:[["","matTooltip",""]],hostAttrs:[1,"mat-mdc-tooltip-trigger"],exportAs:["matTooltip"],features:[s.qOj]}),B})(),L=(()=>{class B{constructor(X,Le){this._changeDetectorRef=X,this._closeOnInteraction=!1,this._isVisible=!1,this._onHide=new E.x,this._animationsDisabled="NoopAnimations"===Le}show(X){clearTimeout(this._hideTimeoutId),this._showTimeoutId=setTimeout(()=>{this._toggleVisibility(!0),this._showTimeoutId=void 0},X)}hide(X){clearTimeout(this._showTimeoutId),this._hideTimeoutId=setTimeout(()=>{this._toggleVisibility(!1),this._hideTimeoutId=void 0},X)}afterHidden(){return this._onHide}isVisible(){return this._isVisible}ngOnDestroy(){this._cancelPendingAnimations(),this._onHide.complete(),this._triggerElement=null}_handleBodyInteraction(){this._closeOnInteraction&&this.hide(0)}_markForCheck(){this._changeDetectorRef.markForCheck()}_handleMouseLeave({relatedTarget:X}){(!X||!this._triggerElement.contains(X))&&(this.isVisible()?this.hide(this._mouseLeaveHideDelay):this._finalizeAnimation(!1))}_onShow(){}_handleAnimationEnd({animationName:X}){(X===this._showAnimation||X===this._hideAnimation)&&this._finalizeAnimation(X===this._showAnimation)}_cancelPendingAnimations(){clearTimeout(this._showTimeoutId),clearTimeout(this._hideTimeoutId),this._showTimeoutId=this._hideTimeoutId=void 0}_finalizeAnimation(X){X?this._closeOnInteraction=!0:this.isVisible()||this._onHide.next()}_toggleVisibility(X){const Le=this._tooltip.nativeElement,$e=this._showAnimation,We=this._hideAnimation;if(Le.classList.remove(X?We:$e),Le.classList.add(X?$e:We),this._isVisible=X,X&&!this._animationsDisabled&&"function"==typeof getComputedStyle){const Fe=getComputedStyle(Le);("0s"===Fe.getPropertyValue("animation-duration")||"none"===Fe.getPropertyValue("animation-name"))&&(this._animationsDisabled=!0)}X&&this._onShow(),this._animationsDisabled&&(Le.classList.add("_mat-animation-noopable"),this._finalizeAnimation(X))}}return B.\u0275fac=function(X){return new(X||B)(s.Y36(s.sBO),s.Y36(s.QbO,8))},B.\u0275dir=s.lG2({type:B}),B})(),m=(()=>{class B extends L{constructor(X,Le,$e){super(X,$e),this._elementRef=Le,this._isMultiline=!1,this._showAnimation="mat-mdc-tooltip-show",this._hideAnimation="mat-mdc-tooltip-hide"}_onShow(){this._isMultiline=this._isTooltipMultiline(),this._markForCheck()}_isTooltipMultiline(){const X=this._elementRef.nativeElement.getBoundingClientRect();return X.height>24&&X.width>=200}}return B.\u0275fac=function(X){return new(X||B)(s.Y36(s.sBO),s.Y36(s.SBq),s.Y36(s.QbO,8))},B.\u0275cmp=s.Xpm({type:B,selectors:[["mat-tooltip-component"]],viewQuery:function(X,Le){if(1&X&&s.Gf(U,7),2&X){let $e;s.iGM($e=s.CRH())&&(Le._tooltip=$e.first)}},hostAttrs:["aria-hidden","true"],hostVars:2,hostBindings:function(X,Le){1&X&&s.NdJ("mouseleave",function(We){return Le._handleMouseLeave(We)}),2&X&&s.Udp("zoom",Le.isVisible()?1:null)},features:[s.qOj],decls:4,vars:4,consts:[[1,"mdc-tooltip","mdc-tooltip--shown","mat-mdc-tooltip",3,"ngClass","animationend"],["tooltip",""],[1,"mdc-tooltip__surface","mdc-tooltip__surface-animation"]],template:function(X,Le){1&X&&(s.TgZ(0,"div",0,1),s.NdJ("animationend",function(We){return Le._handleAnimationEnd(We)}),s.TgZ(2,"div",2),s._uU(3),s.qZA()()),2&X&&(s.ekj("mdc-tooltip--multiline",Le._isMultiline),s.Q6J("ngClass",Le.tooltipClass),s.xp6(3),s.Oqu(Le.message))},dependencies:[C.mk],styles:['.mdc-tooltip__surface{word-break:var(--mdc-tooltip-word-break, normal);overflow-wrap:anywhere}.mdc-tooltip{position:fixed;display:none;z-index:9}.mdc-tooltip-wrapper--rich{position:relative}.mdc-tooltip--shown,.mdc-tooltip--showing,.mdc-tooltip--hide{display:inline-flex}.mdc-tooltip--shown.mdc-tooltip--rich,.mdc-tooltip--showing.mdc-tooltip--rich,.mdc-tooltip--hide.mdc-tooltip--rich{display:inline-block;left:-320px;position:absolute}.mdc-tooltip__surface{line-height:16px;padding:4px 8px;min-width:40px;max-width:200px;min-height:24px;max-height:40vh;box-sizing:border-box;overflow:hidden;text-align:center}.mdc-tooltip__surface::before{position:absolute;box-sizing:border-box;width:100%;height:100%;top:0;left:0;border:1px solid rgba(0,0,0,0);border-radius:inherit;content:"";pointer-events:none}@media screen and (forced-colors: active){.mdc-tooltip__surface::before{border-color:CanvasText}}.mdc-tooltip--rich .mdc-tooltip__surface{align-items:flex-start;display:flex;flex-direction:column;min-height:24px;min-width:40px;max-width:320px;position:relative}.mdc-tooltip--multiline .mdc-tooltip__surface{text-align:left}[dir=rtl] .mdc-tooltip--multiline .mdc-tooltip__surface,.mdc-tooltip--multiline .mdc-tooltip__surface[dir=rtl]{text-align:right}.mdc-tooltip__surface .mdc-tooltip__title{margin:0 8px}.mdc-tooltip__surface .mdc-tooltip__content{max-width:calc(200px - (2 * 8px));margin:8px;text-align:left}[dir=rtl] .mdc-tooltip__surface .mdc-tooltip__content,.mdc-tooltip__surface .mdc-tooltip__content[dir=rtl]{text-align:right}.mdc-tooltip--rich .mdc-tooltip__surface .mdc-tooltip__content{max-width:calc(320px - (2 * 8px));align-self:stretch}.mdc-tooltip__surface .mdc-tooltip__content-link{text-decoration:none}.mdc-tooltip--rich-actions,.mdc-tooltip__content,.mdc-tooltip__title{z-index:1}.mdc-tooltip__surface-animation{opacity:0;transform:scale(0.8);will-change:transform,opacity}.mdc-tooltip--shown .mdc-tooltip__surface-animation{transform:scale(1);opacity:1}.mdc-tooltip--hide .mdc-tooltip__surface-animation{transform:scale(1)}.mdc-tooltip__caret-surface-top,.mdc-tooltip__caret-surface-bottom{position:absolute;height:24px;width:24px;transform:rotate(35deg) skewY(20deg) scaleX(0.9396926208)}.mdc-tooltip__caret-surface-top .mdc-elevation-overlay,.mdc-tooltip__caret-surface-bottom .mdc-elevation-overlay{width:100%;height:100%;top:0;left:0}.mdc-tooltip__caret-surface-bottom{outline:1px solid rgba(0,0,0,0);z-index:-1}@media screen and (forced-colors: active){.mdc-tooltip__caret-surface-bottom{outline-color:CanvasText}}.mdc-tooltip__surface{background-color:var(--mdc-plain-tooltip-container-color, #fff)}.mdc-tooltip__surface{border-radius:var(--mdc-plain-tooltip-container-shape, var(--mdc-shape-small, 4px))}.mdc-tooltip__caret-surface-top,.mdc-tooltip__caret-surface-bottom{border-radius:var(--mdc-plain-tooltip-container-shape, var(--mdc-shape-small, 4px))}.mdc-tooltip__surface{color:var(--mdc-plain-tooltip-supporting-text-color, #000)}.mdc-tooltip__surface{font-family:var(--mdc-plain-tooltip-supporting-text-font, inherit);font-size:var(--mdc-plain-tooltip-supporting-text-size, inherit);font-weight:var(--mdc-plain-tooltip-supporting-text-weight, inherit);letter-spacing:var(--mdc-plain-tooltip-supporting-text-tracking, inherit)}.mat-mdc-tooltip{position:relative;transform:scale(0)}.mat-mdc-tooltip::before{content:"";top:-8px;right:-8px;bottom:-8px;left:-8px;z-index:-1;position:absolute}.mat-mdc-tooltip._mat-animation-noopable{animation:none;transform:scale(1)}.mat-mdc-tooltip-panel-non-interactive{pointer-events:none}@keyframes mat-mdc-tooltip-show{0%{opacity:0;transform:scale(0.8)}100%{opacity:1;transform:scale(1)}}@keyframes mat-mdc-tooltip-hide{0%{opacity:1;transform:scale(1)}100%{opacity:0;transform:scale(0.8)}}.mat-mdc-tooltip-show{animation:mat-mdc-tooltip-show 150ms cubic-bezier(0, 0, 0.2, 1) forwards}.mat-mdc-tooltip-hide{animation:mat-mdc-tooltip-hide 75ms cubic-bezier(0.4, 0, 1, 1) forwards}'],encapsulation:2,changeDetection:0}),B})(),_=(()=>{class B{}return B.\u0275fac=function(X){return new(X||B)},B.\u0275mod=s.oAB({type:B}),B.\u0275inj=s.cJS({providers:[ue],imports:[P.rt,C.ez,S.U8,z.BQ,z.BQ,w.ZD]}),B})()},5423:(Ve,q,p)=>{"use strict";p.d(q,{Ar:()=>R,GZ:()=>O,WX:()=>ue,dp:()=>K,eu:()=>U,fQ:()=>w,gi:()=>z,uo:()=>S});var t=p(7851),e=p(4650),b=p(3238),I=p(1281),s=p(5017),C=p(1135),h=p(6451),P=p(4004);const d=(0,b.sb)((0,b.Id)(t.Hs));let S=(()=>{class le extends d{constructor(de,$,me){super(de,$),this.tabIndex=Number(me)||0}ngOnInit(){super.ngOnInit()}ngOnDestroy(){super.ngOnDestroy()}}return le.\u0275fac=function(de){return new(de||le)(e.Y36(e.SBq),e.Y36(t._0),e.$8M("tabindex"))},le.\u0275dir=e.lG2({type:le,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:le}]),e.qOj]}),le})(),w=(()=>{class le extends t.rO{}return le.\u0275fac=function(){let ne;return function($){return(ne||(ne=e.n5z(le)))($||le)}}(),le.\u0275dir=e.lG2({type:le,selectors:[["","matTreeNodeDef",""]],inputs:{when:["matTreeNodeDefWhen","when"],data:["matTreeNode","data"]},features:[e._Bn([{provide:t.rO,useExisting:le}]),e.qOj]}),le})(),O=(()=>{class le extends t.Xx{get disabled(){return this._disabled}set disabled(de){this._disabled=(0,I.Ig)(de)}get tabIndex(){return this.disabled?-1:this._tabIndex}set tabIndex(de){this._tabIndex=de??0}constructor(de,$,me,A){super(de,$,me),this._disabled=!1,this.tabIndex=Number(A)||0}ngOnInit(){super.ngOnInit()}ngAfterContentInit(){super.ngAfterContentInit()}ngOnDestroy(){super.ngOnDestroy()}}return le.\u0275fac=function(de){return new(de||le)(e.Y36(e.SBq),e.Y36(t._0),e.Y36(e.ZZ4),e.$8M("tabindex"))},le.\u0275dir=e.lG2({type:le,selectors:[["mat-nested-tree-node"]],hostAttrs:[1,"mat-nested-tree-node"],inputs:{role:"role",disabled:"disabled",tabIndex:"tabIndex",node:["matNestedTreeNode","node"]},exportAs:["matNestedTreeNode"],features:[e._Bn([{provide:t.Xx,useExisting:le},{provide:t.Hs,useExisting:le},{provide:t.HI,useExisting:le}]),e.qOj]}),le})(),R=(()=>{class le{constructor(de,$){this.viewContainer=de,this._node=$}}return le.\u0275fac=function(de){return new(de||le)(e.Y36(e.s_b),e.Y36(t.HI,8))},le.\u0275dir=e.lG2({type:le,selectors:[["","matTreeNodeOutlet",""]],features:[e._Bn([{provide:t.cu,useExisting:le}])]}),le})(),z=(()=>{class le extends t._0{}return le.\u0275fac=function(){let ne;return function($){return(ne||(ne=e.n5z(le)))($||le)}}(),le.\u0275cmp=e.Xpm({type:le,selectors:[["mat-tree"]],viewQuery:function(de,$){if(1&de&&e.Gf(R,7),2&de){let me;e.iGM(me=e.CRH())&&($._nodeOutlet=me.first)}},hostAttrs:["role","tree",1,"mat-tree"],exportAs:["matTree"],features:[e._Bn([{provide:t._0,useExisting:le}]),e.qOj],decls:1,vars:0,consts:[["matTreeNodeOutlet",""]],template:function(de,$){1&de&&e.GkF(0,0)},dependencies:[R],styles:[".mat-tree{display:block}.mat-tree-node{display:flex;align-items:center;flex:1;word-wrap:break-word}.mat-nested-tree-node{border-bottom-width:0}"],encapsulation:2}),le})(),U=(()=>{class le extends t.Ud{}return le.\u0275fac=function(){let ne;return function($){return(ne||(ne=e.n5z(le)))($||le)}}(),le.\u0275dir=e.lG2({type:le,selectors:[["","matTreeNodeToggle",""]],inputs:{recursive:["matTreeNodeToggleRecursive","recursive"]},features:[e._Bn([{provide:t.Ud,useExisting:le}]),e.qOj]}),le})(),K=(()=>{class le{}return le.\u0275fac=function(de){return new(de||le)},le.\u0275mod=e.oAB({type:le}),le.\u0275inj=e.cJS({imports:[t.nZ,b.BQ,b.BQ]}),le})();class ue extends s.o2{constructor(){super(...arguments),this._data=new C.X([])}get data(){return this._data.value}set data(ne){this._data.next(ne)}connect(ne){return(0,h.T)(ne.viewChange,this._data).pipe((0,P.U)(()=>this.data))}disconnect(){}}},1481:(Ve,q,p)=>{"use strict";p.d(q,{Dx:()=>Je,H7:()=>tt,b2:()=>Ue,q6:()=>Ae,se:()=>u,t6:()=>ut});var t=p(6895),e=p(4650);class b extends t.w_{constructor(){super(...arguments),this.supportsDOMEvents=!0}}class I extends b{static makeCurrent(){(0,t.HT)(new I)}onAndCancel(Rt,Oe,et){return Rt.addEventListener(Oe,et,!1),()=>{Rt.removeEventListener(Oe,et,!1)}}dispatchEvent(Rt,Oe){Rt.dispatchEvent(Oe)}remove(Rt){Rt.parentNode&&Rt.parentNode.removeChild(Rt)}createElement(Rt,Oe){return(Oe=Oe||this.getDefaultDocument()).createElement(Rt)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(Rt){return Rt.nodeType===Node.ELEMENT_NODE}isShadowRoot(Rt){return Rt instanceof DocumentFragment}getGlobalEventTarget(Rt,Oe){return"window"===Oe?window:"document"===Oe?Rt:"body"===Oe?Rt.body:null}getBaseHref(Rt){const Oe=function C(){return s=s||document.querySelector("base"),s?s.getAttribute("href"):null}();return null==Oe?null:function P(ht){h=h||document.createElement("a"),h.setAttribute("href",ht);const Rt=h.pathname;return"/"===Rt.charAt(0)?Rt:`/${Rt}`}(Oe)}resetBaseElement(){s=null}getUserAgent(){return window.navigator.userAgent}getCookie(Rt){return(0,t.Mx)(document.cookie,Rt)}}let h,s=null;const d=new e.OlP("TRANSITION_ID"),w=[{provide:e.ip1,useFactory:function S(ht,Rt,Oe){return()=>{Oe.get(e.CZH).donePromise.then(()=>{const et=(0,t.q)(),it=Rt.querySelectorAll(`style[ng-transition="${ht}"]`);for(let ct=0;ct<it.length;ct++)et.remove(it[ct])})}},deps:[d,t.K0,e.zs3],multi:!0}];let E=(()=>{class ht{build(){return new XMLHttpRequest}}return ht.\u0275fac=function(Oe){return new(Oe||ht)},ht.\u0275prov=e.Yz7({token:ht,factory:ht.\u0275fac}),ht})();const R=new e.OlP("EventManagerPlugins");let z=(()=>{class ht{constructor(Oe,et){this._zone=et,this._eventNameToPlugin=new Map,Oe.forEach(it=>it.manager=this),this._plugins=Oe.slice().reverse()}addEventListener(Oe,et,it){return this._findPluginFor(et).addEventListener(Oe,et,it)}addGlobalEventListener(Oe,et,it){return this._findPluginFor(et).addGlobalEventListener(Oe,et,it)}getZone(){return this._zone}_findPluginFor(Oe){const et=this._eventNameToPlugin.get(Oe);if(et)return et;const it=this._plugins;for(let ct=0;ct<it.length;ct++){const Dt=it[ct];if(Dt.supports(Oe))return this._eventNameToPlugin.set(Oe,Dt),Dt}throw new Error(`No event manager plugin found for event ${Oe}`)}}return ht.\u0275fac=function(Oe){return new(Oe||ht)(e.LFG(R),e.LFG(e.R0b))},ht.\u0275prov=e.Yz7({token:ht,factory:ht.\u0275fac}),ht})();class U{constructor(Rt){this._doc=Rt}addGlobalEventListener(Rt,Oe,et){const it=(0,t.q)().getGlobalEventTarget(this._doc,Rt);if(!it)throw new Error(`Unsupported event target ${it} for event ${Oe}`);return this.addEventListener(it,Oe,et)}}let W=(()=>{class ht{constructor(){this._stylesSet=new Set}addStyles(Oe){const et=new Set;Oe.forEach(it=>{this._stylesSet.has(it)||(this._stylesSet.add(it),et.add(it))}),this.onStylesAdded(et)}onStylesAdded(Oe){}getAllStyles(){return Array.from(this._stylesSet)}}return ht.\u0275fac=function(Oe){return new(Oe||ht)},ht.\u0275prov=e.Yz7({token:ht,factory:ht.\u0275fac}),ht})(),K=(()=>{class ht extends W{constructor(Oe){super(),this._doc=Oe,this._hostNodes=new Map,this._hostNodes.set(Oe.head,[])}_addStylesToHost(Oe,et,it){Oe.forEach(ct=>{const Dt=this._doc.createElement("style");Dt.textContent=ct,it.push(et.appendChild(Dt))})}addHost(Oe){const et=[];this._addStylesToHost(this._stylesSet,Oe,et),this._hostNodes.set(Oe,et)}removeHost(Oe){const et=this._hostNodes.get(Oe);et&&et.forEach(ee),this._hostNodes.delete(Oe)}onStylesAdded(Oe){this._hostNodes.forEach((et,it)=>{this._addStylesToHost(Oe,it,et)})}ngOnDestroy(){this._hostNodes.forEach(Oe=>Oe.forEach(ee))}}return ht.\u0275fac=function(Oe){return new(Oe||ht)(e.LFG(t.K0))},ht.\u0275prov=e.Yz7({token:ht,factory:ht.\u0275fac}),ht})();function ee(ht){(0,t.q)().remove(ht)}const ie={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/"},ue=/%COMP%/g;function i(ht,Rt){return Rt.flat(100).map(Oe=>Oe.replace(ue,ht))}function a(ht){return Rt=>{if("__ngUnwrap__"===Rt)return ht;!1===ht(Rt)&&(Rt.preventDefault(),Rt.returnValue=!1)}}let u=(()=>{class ht{constructor(Oe,et,it){this.eventManager=Oe,this.sharedStylesHost=et,this.appId=it,this.rendererByCompId=new Map,this.defaultRenderer=new l(Oe)}createRenderer(Oe,et){if(!Oe||!et)return this.defaultRenderer;switch(et.encapsulation){case e.ifc.Emulated:{let it=this.rendererByCompId.get(et.id);return it||(it=new m(this.eventManager,this.sharedStylesHost,et,this.appId),this.rendererByCompId.set(et.id,it)),it.applyToHost(Oe),it}case e.ifc.ShadowDom:return new n(this.eventManager,this.sharedStylesHost,Oe,et);default:if(!this.rendererByCompId.has(et.id)){const it=i(et.id,et.styles);this.sharedStylesHost.addStyles(it),this.rendererByCompId.set(et.id,this.defaultRenderer)}return this.defaultRenderer}}begin(){}end(){}}return ht.\u0275fac=function(Oe){return new(Oe||ht)(e.LFG(z),e.LFG(K),e.LFG(e.AFp))},ht.\u0275prov=e.Yz7({token:ht,factory:ht.\u0275fac}),ht})();class l{constructor(Rt){this.eventManager=Rt,this.data=Object.create(null),this.destroyNode=null}destroy(){}createElement(Rt,Oe){return Oe?document.createElementNS(ie[Oe]||Oe,Rt):document.createElement(Rt)}createComment(Rt){return document.createComment(Rt)}createText(Rt){return document.createTextNode(Rt)}appendChild(Rt,Oe){(L(Rt)?Rt.content:Rt).appendChild(Oe)}insertBefore(Rt,Oe,et){Rt&&(L(Rt)?Rt.content:Rt).insertBefore(Oe,et)}removeChild(Rt,Oe){Rt&&Rt.removeChild(Oe)}selectRootElement(Rt,Oe){let et="string"==typeof Rt?document.querySelector(Rt):Rt;if(!et)throw new Error(`The selector "${Rt}" did not match any elements`);return Oe||(et.textContent=""),et}parentNode(Rt){return Rt.parentNode}nextSibling(Rt){return Rt.nextSibling}setAttribute(Rt,Oe,et,it){if(it){Oe=it+":"+Oe;const ct=ie[it];ct?Rt.setAttributeNS(ct,Oe,et):Rt.setAttribute(Oe,et)}else Rt.setAttribute(Oe,et)}removeAttribute(Rt,Oe,et){if(et){const it=ie[et];it?Rt.removeAttributeNS(it,Oe):Rt.removeAttribute(`${et}:${Oe}`)}else Rt.removeAttribute(Oe)}addClass(Rt,Oe){Rt.classList.add(Oe)}removeClass(Rt,Oe){Rt.classList.remove(Oe)}setStyle(Rt,Oe,et,it){it&(e.JOm.DashCase|e.JOm.Important)?Rt.style.setProperty(Oe,et,it&e.JOm.Important?"important":""):Rt.style[Oe]=et}removeStyle(Rt,Oe,et){et&e.JOm.DashCase?Rt.style.removeProperty(Oe):Rt.style[Oe]=""}setProperty(Rt,Oe,et){Rt[Oe]=et}setValue(Rt,Oe){Rt.nodeValue=Oe}listen(Rt,Oe,et){return"string"==typeof Rt?this.eventManager.addGlobalEventListener(Rt,Oe,a(et)):this.eventManager.addEventListener(Rt,Oe,a(et))}}function L(ht){return"TEMPLATE"===ht.tagName&&void 0!==ht.content}class m extends l{constructor(Rt,Oe,et,it){super(Rt),this.component=et;const ct=i(it+"-"+et.id,et.styles);Oe.addStyles(ct),this.contentAttr=function me(ht){return"_ngcontent-%COMP%".replace(ue,ht)}(it+"-"+et.id),this.hostAttr=function A(ht){return"_nghost-%COMP%".replace(ue,ht)}(it+"-"+et.id)}applyToHost(Rt){super.setAttribute(Rt,this.hostAttr,"")}createElement(Rt,Oe){const et=super.createElement(Rt,Oe);return super.setAttribute(et,this.contentAttr,""),et}}class n extends l{constructor(Rt,Oe,et,it){super(Rt),this.sharedStylesHost=Oe,this.hostEl=et,this.shadowRoot=et.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);const ct=i(it.id,it.styles);for(let Dt=0;Dt<ct.length;Dt++){const pi=document.createElement("style");pi.textContent=ct[Dt],this.shadowRoot.appendChild(pi)}}nodeOrShadowRoot(Rt){return Rt===this.hostEl?this.shadowRoot:Rt}destroy(){this.sharedStylesHost.removeHost(this.shadowRoot)}appendChild(Rt,Oe){return super.appendChild(this.nodeOrShadowRoot(Rt),Oe)}insertBefore(Rt,Oe,et){return super.insertBefore(this.nodeOrShadowRoot(Rt),Oe,et)}removeChild(Rt,Oe){return super.removeChild(this.nodeOrShadowRoot(Rt),Oe)}parentNode(Rt){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(Rt)))}}let _=(()=>{class ht extends U{constructor(Oe){super(Oe)}supports(Oe){return!0}addEventListener(Oe,et,it){return Oe.addEventListener(et,it,!1),()=>this.removeEventListener(Oe,et,it)}removeEventListener(Oe,et,it){return Oe.removeEventListener(et,it)}}return ht.\u0275fac=function(Oe){return new(Oe||ht)(e.LFG(t.K0))},ht.\u0275prov=e.Yz7({token:ht,factory:ht.\u0275fac}),ht})();const B=["alt","control","meta","shift"],V={"\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"},X={alt:ht=>ht.altKey,control:ht=>ht.ctrlKey,meta:ht=>ht.metaKey,shift:ht=>ht.shiftKey};let Le=(()=>{class ht extends U{constructor(Oe){super(Oe)}supports(Oe){return null!=ht.parseEventName(Oe)}addEventListener(Oe,et,it){const ct=ht.parseEventName(et),Dt=ht.eventCallback(ct.fullKey,it,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>(0,t.q)().onAndCancel(Oe,ct.domEventName,Dt))}static parseEventName(Oe){const et=Oe.toLowerCase().split("."),it=et.shift();if(0===et.length||"keydown"!==it&&"keyup"!==it)return null;const ct=ht._normalizeKey(et.pop());let Dt="",pi=et.indexOf("code");if(pi>-1&&(et.splice(pi,1),Dt="code."),B.forEach(xi=>{const Fi=et.indexOf(xi);Fi>-1&&(et.splice(Fi,1),Dt+=xi+".")}),Dt+=ct,0!=et.length||0===ct.length)return null;const Li={};return Li.domEventName=it,Li.fullKey=Dt,Li}static matchEventFullKeyCode(Oe,et){let it=V[Oe.key]||Oe.key,ct="";return et.indexOf("code.")>-1&&(it=Oe.code,ct="code."),!(null==it||!it)&&(it=it.toLowerCase()," "===it?it="space":"."===it&&(it="dot"),B.forEach(Dt=>{Dt!==it&&(0,X[Dt])(Oe)&&(ct+=Dt+".")}),ct+=it,ct===et)}static eventCallback(Oe,et,it){return ct=>{ht.matchEventFullKeyCode(ct,Oe)&&it.runGuarded(()=>et(ct))}}static _normalizeKey(Oe){return"esc"===Oe?"escape":Oe}}return ht.\u0275fac=function(Oe){return new(Oe||ht)(e.LFG(t.K0))},ht.\u0275prov=e.Yz7({token:ht,factory:ht.\u0275fac}),ht})();const Ae=(0,e.eFA)(e._c5,"browser",[{provide:e.Lbi,useValue:t.bD},{provide:e.g9A,useValue:function ce(){I.makeCurrent()},multi:!0},{provide:t.K0,useFactory:function oe(){return(0,e.RDi)(document),document},deps:[]}]),he=new e.OlP(""),Ce=[{provide:e.rWj,useClass:class O{addToWindow(Rt){e.dqk.getAngularTestability=(et,it=!0)=>{const ct=Rt.findTestabilityInTree(et,it);if(null==ct)throw new Error("Could not find testability for element.");return ct},e.dqk.getAllAngularTestabilities=()=>Rt.getAllTestabilities(),e.dqk.getAllAngularRootElements=()=>Rt.getAllRootElements(),e.dqk.frameworkStabilizers||(e.dqk.frameworkStabilizers=[]),e.dqk.frameworkStabilizers.push(et=>{const it=e.dqk.getAllAngularTestabilities();let ct=it.length,Dt=!1;const pi=function(Li){Dt=Dt||Li,ct--,0==ct&&et(Dt)};it.forEach(function(Li){Li.whenStable(pi)})})}findTestabilityInTree(Rt,Oe,et){return null==Oe?null:Rt.getTestability(Oe)??(et?(0,t.q)().isShadowRoot(Oe)?this.findTestabilityInTree(Rt,Oe.host,!0):this.findTestabilityInTree(Rt,Oe.parentElement,!0):null)}},deps:[]},{provide:e.lri,useClass:e.dDg,deps:[e.R0b,e.eoX,e.rWj]},{provide:e.dDg,useClass:e.dDg,deps:[e.R0b,e.eoX,e.rWj]}],te=[{provide:e.zSh,useValue:"root"},{provide:e.qLn,useFactory:function ve(){return new e.qLn},deps:[]},{provide:R,useClass:_,multi:!0,deps:[t.K0,e.R0b,e.Lbi]},{provide:R,useClass:Le,multi:!0,deps:[t.K0]},{provide:u,useClass:u,deps:[z,K,e.AFp]},{provide:e.FYo,useExisting:u},{provide:W,useExisting:K},{provide:K,useClass:K,deps:[t.K0]},{provide:z,useClass:z,deps:[R,e.R0b]},{provide:t.JF,useClass:E,deps:[]},[]];let Ue=(()=>{class ht{constructor(Oe){}static withServerTransition(Oe){return{ngModule:ht,providers:[{provide:e.AFp,useValue:Oe.appId},{provide:d,useExisting:e.AFp},w]}}}return ht.\u0275fac=function(Oe){return new(Oe||ht)(e.LFG(he,12))},ht.\u0275mod=e.oAB({type:ht}),ht.\u0275inj=e.cJS({providers:[...te,...Ce],imports:[t.ez,e.hGG]}),ht})(),Je=(()=>{class ht{constructor(Oe){this._doc=Oe}getTitle(){return this._doc.title}setTitle(Oe){this._doc.title=Oe||""}}return ht.\u0275fac=function(Oe){return new(Oe||ht)(e.LFG(t.K0))},ht.\u0275prov=e.Yz7({token:ht,factory:function(Oe){let et=null;return et=Oe?new Oe:function ft(){return new Je((0,e.LFG)(t.K0))}(),et},providedIn:"root"}),ht})();typeof window<"u"&&window;const He={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},at=new e.OlP("HammerGestureConfig"),ii=new e.OlP("HammerLoader");let Gt=(()=>{class ht{constructor(){this.events=[],this.overrides={}}buildHammer(Oe){const et=new Hammer(Oe,this.options);et.get("pinch").set({enable:!0}),et.get("rotate").set({enable:!0});for(const it in this.overrides)et.get(it).set(this.overrides[it]);return et}}return ht.\u0275fac=function(Oe){return new(Oe||ht)},ht.\u0275prov=e.Yz7({token:ht,factory:ht.\u0275fac}),ht})(),ni=(()=>{class ht extends U{constructor(Oe,et,it,ct){super(Oe),this._config=et,this.console=it,this.loader=ct,this._loaderPromise=null}supports(Oe){return!(!He.hasOwnProperty(Oe.toLowerCase())&&!this.isCustomEvent(Oe)||!window.Hammer&&!this.loader)}addEventListener(Oe,et,it){const ct=this.manager.getZone();if(et=et.toLowerCase(),!window.Hammer&&this.loader){this._loaderPromise=this._loaderPromise||ct.runOutsideAngular(()=>this.loader());let Dt=!1,pi=()=>{Dt=!0};return ct.runOutsideAngular(()=>this._loaderPromise.then(()=>{window.Hammer?Dt||(pi=this.addEventListener(Oe,et,it)):pi=()=>{}}).catch(()=>{pi=()=>{}})),()=>{pi()}}return ct.runOutsideAngular(()=>{const Dt=this._config.buildHammer(Oe),pi=function(Li){ct.runGuarded(function(){it(Li)})};return Dt.on(et,pi),()=>{Dt.off(et,pi),"function"==typeof Dt.destroy&&Dt.destroy()}})}isCustomEvent(Oe){return this._config.events.indexOf(Oe)>-1}}return ht.\u0275fac=function(Oe){return new(Oe||ht)(e.LFG(t.K0),e.LFG(at),e.LFG(e.c2e),e.LFG(ii,8))},ht.\u0275prov=e.Yz7({token:ht,factory:ht.\u0275fac}),ht})(),ut=(()=>{class ht{}return ht.\u0275fac=function(Oe){return new(Oe||ht)},ht.\u0275mod=e.oAB({type:ht}),ht.\u0275inj=e.cJS({providers:[{provide:R,useClass:ni,multi:!0,deps:[t.K0,at,e.c2e,[new e.FiY,ii]]},{provide:at,useClass:Gt,deps:[]}]}),ht})(),tt=(()=>{class ht{}return ht.\u0275fac=function(Oe){return new(Oe||ht)},ht.\u0275prov=e.Yz7({token:ht,factory:function(Oe){let et=null;return et=Oe?new(Oe||ht):e.LFG(ti),et},providedIn:"root"}),ht})(),ti=(()=>{class ht extends tt{constructor(Oe){super(),this._doc=Oe}sanitize(Oe,et){if(null==et)return null;switch(Oe){case e.q3G.NONE:return et;case e.q3G.HTML:return(0,e.qzn)(et,"HTML")?(0,e.z3N)(et):(0,e.EiD)(this._doc,String(et)).toString();case e.q3G.STYLE:return(0,e.qzn)(et,"Style")?(0,e.z3N)(et):et;case e.q3G.SCRIPT:if((0,e.qzn)(et,"Script"))return(0,e.z3N)(et);throw new Error("unsafe value used in a script context");case e.q3G.URL:return(0,e.qzn)(et,"URL")?(0,e.z3N)(et):(0,e.mCW)(String(et));case e.q3G.RESOURCE_URL:if((0,e.qzn)(et,"ResourceURL"))return(0,e.z3N)(et);throw new Error(`unsafe value used in a resource URL context (see ${e.JZr})`);default:throw new Error(`Unexpected SecurityContext ${Oe} (see ${e.JZr})`)}}bypassSecurityTrustHtml(Oe){return(0,e.JVY)(Oe)}bypassSecurityTrustStyle(Oe){return(0,e.L6k)(Oe)}bypassSecurityTrustScript(Oe){return(0,e.eBb)(Oe)}bypassSecurityTrustUrl(Oe){return(0,e.LAX)(Oe)}bypassSecurityTrustResourceUrl(Oe){return(0,e.pB0)(Oe)}}return ht.\u0275fac=function(Oe){return new(Oe||ht)(e.LFG(t.K0))},ht.\u0275prov=e.Yz7({token:ht,factory:function(Oe){let et=null;return et=Oe?new Oe:function vt(ht){return new ti(ht.get(t.K0))}(e.LFG(e.zs3)),et},providedIn:"root"}),ht})()},9116:(Ve,q,p)=>{"use strict";p.d(q,{gz:()=>jn,gk:()=>Yt,m2:()=>oi,Q3:()=>on,OD:()=>zt,Av:()=>Oa,F0:()=>Pr,rH:()=>tc,Od:()=>jc,Bz:()=>$1,lC:()=>aa});var t=p(4650),e=p(457),b=p(9646),I=p(1135),s=p(6805),C=p(9841),h=p(7272),P=p(9770),d=p(9635),S=p(2843),w=p(9751),O=p(515),E=p(4033),R=p(7579),z=p(6895),U=p(4004),W=p(3900),K=p(5698),ee=p(8675),ie=p(9300),ue=p(5577),le=p(590),ne=p(4351),de=p(8505),$=p(262),me=p(5026),A=p(4482),i=p(5403);function a(pe){return pe<=0?()=>O.E:(0,A.e)((Me,re)=>{let Ne=[];Me.subscribe((0,i.x)(re,nt=>{Ne.push(nt),pe<Ne.length&&Ne.shift()},()=>{for(const nt of Ne)re.next(nt);re.complete()},void 0,()=>{Ne=null}))})}var u=p(8068),l=p(6590),y=p(4671);function T(pe,Me){const re=arguments.length>=2;return Ne=>Ne.pipe(pe?(0,ie.h)((nt,At)=>pe(nt,At,Ne)):y.y,a(1),re?(0,l.d)(Me):(0,u.T)(()=>new s.K))}var L=p(2529),m=p(9718),n=p(8746),_=p(8343),B=p(8189),V=p(1481);const X="primary",Le=Symbol("RouteTitle");class $e{constructor(Me){this.params=Me||{}}has(Me){return Object.prototype.hasOwnProperty.call(this.params,Me)}get(Me){if(this.has(Me)){const re=this.params[Me];return Array.isArray(re)?re[0]:re}return null}getAll(Me){if(this.has(Me)){const re=this.params[Me];return Array.isArray(re)?re:[re]}return[]}get keys(){return Object.keys(this.params)}}function We(pe){return new $e(pe)}function Fe(pe,Me,re){const Ne=re.path.split("/");if(Ne.length>pe.length||"full"===re.pathMatch&&(Me.hasChildren()||Ne.length<pe.length))return null;const nt={};for(let At=0;At<Ne.length;At++){const Ft=Ne[At],fi=pe[At];if(Ft.startsWith(":"))nt[Ft.substring(1)]=fi;else if(Ft!==fi.path)return null}return{consumed:pe.slice(0,Ne.length),posParams:nt}}function ye(pe,Me){const re=pe?Object.keys(pe):void 0,Ne=Me?Object.keys(Me):void 0;if(!re||!Ne||re.length!=Ne.length)return!1;let nt;for(let At=0;At<re.length;At++)if(nt=re[At],!ce(pe[nt],Me[nt]))return!1;return!0}function ce(pe,Me){if(Array.isArray(pe)&&Array.isArray(Me)){if(pe.length!==Me.length)return!1;const re=[...pe].sort(),Ne=[...Me].sort();return re.every((nt,At)=>Ne[At]===nt)}return pe===Me}function ve(pe){return Array.prototype.concat.apply([],pe)}function oe(pe){return pe.length>0?pe[pe.length-1]:null}function Ae(pe,Me){for(const re in pe)pe.hasOwnProperty(re)&&Me(pe[re],re)}function he(pe){return(0,t.CqO)(pe)?pe:(0,t.QGY)(pe)?(0,e.D)(Promise.resolve(pe)):(0,b.of)(pe)}const Ce=!1,te={exact:function ge(pe,Me,re){if(!Ke(pe.segments,Me.segments)||!Et(pe.segments,Me.segments,re)||pe.numberOfChildren!==Me.numberOfChildren)return!1;for(const Ne in Me.children)if(!pe.children[Ne]||!ge(pe.children[Ne],Me.children[Ne],re))return!1;return!0},subset:Je},Ue={exact:function ae(pe,Me){return ye(pe,Me)},subset:function ft(pe,Me){return Object.keys(Me).length<=Object.keys(pe).length&&Object.keys(Me).every(re=>ce(pe[re],Me[re]))},ignored:()=>!0};function Be(pe,Me,re){return te[re.paths](pe.root,Me.root,re.matrixParams)&&Ue[re.queryParams](pe.queryParams,Me.queryParams)&&!("exact"===re.fragment&&pe.fragment!==Me.fragment)}function Je(pe,Me,re){return dt(pe,Me,Me.segments,re)}function dt(pe,Me,re,Ne){if(pe.segments.length>re.length){const nt=pe.segments.slice(0,re.length);return!(!Ke(nt,re)||Me.hasChildren()||!Et(nt,re,Ne))}if(pe.segments.length===re.length){if(!Ke(pe.segments,re)||!Et(pe.segments,re,Ne))return!1;for(const nt in Me.children)if(!pe.children[nt]||!Je(pe.children[nt],Me.children[nt],Ne))return!1;return!0}{const nt=re.slice(0,pe.segments.length),At=re.slice(pe.segments.length);return!!(Ke(pe.segments,nt)&&Et(pe.segments,nt,Ne)&&pe.children[X])&&dt(pe.children[X],Me,At,Ne)}}function Et(pe,Me,re){return Me.every((Ne,nt)=>Ue[re](pe[nt].parameters,Ne.parameters))}class pt{constructor(Me=new ot([],{}),re={},Ne=null){this.root=Me,this.queryParams=re,this.fragment=Ne}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=We(this.queryParams)),this._queryParamMap}toString(){return Tt.serialize(this)}}class ot{constructor(Me,re){this.segments=Me,this.children=re,this.parent=null,Ae(re,(Ne,nt)=>Ne.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return Qe(this)}}class wt{constructor(Me,re){this.path=Me,this.parameters=re}get parameterMap(){return this._parameterMap||(this._parameterMap=We(this.parameters)),this._parameterMap}toString(){return be(this)}}function Ke(pe,Me){return pe.length===Me.length&&pe.every((re,Ne)=>re.path===Me[Ne].path)}let Y=(()=>{class pe{}return pe.\u0275fac=function(re){return new(re||pe)},pe.\u0275prov=t.Yz7({token:pe,factory:function(){return new Re},providedIn:"root"}),pe})();class Re{parse(Me){const re=new ti(Me);return new pt(re.parseRootSegment(),re.parseQueryParams(),re.parseFragment())}serialize(Me){const re=`/${Ye(Me.root,!0)}`,Ne=function at(pe){const Me=Object.keys(pe).map(re=>{const Ne=pe[re];return Array.isArray(Ne)?Ne.map(nt=>`${Mt(re)}=${Mt(nt)}`).join("&"):`${Mt(re)}=${Mt(Ne)}`}).filter(re=>!!re);return Me.length?`?${Me.join("&")}`:""}(Me.queryParams);return`${re}${Ne}${"string"==typeof Me.fragment?`#${function kt(pe){return encodeURI(pe)}(Me.fragment)}`:""}`}}const Tt=new Re;function Qe(pe){return pe.segments.map(Me=>be(Me)).join("/")}function Ye(pe,Me){if(!pe.hasChildren())return Qe(pe);if(Me){const re=pe.children[X]?Ye(pe.children[X],!1):"",Ne=[];return Ae(pe.children,(nt,At)=>{At!==X&&Ne.push(`${At}:${Ye(nt,!1)}`)}),Ne.length>0?`${re}(${Ne.join("//")})`:re}{const re=function xt(pe,Me){let re=[];return Ae(pe.children,(Ne,nt)=>{nt===X&&(re=re.concat(Me(Ne,nt)))}),Ae(pe.children,(Ne,nt)=>{nt!==X&&(re=re.concat(Me(Ne,nt)))}),re}(pe,(Ne,nt)=>nt===X?[Ye(pe.children[X],!1)]:[`${nt}:${Ye(Ne,!1)}`]);return 1===Object.keys(pe.children).length&&null!=pe.children[X]?`${Qe(pe)}/${re[0]}`:`${Qe(pe)}/(${re.join("//")})`}}function Ht(pe){return encodeURIComponent(pe).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function Mt(pe){return Ht(pe).replace(/%3B/gi,";")}function _t(pe){return Ht(pe).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function we(pe){return decodeURIComponent(pe)}function J(pe){return we(pe.replace(/\+/g,"%20"))}function be(pe){return`${_t(pe.path)}${function He(pe){return Object.keys(pe).map(Me=>`;${_t(Me)}=${_t(pe[Me])}`).join("")}(pe.parameters)}`}const ii=/^[^\/()?;=#]+/;function Gt(pe){const Me=pe.match(ii);return Me?Me[0]:""}const ni=/^[^=?&#]+/,tt=/^[^&#]+/;class ti{constructor(Me){this.url=Me,this.remaining=Me}parseRootSegment(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new ot([],{}):new ot([],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 re={};this.peekStartsWith("/(")&&(this.capture("/"),re=this.parseParens(!0));let Ne={};return this.peekStartsWith("(")&&(Ne=this.parseParens(!1)),(Me.length>0||Object.keys(re).length>0)&&(Ne[X]=new ot(Me,re)),Ne}parseSegment(){const Me=Gt(this.remaining);if(""===Me&&this.peekStartsWith(";"))throw new t.vHH(4009,Ce);return this.capture(Me),new wt(we(Me),this.parseMatrixParams())}parseMatrixParams(){const Me={};for(;this.consumeOptional(";");)this.parseParam(Me);return Me}parseParam(Me){const re=Gt(this.remaining);if(!re)return;this.capture(re);let Ne="";if(this.consumeOptional("=")){const nt=Gt(this.remaining);nt&&(Ne=nt,this.capture(Ne))}Me[we(re)]=we(Ne)}parseQueryParam(Me){const re=function ut(pe){const Me=pe.match(ni);return Me?Me[0]:""}(this.remaining);if(!re)return;this.capture(re);let Ne="";if(this.consumeOptional("=")){const Ft=function vt(pe){const Me=pe.match(tt);return Me?Me[0]:""}(this.remaining);Ft&&(Ne=Ft,this.capture(Ne))}const nt=J(re),At=J(Ne);if(Me.hasOwnProperty(nt)){let Ft=Me[nt];Array.isArray(Ft)||(Ft=[Ft],Me[nt]=Ft),Ft.push(At)}else Me[nt]=At}parseParens(Me){const re={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){const Ne=Gt(this.remaining),nt=this.remaining[Ne.length];if("/"!==nt&&")"!==nt&&";"!==nt)throw new t.vHH(4010,Ce);let At;Ne.indexOf(":")>-1?(At=Ne.slice(0,Ne.indexOf(":")),this.capture(At),this.capture(":")):Me&&(At=X);const Ft=this.parseChildren();re[At]=1===Object.keys(Ft).length?Ft[X]:new ot([],Ft),this.consumeOptional("//")}return re}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 t.vHH(4011,Ce)}}function Ut(pe){return pe.segments.length>0?new ot([],{[X]:pe}):pe}function ht(pe){const Me={};for(const Ne of Object.keys(pe.children)){const At=ht(pe.children[Ne]);(At.segments.length>0||At.hasChildren())&&(Me[Ne]=At)}return function Rt(pe){if(1===pe.numberOfChildren&&pe.children[X]){const Me=pe.children[X];return new ot(pe.segments.concat(Me.segments),Me.children)}return pe}(new ot(pe.segments,Me))}function Oe(pe){return pe instanceof pt}function pi(pe,Me,re,Ne,nt){if(0===re.length)return Fi(Me.root,Me.root,Me.root,Ne,nt);const At=function xe(pe){if("string"==typeof pe[0]&&1===pe.length&&"/"===pe[0])return new St(!0,0,pe);let Me=0,re=!1;const Ne=pe.reduce((nt,At,Ft)=>{if("object"==typeof At&&null!=At){if(At.outlets){const fi={};return Ae(At.outlets,(Di,sn)=>{fi[sn]="string"==typeof Di?Di.split("/"):Di}),[...nt,{outlets:fi}]}if(At.segmentPath)return[...nt,At.segmentPath]}return"string"!=typeof At?[...nt,At]:0===Ft?(At.split("/").forEach((fi,Di)=>{0==Di&&"."===fi||(0==Di&&""===fi?re=!0:".."===fi?Me++:""!=fi&&nt.push(fi))}),nt):[...nt,At]},[]);return new St(re,Me,Ne)}(re);return At.toRoot()?Fi(Me.root,Me.root,new ot([],{}),Ne,nt):function Ft(Di){const sn=function mi(pe,Me,re,Ne){if(pe.isAbsolute)return new Nt(Me.root,!0,0);if(-1===Ne)return new Nt(re,re===Me.root,0);return function Ci(pe,Me,re){let Ne=pe,nt=Me,At=re;for(;At>nt;){if(At-=nt,Ne=Ne.parent,!Ne)throw new t.vHH(4005,!1);nt=Ne.segments.length}return new Nt(Ne,!1,nt-At)}(re,Ne+(Li(pe.commands[0])?0:1),pe.numberOfDoubleDots)}(At,Me,pe.snapshot?._urlSegment,Di),qi=sn.processChildren?Yi(sn.segmentGroup,sn.index,At.commands):Gi(sn.segmentGroup,sn.index,At.commands);return Fi(Me.root,sn.segmentGroup,qi,Ne,nt)}(pe.snapshot?._lastPathIndex)}function Li(pe){return"object"==typeof pe&&null!=pe&&!pe.outlets&&!pe.segmentPath}function xi(pe){return"object"==typeof pe&&null!=pe&&pe.outlets}function Fi(pe,Me,re,Ne,nt){let Ft,At={};Ne&&Ae(Ne,(Di,sn)=>{At[sn]=Array.isArray(Di)?Di.map(qi=>`${qi}`):`${Di}`}),Ft=pe===Me?re:qe(pe,Me,re);const fi=Ut(ht(Ft));return new pt(fi,At,nt)}function qe(pe,Me,re){const Ne={};return Ae(pe.children,(nt,At)=>{Ne[At]=nt===Me?re:qe(nt,Me,re)}),new ot(pe.segments,Ne)}class St{constructor(Me,re,Ne){if(this.isAbsolute=Me,this.numberOfDoubleDots=re,this.commands=Ne,Me&&Ne.length>0&&Li(Ne[0]))throw new t.vHH(4003,!1);const nt=Ne.find(xi);if(nt&&nt!==oe(Ne))throw new t.vHH(4004,!1)}toRoot(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]}}class Nt{constructor(Me,re,Ne){this.segmentGroup=Me,this.processChildren=re,this.index=Ne}}function Gi(pe,Me,re){if(pe||(pe=new ot([],{})),0===pe.segments.length&&pe.hasChildren())return Yi(pe,Me,re);const Ne=function Ji(pe,Me,re){let Ne=0,nt=Me;const At={match:!1,pathIndex:0,commandIndex:0};for(;nt<pe.segments.length;){if(Ne>=re.length)return At;const Ft=pe.segments[nt],fi=re[Ne];if(xi(fi))break;const Di=`${fi}`,sn=Ne<re.length-1?re[Ne+1]:null;if(nt>0&&void 0===Di)break;if(Di&&sn&&"object"==typeof sn&&void 0===sn.outlets){if(!lt(Di,sn,Ft))return At;Ne+=2}else{if(!lt(Di,{},Ft))return At;Ne++}nt++}return{match:!0,pathIndex:nt,commandIndex:Ne}}(pe,Me,re),nt=re.slice(Ne.commandIndex);if(Ne.match&&Ne.pathIndex<pe.segments.length){const At=new ot(pe.segments.slice(0,Ne.pathIndex),{});return At.children[X]=new ot(pe.segments.slice(Ne.pathIndex),pe.children),Yi(At,0,nt)}return Ne.match&&0===nt.length?new ot(pe.segments,{}):Ne.match&&!pe.hasChildren()?Wt(pe,Me,re):Ne.match?Yi(pe,0,nt):Wt(pe,Me,re)}function Yi(pe,Me,re){if(0===re.length)return new ot(pe.segments,{});{const Ne=function Ii(pe){return xi(pe[0])?pe[0].outlets:{[X]:pe}}(re),nt={};return!Ne[X]&&pe.children[X]&&1===pe.numberOfChildren&&0===pe.children[X].segments.length?Yi(pe.children[X],Me,re):(Ae(Ne,(At,Ft)=>{"string"==typeof At&&(At=[At]),null!==At&&(nt[Ft]=Gi(pe.children[Ft],Me,At))}),Ae(pe.children,(At,Ft)=>{void 0===Ne[Ft]&&(nt[Ft]=At)}),new ot(pe.segments,nt))}}function Wt(pe,Me,re){const Ne=pe.segments.slice(0,Me);let nt=0;for(;nt<re.length;){const At=re[nt];if(xi(At)){const Di=Jt(At.outlets);return new ot(Ne,Di)}if(0===nt&&Li(re[0])){Ne.push(new wt(pe.segments[Me].path,fe(re[0]))),nt++;continue}const Ft=xi(At)?At.outlets[X]:`${At}`,fi=nt<re.length-1?re[nt+1]:null;Ft&&fi&&Li(fi)?(Ne.push(new wt(Ft,fe(fi))),nt+=2):(Ne.push(new wt(Ft,{})),nt++)}return new ot(Ne,{})}function Jt(pe){const Me={};return Ae(pe,(re,Ne)=>{"string"==typeof re&&(re=[re]),null!==re&&(Me[Ne]=Wt(new ot([],{}),0,re))}),Me}function fe(pe){const Me={};return Ae(pe,(re,Ne)=>Me[Ne]=`${re}`),Me}function lt(pe,Me,re){return pe==re.path&&ye(Me,re.parameters)}const It="imperative";class Bt{constructor(Me,re){this.id=Me,this.url=re}}class zt extends Bt{constructor(Me,re,Ne="imperative",nt=null){super(Me,re),this.type=0,this.navigationTrigger=Ne,this.restoredState=nt}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}}class oi extends Bt{constructor(Me,re,Ne){super(Me,re),this.urlAfterRedirects=Ne,this.type=1}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}}class Yt extends Bt{constructor(Me,re,Ne,nt){super(Me,re),this.reason=Ne,this.code=nt,this.type=2}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}}class Ni extends Bt{constructor(Me,re,Ne,nt){super(Me,re),this.reason=Ne,this.code=nt,this.type=16}}class on extends Bt{constructor(Me,re,Ne,nt){super(Me,re),this.error=Ne,this.target=nt,this.type=3}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}}class Ki extends Bt{constructor(Me,re,Ne,nt){super(Me,re),this.urlAfterRedirects=Ne,this.state=nt,this.type=4}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class pa extends Bt{constructor(Me,re,Ne,nt){super(Me,re),this.urlAfterRedirects=Ne,this.state=nt,this.type=7}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class sa extends Bt{constructor(Me,re,Ne,nt,At){super(Me,re),this.urlAfterRedirects=Ne,this.state=nt,this.shouldActivate=At,this.type=8}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}}class Ia extends Bt{constructor(Me,re,Ne,nt){super(Me,re),this.urlAfterRedirects=Ne,this.state=nt,this.type=5}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class Oa extends Bt{constructor(Me,re,Ne,nt){super(Me,re),this.urlAfterRedirects=Ne,this.state=nt,this.type=6}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class Zn{constructor(Me){this.route=Me,this.type=9}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}}class Ua{constructor(Me){this.route=Me,this.type=10}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}}class Lt{constructor(Me){this.snapshot=Me,this.type=11}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class ai{constructor(Me){this.snapshot=Me,this.type=12}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class si{constructor(Me){this.snapshot=Me,this.type=13}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class gi{constructor(Me){this.snapshot=Me,this.type=14}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class Oi{constructor(Me,re,Ne){this.routerEvent=Me,this.position=re,this.anchor=Ne,this.type=15}toString(){return`Scroll(anchor: '${this.anchor}', position: '${this.position?`${this.position[0]}, ${this.position[1]}`:null}')`}}let Vn=(()=>{class pe{createUrlTree(re,Ne,nt,At,Ft,fi){return pi(re||Ne.root,nt,At,Ft,fi)}}return pe.\u0275fac=function(re){return new(re||pe)},pe.\u0275prov=t.Yz7({token:pe,factory:pe.\u0275fac}),pe})(),ga=(()=>{class pe{}return pe.\u0275fac=function(re){return new(re||pe)},pe.\u0275prov=t.Yz7({token:pe,factory:function(Me){return Vn.\u0275fac(Me)},providedIn:"root"}),pe})();class An{constructor(Me){this._root=Me}get root(){return this._root.value}parent(Me){const re=this.pathFromRoot(Me);return re.length>1?re[re.length-2]:null}children(Me){const re=Nn(Me,this._root);return re?re.children.map(Ne=>Ne.value):[]}firstChild(Me){const re=Nn(Me,this._root);return re&&re.children.length>0?re.children[0].value:null}siblings(Me){const re=jr(Me,this._root);return re.length<2?[]:re[re.length-2].children.map(nt=>nt.value).filter(nt=>nt!==Me)}pathFromRoot(Me){return jr(Me,this._root).map(re=>re.value)}}function Nn(pe,Me){if(pe===Me.value)return Me;for(const re of Me.children){const Ne=Nn(pe,re);if(Ne)return Ne}return null}function jr(pe,Me){if(pe===Me.value)return[Me];for(const re of Me.children){const Ne=jr(pe,re);if(Ne.length)return Ne.unshift(Me),Ne}return[]}class Fn{constructor(Me,re){this.value=Me,this.children=re}toString(){return`TreeNode(${this.value})`}}function Xn(pe){const Me={};return pe&&pe.children.forEach(re=>Me[re.value.outlet]=re),Me}class Dr extends An{constructor(Me,re){super(Me),this.snapshot=re,Qr(this,Me)}toString(){return this.snapshot.toString()}}function Sr(pe,Me){const re=function tr(pe,Me){const Ft=new Kr([],{},{},"",{},X,Me,null,pe.root,-1,{});return new Er("",new Fn(Ft,[]))}(pe,Me),Ne=new I.X([new wt("",{})]),nt=new I.X({}),At=new I.X({}),Ft=new I.X({}),fi=new I.X(""),Di=new jn(Ne,nt,Ft,fi,At,X,Me,re.root);return Di.snapshot=re.root,new Dr(new Fn(Di,[]),re)}class jn{constructor(Me,re,Ne,nt,At,Ft,fi,Di){this.url=Me,this.params=re,this.queryParams=Ne,this.fragment=nt,this.data=At,this.outlet=Ft,this.component=fi,this.title=this.data?.pipe((0,U.U)(sn=>sn[Le]))??(0,b.of)(void 0),this._futureSnapshot=Di}get routeConfig(){return this._futureSnapshot.routeConfig}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap||(this._paramMap=this.params.pipe((0,U.U)(Me=>We(Me)))),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=this.queryParams.pipe((0,U.U)(Me=>We(Me)))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}}function Ga(pe,Me="emptyOnly"){const re=pe.pathFromRoot;let Ne=0;if("always"!==Me)for(Ne=re.length-1;Ne>=1;){const nt=re[Ne],At=re[Ne-1];if(nt.routeConfig&&""===nt.routeConfig.path)Ne--;else{if(At.component)break;Ne--}}return function Fa(pe){return pe.reduce((Me,re)=>({params:{...Me.params,...re.params},data:{...Me.data,...re.data},resolve:{...re.data,...Me.resolve,...re.routeConfig?.data,...re._resolvedData}}),{params:{},data:{},resolve:{}})}(re.slice(Ne))}class Kr{get title(){return this.data?.[Le]}constructor(Me,re,Ne,nt,At,Ft,fi,Di,sn,qi,qn){this.url=Me,this.params=re,this.queryParams=Ne,this.fragment=nt,this.data=At,this.outlet=Ft,this.component=fi,this.routeConfig=Di,this._urlSegment=sn,this._lastPathIndex=qi,this._resolve=qn}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=We(this.params)),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=We(this.queryParams)),this._queryParamMap}toString(){return`Route(url:'${this.url.map(Ne=>Ne.toString()).join("/")}', path:'${this.routeConfig?this.routeConfig.path:""}')`}}class Er extends An{constructor(Me,re){super(re),this.url=Me,Qr(this,re)}toString(){return wo(this._root)}}function Qr(pe,Me){Me.value._routerState=pe,Me.children.forEach(re=>Qr(pe,re))}function wo(pe){const Me=pe.children.length>0?` { ${pe.children.map(wo).join(", ")} } `:"";return`${pe.value}${Me}`}function wa(pe){if(pe.snapshot){const Me=pe.snapshot,re=pe._futureSnapshot;pe.snapshot=re,ye(Me.queryParams,re.queryParams)||pe.queryParams.next(re.queryParams),Me.fragment!==re.fragment&&pe.fragment.next(re.fragment),ye(Me.params,re.params)||pe.params.next(re.params),function De(pe,Me){if(pe.length!==Me.length)return!1;for(let re=0;re<pe.length;++re)if(!ye(pe[re],Me[re]))return!1;return!0}(Me.url,re.url)||pe.url.next(re.url),ye(Me.data,re.data)||pe.data.next(re.data)}else pe.snapshot=pe._futureSnapshot,pe.data.next(pe._futureSnapshot.data)}function Mo(pe,Me){const re=ye(pe.params,Me.params)&&function ke(pe,Me){return Ke(pe,Me)&&pe.every((re,Ne)=>ye(re.parameters,Me[Ne].parameters))}(pe.url,Me.url);return re&&!(!pe.parent!=!Me.parent)&&(!pe.parent||Mo(pe.parent,Me.parent))}function qr(pe,Me,re){if(re&&pe.shouldReuseRoute(Me.value,re.value.snapshot)){const Ne=re.value;Ne._futureSnapshot=Me.value;const nt=function so(pe,Me,re){return Me.children.map(Ne=>{for(const nt of re.children)if(pe.shouldReuseRoute(Ne.value,nt.value.snapshot))return qr(pe,Ne,nt);return qr(pe,Ne)})}(pe,Me,re);return new Fn(Ne,nt)}{if(pe.shouldAttach(Me.value)){const At=pe.retrieve(Me.value);if(null!==At){const Ft=At.route;return Ft.value._futureSnapshot=Me.value,Ft.children=Me.children.map(fi=>qr(pe,fi)),Ft}}const Ne=function co(pe){return new jn(new I.X(pe.url),new I.X(pe.params),new I.X(pe.queryParams),new I.X(pe.fragment),new I.X(pe.data),pe.outlet,pe.component,pe)}(Me.value),nt=Me.children.map(At=>qr(pe,At));return new Fn(Ne,nt)}}const lo="ngNavigationCancelingError";function Gr(pe,Me){const{redirectTo:re,navigationBehaviorOptions:Ne}=Oe(Me)?{redirectTo:Me,navigationBehaviorOptions:void 0}:Me,nt=ho(!1,0,Me);return nt.url=re,nt.navigationBehaviorOptions=Ne,nt}function ho(pe,Me,re){const Ne=new Error("NavigationCancelingError: "+(pe||""));return Ne[lo]=!0,Ne.cancellationCode=Me,re&&(Ne.url=re),Ne}function Zr(pe){return uo(pe)&&Oe(pe.url)}function uo(pe){return pe&&pe[lo]}class fo{constructor(){this.outlet=null,this.route=null,this.resolver=null,this.injector=null,this.children=new ir,this.attachRef=null}}let ir=(()=>{class pe{constructor(){this.contexts=new Map}onChildOutletCreated(re,Ne){const nt=this.getOrCreateContext(re);nt.outlet=Ne,this.contexts.set(re,nt)}onChildOutletDestroyed(re){const Ne=this.getContext(re);Ne&&(Ne.outlet=null,Ne.attachRef=null)}onOutletDeactivated(){const re=this.contexts;return this.contexts=new Map,re}onOutletReAttached(re){this.contexts=re}getOrCreateContext(re){let Ne=this.getContext(re);return Ne||(Ne=new fo,this.contexts.set(re,Ne)),Ne}getContext(re){return this.contexts.get(re)||null}}return pe.\u0275fac=function(re){return new(re||pe)},pe.\u0275prov=t.Yz7({token:pe,factory:pe.\u0275fac,providedIn:"root"}),pe})();const pr=!1;let aa=(()=>{class pe{constructor(){this.activated=null,this._activatedRoute=null,this.name=X,this.activateEvents=new t.vpe,this.deactivateEvents=new t.vpe,this.attachEvents=new t.vpe,this.detachEvents=new t.vpe,this.parentContexts=(0,t.f3M)(ir),this.location=(0,t.f3M)(t.s_b),this.changeDetector=(0,t.f3M)(t.sBO),this.environmentInjector=(0,t.f3M)(t.lqb)}ngOnChanges(re){if(re.name){const{firstChange:Ne,previousValue:nt}=re.name;if(Ne)return;this.isTrackedInParentContexts(nt)&&(this.deactivate(),this.parentContexts.onChildOutletDestroyed(nt)),this.initializeOutletWithName()}}ngOnDestroy(){this.isTrackedInParentContexts(this.name)&&this.parentContexts.onChildOutletDestroyed(this.name)}isTrackedInParentContexts(re){return this.parentContexts.getContext(re)?.outlet===this}ngOnInit(){this.initializeOutletWithName()}initializeOutletWithName(){if(this.parentContexts.onChildOutletCreated(this.name,this),this.activated)return;const re=this.parentContexts.getContext(this.name);re?.route&&(re.attachRef?this.attach(re.attachRef,re.route):this.activateWith(re.route,re.injector))}get isActivated(){return!!this.activated}get component(){if(!this.activated)throw new t.vHH(4012,pr);return this.activated.instance}get activatedRoute(){if(!this.activated)throw new t.vHH(4012,pr);return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new t.vHH(4012,pr);this.location.detach();const re=this.activated;return this.activated=null,this._activatedRoute=null,this.detachEvents.emit(re.instance),re}attach(re,Ne){this.activated=re,this._activatedRoute=Ne,this.location.insert(re.hostView),this.attachEvents.emit(re.instance)}deactivate(){if(this.activated){const re=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(re)}}activateWith(re,Ne){if(this.isActivated)throw new t.vHH(4013,pr);this._activatedRoute=re;const nt=this.location,Ft=re.snapshot.component,fi=this.parentContexts.getOrCreateContext(this.name).children,Di=new Ya(re,fi,nt.injector);if(Ne&&function Ir(pe){return!!pe.resolveComponentFactory}(Ne)){const sn=Ne.resolveComponentFactory(Ft);this.activated=nt.createComponent(sn,nt.length,Di)}else this.activated=nt.createComponent(Ft,{index:nt.length,injector:Di,environmentInjector:Ne??this.environmentInjector});this.changeDetector.markForCheck(),this.activateEvents.emit(this.activated.instance)}}return pe.\u0275fac=function(re){return new(re||pe)},pe.\u0275dir=t.lG2({type:pe,selectors:[["router-outlet"]],inputs:{name:"name"},outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"],standalone:!0,features:[t.TTD]}),pe})();class Ya{constructor(Me,re,Ne){this.route=Me,this.childContexts=re,this.parent=Ne}get(Me,re){return Me===jn?this.route:Me===ir?this.childContexts:this.parent.get(Me,re)}}let kr=(()=>{class pe{}return pe.\u0275fac=function(re){return new(re||pe)},pe.\u0275cmp=t.Xpm({type:pe,selectors:[["ng-component"]],standalone:!0,features:[t.jDz],decls:1,vars:0,template:function(re,Ne){1&re&&t._UZ(0,"router-outlet")},dependencies:[aa],encapsulation:2}),pe})();function gr(pe,Me){return pe.providers&&!pe._injector&&(pe._injector=(0,t.MMx)(pe.providers,Me,`Route: ${pe.path}`)),pe._injector??Me}function Or(pe){const Me=pe.children&&pe.children.map(Or),re=Me?{...pe,children:Me}:{...pe};return!re.component&&!re.loadComponent&&(Me||re.loadChildren)&&re.outlet&&re.outlet!==X&&(re.component=kr),re}function Kn(pe){return pe.outlet||X}function Wn(pe,Me){const re=pe.filter(Ne=>Kn(Ne)===Me);return re.push(...pe.filter(Ne=>Kn(Ne)!==Me)),re}function _r(pe){if(!pe)return null;if(pe.routeConfig?._injector)return pe.routeConfig._injector;for(let Me=pe.parent;Me;Me=Me.parent){const re=Me.routeConfig;if(re?._loadedInjector)return re._loadedInjector;if(re?._injector)return re._injector}return null}class ca{constructor(Me,re,Ne,nt){this.routeReuseStrategy=Me,this.futureState=re,this.currState=Ne,this.forwardEvent=nt}activate(Me){const re=this.futureState._root,Ne=this.currState?this.currState._root:null;this.deactivateChildRoutes(re,Ne,Me),wa(this.futureState.root),this.activateChildRoutes(re,Ne,Me)}deactivateChildRoutes(Me,re,Ne){const nt=Xn(re);Me.children.forEach(At=>{const Ft=At.value.outlet;this.deactivateRoutes(At,nt[Ft],Ne),delete nt[Ft]}),Ae(nt,(At,Ft)=>{this.deactivateRouteAndItsChildren(At,Ne)})}deactivateRoutes(Me,re,Ne){const nt=Me.value,At=re?re.value:null;if(nt===At)if(nt.component){const Ft=Ne.getContext(nt.outlet);Ft&&this.deactivateChildRoutes(Me,re,Ft.children)}else this.deactivateChildRoutes(Me,re,Ne);else At&&this.deactivateRouteAndItsChildren(re,Ne)}deactivateRouteAndItsChildren(Me,re){Me.value.component&&this.routeReuseStrategy.shouldDetach(Me.value.snapshot)?this.detachAndStoreRouteSubtree(Me,re):this.deactivateRouteAndOutlet(Me,re)}detachAndStoreRouteSubtree(Me,re){const Ne=re.getContext(Me.value.outlet),nt=Ne&&Me.value.component?Ne.children:re,At=Xn(Me);for(const Ft of Object.keys(At))this.deactivateRouteAndItsChildren(At[Ft],nt);if(Ne&&Ne.outlet){const Ft=Ne.outlet.detach(),fi=Ne.children.onOutletDeactivated();this.routeReuseStrategy.store(Me.value.snapshot,{componentRef:Ft,route:Me,contexts:fi})}}deactivateRouteAndOutlet(Me,re){const Ne=re.getContext(Me.value.outlet),nt=Ne&&Me.value.component?Ne.children:re,At=Xn(Me);for(const Ft of Object.keys(At))this.deactivateRouteAndItsChildren(At[Ft],nt);Ne&&Ne.outlet&&(Ne.outlet.deactivate(),Ne.children.onOutletDeactivated(),Ne.attachRef=null,Ne.resolver=null,Ne.route=null)}activateChildRoutes(Me,re,Ne){const nt=Xn(re);Me.children.forEach(At=>{this.activateRoutes(At,nt[At.value.outlet],Ne),this.forwardEvent(new gi(At.value.snapshot))}),Me.children.length&&this.forwardEvent(new ai(Me.value.snapshot))}activateRoutes(Me,re,Ne){const nt=Me.value,At=re?re.value:null;if(wa(nt),nt===At)if(nt.component){const Ft=Ne.getOrCreateContext(nt.outlet);this.activateChildRoutes(Me,re,Ft.children)}else this.activateChildRoutes(Me,re,Ne);else if(nt.component){const Ft=Ne.getOrCreateContext(nt.outlet);if(this.routeReuseStrategy.shouldAttach(nt.snapshot)){const fi=this.routeReuseStrategy.retrieve(nt.snapshot);this.routeReuseStrategy.store(nt.snapshot,null),Ft.children.onOutletReAttached(fi.contexts),Ft.attachRef=fi.componentRef,Ft.route=fi.route.value,Ft.outlet&&Ft.outlet.attach(fi.componentRef,fi.route.value),wa(fi.route.value),this.activateChildRoutes(Me,null,Ft.children)}else{const fi=_r(nt.snapshot),Di=fi?.get(t._Vd)??null;Ft.attachRef=null,Ft.route=nt,Ft.resolver=Di,Ft.injector=fi,Ft.outlet&&Ft.outlet.activateWith(nt,Ft.injector),this.activateChildRoutes(Me,null,Ft.children)}}else this.activateChildRoutes(Me,null,Ne)}}class Ka{constructor(Me){this.path=Me,this.route=this.path[this.path.length-1]}}class Vt{constructor(Me,re){this.component=Me,this.route=re}}function di(pe,Me,re){const Ne=pe._root;return Pi(Ne,Me?Me._root:null,re,[Ne.value])}function ri(pe,Me){const re=Symbol(),Ne=Me.get(pe,re);return Ne===re?"function"!=typeof pe||(0,t.Z0I)(pe)?Me.get(pe):pe:Ne}function Pi(pe,Me,re,Ne,nt={canDeactivateChecks:[],canActivateChecks:[]}){const At=Xn(Me);return pe.children.forEach(Ft=>{(function tn(pe,Me,re,Ne,nt={canDeactivateChecks:[],canActivateChecks:[]}){const At=pe.value,Ft=Me?Me.value:null,fi=re?re.getContext(pe.value.outlet):null;if(Ft&&At.routeConfig===Ft.routeConfig){const Di=function $n(pe,Me,re){if("function"==typeof re)return re(pe,Me);switch(re){case"pathParamsChange":return!Ke(pe.url,Me.url);case"pathParamsOrQueryParamsChange":return!Ke(pe.url,Me.url)||!ye(pe.queryParams,Me.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!Mo(pe,Me)||!ye(pe.queryParams,Me.queryParams);default:return!Mo(pe,Me)}}(Ft,At,At.routeConfig.runGuardsAndResolvers);Di?nt.canActivateChecks.push(new Ka(Ne)):(At.data=Ft.data,At._resolvedData=Ft._resolvedData),Pi(pe,Me,At.component?fi?fi.children:null:re,Ne,nt),Di&&fi&&fi.outlet&&fi.outlet.isActivated&&nt.canDeactivateChecks.push(new Vt(fi.outlet.component,Ft))}else Ft&&la(Me,fi,nt),nt.canActivateChecks.push(new Ka(Ne)),Pi(pe,null,At.component?fi?fi.children:null:re,Ne,nt)})(Ft,At[Ft.value.outlet],re,Ne.concat([Ft.value]),nt),delete At[Ft.value.outlet]}),Ae(At,(Ft,fi)=>la(Ft,re.getContext(fi),nt)),nt}function la(pe,Me,re){const Ne=Xn(pe),nt=pe.value;Ae(Ne,(At,Ft)=>{la(At,nt.component?Me?Me.children.getContext(Ft):null:Me,re)}),re.canDeactivateChecks.push(new Vt(nt.component&&Me&&Me.outlet&&Me.outlet.isActivated?Me.outlet.component:null,nt))}function ji(pe){return"function"==typeof pe}function ha(pe){return pe instanceof s.K||"EmptyError"===pe?.name}const Si=Symbol("INITIAL_VALUE");function Ln(){return(0,W.w)(pe=>(0,C.a)(pe.map(Me=>Me.pipe((0,K.q)(1),(0,ee.O)(Si)))).pipe((0,U.U)(Me=>{for(const re of Me)if(!0!==re){if(re===Si)return Si;if(!1===re||re instanceof pt)return re}return!0}),(0,ie.h)(Me=>Me!==Si),(0,K.q)(1)))}function rs(pe){return(0,d.z)((0,de.b)(Me=>{if(Oe(Me))throw Gr(0,Me)}),(0,U.U)(Me=>!0===Me))}const Dn={matched:!1,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};function ki(pe,Me,re,Ne,nt){const At=Qa(pe,Me,re);return At.matched?function br(pe,Me,re,Ne){const nt=Me.canMatch;if(!nt||0===nt.length)return(0,b.of)(!0);const At=nt.map(Ft=>{const fi=ri(Ft,pe);return he(function Pt(pe){return pe&&ji(pe.canMatch)}(fi)?fi.canMatch(Me,re):pe.runInContext(()=>fi(Me,re)))});return(0,b.of)(At).pipe(Ln(),rs())}(Ne=gr(Me,Ne),Me,re).pipe((0,U.U)(Ft=>!0===Ft?At:{...Dn})):(0,b.of)(At)}function Qa(pe,Me,re){if(""===Me.path)return"full"===Me.pathMatch&&(pe.hasChildren()||re.length>0)?{...Dn}:{matched:!0,consumedSegments:[],remainingSegments:re,parameters:{},positionalParamSegments:{}};const nt=(Me.matcher||Fe)(re,pe,Me);if(!nt)return{...Dn};const At={};Ae(nt.posParams,(fi,Di)=>{At[Di]=fi.path});const Ft=nt.consumed.length>0?{...At,...nt.consumed[nt.consumed.length-1].parameters}:At;return{matched:!0,consumedSegments:nt.consumed,remainingSegments:re.slice(nt.consumed.length),parameters:Ft,positionalParamSegments:nt.posParams??{}}}function go(pe,Me,re,Ne){if(re.length>0&&function Fo(pe,Me,re){return re.some(Ne=>Es(pe,Me,Ne)&&Kn(Ne)!==X)}(pe,re,Ne)){const At=new ot(Me,function No(pe,Me,re,Ne){const nt={};nt[X]=Ne,Ne._sourceSegment=pe,Ne._segmentIndexShift=Me.length;for(const At of re)if(""===At.path&&Kn(At)!==X){const Ft=new ot([],{});Ft._sourceSegment=pe,Ft._segmentIndexShift=Me.length,nt[Kn(At)]=Ft}return nt}(pe,Me,Ne,new ot(re,pe.children)));return At._sourceSegment=pe,At._segmentIndexShift=Me.length,{segmentGroup:At,slicedSegments:[]}}if(0===re.length&&function Xs(pe,Me,re){return re.some(Ne=>Es(pe,Me,Ne))}(pe,re,Ne)){const At=new ot(pe.segments,function zi(pe,Me,re,Ne,nt){const At={};for(const Ft of Ne)if(Es(pe,re,Ft)&&!nt[Kn(Ft)]){const fi=new ot([],{});fi._sourceSegment=pe,fi._segmentIndexShift=Me.length,At[Kn(Ft)]=fi}return{...nt,...At}}(pe,Me,re,Ne,pe.children));return At._sourceSegment=pe,At._segmentIndexShift=Me.length,{segmentGroup:At,slicedSegments:re}}const nt=new ot(pe.segments,pe.children);return nt._sourceSegment=pe,nt._segmentIndexShift=Me.length,{segmentGroup:nt,slicedSegments:re}}function Es(pe,Me,re){return(!(pe.hasChildren()||Me.length>0)||"full"!==re.pathMatch)&&""===re.path}function os(pe,Me,re,Ne){return!!(Kn(pe)===Ne||Ne!==X&&Es(Me,re,pe))&&("**"===pe.path||Qa(Me,pe,re).matched)}function So(pe,Me,re){return 0===Me.length&&!pe.children[re]}const Eo=!1;class ss{constructor(Me){this.segmentGroup=Me||null}}class bc{constructor(Me){this.urlTree=Me}}function Qo(pe){return(0,S._)(new ss(pe))}function $s(pe){return(0,S._)(new bc(pe))}class Ra{constructor(Me,re,Ne,nt,At){this.injector=Me,this.configLoader=re,this.urlSerializer=Ne,this.urlTree=nt,this.config=At,this.allowRedirects=!0}apply(){const Me=go(this.urlTree.root,[],[],this.config).segmentGroup,re=new ot(Me.segments,Me.children);return this.expandSegmentGroup(this.injector,this.config,re,X).pipe((0,U.U)(At=>this.createUrlTree(ht(At),this.urlTree.queryParams,this.urlTree.fragment))).pipe((0,$.K)(At=>{if(At instanceof bc)return this.allowRedirects=!1,this.match(At.urlTree);throw At instanceof ss?this.noMatchError(At):At}))}match(Me){return this.expandSegmentGroup(this.injector,this.config,Me.root,X).pipe((0,U.U)(nt=>this.createUrlTree(ht(nt),Me.queryParams,Me.fragment))).pipe((0,$.K)(nt=>{throw nt instanceof ss?this.noMatchError(nt):nt}))}noMatchError(Me){return new t.vHH(4002,Eo)}createUrlTree(Me,re,Ne){const nt=Ut(Me);return new pt(nt,re,Ne)}expandSegmentGroup(Me,re,Ne,nt){return 0===Ne.segments.length&&Ne.hasChildren()?this.expandChildren(Me,re,Ne).pipe((0,U.U)(At=>new ot([],At))):this.expandSegment(Me,Ne,re,Ne.segments,nt,!0)}expandChildren(Me,re,Ne){const nt=[];for(const At of Object.keys(Ne.children))"primary"===At?nt.unshift(At):nt.push(At);return(0,e.D)(nt).pipe((0,ne.b)(At=>{const Ft=Ne.children[At],fi=Wn(re,At);return this.expandSegmentGroup(Me,fi,Ft,At).pipe((0,U.U)(Di=>({segment:Di,outlet:At})))}),(0,me.R)((At,Ft)=>(At[Ft.outlet]=Ft.segment,At),{}),T())}expandSegment(Me,re,Ne,nt,At,Ft){return(0,e.D)(Ne).pipe((0,ne.b)(fi=>this.expandSegmentAgainstRoute(Me,re,Ne,fi,nt,At,Ft).pipe((0,$.K)(sn=>{if(sn instanceof ss)return(0,b.of)(null);throw sn}))),(0,le.P)(fi=>!!fi),(0,$.K)((fi,Di)=>{if(ha(fi))return So(re,nt,At)?(0,b.of)(new ot([],{})):Qo(re);throw fi}))}expandSegmentAgainstRoute(Me,re,Ne,nt,At,Ft,fi){return os(nt,re,At,Ft)?void 0===nt.redirectTo?this.matchSegmentAgainstRoute(Me,re,nt,At,Ft):fi&&this.allowRedirects?this.expandSegmentAgainstRouteUsingRedirect(Me,re,Ne,nt,At,Ft):Qo(re):Qo(re)}expandSegmentAgainstRouteUsingRedirect(Me,re,Ne,nt,At,Ft){return"**"===nt.path?this.expandWildCardWithParamsAgainstRouteUsingRedirect(Me,Ne,nt,Ft):this.expandRegularSegmentAgainstRouteUsingRedirect(Me,re,Ne,nt,At,Ft)}expandWildCardWithParamsAgainstRouteUsingRedirect(Me,re,Ne,nt){const At=this.applyRedirectCommands([],Ne.redirectTo,{});return Ne.redirectTo.startsWith("/")?$s(At):this.lineralizeSegments(Ne,At).pipe((0,ue.z)(Ft=>{const fi=new ot(Ft,{});return this.expandSegment(Me,fi,re,Ft,nt,!1)}))}expandRegularSegmentAgainstRouteUsingRedirect(Me,re,Ne,nt,At,Ft){const{matched:fi,consumedSegments:Di,remainingSegments:sn,positionalParamSegments:qi}=Qa(re,nt,At);if(!fi)return Qo(re);const qn=this.applyRedirectCommands(Di,nt.redirectTo,qi);return nt.redirectTo.startsWith("/")?$s(qn):this.lineralizeSegments(nt,qn).pipe((0,ue.z)(Ta=>this.expandSegment(Me,re,Ne,Ta.concat(sn),Ft,!1)))}matchSegmentAgainstRoute(Me,re,Ne,nt,At){return"**"===Ne.path?(Me=gr(Ne,Me),Ne.loadChildren?(Ne._loadedRoutes?(0,b.of)({routes:Ne._loadedRoutes,injector:Ne._loadedInjector}):this.configLoader.loadChildren(Me,Ne)).pipe((0,U.U)(fi=>(Ne._loadedRoutes=fi.routes,Ne._loadedInjector=fi.injector,new ot(nt,{})))):(0,b.of)(new ot(nt,{}))):ki(re,Ne,nt,Me).pipe((0,W.w)(({matched:Ft,consumedSegments:fi,remainingSegments:Di})=>Ft?this.getChildConfig(Me=Ne._injector??Me,Ne,nt).pipe((0,ue.z)(qi=>{const qn=qi.injector??Me,Ta=qi.routes,{segmentGroup:za,slicedSegments:Aa}=go(re,fi,Di,Ta),ds=new ot(za.segments,za.children);if(0===Aa.length&&ds.hasChildren())return this.expandChildren(qn,Ta,ds).pipe((0,U.U)(Dl=>new ot(fi,Dl)));if(0===Ta.length&&0===Aa.length)return(0,b.of)(new ot(fi,{}));const ao=Kn(Ne)===At;return this.expandSegment(qn,ds,Ta,Aa,ao?X:At,!0).pipe((0,U.U)(hs=>new ot(fi.concat(hs.segments),hs.children)))})):Qo(re)))}getChildConfig(Me,re,Ne){return re.children?(0,b.of)({routes:re.children,injector:Me}):re.loadChildren?void 0!==re._loadedRoutes?(0,b.of)({routes:re._loadedRoutes,injector:re._loadedInjector}):function Ss(pe,Me,re,Ne){const nt=Me.canLoad;if(void 0===nt||0===nt.length)return(0,b.of)(!0);const At=nt.map(Ft=>{const fi=ri(Ft,pe);return he(function ar(pe){return pe&&ji(pe.canLoad)}(fi)?fi.canLoad(Me,re):pe.runInContext(()=>fi(Me,re)))});return(0,b.of)(At).pipe(Ln(),rs())}(Me,re,Ne).pipe((0,ue.z)(nt=>nt?this.configLoader.loadChildren(Me,re).pipe((0,de.b)(At=>{re._loadedRoutes=At.routes,re._loadedInjector=At.injector})):function Ts(pe){return(0,S._)(ho(Eo,3))}())):(0,b.of)({routes:[],injector:Me})}lineralizeSegments(Me,re){let Ne=[],nt=re.root;for(;;){if(Ne=Ne.concat(nt.segments),0===nt.numberOfChildren)return(0,b.of)(Ne);if(nt.numberOfChildren>1||!nt.children[X])return(0,S._)(new t.vHH(4e3,Eo));nt=nt.children[X]}}applyRedirectCommands(Me,re,Ne){return this.applyRedirectCreateUrlTree(re,this.urlSerializer.parse(re),Me,Ne)}applyRedirectCreateUrlTree(Me,re,Ne,nt){const At=this.createSegmentGroup(Me,re.root,Ne,nt);return new pt(At,this.createQueryParams(re.queryParams,this.urlTree.queryParams),re.fragment)}createQueryParams(Me,re){const Ne={};return Ae(Me,(nt,At)=>{if("string"==typeof nt&&nt.startsWith(":")){const fi=nt.substring(1);Ne[At]=re[fi]}else Ne[At]=nt}),Ne}createSegmentGroup(Me,re,Ne,nt){const At=this.createSegments(Me,re.segments,Ne,nt);let Ft={};return Ae(re.children,(fi,Di)=>{Ft[Di]=this.createSegmentGroup(Me,fi,Ne,nt)}),new ot(At,Ft)}createSegments(Me,re,Ne,nt){return re.map(At=>At.path.startsWith(":")?this.findPosParam(Me,At,nt):this.findOrReturn(At,Ne))}findPosParam(Me,re,Ne){const nt=Ne[re.path.substring(1)];if(!nt)throw new t.vHH(4001,Eo);return nt}findOrReturn(Me,re){let Ne=0;for(const nt of re){if(nt.path===Me.path)return re.splice(Ne),nt;Ne++}return Me}}class an{}class ua{constructor(Me,re,Ne,nt,At,Ft,fi){this.injector=Me,this.rootComponentType=re,this.config=Ne,this.urlTree=nt,this.url=At,this.paramsInheritanceStrategy=Ft,this.urlSerializer=fi}recognize(){const Me=go(this.urlTree.root,[],[],this.config.filter(re=>void 0===re.redirectTo)).segmentGroup;return this.processSegmentGroup(this.injector,this.config,Me,X).pipe((0,U.U)(re=>{if(null===re)return null;const Ne=new Kr([],Object.freeze({}),Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,{},X,this.rootComponentType,null,this.urlTree.root,-1,{}),nt=new Fn(Ne,re),At=new Er(this.url,nt);return this.inheritParamsAndData(At._root),At}))}inheritParamsAndData(Me){const re=Me.value,Ne=Ga(re,this.paramsInheritanceStrategy);re.params=Object.freeze(Ne.params),re.data=Object.freeze(Ne.data),Me.children.forEach(nt=>this.inheritParamsAndData(nt))}processSegmentGroup(Me,re,Ne,nt){return 0===Ne.segments.length&&Ne.hasChildren()?this.processChildren(Me,re,Ne):this.processSegment(Me,re,Ne,Ne.segments,nt)}processChildren(Me,re,Ne){return(0,e.D)(Object.keys(Ne.children)).pipe((0,ne.b)(nt=>{const At=Ne.children[nt],Ft=Wn(re,nt);return this.processSegmentGroup(Me,Ft,At,nt)}),(0,me.R)((nt,At)=>nt&&At?(nt.push(...At),nt):null),(0,L.o)(nt=>null!==nt),(0,l.d)(null),T(),(0,U.U)(nt=>{if(null===nt)return null;const At=Bn(nt);return function Ls(pe){pe.sort((Me,re)=>Me.value.outlet===X?-1:re.value.outlet===X?1:Me.value.outlet.localeCompare(re.value.outlet))}(At),At}))}processSegment(Me,re,Ne,nt,At){return(0,e.D)(re).pipe((0,ne.b)(Ft=>this.processSegmentAgainstRoute(Ft._injector??Me,Ft,Ne,nt,At)),(0,le.P)(Ft=>!!Ft),(0,$.K)(Ft=>{if(ha(Ft))return So(Ne,nt,At)?(0,b.of)([]):(0,b.of)(null);throw Ft}))}processSegmentAgainstRoute(Me,re,Ne,nt,At){if(re.redirectTo||!os(re,Ne,nt,At))return(0,b.of)(null);let Ft;if("**"===re.path){const fi=nt.length>0?oe(nt).parameters:{},Di=Ma(Ne)+nt.length,sn=new Kr(nt,fi,Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,Ie(re),Kn(re),re.component??re._loadedComponent??null,re,ba(Ne),Di,gt(re));Ft=(0,b.of)({snapshot:sn,consumedSegments:[],remainingSegments:[]})}else Ft=ki(Ne,re,nt,Me).pipe((0,U.U)(({matched:fi,consumedSegments:Di,remainingSegments:sn,parameters:qi})=>{if(!fi)return null;const qn=Ma(Ne)+Di.length;return{snapshot:new Kr(Di,qi,Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,Ie(re),Kn(re),re.component??re._loadedComponent??null,re,ba(Ne),qn,gt(re)),consumedSegments:Di,remainingSegments:sn}}));return Ft.pipe((0,W.w)(fi=>{if(null===fi)return(0,b.of)(null);const{snapshot:Di,consumedSegments:sn,remainingSegments:qi}=fi;Me=re._injector??Me;const qn=re._loadedInjector??Me,Ta=function Gc(pe){return pe.children?pe.children:pe.loadChildren?pe._loadedRoutes:[]}(re),{segmentGroup:za,slicedSegments:Aa}=go(Ne,sn,qi,Ta.filter(ao=>void 0===ao.redirectTo));if(0===Aa.length&&za.hasChildren())return this.processChildren(qn,Ta,za).pipe((0,U.U)(ao=>null===ao?null:[new Fn(Di,ao)]));if(0===Ta.length&&0===Aa.length)return(0,b.of)([new Fn(Di,[])]);const ds=Kn(re)===At;return this.processSegment(qn,Ta,za,Aa,ds?X:At).pipe((0,U.U)(ao=>null===ao?null:[new Fn(Di,ao)]))}))}}function yc(pe){const Me=pe.value.routeConfig;return Me&&""===Me.path&&void 0===Me.redirectTo}function Bn(pe){const Me=[],re=new Set;for(const Ne of pe){if(!yc(Ne)){Me.push(Ne);continue}const nt=Me.find(At=>Ne.value.routeConfig===At.value.routeConfig);void 0!==nt?(nt.children.push(...Ne.children),re.add(nt)):Me.push(Ne)}for(const Ne of re){const nt=Bn(Ne.children);Me.push(new Fn(Ne.value,nt))}return Me.filter(Ne=>!re.has(Ne))}function ba(pe){let Me=pe;for(;Me._sourceSegment;)Me=Me._sourceSegment;return Me}function Ma(pe){let Me=pe,re=Me._segmentIndexShift??0;for(;Me._sourceSegment;)Me=Me._sourceSegment,re+=Me._segmentIndexShift??0;return re-1}function Ie(pe){return pe.data||{}}function gt(pe){return pe.resolve||{}}function li(pe){return"string"==typeof pe.title||null===pe.title}function $t(pe){return(0,W.w)(Me=>{const re=pe(Me);return re?(0,e.D)(re).pipe((0,U.U)(()=>Me)):(0,b.of)(Me)})}const Hi=new t.OlP("ROUTES");let Zi=(()=>{class pe{constructor(re,Ne){this.injector=re,this.compiler=Ne,this.componentLoaders=new WeakMap,this.childrenLoaders=new WeakMap}loadComponent(re){if(this.componentLoaders.get(re))return this.componentLoaders.get(re);if(re._loadedComponent)return(0,b.of)(re._loadedComponent);this.onLoadStartListener&&this.onLoadStartListener(re);const Ne=he(re.loadComponent()).pipe((0,U.U)(xn),(0,de.b)(At=>{this.onLoadEndListener&&this.onLoadEndListener(re),re._loadedComponent=At}),(0,n.x)(()=>{this.componentLoaders.delete(re)})),nt=new E.c(Ne,()=>new R.x).pipe((0,_.x)());return this.componentLoaders.set(re,nt),nt}loadChildren(re,Ne){if(this.childrenLoaders.get(Ne))return this.childrenLoaders.get(Ne);if(Ne._loadedRoutes)return(0,b.of)({routes:Ne._loadedRoutes,injector:Ne._loadedInjector});this.onLoadStartListener&&this.onLoadStartListener(Ne);const At=this.loadModuleFactoryOrRoutes(Ne.loadChildren).pipe((0,U.U)(fi=>{this.onLoadEndListener&&this.onLoadEndListener(Ne);let Di,sn,qi=!1;Array.isArray(fi)?sn=fi:(Di=fi.create(re).injector,sn=ve(Di.get(Hi,[],t.XFs.Self|t.XFs.Optional)));return{routes:sn.map(Or),injector:Di}}),(0,n.x)(()=>{this.childrenLoaders.delete(Ne)})),Ft=new E.c(At,()=>new R.x).pipe((0,_.x)());return this.childrenLoaders.set(Ne,Ft),Ft}loadModuleFactoryOrRoutes(re){return he(re()).pipe((0,U.U)(xn),(0,ue.z)(nt=>nt instanceof t.YKP||Array.isArray(nt)?(0,b.of)(nt):(0,e.D)(this.compiler.compileModuleAsync(nt))))}}return pe.\u0275fac=function(re){return new(re||pe)(t.LFG(t.zs3),t.LFG(t.Sil))},pe.\u0275prov=t.Yz7({token:pe,factory:pe.\u0275fac,providedIn:"root"}),pe})();function xn(pe){return function nn(pe){return pe&&"object"==typeof pe&&"default"in pe}(pe)?pe.default:pe}let fa=(()=>{class pe{get hasRequestedNavigation(){return 0!==this.navigationId}constructor(){this.currentNavigation=null,this.lastSuccessfulNavigation=null,this.events=new R.x,this.configLoader=(0,t.f3M)(Zi),this.environmentInjector=(0,t.f3M)(t.lqb),this.urlSerializer=(0,t.f3M)(Y),this.rootContexts=(0,t.f3M)(ir),this.navigationId=0,this.afterPreactivation=()=>(0,b.of)(void 0),this.rootComponentType=null,this.configLoader.onLoadEndListener=nt=>this.events.next(new Ua(nt)),this.configLoader.onLoadStartListener=nt=>this.events.next(new Zn(nt))}complete(){this.transitions?.complete()}handleNavigationRequest(re){const Ne=++this.navigationId;this.transitions?.next({...this.transitions.value,...re,id:Ne})}setupNavigations(re){return this.transitions=new I.X({id:0,targetPageId:0,currentUrlTree:re.currentUrlTree,currentRawUrl:re.currentUrlTree,extractedUrl:re.urlHandlingStrategy.extract(re.currentUrlTree),urlAfterRedirects:re.urlHandlingStrategy.extract(re.currentUrlTree),rawUrl:re.currentUrlTree,extras:{},resolve:null,reject:null,promise:Promise.resolve(!0),source:It,restoredState:null,currentSnapshot:re.routerState.snapshot,targetSnapshot:null,currentRouterState:re.routerState,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null}),this.transitions.pipe((0,ie.h)(Ne=>0!==Ne.id),(0,U.U)(Ne=>({...Ne,extractedUrl:re.urlHandlingStrategy.extract(Ne.rawUrl)})),(0,W.w)(Ne=>{let nt=!1,At=!1;return(0,b.of)(Ne).pipe((0,de.b)(Ft=>{this.currentNavigation={id:Ft.id,initialUrl:Ft.rawUrl,extractedUrl:Ft.extractedUrl,trigger:Ft.source,extras:Ft.extras,previousNavigation:this.lastSuccessfulNavigation?{...this.lastSuccessfulNavigation,previousNavigation:null}:null}}),(0,W.w)(Ft=>{const fi=re.browserUrlTree.toString(),Di=!re.navigated||Ft.extractedUrl.toString()!==fi||fi!==re.currentUrlTree.toString();if(!Di&&"reload"!==(Ft.extras.onSameUrlNavigation??re.onSameUrlNavigation)){const qi="";return this.events.next(new Ni(Ft.id,re.serializeUrl(Ne.rawUrl),qi,0)),re.rawUrlTree=Ft.rawUrl,Ft.resolve(null),O.E}if(re.urlHandlingStrategy.shouldProcessUrl(Ft.rawUrl))return ma(Ft.source)&&(re.browserUrlTree=Ft.extractedUrl),(0,b.of)(Ft).pipe((0,W.w)(qi=>{const qn=this.transitions?.getValue();return this.events.next(new zt(qi.id,this.urlSerializer.serialize(qi.extractedUrl),qi.source,qi.restoredState)),qn!==this.transitions?.getValue()?O.E:Promise.resolve(qi)}),function to(pe,Me,re,Ne){return(0,W.w)(nt=>function As(pe,Me,re,Ne,nt){return new Ra(pe,Me,re,Ne,nt).apply()}(pe,Me,re,nt.extractedUrl,Ne).pipe((0,U.U)(At=>({...nt,urlAfterRedirects:At}))))}(this.environmentInjector,this.configLoader,this.urlSerializer,re.config),(0,de.b)(qi=>{this.currentNavigation={...this.currentNavigation,finalUrl:qi.urlAfterRedirects},Ne.urlAfterRedirects=qi.urlAfterRedirects}),function j(pe,Me,re,Ne,nt){return(0,ue.z)(At=>function qa(pe,Me,re,Ne,nt,At,Ft="emptyOnly"){return new ua(pe,Me,re,Ne,nt,Ft,At).recognize().pipe((0,W.w)(fi=>null===fi?function ka(pe){return new w.y(Me=>Me.error(pe))}(new an):(0,b.of)(fi)))}(pe,Me,re,At.urlAfterRedirects,Ne.serialize(At.urlAfterRedirects),Ne,nt).pipe((0,U.U)(Ft=>({...At,targetSnapshot:Ft}))))}(this.environmentInjector,this.rootComponentType,re.config,this.urlSerializer,re.paramsInheritanceStrategy),(0,de.b)(qi=>{if(Ne.targetSnapshot=qi.targetSnapshot,"eager"===re.urlUpdateStrategy){if(!qi.extras.skipLocationChange){const Ta=re.urlHandlingStrategy.merge(qi.urlAfterRedirects,qi.rawUrl);re.setBrowserUrl(Ta,qi)}re.browserUrlTree=qi.urlAfterRedirects}const qn=new Ki(qi.id,this.urlSerializer.serialize(qi.extractedUrl),this.urlSerializer.serialize(qi.urlAfterRedirects),qi.targetSnapshot);this.events.next(qn)}));if(Di&&re.urlHandlingStrategy.shouldProcessUrl(re.rawUrlTree)){const{id:qi,extractedUrl:qn,source:Ta,restoredState:za,extras:Aa}=Ft,ds=new zt(qi,this.urlSerializer.serialize(qn),Ta,za);this.events.next(ds);const ao=Sr(qn,this.rootComponentType).snapshot;return Ne={...Ft,targetSnapshot:ao,urlAfterRedirects:qn,extras:{...Aa,skipLocationChange:!1,replaceUrl:!1}},(0,b.of)(Ne)}{const qi="";return this.events.next(new Ni(Ft.id,re.serializeUrl(Ne.extractedUrl),qi,1)),re.rawUrlTree=Ft.rawUrl,Ft.resolve(null),O.E}}),(0,de.b)(Ft=>{const fi=new pa(Ft.id,this.urlSerializer.serialize(Ft.extractedUrl),this.urlSerializer.serialize(Ft.urlAfterRedirects),Ft.targetSnapshot);this.events.next(fi)}),(0,U.U)(Ft=>Ne={...Ft,guards:di(Ft.targetSnapshot,Ft.currentSnapshot,this.rootContexts)}),function Ro(pe,Me){return(0,ue.z)(re=>{const{targetSnapshot:Ne,currentSnapshot:nt,guards:{canActivateChecks:At,canDeactivateChecks:Ft}}=re;return 0===Ft.length&&0===At.length?(0,b.of)({...re,guardsResult:!0}):function Js(pe,Me,re,Ne){return(0,e.D)(pe).pipe((0,ue.z)(nt=>function Ko(pe,Me,re,Ne,nt){const At=Me&&Me.routeConfig?Me.routeConfig.canDeactivate:null;if(!At||0===At.length)return(0,b.of)(!0);const Ft=At.map(fi=>{const Di=_r(Me)??nt,sn=ri(fi,Di);return he(function Ge(pe){return pe&&ji(pe.canDeactivate)}(sn)?sn.canDeactivate(pe,Me,re,Ne):Di.runInContext(()=>sn(pe,Me,re,Ne))).pipe((0,le.P)())});return(0,b.of)(Ft).pipe(Ln())}(nt.component,nt.route,re,Me,Ne)),(0,le.P)(nt=>!0!==nt,!0))}(Ft,Ne,nt,pe).pipe((0,ue.z)(fi=>fi&&function bn(pe){return"boolean"==typeof pe}(fi)?function Ha(pe,Me,re,Ne){return(0,e.D)(Me).pipe((0,ne.b)(nt=>(0,h.z)(function eo(pe,Me){return null!==pe&&Me&&Me(new Lt(pe)),(0,b.of)(!0)}(nt.route.parent,Ne),function Yo(pe,Me){return null!==pe&&Me&&Me(new si(pe)),(0,b.of)(!0)}(nt.route,Ne),function jo(pe,Me,re){const Ne=Me[Me.length-1],At=Me.slice(0,Me.length-1).reverse().map(Ft=>function Ct(pe){const Me=pe.routeConfig?pe.routeConfig.canActivateChild:null;return Me&&0!==Me.length?{node:pe,guards:Me}:null}(Ft)).filter(Ft=>null!==Ft).map(Ft=>(0,P.P)(()=>{const fi=Ft.guards.map(Di=>{const sn=_r(Ft.node)??re,qi=ri(Di,sn);return he(function Xe(pe){return pe&&ji(pe.canActivateChild)}(qi)?qi.canActivateChild(Ne,pe):sn.runInContext(()=>qi(Ne,pe))).pipe((0,le.P)())});return(0,b.of)(fi).pipe(Ln())}));return(0,b.of)(At).pipe(Ln())}(pe,nt.path,re),function vr(pe,Me,re){const Ne=Me.routeConfig?Me.routeConfig.canActivate:null;if(!Ne||0===Ne.length)return(0,b.of)(!0);const nt=Ne.map(At=>(0,P.P)(()=>{const Ft=_r(Me)??re,fi=ri(At,Ft);return he(function rt(pe){return pe&&ji(pe.canActivate)}(fi)?fi.canActivate(Me,pe):Ft.runInContext(()=>fi(Me,pe))).pipe((0,le.P)())}));return(0,b.of)(nt).pipe(Ln())}(pe,nt.route,re))),(0,le.P)(nt=>!0!==nt,!0))}(Ne,At,pe,Me):(0,b.of)(fi)),(0,U.U)(fi=>({...re,guardsResult:fi})))})}(this.environmentInjector,Ft=>this.events.next(Ft)),(0,de.b)(Ft=>{if(Ne.guardsResult=Ft.guardsResult,Oe(Ft.guardsResult))throw Gr(0,Ft.guardsResult);const fi=new sa(Ft.id,this.urlSerializer.serialize(Ft.extractedUrl),this.urlSerializer.serialize(Ft.urlAfterRedirects),Ft.targetSnapshot,!!Ft.guardsResult);this.events.next(fi)}),(0,ie.h)(Ft=>!!Ft.guardsResult||(re.restoreHistory(Ft),this.cancelNavigationTransition(Ft,"",3),!1)),$t(Ft=>{if(Ft.guards.canActivateChecks.length)return(0,b.of)(Ft).pipe((0,de.b)(fi=>{const Di=new Ia(fi.id,this.urlSerializer.serialize(fi.extractedUrl),this.urlSerializer.serialize(fi.urlAfterRedirects),fi.targetSnapshot);this.events.next(Di)}),(0,W.w)(fi=>{let Di=!1;return(0,b.of)(fi).pipe(function Se(pe,Me){return(0,ue.z)(re=>{const{targetSnapshot:Ne,guards:{canActivateChecks:nt}}=re;if(!nt.length)return(0,b.of)(re);let At=0;return(0,e.D)(nt).pipe((0,ne.b)(Ft=>function ze(pe,Me,re,Ne){const nt=pe.routeConfig,At=pe._resolve;return void 0!==nt?.title&&!li(nt)&&(At[Le]=nt.title),function yt(pe,Me,re,Ne){const nt=function Pe(pe){return[...Object.keys(pe),...Object.getOwnPropertySymbols(pe)]}(pe);if(0===nt.length)return(0,b.of)({});const At={};return(0,e.D)(nt).pipe((0,ue.z)(Ft=>function jt(pe,Me,re,Ne){const nt=_r(Me)??Ne,At=ri(pe,nt);return he(At.resolve?At.resolve(Me,re):nt.runInContext(()=>At(Me,re)))}(pe[Ft],Me,re,Ne).pipe((0,le.P)(),(0,de.b)(fi=>{At[Ft]=fi}))),a(1),(0,m.h)(At),(0,$.K)(Ft=>ha(Ft)?O.E:(0,S._)(Ft)))}(At,pe,Me,Ne).pipe((0,U.U)(Ft=>(pe._resolvedData=Ft,pe.data=Ga(pe,re).resolve,nt&&li(nt)&&(pe.data[Le]=nt.title),null)))}(Ft.route,Ne,pe,Me)),(0,de.b)(()=>At++),a(1),(0,ue.z)(Ft=>At===nt.length?(0,b.of)(re):O.E))})}(re.paramsInheritanceStrategy,this.environmentInjector),(0,de.b)({next:()=>Di=!0,complete:()=>{Di||(re.restoreHistory(fi),this.cancelNavigationTransition(fi,"",2))}}))}),(0,de.b)(fi=>{const Di=new Oa(fi.id,this.urlSerializer.serialize(fi.extractedUrl),this.urlSerializer.serialize(fi.urlAfterRedirects),fi.targetSnapshot);this.events.next(Di)}))}),$t(Ft=>{const fi=Di=>{const sn=[];Di.routeConfig?.loadComponent&&!Di.routeConfig._loadedComponent&&sn.push(this.configLoader.loadComponent(Di.routeConfig).pipe((0,de.b)(qi=>{Di.component=qi}),(0,U.U)(()=>{})));for(const qi of Di.children)sn.push(...fi(qi));return sn};return(0,C.a)(fi(Ft.targetSnapshot.root)).pipe((0,l.d)(),(0,K.q)(1))}),$t(()=>this.afterPreactivation()),(0,U.U)(Ft=>{const fi=function Za(pe,Me,re){const Ne=qr(pe,Me._root,re?re._root:void 0);return new Dr(Ne,Me)}(re.routeReuseStrategy,Ft.targetSnapshot,Ft.currentRouterState);return Ne={...Ft,targetRouterState:fi}}),(0,de.b)(Ft=>{re.currentUrlTree=Ft.urlAfterRedirects,re.rawUrlTree=re.urlHandlingStrategy.merge(Ft.urlAfterRedirects,Ft.rawUrl),re.routerState=Ft.targetRouterState,"deferred"===re.urlUpdateStrategy&&(Ft.extras.skipLocationChange||re.setBrowserUrl(re.rawUrlTree,Ft),re.browserUrlTree=Ft.urlAfterRedirects)}),((pe,Me,re)=>(0,U.U)(Ne=>(new ca(Me,Ne.targetRouterState,Ne.currentRouterState,re).activate(pe),Ne)))(this.rootContexts,re.routeReuseStrategy,Ft=>this.events.next(Ft)),(0,de.b)({next:Ft=>{nt=!0,this.lastSuccessfulNavigation=this.currentNavigation,re.navigated=!0,this.events.next(new oi(Ft.id,this.urlSerializer.serialize(Ft.extractedUrl),this.urlSerializer.serialize(re.currentUrlTree))),re.titleStrategy?.updateTitle(Ft.targetRouterState.snapshot),Ft.resolve(!0)},complete:()=>{nt=!0}}),(0,n.x)(()=>{nt||At||this.cancelNavigationTransition(Ne,"",1),this.currentNavigation?.id===Ne.id&&(this.currentNavigation=null)}),(0,$.K)(Ft=>{if(At=!0,uo(Ft)){Zr(Ft)||(re.navigated=!0,re.restoreHistory(Ne,!0));const fi=new Yt(Ne.id,this.urlSerializer.serialize(Ne.extractedUrl),Ft.message,Ft.cancellationCode);if(this.events.next(fi),Zr(Ft)){const Di=re.urlHandlingStrategy.merge(Ft.url,re.rawUrlTree),sn={skipLocationChange:Ne.extras.skipLocationChange,replaceUrl:"eager"===re.urlUpdateStrategy||ma(Ne.source)};re.scheduleNavigation(Di,It,null,sn,{resolve:Ne.resolve,reject:Ne.reject,promise:Ne.promise})}else Ne.resolve(!1)}else{re.restoreHistory(Ne,!0);const fi=new on(Ne.id,this.urlSerializer.serialize(Ne.extractedUrl),Ft,Ne.targetSnapshot??void 0);this.events.next(fi);try{Ne.resolve(re.errorHandler(Ft))}catch(Di){Ne.reject(Di)}}return O.E}))}))}cancelNavigationTransition(re,Ne,nt){const At=new Yt(re.id,this.urlSerializer.serialize(re.extractedUrl),Ne,nt);this.events.next(At),re.resolve(!1)}}return pe.\u0275fac=function(re){return new(re||pe)},pe.\u0275prov=t.Yz7({token:pe,factory:pe.\u0275fac,providedIn:"root"}),pe})();function ma(pe){return pe!==It}let Sa=(()=>{class pe{buildTitle(re){let Ne,nt=re.root;for(;void 0!==nt;)Ne=this.getResolvedTitleForRoute(nt)??Ne,nt=nt.children.find(At=>At.outlet===X);return Ne}getResolvedTitleForRoute(re){return re.data[Le]}}return pe.\u0275fac=function(re){return new(re||pe)},pe.\u0275prov=t.Yz7({token:pe,factory:function(){return(0,t.f3M)(ya)},providedIn:"root"}),pe})(),ya=(()=>{class pe extends Sa{constructor(re){super(),this.title=re}updateTitle(re){const Ne=this.buildTitle(re);void 0!==Ne&&this.title.setTitle(Ne)}}return pe.\u0275fac=function(re){return new(re||pe)(t.LFG(V.Dx))},pe.\u0275prov=t.Yz7({token:pe,factory:pe.\u0275fac,providedIn:"root"}),pe})(),xa=(()=>{class pe{}return pe.\u0275fac=function(re){return new(re||pe)},pe.\u0275prov=t.Yz7({token:pe,factory:function(){return(0,t.f3M)(Ea)},providedIn:"root"}),pe})();class yr{shouldDetach(Me){return!1}store(Me,re){}shouldAttach(Me){return!1}retrieve(Me){return null}shouldReuseRoute(Me,re){return Me.routeConfig===re.routeConfig}}let Ea=(()=>{class pe extends yr{}return pe.\u0275fac=function(){let Me;return function(Ne){return(Me||(Me=t.n5z(pe)))(Ne||pe)}}(),pe.\u0275prov=t.Yz7({token:pe,factory:pe.\u0275fac,providedIn:"root"}),pe})();const Wa=new t.OlP("",{providedIn:"root",factory:()=>({})});let no=(()=>{class pe{}return pe.\u0275fac=function(re){return new(re||pe)},pe.\u0275prov=t.Yz7({token:pe,factory:function(){return(0,t.f3M)(_o)},providedIn:"root"}),pe})(),_o=(()=>{class pe{shouldProcessUrl(re){return!0}extract(re){return re}merge(re,Ne){return re}}return pe.\u0275fac=function(re){return new(re||pe)},pe.\u0275prov=t.Yz7({token:pe,factory:pe.\u0275fac,providedIn:"root"}),pe})();function Ho(pe){throw pe}function e1(pe,Me,re){return Me.parse("/")}const Wc={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},Sl={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"};let Pr=(()=>{class pe{get navigationId(){return this.navigationTransitions.navigationId}get browserPageId(){return this.location.getState()?.\u0275routerPageId}get events(){return this.navigationTransitions.events}constructor(){this.disposed=!1,this.currentPageId=0,this.console=(0,t.f3M)(t.c2e),this.isNgZoneEnabled=!1,this.options=(0,t.f3M)(Wa,{optional:!0})||{},this.errorHandler=this.options.errorHandler||Ho,this.malformedUriErrorHandler=this.options.malformedUriErrorHandler||e1,this.navigated=!1,this.lastSuccessfulId=-1,this.urlHandlingStrategy=(0,t.f3M)(no),this.routeReuseStrategy=(0,t.f3M)(xa),this.urlCreationStrategy=(0,t.f3M)(ga),this.titleStrategy=(0,t.f3M)(Sa),this.onSameUrlNavigation=this.options.onSameUrlNavigation||"ignore",this.paramsInheritanceStrategy=this.options.paramsInheritanceStrategy||"emptyOnly",this.urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred",this.canceledNavigationResolution=this.options.canceledNavigationResolution||"replace",this.config=ve((0,t.f3M)(Hi,{optional:!0})??[]),this.navigationTransitions=(0,t.f3M)(fa),this.urlSerializer=(0,t.f3M)(Y),this.location=(0,t.f3M)(z.Ye),this.isNgZoneEnabled=(0,t.f3M)(t.R0b)instanceof t.R0b&&t.R0b.isInAngularZone(),this.resetConfig(this.config),this.currentUrlTree=new pt,this.rawUrlTree=this.currentUrlTree,this.browserUrlTree=this.currentUrlTree,this.routerState=Sr(this.currentUrlTree,null),this.navigationTransitions.setupNavigations(this).subscribe(re=>{this.lastSuccessfulId=re.id,this.currentPageId=re.targetPageId},re=>{this.console.warn(`Unhandled Navigation Error: ${re}`)})}resetRootComponentType(re){this.routerState.root.component=re,this.navigationTransitions.rootComponentType=re}initialNavigation(){if(this.setUpLocationChangeListener(),!this.navigationTransitions.hasRequestedNavigation){const re=this.location.getState();this.navigateToSyncWithBrowser(this.location.path(!0),It,re)}}setUpLocationChangeListener(){this.locationSubscription||(this.locationSubscription=this.location.subscribe(re=>{const Ne="popstate"===re.type?"popstate":"hashchange";"popstate"===Ne&&setTimeout(()=>{this.navigateToSyncWithBrowser(re.url,Ne,re.state)},0)}))}navigateToSyncWithBrowser(re,Ne,nt){const At={replaceUrl:!0},Ft=nt?.navigationId?nt:null;if(nt){const Di={...nt};delete Di.navigationId,delete Di.\u0275routerPageId,0!==Object.keys(Di).length&&(At.state=Di)}const fi=this.parseUrl(re);this.scheduleNavigation(fi,Ne,Ft,At)}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return this.navigationTransitions.currentNavigation}resetConfig(re){this.config=re.map(Or),this.navigated=!1,this.lastSuccessfulId=-1}ngOnDestroy(){this.dispose()}dispose(){this.navigationTransitions.complete(),this.locationSubscription&&(this.locationSubscription.unsubscribe(),this.locationSubscription=void 0),this.disposed=!0}createUrlTree(re,Ne={}){const{relativeTo:nt,queryParams:At,fragment:Ft,queryParamsHandling:fi,preserveFragment:Di}=Ne,sn=Di?this.currentUrlTree.fragment:Ft;let qi=null;switch(fi){case"merge":qi={...this.currentUrlTree.queryParams,...At};break;case"preserve":qi=this.currentUrlTree.queryParams;break;default:qi=At||null}return null!==qi&&(qi=this.removeEmptyProps(qi)),this.urlCreationStrategy.createUrlTree(nt,this.routerState,this.currentUrlTree,re,qi,sn??null)}navigateByUrl(re,Ne={skipLocationChange:!1}){const nt=Oe(re)?re:this.parseUrl(re),At=this.urlHandlingStrategy.merge(nt,this.rawUrlTree);return this.scheduleNavigation(At,It,null,Ne)}navigate(re,Ne={skipLocationChange:!1}){return function Yc(pe){for(let Me=0;Me<pe.length;Me++){if(null==pe[Me])throw new t.vHH(4008,!1)}}(re),this.navigateByUrl(this.createUrlTree(re,Ne),Ne)}serializeUrl(re){return this.urlSerializer.serialize(re)}parseUrl(re){let Ne;try{Ne=this.urlSerializer.parse(re)}catch(nt){Ne=this.malformedUriErrorHandler(nt,this.urlSerializer,re)}return Ne}isActive(re,Ne){let nt;if(nt=!0===Ne?{...Wc}:!1===Ne?{...Sl}:Ne,Oe(re))return Be(this.currentUrlTree,re,nt);const At=this.parseUrl(re);return Be(this.currentUrlTree,At,nt)}removeEmptyProps(re){return Object.keys(re).reduce((Ne,nt)=>{const At=re[nt];return null!=At&&(Ne[nt]=At),Ne},{})}scheduleNavigation(re,Ne,nt,At,Ft){if(this.disposed)return Promise.resolve(!1);let fi,Di,sn,qi;return Ft?(fi=Ft.resolve,Di=Ft.reject,sn=Ft.promise):sn=new Promise((qn,Ta)=>{fi=qn,Di=Ta}),qi="computed"===this.canceledNavigationResolution?nt&&nt.\u0275routerPageId?nt.\u0275routerPageId:At.replaceUrl||At.skipLocationChange?this.browserPageId??0:(this.browserPageId??0)+1:0,this.navigationTransitions.handleNavigationRequest({targetPageId:qi,source:Ne,restoredState:nt,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,rawUrl:re,extras:At,resolve:fi,reject:Di,promise:sn,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),sn.catch(qn=>Promise.reject(qn))}setBrowserUrl(re,Ne){const nt=this.urlSerializer.serialize(re),At={...Ne.extras.state,...this.generateNgRouterState(Ne.id,Ne.targetPageId)};this.location.isCurrentPathEqualTo(nt)||Ne.extras.replaceUrl?this.location.replaceState(nt,"",At):this.location.go(nt,"",At)}restoreHistory(re,Ne=!1){if("computed"===this.canceledNavigationResolution){const nt=this.currentPageId-re.targetPageId;"popstate"!==re.source&&"eager"!==this.urlUpdateStrategy&&this.currentUrlTree!==this.getCurrentNavigation()?.finalUrl||0===nt?this.currentUrlTree===this.getCurrentNavigation()?.finalUrl&&0===nt&&(this.resetState(re),this.browserUrlTree=re.currentUrlTree,this.resetUrlToCurrentUrlTree()):this.location.historyGo(nt)}else"replace"===this.canceledNavigationResolution&&(Ne&&this.resetState(re),this.resetUrlToCurrentUrlTree())}resetState(re){this.routerState=re.currentRouterState,this.currentUrlTree=re.currentUrlTree,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,re.rawUrl)}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId))}generateNgRouterState(re,Ne){return"computed"===this.canceledNavigationResolution?{navigationId:re,\u0275routerPageId:Ne}:{navigationId:re}}}return pe.\u0275fac=function(re){return new(re||pe)},pe.\u0275prov=t.Yz7({token:pe,factory:pe.\u0275fac,providedIn:"root"}),pe})(),tc=(()=>{class pe{constructor(re,Ne,nt,At,Ft,fi){this.router=re,this.route=Ne,this.tabIndexAttribute=nt,this.renderer=At,this.el=Ft,this.locationStrategy=fi,this._preserveFragment=!1,this._skipLocationChange=!1,this._replaceUrl=!1,this.href=null,this.commands=null,this.onChanges=new R.x;const Di=Ft.nativeElement.tagName?.toLowerCase();this.isAnchorElement="a"===Di||"area"===Di,this.isAnchorElement?this.subscription=re.events.subscribe(sn=>{sn instanceof oi&&this.updateHref()}):this.setTabIndexIfNotOnNativeEl("0")}set preserveFragment(re){this._preserveFragment=(0,t.D6c)(re)}get preserveFragment(){return this._preserveFragment}set skipLocationChange(re){this._skipLocationChange=(0,t.D6c)(re)}get skipLocationChange(){return this._skipLocationChange}set replaceUrl(re){this._replaceUrl=(0,t.D6c)(re)}get replaceUrl(){return this._replaceUrl}setTabIndexIfNotOnNativeEl(re){null!=this.tabIndexAttribute||this.isAnchorElement||this.applyAttributeValue("tabindex",re)}ngOnChanges(re){this.isAnchorElement&&this.updateHref(),this.onChanges.next(this)}set routerLink(re){null!=re?(this.commands=Array.isArray(re)?re:[re],this.setTabIndexIfNotOnNativeEl("0")):(this.commands=null,this.setTabIndexIfNotOnNativeEl(null))}onClick(re,Ne,nt,At,Ft){return!!(null===this.urlTree||this.isAnchorElement&&(0!==re||Ne||nt||At||Ft||"string"==typeof this.target&&"_self"!=this.target))||(this.router.navigateByUrl(this.urlTree,{skipLocationChange:this.skipLocationChange,replaceUrl:this.replaceUrl,state:this.state}),!this.isAnchorElement)}ngOnDestroy(){this.subscription?.unsubscribe()}updateHref(){this.href=null!==this.urlTree&&this.locationStrategy?this.locationStrategy?.prepareExternalUrl(this.router.serializeUrl(this.urlTree)):null;const re=null===this.href?null:(0,t.P3R)(this.href,this.el.nativeElement.tagName.toLowerCase(),"href");this.applyAttributeValue("href",re)}applyAttributeValue(re,Ne){const nt=this.renderer,At=this.el.nativeElement;null!==Ne?nt.setAttribute(At,re,Ne):nt.removeAttribute(At,re)}get urlTree(){return null===this.commands?null:this.router.createUrlTree(this.commands,{relativeTo:void 0!==this.relativeTo?this.relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,queryParamsHandling:this.queryParamsHandling,preserveFragment:this.preserveFragment})}}return pe.\u0275fac=function(re){return new(re||pe)(t.Y36(Pr),t.Y36(jn),t.$8M("tabindex"),t.Y36(t.Qsj),t.Y36(t.SBq),t.Y36(z.S$))},pe.\u0275dir=t.lG2({type:pe,selectors:[["","routerLink",""]],hostVars:1,hostBindings:function(re,Ne){1&re&&t.NdJ("click",function(At){return Ne.onClick(At.button,At.ctrlKey,At.shiftKey,At.altKey,At.metaKey)}),2&re&&t.uIk("target",Ne.target)},inputs:{target:"target",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",state:"state",relativeTo:"relativeTo",preserveFragment:"preserveFragment",skipLocationChange:"skipLocationChange",replaceUrl:"replaceUrl",routerLink:"routerLink"},standalone:!0,features:[t.TTD]}),pe})(),jc=(()=>{class pe{get isActive(){return this._isActive}constructor(re,Ne,nt,At,Ft){this.router=re,this.element=Ne,this.renderer=nt,this.cdr=At,this.link=Ft,this.classes=[],this._isActive=!1,this.routerLinkActiveOptions={exact:!1},this.isActiveChange=new t.vpe,this.routerEventsSubscription=re.events.subscribe(fi=>{fi instanceof oi&&this.update()})}ngAfterContentInit(){(0,b.of)(this.links.changes,(0,b.of)(null)).pipe((0,B.J)()).subscribe(re=>{this.update(),this.subscribeToEachLinkOnChanges()})}subscribeToEachLinkOnChanges(){this.linkInputChangesSubscription?.unsubscribe();const re=[...this.links.toArray(),this.link].filter(Ne=>!!Ne).map(Ne=>Ne.onChanges);this.linkInputChangesSubscription=(0,e.D)(re).pipe((0,B.J)()).subscribe(Ne=>{this._isActive!==this.isLinkActive(this.router)(Ne)&&this.update()})}set routerLinkActive(re){const Ne=Array.isArray(re)?re:re.split(" ");this.classes=Ne.filter(nt=>!!nt)}ngOnChanges(re){this.update()}ngOnDestroy(){this.routerEventsSubscription.unsubscribe(),this.linkInputChangesSubscription?.unsubscribe()}update(){!this.links||!this.router.navigated||Promise.resolve().then(()=>{const re=this.hasActiveLinks();this._isActive!==re&&(this._isActive=re,this.cdr.markForCheck(),this.classes.forEach(Ne=>{re?this.renderer.addClass(this.element.nativeElement,Ne):this.renderer.removeClass(this.element.nativeElement,Ne)}),re&&void 0!==this.ariaCurrentWhenActive?this.renderer.setAttribute(this.element.nativeElement,"aria-current",this.ariaCurrentWhenActive.toString()):this.renderer.removeAttribute(this.element.nativeElement,"aria-current"),this.isActiveChange.emit(re))})}isLinkActive(re){const Ne=function t1(pe){return!!pe.paths}(this.routerLinkActiveOptions)?this.routerLinkActiveOptions:this.routerLinkActiveOptions.exact||!1;return nt=>!!nt.urlTree&&re.isActive(nt.urlTree,Ne)}hasActiveLinks(){const re=this.isLinkActive(this.router);return this.link&&re(this.link)||this.links.some(re)}}return pe.\u0275fac=function(re){return new(re||pe)(t.Y36(Pr),t.Y36(t.SBq),t.Y36(t.Qsj),t.Y36(t.sBO),t.Y36(tc,8))},pe.\u0275dir=t.lG2({type:pe,selectors:[["","routerLinkActive",""]],contentQueries:function(re,Ne,nt){if(1&re&&t.Suo(nt,tc,5),2&re){let At;t.iGM(At=t.CRH())&&(Ne.links=At)}},inputs:{routerLinkActiveOptions:"routerLinkActiveOptions",ariaCurrentWhenActive:"ariaCurrentWhenActive",routerLinkActive:"routerLinkActive"},outputs:{isActiveChange:"isActiveChange"},exportAs:["routerLinkActive"],standalone:!0,features:[t.TTD]}),pe})();class El{}let n1=(()=>{class pe{constructor(re,Ne,nt,At,Ft){this.router=re,this.injector=nt,this.preloadingStrategy=At,this.loader=Ft}setUpPreloading(){this.subscription=this.router.events.pipe((0,ie.h)(re=>re instanceof oi),(0,ne.b)(()=>this.preload())).subscribe(()=>{})}preload(){return this.processRoutes(this.injector,this.router.config)}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}processRoutes(re,Ne){const nt=[];for(const At of Ne){At.providers&&!At._injector&&(At._injector=(0,t.MMx)(At.providers,re,`Route: ${At.path}`));const Ft=At._injector??re,fi=At._loadedInjector??Ft;At.loadChildren&&!At._loadedRoutes&&void 0===At.canLoad||At.loadComponent&&!At._loadedComponent?nt.push(this.preloadConfig(Ft,At)):(At.children||At._loadedRoutes)&&nt.push(this.processRoutes(fi,At.children??At._loadedRoutes))}return(0,e.D)(nt).pipe((0,B.J)())}preloadConfig(re,Ne){return this.preloadingStrategy.preload(Ne,()=>{let nt;nt=Ne.loadChildren&&void 0===Ne.canLoad?this.loader.loadChildren(re,Ne):(0,b.of)(null);const At=nt.pipe((0,ue.z)(Ft=>null===Ft?(0,b.of)(void 0):(Ne._loadedRoutes=Ft.routes,Ne._loadedInjector=Ft.injector,this.processRoutes(Ft.injector??re,Ft.routes))));if(Ne.loadComponent&&!Ne._loadedComponent){const Ft=this.loader.loadComponent(Ne);return(0,e.D)([At,Ft]).pipe((0,B.J)())}return At})}}return pe.\u0275fac=function(re){return new(re||pe)(t.LFG(Pr),t.LFG(t.Sil),t.LFG(t.lqb),t.LFG(El),t.LFG(Zi))},pe.\u0275prov=t.Yz7({token:pe,factory:pe.\u0275fac,providedIn:"root"}),pe})();const Ds=new t.OlP("");let cs=(()=>{class pe{constructor(re,Ne,nt,At,Ft={}){this.urlSerializer=re,this.transitions=Ne,this.viewportScroller=nt,this.zone=At,this.options=Ft,this.lastId=0,this.lastSource="imperative",this.restoredId=0,this.store={},Ft.scrollPositionRestoration=Ft.scrollPositionRestoration||"disabled",Ft.anchorScrolling=Ft.anchorScrolling||"disabled"}init(){"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.setHistoryScrollRestoration("manual"),this.routerEventsSubscription=this.createScrollEvents(),this.scrollEventsSubscription=this.consumeScrollEvents()}createScrollEvents(){return this.transitions.events.subscribe(re=>{re instanceof zt?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=re.navigationTrigger,this.restoredId=re.restoredState?re.restoredState.navigationId:0):re instanceof oi&&(this.lastId=re.id,this.scheduleScrollEvent(re,this.urlSerializer.parse(re.urlAfterRedirects).fragment))})}consumeScrollEvents(){return this.transitions.events.subscribe(re=>{re instanceof Oi&&(re.position?"top"===this.options.scrollPositionRestoration?this.viewportScroller.scrollToPosition([0,0]):"enabled"===this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition(re.position):re.anchor&&"enabled"===this.options.anchorScrolling?this.viewportScroller.scrollToAnchor(re.anchor):"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition([0,0]))})}scheduleScrollEvent(re,Ne){this.zone.runOutsideAngular(()=>{setTimeout(()=>{this.zone.run(()=>{this.transitions.events.next(new Oi(re,"popstate"===this.lastSource?this.store[this.restoredId]:null,Ne))})},0)})}ngOnDestroy(){this.routerEventsSubscription?.unsubscribe(),this.scrollEventsSubscription?.unsubscribe()}}return pe.\u0275fac=function(re){t.$Z()},pe.\u0275prov=t.Yz7({token:pe,factory:pe.\u0275fac}),pe})();function lr(pe,Me){return{\u0275kind:pe,\u0275providers:Me}}function Tl(){const pe=(0,t.f3M)(t.zs3);return Me=>{const re=pe.get(t.z2F);if(Me!==re.components[0])return;const Ne=pe.get(Pr),nt=pe.get(xc);1===pe.get(vo)&&Ne.initialNavigation(),pe.get(Kc,null,t.XFs.Optional)?.setUpPreloading(),pe.get(Ds,null,t.XFs.Optional)?.init(),Ne.resetRootComponentType(re.componentTypes[0]),nt.closed||(nt.next(),nt.unsubscribe())}}const xc=new t.OlP("",{factory:()=>new R.x}),vo=new t.OlP("",{providedIn:"root",factory:()=>1});const Kc=new t.OlP("");function Ps(pe){return lr(0,[{provide:Kc,useExisting:n1},{provide:El,useExisting:pe}])}const X1=new t.OlP("ROUTER_FORROOT_GUARD"),Qc=[z.Ye,{provide:Y,useClass:Re},Pr,ir,{provide:jn,useFactory:function ks(pe){return pe.routerState.root},deps:[Pr]},Zi,[]];function u2(){return new t.PXZ("Router",Pr)}let $1=(()=>{class pe{constructor(re){}static forRoot(re,Ne){return{ngModule:pe,providers:[Qc,[],{provide:Hi,multi:!0,useValue:re},{provide:X1,useFactory:ic,deps:[[Pr,new t.FiY,new t.tp0]]},{provide:Wa,useValue:Ne||{}},Ne?.useHash?{provide:z.S$,useClass:z.Do}:{provide:z.S$,useClass:z.b0},{provide:Ds,useFactory:()=>{const pe=(0,t.f3M)(z.EM),Me=(0,t.f3M)(t.R0b),re=(0,t.f3M)(Wa),Ne=(0,t.f3M)(fa),nt=(0,t.f3M)(Y);return re.scrollOffset&&pe.setOffset(re.scrollOffset),new cs(nt,Ne,pe,Me,re)}},Ne?.preloadingStrategy?Ps(Ne.preloadingStrategy).\u0275providers:[],{provide:t.PXZ,multi:!0,useFactory:u2},Ne?.initialNavigation?J0(Ne):[],[{provide:rr,useFactory:Tl},{provide:t.tb,multi:!0,useExisting:rr}]]}}static forChild(re){return{ngModule:pe,providers:[{provide:Hi,multi:!0,useValue:re}]}}}return pe.\u0275fac=function(re){return new(re||pe)(t.LFG(X1,8))},pe.\u0275mod=t.oAB({type:pe}),pe.\u0275inj=t.cJS({imports:[kr]}),pe})();function ic(pe){return"guarded"}function J0(pe){return["disabled"===pe.initialNavigation?lr(3,[{provide:t.ip1,multi:!0,useFactory:()=>{const Me=(0,t.f3M)(Pr);return()=>{Me.setUpLocationChangeListener()}}},{provide:vo,useValue:2}]).\u0275providers:[],"enabledBlocking"===pe.initialNavigation?lr(2,[{provide:vo,useValue:0},{provide:t.ip1,multi:!0,deps:[t.zs3],useFactory:Me=>{const re=Me.get(z.V_,Promise.resolve());return()=>re.then(()=>new Promise(nt=>{const At=Me.get(Pr),Ft=Me.get(xc);(function Ne(nt){Me.get(Pr).events.pipe((0,ie.h)(Ft=>Ft instanceof oi||Ft instanceof Yt||Ft instanceof on),(0,U.U)(Ft=>Ft instanceof oi||Ft instanceof Yt&&(0===Ft.code||1===Ft.code)&&null),(0,ie.h)(Ft=>null!==Ft),(0,K.q)(1)).subscribe(()=>{nt()})})(()=>{nt(!0)}),Me.get(fa).afterPreactivation=()=>(nt(!0),Ft.closed?(0,b.of)(void 0):Ft),At.initialNavigation()}))}}]).\u0275providers:[]]}const rr=new t.OlP("")},2216:(Ve,q,p)=>{"use strict";p.d(q,{BN:()=>Bn,uH:()=>gt});var t=p(4650);function e(j,Se){var ze=Object.keys(j);if(Object.getOwnPropertySymbols){var yt=Object.getOwnPropertySymbols(j);Se&&(yt=yt.filter(function(Pe){return Object.getOwnPropertyDescriptor(j,Pe).enumerable})),ze.push.apply(ze,yt)}return ze}function b(j){for(var Se=1;Se<arguments.length;Se++){var ze=null!=arguments[Se]?arguments[Se]:{};Se%2?e(Object(ze),!0).forEach(function(yt){d(j,yt,ze[yt])}):Object.getOwnPropertyDescriptors?Object.defineProperties(j,Object.getOwnPropertyDescriptors(ze)):e(Object(ze)).forEach(function(yt){Object.defineProperty(j,yt,Object.getOwnPropertyDescriptor(ze,yt))})}return j}function I(j){return(I="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(Se){return typeof Se}:function(Se){return Se&&"function"==typeof Symbol&&Se.constructor===Symbol&&Se!==Symbol.prototype?"symbol":typeof Se})(j)}function h(j,Se){for(var ze=0;ze<Se.length;ze++){var yt=Se[ze];yt.enumerable=yt.enumerable||!1,yt.configurable=!0,"value"in yt&&(yt.writable=!0),Object.defineProperty(j,yt.key,yt)}}function d(j,Se,ze){return Se in j?Object.defineProperty(j,Se,{value:ze,enumerable:!0,configurable:!0,writable:!0}):j[Se]=ze,j}function O(j,Se){return function z(j){if(Array.isArray(j))return j}(j)||function W(j,Se){var ze=null==j?null:typeof Symbol<"u"&&j[Symbol.iterator]||j["@@iterator"];if(null!=ze){var li,$t,yt=[],Pe=!0,jt=!1;try{for(ze=ze.call(j);!(Pe=(li=ze.next()).done)&&(yt.push(li.value),!Se||yt.length!==Se);Pe=!0);}catch(_i){jt=!0,$t=_i}finally{try{!Pe&&null!=ze.return&&ze.return()}finally{if(jt)throw $t}}return yt}}(j,Se)||K(j,Se)||function ue(){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 E(j){return function R(j){if(Array.isArray(j))return ee(j)}(j)||function U(j){if(typeof Symbol<"u"&&null!=j[Symbol.iterator]||null!=j["@@iterator"])return Array.from(j)}(j)||K(j)||function ie(){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 K(j,Se){if(j){if("string"==typeof j)return ee(j,Se);var ze=Object.prototype.toString.call(j).slice(8,-1);if("Object"===ze&&j.constructor&&(ze=j.constructor.name),"Map"===ze||"Set"===ze)return Array.from(j);if("Arguments"===ze||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(ze))return ee(j,Se)}}function ee(j,Se){(null==Se||Se>j.length)&&(Se=j.length);for(var ze=0,yt=new Array(Se);ze<Se;ze++)yt[ze]=j[ze];return yt}var le=function(){},ne={},de={},$=null,me={mark:le,measure:le};try{typeof window<"u"&&(ne=window),typeof document<"u"&&(de=document),typeof MutationObserver<"u"&&($=MutationObserver),typeof performance<"u"&&(me=performance)}catch{}var _,B,V,X,Le,i=(ne.navigator||{}).userAgent,a=void 0===i?"":i,u=ne,l=de,y=$,T=me,m=!!l.documentElement&&!!l.head&&"function"==typeof l.addEventListener&&"function"==typeof l.createElement,n=~a.indexOf("MSIE")||~a.indexOf("Trident/"),$e="___FONT_AWESOME___",De="svg-inline--fa",ye="data-fa-i2svg",ce="data-fa-pseudo-element",oe="data-prefix",je="data-icon",Ae="fontawesome-i2svg",Ce=["HTML","HEAD","STYLE","SCRIPT"],te=function(){try{return!0}catch{return!1}}(),Ue="classic",Be="sharp",ae=[Ue,Be];function ge(j){return new Proxy(j,{get:function(ze,yt){return yt in ze?ze[yt]:ze[Ue]}})}var ft=ge((d(_={},Ue,{fa:"solid",fas:"solid","fa-solid":"solid",far:"regular","fa-regular":"regular",fal:"light","fa-light":"light",fat:"thin","fa-thin":"thin",fad:"duotone","fa-duotone":"duotone",fab:"brands","fa-brands":"brands",fak:"kit","fa-kit":"kit"}),d(_,Be,{fa:"solid",fass:"solid","fa-solid":"solid",fasr:"regular","fa-regular":"regular"}),_)),Je=ge((d(B={},Ue,{solid:"fas",regular:"far",light:"fal",thin:"fat",duotone:"fad",brands:"fab",kit:"fak"}),d(B,Be,{solid:"fass",regular:"fasr"}),B)),dt=ge((d(V={},Ue,{fab:"fa-brands",fad:"fa-duotone",fak:"fa-kit",fal:"fa-light",far:"fa-regular",fas:"fa-solid",fat:"fa-thin"}),d(V,Be,{fass:"fa-solid",fasr:"fa-regular"}),V)),Et=ge((d(X={},Ue,{"fa-brands":"fab","fa-duotone":"fad","fa-kit":"fak","fa-light":"fal","fa-regular":"far","fa-solid":"fas","fa-thin":"fat"}),d(X,Be,{"fa-solid":"fass","fa-regular":"fasr"}),X)),pt=/fa(s|r|l|t|d|b|k|ss|sr)?[\-\ ]/,ot="fa-layers-text",wt=/Font ?Awesome ?([56 ]*)(Solid|Regular|Light|Thin|Duotone|Brands|Free|Pro|Sharp|Kit)?.*/i,ke=ge((d(Le={},Ue,{900:"fas",400:"far",normal:"far",300:"fal",100:"fat"}),d(Le,Be,{900:"fass",400:"fasr"}),Le)),Ke=[1,2,3,4,5,6,7,8,9,10],xt=Ke.concat([11,12,13,14,15,16,17,18,19,20]),Y=["class","data-prefix","data-icon","data-fa-transform","data-fa-mask"],Tt=new Set;Object.keys(Je[Ue]).map(Tt.add.bind(Tt)),Object.keys(Je[Be]).map(Tt.add.bind(Tt));var Qe=[].concat(ae,E(Tt),["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(Ke.map(function(j){return"".concat(j,"x")})).concat(xt.map(function(j){return"w-".concat(j)})),Ye=u.FontAwesomeConfig||{};l&&"function"==typeof l.querySelector&&[["data-family-prefix","familyPrefix"],["data-css-prefix","cssPrefix"],["data-family-default","familyDefault"],["data-style-default","styleDefault"],["data-replacement-class","replacementClass"],["data-auto-replace-svg","autoReplaceSvg"],["data-auto-add-css","autoAddCss"],["data-auto-a11y","autoA11y"],["data-search-pseudo-elements","searchPseudoElements"],["data-observe-mutations","observeMutations"],["data-mutate-approach","mutateApproach"],["data-keep-original-source","keepOriginalSource"],["data-measure-performance","measurePerformance"],["data-show-missing-icons","showMissingIcons"]].forEach(function(j){var Se=O(j,2),yt=Se[1],Pe=function Mt(j){return""===j||"false"!==j&&("true"===j||j)}(function Ht(j){var Se=l.querySelector("script["+j+"]");if(Se)return Se.getAttribute(j)}(Se[0]));null!=Pe&&(Ye[yt]=Pe)});var _t={styleDefault:"solid",familyDefault:"classic",cssPrefix:"fa",replacementClass:De,autoReplaceSvg:!0,autoAddCss:!0,autoA11y:!0,searchPseudoElements:!1,observeMutations:!0,mutateApproach:"async",keepOriginalSource:!0,measurePerformance:!1,showMissingIcons:!0};Ye.familyPrefix&&(Ye.cssPrefix=Ye.familyPrefix);var we=b(b({},_t),Ye);we.autoReplaceSvg||(we.observeMutations=!1);var J={};Object.keys(_t).forEach(function(j){Object.defineProperty(J,j,{enumerable:!0,set:function(ze){we[j]=ze,be.forEach(function(yt){return yt(J)})},get:function(){return we[j]}})}),Object.defineProperty(J,"familyPrefix",{enumerable:!0,set:function(Se){we.cssPrefix=Se,be.forEach(function(ze){return ze(J)})},get:function(){return we.cssPrefix}}),u.FontAwesomeConfig=J;var be=[],ii={size:16,x:0,y:0,rotate:0,flipX:!1,flipY:!1};function ut(){for(var j=12,Se="";j-- >0;)Se+="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ"[62*Math.random()|0];return Se}function tt(j){for(var Se=[],ze=(j||[]).length>>>0;ze--;)Se[ze]=j[ze];return Se}function vt(j){return j.classList?tt(j.classList):(j.getAttribute("class")||"").split(" ").filter(function(Se){return Se})}function ti(j){return"".concat(j).replace(/&/g,"&amp;").replace(/"/g,"&quot;").replace(/'/g,"&#39;").replace(/</g,"&lt;").replace(/>/g,"&gt;")}function ht(j){return Object.keys(j||{}).reduce(function(Se,ze){return Se+"".concat(ze,": ").concat(j[ze].trim(),";")},"")}function Rt(j){return j.size!==ii.size||j.x!==ii.x||j.y!==ii.y||j.rotate!==ii.rotate||j.flipX||j.flipY}function ct(){var j="fa",Se=De,ze=J.cssPrefix,yt=J.replacementClass,Pe=':root, :host {\n --fa-font-solid: normal 900 1em/1 "Font Awesome 6 Solid";\n --fa-font-regular: normal 400 1em/1 "Font Awesome 6 Regular";\n --fa-font-light: normal 300 1em/1 "Font Awesome 6 Light";\n --fa-font-thin: normal 100 1em/1 "Font Awesome 6 Thin";\n --fa-font-duotone: normal 900 1em/1 "Font Awesome 6 Duotone";\n --fa-font-sharp-solid: normal 900 1em/1 "Font Awesome 6 Sharp";\n --fa-font-sharp-regular: normal 400 1em/1 "Font Awesome 6 Sharp";\n --fa-font-brands: normal 400 1em/1 "Font Awesome 6 Brands";\n}\n\nsvg:not(:root).svg-inline--fa, svg:not(:host).svg-inline--fa {\n overflow: visible;\n box-sizing: content-box;\n}\n\n.svg-inline--fa {\n display: var(--fa-display, inline-block);\n height: 1em;\n overflow: visible;\n vertical-align: -0.125em;\n}\n.svg-inline--fa.fa-2xs {\n vertical-align: 0.1em;\n}\n.svg-inline--fa.fa-xs {\n vertical-align: 0em;\n}\n.svg-inline--fa.fa-sm {\n vertical-align: -0.0714285705em;\n}\n.svg-inline--fa.fa-lg {\n vertical-align: -0.2em;\n}\n.svg-inline--fa.fa-xl {\n vertical-align: -0.25em;\n}\n.svg-inline--fa.fa-2xl {\n vertical-align: -0.3125em;\n}\n.svg-inline--fa.fa-pull-left {\n margin-right: var(--fa-pull-margin, 0.3em);\n width: auto;\n}\n.svg-inline--fa.fa-pull-right {\n margin-left: var(--fa-pull-margin, 0.3em);\n width: auto;\n}\n.svg-inline--fa.fa-li {\n width: var(--fa-li-width, 2em);\n top: 0.25em;\n}\n.svg-inline--fa.fa-fw {\n width: var(--fa-fw-width, 1.25em);\n}\n\n.fa-layers svg.svg-inline--fa {\n bottom: 0;\n left: 0;\n margin: auto;\n position: absolute;\n right: 0;\n top: 0;\n}\n\n.fa-layers-counter, .fa-layers-text {\n display: inline-block;\n position: absolute;\n text-align: center;\n}\n\n.fa-layers {\n display: inline-block;\n height: 1em;\n position: relative;\n text-align: center;\n vertical-align: -0.125em;\n width: 1em;\n}\n.fa-layers svg.svg-inline--fa {\n -webkit-transform-origin: center center;\n transform-origin: center center;\n}\n\n.fa-layers-text {\n left: 50%;\n top: 50%;\n -webkit-transform: translate(-50%, -50%);\n transform: translate(-50%, -50%);\n -webkit-transform-origin: center center;\n transform-origin: center center;\n}\n\n.fa-layers-counter {\n background-color: var(--fa-counter-background-color, #ff253a);\n border-radius: var(--fa-counter-border-radius, 1em);\n box-sizing: border-box;\n color: var(--fa-inverse, #fff);\n line-height: var(--fa-counter-line-height, 1);\n max-width: var(--fa-counter-max-width, 5em);\n min-width: var(--fa-counter-min-width, 1.5em);\n overflow: hidden;\n padding: var(--fa-counter-padding, 0.25em 0.5em);\n right: var(--fa-right, 0);\n text-overflow: ellipsis;\n top: var(--fa-top, 0);\n -webkit-transform: scale(var(--fa-counter-scale, 0.25));\n transform: scale(var(--fa-counter-scale, 0.25));\n -webkit-transform-origin: top right;\n transform-origin: top right;\n}\n\n.fa-layers-bottom-right {\n bottom: var(--fa-bottom, 0);\n right: var(--fa-right, 0);\n top: auto;\n -webkit-transform: scale(var(--fa-layers-scale, 0.25));\n transform: scale(var(--fa-layers-scale, 0.25));\n -webkit-transform-origin: bottom right;\n transform-origin: bottom right;\n}\n\n.fa-layers-bottom-left {\n bottom: var(--fa-bottom, 0);\n left: var(--fa-left, 0);\n right: auto;\n top: auto;\n -webkit-transform: scale(var(--fa-layers-scale, 0.25));\n transform: scale(var(--fa-layers-scale, 0.25));\n -webkit-transform-origin: bottom left;\n transform-origin: bottom left;\n}\n\n.fa-layers-top-right {\n top: var(--fa-top, 0);\n right: var(--fa-right, 0);\n -webkit-transform: scale(var(--fa-layers-scale, 0.25));\n transform: scale(var(--fa-layers-scale, 0.25));\n -webkit-transform-origin: top right;\n transform-origin: top right;\n}\n\n.fa-layers-top-left {\n left: var(--fa-left, 0);\n right: auto;\n top: var(--fa-top, 0);\n -webkit-transform: scale(var(--fa-layers-scale, 0.25));\n transform: scale(var(--fa-layers-scale, 0.25));\n -webkit-transform-origin: top left;\n transform-origin: top left;\n}\n\n.fa-1x {\n font-size: 1em;\n}\n\n.fa-2x {\n font-size: 2em;\n}\n\n.fa-3x {\n font-size: 3em;\n}\n\n.fa-4x {\n font-size: 4em;\n}\n\n.fa-5x {\n font-size: 5em;\n}\n\n.fa-6x {\n font-size: 6em;\n}\n\n.fa-7x {\n font-size: 7em;\n}\n\n.fa-8x {\n font-size: 8em;\n}\n\n.fa-9x {\n font-size: 9em;\n}\n\n.fa-10x {\n font-size: 10em;\n}\n\n.fa-2xs {\n font-size: 0.625em;\n line-height: 0.1em;\n vertical-align: 0.225em;\n}\n\n.fa-xs {\n font-size: 0.75em;\n line-height: 0.0833333337em;\n vertical-align: 0.125em;\n}\n\n.fa-sm {\n font-size: 0.875em;\n line-height: 0.0714285718em;\n vertical-align: 0.0535714295em;\n}\n\n.fa-lg {\n font-size: 1.25em;\n line-height: 0.05em;\n vertical-align: -0.075em;\n}\n\n.fa-xl {\n font-size: 1.5em;\n line-height: 0.0416666682em;\n vertical-align: -0.125em;\n}\n\n.fa-2xl {\n font-size: 2em;\n line-height: 0.03125em;\n vertical-align: -0.1875em;\n}\n\n.fa-fw {\n text-align: center;\n width: 1.25em;\n}\n\n.fa-ul {\n list-style-type: none;\n margin-left: var(--fa-li-margin, 2.5em);\n padding-left: 0;\n}\n.fa-ul > li {\n position: relative;\n}\n\n.fa-li {\n left: calc(var(--fa-li-width, 2em) * -1);\n position: absolute;\n text-align: center;\n width: var(--fa-li-width, 2em);\n line-height: inherit;\n}\n\n.fa-border {\n border-color: var(--fa-border-color, #eee);\n border-radius: var(--fa-border-radius, 0.1em);\n border-style: var(--fa-border-style, solid);\n border-width: var(--fa-border-width, 0.08em);\n padding: var(--fa-border-padding, 0.2em 0.25em 0.15em);\n}\n\n.fa-pull-left {\n float: left;\n margin-right: var(--fa-pull-margin, 0.3em);\n}\n\n.fa-pull-right {\n float: right;\n margin-left: var(--fa-pull-margin, 0.3em);\n}\n\n.fa-beat {\n -webkit-animation-name: fa-beat;\n animation-name: fa-beat;\n -webkit-animation-delay: var(--fa-animation-delay, 0s);\n animation-delay: var(--fa-animation-delay, 0s);\n -webkit-animation-direction: var(--fa-animation-direction, normal);\n animation-direction: var(--fa-animation-direction, normal);\n -webkit-animation-duration: var(--fa-animation-duration, 1s);\n animation-duration: var(--fa-animation-duration, 1s);\n -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n -webkit-animation-timing-function: var(--fa-animation-timing, ease-in-out);\n animation-timing-function: var(--fa-animation-timing, ease-in-out);\n}\n\n.fa-bounce {\n -webkit-animation-name: fa-bounce;\n animation-name: fa-bounce;\n -webkit-animation-delay: var(--fa-animation-delay, 0s);\n animation-delay: var(--fa-animation-delay, 0s);\n -webkit-animation-direction: var(--fa-animation-direction, normal);\n animation-direction: var(--fa-animation-direction, normal);\n -webkit-animation-duration: var(--fa-animation-duration, 1s);\n animation-duration: var(--fa-animation-duration, 1s);\n -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n -webkit-animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.28, 0.84, 0.42, 1));\n animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.28, 0.84, 0.42, 1));\n}\n\n.fa-fade {\n -webkit-animation-name: fa-fade;\n animation-name: fa-fade;\n -webkit-animation-delay: var(--fa-animation-delay, 0s);\n animation-delay: var(--fa-animation-delay, 0s);\n -webkit-animation-direction: var(--fa-animation-direction, normal);\n animation-direction: var(--fa-animation-direction, normal);\n -webkit-animation-duration: var(--fa-animation-duration, 1s);\n animation-duration: var(--fa-animation-duration, 1s);\n -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n -webkit-animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.4, 0, 0.6, 1));\n animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.4, 0, 0.6, 1));\n}\n\n.fa-beat-fade {\n -webkit-animation-name: fa-beat-fade;\n animation-name: fa-beat-fade;\n -webkit-animation-delay: var(--fa-animation-delay, 0s);\n animation-delay: var(--fa-animation-delay, 0s);\n -webkit-animation-direction: var(--fa-animation-direction, normal);\n animation-direction: var(--fa-animation-direction, normal);\n -webkit-animation-duration: var(--fa-animation-duration, 1s);\n animation-duration: var(--fa-animation-duration, 1s);\n -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n -webkit-animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.4, 0, 0.6, 1));\n animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.4, 0, 0.6, 1));\n}\n\n.fa-flip {\n -webkit-animation-name: fa-flip;\n animation-name: fa-flip;\n -webkit-animation-delay: var(--fa-animation-delay, 0s);\n animation-delay: var(--fa-animation-delay, 0s);\n -webkit-animation-direction: var(--fa-animation-direction, normal);\n animation-direction: var(--fa-animation-direction, normal);\n -webkit-animation-duration: var(--fa-animation-duration, 1s);\n animation-duration: var(--fa-animation-duration, 1s);\n -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n -webkit-animation-timing-function: var(--fa-animation-timing, ease-in-out);\n animation-timing-function: var(--fa-animation-timing, ease-in-out);\n}\n\n.fa-shake {\n -webkit-animation-name: fa-shake;\n animation-name: fa-shake;\n -webkit-animation-delay: var(--fa-animation-delay, 0s);\n animation-delay: var(--fa-animation-delay, 0s);\n -webkit-animation-direction: var(--fa-animation-direction, normal);\n animation-direction: var(--fa-animation-direction, normal);\n -webkit-animation-duration: var(--fa-animation-duration, 1s);\n animation-duration: var(--fa-animation-duration, 1s);\n -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n -webkit-animation-timing-function: var(--fa-animation-timing, linear);\n animation-timing-function: var(--fa-animation-timing, linear);\n}\n\n.fa-spin {\n -webkit-animation-name: fa-spin;\n animation-name: fa-spin;\n -webkit-animation-delay: var(--fa-animation-delay, 0s);\n animation-delay: var(--fa-animation-delay, 0s);\n -webkit-animation-direction: var(--fa-animation-direction, normal);\n animation-direction: var(--fa-animation-direction, normal);\n -webkit-animation-duration: var(--fa-animation-duration, 2s);\n animation-duration: var(--fa-animation-duration, 2s);\n -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n -webkit-animation-timing-function: var(--fa-animation-timing, linear);\n animation-timing-function: var(--fa-animation-timing, linear);\n}\n\n.fa-spin-reverse {\n --fa-animation-direction: reverse;\n}\n\n.fa-pulse,\n.fa-spin-pulse {\n -webkit-animation-name: fa-spin;\n animation-name: fa-spin;\n -webkit-animation-direction: var(--fa-animation-direction, normal);\n animation-direction: var(--fa-animation-direction, normal);\n -webkit-animation-duration: var(--fa-animation-duration, 1s);\n animation-duration: var(--fa-animation-duration, 1s);\n -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n -webkit-animation-timing-function: var(--fa-animation-timing, steps(8));\n animation-timing-function: var(--fa-animation-timing, steps(8));\n}\n\n@media (prefers-reduced-motion: reduce) {\n .fa-beat,\n.fa-bounce,\n.fa-fade,\n.fa-beat-fade,\n.fa-flip,\n.fa-pulse,\n.fa-shake,\n.fa-spin,\n.fa-spin-pulse {\n -webkit-animation-delay: -1ms;\n animation-delay: -1ms;\n -webkit-animation-duration: 1ms;\n animation-duration: 1ms;\n -webkit-animation-iteration-count: 1;\n animation-iteration-count: 1;\n -webkit-transition-delay: 0s;\n transition-delay: 0s;\n -webkit-transition-duration: 0s;\n transition-duration: 0s;\n }\n}\n@-webkit-keyframes fa-beat {\n 0%, 90% {\n -webkit-transform: scale(1);\n transform: scale(1);\n }\n 45% {\n -webkit-transform: scale(var(--fa-beat-scale, 1.25));\n transform: scale(var(--fa-beat-scale, 1.25));\n }\n}\n@keyframes fa-beat {\n 0%, 90% {\n -webkit-transform: scale(1);\n transform: scale(1);\n }\n 45% {\n -webkit-transform: scale(var(--fa-beat-scale, 1.25));\n transform: scale(var(--fa-beat-scale, 1.25));\n }\n}\n@-webkit-keyframes fa-bounce {\n 0% {\n -webkit-transform: scale(1, 1) translateY(0);\n transform: scale(1, 1) translateY(0);\n }\n 10% {\n -webkit-transform: scale(var(--fa-bounce-start-scale-x, 1.1), var(--fa-bounce-start-scale-y, 0.9)) translateY(0);\n transform: scale(var(--fa-bounce-start-scale-x, 1.1), var(--fa-bounce-start-scale-y, 0.9)) translateY(0);\n }\n 30% {\n -webkit-transform: scale(var(--fa-bounce-jump-scale-x, 0.9), var(--fa-bounce-jump-scale-y, 1.1)) translateY(var(--fa-bounce-height, -0.5em));\n transform: scale(var(--fa-bounce-jump-scale-x, 0.9), var(--fa-bounce-jump-scale-y, 1.1)) translateY(var(--fa-bounce-height, -0.5em));\n }\n 50% {\n -webkit-transform: scale(var(--fa-bounce-land-scale-x, 1.05), var(--fa-bounce-land-scale-y, 0.95)) translateY(0);\n transform: scale(var(--fa-bounce-land-scale-x, 1.05), var(--fa-bounce-land-scale-y, 0.95)) translateY(0);\n }\n 57% {\n -webkit-transform: scale(1, 1) translateY(var(--fa-bounce-rebound, -0.125em));\n transform: scale(1, 1) translateY(var(--fa-bounce-rebound, -0.125em));\n }\n 64% {\n -webkit-transform: scale(1, 1) translateY(0);\n transform: scale(1, 1) translateY(0);\n }\n 100% {\n -webkit-transform: scale(1, 1) translateY(0);\n transform: scale(1, 1) translateY(0);\n }\n}\n@keyframes fa-bounce {\n 0% {\n -webkit-transform: scale(1, 1) translateY(0);\n transform: scale(1, 1) translateY(0);\n }\n 10% {\n -webkit-transform: scale(var(--fa-bounce-start-scale-x, 1.1), var(--fa-bounce-start-scale-y, 0.9)) translateY(0);\n transform: scale(var(--fa-bounce-start-scale-x, 1.1), var(--fa-bounce-start-scale-y, 0.9)) translateY(0);\n }\n 30% {\n -webkit-transform: scale(var(--fa-bounce-jump-scale-x, 0.9), var(--fa-bounce-jump-scale-y, 1.1)) translateY(var(--fa-bounce-height, -0.5em));\n transform: scale(var(--fa-bounce-jump-scale-x, 0.9), var(--fa-bounce-jump-scale-y, 1.1)) translateY(var(--fa-bounce-height, -0.5em));\n }\n 50% {\n -webkit-transform: scale(var(--fa-bounce-land-scale-x, 1.05), var(--fa-bounce-land-scale-y, 0.95)) translateY(0);\n transform: scale(var(--fa-bounce-land-scale-x, 1.05), var(--fa-bounce-land-scale-y, 0.95)) translateY(0);\n }\n 57% {\n -webkit-transform: scale(1, 1) translateY(var(--fa-bounce-rebound, -0.125em));\n transform: scale(1, 1) translateY(var(--fa-bounce-rebound, -0.125em));\n }\n 64% {\n -webkit-transform: scale(1, 1) translateY(0);\n transform: scale(1, 1) translateY(0);\n }\n 100% {\n -webkit-transform: scale(1, 1) translateY(0);\n transform: scale(1, 1) translateY(0);\n }\n}\n@-webkit-keyframes fa-fade {\n 50% {\n opacity: var(--fa-fade-opacity, 0.4);\n }\n}\n@keyframes fa-fade {\n 50% {\n opacity: var(--fa-fade-opacity, 0.4);\n }\n}\n@-webkit-keyframes fa-beat-fade {\n 0%, 100% {\n opacity: var(--fa-beat-fade-opacity, 0.4);\n -webkit-transform: scale(1);\n transform: scale(1);\n }\n 50% {\n opacity: 1;\n -webkit-transform: scale(var(--fa-beat-fade-scale, 1.125));\n transform: scale(var(--fa-beat-fade-scale, 1.125));\n }\n}\n@keyframes fa-beat-fade {\n 0%, 100% {\n opacity: var(--fa-beat-fade-opacity, 0.4);\n -webkit-transform: scale(1);\n transform: scale(1);\n }\n 50% {\n opacity: 1;\n -webkit-transform: scale(var(--fa-beat-fade-scale, 1.125));\n transform: scale(var(--fa-beat-fade-scale, 1.125));\n }\n}\n@-webkit-keyframes fa-flip {\n 50% {\n -webkit-transform: rotate3d(var(--fa-flip-x, 0), var(--fa-flip-y, 1), var(--fa-flip-z, 0), var(--fa-flip-angle, -180deg));\n transform: rotate3d(var(--fa-flip-x, 0), var(--fa-flip-y, 1), var(--fa-flip-z, 0), var(--fa-flip-angle, -180deg));\n }\n}\n@keyframes fa-flip {\n 50% {\n -webkit-transform: rotate3d(var(--fa-flip-x, 0), var(--fa-flip-y, 1), var(--fa-flip-z, 0), var(--fa-flip-angle, -180deg));\n transform: rotate3d(var(--fa-flip-x, 0), var(--fa-flip-y, 1), var(--fa-flip-z, 0), var(--fa-flip-angle, -180deg));\n }\n}\n@-webkit-keyframes fa-shake {\n 0% {\n -webkit-transform: rotate(-15deg);\n transform: rotate(-15deg);\n }\n 4% {\n -webkit-transform: rotate(15deg);\n transform: rotate(15deg);\n }\n 8%, 24% {\n -webkit-transform: rotate(-18deg);\n transform: rotate(-18deg);\n }\n 12%, 28% {\n -webkit-transform: rotate(18deg);\n transform: rotate(18deg);\n }\n 16% {\n -webkit-transform: rotate(-22deg);\n transform: rotate(-22deg);\n }\n 20% {\n -webkit-transform: rotate(22deg);\n transform: rotate(22deg);\n }\n 32% {\n -webkit-transform: rotate(-12deg);\n transform: rotate(-12deg);\n }\n 36% {\n -webkit-transform: rotate(12deg);\n transform: rotate(12deg);\n }\n 40%, 100% {\n -webkit-transform: rotate(0deg);\n transform: rotate(0deg);\n }\n}\n@keyframes fa-shake {\n 0% {\n -webkit-transform: rotate(-15deg);\n transform: rotate(-15deg);\n }\n 4% {\n -webkit-transform: rotate(15deg);\n transform: rotate(15deg);\n }\n 8%, 24% {\n -webkit-transform: rotate(-18deg);\n transform: rotate(-18deg);\n }\n 12%, 28% {\n -webkit-transform: rotate(18deg);\n transform: rotate(18deg);\n }\n 16% {\n -webkit-transform: rotate(-22deg);\n transform: rotate(-22deg);\n }\n 20% {\n -webkit-transform: rotate(22deg);\n transform: rotate(22deg);\n }\n 32% {\n -webkit-transform: rotate(-12deg);\n transform: rotate(-12deg);\n }\n 36% {\n -webkit-transform: rotate(12deg);\n transform: rotate(12deg);\n }\n 40%, 100% {\n -webkit-transform: rotate(0deg);\n transform: rotate(0deg);\n }\n}\n@-webkit-keyframes fa-spin {\n 0% {\n -webkit-transform: rotate(0deg);\n transform: rotate(0deg);\n }\n 100% {\n -webkit-transform: rotate(360deg);\n transform: rotate(360deg);\n }\n}\n@keyframes fa-spin {\n 0% {\n -webkit-transform: rotate(0deg);\n transform: rotate(0deg);\n }\n 100% {\n -webkit-transform: rotate(360deg);\n transform: rotate(360deg);\n }\n}\n.fa-rotate-90 {\n -webkit-transform: rotate(90deg);\n transform: rotate(90deg);\n}\n\n.fa-rotate-180 {\n -webkit-transform: rotate(180deg);\n transform: rotate(180deg);\n}\n\n.fa-rotate-270 {\n -webkit-transform: rotate(270deg);\n transform: rotate(270deg);\n}\n\n.fa-flip-horizontal {\n -webkit-transform: scale(-1, 1);\n transform: scale(-1, 1);\n}\n\n.fa-flip-vertical {\n -webkit-transform: scale(1, -1);\n transform: scale(1, -1);\n}\n\n.fa-flip-both,\n.fa-flip-horizontal.fa-flip-vertical {\n -webkit-transform: scale(-1, -1);\n transform: scale(-1, -1);\n}\n\n.fa-rotate-by {\n -webkit-transform: rotate(var(--fa-rotate-angle, none));\n transform: rotate(var(--fa-rotate-angle, none));\n}\n\n.fa-stack {\n display: inline-block;\n vertical-align: middle;\n height: 2em;\n position: relative;\n width: 2.5em;\n}\n\n.fa-stack-1x,\n.fa-stack-2x {\n bottom: 0;\n left: 0;\n margin: auto;\n position: absolute;\n right: 0;\n top: 0;\n z-index: var(--fa-stack-z-index, auto);\n}\n\n.svg-inline--fa.fa-stack-1x {\n height: 1em;\n width: 1.25em;\n}\n.svg-inline--fa.fa-stack-2x {\n height: 2em;\n width: 2.5em;\n}\n\n.fa-inverse {\n color: var(--fa-inverse, #fff);\n}\n\n.sr-only,\n.fa-sr-only {\n position: absolute;\n width: 1px;\n height: 1px;\n padding: 0;\n margin: -1px;\n overflow: hidden;\n clip: rect(0, 0, 0, 0);\n white-space: nowrap;\n border-width: 0;\n}\n\n.sr-only-focusable:not(:focus),\n.fa-sr-only-focusable:not(:focus) {\n position: absolute;\n width: 1px;\n height: 1px;\n padding: 0;\n margin: -1px;\n overflow: hidden;\n clip: rect(0, 0, 0, 0);\n white-space: nowrap;\n border-width: 0;\n}\n\n.svg-inline--fa .fa-primary {\n fill: var(--fa-primary-color, currentColor);\n opacity: var(--fa-primary-opacity, 1);\n}\n\n.svg-inline--fa .fa-secondary {\n fill: var(--fa-secondary-color, currentColor);\n opacity: var(--fa-secondary-opacity, 0.4);\n}\n\n.svg-inline--fa.fa-swap-opacity .fa-primary {\n opacity: var(--fa-secondary-opacity, 0.4);\n}\n\n.svg-inline--fa.fa-swap-opacity .fa-secondary {\n opacity: var(--fa-primary-opacity, 1);\n}\n\n.svg-inline--fa mask .fa-primary,\n.svg-inline--fa mask .fa-secondary {\n fill: black;\n}\n\n.fad.fa-inverse,\n.fa-duotone.fa-inverse {\n color: var(--fa-inverse, #fff);\n}';if(ze!==j||yt!==Se){var jt=new RegExp("\\.".concat(j,"\\-"),"g"),li=new RegExp("\\--".concat(j,"\\-"),"g"),$t=new RegExp("\\.".concat(Se),"g");Pe=Pe.replace(jt,".".concat(ze,"-")).replace(li,"--".concat(ze,"-")).replace($t,".".concat(yt))}return Pe}var Dt=!1;function pi(){J.autoAddCss&&!Dt&&(function Gt(j){if(j&&m){var Se=l.createElement("style");Se.setAttribute("type","text/css"),Se.innerHTML=j;for(var ze=l.head.childNodes,yt=null,Pe=ze.length-1;Pe>-1;Pe--){var jt=ze[Pe],li=(jt.tagName||"").toUpperCase();["STYLE","LINK"].indexOf(li)>-1&&(yt=jt)}l.head.insertBefore(Se,yt)}}(ct()),Dt=!0)}var Li={mixout:function(){return{dom:{css:ct,insertCss:pi}}},hooks:function(){return{beforeDOMElementCreation:function(){pi()},beforeI2svg:function(){pi()}}}},xi=u||{};xi[$e]||(xi[$e]={}),xi[$e].styles||(xi[$e].styles={}),xi[$e].hooks||(xi[$e].hooks={}),xi[$e].shims||(xi[$e].shims=[]);var Fi=xi[$e],qe=[],xe=!1;function Nt(j){m&&(xe?setTimeout(j,0):qe.push(j))}function qt(j){var Se=j.tag,ze=j.attributes,yt=void 0===ze?{}:ze,Pe=j.children,jt=void 0===Pe?[]:Pe;return"string"==typeof j?ti(j):"<".concat(Se," ").concat(function Ut(j){return Object.keys(j||{}).reduce(function(Se,ze){return Se+"".concat(ze,'="').concat(ti(j[ze]),'" ')},"").trim()}(yt),">").concat(jt.map(qt).join(""),"</").concat(Se,">")}function mi(j,Se,ze){if(j&&j[Se]&&j[Se][ze])return{prefix:Se,iconName:ze,icon:j[Se][ze]}}m&&((xe=(l.documentElement.doScroll?/^loaded|^c/:/^loaded|^i|^c/).test(l.readyState))||l.addEventListener("DOMContentLoaded",function j(){l.removeEventListener("DOMContentLoaded",j),xe=1,qe.map(function(Se){return Se()})}));var Ii=function(Se,ze,yt,Pe){var _i,Mi,Hi,jt=Object.keys(Se),li=jt.length,$t=void 0!==Pe?function(Se,ze){return function(yt,Pe,jt,li){return Se.call(ze,yt,Pe,jt,li)}}(ze,Pe):ze;for(void 0===yt?(_i=1,Hi=Se[jt[0]]):(_i=0,Hi=yt);_i<li;_i++)Hi=$t(Hi,Se[Mi=jt[_i]],Mi,Se);return Hi};function Yi(j){var Se=function Gi(j){for(var Se=[],ze=0,yt=j.length;ze<yt;){var Pe=j.charCodeAt(ze++);if(Pe>=55296&&Pe<=56319&&ze<yt){var jt=j.charCodeAt(ze++);56320==(64512&jt)?Se.push(((1023&Pe)<<10)+(1023&jt)+65536):(Se.push(Pe),ze--)}else Se.push(Pe)}return Se}(j);return 1===Se.length?Se[0].toString(16):null}function Wt(j){return Object.keys(j).reduce(function(Se,ze){var yt=j[ze];return yt.icon?Se[yt.iconName]=yt.icon:Se[ze]=yt,Se},{})}function Jt(j,Se){var ze=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},yt=ze.skipHooks,Pe=void 0!==yt&&yt,jt=Wt(Se);"function"!=typeof Fi.hooks.addPack||Pe?Fi.styles[j]=b(b({},Fi.styles[j]||{}),jt):Fi.hooks.addPack(j,Wt(Se)),"fas"===j&&Jt("fa",Se)}var lt,It,Bt,zt=Fi.styles,oi=Fi.shims,Yt=(d(lt={},Ue,Object.values(dt[Ue])),d(lt,Be,Object.values(dt[Be])),lt),Ni=null,on={},Ki={},pa={},sa={},Ia={},Oa=(d(It={},Ue,Object.keys(ft[Ue])),d(It,Be,Object.keys(ft[Be])),It);function Ua(j,Se){var ze=Se.split("-"),yt=ze[0],Pe=ze.slice(1).join("-");return yt!==j||""===Pe||function Zn(j){return~Qe.indexOf(j)}(Pe)?null:Pe}var Lt=function(){var Se=function(jt){return Ii(zt,function(li,$t,_i){return li[_i]=Ii($t,jt,{}),li},{})};on=Se(function(Pe,jt,li){return jt[3]&&(Pe[jt[3]]=li),jt[2]&&jt[2].filter(function(_i){return"number"==typeof _i}).forEach(function(_i){Pe[_i.toString(16)]=li}),Pe}),Ki=Se(function(Pe,jt,li){return Pe[li]=li,jt[2]&&jt[2].filter(function(_i){return"string"==typeof _i}).forEach(function(_i){Pe[_i]=li}),Pe}),Ia=Se(function(Pe,jt,li){var $t=jt[2];return Pe[li]=li,$t.forEach(function(_i){Pe[_i]=li}),Pe});var ze="far"in zt||J.autoFetchSvg,yt=Ii(oi,function(Pe,jt){var li=jt[0],$t=jt[1],_i=jt[2];return"far"===$t&&!ze&&($t="fas"),"string"==typeof li&&(Pe.names[li]={prefix:$t,iconName:_i}),"number"==typeof li&&(Pe.unicodes[li.toString(16)]={prefix:$t,iconName:_i}),Pe},{names:{},unicodes:{}});pa=yt.names,sa=yt.unicodes,Ni=zn(J.styleDefault,{family:J.familyDefault})};function ai(j,Se){return(on[j]||{})[Se]}function gi(j,Se){return(Ia[j]||{})[Se]}function Oi(j){return pa[j]||{prefix:null,iconName:null}}function fn(){return Ni}function zn(j){var Se=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},ze=Se.family,yt=void 0===ze?Ue:ze,Pe=ft[yt][j],jt=Je[yt][j]||Je[yt][Pe],li=j in Fi.styles?j:null;return jt||li||null}(function He(j){be.push(j)})(function(j){Ni=zn(j.styleDefault,{family:J.familyDefault})}),Lt();var ga=(d(Bt={},Ue,Object.keys(dt[Ue])),d(Bt,Be,Object.keys(dt[Be])),Bt);function An(j){var Se,ze=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},yt=ze.skipLookups,Pe=void 0!==yt&&yt,jt=(d(Se={},Ue,"".concat(J.cssPrefix,"-").concat(Ue)),d(Se,Be,"".concat(J.cssPrefix,"-").concat(Be)),Se),li=null,$t=Ue;(j.includes(jt[Ue])||j.some(function(Mi){return ga[Ue].includes(Mi)}))&&($t=Ue),(j.includes(jt[Be])||j.some(function(Mi){return ga[Be].includes(Mi)}))&&($t=Be);var _i=j.reduce(function(Mi,Hi){var Zi=Ua(J.cssPrefix,Hi);if(zt[Hi]?(Hi=Yt[$t].includes(Hi)?Et[$t][Hi]:Hi,li=Hi,Mi.prefix=Hi):Oa[$t].indexOf(Hi)>-1?(li=Hi,Mi.prefix=zn(Hi,{family:$t})):Zi?Mi.iconName=Zi:Hi!==J.replacementClass&&Hi!==jt[Ue]&&Hi!==jt[Be]&&Mi.rest.push(Hi),!Pe&&Mi.prefix&&Mi.iconName){var nn="fa"===li?Oi(Mi.iconName):{},xn=gi(Mi.prefix,Mi.iconName);nn.prefix&&(li=null),Mi.iconName=nn.iconName||xn||Mi.iconName,Mi.prefix=nn.prefix||Mi.prefix,"far"===Mi.prefix&&!zt.far&&zt.fas&&!J.autoFetchSvg&&(Mi.prefix="fas")}return Mi},{prefix:null,iconName:null,rest:[]});return(j.includes("fa-brands")||j.includes("fab"))&&(_i.prefix="fab"),(j.includes("fa-duotone")||j.includes("fad"))&&(_i.prefix="fad"),!_i.prefix&&$t===Be&&(zt.fass||J.autoFetchSvg)&&(_i.prefix="fass",_i.iconName=gi(_i.prefix,_i.iconName)||_i.iconName),("fa"===_i.prefix||"fa"===li)&&(_i.prefix=fn()||"fas"),_i}var Nn=function(){function j(){(function C(j,Se){if(!(j instanceof Se))throw new TypeError("Cannot call a class as a function")})(this,j),this.definitions={}}return function P(j,Se,ze){Se&&h(j.prototype,Se),ze&&h(j,ze),Object.defineProperty(j,"prototype",{writable:!1})}(j,[{key:"add",value:function(){for(var ze=this,yt=arguments.length,Pe=new Array(yt),jt=0;jt<yt;jt++)Pe[jt]=arguments[jt];var li=Pe.reduce(this._pullDefinitions,{});Object.keys(li).forEach(function($t){ze.definitions[$t]=b(b({},ze.definitions[$t]||{}),li[$t]),Jt($t,li[$t]);var _i=dt[Ue][$t];_i&&Jt(_i,li[$t]),Lt()})}},{key:"reset",value:function(){this.definitions={}}},{key:"_pullDefinitions",value:function(ze,yt){var Pe=yt.prefix&&yt.iconName&&yt.icon?{0:yt}:yt;return Object.keys(Pe).map(function(jt){var li=Pe[jt],$t=li.prefix,_i=li.iconName,Mi=li.icon,Hi=Mi[2];ze[$t]||(ze[$t]={}),Hi.length>0&&Hi.forEach(function(Zi){"string"==typeof Zi&&(ze[$t][Zi]=Mi)}),ze[$t][_i]=Mi}),ze}}]),j}(),jr=[],Fn={},Xn={},Dr=Object.keys(Xn);function tr(j,Se){for(var ze=arguments.length,yt=new Array(ze>2?ze-2:0),Pe=2;Pe<ze;Pe++)yt[Pe-2]=arguments[Pe];var jt=Fn[j]||[];return jt.forEach(function(li){Se=li.apply(null,[Se].concat(yt))}),Se}function jn(j){for(var Se=arguments.length,ze=new Array(Se>1?Se-1:0),yt=1;yt<Se;yt++)ze[yt-1]=arguments[yt];var Pe=Fn[j]||[];Pe.forEach(function(jt){jt.apply(null,ze)})}function Ga(){var j=arguments[0],Se=Array.prototype.slice.call(arguments,1);return Xn[j]?Xn[j].apply(null,Se):void 0}function Fa(j){"fa"===j.prefix&&(j.prefix="fas");var Se=j.iconName,ze=j.prefix||fn();if(Se)return Se=gi(ze,Se)||Se,mi(Kr.definitions,ze,Se)||mi(Fi.styles,ze,Se)}var Kr=new Nn,Qr={i2svg:function(){var Se=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return m?(jn("beforeI2svg",Se),Ga("pseudoElements2svg",Se),Ga("i2svg",Se)):Promise.reject("Operation requires a DOM of some kind.")},watch:function(){var Se=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},ze=Se.autoReplaceSvgRoot;!1===J.autoReplaceSvg&&(J.autoReplaceSvg=!0),J.observeMutations=!0,Nt(function(){Mo({autoReplaceSvgRoot:ze}),jn("watch",Se)})}},wa={noAuto:function(){J.autoReplaceSvg=!1,J.observeMutations=!1,jn("noAuto")},config:J,dom:Qr,parse:{icon:function(Se){if(null===Se)return null;if("object"===I(Se)&&Se.prefix&&Se.iconName)return{prefix:Se.prefix,iconName:gi(Se.prefix,Se.iconName)||Se.iconName};if(Array.isArray(Se)&&2===Se.length){var ze=0===Se[1].indexOf("fa-")?Se[1].slice(3):Se[1],yt=zn(Se[0]);return{prefix:yt,iconName:gi(yt,ze)||ze}}if("string"==typeof Se&&(Se.indexOf("".concat(J.cssPrefix,"-"))>-1||Se.match(pt))){var Pe=An(Se.split(" "),{skipLookups:!0});return{prefix:Pe.prefix||fn(),iconName:gi(Pe.prefix,Pe.iconName)||Pe.iconName}}if("string"==typeof Se){var jt=fn();return{prefix:jt,iconName:gi(jt,Se)||Se}}}},library:Kr,findIconDefinition:Fa,toHtml:qt},Mo=function(){var Se=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},ze=Se.autoReplaceSvgRoot,yt=void 0===ze?l:ze;(Object.keys(Fi.styles).length>0||J.autoFetchSvg)&&m&&J.autoReplaceSvg&&wa.dom.i2svg({node:yt})};function Za(j,Se){return Object.defineProperty(j,"abstract",{get:Se}),Object.defineProperty(j,"html",{get:function(){return j.abstract.map(function(yt){return qt(yt)})}}),Object.defineProperty(j,"node",{get:function(){if(m){var yt=l.createElement("div");return yt.innerHTML=j.html,yt.children}}}),j}function co(j){var Se=j.icons,ze=Se.main,yt=Se.mask,Pe=j.prefix,jt=j.iconName,li=j.transform,$t=j.symbol,_i=j.title,Mi=j.maskId,Hi=j.titleId,Zi=j.extra,nn=j.watchable,xn=void 0!==nn&&nn,ea=yt.found?yt:ze,fa=ea.width,ma=ea.height,Sa="fak"===Pe,ya=[J.replacementClass,jt?"".concat(J.cssPrefix,"-").concat(jt):""].filter(function(_o){return-1===Zi.classes.indexOf(_o)}).filter(function(_o){return""!==_o||!!_o}).concat(Zi.classes).join(" "),xa={children:[],attributes:b(b({},Zi.attributes),{},{"data-prefix":Pe,"data-icon":jt,class:ya,role:Zi.attributes.role||"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 ".concat(fa," ").concat(ma)})},yr=Sa&&!~Zi.classes.indexOf("fa-fw")?{width:"".concat(fa/ma*16*.0625,"em")}:{};xn&&(xa.attributes[ye]=""),_i&&(xa.children.push({tag:"title",attributes:{id:xa.attributes["aria-labelledby"]||"title-".concat(Hi||ut())},children:[_i]}),delete xa.attributes.title);var Ea=b(b({},xa),{},{prefix:Pe,iconName:jt,main:ze,mask:yt,maskId:Mi,transform:li,symbol:$t,styles:b(b({},yr),Zi.styles)}),io=yt.found&&ze.found?Ga("generateAbstractMask",Ea)||{children:[],attributes:{}}:Ga("generateAbstractIcon",Ea)||{children:[],attributes:{}},no=io.attributes;return Ea.children=io.children,Ea.attributes=no,$t?function so(j){var ze=j.iconName,yt=j.children,Pe=j.attributes,jt=j.symbol,li=!0===jt?"".concat(j.prefix,"-").concat(J.cssPrefix,"-").concat(ze):jt;return[{tag:"svg",attributes:{style:"display: none;"},children:[{tag:"symbol",attributes:b(b({},Pe),{},{id:li}),children:yt}]}]}(Ea):function qr(j){var Se=j.children,ze=j.main,yt=j.mask,Pe=j.attributes,jt=j.styles,li=j.transform;if(Rt(li)&&ze.found&&!yt.found){var Mi={x:ze.width/ze.height/2,y:.5};Pe.style=ht(b(b({},jt),{},{"transform-origin":"".concat(Mi.x+li.x/16,"em ").concat(Mi.y+li.y/16,"em")}))}return[{tag:"svg",attributes:Pe,children:Se}]}(Ea)}function lo(j){var Se=j.content,ze=j.width,yt=j.height,Pe=j.transform,jt=j.title,li=j.extra,$t=j.watchable,_i=void 0!==$t&&$t,Mi=b(b(b({},li.attributes),jt?{title:jt}:{}),{},{class:li.classes.join(" ")});_i&&(Mi[ye]="");var Hi=b({},li.styles);Rt(Pe)&&(Hi.transform=function et(j){var Se=j.transform,ze=j.width,Pe=j.height,jt=void 0===Pe?16:Pe,li=j.startCentered,$t=void 0!==li&&li,_i="";return _i+=$t&&n?"translate(".concat(Se.x/16-(void 0===ze?16:ze)/2,"em, ").concat(Se.y/16-jt/2,"em) "):$t?"translate(calc(-50% + ".concat(Se.x/16,"em), calc(-50% + ").concat(Se.y/16,"em)) "):"translate(".concat(Se.x/16,"em, ").concat(Se.y/16,"em) "),(_i+="scale(".concat(Se.size/16*(Se.flipX?-1:1),", ").concat(Se.size/16*(Se.flipY?-1:1),") "))+"rotate(".concat(Se.rotate,"deg) ")}({transform:Pe,startCentered:!0,width:ze,height:yt}),Hi["-webkit-transform"]=Hi.transform);var Zi=ht(Hi);Zi.length>0&&(Mi.style=Zi);var nn=[];return nn.push({tag:"span",attributes:Mi,children:[Se]}),jt&&nn.push({tag:"span",attributes:{class:"sr-only"},children:[jt]}),nn}function Gr(j){var Se=j.content,ze=j.title,yt=j.extra,Pe=b(b(b({},yt.attributes),ze?{title:ze}:{}),{},{class:yt.classes.join(" ")}),jt=ht(yt.styles);jt.length>0&&(Pe.style=jt);var li=[];return li.push({tag:"span",attributes:Pe,children:[Se]}),ze&&li.push({tag:"span",attributes:{class:"sr-only"},children:[ze]}),li}var ho=Fi.styles;function Zr(j){var Se=j[0],ze=j[1],jt=O(j.slice(4),1)[0];return{found:!0,width:Se,height:ze,icon:Array.isArray(jt)?{tag:"g",attributes:{class:"".concat(J.cssPrefix,"-").concat("duotone-group")},children:[{tag:"path",attributes:{class:"".concat(J.cssPrefix,"-").concat("secondary"),fill:"currentColor",d:jt[0]}},{tag:"path",attributes:{class:"".concat(J.cssPrefix,"-").concat("primary"),fill:"currentColor",d:jt[1]}}]}:{tag:"path",attributes:{fill:"currentColor",d:jt}}}}var uo={found:!1,width:512,height:512};function ir(j,Se){var ze=Se;return"fa"===Se&&null!==J.styleDefault&&(Se=fn()),new Promise(function(yt,Pe){if(Ga("missingIconAbstract"),"fa"===ze){var li=Oi(j)||{};j=li.iconName||j,Se=li.prefix||Se}if(j&&Se&&ho[Se]&&ho[Se][j])return yt(Zr(ho[Se][j]));(function fo(j,Se){!te&&!J.showMissingIcons&&j&&console.error('Icon with name "'.concat(j,'" and prefix "').concat(Se,'" is missing.'))})(j,Se),yt(b(b({},uo),{},{icon:J.showMissingIcons&&j&&Ga("missingIconAbstract")||{}}))})}var pr=function(){},aa=J.measurePerformance&&T&&T.mark&&T.measure?T:{mark:pr,measure:pr},Ya='FA "6.3.0"',gr_begin=function(Se){return aa.mark("".concat(Ya," ").concat(Se," begins")),function(){return function(Se){aa.mark("".concat(Ya," ").concat(Se," ends")),aa.measure("".concat(Ya," ").concat(Se),"".concat(Ya," ").concat(Se," begins"),"".concat(Ya," ").concat(Se," ends"))}(Se)}},mo=function(){};function Pa(j){return"string"==typeof(j.getAttribute?j.getAttribute(ye):null)}function po(j){return l.createElementNS("http://www.w3.org/2000/svg",j)}function $r(j){return l.createElement(j)}function va(j){var Se=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},ze=Se.ceFn,yt=void 0===ze?"svg"===j.tag?po:$r:ze;if("string"==typeof j)return l.createTextNode(j);var Pe=yt(j.tag);Object.keys(j.attributes||[]).forEach(function(li){Pe.setAttribute(li,j.attributes[li])});var jt=j.children||[];return jt.forEach(function(li){Pe.appendChild(va(li,{ceFn:yt}))}),Pe}var Kn={replace:function(Se){var ze=Se[0];if(ze.parentNode)if(Se[1].forEach(function(Pe){ze.parentNode.insertBefore(va(Pe),ze)}),null===ze.getAttribute(ye)&&J.keepOriginalSource){var yt=l.createComment(function Or(j){var Se=" ".concat(j.outerHTML," ");return"".concat(Se,"Font Awesome fontawesome.com ")}(ze));ze.parentNode.replaceChild(yt,ze)}else ze.remove()},nest:function(Se){var ze=Se[0],yt=Se[1];if(~vt(ze).indexOf(J.replacementClass))return Kn.replace(Se);var Pe=new RegExp("".concat(J.cssPrefix,"-.*"));if(delete yt[0].attributes.id,yt[0].attributes.class){var jt=yt[0].attributes.class.split(" ").reduce(function($t,_i){return _i===J.replacementClass||_i.match(Pe)?$t.toSvg.push(_i):$t.toNode.push(_i),$t},{toNode:[],toSvg:[]});yt[0].attributes.class=jt.toSvg.join(" "),0===jt.toNode.length?ze.removeAttribute("class"):ze.setAttribute("class",jt.toNode.join(" "))}var li=yt.map(function($t){return qt($t)}).join("\n");ze.setAttribute(ye,""),ze.innerHTML=li}};function Wn(j){j()}function _r(j,Se){var ze="function"==typeof Se?Se:mo;if(0===j.length)ze();else{var yt=Wn;"async"===J.mutateApproach&&(yt=u.requestAnimationFrame||Wn),yt(function(){var Pe=function nr(){return!0===J.autoReplaceSvg?Kn.replace:Kn[J.autoReplaceSvg]||Kn.replace}(),jt=gr_begin("mutate");j.map(Pe),jt(),ze()})}}var ja=!1;function ca(){ja=!0}function Ka(){ja=!1}var Vt=null;function di(j){if(y&&J.observeMutations){var Se=j.treeCallback,ze=void 0===Se?mo:Se,yt=j.nodeCallback,Pe=void 0===yt?mo:yt,jt=j.pseudoElementsCallback,li=void 0===jt?mo:jt,$t=j.observeMutationsRoot,_i=void 0===$t?l:$t;Vt=new y(function(Mi){if(!ja){var Hi=fn();tt(Mi).forEach(function(Zi){if("childList"===Zi.type&&Zi.addedNodes.length>0&&!Pa(Zi.addedNodes[0])&&(J.searchPseudoElements&&li(Zi.target),ze(Zi.target)),"attributes"===Zi.type&&Zi.target.parentNode&&J.searchPseudoElements&&li(Zi.target.parentNode),"attributes"===Zi.type&&Pa(Zi.target)&&~Y.indexOf(Zi.attributeName))if("class"===Zi.attributeName&&function Jr(j){var Se=j.getAttribute?j.getAttribute(oe):null,ze=j.getAttribute?j.getAttribute(je):null;return Se&&ze}(Zi.target)){var nn=An(vt(Zi.target)),ea=nn.iconName;Zi.target.setAttribute(oe,nn.prefix||Hi),ea&&Zi.target.setAttribute(je,ea)}else(function Xr(j){return j&&j.classList&&j.classList.contains&&j.classList.contains(J.replacementClass)})(Zi.target)&&Pe(Zi.target)})}}),m&&Vt.observe(_i,{childList:!0,attributes:!0,characterData:!0,subtree:!0})}}function ri(j){var Se=j.getAttribute("style"),ze=[];return Se&&(ze=Se.split(";").reduce(function(yt,Pe){var jt=Pe.split(":"),li=jt[0],$t=jt.slice(1);return li&&$t.length>0&&(yt[li]=$t.join(":").trim()),yt},{})),ze}function Pi(j){var Se=j.getAttribute("data-prefix"),ze=j.getAttribute("data-icon"),yt=void 0!==j.innerText?j.innerText.trim():"",Pe=An(vt(j));return Pe.prefix||(Pe.prefix=fn()),Se&&ze&&(Pe.prefix=Se,Pe.iconName=ze),Pe.iconName&&Pe.prefix||(Pe.prefix&&yt.length>0&&(Pe.iconName=function si(j,Se){return(Ki[j]||{})[Se]}(Pe.prefix,j.innerText)||ai(Pe.prefix,Yi(j.innerText))),!Pe.iconName&&J.autoFetchSvg&&j.firstChild&&j.firstChild.nodeType===Node.TEXT_NODE&&(Pe.iconName=j.firstChild.data)),Pe}function tn(j){var Se=tt(j.attributes).reduce(function(Pe,jt){return"class"!==Pe.name&&"style"!==Pe.name&&(Pe[jt.name]=jt.value),Pe},{}),ze=j.getAttribute("title"),yt=j.getAttribute("data-fa-title-id");return J.autoA11y&&(ze?Se["aria-labelledby"]="".concat(J.replacementClass,"-title-").concat(yt||ut()):(Se["aria-hidden"]="true",Se.focusable="false")),Se}function la(j){var Se=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{styleParser:!0},ze=Pi(j),yt=ze.iconName,Pe=ze.prefix,jt=ze.rest,li=tn(j),$t=tr("parseNodeAttributes",{},j),_i=Se.styleParser?ri(j):[];return b({iconName:yt,title:j.getAttribute("title"),titleId:j.getAttribute("data-fa-title-id"),prefix:Pe,transform:ii,mask:{iconName:null,prefix:null,rest:[]},maskId:null,symbol:!1,extra:{classes:jt,styles:_i,attributes:li}},$t)}var ji=Fi.styles;function bn(j){var Se="nest"===J.autoReplaceSvg?la(j,{styleParser:!1}):la(j);return~Se.extra.classes.indexOf(ot)?Ga("generateLayersText",j,Se):Ga("generateSvgReplacementMutation",j,Se)}var ar=new Set;function rt(j){var Se=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if(!m)return Promise.resolve();var ze=l.documentElement.classList,yt=function(Zi){return ze.add("".concat(Ae,"-").concat(Zi))},Pe=function(Zi){return ze.remove("".concat(Ae,"-").concat(Zi))},jt=J.autoFetchSvg?ar:ae.map(function(Hi){return"fa-".concat(Hi)}).concat(Object.keys(ji));jt.includes("fa")||jt.push("fa");var li=[".".concat(ot,":not([").concat(ye,"])")].concat(jt.map(function(Hi){return".".concat(Hi,":not([").concat(ye,"])")})).join(", ");if(0===li.length)return Promise.resolve();var $t=[];try{$t=tt(j.querySelectorAll(li))}catch{}if(!($t.length>0))return Promise.resolve();yt("pending"),Pe("complete");var _i=gr_begin("onTree"),Mi=$t.reduce(function(Hi,Zi){try{var nn=bn(Zi);nn&&Hi.push(nn)}catch(xn){te||"MissingIcon"===xn.name&&console.error(xn)}return Hi},[]);return new Promise(function(Hi,Zi){Promise.all(Mi).then(function(nn){_r(nn,function(){yt("active"),yt("complete"),Pe("pending"),"function"==typeof Se&&Se(),_i(),Hi()})}).catch(function(nn){_i(),Zi(nn)})})}function Xe(j){var Se=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;bn(j).then(function(ze){ze&&_r([ze],Se)})}ae.map(function(j){ar.add("fa-".concat(j))}),Object.keys(ft[Ue]).map(ar.add.bind(ar)),Object.keys(ft[Be]).map(ar.add.bind(ar)),ar=E(ar);var Pt=function(Se){var ze=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},yt=ze.transform,Pe=void 0===yt?ii:yt,jt=ze.symbol,li=void 0!==jt&&jt,$t=ze.mask,_i=void 0===$t?null:$t,Mi=ze.maskId,Hi=void 0===Mi?null:Mi,Zi=ze.title,nn=void 0===Zi?null:Zi,xn=ze.titleId,ea=void 0===xn?null:xn,fa=ze.classes,ma=void 0===fa?[]:fa,Sa=ze.attributes,ya=void 0===Sa?{}:Sa,xa=ze.styles,yr=void 0===xa?{}:xa;if(Se){var Ea=Se.prefix,io=Se.iconName,Wa=Se.icon;return Za(b({type:"icon"},Se),function(){return jn("beforeDOMElementCreation",{iconDefinition:Se,params:ze}),J.autoA11y&&(nn?ya["aria-labelledby"]="".concat(J.replacementClass,"-title-").concat(ea||ut()):(ya["aria-hidden"]="true",ya.focusable="false")),co({icons:{main:Zr(Wa),mask:_i?Zr(_i.icon):{found:!1,width:null,height:null,icon:{}}},prefix:Ea,iconName:io,transform:b(b({},ii),Pe),symbol:li,title:nn,maskId:Hi,titleId:ea,extra:{attributes:ya,styles:yr,classes:ma}})})}},wi={mixout:function(){return{icon:(j=Pt,function(Se){var ze=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},yt=(Se||{}).icon?Se:Fa(Se||{}),Pe=ze.mask;return Pe&&(Pe=(Pe||{}).icon?Pe:Fa(Pe||{})),j(yt,b(b({},ze),{},{mask:Pe}))})};var j},hooks:function(){return{mutationObserverCallbacks:function(ze){return ze.treeCallback=rt,ze.nodeCallback=Xe,ze}}},provides:function(Se){Se.i2svg=function(ze){var yt=ze.node,jt=ze.callback;return rt(void 0===yt?l:yt,void 0===jt?function(){}:jt)},Se.generateSvgReplacementMutation=function(ze,yt){var Pe=yt.iconName,jt=yt.title,li=yt.titleId,$t=yt.prefix,_i=yt.transform,Mi=yt.symbol,Hi=yt.mask,Zi=yt.maskId,nn=yt.extra;return new Promise(function(xn,ea){Promise.all([ir(Pe,$t),Hi.iconName?ir(Hi.iconName,Hi.prefix):Promise.resolve({found:!1,width:512,height:512,icon:{}})]).then(function(fa){var ma=O(fa,2);xn([ze,co({icons:{main:ma[0],mask:ma[1]},prefix:$t,iconName:Pe,transform:_i,symbol:Mi,maskId:Zi,title:jt,titleId:li,extra:nn,watchable:!0})])}).catch(ea)})},Se.generateAbstractIcon=function(ze){var Mi,yt=ze.children,Pe=ze.attributes,jt=ze.main,li=ze.transform,_i=ht(ze.styles);return _i.length>0&&(Pe.style=_i),Rt(li)&&(Mi=Ga("generateAbstractTransformGrouping",{main:jt,transform:li,containerWidth:jt.width,iconWidth:jt.width})),yt.push(Mi||jt.icon),{children:yt,attributes:Pe}}}},ln={mixout:function(){return{layer:function(ze){var yt=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},Pe=yt.classes,jt=void 0===Pe?[]:Pe;return Za({type:"layer"},function(){jn("beforeDOMElementCreation",{assembler:ze,params:yt});var li=[];return ze(function($t){Array.isArray($t)?$t.map(function(_i){li=li.concat(_i.abstract)}):li=li.concat($t.abstract)}),[{tag:"span",attributes:{class:["".concat(J.cssPrefix,"-layers")].concat(E(jt)).join(" ")},children:li}]})}}}},ha={mixout:function(){return{counter:function(ze){var yt=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},Pe=yt.title,jt=void 0===Pe?null:Pe,li=yt.classes,$t=void 0===li?[]:li,_i=yt.attributes,Mi=void 0===_i?{}:_i,Hi=yt.styles,Zi=void 0===Hi?{}:Hi;return Za({type:"counter",content:ze},function(){return jn("beforeDOMElementCreation",{content:ze,params:yt}),Gr({content:ze.toString(),title:jt,extra:{attributes:Mi,styles:Zi,classes:["".concat(J.cssPrefix,"-layers-counter")].concat(E($t))}})})}}}},Si={mixout:function(){return{text:function(ze){var yt=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},Pe=yt.transform,jt=void 0===Pe?ii:Pe,li=yt.title,$t=void 0===li?null:li,_i=yt.classes,Mi=void 0===_i?[]:_i,Hi=yt.attributes,Zi=void 0===Hi?{}:Hi,nn=yt.styles,xn=void 0===nn?{}:nn;return Za({type:"text",content:ze},function(){return jn("beforeDOMElementCreation",{content:ze,params:yt}),lo({content:ze,transform:b(b({},ii),jt),title:$t,extra:{attributes:Zi,styles:xn,classes:["".concat(J.cssPrefix,"-layers-text")].concat(E(Mi))}})})}}},provides:function(Se){Se.generateLayersText=function(ze,yt){var Pe=yt.title,jt=yt.transform,li=yt.extra,$t=null,_i=null;if(n){var Mi=parseInt(getComputedStyle(ze).fontSize,10),Hi=ze.getBoundingClientRect();$t=Hi.width/Mi,_i=Hi.height/Mi}return J.autoA11y&&!Pe&&(li.attributes["aria-hidden"]="true"),Promise.resolve([ze,lo({content:ze.innerHTML,width:$t,height:_i,transform:jt,title:Pe,extra:li,watchable:!0})])}}},Ln=new RegExp('"',"ug"),Ro=[1105920,1112319];function Ha(j,Se){var ze="".concat("data-fa-pseudo-element-pending").concat(Se.replace(":","-"));return new Promise(function(yt,Pe){if(null!==j.getAttribute(ze))return yt();var li=tt(j.children).filter(function(Wa){return Wa.getAttribute(ce)===Se})[0],$t=u.getComputedStyle(j,Se),_i=$t.getPropertyValue("font-family").match(wt),Mi=$t.getPropertyValue("font-weight"),Hi=$t.getPropertyValue("content");if(li&&!_i)return j.removeChild(li),yt();if(_i&&"none"!==Hi&&""!==Hi){var Zi=$t.getPropertyValue("content"),nn=~["Sharp"].indexOf(_i[2])?Be:Ue,xn=~["Solid","Regular","Light","Thin","Duotone","Brands","Kit"].indexOf(_i[2])?Je[nn][_i[2].toLowerCase()]:ke[nn][Mi],ea=function Js(j){var Se=j.replace(Ln,""),ze=function Ji(j,Se){var Pe,ze=j.length,yt=j.charCodeAt(Se);return yt>=55296&&yt<=56319&&ze>Se+1&&(Pe=j.charCodeAt(Se+1))>=56320&&Pe<=57343?1024*(yt-55296)+Pe-56320+65536:yt}(Se,0),yt=ze>=Ro[0]&&ze<=Ro[1],Pe=2===Se.length&&Se[0]===Se[1];return{value:Yi(Pe?Se[0]:Se),isSecondary:yt||Pe}}(Zi),fa=ea.value,ma=ea.isSecondary,Sa=_i[0].startsWith("FontAwesome"),ya=ai(xn,fa),xa=ya;if(Sa){var yr=function Vi(j){var Se=sa[j],ze=ai("fas",j);return Se||(ze?{prefix:"fas",iconName:ze}:null)||{prefix:null,iconName:null}}(fa);yr.iconName&&yr.prefix&&(ya=yr.iconName,xn=yr.prefix)}if(!ya||ma||li&&li.getAttribute(oe)===xn&&li.getAttribute(je)===xa)yt();else{j.setAttribute(ze,xa),li&&j.removeChild(li);var Ea=function $n(){return{iconName:null,title:null,titleId:null,prefix:null,transform:ii,symbol:!1,mask:{iconName:null,prefix:null,rest:[]},maskId:null,extra:{classes:[],styles:{},attributes:{}}}}(),io=Ea.extra;io.attributes[ce]=Se,ir(ya,xn).then(function(Wa){var no=co(b(b({},Ea),{},{icons:{main:Wa,mask:{prefix:null,iconName:null,rest:[]}},prefix:xn,iconName:xa,extra:io,watchable:!0})),_o=l.createElement("svg");"::before"===Se?j.insertBefore(_o,j.firstChild):j.appendChild(_o),_o.outerHTML=no.map(function(Zc){return qt(Zc)}).join("\n"),j.removeAttribute(ze),yt()}).catch(Pe)}}else yt()})}function Yo(j){return Promise.all([Ha(j,"::before"),Ha(j,"::after")])}function eo(j){return!(j.parentNode===document.head||~Ce.indexOf(j.tagName.toUpperCase())||j.getAttribute(ce)||j.parentNode&&"svg"===j.parentNode.tagName)}function vr(j){if(m)return new Promise(function(Se,ze){var yt=tt(j.querySelectorAll("*")).filter(eo).map(Yo),Pe=gr_begin("searchPseudoElements");ca(),Promise.all(yt).then(function(){Pe(),Ka(),Se()}).catch(function(){Pe(),Ka(),ze()})})}var Ko=!1,rs=function(Se){return Se.toLowerCase().split(" ").reduce(function(yt,Pe){var jt=Pe.toLowerCase().split("-"),li=jt[0],$t=jt.slice(1).join("-");if(li&&"h"===$t)return yt.flipX=!0,yt;if(li&&"v"===$t)return yt.flipY=!0,yt;if($t=parseFloat($t),isNaN($t))return yt;switch(li){case"grow":yt.size=yt.size+$t;break;case"shrink":yt.size=yt.size-$t;break;case"left":yt.x=yt.x-$t;break;case"right":yt.x=yt.x+$t;break;case"up":yt.y=yt.y-$t;break;case"down":yt.y=yt.y+$t;break;case"rotate":yt.rotate=yt.rotate+$t}return yt},{size:16,x:0,y:0,flipX:!1,flipY:!1,rotate:0})},Dn={x:0,y:0,width:"100%",height:"100%"};function ki(j){var Se=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return j.attributes&&(j.attributes.fill||Se)&&(j.attributes.fill="black"),j}!function Sr(j,Se){var ze=Se.mixoutsTo;jr=j,Fn={},Object.keys(Xn).forEach(function(yt){-1===Dr.indexOf(yt)&&delete Xn[yt]}),jr.forEach(function(yt){var Pe=yt.mixout?yt.mixout():{};if(Object.keys(Pe).forEach(function(li){"function"==typeof Pe[li]&&(ze[li]=Pe[li]),"object"===I(Pe[li])&&Object.keys(Pe[li]).forEach(function($t){ze[li]||(ze[li]={}),ze[li][$t]=Pe[li][$t]})}),yt.hooks){var jt=yt.hooks();Object.keys(jt).forEach(function(li){Fn[li]||(Fn[li]=[]),Fn[li].push(jt[li])})}yt.provides&&yt.provides(Xn)})}([Li,wi,ln,ha,Si,{hooks:function(){return{mutationObserverCallbacks:function(ze){return ze.pseudoElementsCallback=vr,ze}}},provides:function(Se){Se.pseudoElements2svg=function(ze){var yt=ze.node;J.searchPseudoElements&&vr(void 0===yt?l:yt)}}},{mixout:function(){return{dom:{unwatch:function(){ca(),Ko=!0}}}},hooks:function(){return{bootstrap:function(){di(tr("mutationObserverCallbacks",{}))},noAuto:function(){!function Ct(){Vt&&Vt.disconnect()}()},watch:function(ze){var yt=ze.observeMutationsRoot;Ko?Ka():di(tr("mutationObserverCallbacks",{observeMutationsRoot:yt}))}}}},{mixout:function(){return{parse:{transform:function(ze){return rs(ze)}}}},hooks:function(){return{parseNodeAttributes:function(ze,yt){var Pe=yt.getAttribute("data-fa-transform");return Pe&&(ze.transform=rs(Pe)),ze}}},provides:function(Se){Se.generateAbstractTransformGrouping=function(ze){var yt=ze.main,Pe=ze.transform,li=ze.iconWidth,$t={transform:"translate(".concat(ze.containerWidth/2," 256)")},_i="translate(".concat(32*Pe.x,", ").concat(32*Pe.y,") "),Mi="scale(".concat(Pe.size/16*(Pe.flipX?-1:1),", ").concat(Pe.size/16*(Pe.flipY?-1:1),") "),Hi="rotate(".concat(Pe.rotate," 0 0)"),xn={outer:$t,inner:{transform:"".concat(_i," ").concat(Mi," ").concat(Hi)},path:{transform:"translate(".concat(li/2*-1," -256)")}};return{tag:"g",attributes:b({},xn.outer),children:[{tag:"g",attributes:b({},xn.inner),children:[{tag:yt.icon.tag,children:yt.icon.children,attributes:b(b({},yt.icon.attributes),xn.path)}]}]}}}},{hooks:function(){return{parseNodeAttributes:function(ze,yt){var Pe=yt.getAttribute("data-fa-mask"),jt=Pe?An(Pe.split(" ").map(function(li){return li.trim()})):{prefix:null,iconName:null,rest:[]};return jt.prefix||(jt.prefix=fn()),ze.mask=jt,ze.maskId=yt.getAttribute("data-fa-mask-id"),ze}}},provides:function(Se){Se.generateAbstractMask=function(ze){var j,yt=ze.children,Pe=ze.attributes,jt=ze.main,li=ze.mask,$t=ze.maskId,Hi=jt.icon,nn=li.icon,xn=function Oe(j){var Se=j.transform,yt=j.iconWidth,Pe={transform:"translate(".concat(j.containerWidth/2," 256)")},jt="translate(".concat(32*Se.x,", ").concat(32*Se.y,") "),li="scale(".concat(Se.size/16*(Se.flipX?-1:1),", ").concat(Se.size/16*(Se.flipY?-1:1),") "),$t="rotate(".concat(Se.rotate," 0 0)");return{outer:Pe,inner:{transform:"".concat(jt," ").concat(li," ").concat($t)},path:{transform:"translate(".concat(yt/2*-1," -256)")}}}({transform:ze.transform,containerWidth:li.width,iconWidth:jt.width}),ea={tag:"rect",attributes:b(b({},Dn),{},{fill:"white"})},fa=Hi.children?{children:Hi.children.map(ki)}:{},ma={tag:"g",attributes:b({},xn.inner),children:[ki(b({tag:Hi.tag,attributes:b(b({},Hi.attributes),xn.path)},fa))]},Sa={tag:"g",attributes:b({},xn.outer),children:[ma]},ya="mask-".concat($t||ut()),xa="clip-".concat($t||ut()),yr={tag:"mask",attributes:b(b({},Dn),{},{id:ya,maskUnits:"userSpaceOnUse",maskContentUnits:"userSpaceOnUse"}),children:[ea,Sa]},Ea={tag:"defs",children:[{tag:"clipPath",attributes:{id:xa},children:(j=nn,"g"===j.tag?j.children:[j])},yr]};return yt.push(Ea,{tag:"rect",attributes:b({fill:"currentColor","clip-path":"url(#".concat(xa,")"),mask:"url(#".concat(ya,")")},Dn)}),{children:yt,attributes:Pe}}}},{provides:function(Se){var ze=!1;u.matchMedia&&(ze=u.matchMedia("(prefers-reduced-motion: reduce)").matches),Se.missingIconAbstract=function(){var yt=[],Pe={fill:"currentColor"},jt={attributeType:"XML",repeatCount:"indefinite",dur:"2s"};yt.push({tag:"path",attributes:b(b({},Pe),{},{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 li=b(b({},jt),{},{attributeName:"opacity"}),$t={tag:"circle",attributes:b(b({},Pe),{},{cx:"256",cy:"364",r:"28"}),children:[]};return ze||$t.children.push({tag:"animate",attributes:b(b({},jt),{},{attributeName:"r",values:"28;14;28;28;14;28;"})},{tag:"animate",attributes:b(b({},li),{},{values:"1;0;1;1;0;1;"})}),yt.push($t),yt.push({tag:"path",attributes:b(b({},Pe),{},{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:ze?[]:[{tag:"animate",attributes:b(b({},li),{},{values:"1;0;0;0;0;1;"})}]}),ze||yt.push({tag:"path",attributes:b(b({},Pe),{},{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:b(b({},li),{},{values:"0;0;1;1;0;0;"})}]}),{tag:"g",attributes:{class:"missing"},children:yt}}}},{hooks:function(){return{parseNodeAttributes:function(ze,yt){var Pe=yt.getAttribute("data-fa-symbol");return ze.symbol=null!==Pe&&(""===Pe||Pe),ze}}}}],{mixoutsTo:wa});var Eo=wa.parse,Qo=wa.icon,As=p(1481);const Ra=["*"],an=j=>{const Se={[`fa-${j.animation}`]:null!=j.animation&&!j.animation.startsWith("spin"),"fa-spin":"spin"===j.animation||"spin-reverse"===j.animation,"fa-spin-pulse":"spin-pulse"===j.animation||"spin-pulse-reverse"===j.animation,"fa-spin-reverse":"spin-reverse"===j.animation||"spin-pulse-reverse"===j.animation,"fa-pulse":"spin-pulse"===j.animation||"spin-pulse-reverse"===j.animation,"fa-fw":j.fixedWidth,"fa-border":j.border,"fa-inverse":j.inverse,"fa-layers-counter":j.counter,"fa-flip-horizontal":"horizontal"===j.flip||"both"===j.flip,"fa-flip-vertical":"vertical"===j.flip||"both"===j.flip,[`fa-${j.size}`]:null!==j.size,[`fa-rotate-${j.rotate}`]:null!==j.rotate,[`fa-pull-${j.pull}`]:null!==j.pull,[`fa-stack-${j.stackItemSize}`]:null!=j.stackItemSize};return Object.keys(Se).map(ze=>Se[ze]?ze:null).filter(ze=>ze)};let ua=(()=>{class j{constructor(){this.defaultPrefix="fas",this.fallbackIcon=null}}return j.\u0275fac=function(ze){return new(ze||j)},j.\u0275prov=t.Yz7({token:j,factory:j.\u0275fac,providedIn:"root"}),j})(),Ls=(()=>{class j{constructor(){this.definitions={}}addIcons(...ze){for(const yt of ze){yt.prefix in this.definitions||(this.definitions[yt.prefix]={}),this.definitions[yt.prefix][yt.iconName]=yt;for(const Pe of yt.icon[2])"string"==typeof Pe&&(this.definitions[yt.prefix][Pe]=yt)}}addIconPacks(...ze){for(const yt of ze){const Pe=Object.keys(yt).map(jt=>yt[jt]);this.addIcons(...Pe)}}getIconDefinition(ze,yt){return ze in this.definitions&&yt in this.definitions[ze]?this.definitions[ze][yt]:null}}return j.\u0275fac=function(ze){return new(ze||j)},j.\u0275prov=t.Yz7({token:j,factory:j.\u0275fac,providedIn:"root"}),j})(),Gc=(()=>{class j{constructor(){this.stackItemSize="1x"}ngOnChanges(ze){if("size"in ze)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 j.\u0275fac=function(ze){return new(ze||j)},j.\u0275dir=t.lG2({type:j,selectors:[["fa-icon","stackItemSize",""],["fa-duotone-icon","stackItemSize",""]],inputs:{stackItemSize:"stackItemSize",size:"size"},features:[t.TTD]}),j})(),yc=(()=>{class j{constructor(ze,yt){this.renderer=ze,this.elementRef=yt}ngOnInit(){this.renderer.addClass(this.elementRef.nativeElement,"fa-stack")}ngOnChanges(ze){"size"in ze&&(null!=ze.size.currentValue&&this.renderer.addClass(this.elementRef.nativeElement,`fa-${ze.size.currentValue}`),null!=ze.size.previousValue&&this.renderer.removeClass(this.elementRef.nativeElement,`fa-${ze.size.previousValue}`))}}return j.\u0275fac=function(ze){return new(ze||j)(t.Y36(t.Qsj),t.Y36(t.SBq))},j.\u0275cmp=t.Xpm({type:j,selectors:[["fa-stack"]],inputs:{size:"size"},features:[t.TTD],ngContentSelectors:Ra,decls:1,vars:0,template:function(ze,yt){1&ze&&(t.F$t(),t.Hsn(0))},encapsulation:2}),j})(),Bn=(()=>{class j{constructor(ze,yt,Pe,jt,li){this.sanitizer=ze,this.config=yt,this.iconLibrary=Pe,this.stackItem=jt,this.classes=[],null!=li&&null==jt&&console.error('FontAwesome: fa-icon and fa-duotone-icon elements must specify stackItemSize attribute when wrapped into fa-stack. Example: <fa-icon stackItemSize="2x"></fa-icon>.')}set spin(ze){this.animation=ze?"spin":void 0}set pulse(ze){this.animation=ze?"spin-pulse":void 0}ngOnChanges(ze){if(null!=this.icon||null!=this.config.fallbackIcon){if(ze){const Pe=this.findIconDefinition(null!=this.icon?this.icon:this.config.fallbackIcon);if(null!=Pe){const jt=this.buildParams();this.renderIcon(Pe,jt)}}}else(()=>{throw new Error("Property `icon` is required for `fa-icon`/`fa-duotone-icon` components.")})()}render(){this.ngOnChanges({})}findIconDefinition(ze){const yt=((j,Se)=>(j=>void 0!==j.prefix&&void 0!==j.iconName)(j)?j:"string"==typeof j?{prefix:Se,iconName:j}:{prefix:j[0],iconName:j[1]})(ze,this.config.defaultPrefix);return"icon"in yt?yt:this.iconLibrary.getIconDefinition(yt.prefix,yt.iconName)??((j=>{throw new Error(`Could not find icon with iconName=${j.iconName} and prefix=${j.prefix} in the icon library.`)})(yt),null)}buildParams(){const ze={flip:this.flip,animation:this.animation,border:this.border,inverse:this.inverse,size:this.size||null,pull:this.pull||null,rotate:this.rotate||null,fixedWidth:"boolean"==typeof this.fixedWidth?this.fixedWidth:this.config.fixedWidth,stackItemSize:null!=this.stackItem?this.stackItem.stackItemSize:null},yt="string"==typeof this.transform?Eo.transform(this.transform):this.transform;return{title:this.title,transform:yt,classes:[...an(ze),...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(ze,yt){const Pe=Qo(ze,yt);this.renderedIconHTML=this.sanitizer.bypassSecurityTrustHtml(Pe.html.join("\n"))}}return j.\u0275fac=function(ze){return new(ze||j)(t.Y36(As.H7),t.Y36(ua),t.Y36(Ls),t.Y36(Gc,8),t.Y36(yc,8))},j.\u0275cmp=t.Xpm({type:j,selectors:[["fa-icon"]],hostAttrs:[1,"ng-fa-icon"],hostVars:2,hostBindings:function(ze,yt){2&ze&&(t.Ikx("innerHTML",yt.renderedIconHTML,t.oJD),t.uIk("title",yt.title))},inputs:{icon:"icon",title:"title",animation:"animation",spin:"spin",pulse:"pulse",mask:"mask",styles:"styles",flip:"flip",size:"size",pull:"pull",border:"border",inverse:"inverse",symbol:"symbol",rotate:"rotate",fixedWidth:"fixedWidth",classes:"classes",transform:"transform",a11yRole:"a11yRole"},features:[t.TTD],decls:0,vars:0,template:function(ze,yt){},encapsulation:2}),j})(),gt=(()=>{class j{}return j.\u0275fac=function(ze){return new(ze||j)},j.\u0275mod=t.oAB({type:j}),j.\u0275inj=t.cJS({}),j})()},2687:(Ve,q,p)=>{"use strict";p.d(q,{Acd:()=>b2,Aq:()=>Ds,B$L:()=>Dn,BDt:()=>Q6,CgH:()=>pu,CvI:()=>mf,DL8:()=>j_,FJU:()=>u7,FVb:()=>n1,FlN:()=>uf,FpQ:()=>$3,HLz:()=>E7,KOR:()=>Cs,Krp:()=>eu,Mdf:()=>nf,N2j:()=>gi,NBC:()=>e_,OS1:()=>n2,Psp:()=>xs,Pyt:()=>h7,Sbq:()=>Qe,SoD:()=>Zr,Ssp:()=>rv,SuH:()=>Ks,TmZ:()=>K7,USL:()=>u_,Vei:()=>is,Vfw:()=>W4,X5K:()=>K3,XsY:()=>Zi,aj4:()=>Wr,b7W:()=>u8,byT:()=>nn,co4:()=>cm,d63:()=>Va,dLy:()=>R7,dT$:()=>H1,eHv:()=>nv,gNZ:()=>Co,hkK:()=>Yt,hnx:()=>gv,kXW:()=>_m,kZ_:()=>Q7,koM:()=>Vs,mh3:()=>_4,nNP:()=>d5,q7m:()=>H8,qO$:()=>M_,r8p:()=>g5,sqG:()=>df,vqe:()=>N_,wn1:()=>I7,wyP:()=>S1,xf3:()=>gd});var Qe={prefix:"fas",iconName:"angles-down",icon:[384,512,["angle-double-down"],"f103","M214.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 0L192 402.7 329.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 0L192 210.7 329.4 73.4c12.5-12.5 32.8-12.5 45.3 0s12.5 32.8 0 45.3z"]},Yt={prefix:"fas",iconName:"user-check",icon:[640,512,[],"f4fc","M96 128a128 128 0 1 1 256 0A128 128 0 1 1 96 128zM0 482.3C0 383.8 79.8 304 178.3 304h91.4C368.2 304 448 383.8 448 482.3c0 16.4-13.3 29.7-29.7 29.7H29.7C13.3 512 0 498.7 0 482.3zM625 177L497 305c-9.4 9.4-24.6 9.4-33.9 0l-64-64c-9.4-9.4-9.4-24.6 0-33.9s24.6-9.4 33.9 0l47 47L591 143c9.4-9.4 24.6-9.4 33.9 0s9.4 24.6 0 33.9z"]},gi={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"]},Zr={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"]},Dn={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"]},Zi={prefix:"fas",iconName:"paintbrush",icon:[576,512,[128396,"paint-brush"],"f1fc","M339.3 367.1c27.3-3.9 51.9-19.4 67.2-42.9L568.2 74.1c12.6-19.5 9.4-45.3-7.6-61.2S517.7-4.4 499.1 9.6L262.4 187.2c-24 18-38.2 46.1-38.4 76.1L339.3 367.1zm-19.6 25.4l-116-104.4C143.9 290.3 96 339.6 96 400c0 3.9 .2 7.8 .6 11.6C98.4 429.1 86.4 448 68.8 448H64c-17.7 0-32 14.3-32 32s14.3 32 32 32H208c61.9 0 112-50.1 112-112c0-2.5-.1-5-.2-7.5z"]},nn={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"]},n1={prefix:"fas",iconName:"users",icon:[640,512,[],"f0c0","M144 0a80 80 0 1 1 0 160A80 80 0 1 1 144 0zM512 0a80 80 0 1 1 0 160A80 80 0 1 1 512 0zM0 298.7C0 239.8 47.8 192 106.7 192h42.7c15.9 0 31 3.5 44.6 9.7c-1.3 7.2-1.9 14.7-1.9 22.3c0 38.2 16.8 72.5 43.3 96c-.2 0-.4 0-.7 0H21.3C9.6 320 0 310.4 0 298.7zM405.3 320c-.2 0-.4 0-.7 0c26.6-23.5 43.3-57.8 43.3-96c0-7.6-.7-15-1.9-22.3c13.6-6.3 28.7-9.7 44.6-9.7h42.7C592.2 192 640 239.8 640 298.7c0 11.8-9.6 21.3-21.3 21.3H405.3zM224 224a96 96 0 1 1 192 0 96 96 0 1 1 -192 0zM128 485.3C128 411.7 187.7 352 261.3 352H378.7C452.3 352 512 411.7 512 485.3c0 14.7-11.9 26.7-26.7 26.7H154.7c-14.7 0-26.7-11.9-26.7-26.7z"]},Ds={prefix:"fas",iconName:"eye-slash",icon:[640,512,[],"f070","M38.8 5.1C28.4-3.1 13.3-1.2 5.1 9.2S-1.2 34.7 9.2 42.9l592 464c10.4 8.2 25.5 6.3 33.7-4.1s6.3-25.5-4.1-33.7L525.6 386.7c39.6-40.6 66.4-86.1 79.9-118.4c3.3-7.9 3.3-16.7 0-24.6c-14.9-35.7-46.2-87.7-93-131.1C465.5 68.8 400.8 32 320 32c-68.2 0-125 26.3-169.3 60.8L38.8 5.1zM223.1 149.5C248.6 126.2 282.7 112 320 112c79.5 0 144 64.5 144 144c0 24.9-6.3 48.3-17.4 68.7L408 294.5c8.4-19.3 10.6-41.4 4.8-63.3c-11.1-41.5-47.8-69.4-88.6-71.1c-5.8-.2-9.2 6.1-7.4 11.7c2.1 6.4 3.3 13.2 3.3 20.3c0 10.2-2.4 19.8-6.6 28.3l-90.3-70.8zM373 389.9c-16.4 6.5-34.3 10.1-53 10.1c-79.5 0-144-64.5-144-144c0-6.9 .5-13.6 1.4-20.2L83.1 161.5C60.3 191.2 44 220.8 34.5 243.7c-3.3 7.9-3.3 16.7 0 24.6c14.9 35.7 46.2 87.7 93 131.1C174.5 443.2 239.2 480 320 480c47.8 0 89.9-12.9 126.2-32.5L373 389.9z"]},b2={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"]},Wr={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"]},gd={prefix:"fas",iconName:"server",icon:[512,512,[],"f233","M64 32C28.7 32 0 60.7 0 96v64c0 35.3 28.7 64 64 64H448c35.3 0 64-28.7 64-64V96c0-35.3-28.7-64-64-64H64zm280 72a24 24 0 1 1 0 48 24 24 0 1 1 0-48zm48 24a24 24 0 1 1 48 0 24 24 0 1 1 -48 0zM64 288c-35.3 0-64 28.7-64 64v64c0 35.3 28.7 64 64 64H448c35.3 0 64-28.7 64-64V352c0-35.3-28.7-64-64-64H64zm280 72a24 24 0 1 1 0 48 24 24 0 1 1 0-48zm56 24a24 24 0 1 1 48 0 24 24 0 1 1 -48 0z"]},Vs={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"]},S1={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"]},is={prefix:"fas",iconName:"burst",icon:[512,512,[],"e4dc","M37.6 4.2C28-2.3 15.2-1.1 7 7s-9.4 21-2.8 30.5l112 163.3L16.6 233.2C6.7 236.4 0 245.6 0 256s6.7 19.6 16.6 22.8l103.1 33.4L66.8 412.8c-4.9 9.3-3.2 20.7 4.3 28.1s18.8 9.2 28.1 4.3l100.6-52.9 33.4 103.1c3.2 9.9 12.4 16.6 22.8 16.6s19.6-6.7 22.8-16.6l33.4-103.1 100.6 52.9c9.3 4.9 20.7 3.2 28.1-4.3s9.2-18.8 4.3-28.1L392.3 312.2l103.1-33.4c9.9-3.2 16.6-12.4 16.6-22.8s-6.7-19.6-16.6-22.8L388.9 198.7l25.7-70.4c3.2-8.8 1-18.6-5.6-25.2s-16.4-8.8-25.2-5.6l-70.4 25.7L278.8 16.6C275.6 6.7 266.4 0 256 0s-19.6 6.7-22.8 16.6l-32.3 99.6L37.6 4.2z"]},Va={prefix:"fas",iconName:"arrows-turn-right",icon:[448,512,[],"e4c0","M297.4 9.4c12.5-12.5 32.8-12.5 45.3 0l96 96c12.5 12.5 12.5 32.8 0 45.3l-96 96c-12.5 12.5-32.8 12.5-45.3 0s-12.5-32.8 0-45.3L338.7 160H128c-35.3 0-64 28.7-64 64v32c0 17.7-14.3 32-32 32s-32-14.3-32-32V224C0 153.3 57.3 96 128 96H338.7L297.4 54.6c-12.5-12.5-12.5-32.8 0-45.3zm-96 256c12.5-12.5 32.8-12.5 45.3 0l96 96c12.5 12.5 12.5 32.8 0 45.3l-96 96c-12.5 12.5-32.8 12.5-45.3 0s-12.5-32.8 0-45.3L242.7 416H96c-17.7 0-32 14.3-32 32v32c0 17.7-14.3 32-32 32s-32-14.3-32-32V448c0-53 43-96 96-96H242.7l-41.4-41.4c-12.5-12.5-12.5-32.8 0-45.3z"]},eu={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"]},xs={prefix:"fas",iconName:"question",icon:[320,512,[10067,10068,61736],"3f","M64 160c0-35.3 28.7-64 64-64h32c35.3 0 64 28.7 64 64v3.6c0 21.8-11.1 42.1-29.4 53.8l-42.2 27.1c-25.2 16.2-40.4 44.1-40.4 74V320c0 17.7 14.3 32 32 32s32-14.3 32-32v-1.4c0-8.2 4.2-15.8 11-20.2l42.2-27.1c36.6-23.6 58.8-64.1 58.8-107.7V160c0-70.7-57.3-128-128-128H128C57.3 32 0 89.3 0 160c0 17.7 14.3 32 32 32s32-14.3 32-32zm80 320a40 40 0 1 0 0-80 40 40 0 1 0 0 80z"]},H1={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"]},n2={prefix:"fas",iconName:"chart-pie",icon:[576,512,["pie-chart"],"f200","M302 240V16.6c0-9 7-16.6 16-16.6C441.7 0 542 100.3 542 224c0 9-7.6 16-16.6 16H302zM30 272C30 150.7 120.1 50.3 237 34.3c9.2-1.3 17 6.1 17 15.4V288L410.5 444.5c6.7 6.7 6.2 17.7-1.5 23.1C369.8 495.6 321.8 512 270 512C137.5 512 30 404.6 30 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-.7L318 288H556.4z"]},Cs={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"]},Ks={prefix:"fas",iconName:"signs-post",icon:[512,512,["map-signs"],"f277","M218 32H58C40.3 32 26 46.3 26 64v64c0 17.7 14.3 32 32 32H435.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.7H282c0-17.7-14.3-32-32-32s-32 14.3-32 32zM474 256c0-17.7-14.3-32-32-32H282V192H218v32H64.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.7H442c17.7 0 32-14.3 32-32V256zM282 480V384H218v96c0 17.7 14.3 32 32 32s32-14.3 32-32z"]},pu={prefix:"fas",iconName:"screwdriver-wrench",icon:[512,512,["tools"],"f7d9","M78.6 5C69.1-2.4 55.6-1.5 47 7L7 47c-8.5 8.5-9.4 22-2.1 31.6l80 104c4.5 5.9 11.6 9.4 19 9.4h54.1l109 109c-14.7 29-10 65.4 14.3 89.6l112 112c12.5 12.5 32.8 12.5 45.3 0l64-64c12.5-12.5 12.5-32.8 0-45.3l-112-112c-24.2-24.2-60.6-29-89.6-14.3l-109-109V104c0-7.5-3.5-14.5-9.4-19L78.6 5zM19.9 396.1C7.2 408.8 0 426.1 0 444.1C0 481.6 30.4 512 67.9 512c18 0 35.3-7.2 48-19.9L233.7 374.3c-7.8-20.9-9-43.6-3.6-65.1l-61.7-61.7L19.9 396.1zM512 144c0-10.5-1.1-20.7-3.2-30.5c-2.4-11.2-16.1-14.1-24.2-6l-63.9 63.9c-3 3-7.1 4.7-11.3 4.7H352c-8.8 0-16-7.2-16-16V102.6c0-4.2 1.7-8.3 4.7-11.3l63.9-63.9c8.1-8.1 5.2-21.8-6-24.2C388.7 1.1 378.5 0 368 0C288.5 0 224 64.5 224 144l0 .8 85.3 85.3c36-9.1 75.8 .5 104 28.7L429 274.5c49-23 83-72.8 83-130.5zM56 432a24 24 0 1 1 48 0 24 24 0 1 1 -48 0z"]},K3={prefix:"fas",iconName:"wallet",icon:[512,512,[],"f555","M64 32C28.7 32 0 60.7 0 96V416c0 35.3 28.7 64 64 64H448c35.3 0 64-28.7 64-64V192c0-35.3-28.7-64-64-64H80c-8.8 0-16-7.2-16-16s7.2-16 16-16H448c17.7 0 32-14.3 32-32s-14.3-32-32-32H64zM416 272a32 32 0 1 1 0 64 32 32 0 1 1 0-64z"]},_4={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"]},$3={prefix:"fas",iconName:"route",icon:[512,512,[],"f4d7","M512 96c0 50.2-59.1 125.1-84.6 155c-3.8 4.4-9.4 6.1-14.5 5H320c-17.7 0-32 14.3-32 32s14.3 32 32 32h96c53 0 96 43 96 96s-43 96-96 96H139.6c8.7-9.9 19.3-22.6 30-36.8c6.3-8.4 12.8-17.6 19-27.2H416c17.7 0 32-14.3 32-32s-14.3-32-32-32H320c-53 0-96-43-96-96s43-96 96-96h39.8c-21-31.5-39.8-67.7-39.8-96c0-53 43-96 96-96s96 43 96 96zM117.1 489.1c-3.8 4.3-7.2 8.1-10.1 11.3l-1.8 2-.2-.2c-6 4.6-14.6 4-20-1.8C59.8 473 0 402.5 0 352c0-53 43-96 96-96s96 43 96 96c0 30-21.1 67-43.5 97.9c-10.7 14.7-21.7 28-30.8 38.5l-.6 .7zM128 352a32 32 0 1 0 -64 0 32 32 0 1 0 64 0zM416 128a32 32 0 1 0 0-64 32 32 0 1 0 0 64z"]},nf={prefix:"fas",iconName:"eye",icon:[576,512,[128065],"f06e","M288 32c-80.8 0-145.5 36.8-192.6 80.6C48.6 156 17.3 208 2.5 243.7c-3.3 7.9-3.3 16.7 0 24.6C17.3 304 48.6 356 95.4 399.4C142.5 443.2 207.2 480 288 480s145.5-36.8 192.6-80.6c46.8-43.5 78.1-95.4 93-131.1c3.3-7.9 3.3-16.7 0-24.6c-14.9-35.7-46.2-87.7-93-131.1C433.5 68.8 368.8 32 288 32zM144 256a144 144 0 1 1 288 0 144 144 0 1 1 -288 0zm144-64c0 35.3-28.7 64-64 64c-7.1 0-13.9-1.2-20.3-3.3c-5.5-1.8-11.9 1.6-11.7 7.4c.3 6.9 1.3 13.8 3.2 20.7c13.7 51.2 66.4 81.6 117.6 67.9s81.6-66.4 67.9-117.6c-11.1-41.5-47.8-69.4-88.6-71.1c-5.8-.2-9.2 6.1-7.4 11.7c2.1 6.4 3.3 13.2 3.3 20.3z"]},Co={prefix:"fas",iconName:"user-gear",icon:[640,512,["user-cog"],"f4fe","M224 0a128 128 0 1 1 0 256A128 128 0 1 1 224 0zM178.3 304h91.4c11.8 0 23.4 1.2 34.5 3.3c-2.1 18.5 7.4 35.6 21.8 44.8c-16.6 10.6-26.7 31.6-20 53.3c4 12.9 9.4 25.5 16.4 37.6s15.2 23.1 24.4 33c15.7 16.9 39.6 18.4 57.2 8.7v.9c0 9.2 2.7 18.5 7.9 26.3H29.7C13.3 512 0 498.7 0 482.3C0 383.8 79.8 304 178.3 304zM436 218.2c0-7 4.5-13.3 11.3-14.8c10.5-2.4 21.5-3.7 32.7-3.7s22.2 1.3 32.7 3.7c6.8 1.5 11.3 7.8 11.3 14.8v30.6c7.9 3.4 15.4 7.7 22.3 12.8l24.9-14.3c6.1-3.5 13.7-2.7 18.5 2.4c7.6 8.1 14.3 17.2 20.1 27.2s10.3 20.4 13.5 31c2.1 6.7-1.1 13.7-7.2 17.2l-25 14.4c.4 4 .7 8.1 .7 12.3s-.2 8.2-.7 12.3l25 14.4c6.1 3.5 9.2 10.5 7.2 17.2c-3.3 10.6-7.8 21-13.5 31s-12.5 19.1-20.1 27.2c-4.8 5.1-12.5 5.9-18.5 2.4l-24.9-14.3c-6.9 5.1-14.3 9.4-22.3 12.8l0 30.6c0 7-4.5 13.3-11.3 14.8c-10.5 2.4-21.5 3.7-32.7 3.7s-22.2-1.3-32.7-3.7c-6.8-1.5-11.3-7.8-11.3-14.8V454.8c-8-3.4-15.6-7.7-22.5-12.9l-24.7 14.3c-6.1 3.5-13.7 2.7-18.5-2.4c-7.6-8.1-14.3-17.2-20.1-27.2s-10.3-20.4-13.5-31c-2.1-6.7 1.1-13.7 7.2-17.2l24.8-14.3c-.4-4.1-.7-8.2-.7-12.4s.2-8.3 .7-12.4L343.8 325c-6.1-3.5-9.2-10.5-7.2-17.2c3.3-10.6 7.7-21 13.5-31s12.5-19.1 20.1-27.2c4.8-5.1 12.4-5.9 18.5-2.4l24.8 14.3c6.9-5.1 14.5-9.4 22.5-12.9V218.2zm92.1 133.5a48.1 48.1 0 1 0 -96.1 0 48.1 48.1 0 1 0 96.1 0z"]},W4={prefix:"fas",iconName:"angles-up",icon:[384,512,["angle-double-up"],"f102","M214.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 0L192 109.3 329.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 0L192 301.3 329.4 438.6c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3z"]},df={prefix:"fas",iconName:"circle-info",icon:[512,512,["info-circle"],"f05a","M256 512A256 256 0 1 0 256 0a256 256 0 1 0 0 512zM216 336h24V272H216c-13.3 0-24-10.7-24-24s10.7-24 24-24h48c13.3 0 24 10.7 24 24v88h8c13.3 0 24 10.7 24 24s-10.7 24-24 24H216c-13.3 0-24-10.7-24-24s10.7-24 24-24zm40-208a32 32 0 1 1 0 64 32 32 0 1 1 0-64z"]},uf={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"]},mf={prefix:"fas",iconName:"money-bill-1",icon:[576,512,["money-bill-alt"],"f3d1","M64 64C28.7 64 0 92.7 0 128V384c0 35.3 28.7 64 64 64H512c35.3 0 64-28.7 64-64V128c0-35.3-28.7-64-64-64H64zm64 320H64V320c35.3 0 64 28.7 64 64zM64 192V128h64c0 35.3-28.7 64-64 64zM448 384c0-35.3 28.7-64 64-64v64H448zm64-192c-35.3 0-64-28.7-64-64h64v64zM176 256a112 112 0 1 1 224 0 112 112 0 1 1 -224 0zm76-48c0 9.7 6.9 17.7 16 19.6V276h-4c-11 0-20 9-20 20s9 20 20 20h24 24c11 0 20-9 20-20s-9-20-20-20h-4V208c0-11-9-20-20-20H272c-11 0-20 9-20 20z"]},cm=mf,u8={prefix:"fas",iconName:"gear",icon:[512,512,[9881,"cog"],"f013","M481.9 166.6c3.2 8.7 .5 18.4-6.4 24.6l-30.9 28.1c-7.7 7.1-11.4 17.5-10.9 27.9c.1 2.9 .2 5.8 .2 8.8s-.1 5.9-.2 8.8c-.5 10.5 3.1 20.9 10.9 27.9l30.9 28.1c6.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-39.7-12.6c-10-3.2-20.8-1.1-29.7 4.6c-4.9 3.1-9.9 6.1-15.1 8.7c-9.3 4.8-16.5 13.2-18.8 23.4l-8.9 40.7c-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-8.9-40.7c-2.2-10.2-9.5-18.6-18.8-23.4c-5.2-2.7-10.2-5.6-15.1-8.7c-8.8-5.7-19.7-7.8-29.7-4.6L69.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.6l30.9-28.1c7.7-7.1 11.4-17.5 10.9-27.9c-.1-2.9-.2-5.8-.2-8.8s.1-5.9 .2-8.8c.5-10.5-3.1-20.9-10.9-27.9L8.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.8l39.7 12.6c10 3.2 20.8 1.1 29.7-4.6c4.9-3.1 9.9-6.1 15.1-8.7c9.3-4.8 16.5-13.2 18.8-23.4l8.9-40.7c2-9.1 9-16.3 18.2-17.8C213.3 1.2 227.5 0 242 0s28.7 1.2 42.5 3.5c9.2 1.5 16.2 8.7 18.2 17.8l8.9 40.7c2.2 10.2 9.4 18.6 18.8 23.4c5.2 2.7 10.2 5.6 15.1 8.7c8.8 5.7 19.7 7.7 29.7 4.6l39.7-12.6c8.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.3zM242 336a80 80 0 1 0 0-160 80 80 0 1 0 0 160z"]},_m={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"]},H8={prefix:"fas",iconName:"download",icon:[512,512,[],"f019","M288 32c0-17.7-14.3-32-32-32s-32 14.3-32 32V274.7l-73.4-73.4c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3l128 128c12.5 12.5 32.8 12.5 45.3 0l128-128c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0L288 274.7V32zM64 352c-35.3 0-64 28.7-64 64v32c0 35.3 28.7 64 64 64H448c35.3 0 64-28.7 64-64V416c0-35.3-28.7-64-64-64H346.5l-45.3 45.3c-25 25-65.5 25-90.5 0L165.5 352H64zm368 56a24 24 0 1 1 0 48 24 24 0 1 1 0-48z"]},Q6={prefix:"fas",iconName:"bolt",icon:[384,512,[9889,"zap"],"f0e7","M317.4 44.6c5.9-13.7 1.5-29.7-10.6-38.5s-28.6-8-39.9 1.8l-256 224C.9 240.7-2.6 254.8 2 267.3S18.7 288 32 288H143.5L66.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.7H240.5L317.4 44.6z"]},h7={prefix:"fas",iconName:"arrows-turn-to-dots",icon:[512,512,[],"e4c1","M249.4 25.4c12.5-12.5 32.8-12.5 45.3 0s12.5 32.8 0 45.3L269.3 96 416 96c53 0 96 43 96 96v32c0 17.7-14.3 32-32 32s-32-14.3-32-32V192c0-17.7-14.3-32-32-32l-146.7 0 25.4 25.4c12.5 12.5 12.5 32.8 0 45.3s-32.8 12.5-45.3 0l-80-80c-12.5-12.5-12.5-32.8 0-45.3l80-80zm13.3 256l80 80c12.5 12.5 12.5 32.8 0 45.3l-80 80c-12.5 12.5-32.8 12.5-45.3 0s-12.5-32.8 0-45.3L242.7 416 96 416c-17.7 0-32 14.3-32 32v32c0 17.7-14.3 32-32 32s-32-14.3-32-32V448c0-53 43-96 96-96l146.7 0-25.4-25.4c-12.5-12.5-12.5-32.8 0-45.3s32.8-12.5 45.3 0zM384 384a64 64 0 1 1 128 0 64 64 0 1 1 -128 0zM64 192A64 64 0 1 1 64 64a64 64 0 1 1 0 128z"]},u7={prefix:"fas",iconName:"user-lock",icon:[640,512,[],"f502","M224 256A128 128 0 1 0 224 0a128 128 0 1 0 0 256zm-45.7 48C79.8 304 0 383.8 0 482.3C0 498.7 13.3 512 29.7 512H392.6c-5.4-9.4-8.6-20.3-8.6-32V352c0-2.1 .1-4.2 .3-6.3c-31-26-71-41.7-114.6-41.7H178.3zM528 240c17.7 0 32 14.3 32 32v48H496V272c0-17.7 14.3-32 32-32zm-80 32v48c-17.7 0-32 14.3-32 32V480c0 17.7 14.3 32 32 32H608c17.7 0 32-14.3 32-32V352c0-17.7-14.3-32-32-32V272c0-44.2-35.8-80-80-80s-80 35.8-80 80z"]},E7={prefix:"fas",iconName:"gauge-high",icon:[512,512,[62461,"tachometer-alt","tachometer-alt-fast"],"f625","M0 256a256 256 0 1 1 512 0A256 256 0 1 1 0 256zM288 96a32 32 0 1 0 -64 0 32 32 0 1 0 64 0zM256 416c35.3 0 64-28.7 64-64c0-17.4-6.9-33.1-18.1-44.6L366 161.7c5.3-12.1-.2-26.3-12.3-31.6s-26.3 .2-31.6 12.3L257.9 288c-.6 0-1.3 0-1.9 0c-35.3 0-64 28.7-64 64s28.7 64 64 64zM176 144a32 32 0 1 0 -64 0 32 32 0 1 0 64 0zM96 288a32 32 0 1 0 0-64 32 32 0 1 0 0 64zm352-32a32 32 0 1 0 -64 0 32 32 0 1 0 64 0z"]},d5={prefix:"fas",iconName:"link",icon:[640,512,[128279,"chain"],"f0c1","M562.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 114L405.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.6C189.5 251.2 196 330 246 380c56.5 56.5 148 56.5 204.5 0L562.8 267.7zM43.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.6C57 372 57 321 88.5 289.5L200.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.6C416.5 260.8 410 182 360 132c-56.5-56.5-148-56.5-204.5 0L43.2 244.3z"]},I7={prefix:"fas",iconName:"magnifying-glass",icon:[512,512,[128269,"search"],"f002","M416 208c0 45.9-14.9 88.3-40 122.7L502.6 457.4c12.5 12.5 12.5 32.8 0 45.3s-32.8 12.5-45.3 0L330.7 376c-34.4 25.2-76.8 40-122.7 40C93.1 416 0 322.9 0 208S93.1 0 208 0S416 93.1 416 208zM208 352a144 144 0 1 0 0-288 144 144 0 1 0 0 288z"]},R7={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"]},K7={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"]},Q7={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"]},g5={prefix:"fas",iconName:"plus",icon:[448,512,[10133,61543,"add"],"2b","M240 80c0-17.7-14.3-32-32-32s-32 14.3-32 32V224H32c-17.7 0-32 14.3-32 32s14.3 32 32 32H176V432c0 17.7 14.3 32 32 32s32-14.3 32-32V288H384c17.7 0 32-14.3 32-32s-14.3-32-32-32H240V80z"]},e_={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"]},u_={prefix:"fas",iconName:"percent",icon:[384,512,[62101,62785,"percentage"],"25","M374.6 118.6c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0l-320 320c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0l320-320zM128 128A64 64 0 1 0 0 128a64 64 0 1 0 128 0zM384 384a64 64 0 1 0 -128 0 64 64 0 1 0 128 0z"]},M_={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"]},N_={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"]},j_={prefix:"fas",iconName:"scale-balanced",icon:[640,512,[9878,"balance-scale"],"f24e","M384 32H512c17.7 0 32 14.3 32 32s-14.3 32-32 32H398.4c-5.2 25.8-22.9 47.1-46.4 57.3V448H512c17.7 0 32 14.3 32 32s-14.3 32-32 32H320 128c-17.7 0-32-14.3-32-32s14.3-32 32-32H288V153.3c-23.5-10.3-41.2-31.6-46.4-57.3H128c-17.7 0-32-14.3-32-32s14.3-32 32-32H256c14.6-19.4 37.8-32 64-32s49.4 12.6 64 32zm55.6 288H584.4L512 195.8 439.6 320zM512 416c-62.9 0-115.2-34-126-78.9c-2.6-11 1-22.3 6.7-32.1l95.2-163.2c5-8.6 14.2-13.8 24.1-13.8s19.1 5.3 24.1 13.8l95.2 163.2c5.7 9.8 9.3 21.1 6.7 32.1C627.2 382 574.9 416 512 416zM126.8 195.8L54.4 320H199.3L126.8 195.8zM.9 337.1c-2.6-11 1-22.3 6.7-32.1l95.2-163.2c5-8.6 14.2-13.8 24.1-13.8s19.1 5.3 24.1 13.8l95.2 163.2c5.7 9.8 9.3 21.1 6.7 32.1C242 382 189.7 416 126.8 416S11.7 382 .9 337.1z"]},nv={prefix:"fas",iconName:"triangle-exclamation",icon:[512,512,[9888,"exclamation-triangle","warning"],"f071","M256 32c14.2 0 27.3 7.5 34.5 19.8l216 368c7.3 12.4 7.3 27.7 .2 40.1S486.3 480 472 480H40c-14.3 0-27.6-7.7-34.7-20.1s-7-27.8 .2-40.1l216-368C228.7 39.5 241.8 32 256 32zm0 128c-13.3 0-24 10.7-24 24V296c0 13.3 10.7 24 24 24s24-10.7 24-24V184c0-13.3-10.7-24-24-24zm32 224a32 32 0 1 0 -64 0 32 32 0 1 0 64 0z"]},rv={prefix:"fas",iconName:"right-left",icon:[512,512,["exchange-alt"],"f362","M32 96l320 0V32c0-12.9 7.8-24.6 19.8-29.6s25.7-2.2 34.9 6.9l96 96c6 6 9.4 14.1 9.4 22.6s-3.4 16.6-9.4 22.6l-96 96c-9.2 9.2-22.9 11.9-34.9 6.9s-19.8-16.6-19.8-29.6V160L32 160c-17.7 0-32-14.3-32-32s14.3-32 32-32zM480 352c17.7 0 32 14.3 32 32s-14.3 32-32 32H160v64c0 12.9-7.8 24.6-19.8 29.6s-25.7 2.2-34.9-6.9l-96-96c-6-6-9.4-14.1-9.4-22.6s3.4-16.6 9.4-22.6l96-96c9.2-9.2 22.9-11.9 34.9-6.9s19.8 16.6 19.8 29.6l0 64H480z"]},gv={prefix:"fas",iconName:"user-clock",icon:[640,512,[],"f4fd","M224 0a128 128 0 1 1 0 256A128 128 0 1 1 224 0zM178.3 304h91.4c20.6 0 40.4 3.5 58.8 9.9C323 331 320 349.1 320 368c0 59.5 29.5 112.1 74.8 144H29.7C13.3 512 0 498.7 0 482.3C0 383.8 79.8 304 178.3 304zM352 368a144 144 0 1 1 288 0 144 144 0 1 1 -288 0zm144-80c-8.8 0-16 7.2-16 16v64c0 8.8 7.2 16 16 16h48c8.8 0 16-7.2 16-16s-7.2-16-16-16H512V304c0-8.8-7.2-16-16-16z"]}},493:(Ve,q,p)=>{"use strict";p.d(q,{eX:()=>V,sQ:()=>Ke,GW:()=>i,l4:()=>X});var t=p(6451),e=p(9751),b=p(7579),I=p(8502),s=p(515),C=p(9646),h=p(2843),P=p(576);class S{constructor(Ht,Mt,kt){this.kind=Ht,this.value=Mt,this.error=kt,this.hasValue="N"===Ht}observe(Ht){return w(this,Ht)}do(Ht,Mt,kt){const{kind:_t,value:we,error:J}=this;return"N"===_t?Ht?.(we):"E"===_t?Mt?.(J):kt?.()}accept(Ht,Mt,kt){var _t;return(0,P.m)(null===(_t=Ht)||void 0===_t?void 0:_t.next)?this.observe(Ht):this.do(Ht,Mt,kt)}toObservable(){const{kind:Ht,value:Mt,error:kt}=this,_t="N"===Ht?(0,C.of)(Mt):"E"===Ht?(0,h._)(()=>kt):"C"===Ht?s.E:0;if(!_t)throw new TypeError(`Unexpected notification kind ${Ht}`);return _t}static createNext(Ht){return new S("N",Ht)}static createError(Ht){return new S("E",void 0,Ht)}static createComplete(){return S.completeNotification}}function w(Ye,Ht){var Mt,kt,_t;const{kind:we,value:J,error:be}=Ye;if("string"!=typeof we)throw new TypeError('Invalid notification, missing "kind"');"N"===we?null===(Mt=Ht.next)||void 0===Mt||Mt.call(Ht,J):"E"===we?null===(kt=Ht.error)||void 0===kt||kt.call(Ht,be):null===(_t=Ht.complete)||void 0===_t||_t.call(Ht)}S.completeNotification=new S("C");var O=p(4482),E=p(5403),z=p(4004),U=p(262),W=p(9300),K=p(8421);function ee(Ye,Ht,Mt,kt){return(0,O.e)((_t,we)=>{let J;Ht&&"function"!=typeof Ht?({duration:Mt,element:J,connector:kt}=Ht):J=Ht;const be=new Map,He=tt=>{be.forEach(tt),tt(we)},at=tt=>He(vt=>vt.error(tt));let ii=0,Gt=!1;const ni=new E.Q(we,tt=>{try{const vt=Ye(tt);let ti=be.get(vt);if(!ti){be.set(vt,ti=kt?kt():new b.x);const Ut=function ut(tt,vt){const ti=new e.y(Ut=>{ii++;const ht=vt.subscribe(Ut);return()=>{ht.unsubscribe(),0==--ii&&Gt&&ni.unsubscribe()}});return ti.key=tt,ti}(vt,ti);if(we.next(Ut),Mt){const ht=(0,E.x)(ti,()=>{ti.complete(),ht?.unsubscribe()},void 0,void 0,()=>be.delete(vt));ni.add((0,K.Xf)(Mt(Ut)).subscribe(ht))}}ti.next(J?J(tt):tt)}catch(vt){at(vt)}},()=>He(tt=>tt.complete()),at,()=>be.clear(),()=>(Gt=!0,0===ii));_t.subscribe(ni)})}var ie=p(5577);function ue(Ye,Ht){return Ht?Mt=>Mt.pipe(ue((kt,_t)=>(0,K.Xf)(Ye(kt,_t)).pipe((0,z.U)((we,J)=>Ht(kt,we,_t,J))))):(0,O.e)((Mt,kt)=>{let _t=0,we=null,J=!1;Mt.subscribe((0,E.x)(kt,be=>{we||(we=(0,E.x)(kt,void 0,()=>{we=null,J&&kt.complete()}),(0,K.Xf)(Ye(be,_t++)).subscribe(we))},()=>{J=!0,!we&&kt.complete()}))})}var ne=p(5698),de=p(4650),$=p(9653);const me={dispatch:!0,functional:!1,useEffectsErrorHandler:!0},A="__@ngrx/effects_create__";function i(Ye,Ht={}){const Mt=Ht.functional?Ye:Ye(),kt={...me,...Ht};return Object.defineProperty(Mt,A,{value:kt}),Mt}function y(Ye){return Object.getPrototypeOf(Ye)}function L(Ye){return"function"==typeof Ye}function m(Ye){return Ye.filter(L)}function n(Ye,Ht,Mt){const kt=y(Ye).constructor.name,_t=function l(Ye){return function a(Ye){return Object.getOwnPropertyNames(Ye).filter(kt=>!(!Ye[kt]||!Ye[kt].hasOwnProperty(A))&&Ye[kt][A].hasOwnProperty("dispatch")).map(kt=>({propertyName:kt,...Ye[kt][A]}))}(Ye)}(Ye).map(({propertyName:we,dispatch:J,useEffectsErrorHandler:be})=>{const He="function"==typeof Ye[we]?Ye[we]():Ye[we],at=be?Mt(He,Ht):He;return!1===J?at.pipe((0,I.l)()):at.pipe(function R(){return(0,O.e)((Ye,Ht)=>{Ye.subscribe((0,E.x)(Ht,Mt=>{Ht.next(S.createNext(Mt))},()=>{Ht.next(S.createComplete()),Ht.complete()},Mt=>{Ht.next(S.createError(Mt)),Ht.complete()}))})}()).pipe((0,z.U)(Gt=>({effect:Ye[we],notification:Gt,propertyName:we,sourceName:kt,sourceInstance:Ye})))});return(0,t.T)(..._t)}function B(Ye,Ht,Mt=10){return Ye.pipe((0,U.K)(kt=>(Ht&&Ht.handleError(kt),Mt<=1?Ye:B(Ye,Ht,Mt-1))))}let V=(()=>{class Ye extends e.y{constructor(Mt){super(),Mt&&(this.source=Mt)}lift(Mt){const kt=new Ye;return kt.source=this,kt.operator=Mt,kt}}return Ye.\u0275fac=function(Mt){return new(Mt||Ye)(de.LFG($.Y$))},Ye.\u0275prov=de.Yz7({token:Ye,factory:Ye.\u0275fac,providedIn:"root"}),Ye})();function X(...Ye){return(0,W.h)(Ht=>Ye.some(Mt=>"string"==typeof Mt?Mt===Ht.type:Mt.type===Ht.type))}const Le=new de.OlP("@ngrx/effects Internal Root Guard"),$e=new de.OlP("@ngrx/effects User Provided Effects"),We=new de.OlP("@ngrx/effects Internal Root Effects"),Fe=new de.OlP("@ngrx/effects Internal Root Effects Instances"),De=new de.OlP("@ngrx/effects Internal Feature Effects"),ye=new de.OlP("@ngrx/effects Internal Feature Effects Instance Groups"),ce=new de.OlP("@ngrx/effects Effects Error Handler",{providedIn:"root",factory:()=>B}),ve="@ngrx/effects/init";function ft(Ye){return Je(Ye,"ngrxOnInitEffects")}function Je(Ye,Ht){return Ye&&Ht in Ye&&"function"==typeof Ye[Ht]}(0,$.PH)(ve);let dt=(()=>{class Ye extends b.x{constructor(Mt,kt){super(),this.errorHandler=Mt,this.effectsErrorHandler=kt}addEffects(Mt){this.next(Mt)}toActions(){return this.pipe(ee(Mt=>function T(Ye){return"Object"!==Ye.constructor.name&&"Function"!==Ye.constructor.name}(Mt)?y(Mt):Mt),(0,ie.z)(Mt=>Mt.pipe(ee(Et))),(0,ie.z)(Mt=>{const kt=Mt.pipe(ue(we=>function pt(Ye,Ht){return Mt=>{const kt=n(Mt,Ye,Ht);return function ae(Ye){return Je(Ye,"ngrxOnRunEffects")}(Mt)?Mt.ngrxOnRunEffects(kt):kt}}(this.errorHandler,this.effectsErrorHandler)(we)),(0,z.U)(we=>(function je(Ye,Ht){if("N"===Ye.notification.kind){const Mt=Ye.notification.value;!function Ae(Ye){return"function"!=typeof Ye&&Ye&&Ye.type&&"string"==typeof Ye.type}(Mt)&&Ht.handleError(new Error(`Effect ${function he({propertyName:Ye,sourceInstance:Ht,sourceName:Mt}){const kt="function"==typeof Ht[Ye];return`"${Mt}.${String(Ye)}${kt?"()":""}"`}(Ye)} dispatched an invalid action: ${function Ce(Ye){try{return JSON.stringify(Ye)}catch{return Ye}}(Mt)}`))}}(we,this.errorHandler),we.notification)),(0,W.h)(we=>"N"===we.kind&&null!=we.value),function le(){return(0,O.e)((Ye,Ht)=>{Ye.subscribe((0,E.x)(Ht,Mt=>w(Mt,Ht)))})}()),_t=Mt.pipe((0,ne.q)(1),(0,W.h)(ft),(0,z.U)(we=>we.ngrxOnInitEffects()));return(0,t.T)(kt,_t)}))}}return Ye.\u0275fac=function(Mt){return new(Mt||Ye)(de.LFG(de.qLn),de.LFG(ce))},Ye.\u0275prov=de.Yz7({token:Ye,factory:Ye.\u0275fac,providedIn:"root"}),Ye})();function Et(Ye){return function Ue(Ye){return Je(Ye,"ngrxOnIdentifyEffects")}(Ye)?Ye.ngrxOnIdentifyEffects():""}let ot=(()=>{class Ye{constructor(Mt,kt){this.effectSources=Mt,this.store=kt,this.effectsSubscription=null}get isStarted(){return!!this.effectsSubscription}start(){this.effectsSubscription||(this.effectsSubscription=this.effectSources.toActions().subscribe(this.store))}ngOnDestroy(){this.effectsSubscription&&(this.effectsSubscription.unsubscribe(),this.effectsSubscription=null)}}return Ye.\u0275fac=function(Mt){return new(Mt||Ye)(de.LFG(dt),de.LFG($.yh))},Ye.\u0275prov=de.Yz7({token:Ye,factory:Ye.\u0275fac,providedIn:"root"}),Ye})(),wt=(()=>{class Ye{constructor(Mt,kt,_t,we,J,be,He){this.sources=Mt,kt.start();for(const at of we)Mt.addEffects(at);_t.dispatch({type:ve})}addEffects(Mt){this.sources.addEffects(Mt)}}return Ye.\u0275fac=function(Mt){return new(Mt||Ye)(de.LFG(dt),de.LFG(ot),de.LFG($.yh),de.LFG(Fe),de.LFG($.cr,8),de.LFG($.CK,8),de.LFG(Le,8))},Ye.\u0275mod=de.oAB({type:Ye}),Ye.\u0275inj=de.cJS({}),Ye})(),ke=(()=>{class Ye{constructor(Mt,kt,_t,we){const J=kt.flat();for(const be of J)Mt.addEffects(be)}}return Ye.\u0275fac=function(Mt){return new(Mt||Ye)(de.LFG(wt),de.LFG(ye),de.LFG($.cr,8),de.LFG($.CK,8))},Ye.\u0275mod=de.oAB({type:Ye}),Ye.\u0275inj=de.cJS({}),Ye})(),Ke=(()=>{class Ye{static forFeature(...Mt){const kt=Mt.flat(),_t=m(kt);return{ngModule:ke,providers:[_t,{provide:De,multi:!0,useValue:kt},{provide:$e,multi:!0,useValue:[]},{provide:ye,multi:!0,useFactory:xt,deps:[De,$e]}]}}static forRoot(...Mt){const kt=Mt.flat(),_t=m(kt);return{ngModule:wt,providers:[_t,{provide:We,useValue:[kt]},{provide:Le,useFactory:Y},{provide:$e,multi:!0,useValue:[]},{provide:Fe,useFactory:xt,deps:[We,$e]}]}}}return Ye.\u0275fac=function(Mt){return new(Mt||Ye)},Ye.\u0275mod=de.oAB({type:Ye}),Ye.\u0275inj=de.cJS({}),Ye})();function xt(Ye,Ht){const Mt=[];for(const kt of Ye)Mt.push(...kt);for(const kt of Ht)Mt.push(...kt);return Mt.map(kt=>L(kt)?(0,de.f3M)(kt):kt)}function Y(){const Ye=(0,de.f3M)(ot,{optional:!0,skipSelf:!0}),Ht=(0,de.f3M)(We,{self:!0});if((1!==Ht.length||0!==Ht[0].length)&&Ye)throw new TypeError("EffectsModule.forRoot() called twice. Feature modules should use EffectsModule.forFeature() instead.");return"guarded"}},825:(__unused_webpack___webpack_module__,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{FT:()=>StoreDevtoolsModule});var _angular_core__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(4650),_ngrx_store__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(9653),rxjs__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__(515),rxjs__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__(9751),rxjs__WEBPACK_IMPORTED_MODULE_11__=__webpack_require__(9646),rxjs__WEBPACK_IMPORTED_MODULE_15__=__webpack_require__(6451),rxjs__WEBPACK_IMPORTED_MODULE_18__=__webpack_require__(233),rxjs__WEBPACK_IMPORTED_MODULE_19__=__webpack_require__(4707),rxjs_operators__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__(3099),rxjs_operators__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__(9300),rxjs_operators__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__(4004),rxjs_operators__WEBPACK_IMPORTED_MODULE_7__=__webpack_require__(4351),rxjs_operators__WEBPACK_IMPORTED_MODULE_8__=__webpack_require__(7414),rxjs_operators__WEBPACK_IMPORTED_MODULE_9__=__webpack_require__(8372),rxjs_operators__WEBPACK_IMPORTED_MODULE_10__=__webpack_require__(262),rxjs_operators__WEBPACK_IMPORTED_MODULE_12__=__webpack_require__(5698),rxjs_operators__WEBPACK_IMPORTED_MODULE_13__=__webpack_require__(2722),rxjs_operators__WEBPACK_IMPORTED_MODULE_14__=__webpack_require__(3900),rxjs_operators__WEBPACK_IMPORTED_MODULE_16__=__webpack_require__(5684),rxjs_operators__WEBPACK_IMPORTED_MODULE_17__=__webpack_require__(5363),rxjs_operators__WEBPACK_IMPORTED_MODULE_20__=__webpack_require__(1365),rxjs_operators__WEBPACK_IMPORTED_MODULE_21__=__webpack_require__(5026);const PERFORM_ACTION="PERFORM_ACTION",REFRESH="REFRESH",RESET="RESET",ROLLBACK="ROLLBACK",COMMIT="COMMIT",SWEEP="SWEEP",TOGGLE_ACTION="TOGGLE_ACTION",SET_ACTIONS_ACTIVE="SET_ACTIONS_ACTIVE",JUMP_TO_STATE="JUMP_TO_STATE",JUMP_TO_ACTION="JUMP_TO_ACTION",IMPORT_STATE="IMPORT_STATE",LOCK_CHANGES="LOCK_CHANGES",PAUSE_RECORDING="PAUSE_RECORDING";class PerformAction{constructor(q,p){if(this.action=q,this.timestamp=p,this.type=PERFORM_ACTION,typeof q.type>"u")throw new Error('Actions may not have an undefined "type" property. Have you misspelled a constant?')}}class Refresh{constructor(){this.type=REFRESH}}class Reset{constructor(q){this.timestamp=q,this.type=RESET}}class Rollback{constructor(q){this.timestamp=q,this.type=ROLLBACK}}class Commit{constructor(q){this.timestamp=q,this.type=COMMIT}}class Sweep{constructor(){this.type=SWEEP}}class ToggleAction{constructor(q){this.id=q,this.type=TOGGLE_ACTION}}class SetActionsActive{constructor(q,p,t=!0){this.start=q,this.end=p,this.active=t,this.type=SET_ACTIONS_ACTIVE}}class JumpToState{constructor(q){this.index=q,this.type=JUMP_TO_STATE}}class JumpToAction{constructor(q){this.actionId=q,this.type=JUMP_TO_ACTION}}class ImportState{constructor(q){this.nextLiftedState=q,this.type=IMPORT_STATE}}class LockChanges{constructor(q){this.status=q,this.type=LOCK_CHANGES}}class PauseRecording{constructor(q){this.status=q,this.type=PAUSE_RECORDING}}class StoreDevtoolsConfig{constructor(){this.maxAge=!1}}const STORE_DEVTOOLS_CONFIG=new _angular_core__WEBPACK_IMPORTED_MODULE_0__.OlP("@ngrx/store-devtools Options"),INITIAL_OPTIONS=new _angular_core__WEBPACK_IMPORTED_MODULE_0__.OlP("@ngrx/store-devtools Initial Config");function noMonitor(){return null}const DEFAULT_NAME="NgRx Store DevTools";function createConfig(Ve){const q={maxAge:!1,monitor:noMonitor,actionSanitizer:void 0,stateSanitizer:void 0,name:DEFAULT_NAME,serialize:!1,logOnly:!1,autoPause:!1,trace:!1,traceLimit:75,features:{pause:!0,lock:!0,persist:!0,export:!0,import:"custom",jump:!0,skip:!0,reorder:!0,dispatch:!0,test:!0}},p="function"==typeof Ve?Ve():Ve,b=Object.assign({},q,{features:p.features||!!p.logOnly&&{pause:!0,export:!0,test:!0}||q.features},p);if(b.maxAge&&b.maxAge<2)throw new Error(`Devtools 'maxAge' cannot be less than 2, got ${b.maxAge}`);return b}function difference(Ve,q){return Ve.filter(p=>q.indexOf(p)<0)}function unliftState(Ve){const{computedStates:q,currentStateIndex:p}=Ve;if(p>=q.length){const{state:e}=q[q.length-1];return e}const{state:t}=q[p];return t}function unliftAction(Ve){return Ve.actionsById[Ve.nextActionId-1]}function liftAction(Ve){return new PerformAction(Ve,+Date.now())}function sanitizeActions(Ve,q){return Object.keys(q).reduce((p,t)=>{const e=Number(t);return p[e]=sanitizeAction(Ve,q[e],e),p},{})}function sanitizeAction(Ve,q,p){return{...q,action:Ve(q.action,p)}}function sanitizeStates(Ve,q){return q.map((p,t)=>({state:sanitizeState(Ve,p.state,t),error:p.error}))}function sanitizeState(Ve,q,p){return Ve(q,p)}function shouldFilterActions(Ve){return Ve.predicate||Ve.actionsSafelist||Ve.actionsBlocklist}function filterLiftedState(Ve,q,p,t){const e=[],b={},I=[];return Ve.stagedActionIds.forEach((s,C)=>{const h=Ve.actionsById[s];h&&(C&&isActionFiltered(Ve.computedStates[C],h,q,p,t)||(b[s]=h,e.push(s),I.push(Ve.computedStates[C])))}),{...Ve,stagedActionIds:e,actionsById:b,computedStates:I}}function isActionFiltered(Ve,q,p,t,e){const b=p&&!p(Ve,q.action),I=t&&!q.action.type.match(t.map(C=>escapeRegExp(C)).join("|")),s=e&&q.action.type.match(e.map(C=>escapeRegExp(C)).join("|"));return b||I||s}function escapeRegExp(Ve){return Ve.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}let DevtoolsDispatcher=(()=>{class Ve extends _ngrx_store__WEBPACK_IMPORTED_MODULE_1__.UO{}return Ve.\u0275fac=function(){let q;return function(t){return(q||(q=_angular_core__WEBPACK_IMPORTED_MODULE_0__.n5z(Ve)))(t||Ve)}}(),Ve.\u0275prov=_angular_core__WEBPACK_IMPORTED_MODULE_0__.Yz7({token:Ve,factory:Ve.\u0275fac}),Ve})();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(Ve,q,p){this.config=q,this.dispatcher=p,this.devtoolsExtension=Ve,this.createActionStreams()}notify(Ve,q){if(this.devtoolsExtension)if(Ve.type===PERFORM_ACTION){if(q.isLocked||q.isPaused)return;const p=unliftState(q);if(shouldFilterActions(this.config)&&isActionFiltered(p,Ve,this.config.predicate,this.config.actionsSafelist,this.config.actionsBlocklist))return;const t=this.config.stateSanitizer?sanitizeState(this.config.stateSanitizer,p,q.currentStateIndex):p,e=this.config.actionSanitizer?sanitizeAction(this.config.actionSanitizer,Ve,q.nextActionId):Ve;this.sendToReduxDevtools(()=>this.extensionConnection.send(e,t))}else{const p={...q,stagedActionIds:q.stagedActionIds,actionsById:this.config.actionSanitizer?sanitizeActions(this.config.actionSanitizer,q.actionsById):q.actionsById,computedStates:this.config.stateSanitizer?sanitizeStates(this.config.stateSanitizer,q.computedStates):q.computedStates};this.sendToReduxDevtools(()=>this.devtoolsExtension.send(null,p,this.getExtensionConfig(this.config)))}}createChangesObservable(){return this.devtoolsExtension?new rxjs__WEBPACK_IMPORTED_MODULE_3__.y(Ve=>{const q=this.devtoolsExtension.connect(this.getExtensionConfig(this.config));return this.extensionConnection=q,q.init(),q.subscribe(p=>Ve.next(p)),q.unsubscribe}):rxjs__WEBPACK_IMPORTED_MODULE_2__.E}createActionStreams(){const Ve=this.createChangesObservable().pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_4__.B)()),q=Ve.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_5__.h)(s=>s.type===ExtensionActionTypes.START)),p=Ve.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_5__.h)(s=>s.type===ExtensionActionTypes.STOP)),t=Ve.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)(C=>C.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))),b=Ve.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)),I=t.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_13__.R)(p));this.start$=q.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_13__.R)(p)),this.actions$=this.start$.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_14__.w)(()=>b)),this.liftedActions$=this.start$.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_14__.w)(()=>I))}unwrapAction(action){return"string"==typeof action?eval(`(${action})`):action}getExtensionConfig(Ve){const q={name:Ve.name,features:Ve.features,serialize:Ve.serialize,autoPause:Ve.autoPause??!1,trace:Ve.trace??!1,traceLimit:Ve.traceLimit??75};return!1!==Ve.maxAge&&(q.maxAge=Ve.maxAge),q}sendToReduxDevtools(Ve){try{Ve()}catch(q){console.warn("@ngrx/store-devtools: something went wrong inside the redux devtools",q)}}}return DevtoolsExtension.\u0275fac=function Ve(q){return new(q||DevtoolsExtension)(_angular_core__WEBPACK_IMPORTED_MODULE_0__.LFG(REDUX_DEVTOOLS_EXTENSION),_angular_core__WEBPACK_IMPORTED_MODULE_0__.LFG(STORE_DEVTOOLS_CONFIG),_angular_core__WEBPACK_IMPORTED_MODULE_0__.LFG(DevtoolsDispatcher))},DevtoolsExtension.\u0275prov=_angular_core__WEBPACK_IMPORTED_MODULE_0__.Yz7({token:DevtoolsExtension,factory:DevtoolsExtension.\u0275fac}),DevtoolsExtension})();const INIT_ACTION={type:_ngrx_store__WEBPACK_IMPORTED_MODULE_1__.qg},RECOMPUTE="@ngrx/store-devtools/recompute",RECOMPUTE_ACTION={type:RECOMPUTE};function computeNextEntry(Ve,q,p,t,e){if(t)return{state:p,error:"Interrupted by an error up the chain"};let I,b=p;try{b=Ve(p,q)}catch(s){I=s.toString(),e.handleError(s)}return{state:b,error:I}}function recomputeStates(Ve,q,p,t,e,b,I,s,C){if(q>=Ve.length&&Ve.length===b.length)return Ve;const h=Ve.slice(0,q),P=b.length-(C?1:0);for(let d=q;d<P;d++){const S=b[d],w=e[S].action,O=h[d-1],E=O?O.state:t,R=O?O.error:void 0,U=I.indexOf(S)>-1?O:computeNextEntry(p,w,E,R,s);h.push(U)}return C&&h.push(Ve[Ve.length-1]),h}function liftInitialState(Ve,q){return{monitorState:q(void 0,{}),nextActionId:1,actionsById:{0:liftAction(INIT_ACTION)},stagedActionIds:[0],skippedActionIds:[],committedState:Ve,currentStateIndex:0,computedStates:[],isLocked:!1,isPaused:!1}}function liftReducerWith(Ve,q,p,t,e={}){return b=>(I,s)=>{let{monitorState:C,actionsById:h,nextActionId:P,stagedActionIds:d,skippedActionIds:S,committedState:w,currentStateIndex:O,computedStates:E,isLocked:R,isPaused:z}=I||q;function U(ee){let ie=ee,ue=d.slice(1,ie+1);for(let le=0;le<ue.length;le++){if(E[le+1].error){ie=le,ue=d.slice(1,ie+1);break}delete h[ue[le]]}S=S.filter(le=>-1===ue.indexOf(le)),d=[0,...d.slice(ie+1)],w=E[ie].state,E=E.slice(ie),O=O>ie?O-ie:0}function W(){h={0:liftAction(INIT_ACTION)},P=1,d=[0],S=[],w=E[O].state,O=0,E=[]}I||(h=Object.create(h));let K=0;switch(s.type){case LOCK_CHANGES:R=s.status,K=1/0;break;case PAUSE_RECORDING:z=s.status,z?(d=[...d,P],h[P]=new PerformAction({type:"@ngrx/devtools/pause"},+Date.now()),P++,K=d.length-1,E=E.concat(E[E.length-1]),O===d.length-2&&O++,K=1/0):W();break;case RESET:h={0:liftAction(INIT_ACTION)},P=1,d=[0],S=[],w=Ve,O=0,E=[];break;case COMMIT:W();break;case ROLLBACK:h={0:liftAction(INIT_ACTION)},P=1,d=[0],S=[],O=0,E=[];break;case TOGGLE_ACTION:{const{id:ee}=s;S=-1===S.indexOf(ee)?[ee,...S]:S.filter(ue=>ue!==ee),K=d.indexOf(ee);break}case SET_ACTIONS_ACTIVE:{const{start:ee,end:ie,active:ue}=s,le=[];for(let ne=ee;ne<ie;ne++)le.push(ne);S=ue?difference(S,le):[...S,...le],K=d.indexOf(ee);break}case JUMP_TO_STATE:O=s.index,K=1/0;break;case JUMP_TO_ACTION:{const ee=d.indexOf(s.actionId);-1!==ee&&(O=ee),K=1/0;break}case SWEEP:d=difference(d,S),S=[],O=Math.min(O,d.length-1);break;case PERFORM_ACTION:{if(R)return I||q;if(z||I&&isActionFiltered(I.computedStates[O],s,e.predicate,e.actionsSafelist,e.actionsBlocklist)){const ie=E[E.length-1];E=[...E.slice(0,-1),computeNextEntry(b,s.action,ie.state,ie.error,p)],K=1/0;break}e.maxAge&&d.length===e.maxAge&&U(1),O===d.length-1&&O++;const ee=P++;h[ee]=s,d=[...d,ee],K=d.length-1;break}case IMPORT_STATE:({monitorState:C,actionsById:h,nextActionId:P,stagedActionIds:d,skippedActionIds:S,committedState:w,currentStateIndex:O,computedStates:E,isLocked:R,isPaused:z}=s.nextLiftedState);break;case _ngrx_store__WEBPACK_IMPORTED_MODULE_1__.qg:K=0,e.maxAge&&d.length>e.maxAge&&(E=recomputeStates(E,K,b,w,h,d,S,p,z),U(d.length-e.maxAge),K=1/0);break;case _ngrx_store__WEBPACK_IMPORTED_MODULE_1__.wb:if(E.filter(ie=>ie.error).length>0)K=0,e.maxAge&&d.length>e.maxAge&&(E=recomputeStates(E,K,b,w,h,d,S,p,z),U(d.length-e.maxAge),K=1/0);else{if(!z&&!R){O===d.length-1&&O++;const ie=P++;h[ie]=new PerformAction(s,+Date.now()),d=[...d,ie],K=d.length-1,E=recomputeStates(E,K,b,w,h,d,S,p,z)}E=E.map(ie=>({...ie,state:b(ie.state,RECOMPUTE_ACTION)})),O=d.length-1,e.maxAge&&d.length>e.maxAge&&U(d.length-e.maxAge),K=1/0}break;default:K=1/0}return E=recomputeStates(E,K,b,w,h,d,S,p,z),C=t(C,s),{monitorState:C,actionsById:h,nextActionId:P,stagedActionIds:d,skippedActionIds:S,committedState:w,currentStateIndex:O,computedStates:E,isLocked:R,isPaused:z}}}let StoreDevtools=(()=>{class Ve{constructor(p,t,e,b,I,s,C,h){const P=liftInitialState(C,h.monitor),d=liftReducerWith(C,P,s,h.monitor,h),S=(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)),b.actions$).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_6__.U)(liftAction)),p,b.liftedActions$).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_17__.Q)(rxjs__WEBPACK_IMPORTED_MODULE_18__.N)),w=e.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_6__.U)(d)),O=new rxjs__WEBPACK_IMPORTED_MODULE_19__.t(1),E=S.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_20__.M)(w),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_21__.R)(({state:W},[K,ee])=>{let ie=ee(W,K);return K.type!==PERFORM_ACTION&&shouldFilterActions(h)&&(ie=filterLiftedState(ie,h.predicate,h.actionsSafelist,h.actionsBlocklist)),b.notify(K,ie),{state:ie,action:K}},{state:P,action:null})).subscribe(({state:W,action:K})=>{O.next(W),K.type===PERFORM_ACTION&&I.next(K.action)}),R=b.start$.subscribe(()=>{this.refresh()}),z=O.asObservable(),U=z.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_6__.U)(unliftState));this.extensionStartSubscription=R,this.stateSubscription=E,this.dispatcher=p,this.liftedState=z,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 Ve.\u0275fac=function(p){return new(p||Ve)(_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))},Ve.\u0275prov=_angular_core__WEBPACK_IMPORTED_MODULE_0__.Yz7({token:Ve,factory:Ve.\u0275fac}),Ve})();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(Ve,q){return Boolean(Ve)||q.monitor!==noMonitor}function createReduxDevtoolsExtension(){const Ve="__REDUX_DEVTOOLS_EXTENSION__";return"object"==typeof window&&typeof window[Ve]<"u"?window[Ve]:null}function provideStoreDevtools(Ve={}){return(0,_angular_core__WEBPACK_IMPORTED_MODULE_0__.MR2)([DevtoolsExtension,DevtoolsDispatcher,StoreDevtools,{provide:INITIAL_OPTIONS,useValue:Ve},{provide:IS_EXTENSION_OR_MONITOR_PRESENT,deps:[REDUX_DEVTOOLS_EXTENSION,STORE_DEVTOOLS_CONFIG],useFactory:createIsExtensionOrMonitorPresent},{provide:REDUX_DEVTOOLS_EXTENSION,useFactory:createReduxDevtoolsExtension},{provide:STORE_DEVTOOLS_CONFIG,deps:[INITIAL_OPTIONS],useFactory:createConfig},{provide:_ngrx_store__WEBPACK_IMPORTED_MODULE_1__.FR,deps:[StoreDevtools],useFactory:createStateObservable},{provide:_ngrx_store__WEBPACK_IMPORTED_MODULE_1__.mK,useExisting:DevtoolsDispatcher}])}function createStateObservable(Ve){return Ve.state}let StoreDevtoolsModule=(()=>{class Ve{static instrument(p={}){return{ngModule:Ve,providers:[provideStoreDevtools(p)]}}}return Ve.\u0275fac=function(p){return new(p||Ve)},Ve.\u0275mod=_angular_core__WEBPACK_IMPORTED_MODULE_0__.oAB({type:Ve}),Ve.\u0275inj=_angular_core__WEBPACK_IMPORTED_MODULE_0__.cJS({}),Ve})()},9653:(Ve,q,p)=>{"use strict";p.d(q,{UO:()=>de,qg:()=>ne,Y6:()=>i,mK:()=>Ue,n$:()=>te,Y$:()=>ft,FR:()=>dt,yh:()=>wt,CK:()=>Ia,Aw:()=>Oa,cr:()=>sa,wb:()=>Be,PH:()=>R,ZF:()=>ht,Lq:()=>Ua,P1:()=>vt,on:()=>Zn,Ky:()=>z});var t=p(4650),e=p(1135),b=p(9751),I=p(7579),s=p(233),C=p(5363),h=p(1365),P=p(5026),d=p(4004),w=p(1884);const O={};function R(Lt,ai){if(O[Lt]=(O[Lt]||0)+1,"function"==typeof ai)return W(Lt,(...gi)=>({...ai(...gi),type:Lt}));switch(ai?ai._as:"empty"){case"empty":return W(Lt,()=>({type:Lt}));case"props":return W(Lt,gi=>({...gi,type:Lt}));default:throw new Error("Unexpected config.")}}function z(){return{_as:"props",_p:void 0}}function W(Lt,ai){return Object.defineProperty(ai,"type",{value:Lt,writable:!1})}const ne="@ngrx/store/init";let de=(()=>{class Lt extends e.X{constructor(){super({type:ne})}next(si){if("function"==typeof si)throw new TypeError("\n Dispatch expected an object, instead it received a function.\n If you're using the createAction function, make sure to invoke the function\n before dispatching the action. For example, someAction should be someAction().");if(typeof si>"u")throw new TypeError("Actions must be objects");if(typeof si.type>"u")throw new TypeError("Actions must have a type property");super.next(si)}complete(){}ngOnDestroy(){super.complete()}}return Lt.\u0275fac=function(si){return new(si||Lt)},Lt.\u0275prov=t.Yz7({token:Lt,factory:Lt.\u0275fac}),Lt})();const $=[de],me=new t.OlP("@ngrx/store Internal Root Guard"),A=new t.OlP("@ngrx/store Internal Initial State"),i=new t.OlP("@ngrx/store Initial State"),a=new t.OlP("@ngrx/store Reducer Factory"),u=new t.OlP("@ngrx/store Internal Reducer Factory Provider"),l=new t.OlP("@ngrx/store Initial Reducers"),y=new t.OlP("@ngrx/store Internal Initial Reducers"),T=new t.OlP("@ngrx/store Store Features"),L=new t.OlP("@ngrx/store Internal Store Reducers"),m=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"),V=new t.OlP("@ngrx/store Feature Reducers"),X=new t.OlP("@ngrx/store User Provided Meta Reducers"),Le=new t.OlP("@ngrx/store Meta Reducers"),$e=new t.OlP("@ngrx/store Internal Resolved Meta Reducers"),We=new t.OlP("@ngrx/store User Runtime Checks Config"),Fe=new t.OlP("@ngrx/store Internal User Runtime Checks Config"),De=new t.OlP("@ngrx/store Internal Runtime Checks"),ye=new t.OlP("@ngrx/store Check if Action types are unique");function oe(Lt,ai={}){const si=Object.keys(Lt),gi={};for(let Vi=0;Vi<si.length;Vi++){const fn=si[Vi];"function"==typeof Lt[fn]&&(gi[fn]=Lt[fn])}const Oi=Object.keys(gi);return function(fn,Vn){fn=void 0===fn?ai:fn;let zn=!1;const ga={};for(let An=0;An<Oi.length;An++){const Nn=Oi[An],Fn=fn[Nn],Xn=(0,gi[Nn])(Fn,Vn);ga[Nn]=Xn,zn=zn||Xn!==Fn}return zn?ga:fn}}function Ae(...Lt){return function(ai){if(0===Lt.length)return ai;const si=Lt[Lt.length-1];return Lt.slice(0,-1).reduceRight((Oi,Vi)=>Vi(Oi),si(ai))}}function he(Lt,ai){return Array.isArray(ai)&&ai.length>0&&(Lt=Ae.apply(null,[...ai,Lt])),(si,gi)=>{const Oi=Lt(si);return(Vi,fn)=>Oi(Vi=void 0===Vi?gi:Vi,fn)}}new t.OlP("@ngrx/store Root Store Provider"),new t.OlP("@ngrx/store Feature State Provider");class te extends b.y{}class Ue extends de{}const Be="@ngrx/store/update-reducers";let ae=(()=>{class Lt extends e.X{constructor(si,gi,Oi,Vi){super(Vi(Oi,gi)),this.dispatcher=si,this.initialState=gi,this.reducers=Oi,this.reducerFactory=Vi}get currentReducers(){return this.reducers}addFeature(si){this.addFeatures([si])}addFeatures(si){const gi=si.reduce((Oi,{reducers:Vi,reducerFactory:fn,metaReducers:Vn,initialState:zn,key:ga})=>{const An="function"==typeof Vi?function Ce(Lt){const ai=Array.isArray(Lt)&&Lt.length>0?Ae(...Lt):si=>si;return(si,gi)=>(si=ai(si),(Oi,Vi)=>si(Oi=void 0===Oi?gi:Oi,Vi))}(Vn)(Vi,zn):he(fn,Vn)(Vi,zn);return Oi[ga]=An,Oi},{});this.addReducers(gi)}removeFeature(si){this.removeFeatures([si])}removeFeatures(si){this.removeReducers(si.map(gi=>gi.key))}addReducer(si,gi){this.addReducers({[si]:gi})}addReducers(si){this.reducers={...this.reducers,...si},this.updateReducers(Object.keys(si))}removeReducer(si){this.removeReducers([si])}removeReducers(si){si.forEach(gi=>{this.reducers=function je(Lt,ai){return Object.keys(Lt).filter(si=>si!==ai).reduce((si,gi)=>Object.assign(si,{[gi]:Lt[gi]}),{})}(this.reducers,gi)}),this.updateReducers(si)}updateReducers(si){this.next(this.reducerFactory(this.reducers,this.initialState)),this.dispatcher.next({type:Be,features:si})}ngOnDestroy(){this.complete()}}return Lt.\u0275fac=function(si){return new(si||Lt)(t.LFG(Ue),t.LFG(i),t.LFG(l),t.LFG(a))},Lt.\u0275prov=t.Yz7({token:Lt,factory:Lt.\u0275fac}),Lt})();const ge=[ae,{provide:te,useExisting:ae},{provide:Ue,useExisting:de}];let ft=(()=>{class Lt extends I.x{ngOnDestroy(){this.complete()}}return Lt.\u0275fac=function(){let ai;return function(gi){return(ai||(ai=t.n5z(Lt)))(gi||Lt)}}(),Lt.\u0275prov=t.Yz7({token:Lt,factory:Lt.\u0275fac}),Lt})();const Je=[ft];class dt extends b.y{}let Et=(()=>{class Lt extends e.X{constructor(si,gi,Oi,Vi){super(Vi);const ga=si.pipe((0,C.Q)(s.N)).pipe((0,h.M)(gi)).pipe((0,P.R)(pt,{state:Vi}));this.stateSubscription=ga.subscribe(({state:An,action:Nn})=>{this.next(An),Oi.next(Nn)})}ngOnDestroy(){this.stateSubscription.unsubscribe(),this.complete()}}return Lt.INIT=ne,Lt.\u0275fac=function(si){return new(si||Lt)(t.LFG(de),t.LFG(te),t.LFG(ft),t.LFG(i))},Lt.\u0275prov=t.Yz7({token:Lt,factory:Lt.\u0275fac}),Lt})();function pt(Lt={state:void 0},[ai,si]){const{state:gi}=Lt;return{state:si(gi,ai),action:ai}}const ot=[Et,{provide:dt,useExisting:Et}];let wt=(()=>{class Lt extends b.y{constructor(si,gi,Oi){super(),this.actionsObserver=gi,this.reducerManager=Oi,this.source=si}select(si,...gi){return Ke.call(null,si,...gi)(this)}lift(si){const gi=new Lt(this,this.actionsObserver,this.reducerManager);return gi.operator=si,gi}dispatch(si){this.actionsObserver.next(si)}next(si){this.actionsObserver.next(si)}error(si){this.actionsObserver.error(si)}complete(){this.actionsObserver.complete()}addReducer(si,gi){this.reducerManager.addReducer(si,gi)}removeReducer(si){this.reducerManager.removeReducer(si)}}return Lt.\u0275fac=function(si){return new(si||Lt)(t.LFG(dt),t.LFG(de),t.LFG(ae))},Lt.\u0275prov=t.Yz7({token:Lt,factory:Lt.\u0275fac}),Lt})();const ke=[wt];function Ke(Lt,ai,...si){return function(Oi){let Vi;if("string"==typeof Lt){const fn=[ai,...si].filter(Boolean);Vi=Oi.pipe(function S(...Lt){const ai=Lt.length;if(0===ai)throw new Error("list of properties cannot be empty.");return(0,d.U)(si=>{let gi=si;for(let Oi=0;Oi<ai;Oi++){const Vi=gi?.[Lt[Oi]];if(!(typeof Vi<"u"))return;gi=Vi}return gi})}(Lt,...fn))}else{if("function"!=typeof Lt)throw new TypeError(`Unexpected type '${typeof Lt}' in select operator, expected 'string' or 'function'`);Vi=Oi.pipe((0,d.U)(fn=>Lt(fn,ai)))}return Vi.pipe((0,w.x)())}}const xt="https://ngrx.io/guide/store/configuration/runtime-checks";function Y(Lt){return void 0===Lt}function Re(Lt){return null===Lt}function Tt(Lt){return Array.isArray(Lt)}function Mt(Lt){return"object"==typeof Lt&&null!==Lt}function we(Lt){return"function"==typeof Lt}function Gt(Lt,ai){return Lt===ai}function ni(Lt,ai,si){for(let gi=0;gi<Lt.length;gi++)if(!si(Lt[gi],ai[gi]))return!0;return!1}function tt(Lt,ai=Gt,si=Gt){let Vi,gi=null,Oi=null;return{memoized:function ga(){if(void 0!==Vi)return Vi.result;if(!gi)return Oi=Lt.apply(null,arguments),gi=arguments,Oi;if(!ni(arguments,gi,ai))return Oi;const An=Lt.apply(null,arguments);return gi=arguments,si(Oi,An)?Oi:(Oi=An,An)},reset:function fn(){gi=null,Oi=null},setResult:function Vn(An){Vi={result:An}},clearResult:function zn(){Vi=void 0}}}function vt(...Lt){return function Ut(Lt,ai={stateFn:ti}){return function(...si){let gi=si;if(Array.isArray(gi[0])){const[An,...Nn]=gi;gi=[...An,...Nn]}else 1===gi.length&&function Rt(Lt){return!!Lt&&"object"==typeof Lt&&Object.values(Lt).every(ai=>"function"==typeof ai)}(gi[0])&&(gi=function Oe(Lt){const ai=Object.values(Lt),si=Object.keys(Lt);return[...ai,(...Oi)=>si.reduce((Vi,fn,Vn)=>({...Vi,[fn]:Oi[Vn]}),{})]}(gi[0]));const Oi=gi.slice(0,gi.length-1),Vi=gi[gi.length-1],fn=Oi.filter(An=>An.release&&"function"==typeof An.release),Vn=Lt(function(...An){return Vi.apply(null,An)}),zn=tt(function(An,Nn){return ai.stateFn.apply(null,[An,Oi,Nn,Vn])});return Object.assign(zn.memoized,{release:function ga(){zn.reset(),Vn.reset(),fn.forEach(An=>An.release())},projector:Vn.memoized,setResult:zn.setResult,clearResult:zn.clearResult})}}(tt)(...Lt)}function ti(Lt,ai,si,gi){if(void 0===si){const Vi=ai.map(fn=>fn(Lt));return gi.memoized.apply(null,Vi)}const Oi=ai.map(Vi=>Vi(Lt,si));return gi.memoized.apply(null,[...Oi,si])}function ht(Lt){return vt(ai=>{const si=ai[Lt];return(0,t.X6Q)()&&!(Lt in ai)&&console.warn(`@ngrx/store: The feature name "${Lt}" does not exist in the state, therefore createFeatureSelector cannot access it. Be sure it is imported in a loaded module using StoreModule.forRoot('${Lt}', ...) or StoreModule.forFeature('${Lt}', ...). If the default state is intended to be undefined, as is the case with router state, this development-only warning message can be ignored.`),si},ai=>ai)}function Dt(Lt){return Lt instanceof t.OlP?(0,t.f3M)(Lt):Lt}function pi(Lt,ai){return ai.map((si,gi)=>{if(Lt[gi]instanceof t.OlP){const Oi=(0,t.f3M)(Lt[gi]);return{key:si.key,reducerFactory:Oi.reducerFactory?Oi.reducerFactory:oe,metaReducers:Oi.metaReducers?Oi.metaReducers:[],initialState:Oi.initialState}}return si})}function Li(Lt){return Lt.map(ai=>ai instanceof t.OlP?(0,t.f3M)(ai):ai)}function xi(Lt){return"function"==typeof Lt?Lt():Lt}function Fi(Lt,ai){return Lt.concat(ai)}function qe(){if((0,t.f3M)(wt,{optional:!0,skipSelf:!0}))throw new TypeError("The root Store has been provided more than once. Feature modules should provide feature states instead.");return"guarded"}function xe(Lt){Object.freeze(Lt);const ai=we(Lt);return Object.getOwnPropertyNames(Lt).forEach(si=>{if(!si.startsWith("\u0275")&&function be(Lt,ai){return Object.prototype.hasOwnProperty.call(Lt,ai)}(Lt,si)&&(!ai||"caller"!==si&&"callee"!==si&&"arguments"!==si)){const gi=Lt[si];(Mt(gi)||we(gi))&&!Object.isFrozen(gi)&&xe(gi)}}),Lt}function qt(Lt,ai=[]){return(Y(Lt)||Re(Lt))&&0===ai.length?{path:["root"],value:Lt}:Object.keys(Lt).reduce((gi,Oi)=>{if(gi)return gi;const Vi=Lt[Oi];return function J(Lt){return we(Lt)&&Lt.hasOwnProperty("\u0275cmp")}(Vi)?gi:!(Y(Vi)||Re(Vi)||function Ht(Lt){return"number"==typeof Lt}(Vi)||function Ye(Lt){return"boolean"==typeof Lt}(Vi)||function Qe(Lt){return"string"==typeof Lt}(Vi)||Tt(Vi))&&(function _t(Lt){if(!function kt(Lt){return Mt(Lt)&&!Tt(Lt)}(Lt))return!1;const ai=Object.getPrototypeOf(Lt);return ai===Object.prototype||null===ai}(Vi)?qt(Vi,[...ai,Oi]):{path:[...ai,Oi],value:Vi})},!1)}function mi(Lt,ai){if(!1===Lt)return;const si=Lt.path.join("."),gi=new Error(`Detected unserializable ${ai} at "${si}". ${xt}#strict${ai}serializability`);throw gi.value=Lt.value,gi.unserializablePath=si,gi}function Ii(Lt){return(0,t.X6Q)()?{strictStateSerializability:!1,strictActionSerializability:!1,strictStateImmutability:!0,strictActionImmutability:!0,strictActionWithinNgZone:!1,strictActionTypeUniqueness:!1,...Lt}:{strictStateSerializability:!1,strictActionSerializability:!1,strictStateImmutability:!1,strictActionImmutability:!1,strictActionWithinNgZone:!1,strictActionTypeUniqueness:!1}}function Gi({strictActionSerializability:Lt,strictStateSerializability:ai}){return si=>Lt||ai?function Nt(Lt,ai){return function(si,gi){ai.action(gi)&&mi(qt(gi),"action");const Oi=Lt(si,gi);return ai.state()&&mi(qt(Oi),"state"),Oi}}(si,{action:gi=>Lt&&!Ji(gi),state:()=>ai}):si}function Yi({strictActionImmutability:Lt,strictStateImmutability:ai}){return si=>Lt||ai?function St(Lt,ai){return function(si,gi){const Oi=ai.action(gi)?xe(gi):gi,Vi=Lt(si,Oi);return ai.state()?xe(Vi):Vi}}(si,{action:gi=>Lt&&!Ji(gi),state:()=>ai}):si}function Ji(Lt){return Lt.type.startsWith("@ngrx")}function Wt({strictActionWithinNgZone:Lt}){return ai=>Lt?function Ci(Lt,ai){return function(si,gi){if(ai.action(gi)&&!t.R0b.isInAngularZone())throw new Error(`Action '${gi.type}' running outside NgZone. ${xt}#strictactionwithinngzone`);return Lt(si,gi)}}(ai,{action:si=>Lt&&!Ji(si)}):ai}function Jt(Lt){return[{provide:Fe,useValue:Lt},{provide:We,useFactory:lt,deps:[Fe]},{provide:De,deps:[We],useFactory:Ii},{provide:Le,multi:!0,deps:[De],useFactory:Yi},{provide:Le,multi:!0,deps:[De],useFactory:Gi},{provide:Le,multi:!0,deps:[De],useFactory:Wt}]}function fe(){return[{provide:ye,multi:!0,deps:[De],useFactory:It}]}function lt(Lt){return Lt}function It(Lt){if(!Lt.strictActionTypeUniqueness)return;const ai=Object.entries(O).filter(([,si])=>si>1).map(([si])=>si);if(ai.length)throw new Error(`Action types are registered more than once, ${ai.map(si=>`"${si}"`).join(", ")}. ${xt}#strictactiontypeuniqueness`)}function zt(Lt={},ai={}){return[{provide:me,useFactory:qe},{provide:A,useValue:ai.initialState},{provide:i,useFactory:xi,deps:[A]},{provide:y,useValue:Lt},{provide:L,useExisting:Lt instanceof t.OlP?Lt:y},{provide:l,deps:[y,[new t.tBr(L)]],useFactory:Dt},{provide:X,useValue:ai.metaReducers?ai.metaReducers:[]},{provide:$e,deps:[Le,X],useFactory:Fi},{provide:u,useValue:ai.reducerFactory?ai.reducerFactory:oe},{provide:a,deps:[u,$e],useFactory:he},$,ge,Je,ot,ke,Jt(ai.runtimeChecks),fe()]}function pa(Lt,ai,si={}){return[{provide:n,multi:!0,useValue:Lt instanceof Object?{}:si},{provide:T,multi:!0,useValue:{key:Lt instanceof Object?Lt.name:Lt,reducerFactory:si instanceof t.OlP||!si.reducerFactory?oe:si.reducerFactory,metaReducers:si instanceof t.OlP||!si.metaReducers?[]:si.metaReducers,initialState:si instanceof t.OlP||!si.initialState?void 0:si.initialState}},{provide:_,deps:[n,T],useFactory:pi},{provide:m,multi:!0,useValue:Lt instanceof Object?Lt.reducer:ai},{provide:B,multi:!0,useExisting:ai instanceof t.OlP?ai:m},{provide:V,multi:!0,deps:[m,[new t.tBr(B)]],useFactory:Li},fe()]}let sa=(()=>{class Lt{constructor(si,gi,Oi,Vi,fn,Vn){}}return Lt.\u0275fac=function(si){return new(si||Lt)(t.LFG(de),t.LFG(te),t.LFG(ft),t.LFG(wt),t.LFG(me,8),t.LFG(ye,8))},Lt.\u0275mod=t.oAB({type:Lt}),Lt.\u0275inj=t.cJS({}),Lt})(),Ia=(()=>{class Lt{constructor(si,gi,Oi,Vi,fn){this.features=si,this.featureReducers=gi,this.reducerManager=Oi;const Vn=si.map((zn,ga)=>{const Nn=gi.shift()[ga];return{...zn,reducers:Nn,initialState:xi(zn.initialState)}});Oi.addFeatures(Vn)}ngOnDestroy(){this.reducerManager.removeFeatures(this.features)}}return Lt.\u0275fac=function(si){return new(si||Lt)(t.LFG(_),t.LFG(V),t.LFG(ae),t.LFG(sa),t.LFG(ye,8))},Lt.\u0275mod=t.oAB({type:Lt}),Lt.\u0275inj=t.cJS({}),Lt})(),Oa=(()=>{class Lt{static forRoot(si,gi){return{ngModule:sa,providers:[...zt(si,gi)]}}static forFeature(si,gi,Oi={}){return{ngModule:Ia,providers:[...pa(si,gi,Oi)]}}}return Lt.\u0275fac=function(si){return new(si||Lt)},Lt.\u0275mod=t.oAB({type:Lt}),Lt.\u0275inj=t.cJS({}),Lt})();function Zn(...Lt){return{reducer:Lt.pop(),types:Lt.map(gi=>gi.type)}}function Ua(Lt,...ai){const si=new Map;for(const gi of ai)for(const Oi of gi.types){const Vi=si.get(Oi);si.set(Oi,Vi?(Vn,zn)=>gi.reducer(Vi(Vn,zn),zn):gi.reducer)}return function(gi=Lt,Oi){const Vi=si.get(Oi.type);return Vi?Vi(gi,Oi):gi}}},2213:(Ve,q,p)=>{"use strict";p.d(q,{H5:()=>f4,K$:()=>q3,a4:()=>O4});var t=p(4650),e=p(6895),b=p(655),I=p(4080),s=p(4968),C=p(8372),h=p(7340);function P(){}function d(f){return null==f?P:function(){return this.querySelector(f)}}function w(f){return"object"==typeof f&&"length"in f?f:Array.from(f)}function O(){return[]}function E(f){return null==f?O:function(){return this.querySelectorAll(f)}}function U(f){return function(){return this.matches(f)}}function W(f){return function(k){return k.matches(f)}}var K=Array.prototype.find;function ie(){return this.firstElementChild}var le=Array.prototype.filter;function ne(){return this.children}function A(f){return new Array(f.length)}function a(f,k){this.ownerDocument=f.ownerDocument,this.namespaceURI=f.namespaceURI,this._next=null,this._parent=f,this.__data__=k}function u(f){return function(){return f}}function l(f,k,r,x,H,Q){for(var st,Te=0,Qt=k.length,Kt=Q.length;Te<Kt;++Te)(st=k[Te])?(st.__data__=Q[Te],x[Te]=st):r[Te]=new a(f,Q[Te]);for(;Te<Qt;++Te)(st=k[Te])&&(H[Te]=st)}function y(f,k,r,x,H,Q,Te){var st,Qt,Ti,Kt=new Map,ci=k.length,vi=Q.length,yi=new Array(ci);for(st=0;st<ci;++st)(Qt=k[st])&&(yi[st]=Ti=Te.call(Qt,Qt.__data__,st,k)+"",Kt.has(Ti)?H[st]=Qt:Kt.set(Ti,Qt));for(st=0;st<vi;++st)Ti=Te.call(f,Q[st],st,Q)+"",(Qt=Kt.get(Ti))?(x[st]=Qt,Qt.__data__=Q[st],Kt.delete(Ti)):r[st]=new a(f,Q[st]);for(st=0;st<ci;++st)(Qt=k[st])&&Kt.get(yi[st])===Qt&&(H[st]=Qt)}function T(f){return f.__data__}function X(f,k){return f<k?-1:f>k?1:f>=k?0:NaN}a.prototype={constructor:a,appendChild:function(f){return this._parent.insertBefore(f,this._next)},insertBefore:function(f,k){return this._parent.insertBefore(f,k)},querySelector:function(f){return this._parent.querySelector(f)},querySelectorAll:function(f){return this._parent.querySelectorAll(f)}};var ce="http://www.w3.org/1999/xhtml";const ve={svg:"http://www.w3.org/2000/svg",xhtml:ce,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function oe(f){var k=f+="",r=k.indexOf(":");return r>=0&&"xmlns"!==(k=f.slice(0,r))&&(f=f.slice(r+1)),ve.hasOwnProperty(k)?{space:ve[k],local:f}:f}function je(f){return function(){this.removeAttribute(f)}}function Ae(f){return function(){this.removeAttributeNS(f.space,f.local)}}function he(f,k){return function(){this.setAttribute(f,k)}}function Ce(f,k){return function(){this.setAttributeNS(f.space,f.local,k)}}function te(f,k){return function(){var r=k.apply(this,arguments);null==r?this.removeAttribute(f):this.setAttribute(f,r)}}function Ue(f,k){return function(){var r=k.apply(this,arguments);null==r?this.removeAttributeNS(f.space,f.local):this.setAttributeNS(f.space,f.local,r)}}function ae(f){return f.ownerDocument&&f.ownerDocument.defaultView||f.document&&f||f.defaultView}function ge(f){return function(){this.style.removeProperty(f)}}function ft(f,k,r){return function(){this.style.setProperty(f,k,r)}}function Je(f,k,r){return function(){var x=k.apply(this,arguments);null==x?this.style.removeProperty(f):this.style.setProperty(f,x,r)}}function Et(f,k){return f.style.getPropertyValue(k)||ae(f).getComputedStyle(f,null).getPropertyValue(k)}function pt(f){return function(){delete this[f]}}function ot(f,k){return function(){this[f]=k}}function wt(f,k){return function(){var r=k.apply(this,arguments);null==r?delete this[f]:this[f]=r}}function Ke(f){return f.trim().split(/^|\s+/)}function xt(f){return f.classList||new Y(f)}function Y(f){this._node=f,this._names=Ke(f.getAttribute("class")||"")}function Re(f,k){for(var r=xt(f),x=-1,H=k.length;++x<H;)r.add(k[x])}function Tt(f,k){for(var r=xt(f),x=-1,H=k.length;++x<H;)r.remove(k[x])}function Qe(f){return function(){Re(this,f)}}function Ye(f){return function(){Tt(this,f)}}function Ht(f,k){return function(){(k.apply(this,arguments)?Re:Tt)(this,f)}}function kt(){this.textContent=""}function _t(f){return function(){this.textContent=f}}function we(f){return function(){var k=f.apply(this,arguments);this.textContent=k??""}}function be(){this.innerHTML=""}function He(f){return function(){this.innerHTML=f}}function at(f){return function(){var k=f.apply(this,arguments);this.innerHTML=k??""}}function Gt(){this.nextSibling&&this.parentNode.appendChild(this)}function ut(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function vt(f){return function(){var k=this.ownerDocument,r=this.namespaceURI;return r===ce&&k.documentElement.namespaceURI===ce?k.createElement(f):k.createElementNS(r,f)}}function ti(f){return function(){return this.ownerDocument.createElementNS(f.space,f.local)}}function Ut(f){var k=oe(f);return(k.local?ti:vt)(k)}function Rt(){return null}function et(){var f=this.parentNode;f&&f.removeChild(this)}function ct(){var f=this.cloneNode(!1),k=this.parentNode;return k?k.insertBefore(f,this.nextSibling):f}function Dt(){var f=this.cloneNode(!0),k=this.parentNode;return k?k.insertBefore(f,this.nextSibling):f}function Fi(f){return f.trim().split(/^|\s+/).map(function(k){var r="",x=k.indexOf(".");return x>=0&&(r=k.slice(x+1),k=k.slice(0,x)),{type:k,name:r}})}function qe(f){return function(){var k=this.__on;if(k){for(var Q,r=0,x=-1,H=k.length;r<H;++r)Q=k[r],f.type&&Q.type!==f.type||Q.name!==f.name?k[++x]=Q:this.removeEventListener(Q.type,Q.listener,Q.options);++x?k.length=x:delete this.__on}}}function St(f,k,r){return function(){var H,x=this.__on,Q=function xi(f){return function(k){f.call(this,k,this.__data__)}}(k);if(x)for(var Te=0,st=x.length;Te<st;++Te)if((H=x[Te]).type===f.type&&H.name===f.name)return this.removeEventListener(H.type,H.listener,H.options),this.addEventListener(H.type,H.listener=Q,H.options=r),void(H.value=k);this.addEventListener(f.type,Q,r),H={type:f.type,name:f.name,value:k,listener:Q,options:r},x?x.push(H):this.__on=[H]}}function Nt(f,k,r){var x=ae(f),H=x.CustomEvent;"function"==typeof H?H=new H(k,r):(H=x.document.createEvent("Event"),r?(H.initEvent(k,r.bubbles,r.cancelable),H.detail=r.detail):H.initEvent(k,!1,!1)),f.dispatchEvent(H)}function qt(f,k){return function(){return Nt(this,f,k)}}function mi(f,k){return function(){return Nt(this,f,k.apply(this,arguments))}}Y.prototype={add:function(f){this._names.indexOf(f)<0&&(this._names.push(f),this._node.setAttribute("class",this._names.join(" ")))},remove:function(f){var k=this._names.indexOf(f);k>=0&&(this._names.splice(k,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(f){return this._names.indexOf(f)>=0}};var Gi=[null];function Yi(f,k){this._groups=f,this._parents=k}function Ji(){return new Yi([[document.documentElement]],Gi)}Yi.prototype=Ji.prototype={constructor:Yi,select:function S(f){"function"!=typeof f&&(f=d(f));for(var k=this._groups,r=k.length,x=new Array(r),H=0;H<r;++H)for(var Qt,Kt,Q=k[H],Te=Q.length,st=x[H]=new Array(Te),ci=0;ci<Te;++ci)(Qt=Q[ci])&&(Kt=f.call(Qt,Qt.__data__,ci,Q))&&("__data__"in Qt&&(Kt.__data__=Qt.__data__),st[ci]=Kt);return new Yi(x,this._parents)},selectAll:function z(f){f="function"==typeof f?function R(f){return function(){var k=f.apply(this,arguments);return null==k?[]:w(k)}}(f):E(f);for(var k=this._groups,r=k.length,x=[],H=[],Q=0;Q<r;++Q)for(var Qt,Te=k[Q],st=Te.length,Kt=0;Kt<st;++Kt)(Qt=Te[Kt])&&(x.push(f.call(Qt,Qt.__data__,Kt,Te)),H.push(Qt));return new Yi(x,H)},selectChild:function ue(f){return this.select(null==f?ie:function ee(f){return function(){return K.call(this.children,f)}}("function"==typeof f?f:W(f)))},selectChildren:function $(f){return this.selectAll(null==f?ne:function de(f){return function(){return le.call(this.children,f)}}("function"==typeof f?f:W(f)))},filter:function me(f){"function"!=typeof f&&(f=U(f));for(var k=this._groups,r=k.length,x=new Array(r),H=0;H<r;++H)for(var Qt,Q=k[H],Te=Q.length,st=x[H]=[],Kt=0;Kt<Te;++Kt)(Qt=Q[Kt])&&f.call(Qt,Qt.__data__,Kt,Q)&&st.push(Qt);return new Yi(x,this._parents)},data:function L(f,k){if(!arguments.length)return Array.from(this,T);var r=k?y:l,x=this._parents,H=this._groups;"function"!=typeof f&&(f=u(f));for(var Q=H.length,Te=new Array(Q),st=new Array(Q),Qt=new Array(Q),Kt=0;Kt<Q;++Kt){var ci=x[Kt],vi=H[Kt],yi=vi.length,Ti=w(f.call(ci,ci&&ci.__data__,Kt,x)),rn=Ti.length,gn=st[Kt]=new Array(rn),Ai=Te[Kt]=new Array(rn),un=Qt[Kt]=new Array(yi);r(ci,vi,gn,Ai,un,Ti,k);for(var Un,Pn,vn=0,pn=0;vn<rn;++vn)if(Un=gn[vn]){for(vn>=pn&&(pn=vn+1);!(Pn=Ai[pn])&&++pn<rn;);Un._next=Pn||null}}return(Te=new Yi(Te,x))._enter=st,Te._exit=Qt,Te},enter:function i(){return new Yi(this._enter||this._groups.map(A),this._parents)},exit:function m(){return new Yi(this._exit||this._groups.map(A),this._parents)},join:function n(f,k,r){var x=this.enter(),H=this,Q=this.exit();return x="function"==typeof f?f(x):x.append(f+""),null!=k&&(H=k(H)),null==r?Q.remove():r(Q),x&&H?x.merge(H).order():H},merge:function _(f){if(!(f instanceof Yi))throw new Error("invalid merge");for(var k=this._groups,r=f._groups,x=k.length,Q=Math.min(x,r.length),Te=new Array(x),st=0;st<Q;++st)for(var yi,Qt=k[st],Kt=r[st],ci=Qt.length,vi=Te[st]=new Array(ci),Ti=0;Ti<ci;++Ti)(yi=Qt[Ti]||Kt[Ti])&&(vi[Ti]=yi);for(;st<x;++st)Te[st]=k[st];return new Yi(Te,this._parents)},selection:function Wt(){return this},order:function B(){for(var f=this._groups,k=-1,r=f.length;++k<r;)for(var Te,x=f[k],H=x.length-1,Q=x[H];--H>=0;)(Te=x[H])&&(Q&&4^Te.compareDocumentPosition(Q)&&Q.parentNode.insertBefore(Te,Q),Q=Te);return this},sort:function V(f){function k(vi,yi){return vi&&yi?f(vi.__data__,yi.__data__):!vi-!yi}f||(f=X);for(var r=this._groups,x=r.length,H=new Array(x),Q=0;Q<x;++Q){for(var Kt,Te=r[Q],st=Te.length,Qt=H[Q]=new Array(st),ci=0;ci<st;++ci)(Kt=Te[ci])&&(Qt[ci]=Kt);Qt.sort(k)}return new Yi(H,this._parents).order()},call:function Le(){var f=arguments[0];return arguments[0]=this,f.apply(null,arguments),this},nodes:function $e(){return Array.from(this)},node:function We(){for(var f=this._groups,k=0,r=f.length;k<r;++k)for(var x=f[k],H=0,Q=x.length;H<Q;++H){var Te=x[H];if(Te)return Te}return null},size:function Fe(){let f=0;for(const k of this)++f;return f},empty:function De(){return!this.node()},each:function ye(f){for(var k=this._groups,r=0,x=k.length;r<x;++r)for(var st,H=k[r],Q=0,Te=H.length;Q<Te;++Q)(st=H[Q])&&f.call(st,st.__data__,Q,H);return this},attr:function Be(f,k){var r=oe(f);if(arguments.length<2){var x=this.node();return r.local?x.getAttributeNS(r.space,r.local):x.getAttribute(r)}return this.each((null==k?r.local?Ae:je:"function"==typeof k?r.local?Ue:te:r.local?Ce:he)(r,k))},style:function dt(f,k,r){return arguments.length>1?this.each((null==k?ge:"function"==typeof k?Je:ft)(f,k,r??"")):Et(this.node(),f)},property:function ke(f,k){return arguments.length>1?this.each((null==k?pt:"function"==typeof k?wt:ot)(f,k)):this.node()[f]},classed:function Mt(f,k){var r=Ke(f+"");if(arguments.length<2){for(var x=xt(this.node()),H=-1,Q=r.length;++H<Q;)if(!x.contains(r[H]))return!1;return!0}return this.each(("function"==typeof k?Ht:k?Qe:Ye)(r,k))},text:function J(f){return arguments.length?this.each(null==f?kt:("function"==typeof f?we:_t)(f)):this.node().textContent},html:function ii(f){return arguments.length?this.each(null==f?be:("function"==typeof f?at:He)(f)):this.node().innerHTML},raise:function ni(){return this.each(Gt)},lower:function tt(){return this.each(ut)},append:function ht(f){var k="function"==typeof f?f:Ut(f);return this.select(function(){return this.appendChild(k.apply(this,arguments))})},insert:function Oe(f,k){var r="function"==typeof f?f:Ut(f),x=null==k?Rt:"function"==typeof k?k:d(k);return this.select(function(){return this.insertBefore(r.apply(this,arguments),x.apply(this,arguments)||null)})},remove:function it(){return this.each(et)},clone:function pi(f){return this.select(f?Dt:ct)},datum:function Li(f){return arguments.length?this.property("__data__",f):this.node().__data__},on:function xe(f,k,r){var H,Te,x=Fi(f+""),Q=x.length;if(!(arguments.length<2)){for(st=k?St:qe,H=0;H<Q;++H)this.each(st(x[H],k,r));return this}var st=this.node().__on;if(st)for(var ci,Qt=0,Kt=st.length;Qt<Kt;++Qt)for(H=0,ci=st[Qt];H<Q;++H)if((Te=x[H]).type===ci.type&&Te.name===ci.name)return ci.value},dispatch:function Ci(f,k){return this.each(("function"==typeof k?mi:qt)(f,k))},[Symbol.iterator]:function*Ii(){for(var f=this._groups,k=0,r=f.length;k<r;++k)for(var Te,x=f[k],H=0,Q=x.length;H<Q;++H)(Te=x[H])&&(yield Te)}};const Jt=Ji;var lt={value:()=>{}};function It(){for(var x,f=0,k=arguments.length,r={};f<k;++f){if(!(x=arguments[f]+"")||x in r||/[\s.]/.test(x))throw new Error("illegal type: "+x);r[x]=[]}return new Bt(r)}function Bt(f){this._=f}function zt(f,k){return f.trim().split(/^|\s+/).map(function(r){var x="",H=r.indexOf(".");if(H>=0&&(x=r.slice(H+1),r=r.slice(0,H)),r&&!k.hasOwnProperty(r))throw new Error("unknown type: "+r);return{type:r,name:x}})}function oi(f,k){for(var H,r=0,x=f.length;r<x;++r)if((H=f[r]).name===k)return H.value}function Yt(f,k,r){for(var x=0,H=f.length;x<H;++x)if(f[x].name===k){f[x]=lt,f=f.slice(0,x).concat(f.slice(x+1));break}return null!=r&&f.push({name:k,value:r}),f}Bt.prototype=It.prototype={constructor:Bt,on:function(f,k){var H,r=this._,x=zt(f+"",r),Q=-1,Te=x.length;if(!(arguments.length<2)){if(null!=k&&"function"!=typeof k)throw new Error("invalid callback: "+k);for(;++Q<Te;)if(H=(f=x[Q]).type)r[H]=Yt(r[H],f.name,k);else if(null==k)for(H in r)r[H]=Yt(r[H],f.name,null);return this}for(;++Q<Te;)if((H=(f=x[Q]).type)&&(H=oi(r[H],f.name)))return H},copy:function(){var f={},k=this._;for(var r in k)f[r]=k[r].slice();return new Bt(f)},call:function(f,k){if((H=arguments.length-2)>0)for(var H,Q,r=new Array(H),x=0;x<H;++x)r[x]=arguments[x+2];if(!this._.hasOwnProperty(f))throw new Error("unknown type: "+f);for(x=0,H=(Q=this._[f]).length;x<H;++x)Q[x].value.apply(k,r)},apply:function(f,k,r){if(!this._.hasOwnProperty(f))throw new Error("unknown type: "+f);for(var x=this._[f],H=0,Q=x.length;H<Q;++H)x[H].value.apply(k,r)}};const Ni=It;function Ia(f,k,r){f.prototype=k.prototype=r,r.constructor=f}function Oa(f,k){var r=Object.create(f.prototype);for(var x in k)r[x]=k[x];return r}function Zn(){}var Lt=1/.7,ai="\\s*([+-]?\\d+)\\s*",si="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*",gi="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*",Oi=/^#([0-9a-f]{3,8})$/,Vi=new RegExp("^rgb\\("+[ai,ai,ai]+"\\)$"),fn=new RegExp("^rgb\\("+[gi,gi,gi]+"\\)$"),Vn=new RegExp("^rgba\\("+[ai,ai,ai,si]+"\\)$"),zn=new RegExp("^rgba\\("+[gi,gi,gi,si]+"\\)$"),ga=new RegExp("^hsl\\("+[si,gi,gi]+"\\)$"),An=new RegExp("^hsla\\("+[si,gi,gi,si]+"\\)$"),Nn={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 jr(){return this.rgb().formatHex()}function Xn(){return this.rgb().formatRgb()}function Dr(f){var k,r;return f=(f+"").trim().toLowerCase(),(k=Oi.exec(f))?(r=k[1].length,k=parseInt(k[1],16),6===r?Sr(k):3===r?new Fa(k>>8&15|k>>4&240,k>>4&15|240&k,(15&k)<<4|15&k,1):8===r?tr(k>>24&255,k>>16&255,k>>8&255,(255&k)/255):4===r?tr(k>>12&15|k>>8&240,k>>8&15|k>>4&240,k>>4&15|240&k,((15&k)<<4|15&k)/255):null):(k=Vi.exec(f))?new Fa(k[1],k[2],k[3],1):(k=fn.exec(f))?new Fa(255*k[1]/100,255*k[2]/100,255*k[3]/100,1):(k=Vn.exec(f))?tr(k[1],k[2],k[3],k[4]):(k=zn.exec(f))?tr(255*k[1]/100,255*k[2]/100,255*k[3]/100,k[4]):(k=ga.exec(f))?wo(k[1],k[2]/100,k[3]/100,1):(k=An.exec(f))?wo(k[1],k[2]/100,k[3]/100,k[4]):Nn.hasOwnProperty(f)?Sr(Nn[f]):"transparent"===f?new Fa(NaN,NaN,NaN,0):null}function Sr(f){return new Fa(f>>16&255,f>>8&255,255&f,1)}function tr(f,k,r,x){return x<=0&&(f=k=r=NaN),new Fa(f,k,r,x)}function jn(f){return f instanceof Zn||(f=Dr(f)),f?new Fa((f=f.rgb()).r,f.g,f.b,f.opacity):new Fa}function Ga(f,k,r,x){return 1===arguments.length?jn(f):new Fa(f,k,r,x??1)}function Fa(f,k,r,x){this.r=+f,this.g=+k,this.b=+r,this.opacity=+x}function Kr(){return"#"+Qr(this.r)+Qr(this.g)+Qr(this.b)}function Er(){var f=this.opacity;return(1===(f=isNaN(f)?1:Math.max(0,Math.min(1,f)))?"rgb(":"rgba(")+Math.max(0,Math.min(255,Math.round(this.r)||0))+", "+Math.max(0,Math.min(255,Math.round(this.g)||0))+", "+Math.max(0,Math.min(255,Math.round(this.b)||0))+(1===f?")":", "+f+")")}function Qr(f){return((f=Math.max(0,Math.min(255,Math.round(f)||0)))<16?"0":"")+f.toString(16)}function wo(f,k,r,x){return x<=0?f=k=r=NaN:r<=0||r>=1?f=k=NaN:k<=0&&(f=NaN),new Za(f,k,r,x)}function wa(f){if(f instanceof Za)return new Za(f.h,f.s,f.l,f.opacity);if(f instanceof Zn||(f=Dr(f)),!f)return new Za;if(f instanceof Za)return f;var k=(f=f.rgb()).r/255,r=f.g/255,x=f.b/255,H=Math.min(k,r,x),Q=Math.max(k,r,x),Te=NaN,st=Q-H,Qt=(Q+H)/2;return st?(Te=k===Q?(r-x)/st+6*(r<x):r===Q?(x-k)/st+2:(k-r)/st+4,st/=Qt<.5?Q+H:2-Q-H,Te*=60):st=Qt>0&&Qt<1?0:Te,new Za(Te,st,Qt,f.opacity)}function Za(f,k,r,x){this.h=+f,this.s=+k,this.l=+r,this.opacity=+x}function qr(f,k,r){return 255*(f<60?k+(r-k)*f/60:f<180?r:f<240?k+(r-k)*(240-f)/60:k)}function so(f,k,r,x,H){var Q=f*f,Te=Q*f;return((1-3*f+3*Q-Te)*k+(4-6*Q+3*Te)*r+(1+3*f+3*Q-3*Te)*x+Te*H)/6}Ia(Zn,Dr,{copy:function(f){return Object.assign(new this.constructor,this,f)},displayable:function(){return this.rgb().displayable()},hex:jr,formatHex:jr,formatHsl:function Fn(){return wa(this).formatHsl()},formatRgb:Xn,toString:Xn}),Ia(Fa,Ga,Oa(Zn,{brighter:function(f){return f=null==f?Lt:Math.pow(Lt,f),new Fa(this.r*f,this.g*f,this.b*f,this.opacity)},darker:function(f){return f=null==f?.7:Math.pow(.7,f),new Fa(this.r*f,this.g*f,this.b*f,this.opacity)},rgb:function(){return this},displayable:function(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:Kr,formatHex:Kr,formatRgb:Er,toString:Er})),Ia(Za,function Mo(f,k,r,x){return 1===arguments.length?wa(f):new Za(f,k,r,x??1)},Oa(Zn,{brighter:function(f){return f=null==f?Lt:Math.pow(Lt,f),new Za(this.h,this.s,this.l*f,this.opacity)},darker:function(f){return f=null==f?.7:Math.pow(.7,f),new Za(this.h,this.s,this.l*f,this.opacity)},rgb:function(){var f=this.h%360+360*(this.h<0),k=isNaN(f)||isNaN(this.s)?0:this.s,r=this.l,x=r+(r<.5?r:1-r)*k,H=2*r-x;return new Fa(qr(f>=240?f-240:f+120,H,x),qr(f,H,x),qr(f<120?f+240:f-120,H,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 f=this.opacity;return(1===(f=isNaN(f)?1:Math.max(0,Math.min(1,f)))?"hsl(":"hsla(")+(this.h||0)+", "+100*(this.s||0)+"%, "+100*(this.l||0)+"%"+(1===f?")":", "+f+")")}}));const Gr=f=>()=>f;function ir(f,k){var r=k-f;return r?function ho(f,k){return function(r){return f+r*k}}(f,r):Gr(isNaN(f)?k:f)}const pr=function f(k){var r=function fo(f){return 1==(f=+f)?ir:function(k,r){return r-k?function Zr(f,k,r){return f=Math.pow(f,r),k=Math.pow(k,r)-f,r=1/r,function(x){return Math.pow(f+x*k,r)}}(k,r,f):Gr(isNaN(k)?r:k)}}(k);function x(H,Q){var Te=r((H=Ga(H)).r,(Q=Ga(Q)).r),st=r(H.g,Q.g),Qt=r(H.b,Q.b),Kt=ir(H.opacity,Q.opacity);return function(ci){return H.r=Te(ci),H.g=st(ci),H.b=Qt(ci),H.opacity=Kt(ci),H+""}}return x.gamma=f,x}(1);function aa(f){return function(k){var Te,st,r=k.length,x=new Array(r),H=new Array(r),Q=new Array(r);for(Te=0;Te<r;++Te)st=Ga(k[Te]),x[Te]=st.r||0,H[Te]=st.g||0,Q[Te]=st.b||0;return x=f(x),H=f(H),Q=f(Q),st.opacity=1,function(Qt){return st.r=x(Qt),st.g=H(Qt),st.b=Q(Qt),st+""}}}function gr(f,k){var Te,r=k?k.length:0,x=f?Math.min(r,f.length):0,H=new Array(x),Q=new Array(r);for(Te=0;Te<x;++Te)H[Te]=Wn(f[Te],k[Te]);for(;Te<r;++Te)Q[Te]=k[Te];return function(st){for(Te=0;Te<x;++Te)Q[Te]=H[Te](st);return Q}}function mo(f,k){var r=new Date;return f=+f,k=+k,function(x){return r.setTime(f*(1-x)+k*x),r}}function Pa(f,k){return f=+f,k=+k,function(r){return f*(1-r)+k*r}}function Jr(f,k){var H,r={},x={};for(H in(null===f||"object"!=typeof f)&&(f={}),(null===k||"object"!=typeof k)&&(k={}),k)H in f?r[H]=Wn(f[H],k[H]):x[H]=k[H];return function(Q){for(H in r)x[H]=r[H](Q);return x}}aa(function co(f){var k=f.length-1;return function(r){var x=r<=0?r=0:r>=1?(r=1,k-1):Math.floor(r*k),H=f[x],Q=f[x+1];return so((r-x/k)*k,x>0?f[x-1]:2*H-Q,H,Q,x<k-1?f[x+2]:2*Q-H)}}),aa(function lo(f){var k=f.length;return function(r){var x=Math.floor(((r%=1)<0?++r:r)*k);return so((r-x/k)*k,f[(x+k-1)%k],f[x%k],f[(x+1)%k],f[(x+2)%k])}});var Xr=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,nr=new RegExp(Xr.source,"g");function va(f,k){var x,H,Q,r=Xr.lastIndex=nr.lastIndex=0,Te=-1,st=[],Qt=[];for(f+="",k+="";(x=Xr.exec(f))&&(H=nr.exec(k));)(Q=H.index)>r&&(Q=k.slice(r,Q),st[Te]?st[Te]+=Q:st[++Te]=Q),(x=x[0])===(H=H[0])?st[Te]?st[Te]+=H:st[++Te]=H:(st[++Te]=null,Qt.push({i:Te,x:Pa(x,H)})),r=nr.lastIndex;return r<k.length&&(Q=k.slice(r),st[Te]?st[Te]+=Q:st[++Te]=Q),st.length<2?Qt[0]?function $r(f){return function(k){return f(k)+""}}(Qt[0].x):function po(f){return function(){return f}}(k):(k=Qt.length,function(Kt){for(var vi,ci=0;ci<k;++ci)st[(vi=Qt[ci]).i]=vi.x(Kt);return st.join("")})}function Or(f,k){k||(k=[]);var H,r=f?Math.min(k.length,f.length):0,x=k.slice();return function(Q){for(H=0;H<r;++H)x[H]=f[H]*(1-Q)+k[H]*Q;return x}}function Wn(f,k){var x,r=typeof k;return null==k||"boolean"===r?Gr(k):("number"===r?Pa:"string"===r?(x=Dr(k))?(k=x,pr):va:k instanceof Dr?pr:k instanceof Date?mo:function Kn(f){return ArrayBuffer.isView(f)&&!(f instanceof DataView)}(k)?Or:Array.isArray(k)?gr:"function"!=typeof k.valueOf&&"function"!=typeof k.toString||isNaN(k)?Jr:Pa)(f,k)}var Ct,ri,ca=0,Ka=0,Vt=0,Pi=0,tn=0,$n=0,la="object"==typeof performance&&performance.now?performance:Date,ji="object"==typeof window&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(f){setTimeout(f,17)};function bn(){return tn||(ji(ar),tn=la.now()+$n)}function ar(){tn=0}function rt(){this._call=this._time=this._next=null}function Xe(f,k,r){var x=new rt;return x.restart(f,k,r),x}function Pt(){tn=(Pi=la.now())+$n,ca=Ka=0;try{!function Ge(){bn(),++ca;for(var k,f=Ct;f;)(k=tn-f._time)>=0&&f._call.call(null,k),f=f._next;--ca}()}finally{ca=0,function ln(){for(var f,r,k=Ct,x=1/0;k;)k._call?(x>k._time&&(x=k._time),f=k,k=k._next):(r=k._next,k._next=null,k=f?f._next=r:Ct=r);ri=f,ha(x)}(),tn=0}}function wi(){var f=la.now(),k=f-Pi;k>1e3&&($n-=k,Pi=f)}function ha(f){ca||(Ka&&(Ka=clearTimeout(Ka)),f-tn>24?(f<1/0&&(Ka=setTimeout(Pt,f-la.now()-$n)),Vt&&(Vt=clearInterval(Vt))):(Vt||(Pi=la.now(),Vt=setInterval(wi,1e3)),ca=1,ji(Pt)))}function Si(f,k,r){var x=new rt;return x.restart(H=>{x.stop(),f(H+k)},k=null==k?0:+k,r),x}rt.prototype=Xe.prototype={constructor:rt,restart:function(f,k,r){if("function"!=typeof f)throw new TypeError("callback is not a function");r=(null==r?bn():+r)+(null==k?0:+k),!this._next&&ri!==this&&(ri?ri._next=this:Ct=this,ri=this),this._call=f,this._time=r,ha()},stop:function(){this._call&&(this._call=null,this._time=1/0,ha())}};var Ln=Ni("start","end","cancel","interrupt"),Ro=[];function Ss(f,k,r,x,H,Q){var Te=f.__transition;if(Te){if(r in Te)return}else f.__transition={};!function ki(f,k,r){var H,x=f.__transition;function Te(Kt){var ci,vi,yi,Ti;if(1!==r.state)return Qt();for(ci in x)if((Ti=x[ci]).name===r.name){if(3===Ti.state)return Si(Te);4===Ti.state?(Ti.state=6,Ti.timer.stop(),Ti.on.call("interrupt",f,f.__data__,Ti.index,Ti.group),delete x[ci]):+ci<k&&(Ti.state=6,Ti.timer.stop(),Ti.on.call("cancel",f,f.__data__,Ti.index,Ti.group),delete x[ci])}if(Si(function(){3===r.state&&(r.state=4,r.timer.restart(st,r.delay,r.time),st(Kt))}),r.state=2,r.on.call("start",f,f.__data__,r.index,r.group),2===r.state){for(r.state=3,H=new Array(yi=r.tween.length),ci=0,vi=-1;ci<yi;++ci)(Ti=r.tween[ci].value.call(f,f.__data__,r.index,r.group))&&(H[++vi]=Ti);H.length=vi+1}}function st(Kt){for(var ci=Kt<r.duration?r.ease.call(null,Kt/r.duration):(r.timer.restart(Qt),r.state=5,1),vi=-1,yi=H.length;++vi<yi;)H[vi].call(f,ci);5===r.state&&(r.on.call("end",f,f.__data__,r.index,r.group),Qt())}function Qt(){for(var Kt in r.state=6,r.timer.stop(),delete x[k],x)return;delete f.__transition}x[k]=r,r.timer=Xe(function Q(Kt){r.state=1,r.timer.restart(Te,r.delay,r.time),r.delay<=Kt&&Te(Kt-r.delay)},0,r.time)}(f,r,{name:k,index:x,group:H,on:Ln,tween:Ro,time:Q.time,delay:Q.delay,duration:Q.duration,ease:Q.ease,timer:null,state:0})}function rs(f,k){var r=Dn(f,k);if(r.state>0)throw new Error("too late; already scheduled");return r}function br(f,k){var r=Dn(f,k);if(r.state>3)throw new Error("too late; already running");return r}function Dn(f,k){var r=f.__transition;if(!r||!(r=r[k]))throw new Error("transition not found");return r}var Xs,zi=180/Math.PI,No={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function Fo(f,k,r,x,H,Q){var Te,st,Qt;return(Te=Math.sqrt(f*f+k*k))&&(f/=Te,k/=Te),(Qt=f*r+k*x)&&(r-=f*Qt,x-=k*Qt),(st=Math.sqrt(r*r+x*x))&&(r/=st,x/=st,Qt/=st),f*x<k*r&&(f=-f,k=-k,Qt=-Qt,Te=-Te),{translateX:H,translateY:Q,rotate:Math.atan2(k,f)*zi,skewX:Math.atan(Qt)*zi,scaleX:Te,scaleY:st}}function So(f,k,r,x){function H(Kt){return Kt.length?Kt.pop()+" ":""}return function(Kt,ci){var vi=[],yi=[];return Kt=f(Kt),ci=f(ci),function Q(Kt,ci,vi,yi,Ti,rn){if(Kt!==vi||ci!==yi){var gn=Ti.push("translate(",null,k,null,r);rn.push({i:gn-4,x:Pa(Kt,vi)},{i:gn-2,x:Pa(ci,yi)})}else(vi||yi)&&Ti.push("translate("+vi+k+yi+r)}(Kt.translateX,Kt.translateY,ci.translateX,ci.translateY,vi,yi),function Te(Kt,ci,vi,yi){Kt!==ci?(Kt-ci>180?ci+=360:ci-Kt>180&&(Kt+=360),yi.push({i:vi.push(H(vi)+"rotate(",null,x)-2,x:Pa(Kt,ci)})):ci&&vi.push(H(vi)+"rotate("+ci+x)}(Kt.rotate,ci.rotate,vi,yi),function st(Kt,ci,vi,yi){Kt!==ci?yi.push({i:vi.push(H(vi)+"skewX(",null,x)-2,x:Pa(Kt,ci)}):ci&&vi.push(H(vi)+"skewX("+ci+x)}(Kt.skewX,ci.skewX,vi,yi),function Qt(Kt,ci,vi,yi,Ti,rn){if(Kt!==vi||ci!==yi){var gn=Ti.push(H(Ti)+"scale(",null,",",null,")");rn.push({i:gn-4,x:Pa(Kt,vi)},{i:gn-2,x:Pa(ci,yi)})}else(1!==vi||1!==yi)&&Ti.push(H(Ti)+"scale("+vi+","+yi+")")}(Kt.scaleX,Kt.scaleY,ci.scaleX,ci.scaleY,vi,yi),Kt=ci=null,function(Ti){for(var Ai,rn=-1,gn=yi.length;++rn<gn;)vi[(Ai=yi[rn]).i]=Ai.x(Ti);return vi.join("")}}}var Eo=So(function Es(f){const k=new("function"==typeof DOMMatrix?DOMMatrix:WebKitCSSMatrix)(f+"");return k.isIdentity?No:Fo(k.a,k.b,k.c,k.d,k.e,k.f)},"px, ","px)","deg)"),ss=So(function os(f){return null!=f&&(Xs||(Xs=document.createElementNS("http://www.w3.org/2000/svg","g")),Xs.setAttribute("transform",f),f=Xs.transform.baseVal.consolidate())?Fo((f=f.matrix).a,f.b,f.c,f.d,f.e,f.f):No},", ",")",")");function bc(f,k){var r,x;return function(){var H=br(this,f),Q=H.tween;if(Q!==r)for(var Te=0,st=(x=r=Q).length;Te<st;++Te)if(x[Te].name===k){(x=x.slice()).splice(Te,1);break}H.tween=x}}function Qo(f,k,r){var x,H;if("function"!=typeof r)throw new Error;return function(){var Q=br(this,f),Te=Q.tween;if(Te!==x){H=(x=Te).slice();for(var st={name:k,value:r},Qt=0,Kt=H.length;Qt<Kt;++Qt)if(H[Qt].name===k){H[Qt]=st;break}Qt===Kt&&H.push(st)}Q.tween=H}}function ec(f,k,r){var x=f._id;return f.each(function(){var H=br(this,x);(H.value||(H.value={}))[k]=r.apply(this,arguments)}),function(H){return Dn(H,x).value[k]}}function Ts(f,k,r){f.prototype=k.prototype=r,r.constructor=f}function As(f,k){var r=Object.create(f.prototype);for(var x in k)r[x]=k[x];return r}function Ra(){}var To=1/.7,an="\\s*([+-]?\\d+)\\s*",ka="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*",qa="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*",ua=/^#([0-9a-f]{3,8})$/,Ls=new RegExp("^rgb\\("+[an,an,an]+"\\)$"),Gc=new RegExp("^rgb\\("+[qa,qa,qa]+"\\)$"),yc=new RegExp("^rgba\\("+[an,an,an,ka]+"\\)$"),Bn=new RegExp("^rgba\\("+[qa,qa,qa,ka]+"\\)$"),Xi=new RegExp("^hsl\\("+[ka,qa,qa]+"\\)$"),ba=new RegExp("^hsla\\("+[ka,qa,qa,ka]+"\\)$"),Ma={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 Wi(){return this.rgb().formatHex()}function gt(){return this.rgb().formatRgb()}function j(f){var k,r;return f=(f+"").trim().toLowerCase(),(k=ua.exec(f))?(r=k[1].length,k=parseInt(k[1],16),6===r?Se(k):3===r?new jt(k>>8&15|k>>4&240,k>>4&15|240&k,(15&k)<<4|15&k,1):8===r?ze(k>>24&255,k>>16&255,k>>8&255,(255&k)/255):4===r?ze(k>>12&15|k>>8&240,k>>8&15|k>>4&240,k>>4&15|240&k,((15&k)<<4|15&k)/255):null):(k=Ls.exec(f))?new jt(k[1],k[2],k[3],1):(k=Gc.exec(f))?new jt(255*k[1]/100,255*k[2]/100,255*k[3]/100,1):(k=yc.exec(f))?ze(k[1],k[2],k[3],k[4]):(k=Bn.exec(f))?ze(255*k[1]/100,255*k[2]/100,255*k[3]/100,k[4]):(k=Xi.exec(f))?Mi(k[1],k[2]/100,k[3]/100,1):(k=ba.exec(f))?Mi(k[1],k[2]/100,k[3]/100,k[4]):Ma.hasOwnProperty(f)?Se(Ma[f]):"transparent"===f?new jt(NaN,NaN,NaN,0):null}function Se(f){return new jt(f>>16&255,f>>8&255,255&f,1)}function ze(f,k,r,x){return x<=0&&(f=k=r=NaN),new jt(f,k,r,x)}function yt(f){return f instanceof Ra||(f=j(f)),f?new jt((f=f.rgb()).r,f.g,f.b,f.opacity):new jt}function jt(f,k,r,x){this.r=+f,this.g=+k,this.b=+r,this.opacity=+x}function li(){return"#"+_i(this.r)+_i(this.g)+_i(this.b)}function $t(){var f=this.opacity;return(1===(f=isNaN(f)?1:Math.max(0,Math.min(1,f)))?"rgb(":"rgba(")+Math.max(0,Math.min(255,Math.round(this.r)||0))+", "+Math.max(0,Math.min(255,Math.round(this.g)||0))+", "+Math.max(0,Math.min(255,Math.round(this.b)||0))+(1===f?")":", "+f+")")}function _i(f){return((f=Math.max(0,Math.min(255,Math.round(f)||0)))<16?"0":"")+f.toString(16)}function Mi(f,k,r,x){return x<=0?f=k=r=NaN:r<=0||r>=1?f=k=NaN:k<=0&&(f=NaN),new nn(f,k,r,x)}function Hi(f){if(f instanceof nn)return new nn(f.h,f.s,f.l,f.opacity);if(f instanceof Ra||(f=j(f)),!f)return new nn;if(f instanceof nn)return f;var k=(f=f.rgb()).r/255,r=f.g/255,x=f.b/255,H=Math.min(k,r,x),Q=Math.max(k,r,x),Te=NaN,st=Q-H,Qt=(Q+H)/2;return st?(Te=k===Q?(r-x)/st+6*(r<x):r===Q?(x-k)/st+2:(k-r)/st+4,st/=Qt<.5?Q+H:2-Q-H,Te*=60):st=Qt>0&&Qt<1?0:Te,new nn(Te,st,Qt,f.opacity)}function nn(f,k,r,x){this.h=+f,this.s=+k,this.l=+r,this.opacity=+x}function xn(f,k,r){return 255*(f<60?k+(r-k)*f/60:f<180?r:f<240?k+(r-k)*(240-f)/60:k)}function ea(f,k){var r;return("number"==typeof k?Pa:k instanceof j?pr:(r=j(k))?(k=r,pr):va)(f,k)}function fa(f){return function(){this.removeAttribute(f)}}function ma(f){return function(){this.removeAttributeNS(f.space,f.local)}}function Sa(f,k,r){var x,Q,H=r+"";return function(){var Te=this.getAttribute(f);return Te===H?null:Te===x?Q:Q=k(x=Te,r)}}function ya(f,k,r){var x,Q,H=r+"";return function(){var Te=this.getAttributeNS(f.space,f.local);return Te===H?null:Te===x?Q:Q=k(x=Te,r)}}function xa(f,k,r){var x,H,Q;return function(){var Te,Qt,st=r(this);return null==st?void this.removeAttribute(f):(Te=this.getAttribute(f))===(Qt=st+"")?null:Te===x&&Qt===H?Q:(H=Qt,Q=k(x=Te,st))}}function yr(f,k,r){var x,H,Q;return function(){var Te,Qt,st=r(this);return null==st?void this.removeAttributeNS(f.space,f.local):(Te=this.getAttributeNS(f.space,f.local))===(Qt=st+"")?null:Te===x&&Qt===H?Q:(H=Qt,Q=k(x=Te,st))}}function io(f,k){return function(r){this.setAttribute(f,k.call(this,r))}}function Wa(f,k){return function(r){this.setAttributeNS(f.space,f.local,k.call(this,r))}}function no(f,k){var r,x;function H(){var Q=k.apply(this,arguments);return Q!==x&&(r=(x=Q)&&Wa(f,Q)),r}return H._value=k,H}function _o(f,k){var r,x;function H(){var Q=k.apply(this,arguments);return Q!==x&&(r=(x=Q)&&io(f,Q)),r}return H._value=k,H}function Ho(f,k){return function(){rs(this,f).delay=+k.apply(this,arguments)}}function e1(f,k){return k=+k,function(){rs(this,f).delay=k}}function Sl(f,k){return function(){br(this,f).duration=+k.apply(this,arguments)}}function Pr(f,k){return k=+k,function(){br(this,f).duration=k}}function tc(f,k){if("function"!=typeof k)throw new Error;return function(){br(this,f).ease=k}}function Ds(f,k,r){var x,H,Q=function n1(f){return(f+"").trim().split(/^|\s+/).every(function(k){var r=k.indexOf(".");return r>=0&&(k=k.slice(0,r)),!k||"start"===k})}(k)?rs:br;return function(){var Te=Q(this,f),st=Te.on;st!==x&&(H=(x=st).copy()).on(k,r),Te.on=H}}Ts(Ra,j,{copy:function(f){return Object.assign(new this.constructor,this,f)},displayable:function(){return this.rgb().displayable()},hex:Wi,formatHex:Wi,formatHsl:function Ie(){return Hi(this).formatHsl()},formatRgb:gt,toString:gt}),Ts(jt,function Pe(f,k,r,x){return 1===arguments.length?yt(f):new jt(f,k,r,x??1)},As(Ra,{brighter:function(f){return f=null==f?To:Math.pow(To,f),new jt(this.r*f,this.g*f,this.b*f,this.opacity)},darker:function(f){return f=null==f?.7:Math.pow(.7,f),new jt(this.r*f,this.g*f,this.b*f,this.opacity)},rgb:function(){return this},displayable:function(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:li,formatHex:li,formatRgb:$t,toString:$t})),Ts(nn,function Zi(f,k,r,x){return 1===arguments.length?Hi(f):new nn(f,k,r,x??1)},As(Ra,{brighter:function(f){return f=null==f?To:Math.pow(To,f),new nn(this.h,this.s,this.l*f,this.opacity)},darker:function(f){return f=null==f?.7:Math.pow(.7,f),new nn(this.h,this.s,this.l*f,this.opacity)},rgb:function(){var f=this.h%360+360*(this.h<0),k=isNaN(f)||isNaN(this.s)?0:this.s,r=this.l,x=r+(r<.5?r:1-r)*k,H=2*r-x;return new jt(xn(f>=240?f-240:f+120,H,x),xn(f,H,x),xn(f<120?f+240:f-120,H,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 f=this.opacity;return(1===(f=isNaN(f)?1:Math.max(0,Math.min(1,f)))?"hsl(":"hsla(")+(this.h||0)+", "+100*(this.s||0)+"%, "+100*(this.l||0)+"%"+(1===f?")":", "+f+")")}}));var zo=Jt.prototype.constructor;function J1(f){return function(){this.style.removeProperty(f)}}function Os(f,k,r){return function(x){this.style.setProperty(f,k.call(this,x),r)}}function o1(f,k,r){var x,H;function Q(){var Te=k.apply(this,arguments);return Te!==H&&(x=(H=Te)&&Os(f,Te,r)),x}return Q._value=k,Q}function da(f){return function(k){this.textContent=f.call(this,k)}}function Ll(f){var k,r;function x(){var H=f.apply(this,arguments);return H!==r&&(k=(r=H)&&da(H)),k}return x._value=f,x}var $1=0;function ls(f,k,r,x){this._groups=f,this._parents=k,this._name=r,this._id=x}function Vo(){return++$1}var ic=Jt.prototype;ls.prototype=function f2(f){return Jt().transition(f)}.prototype={constructor:ls,select:function ks(f){var k=this._name,r=this._id;"function"!=typeof f&&(f=d(f));for(var x=this._groups,H=x.length,Q=new Array(H),Te=0;Te<H;++Te)for(var ci,vi,st=x[Te],Qt=st.length,Kt=Q[Te]=new Array(Qt),yi=0;yi<Qt;++yi)(ci=st[yi])&&(vi=f.call(ci,ci.__data__,yi,st))&&("__data__"in ci&&(vi.__data__=ci.__data__),Kt[yi]=vi,Ss(Kt[yi],k,r,yi,Kt,Dn(ci,r)));return new ls(Q,this._parents,k,r)},selectAll:function lr(f){var k=this._name,r=this._id;"function"!=typeof f&&(f=E(f));for(var x=this._groups,H=x.length,Q=[],Te=[],st=0;st<H;++st)for(var ci,Qt=x[st],Kt=Qt.length,vi=0;vi<Kt;++vi)if(ci=Qt[vi]){for(var Ti,yi=f.call(ci,ci.__data__,vi,Qt),rn=Dn(ci,r),gn=0,Ai=yi.length;gn<Ai;++gn)(Ti=yi[gn])&&Ss(Ti,k,r,gn,yi,rn);Q.push(yi),Te.push(ci)}return new ls(Q,Te,k,r)},filter:function K1(f){"function"!=typeof f&&(f=U(f));for(var k=this._groups,r=k.length,x=new Array(r),H=0;H<r;++H)for(var Qt,Q=k[H],Te=Q.length,st=x[H]=[],Kt=0;Kt<Te;++Kt)(Qt=Q[Kt])&&f.call(Qt,Qt.__data__,Kt,Q)&&st.push(Qt);return new ls(x,this._parents,this._name,this._id)},merge:function Q1(f){if(f._id!==this._id)throw new Error;for(var k=this._groups,r=f._groups,x=k.length,Q=Math.min(x,r.length),Te=new Array(x),st=0;st<Q;++st)for(var yi,Qt=k[st],Kt=r[st],ci=Qt.length,vi=Te[st]=new Array(ci),Ti=0;Ti<ci;++Ti)(yi=Qt[Ti]||Kt[Ti])&&(vi[Ti]=yi);for(;st<x;++st)Te[st]=k[st];return new ls(Te,this._parents,this._name,this._id)},selection:function a1(){return new zo(this._groups,this._parents)},transition:function Qc(){for(var f=this._name,k=this._id,r=Vo(),x=this._groups,H=x.length,Q=0;Q<H;++Q)for(var Qt,Te=x[Q],st=Te.length,Kt=0;Kt<st;++Kt)if(Qt=Te[Kt]){var ci=Dn(Qt,k);Ss(Qt,f,r,Kt,Te,{time:ci.time+ci.delay+ci.duration,delay:0,duration:ci.duration,ease:ci.ease})}return new ls(x,this._parents,f,r)},call:ic.call,nodes:ic.nodes,node:ic.node,size:ic.size,empty:ic.empty,each:ic.each,on:function cs(f,k){var r=this._id;return arguments.length<2?Dn(this.node(),r).on.on(f):this.each(Ds(r,f,k))},attr:function Ea(f,k){var r=oe(f),x="transform"===r?ss:ea;return this.attrTween(f,"function"==typeof k?(r.local?yr:xa)(r,x,ec(this,"attr."+f,k)):null==k?(r.local?ma:fa)(r):(r.local?ya:Sa)(r,x,k))},attrTween:function Zc(f,k){var r="attr."+f;if(arguments.length<2)return(r=this.tween(r))&&r._value;if(null==k)return this.tween(r,null);if("function"!=typeof k)throw new Error;var x=oe(f);return this.tween(r,(x.local?no:_o)(x,k))},style:function Ao(f,k,r){var x="transform"==(f+="")?Eo:ea;return null==k?this.styleTween(f,function r1(f,k){var r,x,H;return function(){var Q=Et(this,f),Te=(this.style.removeProperty(f),Et(this,f));return Q===Te?null:Q===r&&Te===x?H:H=k(r=Q,x=Te)}}(f,x)).on("end.style."+f,J1(f)):"function"==typeof k?this.styleTween(f,function xc(f,k,r){var x,H,Q;return function(){var Te=Et(this,f),st=r(this),Qt=st+"";return null==st&&(this.style.removeProperty(f),Qt=st=Et(this,f)),Te===Qt?null:Te===x&&Qt===H?Q:(H=Qt,Q=k(x=Te,st))}}(f,x,ec(this,"style."+f,k))).each(function vo(f,k){var r,x,H,st,Q="style."+k,Te="end."+Q;return function(){var Qt=br(this,f),Kt=Qt.on,ci=null==Qt.value[Q]?st||(st=J1(k)):void 0;(Kt!==r||H!==ci)&&(x=(r=Kt).copy()).on(Te,H=ci),Qt.on=x}}(this._id,f)):this.styleTween(f,function Tl(f,k,r){var x,Q,H=r+"";return function(){var Te=Et(this,f);return Te===H?null:Te===x?Q:Q=k(x=Te,r)}}(f,x,k),r).on("end.style."+f,null)},styleTween:function Kc(f,k,r){var x="style."+(f+="");if(arguments.length<2)return(x=this.tween(x))&&x._value;if(null==k)return this.tween(x,null);if("function"!=typeof k)throw new Error;return this.tween(x,o1(f,k,r??""))},text:function Al(f){return this.tween("text","function"==typeof f?function q0(f){return function(){var k=f(this);this.textContent=k??""}}(ec(this,"text",f)):function Ps(f){return function(){this.textContent=f}}(null==f?"":f+""))},textTween:function X1(f){var k="text";if(arguments.length<1)return(k=this.tween(k))&&k._value;if(null==f)return this.tween(k,null);if("function"!=typeof f)throw new Error;return this.tween(k,Ll(f))},remove:function q1(){return this.on("end.remove",function Is(f){return function(){var k=this.parentNode;for(var r in this.__transition)if(+r!==f)return;k&&k.removeChild(this)}}(this._id))},tween:function $s(f,k){var r=this._id;if(f+="",arguments.length<2){for(var Te,x=Dn(this.node(),r).tween,H=0,Q=x.length;H<Q;++H)if((Te=x[H]).name===f)return Te.value;return null}return this.each((null==k?bc:Qo)(r,f,k))},delay:function Wc(f){var k=this._id;return arguments.length?this.each(("function"==typeof f?Ho:e1)(k,f)):Dn(this.node(),k).delay},duration:function Yc(f){var k=this._id;return arguments.length?this.each(("function"==typeof f?Sl:Pr)(k,f)):Dn(this.node(),k).duration},ease:function jc(f){var k=this._id;return arguments.length?this.each(tc(k,f)):Dn(this.node(),k).ease},easeVarying:function El(f){if("function"!=typeof f)throw new Error;return this.each(function t1(f,k){return function(){var r=k.apply(this,arguments);if("function"!=typeof r)throw new Error;br(this,f).ease=r}}(this._id,f))},end:function u2(){var f,k,r=this,x=r._id,H=r.size();return new Promise(function(Q,Te){var st={value:Te},Qt={value:function(){0==--H&&Q()}};r.each(function(){var Kt=br(this,x),ci=Kt.on;ci!==f&&((k=(f=ci).copy())._.cancel.push(st),k._.interrupt.push(st),k._.end.push(Qt)),Kt.on=k}),0===H&&Q()})},[Symbol.iterator]:ic[Symbol.iterator]};var Jc={time:null,delay:0,duration:250,ease:function qc(f){return((f*=2)<=1?f*f*f:(f-=2)*f*f+2)/2}};function pe(f,k){for(var r;!(r=f.__transition)||!(r=r[k]);)if(!(f=f.parentNode))throw new Error(`transition ${k} not found`);return r}Jt.prototype.interrupt=function go(f){return this.each(function(){!function Qa(f,k){var x,H,Te,r=f.__transition,Q=!0;if(r){for(Te in k=null==k?null:k+"",r)(x=r[Te]).name===k?(H=x.state>2&&x.state<5,x.state=6,x.timer.stop(),x.on.call(H?"interrupt":"cancel",f,f.__data__,x.index,x.group),delete r[Te]):Q=!1;Q&&delete f.__transition}}(this,f)})},Jt.prototype.transition=function Me(f){var k,r;f instanceof ls?(k=f._id,f=f._name):(k=Vo(),(r=Jc).time=bn(),f=null==f?null:f+"");for(var x=this._groups,H=x.length,Q=0;Q<H;++Q)for(var Qt,Te=x[Q],st=Te.length,Kt=0;Kt<st;++Kt)(Qt=Te[Kt])&&Ss(Qt,f,k,Kt,Te,r||pe(Qt,k));return new ls(x,this._parents,f,k)};Math;function Cc(f){return{type:f}}function ed(f,k){return f<k?-1:f>k?1:f>=k?0:NaN}function g2(f){let k=f,r=f;function x(Te,st,Qt,Kt){for(null==Qt&&(Qt=0),null==Kt&&(Kt=Te.length);Qt<Kt;){const ci=Qt+Kt>>>1;r(Te[ci],st)<0?Qt=ci+1:Kt=ci}return Qt}return 1===f.length&&(k=(Te,st)=>f(Te)-st,r=function _2(f){return(k,r)=>ed(f(k),r)}(f)),{left:x,center:function Q(Te,st,Qt,Kt){null==Qt&&(Qt=0),null==Kt&&(Kt=Te.length);const ci=x(Te,st,Qt,Kt-1);return ci>Qt&&k(Te[ci-1],st)>-k(Te[ci],st)?ci-1:ci},right:function H(Te,st,Qt,Kt){for(null==Qt&&(Qt=0),null==Kt&&(Kt=Te.length);Qt<Kt;){const ci=Qt+Kt>>>1;r(Te[ci],st)>0?Kt=ci:Qt=ci+1}return Qt}}}["w","e"].map(Cc),["n","s"].map(Cc),["n","w","e","s","nw","ne","sw","se"].map(Cc);var td=Math.sqrt(50),v2=Math.sqrt(10),id=Math.sqrt(2);function el(f,k,r){var x=(k-f)/Math.max(0,r),H=Math.floor(Math.log(x)/Math.LN10),Q=x/Math.pow(10,H);return H>=0?(Q>=td?10:Q>=v2?5:Q>=id?2:1)*Math.pow(10,H):-Math.pow(10,-H)/(Q>=td?10:Q>=v2?5:Q>=id?2:1)}function tl(f,k,r){var x=Math.abs(k-f)/Math.max(0,r),H=Math.pow(10,Math.floor(Math.log(x)/Math.LN10)),Q=x/H;return Q>=td?H*=10:Q>=v2?H*=5:Q>=id&&(H*=2),k<f?-H:H}const fs=1e3,Lo=6e4,ms=60*Lo,qo=24*ms,c1=7*qo,th=30*qo,nd=365*qo;var ad=new Date,Ns=new Date;function dr(f,k,r,x){function H(Q){return f(Q=0===arguments.length?new Date:new Date(+Q)),Q}return H.floor=function(Q){return f(Q=new Date(+Q)),Q},H.ceil=function(Q){return f(Q=new Date(Q-1)),k(Q,1),f(Q),Q},H.round=function(Q){var Te=H(Q),st=H.ceil(Q);return Q-Te<st-Q?Te:st},H.offset=function(Q,Te){return k(Q=new Date(+Q),null==Te?1:Math.floor(Te)),Q},H.range=function(Q,Te,st){var Kt,Qt=[];if(Q=H.ceil(Q),st=null==st?1:Math.floor(st),!(Q<Te&&st>0))return Qt;do{Qt.push(Kt=new Date(+Q)),k(Q,st),f(Q)}while(Kt<Q&&Q<Te);return Qt},H.filter=function(Q){return dr(function(Te){if(Te>=Te)for(;f(Te),!Q(Te);)Te.setTime(Te-1)},function(Te,st){if(Te>=Te)if(st<0)for(;++st<=0;)for(;k(Te,-1),!Q(Te););else for(;--st>=0;)for(;k(Te,1),!Q(Te););})},r&&(H.count=function(Q,Te){return ad.setTime(+Q),Ns.setTime(+Te),f(ad),f(Ns),Math.floor(r(ad,Ns))},H.every=function(Q){return Q=Math.floor(Q),isFinite(Q)&&Q>0?Q>1?H.filter(x?function(Te){return x(Te)%Q==0}:function(Te){return H.count(0,Te)%Q==0}):H:null}),H}var rd=dr(function(){},function(f,k){f.setTime(+f+k)},function(f,k){return k-f});rd.every=function(f){return f=Math.floor(f),isFinite(f)&&f>0?f>1?dr(function(k){k.setTime(Math.floor(k/f)*f)},function(k,r){k.setTime(+k+r*f)},function(k,r){return(r-k)/f}):rd:null};const od=rd;const rc=dr(function(f){f.setTime(f-f.getMilliseconds())},function(f,k){f.setTime(+f+k*fs)},function(f,k){return(k-f)/fs},function(f){return f.getUTCSeconds()});const Sc=dr(function(f){f.setTime(f-f.getMilliseconds()-f.getSeconds()*fs)},function(f,k){f.setTime(+f+k*Lo)},function(f,k){return(k-f)/Lo},function(f){return f.getMinutes()});const kl=dr(function(f){f.setTime(f-f.getMilliseconds()-f.getSeconds()*fs-f.getMinutes()*Lo)},function(f,k){f.setTime(+f+k*ms)},function(f,k){return(k-f)/ms},function(f){return f.getHours()});const Do=dr(f=>f.setHours(0,0,0,0),(f,k)=>f.setDate(f.getDate()+k),(f,k)=>(k-f-(k.getTimezoneOffset()-f.getTimezoneOffset())*Lo)/qo,f=>f.getDate()-1);function oc(f){return dr(function(k){k.setDate(k.getDate()-(k.getDay()+7-f)%7),k.setHours(0,0,0,0)},function(k,r){k.setDate(k.getDate()+7*r)},function(k,r){return(r-k-(r.getTimezoneOffset()-k.getTimezoneOffset())*Lo)/c1})}var h1=oc(0),Ol=oc(1),al=(oc(2),oc(3),oc(4));const cd=(oc(5),oc(6),dr(function(f){f.setDate(1),f.setHours(0,0,0,0)},function(f,k){f.setMonth(f.getMonth()+k)},function(f,k){return k.getMonth()-f.getMonth()+12*(k.getFullYear()-f.getFullYear())},function(f){return f.getMonth()}));var ld=dr(function(f){f.setMonth(0,1),f.setHours(0,0,0,0)},function(f,k){f.setFullYear(f.getFullYear()+k)},function(f,k){return k.getFullYear()-f.getFullYear()},function(f){return f.getFullYear()});ld.every=function(f){return isFinite(f=Math.floor(f))&&f>0?dr(function(k){k.setFullYear(Math.floor(k.getFullYear()/f)*f),k.setMonth(0,1),k.setHours(0,0,0,0)},function(k,r){k.setFullYear(k.getFullYear()+r*f)}):null};const Fs=ld;const C2=dr(function(f){f.setUTCSeconds(0,0)},function(f,k){f.setTime(+f+k*Lo)},function(f,k){return(k-f)/Lo},function(f){return f.getUTCMinutes()});const sh=dr(function(f){f.setUTCMinutes(0,0,0)},function(f,k){f.setTime(+f+k*ms)},function(f,k){return(k-f)/ms},function(f){return f.getUTCHours()});const hd=dr(function(f){f.setUTCHours(0,0,0,0)},function(f,k){f.setUTCDate(f.getUTCDate()+k)},function(f,k){return(k-f)/qo},function(f){return f.getUTCDate()-1});function Jo(f){return dr(function(k){k.setUTCDate(k.getUTCDate()-(k.getUTCDay()+7-f)%7),k.setUTCHours(0,0,0,0)},function(k,r){k.setUTCDate(k.getUTCDate()+7*r)},function(k,r){return(r-k)/c1})}var m1=Jo(0),rl=Jo(1),Xo=(Jo(2),Jo(3),Jo(4));const md=(Jo(5),Jo(6),dr(function(f){f.setUTCDate(1),f.setUTCHours(0,0,0,0)},function(f,k){f.setUTCMonth(f.getUTCMonth()+k)},function(f,k){return k.getUTCMonth()-f.getUTCMonth()+12*(k.getUTCFullYear()-f.getUTCFullYear())},function(f){return f.getUTCMonth()}));var sc=dr(function(f){f.setUTCMonth(0,1),f.setUTCHours(0,0,0,0)},function(f,k){f.setUTCFullYear(f.getUTCFullYear()+k)},function(f,k){return k.getUTCFullYear()-f.getUTCFullYear()},function(f){return f.getUTCFullYear()});sc.every=function(f){return isFinite(f=Math.floor(f))&&f>0?dr(function(k){k.setUTCFullYear(Math.floor(k.getUTCFullYear()/f)*f),k.setUTCMonth(0,1),k.setUTCHours(0,0,0,0)},function(k,r){k.setUTCFullYear(k.getUTCFullYear()+r*f)}):null};const Hs=sc;function pd(f,k,r,x,H,Q){const Te=[[rc,1,fs],[rc,5,5e3],[rc,15,15e3],[rc,30,3e4],[Q,1,Lo],[Q,5,5*Lo],[Q,15,15*Lo],[Q,30,30*Lo],[H,1,ms],[H,3,3*ms],[H,6,6*ms],[H,12,12*ms],[x,1,qo],[x,2,2*qo],[r,1,c1],[k,1,th],[k,3,3*th],[f,1,nd]];function Qt(Kt,ci,vi){const yi=Math.abs(ci-Kt)/vi,Ti=g2(([,,Ai])=>Ai).right(Te,yi);if(Ti===Te.length)return f.every(tl(Kt/nd,ci/nd,vi));if(0===Ti)return od.every(Math.max(tl(Kt,ci,vi),1));const[rn,gn]=Te[yi/Te[Ti-1][2]<Te[Ti][2]/yi?Ti-1:Ti];return rn.every(gn)}return[function st(Kt,ci,vi){const yi=ci<Kt;yi&&([Kt,ci]=[ci,Kt]);const Ti=vi&&"function"==typeof vi.range?vi:Qt(Kt,ci,vi),rn=Ti?Ti.range(Kt,+ci+1):[];return yi?rn.reverse():rn},Qt]}const[ch,E2]=pd(Hs,md,m1,hd,sh,C2),[$o,gd]=pd(Fs,cd,h1,Do,kl,Sc);function cc(f){if(0<=f.y&&f.y<100){var k=new Date(-1,f.m,f.d,f.H,f.M,f.S,f.L);return k.setFullYear(f.y),k}return new Date(f.y,f.m,f.d,f.H,f.M,f.S,f.L)}function _d(f){if(0<=f.y&&f.y<100){var k=new Date(Date.UTC(-1,f.m,f.d,f.H,f.M,f.S,f.L));return k.setUTCFullYear(f.y),k}return new Date(Date.UTC(f.y,f.m,f.d,f.H,f.M,f.S,f.L))}function Nl(f,k,r){return{y:f,m:k,d:r,H:0,M:0,S:0,L:0}}var T2={"-":"",_:" ",0:"0"},xr=/^\s*\d+/,sl=/^%/,vd=/[\\^$*+?|[\]().{}]/g;function ra(f,k,r){var x=f<0?"-":"",H=(x?-f:f)+"",Q=H.length;return x+(Q<r?new Array(r-Q+1).join(k)+H:H)}function A2(f){return f.replace(vd,"\\$&")}function lc(f){return new RegExp("^(?:"+f.map(A2).join("|")+")","i")}function zs(f){return new Map(f.map((k,r)=>[k.toLowerCase(),r]))}function L2(f,k,r){var x=xr.exec(k.slice(r,r+1));return x?(f.w=+x[0],r+x[0].length):-1}function v1(f,k,r){var x=xr.exec(k.slice(r,r+1));return x?(f.u=+x[0],r+x[0].length):-1}function bd(f,k,r){var x=xr.exec(k.slice(r,r+2));return x?(f.U=+x[0],r+x[0].length):-1}function yd(f,k,r){var x=xr.exec(k.slice(r,r+2));return x?(f.V=+x[0],r+x[0].length):-1}function Fl(f,k,r){var x=xr.exec(k.slice(r,r+2));return x?(f.W=+x[0],r+x[0].length):-1}function D2(f,k,r){var x=xr.exec(k.slice(r,r+4));return x?(f.y=+x[0],r+x[0].length):-1}function xd(f,k,r){var x=xr.exec(k.slice(r,r+2));return x?(f.y=+x[0]+(+x[0]>68?1900:2e3),r+x[0].length):-1}function lh(f,k,r){var x=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(k.slice(r,r+6));return x?(f.Z=x[1]?0:-(x[2]+(x[3]||"00")),r+x[0].length):-1}function dh(f,k,r){var x=xr.exec(k.slice(r,r+1));return x?(f.q=3*x[0]-3,r+x[0].length):-1}function I2(f,k,r){var x=xr.exec(k.slice(r,r+2));return x?(f.m=x[0]-1,r+x[0].length):-1}function Cd(f,k,r){var x=xr.exec(k.slice(r,r+2));return x?(f.d=+x[0],r+x[0].length):-1}function wd(f,k,r){var x=xr.exec(k.slice(r,r+3));return x?(f.m=0,f.d=+x[0],r+x[0].length):-1}function Hl(f,k,r){var x=xr.exec(k.slice(r,r+2));return x?(f.H=+x[0],r+x[0].length):-1}function b1(f,k,r){var x=xr.exec(k.slice(r,r+2));return x?(f.M=+x[0],r+x[0].length):-1}function Ac(f,k,r){var x=xr.exec(k.slice(r,r+2));return x?(f.S=+x[0],r+x[0].length):-1}function hh(f,k,r){var x=xr.exec(k.slice(r,r+3));return x?(f.L=+x[0],r+x[0].length):-1}function k2(f,k,r){var x=xr.exec(k.slice(r,r+6));return x?(f.L=Math.floor(x[0]/1e3),r+x[0].length):-1}function e3(f,k,r){var x=sl.exec(k.slice(r,r+1));return x?r+x[0].length:-1}function uh(f,k,r){var x=xr.exec(k.slice(r));return x?(f.Q=+x[0],r+x[0].length):-1}function y1(f,k,r){var x=xr.exec(k.slice(r));return x?(f.s=+x[0],r+x[0].length):-1}function O2(f,k){return ra(f.getDate(),k,2)}function P2(f,k){return ra(f.getHours(),k,2)}function zl(f,k){return ra(f.getHours()%12||12,k,2)}function Md(f,k){return ra(1+Do.count(Fs(f),f),k,3)}function Sd(f,k){return ra(f.getMilliseconds(),k,3)}function cl(f,k){return Sd(f,k)+"000"}function Ed(f,k){return ra(f.getMonth()+1,k,2)}function Lc(f,k){return ra(f.getMinutes(),k,2)}function R2(f,k){return ra(f.getSeconds(),k,2)}function fh(f){var k=f.getDay();return 0===k?7:k}function N2(f,k){return ra(h1.count(Fs(f)-1,f),k,2)}function F2(f){var k=f.getDay();return k>=4||0===k?al(f):al.ceil(f)}function mh(f,k){return f=F2(f),ra(al.count(Fs(f),f)+(4===Fs(f).getDay()),k,2)}function ro(f){return f.getDay()}function ll(f,k){return ra(Ol.count(Fs(f)-1,f),k,2)}function ph(f,k){return ra(f.getFullYear()%100,k,2)}function H2(f,k){return ra((f=F2(f)).getFullYear()%100,k,2)}function gh(f,k){return ra(f.getFullYear()%1e4,k,4)}function _h(f,k){var r=f.getDay();return ra((f=r>=4||0===r?al(f):al.ceil(f)).getFullYear()%1e4,k,4)}function vh(f){var k=f.getTimezoneOffset();return(k>0?"-":(k*=-1,"+"))+ra(k/60|0,"0",2)+ra(k%60,"0",2)}function z2(f,k){return ra(f.getUTCDate(),k,2)}function V2(f,k){return ra(f.getUTCHours(),k,2)}function bh(f,k){return ra(f.getUTCHours()%12||12,k,2)}function yh(f,k){return ra(1+hd.count(Hs(f),f),k,3)}function B2(f,k){return ra(f.getUTCMilliseconds(),k,3)}function U2(f,k){return B2(f,k)+"000"}function x1(f,k){return ra(f.getUTCMonth()+1,k,2)}function gs(f,k){return ra(f.getUTCMinutes(),k,2)}function Vl(f,k){return ra(f.getUTCSeconds(),k,2)}function G2(f){var k=f.getUTCDay();return 0===k?7:k}function Z2(f,k){return ra(m1.count(Hs(f)-1,f),k,2)}function C1(f){var k=f.getUTCDay();return k>=4||0===k?Xo(f):Xo.ceil(f)}function t3(f,k){return f=C1(f),ra(Xo.count(Hs(f),f)+(4===Hs(f).getUTCDay()),k,2)}function W2(f){return f.getUTCDay()}function n3(f,k){return ra(rl.count(Hs(f)-1,f),k,2)}function Td(f,k){return ra(f.getUTCFullYear()%100,k,2)}function w1(f,k){return ra((f=C1(f)).getUTCFullYear()%100,k,2)}function a3(f,k){return ra(f.getUTCFullYear()%1e4,k,4)}function r3(f,k){var r=f.getUTCDay();return ra((f=r>=4||0===r?Xo(f):Xo.ceil(f)).getUTCFullYear()%1e4,k,4)}function Ad(){return"+0000"}function Y2(){return"%"}function j2(f){return+f}function K2(f){return Math.floor(+f/1e3)}function Ja(f){return null===f?NaN:+f}!function q2(f){(function _1(f){var k=f.dateTime,r=f.date,x=f.time,H=f.periods,Q=f.days,Te=f.shortDays,st=f.months,Qt=f.shortMonths,Kt=lc(H),ci=zs(H),vi=lc(Q),yi=zs(Q),Ti=lc(Te),rn=zs(Te),gn=lc(st),Ai=zs(st),un=lc(Qt),vn=zs(Qt),pn={a:function Na(dn){return Te[dn.getDay()]},A:function Wo(dn){return Q[dn.getDay()]},b:function Da(dn){return Qt[dn.getMonth()]},B:function Lr(dn){return st[dn.getMonth()]},c:null,d:O2,e:O2,f:cl,g:H2,G:_h,H:P2,I:zl,j:Md,L:Sd,m:Ed,M:Lc,p:function Mr(dn){return H[+(dn.getHours()>=12)]},q:function fr(dn){return 1+~~(dn.getMonth()/3)},Q:j2,s:K2,S:R2,u:fh,U:N2,V:mh,w:ro,W:ll,x:null,X:null,y:ph,Y:gh,Z:vh,"%":Y2},Un={a:function Vc(dn){return Te[dn.getUTCDay()]},A:function Z1(dn){return Q[dn.getUTCDay()]},b:function Xl(dn){return Qt[dn.getUTCMonth()]},B:function W1(dn){return st[dn.getUTCMonth()]},c:null,d:z2,e:z2,f:U2,g:w1,G:r3,H:V2,I:bh,j:yh,L:B2,m:x1,M:gs,p:function oo(dn){return H[+(dn.getUTCHours()>=12)]},q:function c2(dn){return 1+~~(dn.getUTCMonth()/3)},Q:j2,s:K2,S:Vl,u:G2,U:Z2,V:t3,w:W2,W:n3,x:null,X:null,y:Td,Y:a3,Z:Ad,"%":Y2},Pn={a:function ur(dn,Yn,na){var Qi=Ti.exec(Yn.slice(na));return Qi?(dn.w=rn.get(Qi[0].toLowerCase()),na+Qi[0].length):-1},A:function Tn(dn,Yn,na){var Qi=vi.exec(Yn.slice(na));return Qi?(dn.w=yi.get(Qi[0].toLowerCase()),na+Qi[0].length):-1},b:function Br(dn,Yn,na){var Qi=un.exec(Yn.slice(na));return Qi?(dn.m=vn.get(Qi[0].toLowerCase()),na+Qi[0].length):-1},B:function oa(dn,Yn,na){var Qi=gn.exec(Yn.slice(na));return Qi?(dn.m=Ai.get(Qi[0].toLowerCase()),na+Qi[0].length):-1},c:function Ba(dn,Yn,na){return La(dn,k,Yn,na)},d:Cd,e:Cd,f:k2,g:xd,G:D2,H:Hl,I:Hl,j:wd,L:hh,m:I2,M:b1,p:function Vr(dn,Yn,na){var Qi=Kt.exec(Yn.slice(na));return Qi?(dn.p=ci.get(Qi[0].toLowerCase()),na+Qi[0].length):-1},q:dh,Q:uh,s:y1,S:Ac,u:v1,U:bd,V:yd,w:L2,W:Fl,x:function Zo(dn,Yn,na){return La(dn,r,Yn,na)},X:function $a(dn,Yn,na){return La(dn,x,Yn,na)},y:xd,Y:D2,Z:lh,"%":e3};function wn(dn,Yn){return function(na){var Co,Hn,er,Qi=[],cr=-1,Ca=0,xo=dn.length;for(na instanceof Date||(na=new Date(+na));++cr<xo;)37===dn.charCodeAt(cr)&&(Qi.push(dn.slice(Ca,cr)),null!=(Hn=T2[Co=dn.charAt(++cr)])?Co=dn.charAt(++cr):Hn="e"===Co?" ":"0",(er=Yn[Co])&&(Co=er(na,Hn)),Qi.push(Co),Ca=cr+1);return Qi.push(dn.slice(Ca,cr)),Qi.join("")}}function sr(dn,Yn){return function(na){var Ca,xo,Qi=Nl(1900,void 0,1);if(La(Qi,dn,na+="",0)!=na.length)return null;if("Q"in Qi)return new Date(Qi.Q);if("s"in Qi)return new Date(1e3*Qi.s+("L"in Qi?Qi.L:0));if(Yn&&!("Z"in Qi)&&(Qi.Z=0),"p"in Qi&&(Qi.H=Qi.H%12+12*Qi.p),void 0===Qi.m&&(Qi.m="q"in Qi?Qi.q:0),"V"in Qi){if(Qi.V<1||Qi.V>53)return null;"w"in Qi||(Qi.w=1),"Z"in Qi?(xo=(Ca=_d(Nl(Qi.y,0,1))).getUTCDay(),Ca=xo>4||0===xo?rl.ceil(Ca):rl(Ca),Ca=hd.offset(Ca,7*(Qi.V-1)),Qi.y=Ca.getUTCFullYear(),Qi.m=Ca.getUTCMonth(),Qi.d=Ca.getUTCDate()+(Qi.w+6)%7):(xo=(Ca=cc(Nl(Qi.y,0,1))).getDay(),Ca=xo>4||0===xo?Ol.ceil(Ca):Ol(Ca),Ca=Do.offset(Ca,7*(Qi.V-1)),Qi.y=Ca.getFullYear(),Qi.m=Ca.getMonth(),Qi.d=Ca.getDate()+(Qi.w+6)%7)}else("W"in Qi||"U"in Qi)&&("w"in Qi||(Qi.w="u"in Qi?Qi.u%7:"W"in Qi?1:0),xo="Z"in Qi?_d(Nl(Qi.y,0,1)).getUTCDay():cc(Nl(Qi.y,0,1)).getDay(),Qi.m=0,Qi.d="W"in Qi?(Qi.w+6)%7+7*Qi.W-(xo+5)%7:Qi.w+7*Qi.U-(xo+6)%7);return"Z"in Qi?(Qi.H+=Qi.Z/100|0,Qi.M+=Qi.Z%100,_d(Qi)):cc(Qi)}}function La(dn,Yn,na,Qi){for(var Co,Hn,cr=0,Ca=Yn.length,xo=na.length;cr<Ca;){if(Qi>=xo)return-1;if(37===(Co=Yn.charCodeAt(cr++))){if(Co=Yn.charAt(cr++),!(Hn=Pn[Co in T2?Yn.charAt(cr++):Co])||(Qi=Hn(dn,na,Qi))<0)return-1}else if(Co!=na.charCodeAt(Qi++))return-1}return Qi}return pn.x=wn(r,pn),pn.X=wn(x,pn),pn.c=wn(k,pn),Un.x=wn(r,Un),Un.X=wn(x,Un),Un.c=wn(k,Un),{format:function(dn){var Yn=wn(dn+="",pn);return Yn.toString=function(){return dn},Yn},parse:function(dn){var Yn=sr(dn+="",!1);return Yn.toString=function(){return dn},Yn},utcFormat:function(dn){var Yn=wn(dn+="",Un);return Yn.toString=function(){return dn},Yn},utcParse:function(dn){var Yn=sr(dn+="",!0);return Yn.toString=function(){return dn},Yn}}})(f)}({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]});const X2=g2(ed).right,xh=(g2(Ja),X2);function Ch(f,k){return f=+f,k=+k,function(r){return Math.round(f*(1-r)+k*r)}}function wh(f){return+f}var Tr=[0,1];function Bl(f){return f}function Dc(f,k){return(k-=f=+f)?function(r){return(r-f)/k}:function o3(f){return function(){return f}}(isNaN(k)?NaN:.5)}function $2(f,k,r){var x=f[0],H=f[1],Q=k[0],Te=k[1];return H<x?(x=Dc(H,x),Q=r(Te,Q)):(x=Dc(x,H),Q=r(Q,Te)),function(st){return Q(x(st))}}function e0(f,k,r){var x=Math.min(f.length,k.length)-1,H=new Array(x),Q=new Array(x),Te=-1;for(f[x]<f[0]&&(f=f.slice().reverse(),k=k.slice().reverse());++Te<x;)H[Te]=Dc(f[Te],f[Te+1]),Q[Te]=r(k[Te],k[Te+1]);return function(st){var Qt=xh(f,st,1,x)-1;return Q[Qt](H[Qt](st))}}function dc(f,k){return k.domain(f.domain()).range(f.range()).interpolate(f.interpolate()).clamp(f.clamp()).unknown(f.unknown())}function Id(){return function Mh(){var x,H,Q,st,Qt,Kt,f=Tr,k=Tr,r=Wn,Te=Bl;function ci(){var yi=Math.min(f.length,k.length);return Te!==Bl&&(Te=function Ic(f,k){var r;return f>k&&(r=f,f=k,k=r),function(x){return Math.max(f,Math.min(k,x))}}(f[0],f[yi-1])),st=yi>2?e0:$2,Qt=Kt=null,vi}function vi(yi){return null==yi||isNaN(yi=+yi)?Q:(Qt||(Qt=st(f.map(x),k,r)))(x(Te(yi)))}return vi.invert=function(yi){return Te(H((Kt||(Kt=st(k,f.map(x),Pa)))(yi)))},vi.domain=function(yi){return arguments.length?(f=Array.from(yi,wh),ci()):f.slice()},vi.range=function(yi){return arguments.length?(k=Array.from(yi),ci()):k.slice()},vi.rangeRound=function(yi){return k=Array.from(yi),r=Ch,ci()},vi.clamp=function(yi){return arguments.length?(Te=!!yi||Bl,ci()):Te!==Bl},vi.interpolate=function(yi){return arguments.length?(r=yi,ci()):r},vi.unknown=function(yi){return arguments.length?(Q=yi,vi):Q},function(yi,Ti){return x=yi,H=Ti,ci()}}()(Bl,Bl)}function fl(f,k){switch(arguments.length){case 0:break;case 1:this.range(f);break;default:this.range(k).domain(f)}return this}var kd,n0=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function Gl(f){if(!(k=n0.exec(f)))throw new Error("invalid format: "+f);var k;return new Bs({fill:k[1],align:k[2],sign:k[3],symbol:k[4],zero:k[5],width:k[6],comma:k[7],precision:k[8]&&k[8].slice(1),trim:k[9],type:k[10]})}function Bs(f){this.fill=void 0===f.fill?" ":f.fill+"",this.align=void 0===f.align?">":f.align+"",this.sign=void 0===f.sign?"-":f.sign+"",this.symbol=void 0===f.symbol?"":f.symbol+"",this.zero=!!f.zero,this.width=void 0===f.width?void 0:+f.width,this.comma=!!f.comma,this.precision=void 0===f.precision?void 0:+f.precision,this.trim=!!f.trim,this.type=void 0===f.type?"":f.type+""}function ml(f,k){if((r=(f=k?f.toExponential(k-1):f.toExponential()).indexOf("e"))<0)return null;var r,x=f.slice(0,r);return[x.length>1?x[0]+x.slice(2):x,+f.slice(r+1)]}function Us(f){return(f=ml(Math.abs(f)))?f[1]:NaN}function r0(f,k){var r=ml(f,k);if(!r)return f+"";var x=r[0],H=r[1];return H<0?"0."+new Array(-H).join("0")+x:x.length>H+1?x.slice(0,H+1)+"."+x.slice(H+1):x+new Array(H-x.length+2).join("0")}Gl.prototype=Bs.prototype,Bs.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 o0={"%":(f,k)=>(100*f).toFixed(k),b:f=>Math.round(f).toString(2),c:f=>f+"",d:function a0(f){return Math.abs(f=Math.round(f))>=1e21?f.toLocaleString("en").replace(/,/g,""):f.toString(10)},e:(f,k)=>f.toExponential(k),f:(f,k)=>f.toFixed(k),g:(f,k)=>f.toPrecision(k),o:f=>Math.round(f).toString(8),p:(f,k)=>r0(100*f,k),r:r0,s:function Od(f,k){var r=ml(f,k);if(!r)return f+"";var x=r[0],H=r[1],Q=H-(kd=3*Math.max(-8,Math.min(8,Math.floor(H/3))))+1,Te=x.length;return Q===Te?x:Q>Te?x+new Array(Q-Te+1).join("0"):Q>0?x.slice(0,Q)+"."+x.slice(Q):"0."+new Array(1-Q).join("0")+ml(f,Math.max(0,k+Q-1))[0]},X:f=>Math.round(f).toString(16).toUpperCase(),x:f=>Math.round(f).toString(16)};function Pd(f){return f}var E1,hc,c0,Pc=Array.prototype.map,s0=["y","z","a","f","p","n","\xb5","m","","k","M","G","T","P","E","Z","Y"];function Nd(f){var k=f.domain;return f.ticks=function(r){var x=k();return function eh(f,k,r){var x,Q,Te,st,H=-1;if(r=+r,(f=+f)==(k=+k)&&r>0)return[f];if((x=k<f)&&(Q=f,f=k,k=Q),0===(st=el(f,k,r))||!isFinite(st))return[];if(st>0){let Qt=Math.round(f/st),Kt=Math.round(k/st);for(Qt*st<f&&++Qt,Kt*st>k&&--Kt,Te=new Array(Q=Kt-Qt+1);++H<Q;)Te[H]=(Qt+H)*st}else{st=-st;let Qt=Math.round(f*st),Kt=Math.round(k*st);for(Qt/st<f&&++Qt,Kt/st>k&&--Kt,Te=new Array(Q=Kt-Qt+1);++H<Q;)Te[H]=(Qt+H)/st}return x&&Te.reverse(),Te}(x[0],x[x.length-1],r??10)},f.tickFormat=function(r,x){var H=k();return function Rd(f,k,r,x){var Q,H=tl(f,k,r);switch((x=Gl(x??",f")).type){case"s":var Te=Math.max(Math.abs(f),Math.abs(k));return null==x.precision&&!isNaN(Q=function Sh(f,k){return Math.max(0,3*Math.max(-8,Math.min(8,Math.floor(Us(k)/3)))-Us(Math.abs(f)))}(H,Te))&&(x.precision=Q),c0(x,Te);case"":case"e":case"g":case"p":case"r":null==x.precision&&!isNaN(Q=function d0(f,k){return f=Math.abs(f),k=Math.abs(k)-f,Math.max(0,Us(k)-Us(f))+1}(H,Math.max(Math.abs(f),Math.abs(k))))&&(x.precision=Q-("e"===x.type));break;case"f":case"%":null==x.precision&&!isNaN(Q=function h0(f){return Math.max(0,-Us(Math.abs(f)))}(H))&&(x.precision=Q-2*("%"===x.type))}return hc(x)}(H[0],H[H.length-1],r??10,x)},f.nice=function(r){null==r&&(r=10);var Qt,Kt,x=k(),H=0,Q=x.length-1,Te=x[H],st=x[Q],ci=10;for(st<Te&&(Kt=Te,Te=st,st=Kt,Kt=H,H=Q,Q=Kt);ci-- >0;){if((Kt=el(Te,st,r))===Qt)return x[H]=Te,x[Q]=st,k(x);if(Kt>0)Te=Math.floor(Te/Kt)*Kt,st=Math.ceil(st/Kt)*Kt;else{if(!(Kt<0))break;Te=Math.ceil(Te*Kt)/Kt,st=Math.floor(st*Kt)/Kt}Qt=Kt}return f},f}function es(){var f=Id();return f.copy=function(){return dc(f,es())},fl.apply(f,arguments),Nd(f)}function T1(f,k,r){f=+f,k=+k,r=(H=arguments.length)<2?(k=f,f=0,1):H<3?1:+r;for(var x=-1,H=0|Math.max(0,Math.ceil((k-f)/r)),Q=new Array(H);++x<H;)Q[x]=f+x*r;return Q}!function l0(f){E1=function Eh(f){var k=void 0===f.grouping||void 0===f.thousands?Pd:function S1(f,k){return function(r,x){for(var H=r.length,Q=[],Te=0,st=f[0],Qt=0;H>0&&st>0&&(Qt+st+1>x&&(st=Math.max(1,x-Qt)),Q.push(r.substring(H-=st,H+st)),!((Qt+=st+1)>x));)st=f[Te=(Te+1)%f.length];return Q.reverse().join(k)}}(Pc.call(f.grouping,Number),f.thousands+""),r=void 0===f.currency?"":f.currency[0]+"",x=void 0===f.currency?"":f.currency[1]+"",H=void 0===f.decimal?".":f.decimal+"",Q=void 0===f.numerals?Pd:function Zl(f){return function(k){return k.replace(/[0-9]/g,function(r){return f[+r]})}}(Pc.call(f.numerals,String)),Te=void 0===f.percent?"%":f.percent+"",st=void 0===f.minus?"\u2212":f.minus+"",Qt=void 0===f.nan?"NaN":f.nan+"";function Kt(vi){var yi=(vi=Gl(vi)).fill,Ti=vi.align,rn=vi.sign,gn=vi.symbol,Ai=vi.zero,un=vi.width,vn=vi.comma,pn=vi.precision,Un=vi.trim,Pn=vi.type;"n"===Pn?(vn=!0,Pn="g"):o0[Pn]||(void 0===pn&&(pn=12),Un=!0,Pn="g"),(Ai||"0"===yi&&"="===Ti)&&(Ai=!0,yi="0",Ti="=");var wn="$"===gn?r:"#"===gn&&/[boxX]/.test(Pn)?"0"+Pn.toLowerCase():"",sr="$"===gn?x:/[%p]/.test(Pn)?Te:"",La=o0[Pn],Vr=/[defgprs%]/.test(Pn);function ur(Tn){var Ba,Zo,$a,Br=wn,oa=sr;if("c"===Pn)oa=La(Tn)+oa,Tn="";else{var Na=(Tn=+Tn)<0||1/Tn<0;if(Tn=isNaN(Tn)?Qt:La(Math.abs(Tn),pn),Un&&(Tn=function Oc(f){e:for(var H,k=f.length,r=1,x=-1;r<k;++r)switch(f[r]){case".":x=H=r;break;case"0":0===x&&(x=r),H=r;break;default:if(!+f[r])break e;x>0&&(x=0)}return x>0?f.slice(0,x)+f.slice(H+1):f}(Tn)),Na&&0==+Tn&&"+"!==rn&&(Na=!1),Br=(Na?"("===rn?rn:st:"-"===rn||"("===rn?"":rn)+Br,oa=("s"===Pn?s0[8+kd/3]:"")+oa+(Na&&"("===rn?")":""),Vr)for(Ba=-1,Zo=Tn.length;++Ba<Zo;)if(48>($a=Tn.charCodeAt(Ba))||$a>57){oa=(46===$a?H+Tn.slice(Ba+1):Tn.slice(Ba))+oa,Tn=Tn.slice(0,Ba);break}}vn&&!Ai&&(Tn=k(Tn,1/0));var Wo=Br.length+Tn.length+oa.length,Da=Wo<un?new Array(un-Wo+1).join(yi):"";switch(vn&&Ai&&(Tn=k(Da+Tn,Da.length?un-oa.length:1/0),Da=""),Ti){case"<":Tn=Br+Tn+oa+Da;break;case"=":Tn=Br+Da+Tn+oa;break;case"^":Tn=Da.slice(0,Wo=Da.length>>1)+Br+Tn+oa+Da.slice(Wo);break;default:Tn=Da+Br+Tn+oa}return Q(Tn)}return pn=void 0===pn?6:/[gprs]/.test(Pn)?Math.max(1,Math.min(21,pn)):Math.max(0,Math.min(20,pn)),ur.toString=function(){return vi+""},ur}return{format:Kt,formatPrefix:function ci(vi,yi){var Ti=Kt(((vi=Gl(vi)).type="f",vi)),rn=3*Math.max(-8,Math.min(8,Math.floor(Us(yi)/3))),gn=Math.pow(10,-rn),Ai=s0[8+rn/3];return function(un){return Ti(gn*un)+Ai}}}}(f),hc=E1.format,c0=E1.formatPrefix}({thousands:",",grouping:[3],currency:["$",""]});const Rr=Symbol("implicit");function pl(){var f=new Map,k=[],r=[],x=Rr;function H(Q){var Te=Q+"",st=f.get(Te);if(!st){if(x!==Rr)return x;f.set(Te,st=k.push(Q))}return r[(st-1)%r.length]}return H.domain=function(Q){if(!arguments.length)return k.slice();k=[],f=new Map;for(const Te of Q){const st=Te+"";f.has(st)||f.set(st,k.push(Te))}return H},H.range=function(Q){return arguments.length?(r=Array.from(Q),H):r.slice()},H.unknown=function(Q){return arguments.length?(x=Q,H):x},H.copy=function(){return pl(k,r).unknown(x)},fl.apply(H,arguments),H}function Wl(){var Q,Te,f=pl().unknown(void 0),k=f.domain,r=f.range,x=0,H=1,st=!1,Qt=0,Kt=0,ci=.5;function vi(){var yi=k().length,Ti=H<x,rn=Ti?H:x,gn=Ti?x:H;Q=(gn-rn)/Math.max(1,yi-Qt+2*Kt),st&&(Q=Math.floor(Q)),rn+=(gn-rn-Q*(yi-Qt))*ci,Te=Q*(1-Qt),st&&(rn=Math.round(rn),Te=Math.round(Te));var Ai=T1(yi).map(function(un){return rn+Q*un});return r(Ti?Ai.reverse():Ai)}return delete f.unknown,f.domain=function(yi){return arguments.length?(k(yi),vi()):k()},f.range=function(yi){return arguments.length?([x,H]=yi,x=+x,H=+H,vi()):[x,H]},f.rangeRound=function(yi){return[x,H]=yi,x=+x,H=+H,st=!0,vi()},f.bandwidth=function(){return Te},f.step=function(){return Q},f.round=function(yi){return arguments.length?(st=!!yi,vi()):st},f.padding=function(yi){return arguments.length?(Qt=Math.min(1,Kt=+yi),vi()):Qt},f.paddingInner=function(yi){return arguments.length?(Qt=Math.min(1,yi),vi()):Qt},f.paddingOuter=function(yi){return arguments.length?(Kt=+yi,vi()):Kt},f.align=function(yi){return arguments.length?(ci=Math.max(0,Math.min(1,yi)),vi()):ci},f.copy=function(){return Wl(k(),[x,H]).round(st).paddingInner(Qt).paddingOuter(Kt).align(ci)},fl.apply(vi(),arguments)}function u0(f,k,r=Ja){if(x=f.length){if((k=+k)<=0||x<2)return+r(f[0],0,f);if(k>=1)return+r(f[x-1],x-1,f);var x,H=(x-1)*k,Q=Math.floor(H),Te=+r(f[Q],Q,f);return Te+(+r(f[Q+1],Q+1,f)-Te)*(H-Q)}}function Fd(){var x,f=[],k=[],r=[];function H(){var Te=0,st=Math.max(1,k.length);for(r=new Array(st-1);++Te<st;)r[Te-1]=u0(f,Te/st);return Q}function Q(Te){return null==Te||isNaN(Te=+Te)?x:k[xh(r,Te)]}return Q.invertExtent=function(Te){var st=k.indexOf(Te);return st<0?[NaN,NaN]:[st>0?r[st-1]:f[0],st<r.length?r[st]:f[f.length-1]]},Q.domain=function(Te){if(!arguments.length)return f.slice();f=[];for(let st of Te)null!=st&&!isNaN(st=+st)&&f.push(st);return f.sort(ed),H()},Q.range=function(Te){return arguments.length?(k=Array.from(Te),H()):k.slice()},Q.unknown=function(Te){return arguments.length?(x=Te,Q):x},Q.quantiles=function(){return r.slice()},Q.copy=function(){return Fd().domain(f).range(k).unknown(x)},fl.apply(Q,arguments)}var Ah=p(5126);const A1=["caretElm"];function Hd(f,k){}const Lh=function(f){return{model:f}};function zd(f,k){if(1&f&&(t.TgZ(0,"span"),t.YNc(1,Hd,0,0,"ng-template",5),t.qZA()),2&f){const r=t.oxw();t.xp6(1),t.Q6J("ngTemplateOutlet",r.template)("ngTemplateOutletContext",t.VKq(2,Lh,r.context))}}function gl(f,k){if(1&f&&t._UZ(0,"span",6),2&f){const r=t.oxw();t.Q6J("innerHTML",r.title,t.oJD)}}function Dh(f,k){if(1&f&&(t.TgZ(0,"header",4)(1,"span",5),t._uU(2),t.qZA()()),2&f){const r=t.oxw();t.xp6(2),t.Oqu(r.title)}}function Ih(f,k){if(1&f){const r=t.EpF();t.TgZ(0,"li",6)(1,"ngx-charts-legend-entry",7),t.NdJ("select",function(H){t.CHM(r);const Q=t.oxw();return t.KtG(Q.labelClick.emit(H))})("activate",function(H){t.CHM(r);const Q=t.oxw();return t.KtG(Q.activate(H))})("deactivate",function(H){t.CHM(r);const Q=t.oxw();return t.KtG(Q.deactivate(H))}),t.qZA()()}if(2&f){const r=k.$implicit,x=t.oxw();t.xp6(1),t.Q6J("label",r.label)("formattedLabel",r.formattedLabel)("color",r.color)("isActive",x.isActive(r))}}function f0(f,k){if(1&f&&(t.O4$(),t.kcU(),t._UZ(0,"ngx-charts-scale-legend",4)),2&f){const r=t.oxw();t.Q6J("horizontal",r.legendOptions&&r.legendOptions.position===r.LegendPosition.Below)("valueRange",r.legendOptions.domain)("colors",r.legendOptions.colors)("height",r.view[1])("width",r.legendWidth)}}function kh(f,k){if(1&f){const r=t.EpF();t.O4$(),t.kcU(),t.TgZ(0,"ngx-charts-legend",5),t.NdJ("labelClick",function(H){t.CHM(r);const Q=t.oxw();return t.KtG(Q.legendLabelClick.emit(H))})("labelActivate",function(H){t.CHM(r);const Q=t.oxw();return t.KtG(Q.legendLabelActivate.emit(H))})("labelDeactivate",function(H){t.CHM(r);const Q=t.oxw();return t.KtG(Q.legendLabelDeactivate.emit(H))}),t.qZA()}if(2&f){const r=t.oxw();t.Q6J("horizontal",r.legendOptions&&r.legendOptions.position===r.LegendPosition.Below)("data",r.legendOptions.domain)("title",r.legendOptions.title)("colors",r.legendOptions.colors)("height",r.view[1])("width",r.legendWidth)("activeEntries",r.activeEntries)}}const Vd=["*"],Oh=["ngx-charts-axis-label",""],L1=["ticksel"],_l=["ngx-charts-x-axis-ticks",""];function Gs(f,k){if(1&f&&(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&f){const r=k.$implicit,x=t.oxw();t.uIk("transform",x.tickTransform(r)),t.xp6(2),t.Oqu(x.tickFormat(r)),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(r))," ")}}function Ph(f,k){if(1&f&&(t.O4$(),t.TgZ(0,"g"),t._UZ(1,"line",6),t.qZA()),2&f){const r=t.oxw(2);t.uIk("transform",r.gridLineTransform()),t.xp6(1),t.uIk("y1",-r.gridLineHeight)}}function vl(f,k){if(1&f&&(t.O4$(),t.TgZ(0,"g"),t.YNc(1,Ph,2,2,"g",5),t.qZA()),2&f){const r=k.$implicit,x=t.oxw();t.uIk("transform",x.tickTransform(r)),t.xp6(1),t.Q6J("ngIf",x.showGridLines)}}const m0=["ngx-charts-x-axis",""];function Rh(f,k){if(1&f){const r=t.EpF();t.O4$(),t.TgZ(0,"g",2),t.NdJ("dimensionsChanged",function(H){t.CHM(r);const Q=t.oxw();return t.KtG(Q.emitTicksHeight(H))}),t.qZA()}if(2&f){const r=t.oxw();t.Q6J("trimTicks",r.trimTicks)("rotateTicks",r.rotateTicks)("maxTickLength",r.maxTickLength)("tickFormatting",r.tickFormatting)("tickArguments",r.tickArguments)("tickStroke",r.tickStroke)("scale",r.xScale)("orient",r.xOrient)("showGridLines",r.showGridLines)("gridLineHeight",r.dims.height)("width",r.dims.width)("tickValues",r.ticks)}}function p0(f,k){if(1&f&&(t.O4$(),t._UZ(0,"g",3)),2&f){const r=t.oxw();t.Q6J("label",r.labelText)("offset",r.labelOffset)("orient",r.orientation.Bottom)("height",r.dims.height)("width",r.dims.width)}}const Nh=["ngx-charts-y-axis-ticks",""];function g0(f,k){if(1&f&&(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&f){const r=k.$implicit,x=t.oxw();t.uIk("transform",x.transform(r)),t.xp6(2),t.Oqu(x.tickFormat(r)),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(r))," ")}}function bl(f,k){if(1&f&&(t.O4$(),t._UZ(0,"path",6)),2&f){const r=t.oxw();t.uIk("d",r.referenceAreaPath)("transform",r.gridLineTransform())}}function Fh(f,k){if(1&f&&(t.O4$(),t._UZ(0,"line",9)),2&f){const r=t.oxw(3);t.uIk("x2",r.gridLineWidth)}}function _0(f,k){if(1&f&&(t.O4$(),t._UZ(0,"line",9)),2&f){const r=t.oxw(3);t.uIk("x2",-r.gridLineWidth)}}function Hh(f,k){if(1&f&&(t.O4$(),t.TgZ(0,"g"),t.YNc(1,Fh,1,1,"line",8),t.YNc(2,_0,1,1,"line",8),t.qZA()),2&f){const r=t.oxw(2);t.uIk("transform",r.gridLineTransform()),t.xp6(1),t.Q6J("ngIf",r.orient===r.Orientation.Left),t.xp6(1),t.Q6J("ngIf",r.orient===r.Orientation.Right)}}function zh(f,k){if(1&f&&(t.O4$(),t.TgZ(0,"g"),t.YNc(1,Hh,3,3,"g",7),t.qZA()),2&f){const r=k.$implicit,x=t.oxw();t.uIk("transform",x.transform(r)),t.xp6(1),t.Q6J("ngIf",x.showGridLines)}}function ts(f,k){if(1&f&&(t.O4$(),t.TgZ(0,"g")(1,"title"),t._uU(2),t.qZA(),t.TgZ(3,"text",11),t._uU(4),t.qZA()()),2&f){const r=t.oxw(2).$implicit,x=t.oxw();t.xp6(2),t.Oqu(x.tickTrim(x.tickFormat(r.value))),t.xp6(1),t.uIk("dy",x.dy)("y",-6)("x",x.gridLineWidth)("text-anchor",x.textAnchor),t.xp6(1),t.hij(" ",r.name," ")}}function v0(f,k){if(1&f&&(t.O4$(),t.TgZ(0,"g"),t._UZ(1,"line",10),t.YNc(2,ts,5,6,"g",7),t.qZA()),2&f){const r=t.oxw().$implicit,x=t.oxw();t.uIk("transform",x.transform(r.value)),t.xp6(1),t.uIk("x2",x.gridLineWidth)("transform",x.gridLineTransform()),t.xp6(1),t.Q6J("ngIf",x.showRefLabels)}}function b0(f,k){if(1&f&&(t.O4$(),t.TgZ(0,"g"),t.YNc(1,v0,3,4,"g",7),t.qZA()),2&f){const r=t.oxw();t.xp6(1),t.Q6J("ngIf",r.showRefLines)}}const Vh=["ngx-charts-y-axis",""];function Bh(f,k){if(1&f){const r=t.EpF();t.O4$(),t.TgZ(0,"g",2),t.NdJ("dimensionsChanged",function(H){t.CHM(r);const Q=t.oxw();return t.KtG(Q.emitTicksWidth(H))}),t.qZA()}if(2&f){const r=t.oxw();t.Q6J("trimTicks",r.trimTicks)("maxTickLength",r.maxTickLength)("tickFormatting",r.tickFormatting)("tickArguments",r.tickArguments)("tickValues",r.ticks)("tickStroke",r.tickStroke)("scale",r.yScale)("orient",r.yOrient)("showGridLines",r.showGridLines)("gridLineWidth",r.dims.width)("referenceLines",r.referenceLines)("showRefLines",r.showRefLines)("showRefLabels",r.showRefLabels)("height",r.dims.height)}}function y0(f,k){if(1&f&&(t.O4$(),t._UZ(0,"g",3)),2&f){const r=t.oxw();t.Q6J("label",r.labelText)("offset",r.labelOffset)("orient",r.yOrient)("height",r.dims.height)("width",r.dims.width)}}const Yl=["ngx-charts-svg-linear-gradient",""];function Rc(f,k){if(1&f&&(t.O4$(),t._UZ(0,"stop")),2&f){const r=k.$implicit;t.Udp("stop-color",r.color)("stop-opacity",r.opacity),t.uIk("offset",r.offset+"%")}}const Zd=["ngx-charts-grid-panel",""],Zh=["ngx-charts-grid-panel-series",""];function Wd(f,k){if(1&f&&(t.O4$(),t._UZ(0,"g",1)),2&f){const r=k.$implicit;t.ekj("grid-panel",!0)("odd","odd"===r.class)("even","even"===r.class),t.Q6J("height",r.height)("width",r.width)("x",r.x)("y",r.y)}}const Zt=["tooltipTemplate"],hn=function(f,k){return[f,k]},Cr=".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",Qd=["ngx-charts-bar",""];function mn(f,k){if(1&f&&(t.O4$(),t.TgZ(0,"defs"),t._UZ(1,"g",2),t.qZA()),2&f){const r=t.oxw();t.xp6(1),t.Q6J("orientation",r.orientation)("name",r.gradientId)("stops",r.gradientStops)}}const Cn=["ngx-charts-bar-label",""],jh=["ngx-charts-series-vertical",""];function Kh(f,k){if(1&f){const r=t.EpF();t.O4$(),t.TgZ(0,"g",2),t.NdJ("select",function(H){t.CHM(r);const Q=t.oxw(2);return t.KtG(Q.onClick(H))})("activate",function(H){t.CHM(r);const Q=t.oxw(2);return t.KtG(Q.activate.emit(H))})("deactivate",function(H){t.CHM(r);const Q=t.oxw(2);return t.KtG(Q.deactivate.emit(H))}),t.qZA()}if(2&f){const r=k.$implicit,x=t.oxw(2);t.Q6J("@animationState","active")("@.disabled",!x.animations)("width",r.width)("height",r.height)("x",r.x)("y",r.y)("fill",r.color)("stops",r.gradientStops)("data",r.data)("orientation",x.barOrientation.Vertical)("roundEdges",r.roundEdges)("gradient",x.gradient)("ariaLabel",r.ariaLabel)("isActive",x.isActive(r.data))("tooltipDisabled",x.tooltipDisabled)("tooltipPlacement",x.tooltipPlacement)("tooltipType",x.tooltipType)("tooltipTitle",x.tooltipTemplate?void 0:r.tooltipText)("tooltipTemplate",x.tooltipTemplate)("tooltipContext",r.data)("noBarWhenZero",x.noBarWhenZero)("animations",x.animations)}}function Af(f,k){if(1&f&&(t.O4$(),t.TgZ(0,"g"),t.YNc(1,Kh,1,22,"g",1),t.qZA()),2&f){const r=t.oxw();t.xp6(1),t.Q6J("ngForOf",r.bars)("ngForTrackBy",r.trackBy)}}function u3(f,k){if(1&f){const r=t.EpF();t.O4$(),t.TgZ(0,"g",2),t.NdJ("select",function(H){t.CHM(r);const Q=t.oxw(2);return t.KtG(Q.onClick(H))})("activate",function(H){t.CHM(r);const Q=t.oxw(2);return t.KtG(Q.activate.emit(H))})("deactivate",function(H){t.CHM(r);const Q=t.oxw(2);return t.KtG(Q.deactivate.emit(H))}),t.qZA()}if(2&f){const r=k.$implicit,x=t.oxw(2);t.Q6J("width",r.width)("height",r.height)("x",r.x)("y",r.y)("fill",r.color)("stops",r.gradientStops)("data",r.data)("orientation",x.barOrientation.Vertical)("roundEdges",r.roundEdges)("gradient",x.gradient)("ariaLabel",r.ariaLabel)("isActive",x.isActive(r.data))("tooltipDisabled",x.tooltipDisabled)("tooltipPlacement",x.tooltipPlacement)("tooltipType",x.tooltipType)("tooltipTitle",x.tooltipTemplate?void 0:r.tooltipText)("tooltipTemplate",x.tooltipTemplate)("tooltipContext",r.data)("noBarWhenZero",x.noBarWhenZero)("animations",x.animations)}}function Lf(f,k){if(1&f&&(t.O4$(),t.TgZ(0,"g"),t.YNc(1,u3,1,20,"g",1),t.qZA()),2&f){const r=t.oxw();t.xp6(1),t.Q6J("ngForOf",r.bars)("ngForTrackBy",r.trackBy)}}function f3(f,k){if(1&f){const r=t.EpF();t.O4$(),t.TgZ(0,"g",4),t.NdJ("dimensionsChanged",function(H){const Te=t.CHM(r).index,st=t.oxw(2);return t.KtG(st.dataLabelHeightChanged.emit({size:H,index:Te}))}),t.qZA()}if(2&f){const r=k.$implicit,x=t.oxw(2);t.Q6J("barX",r.x)("barY",r.y)("barWidth",r.width)("barHeight",r.height)("value",r.total)("valueFormatting",x.dataLabelFormatting)("orientation",x.barOrientation.Vertical)}}function Df(f,k){if(1&f&&(t.O4$(),t.TgZ(0,"g"),t.YNc(1,f3,1,7,"g",3),t.qZA()),2&f){const r=t.oxw();t.xp6(1),t.Q6J("ngForOf",r.barsForDataLabels)("ngForTrackBy",r.trackDataLabelBy)}}function m3(f,k){if(1&f){const r=t.EpF();t.O4$(),t.TgZ(0,"g",5),t.NdJ("dimensionsChanged",function(H){t.CHM(r);const Q=t.oxw();return t.KtG(Q.updateXAxisHeight(H))}),t.qZA()}if(2&f){const r=t.oxw();t.Q6J("xScale",r.xScale)("dims",r.dims)("showGridLines",r.showGridLines)("showLabel",r.showXAxisLabel)("labelText",r.xAxisLabel)("trimTicks",r.trimXAxisTicks)("rotateTicks",r.rotateXAxisTicks)("maxTickLength",r.maxXAxisTickLength)("tickFormatting",r.xAxisTickFormatting)("ticks",r.xAxisTicks)("xAxisOffset",r.dataLabelMaxHeight.negative)}}function Qh(f,k){if(1&f){const r=t.EpF();t.O4$(),t.TgZ(0,"g",6),t.NdJ("dimensionsChanged",function(H){t.CHM(r);const Q=t.oxw();return t.KtG(Q.updateYAxisWidth(H))}),t.qZA()}if(2&f){const r=t.oxw();t.Q6J("yScale",r.yScale)("dims",r.dims)("showGridLines",r.showGridLines)("showLabel",r.showYAxisLabel)("labelText",r.yAxisLabel)("trimTicks",r.trimYAxisTicks)("maxTickLength",r.maxYAxisTickLength)("tickFormatting",r.yAxisTickFormatting)("ticks",r.yAxisTicks)}}function If(f,k){if(1&f){const r=t.EpF();t.O4$(),t.TgZ(0,"g",6),t.NdJ("dimensionsChanged",function(H){t.CHM(r);const Q=t.oxw();return t.KtG(Q.updateXAxisHeight(H))}),t.qZA()}if(2&f){const r=t.oxw();t.Q6J("xScale",r.groupScale)("dims",r.dims)("showLabel",r.showXAxisLabel)("labelText",r.xAxisLabel)("trimTicks",r.trimXAxisTicks)("rotateTicks",r.rotateXAxisTicks)("maxTickLength",r.maxXAxisTickLength)("tickFormatting",r.xAxisTickFormatting)("ticks",r.xAxisTicks)("xAxisOffset",r.dataLabelMaxHeight.negative)}}function qh(f,k){if(1&f){const r=t.EpF();t.O4$(),t.TgZ(0,"g",7),t.NdJ("dimensionsChanged",function(H){t.CHM(r);const Q=t.oxw();return t.KtG(Q.updateYAxisWidth(H))}),t.qZA()}if(2&f){const r=t.oxw();t.Q6J("yScale",r.valueScale)("dims",r.dims)("showGridLines",r.showGridLines)("showLabel",r.showYAxisLabel)("labelText",r.yAxisLabel)("trimTicks",r.trimYAxisTicks)("maxTickLength",r.maxYAxisTickLength)("tickFormatting",r.yAxisTickFormatting)("ticks",r.yAxisTicks)}}function kf(f,k){if(1&f){const r=t.EpF();t.O4$(),t.TgZ(0,"g",9),t.NdJ("select",function(H){const Te=t.CHM(r).$implicit,st=t.oxw(2);return t.KtG(st.onClick(H,Te))})("activate",function(H){const Te=t.CHM(r).$implicit,st=t.oxw(2);return t.KtG(st.onActivate(H,Te))})("deactivate",function(H){const Te=t.CHM(r).$implicit,st=t.oxw(2);return t.KtG(st.onDeactivate(H,Te))})("dataLabelHeightChanged",function(H){const Te=t.CHM(r).index,st=t.oxw(2);return t.KtG(st.onDataLabelMaxHeightChanged(H,Te))}),t.qZA()}if(2&f){const r=k.$implicit,x=t.oxw(2);t.Q6J("@animationState","active")("activeEntries",x.activeEntries)("xScale",x.innerScale)("yScale",x.valueScale)("colors",x.colors)("series",r.series)("dims",x.dims)("gradient",x.gradient)("tooltipDisabled",x.tooltipDisabled)("tooltipTemplate",x.tooltipTemplate)("showDataLabel",x.showDataLabel)("dataLabelFormatting",x.dataLabelFormatting)("seriesName",r.name)("roundEdges",x.roundEdges)("animations",x.animations)("noBarWhenZero",x.noBarWhenZero),t.uIk("transform",x.groupTransform(r))}}function Of(f,k){if(1&f&&(t.O4$(),t.TgZ(0,"g"),t.YNc(1,kf,1,17,"g",8),t.qZA()),2&f){const r=t.oxw();t.xp6(1),t.Q6J("ngForOf",r.results)("ngForTrackBy",r.trackBy)}}function Pf(f,k){if(1&f){const r=t.EpF();t.O4$(),t.TgZ(0,"g",9),t.NdJ("select",function(H){const Te=t.CHM(r).$implicit,st=t.oxw(2);return t.KtG(st.onClick(H,Te))})("activate",function(H){const Te=t.CHM(r).$implicit,st=t.oxw(2);return t.KtG(st.onActivate(H,Te))})("deactivate",function(H){const Te=t.CHM(r).$implicit,st=t.oxw(2);return t.KtG(st.onDeactivate(H,Te))})("dataLabelHeightChanged",function(H){const Te=t.CHM(r).index,st=t.oxw(2);return t.KtG(st.onDataLabelMaxHeightChanged(H,Te))}),t.qZA()}if(2&f){const r=k.$implicit,x=t.oxw(2);t.Q6J("activeEntries",x.activeEntries)("xScale",x.innerScale)("yScale",x.valueScale)("colors",x.colors)("series",r.series)("dims",x.dims)("gradient",x.gradient)("tooltipDisabled",x.tooltipDisabled)("tooltipTemplate",x.tooltipTemplate)("showDataLabel",x.showDataLabel)("dataLabelFormatting",x.dataLabelFormatting)("seriesName",r.name)("roundEdges",x.roundEdges)("animations",x.animations)("noBarWhenZero",x.noBarWhenZero),t.uIk("transform",x.groupTransform(r))}}function js(f,k){if(1&f&&(t.O4$(),t.TgZ(0,"g"),t.YNc(1,Pf,1,16,"g",8),t.qZA()),2&f){const r=t.oxw();t.xp6(1),t.Q6J("ngForOf",r.results)("ngForTrackBy",r.trackBy)}}function du(f,k,r){r=r||{};let x,H,Q,Te=null,st=0;function Qt(){st=!1===r.leading?0:+new Date,Te=null,Q=f.apply(x,H)}return function(){const Kt=+new Date;!st&&!1===r.leading&&(st=Kt);const ci=k-(Kt-st);return x=this,H=arguments,ci<=0?(clearTimeout(Te),Te=null,st=Kt,Q=f.apply(x,H)):!Te&&!1!==r.trailing&&(Te=setTimeout(Qt,ci)),Q}}function hu(f,k){return function(x,H,Q){return{configurable:!0,enumerable:Q.enumerable,get:function(){return Object.defineProperty(this,H,{configurable:!0,enumerable:Q.enumerable,value:du(Q.value,f,k)}),this[H]}}}}var Qn=(()=>{return(f=Qn||(Qn={})).Top="top",f.Bottom="bottom",f.Left="left",f.Right="right",f.Center="center",Qn;var f})();function k0(f,k,r){return r===Qn.Top?f.top-7:r===Qn.Bottom?f.top+f.height-k.height+7:r===Qn.Center?f.top+f.height/2-k.height/2:void 0}function uu(f,k,r){return r===Qn.Left?f.left-7:r===Qn.Right?f.left+f.width-k.width+7:r===Qn.Center?f.left+f.width/2-k.width/2:void 0}class Uo{static calculateVerticalAlignment(k,r,x){let H=k0(k,r,x);return H+r.height>window.innerHeight&&(H=window.innerHeight-r.height),H}static calculateVerticalCaret(k,r,x,H){let Q;H===Qn.Top&&(Q=k.height/2-x.height/2+7),H===Qn.Bottom&&(Q=r.height-k.height/2-x.height/2-7),H===Qn.Center&&(Q=r.height/2-x.height/2);const Te=k0(k,r,H);return Te+r.height>window.innerHeight&&(Q+=Te+r.height-window.innerHeight),Q}static calculateHorizontalAlignment(k,r,x){let H=uu(k,r,x);return H+r.width>window.innerWidth&&(H=window.innerWidth-r.width),H}static calculateHorizontalCaret(k,r,x,H){let Q;H===Qn.Left&&(Q=k.width/2-x.width/2+7),H===Qn.Right&&(Q=r.width-k.width/2-x.width/2-7),H===Qn.Center&&(Q=r.width/2-x.width/2);const Te=uu(k,r,H);return Te+r.width>window.innerWidth&&(Q+=Te+r.width-window.innerWidth),Q}static shouldFlip(k,r,x,H){let Q=!1;return x===Qn.Right&&k.left+k.width+r.width+H>window.innerWidth&&(Q=!0),x===Qn.Left&&k.left-r.width-H<0&&(Q=!0),x===Qn.Top&&k.top-r.height-H<0&&(Q=!0),x===Qn.Bottom&&k.top+k.height+r.height+H>window.innerHeight&&(Q=!0),Q}static positionCaret(k,r,x,H,Q){let Te=0,st=0;return k===Qn.Right?(st=-7,Te=Uo.calculateVerticalCaret(x,r,H,Q)):k===Qn.Left?(st=r.width,Te=Uo.calculateVerticalCaret(x,r,H,Q)):k===Qn.Top?(Te=r.height,st=Uo.calculateHorizontalCaret(x,r,H,Q)):k===Qn.Bottom&&(Te=-7,st=Uo.calculateHorizontalCaret(x,r,H,Q)),{top:Te,left:st}}static positionContent(k,r,x,H,Q){let Te=0,st=0;return k===Qn.Right?(st=x.left+x.width+H,Te=Uo.calculateVerticalAlignment(x,r,Q)):k===Qn.Left?(st=x.left-r.width-H,Te=Uo.calculateVerticalAlignment(x,r,Q)):k===Qn.Top?(Te=x.top-r.height-H,st=Uo.calculateHorizontalAlignment(x,r,Q)):k===Qn.Bottom&&(Te=x.top+x.height+H,st=Uo.calculateHorizontalAlignment(x,r,Q)),{top:Te,left:st}}static determinePlacement(k,r,x,H){if(Uo.shouldFlip(x,r,k,H)){if(k===Qn.Right)return Qn.Left;if(k===Qn.Left)return Qn.Right;if(k===Qn.Top)return Qn.Bottom;if(k===Qn.Bottom)return Qn.Top}return k}}let R3=(()=>{class f{constructor(r,x,H){this.element=r,this.renderer=x,this.platformId=H}get cssClasses(){let r="ngx-charts-tooltip-content";return r+=` position-${this.placement}`,r+=` type-${this.type}`,r+=` ${this.cssClass}`,r}ngAfterViewInit(){setTimeout(this.position.bind(this))}position(){if(!(0,e.NF)(this.platformId))return;const r=this.element.nativeElement,x=this.host.nativeElement.getBoundingClientRect();if(!x.height&&!x.width)return;const H=r.getBoundingClientRect();this.checkFlip(x,H),this.positionContent(r,x,H),this.showCaret&&this.positionCaret(x,H),setTimeout(()=>this.renderer.addClass(r,"animate"),1)}positionContent(r,x,H){const{top:Q,left:Te}=Uo.positionContent(this.placement,H,x,this.spacing,this.alignment);this.renderer.setStyle(r,"top",`${Q}px`),this.renderer.setStyle(r,"left",`${Te}px`)}positionCaret(r,x){const H=this.caretElm.nativeElement,Q=H.getBoundingClientRect(),{top:Te,left:st}=Uo.positionCaret(this.placement,x,r,Q,this.alignment);this.renderer.setStyle(H,"top",`${Te}px`),this.renderer.setStyle(H,"left",`${st}px`)}checkFlip(r,x){this.placement=Uo.determinePlacement(this.placement,x,r,this.spacing)}onWindowResize(){this.position()}}return f.\u0275fac=function(r){return new(r||f)(t.Y36(t.SBq),t.Y36(t.Qsj),t.Y36(t.Lbi))},f.\u0275cmp=t.Xpm({type:f,selectors:[["ngx-tooltip-content"]],viewQuery:function(r,x){if(1&r&&t.Gf(A1,5),2&r){let H;t.iGM(H=t.CRH())&&(x.caretElm=H.first)}},hostVars:2,hostBindings:function(r,x){1&r&&t.NdJ("resize",function(){return x.onWindowResize()},!1,t.Jf7),2&r&&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(r,x){1&r&&(t.TgZ(0,"div"),t._UZ(1,"span",0,1),t.TgZ(3,"div",2),t.YNc(4,zd,2,4,"span",3),t.YNc(5,gl,1,1,"span",4),t.qZA()()),2&r&&(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))},dependencies:[e.O5,e.tP],styles:[".ngx-charts-tooltip-content{position:fixed;border-radius:3px;z-index:5000;display:block;font-weight:400;opacity:0;pointer-events:none!important}.ngx-charts-tooltip-content.type-popover{background:#fff;color:#060709;border:1px solid #72809b;box-shadow:0 1px 3px #0003,0 1px 1px #00000024,0 2px 1px -1px #0000001f;font-size:13px;padding:4px}.ngx-charts-tooltip-content.type-popover .tooltip-caret{position:absolute;z-index:5001;width:0;height:0}.ngx-charts-tooltip-content.type-popover .tooltip-caret.position-left{border-top:7px solid transparent;border-bottom:7px solid transparent;border-left:7px solid #fff}.ngx-charts-tooltip-content.type-popover .tooltip-caret.position-top{border-left:7px solid transparent;border-right:7px solid transparent;border-top:7px solid #fff}.ngx-charts-tooltip-content.type-popover .tooltip-caret.position-right{border-top:7px solid transparent;border-bottom:7px solid transparent;border-right:7px solid #fff}.ngx-charts-tooltip-content.type-popover .tooltip-caret.position-bottom{border-left:7px solid transparent;border-right:7px solid transparent;border-bottom:7px solid #fff}.ngx-charts-tooltip-content.type-tooltip{color:#fff;background:rgba(0,0,0,.75);font-size:12px;padding:0 10px;text-align:center;pointer-events:auto}.ngx-charts-tooltip-content.type-tooltip .tooltip-caret.position-left{border-top:7px solid transparent;border-bottom:7px solid transparent;border-left:7px solid rgba(0,0,0,.75)}.ngx-charts-tooltip-content.type-tooltip .tooltip-caret.position-top{border-left:7px solid transparent;border-right:7px solid transparent;border-top:7px solid rgba(0,0,0,.75)}.ngx-charts-tooltip-content.type-tooltip .tooltip-caret.position-right{border-top:7px solid transparent;border-bottom:7px solid transparent;border-right:7px solid rgba(0,0,0,.75)}.ngx-charts-tooltip-content.type-tooltip .tooltip-caret.position-bottom{border-left:7px solid transparent;border-right:7px solid transparent;border-bottom:7px solid rgba(0,0,0,.75)}.ngx-charts-tooltip-content .tooltip-label{display:block;line-height:1em;padding:8px 5px 5px;font-size:1em}.ngx-charts-tooltip-content .tooltip-val{display:block;font-size:1.3em;line-height:1em;padding:0 5px 8px}.ngx-charts-tooltip-content .tooltip-caret{position:absolute;z-index:5001;width:0;height:0}.ngx-charts-tooltip-content.position-right{transform:translate(10px)}.ngx-charts-tooltip-content.position-left{transform:translate(-10px)}.ngx-charts-tooltip-content.position-top{transform:translateY(-10px)}.ngx-charts-tooltip-content.position-bottom{transform:translateY(10px)}.ngx-charts-tooltip-content.animate{opacity:1;transition:opacity .3s,transform .3s;transform:translate(0);pointer-events:auto}.area-tooltip-container{padding:5px 0;pointer-events:none}.tooltip-item{text-align:left;line-height:1.2em;padding:5px 0}.tooltip-item .tooltip-item-color{display:inline-block;height:12px;width:12px;margin-right:5px;color:#5b646b;border-radius:3px}\n"],encapsulation:2}),(0,b.gn)([hu(100)],f.prototype,"onWindowResize",null),f})();class N3{constructor(k){this.injectionService=k,this.defaults={},this.components=new Map}getByType(k=this.type){return this.components.get(k)}create(k){return this.createByType(this.type,k)}createByType(k,r){r=this.assignDefaults(r);const x=this.injectComponent(k,r);return this.register(k,x),x}destroy(k){const r=this.components.get(k.componentType);if(r&&r.length){const x=r.indexOf(k);x>-1&&(r[x].destroy(),r.splice(x,1))}}destroyAll(){this.destroyByType(this.type)}destroyByType(k){const r=this.components.get(k);if(r&&r.length){let x=r.length-1;for(;x>=0;)this.destroy(r[x--])}}injectComponent(k,r){return this.injectionService.appendComponent(k,r)}assignDefaults(k){const r={...this.defaults.inputs},x={...this.defaults.outputs};return!k.inputs&&!k.outputs&&(k={inputs:k}),r&&(k.inputs={...r,...k.inputs}),x&&(k.outputs={...x,...k.outputs}),k}register(k,r){this.components.has(k)||this.components.set(k,[]),this.components.get(k).push(r)}}let F3=(()=>{class f{constructor(r,x,H){this.applicationRef=r,this.componentFactoryResolver=x,this.injector=H}static setGlobalRootViewContainer(r){f.globalRootViewContainer=r}getRootViewContainer(){if(this._container)return this._container;if(f.globalRootViewContainer)return f.globalRootViewContainer;if(this.applicationRef.components.length)return this.applicationRef.components[0];throw new Error("View Container not found! ngUpgrade needs to manually set this via setRootViewContainer or setGlobalRootViewContainer.")}setRootViewContainer(r){this._container=r}getComponentRootNode(r){return function O0(f){return f.element}(r)?r.element.nativeElement:r.hostView&&r.hostView.rootNodes.length>0?r.hostView.rootNodes[0]:r.location.nativeElement}getRootViewContainerNode(r){return this.getComponentRootNode(r)}projectComponentBindings(r,x){if(x){if(void 0!==x.inputs){const H=Object.getOwnPropertyNames(x.inputs);for(const Q of H)r.instance[Q]=x.inputs[Q]}if(void 0!==x.outputs){const H=Object.getOwnPropertyNames(x.outputs);for(const Q of H)r.instance[Q]=x.outputs[Q]}}return r}appendComponent(r,x={},H){H||(H=this.getRootViewContainer());const Q=this.getComponentRootNode(H),Te=new I.u0(Q,this.componentFactoryResolver,this.applicationRef,this.injector),st=new I.C5(r),Qt=Te.attach(st);return this.projectComponentBindings(Qt,x),Qt}}return f.globalRootViewContainer=null,f.\u0275fac=function(r){return new(r||f)(t.LFG(t.z2F),t.LFG(t._Vd),t.LFG(t.zs3))},f.\u0275prov=t.Yz7({token:f,factory:f.\u0275fac}),f})(),P0=(()=>{class f extends N3{constructor(r){super(r),this.type=R3}}return f.\u0275fac=function(r){return new(r||f)(t.LFG(F3))},f.\u0275prov=t.Yz7({token:f,factory:f.\u0275fac}),f})();var Cs=(()=>{return(f=Cs||(Cs={})).Right="right",f.Below="below",Cs;var f})(),pc=(()=>{return(f=pc||(pc={})).ScaleLegend="scaleLegend",f.Legend="legend",pc;var f})(),yn=(()=>{return(f=yn||(yn={})).Time="time",f.Linear="linear",f.Ordinal="ordinal",f.Quantile="quantile",yn;var f})();let R0=(()=>{class f{constructor(){this.horizontal=!1}ngOnChanges(r){const x=this.gradientString(this.colors.range(),this.colors.domain());this.gradient=`linear-gradient(to ${this.horizontal?"right":"bottom"}, ${x})`}gradientString(r,x){x.push(1);const H=[];return r.reverse().forEach((Q,Te)=>{H.push(`${Q} ${Math.round(100*x[Te])}%`)}),H.join(", ")}}return f.\u0275fac=function(r){return new(r||f)},f.\u0275cmp=t.Xpm({type:f,selectors:[["ngx-charts-scale-legend"]],inputs:{valueRange:"valueRange",colors:"colors",height:"height",width:"width",horizontal:"horizontal"},features:[t.TTD],decls:8,vars:10,consts:[[1,"scale-legend"],[1,"scale-legend-label"],[1,"scale-legend-wrap"]],template:function(r,x){1&r&&(t.TgZ(0,"div",0)(1,"div",1)(2,"span"),t._uU(3),t.qZA()(),t._UZ(4,"div",2),t.TgZ(5,"div",1)(6,"span"),t._uU(7),t.qZA()()()),2&r&&(t.Udp("height",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}),f})();function Kl(f){return f instanceof Date?f.toLocaleDateString():f.toLocaleString()}let fu=(()=>{class f{constructor(){this.isActive=!1,this.select=new t.vpe,this.activate=new t.vpe,this.deactivate=new t.vpe,this.toggle=new t.vpe}get trimmedLabel(){return this.formattedLabel||"(empty)"}onMouseEnter(){this.activate.emit({name:this.label})}onMouseLeave(){this.deactivate.emit({name:this.label})}}return f.\u0275fac=function(r){return new(r||f)},f.\u0275cmp=t.Xpm({type:f,selectors:[["ngx-charts-legend-entry"]],hostBindings:function(r,x){1&r&&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(r,x){1&r&&(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&r&&(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}),f})(),F0=(()=>{class f{constructor(r){this.cd=r,this.horizontal=!1,this.labelClick=new t.vpe,this.labelActivate=new t.vpe,this.labelDeactivate=new t.vpe,this.legendEntries=[]}ngOnChanges(r){this.update()}update(){this.cd.markForCheck(),this.legendEntries=this.getLegendEntries()}getLegendEntries(){const r=[];for(const x of this.data){const H=Kl(x);-1===r.findIndex(Te=>Te.label===H)&&r.push({label:x,formattedLabel:H,color:this.colors.getColor(x)})}return r}isActive(r){return!!this.activeEntries&&void 0!==this.activeEntries.find(H=>r.label===H.name)}activate(r){this.labelActivate.emit(r)}deactivate(r){this.labelDeactivate.emit(r)}trackBy(r,x){return x.label}}return f.\u0275fac=function(r){return new(r||f)(t.Y36(t.sBO))},f.\u0275cmp=t.Xpm({type:f,selectors:[["ngx-charts-legend"]],inputs:{data:"data",title:"title",colors:"colors",height:"height",width:"width",activeEntries:"activeEntries",horizontal:"horizontal"},outputs:{labelClick:"labelClick",labelActivate:"labelActivate",labelDeactivate:"labelDeactivate"},features:[t.TTD],decls:5,vars:9,consts:[["class","legend-title",4,"ngIf"],[1,"legend-wrap"],[1,"legend-labels"],["class","legend-label",4,"ngFor","ngForOf","ngForTrackBy"],[1,"legend-title"],[1,"legend-title-text"],[1,"legend-label"],[3,"label","formattedLabel","color","isActive","select","activate","deactivate"]],template:function(r,x){1&r&&(t.TgZ(0,"div"),t.YNc(1,Dh,3,1,"header",0),t.TgZ(2,"div",1)(3,"ul",2),t.YNc(4,Ih,2,4,"li",3),t.qZA()()()),2&r&&(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))},dependencies:[fu,e.O5,e.sg],styles:[".chart-legend{display:inline-block;padding:0;width:auto!important}.chart-legend .legend-title{white-space:nowrap;overflow:hidden;margin-left:10px;margin-bottom:5px;font-size:14px;font-weight:700}.chart-legend ul,.chart-legend li{padding:0;margin:0;list-style:none}.chart-legend .horizontal-legend li{display:inline-block}.chart-legend .legend-wrap{width:calc(100% - 10px)}.chart-legend .legend-labels{line-height:85%;list-style:none;text-align:left;float:left;width:100%;border-radius:3px;overflow-y:auto;overflow-x:hidden;white-space:nowrap;background:rgba(0,0,0,.05)}.chart-legend .legend-label{cursor:pointer;font-size:90%;margin:8px;color:#afb7c8}.chart-legend .legend-label:hover{color:#000;transition:.2s}.chart-legend .legend-label .active .legend-label-text{color:#000}.chart-legend .legend-label-color{display:inline-block;height:15px;width:15px;margin-right:5px;color:#5b646b;border-radius:3px}.chart-legend .legend-label-text{display:inline-block;vertical-align:top;line-height:15px;font-size:12px;width:calc(100% - 20px);text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.chart-legend .legend-title-text{vertical-align:bottom;display:inline-block;line-height:16px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}\n"],encapsulation:2,changeDetection:0}),f})(),H0=(()=>{class f{constructor(){this.showLegend=!1,this.animations=!0,this.legendLabelClick=new t.vpe,this.legendLabelActivate=new t.vpe,this.legendLabelDeactivate=new t.vpe,this.LegendPosition=Cs,this.LegendType=pc}ngOnChanges(r){this.update()}update(){let r=0;this.showLegend&&(this.legendType=this.getLegendType(),(!this.legendOptions||this.legendOptions.position===Cs.Right)&&(r=this.legendType===pc.ScaleLegend?1:2)),this.chartWidth=Math.floor(this.view[0]*(12-r)/12),this.legendWidth=this.legendOptions&&this.legendOptions.position!==Cs.Right?this.chartWidth:Math.floor(this.view[0]*r/12)}getLegendType(){return this.legendOptions.scaleType===yn.Linear?pc.ScaleLegend:pc.Legend}}return f.\u0275fac=function(r){return new(r||f)},f.\u0275cmp=t.Xpm({type:f,selectors:[["ngx-charts-chart"]],inputs:{view:"view",showLegend:"showLegend",legendOptions:"legendOptions",legendType:"legendType",activeEntries:"activeEntries",animations:"animations"},outputs:{legendLabelClick:"legendLabelClick",legendLabelActivate:"legendLabelActivate",legendLabelDeactivate:"legendLabelDeactivate"},features:[t._Bn([P0]),t.TTD],ngContentSelectors:Vd,decls:5,vars:8,consts:[[1,"ngx-charts-outer"],[1,"ngx-charts"],["class","chart-legend",3,"horizontal","valueRange","colors","height","width",4,"ngIf"],["class","chart-legend",3,"horizontal","data","title","colors","height","width","activeEntries","labelClick","labelActivate","labelDeactivate",4,"ngIf"],[1,"chart-legend",3,"horizontal","valueRange","colors","height","width"],[1,"chart-legend",3,"horizontal","data","title","colors","height","width","activeEntries","labelClick","labelActivate","labelDeactivate"]],template:function(r,x){1&r&&(t.F$t(),t.TgZ(0,"div",0),t.O4$(),t.TgZ(1,"svg",1),t.Hsn(2),t.qZA(),t.YNc(3,f0,1,5,"ngx-charts-scale-legend",2),t.YNc(4,kh,1,7,"ngx-charts-legend",3),t.qZA()),2&r&&(t.Udp("width",x.view[0],"px")("height",x.view[1],"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))},dependencies:[R0,F0,e.O5],encapsulation:2,changeDetection:0}),f})(),H3=(()=>{class f{constructor(r,x){this.element=r,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 r=()=>{if(!this.element)return;const{offsetHeight:x,offsetWidth:H}=this.element.nativeElement;x&&H?(clearTimeout(this.timeout),this.onVisibilityChange()):(clearTimeout(this.timeout),this.zone.runOutsideAngular(()=>{this.timeout=setTimeout(()=>r(),100)}))};this.zone.runOutsideAngular(()=>{this.timeout=setTimeout(()=>r())})}}return f.\u0275fac=function(r){return new(r||f)(t.Y36(t.SBq),t.Y36(t.R0b))},f.\u0275dir=t.lG2({type:f,selectors:[["visibility-observer"]],outputs:{visible:"visible"}}),f})();function mu(f){return"[object Date]"===toString.call(f)}let Ks=(()=>{class f{constructor(r,x,H,Q){this.chartElement=r,this.zone=x,this.cd=H,this.platformId=Q,this.scheme="cool",this.schemeType=yn.Ordinal,this.animations=!0,this.select=new t.vpe}ngOnInit(){(0,e.PM)(this.platformId)&&(this.animations=!1)}ngAfterViewInit(){this.bindWindowResizeEvent(),this.visibilityObserver=new H3(this.chartElement,this.zone),this.visibilityObserver.visible.subscribe(this.update.bind(this))}ngOnDestroy(){this.unbindEvents(),this.visibilityObserver&&(this.visibilityObserver.visible.unsubscribe(),this.visibilityObserver.destroy())}ngOnChanges(r){this.update()}update(){if(this.results=this.results?this.cloneData(this.results):[],this.view)this.width=this.view[0],this.height=this.view[1];else{const r=this.getContainerDims();r&&(this.width=r.width,this.height=r.height)}this.width||(this.width=600),this.height||(this.height=400),this.width=Math.floor(this.width),this.height=Math.floor(this.height),this.cd&&this.cd.markForCheck()}getContainerDims(){let r,x;const H=this.chartElement.nativeElement;if((0,e.NF)(this.platformId)&&null!==H.parentNode){const Q=H.parentNode.getBoundingClientRect();r=Q.width,x=Q.height}return r&&x?{width:r,height:x}:null}formatDates(){for(let r=0;r<this.results.length;r++){const x=this.results[r];if(x.label=x.name,mu(x.label)&&(x.label=x.label.toLocaleDateString()),x.series)for(let H=0;H<x.series.length;H++){const Q=x.series[H];Q.label=Q.name,mu(Q.label)&&(Q.label=Q.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,C.b)(200)).subscribe(H=>{this.update(),this.cd&&this.cd.markForCheck()});this.resizeSubscription=x}cloneData(r){const x=[];for(const H of r){const Q={name:H.name};if(void 0!==H.value&&(Q.value=H.value),void 0!==H.series){Q.series=[];for(const Te of H.series){const st=Object.assign({},Te);Q.series.push(st)}}void 0!==H.extra&&(Q.extra=JSON.parse(JSON.stringify(H.extra))),x.push(Q)}return x}}return f.\u0275fac=function(r){return new(r||f)(t.Y36(t.SBq),t.Y36(t.R0b),t.Y36(t.sBO),t.Y36(t.Lbi))},f.\u0275cmp=t.Xpm({type:f,selectors:[["base-chart"]],inputs:{results:"results",view:"view",scheme:"scheme",schemeType:"schemeType",customColors:"customColors",animations:"animations"},outputs:{select:"select"},features:[t.TTD],decls:1,vars:0,template:function(r,x){1&r&&t._UZ(0,"div")},encapsulation:2}),f})();var zr=(()=>{return(f=zr||(zr={})).Top="top",f.Bottom="bottom",f.Left="left",f.Right="right",zr;var f})();let z3=(()=>{class f{constructor(r){this.textHeight=25,this.margin=5,this.element=r.nativeElement}ngOnChanges(r){this.update()}update(){switch(this.strokeWidth="0.01",this.textAnchor="middle",this.transform="",this.orient){case zr.Top:case zr.Bottom:this.y=this.offset,this.x=this.width/2;break;case zr.Left:this.y=-(this.offset+this.textHeight+this.margin),this.x=-this.height/2,this.transform="rotate(270)";break;case zr.Right:this.y=this.offset+this.margin,this.x=-this.height/2,this.transform="rotate(270)"}}}return f.\u0275fac=function(r){return new(r||f)(t.Y36(t.SBq))},f.\u0275cmp=t.Xpm({type:f,selectors:[["g","ngx-charts-axis-label",""]],inputs:{orient:"orient",label:"label",offset:"offset",width:"width",height:"height"},features:[t.TTD],attrs:Oh,decls:2,vars:6,template:function(r,x){1&r&&(t.O4$(),t.TgZ(0,"text"),t._uU(1),t.qZA()),2&r&&(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}),f})();function a2(f,k=16){return"string"!=typeof f?"number"==typeof f?f+"":"":(f=f.trim()).length<=k?f:`${f.slice(0,k)}...`}function xl(f,k){if(f.length>k){const r=[],x=Math.floor(f.length/k);for(let H=0;H<f.length;H++)H%x==0&&r.push(f[H]);f=r}return f}var Go=(()=>{return(f=Go||(Go={})).Start="start",f.Middle="middle",f.End="end",Go;var f})();let pu=(()=>{class f{constructor(r){this.platformId=r,this.tickArguments=[5],this.tickStroke="#ccc",this.trimTicks=!0,this.maxTickLength=16,this.showGridLines=!1,this.rotateTicks=!0,this.dimensionsChanged=new t.vpe,this.verticalSpacing=20,this.rotateLabels=!1,this.innerTickSize=6,this.outerTickSize=6,this.tickPadding=3,this.textAnchor=Go.Middle,this.maxTicksLength=0,this.maxAllowedLength=16,this.height=0,this.approxHeight=10}ngOnChanges(r){this.update()}ngAfterViewInit(){setTimeout(()=>this.updateDims())}updateDims(){if(!(0,e.NF)(this.platformId))return void this.dimensionsChanged.emit({height:this.approxHeight});const r=parseInt(this.ticksElement.nativeElement.getBoundingClientRect().height,10);r!==this.height&&(this.height=r,this.dimensionsChanged.emit({height:this.height}),setTimeout(()=>this.updateDims()))}update(){const r=this.scale;this.ticks=this.getTicks(),this.tickFormat=this.tickFormatting?this.tickFormatting:r.tickFormat?r.tickFormat.apply(r,this.tickArguments):function(H){return"Date"===H.constructor.name?H.toLocaleDateString():H.toLocaleString()};const x=this.rotateTicks?this.getRotationAngle(this.ticks):null;this.adjustedScale=this.scale.bandwidth?function(H){return this.scale(H)+.5*this.scale.bandwidth()}:this.scale,this.textTransform="",x&&0!==x?(this.textTransform=`rotate(${x})`,this.textAnchor=Go.End,this.verticalSpacing=10):this.textAnchor=Go.Middle,setTimeout(()=>this.updateDims())}getRotationAngle(r){let x=0;this.maxTicksLength=0;for(let Kt=0;Kt<r.length;Kt++){const ci=this.tickFormat(r[Kt]).toString();let vi=ci.length;this.trimTicks&&(vi=this.tickTrim(ci).length),vi>this.maxTicksLength&&(this.maxTicksLength=vi)}const Te=7*Math.min(this.maxTicksLength,this.maxAllowedLength);let st=Te;const Qt=Math.floor(this.width/r.length);for(;st>Qt&&x>-90;)x-=30,st=Math.cos(x*(Math.PI/180))*Te;return this.approxHeight=Math.max(Math.abs(Math.sin(x*(Math.PI/180))*Te),10),x}getTicks(){let r;const x=this.getMaxTicks(20),H=this.getMaxTicks(100);return this.tickValues?r=this.tickValues:this.scale.ticks?r=this.scale.ticks.apply(this.scale,[H]):(r=this.scale.domain(),r=xl(r,x)),r}getMaxTicks(r){return Math.floor(this.width/r)}tickTransform(r){return"translate("+this.adjustedScale(r)+","+this.verticalSpacing+")"}gridLineTransform(){return`translate(0,${-this.verticalSpacing-5})`}tickTrim(r){return this.trimTicks?a2(r,this.maxTickLength):r}}return f.\u0275fac=function(r){return new(r||f)(t.Y36(t.Lbi))},f.\u0275cmp=t.Xpm({type:f,selectors:[["g","ngx-charts-x-axis-ticks",""]],viewQuery:function(r,x){if(1&r&&t.Gf(L1,5),2&r){let H;t.iGM(H=t.CRH())&&(x.ticksElement=H.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:_l,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(r,x){1&r&&(t.O4$(),t.TgZ(0,"g",null,0),t.YNc(2,Gs,5,7,"g",1),t.qZA(),t.YNc(3,vl,2,2,"g",2)),2&r&&(t.xp6(2),t.Q6J("ngForOf",x.ticks),t.xp6(1),t.Q6J("ngForOf",x.ticks))},dependencies:[e.sg,e.O5],encapsulation:2,changeDetection:0}),f})(),V0=(()=>{class f{constructor(){this.rotateTicks=!0,this.showGridLines=!1,this.xOrient=zr.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=zr}ngOnChanges(r){this.update()}update(){this.transform=`translate(0,${this.xAxisOffset+this.padding+this.dims.height})`,typeof this.xAxisTickCount<"u"&&(this.tickArguments=[this.xAxisTickCount])}emitTicksHeight({height:r}){const x=r+25+5;x!==this.labelOffset&&(this.labelOffset=x,setTimeout(()=>{this.dimensionsChanged.emit({height:r})},0))}}return f.\u0275fac=function(r){return new(r||f)},f.\u0275cmp=t.Xpm({type:f,selectors:[["g","ngx-charts-x-axis",""]],viewQuery:function(r,x){if(1&r&&t.Gf(pu,5),2&r){let H;t.iGM(H=t.CRH())&&(x.ticksComponent=H.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:m0,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(r,x){1&r&&(t.O4$(),t.TgZ(0,"g"),t.YNc(1,Rh,1,12,"g",0),t.YNc(2,p0,1,5,"g",1),t.qZA()),2&r&&(t.uIk("class",x.xAxisClassName)("transform",x.transform),t.xp6(1),t.Q6J("ngIf",x.xScale),t.xp6(1),t.Q6J("ngIf",x.showLabel))},dependencies:[pu,z3,e.O5],encapsulation:2,changeDetection:0}),f})();function Ql(f,k,r,x,H,[Q,Te,st,Qt]){let Kt="";return Kt=`M${[f+H,k]}`,Kt+="h"+((r=0===(r=Math.floor(r))?1:r)-2*H),Kt+=Te?`a${[H,H]} 0 0 1 ${[H,H]}`:`h${H}v${H}`,Kt+="v"+((x=0===(x=Math.floor(x))?1:x)-2*H),Kt+=Qt?`a${[H,H]} 0 0 1 ${[-H,H]}`:`v${H}h${-H}`,Kt+="h"+(2*H-r),Kt+=st?`a${[H,H]} 0 0 1 ${[-H,-H]}`:`h${-H}v${-H}`,Kt+="v"+(2*H-x),Kt+=Q?`a${[H,H]} 0 0 1 ${[H,-H]}`:`v${-H}h${H}`,Kt+="z",Kt}let a4=(()=>{class f{constructor(r){this.platformId=r,this.tickArguments=[5],this.tickStroke="#ccc",this.trimTicks=!0,this.maxTickLength=16,this.showGridLines=!1,this.showRefLabels=!1,this.showRefLines=!1,this.dimensionsChanged=new t.vpe,this.innerTickSize=6,this.tickPadding=3,this.verticalSpacing=20,this.textAnchor=Go.Middle,this.width=0,this.outerTickSize=6,this.rotateLabels=!1,this.referenceLineLength=0,this.Orientation=zr}ngOnChanges(r){this.update()}ngAfterViewInit(){setTimeout(()=>this.updateDims())}updateDims(){if(!(0,e.NF)(this.platformId))return this.width=this.getApproximateAxisWidth(),void this.dimensionsChanged.emit({width:this.width});const r=parseInt(this.ticksElement.nativeElement.getBoundingClientRect().width,10);r!==this.width&&(this.width=r,this.dimensionsChanged.emit({width:r}),setTimeout(()=>this.updateDims()))}update(){const r=this.scale,x=this.orient===zr.Top||this.orient===zr.Right?-1:1;switch(this.tickSpacing=Math.max(this.innerTickSize,0)+this.tickPadding,this.ticks=this.getTicks(),this.tickFormat=this.tickFormatting?this.tickFormatting:r.tickFormat?r.tickFormat.apply(r,this.tickArguments):function(H){return"Date"===H.constructor.name?H.toLocaleDateString():H.toLocaleString()},this.adjustedScale=r.bandwidth?function(H){return r(H)+.5*r.bandwidth()}:r,this.showRefLines&&this.referenceLines&&this.setReferencelines(),this.orient){case zr.Top:case zr.Bottom:this.transform=function(H){return"translate("+this.adjustedScale(H)+",0)"},this.textAnchor=Go.Middle,this.y2=this.innerTickSize*x,this.y1=this.tickSpacing*x,this.dy=x<0?"0em":".71em";break;case zr.Left:this.transform=function(H){return"translate(0,"+this.adjustedScale(H)+")"},this.textAnchor=Go.End,this.x2=this.innerTickSize*-x,this.x1=this.tickSpacing*-x,this.dy=".32em";break;case zr.Right:this.transform=function(H){return"translate(0,"+this.adjustedScale(H)+")"},this.textAnchor=Go.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(r=>r.value))),this.refMax=this.adjustedScale(Math.max.apply(null,this.referenceLines.map(r=>r.value))),this.referenceLineLength=this.referenceLines.length,this.referenceAreaPath=Ql(0,this.refMax,this.gridLineWidth,this.refMin-this.refMax,0,[!1,!1,!1,!1])}getTicks(){let r;const x=this.getMaxTicks(20),H=this.getMaxTicks(50);return this.tickValues?r=this.tickValues:this.scale.ticks?r=this.scale.ticks.apply(this.scale,[H]):(r=this.scale.domain(),r=xl(r,x)),r}getMaxTicks(r){return Math.floor(this.height/r)}tickTransform(r){return`translate(${this.adjustedScale(r)},${this.verticalSpacing})`}gridLineTransform(){return"translate(5,0)"}tickTrim(r){return this.trimTicks?a2(r,this.maxTickLength):r}getApproximateAxisWidth(){return 7*Math.max(...this.ticks.map(H=>this.tickTrim(this.tickFormat(H)).length))}}return f.\u0275fac=function(r){return new(r||f)(t.Y36(t.Lbi))},f.\u0275cmp=t.Xpm({type:f,selectors:[["g","ngx-charts-y-axis-ticks",""]],viewQuery:function(r,x){if(1&r&&t.Gf(L1,5),2&r){let H;t.iGM(H=t.CRH())&&(x.ticksElement=H.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:Nh,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(r,x){1&r&&(t.O4$(),t.TgZ(0,"g",null,0),t.YNc(2,g0,5,9,"g",1),t.qZA(),t.YNc(3,bl,1,2,"path",2),t.YNc(4,zh,2,2,"g",3),t.YNc(5,b0,2,1,"g",3)),2&r&&(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))},dependencies:[e.sg,e.O5],encapsulation:2,changeDetection:0}),f})(),V3=(()=>{class f{constructor(){this.showGridLines=!1,this.yOrient=zr.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(r){this.update()}update(){this.offset=-(this.yAxisOffset+this.padding),this.yOrient===zr.Right?(this.labelOffset=65,this.transform=`translate(${this.offset+this.dims.width} , 0)`):this.transform=`translate(${this.offset} , 0)`,void 0!==this.yAxisTickCount&&(this.tickArguments=[this.yAxisTickCount])}emitTicksWidth({width:r}){r!==this.labelOffset&&this.yOrient===zr.Right?(this.labelOffset=r+this.labelOffset,setTimeout(()=>{this.dimensionsChanged.emit({width:r})},0)):r!==this.labelOffset&&(this.labelOffset=r,setTimeout(()=>{this.dimensionsChanged.emit({width:r})},0))}}return f.\u0275fac=function(r){return new(r||f)},f.\u0275cmp=t.Xpm({type:f,selectors:[["g","ngx-charts-y-axis",""]],viewQuery:function(r,x){if(1&r&&t.Gf(a4,5),2&r){let H;t.iGM(H=t.CRH())&&(x.ticksComponent=H.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:Vh,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(r,x){1&r&&(t.O4$(),t.TgZ(0,"g"),t.YNc(1,Bh,1,14,"g",0),t.YNc(2,y0,1,5,"g",1),t.qZA()),2&r&&(t.uIk("class",x.yAxisClassName)("transform",x.transform),t.xp6(1),t.Q6J("ngIf",x.yScale),t.xp6(1),t.Q6J("ngIf",x.showLabel))},dependencies:[a4,z3,e.O5],encapsulation:2,changeDetection:0}),f})(),gu=(()=>{class f{}return f.\u0275fac=function(r){return new(r||f)},f.\u0275mod=t.oAB({type:f}),f.\u0275inj=t.cJS({imports:[[e.ez]]}),f})();var Cl=(()=>{return(f=Cl||(Cl={})).popover="popover",f.tooltip="tooltip",Cl;var f})(),wl=(()=>{return(f=wl||(wl={}))[f.all="all"]="all",f[f.focus="focus"]="focus",f[f.mouseover="mouseover"]="mouseover",wl;var f})();let wr=(()=>{class f{constructor(r,x,H){this.tooltipService=r,this.viewContainerRef=x,this.renderer=H,this.tooltipCssClass="",this.tooltipAppendToBody=!0,this.tooltipSpacing=10,this.tooltipDisabled=!1,this.tooltipShowCaret=!0,this.tooltipPlacement=Qn.Top,this.tooltipAlignment=Qn.Center,this.tooltipType=Cl.popover,this.tooltipCloseOnClickOutside=!0,this.tooltipCloseOnMouseLeave=!0,this.tooltipHideTimeout=300,this.tooltipShowTimeout=100,this.tooltipShowEvent=wl.all,this.tooltipImmediateExit=!1,this.show=new t.vpe,this.hide=new t.vpe}get listensForFocus(){return this.tooltipShowEvent===wl.all||this.tooltipShowEvent===wl.focus}get listensForHover(){return this.tooltipShowEvent===wl.all||this.tooltipShowEvent===wl.mouseover}ngOnDestroy(){this.hideTooltip(!0)}onFocus(){this.listensForFocus&&this.showTooltip()}onBlur(){this.listensForFocus&&this.hideTooltip(!0)}onMouseEnter(){this.listensForHover&&this.showTooltip()}onMouseLeave(r){if(this.listensForHover&&this.tooltipCloseOnMouseLeave){if(clearTimeout(this.timeout),this.component&&this.component.instance.element.nativeElement.contains(r))return;this.hideTooltip(this.tooltipImmediateExit)}}onMouseClick(){this.listensForHover&&this.hideTooltip(!0)}showTooltip(r){if(this.component||this.tooltipDisabled)return;const x=r?0:this.tooltipShowTimeout+(navigator.userAgent.match(/\(i[^;]+;( U;)? CPU.+Mac OS X/)?400:0);clearTimeout(this.timeout),this.timeout=setTimeout(()=>{this.tooltipService.destroyAll();const H=this.createBoundOptions();this.component=this.tooltipService.create(H),setTimeout(()=>{this.component&&this.addHideListeners(this.component.instance.element.nativeElement)},10),this.show.emit(!0)},x)}addHideListeners(r){this.mouseEnterContentEvent=this.renderer.listen(r,"mouseenter",()=>{clearTimeout(this.timeout)}),this.tooltipCloseOnMouseLeave&&(this.mouseLeaveContentEvent=this.renderer.listen(r,"mouseleave",()=>{this.hideTooltip(this.tooltipImmediateExit)})),this.tooltipCloseOnClickOutside&&(this.documentClickEvent=this.renderer.listen("window","click",x=>{r.contains(x.target)||this.hideTooltip()}))}hideTooltip(r=!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),r?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 f.\u0275fac=function(r){return new(r||f)(t.Y36(P0),t.Y36(t.s_b),t.Y36(t.Qsj))},f.\u0275dir=t.lG2({type:f,selectors:[["","ngx-tooltip",""]],hostBindings:function(r,x){1&r&&t.NdJ("focusin",function(){return x.onFocus()})("blur",function(){return x.onBlur()})("mouseenter",function(){return x.onMouseEnter()})("mouseleave",function(Q){return x.onMouseLeave(Q.target)})("click",function(){return x.onMouseClick()})},inputs:{tooltipCssClass:"tooltipCssClass",tooltipTitle:"tooltipTitle",tooltipAppendToBody:"tooltipAppendToBody",tooltipSpacing:"tooltipSpacing",tooltipDisabled:"tooltipDisabled",tooltipShowCaret:"tooltipShowCaret",tooltipPlacement:"tooltipPlacement",tooltipAlignment:"tooltipAlignment",tooltipType:"tooltipType",tooltipCloseOnClickOutside:"tooltipCloseOnClickOutside",tooltipCloseOnMouseLeave:"tooltipCloseOnMouseLeave",tooltipHideTimeout:"tooltipHideTimeout",tooltipShowTimeout:"tooltipShowTimeout",tooltipTemplate:"tooltipTemplate",tooltipShowEvent:"tooltipShowEvent",tooltipContext:"tooltipContext",tooltipImmediateExit:"tooltipImmediateExit"},outputs:{show:"show",hide:"hide"}}),f})(),B0=(()=>{class f{}return f.\u0275fac=function(r){return new(r||f)},f.\u0275mod=t.oAB({type:f}),f.\u0275inj=t.cJS({providers:[F3,P0],imports:[[e.ez]]}),f})();const B3={};function z1(){let f=("0000"+(Math.random()*Math.pow(36,4)<<0).toString(36)).slice(-4);return f=`a${f}`,B3[f]?z1():(B3[f]=!0,f)}var or=(()=>{return(f=or||(or={})).Vertical="vertical",f.Horizontal="horizontal",or;var f})();let U0=(()=>{class f{constructor(){this.orientation=or.Vertical}ngOnChanges(r){this.x1="0%",this.x2="0%",this.y1="0%",this.y2="0%",this.orientation===or.Horizontal?this.x2="100%":this.orientation===or.Vertical&&(this.y1="100%")}}return f.\u0275fac=function(r){return new(r||f)},f.\u0275cmp=t.Xpm({type:f,selectors:[["g","ngx-charts-svg-linear-gradient",""]],inputs:{orientation:"orientation",name:"name",stops:"stops"},features:[t.TTD],attrs:Yl,decls:2,vars:6,consts:[[3,"id"],[3,"stop-color","stop-opacity",4,"ngFor","ngForOf"]],template:function(r,x){1&r&&(t.O4$(),t.TgZ(0,"linearGradient",0),t.YNc(1,Rc,1,5,"stop",1),t.qZA()),2&r&&(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))},dependencies:[e.sg],encapsulation:2,changeDetection:0}),f})(),_u=(()=>{class f{}return f.\u0275fac=function(r){return new(r||f)},f.\u0275cmp=t.Xpm({type:f,selectors:[["g","ngx-charts-grid-panel",""]],inputs:{width:"width",height:"height",x:"x",y:"y"},attrs:Zd,decls:1,vars:4,consts:[["stroke","none",1,"gridpanel"]],template:function(r,x){1&r&&(t.O4$(),t._UZ(0,"rect",0)),2&r&&t.uIk("height",x.height)("width",x.width)("x",x.x)("y",x.y)},encapsulation:2,changeDetection:0}),f})();var B1=(()=>{return(f=B1||(B1={})).Odd="odd",f.Even="even",B1;var f})();let xu,vu=(()=>{class f{ngOnChanges(r){this.update()}update(){this.gridPanels=this.getGridPanels()}getGridPanels(){return this.data.map(r=>{let x,H,Q,Te,st,Qt=B1.Odd;if(this.orient===or.Vertical){const Kt=this.xScale(r.name);Number.parseInt((Kt/this.xScale.step()).toString(),10)%2==1&&(Qt=B1.Even),x=this.xScale.bandwidth()*this.xScale.paddingInner(),H=this.xScale.bandwidth()+x,Q=this.dims.height,Te=this.xScale(r.name)-x/2,st=0}else if(this.orient===or.Horizontal){const Kt=this.yScale(r.name);Number.parseInt((Kt/this.yScale.step()).toString(),10)%2==1&&(Qt=B1.Even),x=this.yScale.bandwidth()*this.yScale.paddingInner(),H=this.dims.width,Q=this.yScale.bandwidth()+x,Te=0,st=this.yScale(r.name)-x/2}return{name:r.name,class:Qt,height:Q,width:H,x:Te,y:st}})}}return f.\u0275fac=function(r){return new(r||f)},f.\u0275cmp=t.Xpm({type:f,selectors:[["g","ngx-charts-grid-panel-series",""]],inputs:{data:"data",dims:"dims",xScale:"xScale",yScale:"yScale",orient:"orient"},features:[t.TTD],attrs:Zh,decls:1,vars:1,consts:[["ngx-charts-grid-panel","",3,"height","width","x","y","grid-panel","odd","even",4,"ngFor","ngForOf"],["ngx-charts-grid-panel","",3,"height","width","x","y"]],template:function(r,x){1&r&&t.YNc(0,Wd,1,10,"g",0),2&r&&t.Q6J("ngForOf",x.gridPanels)},dependencies:[_u,e.sg],encapsulation:2,changeDetection:0}),f})();typeof window<"u"?xu=window:typeof global<"u"&&(xu=global);let Ms=(()=>{class f{}return f.\u0275fac=function(r){return new(r||f)},f.\u0275mod=t.oAB({type:f}),f.\u0275inj=t.cJS({imports:[[e.ez,gu,B0],e.ez,gu,B0]}),f})();function wu({width:f,height:k,margins:r,showXAxis:x=!1,showYAxis:H=!1,xAxisHeight:Q=0,yAxisWidth:Te=0,showXLabel:st=!1,showYLabel:Qt=!1,showLegend:Kt=!1,legendType:ci=yn.Ordinal,legendPosition:vi=Cs.Right,columns:yi=12}){let Ti=r[3],rn=f,gn=k-r[0]-r[2];return Kt&&vi===Cs.Right&&(yi-=ci===yn.Ordinal?2:1),rn=rn*yi/12,rn=rn-r[1]-r[3],x&&(gn-=5,gn-=Q,st&&(gn-=30)),H&&(rn-=5,rn-=Te,Ti+=Te,Ti+=10,Qt&&(rn-=30,Ti+=30)),rn=Math.max(0,rn),gn=Math.max(0,gn),{width:Math.floor(rn),height:Math.floor(gn),xOffset:Math.floor(Ti)}}const U3=[{name:"vivid",selectable:!0,group:yn.Ordinal,domain:["#647c8a","#3f51b5","#2196f3","#00b862","#afdf0a","#a7b61a","#f3e562","#ff9800","#ff5722","#ff4514"]},{name:"natural",selectable:!0,group:yn.Ordinal,domain:["#bf9d76","#e99450","#d89f59","#f2dfa7","#a5d7c6","#7794b1","#afafaf","#707160","#ba9383","#d9d5c3"]},{name:"cool",selectable:!0,group:yn.Ordinal,domain:["#a8385d","#7aa3e5","#a27ea8","#aae3f5","#adcded","#a95963","#8796c0","#7ed3ed","#50abcc","#ad6886"]},{name:"fire",selectable:!0,group:yn.Ordinal,domain:["#ff3d00","#bf360c","#ff8f00","#ff6f00","#ff5722","#e65100","#ffca28","#ffab00"]},{name:"solar",selectable:!0,group:yn.Linear,domain:["#fff8e1","#ffecb3","#ffe082","#ffd54f","#ffca28","#ffc107","#ffb300","#ffa000","#ff8f00","#ff6f00"]},{name:"air",selectable:!0,group:yn.Linear,domain:["#e1f5fe","#b3e5fc","#81d4fa","#4fc3f7","#29b6f6","#03a9f4","#039be5","#0288d1","#0277bd","#01579b"]},{name:"aqua",selectable:!0,group:yn.Linear,domain:["#e0f7fa","#b2ebf2","#80deea","#4dd0e1","#26c6da","#00bcd4","#00acc1","#0097a7","#00838f","#006064"]},{name:"flame",selectable:!1,group:yn.Ordinal,domain:["#A10A28","#D3342D","#EF6D49","#FAAD67","#FDDE90","#DBED91","#A9D770","#6CBA67","#2C9653","#146738"]},{name:"ocean",selectable:!1,group:yn.Ordinal,domain:["#1D68FB","#33C0FC","#4AFFFE","#AFFFFF","#FFFC63","#FDBD2D","#FC8A25","#FA4F1E","#FA141B","#BA38D1"]},{name:"forest",selectable:!1,group:yn.Ordinal,domain:["#55C22D","#C1F33D","#3CC099","#AFFFFF","#8CFC9D","#76CFFA","#BA60FB","#EE6490","#C42A1C","#FC9F32"]},{name:"horizon",selectable:!1,group:yn.Ordinal,domain:["#2597FB","#65EBFD","#99FDD0","#FCEE4B","#FEFCFA","#FDD6E3","#FCB1A8","#EF6F7B","#CB96E8","#EFDEE0"]},{name:"neons",selectable:!1,group:yn.Ordinal,domain:["#FF3333","#FF33FF","#CC33FF","#0000FF","#33CCFF","#33FFFF","#33FF66","#CCFF33","#FFCC00","#FF6600"]},{name:"picnic",selectable:!1,group:yn.Ordinal,domain:["#FAC51D","#66BD6D","#FAA026","#29BB9C","#E96B56","#55ACD2","#B7332F","#2C83C9","#9166B8","#92E7E8"]},{name:"night",selectable:!1,group:yn.Ordinal,domain:["#2B1B5A","#501356","#183356","#28203F","#391B3C","#1E2B3C","#120634","#2D0432","#051932","#453080","#75267D","#2C507D","#4B3880","#752F7D","#35547D"]},{name:"nightLights",selectable:!1,group:yn.Ordinal,domain:["#4e31a5","#9c25a7","#3065ab","#57468b","#904497","#46648b","#32118d","#a00fb3","#1052a2","#6e51bd","#b63cc3","#6c97cb","#8671c1","#b455be","#7496c3"]}];class G3{constructor(k,r,x,H){"string"==typeof k&&(k=U3.find(Q=>Q.name===k)),this.colorDomain=k.domain,this.scaleType=r,this.domain=x,this.customColors=H,this.scale=this.generateColorScheme(k,r,this.domain)}generateColorScheme(k,r,x){let H;switch("string"==typeof k&&(k=U3.find(Q=>Q.name===k)),r){case yn.Quantile:H=Fd().range(k.domain).domain(x);break;case yn.Ordinal:H=pl().range(k.domain).domain(x);break;case yn.Linear:{const Q=[...k.domain];1===Q.length&&(Q.push(Q[0]),this.colorDomain=Q);const Te=T1(0,1,1/Q.length);H=es().range(Q).domain(Te)}}return H}getColor(k){if(null==k)throw new Error("Value can not be null");if(this.scaleType===yn.Linear){const r=es().domain(this.domain).range([0,1]);return this.scale(r(k))}{if("function"==typeof this.customColors)return this.customColors(k);const r=k.toString();let x;return this.customColors&&this.customColors.length>0&&(x=this.customColors.find(H=>H.name.toLowerCase()===r.toLowerCase())),x?x.value:this.scale(k)}}getLinearGradientStops(k,r){void 0===r&&(r=this.domain[0]);const x=es().domain(this.domain).range([0,1]),H=Wl().domain(this.colorDomain).range([0,1]),Q=this.getColor(k),Te=x(r),st=this.getColor(r),Qt=x(k);let Kt=1,ci=Te;const vi=[];for(vi.push({color:st,offset:Te,originalOffset:Te,opacity:1});ci<Qt&&Kt<this.colorDomain.length;){const yi=this.colorDomain[Kt],Ti=H(yi);if(Ti<=Te)Kt++;else{if(Ti.toFixed(4)>=(Qt-H.bandwidth()).toFixed(4))break;vi.push({color:yi,offset:Ti,opacity:1}),ci=Ti,Kt++}}if(vi[vi.length-1].offset<100&&vi.push({color:Q,offset:Qt,opacity:1}),Qt===Te)vi[0].offset=0,vi[1].offset=100;else if(100!==vi[vi.length-1].offset)for(const yi of vi)yi.offset=(yi.offset-Te)/(Qt-Te)*100;return vi}}let Y3=(()=>{class f{}return f.\u0275fac=function(r){return new(r||f)},f.\u0275mod=t.oAB({type:f}),f.\u0275inj=t.cJS({imports:[[Ms]]}),f})(),Z0=(()=>{class f{constructor(r){this.roundEdges=!0,this.gradient=!1,this.offset=0,this.isActive=!1,this.animations=!0,this.noBarWhenZero=!0,this.select=new t.vpe,this.activate=new t.vpe,this.deactivate=new t.vpe,this.hasGradient=!1,this.hideBar=!1,this.element=r.nativeElement}ngOnChanges(r){r.roundEdges&&this.loadAnimation(),this.update()}update(){this.gradientId="grad"+z1().toString(),this.gradientFill=`url(#${this.gradientId})`,this.gradient||this.stops?(this.gradientStops=this.getGradient(),this.hasGradient=!0):this.hasGradient=!1,this.updatePathEl(),this.checkToHideBar()}loadAnimation(){this.path=this.getStartingPath(),setTimeout(this.update.bind(this),100)}updatePathEl(){const r=function fe(f){return"string"==typeof f?new Yi([[document.querySelector(f)]],[document.documentElement]):new Yi([[f]],Gi)}(this.element).select(".bar"),x=this.getPath();this.animations?r.transition().duration(500).attr("d",x):r.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,r=this.getRadius();return this.roundEdges?this.orientation===or.Vertical?(r=Math.min(this.height,r),x=Ql(this.x,this.y+this.height,this.width,1,0,this.edges)):this.orientation===or.Horizontal&&(r=Math.min(this.width,r),x=Ql(this.x,this.y,1,this.height,0,this.edges)):this.orientation===or.Vertical?x=Ql(this.x,this.y+this.height,this.width,1,0,this.edges):this.orientation===or.Horizontal&&(x=Ql(this.x,this.y,1,this.height,0,this.edges)),x}getPath(){let x,r=this.getRadius();return this.roundEdges?this.orientation===or.Vertical?(r=Math.min(this.height,r),x=Ql(this.x,this.y,this.width,this.height,r,this.edges)):this.orientation===or.Horizontal&&(r=Math.min(this.width,r),x=Ql(this.x,this.y,this.width,this.height,r,this.edges)):x=Ql(this.x,this.y,this.width,this.height,r,this.edges),x}getRadius(){let r=0;return this.roundEdges&&this.height>5&&this.width>5&&(r=Math.floor(Math.min(5,this.height/2,this.width/2))),r}getStartOpacity(){return this.roundEdges?.2:.5}get edges(){let r=[!1,!1,!1,!1];return this.roundEdges&&(this.orientation===or.Vertical?r=this.data.value>0?[!0,!0,!1,!1]:[!1,!1,!0,!0]:this.orientation===or.Horizontal&&(r=this.data.value>0?[!1,!0,!1,!0]:[!0,!1,!0,!1])),r}onMouseEnter(){this.activate.emit(this.data)}onMouseLeave(){this.deactivate.emit(this.data)}checkToHideBar(){this.hideBar=this.noBarWhenZero&&(this.orientation===or.Vertical&&0===this.height||this.orientation===or.Horizontal&&0===this.width)}}return f.\u0275fac=function(r){return new(r||f)(t.Y36(t.SBq))},f.\u0275cmp=t.Xpm({type:f,selectors:[["g","ngx-charts-bar",""]],hostBindings:function(r,x){1&r&&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:Qd,decls:2,vars:8,consts:[[4,"ngIf"],["stroke","none","role","img","tabIndex","-1",1,"bar",3,"click"],["ngx-charts-svg-linear-gradient","",3,"orientation","name","stops"]],template:function(r,x){1&r&&(t.YNc(0,mn,2,3,"defs",0),t.O4$(),t.TgZ(1,"path",1),t.NdJ("click",function(){return x.select.emit(x.data)}),t.qZA()),2&r&&(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))},dependencies:[U0,e.O5],encapsulation:2,changeDetection:0}),f})();var ns=(()=>{return(f=ns||(ns={})).Standard="standard",f.Normalized="normalized",f.Stacked="stacked",ns;var f})(),qs=(()=>{return(f=qs||(qs={})).positive="positive",f.negative="negative",qs;var f})();let Eu=(()=>{class f{constructor(r){this.dimensionsChanged=new t.vpe,this.horizontalPadding=2,this.verticalPadding=5,this.element=r.nativeElement}ngOnChanges(r){this.update()}getSize(){return{height:this.element.getBoundingClientRect().height,width:this.element.getBoundingClientRect().width,negative:this.value<0}}ngAfterViewInit(){this.dimensionsChanged.emit(this.getSize())}update(){this.formatedValue=this.valueFormatting?this.valueFormatting(this.value):Kl(this.value),"horizontal"===this.orientation?(this.x=this.barX+this.barWidth,this.value<0?(this.x=this.x-this.horizontalPadding,this.textAnchor="end"):(this.x=this.x+this.horizontalPadding,this.textAnchor="start"),this.y=this.barY+this.barHeight/2):(this.x=this.barX+this.barWidth/2,this.y=this.barY+this.barHeight,this.value<0?(this.y=this.y+this.verticalPadding,this.textAnchor="end"):(this.y=this.y-this.verticalPadding,this.textAnchor="start"),this.transform=`rotate(-45, ${this.x} , ${this.y})`)}}return f.\u0275fac=function(r){return new(r||f)(t.Y36(t.SBq))},f.\u0275cmp=t.Xpm({type:f,selectors:[["g","ngx-charts-bar-label",""]],inputs:{value:"value",valueFormatting:"valueFormatting",barX:"barX",barY:"barY",barWidth:"barWidth",barHeight:"barHeight",orientation:"orientation"},outputs:{dimensionsChanged:"dimensionsChanged"},features:[t.TTD],attrs:Cn,decls:2,vars:5,consts:[["alignment-baseline","middle",1,"textDataLabel"]],template:function(r,x){1&r&&(t.O4$(),t.TgZ(0,"text",0),t._uU(1),t.qZA()),2&r&&(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}),f})(),Tu=(()=>{class f{constructor(r){this.platformId=r,this.type=ns.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=or,this.isSSR=!1}ngOnInit(){(0,e.PM)(this.platformId)&&(this.isSSR=!0)}ngOnChanges(r){this.update()}update(){let r;this.updateTooltipSettings(),this.series.length&&(r=this.xScale.bandwidth()),r=Math.round(r);const x=Math.max(this.yScale.domain()[0],0),H={[qs.positive]:0,[qs.negative]:0};let Te,Q=qs.positive;this.type===ns.Normalized&&(Te=this.series.map(st=>st.value).reduce((st,Qt)=>st+Qt,0)),this.bars=this.series.map((st,Qt)=>{let Kt=st.value;const ci=this.getLabel(st),vi=Kl(ci);Q=Kt>0?qs.positive:qs.negative;const Ti={value:Kt,label:ci,roundEdges:this.roundEdges,data:st,width:r,formattedLabel:vi,height:0,x:0,y:0};if(this.type===ns.Standard)Ti.height=Math.abs(this.yScale(Kt)-this.yScale(x)),Ti.x=this.xScale(ci),Ti.y=this.yScale(Kt<0?0:Kt);else if(this.type===ns.Stacked){const gn=H[Q],Ai=gn+Kt;H[Q]+=Kt,Ti.height=this.yScale(gn)-this.yScale(Ai),Ti.x=0,Ti.y=this.yScale(Ai),Ti.offset0=gn,Ti.offset1=Ai}else if(this.type===ns.Normalized){let gn=H[Q],Ai=gn+Kt;H[Q]+=Kt,Te>0?(gn=100*gn/Te,Ai=100*Ai/Te):(gn=0,Ai=0),Ti.height=this.yScale(gn)-this.yScale(Ai),Ti.x=0,Ti.y=this.yScale(Ai),Ti.offset0=gn,Ti.offset1=Ai,Kt=(Ai-gn).toFixed(2)+"%"}this.colors.scaleType===yn.Ordinal?Ti.color=this.colors.getColor(ci):this.type===ns.Standard?(Ti.color=this.colors.getColor(Kt),Ti.gradientStops=this.colors.getLinearGradientStops(Kt)):(Ti.color=this.colors.getColor(Ti.offset1),Ti.gradientStops=this.colors.getLinearGradientStops(Ti.offset1,Ti.offset0));let rn=vi;return Ti.ariaLabel=vi+" "+Kt.toLocaleString(),null!=this.seriesName&&(rn=`${this.seriesName} \u2022 ${vi}`,Ti.data.series=this.seriesName,Ti.ariaLabel=this.seriesName+" "+Ti.ariaLabel),Ti.tooltipText=this.tooltipDisabled?void 0:`\n <span class="tooltip-label">${function N0(f){return f.toLocaleString().replace(/[&'`"<>]/g,k=>({"&":"&amp;","'":"&#x27;","`":"&#x60;",'"':"&quot;","<":"&lt;",">":"&gt;"}[k]))}(rn)}</span>\n <span class="tooltip-val">${this.dataLabelFormatting?this.dataLabelFormatting(Kt):Kt.toLocaleString()}</span>\n `,Ti}),this.updateDataLabels()}updateDataLabels(){if(this.type===ns.Stacked){this.barsForDataLabels=[];const r={};r.series=this.seriesName;const x=this.series.map(Q=>Q.value).reduce((Q,Te)=>Te>0?Q+Te:Q,0),H=this.series.map(Q=>Q.value).reduce((Q,Te)=>Te<0?Q+Te:Q,0);r.total=x+H,r.x=0,r.y=0,r.height=this.yScale(r.total>0?x:H),r.width=this.xScale.bandwidth(),this.barsForDataLabels.push(r)}else this.barsForDataLabels=this.series.map(r=>{const x={};return x.series=this.seriesName??r.label,x.total=r.value,x.x=this.xScale(r.label),x.y=this.yScale(0),x.height=this.yScale(x.total)-this.yScale(0),x.width=this.xScale.bandwidth(),x})}updateTooltipSettings(){this.tooltipPlacement=this.tooltipDisabled?void 0:Qn.Top,this.tooltipType=this.tooltipDisabled?void 0:Cl.tooltip}isActive(r){return!!this.activeEntries&&void 0!==this.activeEntries.find(H=>r.name===H.name&&r.value===H.value)}onClick(r){this.select.emit(r)}getLabel(r){return r.label?r.label:r.name}trackBy(r,x){return x.label}trackDataLabelBy(r,x){return r+"#"+x.series+"#"+x.total}}return f.\u0275fac=function(r){return new(r||f)(t.Y36(t.Lbi))},f.\u0275cmp=t.Xpm({type:f,selectors:[["g","ngx-charts-series-vertical",""]],inputs:{dims:"dims",type:"type",series:"series",xScale:"xScale",yScale:"yScale",colors:"colors",gradient:"gradient",activeEntries:"activeEntries",seriesName:"seriesName",tooltipDisabled:"tooltipDisabled",tooltipTemplate:"tooltipTemplate",roundEdges:"roundEdges",animations:"animations",showDataLabel:"showDataLabel",dataLabelFormatting:"dataLabelFormatting",noBarWhenZero:"noBarWhenZero"},outputs:{select:"select",activate:"activate",deactivate:"deactivate",dataLabelHeightChanged:"dataLabelHeightChanged"},features:[t.TTD],attrs:jh,decls:3,vars:3,consts:[[4,"ngIf"],["ngx-charts-bar","","ngx-tooltip","",3,"width","height","x","y","fill","stops","data","orientation","roundEdges","gradient","ariaLabel","isActive","tooltipDisabled","tooltipPlacement","tooltipType","tooltipTitle","tooltipTemplate","tooltipContext","noBarWhenZero","animations","select","activate","deactivate",4,"ngFor","ngForOf","ngForTrackBy"],["ngx-charts-bar","","ngx-tooltip","",3,"width","height","x","y","fill","stops","data","orientation","roundEdges","gradient","ariaLabel","isActive","tooltipDisabled","tooltipPlacement","tooltipType","tooltipTitle","tooltipTemplate","tooltipContext","noBarWhenZero","animations","select","activate","deactivate"],["ngx-charts-bar-label","",3,"barX","barY","barWidth","barHeight","value","valueFormatting","orientation","dimensionsChanged",4,"ngFor","ngForOf","ngForTrackBy"],["ngx-charts-bar-label","",3,"barX","barY","barWidth","barHeight","value","valueFormatting","orientation","dimensionsChanged"]],template:function(r,x){1&r&&(t.YNc(0,Af,2,2,"g",0),t.YNc(1,Lf,2,2,"g",0),t.YNc(2,Df,2,2,"g",0)),2&r&&(t.Q6J("ngIf",!x.isSSR),t.xp6(1),t.Q6J("ngIf",x.isSSR),t.xp6(1),t.Q6J("ngIf",x.showDataLabel))},dependencies:[Z0,Eu,e.O5,e.sg,wr],encapsulation:2,data:{animation:[(0,h.X$)("animationState",[(0,h.eR)(":leave",[(0,h.oB)({opacity:1}),(0,h.jt)(500,(0,h.oB)({opacity:0}))])])]},changeDetection:0}),f})(),q3=(()=>{class f extends Ks{constructor(){super(...arguments),this.legend=!1,this.legendTitle="Legend",this.legendPosition=Cs.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=wu({width:this.width,height:this.height,margins:this.margin,showXAxis:this.xAxis,showYAxis:this.yAxis,xAxisHeight:this.xAxisHeight,yAxisWidth:this.yAxisWidth,showXLabel:this.showXAxisLabel,showYLabel:this.showYAxisLabel,showLegend:this.legend,legendType:this.schemeType,legendPosition:this.legendPosition}),this.formatDates(),this.showDataLabel&&(this.dims.height-=this.dataLabelMaxHeight.negative),this.xScale=this.getXScale(),this.yScale=this.getYScale(),this.setColors(),this.legendOptions=this.getLegendOptions(),this.transform=`translate(${this.dims.xOffset} , ${this.margin[0]+this.dataLabelMaxHeight.negative})`}getXScale(){this.xDomain=this.getXDomain();const r=this.xDomain.length/(this.dims.width/this.barPadding+1);return Wl().range([0,this.dims.width]).paddingInner(r).domain(this.xDomain)}getYScale(){this.yDomain=this.getYDomain();const r=es().range([this.dims.height,0]).domain(this.yDomain);return this.roundDomains?r.nice():r}getXDomain(){return this.results.map(r=>r.label)}getYDomain(){const r=this.results.map(Q=>Q.value);let x=this.yScaleMin?Math.min(this.yScaleMin,...r):Math.min(0,...r);this.yAxisTicks&&!this.yAxisTicks.some(isNaN)&&(x=Math.min(x,...this.yAxisTicks));let H=this.yScaleMax?Math.max(this.yScaleMax,...r):Math.max(0,...r);return this.yAxisTicks&&!this.yAxisTicks.some(isNaN)&&(H=Math.max(H,...this.yAxisTicks)),[x,H]}onClick(r){this.select.emit(r)}setColors(){let r;r=this.schemeType===yn.Ordinal?this.xDomain:this.yDomain,this.colors=new G3(this.scheme,this.schemeType,r,this.customColors)}getLegendOptions(){const r={scaleType:this.schemeType,colors:void 0,domain:[],title:void 0,position:this.legendPosition};return r.scaleType===yn.Ordinal?(r.domain=this.xDomain,r.colors=this.colors,r.title=this.legendTitle):(r.domain=this.yDomain,r.colors=this.colors.scale),r}updateYAxisWidth({width:r}){this.yAxisWidth=r,this.update()}updateXAxisHeight({height:r}){this.xAxisHeight=r,this.update()}onDataLabelMaxHeightChanged(r){r.size.negative?this.dataLabelMaxHeight.negative=Math.max(this.dataLabelMaxHeight.negative,r.size.height):this.dataLabelMaxHeight.positive=Math.max(this.dataLabelMaxHeight.positive,r.size.height),r.index===this.results.length-1&&setTimeout(()=>this.update())}onActivate(r,x=!1){r=this.results.find(Q=>x?Q.label===r.name:Q.name===r.name),!(this.activeEntries.findIndex(Q=>Q.name===r.name&&Q.value===r.value&&Q.series===r.series)>-1)&&(this.activeEntries=[r,...this.activeEntries],this.activate.emit({value:r,entries:this.activeEntries}))}onDeactivate(r,x=!1){r=this.results.find(Q=>x?Q.label===r.name:Q.name===r.name);const H=this.activeEntries.findIndex(Q=>Q.name===r.name&&Q.value===r.value&&Q.series===r.series);this.activeEntries.splice(H,1),this.activeEntries=[...this.activeEntries],this.deactivate.emit({value:r,entries:this.activeEntries})}}return f.\u0275fac=function(){let k;return function(x){return(k||(k=t.n5z(f)))(x||f)}}(),f.\u0275cmp=t.Xpm({type:f,selectors:[["ngx-charts-bar-vertical"]],contentQueries:function(r,x,H){if(1&r&&t.Suo(H,Zt,5),2&r){let Q;t.iGM(Q=t.CRH())&&(x.tooltipTemplate=Q.first)}},inputs:{legend:"legend",legendTitle:"legendTitle",legendPosition:"legendPosition",xAxis:"xAxis",yAxis:"yAxis",showXAxisLabel:"showXAxisLabel",showYAxisLabel:"showYAxisLabel",xAxisLabel:"xAxisLabel",yAxisLabel:"yAxisLabel",tooltipDisabled:"tooltipDisabled",gradient:"gradient",showGridLines:"showGridLines",activeEntries:"activeEntries",schemeType:"schemeType",trimXAxisTicks:"trimXAxisTicks",trimYAxisTicks:"trimYAxisTicks",rotateXAxisTicks:"rotateXAxisTicks",maxXAxisTickLength:"maxXAxisTickLength",maxYAxisTickLength:"maxYAxisTickLength",xAxisTickFormatting:"xAxisTickFormatting",yAxisTickFormatting:"yAxisTickFormatting",xAxisTicks:"xAxisTicks",yAxisTicks:"yAxisTicks",barPadding:"barPadding",roundDomains:"roundDomains",roundEdges:"roundEdges",yScaleMax:"yScaleMax",yScaleMin:"yScaleMin",showDataLabel:"showDataLabel",dataLabelFormatting:"dataLabelFormatting",noBarWhenZero:"noBarWhenZero"},outputs:{activate:"activate",deactivate:"deactivate"},features:[t.qOj],decls:5,vars:25,consts:[[3,"view","showLegend","legendOptions","activeEntries","animations","legendLabelClick","legendLabelActivate","legendLabelDeactivate"],[1,"bar-chart","chart"],["ngx-charts-x-axis","",3,"xScale","dims","showGridLines","showLabel","labelText","trimTicks","rotateTicks","maxTickLength","tickFormatting","ticks","xAxisOffset","dimensionsChanged",4,"ngIf"],["ngx-charts-y-axis","",3,"yScale","dims","showGridLines","showLabel","labelText","trimTicks","maxTickLength","tickFormatting","ticks","dimensionsChanged",4,"ngIf"],["ngx-charts-series-vertical","",3,"xScale","yScale","colors","series","dims","gradient","tooltipDisabled","tooltipTemplate","showDataLabel","dataLabelFormatting","activeEntries","roundEdges","animations","noBarWhenZero","activate","deactivate","select","dataLabelHeightChanged"],["ngx-charts-x-axis","",3,"xScale","dims","showGridLines","showLabel","labelText","trimTicks","rotateTicks","maxTickLength","tickFormatting","ticks","xAxisOffset","dimensionsChanged"],["ngx-charts-y-axis","",3,"yScale","dims","showGridLines","showLabel","labelText","trimTicks","maxTickLength","tickFormatting","ticks","dimensionsChanged"]],template:function(r,x){1&r&&(t.TgZ(0,"ngx-charts-chart",0),t.NdJ("legendLabelClick",function(Q){return x.onClick(Q)})("legendLabelActivate",function(Q){return x.onActivate(Q,!0)})("legendLabelDeactivate",function(Q){return x.onDeactivate(Q,!0)}),t.O4$(),t.TgZ(1,"g",1),t.YNc(2,m3,1,11,"g",2),t.YNc(3,Qh,1,9,"g",3),t.TgZ(4,"g",4),t.NdJ("activate",function(Q){return x.onActivate(Q)})("deactivate",function(Q){return x.onDeactivate(Q)})("select",function(Q){return x.onClick(Q)})("dataLabelHeightChanged",function(Q){return x.onDataLabelMaxHeightChanged(Q)}),t.qZA()()()),2&r&&(t.Q6J("view",t.WLB(22,hn,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))},dependencies:[H0,V0,V3,Tu,e.O5],styles:[Cr],encapsulation:2,changeDetection:0}),f})(),f4=(()=>{class f extends Ks{constructor(){super(...arguments),this.legend=!1,this.legendTitle="Legend",this.legendPosition=Cs.Right,this.tooltipDisabled=!1,this.scaleType=yn.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=or,this.trackBy=(r,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=wu({width:this.width,height:this.height,margins:this.margin,showXAxis:this.xAxis,showYAxis:this.yAxis,xAxisHeight:this.xAxisHeight,yAxisWidth:this.yAxisWidth,showXLabel:this.showXAxisLabel,showYLabel:this.showYAxisLabel,showLegend:this.legend,legendType:this.schemeType,legendPosition:this.legendPosition}),this.showDataLabel&&(this.dims.height-=this.dataLabelMaxHeight.negative),this.formatDates(),this.groupDomain=this.getGroupDomain(),this.innerDomain=this.getInnerDomain(),this.valueDomain=this.getValueDomain(),this.groupScale=this.getGroupScale(),this.innerScale=this.getInnerScale(),this.valueScale=this.getValueScale(),this.setColors(),this.legendOptions=this.getLegendOptions(),this.transform=`translate(${this.dims.xOffset} , ${this.margin[0]+this.dataLabelMaxHeight.negative})`}onDataLabelMaxHeightChanged(r,x){r.size.negative?this.dataLabelMaxHeight.negative=Math.max(this.dataLabelMaxHeight.negative,r.size.height):this.dataLabelMaxHeight.positive=Math.max(this.dataLabelMaxHeight.positive,r.size.height),x===this.results.length-1&&setTimeout(()=>this.update())}getGroupScale(){const r=this.groupDomain.length/(this.dims.height/this.groupPadding+1);return Wl().rangeRound([0,this.dims.width]).paddingInner(r).paddingOuter(r/2).domain(this.groupDomain)}getInnerScale(){const r=this.groupScale.bandwidth(),x=this.innerDomain.length/(r/this.barPadding+1);return Wl().rangeRound([0,r]).paddingInner(x).domain(this.innerDomain)}getValueScale(){const r=es().range([this.dims.height,0]).domain(this.valueDomain);return this.roundDomains?r.nice():r}getGroupDomain(){const r=[];for(const x of this.results)r.includes(x.label)||r.push(x.label);return r}getInnerDomain(){const r=[];for(const x of this.results)for(const H of x.series)r.includes(H.label)||r.push(H.label);return r}getValueDomain(){const r=[];for(const Q of this.results)for(const Te of Q.series)r.includes(Te.value)||r.push(Te.value);return[Math.min(0,...r),this.yScaleMax?Math.max(this.yScaleMax,...r):Math.max(0,...r)]}groupTransform(r){return`translate(${this.groupScale(r.label)}, 0)`}onClick(r,x){x&&(r.series=x.name),this.select.emit(r)}setColors(){let r;r=this.schemeType===yn.Ordinal?this.innerDomain:this.valueDomain,this.colors=new G3(this.scheme,this.schemeType,r,this.customColors)}getLegendOptions(){const r={scaleType:this.schemeType,colors:void 0,domain:[],title:void 0,position:this.legendPosition};return r.scaleType===yn.Ordinal?(r.domain=this.innerDomain,r.colors=this.colors,r.title=this.legendTitle):(r.domain=this.valueDomain,r.colors=this.colors.scale),r}updateYAxisWidth({width:r}){this.yAxisWidth=r,this.update()}updateXAxisHeight({height:r}){this.xAxisHeight=r,this.update()}onActivate(r,x,H=!1){const Q=Object.assign({},r);x&&(Q.series=x.name);const Te=this.results.map(st=>st.series).flat().filter(st=>H?st.label===Q.name:st.name===Q.name&&st.series===Q.series);this.activeEntries=[...Te],this.activate.emit({value:Q,entries:this.activeEntries})}onDeactivate(r,x,H=!1){const Q=Object.assign({},r);x&&(Q.series=x.name),this.activeEntries=this.activeEntries.filter(Te=>H?Te.label!==Q.name:!(Te.name===Q.name&&Te.series===Q.series)),this.deactivate.emit({value:Q,entries:this.activeEntries})}}return f.\u0275fac=function(){let k;return function(x){return(k||(k=t.n5z(f)))(x||f)}}(),f.\u0275cmp=t.Xpm({type:f,selectors:[["ngx-charts-bar-vertical-2d"]],contentQueries:function(r,x,H){if(1&r&&t.Suo(H,Zt,5),2&r){let Q;t.iGM(Q=t.CRH())&&(x.tooltipTemplate=Q.first)}},inputs:{legend:"legend",legendTitle:"legendTitle",legendPosition:"legendPosition",xAxis:"xAxis",yAxis:"yAxis",showXAxisLabel:"showXAxisLabel",showYAxisLabel:"showYAxisLabel",xAxisLabel:"xAxisLabel",yAxisLabel:"yAxisLabel",tooltipDisabled:"tooltipDisabled",scaleType:"scaleType",gradient:"gradient",showGridLines:"showGridLines",activeEntries:"activeEntries",schemeType:"schemeType",trimXAxisTicks:"trimXAxisTicks",trimYAxisTicks:"trimYAxisTicks",rotateXAxisTicks:"rotateXAxisTicks",maxXAxisTickLength:"maxXAxisTickLength",maxYAxisTickLength:"maxYAxisTickLength",xAxisTickFormatting:"xAxisTickFormatting",yAxisTickFormatting:"yAxisTickFormatting",xAxisTicks:"xAxisTicks",yAxisTicks:"yAxisTicks",groupPadding:"groupPadding",barPadding:"barPadding",roundDomains:"roundDomains",roundEdges:"roundEdges",yScaleMax:"yScaleMax",showDataLabel:"showDataLabel",dataLabelFormatting:"dataLabelFormatting",noBarWhenZero:"noBarWhenZero"},outputs:{activate:"activate",deactivate:"deactivate"},features:[t.qOj],decls:7,vars:18,consts:[[3,"view","showLegend","legendOptions","activeEntries","animations","legendLabelActivate","legendLabelDeactivate","legendLabelClick"],[1,"bar-chart","chart"],["ngx-charts-grid-panel-series","",3,"xScale","yScale","data","dims","orient"],["ngx-charts-x-axis","",3,"xScale","dims","showLabel","labelText","trimTicks","rotateTicks","maxTickLength","tickFormatting","ticks","xAxisOffset","dimensionsChanged",4,"ngIf"],["ngx-charts-y-axis","",3,"yScale","dims","showGridLines","showLabel","labelText","trimTicks","maxTickLength","tickFormatting","ticks","dimensionsChanged",4,"ngIf"],[4,"ngIf"],["ngx-charts-x-axis","",3,"xScale","dims","showLabel","labelText","trimTicks","rotateTicks","maxTickLength","tickFormatting","ticks","xAxisOffset","dimensionsChanged"],["ngx-charts-y-axis","",3,"yScale","dims","showGridLines","showLabel","labelText","trimTicks","maxTickLength","tickFormatting","ticks","dimensionsChanged"],["ngx-charts-series-vertical","",3,"activeEntries","xScale","yScale","colors","series","dims","gradient","tooltipDisabled","tooltipTemplate","showDataLabel","dataLabelFormatting","seriesName","roundEdges","animations","noBarWhenZero","select","activate","deactivate","dataLabelHeightChanged",4,"ngFor","ngForOf","ngForTrackBy"],["ngx-charts-series-vertical","",3,"activeEntries","xScale","yScale","colors","series","dims","gradient","tooltipDisabled","tooltipTemplate","showDataLabel","dataLabelFormatting","seriesName","roundEdges","animations","noBarWhenZero","select","activate","deactivate","dataLabelHeightChanged"]],template:function(r,x){1&r&&(t.TgZ(0,"ngx-charts-chart",0),t.NdJ("legendLabelActivate",function(Q){return x.onActivate(Q,void 0,!0)})("legendLabelDeactivate",function(Q){return x.onDeactivate(Q,void 0,!0)})("legendLabelClick",function(Q){return x.onClick(Q)}),t.O4$(),t.TgZ(1,"g",1),t._UZ(2,"g",2),t.YNc(3,If,1,10,"g",3),t.YNc(4,qh,1,9,"g",4),t.YNc(5,Of,2,2,"g",5),t.qZA(),t.YNc(6,js,2,2,"g",5),t.qZA()),2&r&&(t.Q6J("view",t.WLB(15,hn,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))},dependencies:[H0,vu,V0,V3,Tu,e.O5,e.sg],styles:[Cr],encapsulation:2,data:{animation:[(0,h.X$)("animationState",[(0,h.eR)(":leave",[(0,h.oB)({opacity:1,transform:"*"}),(0,h.jt)(500,(0,h.oB)({opacity:0,transform:"scale(0)"}))])])]},changeDetection:0}),f})(),J3=(()=>{class f{}return f.\u0275fac=function(r){return new(r||f)},f.\u0275mod=t.oAB({type:f}),f.\u0275inj=t.cJS({imports:[[Ms]]}),f})();Ah();let g4=(()=>{class f{}return f.\u0275fac=function(r){return new(r||f)},f.\u0275mod=t.oAB({type:f}),f.\u0275inj=t.cJS({imports:[[Ms]]}),f})(),b4=(()=>{class f{}return f.\u0275fac=function(r){return new(r||f)},f.\u0275mod=t.oAB({type:f}),f.\u0275inj=t.cJS({imports:[[Ms]]}),f})(),X3=(()=>{class f{}return f.\u0275fac=function(r){return new(r||f)},f.\u0275mod=t.oAB({type:f}),f.\u0275inj=t.cJS({imports:[[Ms]]}),f})(),Au=(()=>{class f{}return f.\u0275fac=function(r){return new(r||f)},f.\u0275mod=t.oAB({type:f}),f.\u0275inj=t.cJS({imports:[[Ms]]}),f})();Math;let W0=(()=>{class f{}return f.\u0275fac=function(r){return new(r||f)},f.\u0275mod=t.oAB({type:f}),f.\u0275inj=t.cJS({imports:[[Ms]]}),f})(),Iu=(()=>{class f{}return f.\u0275fac=function(r){return new(r||f)},f.\u0275mod=t.oAB({type:f}),f.\u0275inj=t.cJS({imports:[[Ms,W0,Au]]}),f})(),Y0=(()=>{class f{}return f.\u0275fac=function(r){return new(r||f)},f.\u0275mod=t.oAB({type:f}),f.\u0275inj=t.cJS({imports:[[Ms]]}),f})(),Ou=(()=>{class f{}return f.\u0275fac=function(r){return new(r||f)},f.\u0275mod=t.oAB({type:f}),f.\u0275inj=t.cJS({imports:[[Ms]]}),f})(),I4=(()=>{class f{}return f.\u0275fac=function(r){return new(r||f)},f.\u0275mod=t.oAB({type:f}),f.\u0275inj=t.cJS({imports:[[Ms,W0,J3]]}),f})(),O4=(()=>{class f{constructor(){!function k4(){typeof SVGElement<"u"&&typeof SVGElement.prototype.contains>"u"&&(SVGElement.prototype.contains=HTMLDivElement.prototype.contains)}()}}return f.\u0275fac=function(r){return new(r||f)},f.\u0275mod=t.oAB({type:f}),f.\u0275inj=t.cJS({imports:[Ms,Y3,J3,g4,b4,X3,Au,Iu,Y0,W0,Ou,I4]}),f})()},658:(Ve,q,p)=>{"use strict";function t(O,E,R,z,U,W,K){try{var ee=O[W](K),ie=ee.value}catch(ue){return void R(ue)}ee.done?E(ie):Promise.resolve(ie).then(z,U)}p.d(q,{uU:()=>S,OF:()=>w});var b=p(4650),I=p(6895),s=p(3259);function C(O,E){if(1&O&&b._UZ(0,"canvas",1),2&O){const R=b.oxw();b.Q6J("qrCode",R.value)("qrCodeErrorCorrectionLevel",R.errorCorrectionLevel)("qrCodeCenterImageSrc",R.centerImageSrc)("qrCodeCenterImageWidth",R.centerImageSize)("qrCodeCenterImageHeight",R.centerImageSize)("qrCodeMargin",R.margin)("width",R.size)("height",R.size)("darkColor",R.darkColor)("lightColor",R.lightColor)}}const h=/^#(?:[0-9a-fA-F]{3,4}){1,2}$/;let P=(()=>{class O{constructor(R){this.viewContainerRef=R,this.errorCorrectionLevel=O.DEFAULT_ERROR_CORRECTION_LEVEL,this.darkColor="#000000FF",this.lightColor="#FFFFFFFF",this.margin=16}ngOnChanges(){var R=this;return function e(O){return function(){var E=this,R=arguments;return new Promise(function(z,U){var W=O.apply(E,R);function K(ie){t(W,z,U,K,ee,"next",ie)}function ee(ie){t(W,z,U,K,ee,"throw",ie)}K(void 0)})}}(function*(){if(!R.value)return;R.version&&R.version>40?(console.warn("[qrCode] max version is 40, clamping"),R.version=40):R.version&&R.version<1?(console.warn("[qrCode] min version is 1, clamping"),R.version=1):void 0!==R.version&&isNaN(R.version)&&(console.warn("[qrCode] version should be set to a number, defaulting to auto"),R.version=void 0);const z=R.viewContainerRef.element.nativeElement;if(!z)return;const U=z.getContext("2d");U&&U.clearRect(0,0,U.canvas.width,U.canvas.height);const W=R.errorCorrectionLevel??O.DEFAULT_ERROR_CORRECTION_LEVEL,K=h.test(R.darkColor)?R.darkColor:void 0,ee=h.test(R.lightColor)?R.lightColor:void 0;(0,b.X6Q)()&&(!K&&R.darkColor&&console.error("[ng-qrcode] darkColor set to invalid value, must be RGBA hex color string, eg: #3050A1FF"),!ee&&R.lightColor&&console.error("[ng-qrcode] lightColor set to invalid value, must be RGBA hex color string, eg: #3050A130")),yield s.toCanvas(z,R.value,{version:R.version,errorCorrectionLevel:W,width:R.width,margin:R.margin,color:{dark:K,light:ee}});const ie=R.centerImageSrc,ue=d(R.centerImageWidth,O.DEFAULT_CENTER_IMAGE_SIZE),le=d(R.centerImageHeight,O.DEFAULT_CENTER_IMAGE_SIZE);if(ie&&U){R.centerImage||(R.centerImage=new Image(ue,le));const ne=R.centerImage;ie!==R.centerImage.src&&(ne.src=ie),ue!==R.centerImage.width&&(ne.width=ue),le!==R.centerImage.height&&(ne.height=le);const de=()=>{U.drawImage(ne,z.width/2-ue/2,z.height/2-le/2,ue,le)};ne.onload=de,ne.complete&&de()}})()}}return O.DEFAULT_ERROR_CORRECTION_LEVEL="M",O.DEFAULT_CENTER_IMAGE_SIZE=40,O.\u0275fac=function(R){return new(R||O)(b.Y36(b.s_b))},O.\u0275dir=b.lG2({type:O,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:[b.TTD]}),O})();function d(O,E){return void 0===O||""===O?E:"string"==typeof O?parseInt(O,10):O}let S=(()=>{class O{}return O.\u0275fac=function(R){return new(R||O)},O.\u0275cmp=b.Xpm({type:O,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(R,z){1&R&&b.YNc(0,C,1,10,"canvas",0),2&R&&b.Q6J("ngIf",z.value)},dependencies:[I.O5,P],encapsulation:2}),O})(),w=(()=>{class O{}return O.\u0275fac=function(R){return new(R||O)},O.\u0275mod=b.oAB({type:O}),O.\u0275inj=b.cJS({imports:[I.ez]}),O})()},6839:(Ve,q,p)=>{"use strict";p.d(q,{op:()=>_t,Vv:()=>ii,$V:()=>at,Xd:()=>ni});var t=p(7579),e=p(4968),b=p(6451),I=p(3601),s=p(2722),C=p(1884),h=p(9718),P=p(4650),d=p(6895);function S(ut){return getComputedStyle(ut)}function w(ut,tt){for(var vt in tt){var ti=tt[vt];"number"==typeof ti&&(ti+="px"),ut.style[vt]=ti}return ut}function O(ut){var tt=document.createElement("div");return tt.className=ut,tt}var E=typeof Element<"u"&&(Element.prototype.matches||Element.prototype.webkitMatchesSelector||Element.prototype.mozMatchesSelector||Element.prototype.msMatchesSelector);function R(ut,tt){if(!E)throw new Error("No element matching method supported");return E.call(ut,tt)}function z(ut){ut.remove?ut.remove():ut.parentNode&&ut.parentNode.removeChild(ut)}function U(ut,tt){return Array.prototype.filter.call(ut.children,function(vt){return R(vt,tt)})}var W_element_thumb=function(ut){return"ps__thumb-"+ut},W_element_rail=function(ut){return"ps__rail-"+ut},W_element_consuming="ps__child--consume",W_state_focus="ps--focus",W_state_clicking="ps--clicking",W_state_active=function(ut){return"ps--active-"+ut},W_state_scrolling=function(ut){return"ps--scrolling-"+ut},K={x:null,y:null};function ee(ut,tt){var vt=ut.element.classList,ti=W_state_scrolling(tt);vt.contains(ti)?clearTimeout(K[tt]):vt.add(ti)}function ie(ut,tt){K[tt]=setTimeout(function(){return ut.isAlive&&ut.element.classList.remove(W_state_scrolling(tt))},ut.settings.scrollingThreshold)}var le=function(tt){this.element=tt,this.handlers={}},ne={isEmpty:{configurable:!0}};le.prototype.bind=function(tt,vt){typeof this.handlers[tt]>"u"&&(this.handlers[tt]=[]),this.handlers[tt].push(vt),this.element.addEventListener(tt,vt,!1)},le.prototype.unbind=function(tt,vt){var ti=this;this.handlers[tt]=this.handlers[tt].filter(function(Ut){return!(!vt||Ut===vt)||(ti.element.removeEventListener(tt,Ut,!1),!1)})},le.prototype.unbindAll=function(){for(var tt in this.handlers)this.unbind(tt)},ne.isEmpty.get=function(){var ut=this;return Object.keys(this.handlers).every(function(tt){return 0===ut.handlers[tt].length})},Object.defineProperties(le.prototype,ne);var de=function(){this.eventElements=[]};function $(ut){if("function"==typeof window.CustomEvent)return new CustomEvent(ut);var tt=document.createEvent("CustomEvent");return tt.initCustomEvent(ut,!1,!1,void 0),tt}function me(ut,tt,vt,ti,Ut){var ht;if(void 0===ti&&(ti=!0),void 0===Ut&&(Ut=!1),"top"===tt)ht=["contentHeight","containerHeight","scrollTop","y","up","down"];else{if("left"!==tt)throw new Error("A proper axis should be provided");ht=["contentWidth","containerWidth","scrollLeft","x","left","right"]}!function A(ut,tt,vt,ti,Ut){var ht=vt[0],Rt=vt[1],Oe=vt[2],et=vt[3],it=vt[4],ct=vt[5];void 0===ti&&(ti=!0),void 0===Ut&&(Ut=!1);var Dt=ut.element;ut.reach[et]=null,Dt[Oe]<1&&(ut.reach[et]="start"),Dt[Oe]>ut[ht]-ut[Rt]-1&&(ut.reach[et]="end"),tt&&(Dt.dispatchEvent($("ps-scroll-"+et)),tt<0?Dt.dispatchEvent($("ps-scroll-"+it)):tt>0&&Dt.dispatchEvent($("ps-scroll-"+ct)),ti&&function ue(ut,tt){ee(ut,tt),ie(ut,tt)}(ut,et)),ut.reach[et]&&(tt||Ut)&&Dt.dispatchEvent($("ps-"+et+"-reach-"+ut.reach[et]))}(ut,vt,ht,ti,Ut)}function i(ut){return parseInt(ut,10)||0}de.prototype.eventElement=function(tt){var vt=this.eventElements.filter(function(ti){return ti.element===tt})[0];return vt||(vt=new le(tt),this.eventElements.push(vt)),vt},de.prototype.bind=function(tt,vt,ti){this.eventElement(tt).bind(vt,ti)},de.prototype.unbind=function(tt,vt,ti){var Ut=this.eventElement(tt);Ut.unbind(vt,ti),Ut.isEmpty&&this.eventElements.splice(this.eventElements.indexOf(Ut),1)},de.prototype.unbindAll=function(){this.eventElements.forEach(function(tt){return tt.unbindAll()}),this.eventElements=[]},de.prototype.once=function(tt,vt,ti){var Ut=this.eventElement(tt),ht=function(Rt){Ut.unbind(vt,ht),ti(Rt)};Ut.bind(vt,ht)};var l={isWebKit:typeof document<"u"&&"WebkitAppearance"in document.documentElement.style,supportsTouch:typeof window<"u"&&("ontouchstart"in window||"maxTouchPoints"in window.navigator&&window.navigator.maxTouchPoints>0||window.DocumentTouch&&document instanceof window.DocumentTouch),supportsIePointer:typeof navigator<"u"&&navigator.msMaxTouchPoints,isChrome:typeof navigator<"u"&&/Chrome/i.test(navigator&&navigator.userAgent)};function y(ut){var tt=ut.element,vt=Math.floor(tt.scrollTop),ti=tt.getBoundingClientRect();ut.containerWidth=Math.round(ti.width),ut.containerHeight=Math.round(ti.height),ut.contentWidth=tt.scrollWidth,ut.contentHeight=tt.scrollHeight,tt.contains(ut.scrollbarXRail)||(U(tt,W_element_rail("x")).forEach(function(Ut){return z(Ut)}),tt.appendChild(ut.scrollbarXRail)),tt.contains(ut.scrollbarYRail)||(U(tt,W_element_rail("y")).forEach(function(Ut){return z(Ut)}),tt.appendChild(ut.scrollbarYRail)),!ut.settings.suppressScrollX&&ut.containerWidth+ut.settings.scrollXMarginOffset<ut.contentWidth?(ut.scrollbarXActive=!0,ut.railXWidth=ut.containerWidth-ut.railXMarginWidth,ut.railXRatio=ut.containerWidth/ut.railXWidth,ut.scrollbarXWidth=T(ut,i(ut.railXWidth*ut.containerWidth/ut.contentWidth)),ut.scrollbarXLeft=i((ut.negativeScrollAdjustment+tt.scrollLeft)*(ut.railXWidth-ut.scrollbarXWidth)/(ut.contentWidth-ut.containerWidth))):ut.scrollbarXActive=!1,!ut.settings.suppressScrollY&&ut.containerHeight+ut.settings.scrollYMarginOffset<ut.contentHeight?(ut.scrollbarYActive=!0,ut.railYHeight=ut.containerHeight-ut.railYMarginHeight,ut.railYRatio=ut.containerHeight/ut.railYHeight,ut.scrollbarYHeight=T(ut,i(ut.railYHeight*ut.containerHeight/ut.contentHeight)),ut.scrollbarYTop=i(vt*(ut.railYHeight-ut.scrollbarYHeight)/(ut.contentHeight-ut.containerHeight))):ut.scrollbarYActive=!1,ut.scrollbarXLeft>=ut.railXWidth-ut.scrollbarXWidth&&(ut.scrollbarXLeft=ut.railXWidth-ut.scrollbarXWidth),ut.scrollbarYTop>=ut.railYHeight-ut.scrollbarYHeight&&(ut.scrollbarYTop=ut.railYHeight-ut.scrollbarYHeight),function L(ut,tt){var vt={width:tt.railXWidth},ti=Math.floor(ut.scrollTop);vt.left=tt.isRtl?tt.negativeScrollAdjustment+ut.scrollLeft+tt.containerWidth-tt.contentWidth:ut.scrollLeft,tt.isScrollbarXUsingBottom?vt.bottom=tt.scrollbarXBottom-ti:vt.top=tt.scrollbarXTop+ti,w(tt.scrollbarXRail,vt);var Ut={top:ti,height:tt.railYHeight};tt.isScrollbarYUsingRight?Ut.right=tt.isRtl?tt.contentWidth-(tt.negativeScrollAdjustment+ut.scrollLeft)-tt.scrollbarYRight-tt.scrollbarYOuterWidth-9:tt.scrollbarYRight-ut.scrollLeft:Ut.left=tt.isRtl?tt.negativeScrollAdjustment+ut.scrollLeft+2*tt.containerWidth-tt.contentWidth-tt.scrollbarYLeft-tt.scrollbarYOuterWidth:tt.scrollbarYLeft+ut.scrollLeft,w(tt.scrollbarYRail,Ut),w(tt.scrollbarX,{left:tt.scrollbarXLeft,width:tt.scrollbarXWidth-tt.railBorderXWidth}),w(tt.scrollbarY,{top:tt.scrollbarYTop,height:tt.scrollbarYHeight-tt.railBorderYWidth})}(tt,ut),ut.scrollbarXActive?tt.classList.add(W_state_active("x")):(tt.classList.remove(W_state_active("x")),ut.scrollbarXWidth=0,ut.scrollbarXLeft=0,tt.scrollLeft=!0===ut.isRtl?ut.contentWidth:0),ut.scrollbarYActive?tt.classList.add(W_state_active("y")):(tt.classList.remove(W_state_active("y")),ut.scrollbarYHeight=0,ut.scrollbarYTop=0,tt.scrollTop=0)}function T(ut,tt){return ut.settings.minScrollbarLength&&(tt=Math.max(tt,ut.settings.minScrollbarLength)),ut.settings.maxScrollbarLength&&(tt=Math.min(tt,ut.settings.maxScrollbarLength)),tt}function _(ut,tt){var vt=tt[0],ti=tt[1],Ut=tt[2],ht=tt[3],Rt=tt[4],Oe=tt[5],et=tt[6],it=tt[7],ct=tt[8],Dt=ut.element,pi=null,Li=null,xi=null;function Fi(xe){xe.touches&&xe.touches[0]&&(xe[Ut]=xe.touches[0].pageY),Dt[et]=pi+xi*(xe[Ut]-Li),ee(ut,it),y(ut),xe.stopPropagation(),xe.type.startsWith("touch")&&xe.changedTouches.length>1&&xe.preventDefault()}function qe(){ie(ut,it),ut[ct].classList.remove(W_state_clicking),ut.event.unbind(ut.ownerDocument,"mousemove",Fi)}function St(xe,Nt){pi=Dt[et],Nt&&xe.touches&&(xe[Ut]=xe.touches[0].pageY),Li=xe[Ut],xi=(ut[ti]-ut[vt])/(ut[ht]-ut[Oe]),Nt?ut.event.bind(ut.ownerDocument,"touchmove",Fi):(ut.event.bind(ut.ownerDocument,"mousemove",Fi),ut.event.once(ut.ownerDocument,"mouseup",qe),xe.preventDefault()),ut[ct].classList.add(W_state_clicking),xe.stopPropagation()}ut.event.bind(ut[Rt],"mousedown",function(xe){St(xe)}),ut.event.bind(ut[Rt],"touchstart",function(xe){St(xe,!0)})}var $e={"click-rail":function m(ut){ut.event.bind(ut.scrollbarY,"mousedown",function(vt){return vt.stopPropagation()}),ut.event.bind(ut.scrollbarYRail,"mousedown",function(vt){var ti=vt.pageY-window.pageYOffset-ut.scrollbarYRail.getBoundingClientRect().top;ut.element.scrollTop+=(ti>ut.scrollbarYTop?1:-1)*ut.containerHeight,y(ut),vt.stopPropagation()}),ut.event.bind(ut.scrollbarX,"mousedown",function(vt){return vt.stopPropagation()}),ut.event.bind(ut.scrollbarXRail,"mousedown",function(vt){var ti=vt.pageX-window.pageXOffset-ut.scrollbarXRail.getBoundingClientRect().left;ut.element.scrollLeft+=(ti>ut.scrollbarXLeft?1:-1)*ut.containerWidth,y(ut),vt.stopPropagation()})},"drag-thumb":function n(ut){_(ut,["containerWidth","contentWidth","pageX","railXWidth","scrollbarX","scrollbarXWidth","scrollLeft","x","scrollbarXRail"]),_(ut,["containerHeight","contentHeight","pageY","railYHeight","scrollbarY","scrollbarYHeight","scrollTop","y","scrollbarYRail"])},keyboard:function B(ut){var tt=ut.element;ut.event.bind(ut.ownerDocument,"keydown",function(ht){if(!(ht.isDefaultPrevented&&ht.isDefaultPrevented()||ht.defaultPrevented)&&(R(tt,":hover")||R(ut.scrollbarX,":focus")||R(ut.scrollbarY,":focus"))){var Rt=document.activeElement?document.activeElement:ut.ownerDocument.activeElement;if(Rt){if("IFRAME"===Rt.tagName)Rt=Rt.contentDocument.activeElement;else for(;Rt.shadowRoot;)Rt=Rt.shadowRoot.activeElement;if(function a(ut){return R(ut,"input,[contenteditable]")||R(ut,"select,[contenteditable]")||R(ut,"textarea,[contenteditable]")||R(ut,"button,[contenteditable]")}(Rt))return}var Oe=0,et=0;switch(ht.which){case 37:Oe=ht.metaKey?-ut.contentWidth:ht.altKey?-ut.containerWidth:-30;break;case 38:et=ht.metaKey?ut.contentHeight:ht.altKey?ut.containerHeight:30;break;case 39:Oe=ht.metaKey?ut.contentWidth:ht.altKey?ut.containerWidth:30;break;case 40:et=ht.metaKey?-ut.contentHeight:ht.altKey?-ut.containerHeight:-30;break;case 32:et=ht.shiftKey?ut.containerHeight:-ut.containerHeight;break;case 33:et=ut.containerHeight;break;case 34:et=-ut.containerHeight;break;case 36:et=ut.contentHeight;break;case 35:et=-ut.contentHeight;break;default:return}ut.settings.suppressScrollX&&0!==Oe||ut.settings.suppressScrollY&&0!==et||(tt.scrollTop-=et,tt.scrollLeft+=Oe,y(ut),function Ut(ht,Rt){var Oe=Math.floor(tt.scrollTop);if(0===ht){if(!ut.scrollbarYActive)return!1;if(0===Oe&&Rt>0||Oe>=ut.contentHeight-ut.containerHeight&&Rt<0)return!ut.settings.wheelPropagation}var et=tt.scrollLeft;if(0===Rt){if(!ut.scrollbarXActive)return!1;if(0===et&&ht<0||et>=ut.contentWidth-ut.containerWidth&&ht>0)return!ut.settings.wheelPropagation}return!0}(Oe,et)&&ht.preventDefault())}})},wheel:function V(ut){var tt=ut.element;function ht(Rt){var Oe=function ti(Rt){var Oe=Rt.deltaX,et=-1*Rt.deltaY;return(typeof Oe>"u"||typeof et>"u")&&(Oe=-1*Rt.wheelDeltaX/6,et=Rt.wheelDeltaY/6),Rt.deltaMode&&1===Rt.deltaMode&&(Oe*=10,et*=10),Oe!=Oe&&et!=et&&(Oe=0,et=Rt.wheelDelta),Rt.shiftKey?[-et,-Oe]:[Oe,et]}(Rt),et=Oe[0],it=Oe[1];if(!function Ut(Rt,Oe,et){if(!l.isWebKit&&tt.querySelector("select:focus"))return!0;if(!tt.contains(Rt))return!1;for(var it=Rt;it&&it!==tt;){if(it.classList.contains(W_element_consuming))return!0;var ct=S(it);if(et&&ct.overflowY.match(/(scroll|auto)/)){var Dt=it.scrollHeight-it.clientHeight;if(Dt>0&&(it.scrollTop>0&&et<0||it.scrollTop<Dt&&et>0))return!0}if(Oe&&ct.overflowX.match(/(scroll|auto)/)){var pi=it.scrollWidth-it.clientWidth;if(pi>0&&(it.scrollLeft>0&&Oe<0||it.scrollLeft<pi&&Oe>0))return!0}it=it.parentNode}return!1}(Rt.target,et,it)){var ct=!1;ut.settings.useBothWheelAxes?ut.scrollbarYActive&&!ut.scrollbarXActive?(it?tt.scrollTop-=it*ut.settings.wheelSpeed:tt.scrollTop+=et*ut.settings.wheelSpeed,ct=!0):ut.scrollbarXActive&&!ut.scrollbarYActive&&(et?tt.scrollLeft+=et*ut.settings.wheelSpeed:tt.scrollLeft-=it*ut.settings.wheelSpeed,ct=!0):(tt.scrollTop-=it*ut.settings.wheelSpeed,tt.scrollLeft+=et*ut.settings.wheelSpeed),y(ut),ct=ct||function vt(Rt,Oe){var et=Math.floor(tt.scrollTop),it=0===tt.scrollTop,ct=et+tt.offsetHeight===tt.scrollHeight,Dt=0===tt.scrollLeft,pi=tt.scrollLeft+tt.offsetWidth===tt.scrollWidth;return!(Math.abs(Oe)>Math.abs(Rt)?it||ct:Dt||pi)||!ut.settings.wheelPropagation}(et,it),ct&&!Rt.ctrlKey&&(Rt.stopPropagation(),Rt.preventDefault())}}typeof window.onwheel<"u"?ut.event.bind(tt,"wheel",ht):typeof window.onmousewheel<"u"&&ut.event.bind(tt,"mousewheel",ht)},touch:function X(ut){if(l.supportsTouch||l.supportsIePointer){var tt=ut.element,Ut={},ht=0,Rt={},Oe=null;l.supportsTouch?(ut.event.bind(tt,"touchstart",ct),ut.event.bind(tt,"touchmove",pi),ut.event.bind(tt,"touchend",Li)):l.supportsIePointer&&(window.PointerEvent?(ut.event.bind(tt,"pointerdown",ct),ut.event.bind(tt,"pointermove",pi),ut.event.bind(tt,"pointerup",Li)):window.MSPointerEvent&&(ut.event.bind(tt,"MSPointerDown",ct),ut.event.bind(tt,"MSPointerMove",pi),ut.event.bind(tt,"MSPointerUp",Li)))}function ti(xi,Fi){tt.scrollTop-=Fi,tt.scrollLeft-=xi,y(ut)}function et(xi){return xi.targetTouches?xi.targetTouches[0]:xi}function it(xi){return!(xi.pointerType&&"pen"===xi.pointerType&&0===xi.buttons||!(xi.targetTouches&&1===xi.targetTouches.length||xi.pointerType&&"mouse"!==xi.pointerType&&xi.pointerType!==xi.MSPOINTER_TYPE_MOUSE))}function ct(xi){if(it(xi)){var Fi=et(xi);Ut.pageX=Fi.pageX,Ut.pageY=Fi.pageY,ht=(new Date).getTime(),null!==Oe&&clearInterval(Oe)}}function pi(xi){if(it(xi)){var Fi=et(xi),qe={pageX:Fi.pageX,pageY:Fi.pageY},St=qe.pageX-Ut.pageX,xe=qe.pageY-Ut.pageY;if(function Dt(xi,Fi,qe){if(!tt.contains(xi))return!1;for(var St=xi;St&&St!==tt;){if(St.classList.contains(W_element_consuming))return!0;var xe=S(St);if(qe&&xe.overflowY.match(/(scroll|auto)/)){var Nt=St.scrollHeight-St.clientHeight;if(Nt>0&&(St.scrollTop>0&&qe<0||St.scrollTop<Nt&&qe>0))return!0}if(Fi&&xe.overflowX.match(/(scroll|auto)/)){var qt=St.scrollWidth-St.clientWidth;if(qt>0&&(St.scrollLeft>0&&Fi<0||St.scrollLeft<qt&&Fi>0))return!0}St=St.parentNode}return!1}(xi.target,St,xe))return;ti(St,xe),Ut=qe;var Nt=(new Date).getTime(),qt=Nt-ht;qt>0&&(Rt.x=St/qt,Rt.y=xe/qt,ht=Nt),function vt(xi,Fi){var qe=Math.floor(tt.scrollTop),St=tt.scrollLeft,xe=Math.abs(xi),Nt=Math.abs(Fi);if(Nt>xe){if(Fi<0&&qe===ut.contentHeight-ut.containerHeight||Fi>0&&0===qe)return 0===window.scrollY&&Fi>0&&l.isChrome}else if(xe>Nt&&(xi<0&&St===ut.contentWidth-ut.containerWidth||xi>0&&0===St))return!0;return!0}(St,xe)&&xi.preventDefault()}}function Li(){ut.settings.swipeEasing&&(clearInterval(Oe),Oe=setInterval(function(){ut.isInitialized?clearInterval(Oe):Rt.x||Rt.y?Math.abs(Rt.x)<.01&&Math.abs(Rt.y)<.01?clearInterval(Oe):ut.element?(ti(30*Rt.x,30*Rt.y),Rt.x*=.8,Rt.y*=.8):clearInterval(Oe):clearInterval(Oe)},10))}}},We=function(tt,vt){var ti=this;if(void 0===vt&&(vt={}),"string"==typeof tt&&(tt=document.querySelector(tt)),!tt||!tt.nodeName)throw new Error("no element is specified to initialize PerfectScrollbar");for(var Ut in this.element=tt,tt.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},vt)this.settings[Ut]=vt[Ut];this.containerWidth=null,this.containerHeight=null,this.contentWidth=null,this.contentHeight=null;var ct,it,ht=function(){return tt.classList.add(W_state_focus)},Rt=function(){return tt.classList.remove(W_state_focus)};this.isRtl="rtl"===S(tt).direction,!0===this.isRtl&&tt.classList.add("ps__rtl"),this.isNegativeScroll=(it=tt.scrollLeft,tt.scrollLeft=-1,ct=tt.scrollLeft<0,tt.scrollLeft=it,ct),this.negativeScrollAdjustment=this.isNegativeScroll?tt.scrollWidth-tt.clientWidth:0,this.event=new de,this.ownerDocument=tt.ownerDocument||document,this.scrollbarXRail=O(W_element_rail("x")),tt.appendChild(this.scrollbarXRail),this.scrollbarX=O(W_element_thumb("x")),this.scrollbarXRail.appendChild(this.scrollbarX),this.scrollbarX.setAttribute("tabindex",0),this.event.bind(this.scrollbarX,"focus",ht),this.event.bind(this.scrollbarX,"blur",Rt),this.scrollbarXActive=null,this.scrollbarXWidth=null,this.scrollbarXLeft=null;var Oe=S(this.scrollbarXRail);this.scrollbarXBottom=parseInt(Oe.bottom,10),isNaN(this.scrollbarXBottom)?(this.isScrollbarXUsingBottom=!1,this.scrollbarXTop=i(Oe.top)):this.isScrollbarXUsingBottom=!0,this.railBorderXWidth=i(Oe.borderLeftWidth)+i(Oe.borderRightWidth),w(this.scrollbarXRail,{display:"block"}),this.railXMarginWidth=i(Oe.marginLeft)+i(Oe.marginRight),w(this.scrollbarXRail,{display:""}),this.railXWidth=null,this.railXRatio=null,this.scrollbarYRail=O(W_element_rail("y")),tt.appendChild(this.scrollbarYRail),this.scrollbarY=O(W_element_thumb("y")),this.scrollbarYRail.appendChild(this.scrollbarY),this.scrollbarY.setAttribute("tabindex",0),this.event.bind(this.scrollbarY,"focus",ht),this.event.bind(this.scrollbarY,"blur",Rt),this.scrollbarYActive=null,this.scrollbarYHeight=null,this.scrollbarYTop=null;var et=S(this.scrollbarYRail);this.scrollbarYRight=parseInt(et.right,10),isNaN(this.scrollbarYRight)?(this.isScrollbarYUsingRight=!1,this.scrollbarYLeft=i(et.left)):this.isScrollbarYUsingRight=!0,this.scrollbarYOuterWidth=this.isRtl?function u(ut){var tt=S(ut);return i(tt.width)+i(tt.paddingLeft)+i(tt.paddingRight)+i(tt.borderLeftWidth)+i(tt.borderRightWidth)}(this.scrollbarY):null,this.railBorderYWidth=i(et.borderTopWidth)+i(et.borderBottomWidth),w(this.scrollbarYRail,{display:"block"}),this.railYMarginHeight=i(et.marginTop)+i(et.marginBottom),w(this.scrollbarYRail,{display:""}),this.railYHeight=null,this.railYRatio=null,this.reach={x:tt.scrollLeft<=0?"start":tt.scrollLeft>=this.contentWidth-this.containerWidth?"end":null,y:tt.scrollTop<=0?"start":tt.scrollTop>=this.contentHeight-this.containerHeight?"end":null},this.isAlive=!0,this.settings.handlers.forEach(function(it){return $e[it](ti)}),this.lastScrollTop=Math.floor(tt.scrollTop),this.lastScrollLeft=tt.scrollLeft,this.event.bind(this.element,"scroll",function(it){return ti.onScroll(it)}),y(this)};We.prototype.update=function(){this.isAlive&&(this.negativeScrollAdjustment=this.isNegativeScroll?this.element.scrollWidth-this.element.clientWidth:0,w(this.scrollbarXRail,{display:"block"}),w(this.scrollbarYRail,{display:"block"}),this.railXMarginWidth=i(S(this.scrollbarXRail).marginLeft)+i(S(this.scrollbarXRail).marginRight),this.railYMarginHeight=i(S(this.scrollbarYRail).marginTop)+i(S(this.scrollbarYRail).marginBottom),w(this.scrollbarXRail,{display:"none"}),w(this.scrollbarYRail,{display:"none"}),y(this),me(this,"top",0,!1,!0),me(this,"left",0,!1,!0),w(this.scrollbarXRail,{display:""}),w(this.scrollbarYRail,{display:""}))},We.prototype.onScroll=function(tt){this.isAlive&&(y(this),me(this,"top",this.element.scrollTop-this.lastScrollTop),me(this,"left",this.element.scrollLeft-this.lastScrollLeft),this.lastScrollTop=Math.floor(this.element.scrollTop),this.lastScrollLeft=this.element.scrollLeft)},We.prototype.destroy=function(){this.isAlive&&(this.event.unbindAll(),z(this.scrollbarX),z(this.scrollbarY),z(this.scrollbarXRail),z(this.scrollbarYRail),this.removePsClasses(),this.element=null,this.scrollbarX=null,this.scrollbarY=null,this.scrollbarXRail=null,this.scrollbarYRail=null,this.isAlive=!1)},We.prototype.removePsClasses=function(){this.element.className=this.element.className.split(" ").filter(function(tt){return!tt.match(/^ps([-_].+|)$/)}).join(" ")};const Fe=We;var De=function(){if(typeof Map<"u")return Map;function ut(tt,vt){var ti=-1;return tt.some(function(Ut,ht){return Ut[0]===vt&&(ti=ht,!0)}),ti}return function(){function tt(){this.__entries__=[]}return Object.defineProperty(tt.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),tt.prototype.get=function(vt){var ti=ut(this.__entries__,vt),Ut=this.__entries__[ti];return Ut&&Ut[1]},tt.prototype.set=function(vt,ti){var Ut=ut(this.__entries__,vt);~Ut?this.__entries__[Ut][1]=ti:this.__entries__.push([vt,ti])},tt.prototype.delete=function(vt){var ti=this.__entries__,Ut=ut(ti,vt);~Ut&&ti.splice(Ut,1)},tt.prototype.has=function(vt){return!!~ut(this.__entries__,vt)},tt.prototype.clear=function(){this.__entries__.splice(0)},tt.prototype.forEach=function(vt,ti){void 0===ti&&(ti=null);for(var Ut=0,ht=this.__entries__;Ut<ht.length;Ut++){var Rt=ht[Ut];vt.call(ti,Rt[1],Rt[0])}},tt}()}(),ye=typeof window<"u"&&typeof document<"u"&&window.document===document,ce=typeof global<"u"&&global.Math===Math?global:typeof self<"u"&&self.Math===Math?self:typeof window<"u"&&window.Math===Math?window:Function("return this")(),ve="function"==typeof requestAnimationFrame?requestAnimationFrame.bind(ce):function(ut){return setTimeout(function(){return ut(Date.now())},1e3/60)},he=["top","right","bottom","left","width","height","size","weight"],Ce=typeof MutationObserver<"u",te=function(){function ut(){this.connected_=!1,this.mutationEventsAdded_=!1,this.mutationsObserver_=null,this.observers_=[],this.onTransitionEnd_=this.onTransitionEnd_.bind(this),this.refresh=function je(ut,tt){var vt=!1,ti=!1,Ut=0;function ht(){vt&&(vt=!1,ut()),ti&&Oe()}function Rt(){ve(ht)}function Oe(){var et=Date.now();if(vt){if(et-Ut<2)return;ti=!0}else vt=!0,ti=!1,setTimeout(Rt,tt);Ut=et}return Oe}(this.refresh.bind(this),20)}return ut.prototype.addObserver=function(tt){~this.observers_.indexOf(tt)||this.observers_.push(tt),this.connected_||this.connect_()},ut.prototype.removeObserver=function(tt){var vt=this.observers_,ti=vt.indexOf(tt);~ti&&vt.splice(ti,1),!vt.length&&this.connected_&&this.disconnect_()},ut.prototype.refresh=function(){this.updateObservers_()&&this.refresh()},ut.prototype.updateObservers_=function(){var tt=this.observers_.filter(function(vt){return vt.gatherActive(),vt.hasActive()});return tt.forEach(function(vt){return vt.broadcastActive()}),tt.length>0},ut.prototype.connect_=function(){!ye||this.connected_||(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),Ce?(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)},ut.prototype.disconnect_=function(){!ye||!this.connected_||(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},ut.prototype.onTransitionEnd_=function(tt){var vt=tt.propertyName,ti=void 0===vt?"":vt;he.some(function(ht){return!!~ti.indexOf(ht)})&&this.refresh()},ut.getInstance=function(){return this.instance_||(this.instance_=new ut),this.instance_},ut.instance_=null,ut}(),Ue=function(ut,tt){for(var vt=0,ti=Object.keys(tt);vt<ti.length;vt++){var Ut=ti[vt];Object.defineProperty(ut,Ut,{value:tt[Ut],enumerable:!1,writable:!1,configurable:!0})}return ut},Be=function(ut){return ut&&ut.ownerDocument&&ut.ownerDocument.defaultView||ce},ae=Ke(0,0,0,0);function ge(ut){return parseFloat(ut)||0}function ft(ut){for(var tt=[],vt=1;vt<arguments.length;vt++)tt[vt-1]=arguments[vt];return tt.reduce(function(ti,Ut){return ti+ge(ut["border-"+Ut+"-width"])},0)}var pt=typeof SVGGraphicsElement<"u"?function(ut){return ut instanceof Be(ut).SVGGraphicsElement}:function(ut){return ut instanceof Be(ut).SVGElement&&"function"==typeof ut.getBBox};function wt(ut){return ye?pt(ut)?function dt(ut){var tt=ut.getBBox();return Ke(0,0,tt.width,tt.height)}(ut):function Et(ut){var tt=ut.clientWidth,vt=ut.clientHeight;if(!tt&&!vt)return ae;var ti=Be(ut).getComputedStyle(ut),Ut=function Je(ut){for(var vt={},ti=0,Ut=["top","right","bottom","left"];ti<Ut.length;ti++){var ht=Ut[ti];vt[ht]=ge(ut["padding-"+ht])}return vt}(ti),ht=Ut.left+Ut.right,Rt=Ut.top+Ut.bottom,Oe=ge(ti.width),et=ge(ti.height);if("border-box"===ti.boxSizing&&(Math.round(Oe+ht)!==tt&&(Oe-=ft(ti,"left","right")+ht),Math.round(et+Rt)!==vt&&(et-=ft(ti,"top","bottom")+Rt)),!function ot(ut){return ut===Be(ut).document.documentElement}(ut)){var it=Math.round(Oe+ht)-tt,ct=Math.round(et+Rt)-vt;1!==Math.abs(it)&&(Oe-=it),1!==Math.abs(ct)&&(et-=ct)}return Ke(Ut.left,Ut.top,Oe,et)}(ut):ae}function Ke(ut,tt,vt,ti){return{x:ut,y:tt,width:vt,height:ti}}var xt=function(){function ut(tt){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=Ke(0,0,0,0),this.target=tt}return ut.prototype.isActive=function(){var tt=wt(this.target);return this.contentRect_=tt,tt.width!==this.broadcastWidth||tt.height!==this.broadcastHeight},ut.prototype.broadcastRect=function(){var tt=this.contentRect_;return this.broadcastWidth=tt.width,this.broadcastHeight=tt.height,tt},ut}(),Y=function ut(tt,vt){var ti=function ke(ut){var tt=ut.x,vt=ut.y,ti=ut.width,Ut=ut.height,ht=typeof DOMRectReadOnly<"u"?DOMRectReadOnly:Object,Rt=Object.create(ht.prototype);return Ue(Rt,{x:tt,y:vt,width:ti,height:Ut,top:vt,right:tt+ti,bottom:Ut+vt,left:tt}),Rt}(vt);Ue(this,{target:tt,contentRect:ti})},Re=function(){function ut(tt,vt,ti){if(this.activeObservations_=[],this.observations_=new De,"function"!=typeof tt)throw new TypeError("The callback provided as parameter 1 is not a function.");this.callback_=tt,this.controller_=vt,this.callbackCtx_=ti}return ut.prototype.observe=function(tt){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if(!(typeof Element>"u")&&Element instanceof Object){if(!(tt instanceof Be(tt).Element))throw new TypeError('parameter 1 is not of type "Element".');var vt=this.observations_;vt.has(tt)||(vt.set(tt,new xt(tt)),this.controller_.addObserver(this),this.controller_.refresh())}},ut.prototype.unobserve=function(tt){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if(!(typeof Element>"u")&&Element instanceof Object){if(!(tt instanceof Be(tt).Element))throw new TypeError('parameter 1 is not of type "Element".');var vt=this.observations_;vt.has(tt)&&(vt.delete(tt),vt.size||this.controller_.removeObserver(this))}},ut.prototype.disconnect=function(){this.clearActive(),this.observations_.clear(),this.controller_.removeObserver(this)},ut.prototype.gatherActive=function(){var tt=this;this.clearActive(),this.observations_.forEach(function(vt){vt.isActive()&&tt.activeObservations_.push(vt)})},ut.prototype.broadcastActive=function(){if(this.hasActive()){var tt=this.callbackCtx_,vt=this.activeObservations_.map(function(ti){return new Y(ti.target,ti.broadcastRect())});this.callback_.call(tt,vt,tt),this.clearActive()}},ut.prototype.clearActive=function(){this.activeObservations_.splice(0)},ut.prototype.hasActive=function(){return this.activeObservations_.length>0},ut}(),Tt=typeof WeakMap<"u"?new WeakMap:new De,Qe=function ut(tt){if(!(this instanceof ut))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var vt=te.getInstance(),ti=new Re(tt,vt,this);Tt.set(this,ti)};["observe","unobserve","disconnect"].forEach(function(ut){Qe.prototype[ut]=function(){var tt;return(tt=Tt.get(this))[ut].apply(tt,arguments)}});const Ht=typeof ce.ResizeObserver<"u"?ce.ResizeObserver:Qe;function Mt(ut,tt){if(1&ut&&(P.TgZ(0,"div",3),P._UZ(1,"div",4)(2,"div",5)(3,"div",6)(4,"div",7),P.qZA()),2&ut){const vt=P.oxw();P.ekj("ps-at-top",vt.states.top)("ps-at-left",vt.states.left)("ps-at-right",vt.states.right)("ps-at-bottom",vt.states.bottom),P.xp6(1),P.ekj("ps-indicator-show",vt.indicatorY&&vt.interaction),P.xp6(1),P.ekj("ps-indicator-show",vt.indicatorX&&vt.interaction),P.xp6(1),P.ekj("ps-indicator-show",vt.indicatorX&&vt.interaction),P.xp6(1),P.ekj("ps-indicator-show",vt.indicatorY&&vt.interaction)}}const kt=["*"],_t=new P.OlP("PERFECT_SCROLLBAR_CONFIG");class we{constructor(tt,vt,ti,Ut){this.x=tt,this.y=vt,this.w=ti,this.h=Ut}}class J{constructor(tt,vt){this.x=tt,this.y=vt}}const be=["psScrollY","psScrollX","psScrollUp","psScrollDown","psScrollLeft","psScrollRight","psYReachEnd","psYReachStart","psXReachEnd","psXReachStart"];class He{constructor(tt={}){this.assign(tt)}assign(tt={}){for(const vt in tt)this[vt]=tt[vt]}}let at=(()=>{class ut{constructor(vt,ti,Ut,ht,Rt){this.zone=vt,this.differs=ti,this.elementRef=Ut,this.platformId=ht,this.defaults=Rt,this.instance=null,this.ro=null,this.timeout=null,this.animation=null,this.configDiff=null,this.ngDestroy=new t.x,this.disabled=!1,this.psScrollY=new P.vpe,this.psScrollX=new P.vpe,this.psScrollUp=new P.vpe,this.psScrollDown=new P.vpe,this.psScrollLeft=new P.vpe,this.psScrollRight=new P.vpe,this.psYReachEnd=new P.vpe,this.psYReachStart=new P.vpe,this.psXReachEnd=new P.vpe,this.psXReachStart=new P.vpe}ngOnInit(){if(!this.disabled&&(0,d.NF)(this.platformId)){const vt=new He(this.defaults);vt.assign(this.config),this.zone.runOutsideAngular(()=>{this.instance=new Fe(this.elementRef.nativeElement,vt)}),this.configDiff||(this.configDiff=this.differs.find(this.config||{}).create(),this.configDiff.diff(this.config||{})),this.zone.runOutsideAngular(()=>{this.ro=new Ht(()=>{this.update()}),this.elementRef.nativeElement.children[0]&&this.ro.observe(this.elementRef.nativeElement.children[0]),this.ro.observe(this.elementRef.nativeElement)}),this.zone.runOutsideAngular(()=>{be.forEach(ti=>{const Ut=ti.replace(/([A-Z])/g,ht=>`-${ht.toLowerCase()}`);(0,e.R)(this.elementRef.nativeElement,Ut).pipe((0,I.e)(20),(0,s.R)(this.ngDestroy)).subscribe(ht=>{this[ti].emit(ht)})})})}}ngOnDestroy(){(0,d.NF)(this.platformId)&&(this.ngDestroy.next(),this.ngDestroy.complete(),this.ro&&this.ro.disconnect(),this.timeout&&typeof window<"u"&&window.clearTimeout(this.timeout),this.zone.runOutsideAngular(()=>{this.instance&&this.instance.destroy()}),this.instance=null)}ngDoCheck(){!this.disabled&&this.configDiff&&(0,d.NF)(this.platformId)&&this.configDiff.diff(this.config||{})&&(this.ngOnDestroy(),this.ngOnInit())}ngOnChanges(vt){vt.disabled&&!vt.disabled.isFirstChange()&&(0,d.NF)(this.platformId)&&vt.disabled.currentValue!==vt.disabled.previousValue&&(!0===vt.disabled.currentValue?this.ngOnDestroy():!1===vt.disabled.currentValue&&this.ngOnInit())}ps(){return this.instance}update(){typeof window<"u"&&(this.timeout&&window.clearTimeout(this.timeout),this.timeout=window.setTimeout(()=>{if(!this.disabled&&this.configDiff)try{this.zone.runOutsideAngular(()=>{this.instance&&this.instance.update()})}catch{}},0))}geometry(vt="scroll"){return new we(this.elementRef.nativeElement[vt+"Left"],this.elementRef.nativeElement[vt+"Top"],this.elementRef.nativeElement[vt+"Width"],this.elementRef.nativeElement[vt+"Height"])}position(vt=!1){return!vt&&this.instance?new J(this.instance.reach.x||0,this.instance.reach.y||0):new J(this.elementRef.nativeElement.scrollLeft,this.elementRef.nativeElement.scrollTop)}scrollable(vt="any"){const ti=this.elementRef.nativeElement;return"any"===vt?ti.classList.contains("ps--active-x")||ti.classList.contains("ps--active-y"):"both"===vt?ti.classList.contains("ps--active-x")&&ti.classList.contains("ps--active-y"):ti.classList.contains("ps--active-"+vt)}scrollTo(vt,ti,Ut){this.disabled||(null==ti&&null==Ut?this.animateScrolling("scrollTop",vt,Ut):(null!=vt&&this.animateScrolling("scrollLeft",vt,Ut),null!=ti&&this.animateScrolling("scrollTop",ti,Ut)))}scrollToX(vt,ti){this.animateScrolling("scrollLeft",vt,ti)}scrollToY(vt,ti){this.animateScrolling("scrollTop",vt,ti)}scrollToTop(vt,ti){this.animateScrolling("scrollTop",vt||0,ti)}scrollToLeft(vt,ti){this.animateScrolling("scrollLeft",vt||0,ti)}scrollToRight(vt,ti){this.animateScrolling("scrollLeft",this.elementRef.nativeElement.scrollWidth-this.elementRef.nativeElement.clientWidth-(vt||0),ti)}scrollToBottom(vt,ti){this.animateScrolling("scrollTop",this.elementRef.nativeElement.scrollHeight-this.elementRef.nativeElement.clientHeight-(vt||0),ti)}scrollToElement(vt,ti,Ut){if("string"==typeof vt&&(vt=this.elementRef.nativeElement.querySelector(vt)),vt){const ht=vt.getBoundingClientRect(),Rt=this.elementRef.nativeElement.getBoundingClientRect();this.elementRef.nativeElement.classList.contains("ps--active-x")&&this.animateScrolling("scrollLeft",ht.left-Rt.left+this.elementRef.nativeElement.scrollLeft+(ti||0),Ut),this.elementRef.nativeElement.classList.contains("ps--active-y")&&this.animateScrolling("scrollTop",ht.top-Rt.top+this.elementRef.nativeElement.scrollTop+(ti||0),Ut)}}animateScrolling(vt,ti,Ut){if(this.animation&&(window.cancelAnimationFrame(this.animation),this.animation=null),!Ut||typeof window>"u")this.elementRef.nativeElement[vt]=ti;else if(ti!==this.elementRef.nativeElement[vt]){let ht=0,Rt=0,Oe=performance.now(),et=this.elementRef.nativeElement[vt];const it=(et-ti)/2,ct=Dt=>{Rt+=Math.PI/(Ut/(Dt-Oe)),ht=Math.round(ti+it+it*Math.cos(Rt)),this.elementRef.nativeElement[vt]===et&&(Rt>=Math.PI?this.animateScrolling(vt,ti,0):(this.elementRef.nativeElement[vt]=ht,et=this.elementRef.nativeElement[vt],Oe=Dt,this.animation=window.requestAnimationFrame(ct)))};window.requestAnimationFrame(ct)}}}return ut.\u0275fac=function(vt){return new(vt||ut)(P.Y36(P.R0b),P.Y36(P.aQg),P.Y36(P.SBq),P.Y36(P.Lbi),P.Y36(_t,8))},ut.\u0275dir=P.lG2({type:ut,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:[P.TTD]}),ut})(),ii=(()=>{class ut{constructor(vt,ti,Ut){this.zone=vt,this.cdRef=ti,this.platformId=Ut,this.states={},this.indicatorX=!1,this.indicatorY=!1,this.interaction=!1,this.scrollPositionX=0,this.scrollPositionY=0,this.scrollDirectionX=0,this.scrollDirectionY=0,this.usePropagationX=!1,this.usePropagationY=!1,this.allowPropagationX=!1,this.allowPropagationY=!1,this.stateTimeout=null,this.ngDestroy=new t.x,this.stateUpdate=new t.x,this.disabled=!1,this.usePSClass=!0,this.autoPropagation=!1,this.scrollIndicators=!1,this.psScrollY=new P.vpe,this.psScrollX=new P.vpe,this.psScrollUp=new P.vpe,this.psScrollDown=new P.vpe,this.psScrollLeft=new P.vpe,this.psScrollRight=new P.vpe,this.psYReachEnd=new P.vpe,this.psYReachStart=new P.vpe,this.psXReachEnd=new P.vpe,this.psXReachStart=new P.vpe}ngOnInit(){(0,d.NF)(this.platformId)&&(this.stateUpdate.pipe((0,s.R)(this.ngDestroy),(0,C.x)((vt,ti)=>vt===ti&&!this.stateTimeout)).subscribe(vt=>{this.stateTimeout&&typeof window<"u"&&(window.clearTimeout(this.stateTimeout),this.stateTimeout=null),"x"===vt||"y"===vt?(this.interaction=!1,"x"===vt?(this.indicatorX=!1,this.states.left=!1,this.states.right=!1,this.autoPropagation&&this.usePropagationX&&(this.allowPropagationX=!1)):"y"===vt&&(this.indicatorY=!1,this.states.top=!1,this.states.bottom=!1,this.autoPropagation&&this.usePropagationY&&(this.allowPropagationY=!1))):("left"===vt||"right"===vt?(this.states.left=!1,this.states.right=!1,this.states[vt]=!0,this.autoPropagation&&this.usePropagationX&&(this.indicatorX=!0)):("top"===vt||"bottom"===vt)&&(this.states.top=!1,this.states.bottom=!1,this.states[vt]=!0,this.autoPropagation&&this.usePropagationY&&(this.indicatorY=!0)),this.autoPropagation&&typeof window<"u"&&(this.stateTimeout=window.setTimeout(()=>{this.indicatorX=!1,this.indicatorY=!1,this.stateTimeout=null,this.interaction&&(this.states.left||this.states.right)&&(this.allowPropagationX=!0),this.interaction&&(this.states.top||this.states.bottom)&&(this.allowPropagationY=!0),this.cdRef.markForCheck()},500))),this.cdRef.markForCheck(),this.cdRef.detectChanges()}),this.zone.runOutsideAngular(()=>{if(this.directiveRef){const vt=this.directiveRef.elementRef.nativeElement;(0,e.R)(vt,"wheel").pipe((0,s.R)(this.ngDestroy)).subscribe(ti=>{!this.disabled&&this.autoPropagation&&this.checkPropagation(ti,ti.deltaX,ti.deltaY)}),(0,e.R)(vt,"touchmove").pipe((0,s.R)(this.ngDestroy)).subscribe(ti=>{if(!this.disabled&&this.autoPropagation){const Ut=ti.touches[0].clientX,ht=ti.touches[0].clientY;this.checkPropagation(ti,Ut-this.scrollPositionX,ht-this.scrollPositionY),this.scrollPositionX=Ut,this.scrollPositionY=ht}}),(0,b.T)((0,e.R)(vt,"ps-scroll-x").pipe((0,h.h)("x")),(0,e.R)(vt,"ps-scroll-y").pipe((0,h.h)("y")),(0,e.R)(vt,"ps-x-reach-end").pipe((0,h.h)("right")),(0,e.R)(vt,"ps-y-reach-end").pipe((0,h.h)("bottom")),(0,e.R)(vt,"ps-x-reach-start").pipe((0,h.h)("left")),(0,e.R)(vt,"ps-y-reach-start").pipe((0,h.h)("top"))).pipe((0,s.R)(this.ngDestroy)).subscribe(ti=>{!this.disabled&&(this.autoPropagation||this.scrollIndicators)&&this.stateUpdate.next(ti)})}}),window.setTimeout(()=>{be.forEach(vt=>{this.directiveRef&&(this.directiveRef[vt]=this[vt])})},0))}ngOnDestroy(){(0,d.NF)(this.platformId)&&(this.ngDestroy.next(),this.ngDestroy.unsubscribe(),this.stateTimeout&&typeof window<"u"&&window.clearTimeout(this.stateTimeout))}ngDoCheck(){if((0,d.NF)(this.platformId)&&!this.disabled&&this.autoPropagation&&this.directiveRef){const vt=this.directiveRef.elementRef.nativeElement;this.usePropagationX=vt.classList.contains("ps--active-x"),this.usePropagationY=vt.classList.contains("ps--active-y")}}checkPropagation(vt,ti,Ut){this.interaction=!0;const ht=ti<0?-1:1,Rt=Ut<0?-1:1;(this.usePropagationX&&this.usePropagationY||this.usePropagationX&&(!this.allowPropagationX||this.scrollDirectionX!==ht)||this.usePropagationY&&(!this.allowPropagationY||this.scrollDirectionY!==Rt))&&(vt.preventDefault(),vt.stopPropagation()),ti&&(this.scrollDirectionX=ht),Ut&&(this.scrollDirectionY=Rt),this.stateUpdate.next("interaction"),this.cdRef.detectChanges()}}return ut.\u0275fac=function(vt){return new(vt||ut)(P.Y36(P.R0b),P.Y36(P.sBO),P.Y36(P.Lbi))},ut.\u0275cmp=P.Xpm({type:ut,selectors:[["perfect-scrollbar"]],viewQuery:function(vt,ti){if(1&vt&&P.Gf(at,7),2&vt){let Ut;P.iGM(Ut=P.CRH())&&(ti.directiveRef=Ut.first)}},hostVars:4,hostBindings:function(vt,ti){2&vt&&P.ekj("ps-show-limits",ti.autoPropagation)("ps-show-active",ti.scrollIndicators)},inputs:{disabled:"disabled",usePSClass:"usePSClass",autoPropagation:"autoPropagation",scrollIndicators:"scrollIndicators",config:"config"},outputs:{psScrollY:"psScrollY",psScrollX:"psScrollX",psScrollUp:"psScrollUp",psScrollDown:"psScrollDown",psScrollLeft:"psScrollLeft",psScrollRight:"psScrollRight",psYReachEnd:"psYReachEnd",psYReachStart:"psYReachStart",psXReachEnd:"psXReachEnd",psXReachStart:"psXReachStart"},exportAs:["ngxPerfectScrollbar"],ngContentSelectors:kt,decls:4,vars:5,consts:[[2,"position","static",3,"perfectScrollbar","disabled"],[1,"ps-content"],["class","ps-overlay",3,"ps-at-top","ps-at-left","ps-at-right","ps-at-bottom",4,"ngIf"],[1,"ps-overlay"],[1,"ps-indicator-top"],[1,"ps-indicator-left"],[1,"ps-indicator-right"],[1,"ps-indicator-bottom"]],template:function(vt,ti){1&vt&&(P.F$t(),P.TgZ(0,"div",0)(1,"div",1),P.Hsn(2),P.qZA(),P.YNc(3,Mt,5,16,"div",2),P.qZA()),2&vt&&(P.ekj("ps",ti.usePSClass),P.Q6J("perfectScrollbar",ti.config)("disabled",ti.disabled),P.xp6(3),P.Q6J("ngIf",ti.scrollIndicators))},dependencies:[at,d.O5],styles:["perfect-scrollbar{position:relative;display:block;overflow:hidden;width:100%;height:100%;max-width:100%;max-height:100%}perfect-scrollbar[hidden]{display:none}perfect-scrollbar[fxflex]{display:flex;flex-direction:column;height:auto;min-width:0;min-height:0}perfect-scrollbar[fxflex]>.ps{flex:1 1 auto;width:auto;height:auto;min-width:0;min-height:0;-webkit-box-flex:1}perfect-scrollbar[fxlayout]>.ps,perfect-scrollbar[fxlayout]>.ps>.ps-content{display:flex;flex:1 1 auto;flex-direction:inherit;align-items:inherit;align-content:inherit;justify-content:inherit;width:100%;height:100%;-webkit-box-align:inherit;-webkit-box-flex:1;-webkit-box-pack:inherit}perfect-scrollbar[fxlayout=row]>.ps,perfect-scrollbar[fxlayout=row]>.ps>.ps-content{flex-direction:row!important}perfect-scrollbar[fxlayout=column]>.ps,perfect-scrollbar[fxlayout=column]>.ps>.ps-content{flex-direction:column!important}perfect-scrollbar>.ps{position:static;display:block;width:100%;height:100%;max-width:100%;max-height:100%}perfect-scrollbar>.ps textarea{-ms-overflow-style:scrollbar}perfect-scrollbar>.ps>.ps-overlay{position:absolute;top:0;right:0;bottom:0;left:0;display:block;overflow:hidden;pointer-events:none}perfect-scrollbar>.ps>.ps-overlay .ps-indicator-top,perfect-scrollbar>.ps>.ps-overlay .ps-indicator-left,perfect-scrollbar>.ps>.ps-overlay .ps-indicator-right,perfect-scrollbar>.ps>.ps-overlay .ps-indicator-bottom{position:absolute;opacity:0;transition:opacity .3s ease-in-out}perfect-scrollbar>.ps>.ps-overlay .ps-indicator-top,perfect-scrollbar>.ps>.ps-overlay .ps-indicator-bottom{left:0;min-width:100%;min-height:24px}perfect-scrollbar>.ps>.ps-overlay .ps-indicator-left,perfect-scrollbar>.ps>.ps-overlay .ps-indicator-right{top:0;min-width:24px;min-height:100%}perfect-scrollbar>.ps>.ps-overlay .ps-indicator-top{top:0}perfect-scrollbar>.ps>.ps-overlay .ps-indicator-left{left:0}perfect-scrollbar>.ps>.ps-overlay .ps-indicator-right{right:0}perfect-scrollbar>.ps>.ps-overlay .ps-indicator-bottom{bottom:0}perfect-scrollbar>.ps.ps--active-y>.ps__rail-y{top:0!important;right:0!important;left:auto!important;width:10px;cursor:default;transition:width .2s linear,opacity .2s linear,background-color .2s linear}perfect-scrollbar>.ps.ps--active-y>.ps__rail-y:hover,perfect-scrollbar>.ps.ps--active-y>.ps__rail-y.ps--clicking{width:15px}perfect-scrollbar>.ps.ps--active-x>.ps__rail-x{top:auto!important;bottom:0!important;left:0!important;height:10px;cursor:default;transition:height .2s linear,opacity .2s linear,background-color .2s linear}perfect-scrollbar>.ps.ps--active-x>.ps__rail-x:hover,perfect-scrollbar>.ps.ps--active-x>.ps__rail-x.ps--clicking{height:15px}perfect-scrollbar>.ps.ps--active-x.ps--active-y>.ps__rail-y{margin:0 0 10px}perfect-scrollbar>.ps.ps--active-x.ps--active-y>.ps__rail-x{margin:0 10px 0 0}perfect-scrollbar>.ps.ps--scrolling-y>.ps__rail-y,perfect-scrollbar>.ps.ps--scrolling-x>.ps__rail-x{opacity:.9;background-color:#eee}perfect-scrollbar.ps-show-always>.ps.ps--active-y>.ps__rail-y,perfect-scrollbar.ps-show-always>.ps.ps--active-x>.ps__rail-x{opacity:.6}perfect-scrollbar.ps-show-active>.ps.ps--active-y>.ps-overlay:not(.ps-at-top) .ps-indicator-top{opacity:1;background:linear-gradient(to bottom,rgba(255,255,255,.5) 0%,rgba(255,255,255,0) 100%)}perfect-scrollbar.ps-show-active>.ps.ps--active-y>.ps-overlay:not(.ps-at-bottom) .ps-indicator-bottom{opacity:1;background:linear-gradient(to top,rgba(255,255,255,.5) 0%,rgba(255,255,255,0) 100%)}perfect-scrollbar.ps-show-active>.ps.ps--active-x>.ps-overlay:not(.ps-at-left) .ps-indicator-left{opacity:1;background:linear-gradient(to right,rgba(255,255,255,.5) 0%,rgba(255,255,255,0) 100%)}perfect-scrollbar.ps-show-active>.ps.ps--active-x>.ps-overlay:not(.ps-at-right) .ps-indicator-right{opacity:1;background:linear-gradient(to left,rgba(255,255,255,.5) 0%,rgba(255,255,255,0) 100%)}perfect-scrollbar.ps-show-active.ps-show-limits>.ps.ps--active-y>.ps-overlay.ps-at-top .ps-indicator-top{background:linear-gradient(to bottom,rgba(170,170,170,.5) 0%,rgba(170,170,170,0) 100%)}perfect-scrollbar.ps-show-active.ps-show-limits>.ps.ps--active-y>.ps-overlay.ps-at-bottom .ps-indicator-bottom{background:linear-gradient(to top,rgba(170,170,170,.5) 0%,rgba(170,170,170,0) 100%)}perfect-scrollbar.ps-show-active.ps-show-limits>.ps.ps--active-x>.ps-overlay.ps-at-left .ps-indicator-left{background:linear-gradient(to right,rgba(170,170,170,.5) 0%,rgba(170,170,170,0) 100%)}perfect-scrollbar.ps-show-active.ps-show-limits>.ps.ps--active-x>.ps-overlay.ps-at-right .ps-indicator-right{background:linear-gradient(to left,rgba(170,170,170,.5) 0%,rgba(170,170,170,0) 100%)}perfect-scrollbar.ps-show-active.ps-show-limits>.ps.ps--active-y>.ps-overlay.ps-at-top .ps-indicator-top.ps-indicator-show,perfect-scrollbar.ps-show-active.ps-show-limits>.ps.ps--active-y>.ps-overlay.ps-at-bottom .ps-indicator-bottom.ps-indicator-show,perfect-scrollbar.ps-show-active.ps-show-limits>.ps.ps--active-x>.ps-overlay.ps-at-left .ps-indicator-left.ps-indicator-show,perfect-scrollbar.ps-show-active.ps-show-limits>.ps.ps--active-x>.ps-overlay.ps-at-right .ps-indicator-right.ps-indicator-show{opacity:1}\n",".ps{overflow:hidden!important;overflow-anchor:none;-ms-overflow-style:none;touch-action:auto;-ms-touch-action:auto}.ps__rail-x{display:none;opacity:0;transition:background-color .2s linear,opacity .2s linear;-webkit-transition:background-color .2s linear,opacity .2s linear;height:15px;bottom:0px;position:absolute}.ps__rail-y{display:none;opacity:0;transition:background-color .2s linear,opacity .2s linear;-webkit-transition:background-color .2s linear,opacity .2s linear;width:15px;right:0;position:absolute}.ps--active-x>.ps__rail-x,.ps--active-y>.ps__rail-y{display:block;background-color:transparent}.ps:hover>.ps__rail-x,.ps:hover>.ps__rail-y,.ps--focus>.ps__rail-x,.ps--focus>.ps__rail-y,.ps--scrolling-x>.ps__rail-x,.ps--scrolling-y>.ps__rail-y{opacity:.6}.ps .ps__rail-x:hover,.ps .ps__rail-y:hover,.ps .ps__rail-x:focus,.ps .ps__rail-y:focus,.ps .ps__rail-x.ps--clicking,.ps .ps__rail-y.ps--clicking{background-color:#eee;opacity:.9}.ps__thumb-x{background-color:#aaa;border-radius:6px;transition:background-color .2s linear,height .2s ease-in-out;-webkit-transition:background-color .2s linear,height .2s ease-in-out;height:6px;bottom:2px;position:absolute}.ps__thumb-y{background-color:#aaa;border-radius:6px;transition:background-color .2s linear,width .2s ease-in-out;-webkit-transition:background-color .2s linear,width .2s ease-in-out;width:6px;right:2px;position:absolute}.ps__rail-x:hover>.ps__thumb-x,.ps__rail-x:focus>.ps__thumb-x,.ps__rail-x.ps--clicking .ps__thumb-x{background-color:#999;height:11px}.ps__rail-y:hover>.ps__thumb-y,.ps__rail-y:focus>.ps__thumb-y,.ps__rail-y.ps--clicking .ps__thumb-y{background-color:#999;width:11px}@supports (-ms-overflow-style: none){.ps{overflow:auto!important}}@media screen and (-ms-high-contrast: active),(-ms-high-contrast: none){.ps{overflow:auto!important}}\n"],encapsulation:2}),ut})(),ni=(()=>{class ut{}return ut.\u0275fac=function(vt){return new(vt||ut)},ut.\u0275mod=P.oAB({type:ut}),ut.\u0275inj=P.cJS({imports:[[d.ez],d.ez]}),ut})()},4946:Ve=>{"use strict";Ve.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:Ve=>{"use strict";Ve.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:Ve=>{"use strict";Ve.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:Ve=>{"use strict";Ve.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:Ve=>{"use strict";Ve.exports={i8:"6.5.4"}},2562:Ve=>{"use strict";Ve.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"}')}},Ve=>{Ve(Ve.s=5415)}]);