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.453d519df5a5d71c.js

2 lines
3.4 MiB

(self.webpackChunkRTLApp=self.webpackChunkRTLApp||[]).push([["main"],{429:(Ue,q,m)=>{"use strict";m.d(q,{$A:()=>Fe,$W:()=>_e,BL:()=>N,CN:()=>p,CX:()=>S,EG:()=>I,EK:()=>w,El:()=>ye,HI:()=>o,HJ:()=>M,I8:()=>z,JK:()=>it,Lu:()=>W,Ly:()=>te,Ni:()=>_,Nr:()=>Ze,OG:()=>F,QJ:()=>Ve,RX:()=>P,Rd:()=>Ie,SN:()=>A,Sf:()=>X,TM:()=>d,UH:()=>pe,UR:()=>B,VD:()=>H,WM:()=>xe,WO:()=>y,Wi:()=>Le,X3:()=>$,YP:()=>ve,YX:()=>C,Z8:()=>ce,ZH:()=>le,Zu:()=>Oe,_9:()=>Ut,_E:()=>ie,aL:()=>et,as:()=>v,cQ:()=>n,d7:()=>un,dh:()=>Re,e9:()=>Bt,eF:()=>k,eM:()=>ee,en:()=>yn,g3:()=>Z,g6:()=>ht,i9:()=>_t,kL:()=>L,n7:()=>ke,oV:()=>h,oo:()=>s,pW:()=>a,pd:()=>u,u0:()=>je,uT:()=>Ct,v_:()=>Ke,wD:()=>D,xH:()=>E,xS:()=>Q,yl:()=>j,z:()=>he});var e=m(9263),t=m(7731);const _=(0,e.PH)(t.AB.UPDATE_API_CALL_STATUS_CLN,(0,e.Ky)()),E=(0,e.PH)(t.AB.RESET_CLN_STORE,(0,e.Ky)()),s=(0,e.PH)(t.AB.SET_CHILD_NODE_SETTINGS_CLN,(0,e.Ky)()),D=(0,e.PH)(t.AB.FETCH_PAGE_SETTINGS_CLN),u=(0,e.PH)(t.AB.SET_PAGE_SETTINGS_CLN,(0,e.Ky)()),k=(0,e.PH)(t.AB.SAVE_PAGE_SETTINGS_CLN,(0,e.Ky)()),p=(0,e.PH)(t.AB.FETCH_INFO_CLN,(0,e.Ky)()),S=(0,e.PH)(t.AB.SET_INFO_CLN,(0,e.Ky)()),A=(0,e.PH)(t.AB.FETCH_FEES_CLN),P=(0,e.PH)(t.AB.SET_FEES_CLN,(0,e.Ky)()),M=(0,e.PH)(t.AB.FETCH_FEE_RATES_CLN,(0,e.Ky)()),z=(0,e.PH)(t.AB.SET_FEE_RATES_CLN,(0,e.Ky)()),I=(0,e.PH)(t.AB.FETCH_BALANCE_CLN),W=(0,e.PH)(t.AB.SET_BALANCE_CLN,(0,e.Ky)()),Z=(0,e.PH)(t.AB.FETCH_LOCAL_REMOTE_BALANCE_CLN),Q=(0,e.PH)(t.AB.SET_LOCAL_REMOTE_BALANCE_CLN,(0,e.Ky)()),ie=(0,e.PH)(t.AB.GET_NEW_ADDRESS_CLN,(0,e.Ky)()),_e=((0,e.PH)(t.AB.SET_NEW_ADDRESS_CLN,(0,e.Ky)()),(0,e.PH)(t.AB.FETCH_PEERS_CLN)),ce=(0,e.PH)(t.AB.SET_PEERS_CLN,(0,e.Ky)()),ye=(0,e.PH)(t.AB.SAVE_NEW_PEER_CLN,(0,e.Ky)()),$=((0,e.PH)(t.AB.NEWLY_ADDED_PEER_CLN,(0,e.Ky)()),(0,e.PH)(t.AB.ADD_PEER_CLN,(0,e.Ky)())),he=(0,e.PH)(t.AB.DETACH_PEER_CLN,(0,e.Ky)()),w=(0,e.PH)(t.AB.REMOVE_PEER_CLN,(0,e.Ky)()),n=(0,e.PH)(t.AB.FETCH_PAYMENTS_CLN),o=(0,e.PH)(t.AB.SET_PAYMENTS_CLN,(0,e.Ky)()),h=(0,e.PH)(t.AB.SEND_PAYMENT_CLN,(0,e.Ky)()),d=(0,e.PH)(t.AB.SEND_PAYMENT_STATUS_CLN,(0,e.Ky)()),y=(0,e.PH)(t.AB.GET_QUERY_ROUTES_CLN,(0,e.Ky)()),L=(0,e.PH)(t.AB.SET_QUERY_ROUTES_CLN,(0,e.Ky)()),B=(0,e.PH)(t.AB.FETCH_CHANNELS_CLN),v=(0,e.PH)(t.AB.SET_CHANNELS_CLN,(0,e.Ky)()),a=(0,e.PH)(t.AB.UPDATE_CHANNEL_CLN,(0,e.Ky)()),C=(0,e.PH)(t.AB.SAVE_NEW_CHANNEL_CLN,(0,e.Ky)()),N=(0,e.PH)(t.AB.CLOSE_CHANNEL_CLN,(0,e.Ky)()),F=(0,e.PH)(t.AB.REMOVE_CHANNEL_CLN,(0,e.Ky)()),X=(0,e.PH)(t.AB.PEER_LOOKUP_CLN,(0,e.Ky)()),Fe=(0,e.PH)(t.AB.CHANNEL_LOOKUP_CLN,(0,e.Ky)()),ke=(0,e.PH)(t.AB.INVOICE_LOOKUP_CLN,(0,e.Ky)()),Ke=(0,e.PH)(t.AB.SET_LOOKUP_CLN,(0,e.Ky)()),je=(0,e.PH)(t.AB.GET_FORWARDING_HISTORY_CLN,(0,e.Ky)()),Ve=(0,e.PH)(t.AB.SET_FORWARDING_HISTORY_CLN,(0,e.Ky)()),xe=(0,e.PH)(t.AB.FETCH_INVOICES_CLN,(0,e.Ky)()),Ze=(0,e.PH)(t.AB.SET_INVOICES_CLN,(0,e.Ky)()),Ie=(0,e.PH)(t.AB.SAVE_NEW_INVOICE_CLN,(0,e.Ky)()),ve=(0,e.PH)(t.AB.ADD_INVOICE_CLN,(0,e.Ky)()),et=(0,e.PH)(t.AB.UPDATE_INVOICE_CLN,(0,e.Ky)()),ht=(0,e.PH)(t.AB.DELETE_EXPIRED_INVOICE_CLN,(0,e.Ky)()),Le=(0,e.PH)(t.AB.SET_CHANNEL_TRANSACTION_CLN,(0,e.Ky)()),te=((0,e.PH)(t.AB.SET_CHANNEL_TRANSACTION_RES_CLN,(0,e.Ky)()),(0,e.PH)(t.AB.FETCH_UTXOS_CLN)),pe=(0,e.PH)(t.AB.SET_UTXOS_CLN,(0,e.Ky)()),ee=(0,e.PH)(t.AB.FETCH_OFFER_INVOICE_CLN,(0,e.Ky)()),H=(0,e.PH)(t.AB.SET_OFFER_INVOICE_CLN,(0,e.Ky)()),j=(0,e.PH)(t.AB.FETCH_OFFERS_CLN),Oe=(0,e.PH)(t.AB.SET_OFFERS_CLN,(0,e.Ky)()),Re=(0,e.PH)(t.AB.SAVE_NEW_OFFER_CLN,(0,e.Ky)()),le=(0,e.PH)(t.AB.ADD_OFFER_CLN,(0,e.Ky)()),_t=(0,e.PH)(t.AB.DISABLE_OFFER_CLN,(0,e.Ky)()),it=(0,e.PH)(t.AB.UPDATE_OFFER_CLN,(0,e.Ky)()),Ct=(0,e.PH)(t.AB.FETCH_OFFER_BOOKMARKS_CLN),un=(0,e.PH)(t.AB.SET_OFFER_BOOKMARKS_CLN,(0,e.Ky)()),Bt=(0,e.PH)(t.AB.ADD_UPDATE_OFFER_BOOKMARK_CLN,(0,e.Ky)()),Ut=(0,e.PH)(t.AB.DELETE_OFFER_BOOKMARK_CLN,(0,e.Ky)()),yn=(0,e.PH)(t.AB.REMOVE_OFFER_BOOKMARK_CLN,(0,e.Ky)())},4947:(Ue,q,m)=>{"use strict";m.d(q,{J:()=>$});var e=m(3599),t=m(253),_=m(745),E=m(9525),s=m(8951),D=m(635),u=m(3158),k=m(2340),p=m(1786),S=m(5566),A=m(7731),P=m(7861),M=m(429),z=m(9828),I=m(1462),W=m(2560),Z=m(8987),Q=m(9263),ie=m(5986),ae=m(62),_e=m(5043),ce=m(3547),ye=m(3512),ue=m(4666);class ${constructor(w,n,o,h,d,y,L,B,v){this.actions=w,this.httpClient=n,this.store=o,this.sessionService=h,this.commonService=d,this.logger=y,this.router=L,this.wsService=B,this.location=v,this.CHILD_API_URL=k.T5+"/cln",this.flgInitialized=!1,this.unSubs=[new t.x,new t.x,new t.x],this.infoFetchCL=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(A.AB.FETCH_INFO_CLN),(0,E.z)(a=>(this.flgInitialized=!1,this.store.dispatch((0,P.lC)({payload:this.CHILD_API_URL})),this.store.dispatch((0,M.Ni)({payload:{action:"FetchInfo",status:A.Bn.INITIATED}})),this.store.dispatch((0,P.ac)({payload:A.m6.GET_NODE_INFO})),this.httpClient.get(this.CHILD_API_URL+k.NZ.GETINFO_API).pipe((0,s.R)(this.actions.pipe((0,e.l4)(A.pg.SET_SELECTED_NODE))),(0,D.U)(C=>(this.logger.info(C),C.chains&&C.chains.length&&C.chains[0]&&"object"==typeof C.chains[0]&&C.chains[0].hasOwnProperty("chain")&&C?.chains[0].chain&&C?.chains[0].chain.toLowerCase().indexOf("bitcoin")<0&&C?.chains[0].chain.toLowerCase().indexOf("liquid")<0?(this.store.dispatch((0,M.Ni)({payload:{action:"FetchInfo",status:A.Bn.COMPLETED}})),this.store.dispatch((0,P.uO)({payload:A.m6.GET_NODE_INFO})),this.store.dispatch((0,P.ts)()),setTimeout(()=>{this.store.dispatch((0,P.qR)({payload:{data:{type:A.n_.ERROR,alertTitle:"Shitcoin Found",titleMessage:"Sorry Not Sorry, RTL is Bitcoin Only!"}}}))},500),{type:A.pg.LOGOUT}):(this.initializeRemainingData(C,a.payload.loadPage),this.store.dispatch((0,M.Ni)({payload:{action:"FetchInfo",status:A.Bn.COMPLETED}})),this.store.dispatch((0,P.uO)({payload:A.m6.GET_NODE_INFO})),{type:A.AB.SET_INFO_CLN,payload:C||{}}))),(0,u.K)(C=>{const N=this.commonService.extractErrorCode(C),F="ETIMEDOUT"===N?"Unable to Connect to Core Lightning Server.":this.commonService.extractErrorMessage(C);return this.router.navigate(["/error"],{state:{errorCode:N,errorMessage:F}}),this.handleErrorWithoutAlert("FetchInfo",A.m6.GET_NODE_INFO,"Fetching Node Info Failed.",{status:N,error:F}),(0,_.of)({type:A.pg.VOID})})))))),this.fetchFeesCL=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(A.AB.FETCH_FEES_CLN),(0,E.z)(()=>(this.store.dispatch((0,M.Ni)({payload:{action:"FetchFees",status:A.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+k.NZ.FEES_API))),(0,D.U)(a=>(this.logger.info(a),this.store.dispatch((0,M.Ni)({payload:{action:"FetchFees",status:A.Bn.COMPLETED}})),{type:A.AB.SET_FEES_CLN,payload:a||{}})),(0,u.K)(a=>(this.handleErrorWithoutAlert("FetchFees",A.m6.NO_SPINNER,"Fetching Fees Failed.",a),(0,_.of)({type:A.pg.VOID}))))),this.fetchFeeRatesCL=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(A.AB.FETCH_FEE_RATES_CLN),(0,E.z)(a=>(this.store.dispatch((0,M.Ni)({payload:{action:"FetchFeeRates"+a.payload,status:A.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+k.NZ.NETWORK_API+"/feeRates/"+a.payload).pipe((0,D.U)(C=>(this.logger.info(C),this.store.dispatch((0,M.Ni)({payload:{action:"FetchFeeRates"+a.payload,status:A.Bn.COMPLETED}})),{type:A.AB.SET_FEE_RATES_CLN,payload:C||{}})),(0,u.K)(C=>(this.handleErrorWithoutAlert("FetchFeeRates"+a.payload,A.m6.NO_SPINNER,"Fetching Fee Rates Failed.",C),(0,_.of)({type:A.pg.VOID})))))))),this.fetchBalanceCL=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(A.AB.FETCH_BALANCE_CLN),(0,E.z)(()=>(this.store.dispatch((0,M.Ni)({payload:{action:"FetchBalance",status:A.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+k.NZ.BALANCE_API))),(0,D.U)(a=>(this.logger.info(a),this.store.dispatch((0,M.Ni)({payload:{action:"FetchBalance",status:A.Bn.COMPLETED}})),{type:A.AB.SET_BALANCE_CLN,payload:a||{}})),(0,u.K)(a=>(this.handleErrorWithoutAlert("FetchBalance",A.m6.NO_SPINNER,"Fetching Balances Failed.",a),(0,_.of)({type:A.pg.VOID}))))),this.fetchLocalRemoteBalanceCL=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(A.AB.FETCH_LOCAL_REMOTE_BALANCE_CLN),(0,E.z)(()=>(this.store.dispatch((0,M.Ni)({payload:{action:"FetchLocalRemoteBalance",status:A.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+k.NZ.CHANNELS_API+"/localRemoteBalance"))),(0,D.U)(a=>(this.logger.info(a),this.store.dispatch((0,M.Ni)({payload:{action:"FetchLocalRemoteBalance",status:A.Bn.COMPLETED}})),{type:A.AB.SET_LOCAL_REMOTE_BALANCE_CLN,payload:a||{}})),(0,u.K)(a=>(this.handleErrorWithoutAlert("FetchLocalRemoteBalance",A.m6.NO_SPINNER,"Fetching Balances Failed.",a),(0,_.of)({type:A.pg.VOID}))))),this.getNewAddressCL=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(A.AB.GET_NEW_ADDRESS_CLN),(0,E.z)(a=>(this.store.dispatch((0,P.ac)({payload:A.m6.GENERATE_NEW_ADDRESS})),this.httpClient.get(this.CHILD_API_URL+k.NZ.ON_CHAIN_API+"?type="+a.payload.addressCode).pipe((0,D.U)(C=>(this.logger.info(C),this.store.dispatch((0,P.uO)({payload:A.m6.GENERATE_NEW_ADDRESS})),{type:A.AB.SET_NEW_ADDRESS_CLN,payload:C&&C.address?C.address:{}})),(0,u.K)(C=>(this.handleErrorWithAlert("GenerateNewAddress",A.m6.GENERATE_NEW_ADDRESS,"Generate New Address Failed",this.CHILD_API_URL+k.NZ.ON_CHAIN_API+"?type="+a.payload.addressId,C),(0,_.of)({type:A.pg.VOID})))))))),this.setNewAddressCL=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(A.AB.SET_NEW_ADDRESS_CLN),(0,D.U)(a=>(this.logger.info(a.payload),a.payload))),{dispatch:!1}),this.peersFetchCL=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(A.AB.FETCH_PEERS_CLN),(0,E.z)(()=>(this.store.dispatch((0,M.Ni)({payload:{action:"FetchPeers",status:A.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+k.NZ.PEERS_API).pipe((0,D.U)(a=>(this.logger.info(a),this.store.dispatch((0,M.Ni)({payload:{action:"FetchPeers",status:A.Bn.COMPLETED}})),{type:A.AB.SET_PEERS_CLN,payload:a||[]})),(0,u.K)(a=>(this.handleErrorWithoutAlert("FetchPeers",A.m6.NO_SPINNER,"Fetching Peers Failed.",a),(0,_.of)({type:A.pg.VOID})))))))),this.saveNewPeerCL=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(A.AB.SAVE_NEW_PEER_CLN),(0,E.z)(a=>(this.store.dispatch((0,P.ac)({payload:A.m6.CONNECT_PEER})),this.store.dispatch((0,M.Ni)({payload:{action:"SaveNewPeer",status:A.Bn.INITIATED}})),this.httpClient.post(this.CHILD_API_URL+k.NZ.PEERS_API,{id:a.payload.id}).pipe((0,D.U)(C=>(this.logger.info(C),this.store.dispatch((0,M.Ni)({payload:{action:"SaveNewPeer",status:A.Bn.COMPLETED}})),this.store.dispatch((0,P.uO)({payload:A.m6.CONNECT_PEER})),this.store.dispatch((0,M.Z8)({payload:C||[]})),{type:A.AB.NEWLY_ADDED_PEER_CLN,payload:{peer:C.find(N=>0===a.payload.id.indexOf(N.id?N.id:""))}})),(0,u.K)(C=>(this.handleErrorWithoutAlert("SaveNewPeer",A.m6.CONNECT_PEER,"Peer Connection Failed.",C),(0,_.of)({type:A.pg.VOID})))))))),this.detachPeerCL=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(A.AB.DETACH_PEER_CLN),(0,E.z)(a=>(this.store.dispatch((0,P.ac)({payload:A.m6.DISCONNECT_PEER})),this.httpClient.delete(this.CHILD_API_URL+k.NZ.PEERS_API+"/"+a.payload.id+"?force="+a.payload.force).pipe((0,D.U)(C=>(this.logger.info(C),this.store.dispatch((0,P.uO)({payload:A.m6.DISCONNECT_PEER})),this.store.dispatch((0,P.jW)({payload:"Peer Disconnected Successfully!"})),{type:A.AB.REMOVE_PEER_CLN,payload:{id:a.payload.id}})),(0,u.K)(C=>(this.handleErrorWithAlert("PeerDisconnect",A.m6.DISCONNECT_PEER,"Unable to Detach Peer. Try again later.",this.CHILD_API_URL+k.NZ.PEERS_API+"/"+a.payload.id,C),(0,_.of)({type:A.pg.VOID})))))))),this.channelsFetchCL=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(A.AB.FETCH_CHANNELS_CLN),(0,E.z)(()=>(this.store.dispatch((0,M.Ni)({payload:{action:"FetchChannels",status:A.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+k.NZ.CHANNELS_API+"/listChannels"))),(0,D.U)(a=>{this.logger.info(a),this.store.dispatch((0,M.Ni)({payload:{action:"FetchChannels",status:A.Bn.COMPLETED}}));const C={activeChannels:[],pendingChannels:[],inactiveChannels:[]};return a.forEach(N=>{"CHANNELD_NORMAL"===N.state?N.connected?C.activeChannels.push(N):C.inactiveChannels.push(N):C.pendingChannels.push(N)}),{type:A.AB.SET_CHANNELS_CLN,payload:C}}),(0,u.K)(a=>(this.handleErrorWithoutAlert("FetchChannels",A.m6.NO_SPINNER,"Fetching Channels Failed.",a),(0,_.of)({type:A.pg.VOID}))))),this.openNewChannelCL=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(A.AB.SAVE_NEW_CHANNEL_CLN),(0,E.z)(a=>{this.store.dispatch((0,P.ac)({payload:A.m6.OPEN_CHANNEL})),this.store.dispatch((0,M.Ni)({payload:{action:"SaveNewChannel",status:A.Bn.INITIATED}}));const C={id:a.payload.peerId,satoshis:a.payload.satoshis,feeRate:a.payload.feeRate,announce:a.payload.announce};return a.payload.minconf&&(C.minconf=a.payload.minconf),a.payload.utxos&&(C.utxos=a.payload.utxos),a.payload.requestAmount&&(C.request_amt=a.payload.requestAmount),a.payload.compactLease&&(C.compact_lease=a.payload.compactLease),this.httpClient.post(this.CHILD_API_URL+k.NZ.CHANNELS_API,C).pipe((0,D.U)(N=>(this.logger.info(N),this.store.dispatch((0,M.Ni)({payload:{action:"SaveNewChannel",status:A.Bn.COMPLETED}})),this.store.dispatch((0,P.uO)({payload:A.m6.OPEN_CHANNEL})),this.store.dispatch((0,P.jW)({payload:"Channel Added Successfully!"})),this.store.dispatch((0,M.EG)()),this.store.dispatch((0,M.Ly)()),{type:A.AB.FETCH_CHANNELS_CLN})),(0,u.K)(N=>(this.handleErrorWithoutAlert("SaveNewChannel",A.m6.OPEN_CHANNEL,"Opening Channel Failed.",N),(0,_.of)({type:A.pg.VOID}))))}))),this.updateChannelCL=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(A.AB.UPDATE_CHANNEL_CLN),(0,E.z)(a=>(this.store.dispatch((0,P.ac)({payload:A.m6.UPDATE_CHAN_POLICY})),this.httpClient.post(this.CHILD_API_URL+k.NZ.CHANNELS_API+"/setChannelFee",{id:a.payload.channelId,base:a.payload.baseFeeMsat,ppm:a.payload.feeRate}).pipe((0,D.U)(C=>(this.logger.info(C),this.store.dispatch((0,P.uO)({payload:A.m6.UPDATE_CHAN_POLICY})),"all"===a.payload.channelId?this.store.dispatch((0,P.jW)({payload:{message:"All Channels Updated Successfully. Fee policy updates may take some time to reflect on the channel.",duration:5e3}})):this.store.dispatch((0,P.jW)({payload:{message:"Channel Updated Successfully. Fee policy updates may take some time to reflect on the channel.",duration:5e3}})),{type:A.AB.FETCH_CHANNELS_CLN})),(0,u.K)(C=>(this.handleErrorWithAlert("UpdateChannel",A.m6.UPDATE_CHAN_POLICY,"Update Channel Failed",this.CHILD_API_URL+k.NZ.CHANNELS_API,C),(0,_.of)({type:A.pg.VOID})))))))),this.closeChannelCL=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(A.AB.CLOSE_CHANNEL_CLN),(0,E.z)(a=>{this.store.dispatch((0,P.ac)({payload:a.payload.force?A.m6.FORCE_CLOSE_CHANNEL:A.m6.CLOSE_CHANNEL}));const C=a.payload.force?"?force="+a.payload.force:"";return this.httpClient.delete(this.CHILD_API_URL+k.NZ.CHANNELS_API+"/"+a.payload.channelId+C).pipe((0,D.U)(N=>(this.logger.info(N),this.store.dispatch((0,P.uO)({payload:a.payload.force?A.m6.FORCE_CLOSE_CHANNEL:A.m6.CLOSE_CHANNEL})),this.store.dispatch((0,M.UR)()),this.store.dispatch((0,M.g3)()),this.store.dispatch((0,P.jW)({payload:"Channel Closed Successfully!"})),{type:A.AB.REMOVE_CHANNEL_CLN,payload:a.payload})),(0,u.K)(N=>(this.handleErrorWithAlert("CloseChannel",a.payload.force?A.m6.FORCE_CLOSE_CHANNEL:A.m6.CLOSE_CHANNEL,"Unable to Close Channel. Try again later.",this.CHILD_API_URL+k.NZ.CHANNELS_API,N),(0,_.of)({type:A.pg.VOID}))))}))),this.paymentsFetchCL=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(A.AB.FETCH_PAYMENTS_CLN),(0,E.z)(()=>(this.store.dispatch((0,M.Ni)({payload:{action:"FetchPayments",status:A.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+k.NZ.PAYMENTS_API))),(0,D.U)(a=>(this.logger.info(a),this.store.dispatch((0,M.Ni)({payload:{action:"FetchPayments",status:A.Bn.COMPLETED}})),{type:A.AB.SET_PAYMENTS_CLN,payload:a||[]})),(0,u.K)(a=>(this.handleErrorWithoutAlert("FetchPayments",A.m6.NO_SPINNER,"Fetching Payments Failed.",a),(0,_.of)({type:A.pg.VOID}))))),this.fetchOfferInvoiceCL=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(A.AB.FETCH_OFFER_INVOICE_CLN),(0,E.z)(a=>(this.store.dispatch((0,P.ac)({payload:A.m6.FETCH_INVOICE})),this.store.dispatch((0,M.Ni)({payload:{action:"FetchOfferInvoice",status:A.Bn.INITIATED}})),this.httpClient.post(this.CHILD_API_URL+k.NZ.OFFERS_API+"/fetchOfferInvoice",a.payload).pipe((0,D.U)(C=>{this.logger.info(C),setTimeout(()=>{this.store.dispatch((0,M.Ni)({payload:{action:"FetchOfferInvoice",status:A.Bn.COMPLETED}})),this.store.dispatch((0,P.uO)({payload:A.m6.FETCH_INVOICE})),this.store.dispatch((0,M.VD)({payload:C||{}}))},500)}),(0,u.K)(C=>(this.handleErrorWithoutAlert("FetchOfferInvoice",A.m6.FETCH_INVOICE,"Offer Invoice Fetch Failed",C),(0,_.of)({type:A.pg.VOID}))))))),{dispatch:!1}),this.setOfferInvoiceCL=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(A.AB.SET_OFFER_INVOICE_CLN),(0,D.U)(a=>(this.logger.info(a.payload),a.payload))),{dispatch:!1}),this.sendPaymentCL=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(A.AB.SEND_PAYMENT_CLN),(0,E.z)(a=>(this.store.dispatch((0,P.ac)({payload:a.payload.uiMessage})),this.store.dispatch((0,M.Ni)({payload:{action:"SendPayment",status:A.Bn.INITIATED}})),this.httpClient.post(this.CHILD_API_URL+k.NZ.PAYMENTS_API,a.payload).pipe((0,D.U)(C=>{this.logger.info(C),this.store.dispatch((0,M.Ni)({payload:{action:"SendPayment",status:A.Bn.COMPLETED}}));let N="Payment Sent Successfully!";C.saveToDBError&&(N="Payment Sent Successfully but Offer Saving to Database Failed."),C.saveToDBResponse&&"NA"!==C.saveToDBResponse&&(this.store.dispatch((0,M.e9)({payload:C.saveToDBResponse})),N="Payment Sent Successfully and Offer Saved to Database."),setTimeout(()=>{this.store.dispatch((0,M.UR)()),this.store.dispatch((0,M.EG)()),this.store.dispatch((0,M.cQ)()),this.store.dispatch((0,P.uO)({payload:a.payload.uiMessage})),this.store.dispatch((0,P.jW)({payload:N})),this.store.dispatch((0,M.TM)({payload:C.paymentResponse}))},1e3)}),(0,u.K)(C=>(this.logger.error("Error: "+JSON.stringify(C)),a.payload.fromDialog?this.handleErrorWithoutAlert("SendPayment",a.payload.uiMessage,"Send Payment Failed.",C):this.handleErrorWithAlert("SendPayment",a.payload.uiMessage,"Send Payment Failed",this.CHILD_API_URL+k.NZ.PAYMENTS_API,C),(0,_.of)({type:A.pg.VOID}))))))),{dispatch:!1}),this.queryRoutesFetchCL=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(A.AB.GET_QUERY_ROUTES_CLN),(0,E.z)(a=>(this.store.dispatch((0,M.Ni)({payload:{action:"GetQueryRoutes",status:A.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+k.NZ.NETWORK_API+"/getRoute/"+a.payload.destPubkey+"/"+a.payload.amount).pipe((0,D.U)(C=>(this.logger.info(C),this.store.dispatch((0,M.Ni)({payload:{action:"GetQueryRoutes",status:A.Bn.COMPLETED}})),{type:A.AB.SET_QUERY_ROUTES_CLN,payload:C})),(0,u.K)(C=>(this.store.dispatch((0,M.kL)({payload:{routes:[]}})),this.handleErrorWithAlert("GetQueryRoutes",A.m6.NO_SPINNER,"Get Query Routes Failed",this.CHILD_API_URL+k.NZ.NETWORK_API+"/getRoute/"+a.payload.destPubkey+"/"+a.payload.amount,C),(0,_.of)({type:A.pg.VOID})))))))),this.setQueryRoutesCL=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(A.AB.SET_QUERY_ROUTES_CLN),(0,D.U)(a=>a.payload)),{dispatch:!1}),this.peerLookupCL=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(A.AB.PEER_LOOKUP_CLN),(0,E.z)(a=>(this.store.dispatch((0,P.ac)({payload:A.m6.SEARCHING_NODE})),this.store.dispatch((0,M.Ni)({payload:{action:"Lookup",status:A.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+k.NZ.NETWORK_API+"/listNode/"+a.payload).pipe((0,D.U)(C=>(this.logger.info(C),this.store.dispatch((0,M.Ni)({payload:{action:"Lookup",status:A.Bn.COMPLETED}})),this.store.dispatch((0,P.uO)({payload:A.m6.SEARCHING_NODE})),{type:A.AB.SET_LOOKUP_CLN,payload:C})),(0,u.K)(C=>(this.handleErrorWithAlert("Lookup",A.m6.SEARCHING_NODE,"Peer Lookup Failed",this.CHILD_API_URL+k.NZ.NETWORK_API+"/listNode/"+a.payload,C),(0,_.of)({type:A.pg.VOID})))))))),this.channelLookupCL=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(A.AB.CHANNEL_LOOKUP_CLN),(0,E.z)(a=>(this.store.dispatch((0,P.ac)({payload:a.payload.uiMessage})),this.store.dispatch((0,M.Ni)({payload:{action:"Lookup",status:A.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+k.NZ.NETWORK_API+"/listChannel/"+a.payload.shortChannelID).pipe((0,D.U)(C=>(this.logger.info(C),this.store.dispatch((0,M.Ni)({payload:{action:"Lookup",status:A.Bn.COMPLETED}})),this.store.dispatch((0,P.uO)({payload:a.payload.uiMessage})),{type:A.AB.SET_LOOKUP_CLN,payload:C})),(0,u.K)(C=>(a.payload.showError?this.handleErrorWithAlert("Lookup",a.payload.uiMessage,"Channel Lookup Failed",this.CHILD_API_URL+k.NZ.NETWORK_API+"/listChannel/"+a.payload.shortChannelID,C):this.store.dispatch((0,P.uO)({payload:a.payload.uiMessage})),this.store.dispatch((0,M.v_)({payload:[]})),(0,_.of)({type:A.pg.VOID})))))))),this.invoiceLookupCL=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(A.AB.INVOICE_LOOKUP_CLN),(0,E.z)(a=>(this.store.dispatch((0,P.ac)({payload:A.m6.SEARCHING_INVOICE})),this.store.dispatch((0,M.Ni)({payload:{action:"Lookup",status:A.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+k.NZ.INVOICES_API+"?label="+a.payload).pipe((0,D.U)(C=>(this.logger.info(C),this.store.dispatch((0,M.Ni)({payload:{action:"Lookup",status:A.Bn.COMPLETED}})),this.store.dispatch((0,P.uO)({payload:A.m6.SEARCHING_INVOICE})),C.invoices&&C.invoices.length&&C.invoices.length>0&&this.store.dispatch((0,M.aL)({payload:C.invoices[0]})),{type:A.AB.SET_LOOKUP_CLN,payload:C.invoices&&C.invoices.length&&C.invoices.length>0?C.invoices[0]:C})),(0,u.K)(C=>(this.handleErrorWithoutAlert("Lookup",A.m6.SEARCHING_INVOICE,"Invoice Lookup Failed",C),this.store.dispatch((0,P.jW)({payload:{message:"Invoice Refresh Failed.",type:"ERROR"}})),(0,_.of)({type:A.pg.VOID})))))))),this.setLookupCL=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(A.AB.SET_LOOKUP_CLN),(0,D.U)(a=>(this.logger.info(a.payload),a.payload))),{dispatch:!1}),this.fetchForwardingHistoryCL=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(A.AB.GET_FORWARDING_HISTORY_CLN),(0,E.z)(a=>{const C=a.payload.status.charAt(0).toUpperCase();return this.store.dispatch((0,M.Ni)({payload:{action:"FetchForwardingHistory"+C,status:A.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+k.NZ.CHANNELS_API+"/listForwards?status="+a.payload.status).pipe((0,D.U)(N=>(this.logger.info(N),this.store.dispatch((0,M.Ni)({payload:{action:"FetchForwardingHistory"+C,status:A.Bn.COMPLETED}})),a.payload.status===A.OO.FAILED?this.store.dispatch((0,M.QJ)({payload:{status:A.OO.FAILED,totalForwards:N.length,listForwards:N}})):a.payload.status===A.OO.LOCAL_FAILED?this.store.dispatch((0,M.QJ)({payload:{status:A.OO.LOCAL_FAILED,totalForwards:N.length,listForwards:N}})):a.payload.status===A.OO.SETTLED&&this.store.dispatch((0,M.QJ)({payload:{status:A.OO.SETTLED,totalForwards:N.length,listForwards:N}})),{type:A.pg.VOID})),(0,u.K)(N=>(this.handleErrorWithAlert("FetchForwardingHistory"+C,A.m6.NO_SPINNER,"Get "+a.payload.status+" Forwarding History Failed",this.CHILD_API_URL+k.NZ.CHANNELS_API+"/listForwards?status="+a.payload.status,N),(0,_.of)({type:A.pg.VOID}))))}))),this.deleteExpiredInvoiceCL=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(A.AB.DELETE_EXPIRED_INVOICE_CLN),(0,E.z)(a=>{this.store.dispatch((0,P.ac)({payload:A.m6.DELETE_INVOICE}));const C=a.payload?"?maxexpiry="+a.payload:"";return this.httpClient.delete(this.CHILD_API_URL+k.NZ.INVOICES_API+C).pipe((0,D.U)(N=>(this.logger.info(N),this.store.dispatch((0,P.uO)({payload:A.m6.DELETE_INVOICE})),this.store.dispatch((0,P.jW)({payload:"Invoices Deleted Successfully!"})),{type:A.AB.FETCH_INVOICES_CLN,payload:{num_max_invoices:1e6,reversed:!0}})),(0,u.K)(N=>(this.handleErrorWithAlert("DeleteInvoices",A.m6.DELETE_INVOICE,"Delete Invoice Failed",this.CHILD_API_URL+k.NZ.INVOICES_API,N),(0,_.of)({type:A.pg.VOID}))))}))),this.saveNewInvoiceCL=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(A.AB.SAVE_NEW_INVOICE_CLN),(0,E.z)(a=>(this.store.dispatch((0,P.ac)({payload:A.m6.ADD_INVOICE})),this.store.dispatch((0,M.Ni)({payload:{action:"SaveNewInvoice",status:A.Bn.INITIATED}})),this.httpClient.post(this.CHILD_API_URL+k.NZ.INVOICES_API,{label:a.payload.label,amount:a.payload.amount,description:a.payload.description,expiry:a.payload.expiry,private:a.payload.private}).pipe((0,D.U)(C=>(this.logger.info(C),this.store.dispatch((0,M.Ni)({payload:{action:"SaveNewInvoice",status:A.Bn.COMPLETED}})),this.store.dispatch((0,P.uO)({payload:A.m6.ADD_INVOICE})),C.msatoshi=a.payload.amount,C.label=a.payload.label,C.expires_at=Math.round((new Date).getTime()/1e3+a.payload.expiry),C.description=a.payload.description,C.status="unpaid",setTimeout(()=>{this.store.dispatch((0,P.qR)({payload:{data:{invoice:C,newlyAdded:!0,component:S.y}}}))},200),{type:A.AB.ADD_INVOICE_CLN,payload:C})),(0,u.K)(C=>(this.handleErrorWithoutAlert("SaveNewInvoice",A.m6.ADD_INVOICE,"Add Invoice Failed.",C),(0,_.of)({type:A.pg.VOID})))))))),this.saveNewOfferCL=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(A.AB.SAVE_NEW_OFFER_CLN),(0,E.z)(a=>(this.store.dispatch((0,P.ac)({payload:A.m6.CREATE_OFFER})),this.store.dispatch((0,M.Ni)({payload:{action:"SaveNewOffer",status:A.Bn.INITIATED}})),this.httpClient.post(this.CHILD_API_URL+k.NZ.OFFERS_API,{amount:a.payload.amount,description:a.payload.description,vendor:a.payload.vendor}).pipe((0,D.U)(C=>(this.logger.info(C),this.store.dispatch((0,M.Ni)({payload:{action:"SaveNewOffer",status:A.Bn.COMPLETED}})),this.store.dispatch((0,P.uO)({payload:A.m6.CREATE_OFFER})),setTimeout(()=>{this.store.dispatch((0,P.qR)({payload:{data:{offer:C,newlyAdded:!0,component:I.k}}}))},100),{type:A.AB.ADD_OFFER_CLN,payload:C})),(0,u.K)(C=>(this.handleErrorWithoutAlert("SaveNewOffer",A.m6.CREATE_OFFER,"Create Offer Failed.",C),(0,_.of)({type:A.pg.VOID})))))))),this.invoicesFetchCL=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(A.AB.FETCH_INVOICES_CLN),(0,E.z)(a=>{this.store.dispatch((0,M.Ni)({payload:{action:"FetchInvoices",status:A.Bn.INITIATED}}));const C=a.payload.num_max_invoices?a.payload.num_max_invoices:1e6,N=a.payload.index_offset?a.payload.index_offset:0,F=!a.payload.reversed||a.payload.reversed;return this.httpClient.get(this.CHILD_API_URL+k.NZ.INVOICES_API+"?num_max_invoices="+C+"&index_offset="+N+"&reversed="+F).pipe((0,D.U)(X=>(this.logger.info(X),this.store.dispatch((0,M.Ni)({payload:{action:"FetchInvoices",status:A.Bn.COMPLETED}})),{type:A.AB.SET_INVOICES_CLN,payload:X})),(0,u.K)(X=>(this.handleErrorWithoutAlert("FetchInvoices",A.m6.NO_SPINNER,"Fetching Invoices Failed.",X),(0,_.of)({type:A.pg.VOID}))))}))),this.offersFetchCL=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(A.AB.FETCH_OFFERS_CLN),(0,E.z)(a=>(this.store.dispatch((0,M.Ni)({payload:{action:"FetchOffers",status:A.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+k.NZ.OFFERS_API).pipe((0,D.U)(C=>(this.logger.info(C),this.store.dispatch((0,M.Ni)({payload:{action:"FetchOffers",status:A.Bn.COMPLETED}})),{type:A.AB.SET_OFFERS_CLN,payload:C.offers?C.offers:[]})),(0,u.K)(C=>(this.handleErrorWithoutAlert("FetchOffers",A.m6.NO_SPINNER,"Fetching Offers Failed.",C),(0,_.of)({type:A.pg.VOID})))))))),this.offersDisableCL=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(A.AB.DISABLE_OFFER_CLN),(0,E.z)(a=>(this.store.dispatch((0,P.ac)({payload:A.m6.DISABLE_OFFER})),this.store.dispatch((0,M.Ni)({payload:{action:"DisableOffer",status:A.Bn.INITIATED}})),this.httpClient.delete(this.CHILD_API_URL+k.NZ.OFFERS_API+"/"+a.payload.offer_id).pipe((0,D.U)(C=>(this.logger.info(C),this.store.dispatch((0,M.Ni)({payload:{action:"DisableOffer",status:A.Bn.COMPLETED}})),this.store.dispatch((0,P.uO)({payload:A.m6.DISABLE_OFFER})),this.store.dispatch((0,P.jW)({payload:"Offer Disabled Successfully!"})),{type:A.AB.UPDATE_OFFER_CLN,payload:{offer:C}})),(0,u.K)(C=>(this.handleErrorWithoutAlert("DisableOffer",A.m6.DISABLE_OFFER,"Disabling Offer Failed.",C),(0,_.of)({type:A.pg.VOID})))))))),this.offerBookmarksFetchCL=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(A.AB.FETCH_OFFER_BOOKMARKS_CLN),(0,E.z)(a=>(this.store.dispatch((0,M.Ni)({payload:{action:"FetchOfferBookmarks",status:A.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+k.NZ.OFFERS_API+"/offerbookmarks").pipe((0,D.U)(C=>(this.logger.info(C),this.store.dispatch((0,M.Ni)({payload:{action:"FetchOfferBookmarks",status:A.Bn.COMPLETED}})),{type:A.AB.SET_OFFER_BOOKMARKS_CLN,payload:C||[]})),(0,u.K)(C=>(this.handleErrorWithoutAlert("FetchOfferBookmarks",A.m6.NO_SPINNER,"Fetching Offer Bookmarks Failed.",C),(0,_.of)({type:A.pg.VOID})))))))),this.peidOffersDeleteCL=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(A.AB.DELETE_OFFER_BOOKMARK_CLN),(0,E.z)(a=>(this.store.dispatch((0,P.ac)({payload:A.m6.DELETE_OFFER_BOOKMARK})),this.store.dispatch((0,M.Ni)({payload:{action:"DeleteOfferBookmark",status:A.Bn.INITIATED}})),this.httpClient.delete(this.CHILD_API_URL+k.NZ.OFFERS_API+"/offerbookmark/"+a.payload.bolt12).pipe((0,D.U)(C=>(this.logger.info(C),this.store.dispatch((0,M.Ni)({payload:{action:"DeleteOfferBookmark",status:A.Bn.COMPLETED}})),this.store.dispatch((0,P.uO)({payload:A.m6.DELETE_OFFER_BOOKMARK})),this.store.dispatch((0,P.jW)({payload:"Offer Bookmark Deleted Successfully!"})),{type:A.AB.REMOVE_OFFER_BOOKMARK_CLN,payload:{bolt12:a.payload.bolt12}})),(0,u.K)(C=>(this.handleErrorWithAlert("DeleteOfferBookmark",A.m6.DELETE_OFFER_BOOKMARK,"Deleting Offer Bookmark Failed.",this.CHILD_API_URL+k.NZ.OFFERS_API+"/offerbookmark/"+a.payload.bolt12,C),(0,_.of)({type:A.pg.VOID})))))))),this.SetChannelTransactionCL=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(A.AB.SET_CHANNEL_TRANSACTION_CLN),(0,E.z)(a=>(this.store.dispatch((0,P.ac)({payload:A.m6.SEND_FUNDS})),this.store.dispatch((0,M.Ni)({payload:{action:"SetChannelTransaction",status:A.Bn.INITIATED}})),this.httpClient.post(this.CHILD_API_URL+k.NZ.ON_CHAIN_API,a.payload).pipe((0,D.U)(C=>(this.logger.info(C),this.store.dispatch((0,M.Ni)({payload:{action:"SetChannelTransaction",status:A.Bn.COMPLETED}})),this.store.dispatch((0,P.uO)({payload:A.m6.SEND_FUNDS})),this.store.dispatch((0,M.EG)()),this.store.dispatch((0,M.Ly)()),{type:A.AB.SET_CHANNEL_TRANSACTION_RES_CLN,payload:C})),(0,u.K)(C=>(this.handleErrorWithoutAlert("SetChannelTransaction",A.m6.SEND_FUNDS,"Sending Fund Failed.",C),(0,_.of)({type:A.pg.VOID})))))))),this.utxosFetch=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(A.AB.FETCH_UTXOS_CLN),(0,E.z)(()=>(this.store.dispatch((0,M.Ni)({payload:{action:"FetchUTXOs",status:A.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+k.NZ.ON_CHAIN_API+"/utxos"))),(0,D.U)(a=>(this.logger.info(a),this.store.dispatch((0,M.Ni)({payload:{action:"FetchUTXOs",status:A.Bn.COMPLETED}})),{type:A.AB.SET_UTXOS_CLN,payload:a.outputs||[]})),(0,u.K)(a=>(this.handleErrorWithoutAlert("FetchUTXOs",A.m6.NO_SPINNER,"Fetching UTXOs Failed.",a),(0,_.of)({type:A.pg.VOID}))))),this.pageSettingsFetchCL=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(A.AB.FETCH_PAGE_SETTINGS_CLN),(0,E.z)(()=>(this.store.dispatch((0,M.Ni)({payload:{action:"FetchPageSettings",status:A.Bn.INITIATED}})),this.httpClient.get(k.NZ.PAGE_SETTINGS_API).pipe((0,D.U)(a=>(this.logger.info(a),this.store.dispatch((0,M.Ni)({payload:{action:"FetchPageSettings",status:A.Bn.COMPLETED}})),{type:A.AB.SET_PAGE_SETTINGS_CLN,payload:a||[]})),(0,u.K)(a=>(this.handleErrorWithoutAlert("FetchPageSettings",A.m6.NO_SPINNER,"Fetching Page Settings Failed.",a),(0,_.of)({type:A.pg.VOID})))))))),this.savePageSettingsCL=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(A.AB.SAVE_PAGE_SETTINGS_CLN),(0,E.z)(a=>(this.store.dispatch((0,P.ac)({payload:A.m6.UPDATE_PAGE_SETTINGS})),this.store.dispatch((0,M.Ni)({payload:{action:"SavePageSettings",status:A.Bn.INITIATED}})),this.httpClient.post(k.NZ.PAGE_SETTINGS_API,a.payload).pipe((0,D.U)(C=>(this.logger.info(C),this.store.dispatch((0,M.Ni)({payload:{action:"SavePageSettings",status:A.Bn.COMPLETED}})),this.store.dispatch((0,P.uO)({payload:A.m6.UPDATE_PAGE_SETTINGS})),this.store.dispatch((0,P.jW)({payload:"Page Layout Updated Successfully!"})),{type:A.AB.SET_PAGE_SETTINGS_CLN,payload:C||[]})),(0,u.K)(C=>(this.handleErrorWithAlert("SavePageSettings",A.m6.UPDATE_PAGE_SETTINGS,"Page Settings Update Failed.",k.NZ.PAGE_SETTINGS_API,C),(0,_.of)({type:A.pg.VOID})))))))),this.store.select(z.yA).pipe((0,s.R)(this.unSubs[0])).subscribe(a=>{a.FetchInfo.status!==A.Bn.COMPLETED&&a.FetchInfo.status!==A.Bn.ERROR||a.FetchFees.status!==A.Bn.COMPLETED&&a.FetchFees.status!==A.Bn.ERROR||a.FetchChannels.status!==A.Bn.COMPLETED&&a.FetchChannels.status!==A.Bn.ERROR||a.FetchBalance.status!==A.Bn.COMPLETED&&a.FetchBalance.status!==A.Bn.ERROR||a.FetchLocalRemoteBalance.status!==A.Bn.COMPLETED&&a.FetchLocalRemoteBalance.status!==A.Bn.ERROR||this.flgInitialized||(this.store.dispatch((0,P.uO)({payload:A.m6.INITALIZE_NODE_DATA})),this.flgInitialized=!0)}),this.wsService.clWSMessages.pipe((0,s.R)(this.unSubs[1])).subscribe(a=>{if(this.logger.info("Received new message from the service: "+JSON.stringify(a)),a)switch(a.event){case A.nM.INVOICE:this.logger.info(a),a&&a.data&&a.data.label&&this.store.dispatch((0,M.aL)({payload:a.data}));break;case A.nM.SEND_PAYMENT:case A.nM.BLOCK_HEIGHT:this.logger.info(a);break;default:this.logger.info("Received Event from WS: "+JSON.stringify(a))}})}initializeRemainingData(w,n){this.sessionService.setItem("clUnlocked","true");const o={identity_pubkey:w.id,alias:w.alias,testnet:"testnet"===w.network.toLowerCase(),chains:w.chains,uris:w.uris,version:w.version,api_version:w.api_version,numberOfPendingChannels:w.num_pending_channels};this.store.dispatch((0,P.ac)({payload:A.m6.INITALIZE_NODE_DATA})),this.store.dispatch((0,P._V)({payload:o}));let h=this.location.path();h.includes("/lnd/")?h=h?.replace("/lnd/","/cln/"):h.includes("/ecl/")&&(h=h?.replace("/ecl/","/cln/")),(h.includes("/login")||h.includes("/error")||""===h||"HOME"===n||h.includes("?access-key="))&&(h="/cln/home"),this.router.navigate([h]),this.store.dispatch((0,M.wD)()),this.store.dispatch((0,M.WM)({payload:{num_max_invoices:1e6,index_offset:0,reversed:!0}})),this.store.dispatch((0,M.SN)()),this.store.dispatch((0,M.UR)()),this.store.dispatch((0,M.EG)()),this.store.dispatch((0,M.g3)()),this.store.dispatch((0,M.HJ)({payload:"perkw"})),this.store.dispatch((0,M.HJ)({payload:"perkb"})),this.store.dispatch((0,M.$W)()),this.store.dispatch((0,M.Ly)()),this.store.dispatch((0,M.cQ)())}handleErrorWithoutAlert(w,n,o,h){if(this.logger.error("ERROR IN: "+w+"\n"+JSON.stringify(h)),401===h.status)this.logger.info("Redirecting to Login"),this.store.dispatch((0,P.ts)()),this.store.dispatch((0,P.kS)()),this.store.dispatch((0,P.jW)({payload:"Authentication Failed. Redirecting to Login."}));else{this.store.dispatch((0,P.uO)({payload:n}));const d=this.commonService.extractErrorMessage(h,o);this.store.dispatch((0,M.Ni)({payload:{action:w,status:A.Bn.ERROR,statusCode:h.status.toString(),message:d}}))}}handleErrorWithAlert(w,n,o,h,d){if(this.logger.error(d),401===d.status)this.logger.info("Redirecting to Login"),this.store.dispatch((0,P.ts)()),this.store.dispatch((0,P.kS)()),this.store.dispatch((0,P.jW)({payload:"Authentication Failed. Redirecting to Login."}));else{this.store.dispatch((0,P.uO)({payload:n}));const y=this.commonService.extractErrorMessage(d);this.store.dispatch((0,P.qR)({payload:{data:{type:"ERROR",alertTitle:o,message:{code:d.status,message:y,URL:h},component:p.H}}})),this.store.dispatch((0,M.Ni)({payload:{action:w,status:A.Bn.ERROR,statusCode:d.status.toString(),message:y,URL:h}}))}}ngOnDestroy(){this.unSubs.forEach(w=>{w.next(null),w.complete()})}static#e=this.\u0275fac=function(n){return new(n||$)(W.LFG(e.eX),W.LFG(Z.eN),W.LFG(Q.yh),W.LFG(ie.m),W.LFG(ae.v),W.LFG(_e.mQ),W.LFG(ce.F0),W.LFG(ye.d),W.LFG(ue.Ye))};static#t=this.\u0275prov=W.Yz7({token:$,factory:$.\u0275fac})}},9828:(Ue,q,m)=>{"use strict";m.d(q,{AS:()=>E,Ao:()=>ye,Bo:()=>Q,EQ:()=>he,Hz:()=>ue,JG:()=>S,OL:()=>_e,PP:()=>k,Rn:()=>W,T4:()=>z,Wi:()=>p,Wj:()=>Z,Y_:()=>$,ZW:()=>I,ey:()=>s,gc:()=>M,hx:()=>P,jK:()=>ce,lK:()=>ae,lw:()=>_,xQ:()=>ie,yA:()=>u,zm:()=>A});var e=m(9263);const t=(0,e.ZF)("cln"),_=(0,e.P1)(t,n=>n.nodeSettings),E=(0,e.P1)(t,n=>({pageSettings:n.pageSettings,apiCallStatus:n.apisCallStatus.FetchPageSettings})),s=(0,e.P1)(t,n=>n.information),u=((0,e.P1)(t,n=>n.apisCallStatus.FetchInfo),(0,e.P1)(t,n=>n.apisCallStatus)),k=(0,e.P1)(t,n=>({payments:n.payments,apiCallStatus:n.apisCallStatus.FetchPayments})),p=(0,e.P1)(t,n=>({peers:n.peers,apiCallStatus:n.apisCallStatus.FetchPeers})),S=(0,e.P1)(t,n=>({fees:n.fees,apiCallStatus:n.apisCallStatus.FetchFees})),A=(0,e.P1)(t,n=>({feeRatesPerKB:n.feeRatesPerKB,apiCallStatus:n.apisCallStatus.FetchFeeRatesperkb})),P=(0,e.P1)(t,n=>({feeRatesPerKW:n.feeRatesPerKW,apiCallStatus:n.apisCallStatus.FetchFeeRatesperkw})),M=(0,e.P1)(t,n=>({listInvoices:n.invoices,apiCallStatus:n.apisCallStatus.FetchInvoices})),z=(0,e.P1)(t,n=>({utxos:n.utxos,apiCallStatus:n.apisCallStatus.FetchUTXOs})),I=(0,e.P1)(t,n=>({activeChannels:n.activeChannels,pendingChannels:n.pendingChannels,inactiveChannels:n.inactiveChannels,apiCallStatus:n.apisCallStatus.FetchChannels})),W=(0,e.P1)(t,n=>({balance:n.balance,apiCallStatus:n.apisCallStatus.FetchBalance})),Z=(0,e.P1)(t,n=>({localRemoteBalance:n.localRemoteBalance,apiCallStatus:n.apisCallStatus.FetchLocalRemoteBalance})),Q=(0,e.P1)(t,n=>({forwardingHistory:n.forwardingHistory,apiCallStatus:n.apisCallStatus.FetchForwardingHistoryS})),ie=(0,e.P1)(t,n=>({failedForwardingHistory:n.failedForwardingHistory,apiCallStatus:n.apisCallStatus.FetchForwardingHistoryF})),ae=(0,e.P1)(t,n=>({localFailedForwardingHistory:n.localFailedForwardingHistory,apiCallStatus:n.apisCallStatus.FetchForwardingHistoryL})),_e=(0,e.P1)(t,n=>({information:n.information,nodeSettings:n.nodeSettings,balance:n.balance})),ce=(0,e.P1)(t,n=>({information:n.information,balance:n.balance,numPeers:n.peers.length})),ye=(0,e.P1)(t,n=>({information:n.information,balance:n.balance})),ue=(0,e.P1)(t,n=>({information:n.information,nodeSettings:n.nodeSettings,apisCallStatus:[n.apisCallStatus.FetchInfo,n.apisCallStatus.FetchForwardingHistoryS]})),$=(0,e.P1)(t,n=>({offers:n.offers,apiCallStatus:n.apisCallStatus.FetchOffers})),he=(0,e.P1)(t,n=>({offersBookmarks:n.offersBookmarks,apiCallStatus:n.apisCallStatus.FetchOfferBookmarks}))},5566:(Ue,q,m)=>{"use strict";m.d(q,{y:()=>ht});var e=m(640),t=m(9306),_=m(253),E=m(8951),s=m(7731),D=m(9828),u=m(2560),k=m(5043),p=m(62),S=m(930),A=m(9263),P=m(4666),M=m(3505),z=m(6722),I=m(3704),W=m(4522),Z=m(2156),Q=m(1528),ie=m(1708),ae=m(6896),_e=m(6021),ce=m(6895),ye=m(3390);function ue(Le,Ae){if(1&Le&&u._UZ(0,"qr-code",33),2&Le){const te=u.oxw();u.Q6J("value",(null==te.invoice?null:te.invoice.bolt11)||(null==te.invoice?null:te.invoice.bolt12))("size",te.qrWidth)("errorCorrectionLevel","L")}}function $(Le,Ae){1&Le&&(u.TgZ(0,"span",34),u._uU(1,"N/A"),u.qZA())}const he=function(Le){return{"mr-0":Le}};function w(Le,Ae){if(1&Le&&u._UZ(0,"span",35),2&Le){const te=u.oxw();u.Q6J("ngClass",u.VKq(1,he,te.screenSize===te.screenSizeEnum.XS))}}function n(Le,Ae){if(1&Le&&u._UZ(0,"span",36),2&Le){const te=u.oxw();u.Q6J("ngClass",u.VKq(1,he,te.screenSize===te.screenSizeEnum.XS))}}function o(Le,Ae){if(1&Le&&u._UZ(0,"span",37),2&Le){const te=u.oxw();u.Q6J("ngClass",u.VKq(1,he,te.screenSize===te.screenSizeEnum.XS))}}function h(Le,Ae){if(1&Le&&u._UZ(0,"qr-code",33),2&Le){const te=u.oxw();u.Q6J("value",(null==te.invoice?null:te.invoice.bolt11)||(null==te.invoice?null:te.invoice.bolt12))("size",te.qrWidth)("errorCorrectionLevel","L")}}function d(Le,Ae){1&Le&&(u.TgZ(0,"span",38),u._uU(1,"QR Code Not Applicable"),u.qZA())}function y(Le,Ae){1&Le&&u._UZ(0,"mat-divider",39),2&Le&&u.Q6J("inset",!0)}function L(Le,Ae){if(1&Le&&(u.TgZ(0,"div",19)(1,"div",40),u._UZ(2,"fa-icon",41),u.TgZ(3,"span"),u._uU(4),u.qZA()()()),2&Le){const te=u.oxw();u.xp6(2),u.Q6J("icon",te.faExclamationTriangle),u.xp6(2),u.Oqu(null==te.invoice?null:te.invoice.warning_capacity)}}function B(Le,Ae){1&Le&&(u.ynx(0),u._uU(1," (zero amount) "),u.BQk())}function v(Le,Ae){1&Le&&u._UZ(0,"span",47)}const a=function(){return[]};function C(Le,Ae){if(1&Le&&(u.TgZ(0,"div",43)(1,"div",44)(2,"span",45),u._uU(3),u.ALo(4,"number"),u.qZA(),u.YNc(5,v,1,0,"span",46),u.qZA()()),2&Le){const te=u.oxw(2);u.xp6(3),u.hij("",u.lcZ(4,2,(null==te.invoice?null:te.invoice.msatoshi_received)/1e3)," Sats"),u.xp6(2),u.Q6J("ngForOf",u.DdM(4,a).constructor(35))}}function N(Le,Ae){if(1&Le&&(u.TgZ(0,"div"),u._uU(1),u.ALo(2,"number"),u.qZA()),2&Le){const te=u.oxw(2);u.xp6(1),u.hij("",u.lcZ(2,1,(null==te.invoice?null:te.invoice.msatoshi_received)/1e3)," Sats")}}function F(Le,Ae){if(1&Le&&(u.ynx(0),u.YNc(1,C,6,5,"div",42),u.YNc(2,N,3,3,"div",23),u.BQk()),2&Le){const te=u.oxw();u.xp6(1),u.Q6J("ngIf",te.flgInvoicePaid),u.xp6(1),u.Q6J("ngIf",!te.flgInvoicePaid)}}function X(Le,Ae){1&Le&&(u.TgZ(0,"span"),u._uU(1,"-"),u.qZA())}function Fe(Le,Ae){1&Le&&u._UZ(0,"mat-spinner",49),2&Le&&u.Q6J("diameter",20)}function ke(Le,Ae){if(1&Le&&(u.ynx(0),u.YNc(1,X,2,0,"span",23),u.YNc(2,Fe,1,1,"mat-spinner",48),u.BQk()),2&Le){const te=u.oxw();u.xp6(1),u.Q6J("ngIf","unpaid"!==(null==te.invoice?null:te.invoice.status)||!te.flgVersionCompatible),u.xp6(1),u.Q6J("ngIf","unpaid"===(null==te.invoice?null:te.invoice.status)&&te.flgVersionCompatible)}}function Ke(Le,Ae){if(1&Le&&(u.TgZ(0,"div"),u._UZ(1,"mat-divider",25),u.TgZ(2,"div",19)(3,"div",26)(4,"h4",21),u._uU(5,"Payment Hash"),u.qZA(),u.TgZ(6,"span",24),u._uU(7),u.qZA()()(),u._UZ(8,"mat-divider",25),u.TgZ(9,"div",19)(10,"div",26)(11,"h4",21),u._uU(12,"Label"),u.qZA(),u.TgZ(13,"span",24),u._uU(14),u.qZA()()(),u._UZ(15,"mat-divider",25),u.qZA()),2&Le){const te=u.oxw();u.xp6(7),u.Oqu(null==te.invoice?null:te.invoice.payment_hash),u.xp6(7),u.Oqu(null==te.invoice?null:te.invoice.label)}}function je(Le,Ae){1&Le&&(u.TgZ(0,"p"),u._uU(1,"Show Advanced"),u.qZA())}function Ve(Le,Ae){1&Le&&(u.TgZ(0,"p"),u._uU(1,"Hide Advanced"),u.qZA())}function xe(Le,Ae){if(1&Le){const te=u.EpF();u.TgZ(0,"button",50),u.NdJ("copied",function(ee){u.CHM(te);const H=u.oxw();return u.KtG(H.onCopyPayment(ee))}),u._uU(1,"Copy Invoice"),u.qZA()}if(2&Le){const te=u.oxw();u.Q6J("payload",(null==te.invoice?null:te.invoice.bolt11)||(null==te.invoice?null:te.invoice.bolt12))}}function Ze(Le,Ae){if(1&Le){const te=u.EpF();u.TgZ(0,"button",51),u.NdJ("click",function(){u.CHM(te);const ee=u.oxw();return u.KtG(ee.onClose())}),u._uU(1,"OK"),u.qZA()}}const Ie=function(Le){return{"display-none":Le}},ve=function(Le){return{"xs-scroll-y":Le}},et=function(Le,Ae){return{"mt-2":Le,"mt-1":Ae}};class ht{constructor(Ae,te,pe,ee,H,j){this.dialogRef=Ae,this.data=te,this.logger=pe,this.commonService=ee,this.snackBar=H,this.store=j,this.faReceipt=t.dLy,this.faExclamationTriangle=t.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 _.x,new _.x,new _.x,new _.x,new _.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(D.ey).pipe((0,E.R)(this.unSubs[0])).subscribe(Ae=>{this.flgVersionCompatible=this.commonService.isVersionCompatible(Ae.api_version,"0.6.0")}),this.store.select(D.gc).pipe((0,E.R)(this.unSubs[1])).subscribe(Ae=>{const te=this.invoice.status,ee=(Ae.listInvoices.invoices||[])?.find(H=>H.payment_hash===this.invoice.payment_hash)||null;ee&&(this.invoice=ee),te!==this.invoice.status&&"paid"===this.invoice.status&&(this.flgInvoicePaid=!0,setTimeout(()=>{this.flgInvoicePaid=!1},4e3)),this.logger.info(Ae)})}onClose(){this.dialogRef.close(!1)}onShowAdvanced(){this.showAdvanced=!this.showAdvanced}onCopyPayment(Ae){this.snackBar.open("Invoice copied."),this.logger.info("Copied Text: "+Ae)}ngOnDestroy(){this.unSubs.forEach(Ae=>{Ae.next(null),Ae.complete()})}static#e=this.\u0275fac=function(te){return new(te||ht)(u.Y36(e.so),u.Y36(e.WI),u.Y36(k.mQ),u.Y36(p.v),u.Y36(S.ux),u.Y36(A.yh))};static#t=this.\u0275cmp=u.Xpm({type:ht,selectors:[["rtl-cln-invoice-information"]],decls:72,vars:49,consts:[["fxLayout","column","fxLayout.gt-sm","row","fxLayoutAlign","space-between stretch"],["fxFlex","35",1,"modal-qr-code-container","padding-gap-large",3,"fxLayoutAlign","ngClass"],[3,"value","size","errorCorrectionLevel",4,"ngIf"],["class","font-size-300",4,"ngIf"],["fxFlex","65"],["fxLayout","row","fxLayoutAlign","space-between center",1,"modal-info-header"],["fxFlex","95","fxLayoutAlign","start start"],[1,"page-title-img","mr-1",3,"icon"],[1,"page-title"],["class","dot green ml-1","matTooltip","Paid","matTooltipPosition","right",3,"ngClass",4,"ngIf"],["class","dot yellow ml-1","matTooltip","Unpaid","matTooltipPosition","right",3,"ngClass",4,"ngIf"],["class","dot red ml-1","matTooltip","Expired","matTooltipPosition","right",3,"ngClass",4,"ngIf"],["tabindex","3","fxFlex","5","fxLayoutAlign","center","mat-button","",1,"btn-close-x","p-0",3,"click"],[1,"padding-gap-x-large",3,"ngClass"],["fxLayout","column"],["fxFlex","30",1,"modal-qr-code-container","padding-gap",3,"fxLayoutAlign","ngClass"],["class","font-size-120",4,"ngIf"],["class","my-1",3,"inset",4,"ngIf"],["fxLayout","row",4,"ngIf"],["fxLayout","row"],["fxFlex","50"],["fxLayoutAlign","start",1,"font-bold-500"],[1,"foreground-secondary-text"],[4,"ngIf"],[1,"overflow-wrap","foreground-secondary-text"],[1,"w-100","my-1"],["fxFlex","100"],["fxLayout","row","fxLayoutAlign","end center",3,"ngClass"],["mat-button","","color","primary","type","reset","tabindex","1",1,"mr-1",3,"click"],[4,"ngIf","ngIfElse"],["hideAdvancedText",""],["autoFocus","","mat-button","","color","primary","tabindex","2","type","submit","rtlClipboard","",3,"payload","copied",4,"ngIf"],["autoFocus","","mat-button","","color","primary","tabindex","2","type","button",3,"click",4,"ngIf"],[3,"value","size","errorCorrectionLevel"],[1,"font-size-300"],["matTooltip","Paid","matTooltipPosition","right",1,"dot","green","ml-1",3,"ngClass"],["matTooltip","Unpaid","matTooltipPosition","right",1,"dot","yellow","ml-1",3,"ngClass"],["matTooltip","Expired","matTooltipPosition","right",1,"dot","red","ml-1",3,"ngClass"],[1,"font-size-120"],[1,"my-1",3,"inset"],["fxFlex","100",1,"alert","alert-warn"],[1,"mr-1","alert-icon",3,"icon"],["class","invoice-animation-container",4,"ngIf"],[1,"invoice-animation-container"],[1,"invoice-animation-div"],[1,"wiggle"],["class","particles-circle",4,"ngFor","ngForOf"],[1,"particles-circle"],[3,"diameter",4,"ngIf"],[3,"diameter"],["autoFocus","","mat-button","","color","primary","tabindex","2","type","submit","rtlClipboard","",3,"payload","copied"],["autoFocus","","mat-button","","color","primary","tabindex","2","type","button",3,"click"]],template:function(te,pe){if(1&te&&(u.TgZ(0,"div",0)(1,"div",1),u.YNc(2,ue,1,3,"qr-code",2),u.YNc(3,$,2,0,"span",3),u.qZA(),u.TgZ(4,"div",4)(5,"mat-card-header",5)(6,"div",6),u._UZ(7,"fa-icon",7),u.TgZ(8,"span",8),u._uU(9),u.YNc(10,w,1,3,"span",9),u.YNc(11,n,1,3,"span",10),u.YNc(12,o,1,3,"span",11),u.qZA()(),u.TgZ(13,"button",12),u.NdJ("click",function(){return pe.onClose()}),u._uU(14,"X"),u.qZA()(),u.TgZ(15,"mat-card-content",13)(16,"div",14)(17,"div",15),u.YNc(18,h,1,3,"qr-code",2),u.YNc(19,d,2,0,"span",16),u.qZA(),u.YNc(20,y,1,1,"mat-divider",17),u.YNc(21,L,5,2,"div",18),u.TgZ(22,"div",19)(23,"div",20)(24,"h4",21),u._uU(25),u.qZA(),u.TgZ(26,"span",22),u._uU(27),u.ALo(28,"number"),u.YNc(29,B,2,0,"ng-container",23),u.qZA()(),u.TgZ(30,"div",20)(31,"h4",21),u._uU(32,"Amount Received"),u.qZA(),u.TgZ(33,"span",24),u.YNc(34,F,3,2,"ng-container",23),u.YNc(35,ke,3,2,"ng-container",23),u.qZA()()(),u._UZ(36,"mat-divider",25),u.TgZ(37,"div",19)(38,"div",20)(39,"h4",21),u._uU(40,"Date Expiry"),u.qZA(),u.TgZ(41,"span",22),u._uU(42),u.ALo(43,"date"),u.qZA()(),u.TgZ(44,"div",20)(45,"h4",21),u._uU(46,"Date Settled"),u.qZA(),u.TgZ(47,"span",22),u._uU(48),u.ALo(49,"date"),u.qZA()()(),u._UZ(50,"mat-divider",25),u.TgZ(51,"div",19)(52,"div",26)(53,"h4",21),u._uU(54,"Description"),u.qZA(),u.TgZ(55,"span",22),u._uU(56),u.qZA()()(),u._UZ(57,"mat-divider",25),u.TgZ(58,"div",19)(59,"div",26)(60,"h4",21),u._uU(61),u.qZA(),u.TgZ(62,"span",24),u._uU(63),u.qZA()()(),u.YNc(64,Ke,16,2,"div",23),u.TgZ(65,"div",27)(66,"button",28),u.NdJ("click",function(){return pe.onShowAdvanced()}),u.YNc(67,je,2,0,"p",29),u.YNc(68,Ve,2,0,"ng-template",null,30,u.W1O),u.qZA(),u.YNc(70,xe,2,1,"button",31),u.YNc(71,Ze,2,0,"button",32),u.qZA()()()()()),2&te){const ee=u.MAs(69);u.xp6(1),u.Q6J("fxLayoutAlign",null!=pe.invoice&&pe.invoice.bolt11&&""!==(null==pe.invoice?null:pe.invoice.bolt11)||null!=pe.invoice&&pe.invoice.bolt12&&""!==(null==pe.invoice?null:pe.invoice.bolt12)?"center start":"center center")("ngClass",u.VKq(40,Ie,pe.screenSize===pe.screenSizeEnum.XS||pe.screenSize===pe.screenSizeEnum.SM)),u.xp6(1),u.Q6J("ngIf",(null==pe.invoice?null:pe.invoice.bolt11)&&""!==(null==pe.invoice?null:pe.invoice.bolt11)||(null==pe.invoice?null:pe.invoice.bolt12)&&""!==(null==pe.invoice?null:pe.invoice.bolt12)),u.xp6(1),u.Q6J("ngIf",!(null!=pe.invoice&&pe.invoice.bolt11||null!=pe.invoice&&pe.invoice.bolt12)),u.xp6(4),u.Q6J("icon",pe.faReceipt),u.xp6(2),u.hij(" ",pe.screenSize===pe.screenSizeEnum.XS?pe.newlyAdded?"Created":"Invoice":pe.newlyAdded?"Invoice Created":"Invoice Information"," "),u.xp6(1),u.Q6J("ngIf","paid"===(null==pe.invoice?null:pe.invoice.status)),u.xp6(1),u.Q6J("ngIf","unpaid"===(null==pe.invoice?null:pe.invoice.status)),u.xp6(1),u.Q6J("ngIf","expired"===(null==pe.invoice?null:pe.invoice.status)),u.xp6(3),u.Q6J("ngClass",u.VKq(42,ve,pe.screenSize===pe.screenSizeEnum.XS)),u.xp6(2),u.Q6J("fxLayoutAlign",null!=pe.invoice&&pe.invoice.bolt11&&""!==(null==pe.invoice?null:pe.invoice.bolt11)||null!=pe.invoice&&pe.invoice.bolt12&&""!==(null==pe.invoice?null:pe.invoice.bolt12)?"center start":"center center")("ngClass",u.VKq(44,Ie,pe.screenSize!==pe.screenSizeEnum.XS&&pe.screenSize!==pe.screenSizeEnum.SM)),u.xp6(1),u.Q6J("ngIf",(null==pe.invoice?null:pe.invoice.bolt11)&&""!==(null==pe.invoice?null:pe.invoice.bolt11)||(null==pe.invoice?null:pe.invoice.bolt12)&&""!==(null==pe.invoice?null:pe.invoice.bolt12)),u.xp6(1),u.Q6J("ngIf",!(null!=pe.invoice&&pe.invoice.bolt11||null!=pe.invoice&&pe.invoice.bolt12)),u.xp6(1),u.Q6J("ngIf",pe.screenSize===pe.screenSizeEnum.XS||pe.screenSize===pe.screenSizeEnum.SM),u.xp6(1),u.Q6J("ngIf",null==pe.invoice?null:pe.invoice.warning_capacity),u.xp6(4),u.Oqu(pe.screenSize===pe.screenSizeEnum.XS?"Amount":"Amount Requested"),u.xp6(2),u.hij(" ",u.lcZ(28,32,(null==pe.invoice?null:pe.invoice.msatoshi)/1e3||0)," Sats"),u.xp6(2),u.Q6J("ngIf",!(null!=pe.invoice&&pe.invoice.msatoshi)||"0"===(null==pe.invoice?null:pe.invoice.msatoshi)),u.xp6(5),u.Q6J("ngIf","paid"===(null==pe.invoice?null:pe.invoice.status)),u.xp6(1),u.Q6J("ngIf","paid"!==(null==pe.invoice?null:pe.invoice.status)),u.xp6(7),u.Oqu(u.xi3(43,34,1e3*(null==pe.invoice?null:pe.invoice.expires_at),"dd/MMM/y HH:mm")),u.xp6(6),u.Oqu(u.xi3(49,37,1e3*(null==pe.invoice?null:pe.invoice.paid_at),"dd/MMM/y HH:mm")||"-"),u.xp6(8),u.Oqu((null==pe.invoice?null:pe.invoice.description)||"-"),u.xp6(5),u.hij("",null!=pe.invoice&&pe.invoice.bolt12?"Bolt12":null!=pe.invoice&&pe.invoice.bolt11&&!pe.invoice.label.includes("keysend-")?"Bolt11":"Keysend"," Invoice"),u.xp6(2),u.Oqu((null==pe.invoice?null:pe.invoice.bolt11)||(null==pe.invoice?null:pe.invoice.bolt12)),u.xp6(1),u.Q6J("ngIf",pe.showAdvanced),u.xp6(1),u.Q6J("ngClass",u.WLB(46,et,!pe.showAdvanced,pe.showAdvanced)),u.xp6(2),u.Q6J("ngIf",!pe.showAdvanced)("ngIfElse",ee),u.xp6(3),u.Q6J("ngIf",(null==pe.invoice?null:pe.invoice.bolt11)&&""!==(null==pe.invoice?null:pe.invoice.bolt11)||(null==pe.invoice?null:pe.invoice.bolt12)&&""!==(null==pe.invoice?null:pe.invoice.bolt12)),u.xp6(1),u.Q6J("ngIf",!(null!=pe.invoice&&pe.invoice.bolt11||null!=pe.invoice&&pe.invoice.bolt12))}},dependencies:[P.mk,P.sg,P.O5,M.BN,z.xw,z.Wh,z.yH,I.oO,W.lW,Z.dk,Z.dn,Q.d,ie.Ou,ae.gM,_e.uU,ce.y,ye.h,P.JJ,P.uU]})}},1462:(Ue,q,m)=>{"use strict";m.d(q,{k:()=>X});var e=m(640),t=m(9306),_=m(253),E=m(8951),s=m(7731),D=m(9828),u=m(2560),k=m(5043),p=m(62),S=m(930),A=m(9263),P=m(8104),M=m(4666),z=m(3505),I=m(6722),W=m(3704),Z=m(4522),Q=m(2156),ie=m(1528),ae=m(6021),_e=m(6895),ce=m(3390);function ye(Fe,ke){if(1&Fe&&u._UZ(0,"qr-code",28),2&Fe){const Ke=u.oxw();u.Q6J("value",null==Ke.offer?null:Ke.offer.bolt12)("size",Ke.qrWidth)("errorCorrectionLevel","L")}}function ue(Fe,ke){1&Fe&&(u.TgZ(0,"span",29),u._uU(1,"N/A"),u.qZA())}function $(Fe,ke){if(1&Fe&&u._UZ(0,"qr-code",28),2&Fe){const Ke=u.oxw();u.Q6J("value",null==Ke.offer?null:Ke.offer.bolt12)("size",Ke.qrWidth)("errorCorrectionLevel","L")}}function he(Fe,ke){1&Fe&&(u.TgZ(0,"span",30),u._uU(1,"QR Code Not Applicable"),u.qZA())}function w(Fe,ke){1&Fe&&u._UZ(0,"mat-divider",31),2&Fe&&u.Q6J("inset",!0)}function n(Fe,ke){1&Fe&&u._UZ(0,"mat-divider",19)}function o(Fe,ke){if(1&Fe&&(u.TgZ(0,"div",15)(1,"div",16)(2,"h4",17),u._uU(3,"Used"),u.qZA(),u.TgZ(4,"span",18),u._uU(5),u.qZA()(),u.TgZ(6,"div",16)(7,"h4",17),u._uU(8,"Single Use"),u.qZA(),u.TgZ(9,"span",18),u._uU(10),u.qZA()()()),2&Fe){const Ke=u.oxw(2);u.xp6(5),u.hij(" ",null!=Ke.offer&&Ke.offer.used?null!=Ke.offer&&Ke.offer.used?"Yes":"No":"N/K"," "),u.xp6(5),u.hij(" ",null!=Ke.offer&&Ke.offer.single_use?null!=Ke.offer&&Ke.offer.single_use?"Yes":"No":"N/K"," ")}}function h(Fe,ke){1&Fe&&u._UZ(0,"mat-divider",19)}function d(Fe,ke){if(1&Fe&&(u.TgZ(0,"div",15)(1,"div",20)(2,"h4",17),u._uU(3,"Vendor"),u.qZA(),u.TgZ(4,"span",34),u._uU(5),u.qZA()()()),2&Fe){const Ke=u.oxw(2);u.xp6(5),u.Oqu((null==Ke.offerDecoded?null:Ke.offerDecoded.vendor)||(null==Ke.offerDecoded?null:Ke.offerDecoded.issuer))}}function y(Fe,ke){if(1&Fe&&(u.TgZ(0,"div"),u.YNc(1,n,1,0,"mat-divider",32),u.YNc(2,o,11,2,"div",33),u.YNc(3,h,1,0,"mat-divider",32),u.YNc(4,d,6,1,"div",33),u._UZ(5,"mat-divider",19),u.TgZ(6,"div",15)(7,"div",20)(8,"h4",17),u._uU(9,"Offer ID"),u.qZA(),u.TgZ(10,"span",18),u._uU(11),u.qZA()()(),u._UZ(12,"mat-divider",19),u.qZA()),2&Fe){const Ke=u.oxw();u.xp6(1),u.Q6J("ngIf",(null==Ke.offer?null:Ke.offer.used)||(null==Ke.offer?null:Ke.offer.single_use)),u.xp6(1),u.Q6J("ngIf",(null==Ke.offer?null:Ke.offer.used)||(null==Ke.offer?null:Ke.offer.single_use)),u.xp6(1),u.Q6J("ngIf",(null==Ke.offerDecoded?null:Ke.offerDecoded.vendor)||(null==Ke.offerDecoded?null:Ke.offerDecoded.issuer)),u.xp6(1),u.Q6J("ngIf",(null==Ke.offerDecoded?null:Ke.offerDecoded.vendor)||(null==Ke.offerDecoded?null:Ke.offerDecoded.issuer)),u.xp6(7),u.Oqu(Ke.offerDecoded.offer_id)}}function L(Fe,ke){1&Fe&&(u.TgZ(0,"p"),u._uU(1,"Show Advanced"),u.qZA())}function B(Fe,ke){1&Fe&&(u.TgZ(0,"p"),u._uU(1,"Hide Advanced"),u.qZA())}function v(Fe,ke){if(1&Fe){const Ke=u.EpF();u.TgZ(0,"button",35),u.NdJ("copied",function(Ve){u.CHM(Ke);const xe=u.oxw();return u.KtG(xe.onCopyOffer(Ve))}),u._uU(1,"Copy Offer"),u.qZA()}if(2&Fe){const Ke=u.oxw();u.Q6J("payload",null==Ke.offer?null:Ke.offer.bolt12)}}function a(Fe,ke){if(1&Fe){const Ke=u.EpF();u.TgZ(0,"button",36),u.NdJ("click",function(){u.CHM(Ke);const Ve=u.oxw();return u.KtG(Ve.onClose())}),u._uU(1,"OK"),u.qZA()}}const C=function(Fe){return{"display-none":Fe}},N=function(Fe){return{"xs-scroll-y":Fe}},F=function(Fe,ke){return{"mt-2":Fe,"mt-1":ke}};class X{constructor(ke,Ke,je,Ve,xe,Ze,Ie){this.dialogRef=ke,this.data=Ke,this.logger=je,this.commonService=Ve,this.snackBar=xe,this.store=Ze,this.dataService=Ie,this.faReceipt=t.dLy,this.faExclamationTriangle=t.eHv,this.showAdvanced=!1,this.newlyAdded=!1,this.offerDecoded={},this.qrWidth=240,this.screenSize="",this.screenSizeEnum=s.cu,this.flgOfferPaid=!1,this.flgVersionCompatible=!0,this.unSubs=[new _.x,new _.x,new _.x,new _.x,new _.x]}ngOnInit(){this.offer=this.data.offer,this.newlyAdded=!!this.data.newlyAdded,this.screenSize=this.commonService.getScreenSize(),this.screenSize===s.cu.XS&&(this.qrWidth=220),this.store.select(D.ey).pipe((0,E.R)(this.unSubs[0])).subscribe(ke=>{this.flgVersionCompatible=this.commonService.isVersionCompatible(ke.api_version,"0.6.0")}),this.dataService.decodePayment(this.offer.bolt12,!0).pipe((0,E.R)(this.unSubs[1])).subscribe(ke=>{this.offerDecoded=ke,this.offerDecoded.offer_id&&!this.offerDecoded.amount_msat?(this.offerDecoded.amount_msat="0msat",this.offerDecoded.amount=0):this.offerDecoded.amount=this.offerDecoded.amount?+this.offerDecoded.amount:this.offerDecoded.amount_msat?+this.offerDecoded.amount_msat?.slice(0,-4):null})}onClose(){this.dialogRef.close(!1)}onShowAdvanced(){this.showAdvanced=!this.showAdvanced}onCopyOffer(ke){this.snackBar.open("Offer copied."),this.logger.info("Copied Text: "+ke)}ngOnDestroy(){this.unSubs.forEach(ke=>{ke.next(null),ke.complete()})}static#e=this.\u0275fac=function(Ke){return new(Ke||X)(u.Y36(e.so),u.Y36(e.WI),u.Y36(k.mQ),u.Y36(p.v),u.Y36(S.ux),u.Y36(A.yh),u.Y36(P.D))};static#t=this.\u0275cmp=u.Xpm({type:X,selectors:[["rtl-cln-offer-information"]],decls:52,vars:33,consts:[["fxLayout","column","fxLayout.gt-sm","row","fxLayoutAlign","space-between stretch"],["fxFlex","35",1,"modal-qr-code-container","padding-gap-large",3,"fxLayoutAlign","ngClass"],[3,"value","size","errorCorrectionLevel",4,"ngIf"],["class","font-size-300",4,"ngIf"],["fxFlex","65"],["fxLayout","row","fxLayoutAlign","space-between center",1,"modal-info-header"],["fxFlex","95","fxLayoutAlign","start start"],[1,"page-title-img","mr-1",3,"icon"],[1,"page-title"],["tabindex","3","fxFlex","5","fxLayoutAlign","center","mat-button","",1,"btn-close-x","p-0",3,"click"],[1,"padding-gap-x-large",3,"ngClass"],["fxLayout","column"],["fxFlex","30",1,"modal-qr-code-container","padding-gap",3,"fxLayoutAlign","ngClass"],["class","font-size-120",4,"ngIf"],["class","my-1",3,"inset",4,"ngIf"],["fxLayout","row"],["fxFlex","50"],["fxLayoutAlign","start",1,"font-bold-500"],[1,"foreground-secondary-text"],[1,"w-100","my-1"],["fxFlex","100"],[4,"ngIf"],["fxLayout","row","fxLayoutAlign","end center",3,"ngClass"],["mat-button","","color","primary","type","reset","tabindex","1",1,"mr-1",3,"click"],[4,"ngIf","ngIfElse"],["hideAdvancedText",""],["autoFocus","","mat-button","","color","primary","tabindex","2","type","submit","rtlClipboard","",3,"payload","copied",4,"ngIf"],["autoFocus","","mat-button","","color","primary","tabindex","2","type","button",3,"click",4,"ngIf"],[3,"value","size","errorCorrectionLevel"],[1,"font-size-300"],[1,"font-size-120"],[1,"my-1",3,"inset"],["class","w-100 my-1",4,"ngIf"],["fxLayout","row",4,"ngIf"],[1,"overflow-wrap","foreground-secondary-text"],["autoFocus","","mat-button","","color","primary","tabindex","2","type","submit","rtlClipboard","",3,"payload","copied"],["autoFocus","","mat-button","","color","primary","tabindex","2","type","button",3,"click"]],template:function(Ke,je){if(1&Ke&&(u.TgZ(0,"div",0)(1,"div",1),u.YNc(2,ye,1,3,"qr-code",2),u.YNc(3,ue,2,0,"span",3),u.qZA(),u.TgZ(4,"div",4)(5,"mat-card-header",5)(6,"div",6),u._UZ(7,"fa-icon",7),u.TgZ(8,"span",8),u._uU(9),u.qZA()(),u.TgZ(10,"button",9),u.NdJ("click",function(){return je.onClose()}),u._uU(11,"X"),u.qZA()(),u.TgZ(12,"mat-card-content",10)(13,"div",11)(14,"div",12),u.YNc(15,$,1,3,"qr-code",2),u.YNc(16,he,2,0,"span",13),u.qZA(),u.YNc(17,w,1,1,"mat-divider",14),u.TgZ(18,"div",15)(19,"div",16)(20,"h4",17),u._uU(21,"Amount Requested (Sats)"),u.qZA(),u.TgZ(22,"span",18),u._uU(23),u.ALo(24,"number"),u.qZA()(),u.TgZ(25,"div",16)(26,"h4",17),u._uU(27,"Active"),u.qZA(),u.TgZ(28,"span",18),u._uU(29),u.qZA()()(),u._UZ(30,"mat-divider",19),u.TgZ(31,"div",15)(32,"div",20)(33,"h4",17),u._uU(34,"Description"),u.qZA(),u.TgZ(35,"span",18),u._uU(36),u.qZA()()(),u._UZ(37,"mat-divider",19),u.TgZ(38,"div",15)(39,"div",20)(40,"h4",17),u._uU(41,"Offer Request"),u.qZA(),u.TgZ(42,"span",18),u._uU(43),u.qZA()()(),u.YNc(44,y,13,5,"div",21),u.TgZ(45,"div",22)(46,"button",23),u.NdJ("click",function(){return je.onShowAdvanced()}),u.YNc(47,L,2,0,"p",24),u.YNc(48,B,2,0,"ng-template",null,25,u.W1O),u.qZA(),u.YNc(50,v,2,1,"button",26),u.YNc(51,a,2,0,"button",27),u.qZA()()()()()),2&Ke){const Ve=u.MAs(49);u.xp6(1),u.Q6J("fxLayoutAlign",null!=je.offer&&je.offer.bolt12&&""!==(null==je.offer?null:je.offer.bolt12)?"center start":"center center")("ngClass",u.VKq(24,C,je.screenSize===je.screenSizeEnum.XS||je.screenSize===je.screenSizeEnum.SM)),u.xp6(1),u.Q6J("ngIf",(null==je.offer?null:je.offer.bolt12)&&""!==(null==je.offer?null:je.offer.bolt12)),u.xp6(1),u.Q6J("ngIf",!(null!=je.offer&&je.offer.bolt12)||""===(null==je.offer?null:je.offer.bolt12)),u.xp6(4),u.Q6J("icon",je.faReceipt),u.xp6(2),u.Oqu(je.screenSize===je.screenSizeEnum.XS?je.newlyAdded?"Created":"Offer":je.newlyAdded?"Offer Created":"Offer Information"),u.xp6(3),u.Q6J("ngClass",u.VKq(26,N,je.screenSize===je.screenSizeEnum.XS)),u.xp6(2),u.Q6J("fxLayoutAlign",null!=je.offer&&je.offer.bolt12&&""!==(null==je.offer?null:je.offer.bolt12)?"center start":"center center")("ngClass",u.VKq(28,C,je.screenSize!==je.screenSizeEnum.XS&&je.screenSize!==je.screenSizeEnum.SM)),u.xp6(1),u.Q6J("ngIf",(null==je.offer?null:je.offer.bolt12)&&""!==(null==je.offer?null:je.offer.bolt12)),u.xp6(1),u.Q6J("ngIf",!(null!=je.offer&&je.offer.bolt12)||""===(null==je.offer?null:je.offer.bolt12)),u.xp6(1),u.Q6J("ngIf",je.screenSize===je.screenSizeEnum.XS||je.screenSize===je.screenSizeEnum.SM),u.xp6(6),u.hij(" ",null!=je.offerDecoded&&je.offerDecoded.amount_msat&&0!==(null==je.offerDecoded?null:je.offerDecoded.amount)?u.lcZ(24,22,(null==je.offerDecoded?null:je.offerDecoded.amount)/1e3):"Open Offer"," "),u.xp6(6),u.hij(" ",null!=je.offer&&je.offer.active?null!=je.offer&&je.offer.active?"Active":"Inactive":"N/K"," "),u.xp6(7),u.hij(" ",null==je.offerDecoded?null:je.offerDecoded.description," "),u.xp6(7),u.Oqu(null==je.offer?null:je.offer.bolt12),u.xp6(1),u.Q6J("ngIf",je.showAdvanced),u.xp6(1),u.Q6J("ngClass",u.WLB(30,F,!je.showAdvanced,je.showAdvanced)),u.xp6(2),u.Q6J("ngIf",!je.showAdvanced)("ngIfElse",Ve),u.xp6(3),u.Q6J("ngIf",(null==je.offer?null:je.offer.bolt12)&&""!==(null==je.offer?null:je.offer.bolt12)),u.xp6(1),u.Q6J("ngIf",!(null!=je.offer&&je.offer.bolt12)||""===(null==je.offer?null:je.offer.bolt12))}},dependencies:[M.mk,M.O5,z.BN,I.xw,I.Wh,I.yH,W.oO,Z.lW,Q.dk,Q.dn,ie.d,ae.uU,_e.y,ce.h,M.JJ]})}},2994:(Ue,q,m)=>{"use strict";m.d(q,{$W:()=>_e,BL:()=>y,Bw:()=>Q,CX:()=>S,DJ:()=>Le,EK:()=>w,El:()=>ye,Fd:()=>E,GD:()=>he,HG:()=>ae,HI:()=>v,Iy:()=>ke,Lf:()=>Fe,Nr:()=>Ve,OG:()=>L,On:()=>ie,QZ:()=>_,RX:()=>P,SN:()=>A,Sf:()=>ve,TM:()=>F,TW:()=>I,UR:()=>M,WM:()=>je,WO:()=>a,YP:()=>Ze,YX:()=>h,Z$:()=>xe,Z8:()=>ce,Zr:()=>s,_E:()=>n,aL:()=>Ie,cQ:()=>B,eF:()=>k,eN:()=>z,i:()=>W,iL:()=>Z,iz:()=>p,kL:()=>C,mC:()=>X,n7:()=>et,oV:()=>N,pW:()=>d,pd:()=>u,ti:()=>Ae,wD:()=>D});var e=m(9263),t=m(7731);const _=(0,e.PH)(t.lr.UPDATE_API_CALL_STATUS_ECL,(0,e.Ky)()),E=(0,e.PH)(t.lr.RESET_ECL_STORE,(0,e.Ky)()),s=(0,e.PH)(t.lr.SET_CHILD_NODE_SETTINGS_ECL,(0,e.Ky)()),D=(0,e.PH)(t.lr.FETCH_PAGE_SETTINGS_ECL),u=(0,e.PH)(t.lr.SET_PAGE_SETTINGS_ECL,(0,e.Ky)()),k=(0,e.PH)(t.lr.SAVE_PAGE_SETTINGS_ECL,(0,e.Ky)()),p=(0,e.PH)(t.lr.FETCH_INFO_ECL,(0,e.Ky)()),S=(0,e.PH)(t.lr.SET_INFO_ECL,(0,e.Ky)()),A=(0,e.PH)(t.lr.FETCH_FEES_ECL),P=(0,e.PH)(t.lr.SET_FEES_ECL,(0,e.Ky)()),M=(0,e.PH)(t.lr.FETCH_CHANNELS_ECL,(0,e.Ky)()),z=(0,e.PH)(t.lr.SET_ACTIVE_CHANNELS_ECL,(0,e.Ky)()),I=(0,e.PH)(t.lr.SET_PENDING_CHANNELS_ECL,(0,e.Ky)()),W=(0,e.PH)(t.lr.SET_INACTIVE_CHANNELS_ECL,(0,e.Ky)()),Z=(0,e.PH)(t.lr.FETCH_ONCHAIN_BALANCE_ECL),Q=(0,e.PH)(t.lr.SET_ONCHAIN_BALANCE_ECL,(0,e.Ky)()),ie=(0,e.PH)(t.lr.SET_LIGHTNING_BALANCE_ECL,(0,e.Ky)()),ae=(0,e.PH)(t.lr.SET_CHANNELS_STATUS_ECL,(0,e.Ky)()),_e=(0,e.PH)(t.lr.FETCH_PEERS_ECL),ce=(0,e.PH)(t.lr.SET_PEERS_ECL,(0,e.Ky)()),ye=(0,e.PH)(t.lr.SAVE_NEW_PEER_ECL,(0,e.Ky)()),he=((0,e.PH)(t.lr.NEWLY_ADDED_PEER_ECL,(0,e.Ky)()),(0,e.PH)(t.lr.ADD_PEER_ECL,(0,e.Ky)()),(0,e.PH)(t.lr.DETACH_PEER_ECL,(0,e.Ky)())),w=(0,e.PH)(t.lr.REMOVE_PEER_ECL,(0,e.Ky)()),n=(0,e.PH)(t.lr.GET_NEW_ADDRESS_ECL),h=((0,e.PH)(t.lr.SET_NEW_ADDRESS_ECL,(0,e.Ky)()),(0,e.PH)(t.lr.SAVE_NEW_CHANNEL_ECL,(0,e.Ky)())),d=(0,e.PH)(t.lr.UPDATE_CHANNEL_ECL,(0,e.Ky)()),y=(0,e.PH)(t.lr.CLOSE_CHANNEL_ECL,(0,e.Ky)()),L=(0,e.PH)(t.lr.REMOVE_CHANNEL_ECL,(0,e.Ky)()),B=(0,e.PH)(t.lr.FETCH_PAYMENTS_ECL),v=(0,e.PH)(t.lr.SET_PAYMENTS_ECL,(0,e.Ky)()),a=(0,e.PH)(t.lr.GET_QUERY_ROUTES_ECL,(0,e.Ky)()),C=(0,e.PH)(t.lr.SET_QUERY_ROUTES_ECL,(0,e.Ky)()),N=(0,e.PH)(t.lr.SEND_PAYMENT_ECL,(0,e.Ky)()),F=(0,e.PH)(t.lr.SEND_PAYMENT_STATUS_ECL,(0,e.Ky)()),X=(0,e.PH)(t.lr.FETCH_TRANSACTIONS_ECL),Fe=(0,e.PH)(t.lr.SET_TRANSACTIONS_ECL,(0,e.Ky)()),ke=(0,e.PH)(t.lr.SEND_ONCHAIN_FUNDS_ECL,(0,e.Ky)()),je=((0,e.PH)(t.lr.SEND_ONCHAIN_FUNDS_RES_ECL,(0,e.Ky)()),(0,e.PH)(t.lr.FETCH_INVOICES_ECL)),Ve=(0,e.PH)(t.lr.SET_INVOICES_ECL,(0,e.Ky)()),xe=(0,e.PH)(t.lr.CREATE_INVOICE_ECL,(0,e.Ky)()),Ze=(0,e.PH)(t.lr.ADD_INVOICE_ECL,(0,e.Ky)()),Ie=(0,e.PH)(t.lr.UPDATE_INVOICE_ECL,(0,e.Ky)()),ve=(0,e.PH)(t.lr.PEER_LOOKUP_ECL,(0,e.Ky)()),et=(0,e.PH)(t.lr.INVOICE_LOOKUP_ECL,(0,e.Ky)()),Le=((0,e.PH)(t.lr.SET_LOOKUP_ECL,(0,e.Ky)()),(0,e.PH)(t.lr.UPDATE_CHANNEL_STATE_ECL,(0,e.Ky)())),Ae=(0,e.PH)(t.lr.UPDATE_RELAYED_PAYMENT_ECL,(0,e.Ky)())},3289:(Ue,q,m)=>{"use strict";m.d(q,{o:()=>ue});var e=m(3599),t=m(253),_=m(745),E=m(9525),s=m(8951),D=m(635),u=m(3158),k=m(2340),p=m(1786),S=m(7731),A=m(7861),P=m(7766),M=m(2994),z=m(2501),I=m(2560),W=m(8987),Z=m(9263),Q=m(5986),ie=m(62),ae=m(5043),_e=m(3547),ce=m(3512),ye=m(4666);class ue{constructor(he,w,n,o,h,d,y,L,B){this.actions=he,this.httpClient=w,this.store=n,this.sessionService=o,this.commonService=h,this.logger=d,this.router=y,this.wsService=L,this.location=B,this.CHILD_API_URL=k.T5+"/ecl",this.flgInitialized=!1,this.flgReceivedPaymentUpdateFromWS=!1,this.latestPaymentRes="",this.rawChannelsList=[],this.unSubs=[new t.x,new t.x,new t.x],this.infoFetchECL=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(S.lr.FETCH_INFO_ECL),(0,E.z)(v=>(this.flgInitialized=!1,this.store.dispatch((0,A.lC)({payload:this.CHILD_API_URL})),this.store.dispatch((0,A.ac)({payload:S.m6.GET_NODE_INFO})),this.store.dispatch((0,M.QZ)({payload:{action:"FetchInfo",status:S.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+k.NZ.GETINFO_API).pipe((0,s.R)(this.actions.pipe((0,e.l4)(S.pg.SET_SELECTED_NODE))),(0,D.U)(a=>(this.logger.info(a),this.initializeRemainingData(a,v.payload.loadPage),this.store.dispatch((0,M.QZ)({payload:{action:"FetchInfo",status:S.Bn.COMPLETED}})),this.store.dispatch((0,A.uO)({payload:S.m6.GET_NODE_INFO})),{type:S.lr.SET_INFO_ECL,payload:a||{}})),(0,u.K)(a=>{const C=this.commonService.extractErrorCode(a),N=503===C?"Unable to Connect to Eclair Server.":this.commonService.extractErrorMessage(a);return this.router.navigate(["/error"],{state:{errorCode:C,errorMessage:N}}),this.handleErrorWithoutAlert("FetchInfo",S.m6.GET_NODE_INFO,"Fetching Node Info Failed.",{status:C,error:N}),(0,_.of)({type:S.pg.VOID})})))))),this.fetchFees=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(S.lr.FETCH_FEES_ECL),(0,E.z)(()=>(this.store.dispatch((0,M.QZ)({payload:{action:"FetchFees",status:S.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+k.NZ.FEES_API+"/fees").pipe((0,D.U)(v=>(this.logger.info(v),this.store.dispatch((0,M.QZ)({payload:{action:"FetchFees",status:S.Bn.COMPLETED}})),{type:S.lr.SET_FEES_ECL,payload:v||{}})),(0,u.K)(v=>(this.handleErrorWithoutAlert("FetchFees",S.m6.NO_SPINNER,"Fetching Fees Failed.",v),(0,_.of)({type:S.pg.VOID})))))))),this.fetchPayments=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(S.lr.FETCH_PAYMENTS_ECL),(0,E.z)(()=>(this.store.dispatch((0,M.QZ)({payload:{action:"FetchPayments",status:S.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+k.NZ.FEES_API+"/payments").pipe((0,D.U)(v=>(this.logger.info(v),this.store.dispatch((0,M.QZ)({payload:{action:"FetchPayments",status:S.Bn.COMPLETED}})),{type:S.lr.SET_PAYMENTS_ECL,payload:v||{}})),(0,u.K)(v=>(this.handleErrorWithoutAlert("FetchPayments",S.m6.NO_SPINNER,"Fetching Payments Failed.",v),(0,_.of)({type:S.pg.VOID})))))))),this.channelsFetch=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(S.lr.FETCH_CHANNELS_ECL),(0,E.z)(v=>(this.store.dispatch((0,M.QZ)({payload:{action:"FetchChannels",status:S.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+k.NZ.CHANNELS_API).pipe((0,D.U)(a=>(this.logger.info(a),this.rawChannelsList=a,this.setChannelsAndStatusAndBalances(),this.store.dispatch((0,M.QZ)({payload:{action:"FetchChannels",status:S.Bn.COMPLETED}})),v.payload&&v.payload.fetchPayments&&this.store.dispatch((0,M.cQ)()),{type:S.pg.VOID})),(0,u.K)(a=>(this.handleErrorWithoutAlert("FetchChannels",S.m6.NO_SPINNER,"Fetching Channels Failed.",a),(0,_.of)({type:S.pg.VOID})))))))),this.fetchOnchainBalance=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(S.lr.FETCH_ONCHAIN_BALANCE_ECL),(0,E.z)(()=>(this.store.dispatch((0,M.QZ)({payload:{action:"FetchOnchainBalance",status:S.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+k.NZ.ON_CHAIN_API+"/balance"))),(0,D.U)(v=>(this.logger.info(v),this.store.dispatch((0,M.QZ)({payload:{action:"FetchOnchainBalance",status:S.Bn.COMPLETED}})),{type:S.lr.SET_ONCHAIN_BALANCE_ECL,payload:v||{}})),(0,u.K)(v=>(this.handleErrorWithoutAlert("FetchOnchainBalance",S.m6.NO_SPINNER,"Fetching Onchain Balances Failed.",v),(0,_.of)({type:S.pg.VOID}))))),this.peersFetch=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(S.lr.FETCH_PEERS_ECL),(0,E.z)(()=>(this.store.dispatch((0,M.QZ)({payload:{action:"FetchPeers",status:S.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+k.NZ.PEERS_API).pipe((0,D.U)(v=>(this.logger.info(v),this.store.dispatch((0,M.QZ)({payload:{action:"FetchPeers",status:S.Bn.COMPLETED}})),{type:S.lr.SET_PEERS_ECL,payload:v||[]})),(0,u.K)(v=>(this.handleErrorWithoutAlert("FetchPeers",S.m6.NO_SPINNER,"Fetching Peers Failed.",v),(0,_.of)({type:S.pg.VOID})))))))),this.getNewAddress=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(S.lr.GET_NEW_ADDRESS_ECL),(0,E.z)(()=>(this.store.dispatch((0,A.ac)({payload:S.m6.GENERATE_NEW_ADDRESS})),this.httpClient.get(this.CHILD_API_URL+k.NZ.ON_CHAIN_API).pipe((0,D.U)(v=>(this.logger.info(v),this.store.dispatch((0,A.uO)({payload:S.m6.GENERATE_NEW_ADDRESS})),{type:S.lr.SET_NEW_ADDRESS_ECL,payload:v})),(0,u.K)(v=>(this.handleErrorWithAlert("GetNewAddress",S.m6.GENERATE_NEW_ADDRESS,"Generate New Address Failed",this.CHILD_API_URL+k.NZ.ON_CHAIN_API,v),(0,_.of)({type:S.pg.VOID})))))))),this.setNewAddress=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(S.lr.SET_NEW_ADDRESS_ECL),(0,D.U)(v=>(this.logger.info(v.payload),v.payload))),{dispatch:!1}),this.saveNewPeer=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(S.lr.SAVE_NEW_PEER_ECL),(0,E.z)(v=>(this.store.dispatch((0,A.ac)({payload:S.m6.CONNECT_PEER})),this.store.dispatch((0,M.QZ)({payload:{action:"SaveNewPeer",status:S.Bn.INITIATED}})),this.httpClient.post(this.CHILD_API_URL+k.NZ.PEERS_API+(v.payload.id.includes("@")?"?uri=":"?nodeId=")+v.payload.id,{}).pipe((0,D.U)(a=>(this.logger.info(a),this.store.dispatch((0,M.QZ)({payload:{action:"SaveNewPeer",status:S.Bn.COMPLETED}})),a=a||[],this.store.dispatch((0,A.uO)({payload:S.m6.CONNECT_PEER})),this.store.dispatch((0,M.Z8)({payload:a})),{type:S.lr.NEWLY_ADDED_PEER_ECL,payload:{peer:a.find(C=>C.nodeId===(v.payload.id.includes("@")?v.payload.id.substring(0,v.payload.id.indexOf("@")):v.payload.id))}})),(0,u.K)(a=>(this.handleErrorWithoutAlert("SaveNewPeer",S.m6.CONNECT_PEER,"Peer Connection Failed.",a),(0,_.of)({type:S.pg.VOID})))))))),this.detachPeer=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(S.lr.DETACH_PEER_ECL),(0,E.z)(v=>(this.store.dispatch((0,A.ac)({payload:S.m6.DISCONNECT_PEER})),this.httpClient.delete(this.CHILD_API_URL+k.NZ.PEERS_API+"/"+v.payload.nodeId).pipe((0,D.U)(a=>(this.logger.info(a),this.store.dispatch((0,A.uO)({payload:S.m6.DISCONNECT_PEER})),this.store.dispatch((0,A.jW)({payload:"Disconnecting Peer!"})),{type:S.lr.REMOVE_PEER_ECL,payload:{nodeId:v.payload.nodeId}})),(0,u.K)(a=>(this.handleErrorWithAlert("DisconnectPeer",S.m6.DISCONNECT_PEER,"Unable to Detach Peer. Try again later.",this.CHILD_API_URL+k.NZ.PEERS_API+"/"+v.payload.nodeId,a),(0,_.of)({type:S.pg.VOID})))))))),this.openNewChannel=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(S.lr.SAVE_NEW_CHANNEL_ECL),(0,E.z)(v=>{this.store.dispatch((0,A.ac)({payload:S.m6.OPEN_CHANNEL})),this.store.dispatch((0,M.QZ)({payload:{action:"SaveNewChannel",status:S.Bn.INITIATED}}));const a={nodeId:v.payload.nodeId,fundingSatoshis:v.payload.amount,announceChannel:!v.payload.private};return v.payload.feeRate&&v.payload.feeRate>0&&(a.fundingFeerateSatByte=v.payload.feeRate),this.httpClient.post(this.CHILD_API_URL+k.NZ.CHANNELS_API,a).pipe((0,D.U)(C=>(this.logger.info(C),this.store.dispatch((0,M.QZ)({payload:{action:"SaveNewChannel",status:S.Bn.COMPLETED}})),this.store.dispatch((0,M.$W)()),this.store.dispatch((0,M.iL)()),this.store.dispatch((0,A.uO)({payload:S.m6.OPEN_CHANNEL})),this.store.dispatch((0,A.jW)({payload:"Channel Added Successfully!"})),{type:S.lr.FETCH_CHANNELS_ECL,payload:{fetchPayments:!1}})),(0,u.K)(C=>(this.handleErrorWithoutAlert("SaveNewChannel",S.m6.OPEN_CHANNEL,"Opening Channel Failed.",C),(0,_.of)({type:S.pg.VOID}))))}))),this.updateChannel=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(S.lr.UPDATE_CHANNEL_ECL),(0,E.z)(v=>{this.store.dispatch((0,A.ac)({payload:S.m6.UPDATE_CHAN_POLICY}));let a="?feeBaseMsat="+v.payload.baseFeeMsat+"&feeProportionalMillionths="+v.payload.feeRate;return a=v.payload.nodeIds?a+"&nodeIds="+v.payload.nodeIds:v.payload.nodeId?a+"&nodeId="+v.payload.nodeId:v.payload.channelIds?a+"&channelIds="+v.payload.channelIds:a+"&channelId="+v.payload.channelId,this.httpClient.post(this.CHILD_API_URL+k.NZ.CHANNELS_API+"/updateRelayFee"+a,{}).pipe((0,D.U)(C=>(this.logger.info(C),this.store.dispatch((0,A.uO)({payload:S.m6.UPDATE_CHAN_POLICY})),v.payload.nodeIds||v.payload.channelIds?this.store.dispatch((0,A.jW)({payload:"Channels Updated Successfully."})):this.store.dispatch((0,A.jW)({payload:"Channel Updated Successfully!"})),{type:S.lr.FETCH_CHANNELS_ECL,payload:{fetchPayments:!1}})),(0,u.K)(C=>(this.handleErrorWithAlert("UpdateChannels",S.m6.UPDATE_CHAN_POLICY,"Update Channel Failed",this.CHILD_API_URL+k.NZ.CHANNELS_API,C),(0,_.of)({type:S.pg.VOID}))))}))),this.closeChannel=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(S.lr.CLOSE_CHANNEL_ECL),(0,E.z)(v=>(this.store.dispatch((0,A.ac)({payload:v.payload.force?S.m6.FORCE_CLOSE_CHANNEL:S.m6.CLOSE_CHANNEL})),this.httpClient.delete(this.CHILD_API_URL+k.NZ.CHANNELS_API+"?channelId="+v.payload.channelId+"&force="+v.payload.force).pipe((0,D.U)(a=>(this.logger.info(a),setTimeout(()=>{this.store.dispatch((0,A.uO)({payload:v.payload.force?S.m6.FORCE_CLOSE_CHANNEL:S.m6.CLOSE_CHANNEL})),this.store.dispatch((0,M.UR)({payload:{fetchPayments:!1}})),this.store.dispatch((0,A.jW)({payload:v.payload.force?"Channel Force Closed Successfully!":"Channel Closed Successfully!"}))},2e3),{type:S.pg.VOID})),(0,u.K)(a=>(this.handleErrorWithAlert("CloseChannel",v.payload.force?S.m6.FORCE_CLOSE_CHANNEL:S.m6.CLOSE_CHANNEL,"Unable to Close Channel. Try again later.",this.CHILD_API_URL+k.NZ.CHANNELS_API,a),(0,_.of)({type:S.pg.VOID})))))))),this.queryRoutesFetch=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(S.lr.GET_QUERY_ROUTES_ECL),(0,E.z)(v=>this.httpClient.get(this.CHILD_API_URL+k.NZ.PAYMENTS_API+"/route?nodeId="+v.payload.nodeId+"&amountMsat="+v.payload.amount).pipe((0,D.U)(a=>(this.logger.info(a),{type:S.lr.SET_QUERY_ROUTES_ECL,payload:a})),(0,u.K)(a=>(this.store.dispatch((0,M.kL)({payload:[]})),this.handleErrorWithAlert("GetQueryRoutes",S.m6.NO_SPINNER,"Get Query Routes Failed",this.CHILD_API_URL+k.NZ.PAYMENTS_API+"/route?nodeId="+v.payload.nodeId+"&amountMsat="+v.payload.amount,a),(0,_.of)({type:S.pg.VOID}))))))),this.setQueryRoutes=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(S.lr.SET_QUERY_ROUTES_ECL),(0,D.U)(v=>v.payload)),{dispatch:!1}),this.sendPayment=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(S.lr.SEND_PAYMENT_ECL),(0,E.z)(v=>(this.flgReceivedPaymentUpdateFromWS=!1,this.latestPaymentRes="",this.store.dispatch((0,A.ac)({payload:S.m6.SEND_PAYMENT})),this.store.dispatch((0,M.QZ)({payload:{action:"SendPayment",status:S.Bn.INITIATED}})),this.httpClient.post(this.CHILD_API_URL+k.NZ.PAYMENTS_API,v.payload).pipe((0,D.U)(a=>(this.logger.info(a),this.latestPaymentRes=a,setTimeout(()=>{this.flgReceivedPaymentUpdateFromWS||this.handleSendPaymentStatus("Payment Submitted!")},3e3),{type:S.pg.VOID})),(0,u.K)(a=>(this.logger.error("Error: "+JSON.stringify(a)),v.payload.fromDialog?this.handleErrorWithoutAlert("SendPayment",S.m6.SEND_PAYMENT,"Send Payment Failed.",a):this.handleErrorWithAlert("SendPayment",S.m6.SEND_PAYMENT,"Send Payment Failed",this.CHILD_API_URL+k.NZ.PAYMENTS_API,a),(0,_.of)({type:S.pg.VOID})))))))),this.transactionsFetch=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(S.lr.FETCH_TRANSACTIONS_ECL),(0,E.z)(()=>(this.store.dispatch((0,M.QZ)({payload:{action:"FetchTransactions",status:S.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+k.NZ.ON_CHAIN_API+"/transactions?count=1000&skip=0"))),(0,D.U)(v=>(this.logger.info(v),this.store.dispatch((0,M.QZ)({payload:{action:"FetchTransactions",status:S.Bn.COMPLETED}})),{type:S.lr.SET_TRANSACTIONS_ECL,payload:v||[]})),(0,u.K)(v=>(this.handleErrorWithoutAlert("FetchTransactions",S.m6.NO_SPINNER,"Fetching Transactions Failed.",v),(0,_.of)({type:S.pg.VOID}))))),this.SendOnchainFunds=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(S.lr.SEND_ONCHAIN_FUNDS_ECL),(0,E.z)(v=>(this.store.dispatch((0,A.ac)({payload:S.m6.SEND_FUNDS})),this.store.dispatch((0,M.QZ)({payload:{action:"SendOnchainFunds",status:S.Bn.INITIATED}})),this.httpClient.post(this.CHILD_API_URL+k.NZ.ON_CHAIN_API,v.payload).pipe((0,D.U)(a=>(this.logger.info(a),this.store.dispatch((0,M.QZ)({payload:{action:"SendOnchainFunds",status:S.Bn.COMPLETED}})),this.store.dispatch((0,A.uO)({payload:S.m6.SEND_FUNDS})),this.store.dispatch((0,M.iL)()),{type:S.lr.SEND_ONCHAIN_FUNDS_RES_ECL,payload:a})),(0,u.K)(a=>(this.handleErrorWithoutAlert("SendOnchainFunds",S.m6.SEND_FUNDS,"Sending Fund Failed.",a),(0,_.of)({type:S.pg.VOID})))))))),this.createInvoice=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(S.lr.CREATE_INVOICE_ECL),(0,E.z)(v=>(this.store.dispatch((0,A.ac)({payload:S.m6.CREATE_INVOICE})),this.store.dispatch((0,M.QZ)({payload:{action:"CreateInvoice",status:S.Bn.INITIATED}})),this.httpClient.post(this.CHILD_API_URL+k.NZ.INVOICES_API,v.payload).pipe((0,D.U)(a=>(this.logger.info(a),this.store.dispatch((0,M.QZ)({payload:{action:"CreateInvoice",status:S.Bn.COMPLETED}})),this.store.dispatch((0,A.uO)({payload:S.m6.CREATE_INVOICE})),a.timestamp=Math.round((new Date).getTime()/1e3),a.expiresAt=Math.round(a.timestamp+v.payload.expireIn),a.description=v.payload.description,a.status="unpaid",setTimeout(()=>{this.store.dispatch((0,A.qR)({payload:{data:{invoice:a,newlyAdded:!0,component:P.R}}}))},200),{type:S.lr.ADD_INVOICE_ECL,payload:a})),(0,u.K)(a=>(this.handleErrorWithoutAlert("CreateInvoice",S.m6.CREATE_INVOICE,"Create Invoice Failed.",a),(0,_.of)({type:S.pg.VOID})))))))),this.invoicesFetch=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(S.lr.FETCH_INVOICES_ECL),(0,E.z)(()=>(this.store.dispatch((0,M.QZ)({payload:{action:"FetchInvoices",status:S.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+k.NZ.INVOICES_API).pipe((0,D.U)(v=>(this.logger.info(v),this.store.dispatch((0,M.QZ)({payload:{action:"FetchInvoices",status:S.Bn.COMPLETED}})),{type:S.lr.SET_INVOICES_ECL,payload:v})),(0,u.K)(v=>(this.handleErrorWithoutAlert("FetchInvoices",S.m6.NO_SPINNER,"Fetching Invoices Failed.",v),(0,_.of)({type:S.pg.VOID})))))))),this.peerLookup=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(S.lr.PEER_LOOKUP_ECL),(0,E.z)(v=>(this.store.dispatch((0,A.ac)({payload:S.m6.SEARCHING_NODE})),this.store.dispatch((0,M.QZ)({payload:{action:"Lookup",status:S.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+k.NZ.NETWORK_API+"/nodes/"+v.payload).pipe((0,D.U)(a=>(this.logger.info(a),this.store.dispatch((0,M.QZ)({payload:{action:"Lookup",status:S.Bn.COMPLETED}})),this.store.dispatch((0,A.uO)({payload:S.m6.SEARCHING_NODE})),{type:S.lr.SET_LOOKUP_ECL,payload:a})),(0,u.K)(a=>(this.handleErrorWithAlert("Lookup",S.m6.SEARCHING_NODE,"Peer Lookup Failed",this.CHILD_API_URL+k.NZ.NETWORK_API+"/nodes/"+v.payload,a),(0,_.of)({type:S.pg.VOID})))))))),this.invoiceLookup=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(S.lr.INVOICE_LOOKUP_ECL),(0,E.z)(v=>(this.store.dispatch((0,A.ac)({payload:S.m6.SEARCHING_INVOICE})),this.store.dispatch((0,M.QZ)({payload:{action:"Lookup",status:S.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+k.NZ.INVOICES_API+"/"+v.payload).pipe((0,D.U)(a=>(this.logger.info(a),this.store.dispatch((0,M.QZ)({payload:{action:"Lookup",status:S.Bn.COMPLETED}})),this.store.dispatch((0,A.uO)({payload:S.m6.SEARCHING_INVOICE})),this.store.dispatch((0,M.aL)({payload:a})),{type:S.lr.SET_LOOKUP_ECL,payload:a})),(0,u.K)(a=>(this.handleErrorWithoutAlert("Lookup",S.m6.SEARCHING_INVOICE,"Invoice Lookup Failed",a),this.store.dispatch((0,A.jW)({payload:{message:"Invoice Refresh Failed.",type:"ERROR"}})),(0,_.of)({type:S.pg.VOID})))))))),this.setLookup=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(S.lr.SET_LOOKUP_ECL),(0,D.U)(v=>(this.logger.info(v.payload),v.payload))),{dispatch:!1}),this.pageSettingsFetchCL=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(S.lr.FETCH_PAGE_SETTINGS_ECL),(0,E.z)(()=>(this.store.dispatch((0,M.QZ)({payload:{action:"FetchPageSettings",status:S.Bn.INITIATED}})),this.httpClient.get(k.NZ.PAGE_SETTINGS_API).pipe((0,D.U)(v=>(this.logger.info(v),this.store.dispatch((0,M.QZ)({payload:{action:"FetchPageSettings",status:S.Bn.COMPLETED}})),{type:S.lr.SET_PAGE_SETTINGS_ECL,payload:v||[]})),(0,u.K)(v=>(this.handleErrorWithoutAlert("FetchPageSettings",S.m6.NO_SPINNER,"Fetching Page Settings Failed.",v),(0,_.of)({type:S.pg.VOID})))))))),this.savePageSettingsCL=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(S.lr.SAVE_PAGE_SETTINGS_ECL),(0,E.z)(v=>(this.store.dispatch((0,A.ac)({payload:S.m6.UPDATE_PAGE_SETTINGS})),this.store.dispatch((0,M.QZ)({payload:{action:"SavePageSettings",status:S.Bn.INITIATED}})),this.httpClient.post(k.NZ.PAGE_SETTINGS_API,v.payload).pipe((0,D.U)(a=>(this.logger.info(a),this.store.dispatch((0,M.QZ)({payload:{action:"SavePageSettings",status:S.Bn.COMPLETED}})),this.store.dispatch((0,A.uO)({payload:S.m6.UPDATE_PAGE_SETTINGS})),this.store.dispatch((0,A.jW)({payload:"Page Layout Updated Successfully!"})),{type:S.lr.SET_PAGE_SETTINGS_ECL,payload:a||[]})),(0,u.K)(a=>(this.handleErrorWithAlert("SavePageSettings",S.m6.UPDATE_PAGE_SETTINGS,"Page Settings Update Failed.",k.NZ.PAGE_SETTINGS_API,a),(0,_.of)({type:S.pg.VOID})))))))),this.handleSendPaymentStatus=v=>{this.store.dispatch((0,M.QZ)({payload:{action:"SendPayment",status:S.Bn.COMPLETED}})),this.store.dispatch((0,A.uO)({payload:S.m6.SEND_PAYMENT})),this.store.dispatch((0,M.TM)({payload:this.latestPaymentRes})),this.store.dispatch((0,M.UR)({payload:{fetchPayments:!0}})),this.store.dispatch((0,A.jW)({payload:v}))},this.store.select(z.yA).pipe((0,s.R)(this.unSubs[0])).subscribe(v=>{v.FetchInfo.status!==S.Bn.COMPLETED&&v.FetchInfo.status!==S.Bn.ERROR||v.FetchFees.status!==S.Bn.COMPLETED&&v.FetchFees.status!==S.Bn.ERROR||v.FetchOnchainBalance.status!==S.Bn.COMPLETED&&v.FetchOnchainBalance.status!==S.Bn.ERROR||v.FetchChannels.status!==S.Bn.COMPLETED&&v.FetchChannels.status!==S.Bn.ERROR||this.flgInitialized||(this.store.dispatch((0,A.uO)({payload:S.m6.INITALIZE_NODE_DATA})),this.flgInitialized=!0)}),this.wsService.eclWSMessages.pipe((0,s.R)(this.unSubs[1])).subscribe(v=>{this.logger.info("Received new message from the service: "+JSON.stringify(v));let a="";if(v)switch(v.type){case S.$v.PAYMENT_SENT:v&&v.id&&this.latestPaymentRes===v.id&&(this.flgReceivedPaymentUpdateFromWS=!0,a="Payment Sent: "+(v.paymentHash?"with payment hash "+v.paymentHash:JSON.stringify(v)),this.handleSendPaymentStatus(a));break;case S.$v.PAYMENT_FAILED:v&&v.id&&this.latestPaymentRes===v.id&&(this.flgReceivedPaymentUpdateFromWS=!0,a="Payment Failed: "+(v.failures&&v.failures.length&&v.failures.length>0&&v.failures[0].t?v.failures[0].t:v.failures&&v.failures.length&&v.failures.length>0&&v.failures[0].e&&v.failures[0].e.failureMessage?v.failures[0].e.failureMessage:JSON.stringify(v)),this.handleSendPaymentStatus(a));break;case S.$v.PAYMENT_RECEIVED:this.store.dispatch((0,M.aL)({payload:v}));break;case S.$v.PAYMENT_RELAYED:delete v.source,this.store.dispatch((0,M.ti)({payload:v}));break;case S.$v.CHANNEL_STATE_CHANGED:"NORMAL"===v.currentState||"CLOSED"===v.currentState?(this.rawChannelsList=this.rawChannelsList?.map(C=>(C.channelId===v.channelId&&C.nodeId===v.remoteNodeId&&(C.state=v.currentState),C)),this.setChannelsAndStatusAndBalances()):this.store.dispatch((0,M.DJ)({payload:v}));break;default:this.logger.info("Received Event from WS: "+JSON.stringify(v))}})}setChannelsAndStatusAndBalances(){let he=0,w=0,n=0,o={localBalance:0,remoteBalance:0},h=[];const d=[],y=[],L={active:{channels:0,capacity:0},inactive:{channels:0,capacity:0},pending:{channels:0,capacity:0}};this.rawChannelsList.forEach((B,v)=>{B&&("NORMAL"===B.state?(he=(B.toLocal||0)+(B.toRemote||0),w+=B.toLocal||0,n+=B.toRemote||0,B.balancedness=0===he?1:+(1-Math.abs(((B.toLocal||0)-(B.toRemote||0))/he)).toFixed(3),h.push(B),L.active.channels=L.active.channels+1,L.active.capacity=L.active.capacity+(B.toLocal||0)):B.state?.includes("WAIT")||B.state?.includes("CLOSING")||B.state?.includes("SYNCING")?(B.state=B.state?.replace(/_/g," "),d.push(B),L.pending.channels=L.pending.channels+1,L.pending.capacity=L.pending.capacity+(B.toLocal||0)):(B.state=B.state?.replace(/_/g," "),y.push(B),L.inactive.channels=L.inactive.channels+1,L.inactive.capacity=L.inactive.capacity+(B.toLocal||0)))}),o={localBalance:w,remoteBalance:n},h=this.commonService.sortDescByKey(h,"balancedness"),this.logger.info("Active Channels: "+JSON.stringify(h)),this.logger.info("Pending Channels: "+JSON.stringify(d)),this.logger.info("Inactive Channels: "+JSON.stringify(y)),this.logger.info("Lightning Balances: "+JSON.stringify(o)),this.logger.info("Channels Status: "+JSON.stringify(L)),this.logger.info("Channel, status and balances: "+JSON.stringify({active:h,pending:d,inactive:y,balances:o,status:L})),this.store.dispatch((0,M.eN)({payload:h})),this.store.dispatch((0,M.TW)({payload:d})),this.store.dispatch((0,M.i)({payload:y})),this.store.dispatch((0,M.On)({payload:o})),this.store.dispatch((0,M.HG)({payload:L}))}initializeRemainingData(he,w){this.sessionService.setItem("eclUnlocked","true");const n={identity_pubkey:he.nodeId,alias:he.alias,testnet:"testnet"===he.network,chains:he.publicAddresses,uris:he.uris,version:he.version,numberOfPendingChannels:0};this.store.dispatch((0,A.ac)({payload:S.m6.INITALIZE_NODE_DATA})),this.store.dispatch((0,A._V)({payload:n}));let o=this.location.path();o.includes("/lnd/")?o=o?.replace("/lnd/","/ecl/"):o.includes("/cln/")&&(o=o?.replace("/cln/","/ecl/")),(o.includes("/login")||o.includes("/error")||""===o||"HOME"===w||o.includes("?access-key="))&&(o="/ecl/home"),this.router.navigate([o]),this.store.dispatch((0,M.wD)()),this.store.dispatch((0,M.WM)()),this.store.dispatch((0,M.UR)({payload:{fetchPayments:!0}})),this.store.dispatch((0,M.SN)()),this.store.dispatch((0,M.iL)()),this.store.dispatch((0,M.$W)())}handleErrorWithoutAlert(he,w,n,o){this.logger.error("ERROR IN: "+he+"\n"+JSON.stringify(o)),401===o.status?(this.logger.info("Redirecting to Login"),this.store.dispatch((0,A.ts)()),this.store.dispatch((0,A.kS)()),this.store.dispatch((0,A.jW)({payload:"Authentication Failed. Redirecting to Login."}))):(this.store.dispatch((0,A.uO)({payload:w})),this.store.dispatch((0,M.QZ)({payload:{action:he,status:S.Bn.ERROR,statusCode:o.status.toString(),message:this.commonService.extractErrorMessage(o,n)}})))}handleErrorWithAlert(he,w,n,o,h){if(this.logger.error(h),401===h.status)this.logger.info("Redirecting to Login"),this.store.dispatch((0,A.ts)()),this.store.dispatch((0,A.kS)()),this.store.dispatch((0,A.jW)({payload:"Authentication Failed. Redirecting to Login."}));else{this.store.dispatch((0,A.uO)({payload:w}));const d=this.commonService.extractErrorMessage(h);this.store.dispatch((0,A.qR)({payload:{data:{type:"ERROR",alertTitle:n,message:{code:h.status,message:d,URL:o},component:p.H}}})),this.store.dispatch((0,M.QZ)({payload:{action:he,status:S.Bn.ERROR,statusCode:h.status.toString(),message:d,URL:o}}))}}ngOnDestroy(){this.unSubs.forEach(he=>{he.next(null),he.complete()})}static#e=this.\u0275fac=function(w){return new(w||ue)(I.LFG(e.eX),I.LFG(W.eN),I.LFG(Z.yh),I.LFG(Q.m),I.LFG(ie.v),I.LFG(ae.mQ),I.LFG(_e.F0),I.LFG(ce.d),I.LFG(ye.Ye))};static#t=this.\u0275prov=I.Yz7({token:ue,factory:ue.\u0275fac})}},2501:(Ue,q,m)=>{"use strict";m.d(q,{Bo:()=>z,Ef:()=>M,JG:()=>S,LR:()=>_,PP:()=>p,T$:()=>D,Xz:()=>A,dx:()=>P,kY:()=>I,nF:()=>E,yA:()=>k,yD:()=>s});var e=m(9263);const t=(0,e.ZF)("ecl"),_=(0,e.P1)(t,W=>W.nodeSettings),E=(0,e.P1)(t,W=>({pageSettings:W.pageSettings,apiCallStatus:W.apisCallStatus.FetchPageSettings})),s=(0,e.P1)(t,W=>W.information),D=(0,e.P1)(t,W=>({information:W.information,apiCallStatus:W.apisCallStatus.FetchInfo})),k=((0,e.P1)(t,W=>W.apisCallStatus.FetchInfo),(0,e.P1)(t,W=>W.apisCallStatus)),p=(0,e.P1)(t,W=>({payments:W.payments,apiCallStatus:W.apisCallStatus.FetchPayments})),S=(0,e.P1)(t,W=>({fees:W.fees,apiCallStatus:W.apisCallStatus.FetchFees})),A=(0,e.P1)(t,W=>({activeChannels:W.activeChannels,pendingChannels:W.pendingChannels,inactiveChannels:W.inactiveChannels,lightningBalance:W.lightningBalance,channelsStatus:W.channelsStatus,apiCallStatus:W.apisCallStatus.FetchChannels})),P=(0,e.P1)(t,W=>({transactions:W.transactions,apiCallStatus:W.apisCallStatus.FetchTransactions})),M=(0,e.P1)(t,W=>({invoices:W.invoices,apiCallStatus:W.apisCallStatus.FetchInvoices})),z=(0,e.P1)(t,W=>({peers:W.peers,apiCallStatus:W.apisCallStatus.FetchPeers})),I=(0,e.P1)(t,W=>({onchainBalance:W.onchainBalance,apiCallStatus:W.apisCallStatus.FetchOnchainBalance}))},7766:(Ue,q,m)=>{"use strict";m.d(q,{R:()=>Ve});var e=m(640),t=m(9306),_=m(253),E=m(8951),s=m(7731),D=m(2501),u=m(2560),k=m(5043),p=m(62),S=m(930),A=m(9263),P=m(4666),M=m(3505),z=m(6722),I=m(3704),W=m(4522),Z=m(2156),Q=m(1528),ie=m(1708),ae=m(6021),_e=m(6895),ce=m(3390);function ye(xe,Ze){if(1&xe&&u._UZ(0,"qr-code",29),2&xe){const Ie=u.oxw();u.Q6J("value",null==Ie.invoice?null:Ie.invoice.serialized)("size",Ie.qrWidth)("errorCorrectionLevel","L")}}function ue(xe,Ze){1&xe&&(u.TgZ(0,"span",30),u._uU(1,"N/A"),u.qZA())}function $(xe,Ze){if(1&xe&&u._UZ(0,"qr-code",29),2&xe){const Ie=u.oxw();u.Q6J("value",null==Ie.invoice?null:Ie.invoice.serialized)("size",Ie.qrWidth)("errorCorrectionLevel","L")}}function he(xe,Ze){1&xe&&(u.TgZ(0,"span",31),u._uU(1,"QR Code Not Applicable"),u.qZA())}function w(xe,Ze){1&xe&&u._UZ(0,"mat-divider",32),2&xe&&u.Q6J("inset",!0)}function n(xe,Ze){1&xe&&(u.ynx(0),u._uU(1," (zero amount) "),u.BQk())}function o(xe,Ze){1&xe&&u._UZ(0,"span",38)}const h=function(){return[]};function d(xe,Ze){if(1&xe&&(u.TgZ(0,"div",34)(1,"div",35)(2,"span",36),u._uU(3),u.ALo(4,"number"),u.qZA(),u.YNc(5,o,1,0,"span",37),u.qZA()()),2&xe){const Ie=u.oxw(2);u.xp6(3),u.hij("",u.lcZ(4,2,null==Ie.invoice?null:Ie.invoice.amountSettled)," Sats"),u.xp6(2),u.Q6J("ngForOf",u.DdM(4,h).constructor(35))}}function y(xe,Ze){if(1&xe&&(u.TgZ(0,"div"),u._uU(1),u.ALo(2,"number"),u.qZA()),2&xe){const Ie=u.oxw(2);u.xp6(1),u.hij("",u.lcZ(2,1,null==Ie.invoice?null:Ie.invoice.amountSettled)," Sats")}}function L(xe,Ze){if(1&xe&&(u.ynx(0),u.YNc(1,d,6,5,"div",33),u.YNc(2,y,3,3,"div",19),u.BQk()),2&xe){const Ie=u.oxw();u.xp6(1),u.Q6J("ngIf",Ie.flgInvoicePaid),u.xp6(1),u.Q6J("ngIf",!Ie.flgInvoicePaid)}}function B(xe,Ze){1&xe&&(u.TgZ(0,"span"),u._uU(1,"-"),u.qZA())}function v(xe,Ze){1&xe&&u._UZ(0,"mat-spinner",40),2&xe&&u.Q6J("diameter",20)}function a(xe,Ze){if(1&xe&&(u.ynx(0),u.YNc(1,B,2,0,"span",19),u.YNc(2,v,1,1,"mat-spinner",39),u.BQk()),2&xe){const Ie=u.oxw();u.xp6(1),u.Q6J("ngIf","unpaid"!==(null==Ie.invoice?null:Ie.invoice.status)||!Ie.flgVersionCompatible),u.xp6(1),u.Q6J("ngIf","unpaid"===(null==Ie.invoice?null:Ie.invoice.status)&&Ie.flgVersionCompatible)}}function C(xe,Ze){if(1&xe&&(u.TgZ(0,"div"),u._UZ(1,"mat-divider",20),u.TgZ(2,"div",15)(3,"div",41)(4,"h4",17),u._uU(5,"Date Expiry"),u.qZA(),u.TgZ(6,"span",18),u._uU(7),u.ALo(8,"date"),u.qZA()(),u.TgZ(9,"div",42)(10,"h4",17),u._uU(11,"Date Settled"),u.qZA(),u.TgZ(12,"span",21),u._uU(13),u.ALo(14,"date"),u.qZA()()(),u._UZ(15,"mat-divider",20),u.TgZ(16,"div",15)(17,"div",22)(18,"h4",17),u._uU(19,"Payment Hash"),u.qZA(),u.TgZ(20,"span",21),u._uU(21),u.qZA()()(),u._UZ(22,"mat-divider",20),u.TgZ(23,"div",15)(24,"div",22)(25,"h4",17),u._uU(26,"Node ID"),u.qZA(),u.TgZ(27,"span",21),u._uU(28),u.qZA()()(),u._UZ(29,"mat-divider",20),u.qZA()),2&xe){const Ie=u.oxw();u.xp6(7),u.Oqu(u.xi3(8,4,1e3*(null==Ie.invoice?null:Ie.invoice.expiresAt),"dd/MMM/y HH:mm")),u.xp6(6),u.Oqu(u.xi3(14,7,1e3*(null==Ie.invoice?null:Ie.invoice.receivedAt),"dd/MMM/y HH:mm")),u.xp6(8),u.Oqu(null==Ie.invoice?null:Ie.invoice.paymentHash),u.xp6(7),u.Oqu(null==Ie.invoice?null:Ie.invoice.nodeId)}}function N(xe,Ze){1&xe&&(u.TgZ(0,"p"),u._uU(1,"Show Advanced"),u.qZA())}function F(xe,Ze){1&xe&&(u.TgZ(0,"p"),u._uU(1,"Hide Advanced"),u.qZA())}function X(xe,Ze){if(1&xe){const Ie=u.EpF();u.TgZ(0,"button",43),u.NdJ("copied",function(et){u.CHM(Ie);const ht=u.oxw();return u.KtG(ht.onCopyPayment(et))}),u._uU(1,"Copy Invoice"),u.qZA()}if(2&xe){const Ie=u.oxw();u.Q6J("payload",null==Ie.invoice?null:Ie.invoice.serialized)}}function Fe(xe,Ze){if(1&xe){const Ie=u.EpF();u.TgZ(0,"button",44),u.NdJ("click",function(){u.CHM(Ie);const et=u.oxw();return u.KtG(et.onClose())}),u._uU(1,"OK"),u.qZA()}}const ke=function(xe){return{"display-none":xe}},Ke=function(xe){return{"xs-scroll-y":xe}},je=function(xe,Ze){return{"mt-2":xe,"mt-1":Ze}};class Ve{constructor(Ze,Ie,ve,et,ht,Le){this.dialogRef=Ze,this.data=Ie,this.logger=ve,this.commonService=et,this.snackBar=ht,this.store=Le,this.faReceipt=t.dLy,this.faExclamationTriangle=t.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 _.x,new _.x,new _.x,new _.x,new _.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(D.yD).pipe((0,E.R)(this.unSubs[0])).subscribe(Ze=>{this.flgVersionCompatible=this.commonService.isVersionCompatible(Ze.version,"0.5.0")}),this.store.select(D.Ef).pipe((0,E.R)(this.unSubs[1])).subscribe(Ze=>{const Ie=this.invoice.status,et=(Ze.invoices&&Ze.invoices.length>0?Ze.invoices:[])?.find(ht=>ht.paymentHash===this.invoice.paymentHash)||null;et&&(this.invoice=et),Ie!==this.invoice.status&&"received"===this.invoice.status&&(this.flgInvoicePaid=!0,setTimeout(()=>{this.flgInvoicePaid=!1},4e3)),this.logger.info(Ze)})}onClose(){this.dialogRef.close(!1)}onShowAdvanced(){this.showAdvanced=!this.showAdvanced}onCopyPayment(Ze){this.snackBar.open("Invoice copied."),this.logger.info("Copied Text: "+Ze)}ngOnDestroy(){this.unSubs.forEach(Ze=>{Ze.next(null),Ze.complete()})}static#e=this.\u0275fac=function(Ie){return new(Ie||Ve)(u.Y36(e.so),u.Y36(e.WI),u.Y36(k.mQ),u.Y36(p.v),u.Y36(S.ux),u.Y36(A.yh))};static#t=this.\u0275cmp=u.Xpm({type:Ve,selectors:[["rtl-ecl-invoice-information"]],decls:68,vars:42,consts:[["fxLayout","column","fxLayout.gt-sm","row","fxLayoutAlign","space-between stretch"],["fxFlex","35",1,"modal-qr-code-container","padding-gap-large",3,"fxLayoutAlign","ngClass"],[3,"value","size","errorCorrectionLevel",4,"ngIf"],["class","font-size-300",4,"ngIf"],["fxFlex","65"],["fxLayout","row","fxLayoutAlign","space-between center",1,"modal-info-header"],["fxFlex","95","fxLayoutAlign","start start"],[1,"page-title-img","mr-1",3,"icon"],[1,"page-title"],["tabindex","3","fxFlex","5","fxLayoutAlign","center","mat-button","",1,"btn-close-x","p-0",3,"click"],[1,"padding-gap-x-large",3,"ngClass"],["fxLayout","column"],["fxFlex","30",1,"modal-qr-code-container","padding-gap",3,"fxLayoutAlign","ngClass"],["class","font-size-120",4,"ngIf"],["class","my-1",3,"inset",4,"ngIf"],["fxLayout","row"],["fxFlex","50"],["fxLayoutAlign","start",1,"font-bold-500"],[1,"foreground-secondary-text"],[4,"ngIf"],[1,"w-100","my-1"],[1,"overflow-wrap","foreground-secondary-text"],["fxFlex","100"],["fxLayout","row","fxLayoutAlign","end center",3,"ngClass"],["mat-button","","color","primary","type","reset","tabindex","1",1,"mr-1",3,"click"],[4,"ngIf","ngIfElse"],["hideAdvancedText",""],["autoFocus","","mat-button","","color","primary","tabindex","2","type","submit","rtlClipboard","",3,"payload","copied",4,"ngIf"],["autoFocus","","mat-button","","color","primary","tabindex","2","type","button",3,"click",4,"ngIf"],[3,"value","size","errorCorrectionLevel"],[1,"font-size-300"],[1,"font-size-120"],[1,"my-1",3,"inset"],["class","invoice-animation-container",4,"ngIf"],[1,"invoice-animation-container"],[1,"invoice-animation-div"],[1,"wiggle"],["class","particles-circle",4,"ngFor","ngForOf"],[1,"particles-circle"],[3,"diameter",4,"ngIf"],[3,"diameter"],["fxFlex","40"],["fxFlex","60"],["autoFocus","","mat-button","","color","primary","tabindex","2","type","submit","rtlClipboard","",3,"payload","copied"],["autoFocus","","mat-button","","color","primary","tabindex","2","type","button",3,"click"]],template:function(Ie,ve){if(1&Ie&&(u.TgZ(0,"div",0)(1,"div",1),u.YNc(2,ye,1,3,"qr-code",2),u.YNc(3,ue,2,0,"span",3),u.qZA(),u.TgZ(4,"div",4)(5,"mat-card-header",5)(6,"div",6),u._UZ(7,"fa-icon",7),u.TgZ(8,"span",8),u._uU(9),u.qZA()(),u.TgZ(10,"button",9),u.NdJ("click",function(){return ve.onClose()}),u._uU(11,"X"),u.qZA()(),u.TgZ(12,"mat-card-content",10)(13,"div",11)(14,"div",12),u.YNc(15,$,1,3,"qr-code",2),u.YNc(16,he,2,0,"span",13),u.qZA(),u.YNc(17,w,1,1,"mat-divider",14),u.TgZ(18,"div",15)(19,"div",16)(20,"h4",17),u._uU(21,"Amount Requested"),u.qZA(),u.TgZ(22,"span",18),u._uU(23),u.ALo(24,"number"),u.YNc(25,n,2,0,"ng-container",19),u.qZA()(),u.TgZ(26,"div",16)(27,"h4",17),u._uU(28,"Amount Settled"),u.qZA(),u.TgZ(29,"span",18),u.YNc(30,L,3,2,"ng-container",19),u.YNc(31,a,3,2,"ng-container",19),u.qZA()()(),u._UZ(32,"mat-divider",20),u.TgZ(33,"div",15)(34,"div",16)(35,"h4",17),u._uU(36,"Date Created"),u.qZA(),u.TgZ(37,"span",21),u._uU(38),u.ALo(39,"date"),u.qZA()(),u.TgZ(40,"div",16)(41,"h4",17),u._uU(42,"Status"),u.qZA(),u.TgZ(43,"span",21),u._uU(44),u.ALo(45,"titlecase"),u.qZA()()(),u._UZ(46,"mat-divider",20),u.TgZ(47,"div",15)(48,"div",22)(49,"h4",17),u._uU(50,"Description"),u.qZA(),u.TgZ(51,"span",18),u._uU(52),u.qZA()()(),u._UZ(53,"mat-divider",20),u.TgZ(54,"div",15)(55,"div",22)(56,"h4",17),u._uU(57,"Invoice"),u.qZA(),u.TgZ(58,"span",21),u._uU(59),u.qZA()()(),u.YNc(60,C,30,10,"div",19),u.TgZ(61,"div",23)(62,"button",24),u.NdJ("click",function(){return ve.onShowAdvanced()}),u.YNc(63,N,2,0,"p",25),u.YNc(64,F,2,0,"ng-template",null,26,u.W1O),u.qZA(),u.YNc(66,X,2,1,"button",27),u.YNc(67,Fe,2,0,"button",28),u.qZA()()()()()),2&Ie){const et=u.MAs(65);u.xp6(1),u.Q6J("fxLayoutAlign",null!=ve.invoice&&ve.invoice.serialized&&""!==(null==ve.invoice?null:ve.invoice.serialized)?"center start":"center center")("ngClass",u.VKq(33,ke,ve.screenSize===ve.screenSizeEnum.XS||ve.screenSize===ve.screenSizeEnum.SM)),u.xp6(1),u.Q6J("ngIf",(null==ve.invoice?null:ve.invoice.serialized)&&""!==(null==ve.invoice?null:ve.invoice.serialized)),u.xp6(1),u.Q6J("ngIf",!(null!=ve.invoice&&ve.invoice.serialized)||""===(null==ve.invoice?null:ve.invoice.serialized)),u.xp6(4),u.Q6J("icon",ve.faReceipt),u.xp6(2),u.Oqu(ve.screenSize===ve.screenSizeEnum.XS?ve.newlyAdded?"Created":"Invoice":ve.newlyAdded?"Invoice Created":"Invoice Information"),u.xp6(3),u.Q6J("ngClass",u.VKq(35,Ke,ve.screenSize===ve.screenSizeEnum.XS)),u.xp6(2),u.Q6J("fxLayoutAlign",null!=ve.invoice&&ve.invoice.serialized&&""!==(null==ve.invoice?null:ve.invoice.serialized)?"center start":"center center")("ngClass",u.VKq(37,ke,ve.screenSize!==ve.screenSizeEnum.XS&&ve.screenSize!==ve.screenSizeEnum.SM)),u.xp6(1),u.Q6J("ngIf",(null==ve.invoice?null:ve.invoice.serialized)&&""!==(null==ve.invoice?null:ve.invoice.serialized)),u.xp6(1),u.Q6J("ngIf",!(null!=ve.invoice&&ve.invoice.serialized)||""===(null==ve.invoice?null:ve.invoice.serialized)),u.xp6(1),u.Q6J("ngIf",ve.screenSize===ve.screenSizeEnum.XS||ve.screenSize===ve.screenSizeEnum.SM),u.xp6(6),u.hij("",u.lcZ(24,26,(null==ve.invoice?null:ve.invoice.amount)||0)," Sats"),u.xp6(2),u.Q6J("ngIf",!(null!=ve.invoice&&ve.invoice.amount)||"0"===(null==ve.invoice?null:ve.invoice.amount)),u.xp6(5),u.Q6J("ngIf",null==ve.invoice?null:ve.invoice.amountSettled),u.xp6(1),u.Q6J("ngIf",!(null!=ve.invoice&&ve.invoice.amountSettled)),u.xp6(7),u.Oqu(u.xi3(39,28,1e3*(null==ve.invoice?null:ve.invoice.timestamp),"dd/MMM/y HH:mm")),u.xp6(6),u.Oqu(u.lcZ(45,31,null==ve.invoice?null:ve.invoice.status)),u.xp6(8),u.Oqu((null==ve.invoice?null:ve.invoice.description)||"-"),u.xp6(7),u.Oqu((null==ve.invoice?null:ve.invoice.serialized)||"N/A"),u.xp6(1),u.Q6J("ngIf",ve.showAdvanced),u.xp6(1),u.Q6J("ngClass",u.WLB(39,je,!ve.showAdvanced,ve.showAdvanced)),u.xp6(2),u.Q6J("ngIf",!ve.showAdvanced)("ngIfElse",et),u.xp6(3),u.Q6J("ngIf",(null==ve.invoice?null:ve.invoice.serialized)&&""!==(null==ve.invoice?null:ve.invoice.serialized)),u.xp6(1),u.Q6J("ngIf",!(null!=ve.invoice&&ve.invoice.serialized)||""===(null==ve.invoice?null:ve.invoice.serialized))}},dependencies:[P.mk,P.sg,P.O5,M.BN,z.xw,z.Wh,z.yH,I.oO,W.lW,Z.dk,Z.dn,Q.d,ie.Ou,ae.uU,_e.y,ce.h,P.JJ,P.rS,P.uU]})}},6523:(Ue,q,m)=>{"use strict";m.d(q,{$A:()=>yn,$W:()=>A,BL:()=>B,B_:()=>Fe,Bl:()=>ce,CX:()=>S,Cp:()=>C,EK:()=>W,El:()=>M,Fr:()=>dt,HI:()=>Ae,JT:()=>s,Jl:()=>ye,Jo:()=>vt,Lf:()=>ve,Ll:()=>E,Ly:()=>et,Nr:()=>Ve,OG:()=>v,PC:()=>_,QJ:()=>tn,RX:()=>_e,Rd:()=>Z,Rv:()=>ue,SN:()=>ae,Sf:()=>Ut,TW:()=>o,UH:()=>ht,UR:()=>he,Vv:()=>a,WM:()=>je,WO:()=>pn,Wi:()=>Re,YP:()=>ie,YX:()=>L,Z7:()=>n,Z8:()=>P,Zh:()=>h,_E:()=>j,_L:()=>d,aL:()=>xe,as:()=>w,cQ:()=>Le,dV:()=>ee,eF:()=>k,fu:()=>_t,kL:()=>tt,ks:()=>$,mC:()=>Ie,n7:()=>Xt,oV:()=>te,pW:()=>y,pd:()=>u,qY:()=>Ze,sQ:()=>p,tb:()=>X,u0:()=>rn,vV:()=>ke,wD:()=>D,xG:()=>Bt,y2:()=>Ct,yZ:()=>Gt,z:()=>I});var e=m(9263),t=m(7731);const _=(0,e.PH)(t.uR.UPDATE_API_CALL_STATUS_LND,(0,e.Ky)()),E=(0,e.PH)(t.uR.RESET_LND_STORE,(0,e.Ky)()),s=(0,e.PH)(t.uR.SET_CHILD_NODE_SETTINGS_LND,(0,e.Ky)()),D=(0,e.PH)(t.uR.FETCH_PAGE_SETTINGS_LND),u=(0,e.PH)(t.uR.SET_PAGE_SETTINGS_LND,(0,e.Ky)()),k=(0,e.PH)(t.uR.SAVE_PAGE_SETTINGS_LND,(0,e.Ky)()),p=(0,e.PH)(t.uR.FETCH_INFO_LND,(0,e.Ky)()),S=(0,e.PH)(t.uR.SET_INFO_LND,(0,e.Ky)()),A=(0,e.PH)(t.uR.FETCH_PEERS_LND),P=(0,e.PH)(t.uR.SET_PEERS_LND,(0,e.Ky)()),M=(0,e.PH)(t.uR.SAVE_NEW_PEER_LND,(0,e.Ky)()),I=((0,e.PH)(t.uR.NEWLY_ADDED_PEER_LND,(0,e.Ky)()),(0,e.PH)(t.uR.DETACH_PEER_LND,(0,e.Ky)())),W=(0,e.PH)(t.uR.REMOVE_PEER_LND,(0,e.Ky)()),Z=(0,e.PH)(t.uR.SAVE_NEW_INVOICE_LND,(0,e.Ky)()),ie=((0,e.PH)(t.uR.NEWLY_SAVED_INVOICE_LND,(0,e.Ky)()),(0,e.PH)(t.uR.ADD_INVOICE_LND,(0,e.Ky)())),ae=(0,e.PH)(t.uR.FETCH_FEES_LND),_e=(0,e.PH)(t.uR.SET_FEES_LND,(0,e.Ky)()),ce=(0,e.PH)(t.uR.FETCH_BLOCKCHAIN_BALANCE_LND),ye=(0,e.PH)(t.uR.SET_BLOCKCHAIN_BALANCE_LND,(0,e.Ky)()),ue=(0,e.PH)(t.uR.FETCH_NETWORK_LND),$=(0,e.PH)(t.uR.SET_NETWORK_LND,(0,e.Ky)()),he=(0,e.PH)(t.uR.FETCH_CHANNELS_LND),w=(0,e.PH)(t.uR.SET_CHANNELS_LND,(0,e.Ky)()),n=(0,e.PH)(t.uR.FETCH_PENDING_CHANNELS_LND),o=(0,e.PH)(t.uR.SET_PENDING_CHANNELS_LND,(0,e.Ky)()),h=(0,e.PH)(t.uR.FETCH_CLOSED_CHANNELS_LND),d=(0,e.PH)(t.uR.SET_CLOSED_CHANNELS_LND,(0,e.Ky)()),y=(0,e.PH)(t.uR.UPDATE_CHANNEL_LND,(0,e.Ky)()),L=(0,e.PH)(t.uR.SAVE_NEW_CHANNEL_LND,(0,e.Ky)()),B=(0,e.PH)(t.uR.CLOSE_CHANNEL_LND,(0,e.Ky)()),v=(0,e.PH)(t.uR.REMOVE_CHANNEL_LND,(0,e.Ky)()),a=(0,e.PH)(t.uR.BACKUP_CHANNELS_LND,(0,e.Ky)()),C=(0,e.PH)(t.uR.VERIFY_CHANNEL_LND,(0,e.Ky)()),X=((0,e.PH)(t.uR.BACKUP_CHANNELS_RES_LND,(0,e.Ky)()),(0,e.PH)(t.uR.VERIFY_CHANNEL_RES_LND,(0,e.Ky)()),(0,e.PH)(t.uR.RESTORE_CHANNELS_LIST_LND)),Fe=(0,e.PH)(t.uR.SET_RESTORE_CHANNELS_LIST_LND,(0,e.Ky)()),ke=(0,e.PH)(t.uR.RESTORE_CHANNELS_LND,(0,e.Ky)()),je=((0,e.PH)(t.uR.RESTORE_CHANNELS_RES_LND,(0,e.Ky)()),(0,e.PH)(t.uR.FETCH_INVOICES_LND,(0,e.Ky)())),Ve=(0,e.PH)(t.uR.SET_INVOICES_LND,(0,e.Ky)()),xe=(0,e.PH)(t.uR.UPDATE_INVOICE_LND,(0,e.Ky)()),Ze=(0,e.PH)(t.uR.UPDATE_PAYMENT_LND,(0,e.Ky)()),Ie=(0,e.PH)(t.uR.FETCH_TRANSACTIONS_LND),ve=(0,e.PH)(t.uR.SET_TRANSACTIONS_LND,(0,e.Ky)()),et=(0,e.PH)(t.uR.FETCH_UTXOS_LND),ht=(0,e.PH)(t.uR.SET_UTXOS_LND,(0,e.Ky)()),Le=(0,e.PH)(t.uR.FETCH_PAYMENTS_LND,(0,e.Ky)()),Ae=(0,e.PH)(t.uR.SET_PAYMENTS_LND,(0,e.Ky)()),te=(0,e.PH)(t.uR.SEND_PAYMENT_LND,(0,e.Ky)()),ee=((0,e.PH)(t.uR.SEND_PAYMENT_STATUS_LND,(0,e.Ky)()),(0,e.PH)(t.uR.FETCH_GRAPH_NODE_LND,(0,e.Ky)())),j=((0,e.PH)(t.uR.SET_GRAPH_NODE_LND,(0,e.Ky)()),(0,e.PH)(t.uR.GET_NEW_ADDRESS_LND,(0,e.Ky)())),Re=((0,e.PH)(t.uR.SET_NEW_ADDRESS_LND,(0,e.Ky)()),(0,e.PH)(t.uR.SET_CHANNEL_TRANSACTION_LND,(0,e.Ky)())),_t=((0,e.PH)(t.uR.SET_CHANNEL_TRANSACTION_RES_LND,(0,e.Ky)()),(0,e.PH)(t.uR.GEN_SEED_LND,(0,e.Ky)())),Ct=((0,e.PH)(t.uR.GEN_SEED_RESPONSE_LND,(0,e.Ky)()),(0,e.PH)(t.uR.INIT_WALLET_LND,(0,e.Ky)())),Bt=((0,e.PH)(t.uR.INIT_WALLET_RESPONSE_LND,(0,e.Ky)()),(0,e.PH)(t.uR.UNLOCK_WALLET_LND,(0,e.Ky)())),Ut=(0,e.PH)(t.uR.PEER_LOOKUP_LND,(0,e.Ky)()),yn=(0,e.PH)(t.uR.CHANNEL_LOOKUP_LND,(0,e.Ky)()),Xt=(0,e.PH)(t.uR.INVOICE_LOOKUP_LND,(0,e.Ky)()),Gt=(0,e.PH)(t.uR.PAYMENT_LOOKUP_LND,(0,e.Ky)()),rn=((0,e.PH)(t.uR.SET_LOOKUP_LND,(0,e.Ky)()),(0,e.PH)(t.uR.GET_FORWARDING_HISTORY_LND,(0,e.Ky)())),tn=(0,e.PH)(t.uR.SET_FORWARDING_HISTORY_LND,(0,e.Ky)()),pn=(0,e.PH)(t.uR.GET_QUERY_ROUTES_LND,(0,e.Ky)()),tt=(0,e.PH)(t.uR.SET_QUERY_ROUTES_LND,(0,e.Ky)()),vt=(0,e.PH)(t.uR.GET_ALL_LIGHTNING_TRANSATIONS_LND),dt=(0,e.PH)(t.uR.SET_ALL_LIGHTNING_TRANSATIONS_LND,(0,e.Ky)())},3172:(Ue,q,m)=>{"use strict";m.d(q,{l:()=>he});var e=m(3599),t=m(253),_=m(745),E=m(9525),s=m(8951),D=m(635),u=m(3158),k=m(538),p=m(2340),S=m(8627),A=m(1786),P=m(7731),M=m(7861),z=m(6523),I=m(6529),W=m(2560),Z=m(8987),Q=m(9263),ie=m(5043),ae=m(62),_e=m(5986),ce=m(640),ye=m(3547),ue=m(3512),$=m(4666);class he{constructor(n,o,h,d,y,L,B,v,a,C){this.actions=n,this.httpClient=o,this.store=h,this.logger=d,this.commonService=y,this.sessionService=L,this.dialog=B,this.router=v,this.wsService=a,this.location=C,this.CHILD_API_URL=p.T5+"/lnd",this.invoicesPageSize=P.IV,this.paymentsPageSize=P.IV,this.flgInitialized=!1,this.unSubs=[new t.x,new t.x],this.infoFetch=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(P.uR.FETCH_INFO_LND),(0,E.z)(N=>(this.flgInitialized=!1,this.store.dispatch((0,M.lC)({payload:this.CHILD_API_URL})),this.store.dispatch((0,M.ts)()),this.store.dispatch((0,M.ac)({payload:P.m6.GET_NODE_INFO})),this.store.dispatch((0,z.PC)({payload:{action:"FetchInfo",status:P.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+p.NZ.GETINFO_API).pipe((0,s.R)(this.actions.pipe((0,e.l4)(P.pg.SET_SELECTED_NODE))),(0,D.U)(F=>(this.logger.info(F),F.chains&&F.chains.length&&F.chains[0]&&("string"==typeof F.chains[0]&&F.chains[0].toLowerCase().indexOf("bitcoin")<0||"object"==typeof F.chains[0]&&F.chains[0].hasOwnProperty("chain")&&F.chains[0].chain&&F.chains[0].chain.toLowerCase().indexOf("bitcoin")<0)?(this.store.dispatch((0,z.PC)({payload:{action:"FetchInfo",status:P.Bn.COMPLETED}})),this.store.dispatch((0,M.ts)()),this.store.dispatch((0,M.qR)({payload:{data:{type:P.n_.ERROR,alertTitle:"Shitcoin Found",titleMessage:"Sorry Not Sorry, RTL is Bitcoin Only!"}}})),{type:P.pg.LOGOUT}):F.identity_pubkey?(F.lnImplementation="LND",this.initializeRemainingData(F,N.payload.loadPage),this.store.dispatch((0,z.PC)({payload:{action:"FetchInfo",status:P.Bn.COMPLETED}})),this.store.dispatch((0,M.ts)()),{type:P.uR.SET_INFO_LND,payload:F||{}}):(this.store.dispatch((0,z.PC)({payload:{action:"FetchInfo",status:P.Bn.COMPLETED}})),this.store.dispatch((0,M.ts)()),this.sessionService.removeItem("lndUnlocked"),this.logger.info("Redirecting to Unlock"),this.router.navigate(["/lnd/wallet"]),{type:P.uR.SET_INFO_LND,payload:{}}))),(0,u.K)(F=>{if("string"==typeof F.error.error&&F.error.error.includes("Not Found")||"string"==typeof F.error.error&&F.error.error.includes("wallet locked")||502===F.status&&!F.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",P.m6.GET_NODE_INFO,"Fetching Node Info Failed.",F);else if("string"==typeof F.error.error&&F.error.error.includes("starting up")&&500===F.status)setTimeout(()=>{this.store.dispatch((0,z.sQ)({payload:{loadPage:"HOME"}}))},2e3);else{const X=this.commonService.extractErrorCode(F),Fe=503===X?"Unable to Connect to LND Server.":this.commonService.extractErrorMessage(F);this.router.navigate(["/error"],{state:{errorCode:X,errorMessage:Fe}}),this.handleErrorWithoutAlert("FetchInfo",P.m6.GET_NODE_INFO,"Fetching Node Info Failed.",{status:X,error:Fe})}return(0,_.of)({type:P.pg.VOID})})))))),this.peersFetch=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(P.uR.FETCH_PEERS_LND),(0,E.z)(()=>(this.store.dispatch((0,z.PC)({payload:{action:"FetchPeers",status:P.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+p.NZ.PEERS_API).pipe((0,D.U)(N=>(this.logger.info(N),this.store.dispatch((0,z.PC)({payload:{action:"FetchPeers",status:P.Bn.COMPLETED}})),{type:P.uR.SET_PEERS_LND,payload:N||[]})),(0,u.K)(N=>(this.handleErrorWithoutAlert("FetchPeers",P.m6.NO_SPINNER,"Fetching Peers Failed.",N),(0,_.of)({type:P.pg.VOID})))))))),this.saveNewPeer=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(P.uR.SAVE_NEW_PEER_LND),(0,E.z)(N=>(this.store.dispatch((0,M.ac)({payload:P.m6.CONNECT_PEER})),this.store.dispatch((0,z.PC)({payload:{action:"SaveNewPeer",status:P.Bn.INITIATED}})),this.httpClient.post(this.CHILD_API_URL+p.NZ.PEERS_API,{pubkey:N.payload.pubkey,host:N.payload.host,perm:N.payload.perm}).pipe((0,D.U)(F=>(this.logger.info(F),this.store.dispatch((0,z.PC)({payload:{action:"SaveNewPeer",status:P.Bn.COMPLETED}})),this.store.dispatch((0,M.uO)({payload:P.m6.CONNECT_PEER})),this.store.dispatch((0,z.Z8)({payload:F||[]})),{type:P.uR.NEWLY_ADDED_PEER_LND,payload:{peer:F[0]}})),(0,u.K)(F=>(this.handleErrorWithoutAlert("SaveNewPeer",P.m6.CONNECT_PEER,"Peer Connection Failed.",F),(0,_.of)({type:P.pg.VOID})))))))),this.detachPeer=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(P.uR.DETACH_PEER_LND),(0,E.z)(N=>(this.store.dispatch((0,M.ac)({payload:P.m6.DISCONNECT_PEER})),this.httpClient.delete(this.CHILD_API_URL+p.NZ.PEERS_API+"/"+N.payload.pubkey).pipe((0,D.U)(F=>(this.logger.info(F),this.store.dispatch((0,M.uO)({payload:P.m6.DISCONNECT_PEER})),this.store.dispatch((0,M.jW)({payload:"Peer Disconnected Successfully."})),{type:P.uR.REMOVE_PEER_LND,payload:{pubkey:N.payload.pubkey}})),(0,u.K)(F=>(this.handleErrorWithAlert("DetachPeer",P.m6.DISCONNECT_PEER,"Unable to Detach Peer. Try again later.",this.CHILD_API_URL+p.NZ.PEERS_API+"/"+N.payload.pubkey,F),(0,_.of)({type:P.pg.VOID})))))))),this.saveNewInvoice=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(P.uR.SAVE_NEW_INVOICE_LND),(0,E.z)(N=>(this.store.dispatch((0,M.ac)({payload:N.payload.uiMessage})),this.store.dispatch((0,z.PC)({payload:{action:"SaveNewInvoice",status:P.Bn.INITIATED}})),this.httpClient.post(this.CHILD_API_URL+p.NZ.INVOICES_API,{memo:N.payload.memo,value:N.payload.value,private:N.payload.private,expiry:N.payload.expiry,is_amp:N.payload.is_amp}).pipe((0,D.U)(F=>(this.logger.info(F),this.store.dispatch((0,z.PC)({payload:{action:"SaveNewInvoice",status:P.Bn.COMPLETED}})),this.store.dispatch((0,z.WM)({payload:{num_max_invoices:N.payload.pageSize,reversed:!0}})),N.payload.openModal?(F.memo=N.payload.memo,F.value=N.payload.value,F.expiry=N.payload.expiry,F.private=N.payload.private,F.is_amp=N.payload.is_amp,F.cltv_expiry="144",F.creation_date=Math.round((new Date).getTime()/1e3).toString(),setTimeout(()=>{this.store.dispatch((0,M.qR)({payload:{data:{invoice:F,newlyAdded:!0,component:S.v}}}))},200),{type:P.pg.CLOSE_SPINNER,payload:N.payload.uiMessage}):{type:P.uR.NEWLY_SAVED_INVOICE_LND,payload:{paymentRequest:F.payment_request}})),(0,u.K)(F=>(this.handleErrorWithoutAlert("SaveNewInvoice",N.payload.uiMessage,"Add Invoice Failed.",F),(0,_.of)({type:P.pg.VOID})))))))),this.openNewChannel=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(P.uR.SAVE_NEW_CHANNEL_LND),(0,E.z)(N=>(this.store.dispatch((0,M.ac)({payload:P.m6.OPEN_CHANNEL})),this.store.dispatch((0,z.PC)({payload:{action:"SaveNewChannel",status:P.Bn.INITIATED}})),this.httpClient.post(this.CHILD_API_URL+p.NZ.CHANNELS_API,{node_pubkey:N.payload.selectedPeerPubkey,local_funding_amount:N.payload.fundingAmount,private:N.payload.private,trans_type:N.payload.transType,trans_type_value:N.payload.transTypeValue,spend_unconfirmed:N.payload.spendUnconfirmed}).pipe((0,D.U)(F=>(this.logger.info(F),this.store.dispatch((0,z.PC)({payload:{action:"SaveNewChannel",status:P.Bn.COMPLETED}})),this.store.dispatch((0,M.uO)({payload:P.m6.OPEN_CHANNEL})),this.store.dispatch((0,z.Bl)()),this.store.dispatch((0,z.UR)()),this.store.dispatch((0,z.Vv)({payload:{uiMessage:P.m6.NO_SPINNER,channelPoint:"ALL",showMessage:"Channel Added Successfully!"}})),{type:P.uR.FETCH_PENDING_CHANNELS_LND})),(0,u.K)(F=>(this.handleErrorWithoutAlert("SaveNewChannel",P.m6.OPEN_CHANNEL,"Opening Channel Failed.",F),(0,_.of)({type:P.pg.VOID})))))))),this.updateChannel=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(P.uR.UPDATE_CHANNEL_LND),(0,E.z)(N=>(this.store.dispatch((0,M.ac)({payload:P.m6.UPDATE_CHAN_POLICY})),this.httpClient.post(this.CHILD_API_URL+p.NZ.CHANNELS_API+"/chanPolicy",{baseFeeMsat:N.payload.baseFeeMsat,feeRate:N.payload.feeRate,timeLockDelta:N.payload.timeLockDelta,max_htlc_msat:N.payload.maxHtlcMsat,min_htlc_msat:N.payload.minHtlcMsat,chanPoint:N.payload.chanPoint}).pipe((0,D.U)(F=>(this.logger.info(F),this.store.dispatch((0,M.uO)({payload:P.m6.UPDATE_CHAN_POLICY})),"all"===N.payload.chanPoint?this.store.dispatch((0,M.jW)({payload:"All Channels Updated Successfully."})):this.store.dispatch((0,M.jW)({payload:"Channel Updated Successfully!"})),{type:P.uR.FETCH_CHANNELS_LND})),(0,u.K)(F=>(this.handleErrorWithAlert("UpdateChannels",P.m6.UPDATE_CHAN_POLICY,"Update Channel Failed",this.CHILD_API_URL+p.NZ.CHANNELS_API+"/chanPolicy",F),(0,_.of)({type:P.pg.VOID})))))))),this.closeChannel=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(P.uR.CLOSE_CHANNEL_LND),(0,E.z)(N=>{this.store.dispatch((0,M.ac)({payload:N.payload.forcibly?P.m6.FORCE_CLOSE_CHANNEL:P.m6.CLOSE_CHANNEL}));let F=this.CHILD_API_URL+p.NZ.CHANNELS_API+"/"+N.payload.channelPoint+"?force="+N.payload.forcibly;return N.payload.targetConf&&(F=F+"&target_conf="+N.payload.targetConf),N.payload.satPerByte&&(F=F+"&sat_per_byte="+N.payload.satPerByte),this.httpClient.delete(F).pipe((0,D.U)(X=>(this.logger.info(X),this.store.dispatch((0,M.uO)({payload:N.payload.forcibly?P.m6.FORCE_CLOSE_CHANNEL:P.m6.CLOSE_CHANNEL})),this.store.dispatch((0,z.UR)()),this.store.dispatch((0,z.Z7)()),this.store.dispatch((0,z.Vv)({payload:{uiMessage:P.m6.NO_SPINNER,channelPoint:"ALL",showMessage:X.message}})),{type:P.pg.VOID})),(0,u.K)(X=>(this.handleErrorWithAlert("CloseChannel",N.payload.forcibly?P.m6.FORCE_CLOSE_CHANNEL:P.m6.CLOSE_CHANNEL,"Unable to Close Channel. Try again later.",this.CHILD_API_URL+p.NZ.CHANNELS_API+"/"+N.payload.channelPoint+"?force="+N.payload.forcibly,X),(0,_.of)({type:P.pg.VOID}))))}))),this.backupChannels=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(P.uR.BACKUP_CHANNELS_LND),(0,E.z)(N=>(this.store.dispatch((0,M.ac)({payload:N.payload.uiMessage})),this.store.dispatch((0,z.PC)({payload:{action:"BackupChannels",status:P.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+p.NZ.CHANNELS_BACKUP_API+"/"+N.payload.channelPoint).pipe((0,D.U)(F=>(this.logger.info(F),this.store.dispatch((0,z.PC)({payload:{action:"BackupChannels",status:P.Bn.COMPLETED}})),this.store.dispatch((0,M.uO)({payload:N.payload.uiMessage})),this.store.dispatch((0,M.jW)({payload:N.payload.showMessage+" "+F.message})),{type:P.uR.BACKUP_CHANNELS_RES_LND,payload:F.message})),(0,u.K)(F=>(this.handleErrorWithAlert("BackupChannels",N.payload.uiMessage,N.payload.showMessage+" Unable to Backup Channel. Try again later.",this.CHILD_API_URL+p.NZ.CHANNELS_BACKUP_API+"/"+N.payload.channelPoint,F),(0,_.of)({type:P.pg.VOID})))))))),this.verifyChannel=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(P.uR.VERIFY_CHANNEL_LND),(0,E.z)(N=>(this.store.dispatch((0,M.ac)({payload:P.m6.VERIFY_CHANNEL})),this.store.dispatch((0,z.PC)({payload:{action:"VerifyChannel",status:P.Bn.INITIATED}})),this.httpClient.post(this.CHILD_API_URL+p.NZ.CHANNELS_BACKUP_API+"/verify/"+N.payload.channelPoint,{}).pipe((0,D.U)(F=>(this.logger.info(F),this.store.dispatch((0,z.PC)({payload:{action:"VerifyChannel",status:P.Bn.COMPLETED}})),this.store.dispatch((0,M.uO)({payload:P.m6.VERIFY_CHANNEL})),this.store.dispatch((0,M.jW)({payload:F.message})),{type:P.uR.VERIFY_CHANNEL_RES_LND,payload:F.message})),(0,u.K)(F=>(this.handleErrorWithAlert("VerifyChannel",P.m6.VERIFY_CHANNEL,"Unable to Verify Channel. Try again later.",this.CHILD_API_URL+p.NZ.CHANNELS_BACKUP_API+"/verify/"+N.payload.channelPoint,F),(0,_.of)({type:P.pg.VOID})))))))),this.restoreChannels=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(P.uR.RESTORE_CHANNELS_LND),(0,E.z)(N=>(this.store.dispatch((0,M.ac)({payload:P.m6.RESTORE_CHANNEL})),this.store.dispatch((0,z.PC)({payload:{action:"RestoreChannels",status:P.Bn.INITIATED}})),this.httpClient.post(this.CHILD_API_URL+p.NZ.CHANNELS_BACKUP_API+"/restore/"+N.payload.channelPoint,{}).pipe((0,D.U)(F=>(this.logger.info(F),this.store.dispatch((0,z.PC)({payload:{action:"RestoreChannels",status:P.Bn.COMPLETED}})),this.store.dispatch((0,M.uO)({payload:P.m6.RESTORE_CHANNEL})),this.store.dispatch((0,M.jW)({payload:F.message})),this.store.dispatch((0,z.B_)({payload:F.list})),{type:P.uR.RESTORE_CHANNELS_RES_LND,payload:F.message})),(0,u.K)(F=>(this.handleErrorWithAlert("RestoreChannels",P.m6.RESTORE_CHANNEL,"Unable to Restore Channel. Try again later.",this.CHILD_API_URL+p.NZ.CHANNELS_BACKUP_API+"/restore/"+N.payload.channelPoint,F),(0,_.of)({type:P.pg.VOID})))))))),this.fetchFees=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(P.uR.FETCH_FEES_LND),(0,E.z)(()=>(this.store.dispatch((0,z.PC)({payload:{action:"FetchFees",status:P.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+p.NZ.FEES_API))),(0,D.U)(N=>(this.logger.info(N),this.store.dispatch((0,z.PC)({payload:{action:"FetchFees",status:P.Bn.COMPLETED}})),N.forwarding_events_history&&(this.store.dispatch((0,z.QJ)({payload:N.forwarding_events_history})),delete N.forwarding_events_history),{type:P.uR.SET_FEES_LND,payload:N||{}})),(0,u.K)(N=>(this.handleErrorWithoutAlert("FetchFees",P.m6.NO_SPINNER,"Fetching Fees Failed.",N),(0,_.of)({type:P.pg.VOID}))))),this.balanceBlockchainFetch=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(P.uR.FETCH_BLOCKCHAIN_BALANCE_LND),(0,E.z)(()=>(this.store.dispatch((0,z.PC)({payload:{action:"FetchBalance",status:P.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+p.NZ.BALANCE_API))),(0,D.U)(N=>(this.store.dispatch((0,z.PC)({payload:{action:"FetchBalance",status:P.Bn.COMPLETED}})),this.logger.info(N),{type:P.uR.SET_BLOCKCHAIN_BALANCE_LND,payload:N||{total_balance:""}})),(0,u.K)(N=>(this.handleErrorWithoutAlert("FetchBalance",P.m6.NO_SPINNER,"Fetching Blockchain Balance Failed.",N),(0,_.of)({type:P.pg.VOID}))))),this.networkInfoFetch=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(P.uR.FETCH_NETWORK_LND),(0,E.z)(()=>(this.store.dispatch((0,z.PC)({payload:{action:"FetchNetwork",status:P.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+p.NZ.NETWORK_API+"/info"))),(0,D.U)(N=>(this.logger.info(N),this.store.dispatch((0,z.PC)({payload:{action:"FetchNetwork",status:P.Bn.COMPLETED}})),{type:P.uR.SET_NETWORK_LND,payload:N||{}})),(0,u.K)(N=>(this.handleErrorWithoutAlert("FetchNetwork",P.m6.NO_SPINNER,"Fetching Network Failed.",N),(0,_.of)({type:P.pg.VOID}))))),this.channelsFetch=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(P.uR.FETCH_CHANNELS_LND),(0,E.z)(()=>(this.store.dispatch((0,z.PC)({payload:{action:"FetchChannels",status:P.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+p.NZ.CHANNELS_API).pipe((0,D.U)(N=>(this.logger.info(N),this.store.dispatch((0,z.PC)({payload:{action:"FetchChannels",status:P.Bn.COMPLETED}})),{type:P.uR.SET_CHANNELS_LND,payload:N.channels||[]})),(0,u.K)(N=>(this.handleErrorWithoutAlert("FetchChannels",P.m6.NO_SPINNER,"Fetching Channels Failed.",N),(0,_.of)({type:P.pg.VOID})))))))),this.channelsPendingFetch=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(P.uR.FETCH_PENDING_CHANNELS_LND),(0,E.z)(()=>(this.store.dispatch((0,z.PC)({payload:{action:"FetchPendingChannels",status:P.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+p.NZ.CHANNELS_API+"/pending").pipe((0,D.U)(N=>{this.logger.info(N),this.store.dispatch((0,z.PC)({payload:{action:"FetchPendingChannels",status:P.Bn.COMPLETED}}));const F={open:{num_channels:0,limbo_balance:0},closing:{num_channels:0,limbo_balance:0},force_closing:{num_channels:0,limbo_balance:0},waiting_close:{num_channels:0,limbo_balance:0},total_channels:0,total_limbo_balance:0};return N&&(F.total_limbo_balance=N.total_limbo_balance,N.pending_closing_channels&&(F.closing.num_channels=N.pending_closing_channels.length,F.total_channels=F.total_channels+N.pending_closing_channels.length,N.pending_closing_channels.forEach(X=>{F.closing.limbo_balance=+F.closing.limbo_balance+(X.channel.local_balance?+X.channel.local_balance:0)})),N.pending_force_closing_channels&&(F.force_closing.num_channels=N.pending_force_closing_channels.length,F.total_channels=F.total_channels+N.pending_force_closing_channels.length,N.pending_force_closing_channels.forEach(X=>{F.force_closing.limbo_balance=+F.force_closing.limbo_balance+(X.channel.local_balance?+X.channel.local_balance:0)})),N.pending_open_channels&&(F.open.num_channels=N.pending_open_channels.length,F.total_channels=F.total_channels+N.pending_open_channels.length,N.pending_open_channels.forEach(X=>{F.open.limbo_balance=+F.open.limbo_balance+(X.channel.local_balance?+X.channel.local_balance:0)})),N.waiting_close_channels&&(F.waiting_close.num_channels=N.waiting_close_channels.length,F.total_channels=F.total_channels+N.waiting_close_channels.length,N.waiting_close_channels.forEach(X=>{F.waiting_close.limbo_balance=+F.waiting_close.limbo_balance+(X.channel.local_balance?+X.channel.local_balance:0)}))),{type:P.uR.SET_PENDING_CHANNELS_LND,payload:N?{pendingChannels:N,pendingChannelsSummary:F}:{pendingChannels:{},pendingChannelsSummary:F}}}),(0,u.K)(N=>(this.handleErrorWithoutAlert("FetchPendingChannels",P.m6.NO_SPINNER,"Fetching Pending Channels Failed.",N),(0,_.of)({type:P.pg.VOID})))))))),this.channelsClosedFetch=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(P.uR.FETCH_CLOSED_CHANNELS_LND),(0,E.z)(()=>(this.store.dispatch((0,z.PC)({payload:{action:"FetchClosedChannels",status:P.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+p.NZ.CHANNELS_API+"/closed").pipe((0,D.U)(N=>(this.logger.info(N),this.store.dispatch((0,z.PC)({payload:{action:"FetchClosedChannels",status:P.Bn.COMPLETED}})),{type:P.uR.SET_CLOSED_CHANNELS_LND,payload:N.channels||[]})),(0,u.K)(N=>(this.handleErrorWithoutAlert("FetchClosedChannels",P.m6.NO_SPINNER,"Fetching Closed Channels Failed.",N),(0,_.of)({type:P.pg.VOID})))))))),this.invoicesFetch=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(P.uR.FETCH_INVOICES_LND),(0,E.z)(N=>{this.store.dispatch((0,z.PC)({payload:{action:"FetchInvoices",status:P.Bn.INITIATED}}));const F=N.payload.num_max_invoices?N.payload.num_max_invoices:100,X=N.payload.index_offset?N.payload.index_offset:0,Fe=!!N.payload.reversed&&N.payload.reversed;return this.httpClient.get(this.CHILD_API_URL+p.NZ.INVOICES_API+"?num_max_invoices="+F+"&index_offset="+X+"&reversed="+Fe).pipe((0,D.U)(ke=>(this.logger.info(ke),this.store.dispatch((0,z.PC)({payload:{action:"FetchInvoices",status:P.Bn.COMPLETED}})),N.payload.reversed&&!N.payload.index_offset&&(ke.total_invoices=+(ke.last_index_offset||0)),{type:P.uR.SET_INVOICES_LND,payload:ke})),(0,u.K)(ke=>(this.handleErrorWithoutAlert("FetchInvoices",P.m6.NO_SPINNER,"Fetching Invoices Failed.",ke),(0,_.of)({type:P.pg.VOID}))))}))),this.transactionsFetch=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(P.uR.FETCH_TRANSACTIONS_LND),(0,E.z)(()=>(this.store.dispatch((0,z.PC)({payload:{action:"FetchTransactions",status:P.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+p.NZ.TRANSACTIONS_API))),(0,D.U)(N=>(this.logger.info(N),this.store.dispatch((0,z.PC)({payload:{action:"FetchTransactions",status:P.Bn.COMPLETED}})),{type:P.uR.SET_TRANSACTIONS_LND,payload:N||[]})),(0,u.K)(N=>(this.handleErrorWithoutAlert("FetchTransactions",P.m6.NO_SPINNER,"Fetching Transactions Failed.",N),(0,_.of)({type:P.pg.VOID}))))),this.utxosFetch=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(P.uR.FETCH_UTXOS_LND),(0,k.M)(this.store.select(I.Q5)),(0,E.z)(([N,F])=>(this.store.dispatch((0,z.PC)({payload:{action:"FetchUTXOs",status:P.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+p.NZ.WALLET_API+"/getUTXOs?max_confs="+(F&&F.block_height?F.block_height:1e9)))),(0,D.U)(N=>(this.logger.info(N),this.store.dispatch((0,z.PC)({payload:{action:"FetchUTXOs",status:P.Bn.COMPLETED}})),{type:P.uR.SET_UTXOS_LND,payload:N||[]})),(0,u.K)(N=>(this.handleErrorWithoutAlert("FetchUTXOs",P.m6.NO_SPINNER,"Fetching UTXOs Failed.",N),(0,_.of)({type:P.pg.VOID}))))),this.paymentsFetch=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(P.uR.FETCH_PAYMENTS_LND),(0,E.z)(N=>{this.store.dispatch((0,z.PC)({payload:{action:"FetchPayments",status:P.Bn.INITIATED}}));const F=N.payload.max_payments?N.payload.max_payments:100,X=N.payload.index_offset?N.payload.index_offset:0,Fe=!!N.payload.reversed&&N.payload.reversed;return this.httpClient.get(this.CHILD_API_URL+p.NZ.PAYMENTS_API+"?max_payments="+F+"&index_offset="+X+"&reversed="+Fe).pipe((0,D.U)(ke=>(this.logger.info(ke),this.store.dispatch((0,z.PC)({payload:{action:"FetchPayments",status:P.Bn.COMPLETED}})),{type:P.uR.SET_PAYMENTS_LND,payload:ke})),(0,u.K)(ke=>(this.handleErrorWithoutAlert("FetchPayments",P.m6.NO_SPINNER,"Fetching Payments Failed.",ke),(0,_.of)({type:P.uR.SET_PAYMENTS_LND,payload:{payments:[]}}))))}))),this.sendPayment=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(P.uR.SEND_PAYMENT_LND),(0,E.z)(N=>{this.store.dispatch((0,M.ac)({payload:N.payload.uiMessage})),this.store.dispatch((0,z.PC)({payload:{action:"SendPayment",status:P.Bn.INITIATED}}));const F={};return F.paymentReq=N.payload.paymentReq,N.payload.paymentAmount&&(F.paymentAmount=N.payload.paymentAmount),N.payload.outgoingChannel&&(F.outgoingChannel=N.payload.outgoingChannel.chan_id),N.payload.allowSelfPayment&&(F.allowSelfPayment=N.payload.allowSelfPayment),N.payload.lastHopPubkey&&(F.lastHopPubkey=N.payload.lastHopPubkey),N.payload.feeLimitType&&N.payload.feeLimitType!==P.Vc[0].id&&(F.feeLimit={},F.feeLimit[N.payload.feeLimitType]=N.payload.feeLimit),this.httpClient.post(this.CHILD_API_URL+p.NZ.CHANNELS_API+"/transactions",F).pipe((0,D.U)(X=>{if(this.logger.info(X),this.store.dispatch((0,M.uO)({payload:N.payload.uiMessage})),this.store.dispatch((0,z.PC)({payload:{action:"SendPayment",status:P.Bn.COMPLETED}})),X.payment_error)return N.payload.allowSelfPayment?(this.store.dispatch((0,z.WM)({payload:{num_max_invoices:this.invoicesPageSize,reversed:!0}})),{type:P.uR.SEND_PAYMENT_STATUS_LND,payload:X}):(N.payload.fromDialog?this.handleErrorWithoutAlert("SendPayment",N.payload.uiMessage,"Send Payment Failed.",X.payment_error):this.handleErrorWithAlert("SendPayment",N.payload.uiMessage,"Send Payment Failed",this.CHILD_API_URL+p.NZ.CHANNELS_API+"/transactions",X.payment_error),{type:P.pg.VOID});if(this.store.dispatch((0,M.uO)({payload:N.payload.uiMessage})),this.store.dispatch((0,z.PC)({payload:{action:"SendPayment",status:P.Bn.COMPLETED}})),this.store.dispatch((0,z.UR)()),this.store.dispatch((0,z.cQ)({payload:{max_payments:this.paymentsPageSize,reversed:!0}})),N.payload.allowSelfPayment)this.store.dispatch((0,z.WM)({payload:{num_max_invoices:this.invoicesPageSize,reversed:!0}}));else{let Fe="Payment Sent Successfully.";X.payment_route&&X.payment_route.total_fees_msat&&(Fe="Payment sent successfully with the total fee "+X.payment_route.total_fees_msat+" (mSats)."),this.store.dispatch((0,M.jW)({payload:Fe}))}return{type:P.uR.SEND_PAYMENT_STATUS_LND,payload:X}}),(0,u.K)(X=>(this.logger.error("Error: "+JSON.stringify(X)),N.payload.allowSelfPayment?(this.handleErrorWithoutAlert("SendPayment",N.payload.uiMessage,"Send Payment Failed.",X),this.store.dispatch((0,z.WM)({payload:{num_max_invoices:this.invoicesPageSize,reversed:!0}})),(0,_.of)({type:P.uR.SEND_PAYMENT_STATUS_LND,payload:{error:this.commonService.extractErrorMessage(X)}})):(N.payload.fromDialog?this.handleErrorWithoutAlert("SendPayment",N.payload.uiMessage,"Send Payment Failed.",X):this.handleErrorWithAlert("SendPayment",N.payload.uiMessage,"Send Payment Failed",this.CHILD_API_URL+p.NZ.CHANNELS_API+"/transactions",X),(0,_.of)({type:P.pg.VOID})))))}))),this.graphNodeFetch=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(P.uR.FETCH_GRAPH_NODE_LND),(0,E.z)(N=>(this.store.dispatch((0,M.ac)({payload:P.m6.GET_NODE_ADDRESS})),this.store.dispatch((0,z.PC)({payload:{action:"FetchGraphNode",status:P.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+p.NZ.NETWORK_API+"/node/"+N.payload.pubkey).pipe((0,D.U)(F=>(this.logger.info(F),this.store.dispatch((0,M.uO)({payload:P.m6.GET_NODE_ADDRESS})),this.store.dispatch((0,z.PC)({payload:{action:"FetchGraphNode",status:P.Bn.COMPLETED}})),{type:P.uR.SET_GRAPH_NODE_LND,payload:F&&F.node?{node:F.node}:{node:null}})),(0,u.K)(F=>(this.handleErrorWithoutAlert("FetchGraphNode",P.m6.GET_NODE_ADDRESS,"Fetching Graph Node Failed.",F),(0,_.of)({type:P.pg.VOID})))))))),this.setGraphNode=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(P.uR.SET_GRAPH_NODE_LND),(0,D.U)(N=>(this.logger.info(N.payload),N.payload))),{dispatch:!1}),this.getNewAddress=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(P.uR.GET_NEW_ADDRESS_LND),(0,E.z)(N=>(this.store.dispatch((0,M.ac)({payload:P.m6.GENERATE_NEW_ADDRESS})),this.httpClient.get(this.CHILD_API_URL+p.NZ.NEW_ADDRESS_API+"?type="+N.payload.addressId).pipe((0,D.U)(F=>(this.logger.info(F),this.store.dispatch((0,M.uO)({payload:P.m6.GENERATE_NEW_ADDRESS})),{type:P.uR.SET_NEW_ADDRESS_LND,payload:F&&F.address?F.address:{}})),(0,u.K)(F=>(this.handleErrorWithAlert("GetNewAddress",P.m6.GENERATE_NEW_ADDRESS,"Generate New Address Failed",this.CHILD_API_URL+p.NZ.NEW_ADDRESS_API+"?type="+N.payload.addressId,F),(0,_.of)({type:P.pg.VOID})))))))),this.setNewAddress=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(P.uR.SET_NEW_ADDRESS_LND),(0,D.U)(N=>(this.logger.info(N.payload),N.payload))),{dispatch:!1}),this.SetChannelTransaction=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(P.uR.SET_CHANNEL_TRANSACTION_LND),(0,E.z)(N=>(this.store.dispatch((0,M.ac)({payload:P.m6.SEND_FUNDS})),this.store.dispatch((0,z.PC)({payload:{action:"SetChannelTransaction",status:P.Bn.INITIATED}})),this.httpClient.post(this.CHILD_API_URL+p.NZ.TRANSACTIONS_API,{amount:N.payload.amount,address:N.payload.address,sendAll:N.payload.sendAll,fees:N.payload.fees,blocks:N.payload.blocks}).pipe((0,D.U)(F=>(this.logger.info(F),this.store.dispatch((0,z.PC)({payload:{action:"SetChannelTransaction",status:P.Bn.COMPLETED}})),this.store.dispatch((0,M.uO)({payload:P.m6.SEND_FUNDS})),this.store.dispatch((0,z.mC)()),this.store.dispatch((0,z.Bl)()),this.store.dispatch((0,z.UR)()),{type:P.uR.SET_CHANNEL_TRANSACTION_RES_LND,payload:F})),(0,u.K)(F=>(this.handleErrorWithoutAlert("SetChannelTransaction",P.m6.SEND_FUNDS,"Sending Fund Failed.",F),(0,_.of)({type:P.pg.VOID})))))))),this.fetchForwardingHistory=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(P.uR.GET_FORWARDING_HISTORY_LND),(0,E.z)(N=>{this.store.dispatch((0,z.PC)({payload:{action:"FetchForwardingHistory",status:P.Bn.INITIATED}}));const F={num_max_events:N.payload.num_max_events,index_offset:N.payload.index_offset,end_time:N.payload.end_time,start_time:N.payload.start_time};return this.httpClient.post(this.CHILD_API_URL+p.NZ.SWITCH_API,F).pipe((0,D.U)(X=>(this.logger.info(X),this.store.dispatch((0,z.PC)({payload:{action:"FetchForwardingHistory",status:P.Bn.COMPLETED}})),{type:P.uR.SET_FORWARDING_HISTORY_LND,payload:X})),(0,u.K)(X=>(this.handleErrorWithAlert("FetchForwardingHistory",P.m6.NO_SPINNER,"Get Forwarding History Failed",this.CHILD_API_URL+p.NZ.SWITCH_API,X),(0,_.of)({type:P.pg.VOID}))))}))),this.queryRoutesFetch=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(P.uR.GET_QUERY_ROUTES_LND),(0,E.z)(N=>{let F=this.CHILD_API_URL+p.NZ.NETWORK_API+"/routes/"+N.payload.destPubkey+"/"+N.payload.amount;return N.payload.outgoingChanId&&(F=F+"?outgoing_chan_id="+N.payload.outgoingChanId),this.httpClient.get(F).pipe((0,D.U)(X=>(this.logger.info(X),{type:P.uR.SET_QUERY_ROUTES_LND,payload:X})),(0,u.K)(X=>(this.store.dispatch((0,z.kL)({payload:{routes:[]}})),this.handleErrorWithAlert("GetQueryRoutes",P.m6.NO_SPINNER,"Get Query Routes Failed",this.CHILD_API_URL+p.NZ.NETWORK_API,X),(0,_.of)({type:P.pg.VOID}))))}))),this.setQueryRoutes=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(P.uR.SET_QUERY_ROUTES_LND),(0,D.U)(N=>N.payload)),{dispatch:!1}),this.genSeed=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(P.uR.GEN_SEED_LND),(0,E.z)(N=>(this.store.dispatch((0,M.ac)({payload:P.m6.GEN_SEED})),this.httpClient.get(this.CHILD_API_URL+p.NZ.WALLET_API+"/genseed/"+N.payload).pipe((0,D.U)(F=>(this.logger.info("Generated GenSeed!"),this.logger.info(F),this.store.dispatch((0,M.uO)({payload:P.m6.GEN_SEED})),{type:P.uR.GEN_SEED_RESPONSE_LND,payload:F.cipher_seed_mnemonic})),(0,u.K)(F=>(this.handleErrorWithAlert("GenSeed",P.m6.GEN_SEED,"Genseed Generation Failed",this.CHILD_API_URL+p.NZ.WALLET_API+"/genseed/"+N.payload,F),(0,_.of)({type:P.pg.VOID})))))))),this.updateSelNodeOptions=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(P.pg.UPDATE_SELECTED_NODE_OPTIONS),(0,E.z)(()=>this.httpClient.get(this.CHILD_API_URL+p.NZ.WALLET_API+"/updateSelNodeOptions").pipe((0,D.U)(N=>(this.logger.info("Update Sel Node Successfull"),this.logger.info(N),{type:P.pg.VOID})),(0,u.K)(N=>(this.handleErrorWithAlert("UpdateSelectedNodeOptions",P.m6.NO_SPINNER,"Update macaroon for newly initialized node failed! Please check the macaroon path and restart the server!","Update Macaroon",N),(0,_.of)({type:P.pg.VOID}))))))),this.genSeedResponse=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(P.uR.GEN_SEED_RESPONSE_LND),(0,D.U)(N=>N.payload)),{dispatch:!1}),this.initWalletRes=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(P.uR.INIT_WALLET_RESPONSE_LND),(0,D.U)(N=>N.payload)),{dispatch:!1}),this.initWallet=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(P.uR.INIT_WALLET_LND),(0,E.z)(N=>(this.store.dispatch((0,M.ac)({payload:P.m6.INITIALIZE_WALLET})),this.httpClient.post(this.CHILD_API_URL+p.NZ.WALLET_API+"/wallet/initwallet",{wallet_password:N.payload.pwd,cipher_seed_mnemonic:N.payload.cipher?N.payload.cipher:"",aezeed_passphrase:N.payload.passphrase?N.payload.passphrase:""}).pipe((0,D.U)(F=>(this.logger.info(F),this.store.dispatch((0,M.uO)({payload:P.m6.INITIALIZE_WALLET})),{type:P.uR.INIT_WALLET_RESPONSE_LND,payload:F})),(0,u.K)(F=>(this.handleErrorWithAlert("InitWallet",P.m6.INITIALIZE_WALLET,"Wallet Initialization Failed",this.CHILD_API_URL+p.NZ.WALLET_API+"/initwallet",F),(0,_.of)({type:P.pg.VOID})))))))),this.unlockWallet=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(P.uR.UNLOCK_WALLET_LND),(0,E.z)(N=>(this.store.dispatch((0,M.ac)({payload:P.m6.UNLOCK_WALLET})),this.httpClient.post(this.CHILD_API_URL+p.NZ.WALLET_API+"/wallet/unlockwallet",{wallet_password:N.payload.pwd}).pipe((0,D.U)(F=>(this.logger.info(F),this.logger.info("Successfully Unlocked!"),this.sessionService.setItem("lndUnlocked","true"),this.store.dispatch((0,M.uO)({payload:P.m6.UNLOCK_WALLET})),this.store.dispatch((0,M.ac)({payload:P.m6.WAIT_SYNC_NODE})),setTimeout(()=>{this.store.dispatch((0,M.uO)({payload:P.m6.WAIT_SYNC_NODE})),this.store.dispatch((0,z.sQ)({payload:{loadPage:"HOME"}}))},5e3),{type:P.pg.VOID})),(0,u.K)(F=>(this.handleErrorWithAlert("UnlockWallet",P.m6.UNLOCK_WALLET,"Unlock Wallet Failed",this.CHILD_API_URL+p.NZ.WALLET_API+"/unlockwallet",F),(0,_.of)({type:P.pg.VOID}))))))),{dispatch:!1}),this.peerLookup=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(P.uR.PEER_LOOKUP_LND),(0,E.z)(N=>(this.store.dispatch((0,M.ac)({payload:P.m6.SEARCHING_NODE})),this.store.dispatch((0,z.PC)({payload:{action:"Lookup",status:P.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+p.NZ.NETWORK_API+"/node/"+N.payload).pipe((0,D.U)(F=>(this.logger.info(F),this.store.dispatch((0,M.uO)({payload:P.m6.SEARCHING_NODE})),this.store.dispatch((0,z.PC)({payload:{action:"Lookup",status:P.Bn.COMPLETED}})),{type:P.uR.SET_LOOKUP_LND,payload:F})),(0,u.K)(F=>(this.handleErrorWithAlert("Lookup",P.m6.SEARCHING_NODE,"Peer Lookup Failed",this.CHILD_API_URL+p.NZ.NETWORK_API+"/node/"+N.payload,F),(0,_.of)({type:P.pg.VOID})))))))),this.channelLookup=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(P.uR.CHANNEL_LOOKUP_LND),(0,E.z)(N=>(this.store.dispatch((0,M.ac)({payload:N.payload.uiMessage})),this.store.dispatch((0,z.PC)({payload:{action:"Lookup",status:P.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+p.NZ.NETWORK_API+"/edge/"+N.payload.channelID).pipe((0,D.U)(F=>(this.logger.info(F),this.store.dispatch((0,M.uO)({payload:N.payload.uiMessage})),this.store.dispatch((0,z.PC)({payload:{action:"Lookup",status:P.Bn.COMPLETED}})),{type:P.uR.SET_LOOKUP_LND,payload:F})),(0,u.K)(F=>(this.handleErrorWithAlert("Lookup",N.payload.uiMessage,"Channel Lookup Failed",this.CHILD_API_URL+p.NZ.NETWORK_API+"/edge/"+N.payload.channelID,F),(0,_.of)({type:P.pg.VOID})))))))),this.invoiceLookup=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(P.uR.INVOICE_LOOKUP_LND),(0,E.z)(N=>{this.store.dispatch((0,M.ac)({payload:P.m6.SEARCHING_INVOICE})),this.store.dispatch((0,z.PC)({payload:{action:"Lookup",status:P.Bn.INITIATED}}));let F=this.CHILD_API_URL+p.NZ.INVOICES_API+"/lookup";return F=N.payload.paymentAddress&&""!==N.payload.paymentAddress?F+"?payment_addr="+N.payload.paymentAddress:F+"?payment_hash="+N.payload.paymentHash,this.httpClient.get(F).pipe((0,D.U)(X=>(this.logger.info(X),this.store.dispatch((0,M.uO)({payload:P.m6.SEARCHING_INVOICE})),this.store.dispatch((0,z.PC)({payload:{action:"Lookup",status:P.Bn.COMPLETED}})),this.store.dispatch((0,z.aL)({payload:X})),{type:P.uR.SET_LOOKUP_LND,payload:X})),(0,u.K)(X=>(this.store.dispatch((0,z.PC)({payload:{action:"Lookup",status:P.Bn.ERROR}})),this.handleErrorWithoutAlert("Lookup",P.m6.SEARCHING_INVOICE,"Invoice Lookup Failed",X),N.payload.openSnackBar&&this.store.dispatch((0,M.jW)({payload:{message:"Invoice Refresh Failed.",type:"ERROR"}})),(0,_.of)({type:P.uR.SET_LOOKUP_LND,payload:{error:X}}))))}))),this.paymentLookup=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(P.uR.PAYMENT_LOOKUP_LND),(0,E.z)(N=>(this.store.dispatch((0,M.ac)({payload:P.m6.SEARCHING_PAYMENT})),this.store.dispatch((0,z.PC)({payload:{action:"Lookup",status:P.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+p.NZ.PAYMENTS_API+"/lookup/"+N.payload).pipe((0,D.U)(F=>(this.logger.info(F),this.store.dispatch((0,M.uO)({payload:P.m6.SEARCHING_PAYMENT})),this.store.dispatch((0,z.PC)({payload:{action:"Lookup",status:P.Bn.COMPLETED}})),this.store.dispatch((0,z.qY)({payload:F})),{type:P.uR.SET_LOOKUP_LND,payload:F})),(0,u.K)(F=>(this.store.dispatch((0,z.PC)({payload:{action:"Lookup",status:P.Bn.ERROR}})),this.handleErrorWithoutAlert("Lookup",P.m6.SEARCHING_PAYMENT,"Payment Lookup Failed",F),(0,_.of)({type:P.uR.SET_LOOKUP_LND,payload:{error:F}})))))))),this.setLookup=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(P.uR.SET_LOOKUP_LND),(0,D.U)(N=>(this.logger.info(N.payload),N.payload))),{dispatch:!1}),this.getRestoreChannelList=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(P.uR.RESTORE_CHANNELS_LIST_LND),(0,E.z)(()=>(this.store.dispatch((0,z.PC)({payload:{action:"RestoreChannelsList",status:P.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+p.NZ.CHANNELS_BACKUP_API+"/restore/list").pipe((0,D.U)(N=>(this.logger.info(N),this.store.dispatch((0,z.PC)({payload:{action:"RestoreChannelsList",status:P.Bn.COMPLETED}})),{type:P.uR.SET_RESTORE_CHANNELS_LIST_LND,payload:N||{all_restore_exists:!1,files:[]}})),(0,u.K)(N=>(this.handleErrorWithAlert("RestoreChannelsList",P.m6.NO_SPINNER,"Restore Channels List Failed",this.CHILD_API_URL+p.NZ.CHANNELS_BACKUP_API,N),(0,_.of)({type:P.pg.VOID})))))))),this.setRestoreChannelList=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(P.uR.SET_RESTORE_CHANNELS_LIST_LND),(0,D.U)(N=>(this.logger.info(N.payload),N.payload))),{dispatch:!1}),this.allLightningTransactionsFetch=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(P.uR.GET_ALL_LIGHTNING_TRANSATIONS_LND),(0,E.z)(()=>(this.store.dispatch((0,z.PC)({payload:{action:"FetchLightningTransactions",status:P.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+p.NZ.PAYMENTS_API+"/alltransactions").pipe((0,D.U)(N=>(this.logger.info(N),this.store.dispatch((0,z.PC)({payload:{action:"FetchLightningTransactions",status:P.Bn.COMPLETED}})),{type:P.uR.SET_ALL_LIGHTNING_TRANSATIONS_LND,payload:N})),(0,u.K)(N=>(this.handleErrorWithoutAlert("FetchLightningTransactions",P.m6.NO_SPINNER,"Fetching All Lightning Transaction Failed.",N),(0,_.of)({type:P.pg.VOID})))))))),this.pageSettingsFetch=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(P.uR.FETCH_PAGE_SETTINGS_LND),(0,E.z)(()=>(this.store.dispatch((0,z.PC)({payload:{action:"FetchPageSettings",status:P.Bn.INITIATED}})),this.httpClient.get(p.NZ.PAGE_SETTINGS_API).pipe((0,D.U)(N=>(this.logger.info(N),this.store.dispatch((0,z.PC)({payload:{action:"FetchPageSettings",status:P.Bn.COMPLETED}})),this.invoicesPageSize=(N&&Object.keys(N).length>0?N.find(F=>"transactions"===F.pageId)?.tables.find(F=>"invoices"===F.tableId):P.gK.find(F=>"transactions"===F.pageId)?.tables.find(F=>"invoices"===F.tableId)).recordsPerPage,this.paymentsPageSize=(N&&Object.keys(N).length>0?N.find(F=>"transactions"===F.pageId)?.tables.find(F=>"payments"===F.tableId):P.gK.find(F=>"transactions"===F.pageId)?.tables.find(F=>"payments"===F.tableId)).recordsPerPage,this.store.dispatch((0,z.WM)({payload:{num_max_invoices:this.invoicesPageSize,reversed:!0}})),{type:P.uR.SET_PAGE_SETTINGS_LND,payload:N||[]})),(0,u.K)(N=>(this.handleErrorWithoutAlert("FetchPageSettings",P.m6.NO_SPINNER,"Fetching Page Settings Failed.",N),(0,_.of)({type:P.pg.VOID})))))))),this.savePageSettings=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(P.uR.SAVE_PAGE_SETTINGS_LND),(0,E.z)(N=>(this.store.dispatch((0,M.ac)({payload:P.m6.UPDATE_PAGE_SETTINGS})),this.store.dispatch((0,z.PC)({payload:{action:"SavePageSettings",status:P.Bn.INITIATED}})),this.httpClient.post(p.NZ.PAGE_SETTINGS_API,N.payload).pipe((0,D.U)(F=>{this.logger.info(F),this.store.dispatch((0,z.PC)({payload:{action:"SavePageSettings",status:P.Bn.COMPLETED}})),this.store.dispatch((0,M.uO)({payload:P.m6.UPDATE_PAGE_SETTINGS})),this.store.dispatch((0,M.jW)({payload:"Page Layout Updated Successfully!"}));const X=(F.find(ke=>"transactions"===ke.pageId)?.tables.find(ke=>"invoices"===ke.tableId)||P.gK.find(ke=>"transactions"===ke.pageId)?.tables.find(ke=>"invoices"===ke.tableId)).recordsPerPage,Fe=(F.find(ke=>"transactions"===ke.pageId)?.tables.find(ke=>"payments"===ke.tableId)||P.gK.find(ke=>"transactions"===ke.pageId)?.tables.find(ke=>"payments"===ke.tableId)).recordsPerPage;return X!==this.invoicesPageSize&&(this.invoicesPageSize=X,this.store.dispatch((0,z.WM)({payload:{num_max_invoices:this.invoicesPageSize,reversed:!0}}))),Fe!==this.paymentsPageSize&&(this.paymentsPageSize=Fe),{type:P.uR.SET_PAGE_SETTINGS_LND,payload:F||[]}}),(0,u.K)(F=>(this.handleErrorWithAlert("SavePageSettings",P.m6.UPDATE_PAGE_SETTINGS,"Page Settings Update Failed.",p.NZ.PAGE_SETTINGS_API,F),(0,_.of)({type:P.pg.VOID})))))))),this.store.select(I.yA).pipe((0,s.R)(this.unSubs[0])).subscribe(N=>{N.FetchInfo.status!==P.Bn.COMPLETED&&N.FetchInfo.status!==P.Bn.ERROR||N.FetchFees.status!==P.Bn.COMPLETED&&N.FetchFees.status!==P.Bn.ERROR||N.FetchBalanceBlockchain.status!==P.Bn.COMPLETED&&N.FetchBalanceBlockchain.status!==P.Bn.ERROR||N.FetchAllChannels.status!==P.Bn.COMPLETED&&N.FetchAllChannels.status!==P.Bn.ERROR||N.FetchPendingChannels.status!==P.Bn.COMPLETED&&N.FetchPendingChannels.status!==P.Bn.ERROR||this.flgInitialized||(this.store.dispatch((0,M.uO)({payload:P.m6.INITALIZE_NODE_DATA})),this.flgInitialized=!0)}),this.wsService.lndWSMessages.pipe((0,s.R)(this.unSubs[1])).subscribe(N=>{if(this.logger.info("Received new message from the service: "+JSON.stringify(N)),N)if(N.type===P.g8.INVOICE)this.logger.info(N),N&&N.result&&N.result.payment_request&&this.store.dispatch((0,z.aL)({payload:N.result}));else this.logger.info("Received Event from WS: "+JSON.stringify(N))})}initializeRemainingData(n,o){this.sessionService.setItem("lndUnlocked","true");const h={identity_pubkey:n.identity_pubkey,alias:n.alias,testnet:n.testnet,chains:n.chains,uris:n.uris,version:n.version?n.version.split(" ")[0]:""};this.store.dispatch((0,M.ac)({payload:P.m6.INITALIZE_NODE_DATA})),this.store.dispatch((0,M._V)({payload:h}));let d=this.location.path();d.includes("/cln/")?d=d?.replace("/cln/","/lnd/"):d.includes("/ecl/")&&(d=d?.replace("/ecl/","/lnd/")),(d.includes("/unlock")||d.includes("/login")||d.includes("/error")||""===d||"HOME"===o||d.includes("?access-key="))&&(d="/lnd/home"),this.router.navigate([d]),this.store.dispatch((0,z.wD)()),this.store.dispatch((0,z.Bl)()),this.store.dispatch((0,z.UR)()),this.store.dispatch((0,z.Z7)()),this.store.dispatch((0,z.Zh)()),this.store.dispatch((0,z.$W)()),this.store.dispatch((0,z.Rv)()),this.store.dispatch((0,z.SN)()),this.store.dispatch((0,z.cQ)({payload:{max_payments:1e5,reversed:!0}}))}handleErrorWithoutAlert(n,o,h,d){this.logger.error("ERROR IN: "+n+"\n"+JSON.stringify(d)),401===d.status?(this.logger.info("Redirecting to Login"),this.store.dispatch((0,M.ts)()),this.store.dispatch((0,M.kS)()),this.store.dispatch((0,M.jW)({payload:"Authentication Failed. Redirecting to Login."}))):(this.store.dispatch((0,M.uO)({payload:o})),this.store.dispatch((0,z.PC)({payload:{action:n,status:P.Bn.ERROR,statusCode:d.status.toString(),message:this.commonService.extractErrorMessage(d,h)}})))}handleErrorWithAlert(n,o,h,d,y){if(this.logger.error(y),401===y.status)this.logger.info("Redirecting to Login"),this.store.dispatch((0,M.ts)()),this.store.dispatch((0,M.kS)()),this.store.dispatch((0,M.jW)({payload:"Authentication Failed. Redirecting to Login."}));else{this.store.dispatch((0,M.uO)({payload:o}));const L=this.commonService.extractErrorMessage(y);this.store.dispatch((0,M.qR)({payload:{data:{type:"ERROR",alertTitle:h,message:{code:y.status,message:L,URL:d},component:A.H}}})),this.store.dispatch((0,z.PC)({payload:{action:n,status:P.Bn.ERROR,statusCode:y.status.toString(),message:L,URL:d}}))}}ngOnDestroy(){this.unSubs.forEach(n=>{n.next(null),n.complete()})}static#e=this.\u0275fac=function(o){return new(o||he)(W.LFG(e.eX),W.LFG(Z.eN),W.LFG(Q.yh),W.LFG(ie.mQ),W.LFG(ae.v),W.LFG(_e.m),W.LFG(ce.uw),W.LFG(ye.F0),W.LFG(ue.d),W.LFG($.Ye))};static#t=this.\u0275prov=W.Yz7({token:he,factory:he.\u0275fac})}},6529:(Ue,q,m)=>{"use strict";m.d(q,{$k:()=>_,Bo:()=>k,Ef:()=>M,JG:()=>S,N7:()=>_e,P2:()=>Z,PP:()=>p,Pr:()=>E,Q5:()=>s,T4:()=>ae,Wi:()=>A,ZW:()=>z,_f:()=>ye,bx:()=>ue,dx:()=>P,l5:()=>ce,ni:()=>W,qU:()=>Q,yA:()=>u});var e=m(9263);const t=(0,e.ZF)("lnd"),_=(0,e.P1)(t,$=>$.nodeSettings),E=(0,e.P1)(t,$=>({pageSettings:$.pageSettings,apiCallStatus:$.apisCallStatus.FetchPageSettings})),s=(0,e.P1)(t,$=>$.information),u=((0,e.P1)(t,$=>({information:$.information,apiCallStatus:$.apisCallStatus.FetchInfo})),(0,e.P1)(t,$=>$.apisCallStatus)),k=(0,e.P1)(t,$=>({forwardingHistory:$.forwardingHistory,apiCallStatus:$.apisCallStatus.FetchForwardingHistory})),p=(0,e.P1)(t,$=>({listPayments:$.listPayments,apiCallStatus:$.apisCallStatus.FetchPayments})),S=(0,e.P1)(t,$=>({fees:$.fees,apiCallStatus:$.apisCallStatus.FetchFees})),A=(0,e.P1)(t,$=>({peers:$.peers,apiCallStatus:$.apisCallStatus.FetchPeers})),P=(0,e.P1)(t,$=>({transactions:$.transactions,apiCallStatus:$.apisCallStatus.FetchTransactions})),M=(0,e.P1)(t,$=>({listInvoices:$.listInvoices,apiCallStatus:$.apisCallStatus.FetchInvoices})),z=(0,e.P1)(t,$=>({channels:$.channels,channelsSummary:$.channelsSummary,lightningBalance:$.lightningBalance,apiCallStatus:$.apisCallStatus.FetchAllChannels})),W=((0,e.P1)(t,$=>({channelsSummary:$.channelsSummary,pendingChannels:$.pendingChannels,closedChannels:$.closedChannels,apiCallStatus:$.apisCallStatus.FetchAllChannels})),(0,e.P1)(t,$=>({pendingChannels:$.pendingChannels,pendingChannelsSummary:$.pendingChannelsSummary,apiCallStatus:$.apisCallStatus.FetchPendingChannels}))),Z=(0,e.P1)(t,$=>({closedChannels:$.closedChannels,apiCallStatus:$.apisCallStatus.FetchClosedChannels})),Q=(0,e.P1)(t,$=>({blockchainBalance:$.blockchainBalance,apiCallStatus:$.apisCallStatus.FetchBalanceBlockchain})),ae=((0,e.P1)(t,$=>({lightningBalance:$.lightningBalance,apiCallStatus:$.apisCallStatus.FetchAllChannels})),(0,e.P1)(t,$=>({utxos:$.utxos,apiCallStatus:$.apisCallStatus.FetchUTXOs}))),_e=(0,e.P1)(t,$=>({networkInfo:$.networkInfo,apiCallStatus:$.apisCallStatus.FetchNetwork})),ce=(0,e.P1)(t,$=>({allLightningTransactions:$.allLightningTransactions,apiCallStatus:$.apisCallStatus.FetchLightningTransactions})),ye=(0,e.P1)(t,$=>({channels:$.channels,pendingChannels:$.pendingChannels,closedChannels:$.closedChannels})),ue=(0,e.P1)(t,$=>({information:$.information,nodeSettings:$.nodeSettings,apiCallStatus:$.apisCallStatus.FetchInfo}))},8627:(Ue,q,m)=>{"use strict";m.d(q,{v:()=>Oe});var e=m(640),t=m(9306),_=m(253),E=m(8951),s=m(7731),D=m(6529),u=m(2560),k=m(5043),p=m(62),S=m(930),A=m(9263),P=m(4666),M=m(3505),z=m(6722),I=m(3704),W=m(4522),Z=m(2156),Q=m(3012),ie=m(7822),ae=m(1528),_e=m(1708),ce=m(6896),ye=m(6021),ue=m(6895),$=m(3390);const he=["scrollContainer"];function w(Re,le){if(1&Re&&u._UZ(0,"qr-code",33),2&Re){const _t=u.oxw();u.Q6J("value",null==_t.invoice?null:_t.invoice.payment_request)("size",_t.qrWidth)("errorCorrectionLevel","L")}}function n(Re,le){1&Re&&(u.TgZ(0,"span",34),u._uU(1,"N/A"),u.qZA())}function o(Re,le){if(1&Re&&u._UZ(0,"qr-code",33),2&Re){const _t=u.oxw();u.Q6J("value",null==_t.invoice?null:_t.invoice.payment_request)("size",_t.qrWidth)("errorCorrectionLevel","L")}}function h(Re,le){1&Re&&(u.TgZ(0,"span",35),u._uU(1,"QR Code Not Applicable"),u.qZA())}function d(Re,le){1&Re&&u._UZ(0,"mat-divider",22),2&Re&&u.Q6J("inset",!0)}function y(Re,le){1&Re&&(u.ynx(0),u._uU(1," (zero amount) "),u.BQk())}function L(Re,le){1&Re&&u._UZ(0,"span",41)}const B=function(){return[]};function v(Re,le){if(1&Re&&(u.TgZ(0,"div",37)(1,"div",38)(2,"span",39),u._uU(3),u.ALo(4,"number"),u.qZA(),u.YNc(5,L,1,0,"span",40),u.qZA()()),2&Re){const _t=u.oxw(2);u.xp6(3),u.hij("",u.lcZ(4,2,null==_t.invoice?null:_t.invoice.amt_paid_sat)," Sats"),u.xp6(2),u.Q6J("ngForOf",u.DdM(4,B).constructor(35))}}function a(Re,le){if(1&Re&&(u.TgZ(0,"div"),u._uU(1),u.ALo(2,"number"),u.qZA()),2&Re){const _t=u.oxw(2);u.xp6(1),u.hij("",u.lcZ(2,1,null==_t.invoice?null:_t.invoice.amt_paid_sat)," Sats")}}function C(Re,le){if(1&Re&&(u.ynx(0),u.YNc(1,v,6,5,"div",36),u.YNc(2,a,3,3,"div",21),u.BQk()),2&Re){const _t=u.oxw();u.xp6(1),u.Q6J("ngIf",_t.flgInvoicePaid),u.xp6(1),u.Q6J("ngIf",!_t.flgInvoicePaid)}}function N(Re,le){1&Re&&(u.TgZ(0,"span"),u._uU(1,"-"),u.qZA())}function F(Re,le){1&Re&&u._UZ(0,"mat-spinner",43),2&Re&&u.Q6J("diameter",20)}function X(Re,le){if(1&Re&&(u.ynx(0),u.YNc(1,N,2,0,"span",21),u.YNc(2,F,1,1,"mat-spinner",42),u.BQk()),2&Re){const _t=u.oxw();u.xp6(1),u.Q6J("ngIf","OPEN"!==(null==_t.invoice?null:_t.invoice.state)||!_t.flgVersionCompatible),u.xp6(1),u.Q6J("ngIf","OPEN"===(null==_t.invoice?null:_t.invoice.state)&&_t.flgVersionCompatible)}}function Fe(Re,le){1&Re&&u.GkF(0)}function ke(Re,le){if(1&Re&&(u.TgZ(0,"div"),u.YNc(1,Fe,1,0,"ng-container",44),u.qZA()),2&Re){u.oxw();const _t=u.MAs(79);u.xp6(1),u.Q6J("ngTemplateOutlet",_t)}}function Ke(Re,le){if(1&Re){const _t=u.EpF();u.TgZ(0,"div",45)(1,"button",46),u.NdJ("click",function(){u.CHM(_t);const Ct=u.oxw();return u.KtG(Ct.onScrollDown())}),u.TgZ(2,"mat-icon",47),u._uU(3,"arrow_downward"),u.qZA()()()}}function je(Re,le){1&Re&&(u.TgZ(0,"p"),u._uU(1,"Show Advanced"),u.qZA())}function Ve(Re,le){1&Re&&(u.TgZ(0,"p"),u._uU(1,"Hide Advanced"),u.qZA())}function xe(Re,le){if(1&Re){const _t=u.EpF();u.TgZ(0,"button",48),u.NdJ("copied",function(Ct){u.CHM(_t);const un=u.oxw();return u.KtG(un.onCopyPayment(Ct))}),u._uU(1),u.qZA()}if(2&Re){const _t=u.oxw();u.Q6J("payload",null==_t.invoice?null:_t.invoice.payment_request),u.xp6(1),u.Oqu(_t.screenSize===_t.screenSizeEnum.XS?"Copy Payment":"Copy Payment Request")}}function Ze(Re,le){if(1&Re){const _t=u.EpF();u.TgZ(0,"button",49),u.NdJ("click",function(){u.CHM(_t);const Ct=u.oxw();return u.KtG(Ct.onClose())}),u._uU(1,"OK"),u.qZA()}}const Ie=function(Re){return{"mr-0":Re}};function ve(Re,le){if(1&Re&&u._UZ(0,"span",64),2&Re){const _t=u.oxw(4);u.Q6J("ngClass",u.VKq(1,Ie,_t.screenSize===_t.screenSizeEnum.XS))}}function et(Re,le){if(1&Re&&u._UZ(0,"span",65),2&Re){const _t=u.oxw(4);u.Q6J("ngClass",u.VKq(1,Ie,_t.screenSize===_t.screenSizeEnum.XS))}}function ht(Re,le){if(1&Re&&u._UZ(0,"span",66),2&Re){const _t=u.oxw(4);u.Q6J("ngClass",u.VKq(1,Ie,_t.screenSize===_t.screenSizeEnum.XS))}}function Le(Re,le){if(1&Re&&(u.TgZ(0,"div",53)(1,"div",58)(2,"span",59),u.YNc(3,ve,1,3,"span",60),u.YNc(4,et,1,3,"span",61),u.YNc(5,ht,1,3,"span",62),u._uU(6),u.qZA(),u.TgZ(7,"span",63),u._uU(8),u.ALo(9,"number"),u.qZA()(),u._UZ(10,"mat-divider",22),u.qZA()),2&Re){const _t=le.$implicit,it=u.oxw(3);u.xp6(3),u.Q6J("ngIf","SETTLED"===_t.state),u.xp6(1),u.Q6J("ngIf","ACCEPTED"===_t.state),u.xp6(1),u.Q6J("ngIf","CANCELED"===_t.state),u.xp6(1),u.hij(" ",_t.chan_id," "),u.xp6(2),u.Oqu(u.xi3(9,6,+_t.amt_msat/1e3||0,it.getDecimalFormat(_t))),u.xp6(2),u.Q6J("inset",!0)}}function Ae(Re,le){if(1&Re){const _t=u.EpF();u.TgZ(0,"div",17)(1,"mat-expansion-panel",51),u.NdJ("opened",function(){u.CHM(_t);const Ct=u.oxw(2);return u.KtG(Ct.flgOpened=!0)})("closed",function(){u.CHM(_t);const Ct=u.oxw(2);return u.KtG(Ct.onExpansionClosed())}),u.TgZ(2,"mat-expansion-panel-header")(3,"mat-panel-title")(4,"h4",52),u._uU(5,"HTLCs"),u.qZA()()(),u.TgZ(6,"div",53)(7,"div",54)(8,"span",55),u._uU(9,"Channel ID"),u.qZA(),u.TgZ(10,"span",56),u._uU(11,"Amount (Sats)"),u.qZA()(),u._UZ(12,"mat-divider",22),u.YNc(13,Le,11,9,"div",57),u.qZA()()()}if(2&Re){const _t=u.oxw(2);u.xp6(12),u.Q6J("inset",!0),u.xp6(1),u.Q6J("ngForOf",null==_t.invoice?null:_t.invoice.htlcs)}}function te(Re,le){1&Re&&u._UZ(0,"mat-divider",22),2&Re&&u.Q6J("inset",!0)}function pe(Re,le){if(1&Re&&(u._UZ(0,"mat-divider",22),u.TgZ(1,"div",17)(2,"div",23)(3,"h4",19),u._uU(4,"Preimage"),u.qZA(),u.TgZ(5,"span",24),u._uU(6),u.qZA()()(),u._UZ(7,"mat-divider",22),u.TgZ(8,"div",17)(9,"div",18)(10,"h4",19),u._uU(11,"State"),u.qZA(),u.TgZ(12,"span",24),u._uU(13),u.qZA()(),u.TgZ(14,"div",18)(15,"h4",19),u._uU(16,"Expiry"),u.qZA(),u.TgZ(17,"span",24),u._uU(18),u.ALo(19,"date"),u.qZA()()(),u._UZ(20,"mat-divider",22),u.TgZ(21,"div",17)(22,"div",18)(23,"h4",19),u._uU(24,"Private Routing Hints"),u.qZA(),u.TgZ(25,"span",24),u._uU(26),u.qZA()(),u.TgZ(27,"div",18)(28,"h4",19),u._uU(29,"AMP Invoice"),u.qZA(),u.TgZ(30,"span",24),u._uU(31),u.qZA()()(),u._UZ(32,"mat-divider",22),u.YNc(33,Ae,14,2,"div",50),u.YNc(34,te,1,1,"mat-divider",14)),2&Re){const _t=u.oxw();u.Q6J("inset",!0),u.xp6(6),u.Oqu((null==_t.invoice?null:_t.invoice.r_preimage)||"-"),u.xp6(1),u.Q6J("inset",!0),u.xp6(6),u.Oqu(null==_t.invoice?null:_t.invoice.state),u.xp6(5),u.Oqu(u.xi3(19,11,1e3*(+(null==_t.invoice?null:_t.invoice.creation_date)+ +(null==_t.invoice?null:_t.invoice.expiry)),"dd/MMM/y HH:mm")),u.xp6(2),u.Q6J("inset",!0),u.xp6(6),u.Oqu(null!=_t.invoice&&_t.invoice.private?"Yes":"No"),u.xp6(5),u.Oqu(null!=_t.invoice&&_t.invoice.is_amp?"Yes":"No"),u.xp6(1),u.Q6J("inset",!0),u.xp6(1),u.Q6J("ngIf",(null==_t.invoice?null:_t.invoice.htlcs)&&(null==_t.invoice?null:_t.invoice.htlcs.length)>0),u.xp6(1),u.Q6J("ngIf",(null==_t.invoice?null:_t.invoice.htlcs)&&(null==_t.invoice?null:_t.invoice.htlcs.length)>0)}}const ee=function(Re){return{"display-none":Re}},H=function(Re){return{"xs-scroll-y":Re}},j=function(Re){return{"h-50":Re}};class Oe{constructor(le,_t,it,Ct,un,Bt){this.dialogRef=le,this.data=_t,this.logger=it,this.commonService=Ct,this.snackBar=un,this.store=Bt,this.faReceipt=t.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 _.x,new _.x,new _.x,new _.x,new _.x]}set container(le){le&&(this.scrollContainer=le)}ngOnInit(){this.invoice=JSON.parse(JSON.stringify(this.data.invoice)),this.newlyAdded=!!this.data.newlyAdded,this.screenSize=this.commonService.getScreenSize(),this.screenSize===s.cu.XS&&(this.qrWidth=220),this.store.select(D.Q5).pipe((0,E.R)(this.unSubs[0])).subscribe(_t=>{this.flgVersionCompatible=this.commonService.isVersionCompatible(_t.version,"0.11.0")});const le=JSON.parse(JSON.stringify(this.invoice));this.store.select(D.Ef).pipe((0,E.R)(this.unSubs[1])).subscribe(_t=>{const it=this.invoice?.state,un=(_t.listInvoices.invoices||[]).find(Bt=>Bt.r_hash===le.r_hash)||null;un&&(this.invoice=un),it!==this.invoice?.state&&"SETTLED"===this.invoice?.state&&(this.flgInvoicePaid=!0,setTimeout(()=>{this.flgInvoicePaid=!1},4e3)),this.logger.info(_t)})}onClose(){this.dialogRef.close(!1)}onShowAdvanced(){this.showAdvanced=!this.showAdvanced,this.flgOpened=!1}onScrollDown(){this.scrollContainer.nativeElement.scrollTop=this.scrollContainer.nativeElement.scrollTop+60}onExpansionClosed(){this.flgOpened=!1,this.scrollContainer.nativeElement.scrollTop=0}onCopyPayment(le){this.snackBar.open("Payment request copied."),this.logger.info("Copied Text: "+le)}getDecimalFormat(le){return le.amt_msat<1e3?"1.0-4":"1.0-0"}ngOnDestroy(){this.unSubs.forEach(le=>{le.next(null),le.complete()})}static#e=this.\u0275fac=function(_t){return new(_t||Oe)(u.Y36(e.so),u.Y36(e.WI),u.Y36(k.mQ),u.Y36(p.v),u.Y36(S.ux),u.Y36(A.yh))};static#t=this.\u0275cmp=u.Xpm({type:Oe,selectors:[["rtl-invoice-information"]],viewQuery:function(_t,it){if(1&_t&&u.Gf(he,5),2&_t){let Ct;u.iGM(Ct=u.CRH())&&(it.container=Ct.first)}},decls:80,vars:49,consts:[["fxLayout","column","fxLayout.gt-sm","row","fxLayoutAlign.gt-sm","space-between stretch"],["fxFlex","35",1,"modal-qr-code-container","padding-gap-large",3,"fxLayoutAlign","ngClass"],[3,"value","size","errorCorrectionLevel",4,"ngIf"],["class","font-size-300",4,"ngIf"],["fxLayout","column","fxFlex","65"],["fxLayout","row","fxLayoutAlign","space-between center",1,"modal-info-header"],["fxFlex","95","fxLayoutAlign","start start"],[1,"page-title-img","mr-1",3,"icon"],[1,"page-title"],["tabindex","3","fxFlex","5","fxLayoutAlign","center","mat-button","",1,"btn-close-x","p-0",3,"click"],[1,"padding-gap-x-large",3,"ngClass"],["fxLayout","column"],["fxFlex","30",1,"modal-qr-code-container","padding-gap",3,"fxLayoutAlign","ngClass"],["class","font-size-120",4,"ngIf"],["class","my-1",3,"inset",4,"ngIf"],[3,"ngClass"],["scrollContainer",""],["fxLayout","row"],["fxFlex","50"],["fxLayoutAlign","start",1,"font-bold-500"],[1,"foreground-secondary-text"],[4,"ngIf"],[1,"my-1",3,"inset"],["fxFlex","100"],[1,"overflow-wrap","foreground-secondary-text"],["fxLayout","row","fxLayoutAlign","start end","class","btn-sticky-container padding-gap-x-large",4,"ngIf"],["fxLayout","row","fxLayoutAlign","end center","fxFlex","100",1,"padding-gap-x-large","padding-gap-bottom-large"],["mat-button","","color","primary","type","reset","tabindex","1",1,"mr-1",3,"click"],[4,"ngIf","ngIfElse"],["hideAdvancedText",""],["autoFocus","","mat-button","","color","primary","tabindex","2","type","submit","rtlClipboard","",3,"payload","copied",4,"ngIf"],["autoFocus","","mat-button","","color","primary","tabindex","2","type","button",3,"click",4,"ngIf"],["advancedBlock",""],[3,"value","size","errorCorrectionLevel"],[1,"font-size-300"],[1,"font-size-120"],["class","invoice-animation-container",4,"ngIf"],[1,"invoice-animation-container"],[1,"invoice-animation-div"],[1,"wiggle"],["class","particles-circle",4,"ngFor","ngForOf"],[1,"particles-circle"],[3,"diameter",4,"ngIf"],[3,"diameter"],[4,"ngTemplateOutlet"],["fxLayout","row","fxLayoutAlign","start end",1,"btn-sticky-container","padding-gap-x-large"],["mat-mini-fab","","aria-label","Scroll Down","fxLayoutAlign","center center",3,"click"],["fxLayoutAlign","center center"],["autoFocus","","mat-button","","color","primary","tabindex","2","type","submit","rtlClipboard","",3,"payload","copied"],["autoFocus","","mat-button","","color","primary","tabindex","2","type","button",3,"click"],["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(_t,it){if(1&_t&&(u.TgZ(0,"div",0)(1,"div",1),u.YNc(2,w,1,3,"qr-code",2),u.YNc(3,n,2,0,"span",3),u.qZA(),u.TgZ(4,"div",4)(5,"mat-card-header",5)(6,"div",6),u._UZ(7,"fa-icon",7),u.TgZ(8,"span",8),u._uU(9),u.qZA()(),u.TgZ(10,"button",9),u.NdJ("click",function(){return it.onClose()}),u._uU(11,"X"),u.qZA()(),u.TgZ(12,"mat-card-content",10)(13,"div",11)(14,"div",12),u.YNc(15,o,1,3,"qr-code",2),u.YNc(16,h,2,0,"span",13),u.qZA(),u.YNc(17,d,1,1,"mat-divider",14),u.TgZ(18,"div",15,16)(20,"div",17)(21,"div",18)(22,"h4",19),u._uU(23),u.qZA(),u.TgZ(24,"span",20),u._uU(25),u.ALo(26,"number"),u.YNc(27,y,2,0,"ng-container",21),u.qZA()(),u.TgZ(28,"div",18)(29,"h4",19),u._uU(30,"Amount Settled"),u.qZA(),u.TgZ(31,"span",20),u.YNc(32,C,3,2,"ng-container",21),u.YNc(33,X,3,2,"ng-container",21),u.qZA()()(),u._UZ(34,"mat-divider",22),u.TgZ(35,"div",17)(36,"div",18)(37,"h4",19),u._uU(38,"Date Created"),u.qZA(),u.TgZ(39,"span",20),u._uU(40),u.ALo(41,"date"),u.qZA()(),u.TgZ(42,"div",18)(43,"h4",19),u._uU(44,"Date Settled"),u.qZA(),u.TgZ(45,"span",20),u._uU(46),u.ALo(47,"date"),u.qZA()()(),u._UZ(48,"mat-divider",22),u.TgZ(49,"div",17)(50,"div",23)(51,"h4",19),u._uU(52,"Memo"),u.qZA(),u.TgZ(53,"span",20),u._uU(54),u.qZA()()(),u._UZ(55,"mat-divider",22),u.TgZ(56,"div",17)(57,"div",23)(58,"h4",19),u._uU(59,"Payment Request"),u.qZA(),u.TgZ(60,"span",24),u._uU(61),u.qZA()()(),u._UZ(62,"mat-divider",22),u.TgZ(63,"div",17)(64,"div",23)(65,"h4",19),u._uU(66,"Payment Hash"),u.qZA(),u.TgZ(67,"span",24),u._uU(68),u.qZA()()(),u.YNc(69,ke,2,1,"div",21),u.qZA()()(),u.YNc(70,Ke,4,0,"div",25),u.TgZ(71,"div",26)(72,"button",27),u.NdJ("click",function(){return it.onShowAdvanced()}),u.YNc(73,je,2,0,"p",28),u.YNc(74,Ve,2,0,"ng-template",null,29,u.W1O),u.qZA(),u.YNc(76,xe,2,2,"button",30),u.YNc(77,Ze,2,0,"button",31),u.qZA()()(),u.YNc(78,pe,35,14,"ng-template",null,32,u.W1O)),2&_t){const Ct=u.MAs(75);u.xp6(1),u.Q6J("fxLayoutAlign",null!=it.invoice&&it.invoice.payment_request&&""!==(null==it.invoice?null:it.invoice.payment_request)?"center start":"center center")("ngClass",u.VKq(41,ee,it.screenSize===it.screenSizeEnum.XS||it.screenSize===it.screenSizeEnum.SM)),u.xp6(1),u.Q6J("ngIf",(null==it.invoice?null:it.invoice.payment_request)&&""!==(null==it.invoice?null:it.invoice.payment_request)),u.xp6(1),u.Q6J("ngIf",!(null!=it.invoice&&it.invoice.payment_request)||""===(null==it.invoice?null:it.invoice.payment_request)),u.xp6(4),u.Q6J("icon",it.faReceipt),u.xp6(2),u.Oqu(it.screenSize===it.screenSizeEnum.XS?it.newlyAdded?"Created":"Invoice":it.newlyAdded?"Invoice Created":"Invoice Information"),u.xp6(3),u.Q6J("ngClass",u.VKq(43,H,it.screenSize===it.screenSizeEnum.XS)),u.xp6(2),u.Q6J("fxLayoutAlign",null!=it.invoice&&it.invoice.payment_request&&""!==(null==it.invoice?null:it.invoice.payment_request)?"center start":"center center")("ngClass",u.VKq(45,ee,it.screenSize!==it.screenSizeEnum.XS&&it.screenSize!==it.screenSizeEnum.SM)),u.xp6(1),u.Q6J("ngIf",(null==it.invoice?null:it.invoice.payment_request)&&""!==(null==it.invoice?null:it.invoice.payment_request)),u.xp6(1),u.Q6J("ngIf",!(null!=it.invoice&&it.invoice.payment_request)||""===(null==it.invoice?null:it.invoice.payment_request)),u.xp6(1),u.Q6J("ngIf",it.screenSize===it.screenSizeEnum.XS||it.screenSize===it.screenSizeEnum.SM),u.xp6(1),u.Q6J("ngClass",u.VKq(47,j,(null==it.invoice?null:it.invoice.htlcs)&&(null==it.invoice?null:it.invoice.htlcs.length)>0&&it.showAdvanced)),u.xp6(5),u.Oqu(it.screenSize===it.screenSizeEnum.XS?"Amount":"Amount Requested"),u.xp6(2),u.hij("",u.lcZ(26,33,(null==it.invoice?null:it.invoice.value)||0)," Sats"),u.xp6(2),u.Q6J("ngIf",!(null!=it.invoice&&it.invoice.value)||"0"===(null==it.invoice?null:it.invoice.value)),u.xp6(5),u.Q6J("ngIf",(null==it.invoice?null:it.invoice.amt_paid_sat)&&"OPEN"!==(null==it.invoice?null:it.invoice.state)),u.xp6(1),u.Q6J("ngIf",!(null!=it.invoice&&it.invoice.amt_paid_sat)||"0"===(null==it.invoice?null:it.invoice.amt_paid_sat)),u.xp6(1),u.Q6J("inset",!0),u.xp6(6),u.Oqu(u.xi3(41,35,1e3*(null==it.invoice?null:it.invoice.creation_date),"dd/MMM/y HH:mm")),u.xp6(6),u.Oqu(0!=+(null==it.invoice?null:it.invoice.settle_date)?u.xi3(47,38,1e3*+(null==it.invoice?null:it.invoice.settle_date),"dd/MMM/y HH:mm"):"-"),u.xp6(2),u.Q6J("inset",!0),u.xp6(6),u.Oqu(null==it.invoice?null:it.invoice.memo),u.xp6(1),u.Q6J("inset",!0),u.xp6(6),u.Oqu((null==it.invoice?null:it.invoice.payment_request)||"N/A"),u.xp6(1),u.Q6J("inset",!0),u.xp6(6),u.Oqu((null==it.invoice?null:it.invoice.r_hash)||""),u.xp6(1),u.Q6J("ngIf",it.showAdvanced),u.xp6(1),u.Q6J("ngIf",(null==it.invoice?null:it.invoice.htlcs)&&(null==it.invoice?null:it.invoice.htlcs.length)>0&&it.showAdvanced&&it.flgOpened),u.xp6(3),u.Q6J("ngIf",!it.showAdvanced)("ngIfElse",Ct),u.xp6(3),u.Q6J("ngIf",(null==it.invoice?null:it.invoice.payment_request)&&""!==(null==it.invoice?null:it.invoice.payment_request)),u.xp6(1),u.Q6J("ngIf",!(null!=it.invoice&&it.invoice.payment_request)||""===(null==it.invoice?null:it.invoice.payment_request))}},dependencies:[P.mk,P.sg,P.O5,P.tP,M.BN,z.xw,z.Wh,z.yH,I.oO,W.lW,Z.dk,Z.dn,Q.ib,Q.yz,Q.yK,ie.Hw,ae.d,_e.Ou,ce.gM,ye.uU,ue.y,$.h,P.JJ,P.uU]})}},7772:(Ue,q,m)=>{"use strict";m.d(q,{J:()=>_,_:()=>t});var e=m(4851);const t=[(0,e.X$)("opacityAnimation",[(0,e.eR)(":enter",[(0,e.oB)({opacity:0}),(0,e.jt)("1000ms ease-in",(0,e.oB)({opacity:1}))]),(0,e.eR)(":leave",[(0,e.jt)("0ms",(0,e.oB)({opacity:0}))])])],_=[(0,e.X$)("fadeIn",[(0,e.eR)("void => *",[]),(0,e.eR)("* => void",[]),(0,e.eR)("* => *",[(0,e.jt)(800,(0,e.F4)([(0,e.oB)({opacity:0,transform:"translateY(100%)"}),(0,e.oB)({opacity:1,transform:"translateY(0%)"})]))])])]},8878:(Ue,q,m)=>{"use strict";m.d(q,{g:()=>t});var e=m(4851);const t=(0,e.X$)("routeAnimation",[(0,e.eR)("* => *",[(0,e.IO)(":enter, :leave",(0,e.oB)({position:"fixed",width:"100%"}),{optional:!0}),(0,e.ru)([(0,e.IO)(":enter",[(0,e.oB)({transform:"translateX(100%)"}),(0,e.jt)("1000ms ease-in-out",(0,e.oB)({transform:"translateX(0%)"}))],{optional:!0}),(0,e.IO)(":leave",[(0,e.oB)({transform:"translateX(0%)"}),(0,e.jt)("1000ms ease-in-out",(0,e.oB)({transform:"translateX(-100%)"}))],{optional:!0})])])])},113:(Ue,q,m)=>{"use strict";m.d(q,{l:()=>t});var e=m(4851);const t=[(0,e.X$)("sliderAnimation",[(0,e.SB)("*",(0,e.oB)({transform:"translateX(0)"})),(0,e.eR)("void => backward",[(0,e.oB)({transform:"translateX(-100%"}),(0,e.jt)("800ms")]),(0,e.eR)("backward => void",[(0,e.jt)("0ms",(0,e.oB)({transform:"translateX(100%)"}))]),(0,e.eR)("void => forward",[(0,e.oB)({transform:"translateX(100%"}),(0,e.jt)("800ms")]),(0,e.eR)("forward => void",[(0,e.jt)("0ms",(0,e.oB)({transform:"translateX(-100%)"}))])])]},1786:(Ue,q,m)=>{"use strict";m.d(q,{H:()=>A});var e=m(640),t=m(2560),_=m(5043),E=m(4666),s=m(6722),D=m(4522),u=m(2156),k=m(1528),p=m(3390);function S(P,M){if(1&P&&(t.TgZ(0,"p",14),t._uU(1),t.qZA()),2&P){const z=t.oxw();t.xp6(1),t.Oqu(z.data.titleMessage)}}class A{constructor(M,z,I){this.dialogRef=M,this.data=z,this.logger=I,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)}static#e=this.\u0275fac=function(z){return new(z||A)(t.Y36(e.so),t.Y36(e.WI),t.Y36(_.mQ))};static#t=this.\u0275cmp=t.Xpm({type:A,selectors:[["rtl-error-message"]],decls:29,vars:6,consts:[["fxLayout","row"],["fxFlex","100"],["fxLayout","row","fxLayoutAlign","space-between center",1,"modal-info-header"],["fxFlex","95","fxLayoutAlign","start start"],[1,"page-title"],["tabindex","3","fxFlex","5","fxLayoutAlign","center","mat-button","",1,"btn-close-x","p-0",3,"click"],[1,"padding-gap-x-large","error-alert-block"],["fxLayout","column"],["fxLayoutAlign","start center","class","pb-1",4,"ngIf"],["fxLayoutAlign","start",1,"font-bold-500"],[1,"w-100","my-1"],[1,"word-break"],["fxLayout","row","fxLayoutAlign","end center"],["tabindex","1","autoFocus","","mat-button","","color","primary","type","submit","default","",3,"mat-dialog-close"],["fxLayoutAlign","start center",1,"pb-1"]],template:function(z,I){1&z&&(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 I.onClose()}),t._uU(7,"X"),t.qZA()(),t.TgZ(8,"mat-card-content",6)(9,"div",7),t.YNc(10,S,2,1,"p",8),t.TgZ(11,"h4",9),t._uU(12,"Error Code"),t.qZA(),t.TgZ(13,"span"),t._uU(14),t.qZA(),t._UZ(15,"mat-divider",10),t.TgZ(16,"h4",9),t._uU(17,"Error Message"),t.qZA(),t.TgZ(18,"span",11),t._uU(19),t.qZA(),t._UZ(20,"mat-divider",10),t.TgZ(21,"h4",9),t._uU(22,"API URL"),t.qZA(),t.TgZ(23,"span",11),t._uU(24),t.qZA(),t._UZ(25,"mat-divider",10),t.TgZ(26,"div",12)(27,"button",13),t._uU(28,"OK"),t.qZA()()()()()()),2&z&&(t.xp6(5),t.Oqu(I.data.alertTitle||"ERROR"),t.xp6(5),t.Q6J("ngIf",I.data.titleMessage),t.xp6(4),t.Oqu(I.data.message.code),t.xp6(5),t.Oqu(I.errorMessage),t.xp6(5),t.Oqu(I.data.message.URL),t.xp6(3),t.Q6J("mat-dialog-close",!1))},dependencies:[E.O5,s.xw,s.Wh,s.yH,e.ZT,D.lW,u.dk,u.dn,k.d,p.h],styles:[".display-block[_ngcontent-%COMP%]{display:block}"]})}},2615:(Ue,q,m)=>{"use strict";m.d(q,{a:()=>Yn});var e=m(2508),t=m(253),_=m(8951),E=m(640),s=m(9306),D=m(7772),u=m(7731),k=m(6529),p=m(2560),S=m(9263),A=m(1419),P=m(4666),M=m(5043),z=m(3547),I=m(62),W=m(6722),Z=m(3704),Q=m(4522),ie=m(2156),ae=m(3012),_e=m(7822),ce=m(5074),ye=m(1267),ue=m(1294),$=m(2922),he=m(4714),w=m(6896),n=m(4193),o=m(3390),h=m(1528);function d(Mt,Ge){1&Mt&&p.GkF(0)}function y(Mt,Ge){1&Mt&&p.GkF(0)}const L=function(Mt){return{"h-5":Mt}};function B(Mt,Ge){if(1&Mt&&(p.TgZ(0,"mat-expansion-panel",3)(1,"mat-expansion-panel-header")(2,"mat-panel-title")(3,"span",4),p._uU(4),p.ALo(5,"number"),p.qZA()()(),p.YNc(6,y,1,0,"ng-container",0),p.qZA()),2&Mt){const Be=p.oxw(),ft=p.MAs(4);p.Q6J("expanded",Be.panelExpanded)("ngClass",p.VKq(7,L,!Be.flgShowPanel)),p.xp6(4),p.AsE("Quote for ",Be.termCaption," amount (",p.lcZ(5,5,Be.quote.amount)," Sats)"),p.xp6(2),p.Q6J("ngTemplateOutlet",ft)}}function v(Mt,Ge){if(1&Mt&&(p.TgZ(0,"div",19)(1,"h4",8),p._uU(2," Prepay Amount (Sats) "),p.TgZ(3,"mat-icon",20),p._uU(4,"info_outline"),p.qZA()(),p.TgZ(5,"span",10),p._uU(6),p.ALo(7,"number"),p.qZA()()),2&Mt){const Be=p.oxw(2);p.xp6(6),p.Oqu(p.lcZ(7,1,null==Be.quote?null:Be.quote.prepay_amt_sat))}}function a(Mt,Ge){1&Mt&&p._UZ(0,"mat-divider",13)}function C(Mt,Ge){if(1&Mt&&(p.TgZ(0,"div",6)(1,"div",21)(2,"h4",8),p._uU(3," Swap Server Node Pubkey "),p.TgZ(4,"mat-icon",22),p._uU(5,"info_outline"),p.qZA()(),p.TgZ(6,"span",10),p._uU(7),p.qZA()()()),2&Mt){const Be=p.oxw(2);p.xp6(7),p.Oqu(null==Be.quote?null:Be.quote.swap_payment_dest)}}function N(Mt,Ge){if(1&Mt&&(p.TgZ(0,"div",5)(1,"div",6)(2,"div",7)(3,"h4",8),p._uU(4," Swap Fee (Sats) "),p.TgZ(5,"mat-icon",9),p._uU(6,"info_outline"),p.qZA()(),p.TgZ(7,"span",10),p._uU(8),p.ALo(9,"number"),p.qZA()(),p.TgZ(10,"div",7)(11,"h4",8),p._uU(12),p.TgZ(13,"mat-icon",11),p._uU(14,"info_outline"),p.qZA()(),p.TgZ(15,"span",10),p._uU(16),p.ALo(17,"number"),p.qZA()(),p.YNc(18,v,8,3,"div",12),p.qZA(),p._UZ(19,"mat-divider",13),p.TgZ(20,"div",6)(21,"div",14)(22,"h4",8),p._uU(23," Max Off-chain Swap Routing Fee (Sats) "),p.TgZ(24,"mat-icon",15),p._uU(25,"info_outline"),p.qZA()(),p.TgZ(26,"span",10),p._uU(27),p.ALo(28,"number"),p.qZA()(),p.TgZ(29,"div",14)(30,"h4",8),p._uU(31," Max Off-chain Prepay Routing Fee (Sats) "),p.TgZ(32,"mat-icon",16),p._uU(33,"info_outline"),p.qZA()(),p.TgZ(34,"span",10),p._uU(35,"36"),p.qZA()()(),p.YNc(36,a,1,0,"mat-divider",17),p.YNc(37,C,8,1,"div",18),p.qZA()),2&Mt){const Be=p.oxw();p.xp6(2),p.Q6J("fxFlex",null!=Be.quote&&Be.quote.prepay_amt_sat?"30":"50"),p.xp6(6),p.Oqu(p.lcZ(9,9,null==Be.quote?null:Be.quote.swap_fee_sat)),p.xp6(2),p.Q6J("fxFlex",null!=Be.quote&&Be.quote.prepay_amt_sat?"35":"50"),p.xp6(2),p.hij(" ",null!=Be.quote&&Be.quote.htlc_sweep_fee_sat?"HTLC Sweep Fee (Sats)":null!=Be.quote&&Be.quote.htlc_publish_fee_sat?"HTLC Publish Fee (Sats)":""," "),p.xp6(4),p.Oqu(p.lcZ(17,11,null!=Be.quote&&Be.quote.htlc_sweep_fee_sat?Be.quote.htlc_sweep_fee_sat:null!=Be.quote&&Be.quote.htlc_publish_fee_sat?Be.quote.htlc_publish_fee_sat:0)),p.xp6(2),p.Q6J("ngIf",null==Be.quote?null:Be.quote.prepay_amt_sat),p.xp6(9),p.Oqu(p.lcZ(28,13,(null==Be.quote?null:Be.quote.amount)*((null!=Be.quote&&Be.quote.off_chain_swap_routing_fee_percentage?null==Be.quote?null:Be.quote.off_chain_swap_routing_fee_percentage:2)/100))),p.xp6(9),p.Q6J("ngIf",""!==(null==Be.quote?null:Be.quote.swap_payment_dest)),p.xp6(1),p.Q6J("ngIf",""!==(null==Be.quote?null:Be.quote.swap_payment_dest))}}class F{constructor(){this.quote={},this.termCaption="",this.showPanel=!0,this.panelExpanded=!1,this.flgShowPanel=!1}ngOnInit(){setTimeout(()=>{this.flgShowPanel=!0},1200)}static#e=this.\u0275fac=function(Be){return new(Be||F)};static#t=this.\u0275cmp=p.Xpm({type:F,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(Be,ft){if(1&Be&&(p.YNc(0,d,1,0,"ng-container",0),p.YNc(1,B,7,9,"ng-template",null,1,p.W1O),p.YNc(3,N,38,15,"ng-template",null,2,p.W1O)),2&Be){const re=p.MAs(2),Te=p.MAs(4);p.Q6J("ngTemplateOutlet",ft.showPanel?re:Te)}},dependencies:[P.mk,P.O5,P.tP,W.xw,W.Wh,W.yH,Z.oO,ae.ib,ae.yz,ae.yK,_e.Hw,h.d,w.gM,P.JJ]})}function X(Mt,Ge){1&Mt&&p.GkF(0)}function Fe(Mt,Ge){if(1&Mt&&(p.TgZ(0,"div",3)(1,"span",4),p._uU(2),p.qZA()()),2&Mt){const Be=p.oxw();p.xp6(2),p.Oqu(null!=Be.loopStatus&&Be.loopStatus.error?null==Be.loopStatus?null:Be.loopStatus.error:"Unknown Error.")}}function ke(Mt,Ge){if(1&Mt&&(p.TgZ(0,"div",3)(1,"div",5)(2,"div",6)(3,"h4",7),p._uU(4,"ID"),p.qZA(),p.TgZ(5,"span",4),p._uU(6),p.qZA()()(),p._UZ(7,"mat-divider",8),p.TgZ(8,"div",5)(9,"div",6)(10,"h4",7),p._uU(11,"HTLC Address"),p.qZA(),p.TgZ(12,"span",4),p._uU(13),p.qZA()()()()),2&Mt){const Be=p.oxw();p.xp6(6),p.Oqu(null==Be.loopStatus?null:Be.loopStatus.id_bytes),p.xp6(7),p.Oqu(null==Be.loopStatus?null:Be.loopStatus.htlc_address)}}class Ke{constructor(){}static#e=this.\u0275fac=function(Be){return new(Be||Ke)};static#t=this.\u0275cmp=p.Xpm({type:Ke,selectors:[["rtl-loop-status"]],inputs:{loopStatus:"loopStatus"},decls:5,vars:1,consts:[[4,"ngTemplateOutlet"],["loopFailedBlock",""],["loopSuccessfulBlock",""],["fxLayout","column"],[1,"foreground-secondary-text"],["fxLayout","row"],["fxFlex","100"],["fxLayoutAlign","start",1,"font-bold-500"],[1,"w-100","my-1"]],template:function(Be,ft){if(1&Be&&(p.YNc(0,X,1,0,"ng-container",0),p.YNc(1,Fe,3,1,"ng-template",null,1,p.W1O),p.YNc(3,ke,14,2,"ng-template",null,2,p.W1O)),2&Be){const re=p.MAs(2),Te=p.MAs(4);p.Q6J("ngTemplateOutlet",null!=ft.loopStatus&&ft.loopStatus.error?re:Te)}},dependencies:[P.tP,W.xw,W.Wh,W.yH,h.d]})}var je=m(113);function Ve(Mt,Ge){1&Mt&&p.GkF(0)}const xe=function(Mt,Ge){return{"small-svg":Mt,"large-svg":Ge}};function Ze(Mt,Ge){if(1&Mt){const Be=p.EpF();p.TgZ(0,"div",6),p.NdJ("swipe",function(re){p.CHM(Be);const Te=p.oxw();return p.KtG(Te.onSwipe(re))}),p.O4$(),p.TgZ(1,"svg",7)(2,"desc"),p._uU(3,"Created with Sketch."),p.qZA(),p.TgZ(4,"g",8)(5,"g",9)(6,"g",10)(7,"g",11),p._UZ(8,"circle",12)(9,"path",13),p.qZA(),p.TgZ(10,"g",14),p._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),p.qZA()()()()(),p.kcU(),p.TgZ(26,"div",30)(27,"mat-card-title"),p._uU(28,"Loop In explained."),p.qZA()(),p.TgZ(29,"div",31)(30,"mat-card-subtitle",32),p._uU(31," Lightning Loop is a non custodial service offered by Lightning Labs to bridge on-chain and off-chain Bitcoin using Submarine swaps. "),p.qZA()()()}if(2&Mt){const Be=p.oxw();p.Q6J("@sliderAnimation",Be.animationDirection),p.xp6(1),p.Q6J("ngClass",p.WLB(2,xe,Be.screenSize===Be.screenSizeEnum.XS,Be.screenSize!==Be.screenSizeEnum.XS))}}function Ie(Mt,Ge){if(1&Mt){const Be=p.EpF();p.TgZ(0,"div",6),p.NdJ("swipe",function(re){p.CHM(Be);const Te=p.oxw();return p.KtG(Te.onSwipe(re))}),p.O4$(),p.TgZ(1,"svg",33)(2,"desc"),p._uU(3,"Created with Sketch."),p.qZA(),p.TgZ(4,"defs")(5,"linearGradient",34),p._UZ(6,"stop",35)(7,"stop",36)(8,"stop",37),p.qZA()(),p.TgZ(9,"g",8)(10,"g",38)(11,"g",39)(12,"g",40),p._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),p.qZA(),p.TgZ(28,"g",56)(29,"g",57)(30,"g",58),p._UZ(31,"path",59)(32,"rect",60)(33,"polygon",61),p.TgZ(34,"g",62),p._UZ(35,"path",63),p.qZA(),p._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),p.qZA(),p.TgZ(45,"g",73),p._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),p.qZA(),p._UZ(59,"path",87),p.qZA()()()()()(),p.kcU(),p.TgZ(60,"div",30)(61,"mat-card-title"),p._uU(62,"Step 1: Deciding to Loop In"),p.qZA()(),p.TgZ(63,"div",31)(64,"mat-card-subtitle",32),p._uU(65," Your outgoing capacity is depleted and you want to regain it without opening new channels. "),p.qZA()()()}if(2&Mt){const Be=p.oxw();p.Q6J("@sliderAnimation",Be.animationDirection),p.xp6(1),p.Q6J("ngClass",p.WLB(2,xe,Be.screenSize===Be.screenSizeEnum.XS,Be.screenSize!==Be.screenSizeEnum.XS))}}function ve(Mt,Ge){if(1&Mt){const Be=p.EpF();p.TgZ(0,"div",6),p.NdJ("swipe",function(re){p.CHM(Be);const Te=p.oxw();return p.KtG(Te.onSwipe(re))}),p.O4$(),p.TgZ(1,"svg",88)(2,"desc"),p._uU(3,"Created with Sketch."),p.qZA(),p.TgZ(4,"defs")(5,"linearGradient",89),p._UZ(6,"stop",35)(7,"stop",36)(8,"stop",37),p.qZA()(),p.TgZ(9,"g",90)(10,"g",91)(11,"g",92)(12,"g",93)(13,"g",94),p._UZ(14,"circle",95)(15,"path",96),p.TgZ(16,"g",97),p._UZ(17,"polygon",98)(18,"polygon",99)(19,"path",100),p.qZA(),p.TgZ(20,"g",101),p._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),p.TgZ(31,"g",112)(32,"g",113),p._UZ(33,"g",114),p.qZA(),p._UZ(34,"g",115),p.qZA()()(),p.TgZ(35,"g",116)(36,"g",40),p._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),p.qZA(),p.TgZ(53,"g",56)(54,"g",57)(55,"g",58),p._UZ(56,"path",59)(57,"rect",60)(58,"polygon",61),p.TgZ(59,"g",122),p._UZ(60,"path",63),p.qZA(),p._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),p.qZA(),p.TgZ(70,"g",73),p._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),p.qZA(),p._UZ(84,"path",139),p.qZA()()()(),p._UZ(85,"path",140)(86,"path",141),p.qZA()()()(),p.kcU(),p.TgZ(87,"div",30)(88,"mat-card-title"),p._uU(89,"Step 2: Send payment out"),p.qZA()(),p.TgZ(90,"div",31)(91,"mat-card-subtitle",32),p._uU(92," Your node sends funds on-chain to loop server to be swapped with off-chain liquidity. "),p.qZA()()()}if(2&Mt){const Be=p.oxw();p.Q6J("@sliderAnimation",Be.animationDirection),p.xp6(1),p.Q6J("ngClass",p.WLB(2,xe,Be.screenSize===Be.screenSizeEnum.XS,Be.screenSize!==Be.screenSizeEnum.XS))}}function et(Mt,Ge){if(1&Mt){const Be=p.EpF();p.TgZ(0,"div",6),p.NdJ("swipe",function(re){p.CHM(Be);const Te=p.oxw();return p.KtG(Te.onSwipe(re))}),p.O4$(),p.TgZ(1,"svg",142)(2,"desc"),p._uU(3,"Created with Sketch."),p.qZA(),p.TgZ(4,"g",90)(5,"g",143)(6,"g",144)(7,"g")(8,"g",145)(9,"g",146),p._UZ(10,"circle",12)(11,"path",147),p.qZA(),p.TgZ(12,"g",14),p._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),p.qZA()(),p.TgZ(28,"g",149),p._UZ(29,"polygon",150)(30,"polygon",99)(31,"path",151),p.qZA(),p.TgZ(32,"g",152),p._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),p.TgZ(43,"g",112)(44,"g",113),p._UZ(45,"g",114),p.qZA(),p._UZ(46,"g",115),p.qZA()()(),p._UZ(47,"path",153),p.qZA()()()(),p.kcU(),p.TgZ(48,"div",30)(49,"mat-card-title"),p._uU(50,"Step 3: Recieve Funds Off-chain"),p.qZA()(),p.TgZ(51,"div",31)(52,"mat-card-subtitle",32),p._uU(53," Loop server sends equivalent funds off-chain to your node by making a lightning payment to you. "),p.qZA()()()}if(2&Mt){const Be=p.oxw();p.Q6J("@sliderAnimation",Be.animationDirection),p.xp6(1),p.Q6J("ngClass",p.WLB(2,xe,Be.screenSize===Be.screenSizeEnum.XS,Be.screenSize!==Be.screenSizeEnum.XS))}}function ht(Mt,Ge){if(1&Mt){const Be=p.EpF();p.TgZ(0,"div",6),p.NdJ("swipe",function(re){p.CHM(Be);const Te=p.oxw();return p.KtG(Te.onSwipe(re))}),p.O4$(),p.TgZ(1,"svg",154)(2,"desc"),p._uU(3,"Created with Sketch."),p.qZA(),p.TgZ(4,"defs")(5,"linearGradient",34),p._UZ(6,"stop",35)(7,"stop",36)(8,"stop",37),p.qZA()(),p.TgZ(9,"g",90)(10,"g",155)(11,"g",156)(12,"g",157)(13,"g",158)(14,"g",40),p._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),p.qZA(),p.TgZ(28,"g",172),p._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),p.qZA(),p._UZ(43,"path",187),p.qZA()(),p._UZ(44,"circle",188),p.qZA()()()(),p.kcU(),p.TgZ(45,"div",30)(46,"mat-card-title"),p._uU(47,"Done!"),p.qZA()(),p.TgZ(48,"div",31)(49,"mat-card-subtitle",32),p._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. "),p.qZA()()()}if(2&Mt){const Be=p.oxw();p.Q6J("@sliderAnimation",Be.animationDirection),p.xp6(1),p.Q6J("ngClass",p.WLB(2,xe,Be.screenSize===Be.screenSizeEnum.XS,Be.screenSize!==Be.screenSizeEnum.XS))}}class Le{constructor(Ge){this.commonService=Ge,this.animationDirection="forward",this.stepNumber=1,this.stepNumberChange=new p.vpe,this.screenSize="",this.screenSizeEnum=u.cu}ngOnInit(){this.screenSize=this.commonService.getScreenSize()}onSwipe(Ge){2===Ge.direction&&this.stepNumber<5?(this.stepNumber++,this.animationDirection="forward",this.stepNumberChange.emit(this.stepNumber)):4===Ge.direction&&this.stepNumber>1&&(this.stepNumber--,this.animationDirection="backward",this.stepNumberChange.emit(this.stepNumber))}static#e=this.\u0275fac=function(Be){return new(Be||Le)(p.Y36(I.v))};static#t=this.\u0275cmp=p.Xpm({type:Le,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(Be,ft){if(1&Be&&(p.YNc(0,Ve,1,0,"ng-container",0),p.YNc(1,Ze,32,5,"ng-template",null,1,p.W1O),p.YNc(3,Ie,66,5,"ng-template",null,2,p.W1O),p.YNc(5,ve,93,5,"ng-template",null,3,p.W1O),p.YNc(7,et,54,5,"ng-template",null,4,p.W1O),p.YNc(9,ht,51,5,"ng-template",null,5,p.W1O)),2&Be){const re=p.MAs(2),Te=p.MAs(4),pt=p.MAs(6),Lt=p.MAs(8),nn=p.MAs(10);p.Q6J("ngTemplateOutlet",1===ft.stepNumber?re:2===ft.stepNumber?Te:3===ft.stepNumber?pt:4===ft.stepNumber?Lt:nn)}},dependencies:[P.mk,P.tP,W.xw,W.Wh,W.yH,Z.oO,ie.n5,ie.$j],styles:["svg.small-svg[_ngcontent-%COMP%]{height:50%;min-height:50%;max-width:100%}svg.large-svg[_ngcontent-%COMP%]{height:60%;min-height:60%;max-width:100%}"],data:{animation:[je.l]}})}function Ae(Mt,Ge){1&Mt&&p.GkF(0)}const te=function(Mt,Ge){return{"small-svg":Mt,"large-svg":Ge}};function pe(Mt,Ge){if(1&Mt){const Be=p.EpF();p.TgZ(0,"div",6),p.NdJ("swipe",function(re){p.CHM(Be);const Te=p.oxw();return p.KtG(Te.onSwipe(re))}),p.O4$(),p.TgZ(1,"svg",7)(2,"desc"),p._uU(3,"Created with Sketch."),p.qZA(),p.TgZ(4,"g",8)(5,"g",9)(6,"g",10)(7,"g",11),p._UZ(8,"circle",12)(9,"path",13),p.qZA(),p.TgZ(10,"g",14),p._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),p.qZA()()()()(),p.kcU(),p.TgZ(26,"div",30)(27,"mat-card-title"),p._uU(28,"Loop Out explained."),p.qZA()(),p.TgZ(29,"div",31)(30,"mat-card-subtitle",32),p._uU(31," Lightning Loop is a non custodial service offered by Lightning Labs to bridge on-chain and off-chain Bitcoin using Submarine swaps. "),p.qZA()()()}if(2&Mt){const Be=p.oxw();p.Q6J("@sliderAnimation",Be.animationDirection),p.xp6(1),p.Q6J("ngClass",p.WLB(2,te,Be.screenSize===Be.screenSizeEnum.XS,Be.screenSize!==Be.screenSizeEnum.XS))}}function ee(Mt,Ge){if(1&Mt){const Be=p.EpF();p.TgZ(0,"div",6),p.NdJ("swipe",function(re){p.CHM(Be);const Te=p.oxw();return p.KtG(Te.onSwipe(re))}),p.O4$(),p.TgZ(1,"svg",33)(2,"desc"),p._uU(3,"Created with Sketch."),p.qZA(),p.TgZ(4,"defs")(5,"linearGradient",34),p._UZ(6,"stop",35)(7,"stop",36)(8,"stop",37),p.qZA()(),p.TgZ(9,"g",8)(10,"g",38)(11,"g",39)(12,"g",40)(13,"g",41)(14,"g",42),p._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),p.qZA(),p.TgZ(28,"g",56),p._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),p.qZA(),p._UZ(43,"path",71),p.qZA()(),p._UZ(44,"circle",72),p.qZA()()()(),p.kcU(),p.TgZ(45,"div",30)(46,"mat-card-title"),p._uU(47,"Step 1: Deciding to Loop Out"),p.qZA()(),p.TgZ(48,"div",31)(49,"mat-card-subtitle",32),p._uU(50," You have a channel with a local balance amount and you want to gain inbound liquidity. "),p.qZA()()()}if(2&Mt){const Be=p.oxw();p.Q6J("@sliderAnimation",Be.animationDirection),p.xp6(1),p.Q6J("ngClass",p.WLB(2,te,Be.screenSize===Be.screenSizeEnum.XS,Be.screenSize!==Be.screenSizeEnum.XS))}}function H(Mt,Ge){if(1&Mt){const Be=p.EpF();p.TgZ(0,"div",6),p.NdJ("swipe",function(re){p.CHM(Be);const Te=p.oxw();return p.KtG(Te.onSwipe(re))}),p.O4$(),p.TgZ(1,"svg",73)(2,"desc"),p._uU(3,"Created with Sketch."),p.qZA(),p.TgZ(4,"defs")(5,"linearGradient",74),p._UZ(6,"stop",35)(7,"stop",36)(8,"stop",37),p.qZA()(),p.TgZ(9,"g",8)(10,"g",75)(11,"g",76),p._UZ(12,"circle",77)(13,"path",78),p.TgZ(14,"g",79),p._UZ(15,"polygon",80)(16,"polygon",81)(17,"path",82),p.qZA(),p.TgZ(18,"g",83),p._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),p.TgZ(29,"g",94)(30,"g",95),p._UZ(31,"g",96),p.qZA(),p._UZ(32,"g",97),p.qZA(),p._UZ(33,"path",98),p.qZA(),p.TgZ(34,"g",99)(35,"g",41)(36,"g",42),p._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),p.qZA(),p.TgZ(52,"g",56),p._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),p.qZA(),p._UZ(67,"path",111),p.qZA()()()()()(),p.kcU(),p.TgZ(68,"div",30)(69,"mat-card-title"),p._uU(70,"Step 2: Send lightning payment"),p.qZA()(),p.TgZ(71,"div",31)(72,"mat-card-subtitle",32),p._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. "),p.qZA()()()}if(2&Mt){const Be=p.oxw();p.Q6J("@sliderAnimation",Be.animationDirection),p.xp6(1),p.Q6J("ngClass",p.WLB(2,te,Be.screenSize===Be.screenSizeEnum.XS,Be.screenSize!==Be.screenSizeEnum.XS))}}function j(Mt,Ge){if(1&Mt){const Be=p.EpF();p.TgZ(0,"div",6),p.NdJ("swipe",function(re){p.CHM(Be);const Te=p.oxw();return p.KtG(Te.onSwipe(re))}),p.O4$(),p.TgZ(1,"svg",112)(2,"desc"),p._uU(3,"Created with Sketch."),p.qZA(),p.TgZ(4,"g",8)(5,"g",113)(6,"g",114)(7,"g",115)(8,"g",116),p._UZ(9,"circle",12)(10,"path",117),p.qZA(),p.TgZ(11,"g",14),p._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),p.qZA()(),p.TgZ(27,"g",119),p._UZ(28,"polygon",80)(29,"polygon",120)(30,"path",82),p.qZA(),p.TgZ(31,"g",121),p._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),p.TgZ(42,"g",94)(43,"g",95),p._UZ(44,"g",96),p.qZA(),p._UZ(45,"g",97),p.qZA(),p._UZ(46,"path",123),p.qZA()()()()(),p.kcU(),p.TgZ(47,"div",30)(48,"mat-card-title"),p._uU(49,"Step 3: Receive funds back"),p.qZA()(),p.TgZ(50,"div",31)(51,"mat-card-subtitle",32),p._uU(52," Loop service then sends you a payment on-chain for the amount same as the lightning payment minus the fee. "),p.qZA()()()}if(2&Mt){const Be=p.oxw();p.Q6J("@sliderAnimation",Be.animationDirection),p.xp6(1),p.Q6J("ngClass",p.WLB(2,te,Be.screenSize===Be.screenSizeEnum.XS,Be.screenSize!==Be.screenSizeEnum.XS))}}function Oe(Mt,Ge){if(1&Mt){const Be=p.EpF();p.TgZ(0,"div",6),p.NdJ("swipe",function(re){p.CHM(Be);const Te=p.oxw();return p.KtG(Te.onSwipe(re))}),p.O4$(),p.TgZ(1,"svg",124)(2,"desc"),p._uU(3,"Created with Sketch."),p.qZA(),p.TgZ(4,"defs")(5,"linearGradient",34),p._UZ(6,"stop",35)(7,"stop",36)(8,"stop",37),p.qZA()(),p.TgZ(9,"g",8)(10,"g",125)(11,"g",126)(12,"g",42),p._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),p.qZA(),p.TgZ(28,"g",142)(29,"g",143)(30,"g",144),p._UZ(31,"path",145)(32,"rect",146)(33,"polygon",147),p.TgZ(34,"g",148),p._UZ(35,"path",149),p.qZA(),p._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),p.qZA(),p.TgZ(45,"g",159),p._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),p.qZA(),p._UZ(59,"path",173),p.qZA()()()()()(),p.kcU(),p.TgZ(60,"div",30)(61,"mat-card-title"),p._uU(62,"Done!"),p.qZA()(),p.TgZ(63,"div",31)(64,"mat-card-subtitle",32),p._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. "),p.qZA()()()}if(2&Mt){const Be=p.oxw();p.Q6J("@sliderAnimation",Be.animationDirection),p.xp6(1),p.Q6J("ngClass",p.WLB(2,te,Be.screenSize===Be.screenSizeEnum.XS,Be.screenSize!==Be.screenSizeEnum.XS))}}class Re{constructor(Ge){this.commonService=Ge,this.animationDirection="forward",this.stepNumber=1,this.stepNumberChange=new p.vpe,this.screenSize="",this.screenSizeEnum=u.cu}ngOnInit(){this.screenSize=this.commonService.getScreenSize()}onSwipe(Ge){2===Ge.direction&&this.stepNumber<5?(this.stepNumber++,this.animationDirection="forward",this.stepNumberChange.emit(this.stepNumber)):4===Ge.direction&&this.stepNumber>1&&(this.stepNumber--,this.animationDirection="backward",this.stepNumberChange.emit(this.stepNumber))}static#e=this.\u0275fac=function(Be){return new(Be||Re)(p.Y36(I.v))};static#t=this.\u0275cmp=p.Xpm({type:Re,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(Be,ft){if(1&Be&&(p.YNc(0,Ae,1,0,"ng-container",0),p.YNc(1,pe,32,5,"ng-template",null,1,p.W1O),p.YNc(3,ee,51,5,"ng-template",null,2,p.W1O),p.YNc(5,H,74,5,"ng-template",null,3,p.W1O),p.YNc(7,j,53,5,"ng-template",null,4,p.W1O),p.YNc(9,Oe,66,5,"ng-template",null,5,p.W1O)),2&Be){const re=p.MAs(2),Te=p.MAs(4),pt=p.MAs(6),Lt=p.MAs(8),nn=p.MAs(10);p.Q6J("ngTemplateOutlet",1===ft.stepNumber?re:2===ft.stepNumber?Te:3===ft.stepNumber?pt:4===ft.stepNumber?Lt:nn)}},dependencies:[P.mk,P.tP,W.xw,W.Wh,W.yH,Z.oO,ie.n5,ie.$j],styles:["svg.small-svg[_ngcontent-%COMP%]{height:50%;min-height:50%;max-width:100%}svg.large-svg[_ngcontent-%COMP%]{height:60%;min-height:60%;max-width:100%}"],data:{animation:[je.l]}})}const le=["stepper"];function _t(Mt,Ge){if(1&Mt&&(p.TgZ(0,"div",48)(1,"p",49)(2,"strong"),p._uU(3,"Channel Peer:\xa0"),p.qZA(),p._uU(4),p.ALo(5,"titlecase"),p.qZA(),p.TgZ(6,"p",50)(7,"strong"),p._uU(8,"Channel ID:\xa0"),p.qZA(),p._uU(9),p.qZA(),p._UZ(10,"p",50),p.qZA()),2&Mt){const Be=p.oxw(2);p.xp6(4),p.Oqu(p.lcZ(5,2,Be.channel.remote_alias)),p.xp6(5),p.Oqu(Be.channel.chan_id)}}function it(Mt,Ge){if(1&Mt&&p._uU(0),2&Mt){const Be=p.oxw(2);p.Oqu(Be.inputFormLabel)}}function Ct(Mt,Ge){1&Mt&&(p.TgZ(0,"mat-error"),p._uU(1,"Amount is required."),p.qZA())}function un(Mt,Ge){if(1&Mt&&(p.TgZ(0,"mat-error"),p._uU(1),p.ALo(2,"number"),p.qZA()),2&Mt){const Be=p.oxw(2);p.xp6(1),p.hij("Amount must be greater than or equal to ",p.lcZ(2,1,Be.minQuote.amount),".")}}function Bt(Mt,Ge){if(1&Mt&&(p.TgZ(0,"mat-error"),p._uU(1),p.ALo(2,"number"),p.qZA()),2&Mt){const Be=p.oxw(2);p.xp6(1),p.hij("Amount must be less than or equal to ",p.lcZ(2,1,Be.maxQuote.amount),".")}}function Ut(Mt,Ge){1&Mt&&(p.TgZ(0,"mat-error"),p._uU(1,"Confirmation target is required."),p.qZA())}function yn(Mt,Ge){1&Mt&&(p.TgZ(0,"mat-error"),p._uU(1,"Confirmation target must be a positive number."),p.qZA())}function Xt(Mt,Ge){1&Mt&&(p.TgZ(0,"mat-error"),p._uU(1,"Percentage is required."),p.qZA())}function Gt(Mt,Ge){1&Mt&&(p.TgZ(0,"mat-error"),p._uU(1,"Percentage must be a positive number."),p.qZA())}function In(Mt,Ge){if(1&Mt&&(p.TgZ(0,"mat-form-field",50),p._UZ(1,"input",51),p.YNc(2,Xt,2,0,"mat-error",25),p.YNc(3,Gt,2,0,"mat-error",25),p.qZA()),2&Mt){const Be=p.oxw(2);p.xp6(1),p.Q6J("step",1),p.xp6(1),p.Q6J("ngIf",null==Be.inputFormGroup.controls.routingFeePercent.errors?null:Be.inputFormGroup.controls.routingFeePercent.errors.required),p.xp6(1),p.Q6J("ngIf",null==Be.inputFormGroup.controls.routingFeePercent.errors?null:Be.inputFormGroup.controls.routingFeePercent.errors.min)}}function rn(Mt,Ge){1&Mt&&(p.TgZ(0,"div",52)(1,"mat-slide-toggle",53),p._uU(2,"Fast"),p.qZA(),p.TgZ(3,"mat-icon",54),p._uU(4,"info_outline"),p.qZA()())}function tn(Mt,Ge){if(1&Mt&&p._uU(0),2&Mt){const Be=p.oxw(2);p.Oqu(Be.quoteFormLabel)}}function pn(Mt,Ge){1&Mt&&(p.TgZ(0,"p",55)(1,"mat-icon",56),p._uU(2,"close"),p.qZA(),p._uU(3,"Local balance amount is insufficient for swap."),p.qZA())}function tt(Mt,Ge){if(1&Mt){const Be=p.EpF();p.TgZ(0,"button",57),p.NdJ("click",function(){p.CHM(Be);const re=p.oxw(2);return p.KtG(re.onValidateAmount())}),p._uU(1,"Next"),p.qZA()}}function vt(Mt,Ge){if(1&Mt){const Be=p.EpF();p.TgZ(0,"button",58),p.NdJ("click",function(){p.CHM(Be);const re=p.oxw(2);return p.KtG(re.onLoop())}),p._uU(1),p.qZA()}if(2&Mt){const Be=p.oxw(2);p.xp6(1),p.hij("Initiate ",Be.loopDirectionCaption,"")}}function dt(Mt,Ge){if(1&Mt&&p._uU(0),2&Mt){const Be=p.oxw(3);p.Oqu(Be.addressFormLabel)}}function se(Mt,Ge){1&Mt&&(p.TgZ(0,"mat-error"),p._uU(1,"Address is required."),p.qZA())}function J(Mt,Ge){if(1&Mt){const Be=p.EpF();p.TgZ(0,"mat-step",16)(1,"form",17),p.YNc(2,dt,1,1,"ng-template",18),p.TgZ(3,"div",59)(4,"mat-radio-group",60),p.NdJ("change",function(re){p.CHM(Be);const Te=p.oxw(2);return p.KtG(Te.onAddressTypeChange(re))}),p.TgZ(5,"mat-radio-button",61),p._uU(6,"Node Local Address"),p.qZA(),p.TgZ(7,"mat-radio-button",62),p._uU(8,"External Address"),p.qZA()(),p.TgZ(9,"mat-form-field",63),p._UZ(10,"input",64),p.YNc(11,se,2,0,"mat-error",25),p.qZA()(),p.TgZ(12,"div",29)(13,"button",65),p.NdJ("click",function(){p.CHM(Be);const re=p.oxw(2);return p.KtG(re.onLoop())}),p._uU(14),p.qZA()()()()}if(2&Mt){const Be=p.oxw(2);p.Q6J("stepControl",Be.addressFormGroup)("editable",Be.flgEditable),p.xp6(1),p.Q6J("formGroup",Be.addressFormGroup),p.xp6(9),p.Q6J("required","external"===Be.addressFormGroup.controls.addressType.value),p.xp6(1),p.Q6J("ngIf",null==Be.addressFormGroup.controls.address.errors?null:Be.addressFormGroup.controls.address.errors.required),p.xp6(3),p.hij("Initiate ",Be.loopDirectionCaption,"")}}function oe(Mt,Ge){if(1&Mt&&p._uU(0),2&Mt){const Be=p.oxw(2);p.hij("",Be.loopDirectionCaption," Status")}}function De(Mt,Ge){if(1&Mt&&(p.TgZ(0,"mat-icon",66),p._uU(1),p.qZA()),2&Mt){const Be=p.oxw(2);p.xp6(1),p.Oqu(Be.loopStatus&&null!=Be.loopStatus&&Be.loopStatus.id_bytes?"check":"close")}}function Ye(Mt,Ge){1&Mt&&p._UZ(0,"div")}function Dt(Mt,Ge){1&Mt&&p._UZ(0,"mat-progress-bar",67)}function ut(Mt,Ge){if(1&Mt&&(p.TgZ(0,"h4",68),p._uU(1),p.qZA()),2&Mt){const Be=p.oxw(2);p.xp6(1),p.Oqu(Be.loopStatus&&Be.loopStatus.error?Be.loopDirectionCaption+" failed.":Be.loopStatus&&Be.loopStatus.id_bytes&&Be.channel?Be.loopDirectionCaption+" request placed successfully. You can check the status of the request on the 'Loop' menu.":Be.loopDirectionCaption+" request placed successfully.")}}function ze(Mt,Ge){if(1&Mt){const Be=p.EpF();p.TgZ(0,"button",69),p.NdJ("click",function(){p.CHM(Be);const re=p.oxw(2);return p.KtG(re.goToLoop())}),p._uU(1,"Check Status"),p.qZA()}}function Me(Mt,Ge){if(1&Mt){const Be=p.EpF();p.TgZ(0,"button",70),p.NdJ("click",function(){p.CHM(Be);const re=p.oxw(2);return p.KtG(re.onRestart())}),p._uU(1,"Start Again"),p.qZA()}}function Ce(Mt,Ge){if(1&Mt){const Be=p.EpF();p.TgZ(0,"div",3)(1,"div",4)(2,"mat-card-header",5)(3,"div",6)(4,"span",7),p._uU(5),p.qZA()(),p.TgZ(6,"div",8)(7,"button",9),p.NdJ("click",function(){p.CHM(Be);const re=p.oxw();return p.KtG(re.showInfo())}),p._uU(8,"?"),p.qZA(),p.TgZ(9,"button",10),p.NdJ("click",function(){p.CHM(Be);const re=p.oxw();return p.KtG(re.onClose())}),p._uU(10,"X"),p.qZA()()(),p.TgZ(11,"mat-card-content",11)(12,"div",12),p.YNc(13,_t,11,4,"div",13),p.TgZ(14,"mat-vertical-stepper",14,15),p.NdJ("selectionChange",function(re){p.CHM(Be);const Te=p.oxw();return p.KtG(Te.stepSelectionChanged(re))}),p.TgZ(16,"mat-step",16)(17,"form",17),p.YNc(18,it,1,1,"ng-template",18),p.TgZ(19,"div",19),p._UZ(20,"rtl-loop-quote",20)(21,"rtl-loop-quote",20),p.qZA(),p.TgZ(22,"div",21)(23,"mat-form-field",22),p._UZ(24,"input",23),p.TgZ(25,"mat-hint"),p._uU(26),p.ALo(27,"number"),p.ALo(28,"number"),p.qZA(),p.TgZ(29,"span",24),p._uU(30,"Sats"),p.qZA(),p.YNc(31,Ct,2,0,"mat-error",25),p.YNc(32,un,3,3,"mat-error",25),p.YNc(33,Bt,3,3,"mat-error",25),p.qZA(),p.TgZ(34,"mat-form-field",22),p._UZ(35,"input",26),p.YNc(36,Ut,2,0,"mat-error",25),p.YNc(37,yn,2,0,"mat-error",25),p.qZA(),p.YNc(38,In,4,3,"mat-form-field",27),p.qZA(),p.YNc(39,rn,5,0,"div",28),p.TgZ(40,"div",29)(41,"button",30),p.NdJ("click",function(){p.CHM(Be);const re=p.oxw();return p.KtG(re.onEstimateQuote())}),p._uU(42,"Estimate Quote"),p.qZA()()()(),p.TgZ(43,"mat-step",16)(44,"form",17),p.YNc(45,tn,1,1,"ng-template",18),p._UZ(46,"rtl-loop-quote",31),p.YNc(47,pn,4,0,"p",32),p.TgZ(48,"div",29),p.YNc(49,tt,2,0,"button",33),p.YNc(50,vt,2,1,"button",34),p.qZA()()(),p.YNc(51,J,15,6,"mat-step",35),p.TgZ(52,"mat-step",36)(53,"form",17),p.YNc(54,oe,1,1,"ng-template",18),p.TgZ(55,"div",37)(56,"mat-expansion-panel",38)(57,"mat-expansion-panel-header")(58,"mat-panel-title")(59,"span",39),p._uU(60),p.YNc(61,De,2,1,"mat-icon",40),p.qZA()()(),p.YNc(62,Ye,1,0,"div",41),p.qZA(),p.YNc(63,Dt,1,0,"mat-progress-bar",42),p.qZA(),p.YNc(64,ut,2,1,"h4",43),p.TgZ(65,"div",29),p.YNc(66,ze,2,0,"button",44),p.YNc(67,Me,2,0,"button",45),p.qZA()()()(),p.TgZ(68,"div",46)(69,"button",47),p._uU(70,"Close"),p.qZA()()()()()()}if(2&Mt){const Be=p.oxw(),ft=p.MAs(2);p.Q6J("@opacityAnimation",void 0),p.xp6(3),p.Q6J("fxFlex",Be.screenSize===Be.screenSizeEnum.XS||Be.screenSize===Be.screenSizeEnum.SM?"83":"91"),p.xp6(2),p.Oqu(Be.channel?"Channel "+Be.loopDirectionCaption:Be.loopDirectionCaption),p.xp6(1),p.Q6J("fxFlex",Be.screenSize===Be.screenSizeEnum.XS||Be.screenSize===Be.screenSizeEnum.SM?"17":"9"),p.xp6(7),p.Q6J("ngIf",Be.channel),p.xp6(1),p.Q6J("linear",!0),p.xp6(2),p.Q6J("stepControl",Be.inputFormGroup)("editable",Be.flgEditable),p.xp6(1),p.Q6J("formGroup",Be.inputFormGroup),p.xp6(3),p.Q6J("quote",Be.minQuote)("termCaption","min")("panelExpanded",!1)("showPanel",!0),p.xp6(1),p.Q6J("quote",Be.maxQuote)("termCaption","max")("panelExpanded",!1)("showPanel",!0),p.xp6(2),p.Q6J("fxFlex",Be.direction===Be.LoopTypeEnum.LOOP_OUT?"35":"48"),p.xp6(1),p.Q6J("step",1e3),p.xp6(2),p.AsE("Range: ",p.lcZ(27,51,Be.minQuote.amount),"-",p.lcZ(28,53,Be.maxQuote.amount),""),p.xp6(5),p.Q6J("ngIf",null==Be.inputFormGroup.controls.amount.errors?null:Be.inputFormGroup.controls.amount.errors.required),p.xp6(1),p.Q6J("ngIf",null==Be.inputFormGroup.controls.amount.errors?null:Be.inputFormGroup.controls.amount.errors.min),p.xp6(1),p.Q6J("ngIf",null==Be.inputFormGroup.controls.amount.errors?null:Be.inputFormGroup.controls.amount.errors.max),p.xp6(1),p.Q6J("fxFlex",Be.direction===Be.LoopTypeEnum.LOOP_OUT?"30":"48"),p.xp6(1),p.Q6J("step",1),p.xp6(1),p.Q6J("ngIf",null==Be.inputFormGroup.controls.sweepConfTarget.errors?null:Be.inputFormGroup.controls.sweepConfTarget.errors.required),p.xp6(1),p.Q6J("ngIf",null==Be.inputFormGroup.controls.sweepConfTarget.errors?null:Be.inputFormGroup.controls.sweepConfTarget.errors.min),p.xp6(1),p.Q6J("ngIf",Be.direction===Be.LoopTypeEnum.LOOP_OUT),p.xp6(1),p.Q6J("ngIf",Be.direction===Be.LoopTypeEnum.LOOP_OUT),p.xp6(4),p.Q6J("stepControl",Be.quoteFormGroup)("editable",Be.flgEditable),p.xp6(1),p.Q6J("formGroup",Be.quoteFormGroup),p.xp6(2),p.Q6J("quote",Be.quote)("showPanel",!1),p.xp6(1),p.Q6J("ngIf",Be.inputFormGroup.controls.amount.value>Be.localBalanceToCompare),p.xp6(2),p.Q6J("ngIf",Be.direction===Be.LoopTypeEnum.LOOP_OUT),p.xp6(1),p.Q6J("ngIf",Be.direction===Be.LoopTypeEnum.LOOP_IN),p.xp6(1),p.Q6J("ngIf",Be.direction===Be.LoopTypeEnum.LOOP_OUT),p.xp6(1),p.Q6J("stepControl",Be.statusFormGroup),p.xp6(1),p.Q6J("formGroup",Be.statusFormGroup),p.xp6(3),p.Q6J("expanded",!!Be.loopStatus),p.xp6(4),p.Oqu(Be.loopStatus?Be.loopStatus.id_bytes?Be.loopDirectionCaption+" request details":Be.loopDirectionCaption+" error details":"Waiting for "+Be.loopDirectionCaption+" request..."),p.xp6(1),p.Q6J("ngIf",Be.loopStatus),p.xp6(1),p.Q6J("ngIf",!Be.loopStatus)("ngIfElse",ft),p.xp6(1),p.Q6J("ngIf",!Be.loopStatus),p.xp6(1),p.Q6J("ngIf",Be.loopStatus),p.xp6(2),p.Q6J("ngIf",Be.loopStatus&&Be.loopStatus.id_bytes&&Be.channel),p.xp6(1),p.Q6J("ngIf",Be.loopStatus&&(Be.loopStatus.error||!Be.loopStatus.id_bytes)),p.xp6(2),p.Q6J("mat-dialog-close",!1)}}function Je(Mt,Ge){if(1&Mt&&p._UZ(0,"rtl-loop-status",71),2&Mt){const Be=p.oxw();p.Q6J("loopStatus",Be.loopStatus)}}function zt(Mt,Ge){if(1&Mt){const Be=p.EpF();p.TgZ(0,"rtl-loop-out-info-graphics",88),p.NdJ("stepNumberChange",function(re){p.CHM(Be);const Te=p.oxw(2);return p.KtG(Te.stepNumber=re)}),p.qZA()}if(2&Mt){const Be=p.oxw(2);p.Q6J("animationDirection",Be.animationDirection)("stepNumber",Be.stepNumber)}}function At(Mt,Ge){if(1&Mt){const Be=p.EpF();p.TgZ(0,"rtl-loop-in-info-graphics",88),p.NdJ("stepNumberChange",function(re){p.CHM(Be);const Te=p.oxw(2);return p.KtG(Te.stepNumber=re)}),p.qZA()}if(2&Mt){const Be=p.oxw(2);p.Q6J("animationDirection",Be.animationDirection)("stepNumber",Be.stepNumber)}}const Tt=function(Mt,Ge){return{"dot-primary":Mt,"dot-primary-lighter":Ge}};function Ht(Mt,Ge){if(1&Mt){const Be=p.EpF();p.TgZ(0,"span",89),p.NdJ("click",function(){const Te=p.CHM(Be).$implicit,pt=p.oxw(2);return p.KtG(pt.onStepChanged(Te))}),p._UZ(1,"p",90),p.qZA()}if(2&Mt){const Be=Ge.$implicit,ft=p.oxw(2);p.xp6(1),p.Q6J("ngClass",p.WLB(1,Tt,ft.stepNumber===Be,ft.stepNumber!==Be))}}function He(Mt,Ge){if(1&Mt){const Be=p.EpF();p.TgZ(0,"button",91),p.NdJ("click",function(){p.CHM(Be);const re=p.oxw(2);return p.KtG(re.onReadMore())}),p._uU(1,"Read More"),p.qZA()}}function $e(Mt,Ge){if(1&Mt){const Be=p.EpF();p.TgZ(0,"button",92),p.NdJ("click",function(){p.CHM(Be);const re=p.oxw(2);return p.KtG(re.onStepChanged(4))}),p._uU(1,"Back"),p.qZA()}}function $t(Mt,Ge){if(1&Mt){const Be=p.EpF();p.TgZ(0,"button",93),p.NdJ("click",function(){p.CHM(Be);const re=p.oxw(2);return re.flgShowInfo=!1,p.KtG(re.stepNumber=1)}),p._uU(1,"Close"),p.qZA()}}function Rt(Mt,Ge){if(1&Mt){const Be=p.EpF();p.TgZ(0,"button",94),p.NdJ("click",function(){p.CHM(Be);const re=p.oxw(2);return re.flgShowInfo=!1,p.KtG(re.stepNumber=1)}),p._uU(1,"Close"),p.qZA()}}function Jt(Mt,Ge){if(1&Mt){const Be=p.EpF();p.TgZ(0,"button",95),p.NdJ("click",function(){p.CHM(Be);const re=p.oxw(2);return p.KtG(re.onStepChanged(re.stepNumber-1))}),p._uU(1,"Back"),p.qZA()}}function Vn(Mt,Ge){if(1&Mt){const Be=p.EpF();p.TgZ(0,"button",96),p.NdJ("click",function(){p.CHM(Be);const re=p.oxw(2);return p.KtG(re.onStepChanged(re.stepNumber+1))}),p._uU(1,"Next"),p.qZA()}}const zn=function(){return[1,2,3,4,5]};function Tn(Mt,Ge){if(1&Mt){const Be=p.EpF();p.TgZ(0,"div",72)(1,"div",19)(2,"mat-card-header",73)(3,"div",74),p._UZ(4,"span",7),p.qZA(),p.TgZ(5,"div",75)(6,"button",76),p.NdJ("click",function(){p.CHM(Be);const re=p.oxw();return re.flgShowInfo=!1,p.KtG(re.stepNumber=1)}),p._uU(7,"X"),p.qZA()()(),p.TgZ(8,"mat-card-content",77),p.YNc(9,zt,1,2,"rtl-loop-out-info-graphics",78),p.YNc(10,At,1,2,"rtl-loop-in-info-graphics",78),p.qZA(),p.TgZ(11,"div",79),p.YNc(12,Ht,2,4,"span",80),p.qZA(),p.TgZ(13,"div",81),p.YNc(14,He,2,0,"button",82),p.YNc(15,$e,2,0,"button",83),p.YNc(16,$t,2,0,"button",84),p.YNc(17,Rt,2,0,"button",85),p.YNc(18,Jt,2,0,"button",86),p.YNc(19,Vn,2,0,"button",87),p.qZA()()()}if(2&Mt){const Be=p.oxw();p.Q6J("@opacityAnimation",void 0),p.xp6(9),p.Q6J("ngIf",Be.direction===Be.LoopTypeEnum.LOOP_OUT),p.xp6(1),p.Q6J("ngIf",Be.direction===Be.LoopTypeEnum.LOOP_IN),p.xp6(2),p.Q6J("ngForOf",p.DdM(10,zn)),p.xp6(2),p.Q6J("ngIf",5===Be.stepNumber),p.xp6(1),p.Q6J("ngIf",5===Be.stepNumber),p.xp6(1),p.Q6J("ngIf",5===Be.stepNumber),p.xp6(1),p.Q6J("ngIf",Be.stepNumber<5),p.xp6(1),p.Q6J("ngIf",Be.stepNumber>1&&Be.stepNumber<5),p.xp6(1),p.Q6J("ngIf",Be.stepNumber<5)}}class Yn{constructor(Ge,Be,ft,re,Te,pt,Lt,nn,Bn){this.dialogRef=Ge,this.data=Be,this.store=ft,this.loopService=re,this.formBuilder=Te,this.decimalPipe=pt,this.logger=Lt,this.router=nn,this.commonService=Bn,this.faInfoCircle=s.sqG,this.LoopTypeEnum=u.$I,this.direction=u.$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=u.cu,this.animationDirection="forward",this.flgEditable=!0,this.localBalanceToCompare=null,this.unSubs=[new t.x,new t.x,new t.x,new t.x,new t.x,new t.x,new t.x]}ngOnInit(){this.screenSize=this.commonService.getScreenSize(),this.channel=this.data.channel,this.minQuote=this.data.minQuote?this.data.minQuote:{},this.maxQuote=this.data.maxQuote?this.data.maxQuote:{},this.direction=this.data.direction||u.$I.LOOP_OUT,this.loopDirectionCaption=this.direction===u.$I.LOOP_IN?"Loop in":"Loop out",this.inputFormLabel="Amount to "+this.loopDirectionCaption,this.inputFormGroup=this.formBuilder.group({amount:[this.minQuote.amount,[e.kI.required,e.kI.min(this.minQuote.amount||0),e.kI.max(this.maxQuote.amount||0)]],sweepConfTarget:[6,[e.kI.required,e.kI.min(1)]],routingFeePercent:[2,[e.kI.required,e.kI.min(0)]],fast:[!1,[e.kI.required]]}),this.inputFormGroup.setErrors({Invalid:!0}),this.quoteFormGroup=this.formBuilder.group({}),this.addressFormGroup=this.formBuilder.group({addressType:["local",[e.kI.required]],address:[{value:"",disabled:!0}]}),this.direction===u.$I.LOOP_OUT&&this.addressFormGroup.setErrors({Invalid:!0}),this.statusFormGroup=this.formBuilder.group({}),this.onFormValueChanges(),this.store.select(k.ZW).pipe((0,_.R)(this.unSubs[6])).subscribe(Ge=>{this.localBalanceToCompare=this.channel&&this.channel.local_balance?+this.channel.local_balance:Ge.lightningBalance&&Ge.lightningBalance.local?+Ge.lightningBalance.local:null})}onFormValueChanges(){this.inputFormGroup.valueChanges.pipe((0,_.R)(this.unSubs[4])).subscribe(Ge=>{this.inputFormGroup.setErrors({Invalid:!0})}),this.direction===u.$I.LOOP_OUT&&this.addressFormGroup.valueChanges.pipe((0,_.R)(this.unSubs[5])).subscribe(Ge=>{this.addressFormGroup.setErrors({Invalid:!0})})}onAddressTypeChange(Ge){"external"===Ge.value?(this.addressFormGroup.controls.address.setValidators([e.kI.required]),this.addressFormGroup.controls.address.markAsTouched(),this.addressFormGroup.controls.address.enable()):(this.addressFormGroup.controls.address.setValidators(null),this.addressFormGroup.controls.address.markAsPristine(),this.addressFormGroup.controls.address.disable(),this.addressFormGroup.controls.address.setValue("")),this.addressFormGroup.setErrors({Invalid:!0})}onValidateAmount(){this.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===u.$I.LOOP_OUT&&(!this.inputFormGroup.controls.routingFeePercent.value||this.inputFormGroup.controls.routingFeePercent.value<0)||this.direction===u.$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===u.$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,_.R)(this.unSubs[0])).subscribe({next:Ge=>{this.loopStatus=Ge,this.loopService.listSwaps(),this.flgEditable=!0},error:Ge=>{this.loopStatus={error:Ge},this.flgEditable=!0,this.logger.error(Ge)}});else{const Ge=Math.ceil(this.inputFormGroup.controls.amount.value*(this.inputFormGroup.controls.routingFeePercent.value/100)),Be="external"===this.addressFormGroup.controls.addressType.value?this.addressFormGroup.controls.address.value:"",ft=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,Ge,+(this.quote.htlc_sweep_fee_sat||0),this.prepayRoutingFee,+(this.quote.prepay_amt_sat||0),+(this.quote.swap_fee_sat||0),ft,Be).pipe((0,_.R)(this.unSubs[1])).subscribe({next:re=>{this.loopStatus=re,this.loopService.listSwaps(),this.flgEditable=!0},error:re=>{this.loopStatus={error:re},this.flgEditable=!0,this.logger.error(re)}})}}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 Ge=this.inputFormGroup.controls.fast.value?0:(new Date).getTime()+18e5;this.direction===u.$I.LOOP_IN?this.loopService.getLoopInQuote(this.inputFormGroup.controls.amount.value,this.inputFormGroup.controls.sweepConfTarget.value,Ge).pipe((0,_.R)(this.unSubs[2])).subscribe(Be=>{this.quote=Be,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,Ge).pipe((0,_.R)(this.unSubs[3])).subscribe(Be=>{this.quote=Be,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(Ge){switch(Ge.selectedIndex){case 0:default:this.inputFormLabel="Amount to "+this.loopDirectionCaption,this.quoteFormLabel="Confirm Quote",this.addressFormLabel="Withdrawal Address";break;case 1:this.inputFormGroup.controls.amount.value||this.inputFormGroup.controls.sweepConfTarget.value?this.direction===u.$I.LOOP_IN?this.inputFormLabel=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.inputFormLabel=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"):this.inputFormLabel="Amount to "+this.loopDirectionCaption,this.quoteFormLabel="Confirm Quote",this.addressFormLabel="Withdrawal Address";break;case 2:this.inputFormGroup.controls.amount.value||this.inputFormGroup.controls.sweepConfTarget.value?this.direction===u.$I.LOOP_IN?this.inputFormLabel=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.inputFormLabel=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"):this.inputFormLabel="Amount to "+this.loopDirectionCaption,this.quote&&this.quote.swap_fee_sat&&(this.quote.htlc_sweep_fee_sat||this.quote.htlc_publish_fee_sat)&&this.quote.prepay_amt_sat?this.quoteFormLabel="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":this.quoteFormLabel="Quote confirmed",this.addressFormGroup.controls.addressType.value?this.addressFormLabel="Withdrawal Address | Type: "+this.addressFormGroup.controls.addressType.value:this.addressFormLabel="Withdrawal Address"}(this.direction===u.$I.LOOP_OUT&&1!==Ge.selectedIndex&&Ge.selectedIndex<Ge.previouslySelectedIndex||this.direction===u.$I.LOOP_IN&&Ge.selectedIndex<Ge.previouslySelectedIndex)&&Ge.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===u.$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(Ge){this.animationDirection=Ge<this.stepNumber?"backward":"forward",this.stepNumber=Ge}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(Ge=>{Ge.next(null),Ge.complete()})}static#e=this.\u0275fac=function(Be){return new(Be||Yn)(p.Y36(E.so),p.Y36(E.WI),p.Y36(S.yh),p.Y36(A.W),p.Y36(e.QS),p.Y36(P.JJ),p.Y36(M.mQ),p.Y36(z.F0),p.Y36(I.v))};static#t=this.\u0275cmp=p.Xpm({type:Yn,selectors:[["rtl-loop-modal"]],viewQuery:function(Be,ft){if(1&Be&&p.Gf(le,5),2&Be){let re;p.iGM(re=p.CRH())&&(ft.stepper=re.first)}},decls:4,vars:2,consts:[["fxLayout","column","fxFlex","100","fxLayoutAlign","start stretch",4,"ngIf"],["loopStatusBlock",""],["fxLayout","column","fxFlex","100","fxLayoutAlign","start stretch","class","info-graphics-container",4,"ngIf"],["fxLayout","column","fxFlex","100","fxLayoutAlign","start stretch"],["fxFlex","100"],["fxLayout","row","fxLayoutAlign","space-between center",1,"modal-info-header"],["fxLayoutAlign","start start",3,"fxFlex"],[1,"page-title"],["fxLayoutAlign","space-between end",3,"fxFlex"],["tabindex","21","mat-button","",1,"btn-close-x","p-0",3,"click"],["tabindex","22","mat-button","",1,"btn-close-x","p-0",3,"click"],[1,"padding-gap-x-large"],["fxLayout","column"],["class","padding-gap-large","fxLayout","row wrap","fxLayoutAlign","space-between stretch",4,"ngIf"],[3,"linear","selectionChange"],["stepper",""],[3,"stepControl","editable"],["fxLayout","column","fxLayoutAlign","start","fxLayoutAlign.gt-sm","space-between",1,"my-1",3,"formGroup"],["matStepLabel",""],["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between stretch"],[3,"quote","termCaption","panelExpanded","showPanel"],["fxLayout","row wrap","fxFlex","100","fxLayoutAlign","space-between center",1,"mt-1"],[3,"fxFlex"],["autoFocus","","matInput","","placeholder","Amount","type","number","tabindex","1","formControlName","amount","required","",3,"step"],["matSuffix",""],[4,"ngIf"],["matInput","","placeholder","Sweep Confirmation Target","type","number","tabindex","2","formControlName","sweepConfTarget","required","",3,"step"],["fxFlex","30",4,"ngIf"],["fxLayout","row wrap","fxFlex","100","fxLayoutAlign","start center","class","mt-1",4,"ngIf"],["fxLayout","row","fxLayoutAlign","start center","fxFlex","100",1,"mt-2"],["mat-button","","color","primary","tabindex","5","type","button",3,"click"],[3,"quote","showPanel"],["fxFlex","100","class","color-warn mt-2","fxLayoutAlign","start center",4,"ngIf"],["mat-button","","color","primary","tabindex","6","type","button",3,"click",4,"ngIf"],["mat-button","","color","primary","tabindex","7","type","button",3,"click",4,"ngIf"],[3,"stepControl","editable",4,"ngIf"],[3,"stepControl"],["fxLayout","row wrap","fxFlex","100","fxLayoutAlign","space-between stretch"],["fxFlex","100",1,"flat-expansion-panel",3,"expanded"],["fxLayoutAlign","start center","fxFlex","100"],["class","ml-1 icon-small",4,"ngIf"],[4,"ngIf","ngIfElse"],["fxFlex","100","color","primary","mode","indeterminate",4,"ngIf"],["fxLayoutAlign","start","class","font-bold-500 mt-2",4,"ngIf"],["mat-button","","color","primary","tabindex","12","type","button",3,"click",4,"ngIf"],["mat-button","","color","primary","tabindex","13","type","button",3,"click",4,"ngIf"],["fxLayout","row","fxFlex","100","fxLayoutAlign","end end"],["mat-button","","color","primary","tabindex","14","type","button","default","",3,"mat-dialog-close"],["fxLayout","row wrap","fxLayoutAlign","space-between stretch",1,"padding-gap-large"],["fxFlex","40"],["fxFlex","30"],["matInput","","placeholder","Max Off-chain Routing Fee (%)","type","number","tabindex","3","formControlName","routingFeePercent","required","",3,"step"],["fxLayout","row wrap","fxFlex","100","fxLayoutAlign","start center",1,"mt-1"],["tabindex","4","color","primary","formControlName","fast","fxFlex","none"],["matTooltip","Swap immediately (Might end up paying a higher on-chain fee)","matTooltipPosition","above","fxFlex","none",1,"info-icon"],["fxFlex","100","fxLayoutAlign","start center",1,"color-warn","mt-2"],[1,"mr-1","icon-small"],["mat-button","","color","primary","tabindex","6","type","button",3,"click"],["mat-button","","color","primary","tabindex","7","type","button",3,"click"],["fxLayout","row wrap","fxFlex","100","fxLayoutAlign","space-between stretch",1,"mt-1"],["color","primary","name","addressType","formControlName","addressType","fxFlex","100","fxLayoutAlign","space-between stretch",3,"change"],["fxFlex","48","tabindex","8","value","local"],["fxFlex","48","tabindex","9","value","external"],["fxFlex","100",1,"mt-1"],["matInput","","placeholder","Address","tabindex","10","formControlName","address",3,"required"],["mat-button","","color","primary","tabindex","11","type","button",3,"click"],[1,"ml-1","icon-small"],["fxFlex","100","color","primary","mode","indeterminate"],["fxLayoutAlign","start",1,"font-bold-500","mt-2"],["mat-button","","color","primary","tabindex","12","type","button",3,"click"],["mat-button","","color","primary","tabindex","13","type","button",3,"click"],["fxLayout","column",3,"loopStatus"],["fxLayout","column","fxFlex","100","fxLayoutAlign","start stretch",1,"info-graphics-container"],["fxLayout","row","fxFlex","8","fxLayoutAlign","space-between center",1,"modal-info-header"],["fxFlex","95","fxLayoutAlign","start start"],["fxFlex","5","fxLayoutAlign","end center"],["tabindex","19","mat-button","",1,"btn-close-x","p-0",3,"click"],["fxLayout","column","fxFlex","70","fxLayoutAlign","space-between center",1,"padding-gap-x-large"],["fxFlex","100",3,"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(Be,ft){1&Be&&(p.YNc(0,Ce,71,55,"div",0),p.YNc(1,Je,1,1,"ng-template",null,1,p.W1O),p.YNc(3,Tn,20,11,"div",2)),2&Be&&(p.Q6J("ngIf",!ft.flgShowInfo),p.xp6(3),p.Q6J("ngIf",ft.flgShowInfo))},dependencies:[P.mk,P.sg,P.O5,e._Y,e.Fj,e.wV,e.JJ,e.JL,e.Q7,e.sg,e.u,W.xw,W.Wh,W.yH,Z.oO,E.ZT,Q.lW,ie.dk,ie.dn,ae.ib,ae.yz,ae.yK,_e.Hw,ce.TO,ce.KE,ce.bx,ce.R9,ye.Nt,ue.pW,$.VQ,$.U0,he.Rr,w.gM,n.C0,n.VY,n.Vq,o.h,F,Ke,Le,Re,P.JJ,P.rS],styles:[".dots-stepper-block[_ngcontent-%COMP%]{width:3rem}.info-graphics-container[_ngcontent-%COMP%]{max-height:60rem;min-height:60rem}"],data:{animation:[D._]}})}},9442:(Ue,q,m)=>{"use strict";m.d(q,{w:()=>k});var e=m(9306),t=m(2560),_=m(3547),E=m(3505),s=m(6722),D=m(4522),u=m(2156);class k{constructor(S){this.router=S,this.faTimes=e.NBC}goToHelp(){this.router.navigate(["/help"])}static#e=this.\u0275fac=function(A){return new(A||k)(t.Y36(_.F0))};static#t=this.\u0275cmp=t.Xpm({type:k,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(A,P){1&A&&(t.TgZ(0,"div",0),t._UZ(1,"fa-icon",1),t.TgZ(2,"span",2),t._uU(3,"Page Not Found"),t.qZA()(),t.TgZ(4,"div",3)(5,"mat-card")(6,"mat-card-content",4)(7,"div",5)(8,"div",6),t._uU(9,"This page does not exist!"),t.qZA(),t.TgZ(10,"span",7)(11,"button",8),t.NdJ("click",function(){return P.goToHelp()}),t._uU(12,"Go To Help"),t.qZA()()()()()()),2&A&&(t.xp6(1),t.Q6J("icon",P.faTimes))},dependencies:[E.BN,s.xw,s.Wh,s.yH,D.lW,u.a8,u.dn],encapsulation:2})}},3390:(Ue,q,m)=>{"use strict";m.d(q,{h:()=>t});var e=m(2560);class t{constructor(E){this.el=E}ngAfterContentInit(){setTimeout(()=>{this.el.nativeElement.focus()},500)}static#e=this.\u0275fac=function(s){return new(s||t)(e.Y36(e.SBq))};static#t=this.\u0275dir=e.lG2({type:t,selectors:[["","autoFocus",""]],inputs:{appAutoFocus:"appAutoFocus"}})}},6895:(Ue,q,m)=>{"use strict";m.d(q,{y:()=>t});var e=m(2560);class t{constructor(){this.copied=new e.vpe}onClick(E){E.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))})}static#e=this.\u0275fac=function(s){return new(s||t)};static#t=this.\u0275dir=e.lG2({type:t,selectors:[["","rtlClipboard",""]],hostBindings:function(s,D){1&s&&e.NdJ("click",function(k){return D.onClick(k)})},inputs:{payload:"payload"},outputs:{copied:"copied"}})}},9843:(Ue,q,m)=>{"use strict";m.d(q,{F:()=>_});var e=m(2508),t=m(2560);class _{validate(s){return this.max?e.kI.max(+this.max)(s):null}static#e=this.\u0275fac=function(D){return new(D||_)};static#t=this.\u0275dir=t.lG2({type:_,selectors:[["input","max",""]],inputs:{max:"max"},features:[t._Bn([{provide:e.Cf,useExisting:_,multi:!0}])]})}},6534:(Ue,q,m)=>{"use strict";m.d(q,{q:()=>_});var e=m(2508),t=m(2560);class _{validate(s){return this.min?e.kI.min(+this.min)(s):null}static#e=this.\u0275fac=function(D){return new(D||_)};static#t=this.\u0275dir=t.lG2({type:_,selectors:[["input","min",""]],inputs:{min:"min"},features:[t._Bn([{provide:e.Cf,useExisting:_,multi:!0}])]})}},9445:(Ue,q,m)=>{"use strict";m.d(q,{D3:()=>s,al:()=>t,h9:()=>_,i1:()=>E});var e=m(2560);class t{transform(u,k){return u?.replace(/^[0]+/g,"")}static#e=this.\u0275fac=function(k){return new(k||t)};static#t=this.\u0275pipe=e.Yjl({name:"removeleadingzeros",type:t,pure:!0})}class _{transform(u,k){return u?.replace(/(?:^\w|[A-Z]|\b\w)/g,(p,S)=>p.toUpperCase())?.replace(/\s+/g,"")?.replace(/-/g," ")}static#e=this.\u0275fac=function(k){return new(k||_)};static#t=this.\u0275pipe=e.Yjl({name:"camelcase",type:_,pure:!0})}class E{transform(u,k,p){return u.replace(/(?:^\w|[A-Z]|\b\w)/g,(S,A)=>" "+S.toUpperCase())}static#e=this.\u0275fac=function(k){return new(k||E)};static#t=this.\u0275pipe=e.Yjl({name:"camelCaseWithSpaces",type:E,pure:!0})}class s{transform(u,k,p){return u=u?.toLowerCase().replace(/\s+/g,"")?.replace(/-/g," "),k&&(u=u.replace(new RegExp(k,"g")," ")),p&&(u=u.replace(new RegExp(p,"g")," ")),u.replace(/(?:^\w|[A-Z]|\b\w)/g,(S,A)=>S.toUpperCase())}static#e=this.\u0275fac=function(k){return new(k||s)};static#t=this.\u0275pipe=e.Yjl({name:"camelcaseWithReplace",type:s,pure:!0})}},1643:(Ue,q,m)=>{"use strict";m.d(q,{QM:()=>D,a1:()=>s,eQ:()=>u,fY:()=>k});var e=m(635),t=m(2560),_=m(3547),E=m(5986);class s{constructor(S,A){this.router=S,this.sessionService=A}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))}static#e=this.\u0275fac=function(A){return new(A||s)(t.LFG(_.F0),t.LFG(E.m))};static#t=this.\u0275prov=t.Yz7({token:s,factory:s.\u0275fac})}class D{constructor(S){this.sessionService=S}canActivate(){return!!this.sessionService.watchSession().pipe((0,e.U)(S=>S.lndUnlocked))}static#e=this.\u0275fac=function(A){return new(A||D)(t.LFG(E.m))};static#t=this.\u0275prov=t.Yz7({token:D,factory:D.\u0275fac})}class u{constructor(S){this.sessionService=S}canActivate(){return!!this.sessionService.watchSession().pipe((0,e.U)(S=>S.clUnlocked))}static#e=this.\u0275fac=function(A){return new(A||u)(t.LFG(E.m))};static#t=this.\u0275prov=t.Yz7({token:u,factory:u.\u0275fac})}class k{constructor(S){this.sessionService=S}canActivate(){return!!this.sessionService.watchSession().pipe((0,e.U)(S=>S.eclUnlocked))}static#e=this.\u0275fac=function(A){return new(A||k)(t.LFG(E.m))};static#t=this.\u0275prov=t.Yz7({token:k,factory:k.\u0275fac})}},62:(Ue,q,m)=>{"use strict";m.d(q,{v:()=>A});var e=m(6317),t=m(745),_=m(5474),E=m(9295),s=m(635),D=m(3158),u=m(7731),k=m(2560),p=m(8104),S=m(5043);class A{constructor(M,z){this.dataService=M,this.logger=z,this.currencyUnits=[],this.CurrencyUnitEnum=u.NT,this.conversionData={data:null,last_fetched:null},this.ratesAPIStatus=u.Bn.UN_INITIATED,this.screenSize=u.cu.MD,this.containerSize={width:0,height:0},this.containerSizeUpdated=new e.X(this.containerSize)}getScreenSize(){return this.screenSize}setScreenSize(M){this.screenSize=M}getContainerSize(){return this.containerSize}setContainerSize(M,z){this.containerSize={width:M,height:z},this.logger.info("Container Size: "+JSON.stringify(this.containerSize)),this.containerSizeUpdated.next(this.containerSize)}sortByKey(M,z,I,W="asc"){return"number"===I?"desc"===W?M.sort((Z,Q)=>+Z[z]>+Q[z]?-1:1):M.sort((Z,Q)=>+Z[z]>+Q[z]?1:-1):"desc"===W?M.sort((Z,Q)=>Z[z]>Q[z]?-1:1):M.sort((Z,Q)=>Z[z]>Q[z]?1:-1)}sortDescByKey(M,z){return M.sort((I,W)=>{const Z=+I[z],Q=+W[z];return Z>Q?-1:Z<Q?1:0})}sortAscByKey(M,z){return M.sort((I,W)=>{const Z=+I[z],Q=+W[z];return Z<Q?-1:Z>Q?1:0})}camelCase(M){return M?.replace(/(?:^\w|[A-Z]|\b\w)/g,(z,I)=>z.toUpperCase())?.replace(/\s+/g,"")?.replace(/-/g," ")}titleCase(M,z,I){return z&&I&&""!==z&&""!==I&&(M=M?.replace(new RegExp(z,"g"),I)),M.indexOf("!\n")>0||M.indexOf(".\n")>0?M.split("\n")?.reduce((W,Z)=>W+Z.charAt(0).toUpperCase()+Z.substring(1).toLowerCase()+"\n",""):M.indexOf(" ")>0?M.split(" ")?.reduce((W,Z)=>W+Z.charAt(0).toUpperCase()+Z.substring(1).toLowerCase()+" ",""):M.charAt(0).toUpperCase()+M.substring(1).toLowerCase()}convertCurrency(M,z,I,W,Z){const Q=(new Date).valueOf();return Z&&W&&this.ratesAPIStatus!==u.Bn.INITIATED&&(z===u.NT.OTHER||I===u.NT.OTHER)?this.conversionData.data&&this.conversionData.last_fetched&&Q<this.conversionData.last_fetched+3e5?(0,t.of)(this.convertWithFiat(M,z,W)):(this.ratesAPIStatus=u.Bn.INITIATED,this.dataService.getFiatRates().pipe((0,E.q)(1),(0,s.U)(ie=>(this.ratesAPIStatus=u.Bn.COMPLETED,this.conversionData.data=ie&&"object"==typeof ie?ie:ie&&"string"==typeof ie?JSON.parse(ie):{},this.conversionData.last_fetched=Q,this.convertWithFiat(M,z,W))),(0,D.K)(ie=>(this.ratesAPIStatus=u.Bn.ERROR,(0,_._)(()=>this.extractErrorMessage(ie,"Currency Conversion Error.")))))):(0,t.of)(this.convertWithoutFiat(M,z))}convertWithoutFiat(M,z){const I={};switch(I[u.NT.SATS]=0,I[u.NT.BTC]=0,z){case u.NT.SATS:I[u.NT.SATS]=M,I[u.NT.BTC]=1e-8*M;break;case u.NT.BTC:I[u.NT.SATS]=1e8*M,I[u.NT.BTC]=M}return I}convertWithFiat(M,z,I){const W={unit:I,symbol:this.conversionData.data[I].symbol};switch(W[u.NT.SATS]=0,W[u.NT.BTC]=0,W[u.NT.OTHER]=0,z){case u.NT.SATS:W[u.NT.SATS]=M,W[u.NT.BTC]=1e-8*M,W[u.NT.OTHER]=1e-8*M*this.conversionData.data[I].last;break;case u.NT.BTC:W[u.NT.SATS]=1e8*M,W[u.NT.BTC]=M,W[u.NT.OTHER]=M*this.conversionData.data[I].last;break;case u.NT.OTHER:W[u.NT.SATS]=M/this.conversionData.data[I].last*1e8,W[u.NT.BTC]=M/this.conversionData.data[I].last,W[u.NT.OTHER]=M}return W}convertTime(M,z,I){switch(z){case u.Qk.SECS:switch(I){case u.Qk.MINS:M/=60;break;case u.Qk.HOURS:M/=3600;break;case u.Qk.DAYS:M/=86400}break;case u.Qk.MINS:switch(I){case u.Qk.SECS:M*=60;break;case u.Qk.HOURS:M/=60;break;case u.Qk.DAYS:M/=1440}break;case u.Qk.HOURS:switch(I){case u.Qk.SECS:M*=3600;break;case u.Qk.MINS:M*=60;break;case u.Qk.DAYS:M/=24}break;case u.Qk.DAYS:switch(I){case u.Qk.SECS:M=3600*M*24;break;case u.Qk.MINS:M=60*M*24;break;case u.Qk.HOURS:M*=24}}return M}downloadFile(M,z,I=".json",W=".csv"){let Z=new Blob;Z=".json"===I?new Blob(["\ufeff"+this.convertToCSV(M)],{type:"text/csv;charset=utf-8;"}):new Blob([M.toString()],{type:"text/plain;charset=utf-8"});const Q=document.createElement("a"),ie=URL.createObjectURL(Z);-1!==navigator.userAgent.indexOf("Safari")&&-1===navigator.userAgent.indexOf("Chrome")&&Q.setAttribute("target","_blank"),Q.setAttribute("href",ie),Q.setAttribute("download",z+W),Q.style.visibility="hidden",document.body.appendChild(Q),Q.click(),document.body.removeChild(Q)}convertToCSV(M){const z=[];let I="",W="",Z="";return"object"!=typeof M&&(M=JSON.parse(M)),M.forEach((ie,ae)=>{for(const _e in ie)z.findIndex(ce=>ce===_e)<0&&z.push(_e)}),Z=z.join(",")+"\r\n",M.forEach(ie=>{I="",z.forEach(ae=>{ie.hasOwnProperty(ae)?Array.isArray(ie[ae])?(W="",ie[ae].forEach((_e,ce)=>{W+="object"==typeof _e?"("+JSON.stringify(_e)?.replace(/\,/g,";")+")":"("+_e+")"}),I+=W+","):"object"==typeof ie[ae]?I+=JSON.stringify(ie[ae])?.replace(/\,/g,";")+",":I+=ie[ae]+",":I+=","}),Z+=I.slice(0,-1)+"\r\n"}),Z}isVersionCompatible(M,z){if(M){const I=M.trim()?.replace("v","").split("-")[0].split(".")||[],W=z.split(".");return+I[0]>+W[0]||+I[0]==+W[0]&&+I[1]>+W[1]||+I[0]==+W[0]&&+I[1]==+W[1]&&+I[2]>=+W[2]}return!1}extractErrorMessage(M,z="Unknown Error."){const I=this.titleCase(M.error&&M.error.text&&"string"==typeof M.error.text&&M.error.text.includes('<!DOCTYPE html><html lang="en">')?"API Route Does Not Exist.":M.error&&M.error.error&&M.error.error.error&&M.error.error.error.error&&M.error.error.error.error.error&&"string"==typeof M.error.error.error.error.error?M.error.error.error.error.error:M.error&&M.error.error&&M.error.error.error&&M.error.error.error.error&&"string"==typeof M.error.error.error.error?M.error.error.error.error:M.error&&M.error.error&&M.error.error.error&&"string"==typeof M.error.error.error?M.error.error.error:M.error&&M.error.error&&"string"==typeof M.error.error?M.error.error:M.error&&"string"==typeof M.error?M.error:M.error&&M.error.error&&M.error.error.error&&M.error.error.error.error&&M.error.error.error.error.message&&"string"==typeof M.error.error.error.error.message?M.error.error.error.error.message:M.error&&M.error.error&&M.error.error.error&&M.error.error.error.message&&"string"==typeof M.error.error.error.message?M.error.error.error.message:M.error&&M.error.error&&M.error.error.message&&"string"==typeof M.error.error.message?M.error.error.message:M.error&&M.error.message&&"string"==typeof M.error.message?M.error.message:M.message&&"string"==typeof M.message?M.message:z);return this.logger.info("Error Message: "+I),I}extractErrorCode(M,z=500){const I=M.error&&M.error.error&&M.error.error.message&&M.error.error.message.code?M.error.error.message.code:M.error&&M.error.error&&M.error.error.code?M.error.error.code:M.error&&M.error.code?M.error.code:M.code?M.code:M.status?M.status:z;return this.logger.info("Error Code: "+I),I}extractErrorNumber(M,z=500){const I=M.error&&M.error.error&&M.error.error.errno?M.error.error.errno:M.error&&M.error.errno?M.error.errno:M.errno?M.errno:M.status?M.status:z;return this.logger.info("Error Number: "+I),I}ngOnDestroy(){this.containerSizeUpdated.next(null),this.containerSizeUpdated.complete()}static#e=this.\u0275fac=function(z){return new(z||A)(k.LFG(p.D),k.LFG(S.mQ))};static#t=this.\u0275prov=k.Yz7({token:A,factory:A.\u0275fac})}},7731:(Ue,q,m)=>{"use strict";m.d(q,{$I:()=>o,$v:()=>z,AB:()=>ke,At:()=>ee,Bn:()=>a,Df:()=>je,Dr:()=>S,Er:()=>s,Fq:()=>n,Gi:()=>ce,HW:()=>ue,H_:()=>Ve,IV:()=>u,IX:()=>N,JX:()=>B,LO:()=>D,NT:()=>_e,OJ:()=>ie,OO:()=>Ie,Pi:()=>Ae,Qk:()=>ae,Qw:()=>d,TJ:()=>k,Vc:()=>A,Xk:()=>Re,Xr:()=>F,Xz:()=>E,Zs:()=>w,_t:()=>p,c3:()=>Oe,cu:()=>ye,g8:()=>W,gB:()=>Ze,gG:()=>pe,gK:()=>H,gg:()=>y,hG:()=>j,hZ:()=>xe,hc:()=>h,kO:()=>v,lr:()=>Ke,m6:()=>C,nM:()=>I,n_:()=>Q,ol:()=>Z,op:()=>L,p7:()=>he,pg:()=>X,pt:()=>t,uA:()=>_,uR:()=>Fe,vn:()=>P,wZ:()=>M,x$:()=>$,zZ:()=>te});var e=m(6060);function t(le){const _t=new e.ye;return _t.itemsPerPageLabel=le+" per page:",_t}const _=["Sats","BTC"],E={Sats:"1.0-0",BTC:"1.6-6",OTHER:"1.2-2"},s=[{id:"USD",name:"USD"},{id:"AUD",name:"AUD"},{id:"BRL",name:"BRL"},{id:"CAD",name:"CAD"},{id:"CHF",name:"CHF"},{id:"CLP",name:"CLP"},{id:"CNY",name:"CNY"},{id:"DKK",name:"DKK"},{id:"EUR",name:"EUR"},{id:"GBP",name:"GBP"},{id:"HKD",name:"HKD"},{id:"INR",name:"INR"},{id:"ISK",name:"ISK"},{id:"JPY",name:"JPY"},{id:"KRW",name:"KRW"},{id:"NZD",name:"NZD"},{id:"PLN",name:"PLN"},{id:"RUB",name:"RUB"},{id:"SEK",name:"SEK"},{id:"SGD",name:"SGD"},{id:"THB",name:"THB"},{id:"TWD",name:"TWD"}],D=["SECS","MINS","HOURS","DAYS"],u=10,k=[5,10,25,100],p=[{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"}],S=[{id:"0",name:"Priority (Default)"},{id:"1",name:"Target Confirmation Blocks"},{id:"2",name:"Fee"}],A=[{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"}],P=[{feeRateId:"urgent",feeRateType:"Urgent"},{feeRateId:"normal",feeRateType:"Normal"},{feeRateId:"slow",feeRateType:"Slow"},{feeRateId:"customperkb",feeRateType:"Custom (Sats/vByte)"}],M={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 z,le,I,W,Z,Q,ie,ae,_e,ce,ye;(le=z||(z={})).PAYMENT_RECEIVED="payment-received",le.PAYMENT_RELAYED="payment-relayed",le.PAYMENT_SENT="payment-sent",le.PAYMENT_SETTLING_ONCHAIN="payment-settling-onchain",le.PAYMENT_FAILED="payment-failed",le.CHANNEL_OPENED="channel-opened",le.CHANNEL_STATE_CHANGED="channel-state-changed",le.CHANNEL_CLOSED="channel-closed",function(le){le.INVOICE="invoice",le.BLOCK_HEIGHT="block-height",le.SEND_PAYMENT="send-payment"}(I||(I={})),function(le){le.INVOICE="invoice"}(W||(W={})),function(le){le.OPERATOR="OPERATOR",le.MERCHANT="MERCHANT",le.ALL="ALL"}(Z||(Z={})),function(le){le.INFORMATION="Information",le.WARNING="Warning",le.ERROR="Error",le.SUCCESS="Success",le.CONFIRM="Confirm"}(Q||(Q={})),function(le){le.JWT="JWT",le.PASSWORD="PASSWORD"}(ie||(ie={})),function(le){le.SECS="SECS",le.MINS="MINS",le.HOURS="HOURS",le.DAYS="DAYS"}(ae||(ae={})),function(le){le.SATS="Sats",le.BTC="BTC",le.OTHER="OTHER"}(_e||(_e={})),function(le){le.ARRAY="ARRAY",le.NUMBER="NUMBER",le.STRING="STRING",le.BOOLEAN="BOOLEAN",le.PASSWORD="PASSWORD",le.DATE="DATE",le.DATE_TIME="DATE_TIME"}(ce||(ce={})),function(le){le.XS="XS",le.SM="SM",le.MD="MD",le.LG="LG",le.XL="XL"}(ye||(ye={}));const ue={COOPERATIVE_CLOSE:{name:"Co-operative Close",tooltip:"Channel closed cooperatively"},LOCAL_FORCE_CLOSE:{name:"Local Force Close",tooltip:"Channel force-closed by the local node"},REMOTE_FORCE_CLOSE:{name:"Remote Force Close",tooltip:"Channel force-closed by the remote node"},BREACH_CLOSE:{name:"Breach Close",tooltip:"Remote node attempted to broadcast a prior revoked channel state"},FUNDING_CANCELED:{name:"Funding Canceled",tooltip:"Channel never fully opened"},ABANDONED:{name:"Abandoned",tooltip:"Channel abandoned by the local node"}},$={WITNESS_PUBKEY_HASH:{name:"Witness Pubkey Hash",tooltip:""},NESTED_PUBKEY_HASH:{name:"Nested Pubkey Hash",tooltip:""},UNUSED_WITNESS_PUBKEY_HASH:{name:"Unused Witness Pubkey Hash",tooltip:""},UNUSED_NESTED_PUBKEY_HASH:{name:"Unused Nested Pubkey Hash",tooltip:""},TAPROOT_PUBKEY:{name:"Taproot Pubkey Hash",tooltip:""}};var he,w,n,o,h,d;!function(le){le.WIRE_INVALID_ONION_VERSION="Invalid Onion Version",le.WIRE_INVALID_ONION_HMAC="Invalid Onion HMAC",le.WIRE_INVALID_ONION_KEY="Invalid Onion Key",le.WIRE_TEMPORARY_CHANNEL_FAILURE="Temporary Channel Failure",le.WIRE_PERMANENT_CHANNEL_FAILURE="Permanent Channel Failure",le.WIRE_REQUIRED_CHANNEL_FEATURE_MISSING="Missing Required Channel Feature",le.WIRE_UNKNOWN_NEXT_PEER="Unknown Next Peer",le.WIRE_AMOUNT_BELOW_MINIMUM="Amount Below Minimum",le.WIRE_FEE_INSUFFICIENT="Insufficient Fee",le.WIRE_INCORRECT_CLTV_EXPIRY="Incorrect CLTV Expiry",le.WIRE_EXPIRY_TOO_FAR="Expiry Too Far",le.WIRE_EXPIRY_TOO_SOON="Expiry Too Soon",le.WIRE_CHANNEL_DISABLED="Channel Disabled",le.WIRE_INVALID_ONION_PAYLOAD="Invalid Onion Payload",le.WIRE_INVALID_REALM="Invalid Realm",le.WIRE_PERMANENT_NODE_FAILURE="Permanent Node Failure",le.WIRE_TEMPORARY_NODE_FAILURE="Temporary Node Failure",le.WIRE_REQUIRED_NODE_FEATURE_MISSING="Missing Required Node Feature",le.WIRE_INVALID_ONION_BLINDING="Invalid Onion Binding",le.WIRE_INCORRECT_OR_UNKNOWN_PAYMENT_DETAILS="Incorrect or Unknow Payment Details",le.WIRE_MPP_TIMEOUT="MPP Timeout",le.WIRE_FINAL_INCORRECT_CLTV_EXPIRY="Incorrect CLTV Expiry",le.WIRE_FINAL_INCORRECT_HTLC_AMOUNT="Incorrect HTLC Amount"}(he||(he={})),function(le){le.CHANNELD_NORMAL="Active",le.OPENINGD="Opening",le.CHANNELD_AWAITING_LOCKIN="Pending Open",le.CHANNELD_SHUTTING_DOWN="Shutting Down",le.CLOSINGD_SIGEXCHANGE="Closing: Sig Exchange",le.CLOSINGD_COMPLETE="Closed",le.AWAITING_UNILATERAL="Awaiting Unilateral Close",le.FUNDING_SPEND_SEEN="Funding Spend Seen",le.ONCHAIN="Onchain",le.DUALOPEND_OPEN_INIT="Dual Open Initialized",le.DUALOPEND_AWAITING_LOCKIN="Dual Pending Open"}(w||(w={})),function(le){le.INITIATED="Initiated",le.PREIMAGE_REVEALED="Preimage Revealed",le.HTLC_PUBLISHED="HTLC Published",le.SUCCESS="Successful",le.FAILED="Failed",le.INVOICE_SETTLED="Invoice Settled"}(n||(n={})),function(le){le.LOOP_OUT="LOOP_OUT",le.LOOP_IN="LOOP_IN"}(o||(o={})),function(le){le.SWAP_OUT="SWAP_OUT",le.SWAP_IN="SWAP_IN"}(h||(h={})),function(le){le["swap.created"]="Swap Created",le["swap.expired"]="Swap Expired",le["invoice.set"]="Invoice Set",le["invoice.paid"]="Invoice Paid",le["invoice.pending"]="Invoice Pending",le["invoice.settled"]="Invoice Settled",le["invoice.failedToPay"]="Invoice Failed To Pay",le["channel.created"]="Channel Created",le["transaction.failed"]="Transaction Failed",le["transaction.mempool"]="Transaction Mempool",le["transaction.claimed"]="Transaction Claimed",le["transaction.refunded"]="Transaction Refunded",le["transaction.confirmed"]="Transaction Confirmed",le["swap.refunded"]="Swap Refunded",le["swap.abandoned"]="Swap Abandoned"}(d||(d={}));const y=[{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}],L=["MONTHLY","YEARLY"];var B;!function(le){le.LOOP="LOOP",le.BOLTZ="BOLTZ",le.OFFERS="OFFERS",le.PEERSWAP="PEERSWAP"}(B||(B={}));const v=["password","changeme","moneyprintergobrrr"];var a;!function(le){le.UN_INITIATED="UN_INITIATED",le.INITIATED="INITIATED",le.COMPLETED="COMPLETED",le.ERROR="ERROR"}(a||(a={}));const C={NO_SPINNER:"No Spinner...",GET_NODE_INFO:"Getting Node Information...",INITALIZE_NODE_DATA:"Initializing Node Data...",GENERATE_NEW_ADDRESS:"Getting New Address...",SEND_FUNDS:"Sending Funds...",UPDATE_CHAN_POLICY:"Updating Channel Policy...",GET_CHAN_POLICY:"Fetching Channel Policy...",GET_REMOTE_POLICY:"Fetching Remote Policy...",CLOSE_CHANNEL:"Closing Channel...",FORCE_CLOSE_CHANNEL:"Force Closing Channel...",OPEN_CHANNEL:"Opening Channel...",CONNECT_PEER:"Connecting Peer...",DISCONNECT_PEER:"Disconnecting Peer...",ADD_INVOICE:"Adding Invoice...",CREATE_INVOICE:"Creating Invoice...",DELETE_INVOICE:"Deleting Invoices...",DECODE_PAYMENT:"Decoding Payment...",DECODE_OFFER:"Decoding Offer...",DECODE_PAYMENTS:"Decoding Payments...",FETCH_INVOICE:"Fetching Invoice...",GET_SENT_PAYMENTS:"Getting Sent Payments...",SEND_PAYMENT:"Sending Payment...",SEND_KEYSEND:"Sending Keysend Payment...",SEARCHING_NODE:"Searching Node...",SEARCHING_CHANNEL:"Searching Channel...",SEARCHING_INVOICE:"Searching Invoice...",SEARCHING_PAYMENT:"Searching Payment...",BACKUP_CHANNEL:"Backup Channels...",VERIFY_CHANNEL:"Verify Channel...",DOWNLOAD_BACKUP_FILE:"Downloading Backup File...",RESTORE_CHANNEL:"Restoring Channels...",GET_TERMS_QUOTES:"Getting Terms and Quotes...",LABEL_UTXO:"Labelling UTXO...",GET_NODE_ADDRESS:"Getting Node Address...",GEN_SEED:"Generating Seed...",INITIALIZE_WALLET:"Initializing Wallet...",UNLOCK_WALLET:"Unlocking Wallet...",WAIT_SYNC_NODE:"Waiting for Node Sync...",UPDATE_BOLTZ_SETTINGS:"Updating Boltz Service Settings...",UPDATE_LOOP_SETTINGS:"Updating Loop Service Settings...",UPDATE_PEERSWAP_SETTINGS:"Updating Peerswap Service Settings...",UPDATE_SETTING:"Updating Setting...",UPDATE_UI_SETTINGS:"Updating Settings...",UPDATE_NODE_SETTINGS:"Updating Node Settings...",UPDATE_SELECTED_NODE:"Updating Selected Node...",OPEN_CONFIG_FILE:"Opening Config File...",GET_SERVICE_INFO:"Getting Service Info...",GET_QUOTE:"Getting Quotes...",UPDATE_DEFAULT_NODE_SETTING:"Updating Defaule Node Settings...",GET_BOLTZ_SWAPS:"Getting Boltz Swaps...",SIGN_MESSAGE:"Signing Message...",VERIFY_MESSAGE:"Verifying Message...",BUMP_FEE:"Bumping Fee...",LEASE_UTXO:"Leasing UTXO...",GET_LOOP_SWAPS:"Getting List Swaps...",GET_FORWARDING_HISTORY:"Getting Forwarding History...",GET_LOOKUP_DETAILS:"Getting Lookup Details...",GET_RTL_CONFIG:"Getting RTL Config...",VERIFY_TOKEN:"Verify Token...",DISABLE_OFFER:"Disabling Offer...",CREATE_OFFER:"Creating Offer...",DELETE_OFFER_BOOKMARK:"Deleting Bookmark...",GET_FUNDER_POLICY:"Getting Or Updating Funder Policy...",GET_LIST_CONFIGS:"Getting Configurations List...",LIST_NETWORK_NODES:"Getting Network Nodes List...",GET_PAGE_SETTINGS:"Getting Page Settings...",SET_PAGE_SETTINGS:"Setting Page Settings...",UPDATE_PAGE_SETTINGS:"Updating Page Layout...",LOG_OUT:"Logging Out..."};var N,F,X,Fe,ke,Ke;!function(le){le.INVOICE="INVOICE",le.OFFER="OFFER",le.KEYSEND="KEYSEND"}(N||(N={})),function(le){le.FEES="FEES",le.EVENTS="EVENTS"}(F||(F={})),function(le){le.VOID="VOID",le.SET_API_URL_ECL="SET_API_URL_ECL",le.UPDATE_SELECTED_NODE_OPTIONS="UPDATE_SELECTED_NODE_OPTIONS",le.UPDATE_API_CALL_STATUS_ROOT="UPDATE_API_CALL_STATUS_ROOT",le.RESET_ROOT_STORE="RESET_ROOT_STORE",le.CLOSE_ALL_DIALOGS="CLOSE_ALL_DIALOGS",le.OPEN_SNACK_BAR="OPEN_SNACKBAR",le.OPEN_SPINNER="OPEN_SPINNER",le.CLOSE_SPINNER="CLOSE_SPINNER",le.OPEN_ALERT="OPEN_ALERT",le.CLOSE_ALERT="CLOSE_ALERT",le.OPEN_CONFIRMATION="OPEN_CONFIRMATION",le.CLOSE_CONFIRMATION="CLOSE_CONFIRMATION",le.SHOW_PUBKEY="SHOW_PUBKEY",le.FETCH_CONFIG="FETCH_CONFIG",le.SHOW_CONFIG="SHOW_CONFIG",le.FETCH_STORE="FETCH_STORE",le.SET_STORE="SET_STORE",le.FETCH_RTL_CONFIG="FETCH_RTL_CONFIG",le.SET_RTL_CONFIG="SET_RTL_CONFIG",le.SAVE_SSO="SAVE_SSO",le.SAVE_SETTINGS="SAVE_SETTINGS",le.TWO_FA_SAVE_SETTINGS="TWO_FA_SAVE_SETTINGS",le.SET_SELECTED_NODE="SET_SELECTED_NODE",le.UPDATE_ROOT_NODE_SETTINGS="UPDATE_ROOT_NODE_SETTINGS",le.UPDATE_SERVICE_SETTINGS="UPDATE_SERVICE_SETTINGS",le.SET_NODE_DATA="SET_NODE_DATA",le.IS_AUTHORIZED="IS_AUTHORIZED",le.IS_AUTHORIZED_RES="IS_AUTHORIZED_RES",le.LOGIN="LOGIN",le.VERIFY_TWO_FA="VERIFY_TWO_FA",le.LOGOUT="LOGOUT",le.RESET_PASSWORD="RESET_PASSWORD",le.RESET_PASSWORD_RES="RESET_PASSWORD_RES",le.FETCH_FILE="FETCH_FILE",le.SHOW_FILE="SHOW_FILE"}(X||(X={})),function(le){le.RESET_LND_STORE="RESET_LND_STORE",le.UPDATE_API_CALL_STATUS_LND="UPDATE_API_CALL_STATUS_LND",le.SET_CHILD_NODE_SETTINGS_LND="SET_CHILD_NODE_SETTINGS_LND",le.FETCH_PAGE_SETTINGS_LND="FETCH_PAGE_SETTINGS_LND",le.SET_PAGE_SETTINGS_LND="SET_PAGE_SETTINGS_LND",le.SAVE_PAGE_SETTINGS_LND="SAVE_PAGE_SETTINGS_LND",le.FETCH_INFO_LND="FETCH_INFO_LND",le.SET_INFO_LND="SET_INFO_LND",le.FETCH_PEERS_LND="FETCH_PEERS_LND",le.SET_PEERS_LND="SET_PEERS_LND",le.SAVE_NEW_PEER_LND="SAVE_NEW_PEER_LND",le.NEWLY_ADDED_PEER_LND="NEWLY_ADDED_PEER_LND",le.DETACH_PEER_LND="DETACH_PEER_LND",le.REMOVE_PEER_LND="REMOVE_PEER_LND",le.SAVE_NEW_INVOICE_LND="SAVE_NEW_INVOICE_LND",le.NEWLY_SAVED_INVOICE_LND="NEWLY_SAVED_INVOICE_LND",le.ADD_INVOICE_LND="ADD_INVOICE_LND",le.FETCH_FEES_LND="FETCH_FEES_LND",le.SET_FEES_LND="SET_FEES_LND",le.FETCH_BLOCKCHAIN_BALANCE_LND="FETCH_BLOCKCHAIN_BALANCE_LND",le.SET_BLOCKCHAIN_BALANCE_LND="SET_BLOCKCHAIN_BALANCE_LND",le.FETCH_NETWORK_LND="FETCH_NETWORK_LND",le.SET_NETWORK_LND="SET_NETWORK_LND",le.FETCH_CHANNELS_LND="FETCH_CHANNELS_LND",le.FETCH_PENDING_CHANNELS_LND="FETCH_PENDING_CHANNELS_LND",le.FETCH_CLOSED_CHANNELS_LND="FETCH_CLOSED_CHANNELS_LND",le.SET_CHANNELS_LND="SET_CHANNELS_LND",le.SET_PENDING_CHANNELS_LND="SET_PENDING_CHANNELS_LND",le.SET_CLOSED_CHANNELS_LND="SET_CLOSED_CHANNELS_LND",le.UPDATE_CHANNEL_LND="UPDATE_CHANNEL_LND",le.SAVE_NEW_CHANNEL_LND="SAVE_NEW_CHANNEL_LND",le.CLOSE_CHANNEL_LND="CLOSE_CHANNEL_LND",le.REMOVE_CHANNEL_LND="REMOVE_CHANNEL_LND",le.BACKUP_CHANNELS_LND="BACKUP_CHANNELS_LND",le.VERIFY_CHANNEL_LND="VERIFY_CHANNEL_LND",le.BACKUP_CHANNELS_RES_LND="BACKUP_CHANNELS_RES_LND",le.VERIFY_CHANNEL_RES_LND="VERIFY_CHANNEL_RES_LND",le.RESTORE_CHANNELS_LIST_LND="RESTORE_CHANNELS_LIST_LND",le.SET_RESTORE_CHANNELS_LIST_LND="SET_RESTORE_CHANNELS_LIST_LND",le.RESTORE_CHANNELS_LND="RESTORE_CHANNELS_LND",le.RESTORE_CHANNELS_RES_LND="RESTORE_CHANNELS_RES_LND",le.FETCH_INVOICES_LND="FETCH_INVOICES_LND",le.SET_INVOICES_LND="SET_INVOICES_LND",le.UPDATE_INVOICE_LND="UPDATE_INVOICE_LND",le.UPDATE_PAYMENT_LND="UPDATE_PAYMENT_LND",le.SET_TOTAL_INVOICES_LND="SET_TOTAL_INVOICES_LND",le.FETCH_TRANSACTIONS_LND="FETCH_TRANSACTIONS_LND",le.SET_TRANSACTIONS_LND="SET_TRANSACTIONS_LND",le.FETCH_UTXOS_LND="FETCH_UTXOS_LND",le.SET_UTXOS_LND="SET_UTXOS_LND",le.FETCH_PAYMENTS_LND="FETCH_PAYMENTS_LND",le.SET_PAYMENTS_LND="SET_PAYMENTS_LND",le.SEND_PAYMENT_LND="SEND_PAYMENT_LND",le.SEND_PAYMENT_STATUS_LND="SEND_PAYMENT_STATUS_LND",le.FETCH_GRAPH_NODE_LND="FETCH_GRAPH_NODE_LND",le.SET_GRAPH_NODE_LND="SET_GRAPH_NODE_LND",le.GET_NEW_ADDRESS_LND="GET_NEW_ADDRESS_LND",le.SET_NEW_ADDRESS_LND="SET_NEW_ADDRESS_LND",le.SET_CHANNEL_TRANSACTION_LND="SET_CHANNEL_TRANSACTION_LND",le.SET_CHANNEL_TRANSACTION_RES_LND="SET_CHANNEL_TRANSACTION_RES_LND",le.GEN_SEED_LND="GEN_SEED_LND",le.GEN_SEED_RESPONSE_LND="GEN_SEED_RESPONSE_LND",le.INIT_WALLET_LND="INIT_WALLET_LND",le.INIT_WALLET_RESPONSE_LND="INIT_WALLET_RESPONSE_LND",le.UNLOCK_WALLET_LND="UNLOCK_WALLET_LND",le.PEER_LOOKUP_LND="PEER_LOOKUP_LND",le.CHANNEL_LOOKUP_LND="CHANNEL_LOOKUP_LND",le.INVOICE_LOOKUP_LND="INVOICE_LOOKUP_LND",le.PAYMENT_LOOKUP_LND="PAYMENT_LOOKUP_LND",le.SET_LOOKUP_LND="SET_LOOKUP_LND",le.GET_FORWARDING_HISTORY_LND="GET_FORWARDING_HISTORY_LND",le.SET_FORWARDING_HISTORY_LND="SET_FORWARDING_HISTORY_LND",le.GET_QUERY_ROUTES_LND="GET_QUERY_ROUTES_LND",le.SET_QUERY_ROUTES_LND="SET_QUERY_ROUTES_LND",le.GET_ALL_LIGHTNING_TRANSATIONS_LND="GET_ALL_LIGHTNING_TRANSATIONS_LND",le.SET_ALL_LIGHTNING_TRANSATIONS_LND="SET_ALL_LIGHTNING_TRANSATIONS_LND"}(Fe||(Fe={})),function(le){le.RESET_CLN_STORE="RESET_CLN_STORE",le.UPDATE_API_CALL_STATUS_CLN="UPDATE_API_CALL_STATUS_CLN",le.SET_CHILD_NODE_SETTINGS_CLN="SET_CHILD_NODE_SETTINGS_CLN",le.FETCH_PAGE_SETTINGS_CLN="FETCH_PAGE_SETTINGS_CLN",le.SET_PAGE_SETTINGS_CLN="SET_PAGE_SETTINGS_CLN",le.SAVE_PAGE_SETTINGS_CLN="SAVE_PAGE_SETTINGS_CLN",le.FETCH_INFO_CLN="FETCH_INFO_CL_CLN",le.SET_INFO_CLN="SET_INFO_CLN",le.FETCH_FEES_CLN="FETCH_FEES_CLN",le.SET_FEES_CLN="SET_FEES_CLN",le.FETCH_FEE_RATES_CLN="FETCH_FEE_RATES_CLN",le.SET_FEE_RATES_CLN="SET_FEE_RATES_CLN",le.FETCH_BALANCE_CLN="FETCH_BALANCE_CLN",le.SET_BALANCE_CLN="SET_BALANCE_CLN",le.FETCH_LOCAL_REMOTE_BALANCE_CLN="FETCH_LOCAL_REMOTE_BALANCE_CLN",le.SET_LOCAL_REMOTE_BALANCE_CLN="SET_LOCAL_REMOTE_BALANCE_CLN",le.GET_NEW_ADDRESS_CLN="GET_NEW_ADDRESS_CLN",le.SET_NEW_ADDRESS_CLN="SET_NEW_ADDRESS_CLN",le.FETCH_UTXOS_CLN="FETCH_UTXOS_CLN",le.SET_UTXOS_CLN="SET_UTXOS_CLN",le.FETCH_PEERS_CLN="FETCH_PEERS_CLN",le.SET_PEERS_CLN="SET_PEERS_CLN",le.SAVE_NEW_PEER_CLN="SAVE_NEW_PEER_CLN",le.NEWLY_ADDED_PEER_CLN="NEWLY_ADDED_PEER_CLN",le.ADD_PEER_CLN="ADD_PEER_CLN",le.DETACH_PEER_CLN="DETACH_PEER_CLN",le.REMOVE_PEER_CLN="REMOVE_PEER_CLN",le.FETCH_CHANNELS_CLN="FETCH_CHANNELS_CLN",le.SET_CHANNELS_CLN="SET_CHANNELS_CLN",le.UPDATE_CHANNEL_CLN="UPDATE_CHANNEL_CLN",le.SAVE_NEW_CHANNEL_CLN="SAVE_NEW_CHANNEL_CLN",le.CLOSE_CHANNEL_CLN="CLOSE_CHANNEL_CLN",le.REMOVE_CHANNEL_CLN="REMOVE_CHANNEL_CLN",le.FETCH_PAYMENTS_CLN="FETCH_PAYMENTS_CLN",le.SET_PAYMENTS_CLN="SET_PAYMENTS_CLN",le.SEND_PAYMENT_CLN="SEND_PAYMENT_CLN",le.SEND_PAYMENT_STATUS_CLN="SEND_PAYMENT_STATUS_CLN",le.GET_QUERY_ROUTES_CLN="GET_QUERY_ROUTES_CLN",le.SET_QUERY_ROUTES_CLN="SET_QUERY_ROUTES_CLN",le.PEER_LOOKUP_CLN="PEER_LOOKUP_CLN",le.CHANNEL_LOOKUP_CLN="CHANNEL_LOOKUP_CLN",le.INVOICE_LOOKUP_CLN="INVOICE_LOOKUP_CLN",le.SET_LOOKUP_CLN="SET_LOOKUP_CLN",le.GET_FORWARDING_HISTORY_CLN="GET_FORWARDING_HISTORY_CLN",le.SET_FORWARDING_HISTORY_CLN="SET_FORWARDING_HISTORY_CLN",le.GET_FAILED_FORWARDING_HISTORY_CLN="GET_FAILED_FORWARDING_HISTORY_CLN",le.SET_FAILED_FORWARDING_HISTORY_CLN="SET_FAILED_FORWARDING_HISTORY_CLN",le.GET_LOCAL_FAILED_FORWARDING_HISTORY_CLN="GET_LOCAL_FAILED_FORWARDING_HISTORY_CLN",le.SET_LOCAL_FAILED_FORWARDING_HISTORY_CLN="SET_LOCAL_FAILED_FORWARDING_HISTORY_CLN",le.FETCH_INVOICES_CLN="FETCH_INVOICES_CLN",le.SET_INVOICES_CLN="SET_INVOICES_CLN",le.SAVE_NEW_INVOICE_CLN="SAVE_NEW_INVOICE_CLN",le.ADD_INVOICE_CLN="ADD_INVOICE_CLN",le.UPDATE_INVOICE_CLN="UPDATE_INVOICE_CLN",le.DELETE_EXPIRED_INVOICE_CLN="DELETE_EXPIRED_INVOICE_CLN",le.SET_CHANNEL_TRANSACTION_CLN="SET_CHANNEL_TRANSACTION_CLN",le.SET_CHANNEL_TRANSACTION_RES_CLN="SET_CHANNEL_TRANSACTION_RES_CLN",le.FETCH_OFFER_INVOICE_CLN="FETCH_OFFER_INVOICE_CLN",le.SET_OFFER_INVOICE_CLN="SET_OFFER_INVOICE_CLN",le.FETCH_OFFERS_CLN="FETCH_OFFERS_CLN",le.SET_OFFERS_CLN="SET_OFFERS_CLN",le.SAVE_NEW_OFFER_CLN="SAVE_NEW_OFFER_CLN",le.ADD_OFFER_CLN="ADD_OFFER_CLN",le.DISABLE_OFFER_CLN="DISABLE_OFFER_CLN",le.UPDATE_OFFER_CLN="UPDATE_OFFER_CLN",le.FETCH_OFFER_BOOKMARKS_CLN="FETCH_OFFER_BOOKMARKS_CLN",le.SET_OFFER_BOOKMARKS_CLN="SET_OFFER_BOOKMARKS_CLN",le.ADD_UPDATE_OFFER_BOOKMARK_CLN="ADD_UPDATE_OFFER_BOOKMARK_CLN",le.DELETE_OFFER_BOOKMARK_CLN="DELETE_OFFER_BOOKMARK_CLN",le.REMOVE_OFFER_BOOKMARK_CLN="REMOVE_OFFER_BOOKMARK_CL"}(ke||(ke={})),function(le){le.RESET_ECL_STORE="RESET_ECL_STORE",le.UPDATE_API_CALL_STATUS_ECL="UPDATE_API_CALL_STATUS_ECL",le.SET_CHILD_NODE_SETTINGS_ECL="SET_CHILD_NODE_SETTINGS_ECL",le.FETCH_PAGE_SETTINGS_ECL="FETCH_PAGE_SETTINGS_ECL",le.SET_PAGE_SETTINGS_ECL="SET_PAGE_SETTINGS_ECL",le.SAVE_PAGE_SETTINGS_ECL="SAVE_PAGE_SETTINGS_ECL",le.FETCH_INFO_ECL="FETCH_INFO_ECL",le.SET_INFO_ECL="SET_INFO_ECL",le.FETCH_FEES_ECL="FETCH_FEES_ECL",le.SET_FEES_ECL="SET_FEES_ECL",le.FETCH_CHANNELS_ECL="FETCH_CHANNELS_ECL",le.SET_ACTIVE_CHANNELS_ECL="SET_ACTIVE_CHANNELS_ECL",le.SET_PENDING_CHANNELS_ECL="SET_PENDING_CHANNELS_ECL",le.SET_INACTIVE_CHANNELS_ECL="SET_INACTIVE_CHANNELS_ECL",le.FETCH_ONCHAIN_BALANCE_ECL="FETCH_ONCHAIN_BALANCE_ECL",le.SET_ONCHAIN_BALANCE_ECL="SET_ONCHAIN_BALANCE_ECL",le.FETCH_LIGHTNING_BALANCE_ECL="FETCH_LIGHTNING_BALANCE_ECL",le.SET_LIGHTNING_BALANCE_ECL="SET_LIGHTNING_BALANCE_ECL",le.SET_CHANNELS_STATUS_ECL="SET_CHANNELS_STATUS_ECL",le.FETCH_PEERS_ECL="FETCH_PEERS_ECL",le.SET_PEERS_ECL="SET_PEERS_ECL",le.SAVE_NEW_PEER_ECL="SAVE_NEW_PEER_ECL",le.NEWLY_ADDED_PEER_ECL="NEWLY_ADDED_PEER_ECL",le.ADD_PEER_ECL="ADD_PEER_ECL",le.DETACH_PEER_ECL="DETACH_PEER_ECL",le.REMOVE_PEER_ECL="REMOVE_PEER_ECL",le.GET_NEW_ADDRESS_ECL="GET_NEW_ADDRESS_ECL",le.SET_NEW_ADDRESS_ECL="SET_NEW_ADDRESS_ECL",le.SAVE_NEW_CHANNEL_ECL="SAVE_NEW_CHANNEL_ECL",le.UPDATE_CHANNEL_ECL="UPDATE_CHANNEL_ECL",le.CLOSE_CHANNEL_ECL="CLOSE_CHANNEL_ECL",le.REMOVE_CHANNEL_ECL="REMOVE_CHANNEL_ECL",le.FETCH_PAYMENTS_ECL="FETCH_PAYMENTS_ECL",le.SET_PAYMENTS_ECL="SET_PAYMENTS_ECL",le.GET_QUERY_ROUTES_ECL="GET_QUERY_ROUTES_ECL",le.SET_QUERY_ROUTES_ECL="SET_QUERY_ROUTES_ECL",le.SEND_PAYMENT_ECL="SEND_PAYMENT_ECL",le.SEND_PAYMENT_STATUS_ECL="SEND_PAYMENT_STATUS_ECL",le.FETCH_TRANSACTIONS_ECL="FETCH_TRANSACTIONS_ECL",le.SET_TRANSACTIONS_ECL="SET_TRANSACTIONS_ECL",le.SEND_ONCHAIN_FUNDS_ECL="SEND_ONCHAIN_FUNDS_ECL",le.SEND_ONCHAIN_FUNDS_RES_ECL="SEND_ONCHAIN_FUNDS_RES_ECL",le.FETCH_INVOICES_ECL="FETCH_INVOICES_ECL",le.SET_INVOICES_ECL="SET_INVOICES_ECL",le.SET_TOTAL_INVOICES_ECL="SET_TOTAL_INVOICES_ECL",le.CREATE_INVOICE_ECL="CREATE_INVOICE_ECL",le.ADD_INVOICE_ECL="ADD_INVOICE_ECL",le.UPDATE_INVOICE_ECL="UPDATE_INVOICE_ECL",le.PEER_LOOKUP_ECL="PEER_LOOKUP_ECL",le.INVOICE_LOOKUP_ECL="INVOICE_LOOKUP_ECL",le.SET_LOOKUP_ECL="SET_LOOKUP_ECL",le.UPDATE_CHANNEL_STATE_ECL="UPDATE_CHANNEL_STATE_ECL",le.UPDATE_RELAYED_PAYMENT_ECL="UPDATE_RELAYED_PAYMENT_ECL"}(Ke||(Ke={}));const je=[{range:{min:0,max:1},description:"Requires or supports extra channel re-establish fields"},{range:{min:4,max:5},description:"Commits to a shutdown script pubkey when opening channel"},{range:{min:6,max:7},description:"More sophisticated gossip control"},{range:{min:8,max:9},description:"Requires/supports variable-length routing onion payloads"},{range:{min:10,max:11},description:"Gossip queries can include additional information"},{range:{min:12,max:13},description:"Static key for remote output"},{range:{min:14,max:15},description:"Node supports payment secret field"},{range:{min:16,max:17},description:"Node can receive basic multi-part payments"},{range:{min:18,max:19},description:"Node can create large channels"},{range:{min:20,max:21},description:"Anchor outputs"},{range:{min:22,max:23},description:"Anchor commitment type with zero fee HTLC transactions"},{range:{min:26,max:27},description:"Future segwit versions allowed in shutdown"}];var Ve,xe;!function(le){le.gossip_queries_ex="Gossip queries including additional information",le.option_anchor_outputs="Anchor outputs",le.option_data_loss_protect="Extra channel re-establish fields",le.var_onion_optin="Variable-length routing onion payloads",le.option_static_remotekey="Static key for remote output",le.option_support_large_channel="Create large channels",le.option_anchors_zero_fee_htlc_tx="Anchor commitment type with zero fee HTLC transactions",le.payment_secret="Payment secret field",le.option_shutdown_anysegwit="Future segwit versions allowed in shutdown",le.basic_mpp="Basic multi-part payments",le.gossip_queries="More sophisticated gossip control",le.option_upfront_shutdown_script="Shutdown script pubkey when opening channel",le.anchors_zero_fee_htlc_tx="Anchor commitment type with zero fee HTLC transactions",le.amp="AMP"}(Ve||(Ve={})),function(le){le["data-loss-protect"]="Extra channel re-establish fields",le["upfront-shutdown-script"]="Shutdown script pubkey when opening channel",le["gossip-queries"]="More sophisticated gossip control",le["tlv-onion"]="Variable-length routing onion payloads",le["ext-gossip-queries"]="Gossip queries can include additional information",le["static-remote-key"]="Static key for remote output",le["payment-addr"]="Payment secret field",le["multi-path-payments"]="Basic multi-part payments",le["wumbo-channels"]="Wumbo Channels",le.anchors="Anchor outputs",le["anchors-zero-fee-htlc-tx"]="Anchor commitment type with zero fee HTLC transactions",le.amp="AMP"}(xe||(xe={}));const Ze=[{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 Ie,ve,et,ht,Le,Ae;!function(le){le.OFFERED="offered",le.SETTLED="settled",le.FAILED="failed",le.LOCAL_FAILED="local_failed"}(Ie||(Ie={})),function(le){le.SWAP_OUT="swap-out",le.SWAP_IN="swap-in"}(ve||(ve={})),function(le){le.SENDER="sender",le.RECEIVER="receiver"}(et||(et={})),function(le){le.SWAP_CANCELED="State_SwapCanceled"}(ht||(ht={})),function(le){le.ALLOWED="allowed",le.SUSPICIOUS="suspicious"}(Le||(Le={})),function(le){le.ASCENDING="asc",le.DESCENDING="desc"}(Ae||(Ae={}));const te=["asc","desc"],pe=[{pageId:"on_chain",tables:[{tableId:"utxos",recordsPerPage:u,sortBy:"blockheight",sortOrder:Ae.DESCENDING,columnSelectionSM:["txid","value"],columnSelection:["txid","output","value","blockheight"]},{tableId:"dust_utxos",recordsPerPage:u,sortBy:"blockheight",sortOrder:Ae.DESCENDING,columnSelectionSM:["txid","value"],columnSelection:["txid","output","value","blockheight"]}]},{pageId:"peers_channels",tables:[{tableId:"open_channels",recordsPerPage:u,sortBy:"msatoshi_to_us",sortOrder:Ae.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:u,sortBy:"state",sortOrder:Ae.DESCENDING,columnSelectionSM:["alias","state"],columnSelection:["alias","connected","state","msatoshi_total"]},{tableId:"peers",recordsPerPage:u,sortBy:"alias",sortOrder:Ae.ASCENDING,columnSelectionSM:["alias","id"],columnSelection:["alias","id","netaddr"]}]},{pageId:"liquidity_ads",tables:[{tableId:"liquidity_ads",recordsPerPage:u,sortBy:"channel_opening_fee",sortOrder:Ae.ASCENDING,columnSelectionSM:["alias","channel_opening_fee"],columnSelection:["alias","last_timestamp","lease_fee","routing_fee","channel_opening_fee"]}]},{pageId:"transactions",tables:[{tableId:"payments",recordsPerPage:u,sortBy:"created_at",sortOrder:Ae.DESCENDING,columnSelectionSM:["created_at","msatoshi"],columnSelection:["created_at","type","payment_hash","msatoshi_sent","msatoshi"]},{tableId:"invoices",recordsPerPage:u,sortBy:"expires_at",sortOrder:Ae.DESCENDING,columnSelectionSM:["expires_at","msatoshi"],columnSelection:["expires_at","paid_at","type","description","msatoshi","msatoshi_received"]},{tableId:"offers",recordsPerPage:u,sortBy:"offer_id",sortOrder:Ae.DESCENDING,columnSelectionSM:["offer_id","single_use"],columnSelection:["offer_id","single_use","used"]},{tableId:"offer_bookmarks",recordsPerPage:u,sortBy:"lastUpdatedAt",sortOrder:Ae.DESCENDING,columnSelectionSM:["lastUpdatedAt","amountMSat"],columnSelection:["lastUpdatedAt","title","description","amountMSat"]}]},{pageId:"routing",tables:[{tableId:"forwarding_history",recordsPerPage:u,sortBy:"received_time",sortOrder:Ae.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:u,sortBy:"total_fee",sortOrder:Ae.DESCENDING,columnSelectionSM:["alias","events","total_fee"],columnSelection:["channel_id","alias","events","total_amount","total_fee"]},{tableId:"failed",recordsPerPage:u,sortBy:"received_time",sortOrder:Ae.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:u,sortBy:"received_time",sortOrder:Ae.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:u,sortBy:"received_time",sortOrder:Ae.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:u,sortBy:"date",sortOrder:Ae.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:u,sortBy:"msatoshi",sortOrder:Ae.DESCENDING,columnSelectionSM:["alias","direction","msatoshi"],columnSelection:["alias","channel","direction","delay","msatoshi"]}]},{pageId:"peerswap",tables:[{tableId:"swaps",recordsPerPage:u,sortBy:"created_at",sortOrder:Ae.DESCENDING,columnSelectionSM:["id","state","amount"],columnSelection:["id","alias","short_channel_id","created_at","state","amount"]}]}],ee={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"}]}},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:"vendor"},{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"}]}}},H=[{pageId:"on_chain",tables:[{tableId:"utxos",recordsPerPage:u,sortBy:"tx_id",sortOrder:Ae.DESCENDING,columnSelectionSM:["output","amount_sat","confirmations"],columnSelection:["tx_id","output","label","amount_sat","confirmations"]},{tableId:"transactions",recordsPerPage:u,sortBy:"time_stamp",sortOrder:Ae.DESCENDING,columnSelectionSM:["time_stamp","amount","num_confirmations"],columnSelection:["time_stamp","label","amount","total_fees","block_height","num_confirmations"]},{tableId:"dust_utxos",recordsPerPage:u,sortBy:"tx_id",sortOrder:Ae.DESCENDING,columnSelectionSM:["output","amount_sat","confirmations"],columnSelection:["tx_id","output","label","amount_sat","confirmations"]}]},{pageId:"peers_channels",tables:[{tableId:"open",recordsPerPage:u,sortBy:"balancedness",sortOrder:Ae.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:Ae.DESCENDING,columnSelectionSM:["remote_alias","capacity"],columnSelection:["remote_alias","commit_fee","commit_weight","capacity"]},{tableId:"pending_force_closing",sortBy:"limbo_balance",sortOrder:Ae.DESCENDING,columnSelectionSM:["remote_alias","limbo_balance"],columnSelection:["remote_alias","recovered_balance","limbo_balance","capacity"]},{tableId:"pending_closing",sortBy:"capacity",sortOrder:Ae.DESCENDING,columnSelectionSM:["remote_alias","capacity"],columnSelection:["remote_alias","local_balance","remote_balance","capacity"]},{tableId:"pending_waiting_close",sortBy:"limbo_balance",sortOrder:Ae.DESCENDING,columnSelectionSM:["remote_alias","limbo_balance"],columnSelection:["remote_alias","limbo_balance","local_balance","remote_balance"]},{tableId:"closed",recordsPerPage:u,sortBy:"close_type",sortOrder:Ae.DESCENDING,columnSelectionSM:["remote_alias","settled_balance"],columnSelection:["close_type","remote_alias","capacity","close_height","settled_balance"]},{tableId:"active_HTLCs",recordsPerPage:u,sortBy:"expiration_height",sortOrder:Ae.DESCENDING,columnSelectionSM:["amount","incoming","expiration_height"],columnSelection:["amount","incoming","expiration_height","hash_lock"]},{tableId:"peers",recordsPerPage:u,sortBy:"alias",sortOrder:Ae.DESCENDING,columnSelectionSM:["alias","sat_sent","sat_recv"],columnSelection:["alias","pub_key","sat_sent","sat_recv","ping_time"]}]},{pageId:"transactions",tables:[{tableId:"payments",recordsPerPage:u,sortBy:"creation_date",sortOrder:Ae.DESCENDING,columnSelectionSM:["creation_date","fee","value"],columnSelection:["creation_date","payment_hash","fee","value","hops"]},{tableId:"invoices",recordsPerPage:u,sortBy:"creation_date",sortOrder:Ae.DESCENDING,columnSelectionSM:["creation_date","settle_date","value"],columnSelection:["creation_date","settle_date","memo","value","amt_paid_sat"]}]},{pageId:"routing",tables:[{tableId:"forwarding_history",recordsPerPage:u,sortBy:"timestamp",sortOrder:Ae.DESCENDING,columnSelectionSM:["timestamp","amt_in","amt_out"],columnSelection:["timestamp","alias_in","alias_out","amt_in","amt_out","fee_msat"]},{tableId:"routing_peers",recordsPerPage:u,sortBy:"total_amount",sortOrder:Ae.DESCENDING,columnSelectionSM:["alias","events","total_amount"],columnSelection:["chan_id","alias","events","total_amount"]},{tableId:"non_routing_peers",recordsPerPage:u,sortBy:"remote_alias",sortOrder:Ae.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:u,sortBy:"timestamp",sortOrder:Ae.DESCENDING,columnSelectionSM:["timestamp","amt_in","amt_out"],columnSelection:["timestamp","alias_in","alias_out","amt_in","amt_out","fee_msat"]},{tableId:"transactions",recordsPerPage:u,sortBy:"date",sortOrder:Ae.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:u,sortBy:"hop_sequence",sortOrder:Ae.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:u,sortBy:"initiation_time",sortOrder:Ae.DESCENDING,columnSelectionSM:["state","amt"],columnSelection:["state","initiation_time","amt","cost_server","cost_offchain","cost_onchain"]}]},{pageId:"boltz",tables:[{tableId:"swap_out",recordsPerPage:u,sortBy:"status",sortOrder:Ae.DESCENDING,columnSelectionSM:["status","id","onchainAmount"],columnSelection:["status","id","claimAddress","onchainAmount","timeoutBlockHeight"]},{tableId:"swap_in",recordsPerPage:u,sortBy:"status",sortOrder:Ae.DESCENDING,columnSelectionSM:["status","id","expectedAmount"],columnSelection:["status","id","lockupAddress","expectedAmount","timeoutBlockHeight"]}]}],j={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"}]}}},Oe=[{pageId:"on_chain",tables:[{tableId:"transaction",recordsPerPage:u,sortBy:"timestamp",sortOrder:Ae.DESCENDING,columnSelectionSM:["timestamp","amount"],columnSelection:["timestamp","address","amount","fees","confirmations"]}]},{pageId:"peers_channels",tables:[{tableId:"open_channels",recordsPerPage:u,sortBy:"alias",sortOrder:Ae.DESCENDING,columnSelectionSM:["alias","toLocal","toRemote"],columnSelection:["shortChannelId","alias","feeBaseMsat","feeProportionalMillionths","toLocal","toRemote","balancedness"]},{tableId:"pending_channels",recordsPerPage:u,sortBy:"alias",sortOrder:Ae.DESCENDING,columnSelectionSM:["state","alias","toLocal"],columnSelection:["state","alias","toLocal","toRemote"]},{tableId:"inactive_channels",recordsPerPage:u,sortBy:"alias",sortOrder:Ae.DESCENDING,columnSelectionSM:["state","alias","toLocal"],columnSelection:["state","shortChannelId","alias","toLocal","toRemote","balancedness"]},{tableId:"peers",recordsPerPage:u,sortBy:"alias",sortOrder:Ae.ASCENDING,columnSelectionSM:["alias","nodeId"],columnSelection:["alias","nodeId","address","channels"]}]},{pageId:"transactions",tables:[{tableId:"payments",recordsPerPage:u,sortBy:"firstPartTimestamp",sortOrder:Ae.DESCENDING,columnSelectionSM:["firstPartTimestamp","recipientAmount"],columnSelection:["firstPartTimestamp","id","recipientNodeAlias","recipientAmount"]},{tableId:"invoices",recordsPerPage:u,sortBy:"receivedAt",sortOrder:Ae.DESCENDING,columnSelectionSM:["timestamp","amount","amountSettled"],columnSelection:["timestamp","receivedAt","description","amount","amountSettled"]}]},{pageId:"routing",tables:[{tableId:"forwarding_history",recordsPerPage:u,sortBy:"timestamp",sortOrder:Ae.DESCENDING,columnSelectionSM:["timestamp","amountIn","fee"],columnSelection:["timestamp","fromChannelAlias","toChannelAlias","amountIn","amountOut","fee"]},{tableId:"routing_peers",recordsPerPage:u,sortBy:"totalFee",sortOrder:Ae.DESCENDING,columnSelectionSM:["alias","events","totalFee"],columnSelection:["channelId","alias","events","totalAmount","totalFee"]}]},{pageId:"reports",tables:[{tableId:"routing",recordsPerPage:u,sortBy:"timestamp",sortOrder:Ae.DESCENDING,columnSelectionSM:["timestamp","amountIn","fee"],columnSelection:["timestamp","fromChannelAlias","toChannelAlias","amountIn","amountOut","fee"]},{tableId:"transactions",recordsPerPage:u,sortBy:"date",sortOrder:Ae.DESCENDING,columnSelectionSM:["date","amount_paid","amount_received"],columnSelection:["date","amount_paid","num_payments","amount_received","num_invoices"]}]}],Re={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:(Ue,q,m)=>{"use strict";m.d(q,{D:()=>ue});var e=m(8987),t=m(6317),_=m(253),E=m(5474),s=m(745),D=m(155),u=m(9525),k=m(8951),p=m(635),S=m(3158),A=m(538),P=m(2340),M=m(7731),z=m(1786),I=m(7861),W=m(6523),Z=m(6529),Q=m(9828),ie=m(2560),ae=m(9263),_e=m(5043),ce=m(930),ye=m(4666);class ue{constructor(he,w,n,o,h){this.httpClient=he,this.store=w,this.logger=n,this.snackBar=o,this.titleCasePipe=h,this.APIUrl=P.T5,this.lnImplementation="",this.lnImplementationUpdated=new t.X(null),this.unSubs=[new _.x,new _.x,new _.x,new _.x,new _.x,new _.x,new _.x,new _.x,new _.x,new _.x,new _.x,new _.x,new _.x],this.mapAliases=(d,y)=>(d&&d.length>0?d.forEach((L,B)=>{if(y&&y.length>0)for(let v=0;v<y.length;v++){if(y[v].short_channel_id&&y[v].short_channel_id===L.in_channel&&(L.in_channel_alias=y[v].alias?y[v].alias:L.in_channel,L.out_channel_alias)||y[v].short_channel_id&&y[v].short_channel_id?.toString()===L.out_channel&&(L.out_channel_alias=y[v].alias?y[v].alias:L.out_channel,L.in_channel_alias))return;v===y.length-1&&(L.in_channel_alias||(L.in_channel_alias=L.in_channel?L.in_channel:"-"),L.out_channel_alias||(L.out_channel_alias=L.out_channel?L.out_channel:"-"))}else L.in_channel_alias=L.in_channel?L.in_channel:"-",L.out_channel_alias=L.out_channel?L.out_channel:"-"}):d=[],d)}setLnImplementation(he){this.lnImplementation=he.toLowerCase(),this.lnImplementationUpdated.next(this.lnImplementation)}getFiatRates(){return this.httpClient.get(P.NZ.CONF_API+"/rates")}decodePayment(he,w){return this.lnImplementationUpdated.pipe((0,D.P)(n=>null!==n),(0,u.z)(n=>{let o=this.APIUrl+"/"+n+P.NZ.PAYMENTS_API+"/decode/"+he;return"cln"===n&&(o=this.APIUrl+"/"+n+P.NZ.UTILITY_API+"/decode/"+he),this.store.dispatch((0,I.ac)({payload:M.m6.DECODE_PAYMENT})),this.httpClient.get(o).pipe((0,k.R)(this.unSubs[0]),(0,p.U)(h=>(this.store.dispatch((0,I.uO)({payload:M.m6.DECODE_PAYMENT})),h)),(0,S.K)(h=>(w?this.handleErrorWithoutAlert("Decode Payment",M.m6.DECODE_PAYMENT,h):this.handleErrorWithAlert("decodePaymentData",M.m6.DECODE_PAYMENT,"Decode Payment Failed",o,h),(0,E._)(()=>new Error(this.extractErrorMessage(h))))))}))}decodePayments(he){return this.lnImplementationUpdated.pipe((0,D.P)(w=>null!==w),(0,u.z)(w=>{let n="",o="";return"ecl"===w?(n=this.APIUrl+"/"+w+P.NZ.PAYMENTS_API+"/getsentinfos",o=M.m6.GET_SENT_PAYMENTS):"cln"===w?(n=this.APIUrl+"/"+w+P.NZ.UTILITY_API,o=M.m6.DECODE_PAYMENTS):(n=this.APIUrl+"/"+w+P.NZ.PAYMENTS_API,o=M.m6.DECODE_PAYMENTS),this.store.dispatch((0,I.ac)({payload:o})),this.httpClient.post(n,{payments:he}).pipe((0,k.R)(this.unSubs[1]),(0,p.U)(h=>(this.store.dispatch((0,I.uO)({payload:o})),h)),(0,S.K)(h=>(this.handleErrorWithAlert("decodePaymentsData",o,o+" Failed",n,h),(0,E._)(()=>new Error(this.extractErrorMessage(h))))))}))}getAliasesFromPubkeys(he,w){return this.lnImplementationUpdated.pipe((0,D.P)(n=>null!==n),(0,u.z)(n=>{if(w){const o=(new e.LE).set("pubkeys",he);return this.httpClient.get(this.APIUrl+"/"+n+P.NZ.NETWORK_API+"/nodes",{params:o})}return this.httpClient.get(this.APIUrl+"/"+n+P.NZ.NETWORK_API+"/node/"+he)}))}signMessage(he){return this.lnImplementationUpdated.pipe((0,D.P)(w=>null!==w),(0,u.z)(w=>{let n=this.APIUrl+"/"+w+P.NZ.MESSAGE_API+"/sign";return"cln"===w&&(n=this.APIUrl+"/"+w+P.NZ.UTILITY_API+"/sign"),this.store.dispatch((0,I.ac)({payload:M.m6.SIGN_MESSAGE})),this.httpClient.post(n,{message:he}).pipe((0,k.R)(this.unSubs[2]),(0,p.U)(o=>(this.store.dispatch((0,I.uO)({payload:M.m6.SIGN_MESSAGE})),o)),(0,S.K)(o=>(this.handleErrorWithAlert("signMessageData",M.m6.SIGN_MESSAGE,"Sign Message Failed",n,o),(0,E._)(()=>new Error(this.extractErrorMessage(o))))))}))}verifyMessage(he,w){return this.lnImplementationUpdated.pipe((0,D.P)(n=>null!==n),(0,u.z)(n=>{let o=this.APIUrl+"/"+n+P.NZ.MESSAGE_API+"/verify";return"cln"===n&&(o=this.APIUrl+"/"+n+P.NZ.UTILITY_API+"/verify"),this.store.dispatch((0,I.ac)({payload:M.m6.VERIFY_MESSAGE})),this.httpClient.post(o,{message:he,signature:w}).pipe((0,k.R)(this.unSubs[3]),(0,p.U)(h=>(this.store.dispatch((0,I.uO)({payload:M.m6.VERIFY_MESSAGE})),h)),(0,S.K)(h=>(this.handleErrorWithAlert("verifyMessageData",M.m6.VERIFY_MESSAGE,"Verify Message Failed",o,h),(0,E._)(()=>new Error(this.extractErrorMessage(h))))))}))}bumpFee(he,w,n,o){return this.lnImplementationUpdated.pipe((0,D.P)(h=>null!==h),(0,u.z)(h=>{const d={txid:he,outputIndex:w};return n&&(d.targetConf=n),o&&(d.satPerByte=o),this.store.dispatch((0,I.ac)({payload:M.m6.BUMP_FEE})),this.httpClient.post(this.APIUrl+"/"+h+P.NZ.WALLET_API+"/bumpfee",d).pipe((0,k.R)(this.unSubs[4]),(0,p.U)(y=>(this.store.dispatch((0,I.uO)({payload:M.m6.BUMP_FEE})),this.snackBar.open("Successfully bumped the fee. Use the block explorer to verify transaction."),y)),(0,S.K)(y=>(this.handleErrorWithoutAlert("Bump Fee",M.m6.BUMP_FEE,y),(0,E._)(()=>new Error(this.extractErrorMessage(y))))))}))}labelUTXO(he,w,n=!0){return this.lnImplementationUpdated.pipe((0,D.P)(o=>null!==o),(0,u.z)(o=>{const h={txid:he,label:w,overwrite:n};return this.store.dispatch((0,I.ac)({payload:M.m6.LABEL_UTXO})),this.httpClient.post(this.APIUrl+"/"+o+P.NZ.WALLET_API+"/label",h).pipe((0,k.R)(this.unSubs[5]),(0,p.U)(d=>(this.store.dispatch((0,I.uO)({payload:M.m6.LABEL_UTXO})),d)),(0,S.K)(d=>(this.handleErrorWithoutAlert("Lease UTXO",M.m6.LABEL_UTXO,d),(0,E._)(()=>new Error(this.extractErrorMessage(d))))))}))}leaseUTXO(he,w){return this.lnImplementationUpdated.pipe((0,D.P)(n=>null!==n),(0,u.z)(n=>{const o={txid:he,outputIndex:w};return this.store.dispatch((0,I.ac)({payload:M.m6.LEASE_UTXO})),this.httpClient.post(this.APIUrl+"/"+n+P.NZ.WALLET_API+"/lease",o).pipe((0,k.R)(this.unSubs[6]),(0,p.U)(h=>{this.store.dispatch((0,I.uO)({payload:M.m6.LEASE_UTXO})),this.store.dispatch((0,W.mC)()),this.store.dispatch((0,W.Ly)());const d=new Date(1e3*h.expiration),y=Math.round(d.getTime())-60*d.getTimezoneOffset();this.snackBar.open("The UTXO has been leased till "+new Date(y).toString().substring(4,21).replace(" ","/").replace(" ","/").toUpperCase()+".")}),(0,S.K)(h=>(this.handleErrorWithoutAlert("Lease UTXO",M.m6.LEASE_UTXO,h),(0,E._)(()=>new Error(this.extractErrorMessage(h))))))}))}getForwardingHistory(he,w,n,o){if("LND"===he){const h={end_time:n,start_time:w};return this.store.dispatch((0,I.ac)({payload:M.m6.GET_FORWARDING_HISTORY})),this.httpClient.post(this.APIUrl+"/lnd"+P.NZ.SWITCH_API,h).pipe((0,k.R)(this.unSubs[7]),(0,A.M)(this.store.select(Z._f)),(0,u.z)(([d,y])=>{if(d.forwarding_events){const L=[...y.channels,...y.closedChannels];d.forwarding_events.forEach(B=>{if(L&&L.length>0)for(let v=0;v<L.length;v++){if(L[v].chan_id?.toString()===B.chan_id_in&&(B.alias_in=L[v].remote_alias?L[v].remote_alias:B.chan_id_in,B.alias_out)||L[v].chan_id?.toString()===B.chan_id_out&&(B.alias_out=L[v].remote_alias?L[v].remote_alias:B.chan_id_out,B.alias_in))return;v===L.length-1&&(B.alias_in||(B.alias_in=B.chan_id_in),B.alias_out||(B.alias_out=B.chan_id_out))}else B.alias_in=B.chan_id_in,B.alias_out=B.chan_id_out})}else d={};return this.store.dispatch((0,I.uO)({payload:M.m6.GET_FORWARDING_HISTORY})),(0,s.of)(d)}),(0,S.K)(d=>(this.handleErrorWithAlert("getForwardingHistoryData",M.m6.GET_FORWARDING_HISTORY,"Forwarding History Failed",this.APIUrl+"/lnd"+P.NZ.SWITCH_API,d),(0,E._)(()=>new Error(this.extractErrorMessage(d))))))}return"CLN"===he?(this.store.dispatch((0,I.ac)({payload:M.m6.GET_FORWARDING_HISTORY})),this.httpClient.get(this.APIUrl+"/cln"+P.NZ.CHANNELS_API+"/listForwards?status="+o).pipe((0,k.R)(this.unSubs[8]),(0,A.M)(this.store.select(Q.ZW)),(0,u.z)(([h,d])=>{const y=this.mapAliases(h,[...d.activeChannels,...d.pendingChannels,...d.inactiveChannels]);return this.store.dispatch((0,I.uO)({payload:M.m6.GET_FORWARDING_HISTORY})),(0,s.of)(y)}),(0,S.K)(h=>(this.handleErrorWithAlert("getForwardingHistoryData",M.m6.GET_FORWARDING_HISTORY,"Forwarding History Failed",this.APIUrl+"/cln"+P.NZ.CHANNELS_API+"/listForwards?status="+o+"&start="+w+"&end="+n,h),(0,E._)(()=>new Error(this.extractErrorMessage(h))))))):(0,s.of)({})}listNetworkNodes(he=""){return this.lnImplementationUpdated.pipe((0,D.P)(w=>null!==w),(0,u.z)(w=>(this.store.dispatch((0,I.ac)({payload:M.m6.LIST_NETWORK_NODES})),this.httpClient.get(this.APIUrl+"/"+w+P.NZ.NETWORK_API+"/listNodes"+he).pipe((0,k.R)(this.unSubs[9]),(0,u.z)(n=>(this.store.dispatch((0,I.uO)({payload:M.m6.LIST_NETWORK_NODES})),(0,s.of)(n))),(0,S.K)(n=>(this.handleErrorWithoutAlert("List Network Nodes",M.m6.LIST_NETWORK_NODES,n),(0,E._)(()=>this.extractErrorMessage(n))))))))}listConfigs(){return this.lnImplementationUpdated.pipe((0,D.P)(he=>null!==he),(0,u.z)(he=>(this.store.dispatch((0,I.ac)({payload:M.m6.GET_LIST_CONFIGS})),this.httpClient.get(this.APIUrl+"/"+he+P.NZ.UTILITY_API+"/listConfigs").pipe((0,k.R)(this.unSubs[10]),(0,u.z)(w=>(this.store.dispatch((0,I.uO)({payload:M.m6.GET_LIST_CONFIGS})),(0,s.of)(w))),(0,S.K)(w=>(this.handleErrorWithoutAlert("List Configurations",M.m6.GET_LIST_CONFIGS,w),(0,E._)(()=>this.extractErrorMessage(w))))))))}getOrUpdateFunderPolicy(he,w,n,o,h,d){return this.lnImplementationUpdated.pipe((0,D.P)(y=>null!==y),(0,u.z)(y=>{const L=he?{policy:he,policy_mod:w,lease_fee_base_msat:n,lease_fee_basis:o,channel_fee_max_base_msat:h,channel_fee_max_proportional_thousandths:d}:null;return this.store.dispatch((0,I.ac)({payload:M.m6.GET_FUNDER_POLICY})),this.httpClient.post(this.APIUrl+"/"+y+P.NZ.CHANNELS_API+"/funderUpdate",L).pipe((0,k.R)(this.unSubs[11]),(0,p.U)(B=>(this.store.dispatch((0,I.uO)({payload:M.m6.GET_FUNDER_POLICY})),L&&this.store.dispatch((0,I.jW)({payload:"Funder Policy Updated Successfully with Compact Lease: "+B.compact_lease+"!"})),B)),(0,S.K)(B=>(this.handleErrorWithoutAlert("Funder Policy",M.m6.GET_FUNDER_POLICY,B),(0,E._)(()=>new Error(this.extractErrorMessage(B))))))}))}extractErrorMessage(he,w="Unknown Error."){return this.titleCasePipe.transform(he.error.text&&"string"==typeof he.error.text&&he.error.text.includes('<!DOCTYPE html><html lang="en">')?"API Route Does Not Exist.":he.error&&he.error.error&&he.error.error.error&&he.error.error.error.error&&he.error.error.error.error.error&&"string"==typeof he.error.error.error.error.error?he.error.error.error.error.error:he.error&&he.error.error&&he.error.error.error&&he.error.error.error.error&&"string"==typeof he.error.error.error.error?he.error.error.error.error:he.error&&he.error.error&&he.error.error.error&&"string"==typeof he.error.error.error?he.error.error.error:he.error&&he.error.error&&"string"==typeof he.error.error?he.error.error:he.error&&"string"==typeof he.error?he.error:he.error&&he.error.error&&he.error.error.error&&he.error.error.error.error&&he.error.error.error.error.message&&"string"==typeof he.error.error.error.error.message?he.error.error.error.error.message:he.error&&he.error.error&&he.error.error.error&&he.error.error.error.message&&"string"==typeof he.error.error.error.message?he.error.error.error.message:he.error&&he.error.error&&he.error.error.message&&"string"==typeof he.error.error.message?he.error.error.message:he.error&&he.error.message&&"string"==typeof he.error.message?he.error.message:he.message&&"string"==typeof he.message?he.message:w)}handleErrorWithoutAlert(he,w,n){n.error.text&&"string"==typeof n.error.text&&n.error.text.includes('<!DOCTYPE html><html lang="en">')&&(n={status:403,error:{message:"API Route Does Not Exist."}}),this.logger.error("ERROR IN: "+he+"\n"+JSON.stringify(n)),401===n.status?(this.logger.info("Redirecting to Login"),this.store.dispatch((0,I.ts)()),this.store.dispatch((0,I.kS)()),this.store.dispatch((0,I.jW)({payload:"Authentication Failed. Redirecting to Login."}))):(this.store.dispatch((0,I.uO)({payload:w})),this.store.dispatch((0,I.qi)({payload:{action:he,status:M.Bn.ERROR,statusCode:n.status.toString(),message:this.extractErrorMessage(n)}})))}handleErrorWithAlert(he,w,n,o,h){if(this.logger.error(h),401===h.status)this.logger.info("Redirecting to Login"),this.store.dispatch((0,I.ts)()),this.store.dispatch((0,I.kS)()),this.store.dispatch((0,I.jW)({payload:"Authentication Failed. Redirecting to Login."}));else{this.store.dispatch((0,I.uO)({payload:w}));const d=this.extractErrorMessage(h);this.store.dispatch((0,I.qR)({payload:{data:{type:"ERROR",alertTitle:n,message:{code:h.status?h.status:"Unknown Error",message:d,URL:o},component:z.H}}})),this.store.dispatch((0,I.qi)({payload:{action:he,status:M.Bn.ERROR,statusCode:h.status.toString(),message:d,URL:o}}))}}ngOnDestroy(){this.unSubs.forEach(he=>{he.next(null),he.complete()})}static#e=this.\u0275fac=function(w){return new(w||ue)(ie.LFG(e.eN),ie.LFG(ae.yh),ie.LFG(_e.mQ),ie.LFG(ce.ux),ie.LFG(ye.rS))};static#t=this.\u0275prov=ie.Yz7({token:ue,factory:ue.\u0275fac})}},5043:(Ue,q,m)=>{"use strict";m.d(q,{LG:()=>u,mQ:()=>D});var e=m(2340),t=m(2560);const{isDebugMode:_}=e.NZ,E=()=>null;class D{invokeConsoleMethod(p,S){}static#e=this.\u0275fac=function(S){return new(S||D)};static#t=this.\u0275prov=t.Yz7({token:D,factory:D.\u0275fac})}class u{get info(){return _?console.log.bind(console):E}get warn(){return _?console.warn.bind(console):E}get error(){return _?console.error.bind(console):E}invokeConsoleMethod(p,S){(console[p]||console.log||E).apply(console,[S])}static#e=this.\u0275fac=function(S){return new(S||u)};static#t=this.\u0275prov=t.Yz7({token:u,factory:u.\u0275fac})}},1419:(Ue,q,m)=>{"use strict";m.d(q,{W:()=>Z});var e=m(8987),t=m(6317),_=m(253),E=m(745),s=m(5474),D=m(8951),u=m(3158),k=m(635),p=m(2340),S=m(7731),A=m(1786),P=m(7861),M=m(2560),z=m(5043),I=m(9263),W=m(62);class Z{constructor(ie,ae,_e,ce){this.httpClient=ie,this.logger=ae,this.store=_e,this.commonService=ce,this.loopUrl="",this.swaps=[],this.swapsChanged=new t.X([]),this.unSubs=[new _.x,new _.x,new _.x,new _.x,new _.x]}getSwapsList(){return this.swaps}listSwaps(){this.store.dispatch((0,P.ac)({payload:S.m6.GET_LOOP_SWAPS})),this.loopUrl=p.T5+p.NZ.LOOP_API+"/swaps",this.httpClient.get(this.loopUrl).pipe((0,D.R)(this.unSubs[0])).subscribe({next:ie=>{this.store.dispatch((0,P.uO)({payload:S.m6.GET_LOOP_SWAPS})),this.swaps=ie,this.swapsChanged.next(this.swaps)},error:ie=>this.swapsChanged.error(this.handleErrorWithAlert(S.m6.GET_LOOP_SWAPS,this.loopUrl,ie))})}loopOut(ie,ae,_e,ce,ye,ue,$,he,w,n){const o={amount:ie,targetConf:_e,swapRoutingFee:ce,minerFee:ye,prepayRoutingFee:ue,prepayAmt:$,swapFee:he,swapPublicationDeadline:w,destAddress:n};return""!==ae&&(o.chanId=ae),this.loopUrl=p.T5+p.NZ.LOOP_API+"/out",this.httpClient.post(this.loopUrl,o).pipe((0,u.K)(h=>this.handleErrorWithoutAlert("Loop Out for Channel: "+ae,S.m6.NO_SPINNER,h)))}getLoopOutTerms(){return this.loopUrl=p.T5+p.NZ.LOOP_API+"/out/terms",this.httpClient.get(this.loopUrl).pipe((0,u.K)(ie=>this.handleErrorWithoutAlert("Loop Out Terms",S.m6.NO_SPINNER,ie)))}getLoopOutQuote(ie,ae,_e){let ce=new e.LE;return ce=ce.append("targetConf",ae.toString()),ce=ce.append("swapPublicationDeadline",_e.toString()),this.loopUrl=p.T5+p.NZ.LOOP_API+"/out/quote/"+ie,this.store.dispatch((0,P.ac)({payload:S.m6.GET_QUOTE})),this.httpClient.get(this.loopUrl,{params:ce}).pipe((0,D.R)(this.unSubs[1]),(0,k.U)(ye=>(this.store.dispatch((0,P.uO)({payload:S.m6.GET_QUOTE})),ye)),(0,u.K)(ye=>this.handleErrorWithoutAlert("Loop Out Quote",S.m6.GET_QUOTE,ye)))}getLoopOutTermsAndQuotes(ie){let ae=new e.LE;return ae=ae.append("targetConf",ie.toString()),ae=ae.append("swapPublicationDeadline",((new Date).getTime()+18e5).toString()),this.loopUrl=p.T5+p.NZ.LOOP_API+"/out/termsAndQuotes",this.store.dispatch((0,P.ac)({payload:S.m6.GET_TERMS_QUOTES})),this.httpClient.get(this.loopUrl,{params:ae}).pipe((0,D.R)(this.unSubs[2]),(0,k.U)(_e=>(this.store.dispatch((0,P.uO)({payload:S.m6.GET_TERMS_QUOTES})),_e)),(0,u.K)(_e=>(0,E.of)(this.handleErrorWithAlert(S.m6.GET_TERMS_QUOTES,this.loopUrl,_e))))}loopIn(ie,ae,_e,ce,ye){const ue={amount:ie,swapFee:ae,minerFee:_e,lastHop:ce,externalHtlc:ye};return this.loopUrl=p.T5+p.NZ.LOOP_API+"/in",this.httpClient.post(this.loopUrl,ue).pipe((0,u.K)($=>this.handleErrorWithoutAlert("Loop In",S.m6.NO_SPINNER,$)))}getLoopInTerms(){return this.loopUrl=p.T5+p.NZ.LOOP_API+"/in/terms",this.httpClient.get(this.loopUrl).pipe((0,u.K)(ie=>this.handleErrorWithoutAlert("Loop In Terms",S.m6.NO_SPINNER,ie)))}getLoopInQuote(ie,ae,_e){let ce=new e.LE;return ce=ce.append("targetConf",ae.toString()),ce=ce.append("swapPublicationDeadline",_e.toString()),this.loopUrl=p.T5+p.NZ.LOOP_API+"/in/quote/"+ie,this.store.dispatch((0,P.ac)({payload:S.m6.GET_QUOTE})),this.httpClient.get(this.loopUrl,{params:ce}).pipe((0,D.R)(this.unSubs[3]),(0,k.U)(ye=>(this.store.dispatch((0,P.uO)({payload:S.m6.GET_QUOTE})),ye)),(0,u.K)(ye=>this.handleErrorWithoutAlert("Loop In Qoute",S.m6.GET_QUOTE,ye)))}getLoopInTermsAndQuotes(ie){let ae=new e.LE;return ae=ae.append("targetConf",ie.toString()),ae=ae.append("swapPublicationDeadline",((new Date).getTime()+18e5).toString()),this.loopUrl=p.T5+p.NZ.LOOP_API+"/in/termsAndQuotes",this.store.dispatch((0,P.ac)({payload:S.m6.GET_TERMS_QUOTES})),this.httpClient.get(this.loopUrl,{params:ae}).pipe((0,D.R)(this.unSubs[4]),(0,k.U)(_e=>(this.store.dispatch((0,P.uO)({payload:S.m6.GET_TERMS_QUOTES})),_e)),(0,u.K)(_e=>(0,E.of)(this.handleErrorWithAlert(S.m6.GET_TERMS_QUOTES,this.loopUrl,_e))))}getSwap(ie){return this.loopUrl=p.T5+p.NZ.LOOP_API+"/swap/"+ie,this.httpClient.get(this.loopUrl).pipe((0,u.K)(ae=>this.handleErrorWithoutAlert("Loop Get Swap for ID: "+ie,S.m6.NO_SPINNER,ae)))}handleErrorWithoutAlert(ie,ae,_e){let ce="";return this.logger.error("ERROR IN: "+ie+"\n"+JSON.stringify(_e)),this.store.dispatch((0,P.uO)({payload:ae})),401===_e.status?(ce="Unauthorized User.",this.logger.info("Redirecting to Login"),this.store.dispatch((0,P.kS)())):503===_e.status?(ce="Unable to Connect to Loop Server.",this.store.dispatch((0,P.qR)({payload:{data:{type:"ERROR",alertTitle:"Loop Not Connected",message:{code:_e.status,message:"Unable to Connect to Loop Server",URL:ie},component:A.H}}}))):ce=this.commonService.extractErrorMessage(_e),(0,s._)(()=>new Error(ce))}handleErrorWithAlert(ie,ae,_e){let ce="";if(this.logger.error(_e),this.store.dispatch((0,P.uO)({payload:ie})),401===_e.status)ce="Unauthorized User.",this.logger.info("Redirecting to Login"),this.store.dispatch((0,P.kS)());else if(503===_e.status)ce="Unable to Connect to Loop Server.",setTimeout(()=>{this.store.dispatch((0,P.qR)({payload:{data:{type:"ERROR",alertTitle:"Loop Not Connected",message:{code:_e.status,message:"Unable to Connect to Loop Server",URL:ae},component:A.H}}}))},100);else{ce=this.commonService.extractErrorMessage(_e);const ye=_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;setTimeout(()=>{this.store.dispatch((0,P.qR)({payload:{data:{type:S.n_.ERROR,alertTitle:"ERROR",message:{code:ye,message:ce,URL:ae},component:A.H}}}))},100)}return{message:ce}}ngOnDestroy(){this.unSubs.forEach(ie=>{ie.next(null),ie.complete()})}static#e=this.\u0275fac=function(ae){return new(ae||Z)(M.LFG(e.eN),M.LFG(z.mQ),M.LFG(I.yh),M.LFG(W.v))};static#t=this.\u0275prov=M.Yz7({token:Z,factory:Z.\u0275fac})}},5986:(Ue,q,m)=>{"use strict";m.d(q,{m:()=>_});var e=m(253),t=m(2560);class _{constructor(){this.sessionSub=new e.x}watchSession(){return this.sessionSub.asObservable()}getItem(s){return sessionStorage.getItem(s)}getAllItems(){return sessionStorage}setItem(s,D){sessionStorage.setItem(s,D),this.sessionSub.next(sessionStorage)}removeItem(s){sessionStorage.removeItem(s),this.sessionSub.next(sessionStorage)}clearAll(){sessionStorage.clear(),this.sessionSub.next(sessionStorage)}static#e=this.\u0275fac=function(D){return new(D||_)};static#t=this.\u0275prov=t.Yz7({token:_,factory:_.\u0275fac})}},3512:(Ue,q,m)=>{"use strict";m.d(q,{d:()=>z});var e=m(6317),t=m(253),_=m(8951),E=m(5463),s=m(833),D=m(7714),u=m(6067);const k={url:"",deserializer:I=>JSON.parse(I.data),serializer:I=>JSON.stringify(I)};class S extends t.u{constructor(W,Z){if(super(),this._socket=null,W instanceof s.y)this.destination=Z,this.source=W;else{const Q=this._config=Object.assign({},k);if(this._output=new t.x,"string"==typeof W)Q.url=W;else for(const ie in W)W.hasOwnProperty(ie)&&(Q[ie]=W[ie]);if(!Q.WebSocketCtor&&WebSocket)Q.WebSocketCtor=WebSocket;else if(!Q.WebSocketCtor)throw new Error("no WebSocket constructor can be found");this.destination=new u.t}}lift(W){const Z=new S(this._config,this.destination);return Z.operator=W,Z.source=this,Z}_resetState(){this._socket=null,this.source||(this.destination=new u.t),this._output=new t.x}multiplex(W,Z,Q){const ie=this;return new s.y(ae=>{try{ie.next(W())}catch(ce){ae.error(ce)}const _e=ie.subscribe({next:ce=>{try{Q(ce)&&ae.next(ce)}catch(ye){ae.error(ye)}},error:ce=>ae.error(ce),complete:()=>ae.complete()});return()=>{try{ie.next(Z())}catch(ce){ae.error(ce)}_e.unsubscribe()}})}_connectSocket(){const{WebSocketCtor:W,protocol:Z,url:Q,binaryType:ie}=this._config,ae=this._output;let _e=null;try{_e=Z?new W(Q,Z):new W(Q),this._socket=_e,ie&&(this._socket.binaryType=ie)}catch(ye){return void ae.error(ye)}const ce=new D.w0(()=>{this._socket=null,_e&&1===_e.readyState&&_e.close()});_e.onopen=ye=>{const{_socket:ue}=this;if(!ue)return _e.close(),void this._resetState();const{openObserver:$}=this._config;$&&$.next(ye);const he=this.destination;this.destination=E.Lv.create(w=>{if(1===_e.readyState)try{const{serializer:n}=this._config;_e.send(n(w))}catch(n){this.destination.error(n)}},w=>{const{closingObserver:n}=this._config;n&&n.next(void 0),w&&w.code?_e.close(w.code,w.reason):ae.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:w}=this._config;w&&w.next(void 0),_e.close(),this._resetState()}),he&&he instanceof u.t&&ce.add(he.subscribe(this.destination))},_e.onerror=ye=>{this._resetState(),ae.error(ye)},_e.onclose=ye=>{_e===this._socket&&this._resetState();const{closeObserver:ue}=this._config;ue&&ue.next(ye),ye.wasClean?ae.complete():ae.error(ye)},_e.onmessage=ye=>{try{const{deserializer:ue}=this._config;ae.next(ue(ye))}catch(ue){ae.error(ue)}}}_subscribe(W){const{source:Z}=this;return Z?Z.subscribe(W):(this._socket||this._connectSocket(),this._output.subscribe(W),W.add(()=>{const{_socket:Q}=this;0===this._output.observers.length&&(Q&&(1===Q.readyState||0===Q.readyState)&&Q.close(),this._resetState())}),W)}unsubscribe(){const{_socket:W}=this;W&&(1===W.readyState||0===W.readyState)&&W.close(),this._resetState(),super.unsubscribe()}}var A=m(2560),P=m(5043),M=m(5986);class z{constructor(W,Z){this.logger=W,this.sessionService=Z,this.clWSMessages=new e.X(null),this.eclWSMessages=new e.X(null),this.lndWSMessages=new e.X(null),this.wsUrl="",this.nodeIndex="",this.RETRY_SECONDS=5,this.RECONNECT_TIMEOUT=null,this.unSubs=[new t.x,new t.x,new t.x,new t.x,new t.x,new t.x,new t.x,new t.x,new t.x,new t.x,new t.x,new t.x,new t.x]}connectWebSocket(W,Z){(!this.socket||this.socket.closed)&&(this.wsUrl=W,this.nodeIndex=Z,this.logger.info("Websocket Url: "+this.wsUrl),this.socket=new S({url:W,protocol:[this.sessionService.getItem("token")||"",Z]}),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,_.R)(this.unSubs[1])).subscribe({next:W=>{if((W="string"==typeof W?JSON.parse(W):W).error)this.handleError(W.error);else switch(this.logger.info("Next Message from WS:"+JSON.stringify(W)),W.source){case"LND":this.lndWSMessages.next(W);break;case"CLN":this.clWSMessages.next(W);break;case"ECL":this.eclWSMessages.next(W)}},error:W=>this.handleError(W),complete:()=>{this.logger.info("Web Socket Closed")}})}handleError(W){this.logger.error(W),this.clWSMessages.error(W),this.eclWSMessages.error(W),this.lndWSMessages.error(W),this.reconnectOnError()}ngOnDestroy(){this.closeConnection(),this.clWSMessages.next(null),this.clWSMessages.complete(),this.eclWSMessages.next(null),this.eclWSMessages.complete(),this.lndWSMessages.next(null),this.lndWSMessages.complete()}static#e=this.\u0275fac=function(Z){return new(Z||z)(A.LFG(P.mQ),A.LFG(M.m))};static#t=this.\u0275prov=A.Yz7({token:z,factory:z.\u0275fac})}},6165:(Ue,q,m)=>{"use strict";m.d(q,{m:()=>Va});var e=m(4666),t=m(3547),_=m(2508),E=m(8987),s=m(3505),D=m(2560),u=m(4658),k=m(3704),p=m(6722),S=m(8971);const A="stretch",P="stretch";class M extends u.QI{buildStyles(xt){return function ie(dn=""){const xt={},[Nt,Fn]=dn.split(" ");switch(Nt){case"end":xt["justify-self"]="end";break;case"center":xt["justify-self"]="center";break;case"stretch":xt["justify-self"]="stretch";break;case"start":xt["justify-self"]="start";break;default:xt["justify-self"]=A}switch(Fn){case"end":xt["align-self"]="end";break;case"center":xt["align-self"]="center";break;case"stretch":xt["align-self"]="stretch";break;case"start":xt["align-self"]="start";break;default:xt["align-self"]=P}return xt}(xt||A)}}M.\u0275fac=function(){let dn;return function(Nt){return(dn||(dn=D.n5z(M)))(Nt||M)}}(),M.\u0275prov=D.Yz7({token:M,factory:M.\u0275fac,providedIn:"root"});class z extends u.iR{constructor(xt,Nt,Fn,ri){super(xt,Nt,Fn,ri),this.DIRECTIVE_KEY="grid-align",this.styleCache=I,this.init()}}z.\u0275fac=function(xt){return new(xt||z)(D.Y36(D.SBq),D.Y36(M),D.Y36(u.RK),D.Y36(u.yB))},z.\u0275dir=D.lG2({type:z,features:[D.qOj]});const I=new Map,W=["gdGridAlign","gdGridAlign.xs","gdGridAlign.sm","gdGridAlign.md","gdGridAlign.lg","gdGridAlign.xl","gdGridAlign.lt-sm","gdGridAlign.lt-md","gdGridAlign.lt-lg","gdGridAlign.lt-xl","gdGridAlign.gt-xs","gdGridAlign.gt-sm","gdGridAlign.gt-md","gdGridAlign.gt-lg"];class Q extends z{constructor(){super(...arguments),this.inputs=W}}Q.\u0275fac=function(){let dn;return function(Nt){return(dn||(dn=D.n5z(Q)))(Nt||Q)}}(),Q.\u0275dir=D.lG2({type:Q,selectors:[["","gdGridAlign",""],["","gdGridAlign.xs",""],["","gdGridAlign.sm",""],["","gdGridAlign.md",""],["","gdGridAlign.lg",""],["","gdGridAlign.xl",""],["","gdGridAlign.lt-sm",""],["","gdGridAlign.lt-md",""],["","gdGridAlign.lt-lg",""],["","gdGridAlign.lt-xl",""],["","gdGridAlign.gt-xs",""],["","gdGridAlign.gt-sm",""],["","gdGridAlign.gt-md",""],["","gdGridAlign.gt-lg",""]],inputs:{gdGridAlign:"gdGridAlign","gdGridAlign.xs":"gdGridAlign.xs","gdGridAlign.sm":"gdGridAlign.sm","gdGridAlign.md":"gdGridAlign.md","gdGridAlign.lg":"gdGridAlign.lg","gdGridAlign.xl":"gdGridAlign.xl","gdGridAlign.lt-sm":"gdGridAlign.lt-sm","gdGridAlign.lt-md":"gdGridAlign.lt-md","gdGridAlign.lt-lg":"gdGridAlign.lt-lg","gdGridAlign.lt-xl":"gdGridAlign.lt-xl","gdGridAlign.gt-xs":"gdGridAlign.gt-xs","gdGridAlign.gt-sm":"gdGridAlign.gt-sm","gdGridAlign.gt-md":"gdGridAlign.gt-md","gdGridAlign.gt-lg":"gdGridAlign.gt-lg"},features:[D.qOj]});const ae="start",_e="stretch";class ce extends u.QI{buildStyles(xt,Nt){return function o(dn,xt){const Nt={},[Fn,ri]=dn.split(" ");switch(Fn){case"center":Nt["align-content"]="center";break;case"space-around":Nt["align-content"]="space-around";break;case"space-between":Nt["align-content"]="space-between";break;case"space-evenly":Nt["align-content"]="space-evenly";break;case"end":Nt["align-content"]="end";break;case"start":Nt["align-content"]="start";break;case"stretch":Nt["align-content"]="stretch";break;default:Nt["align-content"]=ae}switch(ri){case"start":Nt["align-items"]="start";break;case"center":Nt["align-items"]="center";break;case"end":Nt["align-items"]="end";break;case"stretch":Nt["align-items"]="stretch";break;default:Nt["align-items"]=_e}return Nt.display=xt?"inline-grid":"grid",Nt}(xt||`start ${_e}`,Nt.inline)}}ce.\u0275fac=function(){let dn;return function(Nt){return(dn||(dn=D.n5z(ce)))(Nt||ce)}}(),ce.\u0275prov=D.Yz7({token:ce,factory:ce.\u0275fac,providedIn:"root"});class ye extends u.iR{constructor(xt,Nt,Fn,ri){super(xt,Nt,Fn,ri),this.DIRECTIVE_KEY="grid-align-columns",this._inline=!1,this.init()}get inline(){return this._inline}set inline(xt){this._inline=(0,S.Ig)(xt)}updateWithValue(xt){this.styleCache=this.inline?$:ue,this.addStyles(xt,{inline:this.inline})}}ye.\u0275fac=function(xt){return new(xt||ye)(D.Y36(D.SBq),D.Y36(ce),D.Y36(u.RK),D.Y36(u.yB))},ye.\u0275dir=D.lG2({type:ye,inputs:{inline:["gdInline","inline"]},features:[D.qOj]});const ue=new Map,$=new Map,he=["gdAlignColumns","gdAlignColumns.xs","gdAlignColumns.sm","gdAlignColumns.md","gdAlignColumns.lg","gdAlignColumns.xl","gdAlignColumns.lt-sm","gdAlignColumns.lt-md","gdAlignColumns.lt-lg","gdAlignColumns.lt-xl","gdAlignColumns.gt-xs","gdAlignColumns.gt-sm","gdAlignColumns.gt-md","gdAlignColumns.gt-lg"];class n extends ye{constructor(){super(...arguments),this.inputs=he}}n.\u0275fac=function(){let dn;return function(Nt){return(dn||(dn=D.n5z(n)))(Nt||n)}}(),n.\u0275dir=D.lG2({type:n,selectors:[["","gdAlignColumns",""],["","gdAlignColumns.xs",""],["","gdAlignColumns.sm",""],["","gdAlignColumns.md",""],["","gdAlignColumns.lg",""],["","gdAlignColumns.xl",""],["","gdAlignColumns.lt-sm",""],["","gdAlignColumns.lt-md",""],["","gdAlignColumns.lt-lg",""],["","gdAlignColumns.lt-xl",""],["","gdAlignColumns.gt-xs",""],["","gdAlignColumns.gt-sm",""],["","gdAlignColumns.gt-md",""],["","gdAlignColumns.gt-lg",""]],inputs:{gdAlignColumns:"gdAlignColumns","gdAlignColumns.xs":"gdAlignColumns.xs","gdAlignColumns.sm":"gdAlignColumns.sm","gdAlignColumns.md":"gdAlignColumns.md","gdAlignColumns.lg":"gdAlignColumns.lg","gdAlignColumns.xl":"gdAlignColumns.xl","gdAlignColumns.lt-sm":"gdAlignColumns.lt-sm","gdAlignColumns.lt-md":"gdAlignColumns.lt-md","gdAlignColumns.lt-lg":"gdAlignColumns.lt-lg","gdAlignColumns.lt-xl":"gdAlignColumns.lt-xl","gdAlignColumns.gt-xs":"gdAlignColumns.gt-xs","gdAlignColumns.gt-sm":"gdAlignColumns.gt-sm","gdAlignColumns.gt-md":"gdAlignColumns.gt-md","gdAlignColumns.gt-lg":"gdAlignColumns.gt-lg"},features:[D.qOj]});const h="start",d="stretch";class y extends u.QI{buildStyles(xt,Nt){return function F(dn,xt){const Nt={},[Fn,ri]=dn.split(" ");switch(Fn){case"center":case"space-around":case"space-between":case"space-evenly":case"end":case"start":case"stretch":Nt["justify-content"]=Fn;break;default:Nt["justify-content"]=h}switch(ri){case"start":case"center":case"end":case"stretch":Nt["justify-items"]=ri;break;default:Nt["justify-items"]=d}return Nt.display=xt?"inline-grid":"grid",Nt}(xt||`${h} ${d}`,Nt.inline)}}y.\u0275fac=function(){let dn;return function(Nt){return(dn||(dn=D.n5z(y)))(Nt||y)}}(),y.\u0275prov=D.Yz7({token:y,factory:y.\u0275fac,providedIn:"root"});class L extends u.iR{constructor(xt,Nt,Fn,ri){super(xt,Nt,Fn,ri),this.DIRECTIVE_KEY="grid-align-rows",this._inline=!1,this.init()}get inline(){return this._inline}set inline(xt){this._inline=(0,S.Ig)(xt)}updateWithValue(xt){this.styleCache=this.inline?v:B,this.addStyles(xt,{inline:this.inline})}}L.\u0275fac=function(xt){return new(xt||L)(D.Y36(D.SBq),D.Y36(y),D.Y36(u.RK),D.Y36(u.yB))},L.\u0275dir=D.lG2({type:L,inputs:{inline:["gdInline","inline"]},features:[D.qOj]});const B=new Map,v=new Map,a=["gdAlignRows","gdAlignRows.xs","gdAlignRows.sm","gdAlignRows.md","gdAlignRows.lg","gdAlignRows.xl","gdAlignRows.lt-sm","gdAlignRows.lt-md","gdAlignRows.lt-lg","gdAlignRows.lt-xl","gdAlignRows.gt-xs","gdAlignRows.gt-sm","gdAlignRows.gt-md","gdAlignRows.gt-lg"];class N extends L{constructor(){super(...arguments),this.inputs=a}}N.\u0275fac=function(){let dn;return function(Nt){return(dn||(dn=D.n5z(N)))(Nt||N)}}(),N.\u0275dir=D.lG2({type:N,selectors:[["","gdAlignRows",""],["","gdAlignRows.xs",""],["","gdAlignRows.sm",""],["","gdAlignRows.md",""],["","gdAlignRows.lg",""],["","gdAlignRows.xl",""],["","gdAlignRows.lt-sm",""],["","gdAlignRows.lt-md",""],["","gdAlignRows.lt-lg",""],["","gdAlignRows.lt-xl",""],["","gdAlignRows.gt-xs",""],["","gdAlignRows.gt-sm",""],["","gdAlignRows.gt-md",""],["","gdAlignRows.gt-lg",""]],inputs:{gdAlignRows:"gdAlignRows","gdAlignRows.xs":"gdAlignRows.xs","gdAlignRows.sm":"gdAlignRows.sm","gdAlignRows.md":"gdAlignRows.md","gdAlignRows.lg":"gdAlignRows.lg","gdAlignRows.xl":"gdAlignRows.xl","gdAlignRows.lt-sm":"gdAlignRows.lt-sm","gdAlignRows.lt-md":"gdAlignRows.lt-md","gdAlignRows.lt-lg":"gdAlignRows.lt-lg","gdAlignRows.lt-xl":"gdAlignRows.lt-xl","gdAlignRows.gt-xs":"gdAlignRows.gt-xs","gdAlignRows.gt-sm":"gdAlignRows.gt-sm","gdAlignRows.gt-md":"gdAlignRows.gt-md","gdAlignRows.gt-lg":"gdAlignRows.gt-lg"},features:[D.qOj]});class Fe extends u.QI{buildStyles(xt){return{"grid-area":xt||"auto"}}}Fe.\u0275fac=function(){let dn;return function(Nt){return(dn||(dn=D.n5z(Fe)))(Nt||Fe)}}(),Fe.\u0275prov=D.Yz7({token:Fe,factory:Fe.\u0275fac,providedIn:"root"});class ke extends u.iR{constructor(xt,Nt,Fn,ri){super(xt,Fn,Nt,ri),this.DIRECTIVE_KEY="grid-area",this.styleCache=Ke,this.init()}}ke.\u0275fac=function(xt){return new(xt||ke)(D.Y36(D.SBq),D.Y36(u.RK),D.Y36(Fe),D.Y36(u.yB))},ke.\u0275dir=D.lG2({type:ke,features:[D.qOj]});const Ke=new Map,je=["gdArea","gdArea.xs","gdArea.sm","gdArea.md","gdArea.lg","gdArea.xl","gdArea.lt-sm","gdArea.lt-md","gdArea.lt-lg","gdArea.lt-xl","gdArea.gt-xs","gdArea.gt-sm","gdArea.gt-md","gdArea.gt-lg"];class xe extends ke{constructor(){super(...arguments),this.inputs=je}}xe.\u0275fac=function(){let dn;return function(Nt){return(dn||(dn=D.n5z(xe)))(Nt||xe)}}(),xe.\u0275dir=D.lG2({type:xe,selectors:[["","gdArea",""],["","gdArea.xs",""],["","gdArea.sm",""],["","gdArea.md",""],["","gdArea.lg",""],["","gdArea.xl",""],["","gdArea.lt-sm",""],["","gdArea.lt-md",""],["","gdArea.lt-lg",""],["","gdArea.lt-xl",""],["","gdArea.gt-xs",""],["","gdArea.gt-sm",""],["","gdArea.gt-md",""],["","gdArea.gt-lg",""]],inputs:{gdArea:"gdArea","gdArea.xs":"gdArea.xs","gdArea.sm":"gdArea.sm","gdArea.md":"gdArea.md","gdArea.lg":"gdArea.lg","gdArea.xl":"gdArea.xl","gdArea.lt-sm":"gdArea.lt-sm","gdArea.lt-md":"gdArea.lt-md","gdArea.lt-lg":"gdArea.lt-lg","gdArea.lt-xl":"gdArea.lt-xl","gdArea.gt-xs":"gdArea.gt-xs","gdArea.gt-sm":"gdArea.gt-sm","gdArea.gt-md":"gdArea.gt-md","gdArea.gt-lg":"gdArea.gt-lg"},features:[D.qOj]});class ve extends u.QI{buildStyles(xt,Nt){const Fn=(xt||"none").split("|").map(ri=>`"${ri.trim()}"`);return{display:Nt.inline?"inline-grid":"grid","grid-template-areas":Fn.join(" ")}}}ve.\u0275fac=function(){let dn;return function(Nt){return(dn||(dn=D.n5z(ve)))(Nt||ve)}}(),ve.\u0275prov=D.Yz7({token:ve,factory:ve.\u0275fac,providedIn:"root"});class et extends u.iR{constructor(xt,Nt,Fn,ri){super(xt,Fn,Nt,ri),this.DIRECTIVE_KEY="grid-areas",this._inline=!1,this.init()}get inline(){return this._inline}set inline(xt){this._inline=(0,S.Ig)(xt)}updateWithValue(xt){this.styleCache=this.inline?Le:ht,this.addStyles(xt,{inline:this.inline})}}et.\u0275fac=function(xt){return new(xt||et)(D.Y36(D.SBq),D.Y36(u.RK),D.Y36(ve),D.Y36(u.yB))},et.\u0275dir=D.lG2({type:et,inputs:{inline:["gdInline","inline"]},features:[D.qOj]});const ht=new Map,Le=new Map,Ae=["gdAreas","gdAreas.xs","gdAreas.sm","gdAreas.md","gdAreas.lg","gdAreas.xl","gdAreas.lt-sm","gdAreas.lt-md","gdAreas.lt-lg","gdAreas.lt-xl","gdAreas.gt-xs","gdAreas.gt-sm","gdAreas.gt-md","gdAreas.gt-lg"];class pe extends et{constructor(){super(...arguments),this.inputs=Ae}}pe.\u0275fac=function(){let dn;return function(Nt){return(dn||(dn=D.n5z(pe)))(Nt||pe)}}(),pe.\u0275dir=D.lG2({type:pe,selectors:[["","gdAreas",""],["","gdAreas.xs",""],["","gdAreas.sm",""],["","gdAreas.md",""],["","gdAreas.lg",""],["","gdAreas.xl",""],["","gdAreas.lt-sm",""],["","gdAreas.lt-md",""],["","gdAreas.lt-lg",""],["","gdAreas.lt-xl",""],["","gdAreas.gt-xs",""],["","gdAreas.gt-sm",""],["","gdAreas.gt-md",""],["","gdAreas.gt-lg",""]],inputs:{gdAreas:"gdAreas","gdAreas.xs":"gdAreas.xs","gdAreas.sm":"gdAreas.sm","gdAreas.md":"gdAreas.md","gdAreas.lg":"gdAreas.lg","gdAreas.xl":"gdAreas.xl","gdAreas.lt-sm":"gdAreas.lt-sm","gdAreas.lt-md":"gdAreas.lt-md","gdAreas.lt-lg":"gdAreas.lt-lg","gdAreas.lt-xl":"gdAreas.lt-xl","gdAreas.gt-xs":"gdAreas.gt-xs","gdAreas.gt-sm":"gdAreas.gt-sm","gdAreas.gt-md":"gdAreas.gt-md","gdAreas.gt-lg":"gdAreas.gt-lg"},features:[D.qOj]});class H extends u.QI{buildStyles(xt,Nt){let[Fn,ri]=(xt||"initial").split(" ");return"column"!==Fn&&"row"!==Fn&&"dense"!==Fn&&(Fn="row"),ri="dense"===ri&&"dense"!==Fn?" dense":"",{display:Nt.inline?"inline-grid":"grid","grid-auto-flow":Fn+ri}}}H.\u0275fac=function(){let dn;return function(Nt){return(dn||(dn=D.n5z(H)))(Nt||H)}}(),H.\u0275prov=D.Yz7({token:H,factory:H.\u0275fac,providedIn:"root"});class j extends u.iR{constructor(xt,Nt,Fn,ri){super(xt,Nt,Fn,ri),this._inline=!1,this.DIRECTIVE_KEY="grid-auto",this.init()}get inline(){return this._inline}set inline(xt){this._inline=(0,S.Ig)(xt)}updateWithValue(xt){this.styleCache=this.inline?Re:Oe,this.addStyles(xt,{inline:this.inline})}}j.\u0275fac=function(xt){return new(xt||j)(D.Y36(D.SBq),D.Y36(H),D.Y36(u.RK),D.Y36(u.yB))},j.\u0275dir=D.lG2({type:j,inputs:{inline:["gdInline","inline"]},features:[D.qOj]});const Oe=new Map,Re=new Map,le=["gdAuto","gdAuto.xs","gdAuto.sm","gdAuto.md","gdAuto.lg","gdAuto.xl","gdAuto.lt-sm","gdAuto.lt-md","gdAuto.lt-lg","gdAuto.lt-xl","gdAuto.gt-xs","gdAuto.gt-sm","gdAuto.gt-md","gdAuto.gt-lg"];class it extends j{constructor(){super(...arguments),this.inputs=le}}it.\u0275fac=function(){let dn;return function(Nt){return(dn||(dn=D.n5z(it)))(Nt||it)}}(),it.\u0275dir=D.lG2({type:it,selectors:[["","gdAuto",""],["","gdAuto.xs",""],["","gdAuto.sm",""],["","gdAuto.md",""],["","gdAuto.lg",""],["","gdAuto.xl",""],["","gdAuto.lt-sm",""],["","gdAuto.lt-md",""],["","gdAuto.lt-lg",""],["","gdAuto.lt-xl",""],["","gdAuto.gt-xs",""],["","gdAuto.gt-sm",""],["","gdAuto.gt-md",""],["","gdAuto.gt-lg",""]],inputs:{gdAuto:"gdAuto","gdAuto.xs":"gdAuto.xs","gdAuto.sm":"gdAuto.sm","gdAuto.md":"gdAuto.md","gdAuto.lg":"gdAuto.lg","gdAuto.xl":"gdAuto.xl","gdAuto.lt-sm":"gdAuto.lt-sm","gdAuto.lt-md":"gdAuto.lt-md","gdAuto.lt-lg":"gdAuto.lt-lg","gdAuto.lt-xl":"gdAuto.lt-xl","gdAuto.gt-xs":"gdAuto.gt-xs","gdAuto.gt-sm":"gdAuto.gt-sm","gdAuto.gt-md":"gdAuto.gt-md","gdAuto.gt-lg":"gdAuto.gt-lg"},features:[D.qOj]});class un extends u.QI{buildStyles(xt){return{"grid-column":xt||"auto"}}}un.\u0275fac=function(){let dn;return function(Nt){return(dn||(dn=D.n5z(un)))(Nt||un)}}(),un.\u0275prov=D.Yz7({token:un,factory:un.\u0275fac,providedIn:"root"});class Bt extends u.iR{constructor(xt,Nt,Fn,ri){super(xt,Nt,Fn,ri),this.DIRECTIVE_KEY="grid-column",this.styleCache=Ut,this.init()}}Bt.\u0275fac=function(xt){return new(xt||Bt)(D.Y36(D.SBq),D.Y36(un),D.Y36(u.RK),D.Y36(u.yB))},Bt.\u0275dir=D.lG2({type:Bt,features:[D.qOj]});const Ut=new Map,yn=["gdColumn","gdColumn.xs","gdColumn.sm","gdColumn.md","gdColumn.lg","gdColumn.xl","gdColumn.lt-sm","gdColumn.lt-md","gdColumn.lt-lg","gdColumn.lt-xl","gdColumn.gt-xs","gdColumn.gt-sm","gdColumn.gt-md","gdColumn.gt-lg"];class Gt extends Bt{constructor(){super(...arguments),this.inputs=yn}}Gt.\u0275fac=function(){let dn;return function(Nt){return(dn||(dn=D.n5z(Gt)))(Nt||Gt)}}(),Gt.\u0275dir=D.lG2({type:Gt,selectors:[["","gdColumn",""],["","gdColumn.xs",""],["","gdColumn.sm",""],["","gdColumn.md",""],["","gdColumn.lg",""],["","gdColumn.xl",""],["","gdColumn.lt-sm",""],["","gdColumn.lt-md",""],["","gdColumn.lt-lg",""],["","gdColumn.lt-xl",""],["","gdColumn.gt-xs",""],["","gdColumn.gt-sm",""],["","gdColumn.gt-md",""],["","gdColumn.gt-lg",""]],inputs:{gdColumn:"gdColumn","gdColumn.xs":"gdColumn.xs","gdColumn.sm":"gdColumn.sm","gdColumn.md":"gdColumn.md","gdColumn.lg":"gdColumn.lg","gdColumn.xl":"gdColumn.xl","gdColumn.lt-sm":"gdColumn.lt-sm","gdColumn.lt-md":"gdColumn.lt-md","gdColumn.lt-lg":"gdColumn.lt-lg","gdColumn.lt-xl":"gdColumn.lt-xl","gdColumn.gt-xs":"gdColumn.gt-xs","gdColumn.gt-sm":"gdColumn.gt-sm","gdColumn.gt-md":"gdColumn.gt-md","gdColumn.gt-lg":"gdColumn.gt-lg"},features:[D.qOj]});class tn extends u.QI{buildStyles(xt,Nt){let Fn=!1;(xt=xt||"none").endsWith("!")&&(xt=xt.substring(0,xt.indexOf("!")),Fn=!0);const ri={display:Nt.inline?"inline-grid":"grid","grid-auto-columns":"","grid-template-columns":""};return ri[Fn?"grid-auto-columns":"grid-template-columns"]=xt,ri}}tn.\u0275fac=function(){let dn;return function(Nt){return(dn||(dn=D.n5z(tn)))(Nt||tn)}}(),tn.\u0275prov=D.Yz7({token:tn,factory:tn.\u0275fac,providedIn:"root"});class pn extends u.iR{constructor(xt,Nt,Fn,ri){super(xt,Nt,Fn,ri),this.DIRECTIVE_KEY="grid-columns",this._inline=!1,this.init()}get inline(){return this._inline}set inline(xt){this._inline=(0,S.Ig)(xt)}updateWithValue(xt){this.styleCache=this.inline?vt:tt,this.addStyles(xt,{inline:this.inline})}}pn.\u0275fac=function(xt){return new(xt||pn)(D.Y36(D.SBq),D.Y36(tn),D.Y36(u.RK),D.Y36(u.yB))},pn.\u0275dir=D.lG2({type:pn,inputs:{inline:["gdInline","inline"]},features:[D.qOj]});const tt=new Map,vt=new Map,dt=["gdColumns","gdColumns.xs","gdColumns.sm","gdColumns.md","gdColumns.lg","gdColumns.xl","gdColumns.lt-sm","gdColumns.lt-md","gdColumns.lt-lg","gdColumns.lt-xl","gdColumns.gt-xs","gdColumns.gt-sm","gdColumns.gt-md","gdColumns.gt-lg"];class J extends pn{constructor(){super(...arguments),this.inputs=dt}}J.\u0275fac=function(){let dn;return function(Nt){return(dn||(dn=D.n5z(J)))(Nt||J)}}(),J.\u0275dir=D.lG2({type:J,selectors:[["","gdColumns",""],["","gdColumns.xs",""],["","gdColumns.sm",""],["","gdColumns.md",""],["","gdColumns.lg",""],["","gdColumns.xl",""],["","gdColumns.lt-sm",""],["","gdColumns.lt-md",""],["","gdColumns.lt-lg",""],["","gdColumns.lt-xl",""],["","gdColumns.gt-xs",""],["","gdColumns.gt-sm",""],["","gdColumns.gt-md",""],["","gdColumns.gt-lg",""]],inputs:{gdColumns:"gdColumns","gdColumns.xs":"gdColumns.xs","gdColumns.sm":"gdColumns.sm","gdColumns.md":"gdColumns.md","gdColumns.lg":"gdColumns.lg","gdColumns.xl":"gdColumns.xl","gdColumns.lt-sm":"gdColumns.lt-sm","gdColumns.lt-md":"gdColumns.lt-md","gdColumns.lt-lg":"gdColumns.lt-lg","gdColumns.lt-xl":"gdColumns.lt-xl","gdColumns.gt-xs":"gdColumns.gt-xs","gdColumns.gt-sm":"gdColumns.gt-sm","gdColumns.gt-md":"gdColumns.gt-md","gdColumns.gt-lg":"gdColumns.gt-lg"},features:[D.qOj]});class De extends u.QI{buildStyles(xt,Nt){return{display:Nt.inline?"inline-grid":"grid","grid-gap":xt||"0"}}}De.\u0275fac=function(){let dn;return function(Nt){return(dn||(dn=D.n5z(De)))(Nt||De)}}(),De.\u0275prov=D.Yz7({token:De,factory:De.\u0275fac,providedIn:"root"});class Ye extends u.iR{constructor(xt,Nt,Fn,ri){super(xt,Fn,Nt,ri),this.DIRECTIVE_KEY="grid-gap",this._inline=!1,this.init()}get inline(){return this._inline}set inline(xt){this._inline=(0,S.Ig)(xt)}updateWithValue(xt){this.styleCache=this.inline?ut:Dt,this.addStyles(xt,{inline:this.inline})}}Ye.\u0275fac=function(xt){return new(xt||Ye)(D.Y36(D.SBq),D.Y36(u.RK),D.Y36(De),D.Y36(u.yB))},Ye.\u0275dir=D.lG2({type:Ye,inputs:{inline:["gdInline","inline"]},features:[D.qOj]});const Dt=new Map,ut=new Map,ze=["gdGap","gdGap.xs","gdGap.sm","gdGap.md","gdGap.lg","gdGap.xl","gdGap.lt-sm","gdGap.lt-md","gdGap.lt-lg","gdGap.lt-xl","gdGap.gt-xs","gdGap.gt-sm","gdGap.gt-md","gdGap.gt-lg"];class Ce extends Ye{constructor(){super(...arguments),this.inputs=ze}}Ce.\u0275fac=function(){let dn;return function(Nt){return(dn||(dn=D.n5z(Ce)))(Nt||Ce)}}(),Ce.\u0275dir=D.lG2({type:Ce,selectors:[["","gdGap",""],["","gdGap.xs",""],["","gdGap.sm",""],["","gdGap.md",""],["","gdGap.lg",""],["","gdGap.xl",""],["","gdGap.lt-sm",""],["","gdGap.lt-md",""],["","gdGap.lt-lg",""],["","gdGap.lt-xl",""],["","gdGap.gt-xs",""],["","gdGap.gt-sm",""],["","gdGap.gt-md",""],["","gdGap.gt-lg",""]],inputs:{gdGap:"gdGap","gdGap.xs":"gdGap.xs","gdGap.sm":"gdGap.sm","gdGap.md":"gdGap.md","gdGap.lg":"gdGap.lg","gdGap.xl":"gdGap.xl","gdGap.lt-sm":"gdGap.lt-sm","gdGap.lt-md":"gdGap.lt-md","gdGap.lt-lg":"gdGap.lt-lg","gdGap.lt-xl":"gdGap.lt-xl","gdGap.gt-xs":"gdGap.gt-xs","gdGap.gt-sm":"gdGap.gt-sm","gdGap.gt-md":"gdGap.gt-md","gdGap.gt-lg":"gdGap.gt-lg"},features:[D.qOj]});class zt extends u.QI{buildStyles(xt){return{"grid-row":xt||"auto"}}}zt.\u0275fac=function(){let dn;return function(Nt){return(dn||(dn=D.n5z(zt)))(Nt||zt)}}(),zt.\u0275prov=D.Yz7({token:zt,factory:zt.\u0275fac,providedIn:"root"});class At extends u.iR{constructor(xt,Nt,Fn,ri){super(xt,Nt,Fn,ri),this.DIRECTIVE_KEY="grid-row",this.styleCache=Tt,this.init()}}At.\u0275fac=function(xt){return new(xt||At)(D.Y36(D.SBq),D.Y36(zt),D.Y36(u.RK),D.Y36(u.yB))},At.\u0275dir=D.lG2({type:At,features:[D.qOj]});const Tt=new Map,Ht=["gdRow","gdRow.xs","gdRow.sm","gdRow.md","gdRow.lg","gdRow.xl","gdRow.lt-sm","gdRow.lt-md","gdRow.lt-lg","gdRow.lt-xl","gdRow.gt-xs","gdRow.gt-sm","gdRow.gt-md","gdRow.gt-lg"];class $e extends At{constructor(){super(...arguments),this.inputs=Ht}}$e.\u0275fac=function(){let dn;return function(Nt){return(dn||(dn=D.n5z($e)))(Nt||$e)}}(),$e.\u0275dir=D.lG2({type:$e,selectors:[["","gdRow",""],["","gdRow.xs",""],["","gdRow.sm",""],["","gdRow.md",""],["","gdRow.lg",""],["","gdRow.xl",""],["","gdRow.lt-sm",""],["","gdRow.lt-md",""],["","gdRow.lt-lg",""],["","gdRow.lt-xl",""],["","gdRow.gt-xs",""],["","gdRow.gt-sm",""],["","gdRow.gt-md",""],["","gdRow.gt-lg",""]],inputs:{gdRow:"gdRow","gdRow.xs":"gdRow.xs","gdRow.sm":"gdRow.sm","gdRow.md":"gdRow.md","gdRow.lg":"gdRow.lg","gdRow.xl":"gdRow.xl","gdRow.lt-sm":"gdRow.lt-sm","gdRow.lt-md":"gdRow.lt-md","gdRow.lt-lg":"gdRow.lt-lg","gdRow.lt-xl":"gdRow.lt-xl","gdRow.gt-xs":"gdRow.gt-xs","gdRow.gt-sm":"gdRow.gt-sm","gdRow.gt-md":"gdRow.gt-md","gdRow.gt-lg":"gdRow.gt-lg"},features:[D.qOj]});class Jt extends u.QI{buildStyles(xt,Nt){let Fn=!1;(xt=xt||"none").endsWith("!")&&(xt=xt.substring(0,xt.indexOf("!")),Fn=!0);const ri={display:Nt.inline?"inline-grid":"grid","grid-auto-rows":"","grid-template-rows":""};return ri[Fn?"grid-auto-rows":"grid-template-rows"]=xt,ri}}Jt.\u0275fac=function(){let dn;return function(Nt){return(dn||(dn=D.n5z(Jt)))(Nt||Jt)}}(),Jt.\u0275prov=D.Yz7({token:Jt,factory:Jt.\u0275fac,providedIn:"root"});class Vn extends u.iR{constructor(xt,Nt,Fn,ri){super(xt,Nt,Fn,ri),this.DIRECTIVE_KEY="grid-rows",this._inline=!1,this.init()}get inline(){return this._inline}set inline(xt){this._inline=(0,S.Ig)(xt)}updateWithValue(xt){this.styleCache=this.inline?Tn:zn,this.addStyles(xt,{inline:this.inline})}}Vn.\u0275fac=function(xt){return new(xt||Vn)(D.Y36(D.SBq),D.Y36(Jt),D.Y36(u.RK),D.Y36(u.yB))},Vn.\u0275dir=D.lG2({type:Vn,inputs:{inline:["gdInline","inline"]},features:[D.qOj]});const zn=new Map,Tn=new Map,Yn=["gdRows","gdRows.xs","gdRows.sm","gdRows.md","gdRows.lg","gdRows.xl","gdRows.lt-sm","gdRows.lt-md","gdRows.lt-lg","gdRows.lt-xl","gdRows.gt-xs","gdRows.gt-sm","gdRows.gt-md","gdRows.gt-lg"];class Ge extends Vn{constructor(){super(...arguments),this.inputs=Yn}}Ge.\u0275fac=function(){let dn;return function(Nt){return(dn||(dn=D.n5z(Ge)))(Nt||Ge)}}(),Ge.\u0275dir=D.lG2({type:Ge,selectors:[["","gdRows",""],["","gdRows.xs",""],["","gdRows.sm",""],["","gdRows.md",""],["","gdRows.lg",""],["","gdRows.xl",""],["","gdRows.lt-sm",""],["","gdRows.lt-md",""],["","gdRows.lt-lg",""],["","gdRows.lt-xl",""],["","gdRows.gt-xs",""],["","gdRows.gt-sm",""],["","gdRows.gt-md",""],["","gdRows.gt-lg",""]],inputs:{gdRows:"gdRows","gdRows.xs":"gdRows.xs","gdRows.sm":"gdRows.sm","gdRows.md":"gdRows.md","gdRows.lg":"gdRows.lg","gdRows.xl":"gdRows.xl","gdRows.lt-sm":"gdRows.lt-sm","gdRows.lt-md":"gdRows.lt-md","gdRows.lt-lg":"gdRows.lt-lg","gdRows.lt-xl":"gdRows.lt-xl","gdRows.gt-xs":"gdRows.gt-xs","gdRows.gt-sm":"gdRows.gt-sm","gdRows.gt-md":"gdRows.gt-md","gdRows.gt-lg":"gdRows.gt-lg"},features:[D.qOj]});class ft{}ft.\u0275fac=function(xt){return new(xt||ft)},ft.\u0275mod=D.oAB({type:ft}),ft.\u0275inj=D.cJS({imports:[u.IR]});new D.GfV("14.0.0-beta.41");class Te{constructor(xt,Nt){(0,e.PM)(Nt)&&!xt&&console.warn("Warning: Flex Layout loaded on the server without FlexLayoutServerModule")}static withConfig(xt,Nt=[]){return{ngModule:Te,providers:xt.serverLoaded?[{provide:u.WU,useValue:{...u.g5,...xt}},{provide:u.Bs,useValue:Nt,multi:!0},{provide:u.wY,useValue:!0}]:[{provide:u.WU,useValue:{...u.g5,...xt}},{provide:u.Bs,useValue:Nt,multi:!0}]}}}Te.\u0275fac=function(xt){return new(xt||Te)(D.LFG(u.wY),D.LFG(D.Lbi))},Te.\u0275mod=D.oAB({type:Te}),Te.\u0275inj=D.cJS({imports:[p.ae,k.aT,ft,p.ae,k.aT,ft]});var pt=m(3278),Lt=m(207),nn=m(640),Bn=m(8550),Wn=m(3335),ti=m(4522),Mn=m(4218),Ln=m(1755);const ai=["button"],hn=new D.OlP("MAT_BUTTON_TOGGLE_DEFAULT_OPTIONS"),en=new D.OlP("MatButtonToggleGroup"),gn={provide:_.JU,useExisting:(0,D.Gpc)(()=>ha),multi:!0};let Qn=0;class Ei{constructor(xt,Nt){this.source=xt,this.value=Nt}}class ha{constructor(xt,Nt){this._changeDetector=xt,this._vertical=!1,this._multiple=!1,this._disabled=!1,this._controlValueAccessorChangeFn=()=>{},this._onTouched=()=>{},this._name="mat-button-toggle-group-"+Qn++,this.valueChange=new D.vpe,this.change=new D.vpe,this.appearance=Nt&&Nt.appearance?Nt.appearance:"standard"}get name(){return this._name}set name(xt){this._name=xt,this._markButtonsForCheck()}get vertical(){return this._vertical}set vertical(xt){this._vertical=(0,S.Ig)(xt)}get value(){const xt=this._selectionModel?this._selectionModel.selected:[];return this.multiple?xt.map(Nt=>Nt.value):xt[0]?xt[0].value:void 0}set value(xt){this._setSelectionByValue(xt),this.valueChange.emit(this.value)}get selected(){const xt=this._selectionModel?this._selectionModel.selected:[];return this.multiple?xt:xt[0]||null}get multiple(){return this._multiple}set multiple(xt){this._multiple=(0,S.Ig)(xt),this._markButtonsForCheck()}get disabled(){return this._disabled}set disabled(xt){this._disabled=(0,S.Ig)(xt),this._markButtonsForCheck()}ngOnInit(){this._selectionModel=new Ln.Ov(this.multiple,void 0,!1)}ngAfterContentInit(){this._selectionModel.select(...this._buttonToggles.filter(xt=>xt.checked))}writeValue(xt){this.value=xt,this._changeDetector.markForCheck()}registerOnChange(xt){this._controlValueAccessorChangeFn=xt}registerOnTouched(xt){this._onTouched=xt}setDisabledState(xt){this.disabled=xt}_emitChangeEvent(xt){const Nt=new Ei(xt,this.value);this._controlValueAccessorChangeFn(Nt.value),this.change.emit(Nt)}_syncButtonToggle(xt,Nt,Fn=!1,ri=!1){!this.multiple&&this.selected&&!xt.checked&&(this.selected.checked=!1),this._selectionModel?Nt?this._selectionModel.select(xt):this._selectionModel.deselect(xt):ri=!0,ri?Promise.resolve().then(()=>this._updateModelValue(xt,Fn)):this._updateModelValue(xt,Fn)}_isSelected(xt){return this._selectionModel&&this._selectionModel.isSelected(xt)}_isPrechecked(xt){return!(typeof this._rawValue>"u")&&(this.multiple&&Array.isArray(this._rawValue)?this._rawValue.some(Nt=>null!=xt.value&&Nt===xt.value):xt.value===this._rawValue)}_setSelectionByValue(xt){this._rawValue=xt,this._buttonToggles&&(this.multiple&&xt?(Array.isArray(xt),this._clearSelection(),xt.forEach(Nt=>this._selectValue(Nt))):(this._clearSelection(),this._selectValue(xt)))}_clearSelection(){this._selectionModel.clear(),this._buttonToggles.forEach(xt=>xt.checked=!1)}_selectValue(xt){const Nt=this._buttonToggles.find(Fn=>null!=Fn.value&&Fn.value===xt);Nt&&(Nt.checked=!0,this._selectionModel.select(Nt))}_updateModelValue(xt,Nt){Nt&&this._emitChangeEvent(xt),this.valueChange.emit(this.value)}_markButtonsForCheck(){this._buttonToggles?.forEach(xt=>xt._markForCheck())}}ha.\u0275fac=function(xt){return new(xt||ha)(D.Y36(D.sBO),D.Y36(hn,8))},ha.\u0275dir=D.lG2({type:ha,selectors:[["mat-button-toggle-group"]],contentQueries:function(xt,Nt,Fn){if(1&xt&&D.Suo(Fn,qi,5),2&xt){let ri;D.iGM(ri=D.CRH())&&(Nt._buttonToggles=ri)}},hostAttrs:["role","group",1,"mat-button-toggle-group"],hostVars:5,hostBindings:function(xt,Nt){2&xt&&(D.uIk("aria-disabled",Nt.disabled),D.ekj("mat-button-toggle-vertical",Nt.vertical)("mat-button-toggle-group-appearance-standard","standard"===Nt.appearance))},inputs:{appearance:"appearance",name:"name",vertical:"vertical",value:"value",multiple:"multiple",disabled:"disabled"},outputs:{valueChange:"valueChange",change:"change"},exportAs:["matButtonToggleGroup"],features:[D._Bn([gn,{provide:en,useExisting:ha}])]});const mi=(0,Lt.Kr)(class{});class qi extends mi{constructor(xt,Nt,Fn,ri,Bi,Xi){super(),this._changeDetectorRef=Nt,this._elementRef=Fn,this._focusMonitor=ri,this._checked=!1,this.ariaLabelledby=null,this._disabled=!1,this.change=new D.vpe;const oa=Number(Bi);this.tabIndex=oa||0===oa?oa:null,this.buttonToggleGroup=xt,this.appearance=Xi&&Xi.appearance?Xi.appearance:"standard"}get buttonId(){return`${this.id}-button`}get appearance(){return this.buttonToggleGroup?this.buttonToggleGroup.appearance:this._appearance}set appearance(xt){this._appearance=xt}get checked(){return this.buttonToggleGroup?this.buttonToggleGroup._isSelected(this):this._checked}set checked(xt){const Nt=(0,S.Ig)(xt);Nt!==this._checked&&(this._checked=Nt,this.buttonToggleGroup&&this.buttonToggleGroup._syncButtonToggle(this,this._checked),this._changeDetectorRef.markForCheck())}get disabled(){return this._disabled||this.buttonToggleGroup&&this.buttonToggleGroup.disabled}set disabled(xt){this._disabled=(0,S.Ig)(xt)}ngOnInit(){const xt=this.buttonToggleGroup;this.id=this.id||"mat-button-toggle-"+Qn++,xt&&(xt._isPrechecked(this)?this.checked=!0:xt._isSelected(this)!==this._checked&&xt._syncButtonToggle(this,this._checked))}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0)}ngOnDestroy(){const xt=this.buttonToggleGroup;this._focusMonitor.stopMonitoring(this._elementRef),xt&&xt._isSelected(this)&&xt._syncButtonToggle(this,!1,!1,!0)}focus(xt){this._buttonElement.nativeElement.focus(xt)}_onButtonClick(){const xt=!!this._isSingleSelector()||!this._checked;xt!==this._checked&&(this._checked=xt,this.buttonToggleGroup&&(this.buttonToggleGroup._syncButtonToggle(this,this._checked,!0),this.buttonToggleGroup._onTouched())),this.change.emit(new Ei(this,this.value))}_markForCheck(){this._changeDetectorRef.markForCheck()}_getButtonName(){return this._isSingleSelector()?this.buttonToggleGroup.name:this.name||null}_isSingleSelector(){return this.buttonToggleGroup&&!this.buttonToggleGroup.multiple}}qi.\u0275fac=function(xt){return new(xt||qi)(D.Y36(en,8),D.Y36(D.sBO),D.Y36(D.SBq),D.Y36(Mn.tE),D.$8M("tabindex"),D.Y36(hn,8))},qi.\u0275cmp=D.Xpm({type:qi,selectors:[["mat-button-toggle"]],viewQuery:function(xt,Nt){if(1&xt&&D.Gf(ai,5),2&xt){let Fn;D.iGM(Fn=D.CRH())&&(Nt._buttonElement=Fn.first)}},hostAttrs:["role","presentation",1,"mat-button-toggle"],hostVars:12,hostBindings:function(xt,Nt){1&xt&&D.NdJ("focus",function(){return Nt.focus()}),2&xt&&(D.uIk("aria-label",null)("aria-labelledby",null)("id",Nt.id)("name",null),D.ekj("mat-button-toggle-standalone",!Nt.buttonToggleGroup)("mat-button-toggle-checked",Nt.checked)("mat-button-toggle-disabled",Nt.disabled)("mat-button-toggle-appearance-standard","standard"===Nt.appearance))},inputs:{disableRipple:"disableRipple",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],id:"id",name:"name",value:"value",tabIndex:"tabIndex",appearance:"appearance",checked:"checked",disabled:"disabled"},outputs:{change:"change"},exportAs:["matButtonToggle"],features:[D.qOj],ngContentSelectors:["*"],decls:6,vars:9,consts:[["type","button",1,"mat-button-toggle-button","mat-focus-indicator",3,"id","disabled","click"],["button",""],[1,"mat-button-toggle-label-content"],[1,"mat-button-toggle-focus-overlay"],["matRipple","",1,"mat-button-toggle-ripple",3,"matRippleTrigger","matRippleDisabled"]],template:function(xt,Nt){if(1&xt&&(D.F$t(),D.TgZ(0,"button",0,1),D.NdJ("click",function(){return Nt._onButtonClick()}),D.TgZ(2,"span",2),D.Hsn(3),D.qZA()(),D._UZ(4,"span",3)(5,"span",4)),2&xt){const Fn=D.MAs(1);D.Q6J("id",Nt.buttonId)("disabled",Nt.disabled||null),D.uIk("tabindex",Nt.disabled?-1:Nt.tabIndex)("aria-pressed",Nt.checked)("name",Nt._getButtonName())("aria-label",Nt.ariaLabel)("aria-labelledby",Nt.ariaLabelledby),D.xp6(5),D.Q6J("matRippleTrigger",Fn)("matRippleDisabled",Nt.disableRipple||Nt.disabled)}},dependencies:[Lt.wG],styles:[".mat-button-toggle-standalone,.mat-button-toggle-group{position:relative;display:inline-flex;flex-direction:row;white-space:nowrap;overflow:hidden;border-radius:2px;-webkit-tap-highlight-color:rgba(0,0,0,0);transform:translateZ(0)}.cdk-high-contrast-active .mat-button-toggle-standalone,.cdk-high-contrast-active .mat-button-toggle-group{outline:solid 1px}.mat-button-toggle-standalone.mat-button-toggle-appearance-standard,.mat-button-toggle-group-appearance-standard{border-radius:4px}.cdk-high-contrast-active .mat-button-toggle-standalone.mat-button-toggle-appearance-standard,.cdk-high-contrast-active .mat-button-toggle-group-appearance-standard{outline:0}.mat-button-toggle-vertical{flex-direction:column}.mat-button-toggle-vertical .mat-button-toggle-label-content{display:block}.mat-button-toggle{white-space:nowrap;position:relative}.mat-button-toggle .mat-icon svg{vertical-align:top}.mat-button-toggle.cdk-keyboard-focused .mat-button-toggle-focus-overlay{opacity:1}.mat-button-toggle-appearance-standard:not(.mat-button-toggle-disabled):hover .mat-button-toggle-focus-overlay{opacity:.04}.mat-button-toggle-appearance-standard.cdk-keyboard-focused:not(.mat-button-toggle-disabled) .mat-button-toggle-focus-overlay{opacity:.12}@media(hover: none){.mat-button-toggle-appearance-standard:not(.mat-button-toggle-disabled):hover .mat-button-toggle-focus-overlay{display:none}}.mat-button-toggle-label-content{-webkit-user-select:none;user-select:none;display:inline-block;line-height:36px;padding:0 16px;position:relative}.mat-button-toggle-appearance-standard .mat-button-toggle-label-content{padding:0 12px}.mat-button-toggle-label-content>*{vertical-align:middle}.mat-button-toggle-focus-overlay{top:0;left:0;right:0;bottom:0;position:absolute;border-radius:inherit;pointer-events:none;opacity:0}.cdk-high-contrast-active .mat-button-toggle-checked .mat-button-toggle-focus-overlay{border-bottom:solid 36px;opacity:.5;height:0}.cdk-high-contrast-active .mat-button-toggle-checked:hover .mat-button-toggle-focus-overlay{opacity:.6}.cdk-high-contrast-active .mat-button-toggle-checked.mat-button-toggle-appearance-standard .mat-button-toggle-focus-overlay{border-bottom:solid 500px}.mat-button-toggle .mat-button-toggle-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-button-toggle-button{border:0;background:none;color:inherit;padding:0;margin:0;font:inherit;outline:none;width:100%;cursor:pointer}.mat-button-toggle-disabled .mat-button-toggle-button{cursor:default}.mat-button-toggle-button::-moz-focus-inner{border:0}"],encapsulation:2,changeDetection:0});class Zi{}Zi.\u0275fac=function(xt){return new(xt||Zi)},Zi.\u0275mod=D.oAB({type:Zi}),Zi.\u0275inj=D.cJS({imports:[Lt.BQ,Lt.si,Lt.BQ]});var Za=m(2156),mr=m(4792),It=m(2298),Ft=m(3012),ln=m(2642),En=m(7822),qn=m(1267),Nn=m(6517),li=m(8589),aa=m(6060),Ii=m(1294),ea=m(1708),Di=m(2922),Ji=m(7371),ka=m(6643),Yi=m(4714),Ha=m(2867),Hi=m(8456),La=m(9107),gr=m(7714);const Sa=["sliderWrapper"],fa=(0,La.i$)({passive:!1}),za={provide:_.JU,useExisting:(0,D.Gpc)(()=>Qi),multi:!0};class js{}const is=(0,Lt.sb)((0,Lt.pj)((0,Lt.Id)(class{constructor(dn){this._elementRef=dn}}),"accent"));class Qi extends is{constructor(xt,Nt,Fn,ri,Bi,Xi,oa,la){super(xt),this._focusMonitor=Nt,this._changeDetectorRef=Fn,this._dir=ri,this._ngZone=Xi,this._animationMode=la,this._invert=!1,this._max=100,this._min=0,this._step=1,this._thumbLabel=!1,this._tickInterval=0,this._value=null,this._vertical=!1,this.change=new D.vpe,this.input=new D.vpe,this.valueChange=new D.vpe,this.onTouched=()=>{},this._percent=0,this._isSliding=null,this._isActive=!1,this._tickIntervalPercent=0,this._sliderDimensions=null,this._controlValueAccessorChangeFn=()=>{},this._dirChangeSubscription=gr.w0.EMPTY,this._pointerDown=Li=>{this.disabled||this._isSliding||!Ta(Li)&&0!==Li.button||this._ngZone.run(()=>{this._touchId=Ta(Li)?function Ls(dn,xt){for(let Nt=0;Nt<dn.touches.length;Nt++){const Fn=dn.touches[Nt].target;if(xt===Fn||xt.contains(Fn))return dn.touches[Nt].identifier}}(Li,this._elementRef.nativeElement):void 0;const rs=Is(Li,this._touchId);if(rs){const Rr=this.value;this._isSliding="pointer",this._lastPointerEvent=Li,this._focusHostElement(),this._onMouseenter(),this._bindGlobalEvents(Li),this._focusHostElement(),this._updateValueFromPosition(rs),this._valueOnSlideStart=Rr,Li.cancelable&&Li.preventDefault(),Rr!=this.value&&this._emitInputEvent()}})},this._pointerMove=Li=>{if("pointer"===this._isSliding){const rs=Is(Li,this._touchId);if(rs){Li.cancelable&&Li.preventDefault();const Rr=this.value;this._lastPointerEvent=Li,this._updateValueFromPosition(rs),Rr!=this.value&&this._emitInputEvent()}}},this._pointerUp=Li=>{"pointer"===this._isSliding&&(!Ta(Li)||"number"!=typeof this._touchId||Ua(Li.changedTouches,this._touchId))&&(Li.cancelable&&Li.preventDefault(),this._removeGlobalEvents(),this._isSliding=null,this._touchId=void 0,this._valueOnSlideStart!=this.value&&!this.disabled&&this._emitChangeEvent(),this._valueOnSlideStart=this._lastPointerEvent=null)},this._windowBlur=()=>{this._lastPointerEvent&&this._pointerUp(this._lastPointerEvent)},this._document=oa,this.tabIndex=parseInt(Bi)||0,Xi.runOutsideAngular(()=>{const Li=xt.nativeElement;Li.addEventListener("mousedown",this._pointerDown,fa),Li.addEventListener("touchstart",this._pointerDown,fa)})}get invert(){return this._invert}set invert(xt){this._invert=(0,S.Ig)(xt)}get max(){return this._max}set max(xt){this._max=(0,S.su)(xt,this._max),this._percent=this._calculatePercentage(this._value),this._changeDetectorRef.markForCheck()}get min(){return this._min}set min(xt){this._min=(0,S.su)(xt,this._min),this._percent=this._calculatePercentage(this._value),this._changeDetectorRef.markForCheck()}get step(){return this._step}set step(xt){this._step=(0,S.su)(xt,this._step),this._step%1!=0&&(this._roundToDecimal=this._step.toString().split(".").pop().length),this._changeDetectorRef.markForCheck()}get thumbLabel(){return this._thumbLabel}set thumbLabel(xt){this._thumbLabel=(0,S.Ig)(xt)}get tickInterval(){return this._tickInterval}set tickInterval(xt){this._tickInterval="auto"===xt?"auto":"number"==typeof xt||"string"==typeof xt?(0,S.su)(xt,this._tickInterval):0}get value(){return null===this._value&&(this.value=this._min),this._value}set value(xt){if(xt!==this._value){let Nt=(0,S.su)(xt,0);this._roundToDecimal&&Nt!==this.min&&Nt!==this.max&&(Nt=parseFloat(Nt.toFixed(this._roundToDecimal))),this._value=Nt,this._percent=this._calculatePercentage(this._value),this._changeDetectorRef.markForCheck()}}get vertical(){return this._vertical}set vertical(xt){this._vertical=(0,S.Ig)(xt)}get displayValue(){return this.displayWith?this.displayWith(this.value):this._roundToDecimal&&this.value&&this.value%1!=0?this.value.toFixed(this._roundToDecimal):this.value||0}focus(xt){this._focusHostElement(xt)}blur(){this._blurHostElement()}get percent(){return this._clamp(this._percent)}_shouldInvertAxis(){return this.vertical?!this.invert:this.invert}_isMinValue(){return 0===this.percent}_getThumbGap(){return this.disabled?7:this._isMinValue()&&!this.thumbLabel?this._isActive?10:7:0}_getTrackBackgroundStyles(){const xt=this.vertical?"Y":"X",Nt=this.vertical?`1, ${1-this.percent}, 1`:1-this.percent+", 1, 1";return{transform:`translate${xt}(${this._shouldInvertMouseCoords()?"-":""}${this._getThumbGap()}px) scale3d(${Nt})`}}_getTrackFillStyles(){const xt=this.percent,Nt=this.vertical?"Y":"X",Fn=this.vertical?`1, ${xt}, 1`:`${xt}, 1, 1`;return{transform:`translate${Nt}(${this._shouldInvertMouseCoords()?"":"-"}${this._getThumbGap()}px) scale3d(${Fn})`,display:0===xt?"none":""}}_getTicksContainerStyles(){return{transform:`translate${this.vertical?"Y":"X"}(${this.vertical||"rtl"!=this._getDirection()?"-":""}${this._tickIntervalPercent/2*100}%)`}}_getTicksStyles(){let xt=100*this._tickIntervalPercent,Xi={backgroundSize:this.vertical?`2px ${xt}%`:`${xt}% 2px`,transform:`translateZ(0) translate${this.vertical?"Y":"X"}(${this.vertical||"rtl"!=this._getDirection()?"":"-"}${xt/2}%)${this.vertical||"rtl"!=this._getDirection()?"":" rotate(180deg)"}`};if(this._isMinValue()&&this._getThumbGap()){const oa=this._shouldInvertAxis();let la;la=this.vertical?oa?"Bottom":"Top":oa?"Right":"Left",Xi[`padding${la}`]=`${this._getThumbGap()}px`}return Xi}_getThumbContainerStyles(){const xt=this._shouldInvertAxis();return{transform:`translate${this.vertical?"Y":"X"}(-${100*(("rtl"!=this._getDirection()||this.vertical?xt:!xt)?this.percent:1-this.percent)}%)`}}_shouldInvertMouseCoords(){const xt=this._shouldInvertAxis();return"rtl"!=this._getDirection()||this.vertical?xt:!xt}_getDirection(){return this._dir&&"rtl"==this._dir.value?"rtl":"ltr"}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0).subscribe(xt=>{this._isActive=!!xt&&"keyboard"!==xt,this._changeDetectorRef.detectChanges()}),this._dir&&(this._dirChangeSubscription=this._dir.change.subscribe(()=>{this._changeDetectorRef.markForCheck()}))}ngOnDestroy(){const xt=this._elementRef.nativeElement;xt.removeEventListener("mousedown",this._pointerDown,fa),xt.removeEventListener("touchstart",this._pointerDown,fa),this._lastPointerEvent=null,this._removeGlobalEvents(),this._focusMonitor.stopMonitoring(this._elementRef),this._dirChangeSubscription.unsubscribe()}_onMouseenter(){this.disabled||(this._sliderDimensions=this._getSliderDimensions(),this._updateTickIntervalPercent())}_onFocus(){this._sliderDimensions=this._getSliderDimensions(),this._updateTickIntervalPercent()}_onBlur(){this.onTouched()}_onKeydown(xt){if(this.disabled||(0,Hi.Vb)(xt)||this._isSliding&&"keyboard"!==this._isSliding)return;const Nt=this.value;switch(xt.keyCode){case Hi.Ku:this._increment(10);break;case Hi.VM:this._increment(-10);break;case Hi.uR:this.value=this.max;break;case Hi.Sd:this.value=this.min;break;case Hi.oh:this._increment("rtl"==this._getDirection()?1:-1);break;case Hi.LH:this._increment(1);break;case Hi.SV:this._increment("rtl"==this._getDirection()?-1:1);break;case Hi.JH:this._increment(-1);break;default:return}Nt!=this.value&&(this._emitInputEvent(),this._emitChangeEvent()),this._isSliding="keyboard",xt.preventDefault()}_onKeyup(){"keyboard"===this._isSliding&&(this._isSliding=null)}_getWindow(){return this._document.defaultView||window}_bindGlobalEvents(xt){const Nt=this._document,Fn=Ta(xt),ri=Fn?"touchmove":"mousemove",Bi=Fn?"touchend":"mouseup";Nt.addEventListener(ri,this._pointerMove,fa),Nt.addEventListener(Bi,this._pointerUp,fa),Fn&&Nt.addEventListener("touchcancel",this._pointerUp,fa);const Xi=this._getWindow();typeof Xi<"u"&&Xi&&Xi.addEventListener("blur",this._windowBlur)}_removeGlobalEvents(){const xt=this._document;xt.removeEventListener("mousemove",this._pointerMove,fa),xt.removeEventListener("mouseup",this._pointerUp,fa),xt.removeEventListener("touchmove",this._pointerMove,fa),xt.removeEventListener("touchend",this._pointerUp,fa),xt.removeEventListener("touchcancel",this._pointerUp,fa);const Nt=this._getWindow();typeof Nt<"u"&&Nt&&Nt.removeEventListener("blur",this._windowBlur)}_increment(xt){const Nt=this._clamp(this.value||0,this.min,this.max);this.value=this._clamp(Nt+this.step*xt,this.min,this.max)}_updateValueFromPosition(xt){if(!this._sliderDimensions)return;let Nt=this.vertical?this._sliderDimensions.top:this._sliderDimensions.left,Fn=this.vertical?this._sliderDimensions.height:this._sliderDimensions.width,ri=this.vertical?xt.y:xt.x,Bi=this._clamp((ri-Nt)/Fn);if(this._shouldInvertMouseCoords()&&(Bi=1-Bi),0===Bi)this.value=this.min;else if(1===Bi)this.value=this.max;else{const Xi=this._calculateValue(Bi),oa=Math.round((Xi-this.min)/this.step)*this.step+this.min;this.value=this._clamp(oa,this.min,this.max)}}_emitChangeEvent(){this._controlValueAccessorChangeFn(this.value),this.valueChange.emit(this.value),this.change.emit(this._createChangeEvent())}_emitInputEvent(){this.input.emit(this._createChangeEvent())}_updateTickIntervalPercent(){if(!this.tickInterval||!this._sliderDimensions)return;let xt;if("auto"==this.tickInterval){let Nt=this.vertical?this._sliderDimensions.height:this._sliderDimensions.width,Fn=Nt*this.step/(this.max-this.min);xt=Math.ceil(30/Fn)*this.step/Nt}else xt=this.tickInterval*this.step/(this.max-this.min);this._tickIntervalPercent=Gr(xt)?xt:0}_createChangeEvent(xt=this.value){let Nt=new js;return Nt.source=this,Nt.value=xt,Nt}_calculatePercentage(xt){const Nt=((xt||0)-this.min)/(this.max-this.min);return Gr(Nt)?Nt:0}_calculateValue(xt){return this.min+xt*(this.max-this.min)}_clamp(xt,Nt=0,Fn=1){return Math.max(Nt,Math.min(xt,Fn))}_getSliderDimensions(){return this._sliderWrapper?this._sliderWrapper.nativeElement.getBoundingClientRect():null}_focusHostElement(xt){this._elementRef.nativeElement.focus(xt)}_blurHostElement(){this._elementRef.nativeElement.blur()}writeValue(xt){this.value=xt}registerOnChange(xt){this._controlValueAccessorChangeFn=xt}registerOnTouched(xt){this.onTouched=xt}setDisabledState(xt){this.disabled=xt}}function Gr(dn){return!isNaN(dn)&&isFinite(dn)}function Ta(dn){return"t"===dn.type[0]}function Is(dn,xt){let Nt;return Nt=Ta(dn)?"number"==typeof xt?Ua(dn.touches,xt)||Ua(dn.changedTouches,xt):dn.touches[0]||dn.changedTouches[0]:dn,Nt?{x:Nt.clientX,y:Nt.clientY}:void 0}function Ua(dn,xt){for(let Nt=0;Nt<dn.length;Nt++)if(dn[Nt].identifier===xt)return dn[Nt]}Qi.\u0275fac=function(xt){return new(xt||Qi)(D.Y36(D.SBq),D.Y36(Mn.tE),D.Y36(D.sBO),D.Y36(Ha.Is,8),D.$8M("tabindex"),D.Y36(D.R0b),D.Y36(e.K0),D.Y36(D.QbO,8))},Qi.\u0275cmp=D.Xpm({type:Qi,selectors:[["mat-slider"]],viewQuery:function(xt,Nt){if(1&xt&&D.Gf(Sa,5),2&xt){let Fn;D.iGM(Fn=D.CRH())&&(Nt._sliderWrapper=Fn.first)}},hostAttrs:["role","slider",1,"mat-slider","mat-focus-indicator"],hostVars:29,hostBindings:function(xt,Nt){1&xt&&D.NdJ("focus",function(){return Nt._onFocus()})("blur",function(){return Nt._onBlur()})("keydown",function(ri){return Nt._onKeydown(ri)})("keyup",function(){return Nt._onKeyup()})("mouseenter",function(){return Nt._onMouseenter()})("selectstart",function(ri){return ri.preventDefault()}),2&xt&&(D.Ikx("tabIndex",Nt.tabIndex),D.uIk("aria-disabled",Nt.disabled)("aria-valuemax",Nt.max)("aria-valuemin",Nt.min)("aria-valuenow",Nt.value)("aria-valuetext",null==Nt.valueText?Nt.displayValue:Nt.valueText)("aria-orientation",Nt.vertical?"vertical":"horizontal"),D.ekj("mat-slider-disabled",Nt.disabled)("mat-slider-has-ticks",Nt.tickInterval)("mat-slider-horizontal",!Nt.vertical)("mat-slider-axis-inverted",Nt._shouldInvertAxis())("mat-slider-invert-mouse-coords",Nt._shouldInvertMouseCoords())("mat-slider-sliding",Nt._isSliding)("mat-slider-thumb-label-showing",Nt.thumbLabel)("mat-slider-vertical",Nt.vertical)("mat-slider-min-value",Nt._isMinValue())("mat-slider-hide-last-tick",Nt.disabled||Nt._isMinValue()&&Nt._getThumbGap()&&Nt._shouldInvertAxis())("_mat-animation-noopable","NoopAnimations"===Nt._animationMode))},inputs:{disabled:"disabled",color:"color",tabIndex:"tabIndex",invert:"invert",max:"max",min:"min",step:"step",thumbLabel:"thumbLabel",tickInterval:"tickInterval",value:"value",displayWith:"displayWith",valueText:"valueText",vertical:"vertical"},outputs:{change:"change",input:"input",valueChange:"valueChange"},exportAs:["matSlider"],features:[D._Bn([za]),D.qOj],decls:13,vars:6,consts:[[1,"mat-slider-wrapper"],["sliderWrapper",""],[1,"mat-slider-track-wrapper"],[1,"mat-slider-track-background",3,"ngStyle"],[1,"mat-slider-track-fill",3,"ngStyle"],[1,"mat-slider-ticks-container",3,"ngStyle"],[1,"mat-slider-ticks",3,"ngStyle"],[1,"mat-slider-thumb-container",3,"ngStyle"],[1,"mat-slider-focus-ring"],[1,"mat-slider-thumb"],[1,"mat-slider-thumb-label"],[1,"mat-slider-thumb-label-text"]],template:function(xt,Nt){1&xt&&(D.TgZ(0,"div",0,1)(2,"div",2),D._UZ(3,"div",3)(4,"div",4),D.qZA(),D.TgZ(5,"div",5),D._UZ(6,"div",6),D.qZA(),D.TgZ(7,"div",7),D._UZ(8,"div",8)(9,"div",9),D.TgZ(10,"div",10)(11,"span",11),D._uU(12),D.qZA()()()()),2&xt&&(D.xp6(3),D.Q6J("ngStyle",Nt._getTrackBackgroundStyles()),D.xp6(1),D.Q6J("ngStyle",Nt._getTrackFillStyles()),D.xp6(1),D.Q6J("ngStyle",Nt._getTicksContainerStyles()),D.xp6(1),D.Q6J("ngStyle",Nt._getTicksStyles()),D.xp6(1),D.Q6J("ngStyle",Nt._getThumbContainerStyles()),D.xp6(5),D.Oqu(Nt.displayValue))},dependencies:[e.PC],styles:['.mat-slider{display:inline-block;position:relative;box-sizing:border-box;padding:8px;outline:none;vertical-align:middle}.mat-slider:not(.mat-slider-disabled):active,.mat-slider.mat-slider-sliding:not(.mat-slider-disabled){cursor:grabbing}.mat-slider-wrapper{-webkit-print-color-adjust:exact;color-adjust:exact;position:absolute}.mat-slider-track-wrapper{position:absolute;top:0;left:0;overflow:hidden}.mat-slider-track-fill{position:absolute;transform-origin:0 0;transition:transform 400ms cubic-bezier(0.25, 0.8, 0.25, 1),background-color 400ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-slider-track-background{position:absolute;transform-origin:100% 100%;transition:transform 400ms cubic-bezier(0.25, 0.8, 0.25, 1),background-color 400ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-slider-ticks-container{position:absolute;left:0;top:0;overflow:hidden}.mat-slider-ticks{-webkit-background-clip:content-box;background-clip:content-box;background-repeat:repeat;box-sizing:border-box;opacity:0;transition:opacity 400ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-slider-thumb-container{position:absolute;z-index:1;transition:transform 400ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-slider-focus-ring{position:absolute;width:30px;height:30px;border-radius:50%;transform:scale(0);opacity:0;transition:transform 400ms cubic-bezier(0.25, 0.8, 0.25, 1),background-color 400ms cubic-bezier(0.25, 0.8, 0.25, 1),opacity 400ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-slider.cdk-keyboard-focused .mat-slider-focus-ring,.mat-slider.cdk-program-focused .mat-slider-focus-ring{transform:scale(1);opacity:1}.mat-slider:not(.mat-slider-disabled):not(.mat-slider-sliding) .mat-slider-thumb-label,.mat-slider:not(.mat-slider-disabled):not(.mat-slider-sliding) .mat-slider-thumb{cursor:grab}.mat-slider-thumb{position:absolute;right:-10px;bottom:-10px;box-sizing:border-box;width:20px;height:20px;border:3px solid rgba(0,0,0,0);border-radius:50%;transform:scale(0.7);transition:transform 400ms cubic-bezier(0.25, 0.8, 0.25, 1),background-color 400ms cubic-bezier(0.25, 0.8, 0.25, 1),border-color 400ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-slider-thumb-label{display:none;align-items:center;justify-content:center;position:absolute;width:28px;height:28px;border-radius:50%;transition:transform 400ms cubic-bezier(0.25, 0.8, 0.25, 1),border-radius 400ms cubic-bezier(0.25, 0.8, 0.25, 1),background-color 400ms cubic-bezier(0.25, 0.8, 0.25, 1)}.cdk-high-contrast-active .mat-slider-thumb-label{outline:solid 1px}.mat-slider-thumb-label-text{z-index:1;opacity:0;transition:opacity 400ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-slider-sliding .mat-slider-track-fill,.mat-slider-sliding .mat-slider-track-background,.mat-slider-sliding .mat-slider-thumb-container{transition-duration:0ms}.mat-slider-has-ticks .mat-slider-wrapper::after{content:"";position:absolute;border-width:0;border-style:solid;opacity:0;transition:opacity 400ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-slider-has-ticks.cdk-focused:not(.mat-slider-hide-last-tick) .mat-slider-wrapper::after,.mat-slider-has-ticks:hover:not(.mat-slider-hide-last-tick) .mat-slider-wrapper::after{opacity:1}.mat-slider-has-ticks.cdk-focused:not(.mat-slider-disabled) .mat-slider-ticks,.mat-slider-has-ticks:hover:not(.mat-slider-disabled) .mat-slider-ticks{opacity:1}.mat-slider-thumb-label-showing .mat-slider-focus-ring{display:none}.mat-slider-thumb-label-showing .mat-slider-thumb-label{display:flex}.mat-slider-axis-inverted .mat-slider-track-fill{transform-origin:100% 100%}.mat-slider-axis-inverted .mat-slider-track-background{transform-origin:0 0}.mat-slider:not(.mat-slider-disabled).cdk-focused.mat-slider-thumb-label-showing .mat-slider-thumb{transform:scale(0)}.mat-slider:not(.mat-slider-disabled).cdk-focused .mat-slider-thumb-label{border-radius:50% 50% 0}.mat-slider:not(.mat-slider-disabled).cdk-focused .mat-slider-thumb-label-text{opacity:1}.mat-slider:not(.mat-slider-disabled).cdk-mouse-focused .mat-slider-thumb,.mat-slider:not(.mat-slider-disabled).cdk-touch-focused .mat-slider-thumb,.mat-slider:not(.mat-slider-disabled).cdk-program-focused .mat-slider-thumb{border-width:2px;transform:scale(1)}.mat-slider-disabled .mat-slider-focus-ring{transform:scale(0);opacity:0}.mat-slider-disabled .mat-slider-thumb{border-width:4px;transform:scale(0.5)}.mat-slider-disabled .mat-slider-thumb-label{display:none}.mat-slider-horizontal{height:48px;min-width:128px}.mat-slider-horizontal .mat-slider-wrapper{height:2px;top:23px;left:8px;right:8px}.mat-slider-horizontal .mat-slider-wrapper::after{height:2px;border-left-width:2px;right:0;top:0}.mat-slider-horizontal .mat-slider-track-wrapper{height:2px;width:100%}.mat-slider-horizontal .mat-slider-track-fill{height:2px;width:100%;transform:scaleX(0)}.mat-slider-horizontal .mat-slider-track-background{height:2px;width:100%;transform:scaleX(1)}.mat-slider-horizontal .mat-slider-ticks-container{height:2px;width:100%}.cdk-high-contrast-active .mat-slider-horizontal .mat-slider-ticks-container{height:0;outline:solid 2px;top:1px}.mat-slider-horizontal .mat-slider-ticks{height:2px;width:100%}.mat-slider-horizontal .mat-slider-thumb-container{width:100%;height:0;top:50%}.mat-slider-horizontal .mat-slider-focus-ring{top:-15px;right:-15px}.mat-slider-horizontal .mat-slider-thumb-label{right:-14px;top:-40px;transform:translateY(26px) scale(0.01) rotate(45deg)}.mat-slider-horizontal .mat-slider-thumb-label-text{transform:rotate(-45deg)}.mat-slider-horizontal.cdk-focused .mat-slider-thumb-label{transform:rotate(45deg)}.cdk-high-contrast-active .mat-slider-horizontal.cdk-focused .mat-slider-thumb-label,.cdk-high-contrast-active .mat-slider-horizontal.cdk-focused .mat-slider-thumb-label-text{transform:none}.mat-slider-vertical{width:48px;min-height:128px}.mat-slider-vertical .mat-slider-wrapper{width:2px;top:8px;bottom:8px;left:23px}.mat-slider-vertical .mat-slider-wrapper::after{width:2px;border-top-width:2px;bottom:0;left:0}.mat-slider-vertical .mat-slider-track-wrapper{height:100%;width:2px}.mat-slider-vertical .mat-slider-track-fill{height:100%;width:2px;transform:scaleY(0)}.mat-slider-vertical .mat-slider-track-background{height:100%;width:2px;transform:scaleY(1)}.mat-slider-vertical .mat-slider-ticks-container{width:2px;height:100%}.cdk-high-contrast-active .mat-slider-vertical .mat-slider-ticks-container{width:0;outline:solid 2px;left:1px}.mat-slider-vertical .mat-slider-focus-ring{bottom:-15px;left:-15px}.mat-slider-vertical .mat-slider-ticks{width:2px;height:100%}.mat-slider-vertical .mat-slider-thumb-container{height:100%;width:0;left:50%}.mat-slider-vertical .mat-slider-thumb{-webkit-backface-visibility:hidden;backface-visibility:hidden}.mat-slider-vertical .mat-slider-thumb-label{bottom:-14px;left:-40px;transform:translateX(26px) scale(0.01) rotate(-45deg)}.mat-slider-vertical .mat-slider-thumb-label-text{transform:rotate(45deg)}.mat-slider-vertical.cdk-focused .mat-slider-thumb-label{transform:rotate(-45deg)}[dir=rtl] .mat-slider-wrapper::after{left:0;right:auto}[dir=rtl] .mat-slider-horizontal .mat-slider-track-fill{transform-origin:100% 100%}[dir=rtl] .mat-slider-horizontal .mat-slider-track-background{transform-origin:0 0}[dir=rtl] .mat-slider-horizontal.mat-slider-axis-inverted .mat-slider-track-fill{transform-origin:0 0}[dir=rtl] .mat-slider-horizontal.mat-slider-axis-inverted .mat-slider-track-background{transform-origin:100% 100%}.mat-slider._mat-animation-noopable .mat-slider-track-fill,.mat-slider._mat-animation-noopable .mat-slider-track-background,.mat-slider._mat-animation-noopable .mat-slider-ticks,.mat-slider._mat-animation-noopable .mat-slider-thumb-container,.mat-slider._mat-animation-noopable .mat-slider-focus-ring,.mat-slider._mat-animation-noopable .mat-slider-thumb,.mat-slider._mat-animation-noopable .mat-slider-thumb-label,.mat-slider._mat-animation-noopable .mat-slider-thumb-label-text,.mat-slider._mat-animation-noopable .mat-slider-has-ticks .mat-slider-wrapper::after{transition:none}'],encapsulation:2,changeDetection:0});class Ca{}Ca.\u0275fac=function(xt){return new(xt||Ca)},Ca.\u0275mod=D.oAB({type:Ca}),Ca.\u0275inj=D.cJS({imports:[e.ez,Lt.BQ,Lt.BQ]});var vr=m(930),Or=m(2197),qs=m(4193),ms=m(8711),nr=m(5892),Pr=m(2543),Xs=m(6896),pa=m(3453),Js=m(1169),Oa=m(8182),Ss=m(6021),Ja=m(8822),Os=m(5895);class $a extends Os.Xj{constructor(xt,Nt){super(xt,Nt)}_createContainer(){super._createContainer(),this._containerElement&&(document.querySelector("#rtl-container")||document.body).appendChild(this._containerElement)}ngOnDestroy(){super.ngOnDestroy()}static#e=this.\u0275fac=function(Nt){return new(Nt||$a)(D.Y36(e.K0),D.Y36(La.t4))};static#t=this.\u0275dir=D.lG2({type:$a,features:[D.qOj]})}var yr=m(5043),sa=m(7731),ir=m(9445);const br={suppressScrollX:!1,suppressScrollY:!1};class as extends Lt.LF{constructor(xt,Nt){super(xt,Nt)}format(xt,Nt){if("input"===Nt){let Fn=xt.getDate().toString();return Fn=+Fn<10?"0"+Fn:Fn,Fn+"/"+sa.gg[xt.getMonth()].name.toUpperCase()+"/"+xt.getFullYear()}return sa.gg[xt.getMonth()].name.toUpperCase()+" "+xt.getFullYear()}static#e=this.\u0275fac=function(Nt){return new(Nt||as)(D.LFG(Lt.Ad,8),D.LFG(La.t4))};static#t=this.\u0275prov=D.Yz7({token:as,factory:as.\u0275fac})}const kr={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"}}};class Va{static#e=this.\u0275fac=function(Nt){return new(Nt||Va)};static#t=this.\u0275mod=D.oAB({type:Va});static#n=this.\u0275inj=D.cJS({providers:[{provide:yr.mQ,useClass:yr.LG},{provide:Ja.op,useValue:br},{provide:vr.Ve,useValue:{duration:2e3,verticalPosition:"bottom",panelClass:"rtl-snack-bar"}},{provide:nn.Bq,useValue:{hasBackdrop:!0,autoFocus:!0,disableClose:!0,role:"dialog",width:"45%"}},{provide:Lt._A,useClass:as},{provide:Lt.sG,useValue:kr},{provide:Os.Xj,useClass:$a},e.JJ,e.rS,e.uU,ir.al,ir.h9,ir.D3,ir.i1],imports:[e.ez,_.u5,_.UX,s.uH,Te,pt.xu,nn.Is,ti.ot,Zi,Za.QW,mr.p9,Ft.To,ln.N6,It.FA,Lt.XK,En.Ps,qn.c,Nn.ie,li.Tx,Ii.Cv,ea.Cq,Di.Fk,pa.dp,Js.Hi,Ji.LD,ka.SJ,Yi.rP,Or.JX,ms.p0,Pr.g0,Xs.AV,Wn.g,aa.TU,qs.T5,Ca,nr.Nh,vr.ZX,Bn.Bb,Oa.a4,Ss.OF,t.Bz,E.JF,Ja.Xd,_.u5,_.UX,s.uH,Te,pt.xu,nn.Is,ti.ot,Zi,Za.QW,mr.p9,Ft.To,ln.N6,It.FA,Lt.XK,En.Ps,qn.c,Nn.ie,li.Tx,Ii.Cv,ea.Cq,Di.Fk,pa.dp,Js.Hi,Ji.LD,ka.SJ,Yi.rP,Or.JX,ms.p0,Pr.g0,Xs.AV,Wn.g,aa.TU,qs.T5,Ca,nr.Nh,vr.ZX,Bn.Bb,Oa.a4,Ss.OF,Ja.Xd]})}},7861:(Ue,q,m)=>{"use strict";m.d(q,{M6:()=>A,Q2:()=>I,QO:()=>d,Tm:()=>ue,Uy:()=>ce,XT:()=>ae,_V:()=>he,ac:()=>k,c0:()=>o,c1:()=>P,dc:()=>v,ey:()=>ie,fk:()=>ye,jS:()=>$,jW:()=>u,kS:()=>n,lC:()=>E,qR:()=>S,qi:()=>s,tj:()=>z,ts:()=>D,tw:()=>Z,uO:()=>p,vI:()=>Q,x4:()=>L,yb:()=>M,zQ:()=>_e});var e=m(9263),t=m(7731);(0,e.PH)(t.pg.VOID);const E=(0,e.PH)(t.pg.SET_API_URL_ECL,(0,e.Ky)()),s=(0,e.PH)(t.pg.UPDATE_API_CALL_STATUS_ROOT,(0,e.Ky)()),D=(0,e.PH)(t.pg.CLOSE_ALL_DIALOGS),u=(0,e.PH)(t.pg.OPEN_SNACK_BAR,(0,e.Ky)()),k=(0,e.PH)(t.pg.OPEN_SPINNER,(0,e.Ky)()),p=(0,e.PH)(t.pg.CLOSE_SPINNER,(0,e.Ky)()),S=(0,e.PH)(t.pg.OPEN_ALERT,(0,e.Ky)()),A=(0,e.PH)(t.pg.CLOSE_ALERT,(0,e.Ky)()),P=(0,e.PH)(t.pg.OPEN_CONFIRMATION,(0,e.Ky)()),M=(0,e.PH)(t.pg.CLOSE_CONFIRMATION,(0,e.Ky)()),z=(0,e.PH)(t.pg.SHOW_PUBKEY),I=(0,e.PH)(t.pg.FETCH_CONFIG,(0,e.Ky)()),Z=((0,e.PH)(t.pg.SHOW_CONFIG,(0,e.Ky)()),(0,e.PH)(t.pg.UPDATE_SELECTED_NODE_OPTIONS)),Q=(0,e.PH)(t.pg.RESET_ROOT_STORE,(0,e.Ky)()),ie=(0,e.PH)(t.pg.FETCH_RTL_CONFIG),ae=(0,e.PH)(t.pg.SET_RTL_CONFIG,(0,e.Ky)()),_e=(0,e.PH)(t.pg.SAVE_SETTINGS,(0,e.Ky)()),ce=(0,e.PH)(t.pg.TWO_FA_SAVE_SETTINGS,(0,e.Ky)()),ye=(0,e.PH)(t.pg.SET_SELECTED_NODE,(0,e.Ky)()),ue=(0,e.PH)(t.pg.UPDATE_ROOT_NODE_SETTINGS,(0,e.Ky)()),$=(0,e.PH)(t.pg.UPDATE_SERVICE_SETTINGS,(0,e.Ky)()),he=(0,e.PH)(t.pg.SET_NODE_DATA,(0,e.Ky)()),n=((0,e.PH)(t.pg.SAVE_SSO,(0,e.Ky)()),(0,e.PH)(t.pg.LOGOUT)),o=(0,e.PH)(t.pg.RESET_PASSWORD,(0,e.Ky)()),d=((0,e.PH)(t.pg.RESET_PASSWORD_RES,(0,e.Ky)()),(0,e.PH)(t.pg.IS_AUTHORIZED,(0,e.Ky)())),L=((0,e.PH)(t.pg.IS_AUTHORIZED_RES,(0,e.Ky)()),(0,e.PH)(t.pg.LOGIN,(0,e.Ky)())),v=((0,e.PH)(t.pg.VERIFY_TWO_FA,(0,e.Ky)()),(0,e.PH)(t.pg.FETCH_FILE,(0,e.Ky)()));(0,e.PH)(t.pg.SHOW_FILE,(0,e.Ky)())},3093:(Ue,q,m)=>{"use strict";m.d(q,{V:()=>ai});var e=m(3599),t=m(253),_=m(745),E=m(833),s=m(1640),D=m(635),u=m(9295),k=m(538),p=m(9525),S=m(3158),A=m(8951),P=m(2340),M=m(7731),z=m(640),I=m(2560),W=m(6722),Z=m(1708);class Q{constructor(hn,en){this.dialogRef=hn,this.data=en}static#e=this.\u0275fac=function(en){return new(en||Q)(I.Y36(z.so),I.Y36(z.WI))};static#t=this.\u0275cmp=I.Xpm({type:Q,selectors:[["rtl-spinner-dialog"]],decls:5,vars:1,consts:[[1,"spinner-container"],["fxLayout","column","fxLayoutAlign","center center",1,"spinner-circle"]],template:function(en,gn){1&en&&(I.TgZ(0,"div",0)(1,"div",1),I._UZ(2,"mat-spinner"),I.TgZ(3,"h1"),I._uU(4),I.qZA()()()),2&en&&(I.xp6(4),I.Oqu(gn.data.titleMessage))},dependencies:[W.xw,W.Wh,Z.Ou],styles:[".spinner-container[_ngcontent-%COMP%]{position:absolute;left:40%;top:35%}"]})}var ie=m(5043),ae=m(930),_e=m(62),ce=m(4666),ye=m(3704),ue=m(4522),$=m(2156),he=m(7822),w=m(1528),n=m(6021),o=m(8822),h=m(6895),d=m(3390);const y=["scrollContainer"];function L(an,hn){if(1&an&&I._UZ(0,"qr-code",15),2&an){const en=I.oxw();I.Q6J("value",en.showQRField)("size",200)("errorCorrectionLevel","L")}}function B(an,hn){1&an&&I.GkF(0)}const v=function(an){return{"h-40":an}};function a(an,hn){if(1&an&&(I.ynx(0),I.TgZ(1,"mat-card-content",16,17),I.YNc(3,B,1,0,"ng-container",18),I.qZA(),I.BQk()),2&an){const en=I.oxw(),gn=I.MAs(20);I.xp6(1),I.Q6J("ngClass",I.VKq(2,v,en.data.scrollable)),I.xp6(2),I.Q6J("ngTemplateOutlet",gn)}}function C(an,hn){1&an&&I.GkF(0)}function N(an,hn){if(1&an&&(I.ynx(0),I.TgZ(1,"mat-card-content",19),I.YNc(2,C,1,0,"ng-container",18),I.qZA(),I.BQk()),2&an){I.oxw();const en=I.MAs(20);I.xp6(2),I.Q6J("ngTemplateOutlet",en)}}function F(an,hn){1&an&&(I.TgZ(0,"mat-icon",23),I._uU(1,"arrow_downward"),I.qZA())}function X(an,hn){1&an&&(I.TgZ(0,"mat-icon",23),I._uU(1,"arrow_upward"),I.qZA())}function Fe(an,hn){if(1&an){const en=I.EpF();I.TgZ(0,"div",20)(1,"button",21),I.NdJ("click",function(){I.CHM(en);const Qn=I.oxw();return I.KtG(Qn.onScroll())}),I.YNc(2,F,2,0,"mat-icon",22),I.YNc(3,X,2,0,"mat-icon",22),I.qZA()()}if(2&an){const en=I.oxw();I.xp6(2),I.Q6J("ngIf","DOWN"===en.scrollDirection),I.xp6(1),I.Q6J("ngIf","UP"===en.scrollDirection)}}function ke(an,hn){1&an&&(I.TgZ(0,"button",24),I._uU(1,"OK"),I.qZA()),2&an&&I.Q6J("mat-dialog-close",!1)}function Ke(an,hn){1&an&&(I.TgZ(0,"button",25),I._uU(1,"Close"),I.qZA()),2&an&&I.Q6J("mat-dialog-close",!1)}function je(an,hn){if(1&an){const en=I.EpF();I.TgZ(0,"button",26),I.NdJ("copied",function(Qn){I.CHM(en);const Ei=I.oxw();return I.KtG(Ei.onCopyField(Qn))}),I._uU(1),I.qZA()}if(2&an){const en=I.oxw();I.Q6J("payload",en.showCopyField),I.xp6(1),I.hij("Copy ",en.showCopyName,"")}}function Ve(an,hn){1&an&&(I.TgZ(0,"button",25),I._uU(1,"Close"),I.qZA()),2&an&&I.Q6J("mat-dialog-close",!1)}function xe(an,hn){if(1&an){const en=I.EpF();I.TgZ(0,"button",26),I.NdJ("copied",function(Qn){I.CHM(en);const Ei=I.oxw();return I.KtG(Ei.onCopyField(Qn))}),I._uU(1),I.qZA()}if(2&an){const en=I.oxw();I.Q6J("payload",en.showQRField),I.xp6(1),I.hij("Copy ",en.showQRName,"")}}function Ze(an,hn){if(1&an&&I._UZ(0,"qr-code",15),2&an){const en=I.oxw(2);I.Q6J("value",en.showQRField)("size",200)("errorCorrectionLevel","L")}}function Ie(an,hn){if(1&an&&(I.TgZ(0,"p",32),I._uU(1),I.qZA()),2&an){const en=I.oxw(2);I.xp6(1),I.Oqu(en.data.titleMessage)}}function ve(an,hn){if(1&an&&I._UZ(0,"span",46),2&an){const en=hn.$implicit;I.Q6J("innerHTML",en,I.oJD)}}function et(an,hn){if(1&an&&(I.ynx(0),I.YNc(1,ve,1,1,"span",45),I.BQk()),2&an){const en=I.oxw(2).$implicit;I.xp6(1),I.Q6J("ngForOf",en.value)}}function ht(an,hn){if(1&an&&(I.ynx(0),I._uU(1),I.ALo(2,"date"),I.BQk()),2&an){const en=I.oxw(2).$implicit;I.xp6(1),I.Oqu(I.xi3(2,1,1e3*en.value,"dd/MMM/y HH:mm"))}}function Le(an,hn){if(1&an&&(I.ynx(0),I._uU(1),I.ALo(2,"number"),I.BQk()),2&an){const en=I.oxw(2).$implicit;I.xp6(1),I.Oqu(I.xi3(2,1,en.value,en.digitsInfo?en.digitsInfo:"1.0-3"))}}function Ae(an,hn){if(1&an&&(I.ynx(0),I._uU(1),I.BQk()),2&an){const en=I.oxw(2).$implicit;I.xp6(1),I.Oqu(en.value?"True":"False")}}function te(an,hn){1&an&&(I.TgZ(0,"mat-icon",51),I._uU(1,"info"),I.qZA())}const pe=function(an){return{"failed-status":an}};function ee(an,hn){if(1&an&&(I.TgZ(0,"p",49),I._uU(1),I.YNc(2,te,2,0,"mat-icon",50),I.qZA()),2&an){const en=I.oxw(3).$implicit,gn=I.oxw(4);I.Q6J("ngClass",I.VKq(3,pe,en.value===gn.LoopStateEnum.FAILED)),I.xp6(1),I.hij(" ",en.value," "),I.xp6(1),I.Q6J("ngIf",en.value===gn.LoopStateEnum.FAILED)}}function H(an,hn){if(1&an&&I._uU(0),2&an){const en=I.oxw(3).$implicit;I.Oqu(en.value)}}function j(an,hn){if(1&an&&(I.ynx(0),I.YNc(1,ee,3,5,"p",47),I.YNc(2,H,1,1,"ng-template",null,48,I.W1O),I.BQk()),2&an){const en=I.MAs(3),gn=I.oxw(2).$implicit,Qn=I.oxw(4);I.xp6(1),I.Q6J("ngIf","SWAP"===Qn.data.openedBy&&"state"===gn.key)("ngIfElse",en)}}function Oe(an,hn){if(1&an&&(I.TgZ(0,"span")(1,"span",42),I.YNc(2,et,2,1,"ng-container",43),I.YNc(3,ht,3,4,"ng-container",43),I.YNc(4,Le,3,4,"ng-container",43),I.YNc(5,Ae,2,1,"ng-container",43),I.YNc(6,j,4,2,"ng-container",44),I.qZA()()),2&an){const en=I.oxw().$implicit,gn=I.oxw(4);I.xp6(1),I.Q6J("ngSwitch",en.type),I.xp6(1),I.Q6J("ngSwitchCase",gn.dataTypeEnum.ARRAY),I.xp6(1),I.Q6J("ngSwitchCase",gn.dataTypeEnum.DATE_TIME),I.xp6(1),I.Q6J("ngSwitchCase",gn.dataTypeEnum.NUMBER),I.xp6(1),I.Q6J("ngSwitchCase",gn.dataTypeEnum.BOOLEAN)}}function Re(an,hn){1&an&&(I.TgZ(0,"span",52),I._uU(1,"\xa0"),I.qZA())}function le(an,hn){if(1&an&&(I.TgZ(0,"div",37)(1,"h4",38),I._uU(2),I.qZA(),I.YNc(3,Oe,7,5,"span",39),I.YNc(4,Re,2,0,"ng-template",null,40,I.W1O),I._UZ(6,"mat-divider",41),I.qZA()),2&an){const en=hn.$implicit,gn=I.MAs(5);I.s9C("fxFlex.gt-md",en.width),I.xp6(2),I.Oqu(en.title),I.xp6(1),I.Q6J("ngIf",en&&(!!en.value||0===en.value))("ngIfElse",gn)}}function _t(an,hn){if(1&an&&(I.TgZ(0,"div")(1,"div",35),I.YNc(2,le,7,4,"div",36),I.qZA()()),2&an){const en=hn.$implicit;I.xp6(2),I.Q6J("ngForOf",en)}}function it(an,hn){if(1&an&&(I.TgZ(0,"div",33),I.YNc(1,_t,3,1,"div",34),I.qZA()),2&an){const en=I.oxw(2);I.xp6(1),I.Q6J("ngForOf",en.messageObjs)}}const Ct=function(an){return{"display-none":an}};function un(an,hn){if(1&an&&(I.TgZ(0,"div",27)(1,"div",28),I.YNc(2,Ze,1,3,"qr-code",2),I.qZA(),I.TgZ(3,"div",29),I.YNc(4,Ie,2,1,"p",30),I.YNc(5,it,2,1,"div",31),I.qZA()()),2&an){const en=I.oxw();I.xp6(1),I.Q6J("ngClass",I.VKq(4,Ct,""===en.showQRField||en.screenSize!==en.screenSizeEnum.XS&&en.screenSize!==en.screenSizeEnum.SM)),I.xp6(1),I.Q6J("ngIf",""!==en.showQRField),I.xp6(2),I.Q6J("ngIf",en.data.titleMessage),I.xp6(1),I.Q6J("ngIf",(null==en.messageObjs?null:en.messageObjs.length)>0)}}class Bt{constructor(hn,en,gn,Qn,Ei,ha){this.dialogRef=hn,this.data=en,this.logger=gn,this.snackBar=Qn,this.commonService=Ei,this.renderer=ha,this.LoopStateEnum=M.Fq,this.showQRField="",this.showQRName="",this.showCopyName="",this.showCopyField="",this.errorMessage="",this.messageObjs=[],this.alertTypeEnum=M.n_,this.dataTypeEnum=M.Gi,this.screenSize="",this.screenSizeEnum=M.cu,this.scrollDirection="DOWN",this.shouldScroll=!0}set container(hn){hn&&(this.scrollContainer=hn,this.scrollContainer&&this.scrollContainer.nativeElement&&(this.unlistenEnd=this.renderer.listen(this.scrollContainer.nativeElement,"ps-y-reach-end",en=>{this.scrollDirection="UP"}),this.unlistenStart=this.renderer.listen(this.scrollContainer.nativeElement,"ps-y-reach-start",en=>{this.scrollDirection="DOWN"})))}ngOnInit(){this.screenSize=this.commonService.getScreenSize(),this.messageObjs=this.data.message||[],this.showQRField=this.data.showQRField?this.data.showQRField:"",this.showQRName=this.data.showQRName?this.data.showQRName:"",this.showCopyName=this.data.showCopyName?this.data.showCopyName:"",this.showCopyField=this.data.showCopyField?this.data.showCopyField:"",this.data.type===M.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(){"DOWN"===this.scrollDirection?this.scrollContainer.nativeElement.scrollTop=this.scrollContainer.nativeElement.scrollTop+62.6:this.scrollContainer.nativeElement.scrollTop=this.scrollContainer.nativeElement.scrollTop-62.6}onCopyField(hn){this.snackBar.open((this.showQRName?this.showQRName:this.showCopyName)+" copied."),this.logger.info("Copied Text: "+hn)}onClose(){this.dialogRef.close(!1)}ngOnDestroy(){this.unlistenStart&&this.unlistenStart(),this.unlistenEnd&&this.unlistenEnd()}static#e=this.\u0275fac=function(en){return new(en||Bt)(I.Y36(z.so),I.Y36(z.WI),I.Y36(ie.mQ),I.Y36(ae.ux),I.Y36(_e.v),I.Y36(I.Qsj))};static#t=this.\u0275cmp=I.Xpm({type:Bt,selectors:[["rtl-alert-message"]],viewQuery:function(en,gn){if(1&en&&I.Gf(y,5),2&en){let Qn;I.iGM(Qn=I.CRH())&&(gn.container=Qn.first)}},decls:21,vars:14,consts:[["fxLayout","column","fxLayout.gt-sm","row","fxLayoutAlign","space-between stretch"],["fxFlex","30","fxLayoutAlign","center start",1,"modal-qr-code-container","padding-gap-large","ml-1",3,"ngClass"],[3,"value","size","errorCorrectionLevel",4,"ngIf"],[3,"fxFlex"],["fxLayout","row","fxLayoutAlign","space-between center",1,"modal-info-header"],["fxFlex","95","fxLayoutAlign","start start"],[1,"page-title"],["tabindex","3","fxFlex","5","fxLayoutAlign","center","mat-button","",1,"btn-close-x","p-0",3,"click"],[4,"ngIf"],["fxLayout","row","fxLayoutAlign","start end","class","btn-sticky-container padding-gap-x-large",4,"ngIf"],["fxLayout","row","fxLayoutAlign","end center",1,"padding-gap-x-large","padding-gap-bottom-large"],["tabindex","1","autoFocus","","mat-button","","color","primary","type","submit","default","",3,"mat-dialog-close",4,"ngIf"],["class","mr-1","fxLayoutAlign","center center","tabindex","1","mat-button","","color","primary","type","button","default","",3,"mat-dialog-close",4,"ngIf"],["autoFocus","","mat-button","","color","primary","tabindex","2","type","submit","rtlClipboard","",3,"payload","copied",4,"ngIf"],["contentBlock",""],[3,"value","size","errorCorrectionLevel"],[1,"padding-gap-x-large",3,"perfectScrollbar","ngClass"],["scrollContainer",""],[4,"ngTemplateOutlet"],[1,"padding-gap-x-large"],["fxLayout","row","fxLayoutAlign","start end",1,"btn-sticky-container","padding-gap-x-large"],["mat-mini-fab","","aria-label","Scroll","fxLayoutAlign","center center",3,"click"],["fxLayoutAlign","center center",4,"ngIf"],["fxLayoutAlign","center center"],["tabindex","1","autoFocus","","mat-button","","color","primary","type","submit","default","",3,"mat-dialog-close"],["fxLayoutAlign","center center","tabindex","1","mat-button","","color","primary","type","button","default","",1,"mr-1",3,"mat-dialog-close"],["autoFocus","","mat-button","","color","primary","tabindex","2","type","submit","rtlClipboard","",3,"payload","copied"],["fxLayout","column"],["fxFlex","50","fxLayoutAlign","center start",1,"modal-qr-code-container","padding-gap-large","mb-1",3,"ngClass"],["fxLayout","column","fxFlex","100"],["fxLayoutAlign","start center","class","pb-2",4,"ngIf"],["fxFlex","100",4,"ngIf"],["fxLayoutAlign","start center",1,"pb-2"],["fxFlex","100"],[4,"ngFor","ngForOf"],["fxLayout","row wrap","fxFlex","100","fxLayoutAlign","start center","fxLayoutAlign.gt-md","space-between start"],["fxLayout","column","fxFlex","100",3,"fxFlex.gt-md",4,"ngFor","ngForOf"],["fxLayout","column","fxFlex","100",3,"fxFlex.gt-md"],["fxLayoutAlign","start",1,"font-bold-500"],[4,"ngIf","ngIfElse"],["emptyField",""],[1,"w-100","my-1"],["fxLayout","column","fxFlex","100","fxLayoutAlign","start stretch",1,"foreground-secondary-text",3,"ngSwitch"],[4,"ngSwitchCase"],[4,"ngSwitchDefault"],["class","display-block w-100",3,"innerHTML",4,"ngFor","ngForOf"],[1,"display-block","w-100",3,"innerHTML"],["fxLayout","row",3,"ngClass",4,"ngIf","ngIfElse"],["noStyleBlock",""],["fxLayout","row",3,"ngClass"],["fxLayoutAlign","end end","class","icon-failed-status",4,"ngIf"],["fxLayoutAlign","end end",1,"icon-failed-status"],["fxFlex","100",1,"foreground-secondary-text"]],template:function(en,gn){1&en&&(I.TgZ(0,"div",0)(1,"div",1),I.YNc(2,L,1,3,"qr-code",2),I.qZA(),I.TgZ(3,"div",3)(4,"mat-card-header",4)(5,"div",5)(6,"span",6),I._uU(7),I.qZA()(),I.TgZ(8,"button",7),I.NdJ("click",function(){return gn.onClose()}),I._uU(9,"X"),I.qZA()(),I.YNc(10,a,4,4,"ng-container",8),I.YNc(11,N,3,1,"ng-container",8),I.YNc(12,Fe,4,2,"div",9),I.TgZ(13,"div",10),I.YNc(14,ke,2,1,"button",11),I.YNc(15,Ke,2,1,"button",12),I.YNc(16,je,2,2,"button",13),I.YNc(17,Ve,2,1,"button",12),I.YNc(18,xe,2,2,"button",13),I.qZA()()(),I.YNc(19,un,6,6,"ng-template",null,14,I.W1O)),2&en&&(I.xp6(1),I.Q6J("ngClass",I.VKq(12,Ct,""===gn.showQRField||gn.screenSize===gn.screenSizeEnum.XS||gn.screenSize===gn.screenSizeEnum.SM)),I.xp6(1),I.Q6J("ngIf",""!==gn.showQRField),I.xp6(1),I.Q6J("fxFlex",""===gn.showQRField||gn.screenSize===gn.screenSizeEnum.XS||gn.screenSize===gn.screenSizeEnum.SM?"100":"70"),I.xp6(4),I.Oqu(gn.data.alertTitle||gn.alertTypeEnum[gn.data.type]),I.xp6(3),I.Q6J("ngIf",gn.data.scrollable),I.xp6(1),I.Q6J("ngIf",!gn.data.scrollable),I.xp6(1),I.Q6J("ngIf",gn.data.scrollable&&gn.shouldScroll),I.xp6(2),I.Q6J("ngIf",(!gn.showQRField||""===gn.showQRField)&&""===gn.showCopyName),I.xp6(1),I.Q6J("ngIf",""!==gn.showCopyName),I.xp6(1),I.Q6J("ngIf",""!==gn.showCopyName),I.xp6(1),I.Q6J("ngIf",""!==gn.showQRField),I.xp6(1),I.Q6J("ngIf",""!==gn.showQRField))},dependencies:[ce.mk,ce.sg,ce.O5,ce.tP,ce.RF,ce.n9,ce.ED,W.xw,W.Wh,W.yH,ye.oO,z.ZT,ue.lW,$.dk,$.dn,he.Hw,w.d,n.uU,o.$V,h.y,d.h,ce.JJ,ce.uU],styles:[".display-block[_ngcontent-%COMP%]{display:block}"]})}var Ut=m(9306),yn=m(7861),Xt=m(9263),Gt=m(2508),In=m(3505),rn=m(5074),tn=m(1267),pn=m(6534);function tt(an,hn){if(1&an&&(I.TgZ(0,"div",18),I._UZ(1,"fa-icon",19),I.TgZ(2,"span"),I._uU(3),I.qZA()()),2&an){const en=I.oxw();I.xp6(1),I.Q6J("icon",en.faExclamationTriangle),I.xp6(2),I.Oqu(en.warningMessage)}}function vt(an,hn){if(1&an&&(I.TgZ(0,"div",20),I._UZ(1,"fa-icon",19),I.TgZ(2,"span"),I._uU(3),I.qZA()()),2&an){const en=I.oxw();I.xp6(1),I.Q6J("icon",en.faInfoCircle),I.xp6(2),I.Oqu(en.informationMessage)}}function dt(an,hn){if(1&an&&(I.TgZ(0,"p",21),I._uU(1),I.qZA()),2&an){const en=I.oxw();I.xp6(1),I.Oqu(en.data.titleMessage)}}function se(an,hn){if(1&an&&I._UZ(0,"div",36),2&an){const en=hn.$implicit;I.Q6J("innerHTML",en,I.oJD)}}function J(an,hn){if(1&an&&(I.ynx(0,34),I.YNc(1,se,1,1,"div",35),I.BQk()),2&an){const en=I.oxw(2).$implicit;I.xp6(1),I.Q6J("ngForOf",en.value)}}function oe(an,hn){if(1&an&&(I.ynx(0),I._uU(1),I.ALo(2,"date"),I.BQk()),2&an){const en=I.oxw(2).$implicit;I.xp6(1),I.Oqu(I.xi3(2,1,1e3*en.value,"dd/MMM/y HH:mm"))}}function De(an,hn){if(1&an&&(I.ynx(0),I._uU(1),I.ALo(2,"number"),I.BQk()),2&an){const en=I.oxw(2).$implicit;I.xp6(1),I.Oqu(I.xi3(2,1,en.value,"1.0-3"))}}function Ye(an,hn){if(1&an&&(I.ynx(0),I._uU(1),I.BQk()),2&an){const en=I.oxw(2).$implicit;I.xp6(1),I.Oqu(!0===en.value?"True":"False")}}function Dt(an,hn){if(1&an&&(I.ynx(0),I._uU(1),I.BQk()),2&an){const en=I.oxw(2).$implicit;I.xp6(1),I.Oqu(en.value)}}function ut(an,hn){if(1&an&&(I.TgZ(0,"span")(1,"span",30),I.YNc(2,J,2,1,"ng-container",31),I.YNc(3,oe,3,4,"ng-container",32),I.YNc(4,De,3,4,"ng-container",32),I.YNc(5,Ye,2,1,"ng-container",32),I.YNc(6,Dt,2,1,"ng-container",33),I.qZA()()),2&an){const en=I.oxw().$implicit,gn=I.oxw(3);I.xp6(1),I.Q6J("ngSwitch",en.type),I.xp6(1),I.Q6J("ngSwitchCase",gn.dataTypeEnum.ARRAY),I.xp6(1),I.Q6J("ngSwitchCase",gn.dataTypeEnum.DATE_TIME),I.xp6(1),I.Q6J("ngSwitchCase",gn.dataTypeEnum.NUMBER),I.xp6(1),I.Q6J("ngSwitchCase",gn.dataTypeEnum.BOOLEAN)}}function ze(an,hn){1&an&&(I.TgZ(0,"span",37),I._uU(1,"\xa0"),I.qZA())}function Me(an,hn){if(1&an&&(I.TgZ(0,"div",25)(1,"h4",26),I._uU(2),I.qZA(),I.YNc(3,ut,7,5,"span",27),I.YNc(4,ze,2,0,"ng-template",null,28,I.W1O),I._UZ(6,"mat-divider",29),I.qZA()),2&an){const en=hn.$implicit,gn=I.MAs(5);I.s9C("fxFlex.gt-md",en.width),I.xp6(2),I.Oqu(en.title),I.xp6(1),I.Q6J("ngIf",en&&(!!en.value||0===en.value))("ngIfElse",gn)}}function Ce(an,hn){if(1&an&&(I.TgZ(0,"div")(1,"div",23),I.YNc(2,Me,7,4,"div",24),I.qZA()()),2&an){const en=hn.$implicit;I.xp6(2),I.Q6J("ngForOf",en)}}function Je(an,hn){if(1&an&&(I.TgZ(0,"div"),I.YNc(1,Ce,3,1,"div",22),I.qZA()),2&an){const en=I.oxw();I.xp6(1),I.Q6J("ngForOf",en.messageObjs)}}function zt(an,hn){if(1&an&&(I.TgZ(0,"p",21),I._uU(1),I.qZA()),2&an){const en=I.oxw(2);I.xp6(1),I.Oqu(en.data.titleMessage)}}function At(an,hn){if(1&an&&(I.TgZ(0,"mat-error"),I._uU(1),I.qZA()),2&an){const en=I.oxw(2).$implicit;I.xp6(1),I.hij("",en.placeholder," is required.")}}function Tt(an,hn){if(1&an){const en=I.EpF();I.TgZ(0,"mat-form-field",41)(1,"input",42),I.NdJ("ngModelChange",function(Qn){I.CHM(en);const Ei=I.oxw().$implicit;return I.KtG(Ei.inputValue=Qn)}),I.ALo(2,"lowercase"),I.qZA(),I.YNc(3,At,2,1,"mat-error",11),I.TgZ(4,"mat-hint"),I._uU(5),I.qZA()()}if(2&an){const en=I.oxw(),gn=en.$implicit,Qn=en.index;I.Q6J("fxFlex",gn.width),I.xp6(1),I.MGl("name","input",Qn,""),I.Q6J("autoFocus",0===Qn)("placeholder",gn.placeholder)("min",gn.min)("step",gn.step)("type",I.lcZ(2,11,gn.inputType))("tabindex",Qn+1)("ngModel",gn.inputValue),I.xp6(2),I.Q6J("ngIf",!gn.inputValue),I.xp6(2),I.Oqu(gn.hintFunction?gn.hintFunction(gn.inputValue):gn.hintText)}}function Ht(an,hn){if(1&an&&(I.ynx(0),I.YNc(1,Tt,6,13,"mat-form-field",40),I.BQk()),2&an){const en=hn.$implicit,gn=I.oxw(2);I.xp6(1),I.Q6J("ngIf",!en.advancedField||gn.showAdvanced)}}function He(an,hn){if(1&an&&(I.TgZ(0,"div",38),I.YNc(1,zt,2,1,"p",10),I.TgZ(2,"div",39),I.YNc(3,Ht,2,1,"ng-container",22),I.qZA()()),2&an){const en=I.oxw();I.xp6(1),I.Q6J("ngIf",en.data.titleMessage),I.xp6(2),I.Q6J("ngForOf",en.getInputs)}}function $e(an,hn){1&an&&(I.TgZ(0,"p"),I._uU(1,"Show Advanced"),I.qZA())}function $t(an,hn){1&an&&(I.TgZ(0,"p"),I._uU(1,"Hide Advanced"),I.qZA())}function Rt(an,hn){if(1&an){const en=I.EpF();I.TgZ(0,"button",43),I.NdJ("click",function(){I.CHM(en);const Qn=I.oxw();return I.KtG(Qn.onShowAdvanced())}),I.YNc(1,$e,2,0,"p",27),I.YNc(2,$t,2,0,"ng-template",null,44,I.W1O),I.qZA()}if(2&an){const en=I.MAs(3),gn=I.oxw();I.xp6(1),I.Q6J("ngIf",!gn.showAdvanced)("ngIfElse",en)}}function Jt(an,hn){if(1&an){const en=I.EpF();I.TgZ(0,"button",45),I.NdJ("click",function(){I.CHM(en);const Qn=I.oxw();return I.KtG(Qn.onClose(Qn.getInputs))}),I._uU(1),I.qZA()}if(2&an){const en=I.oxw();I.xp6(1),I.Oqu(en.yesBtnText)}}function Vn(an,hn){if(1&an){const en=I.EpF();I.TgZ(0,"button",46),I.NdJ("click",function(){I.CHM(en);const Qn=I.oxw();return I.KtG(Qn.onClose(!0))}),I._uU(1),I.qZA()}if(2&an){const en=I.oxw();I.xp6(1),I.Oqu(en.yesBtnText)}}class zn{constructor(hn,en,gn,Qn){this.dialogRef=hn,this.data=en,this.logger=gn,this.store=Qn,this.faInfoCircle=Ut.sqG,this.faExclamationTriangle=Ut.eHv,this.informationMessage="",this.warningMessage="",this.noBtnText="No",this.yesBtnText="Yes",this.messageObjs=[],this.flgShowInput=!1,this.hasAdvanced=!1,this.alertTypeEnum=M.n_,this.dataTypeEnum=M.Gi,this.getInputs=[{placeholder:"",inputType:M.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===M.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(hn){if(hn&&this.getInputs&&this.getInputs.some(en=>typeof en.inputValue>"u"))return!0;!this.showAdvanced&&hn.length&&(hn=hn?.reduce((en,gn)=>(gn.advancedField||en.push(gn),en),[])),this.store.dispatch((0,yn.yb)({payload:hn}))}static#e=this.\u0275fac=function(en){return new(en||zn)(I.Y36(z.so),I.Y36(z.WI),I.Y36(ie.mQ),I.Y36(Xt.yh))};static#t=this.\u0275cmp=I.Xpm({type:zn,selectors:[["rtl-confirmation-message"]],decls:21,vars:10,consts:[["fxLayout","row"],["fxFlex","100"],["fxLayout","row","fxLayoutAlign","space-between center",1,"modal-info-header"],["fxFlex","95","fxLayoutAlign","start start"],[1,"page-title"],["tabindex","8","fxFlex","5","fxLayoutAlign","center","mat-button","",1,"btn-close-x","p-0",3,"click"],[1,"padding-gap-x-large"],["fxLayout","column"],["fxFlex","100","class","alert alert-warn",4,"ngIf"],["fxFlex","100","class","alert alert-info",4,"ngIf"],["fxLayoutAlign","start center","class","pb-1",4,"ngIf"],[4,"ngIf"],["fxLayout","column","class","bordered-box my-2 p-2",4,"ngIf"],["fxLayout","row","fxLayoutAlign","end center"],["mat-button","","color","primary","type","reset","tabindex","1",1,"mr-1",3,"click"],["mat-button","","color","primary","type","button","class","mr-1","tabindex","2",3,"click",4,"ngIf"],["autoFocus","","mat-button","","color","primary","type","submit","tabindex","3","default","",3,"click",4,"ngIf"],["autoFocus","","mat-button","","color","primary","type","submit","tabindex","4","default","",3,"click",4,"ngIf"],["fxFlex","100",1,"alert","alert-warn"],[1,"mr-1","alert-icon",3,"icon"],["fxFlex","100",1,"alert","alert-info"],["fxLayoutAlign","start center",1,"pb-1"],[4,"ngFor","ngForOf"],["fxLayout","row wrap","fxLayoutAlign","start center","fxLayoutAlign.gt-md","space-between start"],["fxLayout","column","fxFlex","100",3,"fxFlex.gt-md",4,"ngFor","ngForOf"],["fxLayout","column","fxFlex","100",3,"fxFlex.gt-md"],["fxLayoutAlign","start",1,"font-bold-500"],[4,"ngIf","ngIfElse"],["emptyField",""],[1,"w-100","my-1"],[1,"foreground-secondary-text",3,"ngSwitch"],["fxLayout","row wrap","fxLayoutAlign","space-between stretch",4,"ngSwitchCase"],[4,"ngSwitchCase"],[4,"ngSwitchDefault"],["fxLayout","row wrap","fxLayoutAlign","space-between stretch"],[3,"innerHTML",4,"ngFor","ngForOf"],[3,"innerHTML"],["fxFlex","100",1,"foreground-secondary-text"],["fxLayout","column",1,"bordered-box","my-2","p-2"],["fxLayout","row wrap","fxLayoutAlign","space-between center"],[3,"fxFlex",4,"ngIf"],[3,"fxFlex"],["matInput","","required","",3,"autoFocus","placeholder","name","min","step","type","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(en,gn){1&en&&(I.TgZ(0,"div",0)(1,"div",1)(2,"mat-card-header",2)(3,"div",3)(4,"span",4),I._uU(5),I.qZA()(),I.TgZ(6,"button",5),I.NdJ("click",function(){return gn.onClose(!1)}),I._uU(7,"X"),I.qZA()(),I.TgZ(8,"mat-card-content",6)(9,"form",7),I.YNc(10,tt,4,2,"div",8),I.YNc(11,vt,4,2,"div",9),I.YNc(12,dt,2,1,"p",10),I.YNc(13,Je,2,1,"div",11),I.YNc(14,He,4,2,"div",12),I.TgZ(15,"div",13)(16,"button",14),I.NdJ("click",function(){return gn.onClose(!1)}),I._uU(17),I.qZA(),I.YNc(18,Rt,4,2,"button",15),I.YNc(19,Jt,2,1,"button",16),I.YNc(20,Vn,2,1,"button",17),I.qZA()()()()()),2&en&&(I.xp6(5),I.Oqu(gn.data.alertTitle||gn.alertTypeEnum[gn.data.type]),I.xp6(5),I.Q6J("ngIf",gn.warningMessage&&""!==gn.warningMessage),I.xp6(1),I.Q6J("ngIf",gn.informationMessage&&""!==gn.informationMessage),I.xp6(1),I.Q6J("ngIf",gn.data.titleMessage&&!gn.flgShowInput),I.xp6(1),I.Q6J("ngIf",(null==gn.messageObjs?null:gn.messageObjs.length)>0),I.xp6(1),I.Q6J("ngIf",gn.flgShowInput),I.xp6(3),I.Oqu(gn.noBtnText),I.xp6(1),I.Q6J("ngIf",gn.hasAdvanced),I.xp6(1),I.Q6J("ngIf",gn.flgShowInput),I.xp6(1),I.Q6J("ngIf",!gn.flgShowInput))},dependencies:[ce.sg,ce.O5,ce.RF,ce.n9,ce.ED,Gt._Y,Gt.Fj,Gt.JJ,Gt.JL,Gt.Q7,Gt.On,Gt.F,In.BN,W.xw,W.Wh,W.yH,ue.lW,$.dk,$.dn,rn.TO,rn.KE,rn.bx,tn.Nt,w.d,d.h,pn.q,ce.i8,ce.JJ,ce.uU]})}var Tn=m(1786),Yn=m(7371),Mt=m(207);function Ge(an,hn){if(1&an&&(I.TgZ(0,"mat-option",23),I._uU(1),I.qZA()),2&an){const en=hn.$implicit;I.Q6J("value",en),I.xp6(1),I.hij(" ",en.infoName," ")}}function Be(an,hn){if(1&an){const en=I.EpF();I.TgZ(0,"div",13)(1,"mat-form-field",20)(2,"mat-select",21),I.NdJ("valueChange",function(Qn){I.CHM(en);const Ei=I.oxw();return I.KtG(Ei.selInfoType=Qn)}),I.YNc(3,Ge,2,2,"mat-option",22),I.qZA()()()}if(2&an){const en=I.oxw();I.xp6(2),I.Q6J("value",en.selInfoType),I.xp6(1),I.Q6J("ngForOf",en.infoTypes)}}const ft=function(an){return{"display-none":an}};class re{constructor(hn,en,gn,Qn,Ei){this.dialogRef=hn,this.data=en,this.logger=gn,this.snackBar=Qn,this.commonService=Ei,this.faReceipt=Ut.dLy,this.infoTypes=[{infoID:0,infoKey:"node pubkey",infoName:"Node pubkey"}],this.selInfoType=this.infoTypes[0],this.qrWidth=210,this.screenSize="",this.screenSizeEnum=M.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((hn,en)=>{this.infoTypes.push({infoID:en+1,infoKey:"node URI "+(en+1),infoName:"Node URI "+(en+1)})})),this.screenSize=this.commonService.getScreenSize()}onClose(){this.dialogRef.close(!1)}onCopyPubkey(hn){this.snackBar.open(this.selInfoType.infoName+" copied."),this.logger.info("Copied Text: "+hn)}static#e=this.\u0275fac=function(en){return new(en||re)(I.Y36(z.so),I.Y36(z.WI),I.Y36(ie.mQ),I.Y36(ae.ux),I.Y36(_e.v))};static#t=this.\u0275cmp=I.Xpm({type:re,selectors:[["rtl-show-pubkey"]],decls:26,vars:19,consts:[["fxLayout","column","fxLayout.gt-sm","row","fxLayoutAlign","space-between stretch"],["fxFlex","30","fxLayoutAlign","center start",1,"modal-qr-code-container","padding-gap-large",3,"ngClass"],[3,"value","size","errorCorrectionLevel"],["fxFlex","100","fxFlex.gt-sm","70"],["fxLayout","row","fxLayoutAlign","space-between center",1,"modal-info-header"],["fxFlex","95","fxLayoutAlign","start start"],[1,"page-title-img","mr-1",3,"icon"],[1,"page-title"],["tabindex","3","fxFlex","5","fxLayoutAlign","center","mat-button","",1,"btn-close-x","p-0",3,"click"],[1,"padding-gap-x-large"],["fxLayout","column"],["fxFlex","50","fxLayoutAlign","center start",1,"modal-qr-code-container","padding-gap-large",3,"ngClass"],["fxLayout","row",4,"ngIf"],["fxLayout","row"],["fxFlex","100"],["fxLayoutAlign","start",1,"font-bold-500"],[1,"foreground-secondary-text"],[1,"w-100","my-1"],["fxLayout","row","fxLayoutAlign","end center",1,"mt-2"],["autoFocus","","mat-button","","color","primary","tabindex","2","type","submit","rtlClipboard","",3,"payload","copied"],["fxFlex","100","fxFlex.gt-sm","40","fxLayoutAlign","start end"],["tabindex","1",3,"value","valueChange"],[3,"value",4,"ngFor","ngForOf"],[3,"value"]],template:function(en,gn){1&en&&(I.TgZ(0,"div",0)(1,"div",1),I._UZ(2,"qr-code",2),I.qZA(),I.TgZ(3,"div",3)(4,"mat-card-header",4)(5,"div",5),I._UZ(6,"fa-icon",6),I.TgZ(7,"span",7),I._uU(8),I.qZA()(),I.TgZ(9,"button",8),I.NdJ("click",function(){return gn.onClose()}),I._uU(10,"X"),I.qZA()(),I.TgZ(11,"mat-card-content",9)(12,"div",10)(13,"div",11),I._UZ(14,"qr-code",2),I.qZA(),I.YNc(15,Be,4,2,"div",12),I.TgZ(16,"div",13)(17,"div",14)(18,"h4",15),I._uU(19),I.qZA(),I.TgZ(20,"span",16),I._uU(21),I.qZA()()(),I._UZ(22,"mat-divider",17),I.TgZ(23,"div",18)(24,"button",19),I.NdJ("copied",function(Ei){return gn.onCopyPubkey(Ei)}),I._uU(25),I.qZA()()()()()()),2&en&&(I.xp6(1),I.Q6J("ngClass",I.VKq(15,ft,gn.screenSize===gn.screenSizeEnum.XS||gn.screenSize===gn.screenSizeEnum.SM)),I.xp6(1),I.s9C("value",0===gn.selInfoType.infoID?gn.information.identity_pubkey:gn.information.uris[gn.selInfoType.infoID-1]),I.Q6J("size",gn.qrWidth)("errorCorrectionLevel","L"),I.xp6(4),I.Q6J("icon",gn.faReceipt),I.xp6(2),I.Oqu(gn.selInfoType.infoName),I.xp6(5),I.Q6J("ngClass",I.VKq(17,ft,gn.screenSize!==gn.screenSizeEnum.XS&&gn.screenSize!==gn.screenSizeEnum.SM)),I.xp6(1),I.s9C("value",0===gn.selInfoType.infoID?gn.information.identity_pubkey:gn.information.uris[gn.selInfoType.infoID-1]),I.Q6J("size",gn.qrWidth)("errorCorrectionLevel","L"),I.xp6(1),I.Q6J("ngIf",gn.information.uris&&gn.information.uris.length>0),I.xp6(4),I.Oqu(gn.selInfoType.infoName),I.xp6(2),I.Oqu(0===gn.selInfoType.infoID?gn.information.identity_pubkey:gn.information.uris[gn.selInfoType.infoID-1]),I.xp6(3),I.s9C("payload",0===gn.selInfoType.infoID?gn.information.identity_pubkey:gn.information.uris[gn.selInfoType.infoID-1]),I.xp6(1),I.hij("Copy ",gn.selInfoType.infoKey,""))},dependencies:[ce.mk,ce.sg,ce.O5,In.BN,W.xw,W.Wh,W.yH,ye.oO,ue.lW,$.dk,$.dn,rn.KE,w.d,Yn.gD,Mt.ey,n.uU,h.y,d.h]})}var Te=m(6523),pt=m(429),Lt=m(2994),nn=m(8377),Bn=m(8987),Wn=m(3512),ti=m(5986),Mn=m(8104),Ln=m(3547);class ai{constructor(hn,en,gn,Qn,Ei,ha,mi,qi,Zi,Za,mr){this.actions=hn,this.httpClient=en,this.store=gn,this.logger=Qn,this.wsService=Ei,this.sessionService=ha,this.commonService=mi,this.dataService=qi,this.dialog=Zi,this.snackBar=Za,this.router=mr,this.screenSize="",this.alertWidth="55%",this.confirmWidth="70%",this.unSubs=[new t.x,new t.x],this.closeAllDialogs=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(M.pg.CLOSE_ALL_DIALOGS),(0,D.U)(()=>{this.dialog.closeAll()})),{dispatch:!1}),this.openSnackBar=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(M.pg.OPEN_SNACK_BAR),(0,D.U)(It=>{"string"==typeof It.payload?this.snackBar.open(It.payload):"ERROR"===It.payload.type?this.snackBar.open(It.payload.message,"",{duration:It.payload.duration?It.payload.duration:2e3,panelClass:"rtl-warn-snack-bar"}):"WARN"===It.payload.type?this.snackBar.open(It.payload.message,"",{duration:It.payload.duration?It.payload.duration:2e3,panelClass:"rtl-accent-snack-bar"}):this.snackBar.open(It.payload.message,"",{duration:It.payload.duration?It.payload.duration:2e3,panelClass:"rtl-snack-bar"})})),{dispatch:!1}),this.openSpinner=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(M.pg.OPEN_SPINNER),(0,D.U)(It=>{It.payload!==M.m6.NO_SPINNER&&(this.dialogRef=this.dialog.open(Q,{data:{titleMessage:It.payload}}))})),{dispatch:!1}),this.closeSpinner=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(M.pg.CLOSE_SPINNER),(0,D.U)(It=>{if(It.payload!==M.m6.NO_SPINNER)try{this.dialogRef&&this.dialogRef.componentInstance&&this.dialogRef.componentInstance.data&&this.dialogRef.componentInstance.data.titleMessage&&this.dialogRef.componentInstance.data.titleMessage===It.payload?this.dialogRef.close():this.dialog.openDialogs.forEach(Ft=>{Ft.componentInstance&&Ft.componentInstance.data&&Ft.componentInstance.data.titleMessage&&Ft.componentInstance.data.titleMessage===It.payload&&Ft.close()})}catch(Ft){this.logger.error(Ft)}})),{dispatch:!1}),this.openAlert=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(M.pg.OPEN_ALERT),(0,D.U)(It=>{const Ft=JSON.parse(JSON.stringify(It.payload));Ft.width||(Ft.width=this.alertWidth),It.payload.data.component?this.dialogRef=this.dialog.open(It.payload.data.component,Ft):this.dialogRef=this.dialog.open(Bt,Ft)})),{dispatch:!1}),this.closeAlert=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(M.pg.CLOSE_ALERT),(0,D.U)(It=>(this.dialogRef&&this.dialogRef.close(),this.logger.info(It.payload),It.payload))),{dispatch:!1}),this.openConfirm=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(M.pg.OPEN_CONFIRMATION),(0,D.U)(It=>{const Ft=JSON.parse(JSON.stringify(It.payload));Ft.width||(Ft.width=this.confirmWidth),this.dialogRef=this.dialog.open(zn,Ft)})),{dispatch:!1}),this.closeConfirm=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(M.pg.CLOSE_CONFIRMATION),(0,u.q)(1),(0,D.U)(It=>(this.dialogRef&&this.dialogRef.close(),this.logger.info(It.payload),It.payload))),{dispatch:!1}),this.showNodePubkey=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(M.pg.SHOW_PUBKEY),(0,k.M)(this.store.select(nn.R4)),(0,p.z)(([It,Ft])=>(this.sessionService.getItem("token")&&Ft.identity_pubkey?this.store.dispatch((0,yn.qR)({payload:{data:{information:Ft,component:re}}})):this.snackBar.open("Node Pubkey does not exist."),(0,_.of)({type:M.pg.VOID}))))),this.appConfigFetch=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(M.pg.FETCH_RTL_CONFIG),(0,p.z)(()=>(this.screenSize=this.commonService.getScreenSize(),this.screenSize===M.cu.XS||this.screenSize===M.cu.SM?(this.alertWidth="95%",this.confirmWidth="95%"):this.screenSize===M.cu.MD?(this.alertWidth="80%",this.confirmWidth="80%"):(this.alertWidth="45%",this.confirmWidth="50%"),this.store.dispatch((0,yn.ac)({payload:M.m6.GET_RTL_CONFIG})),this.store.dispatch((0,yn.qi)({payload:{action:"FetchRTLConfig",status:M.Bn.INITIATED}})),this.sessionService.getItem("token")?this.httpClient.get(P.NZ.CONF_API+"/rtlconf"):this.httpClient.get(P.NZ.CONF_API+"/rtlconfinit"))),(0,D.U)(It=>{this.logger.info(It),this.store.dispatch((0,yn.uO)({payload:M.m6.GET_RTL_CONFIG})),this.store.dispatch((0,yn.qi)({payload:{action:"FetchRTLConfig",status:M.Bn.COMPLETED}}));let Ft=null;return It.nodes.forEach(ln=>{ln.settings.currencyUnits=[...M.uA,ln.settings?.currencyUnit?ln.settings?.currencyUnit:""],+(ln.index||-1)===It.selectedNodeIndex&&(Ft=ln)}),Ft?(this.store.dispatch((0,yn.fk)({payload:{uiMessage:M.m6.NO_SPINNER,prevLnNodeIndex:-1,currentLnNode:Ft,isInitialSetup:!0}})),{type:M.pg.SET_RTL_CONFIG,payload:It}):{type:M.pg.VOID}}),(0,S.K)(It=>(this.handleErrorWithAlert("FetchRTLConfig",M.m6.GET_RTL_CONFIG,"Fetch RTL Config Failed!",P.NZ.CONF_API,It),(0,_.of)({type:M.pg.VOID}))))),this.settingSave=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(M.pg.SAVE_SETTINGS),(0,p.z)(It=>{this.store.dispatch((0,yn.ac)({payload:It.payload.uiMessage})),this.store.dispatch((0,yn.qi)({payload:{action:"UpdateSettings",status:M.Bn.INITIATED}}));let Ft=new E.y;if(It.payload.settings&&It.payload.defaultNodeIndex){const ln=this.httpClient.post(P.NZ.CONF_API,{updatedSettings:It.payload.settings}),En=this.httpClient.post(P.NZ.CONF_API+"/updateDefaultNode",{defaultNodeIndex:It.payload.defaultNodeIndex});Ft=(0,s.D)([ln,En])}else It.payload.settings&&!It.payload.defaultNodeIndex?Ft=this.httpClient.post(P.NZ.CONF_API,{updatedSettings:It.payload.settings}):!It.payload.settings&&It.payload.defaultNodeIndex&&(Ft=this.httpClient.post(P.NZ.CONF_API+"/updateDefaultNode",{defaultNodeIndex:It.payload.defaultNodeIndex}));return Ft.pipe((0,D.U)(ln=>(this.logger.info(ln),this.store.dispatch((0,yn.qi)({payload:{action:"UpdateSettings",status:M.Bn.COMPLETED}})),this.store.dispatch((0,yn.uO)({payload:It.payload.uiMessage})),{type:M.pg.OPEN_SNACK_BAR,payload:ln.length?ln[0].message+".":ln.message+"."})),(0,S.K)(ln=>(this.handleErrorWithAlert("UpdateSettings",It.payload.uiMessage,"Update Settings Failed!",P.NZ.CONF_API,ln.length?ln[0]:ln),(0,_.of)({type:M.pg.VOID}))))}))),this.updateServicesettings=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(M.pg.UPDATE_SERVICE_SETTINGS),(0,p.z)(It=>(this.store.dispatch((0,yn.ac)({payload:It.payload.uiMessage})),this.store.dispatch((0,yn.qi)({payload:{action:"UpdateServiceSettings",status:M.Bn.INITIATED}})),this.httpClient.post(P.NZ.CONF_API+"/updateServiceSettings",It.payload).pipe((0,D.U)(Ft=>(this.logger.info(Ft),this.store.dispatch((0,yn.qi)({payload:{action:"UpdateServiceSettings",status:M.Bn.COMPLETED}})),this.store.dispatch((0,yn.uO)({payload:It.payload.uiMessage})),this.store.dispatch((0,yn.Tm)({payload:It.payload})),{type:M.pg.OPEN_SNACK_BAR,payload:Ft.message+"."})),(0,S.K)(Ft=>(this.handleErrorWithAlert("UpdateServiceSettings",It.payload.uiMessage,"Update Service Settings Failed!",P.NZ.CONF_API,Ft),(0,_.of)({type:M.pg.VOID})))))))),this.twoFASettingSave=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(M.pg.TWO_FA_SAVE_SETTINGS),(0,p.z)(It=>(this.store.dispatch((0,yn.ac)({payload:M.m6.UPDATE_UI_SETTINGS})),this.store.dispatch((0,yn.qi)({payload:{action:"Update2FASettings",status:M.Bn.INITIATED}})),this.httpClient.post(P.NZ.CONF_API+"/update2FA",{secret2fa:It.payload.secret2fa}))),(0,k.M)(this.store.select(nn.Yj)),(0,D.U)(([It,Ft])=>{this.logger.info(It),Ft.enable2FA=!Ft.enable2FA,this.store.dispatch((0,yn.qi)({payload:{action:"Update2FASettings",status:M.Bn.COMPLETED}})),this.store.dispatch((0,yn.uO)({payload:M.m6.UPDATE_UI_SETTINGS})),this.store.dispatch((0,yn.XT)({payload:Ft}))}),(0,S.K)(It=>(this.handleErrorWithAlert("Update2FASettings",M.m6.UPDATE_UI_SETTINGS,"Update 2FA Settings Failed!",P.NZ.CONF_API,It),(0,_.of)({type:M.pg.VOID})))),{dispatch:!1}),this.configFetch=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(M.pg.FETCH_CONFIG),(0,p.z)(It=>(this.store.dispatch((0,yn.ac)({payload:M.m6.OPEN_CONFIG_FILE})),this.store.dispatch((0,yn.qi)({payload:{action:"fetchConfig",status:M.Bn.INITIATED}})),this.httpClient.get(P.NZ.CONF_API+"/config/"+It.payload).pipe((0,D.U)(Ft=>(this.store.dispatch((0,yn.qi)({payload:{action:"fetchConfig",status:M.Bn.COMPLETED}})),this.store.dispatch((0,yn.uO)({payload:M.m6.OPEN_CONFIG_FILE})),{type:M.pg.SHOW_CONFIG,payload:Ft})),(0,S.K)(Ft=>(this.handleErrorWithAlert("fetchConfig",M.m6.OPEN_CONFIG_FILE,"Fetch Config Failed!",P.NZ.CONF_API+"/config/"+It.payload,Ft),(0,_.of)({type:M.pg.VOID})))))))),this.showLnConfig=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(M.pg.SHOW_CONFIG),(0,D.U)(It=>It.payload)),{dispatch:!1}),this.isAuthorized=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(M.pg.IS_AUTHORIZED),(0,p.z)(It=>(this.store.dispatch((0,yn.qi)({payload:{action:"IsAuthorized",status:M.Bn.INITIATED}})),this.httpClient.post(P.NZ.AUTHENTICATE_API,{authenticateWith:It.payload&&""!==It.payload.trim()?M.OJ.PASSWORD:M.OJ.JWT,authenticationValue:It.payload&&""!==It.payload.trim()?It.payload:this.sessionService.getItem("token")?this.sessionService.getItem("token"):""}).pipe((0,D.U)(Ft=>(this.logger.info(Ft),this.store.dispatch((0,yn.qi)({payload:{action:"IsAuthorized",status:M.Bn.COMPLETED}})),this.logger.info("Successfully Authorized!"),{type:M.pg.IS_AUTHORIZED_RES,payload:Ft})),(0,S.K)(Ft=>(this.handleErrorWithAlert("IsAuthorized",M.m6.NO_SPINNER,"Authorization Failed",P.NZ.AUTHENTICATE_API,Ft),(0,_.of)({type:M.pg.IS_AUTHORIZED_RES,payload:"ERROR"})))))))),this.isAuthorizedRes=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(M.pg.IS_AUTHORIZED_RES),(0,D.U)(It=>It.payload)),{dispatch:!1}),this.authLogin=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(M.pg.LOGIN),(0,k.M)(this.store.select(nn.Yj)),(0,p.z)(([It,Ft])=>(this.store.dispatch((0,Te.Ll)({payload:null})),this.store.dispatch((0,pt.xH)({payload:null})),this.store.dispatch((0,Lt.Fd)({payload:null})),this.store.dispatch((0,yn.qi)({payload:{action:"Login",status:M.Bn.INITIATED}})),this.httpClient.post(P.NZ.AUTHENTICATE_API,{authenticateWith:It.payload.password?M.OJ.PASSWORD:M.OJ.JWT,authenticationValue:It.payload.password?It.payload.password:this.sessionService.getItem("token")?this.sessionService.getItem("token"):"",twoFAToken:It.payload.twoFAToken?It.payload.twoFAToken:""}).pipe((0,D.U)(ln=>{this.logger.info(ln),this.store.dispatch((0,yn.qi)({payload:{action:"Login",status:M.Bn.COMPLETED}})),this.setLoggedInDetails(It.payload.defaultPassword,ln)}),(0,S.K)(ln=>(this.logger.info("Redirecting to Login Error Page"),this.handleErrorWithoutAlert("Login",M.m6.NO_SPINNER,ln),+Ft.sso.rtlSSO?this.router.navigate(["/error"],{state:{errorCode:"406",errorMessage:ln.error&&ln.error.error?ln.error.error:"Single Sign On Failed!"}}):this.router.navigate(["./login"]),(0,_.of)({type:M.pg.VOID}))))))),{dispatch:!1}),this.tokenVerify=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(M.pg.VERIFY_TWO_FA),(0,p.z)(It=>(this.store.dispatch((0,yn.ac)({payload:M.m6.VERIFY_TOKEN})),this.store.dispatch((0,yn.qi)({payload:{action:"VerifyToken",status:M.Bn.INITIATED}})),this.httpClient.post(P.NZ.AUTHENTICATE_API+"/token",{authentication2FA:It.payload.token}).pipe((0,D.U)(Ft=>{this.logger.info(Ft),this.store.dispatch((0,yn.uO)({payload:M.m6.VERIFY_TOKEN})),this.store.dispatch((0,yn.qi)({payload:{action:"VerifyToken",status:M.Bn.COMPLETED}})),this.logger.info("Token Successfully Verified!"),this.setLoggedInDetails(!1,It.payload.authResponse)}),(0,S.K)(Ft=>(this.handleErrorWithAlert("VerifyToken",M.m6.VERIFY_TOKEN,"Authorization Failed!",P.NZ.AUTHENTICATE_API+"/token",Ft),(0,_.of)({type:M.pg.VOID}))))))),{dispatch:!1}),this.logOut=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(M.pg.LOGOUT),(0,p.z)(It=>(this.store.dispatch((0,yn.ac)({payload:M.m6.LOG_OUT})),It.sso&&+It.sso.rtlSSO?window.location.href=It.sso.logoutRedirectLink:this.router.navigate(["./login"]),this.sessionService.clearAll(),this.store.dispatch((0,yn._V)({payload:{}})),this.store.dispatch((0,yn.uO)({payload:M.m6.LOG_OUT})),this.logger.info("Logged out from browser"),this.httpClient.get(P.NZ.AUTHENTICATE_API+"/logout").pipe((0,D.U)(Ft=>{this.logger.info(Ft),this.store.dispatch((0,yn.uO)({payload:M.m6.LOG_OUT})),this.logger.info("Logged out from server")}))))),{dispatch:!1}),this.resetPassword=(0,e.GW)(()=>this.actions.pipe((0,A.R)(this.unSubs[1]),(0,e.l4)(M.pg.RESET_PASSWORD),(0,p.z)(It=>(this.store.dispatch((0,yn.qi)({payload:{action:"ResetPassword",status:M.Bn.INITIATED}})),this.httpClient.post(P.NZ.AUTHENTICATE_API+"/reset",{currPassword:It.payload.currPassword,newPassword:It.payload.newPassword}).pipe((0,A.R)(this.unSubs[0]),(0,D.U)(Ft=>(this.logger.info(Ft),this.store.dispatch((0,yn.qi)({payload:{action:"ResetPassword",status:M.Bn.COMPLETED}})),this.sessionService.setItem("defaultPassword",!1),this.logger.info("Password Reset Successful!"),this.store.dispatch((0,yn.jW)({payload:"Password Reset Successful!"})),this.SetToken(Ft.token),{type:M.pg.RESET_PASSWORD_RES,payload:Ft.token})),(0,S.K)(Ft=>(this.handleErrorWithAlert("ResetPassword",M.m6.NO_SPINNER,"Password Reset Failed!",P.NZ.AUTHENTICATE_API+"/reset",Ft),(0,_.of)({type:M.pg.VOID})))))))),this.setSelectedNode=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(M.pg.SET_SELECTED_NODE),(0,p.z)(It=>(this.store.dispatch((0,yn.ac)({payload:It.payload.uiMessage})),this.store.dispatch((0,yn.qi)({payload:{action:"UpdateSelNode",status:M.Bn.INITIATED}})),this.httpClient.get(P.NZ.CONF_API+"/updateSelNode/"+It.payload.currentLnNode?.index+"/"+It.payload.prevLnNodeIndex).pipe((0,D.U)(Ft=>(this.logger.info(Ft),this.store.dispatch((0,yn.qi)({payload:{action:"UpdateSelNode",status:M.Bn.COMPLETED}})),this.store.dispatch((0,yn.uO)({payload:It.payload.uiMessage})),this.initializeNode(It.payload.currentLnNode,It.payload.isInitialSetup),{type:M.pg.VOID})),(0,S.K)(Ft=>(this.handleErrorWithAlert("UpdateSelNode",It.payload.uiMessage,"Update Selected Node Failed!",P.NZ.CONF_API+"/updateSelNode",Ft),(0,_.of)({type:M.pg.VOID})))))))),this.fetchFile=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(M.pg.FETCH_FILE),(0,p.z)(It=>{this.store.dispatch((0,yn.ac)({payload:M.m6.DOWNLOAD_BACKUP_FILE})),this.store.dispatch((0,yn.qi)({payload:{action:"FetchFile",status:M.Bn.INITIATED}}));const Ft="?channel="+It.payload.channelPoint+(It.payload.path?"&path="+It.payload.path:"");return this.httpClient.get(P.NZ.CONF_API+"/file"+Ft).pipe((0,D.U)(ln=>(this.store.dispatch((0,yn.qi)({payload:{action:"FetchFile",status:M.Bn.COMPLETED}})),this.store.dispatch((0,yn.uO)({payload:M.m6.DOWNLOAD_BACKUP_FILE})),{type:M.pg.SHOW_FILE,payload:ln})),(0,S.K)(ln=>(this.handleErrorWithAlert("fetchFile",M.m6.DOWNLOAD_BACKUP_FILE,"Download Backup File Failed!",P.NZ.CONF_API+"/file"+Ft,{status:this.commonService.extractErrorNumber(ln),error:{error:this.commonService.extractErrorCode(ln)}}),(0,_.of)({type:M.pg.VOID}))))}))),this.showFile=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(M.pg.SHOW_FILE),(0,D.U)(It=>It.payload)),{dispatch:!1})}initializeNode(hn,en){this.logger.info("Initializing node from RTL Effects.");const gn=en?"":"HOME",Qn={userPersona:hn.settings.userPersona,channelBackupPath:hn.settings.channelBackupPath,unannouncedChannels:!!hn.settings.unannouncedChannels,selCurrencyUnit:hn.settings.currencyUnit,currencyUnits:M.uA,fiatConversion:hn.settings.fiatConversion,lnImplementation:hn.lnImplementation,swapServerUrl:hn.settings.swapServerUrl,boltzServerUrl:hn.settings.boltzServerUrl,enableOffers:hn.settings.enableOffers,enablePeerswap:hn.settings.enablePeerswap};if(hn.settings.fiatConversion&&hn.settings.currencyUnit&&(Qn.currencyUnits=[...M.uA,hn.settings.currencyUnit]),this.sessionService.removeItem("lndUnlocked"),this.sessionService.removeItem("clUnlocked"),this.sessionService.removeItem("eclUnlocked"),this.store.dispatch((0,yn.vI)({payload:hn})),this.store.dispatch((0,Te.Ll)({payload:Qn})),this.store.dispatch((0,pt.xH)({payload:Qn})),this.store.dispatch((0,Lt.Fd)({payload:Qn})),this.sessionService.getItem("token")){const Ei=hn.lnImplementation?hn.lnImplementation.toUpperCase():"LND";this.dataService.setLnImplementation(Ei);const ha=P.NZ.production&&window.location.origin?window.location.origin+"/rtl/api":P.T5;switch(this.wsService.connectWebSocket(ha?.replace(/^http/,"ws")+P.NZ.Web_SOCKET_API,hn.index?hn.index.toString():"-1"),Ei){case"CLN":this.store.dispatch((0,pt.CN)({payload:{loadPage:gn}}));break;case"ECL":this.store.dispatch((0,Lt.iz)({payload:{loadPage:gn}}));break;default:this.store.dispatch((0,Te.sQ)({payload:{loadPage:gn}}))}}}SetToken(hn){hn?(this.sessionService.setItem("lndUnlocked","true"),this.sessionService.setItem("token",hn)):(this.sessionService.removeItem("lndUnlocked"),this.sessionService.removeItem("token"))}setLoggedInDetails(hn,en){this.logger.info("Successfully Authorized!"),this.SetToken(en.token),this.sessionService.setItem("defaultPassword",hn),hn?(this.store.dispatch((0,yn.jW)({payload:"Reset your password."})),this.router.navigate(["/settings/auth"])):this.store.dispatch((0,yn.ey)())}handleErrorWithoutAlert(hn,en,gn){this.logger.error("ERROR IN: "+hn+"\n"+JSON.stringify(gn)),401===gn.status&&"Login"!==hn?(this.logger.info("Redirecting to Login"),this.store.dispatch((0,yn.ts)()),this.store.dispatch((0,yn.kS)()),this.store.dispatch((0,yn.jW)({payload:"Authentication Failed. Redirecting to Login."}))):(this.store.dispatch((0,yn.uO)({payload:en})),this.store.dispatch((0,yn.qi)({payload:{action:hn,status:M.Bn.ERROR,statusCode:gn.status?gn.status.toString():"",message:this.commonService.extractErrorMessage(gn)}})))}handleErrorWithAlert(hn,en,gn,Qn,Ei){if(this.logger.error(Ei),0===Ei.status&&Ei.statusText&&"Unknown Error"===Ei.statusText&&(Ei={status:400,error:{message:"Unknown Error / CORS Origin Not Allowed"}}),401===Ei.status&&"Login"!==hn)this.logger.info("Redirecting to Login"),this.store.dispatch((0,yn.ts)()),this.store.dispatch((0,yn.kS)()),this.store.dispatch((0,yn.jW)({payload:"Authentication Failed. Redirecting to Login."}));else{this.store.dispatch((0,yn.uO)({payload:en}));const ha=this.commonService.extractErrorMessage(Ei);this.store.dispatch((0,yn.qR)({payload:{data:{type:"ERROR",alertTitle:gn,message:{code:Ei.status?Ei.status:"Unknown Error",message:ha,URL:Qn},component:Tn.H}}})),this.store.dispatch((0,yn.qi)({payload:{action:hn,status:M.Bn.ERROR,statusCode:Ei.status?Ei.status.toString():"",message:ha,URL:Qn}}))}}ngOnDestroy(){this.unSubs.forEach(hn=>{hn.next(null),hn.complete()})}static#e=this.\u0275fac=function(en){return new(en||ai)(I.LFG(e.eX),I.LFG(Bn.eN),I.LFG(Xt.yh),I.LFG(ie.mQ),I.LFG(Wn.d),I.LFG(ti.m),I.LFG(_e.v),I.LFG(Mn.D),I.LFG(z.uw),I.LFG(ae.ux),I.LFG(Ln.F0))};static#t=this.\u0275prov=I.Yz7({token:ai,factory:ai.\u0275fac})}},8377:(Ue,q,m)=>{"use strict";m.d(q,{R4:()=>D,Sr:()=>k,Yj:()=>s,dT:()=>E,gW:()=>p,ul:()=>u});var e=m(9263);const t=(0,e.ZF)("root"),E=((0,e.P1)(t,S=>S.apiURL),(0,e.P1)(t,S=>S.selNode)),s=(0,e.P1)(t,S=>S.appConfig),D=(0,e.P1)(t,S=>S.nodeData),u=(0,e.P1)(t,S=>S.apisCallStatus.Login),k=(0,e.P1)(t,S=>S.apisCallStatus.IsAuthorized),p=(0,e.P1)(t,S=>({nodeDate:S.nodeData,selNode:S.selNode}))},2340:(Ue,q,m)=>{"use strict";m.d(q,{NZ:()=>t,T5:()=>e,q4:()=>_});const e="./api",t={production:!0,isDebugMode:!1,AUTHENTICATE_API:e+"/authenticate",CONF_API:e+"/conf",PAGE_SETTINGS_API:e+"/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"},_="0.13.3-beta"},2693:(Ue,q,m)=>{"use strict";var e=m(4497),t=m(2560),_=m(4851);function s(K){return new t.vHH(3e3,!1)}function Ke(){return typeof process<"u"&&"[object process]"==={}.toString.call(process)}function je(K){switch(K.length){case 0:return new _.ZN;case 1:return K[0];default:return new _.ZE(K)}}function Ve(K,T,x,V,ge=new Map,nt=new Map){const kt=[],jt=[];let on=-1,xn=null;if(V.forEach(fi=>{const Xn=fi.get("offset"),Pi=Xn==on,Ni=Pi&&xn||new Map;fi.forEach((Ci,Oi)=>{let na=Oi,Ia=Ci;if("offset"!==Oi)switch(na=T.normalizePropertyName(na,kt),Ia){case _.k1:Ia=ge.get(Oi);break;case _.l3:Ia=nt.get(Oi);break;default:Ia=T.normalizeStyleValue(Oi,na,Ia,kt)}Ni.set(na,Ia)}),Pi||jt.push(Ni),xn=Ni,on=Xn}),kt.length)throw function o(K){return new t.vHH(3502,!1)}();return jt}function xe(K,T,x,V){switch(T){case"start":K.onStart(()=>V(x&&Ze(x,"start",K)));break;case"done":K.onDone(()=>V(x&&Ze(x,"done",K)));break;case"destroy":K.onDestroy(()=>V(x&&Ze(x,"destroy",K)))}}function Ze(K,T,x){const V=x.totalTime,ge=!!x.disabled,nt=Ie(K.element,K.triggerName,K.fromState,K.toState,T||K.phaseName,V??K.totalTime,ge),kt=K._data;return null!=kt&&(nt._data=kt),nt}function Ie(K,T,x,V,ge="",nt=0,kt){return{element:K,triggerName:T,fromState:x,toState:V,phaseName:ge,totalTime:nt,disabled:!!kt}}function ve(K,T,x){let V=K.get(T);return V||K.set(T,V=x),V}function et(K){const T=K.indexOf(":");return[K.substring(1,T),K.slice(T+1)]}let ht=(K,T)=>!1,Le=(K,T,x)=>[],Ae=null;function te(K){const T=K.parentNode||K.host;return T===Ae?null:T}(Ke()||typeof Element<"u")&&(function ke(){return typeof window<"u"&&typeof window.document<"u"}()?(Ae=(()=>document.documentElement)(),ht=(K,T)=>{for(;T;){if(T===K)return!0;T=te(T)}return!1}):ht=(K,T)=>K.contains(T),Le=(K,T,x)=>{if(x)return Array.from(K.querySelectorAll(T));const V=K.querySelector(T);return V?[V]:[]});let H=null,j=!1;function Oe(K){H||(H=function le(){return typeof document<"u"?document.body:null}()||{},j=!!H.style&&"WebkitAppearance"in H.style);let T=!0;return H.style&&!function ee(K){return"ebkit"==K.substring(1,6)}(K)&&(T=K in H.style,!T&&j&&(T="Webkit"+K.charAt(0).toUpperCase()+K.slice(1)in H.style)),T}const _t=ht,it=Le;class un{validateStyleProperty(T){return Oe(T)}matchesElement(T,x){return!1}containsElement(T,x){return _t(T,x)}getParentElement(T){return te(T)}query(T,x,V){return it(T,x,V)}computeStyle(T,x,V){return V||""}animate(T,x,V,ge,nt,kt=[],jt){return new _.ZN(V,ge)}}un.\u0275fac=function(T){return new(T||un)},un.\u0275prov=t.Yz7({token:un,factory:un.\u0275fac});class Bt{}Bt.NOOP=new un;const Gt="ng-enter",In="ng-leave",rn="ng-trigger",tn=".ng-trigger",pn="ng-animating",tt=".ng-animating";function vt(K){if("number"==typeof K)return K;const T=K.match(/^(-?[\.\d]+)(m?s)/);return!T||T.length<2?0:dt(parseFloat(T[1]),T[2])}function dt(K,T){return"s"===T?1e3*K:K}function se(K,T,x){return K.hasOwnProperty("duration")?K:function J(K,T,x){const V=/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i;let ge,nt=0,kt="";if("string"==typeof K){const jt=K.match(V);if(null===jt)return T.push(s()),{duration:0,delay:0,easing:""};ge=dt(parseFloat(jt[1]),jt[2]);const on=jt[3];null!=on&&(nt=dt(parseFloat(on),jt[4]));const xn=jt[5];xn&&(kt=xn)}else ge=K;if(!x){let jt=!1,on=T.length;ge<0&&(T.push(function D(){return new t.vHH(3100,!1)}()),jt=!0),nt<0&&(T.push(function u(){return new t.vHH(3101,!1)}()),jt=!0),jt&&T.splice(on,0,s())}return{duration:ge,delay:nt,easing:kt}}(K,T,x)}function oe(K,T={}){return Object.keys(K).forEach(x=>{T[x]=K[x]}),T}function De(K){const T=new Map;return Object.keys(K).forEach(x=>{const V=K[x];T.set(x,V)}),T}function ut(K,T=new Map,x){if(x)for(let[V,ge]of x)T.set(V,ge);for(let[V,ge]of K)T.set(V,ge);return T}function ze(K,T,x){return x?T+":"+x+";":""}function Me(K){let T="";for(let x=0;x<K.style.length;x++){const V=K.style.item(x);T+=ze(0,V,K.style.getPropertyValue(V))}for(const x in K.style){if(!K.style.hasOwnProperty(x)||x.startsWith("_"))continue;T+=ze(0,Jt(x),K.style[x])}K.setAttribute("style",T)}function Ce(K,T,x){K.style&&(T.forEach((V,ge)=>{const nt=Rt(ge);x&&!x.has(ge)&&x.set(ge,K.style[nt]),K.style[nt]=V}),Ke()&&Me(K))}function Je(K,T){K.style&&(T.forEach((x,V)=>{const ge=Rt(V);K.style[ge]=""}),Ke()&&Me(K))}function zt(K){return Array.isArray(K)?1==K.length?K[0]:(0,_.vP)(K):K}function At(K,T,x){const V=T.params||{},ge=Ht(K);ge.length&&ge.forEach(nt=>{V.hasOwnProperty(nt)||x.push(function k(K){return new t.vHH(3001,!1)}())})}const Tt=new RegExp("{{\\s*(.+?)\\s*}}","g");function Ht(K){let T=[];if("string"==typeof K){let x;for(;x=Tt.exec(K);)T.push(x[1]);Tt.lastIndex=0}return T}function He(K,T,x){const V=K.toString(),ge=V.replace(Tt,(nt,kt)=>{let jt=T[kt];return null==jt&&(x.push(function p(K){return new t.vHH(3003,!1)}()),jt=""),jt.toString()});return ge==V?K:ge}function $e(K){const T=[];let x=K.next();for(;!x.done;)T.push(x.value),x=K.next();return T}const $t=/-+([a-z0-9])/g;function Rt(K){return K.replace($t,(...T)=>T[1].toUpperCase())}function Jt(K){return K.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()}function Tn(K,T,x){switch(T.type){case 7:return K.visitTrigger(T,x);case 0:return K.visitState(T,x);case 1:return K.visitTransition(T,x);case 2:return K.visitSequence(T,x);case 3:return K.visitGroup(T,x);case 4:return K.visitAnimate(T,x);case 5:return K.visitKeyframes(T,x);case 6:return K.visitStyle(T,x);case 8:return K.visitReference(T,x);case 9:return K.visitAnimateChild(T,x);case 10:return K.visitAnimateRef(T,x);case 11:return K.visitQuery(T,x);case 12:return K.visitStagger(T,x);default:throw function S(K){return new t.vHH(3004,!1)}(T.type)}}function Yn(K,T){return window.getComputedStyle(K)[T]}function nn(K,T){const x=[];return"string"==typeof K?K.split(/\s*,\s*/).forEach(V=>function Bn(K,T,x){if(":"==K[0]){const on=function Wn(K,T){switch(K){case":enter":return"void => *";case":leave":return"* => void";case":increment":return(x,V)=>parseFloat(V)>parseFloat(x);case":decrement":return(x,V)=>parseFloat(V)<parseFloat(x);default:return T.push(function $(K){return new t.vHH(3016,!1)}()),"* => *"}}(K,x);if("function"==typeof on)return void T.push(on);K=on}const V=K.match(/^(\*|[-\w]+)\s*(<?[=-]>)\s*(\*|[-\w]+)$/);if(null==V||V.length<4)return x.push(function ue(K){return new t.vHH(3015,!1)}()),T;const ge=V[1],nt=V[2],kt=V[3];T.push(Ln(ge,kt));const jt="*"==ge&&"*"==kt;"<"==nt[0]&&!jt&&T.push(Ln(kt,ge))}(V,x,T)):x.push(K),x}const ti=new Set(["true","1"]),Mn=new Set(["false","0"]);function Ln(K,T){const x=ti.has(K)||Mn.has(K),V=ti.has(T)||Mn.has(T);return(ge,nt)=>{let kt="*"==K||K==ge,jt="*"==T||T==nt;return!kt&&x&&"boolean"==typeof ge&&(kt=ge?ti.has(K):Mn.has(K)),!jt&&V&&"boolean"==typeof nt&&(jt=nt?ti.has(T):Mn.has(T)),kt&&jt}}const ai=":self",an=new RegExp("s*:selfs*,?","g");function hn(K,T,x,V){return new gn(K).build(T,x,V)}class gn{constructor(T){this._driver=T}build(T,x,V){const ge=new ha(x);return this._resetContextStyleTimingState(ge),Tn(this,zt(T),ge)}_resetContextStyleTimingState(T){T.currentQuerySelector="",T.collectedStyles=new Map,T.collectedStyles.set("",new Map),T.currentTime=0}visitTrigger(T,x){let V=x.queryCount=0,ge=x.depCount=0;const nt=[],kt=[];return"@"==T.name.charAt(0)&&x.errors.push(function P(){return new t.vHH(3006,!1)}()),T.definitions.forEach(jt=>{if(this._resetContextStyleTimingState(x),0==jt.type){const on=jt,xn=on.name;xn.toString().split(/\s*,\s*/).forEach(fi=>{on.name=fi,nt.push(this.visitState(on,x))}),on.name=xn}else if(1==jt.type){const on=this.visitTransition(jt,x);V+=on.queryCount,ge+=on.depCount,kt.push(on)}else x.errors.push(function M(){return new t.vHH(3007,!1)}())}),{type:7,name:T.name,states:nt,transitions:kt,queryCount:V,depCount:ge,options:null}}visitState(T,x){const V=this.visitStyle(T.styles,x),ge=T.options&&T.options.params||null;if(V.containsDynamicStyles){const nt=new Set,kt=ge||{};if(V.styles.forEach(jt=>{jt instanceof Map&&jt.forEach(on=>{Ht(on).forEach(xn=>{kt.hasOwnProperty(xn)||nt.add(xn)})})}),nt.size){$e(nt.values());x.errors.push(function z(K,T){return new t.vHH(3008,!1)}(T.name))}}return{type:0,name:T.name,style:V,options:ge?{params:ge}:null}}visitTransition(T,x){x.queryCount=0,x.depCount=0;const V=Tn(this,zt(T.animation),x);return{type:1,matchers:nn(T.expr,x.errors),animation:V,queryCount:x.queryCount,depCount:x.depCount,options:Zi(T.options)}}visitSequence(T,x){return{type:2,steps:T.steps.map(V=>Tn(this,V,x)),options:Zi(T.options)}}visitGroup(T,x){const V=x.currentTime;let ge=0;const nt=T.steps.map(kt=>{x.currentTime=V;const jt=Tn(this,kt,x);return ge=Math.max(ge,x.currentTime),jt});return x.currentTime=ge,{type:3,steps:nt,options:Zi(T.options)}}visitAnimate(T,x){const V=function qi(K,T){if(K.hasOwnProperty("duration"))return K;if("number"==typeof K){return Za(se(K,T).duration,0,"")}const x=K;if(x.split(/\s+/).some(nt=>"{"==nt.charAt(0)&&"{"==nt.charAt(1))){const nt=Za(0,0,"");return nt.dynamic=!0,nt.strValue=x,nt}const ge=se(x,T);return Za(ge.duration,ge.delay,ge.easing)}(T.timings,x.errors);x.currentAnimateTimings=V;let ge,nt=T.styles?T.styles:(0,_.oB)({});if(5==nt.type)ge=this.visitKeyframes(nt,x);else{let kt=T.styles,jt=!1;if(!kt){jt=!0;const xn={};V.easing&&(xn.easing=V.easing),kt=(0,_.oB)(xn)}x.currentTime+=V.duration+V.delay;const on=this.visitStyle(kt,x);on.isEmptyStep=jt,ge=on}return x.currentAnimateTimings=null,{type:4,timings:V,style:ge,options:null}}visitStyle(T,x){const V=this._makeStyleAst(T,x);return this._validateStyleAst(V,x),V}_makeStyleAst(T,x){const V=[],ge=Array.isArray(T.styles)?T.styles:[T.styles];for(let jt of ge)"string"==typeof jt?jt===_.l3?V.push(jt):x.errors.push(new t.vHH(3002,!1)):V.push(De(jt));let nt=!1,kt=null;return V.forEach(jt=>{if(jt instanceof Map&&(jt.has("easing")&&(kt=jt.get("easing"),jt.delete("easing")),!nt))for(let on of jt.values())if(on.toString().indexOf("{{")>=0){nt=!0;break}}),{type:6,styles:V,easing:kt,offset:T.offset,containsDynamicStyles:nt,options:null}}_validateStyleAst(T,x){const V=x.currentAnimateTimings;let ge=x.currentTime,nt=x.currentTime;V&&nt>0&&(nt-=V.duration+V.delay),T.styles.forEach(kt=>{"string"!=typeof kt&&kt.forEach((jt,on)=>{const xn=x.collectedStyles.get(x.currentQuerySelector),fi=xn.get(on);let Xn=!0;fi&&(nt!=ge&&nt>=fi.startTime&&ge<=fi.endTime&&(x.errors.push(function Z(K,T,x,V,ge){return new t.vHH(3010,!1)}(0,fi.startTime,fi.endTime)),Xn=!1),nt=fi.startTime),Xn&&xn.set(on,{startTime:nt,endTime:ge}),x.options&&At(jt,x.options,x.errors)})})}visitKeyframes(T,x){const V={type:5,styles:[],options:null};if(!x.currentAnimateTimings)return x.errors.push(function Q(){return new t.vHH(3011,!1)}()),V;let nt=0;const kt=[];let jt=!1,on=!1,xn=0;const fi=T.steps.map(Ia=>{const Jr=this._makeStyleAst(Ia,x);let Ns=null!=Jr.offset?Jr.offset:function mi(K){if("string"==typeof K)return null;let T=null;if(Array.isArray(K))K.forEach(x=>{if(x instanceof Map&&x.has("offset")){const V=x;T=parseFloat(V.get("offset")),V.delete("offset")}});else if(K instanceof Map&&K.has("offset")){const x=K;T=parseFloat(x.get("offset")),x.delete("offset")}return T}(Jr.styles),hs=0;return null!=Ns&&(nt++,hs=Jr.offset=Ns),on=on||hs<0||hs>1,jt=jt||hs<xn,xn=hs,kt.push(hs),Jr});on&&x.errors.push(function ie(){return new t.vHH(3012,!1)}()),jt&&x.errors.push(function ae(){return new t.vHH(3200,!1)}());const Xn=T.steps.length;let Pi=0;nt>0&&nt<Xn?x.errors.push(function _e(){return new t.vHH(3202,!1)}()):0==nt&&(Pi=1/(Xn-1));const Ni=Xn-1,Ci=x.currentTime,Oi=x.currentAnimateTimings,na=Oi.duration;return fi.forEach((Ia,Jr)=>{const Ns=Pi>0?Jr==Ni?1:Pi*Jr:kt[Jr],hs=Ns*na;x.currentTime=Ci+Oi.delay+hs,Oi.duration=hs,this._validateStyleAst(Ia,x),Ia.offset=Ns,V.styles.push(Ia)}),V}visitReference(T,x){return{type:8,animation:Tn(this,zt(T.animation),x),options:Zi(T.options)}}visitAnimateChild(T,x){return x.depCount++,{type:9,options:Zi(T.options)}}visitAnimateRef(T,x){return{type:10,animation:this.visitReference(T.animation,x),options:Zi(T.options)}}visitQuery(T,x){const V=x.currentQuerySelector,ge=T.options||{};x.queryCount++,x.currentQuery=T;const[nt,kt]=function Qn(K){const T=!!K.split(/\s*,\s*/).find(x=>x==ai);return T&&(K=K.replace(an,"")),K=K.replace(/@\*/g,tn).replace(/@\w+/g,x=>tn+"-"+x.slice(1)).replace(/:animating/g,tt),[K,T]}(T.selector);x.currentQuerySelector=V.length?V+" "+nt:nt,ve(x.collectedStyles,x.currentQuerySelector,new Map);const jt=Tn(this,zt(T.animation),x);return x.currentQuery=null,x.currentQuerySelector=V,{type:11,selector:nt,limit:ge.limit||0,optional:!!ge.optional,includeSelf:kt,animation:jt,originalSelector:T.selector,options:Zi(T.options)}}visitStagger(T,x){x.currentQuery||x.errors.push(function ce(){return new t.vHH(3013,!1)}());const V="full"===T.timings?{duration:0,delay:0,easing:"full"}:se(T.timings,x.errors,!0);return{type:12,animation:Tn(this,zt(T.animation),x),timings:V,options:null}}}class ha{constructor(T){this.errors=T,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 Zi(K){return K?(K=oe(K)).params&&(K.params=function Ei(K){return K?oe(K):null}(K.params)):K={},K}function Za(K,T,x){return{duration:K,delay:T,easing:x}}function mr(K,T,x,V,ge,nt,kt=null,jt=!1){return{type:1,element:K,keyframes:T,preStyleProps:x,postStyleProps:V,duration:ge,delay:nt,totalTime:ge+nt,easing:kt,subTimeline:jt}}class It{constructor(){this._map=new Map}get(T){return this._map.get(T)||[]}append(T,x){let V=this._map.get(T);V||this._map.set(T,V=[]),V.push(...x)}has(T){return this._map.has(T)}clear(){this._map.clear()}}const En=new RegExp(":enter","g"),Nn=new RegExp(":leave","g");function li(K,T,x,V,ge,nt=new Map,kt=new Map,jt,on,xn=[]){return(new aa).buildKeyframes(K,T,x,V,ge,nt,kt,jt,on,xn)}class aa{buildKeyframes(T,x,V,ge,nt,kt,jt,on,xn,fi=[]){xn=xn||new It;const Xn=new ea(T,x,xn,ge,nt,fi,[]);Xn.options=on;const Pi=on.delay?vt(on.delay):0;Xn.currentTimeline.delayNextStep(Pi),Xn.currentTimeline.setStyles([kt],null,Xn.errors,on),Tn(this,V,Xn);const Ni=Xn.timelines.filter(Ci=>Ci.containsAnimation());if(Ni.length&&jt.size){let Ci;for(let Oi=Ni.length-1;Oi>=0;Oi--){const na=Ni[Oi];if(na.element===x){Ci=na;break}}Ci&&!Ci.allowOnlyTimelineStyles()&&Ci.setStyles([jt],null,Xn.errors,on)}return Ni.length?Ni.map(Ci=>Ci.buildKeyframes()):[mr(x,[],[],[],0,Pi,"",!1)]}visitTrigger(T,x){}visitState(T,x){}visitTransition(T,x){}visitAnimateChild(T,x){const V=x.subInstructions.get(x.element);if(V){const ge=x.createSubContext(T.options),nt=x.currentTimeline.currentTime,kt=this._visitSubInstructions(V,ge,ge.options);nt!=kt&&x.transformIntoNewTimeline(kt)}x.previousNode=T}visitAnimateRef(T,x){const V=x.createSubContext(T.options);V.transformIntoNewTimeline(),this._applyAnimationRefDelays([T.options,T.animation.options],x,V),this.visitReference(T.animation,V),x.transformIntoNewTimeline(V.currentTimeline.currentTime),x.previousNode=T}_applyAnimationRefDelays(T,x,V){for(const ge of T){const nt=ge?.delay;if(nt){const kt="number"==typeof nt?nt:vt(He(nt,ge?.params??{},x.errors));V.delayNextStep(kt)}}}_visitSubInstructions(T,x,V){let nt=x.currentTimeline.currentTime;const kt=null!=V.duration?vt(V.duration):null,jt=null!=V.delay?vt(V.delay):null;return 0!==kt&&T.forEach(on=>{const xn=x.appendInstructionToTimeline(on,kt,jt);nt=Math.max(nt,xn.duration+xn.delay)}),nt}visitReference(T,x){x.updateOptions(T.options,!0),Tn(this,T.animation,x),x.previousNode=T}visitSequence(T,x){const V=x.subContextCount;let ge=x;const nt=T.options;if(nt&&(nt.params||nt.delay)&&(ge=x.createSubContext(nt),ge.transformIntoNewTimeline(),null!=nt.delay)){6==ge.previousNode.type&&(ge.currentTimeline.snapshotCurrentStyles(),ge.previousNode=Ii);const kt=vt(nt.delay);ge.delayNextStep(kt)}T.steps.length&&(T.steps.forEach(kt=>Tn(this,kt,ge)),ge.currentTimeline.applyStylesToKeyframe(),ge.subContextCount>V&&ge.transformIntoNewTimeline()),x.previousNode=T}visitGroup(T,x){const V=[];let ge=x.currentTimeline.currentTime;const nt=T.options&&T.options.delay?vt(T.options.delay):0;T.steps.forEach(kt=>{const jt=x.createSubContext(T.options);nt&&jt.delayNextStep(nt),Tn(this,kt,jt),ge=Math.max(ge,jt.currentTimeline.currentTime),V.push(jt.currentTimeline)}),V.forEach(kt=>x.currentTimeline.mergeTimelineCollectedStyles(kt)),x.transformIntoNewTimeline(ge),x.previousNode=T}_visitTiming(T,x){if(T.dynamic){const V=T.strValue;return se(x.params?He(V,x.params,x.errors):V,x.errors)}return{duration:T.duration,delay:T.delay,easing:T.easing}}visitAnimate(T,x){const V=x.currentAnimateTimings=this._visitTiming(T.timings,x),ge=x.currentTimeline;V.delay&&(x.incrementTime(V.delay),ge.snapshotCurrentStyles());const nt=T.style;5==nt.type?this.visitKeyframes(nt,x):(x.incrementTime(V.duration),this.visitStyle(nt,x),ge.applyStylesToKeyframe()),x.currentAnimateTimings=null,x.previousNode=T}visitStyle(T,x){const V=x.currentTimeline,ge=x.currentAnimateTimings;!ge&&V.hasCurrentStyleProperties()&&V.forwardFrame();const nt=ge&&ge.easing||T.easing;T.isEmptyStep?V.applyEmptyStep(nt):V.setStyles(T.styles,nt,x.errors,x.options),x.previousNode=T}visitKeyframes(T,x){const V=x.currentAnimateTimings,ge=x.currentTimeline.duration,nt=V.duration,jt=x.createSubContext().currentTimeline;jt.easing=V.easing,T.styles.forEach(on=>{const xn=on.offset||0;jt.forwardTime(xn*nt),jt.setStyles(on.styles,on.easing,x.errors,x.options),jt.applyStylesToKeyframe()}),x.currentTimeline.mergeTimelineCollectedStyles(jt),x.transformIntoNewTimeline(ge+nt),x.previousNode=T}visitQuery(T,x){const V=x.currentTimeline.currentTime,ge=T.options||{},nt=ge.delay?vt(ge.delay):0;nt&&(6===x.previousNode.type||0==V&&x.currentTimeline.hasCurrentStyleProperties())&&(x.currentTimeline.snapshotCurrentStyles(),x.previousNode=Ii);let kt=V;const jt=x.invokeQuery(T.selector,T.originalSelector,T.limit,T.includeSelf,!!ge.optional,x.errors);x.currentQueryTotal=jt.length;let on=null;jt.forEach((xn,fi)=>{x.currentQueryIndex=fi;const Xn=x.createSubContext(T.options,xn);nt&&Xn.delayNextStep(nt),xn===x.element&&(on=Xn.currentTimeline),Tn(this,T.animation,Xn),Xn.currentTimeline.applyStylesToKeyframe();const Pi=Xn.currentTimeline.currentTime;kt=Math.max(kt,Pi)}),x.currentQueryIndex=0,x.currentQueryTotal=0,x.transformIntoNewTimeline(kt),on&&(x.currentTimeline.mergeTimelineCollectedStyles(on),x.currentTimeline.snapshotCurrentStyles()),x.previousNode=T}visitStagger(T,x){const V=x.parentContext,ge=x.currentTimeline,nt=T.timings,kt=Math.abs(nt.duration),jt=kt*(x.currentQueryTotal-1);let on=kt*x.currentQueryIndex;switch(nt.duration<0?"reverse":nt.easing){case"reverse":on=jt-on;break;case"full":on=V.currentStaggerTime}const fi=x.currentTimeline;on&&fi.delayNextStep(on);const Xn=fi.currentTime;Tn(this,T.animation,x),x.previousNode=T,V.currentStaggerTime=ge.currentTime-Xn+(ge.startTime-V.currentTimeline.startTime)}}const Ii={};class ea{constructor(T,x,V,ge,nt,kt,jt,on){this._driver=T,this.element=x,this.subInstructions=V,this._enterClassName=ge,this._leaveClassName=nt,this.errors=kt,this.timelines=jt,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=Ii,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=on||new Di(this._driver,x,0),jt.push(this.currentTimeline)}get params(){return this.options.params}updateOptions(T,x){if(!T)return;const V=T;let ge=this.options;null!=V.duration&&(ge.duration=vt(V.duration)),null!=V.delay&&(ge.delay=vt(V.delay));const nt=V.params;if(nt){let kt=ge.params;kt||(kt=this.options.params={}),Object.keys(nt).forEach(jt=>{(!x||!kt.hasOwnProperty(jt))&&(kt[jt]=He(nt[jt],kt,this.errors))})}}_copyOptions(){const T={};if(this.options){const x=this.options.params;if(x){const V=T.params={};Object.keys(x).forEach(ge=>{V[ge]=x[ge]})}}return T}createSubContext(T=null,x,V){const ge=x||this.element,nt=new ea(this._driver,ge,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(ge,V||0));return nt.previousNode=this.previousNode,nt.currentAnimateTimings=this.currentAnimateTimings,nt.options=this._copyOptions(),nt.updateOptions(T),nt.currentQueryIndex=this.currentQueryIndex,nt.currentQueryTotal=this.currentQueryTotal,nt.parentContext=this,this.subContextCount++,nt}transformIntoNewTimeline(T){return this.previousNode=Ii,this.currentTimeline=this.currentTimeline.fork(this.element,T),this.timelines.push(this.currentTimeline),this.currentTimeline}appendInstructionToTimeline(T,x,V){const ge={duration:x??T.duration,delay:this.currentTimeline.currentTime+(V??0)+T.delay,easing:""},nt=new Ji(this._driver,T.element,T.keyframes,T.preStyleProps,T.postStyleProps,ge,T.stretchStartingKeyframe);return this.timelines.push(nt),ge}incrementTime(T){this.currentTimeline.forwardTime(this.currentTimeline.duration+T)}delayNextStep(T){T>0&&this.currentTimeline.delayNextStep(T)}invokeQuery(T,x,V,ge,nt,kt){let jt=[];if(ge&&jt.push(this.element),T.length>0){T=(T=T.replace(En,"."+this._enterClassName)).replace(Nn,"."+this._leaveClassName);const on=1!=V;let xn=this._driver.query(this.element,T,on);0!==V&&(xn=V<0?xn.slice(xn.length+V,xn.length):xn.slice(0,V)),jt.push(...xn)}return!nt&&0==jt.length&&kt.push(function ye(K){return new t.vHH(3014,!1)}()),jt}}class Di{constructor(T,x,V,ge){this._driver=T,this.element=x,this.startTime=V,this._elementTimelineStylesLookup=ge,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(x),this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(x,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(T){const x=1===this._keyframes.size&&this._pendingStyles.size;this.duration||x?(this.forwardTime(this.currentTime+T),x&&this.snapshotCurrentStyles()):this.startTime+=T}fork(T,x){return this.applyStylesToKeyframe(),new Di(this._driver,T,x||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(T){this.applyStylesToKeyframe(),this.duration=T,this._loadKeyframe()}_updateStyle(T,x){this._localTimelineStyles.set(T,x),this._globalTimelineStyles.set(T,x),this._styleSummary.set(T,{time:this.currentTime,value:x})}allowOnlyTimelineStyles(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}applyEmptyStep(T){T&&this._previousKeyframe.set("easing",T);for(let[x,V]of this._globalTimelineStyles)this._backFill.set(x,V||_.l3),this._currentKeyframe.set(x,_.l3);this._currentEmptyStepKeyframe=this._currentKeyframe}setStyles(T,x,V,ge){x&&this._previousKeyframe.set("easing",x);const nt=ge&&ge.params||{},kt=function Yi(K,T){const x=new Map;let V;return K.forEach(ge=>{if("*"===ge){V=V||T.keys();for(let nt of V)x.set(nt,_.l3)}else ut(ge,x)}),x}(T,this._globalTimelineStyles);for(let[jt,on]of kt){const xn=He(on,nt,V);this._pendingStyles.set(jt,xn),this._localTimelineStyles.has(jt)||this._backFill.set(jt,this._globalTimelineStyles.get(jt)??_.l3),this._updateStyle(jt,xn)}}applyStylesToKeyframe(){0!=this._pendingStyles.size&&(this._pendingStyles.forEach((T,x)=>{this._currentKeyframe.set(x,T)}),this._pendingStyles.clear(),this._localTimelineStyles.forEach((T,x)=>{this._currentKeyframe.has(x)||this._currentKeyframe.set(x,T)}))}snapshotCurrentStyles(){for(let[T,x]of this._localTimelineStyles)this._pendingStyles.set(T,x),this._updateStyle(T,x)}getFinalKeyframe(){return this._keyframes.get(this.duration)}get properties(){const T=[];for(let x in this._currentKeyframe)T.push(x);return T}mergeTimelineCollectedStyles(T){T._styleSummary.forEach((x,V)=>{const ge=this._styleSummary.get(V);(!ge||x.time>ge.time)&&this._updateStyle(V,x.value)})}buildKeyframes(){this.applyStylesToKeyframe();const T=new Set,x=new Set,V=1===this._keyframes.size&&0===this.duration;let ge=[];this._keyframes.forEach((jt,on)=>{const xn=ut(jt,new Map,this._backFill);xn.forEach((fi,Xn)=>{fi===_.k1?T.add(Xn):fi===_.l3&&x.add(Xn)}),V||xn.set("offset",on/this.duration),ge.push(xn)});const nt=T.size?$e(T.values()):[],kt=x.size?$e(x.values()):[];if(V){const jt=ge[0],on=new Map(jt);jt.set("offset",0),on.set("offset",1),ge=[jt,on]}return mr(this.element,ge,nt,kt,this.duration,this.startTime,this.easing,!1)}}class Ji extends Di{constructor(T,x,V,ge,nt,kt,jt=!1){super(T,x,kt.delay),this.keyframes=V,this.preStyleProps=ge,this.postStyleProps=nt,this._stretchStartingKeyframe=jt,this.timings={duration:kt.duration,delay:kt.delay,easing:kt.easing}}containsAnimation(){return this.keyframes.length>1}buildKeyframes(){let T=this.keyframes,{delay:x,duration:V,easing:ge}=this.timings;if(this._stretchStartingKeyframe&&x){const nt=[],kt=V+x,jt=x/kt,on=ut(T[0]);on.set("offset",0),nt.push(on);const xn=ut(T[0]);xn.set("offset",ka(jt)),nt.push(xn);const fi=T.length-1;for(let Xn=1;Xn<=fi;Xn++){let Pi=ut(T[Xn]);const Ci=x+Pi.get("offset")*V;Pi.set("offset",ka(Ci/kt)),nt.push(Pi)}V=kt,x=0,ge="",T=nt}return mr(this.element,T,this.preStyleProps,this.postStyleProps,V,x,ge,!0)}}function ka(K,T=3){const x=Math.pow(10,T-1);return Math.round(K*x)/x}class Hi{}const gr=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 Sa extends Hi{normalizePropertyName(T,x){return Rt(T)}normalizeStyleValue(T,x,V,ge){let nt="";const kt=V.toString().trim();if(gr.has(x)&&0!==V&&"0"!==V)if("number"==typeof V)nt="px";else{const jt=V.match(/^[+-]?[\d\.]+([a-z]*)$/);jt&&0==jt[1].length&&ge.push(function A(K,T){return new t.vHH(3005,!1)}())}return kt+nt}}function fa(K,T,x,V,ge,nt,kt,jt,on,xn,fi,Xn,Pi){return{type:0,element:K,triggerName:T,isRemovalTransition:ge,fromState:x,fromStyles:nt,toState:V,toStyles:kt,timelines:jt,queriedElements:on,preStyleProps:xn,postStyleProps:fi,totalTime:Xn,errors:Pi}}const Ki={};class xa{constructor(T,x,V){this._triggerName=T,this.ast=x,this._stateStyles=V}match(T,x,V,ge){return function fo(K,T,x,V,ge){return K.some(nt=>nt(T,x,V,ge))}(this.ast.matchers,T,x,V,ge)}buildStyles(T,x,V){let ge=this._stateStyles.get("*");return void 0!==T&&(ge=this._stateStyles.get(T?.toString())||ge),ge?ge.buildStyles(x,V):new Map}build(T,x,V,ge,nt,kt,jt,on,xn,fi){const Xn=[],Pi=this.ast.options&&this.ast.options.params||Ki,Ni=jt&&jt.params||Ki,Ci=this.buildStyles(V,Ni,Xn),Oi=on&&on.params||Ki,na=this.buildStyles(ge,Oi,Xn),Ia=new Set,Jr=new Map,Ns=new Map,hs="void"===ge,lo={params:za(Oi,Pi),delay:this.ast.options?.delay},il=fi?[]:li(T,x,this.ast.animation,nt,kt,Ci,na,lo,xn,Xn);let Ms=0;if(il.forEach(al=>{Ms=Math.max(al.duration+al.delay,Ms)}),Xn.length)return fa(x,this._triggerName,V,ge,hs,Ci,na,[],[],Jr,Ns,Ms,Xn);il.forEach(al=>{const zo=al.element,Ah=ve(Jr,zo,new Set);al.preStyleProps.forEach(Tc=>Ah.add(Tc));const h1=ve(Ns,zo,new Set);al.postStyleProps.forEach(Tc=>h1.add(Tc)),zo!==x&&Ia.add(zo)});const To=$e(Ia.values());return fa(x,this._triggerName,V,ge,hs,Ci,na,il,To,Jr,Ns,Ms)}}function za(K,T){const x=oe(T);for(const V in K)K.hasOwnProperty(V)&&null!=K[V]&&(x[V]=K[V]);return x}class js{constructor(T,x,V){this.styles=T,this.defaultParams=x,this.normalizer=V}buildStyles(T,x){const V=new Map,ge=oe(this.defaultParams);return Object.keys(T).forEach(nt=>{const kt=T[nt];null!==kt&&(ge[nt]=kt)}),this.styles.styles.forEach(nt=>{"string"!=typeof nt&&nt.forEach((kt,jt)=>{kt&&(kt=He(kt,ge,x));const on=this.normalizer.normalizePropertyName(jt,x);kt=this.normalizer.normalizeStyleValue(jt,on,kt,x),V.set(on,kt)})}),V}}class Qi{constructor(T,x,V){this.name=T,this.ast=x,this._normalizer=V,this.transitionFactories=[],this.states=new Map,x.states.forEach(ge=>{const nt=ge.options&&ge.options.params||{};this.states.set(ge.name,new js(ge.style,nt,V))}),Ta(this.states,"true","1"),Ta(this.states,"false","0"),x.transitions.forEach(ge=>{this.transitionFactories.push(new xa(T,ge,this.states))}),this.fallbackTransition=function Gr(K,T,x){return new xa(K,{type:1,animation:{type:2,steps:[],options:null},matchers:[(kt,jt)=>!0],options:null,queryCount:0,depCount:0},T)}(T,this.states,this._normalizer)}get containsQueries(){return this.ast.queryCount>0}matchTransition(T,x,V,ge){return this.transitionFactories.find(kt=>kt.match(T,x,V,ge))||null}matchStyles(T,x,V){return this.fallbackTransition.buildStyles(T,x,V)}}function Ta(K,T,x){K.has(T)?K.has(x)||K.set(x,K.get(T)):K.has(x)&&K.set(T,K.get(x))}const Is=new It;class Ua{constructor(T,x,V){this.bodyNode=T,this._driver=x,this._normalizer=V,this._animations=new Map,this._playersById=new Map,this.players=[]}register(T,x){const V=[],ge=[],nt=hn(this._driver,x,V,ge);if(V.length)throw function h(K){return new t.vHH(3503,!1)}();ge.length,this._animations.set(T,nt)}_buildPlayer(T,x,V){const ge=T.element,nt=Ve(this._driver,this._normalizer,0,T.keyframes,x,V);return this._driver.animate(ge,nt,T.duration,T.delay,T.easing,[],!0)}create(T,x,V={}){const ge=[],nt=this._animations.get(T);let kt;const jt=new Map;if(nt?(kt=li(this._driver,x,nt,Gt,In,new Map,new Map,V,Is,ge),kt.forEach(fi=>{const Xn=ve(jt,fi.element,new Map);fi.postStyleProps.forEach(Pi=>Xn.set(Pi,null))})):(ge.push(function d(){return new t.vHH(3300,!1)}()),kt=[]),ge.length)throw function y(K){return new t.vHH(3504,!1)}();jt.forEach((fi,Xn)=>{fi.forEach((Pi,Ni)=>{fi.set(Ni,this._driver.computeStyle(Xn,Ni,_.l3))})});const xn=je(kt.map(fi=>{const Xn=jt.get(fi.element);return this._buildPlayer(fi,new Map,Xn)}));return this._playersById.set(T,xn),xn.onDestroy(()=>this.destroy(T)),this.players.push(xn),xn}destroy(T){const x=this._getPlayer(T);x.destroy(),this._playersById.delete(T);const V=this.players.indexOf(x);V>=0&&this.players.splice(V,1)}_getPlayer(T){const x=this._playersById.get(T);if(!x)throw function L(K){return new t.vHH(3301,!1)}();return x}listen(T,x,V,ge){const nt=Ie(x,"","","");return xe(this._getPlayer(T),V,nt,ge),()=>{}}command(T,x,V,ge){if("register"==V)return void this.register(T,ge[0]);if("create"==V){const kt=ge[0]||{};return void this.create(T,x,kt)}const nt=this._getPlayer(T);switch(V){case"play":nt.play();break;case"pause":nt.pause();break;case"reset":nt.reset();break;case"restart":nt.restart();break;case"finish":nt.finish();break;case"init":nt.init();break;case"setPosition":nt.setPosition(parseFloat(ge[0]));break;case"destroy":this.destroy(T)}}}const Ls="ng-animate-queued",vr="ng-animate-disabled",nr=[],Pr={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},Xs={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},pa="__ng_removed";class Js{constructor(T,x=""){this.namespaceId=x;const V=T&&T.hasOwnProperty("value"),ge=V?T.value:T;if(this.value=function sa(K){return K??null}(ge),V){const nt=oe(T);delete nt.value,this.options=nt}else this.options={};this.options.params||(this.options.params={})}get params(){return this.options.params}absorbOptions(T){const x=T.params;if(x){const V=this.options.params;Object.keys(x).forEach(ge=>{null==V[ge]&&(V[ge]=x[ge])})}}}const Oa="void",Ss=new Js(Oa);class Ja{constructor(T,x,V){this.id=T,this.hostElement=x,this._engine=V,this.players=[],this._triggers=new Map,this._queue=[],this._elementListeners=new Map,this._hostClassName="ng-tns-"+T,dn(x,this._hostClassName)}listen(T,x,V,ge){if(!this._triggers.has(x))throw function B(K,T){return new t.vHH(3302,!1)}();if(null==V||0==V.length)throw function v(K){return new t.vHH(3303,!1)}();if(!function br(K){return"start"==K||"done"==K}(V))throw function a(K,T){return new t.vHH(3400,!1)}();const nt=ve(this._elementListeners,T,[]),kt={name:x,phase:V,callback:ge};nt.push(kt);const jt=ve(this._engine.statesByElement,T,new Map);return jt.has(x)||(dn(T,rn),dn(T,rn+"-"+x),jt.set(x,Ss)),()=>{this._engine.afterFlush(()=>{const on=nt.indexOf(kt);on>=0&&nt.splice(on,1),this._triggers.has(x)||jt.delete(x)})}}register(T,x){return!this._triggers.has(T)&&(this._triggers.set(T,x),!0)}_getTrigger(T){const x=this._triggers.get(T);if(!x)throw function C(K){return new t.vHH(3401,!1)}();return x}trigger(T,x,V,ge=!0){const nt=this._getTrigger(x),kt=new $a(this.id,x,T);let jt=this._engine.statesByElement.get(T);jt||(dn(T,rn),dn(T,rn+"-"+x),this._engine.statesByElement.set(T,jt=new Map));let on=jt.get(x);const xn=new Js(V,this.id);if(!(V&&V.hasOwnProperty("value"))&&on&&xn.absorbOptions(on.options),jt.set(x,xn),on||(on=Ss),xn.value!==Oa&&on.value===xn.value){if(!function Bi(K,T){const x=Object.keys(K),V=Object.keys(T);if(x.length!=V.length)return!1;for(let ge=0;ge<x.length;ge++){const nt=x[ge];if(!T.hasOwnProperty(nt)||K[nt]!==T[nt])return!1}return!0}(on.params,xn.params)){const Oi=[],na=nt.matchStyles(on.value,on.params,Oi),Ia=nt.matchStyles(xn.value,xn.params,Oi);Oi.length?this._engine.reportError(Oi):this._engine.afterFlush(()=>{Je(T,na),Ce(T,Ia)})}return}const Pi=ve(this._engine.playersByElement,T,[]);Pi.forEach(Oi=>{Oi.namespaceId==this.id&&Oi.triggerName==x&&Oi.queued&&Oi.destroy()});let Ni=nt.matchTransition(on.value,xn.value,T,xn.params),Ci=!1;if(!Ni){if(!ge)return;Ni=nt.fallbackTransition,Ci=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:T,triggerName:x,transition:Ni,fromState:on,toState:xn,player:kt,isFallbackTransition:Ci}),Ci||(dn(T,Ls),kt.onStart(()=>{xt(T,Ls)})),kt.onDone(()=>{let Oi=this.players.indexOf(kt);Oi>=0&&this.players.splice(Oi,1);const na=this._engine.playersByElement.get(T);if(na){let Ia=na.indexOf(kt);Ia>=0&&na.splice(Ia,1)}}),this.players.push(kt),Pi.push(kt),kt}deregister(T){this._triggers.delete(T),this._engine.statesByElement.forEach(x=>x.delete(T)),this._elementListeners.forEach((x,V)=>{this._elementListeners.set(V,x.filter(ge=>ge.name!=T))})}clearElementCache(T){this._engine.statesByElement.delete(T),this._elementListeners.delete(T);const x=this._engine.playersByElement.get(T);x&&(x.forEach(V=>V.destroy()),this._engine.playersByElement.delete(T))}_signalRemovalForInnerTriggers(T,x){const V=this._engine.driver.query(T,tn,!0);V.forEach(ge=>{if(ge[pa])return;const nt=this._engine.fetchNamespacesByElement(ge);nt.size?nt.forEach(kt=>kt.triggerLeaveAnimation(ge,x,!1,!0)):this.clearElementCache(ge)}),this._engine.afterFlushAnimationsDone(()=>V.forEach(ge=>this.clearElementCache(ge)))}triggerLeaveAnimation(T,x,V,ge){const nt=this._engine.statesByElement.get(T),kt=new Map;if(nt){const jt=[];if(nt.forEach((on,xn)=>{if(kt.set(xn,on.value),this._triggers.has(xn)){const fi=this.trigger(T,xn,Oa,ge);fi&&jt.push(fi)}}),jt.length)return this._engine.markElementAsRemoved(this.id,T,!0,x,kt),V&&je(jt).onDone(()=>this._engine.processLeaveNode(T)),!0}return!1}prepareLeaveAnimationListeners(T){const x=this._elementListeners.get(T),V=this._engine.statesByElement.get(T);if(x&&V){const ge=new Set;x.forEach(nt=>{const kt=nt.name;if(ge.has(kt))return;ge.add(kt);const on=this._triggers.get(kt).fallbackTransition,xn=V.get(kt)||Ss,fi=new Js(Oa),Xn=new $a(this.id,kt,T);this._engine.totalQueuedPlayers++,this._queue.push({element:T,triggerName:kt,transition:on,fromState:xn,toState:fi,player:Xn,isFallbackTransition:!0})})}}removeNode(T,x){const V=this._engine;if(T.childElementCount&&this._signalRemovalForInnerTriggers(T,x),this.triggerLeaveAnimation(T,x,!0))return;let ge=!1;if(V.totalAnimations){const nt=V.players.length?V.playersByQueriedElement.get(T):[];if(nt&&nt.length)ge=!0;else{let kt=T;for(;kt=kt.parentNode;)if(V.statesByElement.get(kt)){ge=!0;break}}}if(this.prepareLeaveAnimationListeners(T),ge)V.markElementAsRemoved(this.id,T,!1,x);else{const nt=T[pa];(!nt||nt===Pr)&&(V.afterFlush(()=>this.clearElementCache(T)),V.destroyInnerAnimations(T),V._onRemovalComplete(T,x))}}insertNode(T,x){dn(T,this._hostClassName)}drainQueuedTransitions(T){const x=[];return this._queue.forEach(V=>{const ge=V.player;if(ge.destroyed)return;const nt=V.element,kt=this._elementListeners.get(nt);kt&&kt.forEach(jt=>{if(jt.name==V.triggerName){const on=Ie(nt,V.triggerName,V.fromState.value,V.toState.value);on._data=T,xe(V.player,jt.phase,on,jt.callback)}}),ge.markedForDestroy?this._engine.afterFlush(()=>{ge.destroy()}):x.push(V)}),this._queue=[],x.sort((V,ge)=>{const nt=V.transition.ast.depCount,kt=ge.transition.ast.depCount;return 0==nt||0==kt?nt-kt:this._engine.driver.containsElement(V.element,ge.element)?1:-1})}destroy(T){this.players.forEach(x=>x.destroy()),this._signalRemovalForInnerTriggers(this.hostElement,T)}elementContainsData(T){let x=!1;return this._elementListeners.has(T)&&(x=!0),x=!!this._queue.find(V=>V.element===T)||x,x}}class Os{constructor(T,x,V){this.bodyNode=T,this.driver=x,this._normalizer=V,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=(ge,nt)=>{}}_onRemovalComplete(T,x){this.onRemovalComplete(T,x)}get queuedPlayers(){const T=[];return this._namespaceList.forEach(x=>{x.players.forEach(V=>{V.queued&&T.push(V)})}),T}createNamespace(T,x){const V=new Ja(T,x,this);return this.bodyNode&&this.driver.containsElement(this.bodyNode,x)?this._balanceNamespaceList(V,x):(this.newHostElements.set(x,V),this.collectEnterElement(x)),this._namespaceLookup[T]=V}_balanceNamespaceList(T,x){const V=this._namespaceList,ge=this.namespacesByHostElement;if(V.length-1>=0){let kt=!1,jt=this.driver.getParentElement(x);for(;jt;){const on=ge.get(jt);if(on){const xn=V.indexOf(on);V.splice(xn+1,0,T),kt=!0;break}jt=this.driver.getParentElement(jt)}kt||V.unshift(T)}else V.push(T);return ge.set(x,T),T}register(T,x){let V=this._namespaceLookup[T];return V||(V=this.createNamespace(T,x)),V}registerTrigger(T,x,V){let ge=this._namespaceLookup[T];ge&&ge.register(x,V)&&this.totalAnimations++}destroy(T,x){if(!T)return;const V=this._fetchNamespace(T);this.afterFlush(()=>{this.namespacesByHostElement.delete(V.hostElement),delete this._namespaceLookup[T];const ge=this._namespaceList.indexOf(V);ge>=0&&this._namespaceList.splice(ge,1)}),this.afterFlushAnimationsDone(()=>V.destroy(x))}_fetchNamespace(T){return this._namespaceLookup[T]}fetchNamespacesByElement(T){const x=new Set,V=this.statesByElement.get(T);if(V)for(let ge of V.values())if(ge.namespaceId){const nt=this._fetchNamespace(ge.namespaceId);nt&&x.add(nt)}return x}trigger(T,x,V,ge){if(ir(x)){const nt=this._fetchNamespace(T);if(nt)return nt.trigger(x,V,ge),!0}return!1}insertNode(T,x,V,ge){if(!ir(x))return;const nt=x[pa];if(nt&&nt.setForRemoval){nt.setForRemoval=!1,nt.setForMove=!0;const kt=this.collectedLeaveElements.indexOf(x);kt>=0&&this.collectedLeaveElements.splice(kt,1)}if(T){const kt=this._fetchNamespace(T);kt&&kt.insertNode(x,V)}ge&&this.collectEnterElement(x)}collectEnterElement(T){this.collectedEnterElements.push(T)}markElementAsDisabled(T,x){x?this.disabledNodes.has(T)||(this.disabledNodes.add(T),dn(T,vr)):this.disabledNodes.has(T)&&(this.disabledNodes.delete(T),xt(T,vr))}removeNode(T,x,V,ge){if(ir(x)){const nt=T?this._fetchNamespace(T):null;if(nt?nt.removeNode(x,ge):this.markElementAsRemoved(T,x,!1,ge),V){const kt=this.namespacesByHostElement.get(x);kt&&kt.id!==T&&kt.removeNode(x,ge)}}else this._onRemovalComplete(x,ge)}markElementAsRemoved(T,x,V,ge,nt){this.collectedLeaveElements.push(x),x[pa]={namespaceId:T,setForRemoval:ge,hasAnimation:V,removedBeforeQueried:!1,previousTriggersValues:nt}}listen(T,x,V,ge,nt){return ir(x)?this._fetchNamespace(T).listen(x,V,ge,nt):()=>{}}_buildInstruction(T,x,V,ge,nt){return T.transition.build(this.driver,T.element,T.fromState.value,T.toState.value,V,ge,T.fromState.options,T.toState.options,x,nt)}destroyInnerAnimations(T){let x=this.driver.query(T,tn,!0);x.forEach(V=>this.destroyActiveAnimationsForElement(V)),0!=this.playersByQueriedElement.size&&(x=this.driver.query(T,tt,!0),x.forEach(V=>this.finishActiveQueriedAnimationOnElement(V)))}destroyActiveAnimationsForElement(T){const x=this.playersByElement.get(T);x&&x.forEach(V=>{V.queued?V.markedForDestroy=!0:V.destroy()})}finishActiveQueriedAnimationOnElement(T){const x=this.playersByQueriedElement.get(T);x&&x.forEach(V=>V.finish())}whenRenderingDone(){return new Promise(T=>{if(this.players.length)return je(this.players).onDone(()=>T());T()})}processLeaveNode(T){const x=T[pa];if(x&&x.setForRemoval){if(T[pa]=Pr,x.namespaceId){this.destroyInnerAnimations(T);const V=this._fetchNamespace(x.namespaceId);V&&V.clearElementCache(T)}this._onRemovalComplete(T,x.setForRemoval)}T.classList?.contains(vr)&&this.markElementAsDisabled(T,!1),this.driver.query(T,".ng-animate-disabled",!0).forEach(V=>{this.markElementAsDisabled(V,!1)})}flush(T=-1){let x=[];if(this.newHostElements.size&&(this.newHostElements.forEach((V,ge)=>this._balanceNamespaceList(V,ge)),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(let V=0;V<this.collectedEnterElements.length;V++){dn(this.collectedEnterElements[V],"ng-star-inserted")}if(this._namespaceList.length&&(this.totalQueuedPlayers||this.collectedLeaveElements.length)){const V=[];try{x=this._flushAnimations(V,T)}finally{for(let ge=0;ge<V.length;ge++)V[ge]()}}else for(let V=0;V<this.collectedLeaveElements.length;V++){const ge=this.collectedLeaveElements[V];this.processLeaveNode(ge)}if(this.totalQueuedPlayers=0,this.collectedEnterElements.length=0,this.collectedLeaveElements.length=0,this._flushFns.forEach(V=>V()),this._flushFns=[],this._whenQuietFns.length){const V=this._whenQuietFns;this._whenQuietFns=[],x.length?je(x).onDone(()=>{V.forEach(ge=>ge())}):V.forEach(ge=>ge())}}reportError(T){throw function N(K){return new t.vHH(3402,!1)}()}_flushAnimations(T,x){const V=new It,ge=[],nt=new Map,kt=[],jt=new Map,on=new Map,xn=new Map,fi=new Set;this.disabledNodes.forEach(vi=>{fi.add(vi);const wi=this.driver.query(vi,".ng-animate-queued",!0);for(let ki=0;ki<wi.length;ki++)fi.add(wi[ki])});const Xn=this.bodyNode,Pi=Array.from(this.statesByElement.keys()),Ni=Va(Pi,this.collectedEnterElements),Ci=new Map;let Oi=0;Ni.forEach((vi,wi)=>{const ki=Gt+Oi++;Ci.set(wi,ki),vi.forEach(_a=>dn(_a,ki))});const na=[],Ia=new Set,Jr=new Set;for(let vi=0;vi<this.collectedLeaveElements.length;vi++){const wi=this.collectedLeaveElements[vi],ki=wi[pa];ki&&ki.setForRemoval&&(na.push(wi),Ia.add(wi),ki.hasAnimation?this.driver.query(wi,".ng-star-inserted",!0).forEach(_a=>Ia.add(_a)):Jr.add(wi))}const Ns=new Map,hs=Va(Pi,Array.from(Ia));hs.forEach((vi,wi)=>{const ki=In+Oi++;Ns.set(wi,ki),vi.forEach(_a=>dn(_a,ki))}),T.push(()=>{Ni.forEach((vi,wi)=>{const ki=Ci.get(wi);vi.forEach(_a=>xt(_a,ki))}),hs.forEach((vi,wi)=>{const ki=Ns.get(wi);vi.forEach(_a=>xt(_a,ki))}),na.forEach(vi=>{this.processLeaveNode(vi)})});const lo=[],il=[];for(let vi=this._namespaceList.length-1;vi>=0;vi--)this._namespaceList[vi].drainQueuedTransitions(x).forEach(ki=>{const _a=ki.player,Tr=ki.element;if(lo.push(_a),this.collectedEnterElements.length){const Fs=Tr[pa];if(Fs&&Fs.setForMove){if(Fs.previousTriggersValues&&Fs.previousTriggersValues.has(ki.triggerName)){const Al=Fs.previousTriggersValues.get(ki.triggerName),wo=this.statesByElement.get(ki.element);if(wo&&wo.has(ki.triggerName)){const i2=wo.get(ki.triggerName);i2.value=Al,wo.set(ki.triggerName,i2)}}return void _a.destroy()}}const co=!Xn||!this.driver.containsElement(Xn,Tr),Es=Ns.get(Tr),Co=Ci.get(Tr),cr=this._buildInstruction(ki,V,Co,Es,co);if(cr.errors&&cr.errors.length)return void il.push(cr);if(co)return _a.onStart(()=>Je(Tr,cr.fromStyles)),_a.onDestroy(()=>Ce(Tr,cr.toStyles)),void ge.push(_a);if(ki.isFallbackTransition)return _a.onStart(()=>Je(Tr,cr.fromStyles)),_a.onDestroy(()=>Ce(Tr,cr.toStyles)),void ge.push(_a);const wc=[];cr.timelines.forEach(Fs=>{Fs.stretchStartingKeyframe=!0,this.disabledNodes.has(Fs.element)||wc.push(Fs)}),cr.timelines=wc,V.append(Tr,cr.timelines);const Ih={instruction:cr,player:_a,element:Tr};kt.push(Ih),cr.queriedElements.forEach(Fs=>ve(jt,Fs,[]).push(_a)),cr.preStyleProps.forEach((Fs,Al)=>{if(Fs.size){let wo=on.get(Al);wo||on.set(Al,wo=new Set),Fs.forEach((i2,f1)=>wo.add(f1))}}),cr.postStyleProps.forEach((Fs,Al)=>{let wo=xn.get(Al);wo||xn.set(Al,wo=new Set),Fs.forEach((i2,f1)=>wo.add(f1))})});if(il.length){const vi=[];il.forEach(wi=>{vi.push(function X(K,T){return new t.vHH(3505,!1)}(wi.triggerName,wi.errors))}),lo.forEach(wi=>wi.destroy()),this.reportError(vi)}const Ms=new Map,To=new Map;kt.forEach(vi=>{const wi=vi.element;V.has(wi)&&(To.set(wi,wi),this._beforeAnimationBuild(vi.player.namespaceId,vi.instruction,Ms))}),ge.forEach(vi=>{const wi=vi.element;this._getPreviousPlayers(wi,!1,vi.namespaceId,vi.triggerName,null).forEach(_a=>{ve(Ms,wi,[]).push(_a),_a.destroy()})});const al=na.filter(vi=>Xi(vi,on,xn)),zo=new Map;kr(zo,this.driver,Jr,xn,_.l3).forEach(vi=>{Xi(vi,on,xn)&&al.push(vi)});const h1=new Map;Ni.forEach((vi,wi)=>{kr(h1,this.driver,new Set(vi),on,_.k1)}),al.forEach(vi=>{const wi=zo.get(vi),ki=h1.get(vi);zo.set(vi,new Map([...Array.from(wi?.entries()??[]),...Array.from(ki?.entries()??[])]))});const Tc=[],Th=[],wh={};kt.forEach(vi=>{const{element:wi,player:ki,instruction:_a}=vi;if(V.has(wi)){if(fi.has(wi))return ki.onDestroy(()=>Ce(wi,_a.toStyles)),ki.disabled=!0,ki.overrideTotalTime(_a.totalTime),void ge.push(ki);let Tr=wh;if(To.size>1){let Es=wi;const Co=[];for(;Es=Es.parentNode;){const cr=To.get(Es);if(cr){Tr=cr;break}Co.push(Es)}Co.forEach(cr=>To.set(cr,Tr))}const co=this._buildAnimation(ki.namespaceId,_a,Ms,nt,h1,zo);if(ki.setRealPlayer(co),Tr===wh)Tc.push(ki);else{const Es=this.playersByElement.get(Tr);Es&&Es.length&&(ki.parentPlayer=je(Es)),ge.push(ki)}}else Je(wi,_a.fromStyles),ki.onDestroy(()=>Ce(wi,_a.toStyles)),Th.push(ki),fi.has(wi)&&ge.push(ki)}),Th.forEach(vi=>{const wi=nt.get(vi.element);if(wi&&wi.length){const ki=je(wi);vi.setRealPlayer(ki)}}),ge.forEach(vi=>{vi.parentPlayer?vi.syncPlayerEvents(vi.parentPlayer):vi.destroy()});for(let vi=0;vi<na.length;vi++){const wi=na[vi],ki=wi[pa];if(xt(wi,In),ki&&ki.hasAnimation)continue;let _a=[];if(jt.size){let co=jt.get(wi);co&&co.length&&_a.push(...co);let Es=this.driver.query(wi,tt,!0);for(let Co=0;Co<Es.length;Co++){let cr=jt.get(Es[Co]);cr&&cr.length&&_a.push(...cr)}}const Tr=_a.filter(co=>!co.destroyed);Tr.length?Nt(this,wi,Tr):this.processLeaveNode(wi)}return na.length=0,Tc.forEach(vi=>{this.players.push(vi),vi.onDone(()=>{vi.destroy();const wi=this.players.indexOf(vi);this.players.splice(wi,1)}),vi.play()}),Tc}elementContainsData(T,x){let V=!1;const ge=x[pa];return ge&&ge.setForRemoval&&(V=!0),this.playersByElement.has(x)&&(V=!0),this.playersByQueriedElement.has(x)&&(V=!0),this.statesByElement.has(x)&&(V=!0),this._fetchNamespace(T).elementContainsData(x)||V}afterFlush(T){this._flushFns.push(T)}afterFlushAnimationsDone(T){this._whenQuietFns.push(T)}_getPreviousPlayers(T,x,V,ge,nt){let kt=[];if(x){const jt=this.playersByQueriedElement.get(T);jt&&(kt=jt)}else{const jt=this.playersByElement.get(T);if(jt){const on=!nt||nt==Oa;jt.forEach(xn=>{xn.queued||!on&&xn.triggerName!=ge||kt.push(xn)})}}return(V||ge)&&(kt=kt.filter(jt=>!(V&&V!=jt.namespaceId||ge&&ge!=jt.triggerName))),kt}_beforeAnimationBuild(T,x,V){const ge=x.triggerName,nt=x.element,kt=x.isRemovalTransition?void 0:T,jt=x.isRemovalTransition?void 0:ge;for(const on of x.timelines){const xn=on.element,fi=xn!==nt,Xn=ve(V,xn,[]);this._getPreviousPlayers(xn,fi,kt,jt,x.toState).forEach(Ni=>{const Ci=Ni.getRealPlayer();Ci.beforeDestroy&&Ci.beforeDestroy(),Ni.destroy(),Xn.push(Ni)})}Je(nt,x.fromStyles)}_buildAnimation(T,x,V,ge,nt,kt){const jt=x.triggerName,on=x.element,xn=[],fi=new Set,Xn=new Set,Pi=x.timelines.map(Ci=>{const Oi=Ci.element;fi.add(Oi);const na=Oi[pa];if(na&&na.removedBeforeQueried)return new _.ZN(Ci.duration,Ci.delay);const Ia=Oi!==on,Jr=function Fn(K){const T=[];return ri(K,T),T}((V.get(Oi)||nr).map(Ms=>Ms.getRealPlayer())).filter(Ms=>{const To=Ms;return!!To.element&&To.element===Oi}),Ns=nt.get(Oi),hs=kt.get(Oi),lo=Ve(this.driver,this._normalizer,0,Ci.keyframes,Ns,hs),il=this._buildPlayer(Ci,lo,Jr);if(Ci.subTimeline&&ge&&Xn.add(Oi),Ia){const Ms=new $a(T,jt,Oi);Ms.setRealPlayer(il),xn.push(Ms)}return il});xn.forEach(Ci=>{ve(this.playersByQueriedElement,Ci.element,[]).push(Ci),Ci.onDone(()=>function yr(K,T,x){let V=K.get(T);if(V){if(V.length){const ge=V.indexOf(x);V.splice(ge,1)}0==V.length&&K.delete(T)}return V}(this.playersByQueriedElement,Ci.element,Ci))}),fi.forEach(Ci=>dn(Ci,pn));const Ni=je(Pi);return Ni.onDestroy(()=>{fi.forEach(Ci=>xt(Ci,pn)),Ce(on,x.toStyles)}),Xn.forEach(Ci=>{ve(ge,Ci,[]).push(Ni)}),Ni}_buildPlayer(T,x,V){return x.length>0?this.driver.animate(T.element,x,T.duration,T.delay,T.easing,V):new _.ZN(T.duration,T.delay)}}class $a{constructor(T,x,V){this.namespaceId=T,this.triggerName=x,this.element=V,this._player=new _.ZN,this._containsRealPlayer=!1,this._queuedCallbacks=new Map,this.destroyed=!1,this.markedForDestroy=!1,this.disabled=!1,this.queued=!0,this.totalTime=0}setRealPlayer(T){this._containsRealPlayer||(this._player=T,this._queuedCallbacks.forEach((x,V)=>{x.forEach(ge=>xe(T,V,void 0,ge))}),this._queuedCallbacks.clear(),this._containsRealPlayer=!0,this.overrideTotalTime(T.totalTime),this.queued=!1)}getRealPlayer(){return this._player}overrideTotalTime(T){this.totalTime=T}syncPlayerEvents(T){const x=this._player;x.triggerCallback&&T.onStart(()=>x.triggerCallback("start")),T.onDone(()=>this.finish()),T.onDestroy(()=>this.destroy())}_queueEvent(T,x){ve(this._queuedCallbacks,T,[]).push(x)}onDone(T){this.queued&&this._queueEvent("done",T),this._player.onDone(T)}onStart(T){this.queued&&this._queueEvent("start",T),this._player.onStart(T)}onDestroy(T){this.queued&&this._queueEvent("destroy",T),this._player.onDestroy(T)}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(T){this.queued||this._player.setPosition(T)}getPosition(){return this.queued?0:this._player.getPosition()}triggerCallback(T){const x=this._player;x.triggerCallback&&x.triggerCallback(T)}}function ir(K){return K&&1===K.nodeType}function as(K,T){const x=K.style.display;return K.style.display=T??"none",x}function kr(K,T,x,V,ge){const nt=[];x.forEach(on=>nt.push(as(on)));const kt=[];V.forEach((on,xn)=>{const fi=new Map;on.forEach(Xn=>{const Pi=T.computeStyle(xn,Xn,ge);fi.set(Xn,Pi),(!Pi||0==Pi.length)&&(xn[pa]=Xs,kt.push(xn))}),K.set(xn,fi)});let jt=0;return x.forEach(on=>as(on,nt[jt++])),kt}function Va(K,T){const x=new Map;if(K.forEach(jt=>x.set(jt,[])),0==T.length)return x;const ge=new Set(T),nt=new Map;function kt(jt){if(!jt)return 1;let on=nt.get(jt);if(on)return on;const xn=jt.parentNode;return on=x.has(xn)?xn:ge.has(xn)?1:kt(xn),nt.set(jt,on),on}return T.forEach(jt=>{const on=kt(jt);1!==on&&x.get(on).push(jt)}),x}function dn(K,T){K.classList?.add(T)}function xt(K,T){K.classList?.remove(T)}function Nt(K,T,x){je(x).onDone(()=>K.processLeaveNode(T))}function ri(K,T){for(let x=0;x<K.length;x++){const V=K[x];V instanceof _.ZE?ri(V.players,T):T.push(V)}}function Xi(K,T,x){const V=x.get(K);if(!V)return!1;let ge=T.get(K);return ge?V.forEach(nt=>ge.add(nt)):T.set(K,V),x.delete(K),!0}class oa{constructor(T,x,V){this.bodyNode=T,this._driver=x,this._normalizer=V,this._triggerCache={},this.onRemovalComplete=(ge,nt)=>{},this._transitionEngine=new Os(T,x,V),this._timelineEngine=new Ua(T,x,V),this._transitionEngine.onRemovalComplete=(ge,nt)=>this.onRemovalComplete(ge,nt)}registerTrigger(T,x,V,ge,nt){const kt=T+"-"+ge;let jt=this._triggerCache[kt];if(!jt){const on=[],xn=[],fi=hn(this._driver,nt,on,xn);if(on.length)throw function n(K,T){return new t.vHH(3404,!1)}();xn.length,jt=function is(K,T,x){return new Qi(K,T,x)}(ge,fi,this._normalizer),this._triggerCache[kt]=jt}this._transitionEngine.registerTrigger(x,ge,jt)}register(T,x){this._transitionEngine.register(T,x)}destroy(T,x){this._transitionEngine.destroy(T,x)}onInsert(T,x,V,ge){this._transitionEngine.insertNode(T,x,V,ge)}onRemove(T,x,V,ge){this._transitionEngine.removeNode(T,x,ge||!1,V)}disableAnimations(T,x){this._transitionEngine.markElementAsDisabled(T,x)}process(T,x,V,ge){if("@"==V.charAt(0)){const[nt,kt]=et(V),jt=ge;this._timelineEngine.command(nt,x,kt,jt)}else this._transitionEngine.trigger(T,x,V,ge)}listen(T,x,V,ge,nt){if("@"==V.charAt(0)){const[kt,jt]=et(V);return this._timelineEngine.listen(kt,x,jt,nt)}return this._transitionEngine.listen(T,x,V,ge,nt)}flush(T=-1){this._transitionEngine.flush(T)}get players(){return this._transitionEngine.players.concat(this._timelineEngine.players)}whenRenderingDone(){return this._transitionEngine.whenRenderingDone()}}class Li{constructor(T,x,V){this._element=T,this._startStyles=x,this._endStyles=V,this._state=0;let ge=Li.initialStylesByElement.get(T);ge||Li.initialStylesByElement.set(T,ge=new Map),this._initialStyles=ge}start(){this._state<1&&(this._startStyles&&Ce(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&(Ce(this._element,this._initialStyles),this._endStyles&&(Ce(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(Li.initialStylesByElement.delete(this._element),this._startStyles&&(Je(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(Je(this._element,this._endStyles),this._endStyles=null),Ce(this._element,this._initialStyles),this._state=3)}}function rs(K){let T=null;return K.forEach((x,V)=>{(function Rr(K){return"display"===K||"position"===K})(V)&&(T=T||new Map,T.set(V,x))}),T}Li.initialStylesByElement=new WeakMap;class Zr{constructor(T,x,V,ge){this.element=T,this.keyframes=x,this.options=V,this._specialStyles=ge,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=V.duration,this._delay=V.delay||0,this.time=this._duration+this._delay}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(T=>T()),this._onDoneFns=[])}init(){this._buildPlayer(),this._preparePlayerBeforeStart()}_buildPlayer(){if(this._initialized)return;this._initialized=!0;const T=this.keyframes;this.domPlayer=this._triggerWebAnimation(this.element,T,this.options),this._finalKeyframe=T.length?T[T.length-1]:new Map,this.domPlayer.addEventListener("finish",()=>this._onFinish())}_preparePlayerBeforeStart(){this._delay?this._resetDomPlayerState():this.domPlayer.pause()}_convertKeyframesToObject(T){const x=[];return T.forEach(V=>{x.push(Object.fromEntries(V))}),x}_triggerWebAnimation(T,x,V){return T.animate(this._convertKeyframesToObject(x),V)}onStart(T){this._originalOnStartFns.push(T),this._onStartFns.push(T)}onDone(T){this._originalOnDoneFns.push(T),this._onDoneFns.push(T)}onDestroy(T){this._onDestroyFns.push(T)}play(){this._buildPlayer(),this.hasStarted()||(this._onStartFns.forEach(T=>T()),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(T=>T()),this._onDestroyFns=[])}setPosition(T){void 0===this.domPlayer&&this.init(),this.domPlayer.currentTime=T*this.time}getPosition(){return this.domPlayer.currentTime/this.time}get totalTime(){return this._delay+this._duration}beforeDestroy(){const T=new Map;this.hasStarted()&&this._finalKeyframe.forEach((V,ge)=>{"offset"!==ge&&T.set(ge,this._finished?V:Yn(this.element,ge))}),this.currentSnapshot=T}triggerCallback(T){const x="start"===T?this._onStartFns:this._onDoneFns;x.forEach(V=>V()),x.length=0}}class ca{validateStyleProperty(T){return!0}validateAnimatableStyleProperty(T){return!0}matchesElement(T,x){return!1}containsElement(T,x){return _t(T,x)}getParentElement(T){return te(T)}query(T,x,V){return it(T,x,V)}computeStyle(T,x,V){return window.getComputedStyle(T)[x]}animate(T,x,V,ge,nt,kt=[]){const on={duration:V,delay:ge,fill:0==ge?"both":"forwards"};nt&&(on.easing=nt);const xn=new Map,fi=kt.filter(Ni=>Ni instanceof Zr);(function Vn(K,T){return 0===K||0===T})(V,ge)&&fi.forEach(Ni=>{Ni.currentSnapshot.forEach((Ci,Oi)=>xn.set(Oi,Ci))});let Xn=function Ye(K){return K.length?K[0]instanceof Map?K:K.map(T=>De(T)):[]}(x).map(Ni=>ut(Ni));Xn=function zn(K,T,x){if(x.size&&T.length){let V=T[0],ge=[];if(x.forEach((nt,kt)=>{V.has(kt)||ge.push(kt),V.set(kt,nt)}),ge.length)for(let nt=1;nt<T.length;nt++){let kt=T[nt];ge.forEach(jt=>kt.set(jt,Yn(K,jt)))}}return T}(T,Xn,xn);const Pi=function la(K,T){let x=null,V=null;return Array.isArray(T)&&T.length?(x=rs(T[0]),T.length>1&&(V=rs(T[T.length-1]))):T instanceof Map&&(x=rs(T)),x||V?new Li(K,x,V):null}(T,Xn);return new Zr(T,Xn,on,Pi)}}var si=m(4666);class ar extends _._j{constructor(T,x){super(),this._nextAnimationId=0;const V={id:"0",encapsulation:t.ifc.None,styles:[],data:{animation:[]}};this._renderer=T.createRenderer(x.body,V)}build(T){const x=this._nextAnimationId.toString();this._nextAnimationId++;const V=Array.isArray(T)?(0,_.vP)(T):T;return be(this._renderer,null,x,"register",[V]),new Ps(x,this._renderer)}}ar.\u0275fac=function(T){return new(T||ar)(t.LFG(t.FYo),t.LFG(si.K0))},ar.\u0275prov=t.Yz7({token:ar,factory:ar.\u0275fac});class Ps extends _.LC{constructor(T,x){super(),this._id=T,this._renderer=x}create(T,x){return new bt(this._id,T,x||{},this._renderer)}}class bt{constructor(T,x,V,ge){this.id=T,this.element=x,this._renderer=ge,this.parentPlayer=null,this._started=!1,this.totalTime=0,this._command("create",V)}_listen(T,x){return this._renderer.listen(this.element,`@@${this.id}:${T}`,x)}_command(T,...x){return be(this._renderer,this.element,this.id,T,x)}onDone(T){this._listen("done",T)}onStart(T){this._listen("start",T)}onDestroy(T){this._listen("destroy",T)}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(T){this._command("setPosition",T)}getPosition(){return this._renderer.engine.players[+this.id]?.getPosition()??0}}function be(K,T,x,V,ge){return K.setProperty(T,`@@${x}:${V}`,ge)}const Yt="@.disabled";class Pn{constructor(T,x,V){this.delegate=T,this.engine=x,this._zone=V,this._currentId=0,this._microtaskId=1,this._animationCallbacksBuffer=[],this._rendererCache=new Map,this._cdRecurDepth=0,this.promise=Promise.resolve(0),x.onRemovalComplete=(ge,nt)=>{const kt=nt?.parentNode(ge);kt&&nt.removeChild(kt,ge)}}createRenderer(T,x){const ge=this.delegate.createRenderer(T,x);if(!(T&&x&&x.data&&x.data.animation)){let xn=this._rendererCache.get(ge);if(!xn){const fi=()=>this._rendererCache.delete(ge);xn=new Ti("",ge,this.engine,fi),this._rendererCache.set(ge,xn)}return xn}const nt=x.id,kt=x.id+"-"+this._currentId;this._currentId++,this.engine.register(kt,T);const jt=xn=>{Array.isArray(xn)?xn.forEach(jt):this.engine.registerTrigger(nt,kt,T,xn.name,xn)};return x.data.animation.forEach(jt),new rr(this,kt,ge,this.engine)}begin(){this._cdRecurDepth++,this.delegate.begin&&this.delegate.begin()}_scheduleCountTask(){this.promise.then(()=>{this._microtaskId++})}scheduleListenerCallback(T,x,V){T>=0&&T<this._microtaskId?this._zone.run(()=>x(V)):(0==this._animationCallbacksBuffer.length&&Promise.resolve(null).then(()=>{this._zone.run(()=>{this._animationCallbacksBuffer.forEach(ge=>{const[nt,kt]=ge;nt(kt)}),this._animationCallbacksBuffer=[]})}),this._animationCallbacksBuffer.push([x,V]))}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()}}Pn.\u0275fac=function(T){return new(T||Pn)(t.LFG(t.FYo),t.LFG(oa),t.LFG(t.R0b))},Pn.\u0275prov=t.Yz7({token:Pn,factory:Pn.\u0275fac});class Ti{constructor(T,x,V,ge){this.namespaceId=T,this.delegate=x,this.engine=V,this._onDestroy=ge,this.destroyNode=this.delegate.destroyNode?nt=>x.destroyNode(nt):null}get data(){return this.delegate.data}destroy(){this.engine.destroy(this.namespaceId,this.delegate),this.delegate.destroy(),this._onDestroy?.()}createElement(T,x){return this.delegate.createElement(T,x)}createComment(T){return this.delegate.createComment(T)}createText(T){return this.delegate.createText(T)}appendChild(T,x){this.delegate.appendChild(T,x),this.engine.onInsert(this.namespaceId,x,T,!1)}insertBefore(T,x,V,ge=!0){this.delegate.insertBefore(T,x,V),this.engine.onInsert(this.namespaceId,x,T,ge)}removeChild(T,x,V){this.engine.onRemove(this.namespaceId,x,this.delegate,V)}selectRootElement(T,x){return this.delegate.selectRootElement(T,x)}parentNode(T){return this.delegate.parentNode(T)}nextSibling(T){return this.delegate.nextSibling(T)}setAttribute(T,x,V,ge){this.delegate.setAttribute(T,x,V,ge)}removeAttribute(T,x,V){this.delegate.removeAttribute(T,x,V)}addClass(T,x){this.delegate.addClass(T,x)}removeClass(T,x){this.delegate.removeClass(T,x)}setStyle(T,x,V,ge){this.delegate.setStyle(T,x,V,ge)}removeStyle(T,x,V){this.delegate.removeStyle(T,x,V)}setProperty(T,x,V){"@"==x.charAt(0)&&x==Yt?this.disableAnimations(T,!!V):this.delegate.setProperty(T,x,V)}setValue(T,x){this.delegate.setValue(T,x)}listen(T,x,V){return this.delegate.listen(T,x,V)}disableAnimations(T,x){this.engine.disableAnimations(T,x)}}class rr extends Ti{constructor(T,x,V,ge,nt){super(x,V,ge,nt),this.factory=T,this.namespaceId=x}setProperty(T,x,V){"@"==x.charAt(0)?"."==x.charAt(1)&&x==Yt?(V=void 0===V||!!V,this.disableAnimations(T,V)):this.engine.process(this.namespaceId,T,x.slice(1),V):this.delegate.setProperty(T,x,V)}listen(T,x,V){if("@"==x.charAt(0)){const ge=function gs(K){switch(K){case"body":return document.body;case"document":return document;case"window":return window;default:return K}}(T);let nt=x.slice(1),kt="";return"@"!=nt.charAt(0)&&([nt,kt]=function Oo(K){const T=K.indexOf("."),x=K.substring(0,T),V=K.slice(T+1);return[x,V]}(nt)),this.engine.listen(this.namespaceId,ge,nt,kt,jt=>{const on=jt._data||-1;this.factory.scheduleListenerCallback(on,V,jt)})}return this.delegate.listen(T,x,V)}}class $s extends oa{constructor(T,x,V,ge){super(T.body,x,V)}ngOnDestroy(){this.flush()}}$s.\u0275fac=function(T){return new(T||$s)(t.LFG(si.K0),t.LFG(Bt),t.LFG(Hi),t.LFG(t.z2F))},$s.\u0275prov=t.Yz7({token:$s,factory:$s.\u0275fac});const kn=[{provide:_._j,useClass:ar},{provide:Hi,useFactory:function kl(){return new Sa}},{provide:oa,useClass:$s},{provide:t.FYo,useFactory:function po(K,T,x){return new Pn(K,T,x)},deps:[e.se,oa,t.R0b]}],Ui=[{provide:Bt,useFactory:()=>new ca},{provide:t.QbO,useValue:"BrowserAnimations"},...kn],eo=[{provide:Bt,useClass:un},{provide:t.QbO,useValue:"NoopAnimations"},...kn];class sr{static withConfig(T){return{ngModule:sr,providers:T.disableAnimations?eo:Ui}}}sr.\u0275fac=function(T){return new(T||sr)},sr.\u0275mod=t.oAB({type:sr}),sr.\u0275inj=t.cJS({providers:Ui,imports:[e.b2]});class Br{}Br.\u0275fac=function(T){return new(T||Br)},Br.\u0275mod=t.oAB({type:Br}),Br.\u0275inj=t.cJS({providers:eo,imports:[e.b2]});var Ba=m(8987),$i=m(3278),Hn=m(9263),vs=m(3599),dl=m(5242),Gn=m(253),Hs=m(6646),Wa=m(3280),ss=m(7400),zs=m(6936),to=m(8947);function Yr(K=0,T=zs.z){return K<0&&(K=0),(0,to.H)(K,K,T)}var Po=m(745),Vc=m(7714),Wc=m(1944),Kc=m(3945),Rl=m(9663),Go=m(420),Zo=m(1817);var xr=m(116),Ro=m(9337),Yo=m(2673),ui=m(8951),ul=m(2313),oc=m(8977),ys=m(635);class ks{}class no{constructor(T,x){this._ngZone=x,this.timerStart$=new Gn.x,this.idleDetected$=new Gn.x,this.timeout$=new Gn.x,this.idleMillisec=6e5,this.idleSensitivityMillisec=1e3,this.timeout=300,this.pingMillisec=12e4,this.isTimeout=!1,this.isInactivityTimer=!1,this.isIdleDetected=!1,T&&this.setConfig(T)}startWatching(){this.activityEvents$||(this.activityEvents$=(0,Hs.T)((0,Wa.R)(window,"mousemove"),(0,Wa.R)(window,"resize"),(0,Wa.R)(document,"keydown"))),this.idle$=(0,ss.D)(this.activityEvents$),this.idleSubscription&&this.idleSubscription.unsubscribe(),this.idleSubscription=this.idle$.pipe(function ko(K,...T){var x,V;const ge=null!==(x=(0,Go.yG)(T))&&void 0!==x?x:zs.z,nt=null!==(V=T[0])&&void 0!==V?V:null,kt=T[1]||1/0;return(0,Wc.e)((jt,on)=>{let xn=[],fi=!1;const Xn=Ci=>{const{buffer:Oi,subs:na}=Ci;na.unsubscribe(),(0,Rl.P)(xn,Ci),on.next(Oi),fi&&Pi()},Pi=()=>{if(xn){const Ci=new Vc.w0;on.add(Ci);const na={buffer:[],subs:Ci};xn.push(na),(0,Zo.f)(Ci,ge,()=>Xn(na),K)}};null!==nt&&nt>=0?(0,Zo.f)(on,ge,Pi,nt,!0):fi=!0,Pi();const Ni=(0,Kc.x)(on,Ci=>{const Oi=xn.slice();for(const na of Oi){const{buffer:Ia}=na;Ia.push(Ci),kt<=Ia.length&&Xn(na)}},()=>{for(;xn?.length;)on.next(xn.shift().buffer);Ni?.unsubscribe(),on.complete(),on.unsubscribe()},void 0,()=>xn=null);jt.subscribe(Ni)})}(this.idleSensitivityMillisec),(0,xr.h)(T=>!T.length&&!this.isIdleDetected&&!this.isInactivityTimer),(0,Ro.b)(()=>{this.isIdleDetected=!0,this.idleDetected$.next(!0)}),(0,Yo.w)(()=>this._ngZone.runOutsideAngular(()=>Yr(1e3).pipe((0,ui.R)((0,Hs.T)(this.activityEvents$,(0,to.H)(this.idleMillisec).pipe((0,Ro.b)(()=>{this.isInactivityTimer=!0,this.timerStart$.next(!0)})))),(0,ul.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,oc.x)(),(0,Yo.w)(T=>T?this.timer$:(0,Po.of)(null)))}onIdleStatusChanged(){return this.idleDetected$.asObservable()}onTimeout(){return this.timeout$.pipe((0,xr.h)(T=>!!T),(0,Ro.b)(()=>this.isTimeout=!0),(0,ys.U)(()=>!0))}getConfigValue(){return{idle:this.idleMillisec/1e3,idleSensitivity:this.idleSensitivityMillisec/1e3,timeout:this.timeout,ping:this.pingMillisec/1e3}}setConfigValues(T){!this.idleSubscription||this.idleSubscription.closed?this.setConfig(T):console.error("Call stopWatching() before set config values")}setConfig(T){T.idle&&(this.idleMillisec=1e3*T.idle),T.ping&&(this.pingMillisec=1e3*T.ping),T.idleSensitivity&&(this.idleSensitivityMillisec=1e3*T.idleSensitivity),T.timeout&&(this.timeout=T.timeout)}setCustomActivityEvents(T){!this.idleSubscription||this.idleSubscription.closed?this.activityEvents$=T:console.error("Call stopWatching() before set custom activity events")}setupTimer(T){this._ngZone.runOutsideAngular(()=>{this.timer$=(0,Po.of)(()=>new Date).pipe((0,ys.U)(x=>x()),(0,Yo.w)(x=>Yr(1e3).pipe((0,ys.U)(()=>Math.round(((new Date).valueOf()-x.valueOf())/1e3)),(0,Ro.b)(V=>{V>=T&&this.timeout$.next(!0)}))))})}setupPing(T){this.ping$=Yr(T).pipe((0,xr.h)(()=>!this.isTimeout))}}no.\u0275fac=function(T){return new(T||no)(t.LFG(ks,8),t.LFG(t.R0b))},no.\u0275prov=t.Yz7({token:no,factory:no.\u0275fac,providedIn:"root"});class os{static forRoot(T){return{ngModule:os,providers:[{provide:ks,useValue:T}]}}}os.\u0275fac=function(T){return new(T||os)},os.\u0275mod=t.oAB({type:os}),os.\u0275inj=t.cJS({imports:[[]]});var Ne=m(3547),fe=m(9306),st=m(8377),Ot=m(3505),Vt=m(6722),fn=m(2156),Un=m(5892);const Xe=function(){return{initial:!1}};function rt(K,T){if(1&K){const x=t.EpF();t.TgZ(0,"div",11),t.NdJ("click",function(){t.CHM(x);const ge=t.oxw();return t.KtG(ge.activeLink=ge.links[1].link)}),t._uU(1),t.qZA()}if(2&K){const x=t.oxw();t.s9C("routerLink",x.links[1].link),t.Q6J("active",x.activeLink===x.links[1].link)("state",t.DdM(4,Xe)),t.xp6(1),t.Oqu(x.links[1].name)}}function yt(K,T){if(1&K){const x=t.EpF();t.TgZ(0,"div",6),t.NdJ("click",function(){t.CHM(x);const ge=t.oxw();return t.KtG(ge.activeLink=ge.links[2].link)}),t._uU(1),t.qZA()}if(2&K){const x=t.oxw();t.s9C("routerLink",x.links[2].link),t.Q6J("active",x.activeLink===x.links[2].link),t.xp6(1),t.Oqu(x.links[2].name)}}class Pt{constructor(T,x){this.store=T,this.router=x,this.faUserCog=fe.gNZ,this.showBitcoind=!1,this.links=[{link:"app",name:"Application"},{link:"auth",name:"Authentication"},{link:"bconfig",name:"BitcoinD Config"}],this.activeLink="",this.unSubs=[new Gn.x,new Gn.x,new Gn.x]}ngOnInit(){const T=this.links.find(x=>this.router.url.includes(x.link));this.activeLink=T?T.link:this.links[0].link,this.router.events.pipe((0,ui.R)(this.unSubs[0]),(0,xr.h)(x=>x instanceof Ne.Av)).subscribe({next:x=>{const V=this.links.find(ge=>x.urlAfterRedirects.includes(ge.link));this.activeLink=V?V.link:this.links[0].link}}),this.store.select(st.Yj).pipe((0,ui.R)(this.unSubs[1])).subscribe(x=>{this.appConfig=x}),this.store.select(st.dT).pipe((0,ui.R)(this.unSubs[2])).subscribe(x=>{this.showBitcoind=!1,this.selNode=x,this.selNode.settings&&this.selNode.settings.bitcoindConfigPath&&""!==this.selNode.settings.bitcoindConfigPath.trim()&&(this.showBitcoind=!0)})}ngOnDestroy(){this.unSubs.forEach(T=>{T.next(null),T.complete()})}static#e=this.\u0275fac=function(x){return new(x||Pt)(t.Y36(Hn.yh),t.Y36(Ne.F0))};static#t=this.\u0275cmp=t.Xpm({type:Pt,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","",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(x,V){if(1&x&&(t.TgZ(0,"div",0),t._UZ(1,"fa-icon",1),t.TgZ(2,"span",2),t._uU(3,"Settings"),t.qZA()(),t.TgZ(4,"div",3)(5,"mat-card")(6,"mat-card-content",4)(7,"nav",5)(8,"div",6),t.NdJ("click",function(){return V.activeLink=V.links[0].link}),t._uU(9),t.qZA(),t.YNc(10,rt,2,5,"div",7),t.YNc(11,yt,2,3,"div",8),t.qZA(),t._UZ(12,"mat-tab-nav-panel",null,9),t.TgZ(14,"div",10),t._UZ(15,"router-outlet"),t.qZA()()()()),2&x){const ge=t.MAs(13);t.xp6(1),t.Q6J("icon",V.faUserCog),t.xp6(6),t.Q6J("tabPanel",ge),t.xp6(1),t.s9C("routerLink",V.links[0].link),t.Q6J("active",V.activeLink===V.links[0].link),t.xp6(1),t.Oqu(V.links[0].name),t.xp6(1),t.Q6J("ngIf",!+V.appConfig.sso.rtlSSO),t.xp6(1),t.Q6J("ngIf",V.showBitcoind)}},dependencies:[si.O5,Ot.BN,Vt.xw,Vt.Wh,Vt.yH,fn.a8,fn.dn,Un.BU,Un.sW,Un.Nj,Ne.lC,Ne.rH]})}var Qe=m(7731),Qt=m(7861),sn=m(5043),qt=m(2508),An=m(4522),Sn=m(5074),Jn=m(7371),oi=m(207),xi=m(8822),Si=m(3390);function ur(K,T){if(1&K&&(t.TgZ(0,"mat-option",16),t._uU(1),t.qZA()),2&K){const x=T.$implicit;t.Q6J("value",x.index),t.xp6(1),t.AsE(" ",x.lnNode," (",x.lnImplementation,") ")}}function Cr(K,T){if(1&K){const x=t.EpF();t.TgZ(0,"form",2,3)(2,"div",4),t._UZ(3,"fa-icon",5),t.TgZ(4,"span",6),t._uU(5,"Default Node"),t.qZA()(),t.TgZ(6,"div",7)(7,"div",8),t._UZ(8,"fa-icon",9),t.TgZ(9,"span"),t._uU(10,"The setting will apply after RTL server restarts."),t.qZA()(),t.TgZ(11,"div",10)(12,"mat-form-field",10)(13,"mat-select",11),t.NdJ("ngModelChange",function(ge){t.CHM(x);const nt=t.oxw();return t.KtG(nt.appConfig.defaultNodeIndex=ge)}),t.YNc(14,ur,2,3,"mat-option",12),t.qZA()()(),t.TgZ(15,"div",13)(16,"div",10)(17,"button",14),t.NdJ("click",function(){t.CHM(x);const ge=t.oxw();return t.KtG(ge.onResetSettings())}),t._uU(18,"Reset"),t.qZA(),t.TgZ(19,"button",15),t.NdJ("click",function(){t.CHM(x);const ge=t.oxw();return t.KtG(ge.onUpdateSettings())}),t._uU(20,"Update"),t.qZA()()()()()}if(2&K){const x=t.oxw();t.xp6(3),t.Q6J("icon",x.faWindowRestore),t.xp6(5),t.Q6J("icon",x.faInfoCircle),t.xp6(5),t.Q6J("ngModel",x.appConfig.defaultNodeIndex),t.xp6(1),t.Q6J("ngForOf",x.appConfig.nodes)}}class Qr{constructor(T,x){this.logger=T,this.store=x,this.faInfoCircle=fe.sqG,this.faWindowRestore=fe.wyP,this.faPlus=fe.r8p,this.previousDefaultNode=0,this.unSubs=[new Gn.x,new Gn.x]}ngOnInit(){this.store.select(st.Yj).pipe((0,ui.R)(this.unSubs[0])).subscribe(T=>{this.appConfig=T,this.previousDefaultNode=this.appConfig.defaultNodeIndex,this.logger.info(T)})}onAddNewNode(){this.logger.warn("ADD NEW NODE")}onUpdateSettings(){const T=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;this.store.dispatch((0,Qt.zQ)({payload:{uiMessage:Qe.m6.UPDATE_DEFAULT_NODE_SETTING,defaultNodeIndex:T}}))}onResetSettings(){this.appConfig.defaultNodeIndex=this.previousDefaultNode}ngOnDestroy(){this.unSubs.forEach(T=>{T.next(),T.complete()})}static#e=this.\u0275fac=function(x){return new(x||Qr)(t.Y36(sn.mQ),t.Y36(Hn.yh))};static#t=this.\u0275cmp=t.Xpm({type:Qr,selectors:[["rtl-app-settings"]],decls:2,vars:1,consts:[["fxLayout","column","fxFlex","100",1,"padding-gap-x-large",3,"perfectScrollbar"],["fxLayout","column","fxFlex","100","fxLayoutAlign","start stretch","class","settings-container page-sub-title-container mt-1",4,"ngIf"],["fxLayout","column","fxFlex","100","fxLayoutAlign","start stretch",1,"settings-container","page-sub-title-container","mt-1"],["form","ngForm"],["fxLayout","row"],[1,"page-title-img","mr-1",3,"icon"],[1,"page-title"],["fxLayout","column","fxFlex","100","fxLayoutAlign","start stretch",1,"my-2"],["fxLayout","row","fxFlex","100",1,"alert","alert-info"],[1,"mr-1","alert-icon",3,"icon"],["fxLayout","row","fxLayoutAlign","start start"],["autoFocus","","tabindex","1","name","defaultNode",3,"ngModel","ngModelChange"],[3,"value",4,"ngFor","ngForOf"],["fxLayout","row","fxLayoutAlign","start start",1,"mt-1"],["mat-stroked-button","","color","primary","tabindex","2",1,"mr-1",3,"click"],["mat-flat-button","","color","primary","tabindex","3",3,"click"],[3,"value"]],template:function(x,V){1&x&&(t.TgZ(0,"div",0),t.YNc(1,Cr,21,4,"form",1),t.qZA()),2&x&&(t.xp6(1),t.Q6J("ngIf",V.appConfig.nodes&&V.appConfig.nodes.length&&V.appConfig.nodes.length>0))},dependencies:[si.sg,si.O5,qt._Y,qt.JJ,qt.JL,qt.On,qt.F,Ot.BN,Vt.xw,Vt.Wh,Vt.yH,An.lW,Sn.KE,Jn.gD,oi.ey,xi.$V,Si.h]})}var Mr=m(9591),Ka=m(9295),Ma=m(640),ls=m(74),Na=m(3093),mo=m(930),Er=m(1267),bs=m(4193),go=m(6021),hl=m(6895);const Dr=["stepper"];function lc(K,T){if(1&K&&t._uU(0),2&K){const x=t.oxw();t.Oqu(x.passwordFormLabel)}}function fl(K,T){1&K&&(t.TgZ(0,"mat-error"),t._uU(1,"Password is required."),t.qZA())}function pl(K,T){if(1&K&&t._uU(0),2&K){const x=t.oxw(2);t.Oqu(x.secretFormLabel)}}function S2(K,T){if(1&K&&t._UZ(0,"qr-code",32),2&K){const x=t.oxw(2);t.Q6J("value",x.otpauth)("size",180)("errorCorrectionLevel","L")}}function S1(K,T){1&K&&(t.TgZ(0,"mat-error"),t._uU(1,"Secret Code is required."),t.qZA())}function or(K,T){if(1&K){const x=t.EpF();t.TgZ(0,"mat-step",10)(1,"form",21),t.YNc(2,pl,1,1,"ng-template",22),t.TgZ(3,"div",23),t.YNc(4,S2,1,3,"qr-code",24),t.qZA(),t.TgZ(5,"div",25),t._UZ(6,"fa-icon",26),t.TgZ(7,"span"),t._uU(8,"You can use a compatible authentication app to get an authentication code when you log in to RTL. e.g.: Google Authenticator."),t.qZA()(),t.TgZ(9,"div",27)(10,"mat-form-field",1),t._UZ(11,"input",28),t.TgZ(12,"fa-icon",29),t.NdJ("copied",function(ge){t.CHM(x);const nt=t.oxw();return t.KtG(nt.onCopySecret(ge))}),t.qZA(),t.YNc(13,S1,2,0,"mat-error",14),t.qZA()(),t.TgZ(14,"div",30)(15,"button",31),t._uU(16,"Next"),t.qZA()()()()}if(2&K){const x=t.oxw();t.Q6J("stepControl",x.secretFormGroup)("editable",x.flgEditable),t.xp6(1),t.Q6J("formGroup",x.secretFormGroup),t.xp6(3),t.Q6J("ngIf",x.otpauth),t.xp6(2),t.Q6J("icon",x.faInfoCircle),t.xp6(6),t.Q6J("icon",x.faCopy)("payload",null==x.secretFormGroup||null==x.secretFormGroup.controls||null==x.secretFormGroup.controls.secret?null:x.secretFormGroup.controls.secret.value),t.xp6(1),t.Q6J("ngIf",null==x.secretFormGroup||null==x.secretFormGroup.controls||null==x.secretFormGroup.controls.secret||null==x.secretFormGroup.controls.secret.errors?null:x.secretFormGroup.controls.secret.errors.required)}}function _l(K,T){if(1&K&&t._uU(0),2&K){const x=t.oxw(2);t.Oqu(x.tokenFormLabel)}}function Mo(K,T){1&K&&(t.TgZ(0,"mat-error"),t._uU(1,"Token is required."),t.qZA())}function vo(K,T){1&K&&(t.TgZ(0,"mat-error"),t._uU(1,"Token is invalid."),t.qZA())}function Bl(K,T){if(1&K){const x=t.EpF();t.TgZ(0,"div",7)(1,"div",27)(2,"mat-form-field",1),t._UZ(3,"input",36),t.YNc(4,Mo,2,0,"mat-error",14),t.YNc(5,vo,2,0,"mat-error",14),t.qZA()(),t.TgZ(6,"div",30)(7,"button",37),t.NdJ("click",function(){t.CHM(x);const ge=t.oxw(2);return t.KtG(ge.onVerifyToken())}),t._uU(8),t.qZA()()()}if(2&K){const x=t.oxw(2);t.xp6(4),t.Q6J("ngIf",null==x.tokenFormGroup||null==x.tokenFormGroup.controls||null==x.tokenFormGroup.controls.token||null==x.tokenFormGroup.controls.token.errors?null:x.tokenFormGroup.controls.token.errors.required),t.xp6(1),t.Q6J("ngIf",null==x.tokenFormGroup||null==x.tokenFormGroup.controls||null==x.tokenFormGroup.controls.token||null==x.tokenFormGroup.controls.token.errors?null:x.tokenFormGroup.controls.token.errors.notValid),t.xp6(3),t.Oqu(null!=x.tokenFormGroup&&null!=x.tokenFormGroup.controls&&null!=x.tokenFormGroup.controls.token&&null!=x.tokenFormGroup.controls.token.errors&&x.tokenFormGroup.controls.token.errors.notValid?"Retry":"Verify")}}function ml(K,T){1&K&&(t.TgZ(0,"div")(1,"strong"),t._uU(2,"Success! You are all set."),t.qZA()())}function O1(K,T){if(1&K&&(t.TgZ(0,"mat-step",33)(1,"form",34),t.YNc(2,_l,1,1,"ng-template",12),t.YNc(3,Bl,9,3,"div",35),t.YNc(4,ml,3,0,"div",14),t.qZA()()),2&K){const x=t.oxw();t.Q6J("stepControl",x.tokenFormGroup),t.xp6(1),t.Q6J("formGroup",x.tokenFormGroup),t.xp6(2),t.Q6J("ngIf",!x.flgValidated||!x.isTokenValid),t.xp6(1),t.Q6J("ngIf",x.flgValidated&&x.isTokenValid)}}function P1(K,T){if(1&K&&t._uU(0),2&K){const x=t.oxw(2);t.Oqu(x.disableFormLabel)}}function gl(K,T){if(1&K){const x=t.EpF();t.TgZ(0,"div",7)(1,"div",38),t._UZ(2,"fa-icon",26),t.TgZ(3,"span"),t._uU(4,"You are about to disable two-factor authentication security from RTL. Are you sure you want to turn it off?"),t.qZA()(),t.TgZ(5,"div",30)(6,"button",37),t.NdJ("click",function(){t.CHM(x);const ge=t.oxw(2);return t.KtG(ge.onVerifyToken())}),t._uU(7,"Disable"),t.qZA()()()}if(2&K){const x=t.oxw(2);t.xp6(2),t.Q6J("icon",x.faExclamationTriangle)}}function cc(K,T){1&K&&(t.TgZ(0,"div")(1,"strong"),t._uU(2,"Two factor authentication removed from RTL."),t.qZA()())}function O2(K,T){if(1&K&&(t.TgZ(0,"mat-step",33)(1,"form",34),t.YNc(2,P1,1,1,"ng-template",12),t.YNc(3,gl,8,1,"div",35),t.YNc(4,cc,3,0,"div",14),t.qZA()()),2&K){const x=t.oxw();t.Q6J("stepControl",x.disableFormGroup),t.xp6(1),t.Q6J("formGroup",x.disableFormGroup),t.xp6(2),t.Q6J("ngIf",!x.flgValidated||!x.isTokenValid),t.xp6(1),t.Q6J("ngIf",x.flgValidated&&x.isTokenValid)}}class k1{constructor(T,x,V,ge,nt,kt){this.dialogRef=T,this.data=x,this.store=V,this.formBuilder=ge,this.rtlEffects=nt,this.snackBar=kt,this.faExclamationTriangle=fe.eHv,this.faCopy=fe.kZ_,this.faInfoCircle=fe.sqG,this.flgValidated=!1,this.isTokenValid=!0,this.otpauth="",this.appConfig=null,this.flgEditable=!0,this.showDisableStepper=!1,this.passwordFormLabel="Authenticate with your RTL password",this.secretFormLabel="Scan or copy the secret",this.tokenFormLabel="Verify your authentication is working",this.disableFormLabel="Disable two factor authentication",this.passwordFormGroup=this.formBuilder.group({hiddenPassword:["",[qt.kI.required]],password:["",[qt.kI.required]]}),this.secretFormGroup=this.formBuilder.group({secret:[{value:"",disabled:!0},qt.kI.required]}),this.tokenFormGroup=this.formBuilder.group({token:["",qt.kI.required]}),this.disableFormGroup=this.formBuilder.group({}),this.unSubs=[new Gn.x,new Gn.x]}ngOnInit(){this.appConfig=this.data.appConfig||null,this.showDisableStepper=!!this.appConfig?.enable2FA,this.secretFormGroup=this.formBuilder.group({secret:[{value:this.appConfig?.enable2FA?"":this.generateSecret(),disabled:!0},qt.kI.required]})}generateSecret(){const T=ls.authenticator.generateSecret();return this.otpauth=ls.authenticator.keyuri("","Ride The Lightning (RTL)",T),T}onAuthenticate(){if(!this.passwordFormGroup.controls.password.value)return!0;this.flgValidated=!1,this.store.dispatch((0,Qt.QO)({payload:Mr(this.passwordFormGroup.controls.password.value).toString()})),this.rtlEffects.isAuthorizedRes.pipe((0,Ka.q)(1)).subscribe(T=>{"ERROR"!==T?(this.passwordFormGroup.controls.hiddenPassword.setValue(this.passwordFormGroup.controls.password.value),this.stepper.next()):(this.dialogRef.close(),this.snackBar.open("Unauthorized User. Logging out from RTL."))})}onCopySecret(T){this.snackBar.open("Secret code "+this.secretFormGroup.controls.secret.value+" copied.")}onVerifyToken(){if(this.appConfig?.enable2FA)this.store.dispatch((0,Qt.Uy)({payload:{secret2fa:""}})),this.generateSecret(),this.isTokenValid=!0;else{if(!this.tokenFormGroup.controls.token.value)return!0;if(this.isTokenValid=ls.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,Qt.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(T){switch(T.selectedIndex){case 0:default:this.passwordFormLabel="Authenticate with your RTL password";break;case 1:case 2:this.passwordFormLabel="User authenticated successfully"}T.selectedIndex<T.previouslySelectedIndex&&0===T.selectedIndex&&this.passwordFormGroup.controls.hiddenPassword.setValue("")}ngOnDestroy(){this.unSubs.forEach(T=>{T.next(),T.complete()})}static#e=this.\u0275fac=function(x){return new(x||k1)(t.Y36(Ma.so),t.Y36(Ma.WI),t.Y36(Hn.yh),t.Y36(qt.QS),t.Y36(Na.V),t.Y36(mo.ux))};static#t=this.\u0275cmp=t.Xpm({type:k1,selectors:[["rtl-two-factor-auth"]],viewQuery:function(x,V){if(1&x&&t.Gf(Dr,5),2&x){let ge;t.iGM(ge=t.CRH())&&(V.stepper=ge.first)}},decls:28,vars:11,consts:[["fxLayout","row"],["fxFlex","100"],["fxLayout","row","fxLayoutAlign","space-between center",1,"modal-info-header"],["fxFlex","95","fxLayoutAlign","start start"],[1,"page-title"],["tabindex","15","fxFlex","5","fxLayoutAlign","center","mat-button","",1,"btn-close-x","p-0",3,"mat-dialog-close"],[1,"padding-gap-x-large"],["fxLayout","column"],[3,"linear","selectionChange"],["stepper",""],[3,"stepControl","editable"],["fxLayout","column","fxLayoutAlign","space-between",1,"my-1","pr-1",3,"formGroup"],["matStepLabel",""],["autoFocus","","matInput","","placeholder","Password","type","password","tabindex","1","formControlName","password","required",""],[4,"ngIf"],["fxLayout","row",1,"mt-2"],["mat-button","","color","primary","tabindex","3","type","button",3,"click"],[3,"stepControl","editable",4,"ngIf"],[3,"stepControl",4,"ngIf"],["fxLayout","row","fxFlex","100","fxLayoutAlign","end center"],["mat-button","","color","primary","tabindex","12","type","button","default","",3,"mat-dialog-close"],["fxLayout","column",1,"my-1","pr-1",3,"formGroup"],["matStepLabel","","disabled","true"],["fxLayout","row","fxFlex","100","fxLayoutAlign","start"],[3,"value","size","errorCorrectionLevel",4,"ngIf"],["fxFlex","100",1,"w-100","alert","alert-info"],[1,"mt-1","mr-1","alert-icon",3,"icon"],["fxLayout","row","fxFlex","100","fxLayoutAlign","space-between stretch"],["autoFocus","","matInput","","placeholder","Secret Code","type","text","tabindex","4","formControlName","secret","required",""],["matSuffix","","rtlClipboard","",3,"icon","payload","copied"],["fxLayout","row","fxLayoutAlign","start center","fxFlex","100",1,"mt-2"],["mat-button","","color","primary","tabindex","6","type","button","matStepperNext",""],[3,"value","size","errorCorrectionLevel"],[3,"stepControl"],["fxLayout","column","fxLayoutAlign","start",1,"my-1","pr-1",3,"formGroup"],["fxLayout","column",4,"ngIf"],["autoFocus","","matInput","","placeholder","Token","type","text","tabindex","7","formControlName","token","required",""],["mat-button","","color","primary","tabindex","8","type","button",3,"click"],["fxFlex","100",1,"w-100","alert","alert-warn"]],template:function(x,V){1&x&&(t.TgZ(0,"div",0)(1,"div",1)(2,"mat-card-header",2)(3,"div",3)(4,"span",4),t._uU(5,"Setup Two Factor Authentication"),t.qZA()(),t.TgZ(6,"button",5),t._uU(7,"X"),t.qZA()(),t.TgZ(8,"mat-card-content",6)(9,"div",7)(10,"mat-vertical-stepper",8,9),t.NdJ("selectionChange",function(nt){return V.stepSelectionChanged(nt)}),t.TgZ(12,"mat-step",10)(13,"form",11),t.YNc(14,lc,1,1,"ng-template",12),t.TgZ(15,"div",0)(16,"mat-form-field",1),t._UZ(17,"input",13),t.YNc(18,fl,2,0,"mat-error",14),t.qZA()(),t.TgZ(19,"div",15)(20,"button",16),t.NdJ("click",function(){return V.onAuthenticate()}),t._uU(21,"Confirm"),t.qZA()()()(),t.YNc(22,or,17,8,"mat-step",17),t.YNc(23,O1,5,4,"mat-step",18),t.YNc(24,O2,5,4,"mat-step",18),t.qZA(),t.TgZ(25,"div",19)(26,"button",20),t._uU(27),t.qZA()()()()()()),2&x&&(t.xp6(6),t.Q6J("mat-dialog-close",!1),t.xp6(4),t.Q6J("linear",!0),t.xp6(2),t.Q6J("stepControl",V.passwordFormGroup)("editable",V.flgEditable),t.xp6(1),t.Q6J("formGroup",V.passwordFormGroup),t.xp6(5),t.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),t.xp6(4),t.Q6J("ngIf",!V.showDisableStepper),t.xp6(1),t.Q6J("ngIf",!V.showDisableStepper),t.xp6(1),t.Q6J("ngIf",V.showDisableStepper),t.xp6(2),t.Q6J("mat-dialog-close",!1),t.xp6(1),t.Oqu(V.flgValidated&&V.isTokenValid?"Close":"Cancel"))},dependencies:[si.O5,qt._Y,qt.Fj,qt.JJ,qt.JL,qt.Q7,qt.sg,qt.u,Ot.BN,Vt.xw,Vt.Wh,Vt.yH,Ma.ZT,An.lW,fn.dk,fn.dn,Sn.TO,Sn.KE,Sn.R9,Er.Nt,bs.C0,bs.VY,bs.Vq,bs.Ic,go.uU,hl.y,Si.h]})}var Qo=m(5986),io=m(1528);const vl=["authForm"];function dc(K,T){1&K&&(t.TgZ(0,"mat-error"),t._uU(1,"Current password is required."),t.qZA())}function R1(K,T){if(1&K&&(t.TgZ(0,"mat-error"),t._uU(1),t.qZA()),2&K){const x=t.oxw(2);t.xp6(1),t.Oqu(x.errorMsg)}}function Gc(K,T){if(1&K&&(t.TgZ(0,"mat-error"),t._uU(1),t.qZA()),2&K){const x=t.oxw(2);t.xp6(1),t.Oqu(x.errorConfirmMsg)}}function ao(K,T){if(1&K){const x=t.EpF();t.TgZ(0,"form",10,11)(2,"div",12),t._UZ(3,"fa-icon",4),t.TgZ(4,"span",5),t._uU(5,"Password"),t.qZA()(),t.TgZ(6,"mat-form-field")(7,"input",13),t.NdJ("ngModelChange",function(ge){t.CHM(x);const nt=t.oxw();return t.KtG(nt.currPassword=ge)}),t.qZA(),t.YNc(8,dc,2,0,"mat-error",14),t.qZA(),t.TgZ(9,"mat-form-field")(10,"input",15),t.NdJ("ngModelChange",function(ge){t.CHM(x);const nt=t.oxw();return t.KtG(nt.newPassword=ge)}),t.qZA(),t.YNc(11,R1,2,1,"mat-error",14),t.qZA(),t.TgZ(12,"mat-form-field")(13,"input",16),t.NdJ("ngModelChange",function(ge){t.CHM(x);const nt=t.oxw();return t.KtG(nt.confirmPassword=ge)}),t.qZA(),t.YNc(14,Gc,2,1,"mat-error",14),t.qZA(),t.TgZ(15,"div",17)(16,"button",18),t.NdJ("click",function(){t.CHM(x);const ge=t.oxw();return t.KtG(ge.onResetPassword())}),t._uU(17,"Reset"),t.qZA(),t.TgZ(18,"button",19),t.NdJ("click",function(){t.CHM(x);const ge=t.oxw();return t.KtG(ge.onChangePassword())}),t._uU(19,"Change Password"),t.qZA()(),t.TgZ(20,"div",20),t._UZ(21,"mat-divider",21),t.qZA()()}if(2&K){const x=t.oxw();t.xp6(3),t.Q6J("icon",x.faLock),t.xp6(4),t.Q6J("ngModel",x.currPassword),t.xp6(1),t.Q6J("ngIf",!x.currPassword),t.xp6(2),t.Q6J("ngModel",x.newPassword),t.xp6(1),t.Q6J("ngIf",x.matchOldAndNewPasswords()),t.xp6(2),t.Q6J("ngModel",x.confirmPassword),t.xp6(1),t.Q6J("ngIf",x.matchNewPasswords()),t.xp6(7),t.Q6J("inset",!0)}}class Eo{constructor(T,x,V,ge,nt){this.logger=T,this.store=x,this.actions=V,this.router=ge,this.sessionService=nt,this.faInfoCircle=fe.sqG,this.faUserLock=fe.FJU,this.faUserClock=fe.hnx,this.faLock=fe.byT,this.currPassword="",this.newPassword="",this.confirmPassword="",this.errorMsg="",this.errorConfirmMsg="",this.initializeNodeData=!1,this.unSubs=[new Gn.x,new Gn.x,new Gn.x]}ngOnInit(){this.initializeNodeData="true"===this.sessionService.getItem("defaultPassword"),this.store.select(st.Yj).pipe((0,ui.R)(this.unSubs[0])).subscribe(T=>{this.appConfig=T,this.logger.info(this.appConfig)}),this.store.select(st.dT).pipe((0,ui.R)(this.unSubs[1])).subscribe(T=>{this.selNode=T}),this.actions.pipe((0,ui.R)(this.unSubs[2]),(0,xr.h)(T=>T.type===Qe.pg.RESET_PASSWORD_RES)).subscribe(T=>{if(Qe.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||Qe.kO.includes(this.newPassword.toLowerCase()))return!0;this.store.dispatch((0,Qt.c0)({payload:{currPassword:Mr(this.currPassword).toString(),newPassword:Mr(this.newPassword).toString()}}))}matchOldAndNewPasswords(){let T=!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.",T=!0):Qe.kO.includes(this.newPassword.toLowerCase())?(this.form.controls.newpassword.setErrors({invalid:!0}),this.errorMsg=Qe.kO?.reduce((x,V,ge)=>ge<Qe.kO.length-1?x+V+'" / "':x+V+'".','Password cannot be "'),T=!0):(this.form.controls.newpassword.setErrors(null),this.errorMsg="",T=!1):(this.form.controls.newpassword.setErrors({invalid:!0}),this.errorMsg="New password is required.",T=!0)),T}matchNewPasswords(){let T=!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.",T=!0):(this.form.controls.confirmpassword.setErrors(null),this.errorConfirmMsg="",T=!1):(this.form.controls.confirmpassword.setErrors({invalid:!0}),this.errorConfirmMsg="Confirm password is required.",T=!0)),T}on2FAuth(){this.store.dispatch((0,Qt.qR)({payload:{data:{appConfig:this.appConfig,component:k1}}}))}onResetPassword(){this.form.resetForm()}ngOnDestroy(){this.initializeNodeData&&this.store.dispatch((0,Qt.fk)({payload:{uiMessage:Qe.m6.NO_SPINNER,prevLnNodeIndex:-1,currentLnNode:this.selNode,isInitialSetup:!0}})),this.unSubs.forEach(T=>{T.next(),T.complete()})}static#e=this.\u0275fac=function(x){return new(x||Eo)(t.Y36(sn.mQ),t.Y36(Hn.yh),t.Y36(vs.eX),t.Y36(Ne.F0),t.Y36(Qo.m))};static#t=this.\u0275cmp=t.Xpm({type:Eo,selectors:[["rtl-auth-settings"]],viewQuery:function(x,V){if(1&x&&t.Gf(vl,5),2&x){let ge;t.iGM(ge=t.CRH())&&(V.form=ge.first)}},decls:14,vars:4,consts:[["fxLayout","column","fxFlex","100","fxLayoutAlign","start stretch",1,"padding-gap-x-large"],["fxLayout","column","fxFlex","100","fxLayoutAlign","start stretch","class","page-sub-title-container mt-1",4,"ngIf"],["fxLayout","column","fxFlex","100","fxLayoutAlign","start stretch"],[1,"mb-1","settings-container","page-sub-title-container","mt-1"],[1,"page-title-img","mr-1",3,"icon"],[1,"page-title"],[1,"alert","alert-info"],[1,"mt-1","mr-1","alert-icon",3,"icon"],[1,"mt-1"],["mat-flat-button","","color","primary","tabindex","6",1,"mb-2",3,"click"],["fxLayout","column","fxFlex","100","fxLayoutAlign","start stretch",1,"page-sub-title-container","mt-1"],["authForm","ngForm"],["fxLayout","row","fxLayoutAlign","start start",1,"mb-2"],["autoFocus","","matInput","","placeholder","Current Password","type","password","id","currpassword","name","currpassword","tabindex","1","required","",3,"ngModel","ngModelChange"],[4,"ngIf"],["matInput","","placeholder","New Password","type","password","id","newpassword","name","newpassword","tabindex","2","required","",3,"ngModel","ngModelChange"],["matInput","","placeholder","Confirm New Password","type","password","id","confirmpassword","name","confirmpassword","tabindex","3","required","",3,"ngModel","ngModelChange"],["fxLayout","row","fxLayoutAlign","start start",1,"mt-1"],["mat-stroked-button","","color","primary","type","reset","tabindex","4",1,"mr-1",3,"click"],["mat-flat-button","","color","primary","tabindex","5","type","submit",3,"click"],["fxLayout","column","fxFlex","100","fxLayoutAlign","end stretch",1,"my-2"],[3,"inset"]],template:function(x,V){1&x&&(t.TgZ(0,"div",0),t.YNc(1,ao,22,8,"form",1),t.TgZ(2,"div",2)(3,"div",3),t._UZ(4,"fa-icon",4),t.TgZ(5,"span",5),t._uU(6,"Two Factor Authentication"),t.qZA()(),t.TgZ(7,"div",6),t._UZ(8,"fa-icon",7),t.TgZ(9,"span"),t._uU(10,"Protect your account from unauthorized access by requiring a second authentication method in addition to your password."),t.qZA()(),t.TgZ(11,"div",8)(12,"button",9),t.NdJ("click",function(){return V.on2FAuth()}),t._uU(13),t.qZA()()()()),2&x&&(t.xp6(1),t.Q6J("ngIf",null==V.appConfig?null:V.appConfig.allowPasswordUpdate),t.xp6(3),t.Q6J("icon",V.faUserClock),t.xp6(4),t.Q6J("icon",V.faInfoCircle),t.xp6(5),t.Oqu(V.appConfig.enable2FA?"Disable 2FA":"Enable 2FA"))},dependencies:[si.O5,qt._Y,qt.Fj,qt.JJ,qt.JL,qt.Q7,qt.On,qt.F,Ot.BN,Vt.xw,Vt.Wh,Vt.yH,An.lW,Sn.TO,Sn.KE,Er.Nt,io.d,Si.h]})}var jo=m(6517);function Nr(K,T){1&K&&t._UZ(0,"mat-divider",7)}function Ar(K,T){if(1&K&&(t.TgZ(0,"div",4)(1,"pre",5),t._uU(2),t.ALo(3,"json"),t.qZA(),t.YNc(4,Nr,1,0,"mat-divider",6),t.qZA()),2&K){const x=t.oxw();t.xp6(2),t.Oqu(t.lcZ(3,2,x.configData)),t.xp6(2),t.Q6J("ngIf",""!==x.configData)}}function P2(K,T){if(1&K&&(t.TgZ(0,"h2"),t._uU(1),t.qZA()),2&K){const x=t.oxw().$implicit;t.xp6(1),t.Oqu(x)}}function yl(K,T){if(1&K&&(t.TgZ(0,"h4",14),t._uU(1),t.qZA()),2&K){const x=t.oxw().$implicit;t.xp6(1),t.Oqu(x)}}function Bo(K,T){1&K&&t._UZ(0,"mat-divider",15),2&K&&t.Q6J("inset",!0)}function ro(K,T){if(1&K&&(t.TgZ(0,"mat-list-item")(1,"mat-card-subtitle",7),t.YNc(2,P2,2,1,"h2",10),t.qZA(),t.TgZ(3,"mat-card-subtitle",11),t.YNc(4,yl,2,1,"h4",12),t.qZA(),t.YNc(5,Bo,1,1,"mat-divider",13),t.qZA()),2&K){const x=T.$implicit;t.xp6(2),t.Q6J("ngIf",x.indexOf("[")>=0),t.xp6(2),t.Q6J("ngIf",x.indexOf("[")<0),t.xp6(1),t.Q6J("ngIf",x.indexOf("[")<0)}}function Rs(K,T){if(1&K&&(t.TgZ(0,"div",8)(1,"mat-list"),t.YNc(2,ro,6,3,"mat-list-item",9),t.qZA()()),2&K){const x=t.oxw();t.xp6(2),t.Q6J("ngForOf",x.configData)}}class cs{constructor(T,x,V){this.store=T,this.rtlEffects=x,this.router=V,this.configData="",this.fileFormat="INI",this.faCog=fe.b7W,this.unSubs=[new Gn.x,new Gn.x]}ngOnInit(){this.store.dispatch((0,Qt.Q2)({payload:"bitcoind"})),this.rtlEffects.showLnConfig.pipe((0,ui.R)(this.unSubs[1])).subscribe(T=>{const x=T.data;this.fileFormat=T.format,""===x||!x||"INI"!==this.fileFormat&&"HOCON"!==this.fileFormat?""!==x&&x&&"JSON"===this.fileFormat?this.configData=x:this.configData="":this.configData=x.split("\n")})}ngOnDestroy(){this.unSubs.forEach(T=>{T.next(null),T.complete()})}static#e=this.\u0275fac=function(x){return new(x||cs)(t.Y36(Hn.yh),t.Y36(Na.V),t.Y36(Ne.F0))};static#t=this.\u0275cmp=t.Xpm({type:cs,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(x,V){1&x&&(t.TgZ(0,"div",0)(1,"div",1),t.YNc(2,Ar,5,4,"div",2),t.YNc(3,Rs,3,1,"div",3),t.qZA()()),2&x&&(t.xp6(2),t.Q6J("ngIf",""!==V.configData&&"JSON"===V.fileFormat),t.xp6(1),t.Q6J("ngIf",""!==V.configData&&("INI"===V.fileFormat||"HOCON"===V.fileFormat)))},dependencies:[si.sg,si.O5,Vt.xw,Vt.Wh,Vt.yH,fn.$j,jo.i$,jo.Tg,io.d,si.Ts],styles:["h4[_ngcontent-%COMP%]{word-break:break-word}"]})}function Zc(K,T){1&K&&(t.TgZ(0,"mat-error"),t._uU(1,"Password is required."),t.qZA())}class Do{constructor(T,x,V){this.dialogRef=T,this.store=x,this.rtlEffects=V,this.password="",this.isAuthenticated=!1,this.unSubs=[new Gn.x,new Gn.x]}ngOnInit(){this.rtlEffects.isAuthorizedRes.pipe((0,Ka.q)(1)).subscribe(T=>{"ERROR"!==T?(this.isAuthenticated=!0,this.store.dispatch((0,Qt.M6)({payload:this.isAuthenticated}))):this.isAuthenticated=!1})}onAuthenticate(){if(!this.password)return!0;this.store.dispatch((0,Qt.QO)({payload:Mr(this.password)}))}onClose(){this.store.dispatch((0,Qt.M6)({payload:this.isAuthenticated}))}ngOnDestroy(){this.unSubs.forEach(T=>{T.next(null),T.complete()})}static#e=this.\u0275fac=function(x){return new(x||Do)(t.Y36(Ma.so),t.Y36(Hn.yh),t.Y36(Na.V))};static#t=this.\u0275cmp=t.Xpm({type:Do,selectors:[["rtl-is-authorized"]],decls:16,vars:2,consts:[["fxLayout","column","fxLayout.gt-sm","row","fxLayoutAlign","space-between stretch"],["fxFlex","100"],["fxLayout","row","fxLayoutAlign","space-between center",1,"modal-info-header"],["fxFlex","95","fxLayoutAlign","start start"],[1,"page-title"],["tabindex","3","fxFlex","5","fxLayoutAlign","center","mat-button","",1,"btn-close-x","p-0",3,"click"],["fxLayout","row",1,"padding-gap-x-large"],["fxLayout","column","fxFlex","100","fxLayoutAlign","start stretch"],["autoFocus","","matInput","","placeholder","Password","type","password","id","password","name","password","tabindex","1","required","",3,"ngModel","ngModelChange"],[4,"ngIf"],["fxLayout","row","fxFlex","100","fxLayoutAlign","end center",1,"mt-1"],["mat-button","","color","primary","tabindex","2","type","submit","default","",3,"click"]],template:function(x,V){1&x&&(t.TgZ(0,"div",0)(1,"div",1)(2,"mat-card-header",2)(3,"div",3)(4,"span",4),t._uU(5,"Authenticate with your RTL Password"),t.qZA()(),t.TgZ(6,"button",5),t.NdJ("click",function(){return V.onClose()}),t._uU(7,"X"),t.qZA()(),t.TgZ(8,"mat-card-content",6)(9,"form",7)(10,"mat-form-field")(11,"input",8),t.NdJ("ngModelChange",function(nt){return V.password=nt}),t.qZA(),t.YNc(12,Zc,2,0,"mat-error",9),t.qZA(),t.TgZ(13,"div",10)(14,"button",11),t.NdJ("click",function(){return V.onAuthenticate()}),t._uU(15,"Confirm"),t.qZA()()()()()()),2&x&&(t.xp6(11),t.Q6J("ngModel",V.password),t.xp6(1),t.Q6J("ngIf",!V.password))},dependencies:[si.O5,qt._Y,qt.Fj,qt.JJ,qt.JL,qt.Q7,qt.On,qt.F,Vt.xw,Vt.Wh,Vt.yH,An.lW,fn.dk,fn.dn,Sn.TO,Sn.KE,Er.Nt,Si.h]})}const qo=function(){return{initial:!1}};function B1(K,T){if(1&K){const x=t.EpF();t.TgZ(0,"div",12),t.NdJ("click",function(){t.CHM(x);const ge=t.oxw();return t.KtG(ge.activeLink=ge.links[2].link)}),t._uU(1),t.qZA()}if(2&K){const x=t.oxw();t.s9C("routerLink",x.links[2].link),t.Q6J("active",x.activeLink===x.links[2].link)("state",t.DdM(4,qo)),t.xp6(1),t.Oqu(x.links[2].name)}}function va(K,T){if(1&K){const x=t.EpF();t.TgZ(0,"div",6),t.NdJ("click",function(){t.CHM(x);const ge=t.oxw();return t.KtG(ge.activeLink=ge.links[3].link)}),t._uU(1),t.qZA()}if(2&K){const x=t.oxw();t.s9C("routerLink",x.links[3].link),t.Q6J("active",x.activeLink===x.links[3].link),t.xp6(1),t.Oqu(x.links[3].name)}}function vu(K,T){if(1&K){const x=t.EpF();t.TgZ(0,"div",13),t.NdJ("click",function(){t.CHM(x);const ge=t.oxw();return t.KtG(ge.showLnConfigClicked())}),t._uU(1),t.qZA()}if(2&K){const x=t.oxw();t.Q6J("active",x.activeLink===x.links[4].link),t.xp6(1),t.Oqu(x.links[4].name)}}class Yc{constructor(T,x,V,ge){this.store=T,this.router=x,this.rtlEffects=V,this.activatedRoute=ge,this.faTools=fe.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 Gn.x,new Gn.x,new Gn.x]}ngOnInit(){const T=this.links.find(x=>this.router.url.includes(x.link));this.activeLink=T?T.link:this.links[0].link,this.router.events.pipe((0,ui.R)(this.unSubs[0]),(0,xr.h)(x=>x instanceof Ne.Av)).subscribe({next:x=>{const V=this.links.find(ge=>x.urlAfterRedirects.includes(ge.link));this.activeLink=V?V.link:this.links[0].link}}),this.store.select(st.dT).pipe((0,ui.R)(this.unSubs[1])).subscribe(x=>{switch(this.showLnConfig=!1,this.selNode=x,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.store.dispatch((0,Qt.qR)({payload:{maxWidth:"50rem",data:{component:Do}}})),this.rtlEffects.closeAlert.pipe((0,ui.R)(this.unSubs[1])).subscribe(T=>{T&&(this.activeLink=this.links[4].link,this.router.navigate(["./"+this.activeLink],{relativeTo:this.activatedRoute}))})}ngOnDestroy(){this.unSubs.forEach(T=>{T.next(null),T.complete()})}static#e=this.\u0275fac=function(x){return new(x||Yc)(t.Y36(Hn.yh),t.Y36(Ne.F0),t.Y36(Na.V),t.Y36(Ne.gz))};static#t=this.\u0275cmp=t.Xpm({type:Yc,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","",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(x,V){if(1&x&&(t.TgZ(0,"div",0),t._UZ(1,"fa-icon",1),t.TgZ(2,"span",2),t._uU(3,"Node Config"),t.qZA()(),t.TgZ(4,"div",3)(5,"mat-card")(6,"mat-card-content",4)(7,"nav",5)(8,"div",6),t.NdJ("click",function(){return V.activeLink=V.links[0].link}),t._uU(9),t.qZA(),t.TgZ(10,"div",6),t.NdJ("click",function(){return V.activeLink=V.links[1].link}),t._uU(11),t.qZA(),t.YNc(12,B1,2,5,"div",7),t.YNc(13,va,2,3,"div",8),t.YNc(14,vu,2,2,"div",9),t.qZA(),t._UZ(15,"mat-tab-nav-panel",null,10),t.TgZ(17,"div",11),t._UZ(18,"router-outlet"),t.qZA()()()()),2&x){const ge=t.MAs(16);t.xp6(1),t.Q6J("icon",V.faTools),t.xp6(6),t.Q6J("tabPanel",ge),t.xp6(1),t.s9C("routerLink",V.links[0].link),t.Q6J("active",V.activeLink===V.links[0].link),t.xp6(1),t.Oqu(V.links[0].name),t.xp6(1),t.s9C("routerLink",V.links[1].link),t.Q6J("active",V.activeLink===V.links[1].link),t.xp6(1),t.Oqu(V.links[1].name),t.xp6(1),t.Q6J("ngIf","LND"===(null==V.selNode||null==V.selNode.lnImplementation?null:V.selNode.lnImplementation.toUpperCase())),t.xp6(1),t.Q6J("ngIf","CLN"===(null==V.selNode||null==V.selNode.lnImplementation?null:V.selNode.lnImplementation.toUpperCase())),t.xp6(1),t.Q6J("ngIf",V.showLnConfig)}},dependencies:[si.O5,Ot.BN,Vt.xw,Vt.Wh,Vt.yH,fn.a8,fn.dn,Un.BU,Un.sW,Un.Nj,Ne.lC,Ne.rH]})}function we(K,T){1&K&&t._UZ(0,"mat-divider",7)}function ne(K,T){if(1&K&&(t.TgZ(0,"div",4)(1,"pre",5),t._uU(2),t.ALo(3,"json"),t.qZA(),t.YNc(4,we,1,0,"mat-divider",6),t.qZA()),2&K){const x=t.oxw();t.xp6(2),t.Oqu(t.lcZ(3,2,x.configData)),t.xp6(2),t.Q6J("ngIf",""!==x.configData)}}function Ee(K,T){if(1&K&&(t.TgZ(0,"h2"),t._uU(1),t.qZA()),2&K){const x=t.oxw().$implicit;t.xp6(1),t.Oqu(x)}}function qe(K,T){if(1&K&&(t.TgZ(0,"h4",14),t._uU(1),t.qZA()),2&K){const x=t.oxw().$implicit;t.xp6(1),t.Oqu(x)}}function at(K,T){1&K&&t._UZ(0,"mat-divider",15),2&K&&t.Q6J("inset",!0)}function mt(K,T){if(1&K&&(t.TgZ(0,"mat-list-item")(1,"mat-card-subtitle",7),t.YNc(2,Ee,2,1,"h2",10),t.qZA(),t.TgZ(3,"mat-card-subtitle",11),t.YNc(4,qe,2,1,"h4",12),t.qZA(),t.YNc(5,at,1,1,"mat-divider",13),t.qZA()),2&K){const x=T.$implicit;t.xp6(2),t.Q6J("ngIf",x.indexOf("[")>=0),t.xp6(2),t.Q6J("ngIf",x.indexOf("[")<0),t.xp6(1),t.Q6J("ngIf",x.indexOf("[")<0)}}function Wt(K,T){if(1&K&&(t.TgZ(0,"div",8)(1,"mat-list"),t.YNc(2,mt,6,3,"mat-list-item",9),t.qZA()()),2&K){const x=t.oxw();t.xp6(2),t.Q6J("ngForOf",x.configData)}}class mn{constructor(T,x,V){this.store=T,this.rtlEffects=x,this.router=V,this.configData="",this.fileFormat="INI",this.faCog=fe.b7W,this.unSubs=[new Gn.x,new Gn.x]}ngOnInit(){this.store.dispatch((0,Qt.Q2)({payload:"ln"})),this.rtlEffects.showLnConfig.pipe((0,ui.R)(this.unSubs[1])).subscribe(T=>{const x=T.data;this.fileFormat=T.format,""===x||!x||"INI"!==this.fileFormat&&"HOCON"!==this.fileFormat?""!==x&&x&&"JSON"===this.fileFormat?this.configData=x:this.configData="":this.configData=x.split("\n")})}ngOnDestroy(){this.unSubs.forEach(T=>{T.next(null),T.complete()})}static#e=this.\u0275fac=function(x){return new(x||mn)(t.Y36(Hn.yh),t.Y36(Na.V),t.Y36(Ne.F0))};static#t=this.\u0275cmp=t.Xpm({type:mn,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(x,V){1&x&&(t.TgZ(0,"div",0)(1,"div",1),t.YNc(2,ne,5,4,"div",2),t.YNc(3,Wt,3,1,"div",3),t.qZA()()),2&x&&(t.xp6(2),t.Q6J("ngIf",""!==V.configData&&"JSON"===V.fileFormat),t.xp6(1),t.Q6J("ngIf",""!==V.configData&&("INI"===V.fileFormat||"HOCON"===V.fileFormat)))},dependencies:[si.sg,si.O5,Vt.xw,Vt.Wh,Vt.yH,fn.$j,jo.i$,jo.Tg,io.d,si.Ts],styles:["h4[_ngcontent-%COMP%]{word-break:break-word}"]})}var Dn=m(2994),Rn=m(429),di=m(6523),ta=m(62),Ea=m(3704),zi=m(3012),Fr=m(2922),so=m(4714);function ds(K,T){if(1&K&&(t.TgZ(0,"mat-option",35),t._uU(1),t.qZA()),2&K){const x=T.$implicit;t.Q6J("value",x.id),t.xp6(1),t.hij(" ",x.id," ")}}function Us(K,T){1&K&&(t.TgZ(0,"mat-error"),t._uU(1,"Currency unit is required."),t.qZA())}function xs(K,T){if(1&K&&(t.TgZ(0,"mat-radio-button",36),t._uU(1),t.ALo(2,"titlecase"),t.qZA()),2&K){const x=T.$implicit,V=t.oxw();t.Q6J("value",x)("checked",V.selNode.settings.userPersona===x),t.xp6(1),t.hij(" ",t.lcZ(2,3,x)," ")}}function No(K,T){if(1&K&&(t.TgZ(0,"mat-radio-button",37),t._uU(1),t.qZA()),2&K){const x=T.$implicit;t.Q6J("value",x),t.xp6(1),t.hij("",x.name," ")}}const uc=function(K){return{skin:!0,"selected-color":K}};function yu(K,T){if(1&K){const x=t.EpF();t.TgZ(0,"span",38)(1,"div",39),t.NdJ("click",function(){const nt=t.CHM(x).$implicit,kt=t.oxw();return t.KtG(kt.changeThemeColor(nt.id))}),t.ALo(2,"lowercase"),t.qZA(),t._uU(3),t.qZA()}if(2&K){const x=T.$implicit,V=t.oxw();t.xp6(1),t.Tol(t.lcZ(2,4,x.id)),t.Q6J("ngClass",t.VKq(6,uc,V.selectedThemeColor===x.id)),t.xp6(2),t.hij(" ",x.name," ")}}class k2{constructor(T,x,V){this.logger=T,this.commonService=x,this.store=V,this.faExclamationTriangle=fe.eHv,this.faMoneyBillAlt=fe.co4,this.faPaintBrush=fe.XsY,this.faInfoCircle=fe.sqG,this.faEyeSlash=fe.Aq,this.userPersonas=[Qe.ol.OPERATOR,Qe.ol.MERCHANT],this.currencyUnits=Qe.Er,this.themeModes=Qe.wZ.modes,this.themeColors=Qe.wZ.themes,this.selectedThemeMode=Qe.wZ.modes[0],this.selectedThemeColor=Qe.wZ.themes[0].id,this.currencyUnit="BTC",this.smallerCurrencyUnit="Sats",this.showSettingOption=!0,this.screenSize="",this.screenSizeEnum=Qe.cu,this.unSubs=[new Gn.x,new Gn.x],this.screenSize=this.commonService.getScreenSize()}ngOnInit(){this.store.select(st.dT).pipe((0,ui.R)(this.unSubs[0])).subscribe(T=>{this.selNode=T,this.selectedThemeMode=this.themeModes.find(x=>this.selNode.settings.themeMode===x.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(T)})}onCurrencyChange(T){this.selNode.settings.currencyUnits=[...Qe.uA,T.value],this.store.dispatch((0,di.JT)({payload:{userPersona:this.selNode.settings.userPersona,channelBackupPath:this.selNode.settings.channelBackupPath,selCurrencyUnit:T.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,Rn.oo)({payload:{userPersona:this.selNode.settings.userPersona,channelBackupPath:this.selNode.settings.channelBackupPath,selCurrencyUnit:T.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,Dn.Zr)({payload:{userPersona:this.selNode.settings.userPersona,channelBackupPath:this.selNode.settings.channelBackupPath,selCurrencyUnit:T.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(T,x){this.selNode.settings[T]=!this.selNode.settings[T]}changeThemeColor(T){this.selectedThemeColor=T,this.selNode.settings.themeColor=T}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,Qt.zQ)({payload:{uiMessage:Qe.m6.UPDATE_NODE_SETTINGS,settings:this.selNode.settings}})),this.store.dispatch((0,di.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,Rn.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,Dn.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 T=this.selNode.index||-1;this.selNode.settings=this.previousSettings,this.selectedThemeMode=this.themeModes.find(x=>x.id===this.previousSettings.themeMode)||this.themeModes[0],this.selectedThemeColor=this.previousSettings.themeColor,this.store.dispatch((0,Qt.fk)({payload:{uiMessage:Qe.m6.NO_SPINNER,prevLnNodeIndex:+T,currentLnNode:this.selNode,isInitialSetup:!0}}))}ngOnDestroy(){this.unSubs.forEach(T=>{T.next(),T.complete()})}static#e=this.\u0275fac=function(x){return new(x||k2)(t.Y36(sn.mQ),t.Y36(ta.v),t.Y36(Hn.yh))};static#t=this.\u0275cmp=t.Xpm({type:k2,selectors:[["rtl-node-settings"]],decls:76,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",3,"ngModel","ngModelChange","change"],["autoFocus","","placeholder","Fiat Currency","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","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","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,"mr-4",3,"value","checked"],["tabindex","5",1,"mr-4",3,"value"],["fxLayout","row",1,"theme-name"],["tabindex","9",3,"ngClass","click"]],template:function(x,V){1&x&&(t.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"),t._UZ(7,"fa-icon",5),t.TgZ(8,"span",6),t._uU(9,"Open Unannounced Channels"),t.qZA()()(),t.TgZ(10,"div",7)(11,"div",8),t._UZ(12,"fa-icon",9),t.TgZ(13,"span"),t._uU(14,"Use this control to toggle setting which defaults to opening unannounced channels only."),t.qZA()(),t.TgZ(15,"div",10)(16,"mat-slide-toggle",11),t.NdJ("ngModelChange",function(nt){return V.selNode.settings.unannouncedChannels=nt})("change",function(nt){return V.selNode.settings.unannouncedChannels=nt.checked?V.selNode.settings.unannouncedChannels:null}),t._uU(17,"Open Unannounced Channels"),t.qZA()()()(),t.TgZ(18,"mat-expansion-panel",4)(19,"mat-expansion-panel-header")(20,"mat-panel-title"),t._UZ(21,"fa-icon",5),t.TgZ(22,"span",6),t._uU(23,"Balance Display"),t.qZA()()(),t.TgZ(24,"div",7)(25,"div",12),t._UZ(26,"fa-icon",9),t.TgZ(27,"span"),t._uU(28,"Fiat conversion calls "),t.TgZ(29,"strong")(30,"a",13),t._uU(31,"Blockchain.com"),t.qZA()(),t._uU(32," API to get conversion rates."),t.qZA()(),t.TgZ(33,"div",10)(34,"mat-slide-toggle",14),t.NdJ("ngModelChange",function(nt){return V.selNode.settings.fiatConversion=nt})("change",function(nt){return V.selNode.settings.currencyUnit=nt.checked?V.selNode.settings.currencyUnit:null}),t._uU(35,"Enable Fiat Conversion"),t.qZA(),t.TgZ(36,"mat-form-field")(37,"mat-select",15,16),t.NdJ("ngModelChange",function(nt){return V.selNode.settings.currencyUnit=nt})("selectionChange",function(nt){return V.onCurrencyChange(nt)}),t.YNc(39,ds,2,2,"mat-option",17),t.qZA(),t.YNc(40,Us,2,0,"mat-error",18),t.qZA()()()(),t.TgZ(41,"mat-expansion-panel",4)(42,"mat-expansion-panel-header")(43,"mat-panel-title"),t._UZ(44,"fa-icon",5),t.TgZ(45,"span",6),t._uU(46,"Customization"),t.qZA()()(),t.TgZ(47,"div",7)(48,"div",19),t._UZ(49,"fa-icon",9),t.TgZ(50,"span"),t._uU(51,"Dashboard layout will be tailored based on the role selected to better serve its needs."),t.qZA()(),t.TgZ(52,"div",20)(53,"h4"),t._uU(54,"Dashboard Layout"),t.qZA(),t.TgZ(55,"mat-radio-group",21),t.NdJ("ngModelChange",function(nt){return V.selNode.settings.userPersona=nt}),t.YNc(56,xs,3,5,"mat-radio-button",22),t.qZA()(),t._UZ(57,"mat-divider",23),t.TgZ(58,"div",24)(59,"h4"),t._uU(60,"Mode"),t.qZA(),t.TgZ(61,"mat-radio-group",25),t.NdJ("ngModelChange",function(nt){return V.selectedThemeMode=nt})("change",function(){return V.chooseThemeMode()}),t.YNc(62,No,2,2,"mat-radio-button",26),t.qZA()(),t._UZ(63,"mat-divider",23),t.TgZ(64,"div",27)(65,"div",28)(66,"h4"),t._uU(67,"Themes"),t.qZA(),t.TgZ(68,"div",29),t.YNc(69,yu,4,8,"span",30),t.qZA()()()()()()(),t.TgZ(70,"div",31)(71,"div",32)(72,"button",33),t.NdJ("click",function(){return V.onResetSettings()}),t._uU(73,"Reset"),t.qZA(),t.TgZ(74,"button",34),t.NdJ("click",function(){return V.onUpdateSettings()}),t._uU(75,"Update"),t.qZA()()()()),2&x&&(t.xp6(7),t.Q6J("icon",V.faEyeSlash),t.xp6(5),t.Q6J("icon",V.faInfoCircle),t.xp6(4),t.Q6J("ngModel",V.selNode.settings.unannouncedChannels),t.xp6(5),t.Q6J("icon",V.faMoneyBillAlt),t.xp6(5),t.Q6J("icon",V.faExclamationTriangle),t.xp6(8),t.Q6J("ngModel",V.selNode.settings.fiatConversion),t.xp6(3),t.Q6J("disabled",!V.selNode.settings.fiatConversion)("required",V.selNode.settings.fiatConversion)("ngModel",V.selNode.settings.currencyUnit),t.xp6(2),t.Q6J("ngForOf",V.currencyUnits),t.xp6(1),t.Q6J("ngIf",V.selNode.settings.fiatConversion&&!V.selNode.settings.currencyUnit),t.xp6(4),t.Q6J("icon",V.faPaintBrush),t.xp6(5),t.Q6J("icon",V.faInfoCircle),t.xp6(6),t.Q6J("ngModel",V.selNode.settings.userPersona),t.xp6(1),t.Q6J("ngForOf",V.userPersonas),t.xp6(5),t.Q6J("ngModel",V.selectedThemeMode),t.xp6(1),t.Q6J("ngForOf",V.themeModes),t.xp6(7),t.Q6J("ngForOf",V.themeColors))},dependencies:[si.mk,si.sg,si.O5,qt._Y,qt.JJ,qt.JL,qt.Q7,qt.On,qt.F,Ot.BN,Vt.xw,Vt.Wh,Vt.yH,Ea.oO,An.lW,zi.pp,zi.ib,zi.yz,zi.yK,Sn.TO,Sn.KE,io.d,Fr.VQ,Fr.U0,Jn.gD,oi.ey,so.Rr,xi.$V,Si.h,si.i8,si.rS],styles:["h4[_ngcontent-%COMP%]{margin:1.2rem 0 .6rem}.theme-name[_ngcontent-%COMP%]{min-width:15rem}.skin[_ngcontent-%COMP%]{width:2rem;height:2rem;border-radius:50%;cursor:pointer;margin-right:1rem}.skin.selected-color[_ngcontent-%COMP%]{width:1.75rem;height:1.75rem;border:.25rem 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}.radio-group.mat-radio-group[_ngcontent-%COMP%] .mat-radio-button[_ngcontent-%COMP%]{min-width:11rem}.mat-slide-toggle[_ngcontent-%COMP%]{padding:0 1.4rem 0 .4rem}.mat-flat-button[_ngcontent-%COMP%]{width:100%;max-height:3.6rem}"]})}var Qc=m(538),Cs=m(9828),Nl=m(6529),lr=m(2501),Fl=m(7822),R2=m(6896),$d=m(9445);const e0=function(K){return{error:K}};function Hl(K,T){if(1&K&&t.GkF(0,14),2&K){const x=t.oxw(),V=t.MAs(18);t.Q6J("ngTemplateOutlet",V)("ngTemplateOutletContext",t.VKq(2,e0,x.errorMessage))}}function K4(K,T){if(1&K&&(t.TgZ(0,"mat-option",30),t._uU(1),t.qZA()),2&K){const x=T.$implicit;t.Q6J("value",x),t.xp6(1),t.hij(" ",x," ")}}function bu(K,T){if(1&K&&(t.TgZ(0,"mat-option",30),t._uU(1),t.ALo(2,"camelCaseWithSpaces"),t.ALo(3,"camelcaseWithReplace"),t.qZA()),2&K){const x=T.$implicit,V=t.oxw(3);t.Q6J("value",x),t.xp6(1),t.hij(" ","ECL"===V.selNode.lnImplementation?t.lcZ(2,2,x):t.xi3(3,4,x,"_")," ")}}function xu(K,T){if(1&K&&(t.TgZ(0,"mat-option",30),t._uU(1),t.qZA()),2&K){const x=T.$implicit;t.Q6J("value",x),t.xp6(1),t.hij(" ","desc"===x?"Descending":"Ascending"," ")}}function Cu(K,T){if(1&K&&(t.TgZ(0,"mat-option",33),t._uU(1),t.ALo(2,"camelCaseWithSpaces"),t.ALo(3,"camelcaseWithReplace"),t.qZA()),2&K){const x=T.$implicit,V=t.oxw(2).$implicit,ge=t.oxw(2);t.Q6J("value",x.column)("disabled",V.columnSelection.length<=2&&V.columnSelection.includes(x.column)),t.xp6(1),t.hij(" ",x.label?x.label:"ECL"===ge.selNode.lnImplementation?t.lcZ(2,3,x.column):t.xi3(3,5,x.column,"_")," ")}}function N1(K,T){if(1&K){const x=t.EpF();t.TgZ(0,"mat-form-field",31)(1,"mat-select",32),t.NdJ("ngModelChange",function(ge){t.CHM(x);const nt=t.oxw().$implicit;return t.KtG(nt.columnSelection=ge)})("selectionChange",function(){t.CHM(x);const ge=t.oxw().$implicit,nt=t.oxw(2);return t.KtG(nt.oncolumnSelectionChange(ge))}),t.YNc(2,Cu,4,8,"mat-option",27),t.qZA()()}if(2&K){const x=t.oxw().$implicit,V=t.oxw().$implicit,ge=t.oxw();t.xp6(1),t.hYB("name","",V.pageId,"",x.tableId,"-columns-selection"),t.Q6J("ngModel",x.columnSelection),t.xp6(1),t.Q6J("ngForOf",ge.nodePageDefs[V.pageId][x.tableId].allowedColumns)}}function jc(K,T){if(1&K&&(t.TgZ(0,"mat-option",33),t._uU(1),t.ALo(2,"camelCaseWithSpaces"),t.ALo(3,"camelcaseWithReplace"),t.qZA()),2&K){const x=T.$implicit,V=t.oxw().$implicit,ge=t.oxw(2);t.Q6J("value",x.column)("disabled",V.columnSelectionSM.length<=1&&V.columnSelectionSM.includes(x.column)||V.columnSelectionSM.length>=3&&!V.columnSelectionSM.includes(x.column)),t.xp6(1),t.hij(" ",x.label?x.label:"ECL"===ge.selNode.lnImplementation?t.lcZ(2,3,x.column):t.xi3(3,5,x.column,"_")," ")}}const B2=function(K){return{"ml-minus-1":K}};function qc(K,T){if(1&K){const x=t.EpF();t.TgZ(0,"div",17)(1,"div",18)(2,"span",19),t._uU(3),t.ALo(4,"camelcaseWithReplace"),t.qZA(),t.TgZ(5,"mat-form-field",19)(6,"mat-select",20),t.NdJ("ngModelChange",function(ge){const kt=t.CHM(x).$implicit;return t.KtG(kt.recordsPerPage=ge)}),t.YNc(7,K4,2,2,"mat-option",21),t.qZA()(),t.TgZ(8,"mat-form-field",19)(9,"mat-select",22),t.NdJ("ngModelChange",function(ge){const kt=t.CHM(x).$implicit;return t.KtG(kt.sortBy=ge)}),t.YNc(10,bu,4,7,"mat-option",21),t.qZA()(),t.TgZ(11,"mat-form-field",19)(12,"mat-select",23),t.NdJ("ngModelChange",function(ge){const kt=t.CHM(x).$implicit;return t.KtG(kt.sortOrder=ge)}),t.YNc(13,xu,2,2,"mat-option",21),t.qZA()(),t.YNc(14,N1,3,4,"mat-form-field",24),t.TgZ(15,"mat-form-field",25)(16,"mat-select",26),t.NdJ("ngModelChange",function(ge){const kt=t.CHM(x).$implicit;return t.KtG(kt.columnSelectionSM=ge)}),t.YNc(17,jc,4,8,"mat-option",27),t.qZA()(),t.TgZ(18,"button",28),t.NdJ("click",function(){const nt=t.CHM(x).$implicit,kt=t.oxw().$implicit,jt=t.oxw();return t.KtG(jt.onTableReset(kt.pageId,nt))}),t.TgZ(19,"mat-icon",29),t._uU(20,"restore"),t.qZA()()()()}if(2&K){const x=T.$implicit,V=t.oxw().$implicit,ge=t.oxw();t.xp6(3),t.hij("",t.xi3(4,20,x.tableId,"_"),":"),t.xp6(3),t.hYB("name","",V.pageId,"",x.tableId,"-page-size-options"),t.Q6J("disabled",ge.nodePageDefs[V.pageId][x.tableId].disablePageSize)("ngModel",x.recordsPerPage),t.xp6(1),t.Q6J("ngForOf",ge.pageSizeOptions),t.xp6(2),t.hYB("name","",V.pageId,"",x.tableId,"-sort-by"),t.Q6J("ngModel",x.sortBy),t.xp6(1),t.Q6J("ngForOf",x.columnSelection),t.xp6(2),t.hYB("name","",V.pageId,"",x.tableId,"-sort-order"),t.Q6J("ngModel",x.sortOrder),t.xp6(1),t.Q6J("ngForOf",ge.sortOrders),t.xp6(1),t.Q6J("ngIf",ge.screenSize!==ge.screenSizeEnum.XS),t.xp6(2),t.hYB("name","",V.pageId,"",x.tableId,"-columns-selection-sm"),t.Q6J("ngModel",x.columnSelectionSM),t.xp6(1),t.Q6J("ngForOf",ge.nodePageDefs[V.pageId][x.tableId].allowedColumns),t.xp6(2),t.Q6J("ngClass",t.VKq(23,B2,ge.screenSize===ge.screenSizeEnum.XS||ge.screenSize===ge.screenSizeEnum.SM))}}function bl(K,T){if(1&K&&t.GkF(0,14),2&K){const x=t.oxw(2),V=t.MAs(18);t.Q6J("ngTemplateOutlet",V)("ngTemplateOutletContext",t.VKq(2,e0,x.errorMessage))}}const d3=function(K){return{"error-border":K}};function zl(K,T){if(1&K&&(t.TgZ(0,"mat-expansion-panel",15)(1,"mat-expansion-panel-header")(2,"mat-panel-title"),t._uU(3),t.ALo(4,"camelcaseWithReplace"),t.qZA()(),t.YNc(5,qc,21,25,"div",16),t.YNc(6,bl,1,4,"ng-container",6),t.qZA()),2&K){const x=T.$implicit,V=t.oxw();t.Q6J("ngClass",t.VKq(7,d3,(null==V.errorMessage?null:V.errorMessage.page)===x.pageId)),t.xp6(3),t.Oqu(t.xi3(4,4,x.pageId,"_")),t.xp6(2),t.Q6J("ngForOf",x.tables),t.xp6(1),t.Q6J("ngIf",V.errorMessage&&(null==V.errorMessage?null:V.errorMessage.page)===x.pageId)}}function Ul(K,T){if(1&K&&(t.TgZ(0,"mat-panel-title"),t._uU(1),t.ALo(2,"titlecase"),t.qZA()),2&K){const x=t.oxw().error;t.xp6(1),t.hij("Page ",t.lcZ(2,1,x.page),"")}}function hc(K,T){if(1&K&&(t.TgZ(0,"mat-list-item")(1,"mat-icon",37),t._uU(2,"close"),t.qZA(),t.TgZ(3,"span"),t._uU(4),t.qZA()()),2&K){const x=t.oxw().error;t.xp6(4),t.Oqu(x.message)}}function Mu(K,T){if(1&K&&(t.TgZ(0,"mat-list-item")(1,"mat-icon",37),t._uU(2,"close"),t.qZA(),t.TgZ(3,"span"),t._uU(4),t.ALo(5,"titlecase"),t.qZA()()),2&K){const x=T.$implicit;t.xp6(4),t.AsE("Table ",t.lcZ(5,2,x.table)," ",x.message,"")}}const u3=function(K){return{"error-border p-2":K}};function Xc(K,T){if(1&K&&(t.TgZ(0,"div",29),t.YNc(1,Ul,3,3,"mat-panel-title",34),t.TgZ(2,"mat-list",35),t.YNc(3,hc,5,1,"mat-list-item",34),t.YNc(4,Mu,6,4,"mat-list-item",36),t.qZA()()),2&K){const x=T.error,V=t.oxw();t.Q6J("ngClass",t.VKq(4,u3,"unknown"===V.errorMessage.page)),t.xp6(1),t.Q6J("ngIf","unknown"===V.errorMessage.page),t.xp6(2),t.Q6J("ngIf",x.message),t.xp6(1),t.Q6J("ngForOf",x.tables)}}class xl{constructor(T,x,V,ge){this.logger=T,this.commonService=x,this.store=V,this.actions=ge,this.faPenRuler=fe.SoD,this.faExclamationTriangle=fe.eHv,this.screenSize="",this.screenSizeEnum=Qe.cu,this.pageSizeOptions=Qe.TJ,this.pageSettings=[],this.initialPageSettings=[],this.defaultSettings=[],this.nodePageDefs={},this.sortOrders=Qe.zZ,this.apiCallStatus=null,this.apiCallStatusEnum=Qe.Bn,this.errorMessage=null,this.unSubs=[new Gn.x,new Gn.x,new Gn.x,new Gn.x],this.screenSize=this.commonService.getScreenSize()}ngOnInit(){this.store.select(st.dT).pipe((0,ui.R)(this.unSubs[0])).subscribe(T=>{switch(this.selNode=T,this.logger.info(this.selNode),this.selNode.lnImplementation){case"CLN":this.initialPageSettings=Object.assign([],Qe.gG),this.defaultSettings=Object.assign([],Qe.gG),this.nodePageDefs=Qe.At,this.store.select(Cs.AS).pipe((0,ui.R)(this.unSubs[1]),(0,Qc.M)(this.store.select(Cs.lw))).subscribe(([x,V])=>{const ge=JSON.parse(JSON.stringify(x.pageSettings));if(this.errorMessage=null,this.apiCallStatus=x.apiCallStatus,this.apiCallStatus.status===Qe.Bn.ERROR)this.errorMessage=this.apiCallStatus.message||null,this.pageSettings=ge,this.initialPageSettings=ge;else{if(!V?.enableOffers){const nt=ge.find(on=>"transactions"===on.pageId),kt=nt?.tables.findIndex(on=>"offers"===on.tableId),jt=nt?.tables.findIndex(on=>"offer_bookmarks"===on.tableId);kt>-1&&nt?.tables.splice(kt,1),jt>-1&&nt?.tables.splice(jt,1)}if(!V?.enablePeerswap){const nt=ge.findIndex(kt=>"peerswap"===kt.pageId);nt>-1&&ge.splice(nt,1)}this.pageSettings=ge,this.initialPageSettings=ge}this.logger.info(ge)}),this.actions.pipe((0,ui.R)(this.unSubs[2]),(0,xr.h)(x=>x.type===Qe.AB.UPDATE_API_CALL_STATUS_CLN||x.type===Qe.AB.SAVE_PAGE_SETTINGS_CLN)).subscribe(x=>{x.type===Qe.AB.UPDATE_API_CALL_STATUS_CLN&&x.payload.status===Qe.Bn.ERROR&&"SavePageSettings"===x.payload.action&&(this.errorMessage=JSON.parse(x.payload.message))});break;case"ECL":this.initialPageSettings=Object.assign([],Qe.c3),this.defaultSettings=Object.assign([],Qe.c3),this.nodePageDefs=Qe.Xk,this.store.select(lr.nF).pipe((0,ui.R)(this.unSubs[1]),(0,Qc.M)(this.store.select(lr.LR))).subscribe(([x,V])=>{const ge=JSON.parse(JSON.stringify(x.pageSettings));this.errorMessage=null,this.apiCallStatus=x.apiCallStatus,this.apiCallStatus.status===Qe.Bn.ERROR?(this.errorMessage=this.apiCallStatus.message||null,this.pageSettings=ge,this.initialPageSettings=ge):(this.pageSettings=ge,this.initialPageSettings=ge),this.logger.info(ge)}),this.actions.pipe((0,ui.R)(this.unSubs[2]),(0,xr.h)(x=>x.type===Qe.lr.UPDATE_API_CALL_STATUS_ECL||x.type===Qe.lr.SAVE_PAGE_SETTINGS_ECL)).subscribe(x=>{x.type===Qe.lr.UPDATE_API_CALL_STATUS_ECL&&x.payload.status===Qe.Bn.ERROR&&"SavePageSettings"===x.payload.action&&(this.errorMessage=JSON.parse(x.payload.message))});break;default:this.initialPageSettings=Object.assign([],Qe.gK),this.defaultSettings=Object.assign([],Qe.gK),this.nodePageDefs=Qe.hG,this.store.select(Nl.Pr).pipe((0,ui.R)(this.unSubs[1]),(0,Qc.M)(this.store.select(Nl.$k))).subscribe(([x,V])=>{const ge=JSON.parse(JSON.stringify(x.pageSettings));if(this.errorMessage=null,this.apiCallStatus=x.apiCallStatus,this.apiCallStatus.status===Qe.Bn.ERROR)this.errorMessage=this.apiCallStatus.message||null,this.pageSettings=ge,this.initialPageSettings=ge;else{if(!V?.swapServerUrl||""===V.swapServerUrl.trim()){const nt=ge.findIndex(kt=>"loop"===kt.pageId);nt>-1&&ge.splice(nt,1)}if(!V?.boltzServerUrl||""===V.boltzServerUrl.trim()){const nt=ge.findIndex(kt=>"boltz"===kt.pageId);nt>-1&&ge.splice(nt,1)}if(!V?.enablePeerswap){const nt=ge.findIndex(kt=>"peerswap"===kt.pageId);nt>-1&&ge.splice(nt,1)}this.pageSettings=ge,this.initialPageSettings=ge}this.logger.info(ge)}),this.actions.pipe((0,ui.R)(this.unSubs[2]),(0,xr.h)(x=>x.type===Qe.uR.UPDATE_API_CALL_STATUS_LND||x.type===Qe.uR.SAVE_PAGE_SETTINGS_LND)).subscribe(x=>{x.type===Qe.uR.UPDATE_API_CALL_STATUS_LND&&x.payload.status===Qe.Bn.ERROR&&"SavePageSettings"===x.payload.action&&(this.errorMessage=JSON.parse(x.payload.message))})}})}oncolumnSelectionChange(T){T.columnSelection&&(!T.sortBy||!T.columnSelection.includes(T.sortBy))&&(T.sortBy=T.columnSelection[0])}onUpdatePageSettings(){if(this.pageSettings.reduce((T,x)=>T||x.tables.reduce((V,ge)=>!(ge.recordsPerPage&&ge.sortBy&&ge.sortOrder&&ge.columnSelection&&ge.columnSelection.length>=2),!1),!1))return!0;switch(this.errorMessage="",this.selNode.lnImplementation){case"CLN":this.store.dispatch((0,Rn.eF)({payload:this.pageSettings}));break;case"ECL":this.store.dispatch((0,Dn.eF)({payload:this.pageSettings}));break;default:this.store.dispatch((0,di.eF)({payload:this.pageSettings}))}}onTableReset(T,x){const V=this.pageSettings.findIndex(kt=>kt.pageId===T),ge=this.pageSettings[V].tables.findIndex(kt=>kt.tableId===x.tableId),nt=this.defaultSettings.find(kt=>kt.pageId===T)?.tables.find(kt=>kt.tableId===x.tableId)||this.pageSettings.find(kt=>kt.pageId===T)?.tables.find(kt=>kt.tableId===x.tableId);this.pageSettings[V].tables.splice(ge,1,nt)}onResetPageSettings(T){"current"===T?(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(T=>{T.next(),T.complete()})}static#e=this.\u0275fac=function(x){return new(x||xl)(t.Y36(sn.mQ),t.Y36(ta.v),t.Y36(Hn.yh),t.Y36(vs.eX))};static#t=this.\u0275cmp=t.Xpm({type:xl,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"],["placeholder","Records/Page","tabindex","2","required","",3,"disabled","name","ngModel","ngModelChange"],[3,"value",4,"ngFor","ngForOf"],["placeholder","Sort By","tabindex","3","required","",3,"name","ngModel","ngModelChange"],["placeholder","Sort Order","tabindex","4","required","",3,"name","ngModel","ngModelChange"],["fxFlex","35","matTooltip","Select a minimum of 2 columns",4,"ngIf"],["fxFlex","15","matTooltip","Select between 1 and 3 columns"],["placeholder","Column Selection (Mobile Resolution)","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",3,"click"],[3,"ngClass"],[3,"value"],["fxFlex","35","matTooltip","Select a minimum of 2 columns"],["placeholder","Column selection (Desktop Resolution)","tabindex","6","multiple","","required","",3,"name","ngModel","ngModelChange","selectionChange"],[3,"value","disabled"],[4,"ngIf"],["role","list"],[4,"ngFor","ngForOf"],[1,"ml-1","icon-small","red"]],template:function(x,V){1&x&&(t.TgZ(0,"div",0)(1,"form",1,2)(3,"div",3),t._UZ(4,"fa-icon",4),t.TgZ(5,"span",5),t._uU(6,"Grid Settings"),t.qZA()(),t.YNc(7,Hl,1,4,"ng-container",6),t.TgZ(8,"mat-accordion",7),t.YNc(9,zl,7,9,"mat-expansion-panel",8),t.qZA()(),t.TgZ(10,"div",9)(11,"button",10),t.NdJ("click",function(){return V.onResetPageSettings("current")}),t._uU(12,"Reset"),t.qZA(),t.TgZ(13,"button",11),t.NdJ("click",function(){return V.onResetPageSettings("default")}),t._uU(14,"Reset to Default"),t.qZA(),t.TgZ(15,"button",12),t.NdJ("click",function(){return V.onUpdatePageSettings()}),t._uU(16,"Save"),t.qZA()()(),t.YNc(17,Xc,5,6,"ng-template",null,13,t.W1O)),2&x&&(t.xp6(4),t.Q6J("icon",V.faPenRuler),t.xp6(3),t.Q6J("ngIf",V.errorMessage&&"unknown"===V.errorMessage.page),t.xp6(2),t.Q6J("ngForOf",V.pageSettings))},dependencies:[si.mk,si.sg,si.O5,si.tP,qt._Y,qt.JJ,qt.JL,qt.Q7,qt.On,qt.F,Ot.BN,Vt.xw,Vt.Wh,Vt.yH,Ea.oO,An.lW,zi.pp,zi.ib,zi.yz,zi.yK,Fl.Hw,Sn.KE,jo.i$,jo.Tg,Jn.gD,oi.ey,R2.gM,xi.$V,si.rS,$d.D3,$d.i1],styles:[".table-setting-row[_ngcontent-%COMP%]:last-child{margin-bottom:3rem}.table-setting-row[_ngcontent-%COMP%]:not(:first-child){margin:3rem 0}"]})}function F1(K,T){if(1&K){const x=t.EpF();t.TgZ(0,"div",10),t.NdJ("click",function(){t.CHM(x);const ge=t.oxw();return t.KtG(ge.activeLink=ge.links[0].link)}),t._uU(1),t.qZA()}if(2&K){const x=t.oxw();t.s9C("routerLink",x.links[0].link),t.Q6J("active",x.activeLink===x.links[0].link),t.xp6(1),t.Oqu(x.links[0].name)}}const G4=function(){return{initial:!1}};function Z4(K,T){if(1&K){const x=t.EpF();t.TgZ(0,"div",11),t.NdJ("click",function(){t.CHM(x);const ge=t.oxw();return t.KtG(ge.activeLink=ge.links[1].link)}),t._uU(1),t.qZA()}if(2&K){const x=t.oxw();t.s9C("routerLink",x.links[1].link),t.Q6J("active",x.activeLink===x.links[1].link)("state",t.DdM(4,G4)),t.xp6(1),t.Oqu(x.links[1].name)}}function h3(K,T){if(1&K){const x=t.EpF();t.TgZ(0,"div",10),t.NdJ("click",function(){t.CHM(x);const ge=t.oxw();return t.KtG(ge.activeLink=ge.links[2].link)}),t._uU(1),t.qZA()}if(2&K){const x=t.oxw();t.s9C("routerLink",x.links[2].link),t.Q6J("active",x.activeLink===x.links[2].link),t.xp6(1),t.Oqu(x.links[2].name)}}class N2{constructor(T,x,V){this.store=T,this.router=x,this.activatedRoute=V,this.faLayerGroup=fe.Krp,this.links=[{link:"loop",name:"Loop"},{link:"boltz",name:"Boltz"},{link:"peerswap",name:"Peerswap"}],this.activeLink="",this.unSubs=[new Gn.x,new Gn.x,new Gn.x]}ngOnInit(){const T=this.links.find(x=>this.router.url.includes(x.link));this.activeLink=T?T.link:this.links[0].link,this.router.events.pipe((0,ui.R)(this.unSubs[0]),(0,xr.h)(x=>x instanceof Ne.Av)).subscribe({next:x=>{const V=this.links.find(ge=>x.urlAfterRedirects.includes(ge.link));"CLN"===this.selNode.lnImplementation.toUpperCase()?this.activeLink=this.links[2].link:this.activeLink=V?V.link:this.links[0].link}}),this.store.select(st.dT).pipe((0,ui.R)(this.unSubs[1])).subscribe(x=>{this.selNode=x,"CLN"===this.selNode.lnImplementation.toUpperCase()&&(this.activeLink=this.links[2].link,this.router.navigate(["./"+this.activeLink],{relativeTo:this.activatedRoute}))})}ngOnDestroy(){this.unSubs.forEach(T=>{T.next(null),T.complete()})}static#e=this.\u0275fac=function(x){return new(x||N2)(t.Y36(Hn.yh),t.Y36(Ne.F0),t.Y36(Ne.gz))};static#t=this.\u0275cmp=t.Xpm({type:N2,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","",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(x,V){if(1&x&&(t.TgZ(0,"div",0)(1,"div",1),t._UZ(2,"fa-icon",2),t.TgZ(3,"span",3),t._uU(4,"Services"),t.qZA()()(),t.TgZ(5,"div",4)(6,"mat-card")(7,"mat-card-content",4)(8,"nav",5),t.YNc(9,F1,2,3,"div",6),t.YNc(10,Z4,2,5,"div",7),t.YNc(11,h3,2,3,"div",6),t.qZA(),t._UZ(12,"mat-tab-nav-panel",null,8),t.TgZ(14,"div",9),t._UZ(15,"router-outlet"),t.qZA()()()()),2&x){const ge=t.MAs(13);t.xp6(2),t.Q6J("icon",V.faLayerGroup),t.xp6(6),t.Q6J("tabPanel",ge),t.xp6(1),t.Q6J("ngIf","LND"===(null==V.selNode||null==V.selNode.lnImplementation?null:V.selNode.lnImplementation.toUpperCase())),t.xp6(1),t.Q6J("ngIf","LND"===(null==V.selNode||null==V.selNode.lnImplementation?null:V.selNode.lnImplementation.toUpperCase())),t.xp6(1),t.Q6J("ngIf","CLN"===(null==V.selNode||null==V.selNode.lnImplementation?null:V.selNode.lnImplementation.toUpperCase()))}},dependencies:[si.O5,Ot.BN,Vt.xw,Vt.Wh,Vt.yH,fn.a8,fn.dn,Un.BU,Un.sW,Un.Nj,Ne.lC,Ne.rH]})}const Rp=["form"];function Y4(K,T){1&K&&(t.TgZ(0,"mat-error"),t._uU(1,"Loop server URL is required."),t.qZA())}function Q4(K,T){1&K&&(t.TgZ(0,"mat-error"),t._uU(1,"Specify the loop server url with 'https://'."),t.qZA())}function Eu(K,T){1&K&&(t.TgZ(0,"mat-error"),t._uU(1,"Loop macaroon path is required."),t.qZA())}class Vl{constructor(T,x){this.logger=T,this.store=x,this.faInfoCircle=fe.sqG,this.enableLoop=!1,this.unSubs=[new Gn.x,new Gn.x]}ngOnInit(){this.store.select(st.dT).pipe((0,ui.R)(this.unSubs[0])).subscribe(T=>{this.selNode=T,this.enableLoop=!(!T.settings.swapServerUrl||""===T.settings.swapServerUrl.trim()),this.previousSelNode=JSON.parse(JSON.stringify(this.selNode)),this.logger.info(T)})}onEnableServiceChanged(T){this.enableLoop=T.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,Qt.jS)({payload:{uiMessage:Qe.m6.UPDATE_LOOP_SETTINGS,service:Qe.JX.LOOP,settings:{enable:this.enableLoop,serverUrl:this.selNode.settings.swapServerUrl,macaroonPath:this.selNode.authentication.swapMacaroonPath}}})),this.store.dispatch((0,di.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,Rn.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,Dn.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(T=>{T.next(),T.complete()})}static#e=this.\u0275fac=function(x){return new(x||Vl)(t.Y36(sn.mQ),t.Y36(Hn.yh))};static#t=this.\u0275cmp=t.Xpm({type:Vl,selectors:[["rtl-loop-service-settings"]],viewQuery:function(x,V){if(1&x&&t.Gf(Rp,7),2&x){let ge;t.iGM(ge=t.CRH())&&(V.form=ge.first)}},decls:34,vars:11,consts:[["fxLayout","column","fxFlex","100",3,"perfectScrollbar"],["fxFlex","100",1,"alert","alert-info","mt-1"],[1,"mr-1","alert-icon",3,"icon"],["href","https://github.com/lightninglabs/loop","target","_blank"],["fxLayout","column","fxFlex","100","fxLayoutAlign","start stretch",1,"settings-container","page-sub-title-container","mt-1"],["form","ngForm"],["fxLayout","column","fxFlex","50","fxLayoutAlign","start stretch"],["autoFocus","","tabindex","1","color","primary","name","loop",1,"mb-1",3,"ngModel","ngModelChange","change"],[1,"mb-2"],["matInput","","placeholder","Loop Server URL","type","text","id","swapServerUrl","name","srvrUrl","tabindex","2",3,"required","disabled","ngModel","ngModelChange"],["srvrUrl","ngModel"],[4,"ngIf"],["matInput","","placeholder","Loop Macaroon Path","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(x,V){if(1&x&&(t.TgZ(0,"div",0)(1,"div",1),t._UZ(2,"fa-icon",2),t.TgZ(3,"span"),t._uU(4,"Please ensure that "),t.TgZ(5,"strong"),t._uU(6,"loopd"),t.qZA(),t._uU(7," is running and accessible to RTL before enabling this service. Click "),t.TgZ(8,"strong")(9,"a",3),t._uU(10,"here"),t.qZA()(),t._uU(11," to learn more about the installation."),t.qZA()(),t.TgZ(12,"form",4,5)(14,"div",6)(15,"mat-slide-toggle",7),t.NdJ("ngModelChange",function(nt){return V.enableLoop=nt})("change",function(nt){return V.onEnableServiceChanged(nt)}),t._uU(16,"Enable Loop Service"),t.qZA(),t.TgZ(17,"mat-form-field",8)(18,"input",9,10),t.NdJ("ngModelChange",function(nt){return V.selNode.settings.swapServerUrl=nt}),t.qZA(),t.TgZ(20,"mat-hint"),t._uU(21,"Service url for loop server REST APIs, eg. https://localhost:8081"),t.qZA(),t.YNc(22,Y4,2,0,"mat-error",11),t.YNc(23,Q4,2,0,"mat-error",11),t.qZA(),t.TgZ(24,"mat-form-field")(25,"input",12),t.NdJ("ngModelChange",function(nt){return V.selNode.authentication.swapMacaroonPath=nt}),t.qZA(),t.TgZ(26,"mat-hint"),t._uU(27,"Path for the folder containing service 'loop.macaroon', eg. D:\\\\xyz\\\\AppData\\\\Local\\\\Loop\\\\testnet"),t.qZA(),t.YNc(28,Eu,2,0,"mat-error",11),t.qZA()()(),t.TgZ(29,"div",13)(30,"button",14),t.NdJ("click",function(){return V.onReset()}),t._uU(31,"Reset"),t.qZA(),t.TgZ(32,"button",15),t.NdJ("click",function(){return V.onUpdateService()}),t._uU(33,"Update"),t.qZA()()()),2&x){const ge=t.MAs(19);t.xp6(2),t.Q6J("icon",V.faInfoCircle),t.xp6(13),t.Q6J("ngModel",V.enableLoop),t.xp6(3),t.Q6J("required",V.enableLoop)("disabled",!V.enableLoop)("ngModel",V.selNode.settings.swapServerUrl),t.xp6(4),t.Q6J("ngIf",!V.selNode.settings.swapServerUrl&&V.enableLoop),t.xp6(1),t.Q6J("ngIf",(null==ge||null==ge.errors?null:ge.errors.invalid)&&V.enableLoop),t.xp6(2),t.Q6J("required",V.enableLoop)("disabled",!V.enableLoop)("ngModel",V.selNode.authentication.swapMacaroonPath),t.xp6(3),t.Q6J("ngIf",!V.selNode.authentication.swapMacaroonPath&&V.enableLoop)}},dependencies:[si.O5,qt._Y,qt.Fj,qt.JJ,qt.JL,qt.Q7,qt.On,qt.F,Ot.BN,Vt.xw,Vt.Wh,Vt.yH,An.lW,Sn.TO,Sn.KE,Sn.bx,Er.Nt,so.Rr,xi.$V,Si.h],styles:["h4[_ngcontent-%COMP%]{word-break:break-word}"]})}const F2=["form"];function t0(K,T){1&K&&(t.TgZ(0,"mat-error"),t._uU(1,"Boltz server URL is required."),t.qZA())}function Wl(K,T){1&K&&(t.TgZ(0,"mat-error"),t._uU(1,"Specify the boltz server url with 'https://'."),t.qZA())}function Bp(K,T){1&K&&(t.TgZ(0,"mat-error"),t._uU(1,"Boltz macaroon path is required."),t.qZA())}class fc{constructor(T,x){this.logger=T,this.store=x,this.faInfoCircle=fe.sqG,this.enableBoltz=!1,this.serverUrl="",this.macaroonPath="",this.unSubs=[new Gn.x,new Gn.x]}ngOnInit(){this.store.select(st.dT).pipe((0,ui.R)(this.unSubs[0])).subscribe(T=>{this.selNode=T,this.enableBoltz=!(!T.settings.boltzServerUrl||""===T.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(T)})}onEnableServiceChanged(T){this.enableBoltz=T.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,Qt.jS)({payload:{uiMessage:Qe.m6.UPDATE_BOLTZ_SETTINGS,service:Qe.JX.BOLTZ,settings:{enable:this.enableBoltz,serverUrl:this.serverUrl,macaroonPath:this.macaroonPath}}})),this.store.dispatch((0,di.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,Rn.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,Dn.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(T=>{T.next(),T.complete()})}static#e=this.\u0275fac=function(x){return new(x||fc)(t.Y36(sn.mQ),t.Y36(Hn.yh))};static#t=this.\u0275cmp=t.Xpm({type:fc,selectors:[["rtl-boltz-service-settings"]],viewQuery:function(x,V){if(1&x&&t.Gf(F2,7),2&x){let ge;t.iGM(ge=t.CRH())&&(V.form=ge.first)}},decls:34,vars:11,consts:[["fxLayout","column","fxFlex","100",3,"perfectScrollbar"],["fxFlex","100",1,"alert","alert-info","mt-1"],[1,"mr-1","alert-icon",3,"icon"],["href","https://lnd.docs.boltz.exchange/en/latest/","target","_blank"],["fxLayout","column","fxFlex","100","fxLayoutAlign","start stretch",1,"settings-container","page-sub-title-container","mt-1"],["form","ngForm"],["fxLayout","column","fxFlex","50","fxLayoutAlign","start stretch"],["autoFocus","","tabindex","1","color","primary","name","boltz",1,"mb-1",3,"ngModel","ngModelChange","change"],[1,"mb-2"],["matInput","","placeholder","Boltz Server URL","type","text","id","boltzServerUrl","name","srvrUrl","tabindex","2",3,"required","disabled","ngModel","ngModelChange"],["srvrUrl","ngModel"],[4,"ngIf"],["matInput","","placeholder","Boltz Macaroon Path","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(x,V){if(1&x&&(t.TgZ(0,"div",0)(1,"div",1),t._UZ(2,"fa-icon",2),t.TgZ(3,"span"),t._uU(4,"Please ensure that "),t.TgZ(5,"strong"),t._uU(6,"boltzd"),t.qZA(),t._uU(7," is running and accessible to RTL before enabling this service. Click "),t.TgZ(8,"strong")(9,"a",3),t._uU(10,"here"),t.qZA()(),t._uU(11," to learn more about the installation."),t.qZA()(),t.TgZ(12,"form",4,5)(14,"div",6)(15,"mat-slide-toggle",7),t.NdJ("ngModelChange",function(nt){return V.enableBoltz=nt})("change",function(nt){return V.onEnableServiceChanged(nt)}),t._uU(16,"Enable Boltz Service"),t.qZA(),t.TgZ(17,"mat-form-field",8)(18,"input",9,10),t.NdJ("ngModelChange",function(nt){return V.serverUrl=nt}),t.qZA(),t.TgZ(20,"mat-hint"),t._uU(21,"Service url for boltz server REST APIs, eg. https://localhost:9003"),t.qZA(),t.YNc(22,t0,2,0,"mat-error",11),t.YNc(23,Wl,2,0,"mat-error",11),t.qZA(),t.TgZ(24,"mat-form-field")(25,"input",12),t.NdJ("ngModelChange",function(nt){return V.macaroonPath=nt}),t.qZA(),t.TgZ(26,"mat-hint"),t._uU(27,"Path for the folder containing boltz 'admin.macaroon', eg. D:\\\\xyz\\\\AppData\\\\Boltz\\\\testnet"),t.qZA(),t.YNc(28,Bp,2,0,"mat-error",11),t.qZA()()(),t.TgZ(29,"div",13)(30,"button",14),t.NdJ("click",function(){return V.onReset()}),t._uU(31,"Reset"),t.qZA(),t.TgZ(32,"button",15),t.NdJ("click",function(){return V.onUpdateService()}),t._uU(33,"Update"),t.qZA()()()),2&x){const ge=t.MAs(19);t.xp6(2),t.Q6J("icon",V.faInfoCircle),t.xp6(13),t.Q6J("ngModel",V.enableBoltz),t.xp6(3),t.Q6J("required",V.enableBoltz)("disabled",!V.enableBoltz)("ngModel",V.serverUrl),t.xp6(4),t.Q6J("ngIf",(!V.serverUrl||""===V.serverUrl.trim())&&V.enableBoltz),t.xp6(1),t.Q6J("ngIf",(null==ge||null==ge.errors?null:ge.errors.invalid)&&V.enableBoltz),t.xp6(2),t.Q6J("required",V.enableBoltz)("disabled",!V.enableBoltz)("ngModel",V.macaroonPath),t.xp6(3),t.Q6J("ngIf",!V.macaroonPath&&V.enableBoltz)}},dependencies:[si.O5,qt._Y,qt.Fj,qt.JJ,qt.JL,qt.Q7,qt.On,qt.F,Ot.BN,Vt.xw,Vt.Wh,Vt.yH,An.lW,Sn.TO,Sn.KE,Sn.bx,Er.Nt,so.Rr,xi.$V,Si.h],styles:["h4[_ngcontent-%COMP%]{word-break:break-word}"]})}class n0{constructor(){}static#e=this.\u0275fac=function(x){return new(x||n0)};static#t=this.\u0275cmp=t.Xpm({type:n0,selectors:[["rtl-ln-services"]],decls:1,vars:0,template:function(x,V){1&x&&t._UZ(0,"router-outlet")},dependencies:[Ne.lC]})}var f3=m(2615),H1=m(1419),Kl=m(6060),H2=m(2197),wa=m(8711),pc=m(1294);function Np(K,T){if(1&K&&(t.TgZ(0,"mat-option",37),t._uU(1),t.qZA()),2&K){const x=T.$implicit,V=t.oxw();t.Q6J("value",x),t.xp6(1),t.Oqu(V.getLabel(x))}}function _c(K,T){1&K&&t._UZ(0,"mat-progress-bar",38)}function Du(K,T){1&K&&(t.TgZ(0,"th",39),t._uU(1,"State"),t.qZA())}function i0(K,T){if(1&K&&(t.TgZ(0,"td",40),t._uU(1),t.qZA()),2&K){const x=T.$implicit,V=t.oxw();t.xp6(1),t.Oqu(V.LoopStateEnum[null==x?null:x.state])}}function p3(K,T){1&K&&(t.TgZ(0,"th",39),t._uU(1,"Initiation Time"),t.qZA())}function _3(K,T){if(1&K&&(t.TgZ(0,"td",40),t._uU(1),t.ALo(2,"date"),t.qZA()),2&K){const x=T.$implicit;t.xp6(1),t.Oqu(t.xi3(2,1,(null==x?null:x.initiation_time)/1e6,"dd/MMM/y HH:mm"))}}function mc(K,T){1&K&&(t.TgZ(0,"th",39),t._uU(1,"Last Update Time"),t.qZA())}function a0(K,T){if(1&K&&(t.TgZ(0,"td",40),t._uU(1),t.ALo(2,"date"),t.qZA()),2&K){const x=T.$implicit;t.xp6(1),t.Oqu(t.xi3(2,1,(null==x?null:x.last_update_time)/1e6,"dd/MMM/y HH:mm"))}}function r0(K,T){1&K&&(t.TgZ(0,"th",41),t._uU(1,"Amount (Sats)"),t.qZA())}function m3(K,T){if(1&K&&(t.TgZ(0,"td",40)(1,"span",42),t._uU(2),t.ALo(3,"number"),t.qZA()()),2&K){const x=T.$implicit;t.xp6(2),t.Oqu(t.lcZ(3,1,null==x?null:x.amt))}}function g3(K,T){1&K&&(t.TgZ(0,"th",41),t._uU(1,"Cost Server (Sats)"),t.qZA())}function z2(K,T){if(1&K&&(t.TgZ(0,"td",40)(1,"span",42),t._uU(2),t.ALo(3,"number"),t.qZA()()),2&K){const x=T.$implicit;t.xp6(2),t.Oqu(t.lcZ(3,1,null==x?null:x.cost_server))}}function j4(K,T){1&K&&(t.TgZ(0,"th",41),t._uU(1,"Cost Offchain (Sats)"),t.qZA())}function q4(K,T){if(1&K&&(t.TgZ(0,"td",40)(1,"span",42),t._uU(2),t.ALo(3,"number"),t.qZA()()),2&K){const x=T.$implicit;t.xp6(2),t.Oqu(t.lcZ(3,1,null==x?null:x.cost_offchain))}}function X4(K,T){1&K&&(t.TgZ(0,"th",41),t._uU(1,"Cost Onchain (Sats)"),t.qZA())}function v3(K,T){if(1&K&&(t.TgZ(0,"td",40)(1,"span",42),t._uU(2),t.ALo(3,"number"),t.qZA()()),2&K){const x=T.$implicit;t.xp6(2),t.hij(" ",t.lcZ(3,1,null==x?null:x.cost_onchain)," ")}}function U2(K,T){1&K&&(t.TgZ(0,"th",39),t._uU(1,"HTLC Address"),t.qZA())}const s0=function(K){return{width:K}};function y3(K,T){if(1&K&&(t.TgZ(0,"td",40)(1,"span",43)(2,"span",44),t._uU(3),t.qZA()()()),2&K){const x=T.$implicit,V=t.oxw();t.xp6(1),t.Q6J("ngStyle",t.VKq(2,s0,V.screenSize===V.screenSizeEnum.XS?"10rem":V.colWidth)),t.xp6(2),t.Oqu(null==x?null:x.htlc_address)}}function V2(K,T){1&K&&(t.TgZ(0,"th",39),t._uU(1,"ID"),t.qZA())}function gc(K,T){if(1&K&&(t.TgZ(0,"td",40)(1,"span",43)(2,"span",44),t._uU(3),t.qZA()()()),2&K){const x=T.$implicit,V=t.oxw();t.xp6(1),t.Q6J("ngStyle",t.VKq(2,s0,V.screenSize===V.screenSizeEnum.XS?"10rem":V.colWidth)),t.xp6(2),t.Oqu(null==x?null:x.id)}}function J4(K,T){1&K&&(t.TgZ(0,"th",39),t._uU(1,"ID (Bytes)"),t.qZA())}function Au(K,T){if(1&K&&(t.TgZ(0,"td",40)(1,"span",43)(2,"span",44),t._uU(3),t.qZA()()()),2&K){const x=T.$implicit,V=t.oxw();t.xp6(1),t.Q6J("ngStyle",t.VKq(2,s0,V.screenSize===V.screenSizeEnum.XS?"10rem":V.colWidth)),t.xp6(2),t.Oqu(null==x?null:x.id_bytes)}}function oo(K,T){if(1&K){const x=t.EpF();t.TgZ(0,"th",45)(1,"div",46)(2,"mat-select",47),t._UZ(3,"mat-select-trigger"),t.TgZ(4,"mat-option",48),t.NdJ("click",function(){t.CHM(x);const ge=t.oxw();return t.KtG(ge.onDownloadCSV())}),t._uU(5,"Download CSV"),t.qZA()()()()}}function Tu(K,T){if(1&K){const x=t.EpF();t.TgZ(0,"td",49)(1,"button",50),t.NdJ("click",function(ge){const kt=t.CHM(x).$implicit,jt=t.oxw();return t.KtG(jt.onSwapClick(kt,ge))}),t._uU(2,"View Info"),t.qZA()()}}function wu(K,T){if(1&K&&(t.TgZ(0,"p"),t._uU(1),t.qZA()),2&K){const x=t.oxw(2);t.xp6(1),t.Oqu(x.emptyTableMessage)}}function W2(K,T){if(1&K&&(t.TgZ(0,"td",51),t.YNc(1,wu,2,1,"p",52),t.qZA()),2&K){const x=t.oxw();t.xp6(1),t.Q6J("ngIf",!(null!=x.listSwaps&&x.listSwaps.data)||(null==x.listSwaps||null==x.listSwaps.data?null:x.listSwaps.data.length)<1)}}const us=function(K){return{"display-none":K}};function vc(K,T){if(1&K&&t._UZ(0,"tr",53),2&K){const x=t.oxw();t.Q6J("ngClass",t.VKq(1,us,(null==x.listSwaps?null:x.listSwaps.data)&&(null==x.listSwaps||null==x.listSwaps.data?null:x.listSwaps.data.length)>0))}}function Jc(K,T){1&K&&t._UZ(0,"tr",54)}function Iu(K,T){1&K&&t._UZ(0,"tr",55)}const Lu=function(){return["all"]},jr=function(K){return{"overflow-auto error-border":K,"overflow-auto":!0}},Su=function(){return["no_swap"]};class z1{constructor(T,x,V,ge,nt,kt){this.logger=T,this.commonService=x,this.store=V,this.loopService=ge,this.datePipe=nt,this.camelCaseWithReplace=kt,this.selectedSwapType=Qe.$I.LOOP_OUT,this.swapsData=[],this.flgLoading=[!0],this.emptyTableMessage="No swaps available.",this.nodePageDefs=Qe.hG,this.selFilterBy="all",this.colWidth="20rem",this.PAGE_ID="loop",this.tableSetting={tableId:"loop",recordsPerPage:Qe.IV,sortBy:"initiation_time",sortOrder:Qe.Pi.DESCENDING},this.LoopStateEnum=Qe.Fq,this.faHistory=fe.qO$,this.swapCaption="Loop Out",this.displayedColumns=[],this.listSwaps=new wa.by([]),this.selFilter="",this.pageSize=Qe.IV,this.pageSizeOptions=Qe.TJ,this.screenSize="",this.screenSizeEnum=Qe.cu,this.unSubs=[new Gn.x,new Gn.x,new Gn.x],this.screenSize=this.commonService.getScreenSize()}ngOnInit(){this.store.select(Nl.Pr).pipe((0,ui.R)(this.unSubs[0])).subscribe(T=>{this.tableSetting=T.pageSettings.find(x=>x.pageId===this.PAGE_ID)?.tables.find(x=>x.tableId===this.tableSetting.tableId)||Qe.gK.find(x=>x.pageId===this.PAGE_ID)?.tables.find(x=>x.tableId===this.tableSetting.tableId),this.screenSize===Qe.cu.XS||this.screenSize===Qe.cu.SM?this.displayedColumns=JSON.parse(JSON.stringify(this.tableSetting.columnSelectionSM)):this.displayedColumns=JSON.parse(JSON.stringify(this.tableSetting.columnSelection)),this.displayedColumns.push("actions"),this.pageSize=this.tableSetting.recordsPerPage?+this.tableSetting.recordsPerPage:Qe.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/10+"rem":"20rem",this.logger.info(this.displayedColumns)})}ngAfterViewInit(){this.swapsData&&this.swapsData.length>0&&this.loadSwapsTable(this.swapsData)}ngOnChanges(T){this.swapCaption=this.selectedSwapType===Qe.$I.LOOP_IN?"Loop In":"Loop Out",this.loadSwapsTable(this.swapsData)}applyFilter(){this.listSwaps.filter=this.selFilter.trim().toLowerCase()}getLabel(T){const x=this.nodePageDefs[this.PAGE_ID][this.tableSetting.tableId].allowedColumns.find(V=>V.column===T);return x?x.label?x.label:this.camelCaseWithReplace.transform(x.column,"_"):this.commonService.titleCase(T)}setFilterPredicate(){this.listSwaps.filterPredicate=(T,x)=>{let V="";switch(this.selFilterBy){case"all":V=JSON.stringify(T).toLowerCase();break;case"state":V=T?.state?this.LoopStateEnum[T?.state]:"";break;case"initiation_time":case"last_update_time":V=this.datePipe.transform(new Date((T[this.selFilterBy]||0)/1e6),"dd/MMM/y HH:mm")?.toLowerCase()||"";break;default:V=typeof T[this.selFilterBy]>"u"?"":"string"==typeof T[this.selFilterBy]?T[this.selFilterBy].toLowerCase():"boolean"==typeof T[this.selFilterBy]?T[this.selFilterBy]?"yes":"no":T[this.selFilterBy].toString()}return"state"===this.selFilterBy?0===V.indexOf(x):V.includes(x)}}onSwapClick(T,x){this.loopService.getSwap(T.id_bytes?.replace(/\//g,"_")?.replace(/\+/g,"-")||"").pipe((0,ui.R)(this.unSubs[1])).subscribe(V=>{const ge=[[{key:"state",value:Qe.Fq[V.state||""],title:"Status",width:50,type:Qe.Gi.STRING},{key:"amt",value:V.amt,title:"Amount (Sats)",width:50,type:Qe.Gi.NUMBER}],[{key:"initiation_time",value:(V.initiation_time||0)/1e9,title:"Initiation Time",width:50,type:Qe.Gi.DATE_TIME},{key:"last_update_time",value:(V.last_update_time||0)/1e9,title:"Last Update Time",width:50,type:Qe.Gi.DATE_TIME}],[{key:"cost_server",value:V.cost_server,title:"Server Cost (Sats)",width:33,type:Qe.Gi.NUMBER},{key:"cost_offchain",value:V.cost_offchain,title:"Offchain Cost (Sats)",width:33,type:Qe.Gi.NUMBER},{key:"cost_onchain",value:V.cost_onchain,title:"Onchain Cost (Sats)",width:34,type:Qe.Gi.NUMBER}],[{key:"id_bytes",value:V.id_bytes,title:"ID",width:100,type:Qe.Gi.STRING}],[{key:"htlc_address",value:V.htlc_address,title:"HTLC Address",width:100,type:Qe.Gi.STRING}]];this.store.dispatch((0,Qt.qR)({payload:{data:{type:Qe.n_.INFORMATION,alertTitle:this.swapCaption+" Status",message:ge,openedBy:"SWAP"}}}))})}loadSwapsTable(T){this.listSwaps=new wa.by([...T]),this.listSwaps.sort=this.sort,this.listSwaps.sortingDataAccessor=(x,V)=>x[V]&&isNaN(x[V])?x[V].toLocaleLowerCase():x[V]?+x[V]:null,this.listSwaps.sort?.sort({id:this.tableSetting.sortBy,start:this.tableSetting.sortOrder,disableClear:!0}),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===Qe.$I.LOOP_IN?"Loop in":"Loop out")}ngOnDestroy(){this.unSubs.forEach(T=>{T.next(null),T.complete()})}static#e=this.\u0275fac=function(x){return new(x||z1)(t.Y36(sn.mQ),t.Y36(ta.v),t.Y36(Hn.yh),t.Y36(H1.W),t.Y36(si.uU),t.Y36($d.D3))};static#t=this.\u0275cmp=t.Xpm({type:z1,selectors:[["rtl-swaps"]],viewQuery:function(x,V){if(1&x&&(t.Gf(H2.YE,5),t.Gf(Kl.NW,5)),2&x){let ge;t.iGM(ge=t.CRH())&&(V.sort=ge.first),t.iGM(ge=t.CRH())&&(V.paginator=ge.first)}},inputs:{selectedSwapType:"selectedSwapType",swapsData:"swapsData",flgLoading:"flgLoading",emptyTableMessage:"emptyTableMessage"},features:[t._Bn([{provide:Kl.ye,useValue:(0,Qe.pt)("Swaps")}]),t.TTD],decls:56,vars:18,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"],["fxFlex","49"],["placeholder","Filter By","tabindex","1","name","filterBy",3,"ngModel","ngModelChange","selectionChange"],[3,"value",4,"ngFor","ngForOf"],["matInput","","name","filter","placeholder","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,"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-cellcolspan","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","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-cellcolspan","4"],[4,"ngIf"],["mat-footer-row","",3,"ngClass"],["mat-header-row",""],["mat-row",""]],template:function(x,V){1&x&&(t.TgZ(0,"div",0)(1,"div",1)(2,"div",2),t._UZ(3,"fa-icon",3),t.TgZ(4,"span",4),t._uU(5),t.qZA()(),t.TgZ(6,"div",5)(7,"mat-form-field",6)(8,"mat-select",7),t.NdJ("ngModelChange",function(nt){return V.selFilterBy=nt})("selectionChange",function(){return V.selFilter="",V.applyFilter()}),t.YNc(9,Np,2,2,"mat-option",8),t.qZA()(),t.TgZ(10,"mat-form-field",6)(11,"input",9),t.NdJ("ngModelChange",function(nt){return V.selFilter=nt})("input",function(){return V.applyFilter()})("keyup",function(){return V.applyFilter()}),t.qZA()()()(),t.TgZ(12,"div",10)(13,"div",11),t.YNc(14,_c,1,0,"mat-progress-bar",12),t.TgZ(15,"table",13,14),t.ynx(17,15),t.YNc(18,Du,2,0,"th",16),t.YNc(19,i0,2,1,"td",17),t.BQk(),t.ynx(20,18),t.YNc(21,p3,2,0,"th",16),t.YNc(22,_3,3,4,"td",17),t.BQk(),t.ynx(23,19),t.YNc(24,mc,2,0,"th",16),t.YNc(25,a0,3,4,"td",17),t.BQk(),t.ynx(26,20),t.YNc(27,r0,2,0,"th",21),t.YNc(28,m3,4,3,"td",17),t.BQk(),t.ynx(29,22),t.YNc(30,g3,2,0,"th",21),t.YNc(31,z2,4,3,"td",17),t.BQk(),t.ynx(32,23),t.YNc(33,j4,2,0,"th",21),t.YNc(34,q4,4,3,"td",17),t.BQk(),t.ynx(35,24),t.YNc(36,X4,2,0,"th",21),t.YNc(37,v3,4,3,"td",17),t.BQk(),t.ynx(38,25),t.YNc(39,U2,2,0,"th",16),t.YNc(40,y3,4,4,"td",17),t.BQk(),t.ynx(41,26),t.YNc(42,V2,2,0,"th",16),t.YNc(43,gc,4,4,"td",17),t.BQk(),t.ynx(44,27),t.YNc(45,J4,2,0,"th",16),t.YNc(46,Au,4,4,"td",17),t.BQk(),t.ynx(47,28),t.YNc(48,oo,6,0,"th",29),t.YNc(49,Tu,3,0,"td",30),t.BQk(),t.ynx(50,31),t.YNc(51,W2,2,1,"td",32),t.BQk(),t.YNc(52,vc,1,3,"tr",33),t.YNc(53,Jc,1,0,"tr",34),t.YNc(54,Iu,1,0,"tr",35),t.qZA(),t._UZ(55,"mat-paginator",36),t.qZA()()()),2&x&&(t.xp6(3),t.Q6J("icon",V.faHistory),t.xp6(2),t.hij("",V.swapCaption," History"),t.xp6(3),t.Q6J("ngModel",V.selFilterBy),t.xp6(1),t.Q6J("ngForOf",t.DdM(14,Lu).concat(V.displayedColumns.slice(0,-1))),t.xp6(2),t.Q6J("ngModel",V.selFilter),t.xp6(3),t.Q6J("ngIf",!0===V.flgLoading[0]),t.xp6(1),t.Q6J("dataSource",V.listSwaps)("ngClass",t.VKq(15,jr,"error"===V.flgLoading[0])),t.xp6(37),t.Q6J("matFooterRowDef",t.DdM(17,Su)),t.xp6(1),t.Q6J("matHeaderRowDef",V.displayedColumns),t.xp6(1),t.Q6J("matRowDefColumns",V.displayedColumns),t.xp6(1),t.Q6J("pageSize",V.pageSize)("pageSizeOptions",V.pageSizeOptions)("showFirstLastButtons",V.screenSize!==V.screenSizeEnum.XS))},dependencies:[si.mk,si.sg,si.O5,si.PC,qt.Fj,qt.JJ,qt.On,Ot.BN,Vt.xw,Vt.Wh,Vt.yH,Ea.oO,Ea.Zl,An.lW,Sn.KE,Er.Nt,pc.pW,Jn.gD,Jn.$L,oi.ey,H2.YE,H2.nU,wa.BZ,wa.fO,wa.as,wa.w1,wa.Dz,wa.nj,wa.mD,wa.Ke,wa.ge,wa.ev,wa.XQ,wa.Gk,wa.Q2,Kl.NW,xi.$V,si.JJ,si.uU]})}const ya=function(K){return["../",K]};function Ou(K,T){if(1&K){const x=t.EpF();t.TgZ(0,"div",11),t.NdJ("click",function(){const nt=t.CHM(x).$implicit,kt=t.oxw();return t.KtG(kt.onSelectedIndexChange(nt))}),t._uU(1),t.qZA()}if(2&K){const x=T.$implicit,V=t.oxw();t.Q6J("active",V.activeTab.link===x.link)("routerLink",t.VKq(3,ya,x.link)),t.xp6(1),t.Oqu(x.name)}}class Gl{constructor(T,x,V){this.router=T,this.loopService=x,this.store=V,this.faInfinity=fe.vqe,this.targetConf=2,this.inAmount=25e4,this.quotes=[],this.LoopTypeEnum=Qe.$I,this.selectedSwapType=Qe.$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 Gn.x,new Gn.x,new Gn.x,new Gn.x]}ngOnInit(){this.loopService.listSwaps();const T=this.links.find(x=>this.router.url.includes(x.link));this.activeTab=T||this.links[0],this.selectedSwapType=T&&"loopin"===T.link?Qe.$I.LOOP_IN:Qe.$I.LOOP_OUT,this.router.events.pipe((0,ui.R)(this.unSubs[0]),(0,xr.h)(x=>x instanceof Ne.Av)).subscribe({next:x=>{const V=this.links.find(ge=>x.urlAfterRedirects.includes(ge.link));this.activeTab=V||this.links[0],this.selectedSwapType=V&&"loopin"===V.link?Qe.$I.LOOP_IN:Qe.$I.LOOP_OUT}}),this.loopService.swapsChanged.pipe((0,ui.R)(this.unSubs[1])).subscribe({next:x=>{this.flgLoading[0]=!1,this.storedSwaps=x,this.filteredSwaps=this.storedSwaps?.filter(V=>V.type===this.selectedSwapType)},error:x=>{this.flgLoading[0]="error",this.emptyTableMessage=x.message?x.message:"No loop "+(this.selectedSwapType===Qe.$I.LOOP_IN?"in":"out")+" available."}})}onSelectedIndexChange(T){this.selectedSwapType="loopin"===T.link?Qe.$I.LOOP_IN:Qe.$I.LOOP_OUT,this.filteredSwaps=this.storedSwaps?.filter(x=>x.type===this.selectedSwapType)}onLoop(T){T===Qe.$I.LOOP_IN?this.loopService.getLoopInTermsAndQuotes(this.targetConf).pipe((0,ui.R)(this.unSubs[2])).subscribe({next:x=>{this.store.dispatch((0,Qt.qR)({payload:{data:{minQuote:x[0],maxQuote:x[1],direction:T,component:f3.a}}}))}}):this.loopService.getLoopOutTermsAndQuotes(this.targetConf).pipe((0,ui.R)(this.unSubs[3])).subscribe({next:x=>{this.store.dispatch((0,Qt.qR)({payload:{data:{minQuote:x[0],maxQuote:x[1],direction:T,component:f3.a}}}))}})}ngOnDestroy(){this.unSubs.forEach(T=>{T.next(null),T.complete()})}static#e=this.\u0275fac=function(x){return new(x||Gl)(t.Y36(Ne.F0),t.Y36(H1.W),t.Y36(Hn.yh))};static#t=this.\u0275cmp=t.Xpm({type:Gl,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","",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(x,V){if(1&x&&(t.TgZ(0,"div",0),t._UZ(1,"fa-icon",1),t.TgZ(2,"span",2),t._uU(3,"Loop"),t.qZA()(),t.TgZ(4,"div",3)(5,"mat-card")(6,"mat-card-content",4)(7,"nav",5),t.YNc(8,Ou,2,5,"div",6),t.qZA(),t._UZ(9,"mat-tab-nav-panel",null,7),t.TgZ(11,"div",8)(12,"button",9),t.NdJ("click",function(){return V.onLoop(V.selectedSwapType)}),t._uU(13),t.qZA()(),t._UZ(14,"rtl-swaps",10),t.qZA()()()),2&x){const ge=t.MAs(10);t.xp6(1),t.Q6J("icon",V.faInfinity),t.xp6(6),t.Q6J("tabPanel",ge),t.xp6(1),t.Q6J("ngForOf",V.links),t.xp6(5),t.hij("Start ",V.activeTab.name,""),t.xp6(1),t.Q6J("selectedSwapType",V.selectedSwapType)("swapsData",V.filteredSwaps)("flgLoading",V.flgLoading)("emptyTableMessage",V.emptyTableMessage)}},dependencies:[si.sg,Ot.BN,Vt.xw,Vt.Wh,Vt.yH,An.lW,fn.a8,fn.dn,Un.BU,Un.sW,Un.Nj,Ne.rH,z1]})}var $c=m(7772),o0=m(6317),K2=m(5474),G2=m(3158),Bs=m(2340),l0=m(1786);class yo{constructor(T,x,V,ge){this.httpClient=T,this.logger=x,this.store=V,this.commonService=ge,this.swapUrl="",this.swaps={},this.swapsChanged=new o0.X({}),this.unSubs=[new Gn.x,new Gn.x,new Gn.x]}getSwapsList(){return this.swaps}listSwaps(){this.store.dispatch((0,Qt.ac)({payload:Qe.m6.GET_BOLTZ_SWAPS})),this.swapUrl=Bs.T5+Bs.NZ.BOLTZ_API+"/listSwaps",this.httpClient.get(this.swapUrl).pipe((0,ui.R)(this.unSubs[0])).subscribe({next:T=>{this.store.dispatch((0,Qt.uO)({payload:Qe.m6.GET_BOLTZ_SWAPS})),this.swaps=T,this.swapsChanged.next(this.swaps)},error:T=>this.swapsChanged.error(this.handleErrorWithAlert(Qe.m6.GET_BOLTZ_SWAPS,this.swapUrl,T))})}swapInfo(T){return this.swapUrl=Bs.T5+Bs.NZ.BOLTZ_API+"/swapInfo/"+T,this.httpClient.get(this.swapUrl).pipe((0,G2.K)(x=>(0,Po.of)(this.handleErrorWithAlert(Qe.m6.NO_SPINNER,this.swapUrl,x))))}serviceInfo(){return this.store.dispatch((0,Qt.ac)({payload:Qe.m6.GET_SERVICE_INFO})),this.swapUrl=Bs.T5+Bs.NZ.BOLTZ_API+"/serviceInfo",this.httpClient.get(this.swapUrl).pipe((0,ui.R)(this.unSubs[1]),(0,ys.U)(T=>(this.store.dispatch((0,Qt.uO)({payload:Qe.m6.GET_SERVICE_INFO})),T)),(0,G2.K)(T=>(0,Po.of)(this.handleErrorWithAlert(Qe.m6.GET_SERVICE_INFO,this.swapUrl,T))))}swapOut(T,x){const V={amount:T,address:x};return this.swapUrl=Bs.T5+Bs.NZ.BOLTZ_API+"/createreverseswap",this.httpClient.post(this.swapUrl,V).pipe((0,G2.K)(ge=>this.handleErrorWithoutAlert("Swap Out for Address: "+x,Qe.m6.NO_SPINNER,ge)))}swapIn(T){const x={amount:T};return this.swapUrl=Bs.T5+Bs.NZ.BOLTZ_API+"/createswap",this.httpClient.post(this.swapUrl,x).pipe((0,G2.K)(V=>this.handleErrorWithoutAlert("Swap In for Amount: "+T,Qe.m6.NO_SPINNER,V)))}handleErrorWithoutAlert(T,x,V){let ge="";return this.logger.error("ERROR IN: "+T+"\n"+JSON.stringify(V)),this.store.dispatch((0,Qt.uO)({payload:x})),401===V.status?(ge="Unauthorized User.",this.logger.info("Redirecting to Login"),this.store.dispatch((0,Qt.kS)())):503===V.status?(ge="Unable to Connect to Boltz Server.",this.store.dispatch((0,Qt.qR)({payload:{data:{type:"ERROR",alertTitle:"Boltz Not Connected",message:{code:V.status,message:"Unable to Connect to Boltz Server",URL:T},component:l0.H}}}))):ge=this.commonService.extractErrorMessage(V),(0,K2._)(()=>new Error(ge))}handleErrorWithAlert(T,x,V){let ge="";if(401===V.status&&(this.logger.info("Redirecting to Login"),this.store.dispatch((0,Qt.kS)())),this.logger.error(V),this.store.dispatch((0,Qt.uO)({payload:T})),401===V.status)ge="Unauthorized User.",this.logger.info("Redirecting to Login"),this.store.dispatch((0,Qt.kS)());else if(503===V.status)ge="Unable to Connect to Boltz Server.",setTimeout(()=>{this.store.dispatch((0,Qt.qR)({payload:{data:{type:"ERROR",alertTitle:"Boltz Not Connected",message:{code:V.status,message:"Unable to Connect to Boltz Server",URL:x},component:l0.H}}}))},100);else{ge=this.commonService.extractErrorMessage(V);const nt=V.error&&V.error.error&&V.error.error.code?V.error.error.code:V.error&&V.error.code?V.error.code:V.code?V.code:V.status;setTimeout(()=>{this.store.dispatch((0,Qt.qR)({payload:{data:{type:Qe.n_.ERROR,alertTitle:"ERROR",message:{code:nt,message:ge,URL:x},component:l0.H}}}))},100)}return{message:ge}}ngOnDestroy(){this.unSubs.forEach(T=>{T.next(null),T.complete()})}static#e=this.\u0275fac=function(x){return new(x||yo)(t.LFG(Ba.eN),t.LFG(sn.mQ),t.LFG(Hn.yh),t.LFG(ta.v))};static#t=this.\u0275prov=t.Yz7({token:yo,factory:yo.\u0275fac})}function Pu(K,T){1&K&&t.GkF(0)}function b3(K,T){if(1&K&&(t.TgZ(0,"div",4)(1,"span",5),t._uU(2),t.qZA()()),2&K){const x=t.oxw();t.xp6(2),t.Oqu(null!=x.swapStatus&&x.swapStatus.error?null==x.swapStatus?null:x.swapStatus.error:"Unknown Error.")}}function c0(K,T){if(1&K&&(t.TgZ(0,"div",4)(1,"div",6)(2,"div",7)(3,"h4",8),t._uU(4,"ID"),t.qZA(),t.TgZ(5,"span",5),t._uU(6),t.qZA()(),t.TgZ(7,"div",7)(8,"h4",8),t._uU(9,"Routing Fee (mSats)"),t.qZA(),t.TgZ(10,"span",5),t._uU(11),t.ALo(12,"number"),t.qZA()()(),t._UZ(13,"mat-divider",9),t.TgZ(14,"div",6)(15,"div",7)(16,"h4",8),t._uU(17,"Claim Transaction ID"),t.qZA(),t.TgZ(18,"span",5),t._uU(19),t.qZA()(),t.TgZ(20,"div",7)(21,"h4",8),t._uU(22,"Lockup Address"),t.qZA(),t.TgZ(23,"span",5),t._uU(24),t.qZA()()()()),2&K){const x=t.oxw();t.xp6(6),t.Oqu(null==x.swapStatus?null:x.swapStatus.id),t.xp6(5),t.Oqu(t.lcZ(12,4,null==x.swapStatus?null:x.swapStatus.routingFeeMilliSat)),t.xp6(8),t.Oqu(null==x.swapStatus?null:x.swapStatus.claimTransactionId),t.xp6(5),t.Oqu(null==x.swapStatus?null:x.swapStatus.lockupAddress)}}function d0(K,T){if(1&K&&(t.TgZ(0,"div",4)(1,"div",6)(2,"div",7)(3,"h4",8),t._uU(4,"ID"),t.qZA(),t.TgZ(5,"span",5),t._uU(6),t.qZA()(),t.TgZ(7,"div",7)(8,"h4",8),t._uU(9,"Expected Amount (Sats)"),t.qZA(),t.TgZ(10,"span",5),t._uU(11),t.ALo(12,"number"),t.qZA()()(),t._UZ(13,"mat-divider",9),t.TgZ(14,"div",6)(15,"div",10)(16,"h4",8),t._uU(17,"Address"),t.qZA(),t.TgZ(18,"span",5),t._uU(19),t.qZA()()(),t._UZ(20,"mat-divider",9),t.TgZ(21,"div",6)(22,"div",10)(23,"h4",8),t._uU(24,"BIP 21"),t.qZA(),t.TgZ(25,"span",5),t._uU(26),t.qZA()()()()),2&K){const x=t.oxw();t.xp6(6),t.Oqu(null==x.swapStatus?null:x.swapStatus.id),t.xp6(5),t.Oqu(t.lcZ(12,4,null==x.swapStatus?null:x.swapStatus.expectedAmount)),t.xp6(8),t.Oqu(null==x.swapStatus?null:x.swapStatus.address),t.xp6(7),t.Oqu(null==x.swapStatus?null:x.swapStatus.bip21)}}class e1{constructor(){this.swapStatus=null,this.direction=Qe.hc.SWAP_OUT,this.swapTypeEnum=Qe.hc}static#e=this.\u0275fac=function(x){return new(x||e1)};static#t=this.\u0275cmp=t.Xpm({type:e1,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(x,V){if(1&x&&(t.YNc(0,Pu,1,0,"ng-container",0),t.YNc(1,b3,3,1,"ng-template",null,1,t.W1O),t.YNc(3,c0,25,6,"ng-template",null,2,t.W1O),t.YNc(5,d0,27,6,"ng-template",null,3,t.W1O)),2&x){const ge=t.MAs(2),nt=t.MAs(4),kt=t.MAs(6);t.Q6J("ngTemplateOutlet",null!=V.swapStatus&&V.swapStatus.error?ge:V.direction===V.swapTypeEnum.SWAP_OUT?nt:kt)}},dependencies:[si.tP,Vt.xw,Vt.Wh,Vt.yH,io.d,si.JJ]})}class u0{constructor(){this.serviceInfo={},this.direction=Qe.hc.SWAP_OUT,this.swapTypeEnum=Qe.hc}static#e=this.\u0275fac=function(x){return new(x||u0)};static#t=this.\u0275cmp=t.Xpm({type:u0,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(x,V){1&x&&(t.TgZ(0,"mat-expansion-panel",0)(1,"mat-expansion-panel-header")(2,"mat-panel-title")(3,"span",1),t._uU(4,"Service Information"),t.qZA()()(),t.TgZ(5,"div",2)(6,"div",3)(7,"div",4)(8,"h4",5),t._uU(9,"Minimum Amount (Sats)"),t.qZA(),t.TgZ(10,"span",6),t._uU(11),t.ALo(12,"number"),t.qZA()(),t.TgZ(13,"div",4)(14,"h4",5),t._uU(15,"Maximum Amount (Sats)"),t.qZA(),t.TgZ(16,"span",6),t._uU(17),t.ALo(18,"number"),t.qZA()()(),t._UZ(19,"mat-divider",7),t.TgZ(20,"div",3)(21,"div",4)(22,"h4",5),t._uU(23,"Fee Percentage"),t.qZA(),t.TgZ(24,"span",6),t._uU(25),t.ALo(26,"number"),t.qZA()(),t.TgZ(27,"div",4)(28,"h4",5),t._uU(29,"Miner Fee (Sats)"),t.qZA(),t.TgZ(30,"span",6),t._uU(31),t.ALo(32,"number"),t.qZA()()()()()),2&x&&(t.Q6J("expanded",!0),t.xp6(11),t.Oqu(t.lcZ(12,5,null==V.serviceInfo||null==V.serviceInfo.limits?null:V.serviceInfo.limits.minimal)),t.xp6(6),t.Oqu(t.lcZ(18,7,null==V.serviceInfo||null==V.serviceInfo.limits?null:V.serviceInfo.limits.maximal)),t.xp6(8),t.Oqu(t.lcZ(26,9,null==V.serviceInfo||null==V.serviceInfo.fees?null:V.serviceInfo.fees.percentage)),t.xp6(6),t.Oqu(t.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:[Vt.xw,Vt.Wh,Vt.yH,zi.ib,zi.yz,zi.yK,io.d,si.JJ]})}var Zl=m(113);function h0(K,T){1&K&&t.GkF(0)}const yc=function(K,T){return{"small-svg":K,"large-svg":T}};function x3(K,T){if(1&K){const x=t.EpF();t.TgZ(0,"div",6),t.NdJ("swipe",function(ge){t.CHM(x);const nt=t.oxw();return t.KtG(nt.onSwipe(ge))}),t.O4$(),t.TgZ(1,"svg",7),t._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),t.qZA(),t.kcU(),t.TgZ(12,"div",18)(13,"mat-card-title"),t._uU(14,"Boltz Submarine Swaps explained."),t.qZA()(),t.TgZ(15,"div",19)(16,"mat-card-subtitle",20),t._uU(17," Boltz is a privacy-first account free exchange and a Lightning service provider. By doing a Submarine Swap on Boltz, you can swap your on-chain Bitcoin for Lightning Bitcoin. "),t.qZA()()()}if(2&K){const x=t.oxw();t.Q6J("@sliderAnimation",x.animationDirection),t.xp6(1),t.Q6J("ngClass",t.WLB(2,yc,x.screenSize===x.screenSizeEnum.XS,x.screenSize!==x.screenSizeEnum.XS))}}function Z2(K,T){if(1&K){const x=t.EpF();t.TgZ(0,"div",6),t.NdJ("swipe",function(ge){t.CHM(x);const nt=t.oxw();return t.KtG(nt.onSwipe(ge))}),t.O4$(),t.TgZ(1,"svg",21),t._UZ(2,"path",22)(3,"path",23)(4,"path",24)(5,"path",25)(6,"path",26)(7,"path",27)(8,"path",28),t.qZA(),t.kcU(),t.TgZ(9,"div",18)(10,"mat-card-title"),t._uU(11,"Step 1: Deciding to Submarine Swap"),t.qZA()(),t.TgZ(12,"div",19)(13,"mat-card-subtitle",20),t._uU(14," You have one or more Lightning channels that are running low on outbound liquidity and you want to fund it using your on-chain Bitcoin. "),t.qZA()()()}if(2&K){const x=t.oxw();t.Q6J("@sliderAnimation",x.animationDirection),t.xp6(1),t.Q6J("ngClass",t.WLB(2,yc,x.screenSize===x.screenSizeEnum.XS,x.screenSize!==x.screenSizeEnum.XS))}}function C3(K,T){if(1&K){const x=t.EpF();t.TgZ(0,"div",6),t.NdJ("swipe",function(ge){t.CHM(x);const nt=t.oxw();return t.KtG(nt.onSwipe(ge))}),t.O4$(),t.TgZ(1,"svg",29),t._UZ(2,"path",30)(3,"path",31)(4,"path",32)(5,"path",33)(6,"path",34)(7,"circle",35)(8,"rect",36),t.TgZ(9,"defs")(10,"pattern",37),t._UZ(11,"use",38),t.qZA(),t._UZ(12,"image",39),t.qZA()(),t.kcU(),t.TgZ(13,"div",18)(14,"mat-card-title"),t._uU(15,"Step 2: Sending the on-chain funds"),t.qZA()(),t.TgZ(16,"div",19)(17,"mat-card-subtitle",20),t._uU(18," You send the on-chain funds to an address which can only be spent by Boltz when it pays a Lightning invoice to your node. "),t.qZA()()()}if(2&K){const x=t.oxw();t.Q6J("@sliderAnimation",x.animationDirection),t.xp6(1),t.Q6J("ngClass",t.WLB(2,yc,x.screenSize===x.screenSizeEnum.XS,x.screenSize!==x.screenSizeEnum.XS))}}function ku(K,T){if(1&K){const x=t.EpF();t.TgZ(0,"div",6),t.NdJ("swipe",function(ge){t.CHM(x);const nt=t.oxw();return t.KtG(nt.onSwipe(ge))}),t.O4$(),t.TgZ(1,"svg",40)(2,"g",41),t._UZ(3,"path",42)(4,"path",43)(5,"path",44)(6,"path",45)(7,"path",46),t.qZA(),t.TgZ(8,"defs")(9,"clipPath",47),t._UZ(10,"rect",48),t.qZA()()(),t.kcU(),t.TgZ(11,"div",18)(12,"mat-card-title"),t._uU(13,"Step 3: Receiving the funds on Lightning"),t.qZA()(),t.TgZ(14,"div",19)(15,"mat-card-subtitle",20),t._uU(16," Boltz pays the Lightning invoice to your node and claims the on-chain funds locked in the previous step. "),t.qZA()()()}if(2&K){const x=t.oxw();t.Q6J("@sliderAnimation",x.animationDirection),t.xp6(1),t.Q6J("ngClass",t.WLB(2,yc,x.screenSize===x.screenSizeEnum.XS,x.screenSize!==x.screenSizeEnum.XS))}}function M3(K,T){if(1&K){const x=t.EpF();t.TgZ(0,"div",6),t.NdJ("swipe",function(ge){t.CHM(x);const nt=t.oxw();return t.KtG(nt.onSwipe(ge))}),t.O4$(),t.TgZ(1,"svg",49),t._UZ(2,"path",50)(3,"path",51)(4,"path",52)(5,"path",53)(6,"path",54),t.qZA(),t.kcU(),t.TgZ(7,"div",18)(8,"mat-card-title"),t._uU(9,"Done!"),t.qZA()(),t.TgZ(10,"div",19)(11,"mat-card-subtitle",20),t._uU(12," You swapped your on-chain Bitcoin for Lightning Bitcoin, while also adding outbound capacity for your channels in the process - all in a non-custodial manner. "),t.qZA()()()}if(2&K){const x=t.oxw();t.Q6J("@sliderAnimation",x.animationDirection),t.xp6(1),t.Q6J("ngClass",t.WLB(2,yc,x.screenSize===x.screenSizeEnum.XS,x.screenSize!==x.screenSizeEnum.XS))}}class t1{constructor(T){this.commonService=T,this.animationDirection="forward",this.stepNumber=1,this.stepNumberChange=new t.vpe,this.screenSize="",this.screenSizeEnum=Qe.cu}ngOnInit(){this.screenSize=this.commonService.getScreenSize()}onSwipe(T){2===T.direction&&this.stepNumber<5?(this.stepNumber++,this.animationDirection="forward",this.stepNumberChange.emit(this.stepNumber)):4===T.direction&&this.stepNumber>1&&(this.stepNumber--,this.animationDirection="backward",this.stepNumberChange.emit(this.stepNumber))}static#e=this.\u0275fac=function(x){return new(x||t1)(t.Y36(ta.v))};static#t=this.\u0275cmp=t.Xpm({type:t1,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(x,V){if(1&x&&(t.YNc(0,h0,1,0,"ng-container",0),t.YNc(1,x3,18,5,"ng-template",null,1,t.W1O),t.YNc(3,Z2,15,5,"ng-template",null,2,t.W1O),t.YNc(5,C3,19,5,"ng-template",null,3,t.W1O),t.YNc(7,ku,17,5,"ng-template",null,4,t.W1O),t.YNc(9,M3,13,5,"ng-template",null,5,t.W1O)),2&x){const ge=t.MAs(2),nt=t.MAs(4),kt=t.MAs(6),jt=t.MAs(8),on=t.MAs(10);t.Q6J("ngTemplateOutlet",1===V.stepNumber?ge:2===V.stepNumber?nt:3===V.stepNumber?kt:4===V.stepNumber?jt:on)}},dependencies:[si.mk,si.tP,Vt.xw,Vt.Wh,Vt.yH,Ea.oO,fn.n5,fn.$j],styles:["svg.small-svg[_ngcontent-%COMP%]{height:50%;min-height:50%;max-width:100%}svg.large-svg[_ngcontent-%COMP%]{height:60%;min-height:60%;max-width:100%}"],data:{animation:[Zl.l]}})}function E3(K,T){1&K&&t.GkF(0)}const U1=function(K,T){return{"small-svg":K,"large-svg":T}};function f0(K,T){if(1&K){const x=t.EpF();t.TgZ(0,"div",6),t.NdJ("swipe",function(ge){t.CHM(x);const nt=t.oxw();return t.KtG(nt.onSwipe(ge))}),t.O4$(),t.TgZ(1,"svg",7),t._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),t.qZA(),t.kcU(),t.TgZ(12,"div",18)(13,"mat-card-title"),t._uU(14,"Boltz Reverse Submarine Swap explained."),t.qZA()(),t.TgZ(15,"div",19)(16,"mat-card-subtitle",20),t._uU(17," Boltz is a privacy-first account free exchange and a Lightning Service Provider. By doing a Reverse Submarine Swap on Boltz, you can swap your Lightning Bitcoin for on-chain Bitcoin. "),t.qZA()()()}if(2&K){const x=t.oxw();t.Q6J("@sliderAnimation",x.animationDirection),t.xp6(1),t.Q6J("ngClass",t.WLB(2,U1,x.screenSize===x.screenSizeEnum.XS,x.screenSize!==x.screenSizeEnum.XS))}}function Y2(K,T){if(1&K){const x=t.EpF();t.TgZ(0,"div",6),t.NdJ("swipe",function(ge){t.CHM(x);const nt=t.oxw();return t.KtG(nt.onSwipe(ge))}),t.O4$(),t.TgZ(1,"svg",21)(2,"g",22),t._UZ(3,"path",23)(4,"path",24)(5,"path",25)(6,"path",26)(7,"path",27)(8,"path",28),t.qZA(),t._UZ(9,"path",29),t.TgZ(10,"defs")(11,"clipPath",30),t._UZ(12,"rect",31),t.qZA()()(),t.kcU(),t.TgZ(13,"div",18)(14,"mat-card-title"),t._uU(15,"Step 1: Deciding to Reverse Submarine Swap"),t.qZA()(),t.TgZ(16,"div",19)(17,"mat-card-subtitle",20),t._uU(18," You have one or more channels that are running low on inbound capacity or you want to move some of your Lightning Bitcoin to your onchain wallet. "),t.qZA()()()}if(2&K){const x=t.oxw();t.Q6J("@sliderAnimation",x.animationDirection),t.xp6(1),t.Q6J("ngClass",t.WLB(2,U1,x.screenSize===x.screenSizeEnum.XS,x.screenSize!==x.screenSizeEnum.XS))}}function Ru(K,T){if(1&K){const x=t.EpF();t.TgZ(0,"div",6),t.NdJ("swipe",function(ge){t.CHM(x);const nt=t.oxw();return t.KtG(nt.onSwipe(ge))}),t.O4$(),t.TgZ(1,"svg",32),t._UZ(2,"path",33)(3,"path",34)(4,"path",35)(5,"path",36)(6,"path",37)(7,"circle",38)(8,"rect",39),t.TgZ(9,"defs")(10,"pattern",40),t._UZ(11,"use",41),t.qZA(),t._UZ(12,"image",42),t.qZA()(),t.kcU(),t.TgZ(13,"div",18)(14,"mat-card-title"),t._uU(15,"Step 2: Paying the Lightning Invoice"),t.qZA()(),t.TgZ(16,"div",19)(17,"mat-card-subtitle",20),t._uU(18," Your Boltz client generates a secret which is sent to Boltz. In return Boltz sends a Lightning invoice based on that secret. Your Lightning node pays that invoice which moves some of your local balance to the other side of the channel. "),t.qZA()()()}if(2&K){const x=t.oxw();t.Q6J("@sliderAnimation",x.animationDirection),t.xp6(1),t.Q6J("ngClass",t.WLB(2,U1,x.screenSize===x.screenSizeEnum.XS,x.screenSize!==x.screenSizeEnum.XS))}}function p0(K,T){if(1&K){const x=t.EpF();t.TgZ(0,"div",6),t.NdJ("swipe",function(ge){t.CHM(x);const nt=t.oxw();return t.KtG(nt.onSwipe(ge))}),t.O4$(),t.TgZ(1,"svg",43)(2,"g",22),t._UZ(3,"path",44)(4,"path",45)(5,"path",46)(6,"path",47)(7,"path",48),t.qZA(),t.TgZ(8,"defs")(9,"clipPath",30),t._UZ(10,"rect",49),t.qZA()()(),t.kcU(),t.TgZ(11,"div",18)(12,"mat-card-title"),t._uU(13,"Step 3: Receiving the funds on-chain"),t.qZA()(),t.TgZ(14,"div",19)(15,"mat-card-subtitle",20),t._uU(16," In return for paying the invoice, Boltz locks on-chain BTC. Your node claims that onchain BTC to your wallet and by doing that, reveals the secret. With that secret Boltz can settle the Lightning invoice paid by your node. "),t.qZA()()()}if(2&K){const x=t.oxw();t.Q6J("@sliderAnimation",x.animationDirection),t.xp6(1),t.Q6J("ngClass",t.WLB(2,U1,x.screenSize===x.screenSizeEnum.XS,x.screenSize!==x.screenSizeEnum.XS))}}function D3(K,T){if(1&K){const x=t.EpF();t.TgZ(0,"div",6),t.NdJ("swipe",function(ge){t.CHM(x);const nt=t.oxw();return t.KtG(nt.onSwipe(ge))}),t.O4$(),t.TgZ(1,"svg",50),t._UZ(2,"path",51)(3,"path",52)(4,"path",53)(5,"path",54)(6,"path",55),t.qZA(),t.kcU(),t.TgZ(7,"div",18)(8,"mat-card-title"),t._uU(9,"Done!"),t.qZA()(),t.TgZ(10,"div",19)(11,"mat-card-subtitle",20),t._uU(12," You have now successfully received your funds in your on-chain wallet and also spent your local balance to increase the inbound capacity of your node - all in a non-custodial manner. "),t.qZA()()()}if(2&K){const x=t.oxw();t.Q6J("@sliderAnimation",x.animationDirection),t.xp6(1),t.Q6J("ngClass",t.WLB(2,U1,x.screenSize===x.screenSizeEnum.XS,x.screenSize!==x.screenSizeEnum.XS))}}class V1{constructor(T){this.commonService=T,this.animationDirection="forward",this.stepNumber=1,this.stepNumberChange=new t.vpe,this.screenSize="",this.screenSizeEnum=Qe.cu}ngOnInit(){this.screenSize=this.commonService.getScreenSize()}onSwipe(T){2===T.direction&&this.stepNumber<5?(this.stepNumber++,this.animationDirection="forward",this.stepNumberChange.emit(this.stepNumber)):4===T.direction&&this.stepNumber>1&&(this.stepNumber--,this.animationDirection="backward",this.stepNumberChange.emit(this.stepNumber))}static#e=this.\u0275fac=function(x){return new(x||V1)(t.Y36(ta.v))};static#t=this.\u0275cmp=t.Xpm({type:V1,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(x,V){if(1&x&&(t.YNc(0,E3,1,0,"ng-container",0),t.YNc(1,f0,18,5,"ng-template",null,1,t.W1O),t.YNc(3,Y2,19,5,"ng-template",null,2,t.W1O),t.YNc(5,Ru,19,5,"ng-template",null,3,t.W1O),t.YNc(7,p0,17,5,"ng-template",null,4,t.W1O),t.YNc(9,D3,13,5,"ng-template",null,5,t.W1O)),2&x){const ge=t.MAs(2),nt=t.MAs(4),kt=t.MAs(6),jt=t.MAs(8),on=t.MAs(10);t.Q6J("ngTemplateOutlet",1===V.stepNumber?ge:2===V.stepNumber?nt:3===V.stepNumber?kt:4===V.stepNumber?jt:on)}},dependencies:[si.mk,si.tP,Vt.xw,Vt.Wh,Vt.yH,Ea.oO,fn.n5,fn.$j],styles:["svg.small-svg[_ngcontent-%COMP%]{height:50%;min-height:50%;max-width:100%}svg.large-svg[_ngcontent-%COMP%]{height:60%;min-height:60%;max-width:100%}"],data:{animation:[Zl.l]}})}const Bu=["stepper"];function Nu(K,T){if(1&K&&t._uU(0),2&K){const x=t.oxw(2);t.Oqu(x.inputFormLabel)}}function Yl(K,T){1&K&&(t.TgZ(0,"mat-error"),t._uU(1,"Amount is required."),t.qZA())}function _0(K,T){if(1&K&&(t.TgZ(0,"mat-error"),t._uU(1),t.ALo(2,"number"),t.qZA()),2&K){const x=t.oxw(2);t.xp6(1),t.hij("Amount must be greater than or equal to ",t.lcZ(2,1,null==x.serviceInfo||null==x.serviceInfo.limits?null:x.serviceInfo.limits.minimal),".")}}function Fu(K,T){if(1&K&&(t.TgZ(0,"mat-error"),t._uU(1),t.ALo(2,"number"),t.qZA()),2&K){const x=t.oxw(2);t.xp6(1),t.hij("Amount must be less than or equal to ",t.lcZ(2,1,null==x.serviceInfo||null==x.serviceInfo.limits?null:x.serviceInfo.limits.maximal),".")}}function Hu(K,T){1&K&&(t.TgZ(0,"button",40),t._uU(1,"Next"),t.qZA())}function $4(K,T){if(1&K){const x=t.EpF();t.TgZ(0,"button",41),t.NdJ("click",function(){t.CHM(x);const ge=t.oxw(2);return t.KtG(ge.onSwap())}),t._uU(1),t.qZA()}if(2&K){const x=t.oxw(2);t.xp6(1),t.hij("Initiate ",x.swapDirectionCaption,"")}}function Q2(K,T){if(1&K&&t._uU(0),2&K){const x=t.oxw(3);t.Oqu(x.addressFormLabel)}}function A3(K,T){1&K&&(t.TgZ(0,"mat-error"),t._uU(1,"Address is required."),t.qZA())}function zu(K,T){if(1&K){const x=t.EpF();t.TgZ(0,"mat-step",15)(1,"form",16),t.YNc(2,Q2,1,1,"ng-template",17),t.TgZ(3,"div",42)(4,"mat-radio-group",43),t.NdJ("change",function(ge){t.CHM(x);const nt=t.oxw(2);return t.KtG(nt.onAddressTypeChange(ge))}),t.TgZ(5,"mat-radio-button",44),t._uU(6,"Node Local Address"),t.qZA(),t.TgZ(7,"mat-radio-button",45),t._uU(8,"External Address"),t.qZA()(),t.TgZ(9,"mat-form-field",46),t._UZ(10,"input",47),t.YNc(11,A3,2,0,"mat-error",24),t.qZA()(),t.TgZ(12,"div",25)(13,"button",48),t.NdJ("click",function(){t.CHM(x);const ge=t.oxw(2);return t.KtG(ge.onSwap())}),t._uU(14),t.qZA()()()()}if(2&K){const x=t.oxw(2);t.Q6J("stepControl",x.addressFormGroup)("editable",x.flgEditable),t.xp6(1),t.Q6J("formGroup",x.addressFormGroup),t.xp6(9),t.Q6J("required","external"===x.addressFormGroup.controls.addressType.value),t.xp6(1),t.Q6J("ngIf",null==x.addressFormGroup.controls.address.errors?null:x.addressFormGroup.controls.address.errors.required),t.xp6(3),t.hij("Initiate ",x.swapDirectionCaption,"")}}function Uu(K,T){if(1&K&&t._uU(0),2&K){const x=t.oxw(2);t.hij("",x.swapDirectionCaption," Status")}}function m0(K,T){if(1&K&&(t.TgZ(0,"mat-icon",49),t._uU(1),t.qZA()),2&K){const x=t.oxw(2);t.xp6(1),t.Oqu(x.swapStatus&&null!=x.swapStatus&&x.swapStatus.id?"check":"close")}}function g0(K,T){1&K&&t._UZ(0,"div")}function v0(K,T){1&K&&t._UZ(0,"mat-progress-bar",50)}function j2(K,T){if(1&K&&(t.TgZ(0,"h4",51),t._uU(1),t.qZA()),2&K){const x=t.oxw(2);t.xp6(1),t.Oqu(x.swapStatus&&x.swapStatus.error?x.swapDirectionCaption+" failed.":x.swapStatus&&x.swapStatus.id?x.swapDirectionCaption+" request placed successfully. You can check the status of the request on the 'Boltz' menu.":x.swapDirectionCaption+" request placed successfully.")}}function n1(K,T){if(1&K){const x=t.EpF();t.TgZ(0,"button",52),t.NdJ("click",function(){t.CHM(x);const ge=t.oxw(2);return t.KtG(ge.onRestart())}),t._uU(1,"Start Again"),t.qZA()}}function Vu(K,T){if(1&K){const x=t.EpF();t.TgZ(0,"div",3)(1,"div",4)(2,"mat-card-header",5)(3,"div",6)(4,"span",7),t._uU(5),t.qZA()(),t.TgZ(6,"div",8)(7,"button",9),t.NdJ("click",function(){t.CHM(x);const ge=t.oxw();return t.KtG(ge.showInfo())}),t._uU(8,"?"),t.qZA(),t.TgZ(9,"button",10),t.NdJ("click",function(){t.CHM(x);const ge=t.oxw();return t.KtG(ge.onClose())}),t._uU(10,"X"),t.qZA()()(),t.TgZ(11,"mat-card-content",11)(12,"div",12)(13,"mat-vertical-stepper",13,14),t.NdJ("selectionChange",function(ge){t.CHM(x);const nt=t.oxw();return t.KtG(nt.stepSelectionChanged(ge))}),t.TgZ(15,"mat-step",15)(16,"form",16),t.YNc(17,Nu,1,1,"ng-template",17),t.TgZ(18,"div",18),t._UZ(19,"rtl-boltz-service-info",19),t.qZA(),t.TgZ(20,"div",20)(21,"mat-form-field",21),t._UZ(22,"input",22),t.TgZ(23,"mat-hint"),t._uU(24),t.ALo(25,"number"),t.ALo(26,"number"),t.qZA(),t.TgZ(27,"span",23),t._uU(28,"Sats"),t.qZA(),t.YNc(29,Yl,2,0,"mat-error",24),t.YNc(30,_0,3,3,"mat-error",24),t.YNc(31,Fu,3,3,"mat-error",24),t.qZA()(),t.TgZ(32,"div",25),t.YNc(33,Hu,2,0,"button",26),t.YNc(34,$4,2,1,"button",27),t.qZA()()(),t.YNc(35,zu,15,6,"mat-step",28),t.TgZ(36,"mat-step",29)(37,"form",16),t.YNc(38,Uu,1,1,"ng-template",17),t.TgZ(39,"div",30)(40,"mat-expansion-panel",31)(41,"mat-expansion-panel-header")(42,"mat-panel-title")(43,"span",32),t._uU(44),t.YNc(45,m0,2,1,"mat-icon",33),t.qZA()()(),t.YNc(46,g0,1,0,"div",34),t.qZA(),t.YNc(47,v0,1,0,"mat-progress-bar",35),t.qZA(),t.YNc(48,j2,2,1,"h4",36),t.TgZ(49,"div",25),t.YNc(50,n1,2,0,"button",37),t.qZA()()()(),t.TgZ(51,"div",38)(52,"button",39),t._uU(53,"Close"),t.qZA()()()()()()}if(2&K){const x=t.oxw(),V=t.MAs(2);t.Q6J("@opacityAnimation",void 0),t.xp6(3),t.Q6J("fxFlex",x.screenSize===x.screenSizeEnum.XS||x.screenSize===x.screenSizeEnum.SM?"83":"91"),t.xp6(2),t.Oqu(x.swapDirectionCaption),t.xp6(1),t.Q6J("fxFlex",x.screenSize===x.screenSizeEnum.XS||x.screenSize===x.screenSizeEnum.SM?"17":"9"),t.xp6(7),t.Q6J("linear",!0),t.xp6(2),t.Q6J("stepControl",x.inputFormGroup)("editable",x.flgEditable),t.xp6(1),t.Q6J("formGroup",x.inputFormGroup),t.xp6(3),t.Q6J("serviceInfo",x.serviceInfo)("direction",x.direction),t.xp6(3),t.Q6J("step",1e3),t.xp6(2),t.AsE("Range: ",t.lcZ(25,30,null==x.serviceInfo||null==x.serviceInfo.limits?null:x.serviceInfo.limits.minimal),"-",t.lcZ(26,32,null==x.serviceInfo||null==x.serviceInfo.limits?null:x.serviceInfo.limits.maximal),""),t.xp6(5),t.Q6J("ngIf",null==x.inputFormGroup||null==x.inputFormGroup.controls||null==x.inputFormGroup.controls.amount||null==x.inputFormGroup.controls.amount.errors?null:x.inputFormGroup.controls.amount.errors.required),t.xp6(1),t.Q6J("ngIf",null==x.inputFormGroup||null==x.inputFormGroup.controls||null==x.inputFormGroup.controls.amount||null==x.inputFormGroup.controls.amount.errors?null:x.inputFormGroup.controls.amount.errors.min),t.xp6(1),t.Q6J("ngIf",null==x.inputFormGroup||null==x.inputFormGroup.controls||null==x.inputFormGroup.controls.amount||null==x.inputFormGroup.controls.amount.errors?null:x.inputFormGroup.controls.amount.errors.max),t.xp6(2),t.Q6J("ngIf",x.direction===x.swapTypeEnum.SWAP_OUT),t.xp6(1),t.Q6J("ngIf",x.direction===x.swapTypeEnum.SWAP_IN),t.xp6(1),t.Q6J("ngIf",x.direction===x.swapTypeEnum.SWAP_OUT),t.xp6(1),t.Q6J("stepControl",x.statusFormGroup),t.xp6(1),t.Q6J("formGroup",x.statusFormGroup),t.xp6(3),t.Q6J("expanded",!!x.swapStatus),t.xp6(4),t.Oqu(x.swapStatus?x.swapStatus.id?x.swapDirectionCaption+" request details":x.swapDirectionCaption+" error details":"Waiting for "+x.swapDirectionCaption+" request..."),t.xp6(1),t.Q6J("ngIf",x.swapStatus),t.xp6(1),t.Q6J("ngIf",!x.swapStatus)("ngIfElse",V),t.xp6(1),t.Q6J("ngIf",!x.swapStatus),t.xp6(1),t.Q6J("ngIf",x.swapStatus),t.xp6(2),t.Q6J("ngIf",x.swapStatus&&(x.swapStatus.error||!x.swapStatus.id)),t.xp6(2),t.Q6J("mat-dialog-close",!1)}}function q2(K,T){if(1&K&&t._UZ(0,"rtl-boltz-swap-status",53),2&K){const x=t.oxw();t.Q6J("swapStatus",x.swapStatus)("direction",x.direction)}}function y0(K,T){if(1&K){const x=t.EpF();t.TgZ(0,"rtl-boltz-swapout-info-graphics",70),t.NdJ("stepNumberChange",function(ge){t.CHM(x);const nt=t.oxw(2);return t.KtG(nt.stepNumber=ge)}),t.qZA()}if(2&K){const x=t.oxw(2);t.Q6J("animationDirection",x.animationDirection)("stepNumber",x.stepNumber)}}function b0(K,T){if(1&K){const x=t.EpF();t.TgZ(0,"rtl-boltz-swapin-info-graphics",70),t.NdJ("stepNumberChange",function(ge){t.CHM(x);const nt=t.oxw(2);return t.KtG(nt.stepNumber=ge)}),t.qZA()}if(2&K){const x=t.oxw(2);t.Q6J("animationDirection",x.animationDirection)("stepNumber",x.stepNumber)}}const i1=function(K,T){return{"dot-primary":K,"dot-primary-lighter":T}};function T3(K,T){if(1&K){const x=t.EpF();t.TgZ(0,"span",71),t.NdJ("click",function(){const nt=t.CHM(x).$implicit,kt=t.oxw(2);return t.KtG(kt.onStepChanged(nt))}),t._UZ(1,"p",72),t.qZA()}if(2&K){const x=T.$implicit,V=t.oxw(2);t.xp6(1),t.Q6J("ngClass",t.WLB(1,i1,V.stepNumber===x,V.stepNumber!==x))}}function x0(K,T){if(1&K){const x=t.EpF();t.TgZ(0,"button",73),t.NdJ("click",function(){t.CHM(x);const ge=t.oxw(2);return t.KtG(ge.onReadMore())}),t._uU(1,"Read More"),t.qZA()}}function Wu(K,T){if(1&K){const x=t.EpF();t.TgZ(0,"button",74),t.NdJ("click",function(){t.CHM(x);const ge=t.oxw(2);return t.KtG(ge.onStepChanged(4))}),t._uU(1,"Back"),t.qZA()}}function w3(K,T){if(1&K){const x=t.EpF();t.TgZ(0,"button",75),t.NdJ("click",function(){t.CHM(x);const ge=t.oxw(2);return ge.flgShowInfo=!1,t.KtG(ge.stepNumber=1)}),t._uU(1,"Close"),t.qZA()}}function I3(K,T){if(1&K){const x=t.EpF();t.TgZ(0,"button",76),t.NdJ("click",function(){t.CHM(x);const ge=t.oxw(2);return ge.flgShowInfo=!1,t.KtG(ge.stepNumber=1)}),t._uU(1,"Close"),t.qZA()}}function C0(K,T){if(1&K){const x=t.EpF();t.TgZ(0,"button",77),t.NdJ("click",function(){t.CHM(x);const ge=t.oxw(2);return t.KtG(ge.onStepChanged(ge.stepNumber-1))}),t._uU(1,"Back"),t.qZA()}}function Ku(K,T){if(1&K){const x=t.EpF();t.TgZ(0,"button",78),t.NdJ("click",function(){t.CHM(x);const ge=t.oxw(2);return t.KtG(ge.onStepChanged(ge.stepNumber+1))}),t._uU(1,"Next"),t.qZA()}}const X2=function(){return[1,2,3,4,5]};function M0(K,T){if(1&K){const x=t.EpF();t.TgZ(0,"div",54)(1,"div",18)(2,"mat-card-header",55)(3,"div",56),t._UZ(4,"span",7),t.qZA(),t.TgZ(5,"div",57)(6,"button",58),t.NdJ("click",function(){t.CHM(x);const ge=t.oxw();return ge.flgShowInfo=!1,t.KtG(ge.stepNumber=1)}),t._uU(7,"X"),t.qZA()()(),t.TgZ(8,"mat-card-content",59),t.YNc(9,y0,1,2,"rtl-boltz-swapout-info-graphics",60),t.YNc(10,b0,1,2,"rtl-boltz-swapin-info-graphics",60),t.qZA(),t.TgZ(11,"div",61),t.YNc(12,T3,2,4,"span",62),t.qZA(),t.TgZ(13,"div",63),t.YNc(14,x0,2,0,"button",64),t.YNc(15,Wu,2,0,"button",65),t.YNc(16,w3,2,0,"button",66),t.YNc(17,I3,2,0,"button",67),t.YNc(18,C0,2,0,"button",68),t.YNc(19,Ku,2,0,"button",69),t.qZA()()()}if(2&K){const x=t.oxw();t.Q6J("@opacityAnimation",void 0),t.xp6(9),t.Q6J("ngIf",x.direction===x.swapTypeEnum.SWAP_OUT),t.xp6(1),t.Q6J("ngIf",x.direction===x.swapTypeEnum.SWAP_IN),t.xp6(2),t.Q6J("ngForOf",t.DdM(10,X2)),t.xp6(2),t.Q6J("ngIf",5===x.stepNumber),t.xp6(1),t.Q6J("ngIf",5===x.stepNumber),t.xp6(1),t.Q6J("ngIf",5===x.stepNumber),t.xp6(1),t.Q6J("ngIf",x.stepNumber<5),t.xp6(1),t.Q6J("ngIf",x.stepNumber>1&&x.stepNumber<5),t.xp6(1),t.Q6J("ngIf",x.stepNumber<5)}}class Fo{constructor(T,x,V,ge,nt,kt,jt){this.dialogRef=T,this.data=x,this.boltzService=V,this.formBuilder=ge,this.decimalPipe=nt,this.logger=kt,this.commonService=jt,this.faInfoCircle=fe.sqG,this.serviceInfo={fees:{percentage:null,miner:{normal:null,reverse:null}},limits:{minimal:1e4,maximal:5e7}},this.swapTypeEnum=Qe.hc,this.direction=Qe.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=Qe.cu,this.animationDirection="forward",this.flgEditable=!0,this.unSubs=[new Gn.x,new Gn.x,new Gn.x,new Gn.x,new Gn.x,new Gn.x]}ngOnInit(){this.screenSize=this.commonService.getScreenSize(),this.serviceInfo=this.data.serviceInfo,this.direction=this.data.direction||Qe.hc.SWAP_OUT,this.swapDirectionCaption=this.direction===Qe.hc.SWAP_OUT?"Swap Out":"Swap in",this.inputFormLabel="Amount to "+this.swapDirectionCaption,this.inputFormGroup=this.formBuilder.group({amount:[this.serviceInfo.limits?.minimal,[qt.kI.required,qt.kI.min(this.serviceInfo.limits?.minimal||0),qt.kI.max(this.serviceInfo.limits?.maximal||0)]]}),this.addressFormGroup=this.formBuilder.group({addressType:["local",[qt.kI.required]],address:[{value:"",disabled:!0}]}),this.statusFormGroup=this.formBuilder.group({}),this.onFormValueChanges()}ngAfterViewInit(){this.direction===Qe.hc.SWAP_OUT&&this.addressFormGroup.setErrors({Invalid:!0})}onFormValueChanges(){this.direction===Qe.hc.SWAP_OUT&&this.addressFormGroup.valueChanges.pipe((0,ui.R)(this.unSubs[2])).subscribe(T=>{this.addressFormGroup.setErrors({Invalid:!0})})}onAddressTypeChange(T){"external"===T.value?(this.addressFormGroup.controls.address.setValidators([qt.kI.required]),this.addressFormGroup.controls.address.markAsTouched(),this.addressFormGroup.controls.address.enable()):(this.addressFormGroup.controls.address.setValidators(null),this.addressFormGroup.controls.address.markAsPristine(),this.addressFormGroup.controls.address.disable(),this.addressFormGroup.controls.address.setValue("")),this.addressFormGroup.setErrors({Invalid:!0})}onSwap(){if(!this.inputFormGroup.controls.amount.value||this.serviceInfo.limits?.minimal&&this.inputFormGroup.controls.amount.value<+this.serviceInfo.limits.minimal||this.serviceInfo.limits?.maximal&&this.inputFormGroup.controls.amount.value>+this.serviceInfo.limits.maximal||this.direction===Qe.hc.SWAP_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===Qe.hc.SWAP_IN)this.boltzService.swapIn(this.inputFormGroup.controls.amount.value).pipe((0,ui.R)(this.unSubs[3])).subscribe({next:T=>{this.swapStatus=T,this.boltzService.listSwaps(),this.flgEditable=!0},error:T=>{this.swapStatus={error:T},this.flgEditable=!0,this.logger.error(T)}});else{const T="external"===this.addressFormGroup.controls.addressType.value?this.addressFormGroup.controls.address.value:"";this.boltzService.swapOut(this.inputFormGroup.controls.amount.value,T).pipe((0,ui.R)(this.unSubs[4])).subscribe({next:x=>{this.swapStatus=x,this.boltzService.listSwaps(),this.flgEditable=!0},error:x=>{this.swapStatus={error:x},this.flgEditable=!0,this.logger.error(x)}})}}stepSelectionChanged(T){switch(T.selectedIndex){case 0:default:this.inputFormLabel="Amount to "+this.swapDirectionCaption,this.addressFormLabel="Withdrawal Address";break;case 1:this.inputFormGroup.controls.amount.value?(this.direction,Qe.hc.SWAP_IN,this.inputFormLabel=this.swapDirectionCaption+" Amount: "+this.decimalPipe.transform(this.inputFormGroup.controls.amount.value?this.inputFormGroup.controls.amount.value:0)+" Sats"):this.inputFormLabel="Amount to "+this.swapDirectionCaption,this.addressFormLabel="Withdrawal Address"}T.selectedIndex<T.previouslySelectedIndex&&T.selectedStep.stepControl.setErrors({Invalid:!0})}onClose(){this.dialogRef.close(!0)}showInfo(){this.flgShowInfo=!0}onReadMore(){this.direction===Qe.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(T){this.animationDirection=T<this.stepNumber?"backward":"forward",this.stepNumber=T}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(T=>{T.next(null),T.complete()})}static#e=this.\u0275fac=function(x){return new(x||Fo)(t.Y36(Ma.so),t.Y36(Ma.WI),t.Y36(yo),t.Y36(qt.QS),t.Y36(si.JJ),t.Y36(sn.mQ),t.Y36(ta.v))};static#t=this.\u0275cmp=t.Xpm({type:Fo,selectors:[["rtl-boltz-swap-modal"]],viewQuery:function(x,V){if(1&x&&t.Gf(Bu,5),2&x){let ge;t.iGM(ge=t.CRH())&&(V.stepper=ge.first)}},decls:4,vars:2,consts:[["fxLayout","column","fxFlex","100","fxLayoutAlign","start stretch",4,"ngIf"],["swapStatusBlock",""],["fxLayout","column","fxFlex","100","fxLayoutAlign","start stretch","class","info-graphics-container",4,"ngIf"],["fxLayout","column","fxFlex","100","fxLayoutAlign","start stretch"],["fxFlex","100"],["fxLayout","row","fxLayoutAlign","space-between center",1,"modal-info-header"],["fxLayoutAlign","start start",3,"fxFlex"],[1,"page-title"],["fxLayoutAlign","space-between end",3,"fxFlex"],["tabindex","21","mat-button","",1,"btn-close-x","p-0",3,"click"],["tabindex","22","mat-button","",1,"btn-close-x","p-0",3,"click"],[1,"padding-gap-x-large"],["fxLayout","column"],[3,"linear","selectionChange"],["stepper",""],[3,"stepControl","editable"],["fxLayout","column","fxLayoutAlign","start","fxLayoutAlign.gt-sm","space-between",1,"my-1",3,"formGroup"],["matStepLabel",""],["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between stretch"],[3,"serviceInfo","direction"],["fxLayout","row wrap","fxFlex","100","fxLayoutAlign","space-between center",1,"mt-1"],["fxFlex","48"],["autoFocus","","matInput","","placeholder","Amount","type","number","tabindex","1","formControlName","amount","required","",3,"step"],["matSuffix",""],[4,"ngIf"],["fxLayout","row","fxLayoutAlign","start center","fxFlex","100",1,"mt-2"],["mat-button","","color","primary","tabindex","2","type","button","matStepperNext","",4,"ngIf"],["mat-button","","color","primary","tabindex","3","type","button",3,"click",4,"ngIf"],[3,"stepControl","editable",4,"ngIf"],[3,"stepControl"],["fxLayout","row wrap","fxFlex","100","fxLayoutAlign","space-between stretch"],["fxFlex","100",1,"flat-expansion-panel",3,"expanded"],["fxLayoutAlign","start center","fxFlex","100"],["class","ml-1 icon-small",4,"ngIf"],[4,"ngIf","ngIfElse"],["fxFlex","100","color","primary","mode","indeterminate",4,"ngIf"],["fxLayoutAlign","start","class","font-bold-500 mt-2",4,"ngIf"],["mat-button","","color","primary","tabindex","13","type","button",3,"click",4,"ngIf"],["fxLayout","row","fxFlex","100","fxLayoutAlign","end end"],["mat-button","","color","primary","tabindex","14","type","button","default","",3,"mat-dialog-close"],["mat-button","","color","primary","tabindex","2","type","button","matStepperNext",""],["mat-button","","color","primary","tabindex","3","type","button",3,"click"],["fxLayout","row wrap","fxFlex","100","fxLayoutAlign","space-between stretch",1,"mt-1"],["color","primary","name","addressType","formControlName","addressType","fxFlex","100","fxLayoutAlign","space-between stretch",3,"change"],["fxFlex","48","tabindex","8","value","local"],["fxFlex","48","tabindex","9","value","external"],["fxFlex","100",1,"mt-1"],["matInput","","placeholder","Address","tabindex","10","formControlName","address",3,"required"],["mat-button","","color","primary","tabindex","11","type","button",3,"click"],[1,"ml-1","icon-small"],["fxFlex","100","color","primary","mode","indeterminate"],["fxLayoutAlign","start",1,"font-bold-500","mt-2"],["mat-button","","color","primary","tabindex","13","type","button",3,"click"],["fxLayout","column",3,"swapStatus","direction"],["fxLayout","column","fxFlex","100","fxLayoutAlign","start stretch",1,"info-graphics-container"],["fxLayout","row","fxFlex","8","fxLayoutAlign","space-between center",1,"modal-info-header"],["fxFlex","95","fxLayoutAlign","start start"],["fxFlex","5","fxLayoutAlign","end center"],["tabindex","19","mat-button","",1,"btn-close-x","p-0",3,"click"],["fxLayout","column","fxFlex","70","fxLayoutAlign","space-between center",1,"padding-gap-x-large"],["fxFlex","100",3,"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(x,V){1&x&&(t.YNc(0,Vu,54,34,"div",0),t.YNc(1,q2,1,2,"ng-template",null,1,t.W1O),t.YNc(3,M0,20,11,"div",2)),2&x&&(t.Q6J("ngIf",!V.flgShowInfo),t.xp6(3),t.Q6J("ngIf",V.flgShowInfo))},dependencies:[si.mk,si.sg,si.O5,qt._Y,qt.Fj,qt.wV,qt.JJ,qt.JL,qt.Q7,qt.sg,qt.u,Vt.xw,Vt.Wh,Vt.yH,Ea.oO,Ma.ZT,An.lW,fn.dk,fn.dn,zi.ib,zi.yz,zi.yK,Fl.Hw,Sn.TO,Sn.KE,Sn.bx,Sn.R9,Er.Nt,pc.pW,Fr.VQ,Fr.U0,bs.C0,bs.VY,bs.Vq,bs.Ic,Si.h,e1,u0,t1,V1,si.JJ],styles:[".dots-stepper-block[_ngcontent-%COMP%]{width:3rem}.info-graphics-container[_ngcontent-%COMP%]{max-height:60rem;min-height:60rem}"],data:{animation:[$c._]}})}function Gu(K,T){if(1&K&&(t.TgZ(0,"mat-option",42),t._uU(1),t.qZA()),2&K){const x=T.$implicit,V=t.oxw();t.Q6J("value",x),t.xp6(1),t.Oqu(V.getLabel(x))}}function E0(K,T){1&K&&t._UZ(0,"mat-progress-bar",43)}function L3(K,T){1&K&&(t.TgZ(0,"th",44),t._uU(1,"Status"),t.qZA())}function bc(K,T){if(1&K&&(t.TgZ(0,"td",45),t._uU(1),t.qZA()),2&K){const x=T.$implicit,V=t.oxw();t.xp6(1),t.Oqu(V.swapStateEnum[null==x?null:x.status])}}function J2(K,T){1&K&&(t.TgZ(0,"th",44),t._uU(1,"Swap ID"),t.qZA())}function S3(K,T){if(1&K&&(t.TgZ(0,"td",45),t._uU(1),t.qZA()),2&K){const x=T.$implicit;t.xp6(1),t.Oqu(null==x?null:x.id)}}function Zu(K,T){1&K&&(t.TgZ(0,"th",44),t._uU(1,"Claim Address"),t.qZA())}const Xo=function(K){return{width:K}};function D0(K,T){if(1&K&&(t.TgZ(0,"td",45)(1,"span",46)(2,"span",47),t._uU(3),t.qZA()()()),2&K){const x=T.$implicit,V=t.oxw();t.xp6(1),t.Q6J("ngStyle",t.VKq(2,Xo,V.screenSize===V.screenSizeEnum.XS?"10rem":V.colWidth)),t.xp6(2),t.Oqu(null==x?null:x.claimAddress)}}function $2(K,T){1&K&&(t.TgZ(0,"th",44),t._uU(1,"Lockup Address"),t.qZA())}function Yu(K,T){if(1&K&&(t.TgZ(0,"td",45)(1,"span",46)(2,"span",47),t._uU(3),t.qZA()()()),2&K){const x=T.$implicit,V=t.oxw();t.xp6(1),t.Q6J("ngStyle",t.VKq(2,Xo,V.screenSize===V.screenSizeEnum.XS?"10rem":V.colWidth)),t.xp6(2),t.Oqu(null==x?null:x.lockupAddress)}}function A0(K,T){1&K&&(t.TgZ(0,"th",48),t._uU(1,"Onchain Amount (Sats)"),t.qZA())}function xc(K,T){if(1&K&&(t.TgZ(0,"td",45)(1,"span",49),t._uU(2),t.ALo(3,"number"),t.qZA()()),2&K){const x=T.$implicit;t.xp6(2),t.Oqu(t.lcZ(3,1,null==x?null:x.onchainAmount))}}function ef(K,T){1&K&&(t.TgZ(0,"th",48),t._uU(1,"Expected Amount (Sats)"),t.qZA())}function tf(K,T){if(1&K&&(t.TgZ(0,"td",45)(1,"span",49),t._uU(2),t.ALo(3,"number"),t.qZA()()),2&K){const x=T.$implicit;t.xp6(2),t.Oqu(t.lcZ(3,1,null==x?null:x.expectedAmount))}}function Qu(K,T){1&K&&(t.TgZ(0,"th",44),t._uU(1,"Error"),t.qZA())}function O3(K,T){if(1&K&&(t.TgZ(0,"td",45)(1,"span",46)(2,"span",47),t._uU(3),t.qZA()()()),2&K){const x=T.$implicit,V=t.oxw();t.xp6(1),t.Q6J("ngStyle",t.VKq(2,Xo,V.screenSize===V.screenSizeEnum.XS?"10rem":V.colWidth)),t.xp6(2),t.Oqu(null==x?null:x.error)}}function P3(K,T){1&K&&(t.TgZ(0,"th",44),t._uU(1,"Private Key"),t.qZA())}function Jo(K,T){if(1&K&&(t.TgZ(0,"td",45)(1,"span",46)(2,"span",47),t._uU(3),t.qZA()()()),2&K){const x=T.$implicit,V=t.oxw();t.xp6(1),t.Q6J("ngStyle",t.VKq(2,Xo,V.screenSize===V.screenSizeEnum.XS?"10rem":V.colWidth)),t.xp6(2),t.Oqu(null==x?null:x.privateKey)}}function Cc(K,T){1&K&&(t.TgZ(0,"th",44),t._uU(1,"Preimage"),t.qZA())}function Mc(K,T){if(1&K&&(t.TgZ(0,"td",45)(1,"span",46)(2,"span",47),t._uU(3),t.qZA()()()),2&K){const x=T.$implicit,V=t.oxw();t.xp6(1),t.Q6J("ngStyle",t.VKq(2,Xo,V.screenSize===V.screenSizeEnum.XS?"10rem":V.colWidth)),t.xp6(2),t.Oqu(null==x?null:x.preimage)}}function T0(K,T){1&K&&(t.TgZ(0,"th",44),t._uU(1,"Redeem Script"),t.qZA())}function k3(K,T){if(1&K&&(t.TgZ(0,"td",45)(1,"span",46)(2,"span",47),t._uU(3),t.qZA()()()),2&K){const x=T.$implicit,V=t.oxw();t.xp6(1),t.Q6J("ngStyle",t.VKq(2,Xo,V.screenSize===V.screenSizeEnum.XS?"10rem":V.colWidth)),t.xp6(2),t.Oqu(null==x?null:x.redeemScript)}}function R3(K,T){1&K&&(t.TgZ(0,"th",44),t._uU(1,"Invoice"),t.qZA())}function ju(K,T){if(1&K&&(t.TgZ(0,"td",45)(1,"span",46)(2,"span",47),t._uU(3),t.qZA()()()),2&K){const x=T.$implicit,V=t.oxw();t.xp6(1),t.Q6J("ngStyle",t.VKq(2,Xo,V.screenSize===V.screenSizeEnum.XS?"10rem":V.colWidth)),t.xp6(2),t.Oqu(null==x?null:x.invoice)}}function qu(K,T){1&K&&(t.TgZ(0,"th",48),t._uU(1,"Timeout Block Height"),t.qZA())}function ed(K,T){if(1&K&&(t.TgZ(0,"td",45)(1,"span",49),t._uU(2),t.ALo(3,"number"),t.qZA()()),2&K){const x=T.$implicit;t.xp6(2),t.Oqu(t.lcZ(3,1,null==x?null:x.timeoutBlockHeight))}}function Xu(K,T){1&K&&(t.TgZ(0,"th",44),t._uU(1,"Lockup Tx ID"),t.qZA())}function W1(K,T){if(1&K&&(t.TgZ(0,"td",45),t._uU(1),t.qZA()),2&K){const x=T.$implicit;t.xp6(1),t.Oqu(null==x?null:x.lockupTransactionId)}}function B3(K,T){1&K&&(t.TgZ(0,"th",44),t._uU(1,"Claim Tx ID"),t.qZA())}function N3(K,T){if(1&K&&(t.TgZ(0,"td",45),t._uU(1),t.qZA()),2&K){const x=T.$implicit;t.xp6(1),t.Oqu(null==x?null:x.claimTransactionId)}}function td(K,T){1&K&&(t.TgZ(0,"th",44),t._uU(1,"Refund Tx ID"),t.qZA())}function $o(K,T){if(1&K&&(t.TgZ(0,"td",45),t._uU(1),t.qZA()),2&K){const x=T.$implicit;t.xp6(1),t.Oqu(null==x?null:x.refundTransactionId)}}function a1(K,T){if(1&K){const x=t.EpF();t.TgZ(0,"th",50)(1,"div",51)(2,"mat-select",52),t._UZ(3,"mat-select-trigger"),t.TgZ(4,"mat-option",53),t.NdJ("click",function(){t.CHM(x);const ge=t.oxw();return t.KtG(ge.onDownloadCSV())}),t._uU(5,"Download CSV"),t.qZA()()()()}}function Ql(K,T){if(1&K){const x=t.EpF();t.TgZ(0,"td",54)(1,"button",55),t.NdJ("click",function(ge){const kt=t.CHM(x).$implicit,jt=t.oxw();return t.KtG(jt.onSwapClick(kt,ge))}),t._uU(2,"View Info"),t.qZA()()}}function Ju(K,T){if(1&K&&(t.TgZ(0,"p"),t._uU(1),t.qZA()),2&K){const x=t.oxw(2);t.xp6(1),t.Oqu(x.emptyTableMessage)}}function K1(K,T){if(1&K&&(t.TgZ(0,"td",56),t.YNc(1,Ju,2,1,"p",57),t.qZA()),2&K){const x=t.oxw();t.xp6(1),t.Q6J("ngIf",!(null!=x.listSwaps&&x.listSwaps.data)||(null==x.listSwaps||null==x.listSwaps.data?null:x.listSwaps.data.length)<1)}}const w0=function(K){return{"display-none":K}};function F3(K,T){if(1&K&&t._UZ(0,"tr",58),2&K){const x=t.oxw();t.Q6J("ngClass",t.VKq(1,w0,(null==x.listSwaps?null:x.listSwaps.data)&&(null==x.listSwaps||null==x.listSwaps.data?null:x.listSwaps.data.length)>0))}}function nd(K,T){1&K&&t._UZ(0,"tr",59)}function jl(K,T){1&K&&t._UZ(0,"tr",60)}const id=function(){return["all"]},H3=function(K){return{"overflow-auto error-border":K,"overflow-auto":!0}},$u=function(){return["no_swap"]};class G1{constructor(T,x,V,ge,nt){this.logger=T,this.commonService=x,this.store=V,this.boltzService=ge,this.camelCaseWithReplace=nt,this.selectedSwapType=Qe.hc.SWAP_OUT,this.swapsData=[],this.flgLoading=[!0],this.emptyTableMessage="No swaps available.",this.nodePageDefs=Qe.hG,this.selFilterBy="all",this.colWidth="20rem",this.PAGE_ID="boltz",this.tableSettingSwapOut={tableId:"swap_out",recordsPerPage:Qe.IV,sortBy:"status",sortOrder:Qe.Pi.DESCENDING},this.tableSettingSwapIn={tableId:"swap_in",recordsPerPage:Qe.IV,sortBy:"status",sortOrder:Qe.Pi.DESCENDING},this.swapStateEnum=Qe.Qw,this.faHistory=fe.qO$,this.swapCaption="Swap Out",this.displayedColumns=[],this.listSwaps=new wa.by([]),this.selFilter="",this.pageSize=Qe.IV,this.pageSizeOptions=Qe.TJ,this.screenSize="",this.screenSizeEnum=Qe.cu,this.unSubs=[new Gn.x,new Gn.x,new Gn.x],this.screenSize=this.commonService.getScreenSize()}ngOnInit(){this.store.select(Nl.Pr).pipe((0,ui.R)(this.unSubs[0])).subscribe(T=>{this.tableSettingSwapOut=T.pageSettings.find(x=>x.pageId===this.PAGE_ID)?.tables.find(x=>x.tableId===this.tableSettingSwapOut.tableId)||Qe.gK.find(x=>x.pageId===this.PAGE_ID)?.tables.find(x=>x.tableId===this.tableSettingSwapOut.tableId),this.tableSettingSwapIn=T.pageSettings.find(x=>x.pageId===this.PAGE_ID)?.tables.find(x=>x.tableId===this.tableSettingSwapIn.tableId)||Qe.gK.find(x=>x.pageId===this.PAGE_ID)?.tables.find(x=>x.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/10+"rem":"20rem",this.logger.info(this.displayedColumns)})}ngAfterViewInit(){this.swapsData&&this.swapsData.length>0&&this.loadSwapsTable(this.swapsData)}ngOnChanges(T){T.selectedSwapType&&!T.selectedSwapType.firstChange&&this.setTableColumns(),this.swapCaption=this.selectedSwapType===Qe.hc.SWAP_IN?"Swap In":"Swap Out",this.loadSwapsTable(this.swapsData)}setTableColumns(){this.selectedSwapType===Qe.hc.SWAP_IN?(this.screenSize===Qe.cu.XS||this.screenSize===Qe.cu.SM?this.displayedColumns=JSON.parse(JSON.stringify(this.tableSettingSwapIn.columnSelectionSM)):this.displayedColumns=JSON.parse(JSON.stringify(this.tableSettingSwapIn.columnSelection)),this.displayedColumns.push("actions"),this.pageSize=this.tableSettingSwapIn.recordsPerPage?+this.tableSettingSwapIn.recordsPerPage:Qe.IV):(this.screenSize===Qe.cu.XS||this.screenSize===Qe.cu.SM?this.displayedColumns=JSON.parse(JSON.stringify(this.tableSettingSwapOut.columnSelectionSM)):this.displayedColumns=JSON.parse(JSON.stringify(this.tableSettingSwapOut.columnSelection)),this.displayedColumns.push("actions"),this.pageSize=this.tableSettingSwapOut.recordsPerPage?+this.tableSettingSwapOut.recordsPerPage:Qe.IV)}applyFilter(){this.listSwaps&&""!==this.selFilter&&(this.listSwaps.filter=this.selFilter.trim().toLowerCase())}getLabel(T){const x=this.selectedSwapType===Qe.hc.SWAP_IN?this.tableSettingSwapIn.tableId:this.tableSettingSwapOut.tableId,V=this.nodePageDefs[this.PAGE_ID][x].allowedColumns.find(ge=>ge.column===T);return V?V.label?V.label:this.camelCaseWithReplace.transform(V.column,"_"):this.commonService.titleCase(T)}setFilterPredicate(){this.listSwaps.filterPredicate=(T,x)=>{let V="";switch(this.selFilterBy){case"all":V=JSON.stringify(T).toLowerCase();break;case"status":V=T?.status?this.swapStateEnum[T?.status]:"";break;default:V=typeof T[this.selFilterBy]>"u"?"":"string"==typeof T[this.selFilterBy]?T[this.selFilterBy].toLowerCase():"boolean"==typeof T[this.selFilterBy]?T[this.selFilterBy]?"yes":"no":T[this.selFilterBy].toString()}return"status"===this.selFilterBy?0===V.indexOf(x):V.includes(x)}}onSwapClick(T,x){this.boltzService.swapInfo(T.id||"").pipe((0,ui.R)(this.unSubs[1])).subscribe(V=>{V=this.selectedSwapType===Qe.hc.SWAP_IN?V.swap:V.reverseSwap;const ge=[[{key:"status",value:Qe.Qw[V.status],title:"Status",width:50,type:Qe.Gi.STRING},{key:"id",value:V.id,title:"ID",width:50,type:Qe.Gi.STRING}],[{key:"amount",value:V.onchainAmount?V.onchainAmount:V.expectedAmount?V.expectedAmount:0,title:V.onchainAmount?"Onchain Amount (Sats)":V.expectedAmount?"Expected Amount (Sats)":"Amount (Sats)",width:50,type:Qe.Gi.NUMBER},{key:"timeoutBlockHeight",value:V.timeoutBlockHeight,title:"Timeout Block Height",width:50,type:Qe.Gi.NUMBER}],[{key:"address",value:V.claimAddress?V.claimAddress:V.lockupAddress?V.lockupAddress:"",title:V.claimAddress?"Claim Address":V.lockupAddress?"Lockup Address":"Address",width:100,type:Qe.Gi.STRING}],[{key:"invoice",value:V.invoice,title:"Invoice",width:100,type:Qe.Gi.STRING}],[{key:"privateKey",value:V.privateKey,title:"Private Key",width:100,type:Qe.Gi.STRING}],[{key:"preimage",value:V.preimage,title:"Preimage",width:100,type:Qe.Gi.STRING}],[{key:"redeemScript",value:V.redeemScript,title:"Redeem Script",width:100,type:Qe.Gi.STRING}],[{key:"lockupTransactionId",value:V.lockupTransactionId,title:"Lockup Transaction ID",width:50,type:Qe.Gi.STRING},{key:"transactionId",value:V.claimTransactionId?V.claimTransactionId:V.refundTransactionId?V.refundTransactionId:"",title:V.claimTransactionId?"Claim Transaction ID":V.refundTransactionId?"Refund Transaction ID":"Transaction ID",width:50,type:Qe.Gi.STRING}]];this.store.dispatch((0,Qt.qR)({payload:{data:{type:Qe.n_.INFORMATION,alertTitle:this.swapCaption+" Status",message:ge,openedBy:"SWAP"}}}))})}loadSwapsTable(T){this.listSwaps=T?new wa.by([...T]):new wa.by([]),this.listSwaps.sort=this.sort,this.listSwaps.sortingDataAccessor=(x,V)=>x[V]&&isNaN(x[V])?x[V].toLocaleLowerCase():x[V]?+x[V]:null,this.selectedSwapType===Qe.hc.SWAP_IN?this.listSwaps.sort?.sort({id:this.tableSettingSwapIn.sortBy,start:this.tableSettingSwapIn.sortOrder,disableClear:!0}):this.listSwaps.sort?.sort({id:this.tableSettingSwapOut.sortBy,start:this.tableSettingSwapOut.sortOrder,disableClear:!0}),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===Qe.hc.SWAP_IN?"Swap in":"Swap out")}ngOnDestroy(){this.unSubs.forEach(T=>{T.next(null),T.complete()})}static#e=this.\u0275fac=function(x){return new(x||G1)(t.Y36(sn.mQ),t.Y36(ta.v),t.Y36(Hn.yh),t.Y36(yo),t.Y36($d.D3))};static#t=this.\u0275cmp=t.Xpm({type:G1,selectors:[["rtl-boltz-swaps"]],viewQuery:function(x,V){if(1&x&&(t.Gf(H2.YE,5),t.Gf(Kl.NW,5)),2&x){let ge;t.iGM(ge=t.CRH())&&(V.sort=ge.first),t.iGM(ge=t.CRH())&&(V.paginator=ge.first)}},inputs:{selectedSwapType:"selectedSwapType",swapsData:"swapsData",flgLoading:"flgLoading",emptyTableMessage:"emptyTableMessage"},features:[t._Bn([{provide:Kl.ye,useValue:(0,Qe.pt)("Swaps")}]),t.TTD],decls:71,vars:18,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"],["fxFlex","49"],["placeholder","Filter By","tabindex","1","name","filterBy",3,"ngModel","ngModelChange","selectionChange"],[3,"value",4,"ngFor","ngForOf"],["matInput","","name","filter","placeholder","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,"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-cellcolspan","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","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-cellcolspan","4"],[4,"ngIf"],["mat-footer-row","",3,"ngClass"],["mat-header-row",""],["mat-row",""]],template:function(x,V){1&x&&(t.TgZ(0,"div",0)(1,"div",1)(2,"div",2),t._UZ(3,"fa-icon",3),t.TgZ(4,"span",4),t._uU(5),t.qZA()(),t.TgZ(6,"div",5)(7,"mat-form-field",6)(8,"mat-select",7),t.NdJ("ngModelChange",function(nt){return V.selFilterBy=nt})("selectionChange",function(){return V.selFilter="",V.applyFilter()}),t.YNc(9,Gu,2,2,"mat-option",8),t.qZA()(),t.TgZ(10,"mat-form-field",6)(11,"input",9),t.NdJ("ngModelChange",function(nt){return V.selFilter=nt})("input",function(){return V.applyFilter()})("keyup",function(){return V.applyFilter()}),t.qZA()()()(),t.TgZ(12,"div",10)(13,"div",11),t.YNc(14,E0,1,0,"mat-progress-bar",12),t.TgZ(15,"table",13,14),t.ynx(17,15),t.YNc(18,L3,2,0,"th",16),t.YNc(19,bc,2,1,"td",17),t.BQk(),t.ynx(20,18),t.YNc(21,J2,2,0,"th",16),t.YNc(22,S3,2,1,"td",17),t.BQk(),t.ynx(23,19),t.YNc(24,Zu,2,0,"th",16),t.YNc(25,D0,4,4,"td",17),t.BQk(),t.ynx(26,20),t.YNc(27,$2,2,0,"th",16),t.YNc(28,Yu,4,4,"td",17),t.BQk(),t.ynx(29,21),t.YNc(30,A0,2,0,"th",22),t.YNc(31,xc,4,3,"td",17),t.BQk(),t.ynx(32,23),t.YNc(33,ef,2,0,"th",22),t.YNc(34,tf,4,3,"td",17),t.BQk(),t.ynx(35,24),t.YNc(36,Qu,2,0,"th",16),t.YNc(37,O3,4,4,"td",17),t.BQk(),t.ynx(38,25),t.YNc(39,P3,2,0,"th",16),t.YNc(40,Jo,4,4,"td",17),t.BQk(),t.ynx(41,26),t.YNc(42,Cc,2,0,"th",16),t.YNc(43,Mc,4,4,"td",17),t.BQk(),t.ynx(44,27),t.YNc(45,T0,2,0,"th",16),t.YNc(46,k3,4,4,"td",17),t.BQk(),t.ynx(47,28),t.YNc(48,R3,2,0,"th",16),t.YNc(49,ju,4,4,"td",17),t.BQk(),t.ynx(50,29),t.YNc(51,qu,2,0,"th",22),t.YNc(52,ed,4,3,"td",17),t.BQk(),t.ynx(53,30),t.YNc(54,Xu,2,0,"th",16),t.YNc(55,W1,2,1,"td",17),t.BQk(),t.ynx(56,31),t.YNc(57,B3,2,0,"th",16),t.YNc(58,N3,2,1,"td",17),t.BQk(),t.ynx(59,32),t.YNc(60,td,2,0,"th",16),t.YNc(61,$o,2,1,"td",17),t.BQk(),t.ynx(62,33),t.YNc(63,a1,6,0,"th",34),t.YNc(64,Ql,3,0,"td",35),t.BQk(),t.ynx(65,36),t.YNc(66,K1,2,1,"td",37),t.BQk(),t.YNc(67,F3,1,3,"tr",38),t.YNc(68,nd,1,0,"tr",39),t.YNc(69,jl,1,0,"tr",40),t.qZA(),t._UZ(70,"mat-paginator",41),t.qZA()()()),2&x&&(t.xp6(3),t.Q6J("icon",V.faHistory),t.xp6(2),t.hij("",V.swapCaption," History"),t.xp6(3),t.Q6J("ngModel",V.selFilterBy),t.xp6(1),t.Q6J("ngForOf",t.DdM(14,id).concat(V.displayedColumns.slice(0,-1))),t.xp6(2),t.Q6J("ngModel",V.selFilter),t.xp6(3),t.Q6J("ngIf",!0===V.flgLoading[0]),t.xp6(1),t.Q6J("dataSource",V.listSwaps)("ngClass",t.VKq(15,H3,"error"===V.flgLoading[0])),t.xp6(52),t.Q6J("matFooterRowDef",t.DdM(17,$u)),t.xp6(1),t.Q6J("matHeaderRowDef",V.displayedColumns),t.xp6(1),t.Q6J("matRowDefColumns",V.displayedColumns),t.xp6(1),t.Q6J("pageSize",V.pageSize)("pageSizeOptions",V.pageSizeOptions)("showFirstLastButtons",V.screenSize!==V.screenSizeEnum.XS))},dependencies:[si.mk,si.sg,si.O5,si.PC,qt.Fj,qt.JJ,qt.On,Ot.BN,Vt.xw,Vt.Wh,Vt.yH,Ea.oO,Ea.Zl,An.lW,Sn.KE,Er.Nt,pc.pW,Jn.gD,Jn.$L,oi.ey,H2.YE,H2.nU,wa.BZ,wa.fO,wa.as,wa.w1,wa.Dz,wa.nj,wa.mD,wa.Ke,wa.ge,wa.ev,wa.XQ,wa.Gk,wa.Q2,Kl.NW,xi.$V,si.JJ]})}const eh=function(K){return["../",K]};function th(K,T){if(1&K){const x=t.EpF();t.TgZ(0,"div",16),t.NdJ("click",function(){const nt=t.CHM(x).$implicit,kt=t.oxw();return t.KtG(kt.onSelectedIndexChange(nt))}),t._uU(1),t.qZA()}if(2&K){const x=T.$implicit,V=t.oxw();t.Q6J("active",V.activeTab.link===x.link)("routerLink",t.VKq(3,eh,x.link)),t.xp6(1),t.Oqu(x.name)}}class Z1{constructor(T,x,V){this.router=T,this.store=x,this.boltzService=V,this.swapTypeEnum=Qe.hc,this.selectedSwapType=Qe.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 Gn.x,new Gn.x,new Gn.x,new Gn.x]}ngOnInit(){this.boltzService.listSwaps();const T=this.links.find(x=>this.router.url.includes(x.link));this.activeTab=T||this.links[0],this.selectedSwapType=T&&"swapin"===T.link?Qe.hc.SWAP_IN:Qe.hc.SWAP_OUT,this.router.events.pipe((0,ui.R)(this.unSubs[0]),(0,xr.h)(x=>x instanceof Ne.Av)).subscribe({next:x=>{const V=this.links.find(ge=>x.urlAfterRedirects.includes(ge.link));this.activeTab=V||this.links[0],this.selectedSwapType=V&&"swapin"===V.link?Qe.hc.SWAP_IN:Qe.hc.SWAP_OUT}}),this.boltzService.swapsChanged.pipe((0,ui.R)(this.unSubs[1])).subscribe({next:x=>{this.swaps=x,this.swapsData=this.selectedSwapType===Qe.hc.SWAP_IN&&x.swaps?x.swaps:this.selectedSwapType===Qe.hc.SWAP_OUT&&x.reverseSwaps?x.reverseSwaps:[],this.flgLoading[0]=!1},error:x=>{this.flgLoading[0]="error",this.emptyTableMessage=x.message?x.message:"No swap "+(this.selectedSwapType===Qe.hc.SWAP_IN?"in":"out")+" available."}})}onSelectedIndexChange(T){"swapin"===T.link?(this.selectedSwapType=Qe.hc.SWAP_IN,this.swapsData=this.swaps.swaps||[]):(this.selectedSwapType=Qe.hc.SWAP_OUT,this.swapsData=this.swaps.reverseSwaps||[])}onSwap(T){this.boltzService.serviceInfo().pipe((0,ui.R)(this.unSubs[2])).subscribe({next:x=>{this.store.dispatch((0,Qt.qR)({payload:{data:{serviceInfo:x,direction:T,component:Fo}}}))}})}ngOnDestroy(){this.unSubs.forEach(T=>{T.next(null),T.complete()})}static#e=this.\u0275fac=function(x){return new(x||Z1)(t.Y36(Ne.F0),t.Y36(Hn.yh),t.Y36(yo))};static#t=this.\u0275cmp=t.Xpm({type:Z1,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","",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(x,V){if(1&x&&(t.TgZ(0,"div",0),t.O4$(),t.TgZ(1,"svg",1)(2,"g",2)(3,"g",3),t._UZ(4,"circle",4)(5,"path",5)(6,"path",6),t.qZA()()(),t.kcU(),t.TgZ(7,"span",7),t._uU(8,"Boltz"),t.qZA()(),t.TgZ(9,"div",8)(10,"mat-card")(11,"mat-card-content",9)(12,"nav",10),t.YNc(13,th,2,5,"div",11),t.qZA(),t._UZ(14,"mat-tab-nav-panel",null,12),t.TgZ(16,"div",13)(17,"button",14),t.NdJ("click",function(){return V.onSwap(V.selectedSwapType)}),t._uU(18),t.qZA()(),t._UZ(19,"rtl-boltz-swaps",15),t.qZA()()()),2&x){const ge=t.MAs(15);t.xp6(12),t.Q6J("tabPanel",ge),t.xp6(1),t.Q6J("ngForOf",V.links),t.xp6(5),t.hij("Start ",V.activeTab.name,""),t.xp6(1),t.Q6J("selectedSwapType",V.selectedSwapType)("swapsData",V.swapsData)("flgLoading",V.flgLoading)("emptyTableMessage",V.emptyTableMessage)}},dependencies:[si.sg,Vt.xw,Vt.Wh,Vt.yH,An.lW,fn.a8,fn.dn,Un.BU,Un.sW,Un.Nj,Ne.rH,G1]})}class wr{constructor(T){this.help=T}}function el(K,T){if(1&K&&(t.TgZ(0,"mat-expansion-panel",8)(1,"mat-expansion-panel-header")(2,"mat-panel-title"),t._uU(3),t.qZA()(),t.TgZ(4,"mat-panel-description",9),t._UZ(5,"span",10),t.TgZ(6,"a",11),t._uU(7),t.qZA()()()),2&K){const x=t.oxw().$implicit,V=t.oxw();t.xp6(3),t.Oqu(x.help.question),t.xp6(2),t.Q6J("innerHTML",x.help.answer,t.oJD),t.xp6(1),t.Q6J("routerLink",V.flgLoggedIn?x.help.link:"/login"),t.xp6(1),t.Oqu(V.flgLoggedIn?x.help.linkCaption:"Login to go to the page")}}function L0(K,T){if(1&K&&(t.TgZ(0,"div",6),t.YNc(1,el,8,4,"mat-expansion-panel",7),t.qZA()),2&K){const x=T.$implicit,V=t.oxw();t.xp6(1),t.Q6J("ngIf","ALL"===x.help.lnImplementation||x.help.lnImplementation===V.selNode.lnImplementation)}}class rd{constructor(T,x){this.store=T,this.sessionService=x,this.helpTopics=[],this.faQuestion=fe.Psp,this.LNPLink="/lnd/",this.flgLoggedIn=!1,this.unSubs=[new Gn.x,new Gn.x,new Gn.x,new Gn.x]}ngOnInit(){this.store.select(st.dT).pipe((0,ui.R)(this.unSubs[0])).subscribe(T=>{this.selNode=T,this.selNode.lnImplementation&&""!==this.selNode.lnImplementation.trim()&&(this.LNPLink="/"+this.selNode.lnImplementation.toLowerCase()+"/",this.addHelpTopics())}),this.sessionService.watchSession().pipe((0,ui.R)(this.unSubs[1])).subscribe(T=>{this.flgLoggedIn=!!T.token}),this.sessionService.getItem("token")&&(this.flgLoggedIn=!0)}addHelpTopics(){this.helpTopics=[],this.helpTopics.push(new wr({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 wr({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 wr({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 wr({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 wr({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 wr({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 wr({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 wr({question:"Offers",answer:'Send offer payments, create offer invoices and bookmark paid offers on your node.\nGo to the "Transactions" page under the "Lightning" menu :\nPayment for bolt12 offer invoice can be done on "Payments" tab:\n 1. Click on "Send Payment" button.\n 2. Select "Offer" option on the modal.\n 2. Offer Request - Input offer request (Bolt12 format) in the input box.\n 3. Bookmark - Select the checkbox to bookmark this offer for future use.\nOffers tab is for creating bolt12 offer invoice on your node:\n 1. Click on "Create Offer" button.\n 2. Description - Description you want to provide on the offer invoice.\n 3. Amount - Amount for the offer invoice.\n 4. Vendor - Vendor of the offer.\nPaid offer bookmarks shows the list of paid offers saved for future payments.\n',link:this.LNPLink+"transactions/offers",linkCaption:"Offers",lnImplementation:"CLN"})),this.helpTopics.push(new wr({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 wr({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 wr({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 wr({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 wr({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 wr({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 wr({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 wr({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 wr({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 wr({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(T=>{T.next(null),T.complete()})}static#e=this.\u0275fac=function(x){return new(x||rd)(t.Y36(Hn.yh),t.Y36(Qo.m))};static#t=this.\u0275cmp=t.Xpm({type:rd,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(x,V){1&x&&(t.TgZ(0,"div",0)(1,"div",1),t._UZ(2,"fa-icon",2),t.TgZ(3,"span",3),t._uU(4,"Help"),t.qZA()(),t.TgZ(5,"div",4)(6,"div",0),t.YNc(7,L0,2,1,"div",5),t.qZA()()()),2&x&&(t.xp6(2),t.Q6J("icon",V.faQuestion),t.xp6(5),t.Q6J("ngForOf",V.helpTopics))},dependencies:[si.sg,si.O5,Ot.BN,Vt.xw,Vt.Wh,Vt.yH,zi.ib,zi.yz,zi.yK,zi.u4,Ne.rH],styles:[".mat-card-content[_ngcontent-%COMP%]{margin-bottom:4px}"]})}var ah=m(6562);function S0(K,T){1&K&&(t.TgZ(0,"mat-error"),t._uU(1,"Token is required."),t.qZA())}class sd{constructor(T,x){this.dialogRef=T,this.store=x,this.token=""}onClose(){this.dialogRef.close(null)}onVerifyToken(){if(!this.token)return!0;this.dialogRef.close(),this.store.dispatch((0,Qt.M6)({payload:{twoFAToken:this.token}}))}static#e=this.\u0275fac=function(x){return new(x||sd)(t.Y36(Ma.so),t.Y36(Hn.yh))};static#t=this.\u0275cmp=t.Xpm({type:sd,selectors:[["rtl-login-token"]],decls:17,vars:2,consts:[["fxLayout","column","fxLayout.gt-sm","row","fxLayoutAlign","space-between stretch"],["fxFlex","100"],["fxLayout","row","fxLayoutAlign","space-between center",1,"modal-info-header"],["fxFlex","95","fxLayoutAlign","start start"],[1,"page-title"],["tabindex","3","fxFlex","5","fxLayoutAlign","center","mat-button","",1,"btn-close-x","p-0",3,"click"],["fxLayout","row",1,"padding-gap-x-large"],["fxLayout","column","fxFlex","100",3,"ngSubmit"],["tokenForm","ngForm"],["autoFocus","","matInput","","placeholder","Token","type","text","id","token","name","token","tabindex","2","required","",3,"ngModel","ngModelChange"],[4,"ngIf"],["fxLayout","row","fxFlex","100","fxLayoutAlign","end center",1,"mt-1"],["mat-button","","color","primary","tabindex","4","type","submit"]],template:function(x,V){1&x&&(t.TgZ(0,"div",0)(1,"div",1)(2,"mat-card-header",2)(3,"div",3)(4,"span",4),t._uU(5,"Two Factor Token"),t.qZA()(),t.TgZ(6,"button",5),t.NdJ("click",function(){return V.onClose()}),t._uU(7,"X"),t.qZA()(),t.TgZ(8,"mat-card-content",6)(9,"form",7,8),t.NdJ("ngSubmit",function(){return V.onVerifyToken()}),t.TgZ(11,"mat-form-field")(12,"input",9),t.NdJ("ngModelChange",function(nt){return V.token=nt}),t.qZA(),t.YNc(13,S0,2,0,"mat-error",10),t.qZA(),t.TgZ(14,"div",11)(15,"button",12),t._uU(16,"Verify Token"),t.qZA()()()()()()),2&x&&(t.xp6(12),t.Q6J("ngModel",V.token),t.xp6(1),t.Q6J("ngIf",!V.token))},dependencies:[si.O5,qt._Y,qt.Fj,qt.JJ,qt.JL,qt.Q7,qt.On,qt.F,Vt.xw,Vt.Wh,Vt.yH,An.lW,fn.dk,fn.dn,Sn.TO,Sn.KE,Er.Nt,Si.h]})}function rh(K,T){1&K&&(t.TgZ(0,"mat-error"),t._uU(1,"Password is required."),t.qZA())}function Ga(K,T){if(1&K&&(t.TgZ(0,"p",21)(1,"mat-icon",22),t._uU(2,"close"),t.qZA(),t._uU(3),t.qZA()),2&K){const x=t.oxw();t.xp6(3),t.hij(" ",x.loginErrorMessage," ")}}const O0=function(K){return{"padding-gap-large":K}},P0=function(K,T){return{"font-size-200":K,"font-size-300":T}};class Y1{constructor(T,x,V,ge){this.logger=T,this.store=x,this.rtlEffects=V,this.commonService=ge,this.faUnlockAlt=fe.B$L,this.password="",this.rtlSSO=0,this.rtlCookiePath="",this.accessKey="",this.flgShow=!1,this.screenSize="",this.screenSizeEnum=Qe.cu,this.loginErrorMessage="",this.apiCallStatusEnum=Qe.Bn,this.unSubs=[new Gn.x,new Gn.x,new Gn.x]}ngOnInit(){this.screenSize=this.commonService.getScreenSize(),(0,ah.a)([this.store.select(st.ul),this.store.select(st.Sr)]).pipe((0,ui.R)(this.unSubs[0])).subscribe(([T,x])=>{this.loginErrorMessage="",T.status===Qe.Bn.ERROR&&(this.loginErrorMessage=this.loginErrorMessage+("object"==typeof T.message?JSON.stringify(T.message):T.message),this.logger.error(T.message)),x.status===Qe.Bn.ERROR&&(this.loginErrorMessage=this.loginErrorMessage+("object"==typeof x.message?JSON.stringify(x.message):x.message),this.logger.error(x.message))}),this.store.select(st.Yj).pipe((0,ui.R)(this.unSubs[1])).subscribe(T=>{this.appConfig=T,this.logger.info(T)})}onLogin(){if(!this.password)return!0;this.loginErrorMessage="",this.appConfig.enable2FA?(this.store.dispatch((0,Qt.qR)({payload:{maxWidth:"35rem",data:{component:sd}}})),this.rtlEffects.closeAlert.pipe((0,Ka.q)(1)).subscribe(T=>{T&&this.store.dispatch((0,Qt.x4)({payload:{password:Mr(this.password),defaultPassword:Qe.kO.includes(this.password.toLowerCase()),twoFAToken:T.twoFAToken}}))})):this.store.dispatch((0,Qt.x4)({payload:{password:Mr(this.password),defaultPassword:Qe.kO.includes(this.password.toLowerCase())}}))}resetData(){this.password="",this.loginErrorMessage="",this.flgShow=!1}ngOnDestroy(){this.unSubs.forEach(T=>{T.next(null),T.complete()})}static#e=this.\u0275fac=function(x){return new(x||Y1)(t.Y36(sn.mQ),t.Y36(Hn.yh),t.Y36(Na.V),t.Y36(ta.v))};static#t=this.\u0275cmp=t.Xpm({type:Y1,selectors:[["rtl-login"]],decls:25,vars:12,consts:[["fxLayout","column","fxFlex","100","fxLayoutAlign","center stretch",1,"login-container"],["fxLayout","row","fxFlex","50","fxLayoutAlign","center stretch"],["fxLayout","row","fxFlex","45","fxLayoutAlign","center stretch"],["fxLayout","column","fxLayout.gt-sm","row","fxFlex","100","fxLayoutAlign","stretch stretch"],["fxFlex","35","fxLayoutAlign","center center",1,"bg-primary"],["src","assets/images/RTL-Horse-BY.svg","alt","RTL Logo",1,"rtl-logo-svg"],["fxFlex","65","fxLayout","column","fxLayoutAlign","center stretch",3,"ngClass"],["fxLayout","row","fxLayoutAlign","center center",1,"page-title-container","p-0"],[1,"font-bold-500",3,"ngClass"],[1,"page-title"],[1,"mt-5px","mb-0","px-2"],["fxLayout","column","fxLayout.gt-sm","row wrap","fxLayoutAlign","start","fxLayoutAlign.gt-sm","space-between"],["loginForm","ngForm"],["fxFlex","100","fxLayoutAlign","start"],["autoFocus","","matInput","","placeholder","Password","id","password","name","password","tabindex","1","required","",3,"type","ngModel","ngModelChange"],["tabindex","2","matSuffix","",3,"click"],[4,"ngIf"],["fxFlex","100","class","color-warn pre-wrap","fxLayoutAlign","start start",4,"ngIf"],["fxLayout","row","fxFlex","100","fxLayoutAlign","end center",1,"mt-2"],["mat-stroked-button","","color","primary","tabindex","2","type","reset",1,"mr-1",3,"click"],["mat-flat-button","","color","primary","tabindex","3","type","submit",3,"click"],["fxFlex","100","fxLayoutAlign","start start",1,"color-warn","pre-wrap"],[1,"mr-1","icon-small"]],template:function(x,V){1&x&&(t.TgZ(0,"div",0)(1,"div",1)(2,"mat-card",2)(3,"div",3)(4,"div",4),t._UZ(5,"img",5),t.qZA(),t.TgZ(6,"div",6)(7,"mat-card-header",7)(8,"mat-card-title",8)(9,"span",9),t._uU(10,"Welcome"),t.qZA()()(),t.TgZ(11,"mat-card-content",10)(12,"form",11,12)(14,"mat-form-field",13)(15,"input",14),t.NdJ("ngModelChange",function(nt){return V.password=nt}),t.qZA(),t.TgZ(16,"mat-icon",15),t.NdJ("click",function(){return V.flgShow=!V.flgShow}),t._uU(17),t.qZA(),t.YNc(18,rh,2,0,"mat-error",16),t.qZA(),t.YNc(19,Ga,4,1,"p",17),t.TgZ(20,"div",18)(21,"button",19),t.NdJ("click",function(){return V.resetData()}),t._uU(22,"Clear"),t.qZA(),t.TgZ(23,"button",20),t.NdJ("click",function(){return V.onLogin()}),t._uU(24,"Login"),t.qZA()()()()()()()()()),2&x&&(t.xp6(6),t.Q6J("ngClass",t.VKq(7,O0,V.screenSize===V.screenSizeEnum.XS)),t.xp6(2),t.Q6J("ngClass",t.WLB(9,P0,V.screenSize===V.screenSizeEnum.XS,V.screenSize!==V.screenSizeEnum.XS)),t.xp6(7),t.Q6J("type",V.flgShow?"text":"password")("ngModel",V.password),t.xp6(2),t.Oqu(V.flgShow?"visibility_off":"visibility"),t.xp6(1),t.Q6J("ngIf",!V.password),t.xp6(1),t.Q6J("ngIf",""!==V.loginErrorMessage))},dependencies:[si.mk,si.O5,qt._Y,qt.Fj,qt.JJ,qt.JL,qt.Q7,qt.On,qt.F,Vt.xw,Vt.Wh,Vt.yH,Ea.oO,An.lW,fn.a8,fn.dk,fn.dn,fn.n5,Fl.Hw,Sn.TO,Sn.KE,Sn.R9,Er.Nt,Si.h],styles:[".login-container[_ngcontent-%COMP%]{height:90vh}.login-container[_ngcontent-%COMP%] .mat-card[_ngcontent-%COMP%]{height:30rem}.login-container[_ngcontent-%COMP%] .rtl-logo-svg[_ngcontent-%COMP%]{width:100%}@media only screen and (max-width: 56.25em){.login-container[_ngcontent-%COMP%] .rtl-logo-svg[_ngcontent-%COMP%]{width:37%}}@media only screen and (max-width: 37.5em){.login-container[_ngcontent-%COMP%] .rtl-logo-svg[_ngcontent-%COMP%]{width:70%}}.login-container[_ngcontent-%COMP%] .material-icons.mat-icon[_ngcontent-%COMP%]{font-size:120%;cursor:pointer}"]})}var qr=m(9442);class Cl{constructor(T,x){this.activatedRoute=T,this.router=x,this.error={errorCode:"",errorMessage:""},this.faTimes=fe.NBC,this.unsubs=[new Gn.x,new Gn.x]}ngOnInit(){this.router.routeReuseStrategy.shouldReuseRoute=()=>!1,this.router.onSameUrlNavigation="reload",this.activatedRoute.paramMap.pipe((0,ui.R)(this.unsubs[0])).subscribe(T=>{this.error=window.history.state})}goToHelp(){this.router.navigate(["/help"])}static#e=this.\u0275fac=function(x){return new(x||Cl)(t.Y36(Ne.gz),t.Y36(Ne.F0))};static#t=this.\u0275cmp=t.Xpm({type:Cl,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(x,V){1&x&&(t.TgZ(0,"div",0)(1,"mat-card",1)(2,"mat-card-header",2)(3,"mat-card-title",3),t._UZ(4,"fa-icon",4),t.TgZ(5,"span",5),t._uU(6),t.qZA()()(),t.TgZ(7,"mat-card-content",6)(8,"div",7),t._uU(9),t.qZA(),t.TgZ(10,"span",8)(11,"button",9),t.NdJ("click",function(){return V.goToHelp()}),t._uU(12,"Go To Help"),t.qZA()()()()()),2&x&&(t.xp6(4),t.Q6J("icon",V.faTimes),t.xp6(2),t.hij("Error ",V.error.errorCode,""),t.xp6(3),t.Oqu(V.error.errorMessage))},dependencies:[Ot.BN,Vt.xw,Vt.Wh,Vt.yH,An.lW,fn.a8,fn.dk,fn.dn,fn.n5],encapsulation:2})}var er=m(1643),r1=m(8104),Q1=m(9843),k0=m(6534);function s1(K,T){1&K&&t._UZ(0,"span",16)}function R0(K,T){1&K&&t._UZ(0,"span",17)}function sh(K,T){if(1&K){const x=t.EpF();t.TgZ(0,"form",18,4)(2,"div",19),t._UZ(3,"fa-icon",2),t.TgZ(4,"span"),t._uU(5,"Please ensure that "),t.TgZ(6,"strong"),t._uU(7,"experimental-offers"),t.qZA(),t._uU(8," flag is set to true in the Core Lightning config before enabling it in RTL. Click "),t.TgZ(9,"strong")(10,"a",20),t._uU(11,"here"),t.qZA()(),t._uU(12," to learn more about Core Lightning offers."),t.qZA()(),t.TgZ(13,"h4",21),t._uU(14,"Description"),t.qZA(),t.TgZ(15,"span"),t._uU(16,"Offers is a draft specification (also referred as BOLT12) for Lightning nodes and wallets, with experimental support in Core Lightning."),t.qZA(),t.TgZ(17,"h4",21),t._uU(18,"Links"),t.qZA(),t.TgZ(19,"span")(20,"a",22),t._uU(21,"Core lightning Bolt12"),t.qZA()(),t._UZ(22,"mat-divider",23),t.TgZ(23,"div",24),t._UZ(24,"fa-icon",2),t.TgZ(25,"span"),t._uU(26,"Do not get an Offer tattoo until spec is fully ratified!"),t.qZA()(),t.TgZ(27,"mat-slide-toggle",25),t.NdJ("ngModelChange",function(ge){t.CHM(x);const nt=t.oxw(2);return t.KtG(nt.enableOffers=ge)})("change",function(){t.CHM(x);const ge=t.oxw(2);return t.KtG(ge.onUpdateFeature())}),t._uU(28),t.qZA()()}if(2&K){const x=t.oxw(2);t.xp6(3),t.Q6J("icon",x.faInfoCircle),t.xp6(19),t.Q6J("inset",!0),t.xp6(2),t.Q6J("icon",x.faExclamationTriangle),t.xp6(3),t.Q6J("ngModel",x.enableOffers),t.xp6(1),t.hij("Enable Offers ",x.enableOffers?"(You can find Offers under Lightning -> Transactions -> Offers)":"","")}}function B0(K,T){if(1&K&&(t.TgZ(0,"div")(1,"div",28),t._UZ(2,"fa-icon",2),t.TgZ(3,"span"),t._uU(4,"Please ensure that "),t.TgZ(5,"strong"),t._uU(6,"experimental-dual-fund"),t.qZA(),t._uU(7," flag is set to true in the Core Lightning config before enabling it in RTL. Click "),t.TgZ(8,"strong")(9,"a",29),t._uU(10,"here"),t.qZA()(),t._uU(11," to learn more about Core Lightning Liquidity Ads."),t.qZA()()()),2&K){const x=t.oxw(3);t.xp6(2),t.Q6J("icon",x.faExclamationTriangle)}}function o1(K,T){if(1&K&&(t.TgZ(0,"mat-option",47),t._uU(1),t.ALo(2,"titlecase"),t.qZA()),2&K){const x=T.$implicit;t.Q6J("value",x),t.xp6(1),t.hij(" ",t.lcZ(2,2,x.id)," ")}}function N0(K,T){if(1&K&&(t.TgZ(0,"mat-error"),t._uU(1),t.qZA()),2&K){const x=t.oxw(4);t.xp6(1),t.hij("",x.selPolicyType.placeholder," is required.")}}function Ml(K,T){if(1&K&&(t.TgZ(0,"mat-error"),t._uU(1),t.qZA()),2&K){const x=t.oxw(4);t.xp6(1),t.AsE("",x.selPolicyType.placeholder," must be greater than or equal to ",x.selPolicyType.min,".")}}function U3(K,T){if(1&K&&(t.TgZ(0,"mat-error"),t._uU(1),t.qZA()),2&K){const x=t.oxw(4);t.xp6(1),t.AsE("",x.selPolicyType.placeholder," must be less than or equal to ",x.selPolicyType.max,".")}}function j1(K,T){1&K&&(t.TgZ(0,"mat-error"),t._uU(1,"Lease base fee is required."),t.qZA())}function F0(K,T){1&K&&(t.TgZ(0,"mat-error"),t._uU(1,"Lease base basis is required."),t.qZA())}function od(K,T){1&K&&(t.TgZ(0,"mat-error"),t._uU(1,"Max channel routing base fee is required."),t.qZA())}function l1(K,T){1&K&&(t.TgZ(0,"mat-error"),t._uU(1,"Max channel routing fee rate is required."),t.qZA())}const H0=function(K,T){return{"alert-danger":K,"alert-info":T}};function da(K,T){if(1&K&&(t.TgZ(0,"h4",48)(1,"span",49),t._uU(2),t.qZA()()),2&K){const x=t.oxw(4);t.xp6(1),t.Q6J("ngClass",t.WLB(2,H0,!!x.updateMsg.error,!!x.updateMsg.data)),t.xp6(1),t.hij(" ",x.updateMsg.error&&""!==x.updateMsg.error?"Error: "+x.updateMsg.error||0:x.updateMsg.data&&""!==x.updateMsg.data?x.updateMsg.data:"Successfully Updated the Funding Policy!"," ")}}function q1(K,T){if(1&K){const x=t.EpF();t.TgZ(0,"div",30)(1,"div",31),t._UZ(2,"fa-icon",2),t.TgZ(3,"span"),t._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."),t.qZA()(),t.TgZ(5,"div",32)(6,"mat-form-field",33)(7,"mat-select",34),t.NdJ("ngModelChange",function(ge){t.CHM(x);const nt=t.oxw(3);return t.KtG(nt.selPolicyType=ge)})("selectionChange",function(){t.CHM(x);const ge=t.oxw(3);return t.KtG(ge.policyMod=null)}),t.YNc(8,o1,3,4,"mat-option",35),t.qZA()(),t.TgZ(9,"mat-form-field",36)(10,"input",37,38),t.NdJ("ngModelChange",function(ge){t.CHM(x);const nt=t.oxw(3);return t.KtG(nt.policyMod=ge)}),t.qZA(),t.TgZ(12,"mat-hint"),t._uU(13),t.qZA(),t.YNc(14,N0,2,1,"mat-error",26),t.YNc(15,Ml,2,2,"mat-error",26),t.YNc(16,U3,2,2,"mat-error",26),t.qZA()(),t.TgZ(17,"div",32)(18,"mat-form-field",36)(19,"input",39),t.NdJ("ngModelChange",function(ge){t.CHM(x);const nt=t.oxw(3);return t.KtG(nt.lease_fee_base_sat=ge)}),t.qZA(),t.YNc(20,j1,2,0,"mat-error",26),t.qZA(),t.TgZ(21,"mat-form-field",36)(22,"input",40),t.NdJ("ngModelChange",function(ge){t.CHM(x);const nt=t.oxw(3);return t.KtG(nt.lease_fee_basis=ge)}),t.qZA(),t.YNc(23,F0,2,0,"mat-error",26),t.qZA()(),t.TgZ(24,"div",32)(25,"mat-form-field",36)(26,"input",41),t.NdJ("ngModelChange",function(ge){t.CHM(x);const nt=t.oxw(3);return t.KtG(nt.channelFeeMaxBaseSat=ge)}),t.qZA(),t.YNc(27,od,2,0,"mat-error",26),t.qZA(),t.TgZ(28,"mat-form-field",36)(29,"input",42),t.NdJ("ngModelChange",function(ge){t.CHM(x);const nt=t.oxw(3);return t.KtG(nt.channelFeeMaxProportional=ge)}),t.qZA(),t.YNc(30,l1,2,0,"mat-error",26),t.qZA()(),t.YNc(31,da,3,5,"h4",43),t.TgZ(32,"div",44)(33,"button",45),t.NdJ("click",function(){t.CHM(x);const ge=t.oxw(3);return t.KtG(ge.onResetPolicy())}),t._uU(34,"Reset"),t.qZA(),t.TgZ(35,"button",46),t.NdJ("click",function(){t.CHM(x);const ge=t.oxw(3);return t.KtG(ge.onUpdateFundingPolicy())}),t._uU(36,"Update"),t.qZA()()()}if(2&K){const x=t.oxw(3);t.xp6(2),t.Q6J("icon",x.faExclamationTriangle),t.xp6(5),t.Q6J("ngModel",x.selPolicyType),t.xp6(1),t.Q6J("ngForOf",x.policyTypes),t.xp6(2),t.Q6J("placeholder",x.selPolicyType.placeholder)("step","fixed"===x.selPolicyType.id?1e3:10)("min",x.selPolicyType.min)("max",x.selPolicyType.max)("ngModel",x.policyMod),t.xp6(3),t.lnq("",x.selPolicyType.placeholder," should be between ",x.selPolicyType.min," and ",x.selPolicyType.max,""),t.xp6(1),t.Q6J("ngIf",!x.policyMod),t.xp6(1),t.Q6J("ngIf",x.policyMod<x.selPolicyType.min),t.xp6(1),t.Q6J("ngIf",x.policyMod>x.selPolicyType.max),t.xp6(3),t.Q6J("ngModel",x.lease_fee_base_sat),t.xp6(1),t.Q6J("ngIf",!x.lease_fee_base_sat),t.xp6(2),t.Q6J("ngModel",x.lease_fee_basis),t.xp6(1),t.Q6J("ngIf",!x.lease_fee_basis),t.xp6(3),t.Q6J("ngModel",x.channelFeeMaxBaseSat),t.xp6(1),t.Q6J("ngIf",!x.channelFeeMaxBaseSat),t.xp6(2),t.Q6J("ngModel",x.channelFeeMaxProportional),t.xp6(1),t.Q6J("ngIf",!x.channelFeeMaxProportional),t.xp6(1),t.Q6J("ngIf",x.flgUpdateCalled)}}function Ec(K,T){if(1&K&&(t.TgZ(0,"form",18,4),t.YNc(2,B0,12,1,"div",26),t.YNc(3,q1,37,23,"div",27),t.qZA()),2&K){const x=t.oxw(2);t.xp6(2),t.Q6J("ngIf",!x.features[1].enabled),t.xp6(1),t.Q6J("ngIf",x.features[1].enabled)}}function ld(K,T){if(1&K){const x=t.EpF();t.TgZ(0,"mat-expansion-panel",9),t.NdJ("opened",function(){const nt=t.CHM(x).index,kt=t.oxw();return t.KtG(kt.onPanelExpanded(nt))}),t.TgZ(1,"mat-expansion-panel-header")(2,"mat-panel-title",10)(3,"h4",11),t._uU(4),t.qZA(),t.TgZ(5,"h4",11),t.YNc(6,s1,1,0,"span",12),t.YNc(7,R0,1,0,"span",13),t._uU(8),t.qZA()()(),t.TgZ(9,"div",14),t.YNc(10,sh,29,5,"form",15),t.YNc(11,Ec,4,2,"form",15),t.qZA()()}if(2&K){const x=T.$implicit,V=T.index;t.Q6J("expanded",!1),t.xp6(4),t.Oqu(x.name),t.xp6(2),t.Q6J("ngIf",x.enabled),t.xp6(1),t.Q6J("ngIf",!x.enabled),t.xp6(1),t.hij(" ",x.enabled?"Enabled":"Disabled"," "),t.xp6(2),t.Q6J("ngIf",0===V),t.xp6(1),t.Q6J("ngIf",1===V)}}class ql{constructor(T,x,V,ge){this.logger=T,this.store=x,this.dataService=V,this.commonService=ge,this.faInfoCircle=fe.sqG,this.faExclamationTriangle=fe.eHv,this.faCode=fe.dT$,this.features=[{name:"Offers",enabled:!1},{name:"Channel Funding Policy",enabled:!1}],this.enableOffers=!1,this.fundingPolicy={},this.policyTypes=Qe.gB,this.selPolicyType=Qe.gB[0],this.flgUpdateCalled=!1,this.updateMsg={},this.unSubs=[new Gn.x,new Gn.x,new Gn.x,new Gn.x,new Gn.x]}ngOnInit(){this.dataService.listConfigs().pipe((0,ui.R)(this.unSubs[0])).subscribe({next:T=>{this.logger.info("Received List Configs: "+JSON.stringify(T)),this.features[1].enabled=!!T["experimental-dual-fund"]},error:T=>{this.logger.error("List Configs Error: "+JSON.stringify(T)),this.features[1].enabled=!1}}),this.store.select(st.dT).pipe((0,ui.R)(this.unSubs[1])).subscribe(T=>{this.selNode=T,this.enableOffers=this.selNode.settings.enableOffers||!1,this.features[0].enabled=this.enableOffers,this.logger.info(this.selNode)}),this.store.select(Cs.Rn).pipe((0,ui.R)(this.unSubs[2])).subscribe(T=>{this.policyTypes[2].max=T.balance.totalBalance||1e3})}onPanelExpanded(T){1===T&&!this.fundingPolicy.policy&&this.dataService.getOrUpdateFunderPolicy().pipe((0,ui.R)(this.unSubs[3])).subscribe(x=>{this.logger.info("Received Funder Update Policy: "+JSON.stringify(x)),this.fundingPolicy=x,this.fundingPolicy.policy&&(this.selPolicyType=Qe.gB.find(V=>V.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,Qt.jS)({payload:{uiMessage:Qe.m6.UPDATE_SETTING,service:Qe.JX.OFFERS,settings:{enableOffers:this.enableOffers}}})),this.store.dispatch((0,di.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,Rn.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,Dn.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,ui.R)(this.unSubs[4])).subscribe({next:T=>{this.logger.info(T),this.fundingPolicy=T,this.updateMsg={data:"Compact Lease: "+T.compact_lease},setTimeout(()=>{this.flgUpdateCalled=!1},5e3)},error:T=>{this.logger.error(T),this.updateMsg={error:this.commonService.extractErrorMessage(T,"Error in updating funder policy")},setTimeout(()=>{this.flgUpdateCalled=!1},5e3)}})}onResetPolicy(){this.flgUpdateCalled=!1,this.updateMsg={},this.fundingPolicy.policy?this.selPolicyType=Qe.gB.find(T=>T.id===this.fundingPolicy.policy)||this.policyTypes[0]:this.selPolicyType=Qe.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(T=>{T.next(null),T.complete()})}static#e=this.\u0275fac=function(x){return new(x||ql)(t.Y36(sn.mQ),t.Y36(Hn.yh),t.Y36(r1.D),t.Y36(ta.v))};static#t=this.\u0275cmp=t.Xpm({type:ql,selectors:[["rtl-experimental-settings"]],decls:13,vars:3,consts:[["fxLayout","column","fxFlex","100",3,"perfectScrollbar"],["fxFlex","100",1,"alert","alert-info","mt-1"],[1,"mr-1","alert-icon",3,"icon"],["fxLayout","column","fxLayoutAlign","start stretch",1,"page-sub-title-container","mt-1"],["form","ngForm"],["fxLayout","row"],[1,"page-title-img","mr-1",3,"icon"],[1,"page-title"],["class","flat-expansion-panel my-1",3,"expanded","opened",4,"ngFor","ngForOf"],[1,"flat-expansion-panel","my-1",3,"expanded","opened"],["fxFlex","100","fxLayoutAlign","space-between center"],[1,"font-bold-500"],["class","dot green",4,"ngIf"],["class","dot yellow",4,"ngIf"],["fxLayout","column","fxFlex","100","fxLayoutAlign","start stretch"],["fxLayout","column","fxFlex","100","fxLayoutAlign","start stretch","class","page-sub-title-container",4,"ngIf"],[1,"dot","green"],[1,"dot","yellow"],["fxLayout","column","fxFlex","100","fxLayoutAlign","start stretch",1,"page-sub-title-container"],["fxFlex","100",1,"alert","alert-info"],["href","http://bolt12.org","target","_blank"],[1,"mt-2"],["href","https://github.com/lightningnetwork/lightning-rfc/pull/798 ","target","blank"],[1,"my-2",3,"inset"],[1,"alert","alert-warn"],["autoFocus","","tabindex","1","color","primary","name","enableOfr",1,"my-1",3,"ngModel","ngModelChange","change"],[4,"ngIf"],["fxLayout","column",4,"ngIf"],["fxFlex","100","fxLayout","row",1,"alert","alert-warn"],["href","https://medium.com/blockstream/setting-up-liquidity-ads-in-c-lightning-54e4c59c091d","target","_blank"],["fxLayout","column"],["fxFlex","100","fxLayout","row",1,"alert","alert-warn","mb-2"],["fxLayout","column","fxLayout.gt-sm","row","fxFlex","100","fxLayoutAlign.gt-sm","space-between center","fxLayoutAlign","start stretch"],["fxFlex","49","fxLayoutAlign","start end"],["autofocus","","tabindex","1","placeholder","Policy","name","policy",3,"ngModel","ngModelChange","selectionChange"],[3,"value",4,"ngFor","ngForOf"],["fxFlex","49"],["matInput","","type","number","tabindex","2","required","","name","plcMod",3,"placeholder","step","min","max","ngModel","ngModelChange"],["plcMod","ngModel"],["matInput","","placeholder","Lease Base Fee (Sats)","type","number","step","100","min","0","tabindex","3","required","","name","lease_fee_base_sat",3,"ngModel","ngModelChange"],["matInput","","placeholder","Lease Base Basis (bps)","type","number","step","1","min","0","tabindex","4","required","","name","lease_fee_basis",3,"ngModel","ngModelChange"],["matInput","","placeholder","Max Channel Routing Base Fee (Sats)","type","number","step","100","min","0","tabindex","5","required","","name","channelFeeMaxBaseSat",3,"ngModel","ngModelChange"],["matInput","","placeholder","Max Channel Routing Fee Rate (ppm)","type","number","step","1000","min","0","tabindex","6","required","","name","channelFeeMaxProportional",3,"ngModel","ngModelChange"],["fxLayoutAlign","start stretch","class","font-bold-500 mt-2",4,"ngIf"],["fxLayout","row",1,"my-1"],["mat-stroked-button","","color","primary","tabindex","7",1,"mr-1",3,"click"],["mat-flat-button","","color","primary","tabindex","8",3,"click"],[3,"value"],["fxLayoutAlign","start stretch",1,"font-bold-500","mt-2"],["fxFlex","100",1,"alert",3,"ngClass"]],template:function(x,V){1&x&&(t.TgZ(0,"div",0)(1,"div",1),t._UZ(2,"fa-icon",2),t.TgZ(3,"span"),t._uU(4,"Experimental features should be enabled with caution. Many such features may be implementation specific and not ratified for the BOLT spec. Enabling these may still result in a broken experience. Referencing relevant feature documentation is highly advised before enabling."),t.qZA()(),t.TgZ(5,"form",3,4)(7,"div",5),t._UZ(8,"fa-icon",6),t.TgZ(9,"span",7),t._uU(10,"Features"),t.qZA()(),t.TgZ(11,"mat-accordion"),t.YNc(12,ld,12,7,"mat-expansion-panel",8),t.qZA()()()),2&x&&(t.xp6(2),t.Q6J("icon",V.faInfoCircle),t.xp6(6),t.Q6J("icon",V.faCode),t.xp6(4),t.Q6J("ngForOf",V.features))},dependencies:[si.mk,si.sg,si.O5,qt._Y,qt.Fj,qt.wV,qt.JJ,qt.JL,qt.Q7,qt.qQ,qt.Fd,qt.On,qt.F,Ot.BN,Vt.xw,Vt.Wh,Vt.yH,Ea.oO,An.lW,zi.pp,zi.ib,zi.yz,zi.yK,Sn.TO,Sn.KE,Sn.bx,Er.Nt,io.d,Jn.gD,oi.ey,so.Rr,xi.$V,Si.h,Q1.F,k0.q,si.rS],styles:["h4[_ngcontent-%COMP%]{word-break:break-word}"]})}const tl=[{path:"",pathMatch:"full",redirectTo:"login"},{path:"lnd",loadChildren:()=>Promise.all([m.e("default-src_app_shared_components_currency-unit-converter_currency-unit-converter_component_t-449cdf"),m.e("src_app_lnd_lnd_module_ts")]).then(m.bind(m,1636)).then(K=>K.LNDModule),canActivate:[er.a1]},{path:"cln",loadChildren:()=>Promise.all([m.e("default-src_app_shared_components_currency-unit-converter_currency-unit-converter_component_t-449cdf"),m.e("src_app_cln_cln_module_ts")]).then(m.bind(m,9564)).then(K=>K.CLNModule),canActivate:[er.a1]},{path:"ecl",loadChildren:()=>Promise.all([m.e("default-src_app_shared_components_currency-unit-converter_currency-unit-converter_component_t-449cdf"),m.e("src_app_eclair_ecl_module_ts")]).then(m.bind(m,7258)).then(K=>K.ECLModule),canActivate:[er.a1]},{path:"settings",component:Pt,canActivate:[er.a1],children:[{path:"",pathMatch:"full",redirectTo:"app"},{path:"app",component:Qr,canActivate:[er.a1]},{path:"auth",component:Eo,canActivate:[er.a1]},{path:"bconfig",component:cs,canActivate:[er.a1]}]},{path:"config",component:Yc,canActivate:[er.a1],children:[{path:"",pathMatch:"full",redirectTo:"nodesettings"},{path:"nodesettings",component:k2,canActivate:[er.a1]},{path:"pglayout",component:xl,canActivate:[er.a1]},{path:"services",component:N2,canActivate:[er.a1],children:[{path:"",pathMatch:"full",redirectTo:"loop"},{path:"loop",component:Vl,canActivate:[er.a1]},{path:"boltz",component:fc,canActivate:[er.a1]}]},{path:"experimental",component:ql,canActivate:[er.a1]},{path:"lnconfig",component:mn,canActivate:[er.a1]}]},{path:"services",component:n0,canActivate:[er.a1],children:[{path:"",pathMatch:"full",redirectTo:"loop"},{path:"loop",pathMatch:"full",redirectTo:"loop/loopout"},{path:"loop/:selTab",component:Gl},{path:"boltz",pathMatch:"full",redirectTo:"boltz/swapout"},{path:"boltz/:selTab",component:Z1}]},{path:"help",component:rd},{path:"login",component:Y1},{path:"error",component:Cl},{path:"**",component:qr.w}],Xl=Ne.Bz.forRoot(tl,{scrollPositionRestoration:"enabled"});var cd=m(6165),Xr=m(8878),Dc=m(1708),dd=m(6643),Jl=m(2543),bo=m(5183),Vs=m(3453);const Ho={LNDChildren:[{id:1,parentId:0,name:"Dashboard",iconType:"FA",icon:fe.HLz,link:"/lnd/home",userPersona:Qe.ol.ALL},{id:2,parentId:0,name:"On-chain",iconType:"FA",icon:fe.nNP,link:"/lnd/onchain",userPersona:Qe.ol.ALL},{id:3,parentId:0,name:"Lightning",iconType:"FA",icon:fe.BDt,link:"/lnd/connections",userPersona:Qe.ol.ALL,children:[{id:31,parentId:3,name:"Peers/Channels",iconType:"FA",icon:fe.FVb,link:"/lnd/connections",userPersona:Qe.ol.ALL},{id:32,parentId:3,name:"Transactions",iconType:"FA",icon:fe.Ssp,link:"/lnd/transactions",userPersona:Qe.ol.ALL},{id:33,parentId:3,name:"Routing",iconType:"FA",icon:fe.SuH,link:"/lnd/routing",userPersona:Qe.ol.ALL},{id:34,parentId:3,name:"Reports",iconType:"FA",icon:fe.koM,link:"/lnd/reports",userPersona:Qe.ol.ALL},{id:35,parentId:3,name:"Graph Lookup",iconType:"FA",icon:fe.wn1,link:"/lnd/graph",userPersona:Qe.ol.ALL},{id:36,parentId:3,name:"Sign/Verify",iconType:"FA",icon:fe.hkK,link:"/lnd/messages",userPersona:Qe.ol.ALL},{id:37,parentId:3,name:"Backup",iconType:"FA",icon:fe.q7m,link:"/lnd/channelbackup",userPersona:Qe.ol.ALL},{id:38,parentId:3,name:"Network",iconType:"FA",icon:fe.TmZ,link:"/lnd/network",userPersona:Qe.ol.OPERATOR},{id:39,parentId:3,name:"Node/Network",iconType:"FA",icon:fe.xf3,link:"/lnd/network",userPersona:Qe.ol.MERCHANT}]},{id:4,parentId:0,name:"Services",iconType:"FA",icon:fe.Krp,link:"/services/loop",userPersona:Qe.ol.ALL,children:[{id:41,parentId:4,name:"Loop",iconType:"FA",icon:fe.vqe,link:"/services/loop",userPersona:Qe.ol.ALL},{id:42,parentId:4,name:"Boltz",iconType:"SVG",icon:"boltzIconBlock",link:"/services/boltz",userPersona:Qe.ol.ALL}]},{id:5,parentId:0,name:"Node Config",iconType:"FA",icon:fe.CgH,link:"/config",userPersona:Qe.ol.ALL},{id:6,parentId:0,name:"Help",iconType:"FA",icon:fe.Psp,link:"/help",userPersona:Qe.ol.ALL}],CLNChildren:[{id:1,parentId:0,name:"Dashboard",iconType:"FA",icon:fe.HLz,link:"/cln/home",userPersona:Qe.ol.ALL},{id:2,parentId:0,name:"On-chain",iconType:"FA",icon:fe.nNP,link:"/cln/onchain",userPersona:Qe.ol.ALL},{id:3,parentId:0,name:"Lightning",iconType:"FA",icon:fe.BDt,link:"/cln/connections",userPersona:Qe.ol.ALL,children:[{id:31,parentId:3,name:"Peers/Channels",iconType:"FA",icon:fe.FVb,link:"/cln/connections",userPersona:Qe.ol.ALL},{id:32,parentId:3,name:"Liquidity Ads",iconType:"FA",icon:fe.Acd,link:"/cln/liquidityads",userPersona:Qe.ol.ALL},{id:33,parentId:3,name:"Transactions",iconType:"FA",icon:fe.Ssp,link:"/cln/transactions",userPersona:Qe.ol.ALL},{id:34,parentId:3,name:"Routing",iconType:"FA",icon:fe.SuH,link:"/cln/routing",userPersona:Qe.ol.ALL},{id:35,parentId:3,name:"Reports",iconType:"FA",icon:fe.koM,link:"/cln/reports",userPersona:Qe.ol.ALL},{id:36,parentId:3,name:"Graph Lookup",iconType:"FA",icon:fe.wn1,link:"/cln/graph",userPersona:Qe.ol.ALL},{id:37,parentId:3,name:"Sign/Verify",iconType:"FA",icon:fe.hkK,link:"/cln/messages",userPersona:Qe.ol.ALL},{id:38,parentId:3,name:"Fee Rates",iconType:"FA",icon:fe.USL,link:"/cln/rates",userPersona:Qe.ol.OPERATOR},{id:39,parentId:3,name:"Node/Fee Rates",iconType:"FA",icon:fe.xf3,link:"/cln/rates",userPersona:Qe.ol.MERCHANT}]},{id:5,parentId:0,name:"Node Config",iconType:"FA",icon:fe.CgH,link:"/config",userPersona:Qe.ol.ALL},{id:6,parentId:0,name:"Help",iconType:"FA",icon:fe.Psp,link:"/help",userPersona:Qe.ol.ALL}],ECLChildren:[{id:1,parentId:0,name:"Dashboard",iconType:"FA",icon:fe.HLz,link:"/ecl/home",userPersona:Qe.ol.ALL},{id:2,parentId:0,name:"On-chain",iconType:"FA",icon:fe.nNP,link:"/ecl/onchain",userPersona:Qe.ol.ALL},{id:3,parentId:0,name:"Lightning",iconType:"FA",icon:fe.BDt,link:"/ecl/connections",userPersona:Qe.ol.ALL,children:[{id:31,parentId:3,name:"Peers/Channels",iconType:"FA",icon:fe.FVb,link:"/ecl/connections",userPersona:Qe.ol.ALL},{id:32,parentId:3,name:"Transactions",iconType:"FA",icon:fe.Ssp,link:"/ecl/transactions",userPersona:Qe.ol.ALL},{id:33,parentId:3,name:"Routing",iconType:"FA",icon:fe.SuH,link:"/ecl/routing",userPersona:Qe.ol.ALL},{id:34,parentId:3,name:"Reports",iconType:"FA",icon:fe.koM,link:"/ecl/reports",userPersona:Qe.ol.ALL},{id:35,parentId:3,name:"Graph Lookup",iconType:"FA",icon:fe.wn1,link:"/ecl/graph",userPersona:Qe.ol.ALL}]},{id:4,parentId:0,name:"Node Config",iconType:"FA",icon:fe.CgH,link:"/config",userPersona:Qe.ol.ALL},{id:5,parentId:0,name:"Help",iconType:"FA",icon:fe.Psp,link:"/help",userPersona:Qe.ol.ALL}]};function X1(K,T){if(1&K&&(t.TgZ(0,"mat-option",11),t._uU(1),t.qZA()),2&K){const x=T.$implicit;t.Q6J("value",x.index),t.xp6(1),t.AsE(" ",x.lnNode," (",x.lnImplementation,") ")}}function oh(K,T){if(1&K){const x=t.EpF();t.TgZ(0,"mat-select",9),t.NdJ("selectionChange",function(ge){t.CHM(x);const nt=t.oxw();return t.KtG(nt.onNodeSelectionChange(ge.value))}),t.YNc(1,X1,2,3,"mat-option",10),t.qZA()}if(2&K){const x=t.oxw();t.Q6J("value",x.selConfigNodeIndex),t.xp6(1),t.Q6J("ngForOf",x.appConfig.nodes)}}function z0(K,T){if(1&K&&(t.TgZ(0,"span",21),t.GkF(1,22),t.qZA()),2&K){const x=t.oxw().$implicit;t.oxw(2);const V=t.MAs(11);t.xp6(1),t.Q6J("ngTemplateOutlet","boltzIconBlock"===x.icon?V:null)}}function nf(K,T){if(1&K&&t._UZ(0,"fa-icon",23),2&K){const x=t.oxw().$implicit;t.Q6J("icon",x.icon)}}function lh(K,T){if(1&K&&(t.TgZ(0,"mat-icon",24),t._uU(1),t.qZA()),2&K){const x=t.oxw().$implicit;t.xp6(1),t.Oqu(x.icon)}}function d1(K,T){if(1&K){const x=t.EpF();t.TgZ(0,"mat-tree-node",15)(1,"div",16),t.NdJ("click",function(){const nt=t.CHM(x).$implicit,kt=t.oxw(2);return t.KtG(kt.onChildNavClicked(nt))}),t.TgZ(2,"div",17),t.YNc(3,z0,2,1,"span",18),t.YNc(4,nf,1,1,"fa-icon",19),t.YNc(5,lh,2,1,"mat-icon",20),t.TgZ(6,"span"),t._uU(7),t.qZA()()()()}if(2&K){const x=T.$implicit;t.s9C("routerLink",x.link),t.xp6(3),t.Q6J("ngIf","SVG"===x.iconType),t.xp6(1),t.Q6J("ngIf","FA"===x.iconType),t.xp6(1),t.Q6J("ngIf",!x.iconType),t.xp6(2),t.Oqu(x.name)}}function V3(K,T){if(1&K&&(t.TgZ(0,"span",33),t.GkF(1,22),t.qZA()),2&K){const x=t.oxw().$implicit;t.xp6(1),t.Q6J("ngTemplateOutlet",x.icon)}}function u1(K,T){if(1&K&&t._UZ(0,"fa-icon",23),2&K){const x=t.oxw().$implicit;t.Q6J("icon",x.icon)}}function Ac(K,T){if(1&K&&(t.TgZ(0,"mat-icon",24),t._uU(1),t.qZA()),2&K){const x=t.oxw().$implicit;t.xp6(1),t.Oqu(x.icon)}}function ud(K,T){if(1&K&&(t.TgZ(0,"mat-nested-tree-node",25)(1,"div",26)(2,"div",27),t.YNc(3,V3,2,1,"span",28),t.YNc(4,u1,1,1,"fa-icon",19),t.YNc(5,Ac,2,1,"mat-icon",20),t.TgZ(6,"span"),t._uU(7),t.qZA()(),t.TgZ(8,"button",29)(9,"mat-icon",30),t._uU(10),t.qZA()()(),t.TgZ(11,"div",31),t.GkF(12,32),t.qZA()()),2&K){const x=T.$implicit,V=t.oxw(2);t.xp6(3),t.Q6J("ngIf","SVG"===x.iconType),t.xp6(1),t.Q6J("ngIf","FA"===x.iconType),t.xp6(1),t.Q6J("ngIf",!x.iconType),t.xp6(2),t.Oqu(x.name),t.xp6(1),t.uIk("aria-label","toggle "+x.name),t.xp6(2),t.Oqu(V.treeControlNested.isExpanded(x)?"arrow_drop_up":"arrow_drop_down"),t.xp6(1),t.ekj("tree-children-invisible",!V.treeControlNested.isExpanded(x))}}function hd(K,T){if(1&K&&(t.TgZ(0,"mat-tree",5,12),t.YNc(2,d1,8,5,"mat-tree-node",13),t.YNc(3,ud,13,8,"mat-nested-tree-node",14),t.qZA()),2&K){const x=t.oxw();t.Q6J("dataSource",x.navMenus)("treeControl",x.treeControlNested),t.xp6(3),t.Q6J("matTreeNodeDefWhen",x.hasChild)}}function U0(K,T){if(1&K&&(t.TgZ(0,"span",21),t.GkF(1,22),t.qZA()),2&K){const x=t.oxw().$implicit;t.xp6(1),t.Q6J("ngTemplateOutlet",x.icon)}}function ch(K,T){if(1&K&&t._UZ(0,"fa-icon",36),2&K){const x=t.oxw().$implicit;t.s9C("matTooltip",x.name),t.Q6J("icon",x.icon)}}function fd(K,T){if(1&K&&(t.TgZ(0,"mat-icon",37),t._uU(1),t.qZA()),2&K){const x=t.oxw().$implicit;t.s9C("matTooltip",x.name),t.xp6(1),t.Oqu(x.icon)}}function dh(K,T){if(1&K){const x=t.EpF();t.TgZ(0,"mat-tree-node",16),t.NdJ("click",function(){const nt=t.CHM(x).$implicit,kt=t.oxw();return t.KtG(kt.onShowData(nt))}),t.YNc(1,U0,2,1,"span",18),t.YNc(2,ch,1,2,"fa-icon",34),t.YNc(3,fd,2,2,"mat-icon",35),t.TgZ(4,"span"),t._uU(5),t.qZA()()}if(2&K){const x=T.$implicit;t.xp6(1),t.Q6J("ngIf","SVG"===x.iconType),t.xp6(1),t.Q6J("ngIf","FA"===x.iconType),t.xp6(1),t.Q6J("ngIf",!x.iconType),t.xp6(2),t.Oqu(x.name)}}function V0(K,T){if(1&K&&(t.TgZ(0,"span",33),t.GkF(1,22),t.qZA()),2&K){const x=t.oxw().$implicit;t.xp6(1),t.Q6J("ngTemplateOutlet",x.icon)}}function pd(K,T){if(1&K&&t._UZ(0,"fa-icon",36),2&K){const x=t.oxw().$implicit;t.s9C("matTooltip",x.name),t.Q6J("icon",x.icon)}}function J1(K,T){if(1&K){const x=t.EpF();t.TgZ(0,"mat-tree-node",16),t.NdJ("click",function(){const nt=t.CHM(x).$implicit,kt=t.oxw(2);return t.KtG(kt.onClick(nt))}),t.YNc(1,V0,2,1,"span",28),t.YNc(2,pd,1,2,"fa-icon",34),t.TgZ(3,"span"),t._uU(4),t.qZA()()}if(2&K){const x=T.$implicit;t.xp6(1),t.Q6J("ngIf","SVG"===x.iconType),t.xp6(1),t.Q6J("ngIf","FA"===x.iconType),t.xp6(2),t.Oqu(x.name)}}function uh(K,T){if(1&K&&(t.TgZ(0,"mat-tree",5),t.YNc(1,J1,5,3,"mat-tree-node",6),t.qZA()),2&K){const x=t.oxw();t.Q6J("dataSource",x.navMenusLogout)("treeControl",x.treeControlLogout)}}function W0(K,T){1&K&&(t.O4$(),t.TgZ(0,"svg",38)(1,"g",39)(2,"g",40),t._UZ(3,"circle",41)(4,"path",42)(5,"path",43),t.qZA()()())}class El{constructor(T,x,V,ge,nt,kt){this.logger=T,this.commonService=x,this.sessionService=V,this.store=ge,this.actions=nt,this.rtlEffects=kt,this.ChildNavClicked=new t.vpe,this.faEject=fe.KOR,this.faEye=fe.Mdf,this.version="",this.information={},this.informationChain={},this.flgLoading=!0,this.logoutNode=[{id:200,parentId:0,name:"Logout",iconType:"FA",icon:fe.KOR}],this.showDataNodes=[{id:1e3,parentId:0,name:"Public Key",iconType:"FA",icon:fe.Mdf}],this.showLogout=!1,this.numPendingChannels=0,this.smallScreen=!1,this.childRootRoute="",this.userPersonaEnum=Qe.ol,this.unSubs=[new Gn.x,new Gn.x,new Gn.x,new Gn.x,new Gn.x,new Gn.x],this.treeControlNested=new bo.VY(jt=>jt.children),this.treeControlLogout=new bo.VY(jt=>jt.children),this.treeControlShowData=new bo.VY(jt=>jt.children),this.navMenus=new Vs.WX,this.navMenusLogout=new Vs.WX,this.navMenusShowData=new Vs.WX,this.hasChild=(jt,on)=>!!on.children&&on.children.length>0,this.version=Bs.q4,Ho.LNDChildren&&200===Ho.LNDChildren[Ho.LNDChildren.length-1].id&&Ho.LNDChildren.pop(),this.navMenus.data=Ho.LNDChildren||[],this.navMenusLogout.data=this.logoutNode,this.navMenusShowData.data=this.showDataNodes}ngOnInit(){const T=this.sessionService.getItem("token");this.showLogout=!!T,this.flgLoading=!!T,this.store.select(st.Yj).pipe((0,ui.R)(this.unSubs[0])).subscribe(x=>{this.appConfig=x}),this.store.select(st.gW).pipe((0,ui.R)(this.unSubs[1])).subscribe(x=>{if(this.information=x.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 V=this.information.chains[0];this.informationChain.chain=V.chain,this.informationChain.network=V.network}}else this.informationChain.chain="",this.informationChain.network="";this.flgLoading=!this.information.identity_pubkey,window.innerWidth<=414&&(this.smallScreen=!0),this.selNode=x.selNode,this.settings=this.selNode?.settings||null,this.selConfigNodeIndex=+(x.selNode?.index||0),this.selNode&&this.selNode.lnImplementation&&this.filterSideMenuNodes(),this.logger.info(x)}),this.sessionService.watchSession().pipe((0,ui.R)(this.unSubs[2])).subscribe(x=>{this.showLogout=!!x.token,this.flgLoading=!!x.token}),this.actions.pipe((0,ui.R)(this.unSubs[3]),(0,xr.h)(x=>x.type===Qe.pg.LOGOUT)).subscribe(x=>{this.showLogout=!1})}onClick(T){"Logout"===T.name&&(this.store.dispatch((0,Qt.c1)({payload:{data:{type:Qe.n_.CONFIRM,alertTitle:"Logout",titleMessage:"Logout from this device?",noBtnText:"Cancel",yesBtnText:"Logout"}}})),this.rtlEffects.closeConfirm.pipe((0,ui.R)(this.unSubs[4])).subscribe(x=>{x&&(this.showLogout=!1,this.store.dispatch((0,Qt.kS)()))})),this.ChildNavClicked.emit(T)}onChildNavClicked(T){this.ChildNavClicked.emit(T)}filterSideMenuNodes(){switch(this.selNode?.lnImplementation?.toUpperCase()){case"CLN":this.loadCLNMenu();break;case"ECL":this.loadECLMenu();break;default:this.loadLNDMenu()}}loadLNDMenu(){let T=[];T=JSON.parse(JSON.stringify(Ho.LNDChildren)),this.navMenus.data=T?.filter(x=>x.children&&x.children.length?(x.children=x.children?.filter(V=>(V.userPersona===Qe.ol.ALL||V.userPersona===this.settings?.userPersona)&&"/services/loop"!==V.link&&"/services/boltz"!==V.link||"/services/loop"===V.link&&this.settings?.swapServerUrl&&""!==this.settings.swapServerUrl.trim()||"/services/boltz"===V.link&&this.settings?.boltzServerUrl&&""!==this.settings.boltzServerUrl.trim()),x.children.length>0):x.userPersona===Qe.ol.ALL||x.userPersona===this.settings?.userPersona)}loadCLNMenu(){let T=[];T=JSON.parse(JSON.stringify(Ho.CLNChildren)),this.navMenus.data=T?.filter(x=>x.children&&x.children.length?(x.children=x.children?.filter(V=>(V.userPersona===Qe.ol.ALL||V.userPersona===this.settings?.userPersona)&&"/services/peerswap"!==V.link||"/services/peerswap"===V.link&&this.settings?.enablePeerswap),x.children.length>0):x.userPersona===Qe.ol.ALL||x.userPersona===this.settings?.userPersona)}loadECLMenu(){this.navMenus.data=JSON.parse(JSON.stringify(Ho.ECLChildren))}onShowData(T){this.store.dispatch((0,Qt.tj)()),this.ChildNavClicked.emit("showData")}onNodeSelectionChange(T){const x=this.selConfigNodeIndex;this.selConfigNodeIndex=T;const V=this.appConfig.nodes.find(ge=>+ge.index===T);this.store.dispatch((0,Qt.fk)({payload:{uiMessage:Qe.m6.UPDATE_SELECTED_NODE,prevLnNodeIndex:+x,currentLnNode:V||null,isInitialSetup:!1}})),this.ChildNavClicked.emit("selectNode")}ngOnDestroy(){this.unSubs.forEach(T=>{T.next(null),T.complete()})}static#e=this.\u0275fac=function(x){return new(x||El)(t.Y36(sn.mQ),t.Y36(ta.v),t.Y36(Qo.m),t.Y36(Hn.yh),t.Y36(vs.eX),t.Y36(Na.V))};static#t=this.\u0275cmp=t.Xpm({type:El,selectors:[["rtl-side-navigation"]],viewQuery:function(x,V){if(1&x&&t.Gf(Vs.gi,5),2&x){let ge;t.iGM(ge=t.CRH())&&(V.tree=ge.first)}},outputs:{ChildNavClicked:"ChildNavClicked"},decls:12,vars:5,consts:[["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between start",3,"perfectScrollbar"],["fxLayout","column","fxFlex","90","fxLayoutAlign","start stretch",1,"w-100"],["class","m-2 multi-node-select",3,"value","selectionChange",4,"ngIf"],[1,"w-100"],[3,"dataSource","treeControl",4,"ngIf"],[3,"dataSource","treeControl"],[3,"click",4,"matTreeNodeDef"],["fxLayout","column","fxLayoutAlign","end stretch",1,"w-100"],["boltzIconBlock",""],[1,"m-2","multi-node-select",3,"value","selectionChange"],["tabindex","1",3,"value",4,"ngFor","ngForOf"],["tabindex","1",3,"value"],["tree",""],["matTreeNodeToggle","","routerLinkActive","active-link",3,"routerLink",4,"matTreeNodeDef"],["fxLayout","column","matTreeNodeToggle","",4,"matTreeNodeDef","matTreeNodeDefWhen"],["matTreeNodeToggle","","routerLinkActive","active-link",3,"routerLink"],[3,"click"],["fxLayout","row","fxFlex","100","fxLayoutAlign","start center"],["class","fa-icon-small mr-2",4,"ngIf"],["class","fa-icon-small mr-2",3,"icon",4,"ngIf"],["class","mat-icon-36",4,"ngIf"],[1,"fa-icon-small","mr-2"],[3,"ngTemplateOutlet"],[1,"fa-icon-small","mr-2",3,"icon"],[1,"mat-icon-36"],["fxLayout","column","matTreeNodeToggle",""],["fxLayout","row","fxLayoutAlign","start center",1,"mat-nested-tree-node-parent"],["fxFlex","89","fxLayoutAlign","start center"],["class","mr-2",4,"ngIf"],["fxFlex","11","mat-icon-button","","fxLayoutAlign","end center"],[1,"mat-icon-rtl-mirror"],[1,"mat-nested-tree-node-child"],["matTreeNodeOutlet",""],[1,"mr-2"],["class","fa-icon-small mr-2","matTooltipPosition","right",3,"icon","matTooltip",4,"ngIf"],["class","mat-icon-36","matTooltipPosition","right",3,"matTooltip",4,"ngIf"],["matTooltipPosition","right",1,"fa-icon-small","mr-2",3,"icon","matTooltip"],["matTooltipPosition","right",1,"mat-icon-36",3,"matTooltip"],["viewBox","0 0 78 78","version","1.1","xmlns","http://www.w3.org/2000/svg",0,"xmlns","xlink","http://www.w3.org/1999/xlink"],["id","Logo","stroke","none","stroke-width","1","fill","none","fill-rule","evenodd"],["id","Group"],["id","Oval","cx","39","cy","39","r","37.5",1,"boltz-icon"],["d","M36.4583326,43.7755404 L40.53965,35.2316544 L39.4324865,35.2316544 L46.0754873,17.6071752 C46.292579,17.0204094 46.3287609,16.5159331 46.1840331,16.0937464 C46.0393053,15.671561 45.7860319,15.3674444 45.4242131,15.1813966 C45.0623942,14.9953487 44.6535376,14.9524146 44.1976433,15.0525945 C43.7417511,15.1527743 43.3256596,15.4461573 42.9493689,15.9327433 L22.6078557,40.7701025 C22.2026186,41.2710003 22,41.7575877 22,42.2298646 C22,42.6735173 22.1592003,43.0420366 22.477601,43.3354226 C22.7960017,43.6288058 23.1940025,43.7755404 23.6716036,43.7755404 L36.4583326,43.7755404 Z","id","Path",1,"boltz-icon-fill"],["d","M44.4883879,63.7755404 L48.8604707,55.165009 L47.6744296,55.165009 L54.7906978,37.4030526 C55.0232558,36.8117097 55.0620155,36.3032983 54.9069768,35.8778185 C54.7519381,35.4523399 54.4806208,35.1458511 54.0930248,34.958352 C53.7054289,34.7708528 53.2674441,34.7275839 52.7790706,34.8285452 C52.2906992,34.9295065 51.8449641,35.2251779 51.4418653,35.7155595 L29.6511611,60.746659 C29.2170537,61.251464 29,61.7418469 29,62.2178078 C29,62.6649211 29.1705423,63.036315 29.5116268,63.3319895 C29.8527113,63.6276613 30.2790669,63.7755404 30.7906936,63.7755404 L44.4883879,63.7755404 Z","id","Path-Copy","transform","translate(42.000000, 49.275540) rotate(-180.000000) translate(-42.000000, -49.275540) ",1,"boltz-icon-fill"]],template:function(x,V){1&x&&(t.TgZ(0,"div",0)(1,"div",1),t.YNc(2,oh,2,2,"mat-select",2),t._UZ(3,"mat-divider",3),t.YNc(4,hd,4,3,"mat-tree",4),t._UZ(5,"mat-divider",3),t.TgZ(6,"mat-tree",5),t.YNc(7,dh,6,4,"mat-tree-node",6),t.qZA()(),t.TgZ(8,"div",7),t.YNc(9,uh,2,2,"mat-tree",4),t.qZA()(),t.YNc(10,W0,6,0,"ng-template",null,8,t.W1O)),2&x&&(t.xp6(2),t.Q6J("ngIf",V.appConfig.nodes.length>1),t.xp6(2),t.Q6J("ngIf",null==V.settings?null:V.settings.lnServerUrl),t.xp6(2),t.Q6J("dataSource",V.navMenusShowData)("treeControl",V.treeControlShowData),t.xp6(3),t.Q6J("ngIf",V.showLogout))},dependencies:[si.sg,si.O5,si.tP,Ot.BN,Vt.xw,Vt.Wh,Vt.yH,An.lW,Fl.Hw,io.d,Vs.GZ,Vs.fQ,Vs.eu,Vs.gi,Vs.uo,Vs.Ar,Jn.gD,oi.ey,R2.gM,Ne.rH,Ne.Od,xi.$V],styles:[".tree-children-invisible[_ngcontent-%COMP%]{display:none}"]})}var _d=m(8589);function W3(K,T){if(1&K&&(t.TgZ(0,"p",2),t._UZ(1,"fa-icon",3),t.TgZ(2,"span"),t._uU(3),t.qZA()()),2&K){const x=t.oxw();t.xp6(1),t.Q6J("icon",x.faCode),t.xp6(2),t.hij("API Version: ",null==x.information?null:x.information.api_version,"")}}function hh(K,T){if(1&K&&(t.TgZ(0,"p",11),t._UZ(1,"fa-icon",3),t.TgZ(2,"span",12),t._uU(3,"Settings"),t.qZA()()),2&K){const x=t.oxw();t.xp6(1),t.Q6J("icon",x.faUserCog)}}function fh(K,T){if(1&K&&(t.TgZ(0,"p",13),t._UZ(1,"fa-icon",3),t.TgZ(2,"span",14),t._uU(3,"Help"),t.qZA()()),2&K){const x=t.oxw();t.xp6(1),t.Q6J("icon",x.faQuestion)}}function K0(K,T){if(1&K){const x=t.EpF();t.TgZ(0,"p",15),t.NdJ("click",function(){t.CHM(x);const ge=t.oxw();return t.KtG(ge.onClick())}),t._UZ(1,"fa-icon",3),t.TgZ(2,"span"),t._uU(3,"Logout"),t.qZA()()}if(2&K){const x=t.oxw();t.xp6(1),t.Q6J("icon",x.faEject)}}class $1{constructor(T,x,V,ge,nt){this.logger=T,this.sessionService=x,this.store=V,this.rtlEffects=ge,this.actions=nt,this.faUserCog=fe.gNZ,this.faCodeBranch=fe.mh3,this.faCode=fe.dT$,this.faCog=fe.b7W,this.faQuestion=fe.Psp,this.faEject=fe.KOR,this.version="",this.information={},this.informationChain={},this.flgLoading=!0,this.showLogout=!1,this.unSubs=[new Gn.x,new Gn.x,new Gn.x,new Gn.x],this.version=Bs.q4}ngOnInit(){this.store.select(st.R4).pipe((0,ui.R)(this.unSubs[0])).subscribe(T=>{if(this.information=T,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 x=this.information.chains[0];this.informationChain.chain=x.chain,this.informationChain.network=x.network}}else this.informationChain.chain="",this.informationChain.network="";this.logger.info(T)}),this.sessionService.watchSession().pipe((0,ui.R)(this.unSubs[1])).subscribe(T=>{this.showLogout=!!T.token,this.flgLoading=!!T.token}),this.actions.pipe((0,ui.R)(this.unSubs[2]),(0,xr.h)(T=>T.type===Qe.pg.LOGOUT)).subscribe(()=>{this.showLogout=!1})}onClick(){this.store.dispatch((0,Qt.c1)({payload:{data:{type:Qe.n_.CONFIRM,alertTitle:"Logout",titleMessage:"Logout from this device?",noBtnText:"Cancel",yesBtnText:"Logout"}}})),this.rtlEffects.closeConfirm.pipe((0,ui.R)(this.unSubs[3])).subscribe(T=>{T&&(this.showLogout=!1,this.store.dispatch((0,Qt.kS)()))})}ngOnDestroy(){this.unSubs.forEach(T=>{T.next(null),T.complete()})}static#e=this.\u0275fac=function(x){return new(x||$1)(t.Y36(sn.mQ),t.Y36(Qo.m),t.Y36(Hn.yh),t.Y36(Na.V),t.Y36(vs.eX))};static#t=this.\u0275cmp=t.Xpm({type:$1,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","",1,"top-toolbar-icon",3,"matMenuTriggerFor"],["src","assets/images/RTL-Horse-BY.svg","alt","RTL Logo"],[1,"logo-icon"],["mat-menu-item","","routerLink","/settings"],["routerLink","/settings"],["mat-menu-item","","routerLink","/help"],["routerLink","/help"],["mat-menu-item","",3,"click"]],template:function(x,V){if(1&x&&(t.TgZ(0,"mat-menu",0,1)(2,"p",2),t._UZ(3,"fa-icon",3),t.TgZ(4,"span"),t._uU(5),t.qZA()(),t.YNc(6,W3,4,2,"p",4),t.YNc(7,hh,4,1,"p",5),t.YNc(8,fh,4,1,"p",6),t.YNc(9,K0,4,1,"p",7),t.qZA(),t.TgZ(10,"button",8),t._UZ(11,"img",9),t.TgZ(12,"mat-icon",10),t._uU(13,"arrow_drop_down"),t.qZA()()),2&x){const ge=t.MAs(1);t.Q6J("overlapTrigger",!1),t.xp6(3),t.Q6J("icon",V.faCodeBranch),t.xp6(2),t.hij("Version: ",V.version,""),t.xp6(1),t.Q6J("ngIf",null==V.information?null:V.information.api_version),t.xp6(1),t.Q6J("ngIf",V.showLogout),t.xp6(1),t.Q6J("ngIf",V.showLogout),t.xp6(1),t.Q6J("ngIf",V.showLogout),t.xp6(1),t.Q6J("matMenuTriggerFor",ge)}},dependencies:[si.O5,Ot.BN,An.lW,Fl.Hw,_d.VK,_d.OP,_d.p6,Ne.rH],styles:[".top-toolbar-icon .mat-button-wrapper img{width:3.2rem}.top-toolbar-icon .mat-button-wrapper .material-icons.mat-icon.logo-icon{font-size:2rem;text-align:start}\n"],encapsulation:2})}const af=["sideNavigation"],e2=["sideNavContent"];function nl(K,T){if(1&K){const x=t.EpF();t.TgZ(0,"button",13),t.NdJ("click",function(){t.CHM(x);const ge=t.oxw();return t.KtG(ge.sideNavToggle())}),t.TgZ(1,"mat-icon"),t._uU(2,"menu"),t.qZA()()}if(2&K){const x=t.oxw();t.Q6J("matTooltip",x.flgSideNavOpened?"Hide Navigation Menu":"Show Navigation Menu")("matTooltipDisabled",x.smallScreen)}}function K3(K,T){1&K&&(t.O4$(),t._UZ(0,"path",18))}function ph(K,T){1&K&&(t.O4$(),t._UZ(0,"path",19))}function rf(K,T){if(1&K){const x=t.EpF();t.TgZ(0,"button",14),t.NdJ("click",function(){t.CHM(x);const ge=t.oxw();return t.KtG(ge.flgSidenavPinned=!ge.flgSidenavPinned)}),t.O4$(),t.TgZ(1,"svg",15),t.YNc(2,K3,1,0,"path",16),t.YNc(3,ph,1,0,"path",17),t.qZA()()}if(2&K){const x=t.oxw();t.Q6J("matTooltip",x.flgSidenavPinned?"Unpin Navigation Menu":"Pin Navigation Menu"),t.xp6(2),t.Q6J("ngIf",!x.flgSidenavPinned),t.xp6(1),t.Q6J("ngIf",x.flgSidenavPinned)}}function sf(K,T){if(1&K&&(t.TgZ(0,"span"),t._uU(1),t.qZA()),2&K){const x=t.oxw();t.xp6(1),t.Oqu(x.information.alias?"RTL - "+x.information.alias:"RTL")}}function _h(K,T){if(1&K&&(t.TgZ(0,"span"),t._uU(1),t.qZA()),2&K){const x=t.oxw();t.xp6(1),t.Oqu(x.information.alias?"Ride The Lightning - "+x.information.alias:"Ride The Lightning")}}function G3(K,T){1&K&&(t.TgZ(0,"div",20),t._UZ(1,"mat-spinner",21),t.TgZ(2,"h4"),t._uU(3,"Loading RTL..."),t.qZA()())}const mh=function(K,T){return[K,T]};class gh{constructor(T,x,V,ge,nt,kt,jt,on,xn){this.logger=T,this.commonService=x,this.store=V,this.actions=ge,this.userIdle=nt,this.router=kt,this.sessionService=jt,this.breakpointObserver=on,this.renderer=xn,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 Gn.x,new Gn.x,new Gn.x,new Gn.x,new Gn.x,new Gn.x,new Gn.x,new Gn.x]}ngOnInit(){this.router.events.subscribe(T=>{T instanceof Ne.m2&&document.getElementsByTagName("mat-sidenav-content")[0].scrollTo(0,0)}),this.breakpointObserver.observe([$i.u3.XSmall,$i.u3.TabletPortrait,$i.u3.Small,$i.u3.Medium,$i.u3.Large,$i.u3.XLarge]).pipe((0,ui.R)(this.unSubs[0])).subscribe(T=>{T.breakpoints[$i.u3.XSmall]?(this.commonService.setScreenSize(Qe.cu.XS),this.smallScreen=!0):T.breakpoints[$i.u3.TabletPortrait]?(this.commonService.setScreenSize(Qe.cu.SM),this.smallScreen=!0):T.breakpoints[$i.u3.Small]||T.breakpoints[$i.u3.Medium]?(this.commonService.setScreenSize(Qe.cu.MD),this.smallScreen=!1):T.breakpoints[$i.u3.Large]?(this.commonService.setScreenSize(Qe.cu.LG),this.smallScreen=!1):(this.commonService.setScreenSize(Qe.cu.XL),this.smallScreen=!1)}),this.store.dispatch((0,Qt.ey)()),this.accessKey=this.readAccessKey()||"",this.store.select(st.dT).pipe((0,ui.R)(this.unSubs[1])).subscribe(T=>{this.settings=T.settings,this.sessionService.getItem("token")?(this.flgLoggedIn=!0,this.userIdle.startWatching()):(this.flgLoggedIn=!1,this.flgLoading[0]=!1)}),this.store.select(st.Yj).pipe((0,ui.R)(this.unSubs[2])).subscribe(T=>{this.appConfig=T}),this.store.select(st.R4).pipe((0,ui.R)(this.unSubs[3])).subscribe(T=>{this.information=T,this.flgLoading[0]=!this.information.identity_pubkey,this.logger.info(this.information)}),"true"===this.sessionService.getItem("defaultPassword")&&(this.flgSideNavOpened=!1),this.actions.pipe((0,ui.R)(this.unSubs[4]),(0,xr.h)(T=>T.type===Qe.pg.SET_RTL_CONFIG||T.type===Qe.pg.LOGIN||T.type===Qe.pg.LOGOUT)).subscribe(T=>{T.type===Qe.pg.SET_RTL_CONFIG&&(this.sessionService.getItem("token")||(+T.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,Qt.x4)({payload:{password:Mr(this.accessKey).toString(),defaultPassword:!1}})):this.router.navigate(["./login"]))),T.type===Qe.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)),T.type===Qe.pg.LOGOUT&&(this.flgLoggedIn=!1,this.userIdle.stopWatching(),this.userIdle.stopTimer())}),this.userIdle.onTimerStart().pipe((0,ui.R)(this.unSubs[5])).subscribe(T=>{this.logger.info("Counting Down: "+(11-T))}),this.userIdle.onTimeout().pipe((0,ui.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,Qt.ts)()),this.store.dispatch((0,Qt.qR)({payload:{data:{type:Qe.n_.WARNING,alertTitle:"Logging out",titleMessage:"Time limit exceeded for session inactivity."}}})),this.store.dispatch((0,Qt.kS)()))}),"true"===this.sessionService.getItem("defaultPassword")&&(this.flgSideNavOpened=!1)}readAccessKey(){const T=window.location.href;return T.includes("access-key=")?T.substring(T.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(T){this.smallScreen&&this.sideNavigation.close()}copiedText(T){this.flgCopied=!0,setTimeout(()=>{this.flgCopied=!1},5e3),this.logger.info("Copied Text: "+T)}ngOnDestroy(){this.unSubs.forEach(T=>{T.next(),T.complete()})}static#e=this.\u0275fac=function(x){return new(x||gh)(t.Y36(sn.mQ),t.Y36(ta.v),t.Y36(Hn.yh),t.Y36(vs.eX),t.Y36(no),t.Y36(Ne.F0),t.Y36(Qo.m),t.Y36($i.Yg),t.Y36(t.Qsj))};static#t=this.\u0275cmp=t.Xpm({type:gh,selectors:[["rtl-app"]],viewQuery:function(x,V){if(1&x&&(t.Gf(af,5),t.Gf(e2,5)),2&x){let ge;t.iGM(ge=t.CRH())&&(V.sideNavigation=ge.first),t.iGM(ge=t.CRH())&&(V.sideNavContent=ge.first)}},decls:23,vars:15,consts:[["fxLayout","column","id","rtl-container",1,"rtl-container","medium",3,"ngClass"],["fxLayout","row","fxLayoutAlign","space-between center",1,"padding-gap-x","bg-primary","rtl-top-toolbar"],["class","top-toolbar-icon mr-1","mat-icon-button","","matTooltipPosition","right",3,"matTooltip","matTooltipDisabled","click",4,"ngIf"],["class","top-toolbar-icon","mat-icon-button","","matTooltipPosition","right",3,"matTooltip","click",4,"ngIf"],[4,"ngIf"],[1,"sidenav","mat-elevation-z6",3,"perfectScrollbar","opened","mode"],["sideNavigation",""],["fxFlex","100",3,"ChildNavClicked"],[3,"perfectScrollbar"],["sideNavContent",""],["fxLayout","column","fxFlex","100","fxLayoutAlign","start stretch",1,"inner-sidenav-content"],["outlet","outlet"],["class","rtl-spinner",4,"ngIf"],["mat-icon-button","","matTooltipPosition","right",1,"top-toolbar-icon","mr-1",3,"matTooltip","matTooltipDisabled","click"],["mat-icon-button","","matTooltipPosition","right",1,"top-toolbar-icon",3,"matTooltip","click"],["viewBox","0 0 32 32",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,"rtl-spinner"],["color","accent"]],template:function(x,V){1&x&&(t.TgZ(0,"div",0),t.ALo(1,"lowercase"),t.ALo(2,"lowercase"),t.TgZ(3,"mat-toolbar",1)(4,"div"),t.YNc(5,nl,3,2,"button",2),t.YNc(6,rf,4,3,"button",3),t.qZA(),t.TgZ(7,"div"),t.YNc(8,sf,2,1,"span",4),t.YNc(9,_h,2,1,"span",4),t.qZA(),t.TgZ(10,"div"),t._UZ(11,"rtl-top-menu"),t.qZA()(),t.TgZ(12,"mat-sidenav-container")(13,"mat-sidenav",5,6)(15,"rtl-side-navigation",7),t.NdJ("ChildNavClicked",function(nt){return V.onNavigationClicked(nt)}),t.qZA()(),t.TgZ(16,"mat-sidenav-content",8,9)(18,"div",10),t._UZ(19,"router-outlet",null,11),t.qZA()(),t._uU(21,"> "),t.qZA(),t.YNc(22,G3,4,0,"div",12),t.qZA()),2&x&&(t.Q6J("ngClass",t.WLB(12,mh,t.lcZ(1,8,V.settings.themeColor),t.lcZ(2,10,V.settings.themeMode))),t.xp6(5),t.Q6J("ngIf",V.flgLoggedIn),t.xp6(1),t.Q6J("ngIf",!V.smallScreen&&V.flgLoggedIn),t.xp6(2),t.Q6J("ngIf",V.smallScreen),t.xp6(1),t.Q6J("ngIf",!V.smallScreen),t.xp6(4),t.Q6J("opened",V.flgSideNavOpened&&V.flgLoggedIn)("mode",V.flgSidenavPinned&&!V.smallScreen?"side":"over"),t.xp6(9),t.Q6J("ngIf",!V.settings.themeColor))},dependencies:[si.mk,si.O5,Vt.xw,Vt.Wh,Vt.yH,Ea.oO,An.lW,Fl.Hw,Dc.Ou,dd.JX,dd.TM,dd.Rh,Jl.Ye,R2.gM,xi.$V,El,$1,Ne.lC,si.i8],styles:[".inline-spinner[_ngcontent-%COMP%]{display:inline-flex!important;top:0!important}.top-toolbar-icon[_ngcontent-%COMP%] .icon-pinned[_ngcontent-%COMP%]{width:3rem;height:3rem;padding:1rem 0 0 1.2rem;cursor:pointer}"],data:{animation:[Xr.g]}})}class Dl{constructor(T){this.sessionService=T}intercept(T,x){if(this.sessionService.getItem("token")){const V=T.clone({headers:T.headers.set("Authorization","Bearer "+this.sessionService.getItem("token")),withCredentials:!0});return x.handle(V)}return x.handle(T)}static#e=this.\u0275fac=function(x){return new(x||Dl)(t.LFG(Qo.m))};static#t=this.\u0275prov=t.Yz7({token:Dl,factory:Dl.\u0275fac})}var t2=m(3512),$l=m(3172),Z3=m(4947),Y3=m(3289);const Ao={userPersona:"OPERATOR",themeMode:"DAY",themeColor:"PURPLE",channelBackupPath:"",selCurrencyUnit:"USD",unannouncedChannels:!1,fiatConversion:!1,currencyUnits:["Sats","BTC","USD"],bitcoindConfigPath:"",enableOffers:!1,enablePeerswap:!1},vh={configPath:"",swapMacaroonPath:"",boltzMacaroonPath:""},G0={apiURL:"",apisCallStatus:{Login:{status:Qe.Bn.UN_INITIATED},IsAuthorized:{status:Qe.Bn.UN_INITIATED}},selNode:{index:1,lnNode:"Node 1",settings:Ao,authentication:vh,lnImplementation:"LND"},appConfig:{defaultNodeIndex:-1,selectedNodeIndex:-1,sso:{rtlSSO:0,logoutRedirectLink:""},enable2FA:!1,allowPasswordUpdate:!0,nodes:[{settings:Ao,authentication:vh}]},nodeData:{}},yh=(0,Hn.Lq)(G0,(0,Hn.on)(Qt.qi,(K,{payload:T})=>{const x=JSON.parse(JSON.stringify(K.apisCallStatus));return T.action&&(x[T.action]={status:T.status,statusCode:T.statusCode,message:T.message,URL:T.URL,filePath:T.filePath}),{...K,apisCallStatus:x}}),(0,Hn.on)(Qt.vI,(K,{payload:T})=>({...G0,apisCallStatus:K.apisCallStatus,appConfig:K.appConfig,selNode:T})),(0,Hn.on)(Qt.fk,(K,{payload:T})=>({...K,selNode:T.currentLnNode})),(0,Hn.on)(Qt.Tm,(K,{payload:T})=>{const x=JSON.parse(JSON.stringify(K.selNode));switch(T.service){case Qe.JX.BOLTZ:x.settings.boltzServerUrl=T.settings.boltzServerUrl;break;case Qe.JX.LOOP:x.settings.swapServerUrl=T.settings.swapServerUrl;break;case Qe.JX.OFFERS:x.settings.enableOffers=T.settings.enableOffers;break;case Qe.JX.PEERSWAP:x.settings.enablePeerswap=T.settings.enablePeerswap}return{...K,selNode:x}}),(0,Hn.on)(Qt._V,(K,{payload:T})=>({...K,nodeData:T})),(0,Hn.on)(Qt.XT,(K,{payload:T})=>({...K,appConfig:T}))),bh={apisCallStatus:{FetchPageSettings:{status:Qe.Bn.UN_INITIATED},FetchInfo:{status:Qe.Bn.UN_INITIATED},FetchFees:{status:Qe.Bn.UN_INITIATED},FetchPeers:{status:Qe.Bn.UN_INITIATED},FetchClosedChannels:{status:Qe.Bn.UN_INITIATED},FetchPendingChannels:{status:Qe.Bn.UN_INITIATED},FetchAllChannels:{status:Qe.Bn.UN_INITIATED},FetchBalanceBlockchain:{status:Qe.Bn.UN_INITIATED},FetchInvoices:{status:Qe.Bn.UN_INITIATED},FetchPayments:{status:Qe.Bn.UN_INITIATED},FetchForwardingHistory:{status:Qe.Bn.UN_INITIATED},FetchUTXOs:{status:Qe.Bn.UN_INITIATED},FetchTransactions:{status:Qe.Bn.UN_INITIATED},FetchLightningTransactions:{status:Qe.Bn.UN_INITIATED},FetchNetwork:{status:Qe.Bn.UN_INITIATED}},nodeSettings:{userPersona:Qe.ol.OPERATOR,unannouncedChannels:!1,fiatConversion:!1,channelBackupPath:"",currencyUnits:[],selCurrencyUnit:"",lnImplementation:"",swapServerUrl:""},pageSettings:Qe.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 xh=!1,Ch=!1;const Z0=(0,Hn.Lq)(bh,(0,Hn.on)(di.PC,(K,{payload:T})=>{const x=JSON.parse(JSON.stringify(K.apisCallStatus));return T.action&&(x[T.action]={status:T.status,statusCode:T.statusCode,message:T.message,URL:T.URL,filePath:T.filePath}),{...K,apisCallStatus:x}}),(0,Hn.on)(di.JT,(K,{payload:T})=>({...K,nodeSettings:T})),(0,Hn.on)(di.Ll,(K,{payload:T})=>({...bh,nodeSettings:T})),(0,Hn.on)(di.CX,(K,{payload:T})=>({...K,information:T})),(0,Hn.on)(di.Z8,(K,{payload:T})=>({...K,peers:T})),(0,Hn.on)(di.EK,(K,{payload:T})=>{const x=[...K.peers],V=K.peers.findIndex(ge=>ge.pub_key===T.pubkey);return V>-1&&x.splice(V,1),{...K,peers:x}}),(0,Hn.on)(di.YP,(K,{payload:T})=>{const x=K.listInvoices;return x.invoices?.unshift(T),{...K,listInvoices:x}}),(0,Hn.on)(di.aL,(K,{payload:T})=>{const x=K.listInvoices;return x.invoices=x.invoices?.map(V=>V.payment_request===T.payment_request?T:V),{...K,listInvoices:x}}),(0,Hn.on)(di.qY,(K,{payload:T})=>{const x=K.listPayments;return x.payments=x.payments?.map(V=>V.payment_hash===T.payment_hash?T:V),{...K,listPayments:x}}),(0,Hn.on)(di.RX,(K,{payload:T})=>({...K,fees:T})),(0,Hn.on)(di._L,(K,{payload:T})=>({...K,closedChannels:T})),(0,Hn.on)(di.TW,(K,{payload:T})=>({...K,pendingChannels:T.pendingChannels,pendingChannelsSummary:T.pendingChannelsSummary})),(0,Hn.on)(di.as,(K,{payload:T})=>{let x=0,V=0,ge=0,nt=0,kt=0,jt=0;return T&&T.forEach(on=>{on.local_balance||(on.local_balance=0),!0===on.active?(kt+=+on.local_balance,ge+=1,on.local_balance?x=+x+ +on.local_balance:on.local_balance=0,on.remote_balance?V=+V+ +on.remote_balance:on.remote_balance=0):(jt+=+on.local_balance,nt+=1)}),{...K,channels:T,channelsSummary:{active:{num_channels:ge,capacity:kt},inactive:{num_channels:nt,capacity:jt}},lightningBalance:{local:x,remote:V}}}),(0,Hn.on)(di.OG,(K,{payload:T})=>{const x=[...K.channels],V=K.channels.findIndex(ge=>ge.channel_point===T.channelPoint);return V>-1&&x.splice(V,1),{...K,channels:x}}),(0,Hn.on)(di.Jl,(K,{payload:T})=>({...K,blockchainBalance:T})),(0,Hn.on)(di.ks,(K,{payload:T})=>({...K,networkInfo:T})),(0,Hn.on)(di.Nr,(K,{payload:T})=>(T.total_invoices||(T.total_invoices=K.listInvoices.total_invoices),{...K,listInvoices:T})),(0,Hn.on)(di.Lf,(K,{payload:T})=>{if(xh=!0,T.length&&Ch){const x=[...K.utxos];return x.forEach(V=>{const ge=T.find(nt=>nt.tx_hash===V.outpoint?.txid_str);V.label=ge&&ge.label?ge.label:""}),{...K,utxos:x,transactions:T}}return{...K,transactions:T}}),(0,Hn.on)(di.UH,(K,{payload:T})=>{if(Ch=!0,T.length&&xh){const x=[...K.transactions];T.forEach(V=>{const ge=x.find(nt=>nt.tx_hash===V.outpoint?.txid_str);V.label=ge&&ge.label?ge.label:""})}return{...K,utxos:T}}),(0,Hn.on)(di.HI,(K,{payload:T})=>{const x={listInvoicesAll:K.allLightningTransactions.listInvoicesAll,listPaymentsAll:T};return{...K,listPayments:T,allLightningTransactions:x}}),(0,Hn.on)(di.Fr,(K,{payload:T})=>{const x={listInvoicesAll:T.listInvoicesAll,listPaymentsAll:K.listPayments};return{...K,allLightningTransactions:x}}),(0,Hn.on)(di.QJ,(K,{payload:T})=>{const x=[...K.channels,...K.closedChannels];let V=T.forwarding_events?JSON.parse(JSON.stringify(T)):{};return V.forwarding_events&&(V=Q3(V,x)),{...K,forwardingHistory:V}}),(0,Hn.on)(di.pd,(K,{payload:T})=>{const x=[];return Qe.gK.forEach(V=>{const ge=T&&T.length&&T.length>0?T.find(nt=>nt.pageId===V.pageId):null;if(ge){const nt=JSON.parse(JSON.stringify(ge.tables));ge.tables=[],V.tables.forEach(kt=>{const jt=nt.find(on=>on.tableId===kt.tableId)||null;jt?ge.tables.push(jt):ge.tables.push(JSON.parse(JSON.stringify(kt)))}),x.push(ge)}else x.push(JSON.parse(JSON.stringify(V)))}),{...K,pageSettings:x}})),Q3=(K,T)=>(K.forwarding_events.forEach(x=>{if(T&&T.length>0)for(let V=0;V<T.length;V++){if(T[V].chan_id?.toString()===x.chan_id_in&&(x.alias_in=T[V].remote_alias?T[V].remote_alias:x.chan_id_in,x.alias_out)||T[V].chan_id?.toString()===x.chan_id_out&&(x.alias_out=T[V].remote_alias?T[V].remote_alias:x.chan_id_out,x.alias_in))return;V===T.length-1&&(x.alias_in||(x.alias_in=x.chan_id_in),x.alias_out||(x.alias_out=x.chan_id_out))}else x.alias_in=x.chan_id_in,x.alias_out=x.chan_id_out}),K),Mh={apisCallStatus:{FetchPageSettings:{status:Qe.Bn.UN_INITIATED},FetchInfo:{status:Qe.Bn.UN_INITIATED},FetchInvoices:{status:Qe.Bn.UN_INITIATED},FetchFees:{status:Qe.Bn.UN_INITIATED},FetchChannels:{status:Qe.Bn.UN_INITIATED},FetchBalance:{status:Qe.Bn.UN_INITIATED},FetchLocalRemoteBalance:{status:Qe.Bn.UN_INITIATED},FetchFeeRatesperkb:{status:Qe.Bn.UN_INITIATED},FetchFeeRatesperkw:{status:Qe.Bn.UN_INITIATED},FetchPeers:{status:Qe.Bn.UN_INITIATED},FetchUTXOs:{status:Qe.Bn.UN_INITIATED},FetchPayments:{status:Qe.Bn.UN_INITIATED},FetchForwardingHistoryS:{status:Qe.Bn.UN_INITIATED},FetchForwardingHistoryF:{status:Qe.Bn.UN_INITIATED},FetchForwardingHistoryL:{status:Qe.Bn.UN_INITIATED},FetchOffers:{status:Qe.Bn.UN_INITIATED},FetchOfferBookmarks:{status:Qe.Bn.UN_INITIATED}},nodeSettings:{userPersona:Qe.ol.OPERATOR,unannouncedChannels:!1,selCurrencyUnit:"USD",fiatConversion:!1,channelBackupPath:"",currencyUnits:[],enableOffers:!1,enablePeerswap:!1},pageSettings:Qe.gG,information:{},fees:{},feeRatesPerKB:{},feeRatesPerKW:{},balance:{},localRemoteBalance:{localBalance:-1,remoteBalance:-1},peers:[],activeChannels:[],pendingChannels:[],inactiveChannels:[],payments:[],forwardingHistory:{},failedForwardingHistory:{},localFailedForwardingHistory:{},invoices:{invoices:[]},utxos:[],offers:[],offersBookmarks:[]},Eh=(0,Hn.Lq)(Mh,(0,Hn.on)(Rn.Ni,(K,{payload:T})=>{const x=JSON.parse(JSON.stringify(K.apisCallStatus));return T.action&&(x[T.action]={status:T.status,statusCode:T.statusCode,message:T.message,URL:T.URL,filePath:T.filePath}),{...K,apisCallStatus:x}}),(0,Hn.on)(Rn.oo,(K,{payload:T})=>({...K,nodeSettings:T})),(0,Hn.on)(Rn.xH,(K,{payload:T})=>({...Mh,nodeSettings:T})),(0,Hn.on)(Rn.CX,(K,{payload:T})=>({...K,information:T})),(0,Hn.on)(Rn.RX,(K,{payload:T})=>({...K,fees:T})),(0,Hn.on)(Rn.I8,(K,{payload:T})=>T.perkb?{...K,feeRatesPerKB:T}:T.perkw?{...K,feeRatesPerKW:T}:{...K}),(0,Hn.on)(Rn.Lu,(K,{payload:T})=>({...K,balance:T})),(0,Hn.on)(Rn.xS,(K,{payload:T})=>({...K,localRemoteBalance:T})),(0,Hn.on)(Rn.Z8,(K,{payload:T})=>({...K,peers:T})),(0,Hn.on)(Rn.X3,(K,{payload:T})=>({...K,peers:[...K.peers,T]})),(0,Hn.on)(Rn.EK,(K,{payload:T})=>{const x=[...K.peers],V=K.peers.findIndex(ge=>ge.id===T.id);return V>-1&&x.splice(V,1),{...K,peers:x}}),(0,Hn.on)(Rn.as,(K,{payload:T})=>({...K,activeChannels:T.activeChannels,pendingChannels:T.pendingChannels,inactiveChannels:T.inactiveChannels})),(0,Hn.on)(Rn.OG,(K,{payload:T})=>{const x=[...K.peers];return x.forEach(V=>{V.id===T.id&&(V.connected=!1,delete V.netaddr)}),{...K,peers:x}}),(0,Hn.on)(Rn.HI,(K,{payload:T})=>({...K,payments:T})),(0,Hn.on)(Rn.QJ,(K,{payload:T})=>{const x=[...K.activeChannels,...K.pendingChannels,...K.inactiveChannels],V=Vi(T.listForwards,x);switch(T.listForwards=V,T.status){case Qe.OO.SETTLED:const ge=K.fees;return ge.totalTxCount=T.totalForwards||0,{...K,fees:ge,forwardingHistory:T};case Qe.OO.FAILED:return{...K,failedForwardingHistory:T};case Qe.OO.LOCAL_FAILED:return{...K,localFailedForwardingHistory:T};default:return{...K}}}),(0,Hn.on)(Rn.YP,(K,{payload:T})=>{const x=K.invoices;return x.invoices?.unshift(T),{...K,invoices:x}}),(0,Hn.on)(Rn.Nr,(K,{payload:T})=>({...K,invoices:T})),(0,Hn.on)(Rn.aL,(K,{payload:T})=>{const x=K.invoices;return x.invoices=x.invoices?.map(V=>V.label===T.label?T:V),{...K,invoices:x}}),(0,Hn.on)(Rn.UH,(K,{payload:T})=>({...K,utxos:T})),(0,Hn.on)(Rn.Zu,(K,{payload:T})=>({...K,offers:T})),(0,Hn.on)(Rn.ZH,(K,{payload:T})=>{const x=K.offers;return x?.unshift(T),{...K,offers:x}}),(0,Hn.on)(Rn.JK,(K,{payload:T})=>{const x=[...K.offers],V=K.offers.findIndex(ge=>ge.offer_id===T.offer.offer_id);return V>-1&&x.splice(V,1,T.offer),{...K,offers:x}}),(0,Hn.on)(Rn.d7,(K,{payload:T})=>({...K,offersBookmarks:T})),(0,Hn.on)(Rn.e9,(K,{payload:T})=>{const x=[...K.offersBookmarks],V=x.findIndex(ge=>ge.bolt12===T.bolt12);if(V<0)x?.unshift(T);else{const ge={...x[V]};ge.title=T.title,ge.amountMSat=T.amountMSat,ge.lastUpdatedAt=T.lastUpdatedAt,ge.description=T.description,ge.vendor=T.vendor,x.splice(V,1,ge)}return{...K,offersBookmarks:x}}),(0,Hn.on)(Rn.en,(K,{payload:T})=>{const x=[...K.offersBookmarks],V=K.offersBookmarks.findIndex(ge=>ge.bolt12===T.bolt12);return V>-1&&x.splice(V,1),{...K,offersBookmarks:x}}),(0,Hn.on)(Rn.pd,(K,{payload:T})=>{const x=[];return Qe.gG.forEach(V=>{const ge=T&&T.length&&T.length>0?T.find(nt=>nt.pageId===V.pageId):null;if(ge){const nt=JSON.parse(JSON.stringify(ge.tables));ge.tables=[],V.tables.forEach(kt=>{const jt=nt.find(on=>on.tableId===kt.tableId)||null;jt?ge.tables.push(jt):ge.tables.push(JSON.parse(JSON.stringify(kt)))}),x.push(ge)}else x.push(JSON.parse(JSON.stringify(V)))}),{...K,pageSettings:x}})),Vi=(K,T)=>(K&&K.length>0?K.forEach((x,V)=>{if(T&&T.length>0)for(let ge=0;ge<T.length;ge++){if(T[ge].short_channel_id&&T[ge].short_channel_id===x.in_channel&&(x.in_channel_alias=T[ge].alias?T[ge].alias:x.in_channel,x.out_channel_alias)||T[ge].short_channel_id&&T[ge].short_channel_id?.toString()===x.out_channel&&(x.out_channel_alias=T[ge].alias?T[ge].alias:x.out_channel,x.in_channel_alias))return;ge===T.length-1&&(x.in_channel_alias||(x.in_channel_alias=x.in_channel?x.in_channel:"-"),x.out_channel_alias||(x.out_channel_alias=x.out_channel?x.out_channel:"-"))}else x.in_channel_alias=x.in_channel?x.in_channel:"-",x.out_channel_alias=x.out_channel?x.out_channel:"-"}):K=[],K),md={apisCallStatus:{FetchPageSettings:{status:Qe.Bn.UN_INITIATED},FetchInfo:{status:Qe.Bn.UN_INITIATED},FetchFees:{status:Qe.Bn.UN_INITIATED},FetchChannels:{status:Qe.Bn.UN_INITIATED},FetchOnchainBalance:{status:Qe.Bn.UN_INITIATED},FetchPeers:{status:Qe.Bn.UN_INITIATED},FetchPayments:{status:Qe.Bn.UN_INITIATED},FetchInvoices:{status:Qe.Bn.UN_INITIATED},FetchTransactions:{status:Qe.Bn.UN_INITIATED}},nodeSettings:{userPersona:Qe.ol.OPERATOR,unannouncedChannels:!1,selCurrencyUnit:"USD",fiatConversion:!1,channelBackupPath:"",currencyUnits:[]},pageSettings:Qe.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:[]},Dh=(0,Hn.Lq)(md,(0,Hn.on)(Dn.QZ,(K,{payload:T})=>{const x=JSON.parse(JSON.stringify(K.apisCallStatus));return T.action&&(x[T.action]={status:T.status,statusCode:T.statusCode,message:T.message,URL:T.URL,filePath:T.filePath}),{...K,apisCallStatus:x}}),(0,Hn.on)(Dn.Zr,(K,{payload:T})=>({...K,nodeSettings:T})),(0,Hn.on)(Dn.Fd,(K,{payload:T})=>({...md,nodeSettings:T})),(0,Hn.on)(Dn.CX,(K,{payload:T})=>({...K,information:T})),(0,Hn.on)(Dn.RX,(K,{payload:T})=>({...K,fees:T})),(0,Hn.on)(Dn.eN,(K,{payload:T})=>({...K,activeChannels:T})),(0,Hn.on)(Dn.TW,(K,{payload:T})=>({...K,pendingChannels:T})),(0,Hn.on)(Dn.i,(K,{payload:T})=>({...K,inactiveChannels:T})),(0,Hn.on)(Dn.HG,(K,{payload:T})=>({...K,channelsStatus:T})),(0,Hn.on)(Dn.Bw,(K,{payload:T})=>({...K,onchainBalance:T})),(0,Hn.on)(Dn.On,(K,{payload:T})=>({...K,lightningBalance:T})),(0,Hn.on)(Dn.Z8,(K,{payload:T})=>({...K,peers:T})),(0,Hn.on)(Dn.EK,(K,{payload:T})=>{const x=[...K.peers],V=K.peers.findIndex(ge=>ge.nodeId===T.nodeId);return V>-1&&x.splice(V,1),{...K,peers:x}}),(0,Hn.on)(Dn.OG,(K,{payload:T})=>{const x=[...K.activeChannels],V=K.activeChannels.findIndex(ge=>ge.channelId===T.channelId);return V>-1&&x.splice(V,1),{...K,activeChannels:x}}),(0,Hn.on)(Dn.HI,(K,{payload:T})=>{if(T&&T.sent){const x=[...K.activeChannels,...K.pendingChannels,...K.inactiveChannels];T.sent?.map(V=>{const ge=K.peers.find(nt=>nt.nodeId===V.recipientNodeId);return V.recipientNodeAlias=ge?ge.alias:V.recipientNodeId,V.parts&&V.parts?.map(nt=>{const kt=x.find(jt=>jt.channelId===nt.toChannelId);return nt.toChannelAlias=kt?kt.alias:nt.toChannelId,V.parts}),T.sent})}if(T&&T.relayed){const x=[...K.activeChannels,...K.pendingChannels,...K.inactiveChannels];T.relayed.forEach(V=>{V=gd(V,x)})}return{...K,payments:T}}),(0,Hn.on)(Dn.Lf,(K,{payload:T})=>({...K,transactions:T})),(0,Hn.on)(Dn.YP,(K,{payload:T})=>{const x=K.invoices;return x?.unshift(T),{...K,invoices:x}}),(0,Hn.on)(Dn.Nr,(K,{payload:T})=>({...K,invoices:T})),(0,Hn.on)(Dn.aL,(K,{payload:T})=>{let x=K.invoices;return x=x?.map(V=>{if(V.paymentHash===T.paymentHash){if(T.hasOwnProperty("type")){const ge=JSON.parse(JSON.stringify(V));return ge.amountSettled=T.parts&&T.parts.length&&T.parts.length>0&&T.parts[0].amount?(T.parts[0].amount||0)/1e3:0,ge.receivedAt=T.parts&&T.parts.length&&T.parts.length>0&&T.parts[0].timestamp?Math.round((T.parts[0].timestamp||0)/1e3):0,ge.status="received",ge}return T}return V}),{...K,invoices:x}}),(0,Hn.on)(Dn.DJ,(K,{payload:T})=>{let x=K.pendingChannels;return x=x?.map(V=>(V.channelId===T.channelId&&V.nodeId===T.remoteNodeId&&(T.currentState=T.currentState?.replace(/_/g," "),V.state=T.currentState),V)),{...K,pendingChannels:x}}),(0,Hn.on)(Dn.ti,(K,{payload:T})=>{const x=K.payments,V=gd(T,[...K.activeChannels,...K.pendingChannels,...K.inactiveChannels]);V.amountIn=Math.round((T.amountIn||0)/1e3),V.amountOut=Math.round((T.amountOut||0)/1e3),x.relayed?.unshift(V);const ge=(T.amountIn||0)-(T.amountOut||0),nt={localBalance:K.lightningBalance.localBalance+ge,remoteBalance:K.lightningBalance.remoteBalance-ge},kt=K.channelsStatus;kt.active&&(kt.active.capacity=(K.channelsStatus?.active?.capacity||0)+ge);const jt={daily_fee:(K.fees.daily_fee||0)+ge,daily_txs:(K.fees.daily_txs||0)+1,weekly_fee:(K.fees.weekly_fee||0)+ge,weekly_txs:(K.fees.weekly_txs||0)+1,monthly_fee:(K.fees.monthly_fee||0)+ge,monthly_txs:(K.fees.monthly_txs||0)+1},on=K.activeChannels;let xn=!1,fi=!1;for(const Xn of on){if(Xn.channelId===T.fromChannelId){xn=!0;const Pi=(Xn.toLocal||0)+(Xn.toRemote||0);Xn.toLocal=(Xn.toLocal||0)+V.amountIn,Xn.toRemote=(Xn.toRemote||0)-V.amountIn,Xn.balancedness=0===Pi?1:+(1-Math.abs((Xn.toLocal-Xn.toRemote)/Pi)).toFixed(3)}if(Xn.channelId===T.toChannelId){fi=!0;const Pi=(Xn.toLocal||0)+(Xn.toRemote||0);Xn.toLocal=(Xn.toLocal||0)-V.amountOut,Xn.toRemote=(Xn.toRemote||0)+V.amountOut,Xn.balancedness=0===Pi?1:+(1-Math.abs((Xn.toLocal-Xn.toRemote)/Pi)).toFixed(3)}if(fi&&xn)break}return{...K,payments:x,lightningBalance:nt,channelStatus:kt,fees:jt,activeChannels:on}}),(0,Hn.on)(Dn.pd,(K,{payload:T})=>{const x=[];return Qe.c3.forEach(V=>{const ge=T&&T.length&&T.length>0?T.find(nt=>nt.pageId===V.pageId):null;if(ge){const nt=JSON.parse(JSON.stringify(ge.tables));ge.tables=[],V.tables.forEach(kt=>{const jt=nt.find(on=>on.tableId===kt.tableId)||null;jt?ge.tables.push(jt):ge.tables.push(JSON.parse(JSON.stringify(kt)))}),x.push(ge)}else x.push(JSON.parse(JSON.stringify(V)))}),{...K,pageSettings:x}})),gd=(K,T)=>{if("payment-relayed"===K.type)if(T&&T.length>0)for(let x=0;x<T.length;x++){if(T[x].channelId?.toString()===K.fromChannelId&&(K.fromChannelAlias=T[x].alias?T[x].alias:K.fromChannelId,K.fromShortChannelId=T[x].shortChannelId?T[x].shortChannelId:"",K.toChannelAlias)||T[x].channelId?.toString()===K.toChannelId&&(K.toChannelAlias=T[x].alias?T[x].alias:K.toChannelId,K.toShortChannelId=T[x].shortChannelId?T[x].shortChannelId:"",K.fromChannelAlias))return K;x===T.length-1&&(K.fromChannelAlias||(K.fromChannelAlias=K.fromChannelId?.substring(0,17)+"...",K.fromShortChannelId=""),K.toChannelAlias||(K.toChannelAlias=K.toChannelId?.substring(0,17)+"...",K.toShortChannelId=""))}else K.fromChannelAlias=K.fromChannelId?.substring(0,17)+"...",K.fromShortChannelId="",K.toChannelAlias=K.toChannelId?.substring(0,17)+"...",K.toShortChannelId="";else if(K.type="trampoline-payment-relayed"){if(T&&T.length>0)for(let x=0;x<T.length;x++)K.incoming?.forEach(V=>{T[x].channelId?.toString()===V.channelId&&(V.channelAlias=T[x].alias?T[x].alias:V.channelId,V.shortChannelId=T[x].shortChannelId?T[x].shortChannelId:"")}),K.outgoing?.forEach(V=>{T[x].channelId?.toString()===V.channelId&&(V.channelAlias=T[x].alias?T[x].alias:V.channelId,V.shortChannelId=T[x].shortChannelId?T[x].shortChannelId:"")}),x===T.length-1&&(K.incoming&&K.incoming.length&&K.incoming.length>0&&!K.incoming[0].channelAlias&&K.incoming?.forEach(V=>{V.channelAlias=V.channelId?.substring(0,17)+"...",V.shortChannelId=""}),K.outgoing&&K.outgoing.length&&K.outgoing.length>0&&!K.outgoing[0].channelAlias&&K.outgoing?.forEach(V=>{V.channelAlias=V.channelId?.substring(0,17)+"...",V.shortChannelId=""}));else K.incoming?.forEach(x=>{x.channelAlias=x.channelId?.substring(0,17)+"...",x.shortChannelId=""}),K.outgoing?.forEach(x=>{x.channelAlias=x.channelId?.substring(0,17)+"...",x.shortChannelId=""});K.amountIn=K.incoming?.reduce((x,V)=>x+V.amount,0)||0,K.fromChannelId=K.incoming&&K.incoming.length?K.incoming[0].channelId:"",K.fromChannelAlias=K.incoming&&K.incoming.length?K.incoming[0].channelAlias:"",K.fromShortChannelId=K.incoming&&K.incoming.length?K.incoming[0].shortChannelId:"",K.amountOut=K.outgoing?.reduce((x,V)=>x+V.amount,0)||0,K.toChannelId=K.outgoing&&K.outgoing.length?K.outgoing[0].channelId:"",K.toChannelAlias=K.outgoing&&K.outgoing.length?K.outgoing[0].channelAlias:"",K.toShortChannelId=K.outgoing&&K.outgoing.length?K.outgoing[0].shortChannelId:""}return K};class n2{static#e=this.\u0275fac=function(x){return new(x||n2)};static#t=this.\u0275mod=t.oAB({type:n2,bootstrap:[gh]});static#n=this.\u0275inj=t.cJS({providers:[{provide:Ba.TP,useClass:Dl,multi:!0},er.a1,Qo.m,r1.D,t2.d,H1.W,ta.v,yo],imports:[sr,cd.m,Xl,$i.xu,e.t6,os.forRoot({idle:3590,timeout:10,ping:12e3}),Hn.Aw.forRoot({root:yh,lnd:Z0,cln:Eh,ecl:Dh},{runtimeChecks:{strictStateImmutability:!1,strictActionImmutability:!1}}),vs.sQ.forRoot([Na.V,$l.l,Z3.J,Y3.o]),Bs.NZ.production?[]:dl.FT.instrument()]})}Bs.NZ.production&&(0,t.G48)(),e.q6().bootstrapModule(n2).catch(K=>console.log(K))},8996:(Ue,q)=>{"use strict";function m(xe){return Object.keys(xe).map(Ze=>xe[Ze])}var xe;Object.defineProperty(q,"__esModule",{value:!0}),(xe=q.HashAlgorithms||(q.HashAlgorithms={})).SHA1="sha1",xe.SHA256="sha256",xe.SHA512="sha512";const e=m(q.HashAlgorithms);!function(xe){xe.ASCII="ascii",xe.BASE64="base64",xe.HEX="hex",xe.LATIN1="latin1",xe.UTF8="utf8"}(q.KeyEncodings||(q.KeyEncodings={}));const t=m(q.KeyEncodings);!function(xe){xe.HOTP="hotp",xe.TOTP="totp"}(q.Strategy||(q.Strategy={}));const _=m(q.Strategy),E=()=>{throw new Error("Please provide an options.createDigest implementation.")};function s(xe){return/^(\d+)$/.test(xe)}function D(xe,Ze,Ie){return xe.length>=Ze?xe:`${Array(Ze+1).join(Ie)}${xe}`.slice(-1*Ze)}function u(xe){const Ze=`otpauth://${xe.type}/{labelPrefix}:{accountName}?secret={secret}{query}`,Ie=[];if(_.indexOf(xe.type)<0)throw new Error(`Expecting options.type to be one of ${_.join(", ")}. Received ${xe.type}.`);if("hotp"===xe.type){if(null==xe.counter||"number"!=typeof xe.counter)throw new Error('Expecting options.counter to be a number when options.type is "hotp".');Ie.push(`&counter=${xe.counter}`)}return"totp"===xe.type&&xe.step&&Ie.push(`&period=${xe.step}`),xe.digits&&Ie.push(`&digits=${xe.digits}`),xe.algorithm&&Ie.push(`&algorithm=${xe.algorithm.toUpperCase()}`),xe.issuer&&Ie.push(`&issuer=${encodeURIComponent(xe.issuer)}`),Ze.replace("{labelPrefix}",encodeURIComponent(xe.issuer||xe.accountName)).replace("{accountName}",encodeURIComponent(xe.accountName)).replace("{secret}",xe.secret).replace("{query}",Ie.join(""))}class k{constructor(Ze={}){this._defaultOptions=Object.freeze({...Ze}),this._options=Object.freeze({})}create(Ze={}){return new k(Ze)}clone(Ze={}){const Ie=this.create({...this._defaultOptions,...Ze});return Ie.options=this._options,Ie}get options(){return Object.freeze({...this._defaultOptions,...this._options})}set options(Ze){this._options=Object.freeze({...this._options,...Ze})}allOptions(){return this.options}resetOptions(){this._options=Object.freeze({})}}function p(xe){if("function"!=typeof xe.createDigest)throw new Error("Expecting options.createDigest to be a function.");if("function"!=typeof xe.createHmacKey)throw new Error("Expecting options.createHmacKey to be a function.");if("number"!=typeof xe.digits)throw new Error("Expecting options.digits to be a number.");if(!xe.algorithm||e.indexOf(xe.algorithm)<0)throw new Error(`Expecting options.algorithm to be one of ${e.join(", ")}. Received ${xe.algorithm}.`);if(!xe.encoding||t.indexOf(xe.encoding)<0)throw new Error(`Expecting options.encoding to be one of ${t.join(", ")}. Received ${xe.encoding}.`)}const S=(xe,Ze,Ie)=>Buffer.from(Ze,Ie).toString("hex");function A(){return{algorithm:q.HashAlgorithms.SHA1,createHmacKey:S,createDigest:E,digits:6,encoding:q.KeyEncodings.ASCII}}function P(xe){const Ze={...A(),...xe};return p(Ze),Object.freeze(Ze)}function M(xe){return D(xe.toString(16),16,"0")}function z(xe,Ze){const Ie=Buffer.from(xe,"hex"),ve=15&Ie[Ie.length-1],ht=((127&Ie[ve])<<24|(255&Ie[ve+1])<<16|(255&Ie[ve+2])<<8|255&Ie[ve+3])%Math.pow(10,Ze);return D(String(ht),Ze,"0")}function W(xe,Ze,Ie){const ve=Ie.digest||function I(xe,Ze,Ie){const ve=M(Ze),et=Ie.createHmacKey(Ie.algorithm,xe,Ie.encoding);return Ie.createDigest(Ie.algorithm,et,ve)}(xe,Ze,Ie);return z(ve,Ie.digits)}function Z(xe,Ze,Ie,ve){if(!s(xe))return!1;return xe===W(Ze,Ie,ve)}function Q(xe,Ze,Ie,ve,et){return u({algorithm:et.algorithm,digits:et.digits,type:q.Strategy.HOTP,accountName:xe,counter:ve,issuer:Ze,secret:Ie})}class ie extends k{create(Ze={}){return new ie(Ze)}allOptions(){return P(this.options)}generate(Ze,Ie){return W(Ze,Ie,this.allOptions())}check(Ze,Ie,ve){return Z(Ze,Ie,ve,this.allOptions())}verify(Ze){if("object"!=typeof Ze)throw new Error("Expecting argument 0 of verify to be an object");return this.check(Ze.token,Ze.secret,Ze.counter)}keyuri(Ze,Ie,ve,et){return Q(Ze,Ie,ve,et,this.allOptions())}}function ae(xe){if("number"==typeof xe)return[Math.abs(xe),Math.abs(xe)];if(Array.isArray(xe)){const[Ze,Ie]=xe;if("number"==typeof Ze&&"number"==typeof Ie)return[Math.abs(Ze),Math.abs(Ie)]}throw new Error("Expecting options.window to be an number or [number, number].")}function _e(xe){if(p(xe),ae(xe.window),"number"!=typeof xe.epoch)throw new Error("Expecting options.epoch to be a number.");if("number"!=typeof xe.step)throw new Error("Expecting options.step to be a number.")}const ce=(xe,Ze,Ie)=>{const ve=xe.length,et=Buffer.from(xe,Ze).toString("hex");if(ve<Ie){const ht=new Array(Ie-ve+1).join(et);return Buffer.from(ht,"hex").slice(0,Ie).toString("hex")}return et},ye=(xe,Ze,Ie)=>{switch(xe){case q.HashAlgorithms.SHA1:return ce(Ze,Ie,20);case q.HashAlgorithms.SHA256:return ce(Ze,Ie,32);case q.HashAlgorithms.SHA512:return ce(Ze,Ie,64);default:throw new Error(`Expecting algorithm to be one of ${e.join(", ")}. Received ${xe}.`)}};function ue(){return{algorithm:q.HashAlgorithms.SHA1,createDigest:E,createHmacKey:ye,digits:6,encoding:q.KeyEncodings.ASCII,epoch:Date.now(),step:30,window:0}}function $(xe){const Ze={...ue(),...xe};return _e(Ze),Object.freeze(Ze)}function he(xe,Ze){return Math.floor(xe/Ze/1e3)}function w(xe,Ze){return W(xe,he(Ze.epoch,Ze.step),Ze)}function n(xe,Ze,Ie,ve){const et=[];if(0===ve)return et;for(let ht=1;ht<=ve;ht++){const Le=Ze*ht*Ie;et.push(xe+Le)}return et}function o(xe,Ze,Ie){const ve=ae(Ie),et=1e3*Ze;return{current:xe,past:n(xe,-1,et,ve[0]),future:n(xe,1,et,ve[1])}}function h(xe,Ze,Ie){if(!s(xe))return!1;return xe===w(Ze,Ie)}function d(xe,Ze,Ie,ve){let et=null;return xe.some((ht,Le)=>!!h(Ze,Ie,{...ve,epoch:ht})&&(et=Le+1,!0)),et}function y(xe,Ze,Ie){if(h(xe,Ze,Ie))return 0;const ve=o(Ie.epoch,Ie.step,Ie.window),et=d(ve.past,xe,Ze,Ie);return null!==et?-1*et:d(ve.future,xe,Ze,Ie)}function L(xe,Ze){return Math.floor(xe/1e3)%Ze}function B(xe,Ze){return Ze-L(xe,Ze)}function v(xe,Ze,Ie,ve){return u({algorithm:ve.algorithm,digits:ve.digits,step:ve.step,type:q.Strategy.TOTP,accountName:xe,issuer:Ze,secret:Ie})}class a extends ie{create(Ze={}){return new a(Ze)}allOptions(){return $(this.options)}generate(Ze){return w(Ze,this.allOptions())}checkDelta(Ze,Ie){return y(Ze,Ie,this.allOptions())}check(Ze,Ie){return"number"==typeof this.checkDelta(Ze,Ie)}verify(Ze){if("object"!=typeof Ze)throw new Error("Expecting argument 0 of verify to be an object");return this.check(Ze.token,Ze.secret)}timeRemaining(){const Ze=this.allOptions();return B(Ze.epoch,Ze.step)}timeUsed(){const Ze=this.allOptions();return L(Ze.epoch,Ze.step)}keyuri(Ze,Ie,ve){return v(Ze,Ie,ve,this.allOptions())}}function C(xe){if(_e(xe),"function"!=typeof xe.keyDecoder)throw new Error("Expecting options.keyDecoder to be a function.");if(xe.keyEncoder&&"function"!=typeof xe.keyEncoder)throw new Error("Expecting options.keyEncoder to be a function.")}function N(){return{algorithm:q.HashAlgorithms.SHA1,createDigest:E,createHmacKey:ye,digits:6,encoding:q.KeyEncodings.HEX,epoch:Date.now(),step:30,window:0}}function F(xe){const Ze={...N(),...xe};return C(Ze),Object.freeze(Ze)}function X(xe,Ze){return Ze.keyEncoder(xe,Ze.encoding)}function Fe(xe,Ze){return Ze.keyDecoder(xe,Ze.encoding)}function ke(xe,Ze){return X(Ze.createRandomBytes(xe,Ze.encoding),Ze)}function Ke(xe,Ze){return w(Fe(xe,Ze),Ze)}function je(xe,Ze,Ie){return y(xe,Fe(Ze,Ie),Ie)}class Ve extends a{create(Ze={}){return new Ve(Ze)}allOptions(){return F(this.options)}generate(Ze){return Ke(Ze,this.allOptions())}checkDelta(Ze,Ie){return je(Ze,Ie,this.allOptions())}encode(Ze){return X(Ze,this.allOptions())}decode(Ze){return Fe(Ze,this.allOptions())}generateSecret(Ze=10){return ke(Ze,this.allOptions())}}q.Authenticator=Ve,q.HASH_ALGORITHMS=e,q.HOTP=ie,q.KEY_ENCODINGS=t,q.OTP=k,q.STRATEGY=_,q.TOTP=a,q.authenticatorCheckWithWindow=je,q.authenticatorDecoder=Fe,q.authenticatorDefaultOptions=N,q.authenticatorEncoder=X,q.authenticatorGenerateSecret=ke,q.authenticatorOptionValidator=C,q.authenticatorOptions=F,q.authenticatorToken=Ke,q.createDigestPlaceholder=E,q.hotpCheck=Z,q.hotpCounter=M,q.hotpCreateHmacKey=S,q.hotpDefaultOptions=A,q.hotpDigestToToken=z,q.hotpKeyuri=Q,q.hotpOptions=P,q.hotpOptionsValidator=p,q.hotpToken=W,q.isTokenValid=s,q.keyuri=u,q.objectValues=m,q.padStart=D,q.totpCheck=h,q.totpCheckByEpoch=d,q.totpCheckWithWindow=y,q.totpCounter=he,q.totpCreateHmacKey=ye,q.totpDefaultOptions=ue,q.totpEpochAvailable=o,q.totpKeyuri=v,q.totpOptions=$,q.totpOptionsValidator=_e,q.totpPadSecret=ce,q.totpTimeRemaining=B,q.totpTimeUsed=L,q.totpToken=w},6042:(Ue,q,m)=>{"use strict";Object.defineProperty(q,"__esModule",{value:!0});var t=function e(s){return s&&"object"==typeof s&&"default"in s?s.default:s}(m(9501));q.createDigest=(s,D,u)=>t.createHmac(s,Buffer.from(D,"hex")).update(Buffer.from(u,"hex")).digest().toString("hex"),q.createRandomBytes=(s,D)=>t.randomBytes(s).toString(D)},8364:(Ue,q,m)=>{"use strict";Object.defineProperty(q,"__esModule",{value:!0});var t=function e(s){return s&&"object"==typeof s&&"default"in s?s.default:s}(m(917));q.keyDecoder=(s,D)=>t.decode(s).toString(D),q.keyEncoder=(s,D)=>t.encode(Buffer.from(s,D).toString("ascii")).toString().replace(/=/g,"")},9614:(Ue,q,m)=>{"use strict";Object.defineProperty(q,"__esModule",{value:!0});var e=m(6042),t=m(8364),_=m(8996);const E=new _.HOTP({createDigest:e.createDigest}),s=new _.TOTP({createDigest:e.createDigest}),D=new _.Authenticator({createDigest:e.createDigest,createRandomBytes:e.createRandomBytes,keyDecoder:t.keyDecoder,keyEncoder:t.keyEncoder});q.authenticator=D,q.hotp=E,q.totp=s},7183:(Ue,q,m)=>{"use strict";const e=q;e.bignum=m(3439),e.define=m(1535).define,e.base=m(6977),e.constants=m(5407),e.decoders=m(8643),e.encoders=m(6337)},1535:(Ue,q,m)=>{"use strict";const e=m(6337),t=m(8643),_=m(5035);function s(D,u){this.name=D,this.body=u,this.decoders={},this.encoders={}}q.define=function(u,k){return new s(u,k)},s.prototype._createNamed=function(u){const k=this.name;function p(S){this._initNamed(S,k)}return _(p,u),p.prototype._initNamed=function(A,P){u.call(this,A,P)},new p(this)},s.prototype._getDecoder=function(u){return u=u||"der",this.decoders.hasOwnProperty(u)||(this.decoders[u]=this._createNamed(t[u])),this.decoders[u]},s.prototype.decode=function(u,k,p){return this._getDecoder(k).decode(u,p)},s.prototype._getEncoder=function(u){return u=u||"der",this.encoders.hasOwnProperty(u)||(this.encoders[u]=this._createNamed(e[u])),this.encoders[u]},s.prototype.encode=function(u,k,p){return this._getEncoder(k).encode(u,p)}},2314:(Ue,q,m)=>{"use strict";const e=m(5035),t=m(794).b,_=m(4421).Buffer;function E(D,u){t.call(this,u),_.isBuffer(D)?(this.base=D,this.offset=0,this.length=D.length):this.error("Input not Buffer")}function s(D,u){if(Array.isArray(D))this.length=0,this.value=D.map(function(k){return s.isEncoderBuffer(k)||(k=new s(k,u)),this.length+=k.length,k},this);else if("number"==typeof D){if(!(0<=D&&D<=255))return u.error("non-byte EncoderBuffer value");this.value=D,this.length=1}else if("string"==typeof D)this.value=D,this.length=_.byteLength(D);else{if(!_.isBuffer(D))return u.error("Unsupported type: "+typeof D);this.value=D,this.length=D.length}}e(E,t),q.C=E,E.isDecoderBuffer=function(u){return u instanceof E||"object"==typeof u&&_.isBuffer(u.base)&&"DecoderBuffer"===u.constructor.name&&"number"==typeof u.offset&&"number"==typeof u.length&&"function"==typeof u.save&&"function"==typeof u.restore&&"function"==typeof u.isEmpty&&"function"==typeof u.readUInt8&&"function"==typeof u.skip&&"function"==typeof u.raw},E.prototype.save=function(){return{offset:this.offset,reporter:t.prototype.save.call(this)}},E.prototype.restore=function(u){const k=new E(this.base);return k.offset=u.offset,k.length=this.offset,this.offset=u.offset,t.prototype.restore.call(this,u.reporter),k},E.prototype.isEmpty=function(){return this.offset===this.length},E.prototype.readUInt8=function(u){return this.offset+1<=this.length?this.base.readUInt8(this.offset++,!0):this.error(u||"DecoderBuffer overrun")},E.prototype.skip=function(u,k){if(!(this.offset+u<=this.length))return this.error(k||"DecoderBuffer overrun");const p=new E(this.base);return p._reporterState=this._reporterState,p.offset=this.offset,p.length=this.offset+u,this.offset+=u,p},E.prototype.raw=function(u){return this.base.slice(u?u.offset:this.offset,this.length)},q.R=s,s.isEncoderBuffer=function(u){return u instanceof s||"object"==typeof u&&"EncoderBuffer"===u.constructor.name&&"number"==typeof u.length&&"function"==typeof u.join},s.prototype.join=function(u,k){return u||(u=_.alloc(this.length)),k||(k=0),0===this.length||(Array.isArray(this.value)?this.value.forEach(function(p){p.join(u,k),k+=p.length}):("number"==typeof this.value?u[k]=this.value:"string"==typeof this.value?u.write(this.value,k):_.isBuffer(this.value)&&this.value.copy(u,k),k+=this.length)),u}},6977:(Ue,q,m)=>{"use strict";const e=q;e.Reporter=m(794).b,e.DecoderBuffer=m(2314).C,e.EncoderBuffer=m(2314).R,e.Node=m(1598)},1598:(Ue,q,m)=>{"use strict";const e=m(794).b,t=m(2314).R,_=m(2314).C,E=m(3999),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"],D=["key","obj","use","optional","explicit","implicit","def","choice","any","contains"].concat(s);function k(S,A,P){const M={};this._baseState=M,M.name=P,M.enc=S,M.parent=A||null,M.children=null,M.tag=null,M.args=null,M.reverseArgs=null,M.choice=null,M.optional=!1,M.any=!1,M.obj=!1,M.use=null,M.useDecoder=null,M.key=null,M.default=null,M.explicit=null,M.implicit=null,M.contains=null,M.parent||(M.children=[],this._wrap())}Ue.exports=k;const p=["enc","parent","children","tag","args","reverseArgs","choice","optional","any","obj","use","alteredUse","key","default","explicit","implicit","contains"];k.prototype.clone=function(){const A=this._baseState,P={};p.forEach(function(z){P[z]=A[z]});const M=new this.constructor(P.parent);return M._baseState=P,M},k.prototype._wrap=function(){const A=this._baseState;D.forEach(function(P){this[P]=function(){const z=new this.constructor(this);return A.children.push(z),z[P].apply(z,arguments)}},this)},k.prototype._init=function(A){const P=this._baseState;E(null===P.parent),A.call(this),P.children=P.children.filter(function(M){return M._baseState.parent===this},this),E.equal(P.children.length,1,"Root node can have only one child")},k.prototype._useArgs=function(A){const P=this._baseState,M=A.filter(function(z){return z instanceof this.constructor},this);A=A.filter(function(z){return!(z instanceof this.constructor)},this),0!==M.length&&(E(null===P.children),P.children=M,M.forEach(function(z){z._baseState.parent=this},this)),0!==A.length&&(E(null===P.args),P.args=A,P.reverseArgs=A.map(function(z){if("object"!=typeof z||z.constructor!==Object)return z;const I={};return Object.keys(z).forEach(function(W){W==(0|W)&&(W|=0);const Z=z[W];I[Z]=W}),I}))},["_peekTag","_decodeTag","_use","_decodeStr","_decodeObjid","_decodeTime","_decodeNull","_decodeInt","_decodeBool","_decodeList","_encodeComposite","_encodeStr","_encodeObjid","_encodeTime","_encodeNull","_encodeInt","_encodeBool"].forEach(function(S){k.prototype[S]=function(){const P=this._baseState;throw new Error(S+" not implemented for encoding: "+P.enc)}}),s.forEach(function(S){k.prototype[S]=function(){const P=this._baseState,M=Array.prototype.slice.call(arguments);return E(null===P.tag),P.tag=S,this._useArgs(M),this}}),k.prototype.use=function(A){E(A);const P=this._baseState;return E(null===P.use),P.use=A,this},k.prototype.optional=function(){return this._baseState.optional=!0,this},k.prototype.def=function(A){const P=this._baseState;return E(null===P.default),P.default=A,P.optional=!0,this},k.prototype.explicit=function(A){const P=this._baseState;return E(null===P.explicit&&null===P.implicit),P.explicit=A,this},k.prototype.implicit=function(A){const P=this._baseState;return E(null===P.explicit&&null===P.implicit),P.implicit=A,this},k.prototype.obj=function(){const A=this._baseState,P=Array.prototype.slice.call(arguments);return A.obj=!0,0!==P.length&&this._useArgs(P),this},k.prototype.key=function(A){const P=this._baseState;return E(null===P.key),P.key=A,this},k.prototype.any=function(){return this._baseState.any=!0,this},k.prototype.choice=function(A){const P=this._baseState;return E(null===P.choice),P.choice=A,this._useArgs(Object.keys(A).map(function(M){return A[M]})),this},k.prototype.contains=function(A){const P=this._baseState;return E(null===P.use),P.contains=A,this},k.prototype._decode=function(A,P){const M=this._baseState;if(null===M.parent)return A.wrapResult(M.children[0]._decode(A,P));let Z,z=M.default,I=!0,W=null;if(null!==M.key&&(W=A.enterKey(M.key)),M.optional){let Q=null;if(null!==M.explicit?Q=M.explicit:null!==M.implicit?Q=M.implicit:null!==M.tag&&(Q=M.tag),null!==Q||M.any){if(I=this._peekTag(A,Q,M.any),A.isError(I))return I}else{const ie=A.save();try{null===M.choice?this._decodeGeneric(M.tag,A,P):this._decodeChoice(A,P),I=!0}catch{I=!1}A.restore(ie)}}if(M.obj&&I&&(Z=A.enterObject()),I){if(null!==M.explicit){const ie=this._decodeTag(A,M.explicit);if(A.isError(ie))return ie;A=ie}const Q=A.offset;if(null===M.use&&null===M.choice){let ie;M.any&&(ie=A.save());const ae=this._decodeTag(A,null!==M.implicit?M.implicit:M.tag,M.any);if(A.isError(ae))return ae;M.any?z=A.raw(ie):A=ae}if(P&&P.track&&null!==M.tag&&P.track(A.path(),Q,A.length,"tagged"),P&&P.track&&null!==M.tag&&P.track(A.path(),A.offset,A.length,"content"),M.any||(z=null===M.choice?this._decodeGeneric(M.tag,A,P):this._decodeChoice(A,P)),A.isError(z))return z;if(!M.any&&null===M.choice&&null!==M.children&&M.children.forEach(function(ae){ae._decode(A,P)}),M.contains&&("octstr"===M.tag||"bitstr"===M.tag)){const ie=new _(z);z=this._getUse(M.contains,A._reporterState.obj)._decode(ie,P)}}return M.obj&&I&&(z=A.leaveObject(Z)),null===M.key||null===z&&!0!==I?null!==W&&A.exitKey(W):A.leaveKey(W,M.key,z),z},k.prototype._decodeGeneric=function(A,P,M){const z=this._baseState;return"seq"===A||"set"===A?null:"seqof"===A||"setof"===A?this._decodeList(P,A,z.args[0],M):/str$/.test(A)?this._decodeStr(P,A,M):"objid"===A&&z.args?this._decodeObjid(P,z.args[0],z.args[1],M):"objid"===A?this._decodeObjid(P,null,null,M):"gentime"===A||"utctime"===A?this._decodeTime(P,A,M):"null_"===A?this._decodeNull(P,M):"bool"===A?this._decodeBool(P,M):"objDesc"===A?this._decodeStr(P,A,M):"int"===A||"enum"===A?this._decodeInt(P,z.args&&z.args[0],M):null!==z.use?this._getUse(z.use,P._reporterState.obj)._decode(P,M):P.error("unknown tag: "+A)},k.prototype._getUse=function(A,P){const M=this._baseState;return M.useDecoder=this._use(A,P),E(null===M.useDecoder._baseState.parent),M.useDecoder=M.useDecoder._baseState.children[0],M.implicit!==M.useDecoder._baseState.implicit&&(M.useDecoder=M.useDecoder.clone(),M.useDecoder._baseState.implicit=M.implicit),M.useDecoder},k.prototype._decodeChoice=function(A,P){const M=this._baseState;let z=null,I=!1;return Object.keys(M.choice).some(function(W){const Z=A.save(),Q=M.choice[W];try{const ie=Q._decode(A,P);if(A.isError(ie))return!1;z={type:W,value:ie},I=!0}catch{return A.restore(Z),!1}return!0},this),I?z:A.error("Choice not matched")},k.prototype._createEncoderBuffer=function(A){return new t(A,this.reporter)},k.prototype._encode=function(A,P,M){const z=this._baseState;if(null!==z.default&&z.default===A)return;const I=this._encodeValue(A,P,M);return void 0===I||this._skipDefault(I,P,M)?void 0:I},k.prototype._encodeValue=function(A,P,M){const z=this._baseState;if(null===z.parent)return z.children[0]._encode(A,P||new e);let I=null;if(this.reporter=P,z.optional&&void 0===A){if(null===z.default)return;A=z.default}let W=null,Z=!1;if(z.any)I=this._createEncoderBuffer(A);else if(z.choice)I=this._encodeChoice(A,P);else if(z.contains)W=this._getUse(z.contains,M)._encode(A,P),Z=!0;else if(z.children)W=z.children.map(function(Q){if("null_"===Q._baseState.tag)return Q._encode(null,P,A);if(null===Q._baseState.key)return P.error("Child should have a key");const ie=P.enterKey(Q._baseState.key);if("object"!=typeof A)return P.error("Child expected, but input is not object");const ae=Q._encode(A[Q._baseState.key],P,A);return P.leaveKey(ie),ae},this).filter(function(Q){return Q}),W=this._createEncoderBuffer(W);else if("seqof"===z.tag||"setof"===z.tag){if(!z.args||1!==z.args.length)return P.error("Too many args for : "+z.tag);if(!Array.isArray(A))return P.error("seqof/setof, but data is not Array");const Q=this.clone();Q._baseState.implicit=null,W=this._createEncoderBuffer(A.map(function(ie){const ae=this._baseState;return this._getUse(ae.args[0],A)._encode(ie,P)},Q))}else null!==z.use?I=this._getUse(z.use,M)._encode(A,P):(W=this._encodePrimitive(z.tag,A),Z=!0);if(!z.any&&null===z.choice){const Q=null!==z.implicit?z.implicit:z.tag,ie=null===z.implicit?"universal":"context";null===Q?null===z.use&&P.error("Tag could be omitted only for .use()"):null===z.use&&(I=this._encodeComposite(Q,Z,ie,W))}return null!==z.explicit&&(I=this._encodeComposite(z.explicit,!1,"context",I)),I},k.prototype._encodeChoice=function(A,P){const M=this._baseState,z=M.choice[A.type];return z||E(!1,A.type+" not found in "+JSON.stringify(Object.keys(M.choice))),z._encode(A.value,P)},k.prototype._encodePrimitive=function(A,P){const M=this._baseState;if(/str$/.test(A))return this._encodeStr(P,A);if("objid"===A&&M.args)return this._encodeObjid(P,M.reverseArgs[0],M.args[1]);if("objid"===A)return this._encodeObjid(P,null,null);if("gentime"===A||"utctime"===A)return this._encodeTime(P,A);if("null_"===A)return this._encodeNull();if("int"===A||"enum"===A)return this._encodeInt(P,M.args&&M.reverseArgs[0]);if("bool"===A)return this._encodeBool(P);if("objDesc"===A)return this._encodeStr(P,A);throw new Error("Unsupported tag: "+A)},k.prototype._isNumstr=function(A){return/^[0-9 ]*$/.test(A)},k.prototype._isPrintstr=function(A){return/^[A-Za-z0-9 '()+,-./:=?]*$/.test(A)}},794:(Ue,q,m)=>{"use strict";const e=m(5035);function t(E){this._reporterState={obj:null,path:[],options:E||{},errors:[]}}function _(E,s){this.path=E,this.rethrow(s)}q.b=t,t.prototype.isError=function(s){return s instanceof _},t.prototype.save=function(){const s=this._reporterState;return{obj:s.obj,pathLen:s.path.length}},t.prototype.restore=function(s){const D=this._reporterState;D.obj=s.obj,D.path=D.path.slice(0,s.pathLen)},t.prototype.enterKey=function(s){return this._reporterState.path.push(s)},t.prototype.exitKey=function(s){const D=this._reporterState;D.path=D.path.slice(0,s-1)},t.prototype.leaveKey=function(s,D,u){const k=this._reporterState;this.exitKey(s),null!==k.obj&&(k.obj[D]=u)},t.prototype.path=function(){return this._reporterState.path.join("/")},t.prototype.enterObject=function(){const s=this._reporterState,D=s.obj;return s.obj={},D},t.prototype.leaveObject=function(s){const D=this._reporterState,u=D.obj;return D.obj=s,u},t.prototype.error=function(s){let D;const u=this._reporterState,k=s instanceof _;if(D=k?s:new _(u.path.map(function(p){return"["+JSON.stringify(p)+"]"}).join(""),s.message||s,s.stack),!u.options.partial)throw D;return k||u.errors.push(D),D},t.prototype.wrapResult=function(s){const D=this._reporterState;return D.options.partial?{result:this.isError(s)?null:s,errors:D.errors}:s},e(_,Error),_.prototype.rethrow=function(s){if(this.message=s+" at: "+(this.path||"(shallow)"),Error.captureStackTrace&&Error.captureStackTrace(this,_),!this.stack)try{throw new Error(this.message)}catch(D){this.stack=D.stack}return this}},6434:(Ue,q)=>{"use strict";function m(e){const t={};return Object.keys(e).forEach(function(_){(0|_)==_&&(_|=0);const E=e[_];t[E]=_}),t}q.tagClass={0:"universal",1:"application",2:"context",3:"private"},q.tagClassByName=m(q.tagClass),q.tag={0:"end",1:"bool",2:"int",3:"bitstr",4:"octstr",5:"null_",6:"objid",7:"objDesc",8:"external",9:"real",10:"enum",11:"embed",12:"utf8str",13:"relativeOid",16:"seq",17:"set",18:"numstr",19:"printstr",20:"t61str",21:"videostr",22:"ia5str",23:"utctime",24:"gentime",25:"graphstr",26:"iso646str",27:"genstr",28:"unistr",29:"charstr",30:"bmpstr"},q.tagByName=m(q.tag)},5407:(Ue,q,m)=>{"use strict";const e=q;e._reverse=function(_){const E={};return Object.keys(_).forEach(function(s){(0|s)==s&&(s|=0);const D=_[s];E[D]=s}),E},e.der=m(6434)},110:(Ue,q,m)=>{"use strict";const e=m(5035),t=m(3439),_=m(2314).C,E=m(1598),s=m(6434);function D(S){this.enc="der",this.name=S.name,this.entity=S,this.tree=new u,this.tree._init(S.body)}function u(S){E.call(this,"der",S)}function k(S,A){let P=S.readUInt8(A);if(S.isError(P))return P;const M=s.tagClass[P>>6],z=0==(32&P);if(31==(31&P)){let W=P;for(P=0;128==(128&W);){if(W=S.readUInt8(A),S.isError(W))return W;P<<=7,P|=127&W}}else P&=31;return{cls:M,primitive:z,tag:P,tagStr:s.tag[P]}}function p(S,A,P){let M=S.readUInt8(P);if(S.isError(M))return M;if(!A&&128===M)return null;if(0==(128&M))return M;const z=127&M;if(z>4)return S.error("length octect is too long");M=0;for(let I=0;I<z;I++){M<<=8;const W=S.readUInt8(P);if(S.isError(W))return W;M|=W}return M}Ue.exports=D,D.prototype.decode=function(A,P){return _.isDecoderBuffer(A)||(A=new _(A,P)),this.tree._decode(A,P)},e(u,E),u.prototype._peekTag=function(A,P,M){if(A.isEmpty())return!1;const z=A.save(),I=k(A,'Failed to peek tag: "'+P+'"');return A.isError(I)?I:(A.restore(z),I.tag===P||I.tagStr===P||I.tagStr+"of"===P||M)},u.prototype._decodeTag=function(A,P,M){const z=k(A,'Failed to decode tag of "'+P+'"');if(A.isError(z))return z;let I=p(A,z.primitive,'Failed to get length of "'+P+'"');if(A.isError(I))return I;if(!M&&z.tag!==P&&z.tagStr!==P&&z.tagStr+"of"!==P)return A.error('Failed to match tag: "'+P+'"');if(z.primitive||null!==I)return A.skip(I,'Failed to match body of: "'+P+'"');const W=A.save(),Z=this._skipUntilEnd(A,'Failed to skip indefinite length body: "'+this.tag+'"');return A.isError(Z)?Z:(I=A.offset-W.offset,A.restore(W),A.skip(I,'Failed to match body of: "'+P+'"'))},u.prototype._skipUntilEnd=function(A,P){for(;;){const M=k(A,P);if(A.isError(M))return M;const z=p(A,M.primitive,P);if(A.isError(z))return z;let I;if(I=M.primitive||null!==z?A.skip(z):this._skipUntilEnd(A,P),A.isError(I))return I;if("end"===M.tagStr)break}},u.prototype._decodeList=function(A,P,M,z){const I=[];for(;!A.isEmpty();){const W=this._peekTag(A,"end");if(A.isError(W))return W;const Z=M.decode(A,"der",z);if(A.isError(Z)&&W)break;I.push(Z)}return I},u.prototype._decodeStr=function(A,P){if("bitstr"===P){const M=A.readUInt8();return A.isError(M)?M:{unused:M,data:A.raw()}}if("bmpstr"===P){const M=A.raw();if(M.length%2==1)return A.error("Decoding of string type: bmpstr length mismatch");let z="";for(let I=0;I<M.length/2;I++)z+=String.fromCharCode(M.readUInt16BE(2*I));return z}if("numstr"===P){const M=A.raw().toString("ascii");return this._isNumstr(M)?M:A.error("Decoding of string type: numstr unsupported characters")}if("octstr"===P)return A.raw();if("objDesc"===P)return A.raw();if("printstr"===P){const M=A.raw().toString("ascii");return this._isPrintstr(M)?M:A.error("Decoding of string type: printstr unsupported characters")}return/str$/.test(P)?A.raw().toString():A.error("Decoding of string type: "+P+" unsupported")},u.prototype._decodeObjid=function(A,P,M){let z;const I=[];let W=0,Z=0;for(;!A.isEmpty();)Z=A.readUInt8(),W<<=7,W|=127&Z,0==(128&Z)&&(I.push(W),W=0);128&Z&&I.push(W);const Q=I[0]/40|0,ie=I[0]%40;if(z=M?I:[Q,ie].concat(I.slice(1)),P){let ae=P[z.join(" ")];void 0===ae&&(ae=P[z.join(".")]),void 0!==ae&&(z=ae)}return z},u.prototype._decodeTime=function(A,P){const M=A.raw().toString();let z,I,W,Z,Q,ie;if("gentime"===P)z=0|M.slice(0,4),I=0|M.slice(4,6),W=0|M.slice(6,8),Z=0|M.slice(8,10),Q=0|M.slice(10,12),ie=0|M.slice(12,14);else{if("utctime"!==P)return A.error("Decoding "+P+" time is not supported yet");z=0|M.slice(0,2),I=0|M.slice(2,4),W=0|M.slice(4,6),Z=0|M.slice(6,8),Q=0|M.slice(8,10),ie=0|M.slice(10,12),z=z<70?2e3+z:1900+z}return Date.UTC(z,I-1,W,Z,Q,ie,0)},u.prototype._decodeNull=function(){return null},u.prototype._decodeBool=function(A){const P=A.readUInt8();return A.isError(P)?P:0!==P},u.prototype._decodeInt=function(A,P){const M=A.raw();let z=new t(M);return P&&(z=P[z.toString(10)]||z),z},u.prototype._use=function(A,P){return"function"==typeof A&&(A=A(P)),A._getDecoder("der").tree}},8643:(Ue,q,m)=>{"use strict";const e=q;e.der=m(110),e.pem=m(7441)},7441:(Ue,q,m)=>{"use strict";const e=m(5035),t=m(4421).Buffer,_=m(110);function E(s){_.call(this,s),this.enc="pem"}e(E,_),Ue.exports=E,E.prototype.decode=function(D,u){const k=D.toString().split(/[\r\n]+/g),p=u.label.toUpperCase(),S=/^-----(BEGIN|END) ([^-]+)-----$/;let A=-1,P=-1;for(let I=0;I<k.length;I++){const W=k[I].match(S);if(null!==W&&W[2]===p){if(-1!==A){if("END"!==W[1])break;P=I;break}if("BEGIN"!==W[1])break;A=I}}if(-1===A||-1===P)throw new Error("PEM section not found for: "+p);const M=k.slice(A+1,P).join("");M.replace(/[^a-z0-9+/=]+/gi,"");const z=t.from(M,"base64");return _.prototype.decode.call(this,z,u)}},2035:(Ue,q,m)=>{"use strict";const e=m(5035),t=m(4421).Buffer,_=m(1598),E=m(6434);function s(p){this.enc="der",this.name=p.name,this.entity=p,this.tree=new D,this.tree._init(p.body)}function D(p){_.call(this,"der",p)}function u(p){return p<10?"0"+p:p}Ue.exports=s,s.prototype.encode=function(S,A){return this.tree._encode(S,A).join()},e(D,_),D.prototype._encodeComposite=function(S,A,P,M){const z=function k(p,S,A,P){let M;if("seqof"===p?p="seq":"setof"===p&&(p="set"),E.tagByName.hasOwnProperty(p))M=E.tagByName[p];else{if("number"!=typeof p||(0|p)!==p)return P.error("Unknown tag: "+p);M=p}return M>=31?P.error("Multi-octet tag encoding unsupported"):(S||(M|=32),M|=E.tagClassByName[A||"universal"]<<6,M)}(S,A,P,this.reporter);if(M.length<128){const Z=t.alloc(2);return Z[0]=z,Z[1]=M.length,this._createEncoderBuffer([Z,M])}let I=1;for(let Z=M.length;Z>=256;Z>>=8)I++;const W=t.alloc(2+I);W[0]=z,W[1]=128|I;for(let Z=1+I,Q=M.length;Q>0;Z--,Q>>=8)W[Z]=255&Q;return this._createEncoderBuffer([W,M])},D.prototype._encodeStr=function(S,A){if("bitstr"===A)return this._createEncoderBuffer([0|S.unused,S.data]);if("bmpstr"===A){const P=t.alloc(2*S.length);for(let M=0;M<S.length;M++)P.writeUInt16BE(S.charCodeAt(M),2*M);return this._createEncoderBuffer(P)}return"numstr"===A?this._isNumstr(S)?this._createEncoderBuffer(S):this.reporter.error("Encoding of string type: numstr supports only digits and space"):"printstr"===A?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(A)||"objDesc"===A?this._createEncoderBuffer(S):this.reporter.error("Encoding of string type: "+A+" unsupported")},D.prototype._encodeObjid=function(S,A,P){if("string"==typeof S){if(!A)return this.reporter.error("string objid given, but no values map found");if(!A.hasOwnProperty(S))return this.reporter.error("objid not found in values map");S=A[S].split(/[\s.]+/g);for(let W=0;W<S.length;W++)S[W]|=0}else if(Array.isArray(S)){S=S.slice();for(let W=0;W<S.length;W++)S[W]|=0}if(!Array.isArray(S))return this.reporter.error("objid() should be either array or string, got: "+JSON.stringify(S));if(!P){if(S[1]>=40)return this.reporter.error("Second objid identifier OOB");S.splice(0,2,40*S[0]+S[1])}let M=0;for(let W=0;W<S.length;W++){let Z=S[W];for(M++;Z>=128;Z>>=7)M++}const z=t.alloc(M);let I=z.length-1;for(let W=S.length-1;W>=0;W--){let Z=S[W];for(z[I--]=127&Z;(Z>>=7)>0;)z[I--]=128|127&Z}return this._createEncoderBuffer(z)},D.prototype._encodeTime=function(S,A){let P;const M=new Date(S);return"gentime"===A?P=[u(M.getUTCFullYear()),u(M.getUTCMonth()+1),u(M.getUTCDate()),u(M.getUTCHours()),u(M.getUTCMinutes()),u(M.getUTCSeconds()),"Z"].join(""):"utctime"===A?P=[u(M.getUTCFullYear()%100),u(M.getUTCMonth()+1),u(M.getUTCDate()),u(M.getUTCHours()),u(M.getUTCMinutes()),u(M.getUTCSeconds()),"Z"].join(""):this.reporter.error("Encoding "+A+" time is not supported yet"),this._encodeStr(P,"octstr")},D.prototype._encodeNull=function(){return this._createEncoderBuffer("")},D.prototype._encodeInt=function(S,A){if("string"==typeof S){if(!A)return this.reporter.error("String int or enum given, but no values map");if(!A.hasOwnProperty(S))return this.reporter.error("Values map doesn't contain: "+JSON.stringify(S));S=A[S]}if("number"!=typeof S&&!t.isBuffer(S)){const z=S.toArray();!S.sign&&128&z[0]&&z.unshift(0),S=t.from(z)}if(t.isBuffer(S)){let z=S.length;0===S.length&&z++;const I=t.alloc(z);return S.copy(I),0===S.length&&(I[0]=0),this._createEncoderBuffer(I)}if(S<128)return this._createEncoderBuffer(S);if(S<256)return this._createEncoderBuffer([0,S]);let P=1;for(let z=S;z>=256;z>>=8)P++;const M=new Array(P);for(let z=M.length-1;z>=0;z--)M[z]=255&S,S>>=8;return 128&M[0]&&M.unshift(0),this._createEncoderBuffer(t.from(M))},D.prototype._encodeBool=function(S){return this._createEncoderBuffer(S?255:0)},D.prototype._use=function(S,A){return"function"==typeof S&&(S=S(A)),S._getEncoder("der").tree},D.prototype._skipDefault=function(S,A,P){const M=this._baseState;let z;if(null===M.default)return!1;const I=S.join();if(void 0===M.defaultBuffer&&(M.defaultBuffer=this._encodeValue(M.default,A,P).join()),I.length!==M.defaultBuffer.length)return!1;for(z=0;z<I.length;z++)if(I[z]!==M.defaultBuffer[z])return!1;return!0}},6337:(Ue,q,m)=>{"use strict";const e=q;e.der=m(2035),e.pem=m(7294)},7294:(Ue,q,m)=>{"use strict";const e=m(5035),t=m(2035);function _(E){t.call(this,E),this.enc="pem"}e(_,t),Ue.exports=_,_.prototype.encode=function(s,D){const k=t.prototype.encode.call(this,s).toString("base64"),p=["-----BEGIN "+D.label+"-----"];for(let S=0;S<k.length;S+=64)p.push(k.slice(S,S+64));return p.push("-----END "+D.label+"-----"),p.join("\n")}},3439:function(Ue,q,m){(function(e,t){"use strict";function _(w,n){if(!w)throw new Error(n||"Assertion failed")}function E(w,n){w.super_=n;var o=function(){};o.prototype=n.prototype,w.prototype=new o,w.prototype.constructor=w}function s(w,n,o){if(s.isBN(w))return w;this.negative=0,this.words=null,this.length=0,this.red=null,null!==w&&(("le"===n||"be"===n)&&(o=n,n=10),this._init(w||0,n||10,o||"be"))}var D;"object"==typeof e?e.exports=s:t.BN=s,s.BN=s,s.wordSize=26;try{D=typeof window<"u"&&typeof window.Buffer<"u"?window.Buffer:m(950).Buffer}catch{}function u(w,n){var o=w.charCodeAt(n);return o>=65&&o<=70?o-55:o>=97&&o<=102?o-87:o-48&15}function k(w,n,o){var h=u(w,o);return o-1>=n&&(h|=u(w,o-1)<<4),h}function p(w,n,o,h){for(var d=0,y=Math.min(w.length,o),L=n;L<y;L++){var B=w.charCodeAt(L)-48;d*=h,d+=B>=49?B-49+10:B>=17?B-17+10:B}return d}s.isBN=function(n){return n instanceof s||null!==n&&"object"==typeof n&&n.constructor.wordSize===s.wordSize&&Array.isArray(n.words)},s.max=function(n,o){return n.cmp(o)>0?n:o},s.min=function(n,o){return n.cmp(o)<0?n:o},s.prototype._init=function(n,o,h){if("number"==typeof n)return this._initNumber(n,o,h);if("object"==typeof n)return this._initArray(n,o,h);"hex"===o&&(o=16),_(o===(0|o)&&o>=2&&o<=36);var d=0;"-"===(n=n.toString().replace(/\s+/g,""))[0]&&(d++,this.negative=1),d<n.length&&(16===o?this._parseHex(n,d,h):(this._parseBase(n,o,d),"le"===h&&this._initArray(this.toArray(),o,h)))},s.prototype._initNumber=function(n,o,h){n<0&&(this.negative=1,n=-n),n<67108864?(this.words=[67108863&n],this.length=1):n<4503599627370496?(this.words=[67108863&n,n/67108864&67108863],this.length=2):(_(n<9007199254740992),this.words=[67108863&n,n/67108864&67108863,1],this.length=3),"le"===h&&this._initArray(this.toArray(),o,h)},s.prototype._initArray=function(n,o,h){if(_("number"==typeof n.length),n.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(n.length/3),this.words=new Array(this.length);for(var d=0;d<this.length;d++)this.words[d]=0;var y,L,B=0;if("be"===h)for(d=n.length-1,y=0;d>=0;d-=3)L=n[d]|n[d-1]<<8|n[d-2]<<16,this.words[y]|=L<<B&67108863,this.words[y+1]=L>>>26-B&67108863,(B+=24)>=26&&(B-=26,y++);else if("le"===h)for(d=0,y=0;d<n.length;d+=3)L=n[d]|n[d+1]<<8|n[d+2]<<16,this.words[y]|=L<<B&67108863,this.words[y+1]=L>>>26-B&67108863,(B+=24)>=26&&(B-=26,y++);return this.strip()},s.prototype._parseHex=function(n,o,h){this.length=Math.ceil((n.length-o)/6),this.words=new Array(this.length);for(var d=0;d<this.length;d++)this.words[d]=0;var B,y=0,L=0;if("be"===h)for(d=n.length-1;d>=o;d-=2)B=k(n,o,d)<<y,this.words[L]|=67108863&B,y>=18?(y-=18,L+=1,this.words[L]|=B>>>26):y+=8;else for(d=(n.length-o)%2==0?o+1:o;d<n.length;d+=2)B=k(n,o,d)<<y,this.words[L]|=67108863&B,y>=18?(y-=18,L+=1,this.words[L]|=B>>>26):y+=8;this.strip()},s.prototype._parseBase=function(n,o,h){this.words=[0],this.length=1;for(var d=0,y=1;y<=67108863;y*=o)d++;d--,y=y/o|0;for(var L=n.length-h,B=L%d,v=Math.min(L,L-B)+h,a=0,C=h;C<v;C+=d)a=p(n,C,C+d,o),this.imuln(y),this.words[0]+a<67108864?this.words[0]+=a:this._iaddn(a);if(0!==B){var N=1;for(a=p(n,C,n.length,o),C=0;C<B;C++)N*=o;this.imuln(N),this.words[0]+a<67108864?this.words[0]+=a:this._iaddn(a)}this.strip()},s.prototype.copy=function(n){n.words=new Array(this.length);for(var o=0;o<this.length;o++)n.words[o]=this.words[o];n.length=this.length,n.negative=this.negative,n.red=this.red},s.prototype.clone=function(){var n=new s(null);return this.copy(n),n},s.prototype._expand=function(n){for(;this.length<n;)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"],A=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],P=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];function z(w,n,o){o.negative=n.negative^w.negative;var h=w.length+n.length|0;o.length=h,h=h-1|0;var d=0|w.words[0],y=0|n.words[0],L=d*y,B=67108863&L,v=L/67108864|0;o.words[0]=B;for(var a=1;a<h;a++){for(var C=v>>>26,N=67108863&v,F=Math.min(a,n.length-1),X=Math.max(0,a-w.length+1);X<=F;X++){var Fe=a-X|0;C+=(L=(d=0|w.words[Fe])*(y=0|n.words[X])+N)/67108864|0,N=67108863&L}o.words[a]=0|N,v=0|C}return 0!==v?o.words[a]=0|v:o.length--,o.strip()}s.prototype.toString=function(n,o){var h;if(o=0|o||1,16===(n=n||10)||"hex"===n){h="";for(var d=0,y=0,L=0;L<this.length;L++){var B=this.words[L],v=(16777215&(B<<d|y)).toString(16);h=0!==(y=B>>>24-d&16777215)||L!==this.length-1?S[6-v.length]+v+h:v+h,(d+=2)>=26&&(d-=26,L--)}for(0!==y&&(h=y.toString(16)+h);h.length%o!=0;)h="0"+h;return 0!==this.negative&&(h="-"+h),h}if(n===(0|n)&&n>=2&&n<=36){var a=A[n],C=P[n];h="";var N=this.clone();for(N.negative=0;!N.isZero();){var F=N.modn(C).toString(n);h=(N=N.idivn(C)).isZero()?F+h:S[a-F.length]+F+h}for(this.isZero()&&(h="0"+h);h.length%o!=0;)h="0"+h;return 0!==this.negative&&(h="-"+h),h}_(!1,"Base should be between 2 and 36")},s.prototype.toNumber=function(){var n=this.words[0];return 2===this.length?n+=67108864*this.words[1]:3===this.length&&1===this.words[2]?n+=4503599627370496+67108864*this.words[1]:this.length>2&&_(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-n:n},s.prototype.toJSON=function(){return this.toString(16)},s.prototype.toBuffer=function(n,o){return _(typeof D<"u"),this.toArrayLike(D,n,o)},s.prototype.toArray=function(n,o){return this.toArrayLike(Array,n,o)},s.prototype.toArrayLike=function(n,o,h){var d=this.byteLength(),y=h||Math.max(1,d);_(d<=y,"byte array longer than desired length"),_(y>0,"Requested array length <= 0"),this.strip();var v,a,L="le"===o,B=new n(y),C=this.clone();if(L){for(a=0;!C.isZero();a++)v=C.andln(255),C.iushrn(8),B[a]=v;for(;a<y;a++)B[a]=0}else{for(a=0;a<y-d;a++)B[a]=0;for(a=0;!C.isZero();a++)v=C.andln(255),C.iushrn(8),B[y-a-1]=v}return B},Math.clz32?s.prototype._countBits=function(n){return 32-Math.clz32(n)}:s.prototype._countBits=function(n){var o=n,h=0;return o>=4096&&(h+=13,o>>>=13),o>=64&&(h+=7,o>>>=7),o>=8&&(h+=4,o>>>=4),o>=2&&(h+=2,o>>>=2),h+o},s.prototype._zeroBits=function(n){if(0===n)return 26;var o=n,h=0;return 0==(8191&o)&&(h+=13,o>>>=13),0==(127&o)&&(h+=7,o>>>=7),0==(15&o)&&(h+=4,o>>>=4),0==(3&o)&&(h+=2,o>>>=2),0==(1&o)&&h++,h},s.prototype.bitLength=function(){var n=this.words[this.length-1],o=this._countBits(n);return 26*(this.length-1)+o},s.prototype.zeroBits=function(){if(this.isZero())return 0;for(var n=0,o=0;o<this.length;o++){var h=this._zeroBits(this.words[o]);if(n+=h,26!==h)break}return n},s.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},s.prototype.toTwos=function(n){return 0!==this.negative?this.abs().inotn(n).iaddn(1):this.clone()},s.prototype.fromTwos=function(n){return this.testn(n-1)?this.notn(n).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(n){for(;this.length<n.length;)this.words[this.length++]=0;for(var o=0;o<n.length;o++)this.words[o]=this.words[o]|n.words[o];return this.strip()},s.prototype.ior=function(n){return _(0==(this.negative|n.negative)),this.iuor(n)},s.prototype.or=function(n){return this.length>n.length?this.clone().ior(n):n.clone().ior(this)},s.prototype.uor=function(n){return this.length>n.length?this.clone().iuor(n):n.clone().iuor(this)},s.prototype.iuand=function(n){var o;o=this.length>n.length?n:this;for(var h=0;h<o.length;h++)this.words[h]=this.words[h]&n.words[h];return this.length=o.length,this.strip()},s.prototype.iand=function(n){return _(0==(this.negative|n.negative)),this.iuand(n)},s.prototype.and=function(n){return this.length>n.length?this.clone().iand(n):n.clone().iand(this)},s.prototype.uand=function(n){return this.length>n.length?this.clone().iuand(n):n.clone().iuand(this)},s.prototype.iuxor=function(n){var o,h;this.length>n.length?(o=this,h=n):(o=n,h=this);for(var d=0;d<h.length;d++)this.words[d]=o.words[d]^h.words[d];if(this!==o)for(;d<o.length;d++)this.words[d]=o.words[d];return this.length=o.length,this.strip()},s.prototype.ixor=function(n){return _(0==(this.negative|n.negative)),this.iuxor(n)},s.prototype.xor=function(n){return this.length>n.length?this.clone().ixor(n):n.clone().ixor(this)},s.prototype.uxor=function(n){return this.length>n.length?this.clone().iuxor(n):n.clone().iuxor(this)},s.prototype.inotn=function(n){_("number"==typeof n&&n>=0);var o=0|Math.ceil(n/26),h=n%26;this._expand(o),h>0&&o--;for(var d=0;d<o;d++)this.words[d]=67108863&~this.words[d];return h>0&&(this.words[d]=~this.words[d]&67108863>>26-h),this.strip()},s.prototype.notn=function(n){return this.clone().inotn(n)},s.prototype.setn=function(n,o){_("number"==typeof n&&n>=0);var h=n/26|0,d=n%26;return this._expand(h+1),this.words[h]=o?this.words[h]|1<<d:this.words[h]&~(1<<d),this.strip()},s.prototype.iadd=function(n){var o,h,d;if(0!==this.negative&&0===n.negative)return this.negative=0,o=this.isub(n),this.negative^=1,this._normSign();if(0===this.negative&&0!==n.negative)return n.negative=0,o=this.isub(n),n.negative=1,o._normSign();this.length>n.length?(h=this,d=n):(h=n,d=this);for(var y=0,L=0;L<d.length;L++)o=(0|h.words[L])+(0|d.words[L])+y,this.words[L]=67108863&o,y=o>>>26;for(;0!==y&&L<h.length;L++)o=(0|h.words[L])+y,this.words[L]=67108863&o,y=o>>>26;if(this.length=h.length,0!==y)this.words[this.length]=y,this.length++;else if(h!==this)for(;L<h.length;L++)this.words[L]=h.words[L];return this},s.prototype.add=function(n){var o;return 0!==n.negative&&0===this.negative?(n.negative=0,o=this.sub(n),n.negative^=1,o):0===n.negative&&0!==this.negative?(this.negative=0,o=n.sub(this),this.negative=1,o):this.length>n.length?this.clone().iadd(n):n.clone().iadd(this)},s.prototype.isub=function(n){if(0!==n.negative){n.negative=0;var o=this.iadd(n);return n.negative=1,o._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(n),this.negative=1,this._normSign();var d,y,h=this.cmp(n);if(0===h)return this.negative=0,this.length=1,this.words[0]=0,this;h>0?(d=this,y=n):(d=n,y=this);for(var L=0,B=0;B<y.length;B++)L=(o=(0|d.words[B])-(0|y.words[B])+L)>>26,this.words[B]=67108863&o;for(;0!==L&&B<d.length;B++)L=(o=(0|d.words[B])+L)>>26,this.words[B]=67108863&o;if(0===L&&B<d.length&&d!==this)for(;B<d.length;B++)this.words[B]=d.words[B];return this.length=Math.max(this.length,B),d!==this&&(this.negative=1),this.strip()},s.prototype.sub=function(n){return this.clone().isub(n)};var I=function(n,o,h){var v,a,C,d=n.words,y=o.words,L=h.words,B=0,N=0|d[0],F=8191&N,X=N>>>13,Fe=0|d[1],ke=8191&Fe,Ke=Fe>>>13,je=0|d[2],Ve=8191&je,xe=je>>>13,Ze=0|d[3],Ie=8191&Ze,ve=Ze>>>13,et=0|d[4],ht=8191&et,Le=et>>>13,Ae=0|d[5],te=8191&Ae,pe=Ae>>>13,ee=0|d[6],H=8191&ee,j=ee>>>13,Oe=0|d[7],Re=8191&Oe,le=Oe>>>13,_t=0|d[8],it=8191&_t,Ct=_t>>>13,un=0|d[9],Bt=8191&un,Ut=un>>>13,yn=0|y[0],Xt=8191&yn,Gt=yn>>>13,In=0|y[1],rn=8191&In,tn=In>>>13,pn=0|y[2],tt=8191&pn,vt=pn>>>13,dt=0|y[3],se=8191&dt,J=dt>>>13,oe=0|y[4],De=8191&oe,Ye=oe>>>13,Dt=0|y[5],ut=8191&Dt,ze=Dt>>>13,Me=0|y[6],Ce=8191&Me,Je=Me>>>13,zt=0|y[7],At=8191&zt,Tt=zt>>>13,Ht=0|y[8],He=8191&Ht,$e=Ht>>>13,$t=0|y[9],Rt=8191&$t,Jt=$t>>>13;h.negative=n.negative^o.negative,h.length=19;var Vn=(B+(v=Math.imul(F,Xt))|0)+((8191&(a=(a=Math.imul(F,Gt))+Math.imul(X,Xt)|0))<<13)|0;B=((C=Math.imul(X,Gt))+(a>>>13)|0)+(Vn>>>26)|0,Vn&=67108863,v=Math.imul(ke,Xt),a=(a=Math.imul(ke,Gt))+Math.imul(Ke,Xt)|0,C=Math.imul(Ke,Gt);var zn=(B+(v=v+Math.imul(F,rn)|0)|0)+((8191&(a=(a=a+Math.imul(F,tn)|0)+Math.imul(X,rn)|0))<<13)|0;B=((C=C+Math.imul(X,tn)|0)+(a>>>13)|0)+(zn>>>26)|0,zn&=67108863,v=Math.imul(Ve,Xt),a=(a=Math.imul(Ve,Gt))+Math.imul(xe,Xt)|0,C=Math.imul(xe,Gt),v=v+Math.imul(ke,rn)|0,a=(a=a+Math.imul(ke,tn)|0)+Math.imul(Ke,rn)|0,C=C+Math.imul(Ke,tn)|0;var Tn=(B+(v=v+Math.imul(F,tt)|0)|0)+((8191&(a=(a=a+Math.imul(F,vt)|0)+Math.imul(X,tt)|0))<<13)|0;B=((C=C+Math.imul(X,vt)|0)+(a>>>13)|0)+(Tn>>>26)|0,Tn&=67108863,v=Math.imul(Ie,Xt),a=(a=Math.imul(Ie,Gt))+Math.imul(ve,Xt)|0,C=Math.imul(ve,Gt),v=v+Math.imul(Ve,rn)|0,a=(a=a+Math.imul(Ve,tn)|0)+Math.imul(xe,rn)|0,C=C+Math.imul(xe,tn)|0,v=v+Math.imul(ke,tt)|0,a=(a=a+Math.imul(ke,vt)|0)+Math.imul(Ke,tt)|0,C=C+Math.imul(Ke,vt)|0;var Yn=(B+(v=v+Math.imul(F,se)|0)|0)+((8191&(a=(a=a+Math.imul(F,J)|0)+Math.imul(X,se)|0))<<13)|0;B=((C=C+Math.imul(X,J)|0)+(a>>>13)|0)+(Yn>>>26)|0,Yn&=67108863,v=Math.imul(ht,Xt),a=(a=Math.imul(ht,Gt))+Math.imul(Le,Xt)|0,C=Math.imul(Le,Gt),v=v+Math.imul(Ie,rn)|0,a=(a=a+Math.imul(Ie,tn)|0)+Math.imul(ve,rn)|0,C=C+Math.imul(ve,tn)|0,v=v+Math.imul(Ve,tt)|0,a=(a=a+Math.imul(Ve,vt)|0)+Math.imul(xe,tt)|0,C=C+Math.imul(xe,vt)|0,v=v+Math.imul(ke,se)|0,a=(a=a+Math.imul(ke,J)|0)+Math.imul(Ke,se)|0,C=C+Math.imul(Ke,J)|0;var Mt=(B+(v=v+Math.imul(F,De)|0)|0)+((8191&(a=(a=a+Math.imul(F,Ye)|0)+Math.imul(X,De)|0))<<13)|0;B=((C=C+Math.imul(X,Ye)|0)+(a>>>13)|0)+(Mt>>>26)|0,Mt&=67108863,v=Math.imul(te,Xt),a=(a=Math.imul(te,Gt))+Math.imul(pe,Xt)|0,C=Math.imul(pe,Gt),v=v+Math.imul(ht,rn)|0,a=(a=a+Math.imul(ht,tn)|0)+Math.imul(Le,rn)|0,C=C+Math.imul(Le,tn)|0,v=v+Math.imul(Ie,tt)|0,a=(a=a+Math.imul(Ie,vt)|0)+Math.imul(ve,tt)|0,C=C+Math.imul(ve,vt)|0,v=v+Math.imul(Ve,se)|0,a=(a=a+Math.imul(Ve,J)|0)+Math.imul(xe,se)|0,C=C+Math.imul(xe,J)|0,v=v+Math.imul(ke,De)|0,a=(a=a+Math.imul(ke,Ye)|0)+Math.imul(Ke,De)|0,C=C+Math.imul(Ke,Ye)|0;var Ge=(B+(v=v+Math.imul(F,ut)|0)|0)+((8191&(a=(a=a+Math.imul(F,ze)|0)+Math.imul(X,ut)|0))<<13)|0;B=((C=C+Math.imul(X,ze)|0)+(a>>>13)|0)+(Ge>>>26)|0,Ge&=67108863,v=Math.imul(H,Xt),a=(a=Math.imul(H,Gt))+Math.imul(j,Xt)|0,C=Math.imul(j,Gt),v=v+Math.imul(te,rn)|0,a=(a=a+Math.imul(te,tn)|0)+Math.imul(pe,rn)|0,C=C+Math.imul(pe,tn)|0,v=v+Math.imul(ht,tt)|0,a=(a=a+Math.imul(ht,vt)|0)+Math.imul(Le,tt)|0,C=C+Math.imul(Le,vt)|0,v=v+Math.imul(Ie,se)|0,a=(a=a+Math.imul(Ie,J)|0)+Math.imul(ve,se)|0,C=C+Math.imul(ve,J)|0,v=v+Math.imul(Ve,De)|0,a=(a=a+Math.imul(Ve,Ye)|0)+Math.imul(xe,De)|0,C=C+Math.imul(xe,Ye)|0,v=v+Math.imul(ke,ut)|0,a=(a=a+Math.imul(ke,ze)|0)+Math.imul(Ke,ut)|0,C=C+Math.imul(Ke,ze)|0;var Be=(B+(v=v+Math.imul(F,Ce)|0)|0)+((8191&(a=(a=a+Math.imul(F,Je)|0)+Math.imul(X,Ce)|0))<<13)|0;B=((C=C+Math.imul(X,Je)|0)+(a>>>13)|0)+(Be>>>26)|0,Be&=67108863,v=Math.imul(Re,Xt),a=(a=Math.imul(Re,Gt))+Math.imul(le,Xt)|0,C=Math.imul(le,Gt),v=v+Math.imul(H,rn)|0,a=(a=a+Math.imul(H,tn)|0)+Math.imul(j,rn)|0,C=C+Math.imul(j,tn)|0,v=v+Math.imul(te,tt)|0,a=(a=a+Math.imul(te,vt)|0)+Math.imul(pe,tt)|0,C=C+Math.imul(pe,vt)|0,v=v+Math.imul(ht,se)|0,a=(a=a+Math.imul(ht,J)|0)+Math.imul(Le,se)|0,C=C+Math.imul(Le,J)|0,v=v+Math.imul(Ie,De)|0,a=(a=a+Math.imul(Ie,Ye)|0)+Math.imul(ve,De)|0,C=C+Math.imul(ve,Ye)|0,v=v+Math.imul(Ve,ut)|0,a=(a=a+Math.imul(Ve,ze)|0)+Math.imul(xe,ut)|0,C=C+Math.imul(xe,ze)|0,v=v+Math.imul(ke,Ce)|0,a=(a=a+Math.imul(ke,Je)|0)+Math.imul(Ke,Ce)|0,C=C+Math.imul(Ke,Je)|0;var ft=(B+(v=v+Math.imul(F,At)|0)|0)+((8191&(a=(a=a+Math.imul(F,Tt)|0)+Math.imul(X,At)|0))<<13)|0;B=((C=C+Math.imul(X,Tt)|0)+(a>>>13)|0)+(ft>>>26)|0,ft&=67108863,v=Math.imul(it,Xt),a=(a=Math.imul(it,Gt))+Math.imul(Ct,Xt)|0,C=Math.imul(Ct,Gt),v=v+Math.imul(Re,rn)|0,a=(a=a+Math.imul(Re,tn)|0)+Math.imul(le,rn)|0,C=C+Math.imul(le,tn)|0,v=v+Math.imul(H,tt)|0,a=(a=a+Math.imul(H,vt)|0)+Math.imul(j,tt)|0,C=C+Math.imul(j,vt)|0,v=v+Math.imul(te,se)|0,a=(a=a+Math.imul(te,J)|0)+Math.imul(pe,se)|0,C=C+Math.imul(pe,J)|0,v=v+Math.imul(ht,De)|0,a=(a=a+Math.imul(ht,Ye)|0)+Math.imul(Le,De)|0,C=C+Math.imul(Le,Ye)|0,v=v+Math.imul(Ie,ut)|0,a=(a=a+Math.imul(Ie,ze)|0)+Math.imul(ve,ut)|0,C=C+Math.imul(ve,ze)|0,v=v+Math.imul(Ve,Ce)|0,a=(a=a+Math.imul(Ve,Je)|0)+Math.imul(xe,Ce)|0,C=C+Math.imul(xe,Je)|0,v=v+Math.imul(ke,At)|0,a=(a=a+Math.imul(ke,Tt)|0)+Math.imul(Ke,At)|0,C=C+Math.imul(Ke,Tt)|0;var re=(B+(v=v+Math.imul(F,He)|0)|0)+((8191&(a=(a=a+Math.imul(F,$e)|0)+Math.imul(X,He)|0))<<13)|0;B=((C=C+Math.imul(X,$e)|0)+(a>>>13)|0)+(re>>>26)|0,re&=67108863,v=Math.imul(Bt,Xt),a=(a=Math.imul(Bt,Gt))+Math.imul(Ut,Xt)|0,C=Math.imul(Ut,Gt),v=v+Math.imul(it,rn)|0,a=(a=a+Math.imul(it,tn)|0)+Math.imul(Ct,rn)|0,C=C+Math.imul(Ct,tn)|0,v=v+Math.imul(Re,tt)|0,a=(a=a+Math.imul(Re,vt)|0)+Math.imul(le,tt)|0,C=C+Math.imul(le,vt)|0,v=v+Math.imul(H,se)|0,a=(a=a+Math.imul(H,J)|0)+Math.imul(j,se)|0,C=C+Math.imul(j,J)|0,v=v+Math.imul(te,De)|0,a=(a=a+Math.imul(te,Ye)|0)+Math.imul(pe,De)|0,C=C+Math.imul(pe,Ye)|0,v=v+Math.imul(ht,ut)|0,a=(a=a+Math.imul(ht,ze)|0)+Math.imul(Le,ut)|0,C=C+Math.imul(Le,ze)|0,v=v+Math.imul(Ie,Ce)|0,a=(a=a+Math.imul(Ie,Je)|0)+Math.imul(ve,Ce)|0,C=C+Math.imul(ve,Je)|0,v=v+Math.imul(Ve,At)|0,a=(a=a+Math.imul(Ve,Tt)|0)+Math.imul(xe,At)|0,C=C+Math.imul(xe,Tt)|0,v=v+Math.imul(ke,He)|0,a=(a=a+Math.imul(ke,$e)|0)+Math.imul(Ke,He)|0,C=C+Math.imul(Ke,$e)|0;var Te=(B+(v=v+Math.imul(F,Rt)|0)|0)+((8191&(a=(a=a+Math.imul(F,Jt)|0)+Math.imul(X,Rt)|0))<<13)|0;B=((C=C+Math.imul(X,Jt)|0)+(a>>>13)|0)+(Te>>>26)|0,Te&=67108863,v=Math.imul(Bt,rn),a=(a=Math.imul(Bt,tn))+Math.imul(Ut,rn)|0,C=Math.imul(Ut,tn),v=v+Math.imul(it,tt)|0,a=(a=a+Math.imul(it,vt)|0)+Math.imul(Ct,tt)|0,C=C+Math.imul(Ct,vt)|0,v=v+Math.imul(Re,se)|0,a=(a=a+Math.imul(Re,J)|0)+Math.imul(le,se)|0,C=C+Math.imul(le,J)|0,v=v+Math.imul(H,De)|0,a=(a=a+Math.imul(H,Ye)|0)+Math.imul(j,De)|0,C=C+Math.imul(j,Ye)|0,v=v+Math.imul(te,ut)|0,a=(a=a+Math.imul(te,ze)|0)+Math.imul(pe,ut)|0,C=C+Math.imul(pe,ze)|0,v=v+Math.imul(ht,Ce)|0,a=(a=a+Math.imul(ht,Je)|0)+Math.imul(Le,Ce)|0,C=C+Math.imul(Le,Je)|0,v=v+Math.imul(Ie,At)|0,a=(a=a+Math.imul(Ie,Tt)|0)+Math.imul(ve,At)|0,C=C+Math.imul(ve,Tt)|0,v=v+Math.imul(Ve,He)|0,a=(a=a+Math.imul(Ve,$e)|0)+Math.imul(xe,He)|0,C=C+Math.imul(xe,$e)|0;var pt=(B+(v=v+Math.imul(ke,Rt)|0)|0)+((8191&(a=(a=a+Math.imul(ke,Jt)|0)+Math.imul(Ke,Rt)|0))<<13)|0;B=((C=C+Math.imul(Ke,Jt)|0)+(a>>>13)|0)+(pt>>>26)|0,pt&=67108863,v=Math.imul(Bt,tt),a=(a=Math.imul(Bt,vt))+Math.imul(Ut,tt)|0,C=Math.imul(Ut,vt),v=v+Math.imul(it,se)|0,a=(a=a+Math.imul(it,J)|0)+Math.imul(Ct,se)|0,C=C+Math.imul(Ct,J)|0,v=v+Math.imul(Re,De)|0,a=(a=a+Math.imul(Re,Ye)|0)+Math.imul(le,De)|0,C=C+Math.imul(le,Ye)|0,v=v+Math.imul(H,ut)|0,a=(a=a+Math.imul(H,ze)|0)+Math.imul(j,ut)|0,C=C+Math.imul(j,ze)|0,v=v+Math.imul(te,Ce)|0,a=(a=a+Math.imul(te,Je)|0)+Math.imul(pe,Ce)|0,C=C+Math.imul(pe,Je)|0,v=v+Math.imul(ht,At)|0,a=(a=a+Math.imul(ht,Tt)|0)+Math.imul(Le,At)|0,C=C+Math.imul(Le,Tt)|0,v=v+Math.imul(Ie,He)|0,a=(a=a+Math.imul(Ie,$e)|0)+Math.imul(ve,He)|0,C=C+Math.imul(ve,$e)|0;var Lt=(B+(v=v+Math.imul(Ve,Rt)|0)|0)+((8191&(a=(a=a+Math.imul(Ve,Jt)|0)+Math.imul(xe,Rt)|0))<<13)|0;B=((C=C+Math.imul(xe,Jt)|0)+(a>>>13)|0)+(Lt>>>26)|0,Lt&=67108863,v=Math.imul(Bt,se),a=(a=Math.imul(Bt,J))+Math.imul(Ut,se)|0,C=Math.imul(Ut,J),v=v+Math.imul(it,De)|0,a=(a=a+Math.imul(it,Ye)|0)+Math.imul(Ct,De)|0,C=C+Math.imul(Ct,Ye)|0,v=v+Math.imul(Re,ut)|0,a=(a=a+Math.imul(Re,ze)|0)+Math.imul(le,ut)|0,C=C+Math.imul(le,ze)|0,v=v+Math.imul(H,Ce)|0,a=(a=a+Math.imul(H,Je)|0)+Math.imul(j,Ce)|0,C=C+Math.imul(j,Je)|0,v=v+Math.imul(te,At)|0,a=(a=a+Math.imul(te,Tt)|0)+Math.imul(pe,At)|0,C=C+Math.imul(pe,Tt)|0,v=v+Math.imul(ht,He)|0,a=(a=a+Math.imul(ht,$e)|0)+Math.imul(Le,He)|0,C=C+Math.imul(Le,$e)|0;var nn=(B+(v=v+Math.imul(Ie,Rt)|0)|0)+((8191&(a=(a=a+Math.imul(Ie,Jt)|0)+Math.imul(ve,Rt)|0))<<13)|0;B=((C=C+Math.imul(ve,Jt)|0)+(a>>>13)|0)+(nn>>>26)|0,nn&=67108863,v=Math.imul(Bt,De),a=(a=Math.imul(Bt,Ye))+Math.imul(Ut,De)|0,C=Math.imul(Ut,Ye),v=v+Math.imul(it,ut)|0,a=(a=a+Math.imul(it,ze)|0)+Math.imul(Ct,ut)|0,C=C+Math.imul(Ct,ze)|0,v=v+Math.imul(Re,Ce)|0,a=(a=a+Math.imul(Re,Je)|0)+Math.imul(le,Ce)|0,C=C+Math.imul(le,Je)|0,v=v+Math.imul(H,At)|0,a=(a=a+Math.imul(H,Tt)|0)+Math.imul(j,At)|0,C=C+Math.imul(j,Tt)|0,v=v+Math.imul(te,He)|0,a=(a=a+Math.imul(te,$e)|0)+Math.imul(pe,He)|0,C=C+Math.imul(pe,$e)|0;var Bn=(B+(v=v+Math.imul(ht,Rt)|0)|0)+((8191&(a=(a=a+Math.imul(ht,Jt)|0)+Math.imul(Le,Rt)|0))<<13)|0;B=((C=C+Math.imul(Le,Jt)|0)+(a>>>13)|0)+(Bn>>>26)|0,Bn&=67108863,v=Math.imul(Bt,ut),a=(a=Math.imul(Bt,ze))+Math.imul(Ut,ut)|0,C=Math.imul(Ut,ze),v=v+Math.imul(it,Ce)|0,a=(a=a+Math.imul(it,Je)|0)+Math.imul(Ct,Ce)|0,C=C+Math.imul(Ct,Je)|0,v=v+Math.imul(Re,At)|0,a=(a=a+Math.imul(Re,Tt)|0)+Math.imul(le,At)|0,C=C+Math.imul(le,Tt)|0,v=v+Math.imul(H,He)|0,a=(a=a+Math.imul(H,$e)|0)+Math.imul(j,He)|0,C=C+Math.imul(j,$e)|0;var Wn=(B+(v=v+Math.imul(te,Rt)|0)|0)+((8191&(a=(a=a+Math.imul(te,Jt)|0)+Math.imul(pe,Rt)|0))<<13)|0;B=((C=C+Math.imul(pe,Jt)|0)+(a>>>13)|0)+(Wn>>>26)|0,Wn&=67108863,v=Math.imul(Bt,Ce),a=(a=Math.imul(Bt,Je))+Math.imul(Ut,Ce)|0,C=Math.imul(Ut,Je),v=v+Math.imul(it,At)|0,a=(a=a+Math.imul(it,Tt)|0)+Math.imul(Ct,At)|0,C=C+Math.imul(Ct,Tt)|0,v=v+Math.imul(Re,He)|0,a=(a=a+Math.imul(Re,$e)|0)+Math.imul(le,He)|0,C=C+Math.imul(le,$e)|0;var ti=(B+(v=v+Math.imul(H,Rt)|0)|0)+((8191&(a=(a=a+Math.imul(H,Jt)|0)+Math.imul(j,Rt)|0))<<13)|0;B=((C=C+Math.imul(j,Jt)|0)+(a>>>13)|0)+(ti>>>26)|0,ti&=67108863,v=Math.imul(Bt,At),a=(a=Math.imul(Bt,Tt))+Math.imul(Ut,At)|0,C=Math.imul(Ut,Tt),v=v+Math.imul(it,He)|0,a=(a=a+Math.imul(it,$e)|0)+Math.imul(Ct,He)|0,C=C+Math.imul(Ct,$e)|0;var Mn=(B+(v=v+Math.imul(Re,Rt)|0)|0)+((8191&(a=(a=a+Math.imul(Re,Jt)|0)+Math.imul(le,Rt)|0))<<13)|0;B=((C=C+Math.imul(le,Jt)|0)+(a>>>13)|0)+(Mn>>>26)|0,Mn&=67108863,v=Math.imul(Bt,He),a=(a=Math.imul(Bt,$e))+Math.imul(Ut,He)|0,C=Math.imul(Ut,$e);var Ln=(B+(v=v+Math.imul(it,Rt)|0)|0)+((8191&(a=(a=a+Math.imul(it,Jt)|0)+Math.imul(Ct,Rt)|0))<<13)|0;B=((C=C+Math.imul(Ct,Jt)|0)+(a>>>13)|0)+(Ln>>>26)|0,Ln&=67108863;var ai=(B+(v=Math.imul(Bt,Rt))|0)+((8191&(a=(a=Math.imul(Bt,Jt))+Math.imul(Ut,Rt)|0))<<13)|0;return B=((C=Math.imul(Ut,Jt))+(a>>>13)|0)+(ai>>>26)|0,ai&=67108863,L[0]=Vn,L[1]=zn,L[2]=Tn,L[3]=Yn,L[4]=Mt,L[5]=Ge,L[6]=Be,L[7]=ft,L[8]=re,L[9]=Te,L[10]=pt,L[11]=Lt,L[12]=nn,L[13]=Bn,L[14]=Wn,L[15]=ti,L[16]=Mn,L[17]=Ln,L[18]=ai,0!==B&&(L[19]=B,h.length++),h};function Z(w,n,o){return(new Q).mulp(w,n,o)}function Q(w,n){this.x=w,this.y=n}Math.imul||(I=z),s.prototype.mulTo=function(n,o){var h,d=this.length+n.length;return h=10===this.length&&10===n.length?I(this,n,o):d<63?z(this,n,o):d<1024?function W(w,n,o){o.negative=n.negative^w.negative,o.length=w.length+n.length;for(var h=0,d=0,y=0;y<o.length-1;y++){var L=d;d=0;for(var B=67108863&h,v=Math.min(y,n.length-1),a=Math.max(0,y-w.length+1);a<=v;a++){var C=y-a,X=(0|w.words[C])*(0|n.words[a]),Fe=67108863&X;B=67108863&(Fe=Fe+B|0),d+=(L=(L=L+(X/67108864|0)|0)+(Fe>>>26)|0)>>>26,L&=67108863}o.words[y]=B,h=L,L=d}return 0!==h?o.words[y]=h:o.length--,o.strip()}(this,n,o):Z(this,n,o),h},Q.prototype.makeRBT=function(n){for(var o=new Array(n),h=s.prototype._countBits(n)-1,d=0;d<n;d++)o[d]=this.revBin(d,h,n);return o},Q.prototype.revBin=function(n,o,h){if(0===n||n===h-1)return n;for(var d=0,y=0;y<o;y++)d|=(1&n)<<o-y-1,n>>=1;return d},Q.prototype.permute=function(n,o,h,d,y,L){for(var B=0;B<L;B++)d[B]=o[n[B]],y[B]=h[n[B]]},Q.prototype.transform=function(n,o,h,d,y,L){this.permute(L,n,o,h,d,y);for(var B=1;B<y;B<<=1)for(var v=B<<1,a=Math.cos(2*Math.PI/v),C=Math.sin(2*Math.PI/v),N=0;N<y;N+=v)for(var F=a,X=C,Fe=0;Fe<B;Fe++){var ke=h[N+Fe],Ke=d[N+Fe],je=h[N+Fe+B],Ve=d[N+Fe+B],xe=F*je-X*Ve;Ve=F*Ve+X*je,je=xe,h[N+Fe]=ke+je,d[N+Fe]=Ke+Ve,h[N+Fe+B]=ke-je,d[N+Fe+B]=Ke-Ve,Fe!==v&&(xe=a*F-C*X,X=a*X+C*F,F=xe)}},Q.prototype.guessLen13b=function(n,o){var h=1|Math.max(o,n),d=1&h,y=0;for(h=h/2|0;h;h>>>=1)y++;return 1<<y+1+d},Q.prototype.conjugate=function(n,o,h){if(!(h<=1))for(var d=0;d<h/2;d++){var y=n[d];n[d]=n[h-d-1],n[h-d-1]=y,y=o[d],o[d]=-o[h-d-1],o[h-d-1]=-y}},Q.prototype.normalize13b=function(n,o){for(var h=0,d=0;d<o/2;d++){var y=8192*Math.round(n[2*d+1]/o)+Math.round(n[2*d]/o)+h;n[d]=67108863&y,h=y<67108864?0:y/67108864|0}return n},Q.prototype.convert13b=function(n,o,h,d){for(var y=0,L=0;L<o;L++)y+=0|n[L],h[2*L]=8191&y,y>>>=13,h[2*L+1]=8191&y,y>>>=13;for(L=2*o;L<d;++L)h[L]=0;_(0===y),_(0==(-8192&y))},Q.prototype.stub=function(n){for(var o=new Array(n),h=0;h<n;h++)o[h]=0;return o},Q.prototype.mulp=function(n,o,h){var d=2*this.guessLen13b(n.length,o.length),y=this.makeRBT(d),L=this.stub(d),B=new Array(d),v=new Array(d),a=new Array(d),C=new Array(d),N=new Array(d),F=new Array(d),X=h.words;X.length=d,this.convert13b(n.words,n.length,B,d),this.convert13b(o.words,o.length,C,d),this.transform(B,L,v,a,d,y),this.transform(C,L,N,F,d,y);for(var Fe=0;Fe<d;Fe++){var ke=v[Fe]*N[Fe]-a[Fe]*F[Fe];a[Fe]=v[Fe]*F[Fe]+a[Fe]*N[Fe],v[Fe]=ke}return this.conjugate(v,a,d),this.transform(v,a,X,L,d,y),this.conjugate(X,L,d),this.normalize13b(X,d),h.negative=n.negative^o.negative,h.length=n.length+o.length,h.strip()},s.prototype.mul=function(n){var o=new s(null);return o.words=new Array(this.length+n.length),this.mulTo(n,o)},s.prototype.mulf=function(n){var o=new s(null);return o.words=new Array(this.length+n.length),Z(this,n,o)},s.prototype.imul=function(n){return this.clone().mulTo(n,this)},s.prototype.imuln=function(n){_("number"==typeof n),_(n<67108864);for(var o=0,h=0;h<this.length;h++){var d=(0|this.words[h])*n,y=(67108863&d)+(67108863&o);o>>=26,o+=d/67108864|0,o+=y>>>26,this.words[h]=67108863&y}return 0!==o&&(this.words[h]=o,this.length++),this},s.prototype.muln=function(n){return this.clone().imuln(n)},s.prototype.sqr=function(){return this.mul(this)},s.prototype.isqr=function(){return this.imul(this.clone())},s.prototype.pow=function(n){var o=function M(w){for(var n=new Array(w.bitLength()),o=0;o<n.length;o++){var h=o/26|0,d=o%26;n[o]=(w.words[h]&1<<d)>>>d}return n}(n);if(0===o.length)return new s(1);for(var h=this,d=0;d<o.length&&0===o[d];d++,h=h.sqr());if(++d<o.length)for(var y=h.sqr();d<o.length;d++,y=y.sqr())0!==o[d]&&(h=h.mul(y));return h},s.prototype.iushln=function(n){_("number"==typeof n&&n>=0);var y,o=n%26,h=(n-o)/26,d=67108863>>>26-o<<26-o;if(0!==o){var L=0;for(y=0;y<this.length;y++){var B=this.words[y]&d,v=(0|this.words[y])-B<<o;this.words[y]=v|L,L=B>>>26-o}L&&(this.words[y]=L,this.length++)}if(0!==h){for(y=this.length-1;y>=0;y--)this.words[y+h]=this.words[y];for(y=0;y<h;y++)this.words[y]=0;this.length+=h}return this.strip()},s.prototype.ishln=function(n){return _(0===this.negative),this.iushln(n)},s.prototype.iushrn=function(n,o,h){var d;_("number"==typeof n&&n>=0),d=o?(o-o%26)/26:0;var y=n%26,L=Math.min((n-y)/26,this.length),B=67108863^67108863>>>y<<y,v=h;if(d-=L,d=Math.max(0,d),v){for(var a=0;a<L;a++)v.words[a]=this.words[a];v.length=L}if(0!==L)if(this.length>L)for(this.length-=L,a=0;a<this.length;a++)this.words[a]=this.words[a+L];else this.words[0]=0,this.length=1;var C=0;for(a=this.length-1;a>=0&&(0!==C||a>=d);a--){var N=0|this.words[a];this.words[a]=C<<26-y|N>>>y,C=N&B}return v&&0!==C&&(v.words[v.length++]=C),0===this.length&&(this.words[0]=0,this.length=1),this.strip()},s.prototype.ishrn=function(n,o,h){return _(0===this.negative),this.iushrn(n,o,h)},s.prototype.shln=function(n){return this.clone().ishln(n)},s.prototype.ushln=function(n){return this.clone().iushln(n)},s.prototype.shrn=function(n){return this.clone().ishrn(n)},s.prototype.ushrn=function(n){return this.clone().iushrn(n)},s.prototype.testn=function(n){_("number"==typeof n&&n>=0);var o=n%26,h=(n-o)/26,d=1<<o;return!(this.length<=h)&&!!(this.words[h]&d)},s.prototype.imaskn=function(n){_("number"==typeof n&&n>=0);var o=n%26,h=(n-o)/26;if(_(0===this.negative,"imaskn works only with positive numbers"),this.length<=h)return this;if(0!==o&&h++,this.length=Math.min(h,this.length),0!==o){var d=67108863^67108863>>>o<<o;this.words[this.length-1]&=d}return this.strip()},s.prototype.maskn=function(n){return this.clone().imaskn(n)},s.prototype.iaddn=function(n){return _("number"==typeof n),_(n<67108864),n<0?this.isubn(-n):0!==this.negative?1===this.length&&(0|this.words[0])<n?(this.words[0]=n-(0|this.words[0]),this.negative=0,this):(this.negative=0,this.isubn(n),this.negative=1,this):this._iaddn(n)},s.prototype._iaddn=function(n){this.words[0]+=n;for(var o=0;o<this.length&&this.words[o]>=67108864;o++)this.words[o]-=67108864,o===this.length-1?this.words[o+1]=1:this.words[o+1]++;return this.length=Math.max(this.length,o+1),this},s.prototype.isubn=function(n){if(_("number"==typeof n),_(n<67108864),n<0)return this.iaddn(-n);if(0!==this.negative)return this.negative=0,this.iaddn(n),this.negative=1,this;if(this.words[0]-=n,1===this.length&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var o=0;o<this.length&&this.words[o]<0;o++)this.words[o]+=67108864,this.words[o+1]-=1;return this.strip()},s.prototype.addn=function(n){return this.clone().iaddn(n)},s.prototype.subn=function(n){return this.clone().isubn(n)},s.prototype.iabs=function(){return this.negative=0,this},s.prototype.abs=function(){return this.clone().iabs()},s.prototype._ishlnsubmul=function(n,o,h){var y,d=n.length+h;this._expand(d);var L,B=0;for(y=0;y<n.length;y++){L=(0|this.words[y+h])+B;var v=(0|n.words[y])*o;B=((L-=67108863&v)>>26)-(v/67108864|0),this.words[y+h]=67108863&L}for(;y<this.length-h;y++)B=(L=(0|this.words[y+h])+B)>>26,this.words[y+h]=67108863&L;if(0===B)return this.strip();for(_(-1===B),B=0,y=0;y<this.length;y++)B=(L=-(0|this.words[y])+B)>>26,this.words[y]=67108863&L;return this.negative=1,this.strip()},s.prototype._wordDiv=function(n,o){var h=(this.length,n.length),d=this.clone(),y=n,L=0|y.words[y.length-1];0!==(h=26-this._countBits(L))&&(y=y.ushln(h),d.iushln(h),L=0|y.words[y.length-1]);var a,v=d.length-y.length;if("mod"!==o){(a=new s(null)).length=v+1,a.words=new Array(a.length);for(var C=0;C<a.length;C++)a.words[C]=0}var N=d.clone()._ishlnsubmul(y,1,v);0===N.negative&&(d=N,a&&(a.words[v]=1));for(var F=v-1;F>=0;F--){var X=67108864*(0|d.words[y.length+F])+(0|d.words[y.length+F-1]);for(X=Math.min(X/L|0,67108863),d._ishlnsubmul(y,X,F);0!==d.negative;)X--,d.negative=0,d._ishlnsubmul(y,1,F),d.isZero()||(d.negative^=1);a&&(a.words[F]=X)}return a&&a.strip(),d.strip(),"div"!==o&&0!==h&&d.iushrn(h),{div:a||null,mod:d}},s.prototype.divmod=function(n,o,h){return _(!n.isZero()),this.isZero()?{div:new s(0),mod:new s(0)}:0!==this.negative&&0===n.negative?(L=this.neg().divmod(n,o),"mod"!==o&&(d=L.div.neg()),"div"!==o&&(y=L.mod.neg(),h&&0!==y.negative&&y.iadd(n)),{div:d,mod:y}):0===this.negative&&0!==n.negative?(L=this.divmod(n.neg(),o),"mod"!==o&&(d=L.div.neg()),{div:d,mod:L.mod}):0!=(this.negative&n.negative)?(L=this.neg().divmod(n.neg(),o),"div"!==o&&(y=L.mod.neg(),h&&0!==y.negative&&y.isub(n)),{div:L.div,mod:y}):n.length>this.length||this.cmp(n)<0?{div:new s(0),mod:this}:1===n.length?"div"===o?{div:this.divn(n.words[0]),mod:null}:"mod"===o?{div:null,mod:new s(this.modn(n.words[0]))}:{div:this.divn(n.words[0]),mod:new s(this.modn(n.words[0]))}:this._wordDiv(n,o);var d,y,L},s.prototype.div=function(n){return this.divmod(n,"div",!1).div},s.prototype.mod=function(n){return this.divmod(n,"mod",!1).mod},s.prototype.umod=function(n){return this.divmod(n,"mod",!0).mod},s.prototype.divRound=function(n){var o=this.divmod(n);if(o.mod.isZero())return o.div;var h=0!==o.div.negative?o.mod.isub(n):o.mod,d=n.ushrn(1),y=n.andln(1),L=h.cmp(d);return L<0||1===y&&0===L?o.div:0!==o.div.negative?o.div.isubn(1):o.div.iaddn(1)},s.prototype.modn=function(n){_(n<=67108863);for(var o=(1<<26)%n,h=0,d=this.length-1;d>=0;d--)h=(o*h+(0|this.words[d]))%n;return h},s.prototype.idivn=function(n){_(n<=67108863);for(var o=0,h=this.length-1;h>=0;h--){var d=(0|this.words[h])+67108864*o;this.words[h]=d/n|0,o=d%n}return this.strip()},s.prototype.divn=function(n){return this.clone().idivn(n)},s.prototype.egcd=function(n){_(0===n.negative),_(!n.isZero());var o=this,h=n.clone();o=0!==o.negative?o.umod(n):o.clone();for(var d=new s(1),y=new s(0),L=new s(0),B=new s(1),v=0;o.isEven()&&h.isEven();)o.iushrn(1),h.iushrn(1),++v;for(var a=h.clone(),C=o.clone();!o.isZero();){for(var N=0,F=1;0==(o.words[0]&F)&&N<26;++N,F<<=1);if(N>0)for(o.iushrn(N);N-- >0;)(d.isOdd()||y.isOdd())&&(d.iadd(a),y.isub(C)),d.iushrn(1),y.iushrn(1);for(var X=0,Fe=1;0==(h.words[0]&Fe)&&X<26;++X,Fe<<=1);if(X>0)for(h.iushrn(X);X-- >0;)(L.isOdd()||B.isOdd())&&(L.iadd(a),B.isub(C)),L.iushrn(1),B.iushrn(1);o.cmp(h)>=0?(o.isub(h),d.isub(L),y.isub(B)):(h.isub(o),L.isub(d),B.isub(y))}return{a:L,b:B,gcd:h.iushln(v)}},s.prototype._invmp=function(n){_(0===n.negative),_(!n.isZero());var N,o=this,h=n.clone();o=0!==o.negative?o.umod(n):o.clone();for(var d=new s(1),y=new s(0),L=h.clone();o.cmpn(1)>0&&h.cmpn(1)>0;){for(var B=0,v=1;0==(o.words[0]&v)&&B<26;++B,v<<=1);if(B>0)for(o.iushrn(B);B-- >0;)d.isOdd()&&d.iadd(L),d.iushrn(1);for(var a=0,C=1;0==(h.words[0]&C)&&a<26;++a,C<<=1);if(a>0)for(h.iushrn(a);a-- >0;)y.isOdd()&&y.iadd(L),y.iushrn(1);o.cmp(h)>=0?(o.isub(h),d.isub(y)):(h.isub(o),y.isub(d))}return(N=0===o.cmpn(1)?d:y).cmpn(0)<0&&N.iadd(n),N},s.prototype.gcd=function(n){if(this.isZero())return n.abs();if(n.isZero())return this.abs();var o=this.clone(),h=n.clone();o.negative=0,h.negative=0;for(var d=0;o.isEven()&&h.isEven();d++)o.iushrn(1),h.iushrn(1);for(;;){for(;o.isEven();)o.iushrn(1);for(;h.isEven();)h.iushrn(1);var y=o.cmp(h);if(y<0){var L=o;o=h,h=L}else if(0===y||0===h.cmpn(1))break;o.isub(h)}return h.iushln(d)},s.prototype.invm=function(n){return this.egcd(n).a.umod(n)},s.prototype.isEven=function(){return 0==(1&this.words[0])},s.prototype.isOdd=function(){return 1==(1&this.words[0])},s.prototype.andln=function(n){return this.words[0]&n},s.prototype.bincn=function(n){_("number"==typeof n);var o=n%26,h=(n-o)/26,d=1<<o;if(this.length<=h)return this._expand(h+1),this.words[h]|=d,this;for(var y=d,L=h;0!==y&&L<this.length;L++){var B=0|this.words[L];y=(B+=y)>>>26,B&=67108863,this.words[L]=B}return 0!==y&&(this.words[L]=y,this.length++),this},s.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},s.prototype.cmpn=function(n){var h,o=n<0;if(0!==this.negative&&!o)return-1;if(0===this.negative&&o)return 1;if(this.strip(),this.length>1)h=1;else{o&&(n=-n),_(n<=67108863,"Number is too big");var d=0|this.words[0];h=d===n?0:d<n?-1:1}return 0!==this.negative?0|-h:h},s.prototype.cmp=function(n){if(0!==this.negative&&0===n.negative)return-1;if(0===this.negative&&0!==n.negative)return 1;var o=this.ucmp(n);return 0!==this.negative?0|-o:o},s.prototype.ucmp=function(n){if(this.length>n.length)return 1;if(this.length<n.length)return-1;for(var o=0,h=this.length-1;h>=0;h--){var d=0|this.words[h],y=0|n.words[h];if(d!==y){d<y?o=-1:d>y&&(o=1);break}}return o},s.prototype.gtn=function(n){return 1===this.cmpn(n)},s.prototype.gt=function(n){return 1===this.cmp(n)},s.prototype.gten=function(n){return this.cmpn(n)>=0},s.prototype.gte=function(n){return this.cmp(n)>=0},s.prototype.ltn=function(n){return-1===this.cmpn(n)},s.prototype.lt=function(n){return-1===this.cmp(n)},s.prototype.lten=function(n){return this.cmpn(n)<=0},s.prototype.lte=function(n){return this.cmp(n)<=0},s.prototype.eqn=function(n){return 0===this.cmpn(n)},s.prototype.eq=function(n){return 0===this.cmp(n)},s.red=function(n){return new $(n)},s.prototype.toRed=function(n){return _(!this.red,"Already a number in reduction context"),_(0===this.negative,"red works only with positives"),n.convertTo(this)._forceRed(n)},s.prototype.fromRed=function(){return _(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},s.prototype._forceRed=function(n){return this.red=n,this},s.prototype.forceRed=function(n){return _(!this.red,"Already a number in reduction context"),this._forceRed(n)},s.prototype.redAdd=function(n){return _(this.red,"redAdd works only with red numbers"),this.red.add(this,n)},s.prototype.redIAdd=function(n){return _(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,n)},s.prototype.redSub=function(n){return _(this.red,"redSub works only with red numbers"),this.red.sub(this,n)},s.prototype.redISub=function(n){return _(this.red,"redISub works only with red numbers"),this.red.isub(this,n)},s.prototype.redShl=function(n){return _(this.red,"redShl works only with red numbers"),this.red.shl(this,n)},s.prototype.redMul=function(n){return _(this.red,"redMul works only with red numbers"),this.red._verify2(this,n),this.red.mul(this,n)},s.prototype.redIMul=function(n){return _(this.red,"redMul works only with red numbers"),this.red._verify2(this,n),this.red.imul(this,n)},s.prototype.redSqr=function(){return _(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},s.prototype.redISqr=function(){return _(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},s.prototype.redSqrt=function(){return _(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},s.prototype.redInvm=function(){return _(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},s.prototype.redNeg=function(){return _(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},s.prototype.redPow=function(n){return _(this.red&&!n.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,n)};var ie={k256:null,p224:null,p192:null,p25519:null};function ae(w,n){this.name=w,this.p=new s(n,16),this.n=this.p.bitLength(),this.k=new s(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function _e(){ae.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function ce(){ae.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function ye(){ae.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function ue(){ae.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function $(w){if("string"==typeof w){var n=s._prime(w);this.m=n.p,this.prime=n}else _(w.gtn(1),"modulus must be greater than 1"),this.m=w,this.prime=null}function he(w){$.call(this,w),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)}ae.prototype._tmp=function(){var n=new s(null);return n.words=new Array(Math.ceil(this.n/13)),n},ae.prototype.ireduce=function(n){var h,o=n;do{this.split(o,this.tmp),h=(o=(o=this.imulK(o)).iadd(this.tmp)).bitLength()}while(h>this.n);var d=h<this.n?-1:o.ucmp(this.p);return 0===d?(o.words[0]=0,o.length=1):d>0?o.isub(this.p):void 0!==o.strip?o.strip():o._strip(),o},ae.prototype.split=function(n,o){n.iushrn(this.n,0,o)},ae.prototype.imulK=function(n){return n.imul(this.k)},E(_e,ae),_e.prototype.split=function(n,o){for(var h=4194303,d=Math.min(n.length,9),y=0;y<d;y++)o.words[y]=n.words[y];if(o.length=d,n.length<=9)return n.words[0]=0,void(n.length=1);var L=n.words[9];for(o.words[o.length++]=L&h,y=10;y<n.length;y++){var B=0|n.words[y];n.words[y-10]=(B&h)<<4|L>>>22,L=B}L>>>=22,n.words[y-10]=L,0===L&&n.length>10?n.length-=10:n.length-=9},_e.prototype.imulK=function(n){n.words[n.length]=0,n.words[n.length+1]=0,n.length+=2;for(var o=0,h=0;h<n.length;h++){var d=0|n.words[h];o+=977*d,n.words[h]=67108863&o,o=64*d+(o/67108864|0)}return 0===n.words[n.length-1]&&(n.length--,0===n.words[n.length-1]&&n.length--),n},E(ce,ae),E(ye,ae),E(ue,ae),ue.prototype.imulK=function(n){for(var o=0,h=0;h<n.length;h++){var d=19*(0|n.words[h])+o,y=67108863&d;d>>>=26,n.words[h]=y,o=d}return 0!==o&&(n.words[n.length++]=o),n},s._prime=function(n){if(ie[n])return ie[n];var o;if("k256"===n)o=new _e;else if("p224"===n)o=new ce;else if("p192"===n)o=new ye;else{if("p25519"!==n)throw new Error("Unknown prime "+n);o=new ue}return ie[n]=o,o},$.prototype._verify1=function(n){_(0===n.negative,"red works only with positives"),_(n.red,"red works only with red numbers")},$.prototype._verify2=function(n,o){_(0==(n.negative|o.negative),"red works only with positives"),_(n.red&&n.red===o.red,"red works only with red numbers")},$.prototype.imod=function(n){return this.prime?this.prime.ireduce(n)._forceRed(this):n.umod(this.m)._forceRed(this)},$.prototype.neg=function(n){return n.isZero()?n.clone():this.m.sub(n)._forceRed(this)},$.prototype.add=function(n,o){this._verify2(n,o);var h=n.add(o);return h.cmp(this.m)>=0&&h.isub(this.m),h._forceRed(this)},$.prototype.iadd=function(n,o){this._verify2(n,o);var h=n.iadd(o);return h.cmp(this.m)>=0&&h.isub(this.m),h},$.prototype.sub=function(n,o){this._verify2(n,o);var h=n.sub(o);return h.cmpn(0)<0&&h.iadd(this.m),h._forceRed(this)},$.prototype.isub=function(n,o){this._verify2(n,o);var h=n.isub(o);return h.cmpn(0)<0&&h.iadd(this.m),h},$.prototype.shl=function(n,o){return this._verify1(n),this.imod(n.ushln(o))},$.prototype.imul=function(n,o){return this._verify2(n,o),this.imod(n.imul(o))},$.prototype.mul=function(n,o){return this._verify2(n,o),this.imod(n.mul(o))},$.prototype.isqr=function(n){return this.imul(n,n.clone())},$.prototype.sqr=function(n){return this.mul(n,n)},$.prototype.sqrt=function(n){if(n.isZero())return n.clone();var o=this.m.andln(3);if(_(o%2==1),3===o){var h=this.m.add(new s(1)).iushrn(2);return this.pow(n,h)}for(var d=this.m.subn(1),y=0;!d.isZero()&&0===d.andln(1);)y++,d.iushrn(1);_(!d.isZero());var L=new s(1).toRed(this),B=L.redNeg(),v=this.m.subn(1).iushrn(1),a=this.m.bitLength();for(a=new s(2*a*a).toRed(this);0!==this.pow(a,v).cmp(B);)a.redIAdd(B);for(var C=this.pow(a,d),N=this.pow(n,d.addn(1).iushrn(1)),F=this.pow(n,d),X=y;0!==F.cmp(L);){for(var Fe=F,ke=0;0!==Fe.cmp(L);ke++)Fe=Fe.redSqr();_(ke<X);var Ke=this.pow(C,new s(1).iushln(X-ke-1));N=N.redMul(Ke),C=Ke.redSqr(),F=F.redMul(C),X=ke}return N},$.prototype.invm=function(n){var o=n._invmp(this.m);return 0!==o.negative?(o.negative=0,this.imod(o).redNeg()):this.imod(o)},$.prototype.pow=function(n,o){if(o.isZero())return new s(1).toRed(this);if(0===o.cmpn(1))return n.clone();var d=new Array(16);d[0]=new s(1).toRed(this),d[1]=n;for(var y=2;y<d.length;y++)d[y]=this.mul(d[y-1],n);var L=d[0],B=0,v=0,a=o.bitLength()%26;for(0===a&&(a=26),y=o.length-1;y>=0;y--){for(var C=o.words[y],N=a-1;N>=0;N--){var F=C>>N&1;(L!==d[0]&&(L=this.sqr(L)),0!==F||0!==B)?(B<<=1,B|=F,(4===++v||0===y&&0===N)&&(L=this.mul(L,d[B]),v=0,B=0)):v=0}a=26}return L},$.prototype.convertTo=function(n){var o=n.umod(this.m);return o===n?o.clone():o},$.prototype.convertFrom=function(n){var o=n.clone();return o.red=null,o},s.mont=function(n){return new he(n)},E(he,$),he.prototype.convertTo=function(n){return this.imod(n.ushln(this.shift))},he.prototype.convertFrom=function(n){var o=this.imod(n.mul(this.rinv));return o.red=null,o},he.prototype.imul=function(n,o){if(n.isZero()||o.isZero())return n.words[0]=0,n.length=1,n;var h=n.imul(o),d=h.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),y=h.isub(d).iushrn(this.shift),L=y;return y.cmp(this.m)>=0?L=y.isub(this.m):y.cmpn(0)<0&&(L=y.iadd(this.m)),L._forceRed(this)},he.prototype.mul=function(n,o){if(n.isZero()||o.isZero())return new s(0)._forceRed(this);var h=n.mul(o),d=h.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),y=h.isub(d).iushrn(this.shift),L=y;return y.cmp(this.m)>=0?L=y.isub(this.m):y.cmpn(0)<0&&(L=y.iadd(this.m)),L._forceRed(this)},he.prototype.invm=function(n){return this.imod(n._invmp(this.m).mul(this.r2))._forceRed(this)}})(Ue=m.nmd(Ue),this)},2173:(Ue,q)=>{"use strict";q.byteLength=function u(M){var z=D(M),I=z[0],W=z[1];return 3*(I+W)/4-W},q.toByteArray=function p(M){var z,_e,I=D(M),W=I[0],Z=I[1],Q=new t(function k(M,z,I){return 3*(z+I)/4-I}(0,W,Z)),ie=0,ae=Z>0?W-4:W;for(_e=0;_e<ae;_e+=4)z=e[M.charCodeAt(_e)]<<18|e[M.charCodeAt(_e+1)]<<12|e[M.charCodeAt(_e+2)]<<6|e[M.charCodeAt(_e+3)],Q[ie++]=z>>16&255,Q[ie++]=z>>8&255,Q[ie++]=255&z;return 2===Z&&(z=e[M.charCodeAt(_e)]<<2|e[M.charCodeAt(_e+1)]>>4,Q[ie++]=255&z),1===Z&&(z=e[M.charCodeAt(_e)]<<10|e[M.charCodeAt(_e+1)]<<4|e[M.charCodeAt(_e+2)]>>2,Q[ie++]=z>>8&255,Q[ie++]=255&z),Q},q.fromByteArray=function P(M){for(var z,I=M.length,W=I%3,Z=[],Q=16383,ie=0,ae=I-W;ie<ae;ie+=Q)Z.push(A(M,ie,ie+Q>ae?ae:ie+Q));return 1===W?(z=M[I-1],Z.push(m[z>>2]+m[z<<4&63]+"==")):2===W&&(z=(M[I-2]<<8)+M[I-1],Z.push(m[z>>10]+m[z>>4&63]+m[z<<2&63]+"=")),Z.join("")};for(var m=[],e=[],t=typeof Uint8Array<"u"?Uint8Array:Array,_="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",E=0,s=_.length;E<s;++E)m[E]=_[E],e[_.charCodeAt(E)]=E;function D(M){var z=M.length;if(z%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var I=M.indexOf("=");return-1===I&&(I=z),[I,I===z?0:4-I%4]}function S(M){return m[M>>18&63]+m[M>>12&63]+m[M>>6&63]+m[63&M]}function A(M,z,I){for(var W,Z=[],Q=z;Q<I;Q+=3)W=(M[Q]<<16&16711680)+(M[Q+1]<<8&65280)+(255&M[Q+2]),Z.push(S(W));return Z.join("")}e["-".charCodeAt(0)]=62,e["_".charCodeAt(0)]=63},6585:function(Ue,q,m){(function(e,t){"use strict";function _(h,d){if(!h)throw new Error(d||"Assertion failed")}function E(h,d){h.super_=d;var y=function(){};y.prototype=d.prototype,h.prototype=new y,h.prototype.constructor=h}function s(h,d,y){if(s.isBN(h))return h;this.negative=0,this.words=null,this.length=0,this.red=null,null!==h&&(("le"===d||"be"===d)&&(y=d,d=10),this._init(h||0,d||10,y||"be"))}var D;"object"==typeof e?e.exports=s:t.BN=s,s.BN=s,s.wordSize=26;try{D=typeof window<"u"&&typeof window.Buffer<"u"?window.Buffer:m(6601).Buffer}catch{}function u(h,d){var y=h.charCodeAt(d);return y>=48&&y<=57?y-48:y>=65&&y<=70?y-55:y>=97&&y<=102?y-87:void _(!1,"Invalid character in "+h)}function k(h,d,y){var L=u(h,y);return y-1>=d&&(L|=u(h,y-1)<<4),L}function p(h,d,y,L){for(var B=0,v=0,a=Math.min(h.length,y),C=d;C<a;C++){var N=h.charCodeAt(C)-48;B*=L,v=N>=49?N-49+10:N>=17?N-17+10:N,_(N>=0&&v<L,"Invalid character"),B+=v}return B}function S(h,d){h.words=d.words,h.length=d.length,h.negative=d.negative,h.red=d.red}if(s.isBN=function(d){return d instanceof s||null!==d&&"object"==typeof d&&d.constructor.wordSize===s.wordSize&&Array.isArray(d.words)},s.max=function(d,y){return d.cmp(y)>0?d:y},s.min=function(d,y){return d.cmp(y)<0?d:y},s.prototype._init=function(d,y,L){if("number"==typeof d)return this._initNumber(d,y,L);if("object"==typeof d)return this._initArray(d,y,L);"hex"===y&&(y=16),_(y===(0|y)&&y>=2&&y<=36);var B=0;"-"===(d=d.toString().replace(/\s+/g,""))[0]&&(B++,this.negative=1),B<d.length&&(16===y?this._parseHex(d,B,L):(this._parseBase(d,y,B),"le"===L&&this._initArray(this.toArray(),y,L)))},s.prototype._initNumber=function(d,y,L){d<0&&(this.negative=1,d=-d),d<67108864?(this.words=[67108863&d],this.length=1):d<4503599627370496?(this.words=[67108863&d,d/67108864&67108863],this.length=2):(_(d<9007199254740992),this.words=[67108863&d,d/67108864&67108863,1],this.length=3),"le"===L&&this._initArray(this.toArray(),y,L)},s.prototype._initArray=function(d,y,L){if(_("number"==typeof d.length),d.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(d.length/3),this.words=new Array(this.length);for(var B=0;B<this.length;B++)this.words[B]=0;var v,a,C=0;if("be"===L)for(B=d.length-1,v=0;B>=0;B-=3)a=d[B]|d[B-1]<<8|d[B-2]<<16,this.words[v]|=a<<C&67108863,this.words[v+1]=a>>>26-C&67108863,(C+=24)>=26&&(C-=26,v++);else if("le"===L)for(B=0,v=0;B<d.length;B+=3)a=d[B]|d[B+1]<<8|d[B+2]<<16,this.words[v]|=a<<C&67108863,this.words[v+1]=a>>>26-C&67108863,(C+=24)>=26&&(C-=26,v++);return this._strip()},s.prototype._parseHex=function(d,y,L){this.length=Math.ceil((d.length-y)/6),this.words=new Array(this.length);for(var B=0;B<this.length;B++)this.words[B]=0;var C,v=0,a=0;if("be"===L)for(B=d.length-1;B>=y;B-=2)C=k(d,y,B)<<v,this.words[a]|=67108863&C,v>=18?(v-=18,a+=1,this.words[a]|=C>>>26):v+=8;else for(B=(d.length-y)%2==0?y+1:y;B<d.length;B+=2)C=k(d,y,B)<<v,this.words[a]|=67108863&C,v>=18?(v-=18,a+=1,this.words[a]|=C>>>26):v+=8;this._strip()},s.prototype._parseBase=function(d,y,L){this.words=[0],this.length=1;for(var B=0,v=1;v<=67108863;v*=y)B++;B--,v=v/y|0;for(var a=d.length-L,C=a%B,N=Math.min(a,a-C)+L,F=0,X=L;X<N;X+=B)F=p(d,X,X+B,y),this.imuln(v),this.words[0]+F<67108864?this.words[0]+=F:this._iaddn(F);if(0!==C){var Fe=1;for(F=p(d,X,d.length,y),X=0;X<C;X++)Fe*=y;this.imuln(Fe),this.words[0]+F<67108864?this.words[0]+=F:this._iaddn(F)}this._strip()},s.prototype.copy=function(d){d.words=new Array(this.length);for(var y=0;y<this.length;y++)d.words[y]=this.words[y];d.length=this.length,d.negative=this.negative,d.red=this.red},s.prototype._move=function(d){S(d,this)},s.prototype.clone=function(){var d=new s(null);return this.copy(d),d},s.prototype._expand=function(d){for(;this.length<d;)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")]=A}catch{s.prototype.inspect=A}else s.prototype.inspect=A;function A(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"}var P=["","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"],M=[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],z=[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];s.prototype.toString=function(d,y){var L;if(y=0|y||1,16===(d=d||10)||"hex"===d){L="";for(var B=0,v=0,a=0;a<this.length;a++){var C=this.words[a],N=(16777215&(C<<B|v)).toString(16);v=C>>>24-B&16777215,(B+=2)>=26&&(B-=26,a--),L=0!==v||a!==this.length-1?P[6-N.length]+N+L:N+L}for(0!==v&&(L=v.toString(16)+L);L.length%y!=0;)L="0"+L;return 0!==this.negative&&(L="-"+L),L}if(d===(0|d)&&d>=2&&d<=36){var F=M[d],X=z[d];L="";var Fe=this.clone();for(Fe.negative=0;!Fe.isZero();){var ke=Fe.modrn(X).toString(d);L=(Fe=Fe.idivn(X)).isZero()?ke+L:P[F-ke.length]+ke+L}for(this.isZero()&&(L="0"+L);L.length%y!=0;)L="0"+L;return 0!==this.negative&&(L="-"+L),L}_(!1,"Base should be between 2 and 36")},s.prototype.toNumber=function(){var d=this.words[0];return 2===this.length?d+=67108864*this.words[1]:3===this.length&&1===this.words[2]?d+=4503599627370496+67108864*this.words[1]:this.length>2&&_(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-d:d},s.prototype.toJSON=function(){return this.toString(16,2)},D&&(s.prototype.toBuffer=function(d,y){return this.toArrayLike(D,d,y)}),s.prototype.toArray=function(d,y){return this.toArrayLike(Array,d,y)};function Z(h,d,y){y.negative=d.negative^h.negative;var L=h.length+d.length|0;y.length=L,L=L-1|0;var B=0|h.words[0],v=0|d.words[0],a=B*v,C=67108863&a,N=a/67108864|0;y.words[0]=C;for(var F=1;F<L;F++){for(var X=N>>>26,Fe=67108863&N,ke=Math.min(F,d.length-1),Ke=Math.max(0,F-h.length+1);Ke<=ke;Ke++){var je=F-Ke|0;X+=(a=(B=0|h.words[je])*(v=0|d.words[Ke])+Fe)/67108864|0,Fe=67108863&a}y.words[F]=0|Fe,N=0|X}return 0!==N?y.words[F]=0|N:y.length--,y._strip()}s.prototype.toArrayLike=function(d,y,L){this._strip();var B=this.byteLength(),v=L||Math.max(1,B);_(B<=v,"byte array longer than desired length"),_(v>0,"Requested array length <= 0");var a=function(d,y){return d.allocUnsafe?d.allocUnsafe(y):new d(y)}(d,v);return this["_toArrayLike"+("le"===y?"LE":"BE")](a,B),a},s.prototype._toArrayLikeLE=function(d,y){for(var L=0,B=0,v=0,a=0;v<this.length;v++){var C=this.words[v]<<a|B;d[L++]=255&C,L<d.length&&(d[L++]=C>>8&255),L<d.length&&(d[L++]=C>>16&255),6===a?(L<d.length&&(d[L++]=C>>24&255),B=0,a=0):(B=C>>>24,a+=2)}if(L<d.length)for(d[L++]=B;L<d.length;)d[L++]=0},s.prototype._toArrayLikeBE=function(d,y){for(var L=d.length-1,B=0,v=0,a=0;v<this.length;v++){var C=this.words[v]<<a|B;d[L--]=255&C,L>=0&&(d[L--]=C>>8&255),L>=0&&(d[L--]=C>>16&255),6===a?(L>=0&&(d[L--]=C>>24&255),B=0,a=0):(B=C>>>24,a+=2)}if(L>=0)for(d[L--]=B;L>=0;)d[L--]=0},Math.clz32?s.prototype._countBits=function(d){return 32-Math.clz32(d)}:s.prototype._countBits=function(d){var y=d,L=0;return y>=4096&&(L+=13,y>>>=13),y>=64&&(L+=7,y>>>=7),y>=8&&(L+=4,y>>>=4),y>=2&&(L+=2,y>>>=2),L+y},s.prototype._zeroBits=function(d){if(0===d)return 26;var y=d,L=0;return 0==(8191&y)&&(L+=13,y>>>=13),0==(127&y)&&(L+=7,y>>>=7),0==(15&y)&&(L+=4,y>>>=4),0==(3&y)&&(L+=2,y>>>=2),0==(1&y)&&L++,L},s.prototype.bitLength=function(){var d=this.words[this.length-1],y=this._countBits(d);return 26*(this.length-1)+y},s.prototype.zeroBits=function(){if(this.isZero())return 0;for(var d=0,y=0;y<this.length;y++){var L=this._zeroBits(this.words[y]);if(d+=L,26!==L)break}return d},s.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},s.prototype.toTwos=function(d){return 0!==this.negative?this.abs().inotn(d).iaddn(1):this.clone()},s.prototype.fromTwos=function(d){return this.testn(d-1)?this.notn(d).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(d){for(;this.length<d.length;)this.words[this.length++]=0;for(var y=0;y<d.length;y++)this.words[y]=this.words[y]|d.words[y];return this._strip()},s.prototype.ior=function(d){return _(0==(this.negative|d.negative)),this.iuor(d)},s.prototype.or=function(d){return this.length>d.length?this.clone().ior(d):d.clone().ior(this)},s.prototype.uor=function(d){return this.length>d.length?this.clone().iuor(d):d.clone().iuor(this)},s.prototype.iuand=function(d){var y;y=this.length>d.length?d:this;for(var L=0;L<y.length;L++)this.words[L]=this.words[L]&d.words[L];return this.length=y.length,this._strip()},s.prototype.iand=function(d){return _(0==(this.negative|d.negative)),this.iuand(d)},s.prototype.and=function(d){return this.length>d.length?this.clone().iand(d):d.clone().iand(this)},s.prototype.uand=function(d){return this.length>d.length?this.clone().iuand(d):d.clone().iuand(this)},s.prototype.iuxor=function(d){var y,L;this.length>d.length?(y=this,L=d):(y=d,L=this);for(var B=0;B<L.length;B++)this.words[B]=y.words[B]^L.words[B];if(this!==y)for(;B<y.length;B++)this.words[B]=y.words[B];return this.length=y.length,this._strip()},s.prototype.ixor=function(d){return _(0==(this.negative|d.negative)),this.iuxor(d)},s.prototype.xor=function(d){return this.length>d.length?this.clone().ixor(d):d.clone().ixor(this)},s.prototype.uxor=function(d){return this.length>d.length?this.clone().iuxor(d):d.clone().iuxor(this)},s.prototype.inotn=function(d){_("number"==typeof d&&d>=0);var y=0|Math.ceil(d/26),L=d%26;this._expand(y),L>0&&y--;for(var B=0;B<y;B++)this.words[B]=67108863&~this.words[B];return L>0&&(this.words[B]=~this.words[B]&67108863>>26-L),this._strip()},s.prototype.notn=function(d){return this.clone().inotn(d)},s.prototype.setn=function(d,y){_("number"==typeof d&&d>=0);var L=d/26|0,B=d%26;return this._expand(L+1),this.words[L]=y?this.words[L]|1<<B:this.words[L]&~(1<<B),this._strip()},s.prototype.iadd=function(d){var y,L,B;if(0!==this.negative&&0===d.negative)return this.negative=0,y=this.isub(d),this.negative^=1,this._normSign();if(0===this.negative&&0!==d.negative)return d.negative=0,y=this.isub(d),d.negative=1,y._normSign();this.length>d.length?(L=this,B=d):(L=d,B=this);for(var v=0,a=0;a<B.length;a++)y=(0|L.words[a])+(0|B.words[a])+v,this.words[a]=67108863&y,v=y>>>26;for(;0!==v&&a<L.length;a++)y=(0|L.words[a])+v,this.words[a]=67108863&y,v=y>>>26;if(this.length=L.length,0!==v)this.words[this.length]=v,this.length++;else if(L!==this)for(;a<L.length;a++)this.words[a]=L.words[a];return this},s.prototype.add=function(d){var y;return 0!==d.negative&&0===this.negative?(d.negative=0,y=this.sub(d),d.negative^=1,y):0===d.negative&&0!==this.negative?(this.negative=0,y=d.sub(this),this.negative=1,y):this.length>d.length?this.clone().iadd(d):d.clone().iadd(this)},s.prototype.isub=function(d){if(0!==d.negative){d.negative=0;var y=this.iadd(d);return d.negative=1,y._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(d),this.negative=1,this._normSign();var B,v,L=this.cmp(d);if(0===L)return this.negative=0,this.length=1,this.words[0]=0,this;L>0?(B=this,v=d):(B=d,v=this);for(var a=0,C=0;C<v.length;C++)a=(y=(0|B.words[C])-(0|v.words[C])+a)>>26,this.words[C]=67108863&y;for(;0!==a&&C<B.length;C++)a=(y=(0|B.words[C])+a)>>26,this.words[C]=67108863&y;if(0===a&&C<B.length&&B!==this)for(;C<B.length;C++)this.words[C]=B.words[C];return this.length=Math.max(this.length,C),B!==this&&(this.negative=1),this._strip()},s.prototype.sub=function(d){return this.clone().isub(d)};var Q=function(d,y,L){var N,F,X,B=d.words,v=y.words,a=L.words,C=0,Fe=0|B[0],ke=8191&Fe,Ke=Fe>>>13,je=0|B[1],Ve=8191&je,xe=je>>>13,Ze=0|B[2],Ie=8191&Ze,ve=Ze>>>13,et=0|B[3],ht=8191&et,Le=et>>>13,Ae=0|B[4],te=8191&Ae,pe=Ae>>>13,ee=0|B[5],H=8191&ee,j=ee>>>13,Oe=0|B[6],Re=8191&Oe,le=Oe>>>13,_t=0|B[7],it=8191&_t,Ct=_t>>>13,un=0|B[8],Bt=8191&un,Ut=un>>>13,yn=0|B[9],Xt=8191&yn,Gt=yn>>>13,In=0|v[0],rn=8191&In,tn=In>>>13,pn=0|v[1],tt=8191&pn,vt=pn>>>13,dt=0|v[2],se=8191&dt,J=dt>>>13,oe=0|v[3],De=8191&oe,Ye=oe>>>13,Dt=0|v[4],ut=8191&Dt,ze=Dt>>>13,Me=0|v[5],Ce=8191&Me,Je=Me>>>13,zt=0|v[6],At=8191&zt,Tt=zt>>>13,Ht=0|v[7],He=8191&Ht,$e=Ht>>>13,$t=0|v[8],Rt=8191&$t,Jt=$t>>>13,Vn=0|v[9],zn=8191&Vn,Tn=Vn>>>13;L.negative=d.negative^y.negative,L.length=19;var Yn=(C+(N=Math.imul(ke,rn))|0)+((8191&(F=(F=Math.imul(ke,tn))+Math.imul(Ke,rn)|0))<<13)|0;C=((X=Math.imul(Ke,tn))+(F>>>13)|0)+(Yn>>>26)|0,Yn&=67108863,N=Math.imul(Ve,rn),F=(F=Math.imul(Ve,tn))+Math.imul(xe,rn)|0,X=Math.imul(xe,tn);var Mt=(C+(N=N+Math.imul(ke,tt)|0)|0)+((8191&(F=(F=F+Math.imul(ke,vt)|0)+Math.imul(Ke,tt)|0))<<13)|0;C=((X=X+Math.imul(Ke,vt)|0)+(F>>>13)|0)+(Mt>>>26)|0,Mt&=67108863,N=Math.imul(Ie,rn),F=(F=Math.imul(Ie,tn))+Math.imul(ve,rn)|0,X=Math.imul(ve,tn),N=N+Math.imul(Ve,tt)|0,F=(F=F+Math.imul(Ve,vt)|0)+Math.imul(xe,tt)|0,X=X+Math.imul(xe,vt)|0;var Ge=(C+(N=N+Math.imul(ke,se)|0)|0)+((8191&(F=(F=F+Math.imul(ke,J)|0)+Math.imul(Ke,se)|0))<<13)|0;C=((X=X+Math.imul(Ke,J)|0)+(F>>>13)|0)+(Ge>>>26)|0,Ge&=67108863,N=Math.imul(ht,rn),F=(F=Math.imul(ht,tn))+Math.imul(Le,rn)|0,X=Math.imul(Le,tn),N=N+Math.imul(Ie,tt)|0,F=(F=F+Math.imul(Ie,vt)|0)+Math.imul(ve,tt)|0,X=X+Math.imul(ve,vt)|0,N=N+Math.imul(Ve,se)|0,F=(F=F+Math.imul(Ve,J)|0)+Math.imul(xe,se)|0,X=X+Math.imul(xe,J)|0;var Be=(C+(N=N+Math.imul(ke,De)|0)|0)+((8191&(F=(F=F+Math.imul(ke,Ye)|0)+Math.imul(Ke,De)|0))<<13)|0;C=((X=X+Math.imul(Ke,Ye)|0)+(F>>>13)|0)+(Be>>>26)|0,Be&=67108863,N=Math.imul(te,rn),F=(F=Math.imul(te,tn))+Math.imul(pe,rn)|0,X=Math.imul(pe,tn),N=N+Math.imul(ht,tt)|0,F=(F=F+Math.imul(ht,vt)|0)+Math.imul(Le,tt)|0,X=X+Math.imul(Le,vt)|0,N=N+Math.imul(Ie,se)|0,F=(F=F+Math.imul(Ie,J)|0)+Math.imul(ve,se)|0,X=X+Math.imul(ve,J)|0,N=N+Math.imul(Ve,De)|0,F=(F=F+Math.imul(Ve,Ye)|0)+Math.imul(xe,De)|0,X=X+Math.imul(xe,Ye)|0;var ft=(C+(N=N+Math.imul(ke,ut)|0)|0)+((8191&(F=(F=F+Math.imul(ke,ze)|0)+Math.imul(Ke,ut)|0))<<13)|0;C=((X=X+Math.imul(Ke,ze)|0)+(F>>>13)|0)+(ft>>>26)|0,ft&=67108863,N=Math.imul(H,rn),F=(F=Math.imul(H,tn))+Math.imul(j,rn)|0,X=Math.imul(j,tn),N=N+Math.imul(te,tt)|0,F=(F=F+Math.imul(te,vt)|0)+Math.imul(pe,tt)|0,X=X+Math.imul(pe,vt)|0,N=N+Math.imul(ht,se)|0,F=(F=F+Math.imul(ht,J)|0)+Math.imul(Le,se)|0,X=X+Math.imul(Le,J)|0,N=N+Math.imul(Ie,De)|0,F=(F=F+Math.imul(Ie,Ye)|0)+Math.imul(ve,De)|0,X=X+Math.imul(ve,Ye)|0,N=N+Math.imul(Ve,ut)|0,F=(F=F+Math.imul(Ve,ze)|0)+Math.imul(xe,ut)|0,X=X+Math.imul(xe,ze)|0;var re=(C+(N=N+Math.imul(ke,Ce)|0)|0)+((8191&(F=(F=F+Math.imul(ke,Je)|0)+Math.imul(Ke,Ce)|0))<<13)|0;C=((X=X+Math.imul(Ke,Je)|0)+(F>>>13)|0)+(re>>>26)|0,re&=67108863,N=Math.imul(Re,rn),F=(F=Math.imul(Re,tn))+Math.imul(le,rn)|0,X=Math.imul(le,tn),N=N+Math.imul(H,tt)|0,F=(F=F+Math.imul(H,vt)|0)+Math.imul(j,tt)|0,X=X+Math.imul(j,vt)|0,N=N+Math.imul(te,se)|0,F=(F=F+Math.imul(te,J)|0)+Math.imul(pe,se)|0,X=X+Math.imul(pe,J)|0,N=N+Math.imul(ht,De)|0,F=(F=F+Math.imul(ht,Ye)|0)+Math.imul(Le,De)|0,X=X+Math.imul(Le,Ye)|0,N=N+Math.imul(Ie,ut)|0,F=(F=F+Math.imul(Ie,ze)|0)+Math.imul(ve,ut)|0,X=X+Math.imul(ve,ze)|0,N=N+Math.imul(Ve,Ce)|0,F=(F=F+Math.imul(Ve,Je)|0)+Math.imul(xe,Ce)|0,X=X+Math.imul(xe,Je)|0;var Te=(C+(N=N+Math.imul(ke,At)|0)|0)+((8191&(F=(F=F+Math.imul(ke,Tt)|0)+Math.imul(Ke,At)|0))<<13)|0;C=((X=X+Math.imul(Ke,Tt)|0)+(F>>>13)|0)+(Te>>>26)|0,Te&=67108863,N=Math.imul(it,rn),F=(F=Math.imul(it,tn))+Math.imul(Ct,rn)|0,X=Math.imul(Ct,tn),N=N+Math.imul(Re,tt)|0,F=(F=F+Math.imul(Re,vt)|0)+Math.imul(le,tt)|0,X=X+Math.imul(le,vt)|0,N=N+Math.imul(H,se)|0,F=(F=F+Math.imul(H,J)|0)+Math.imul(j,se)|0,X=X+Math.imul(j,J)|0,N=N+Math.imul(te,De)|0,F=(F=F+Math.imul(te,Ye)|0)+Math.imul(pe,De)|0,X=X+Math.imul(pe,Ye)|0,N=N+Math.imul(ht,ut)|0,F=(F=F+Math.imul(ht,ze)|0)+Math.imul(Le,ut)|0,X=X+Math.imul(Le,ze)|0,N=N+Math.imul(Ie,Ce)|0,F=(F=F+Math.imul(Ie,Je)|0)+Math.imul(ve,Ce)|0,X=X+Math.imul(ve,Je)|0,N=N+Math.imul(Ve,At)|0,F=(F=F+Math.imul(Ve,Tt)|0)+Math.imul(xe,At)|0,X=X+Math.imul(xe,Tt)|0;var pt=(C+(N=N+Math.imul(ke,He)|0)|0)+((8191&(F=(F=F+Math.imul(ke,$e)|0)+Math.imul(Ke,He)|0))<<13)|0;C=((X=X+Math.imul(Ke,$e)|0)+(F>>>13)|0)+(pt>>>26)|0,pt&=67108863,N=Math.imul(Bt,rn),F=(F=Math.imul(Bt,tn))+Math.imul(Ut,rn)|0,X=Math.imul(Ut,tn),N=N+Math.imul(it,tt)|0,F=(F=F+Math.imul(it,vt)|0)+Math.imul(Ct,tt)|0,X=X+Math.imul(Ct,vt)|0,N=N+Math.imul(Re,se)|0,F=(F=F+Math.imul(Re,J)|0)+Math.imul(le,se)|0,X=X+Math.imul(le,J)|0,N=N+Math.imul(H,De)|0,F=(F=F+Math.imul(H,Ye)|0)+Math.imul(j,De)|0,X=X+Math.imul(j,Ye)|0,N=N+Math.imul(te,ut)|0,F=(F=F+Math.imul(te,ze)|0)+Math.imul(pe,ut)|0,X=X+Math.imul(pe,ze)|0,N=N+Math.imul(ht,Ce)|0,F=(F=F+Math.imul(ht,Je)|0)+Math.imul(Le,Ce)|0,X=X+Math.imul(Le,Je)|0,N=N+Math.imul(Ie,At)|0,F=(F=F+Math.imul(Ie,Tt)|0)+Math.imul(ve,At)|0,X=X+Math.imul(ve,Tt)|0,N=N+Math.imul(Ve,He)|0,F=(F=F+Math.imul(Ve,$e)|0)+Math.imul(xe,He)|0,X=X+Math.imul(xe,$e)|0;var Lt=(C+(N=N+Math.imul(ke,Rt)|0)|0)+((8191&(F=(F=F+Math.imul(ke,Jt)|0)+Math.imul(Ke,Rt)|0))<<13)|0;C=((X=X+Math.imul(Ke,Jt)|0)+(F>>>13)|0)+(Lt>>>26)|0,Lt&=67108863,N=Math.imul(Xt,rn),F=(F=Math.imul(Xt,tn))+Math.imul(Gt,rn)|0,X=Math.imul(Gt,tn),N=N+Math.imul(Bt,tt)|0,F=(F=F+Math.imul(Bt,vt)|0)+Math.imul(Ut,tt)|0,X=X+Math.imul(Ut,vt)|0,N=N+Math.imul(it,se)|0,F=(F=F+Math.imul(it,J)|0)+Math.imul(Ct,se)|0,X=X+Math.imul(Ct,J)|0,N=N+Math.imul(Re,De)|0,F=(F=F+Math.imul(Re,Ye)|0)+Math.imul(le,De)|0,X=X+Math.imul(le,Ye)|0,N=N+Math.imul(H,ut)|0,F=(F=F+Math.imul(H,ze)|0)+Math.imul(j,ut)|0,X=X+Math.imul(j,ze)|0,N=N+Math.imul(te,Ce)|0,F=(F=F+Math.imul(te,Je)|0)+Math.imul(pe,Ce)|0,X=X+Math.imul(pe,Je)|0,N=N+Math.imul(ht,At)|0,F=(F=F+Math.imul(ht,Tt)|0)+Math.imul(Le,At)|0,X=X+Math.imul(Le,Tt)|0,N=N+Math.imul(Ie,He)|0,F=(F=F+Math.imul(Ie,$e)|0)+Math.imul(ve,He)|0,X=X+Math.imul(ve,$e)|0,N=N+Math.imul(Ve,Rt)|0,F=(F=F+Math.imul(Ve,Jt)|0)+Math.imul(xe,Rt)|0,X=X+Math.imul(xe,Jt)|0;var nn=(C+(N=N+Math.imul(ke,zn)|0)|0)+((8191&(F=(F=F+Math.imul(ke,Tn)|0)+Math.imul(Ke,zn)|0))<<13)|0;C=((X=X+Math.imul(Ke,Tn)|0)+(F>>>13)|0)+(nn>>>26)|0,nn&=67108863,N=Math.imul(Xt,tt),F=(F=Math.imul(Xt,vt))+Math.imul(Gt,tt)|0,X=Math.imul(Gt,vt),N=N+Math.imul(Bt,se)|0,F=(F=F+Math.imul(Bt,J)|0)+Math.imul(Ut,se)|0,X=X+Math.imul(Ut,J)|0,N=N+Math.imul(it,De)|0,F=(F=F+Math.imul(it,Ye)|0)+Math.imul(Ct,De)|0,X=X+Math.imul(Ct,Ye)|0,N=N+Math.imul(Re,ut)|0,F=(F=F+Math.imul(Re,ze)|0)+Math.imul(le,ut)|0,X=X+Math.imul(le,ze)|0,N=N+Math.imul(H,Ce)|0,F=(F=F+Math.imul(H,Je)|0)+Math.imul(j,Ce)|0,X=X+Math.imul(j,Je)|0,N=N+Math.imul(te,At)|0,F=(F=F+Math.imul(te,Tt)|0)+Math.imul(pe,At)|0,X=X+Math.imul(pe,Tt)|0,N=N+Math.imul(ht,He)|0,F=(F=F+Math.imul(ht,$e)|0)+Math.imul(Le,He)|0,X=X+Math.imul(Le,$e)|0,N=N+Math.imul(Ie,Rt)|0,F=(F=F+Math.imul(Ie,Jt)|0)+Math.imul(ve,Rt)|0,X=X+Math.imul(ve,Jt)|0;var Bn=(C+(N=N+Math.imul(Ve,zn)|0)|0)+((8191&(F=(F=F+Math.imul(Ve,Tn)|0)+Math.imul(xe,zn)|0))<<13)|0;C=((X=X+Math.imul(xe,Tn)|0)+(F>>>13)|0)+(Bn>>>26)|0,Bn&=67108863,N=Math.imul(Xt,se),F=(F=Math.imul(Xt,J))+Math.imul(Gt,se)|0,X=Math.imul(Gt,J),N=N+Math.imul(Bt,De)|0,F=(F=F+Math.imul(Bt,Ye)|0)+Math.imul(Ut,De)|0,X=X+Math.imul(Ut,Ye)|0,N=N+Math.imul(it,ut)|0,F=(F=F+Math.imul(it,ze)|0)+Math.imul(Ct,ut)|0,X=X+Math.imul(Ct,ze)|0,N=N+Math.imul(Re,Ce)|0,F=(F=F+Math.imul(Re,Je)|0)+Math.imul(le,Ce)|0,X=X+Math.imul(le,Je)|0,N=N+Math.imul(H,At)|0,F=(F=F+Math.imul(H,Tt)|0)+Math.imul(j,At)|0,X=X+Math.imul(j,Tt)|0,N=N+Math.imul(te,He)|0,F=(F=F+Math.imul(te,$e)|0)+Math.imul(pe,He)|0,X=X+Math.imul(pe,$e)|0,N=N+Math.imul(ht,Rt)|0,F=(F=F+Math.imul(ht,Jt)|0)+Math.imul(Le,Rt)|0,X=X+Math.imul(Le,Jt)|0;var Wn=(C+(N=N+Math.imul(Ie,zn)|0)|0)+((8191&(F=(F=F+Math.imul(Ie,Tn)|0)+Math.imul(ve,zn)|0))<<13)|0;C=((X=X+Math.imul(ve,Tn)|0)+(F>>>13)|0)+(Wn>>>26)|0,Wn&=67108863,N=Math.imul(Xt,De),F=(F=Math.imul(Xt,Ye))+Math.imul(Gt,De)|0,X=Math.imul(Gt,Ye),N=N+Math.imul(Bt,ut)|0,F=(F=F+Math.imul(Bt,ze)|0)+Math.imul(Ut,ut)|0,X=X+Math.imul(Ut,ze)|0,N=N+Math.imul(it,Ce)|0,F=(F=F+Math.imul(it,Je)|0)+Math.imul(Ct,Ce)|0,X=X+Math.imul(Ct,Je)|0,N=N+Math.imul(Re,At)|0,F=(F=F+Math.imul(Re,Tt)|0)+Math.imul(le,At)|0,X=X+Math.imul(le,Tt)|0,N=N+Math.imul(H,He)|0,F=(F=F+Math.imul(H,$e)|0)+Math.imul(j,He)|0,X=X+Math.imul(j,$e)|0,N=N+Math.imul(te,Rt)|0,F=(F=F+Math.imul(te,Jt)|0)+Math.imul(pe,Rt)|0,X=X+Math.imul(pe,Jt)|0;var ti=(C+(N=N+Math.imul(ht,zn)|0)|0)+((8191&(F=(F=F+Math.imul(ht,Tn)|0)+Math.imul(Le,zn)|0))<<13)|0;C=((X=X+Math.imul(Le,Tn)|0)+(F>>>13)|0)+(ti>>>26)|0,ti&=67108863,N=Math.imul(Xt,ut),F=(F=Math.imul(Xt,ze))+Math.imul(Gt,ut)|0,X=Math.imul(Gt,ze),N=N+Math.imul(Bt,Ce)|0,F=(F=F+Math.imul(Bt,Je)|0)+Math.imul(Ut,Ce)|0,X=X+Math.imul(Ut,Je)|0,N=N+Math.imul(it,At)|0,F=(F=F+Math.imul(it,Tt)|0)+Math.imul(Ct,At)|0,X=X+Math.imul(Ct,Tt)|0,N=N+Math.imul(Re,He)|0,F=(F=F+Math.imul(Re,$e)|0)+Math.imul(le,He)|0,X=X+Math.imul(le,$e)|0,N=N+Math.imul(H,Rt)|0,F=(F=F+Math.imul(H,Jt)|0)+Math.imul(j,Rt)|0,X=X+Math.imul(j,Jt)|0;var Mn=(C+(N=N+Math.imul(te,zn)|0)|0)+((8191&(F=(F=F+Math.imul(te,Tn)|0)+Math.imul(pe,zn)|0))<<13)|0;C=((X=X+Math.imul(pe,Tn)|0)+(F>>>13)|0)+(Mn>>>26)|0,Mn&=67108863,N=Math.imul(Xt,Ce),F=(F=Math.imul(Xt,Je))+Math.imul(Gt,Ce)|0,X=Math.imul(Gt,Je),N=N+Math.imul(Bt,At)|0,F=(F=F+Math.imul(Bt,Tt)|0)+Math.imul(Ut,At)|0,X=X+Math.imul(Ut,Tt)|0,N=N+Math.imul(it,He)|0,F=(F=F+Math.imul(it,$e)|0)+Math.imul(Ct,He)|0,X=X+Math.imul(Ct,$e)|0,N=N+Math.imul(Re,Rt)|0,F=(F=F+Math.imul(Re,Jt)|0)+Math.imul(le,Rt)|0,X=X+Math.imul(le,Jt)|0;var Ln=(C+(N=N+Math.imul(H,zn)|0)|0)+((8191&(F=(F=F+Math.imul(H,Tn)|0)+Math.imul(j,zn)|0))<<13)|0;C=((X=X+Math.imul(j,Tn)|0)+(F>>>13)|0)+(Ln>>>26)|0,Ln&=67108863,N=Math.imul(Xt,At),F=(F=Math.imul(Xt,Tt))+Math.imul(Gt,At)|0,X=Math.imul(Gt,Tt),N=N+Math.imul(Bt,He)|0,F=(F=F+Math.imul(Bt,$e)|0)+Math.imul(Ut,He)|0,X=X+Math.imul(Ut,$e)|0,N=N+Math.imul(it,Rt)|0,F=(F=F+Math.imul(it,Jt)|0)+Math.imul(Ct,Rt)|0,X=X+Math.imul(Ct,Jt)|0;var ai=(C+(N=N+Math.imul(Re,zn)|0)|0)+((8191&(F=(F=F+Math.imul(Re,Tn)|0)+Math.imul(le,zn)|0))<<13)|0;C=((X=X+Math.imul(le,Tn)|0)+(F>>>13)|0)+(ai>>>26)|0,ai&=67108863,N=Math.imul(Xt,He),F=(F=Math.imul(Xt,$e))+Math.imul(Gt,He)|0,X=Math.imul(Gt,$e),N=N+Math.imul(Bt,Rt)|0,F=(F=F+Math.imul(Bt,Jt)|0)+Math.imul(Ut,Rt)|0,X=X+Math.imul(Ut,Jt)|0;var an=(C+(N=N+Math.imul(it,zn)|0)|0)+((8191&(F=(F=F+Math.imul(it,Tn)|0)+Math.imul(Ct,zn)|0))<<13)|0;C=((X=X+Math.imul(Ct,Tn)|0)+(F>>>13)|0)+(an>>>26)|0,an&=67108863,N=Math.imul(Xt,Rt),F=(F=Math.imul(Xt,Jt))+Math.imul(Gt,Rt)|0,X=Math.imul(Gt,Jt);var hn=(C+(N=N+Math.imul(Bt,zn)|0)|0)+((8191&(F=(F=F+Math.imul(Bt,Tn)|0)+Math.imul(Ut,zn)|0))<<13)|0;C=((X=X+Math.imul(Ut,Tn)|0)+(F>>>13)|0)+(hn>>>26)|0,hn&=67108863;var en=(C+(N=Math.imul(Xt,zn))|0)+((8191&(F=(F=Math.imul(Xt,Tn))+Math.imul(Gt,zn)|0))<<13)|0;return C=((X=Math.imul(Gt,Tn))+(F>>>13)|0)+(en>>>26)|0,en&=67108863,a[0]=Yn,a[1]=Mt,a[2]=Ge,a[3]=Be,a[4]=ft,a[5]=re,a[6]=Te,a[7]=pt,a[8]=Lt,a[9]=nn,a[10]=Bn,a[11]=Wn,a[12]=ti,a[13]=Mn,a[14]=Ln,a[15]=ai,a[16]=an,a[17]=hn,a[18]=en,0!==C&&(a[19]=C,L.length++),L};function ie(h,d,y){y.negative=d.negative^h.negative,y.length=h.length+d.length;for(var L=0,B=0,v=0;v<y.length-1;v++){var a=B;B=0;for(var C=67108863&L,N=Math.min(v,d.length-1),F=Math.max(0,v-h.length+1);F<=N;F++){var X=v-F,Ke=(0|h.words[X])*(0|d.words[F]),je=67108863&Ke;C=67108863&(je=je+C|0),B+=(a=(a=a+(Ke/67108864|0)|0)+(je>>>26)|0)>>>26,a&=67108863}y.words[v]=C,L=a,a=B}return 0!==L?y.words[v]=L:y.length--,y._strip()}function ae(h,d,y){return ie(h,d,y)}function _e(h,d){this.x=h,this.y=d}Math.imul||(Q=Z),s.prototype.mulTo=function(d,y){var B=this.length+d.length;return 10===this.length&&10===d.length?Q(this,d,y):B<63?Z(this,d,y):B<1024?ie(this,d,y):ae(this,d,y)},_e.prototype.makeRBT=function(d){for(var y=new Array(d),L=s.prototype._countBits(d)-1,B=0;B<d;B++)y[B]=this.revBin(B,L,d);return y},_e.prototype.revBin=function(d,y,L){if(0===d||d===L-1)return d;for(var B=0,v=0;v<y;v++)B|=(1&d)<<y-v-1,d>>=1;return B},_e.prototype.permute=function(d,y,L,B,v,a){for(var C=0;C<a;C++)B[C]=y[d[C]],v[C]=L[d[C]]},_e.prototype.transform=function(d,y,L,B,v,a){this.permute(a,d,y,L,B,v);for(var C=1;C<v;C<<=1)for(var N=C<<1,F=Math.cos(2*Math.PI/N),X=Math.sin(2*Math.PI/N),Fe=0;Fe<v;Fe+=N)for(var ke=F,Ke=X,je=0;je<C;je++){var Ve=L[Fe+je],xe=B[Fe+je],Ze=L[Fe+je+C],Ie=B[Fe+je+C],ve=ke*Ze-Ke*Ie;Ie=ke*Ie+Ke*Ze,Ze=ve,L[Fe+je]=Ve+Ze,B[Fe+je]=xe+Ie,L[Fe+je+C]=Ve-Ze,B[Fe+je+C]=xe-Ie,je!==N&&(ve=F*ke-X*Ke,Ke=F*Ke+X*ke,ke=ve)}},_e.prototype.guessLen13b=function(d,y){var L=1|Math.max(y,d),B=1&L,v=0;for(L=L/2|0;L;L>>>=1)v++;return 1<<v+1+B},_e.prototype.conjugate=function(d,y,L){if(!(L<=1))for(var B=0;B<L/2;B++){var v=d[B];d[B]=d[L-B-1],d[L-B-1]=v,v=y[B],y[B]=-y[L-B-1],y[L-B-1]=-v}},_e.prototype.normalize13b=function(d,y){for(var L=0,B=0;B<y/2;B++){var v=8192*Math.round(d[2*B+1]/y)+Math.round(d[2*B]/y)+L;d[B]=67108863&v,L=v<67108864?0:v/67108864|0}return d},_e.prototype.convert13b=function(d,y,L,B){for(var v=0,a=0;a<y;a++)v+=0|d[a],L[2*a]=8191&v,v>>>=13,L[2*a+1]=8191&v,v>>>=13;for(a=2*y;a<B;++a)L[a]=0;_(0===v),_(0==(-8192&v))},_e.prototype.stub=function(d){for(var y=new Array(d),L=0;L<d;L++)y[L]=0;return y},_e.prototype.mulp=function(d,y,L){var B=2*this.guessLen13b(d.length,y.length),v=this.makeRBT(B),a=this.stub(B),C=new Array(B),N=new Array(B),F=new Array(B),X=new Array(B),Fe=new Array(B),ke=new Array(B),Ke=L.words;Ke.length=B,this.convert13b(d.words,d.length,C,B),this.convert13b(y.words,y.length,X,B),this.transform(C,a,N,F,B,v),this.transform(X,a,Fe,ke,B,v);for(var je=0;je<B;je++){var Ve=N[je]*Fe[je]-F[je]*ke[je];F[je]=N[je]*ke[je]+F[je]*Fe[je],N[je]=Ve}return this.conjugate(N,F,B),this.transform(N,F,Ke,a,B,v),this.conjugate(Ke,a,B),this.normalize13b(Ke,B),L.negative=d.negative^y.negative,L.length=d.length+y.length,L._strip()},s.prototype.mul=function(d){var y=new s(null);return y.words=new Array(this.length+d.length),this.mulTo(d,y)},s.prototype.mulf=function(d){var y=new s(null);return y.words=new Array(this.length+d.length),ae(this,d,y)},s.prototype.imul=function(d){return this.clone().mulTo(d,this)},s.prototype.imuln=function(d){var y=d<0;y&&(d=-d),_("number"==typeof d),_(d<67108864);for(var L=0,B=0;B<this.length;B++){var v=(0|this.words[B])*d,a=(67108863&v)+(67108863&L);L>>=26,L+=v/67108864|0,L+=a>>>26,this.words[B]=67108863&a}return 0!==L&&(this.words[B]=L,this.length++),y?this.ineg():this},s.prototype.muln=function(d){return this.clone().imuln(d)},s.prototype.sqr=function(){return this.mul(this)},s.prototype.isqr=function(){return this.imul(this.clone())},s.prototype.pow=function(d){var y=function W(h){for(var d=new Array(h.bitLength()),y=0;y<d.length;y++){var L=y/26|0,B=y%26;d[y]=h.words[L]>>>B&1}return d}(d);if(0===y.length)return new s(1);for(var L=this,B=0;B<y.length&&0===y[B];B++,L=L.sqr());if(++B<y.length)for(var v=L.sqr();B<y.length;B++,v=v.sqr())0!==y[B]&&(L=L.mul(v));return L},s.prototype.iushln=function(d){_("number"==typeof d&&d>=0);var v,y=d%26,L=(d-y)/26,B=67108863>>>26-y<<26-y;if(0!==y){var a=0;for(v=0;v<this.length;v++){var C=this.words[v]&B,N=(0|this.words[v])-C<<y;this.words[v]=N|a,a=C>>>26-y}a&&(this.words[v]=a,this.length++)}if(0!==L){for(v=this.length-1;v>=0;v--)this.words[v+L]=this.words[v];for(v=0;v<L;v++)this.words[v]=0;this.length+=L}return this._strip()},s.prototype.ishln=function(d){return _(0===this.negative),this.iushln(d)},s.prototype.iushrn=function(d,y,L){var B;_("number"==typeof d&&d>=0),B=y?(y-y%26)/26:0;var v=d%26,a=Math.min((d-v)/26,this.length),C=67108863^67108863>>>v<<v,N=L;if(B-=a,B=Math.max(0,B),N){for(var F=0;F<a;F++)N.words[F]=this.words[F];N.length=a}if(0!==a)if(this.length>a)for(this.length-=a,F=0;F<this.length;F++)this.words[F]=this.words[F+a];else this.words[0]=0,this.length=1;var X=0;for(F=this.length-1;F>=0&&(0!==X||F>=B);F--){var Fe=0|this.words[F];this.words[F]=X<<26-v|Fe>>>v,X=Fe&C}return N&&0!==X&&(N.words[N.length++]=X),0===this.length&&(this.words[0]=0,this.length=1),this._strip()},s.prototype.ishrn=function(d,y,L){return _(0===this.negative),this.iushrn(d,y,L)},s.prototype.shln=function(d){return this.clone().ishln(d)},s.prototype.ushln=function(d){return this.clone().iushln(d)},s.prototype.shrn=function(d){return this.clone().ishrn(d)},s.prototype.ushrn=function(d){return this.clone().iushrn(d)},s.prototype.testn=function(d){_("number"==typeof d&&d>=0);var y=d%26,L=(d-y)/26,B=1<<y;return!(this.length<=L)&&!!(this.words[L]&B)},s.prototype.imaskn=function(d){_("number"==typeof d&&d>=0);var y=d%26,L=(d-y)/26;if(_(0===this.negative,"imaskn works only with positive numbers"),this.length<=L)return this;if(0!==y&&L++,this.length=Math.min(L,this.length),0!==y){var B=67108863^67108863>>>y<<y;this.words[this.length-1]&=B}return this._strip()},s.prototype.maskn=function(d){return this.clone().imaskn(d)},s.prototype.iaddn=function(d){return _("number"==typeof d),_(d<67108864),d<0?this.isubn(-d):0!==this.negative?1===this.length&&(0|this.words[0])<=d?(this.words[0]=d-(0|this.words[0]),this.negative=0,this):(this.negative=0,this.isubn(d),this.negative=1,this):this._iaddn(d)},s.prototype._iaddn=function(d){this.words[0]+=d;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(d){if(_("number"==typeof d),_(d<67108864),d<0)return this.iaddn(-d);if(0!==this.negative)return this.negative=0,this.iaddn(d),this.negative=1,this;if(this.words[0]-=d,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(d){return this.clone().iaddn(d)},s.prototype.subn=function(d){return this.clone().isubn(d)},s.prototype.iabs=function(){return this.negative=0,this},s.prototype.abs=function(){return this.clone().iabs()},s.prototype._ishlnsubmul=function(d,y,L){var v,B=d.length+L;this._expand(B);var a,C=0;for(v=0;v<d.length;v++){a=(0|this.words[v+L])+C;var N=(0|d.words[v])*y;C=((a-=67108863&N)>>26)-(N/67108864|0),this.words[v+L]=67108863&a}for(;v<this.length-L;v++)C=(a=(0|this.words[v+L])+C)>>26,this.words[v+L]=67108863&a;if(0===C)return this._strip();for(_(-1===C),C=0,v=0;v<this.length;v++)C=(a=-(0|this.words[v])+C)>>26,this.words[v]=67108863&a;return this.negative=1,this._strip()},s.prototype._wordDiv=function(d,y){var L=(this.length,d.length),B=this.clone(),v=d,a=0|v.words[v.length-1];0!==(L=26-this._countBits(a))&&(v=v.ushln(L),B.iushln(L),a=0|v.words[v.length-1]);var F,N=B.length-v.length;if("mod"!==y){(F=new s(null)).length=N+1,F.words=new Array(F.length);for(var X=0;X<F.length;X++)F.words[X]=0}var Fe=B.clone()._ishlnsubmul(v,1,N);0===Fe.negative&&(B=Fe,F&&(F.words[N]=1));for(var ke=N-1;ke>=0;ke--){var Ke=67108864*(0|B.words[v.length+ke])+(0|B.words[v.length+ke-1]);for(Ke=Math.min(Ke/a|0,67108863),B._ishlnsubmul(v,Ke,ke);0!==B.negative;)Ke--,B.negative=0,B._ishlnsubmul(v,1,ke),B.isZero()||(B.negative^=1);F&&(F.words[ke]=Ke)}return F&&F._strip(),B._strip(),"div"!==y&&0!==L&&B.iushrn(L),{div:F||null,mod:B}},s.prototype.divmod=function(d,y,L){return _(!d.isZero()),this.isZero()?{div:new s(0),mod:new s(0)}:0!==this.negative&&0===d.negative?(a=this.neg().divmod(d,y),"mod"!==y&&(B=a.div.neg()),"div"!==y&&(v=a.mod.neg(),L&&0!==v.negative&&v.iadd(d)),{div:B,mod:v}):0===this.negative&&0!==d.negative?(a=this.divmod(d.neg(),y),"mod"!==y&&(B=a.div.neg()),{div:B,mod:a.mod}):0!=(this.negative&d.negative)?(a=this.neg().divmod(d.neg(),y),"div"!==y&&(v=a.mod.neg(),L&&0!==v.negative&&v.isub(d)),{div:a.div,mod:v}):d.length>this.length||this.cmp(d)<0?{div:new s(0),mod:this}:1===d.length?"div"===y?{div:this.divn(d.words[0]),mod:null}:"mod"===y?{div:null,mod:new s(this.modrn(d.words[0]))}:{div:this.divn(d.words[0]),mod:new s(this.modrn(d.words[0]))}:this._wordDiv(d,y);var B,v,a},s.prototype.div=function(d){return this.divmod(d,"div",!1).div},s.prototype.mod=function(d){return this.divmod(d,"mod",!1).mod},s.prototype.umod=function(d){return this.divmod(d,"mod",!0).mod},s.prototype.divRound=function(d){var y=this.divmod(d);if(y.mod.isZero())return y.div;var L=0!==y.div.negative?y.mod.isub(d):y.mod,B=d.ushrn(1),v=d.andln(1),a=L.cmp(B);return a<0||1===v&&0===a?y.div:0!==y.div.negative?y.div.isubn(1):y.div.iaddn(1)},s.prototype.modrn=function(d){var y=d<0;y&&(d=-d),_(d<=67108863);for(var L=(1<<26)%d,B=0,v=this.length-1;v>=0;v--)B=(L*B+(0|this.words[v]))%d;return y?-B:B},s.prototype.modn=function(d){return this.modrn(d)},s.prototype.idivn=function(d){var y=d<0;y&&(d=-d),_(d<=67108863);for(var L=0,B=this.length-1;B>=0;B--){var v=(0|this.words[B])+67108864*L;this.words[B]=v/d|0,L=v%d}return this._strip(),y?this.ineg():this},s.prototype.divn=function(d){return this.clone().idivn(d)},s.prototype.egcd=function(d){_(0===d.negative),_(!d.isZero());var y=this,L=d.clone();y=0!==y.negative?y.umod(d):y.clone();for(var B=new s(1),v=new s(0),a=new s(0),C=new s(1),N=0;y.isEven()&&L.isEven();)y.iushrn(1),L.iushrn(1),++N;for(var F=L.clone(),X=y.clone();!y.isZero();){for(var Fe=0,ke=1;0==(y.words[0]&ke)&&Fe<26;++Fe,ke<<=1);if(Fe>0)for(y.iushrn(Fe);Fe-- >0;)(B.isOdd()||v.isOdd())&&(B.iadd(F),v.isub(X)),B.iushrn(1),v.iushrn(1);for(var Ke=0,je=1;0==(L.words[0]&je)&&Ke<26;++Ke,je<<=1);if(Ke>0)for(L.iushrn(Ke);Ke-- >0;)(a.isOdd()||C.isOdd())&&(a.iadd(F),C.isub(X)),a.iushrn(1),C.iushrn(1);y.cmp(L)>=0?(y.isub(L),B.isub(a),v.isub(C)):(L.isub(y),a.isub(B),C.isub(v))}return{a,b:C,gcd:L.iushln(N)}},s.prototype._invmp=function(d){_(0===d.negative),_(!d.isZero());var Fe,y=this,L=d.clone();y=0!==y.negative?y.umod(d):y.clone();for(var B=new s(1),v=new s(0),a=L.clone();y.cmpn(1)>0&&L.cmpn(1)>0;){for(var C=0,N=1;0==(y.words[0]&N)&&C<26;++C,N<<=1);if(C>0)for(y.iushrn(C);C-- >0;)B.isOdd()&&B.iadd(a),B.iushrn(1);for(var F=0,X=1;0==(L.words[0]&X)&&F<26;++F,X<<=1);if(F>0)for(L.iushrn(F);F-- >0;)v.isOdd()&&v.iadd(a),v.iushrn(1);y.cmp(L)>=0?(y.isub(L),B.isub(v)):(L.isub(y),v.isub(B))}return(Fe=0===y.cmpn(1)?B:v).cmpn(0)<0&&Fe.iadd(d),Fe},s.prototype.gcd=function(d){if(this.isZero())return d.abs();if(d.isZero())return this.abs();var y=this.clone(),L=d.clone();y.negative=0,L.negative=0;for(var B=0;y.isEven()&&L.isEven();B++)y.iushrn(1),L.iushrn(1);for(;;){for(;y.isEven();)y.iushrn(1);for(;L.isEven();)L.iushrn(1);var v=y.cmp(L);if(v<0){var a=y;y=L,L=a}else if(0===v||0===L.cmpn(1))break;y.isub(L)}return L.iushln(B)},s.prototype.invm=function(d){return this.egcd(d).a.umod(d)},s.prototype.isEven=function(){return 0==(1&this.words[0])},s.prototype.isOdd=function(){return 1==(1&this.words[0])},s.prototype.andln=function(d){return this.words[0]&d},s.prototype.bincn=function(d){_("number"==typeof d);var y=d%26,L=(d-y)/26,B=1<<y;if(this.length<=L)return this._expand(L+1),this.words[L]|=B,this;for(var v=B,a=L;0!==v&&a<this.length;a++){var C=0|this.words[a];v=(C+=v)>>>26,C&=67108863,this.words[a]=C}return 0!==v&&(this.words[a]=v,this.length++),this},s.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},s.prototype.cmpn=function(d){var L,y=d<0;if(0!==this.negative&&!y)return-1;if(0===this.negative&&y)return 1;if(this._strip(),this.length>1)L=1;else{y&&(d=-d),_(d<=67108863,"Number is too big");var B=0|this.words[0];L=B===d?0:B<d?-1:1}return 0!==this.negative?0|-L:L},s.prototype.cmp=function(d){if(0!==this.negative&&0===d.negative)return-1;if(0===this.negative&&0!==d.negative)return 1;var y=this.ucmp(d);return 0!==this.negative?0|-y:y},s.prototype.ucmp=function(d){if(this.length>d.length)return 1;if(this.length<d.length)return-1;for(var y=0,L=this.length-1;L>=0;L--){var B=0|this.words[L],v=0|d.words[L];if(B!==v){B<v?y=-1:B>v&&(y=1);break}}return y},s.prototype.gtn=function(d){return 1===this.cmpn(d)},s.prototype.gt=function(d){return 1===this.cmp(d)},s.prototype.gten=function(d){return this.cmpn(d)>=0},s.prototype.gte=function(d){return this.cmp(d)>=0},s.prototype.ltn=function(d){return-1===this.cmpn(d)},s.prototype.lt=function(d){return-1===this.cmp(d)},s.prototype.lten=function(d){return this.cmpn(d)<=0},s.prototype.lte=function(d){return this.cmp(d)<=0},s.prototype.eqn=function(d){return 0===this.cmpn(d)},s.prototype.eq=function(d){return 0===this.cmp(d)},s.red=function(d){return new n(d)},s.prototype.toRed=function(d){return _(!this.red,"Already a number in reduction context"),_(0===this.negative,"red works only with positives"),d.convertTo(this)._forceRed(d)},s.prototype.fromRed=function(){return _(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},s.prototype._forceRed=function(d){return this.red=d,this},s.prototype.forceRed=function(d){return _(!this.red,"Already a number in reduction context"),this._forceRed(d)},s.prototype.redAdd=function(d){return _(this.red,"redAdd works only with red numbers"),this.red.add(this,d)},s.prototype.redIAdd=function(d){return _(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,d)},s.prototype.redSub=function(d){return _(this.red,"redSub works only with red numbers"),this.red.sub(this,d)},s.prototype.redISub=function(d){return _(this.red,"redISub works only with red numbers"),this.red.isub(this,d)},s.prototype.redShl=function(d){return _(this.red,"redShl works only with red numbers"),this.red.shl(this,d)},s.prototype.redMul=function(d){return _(this.red,"redMul works only with red numbers"),this.red._verify2(this,d),this.red.mul(this,d)},s.prototype.redIMul=function(d){return _(this.red,"redMul works only with red numbers"),this.red._verify2(this,d),this.red.imul(this,d)},s.prototype.redSqr=function(){return _(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},s.prototype.redISqr=function(){return _(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},s.prototype.redSqrt=function(){return _(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},s.prototype.redInvm=function(){return _(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},s.prototype.redNeg=function(){return _(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},s.prototype.redPow=function(d){return _(this.red&&!d.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,d)};var ce={k256:null,p224:null,p192:null,p25519:null};function ye(h,d){this.name=h,this.p=new s(d,16),this.n=this.p.bitLength(),this.k=new s(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function ue(){ye.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function $(){ye.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function he(){ye.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function w(){ye.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function n(h){if("string"==typeof h){var d=s._prime(h);this.m=d.p,this.prime=d}else _(h.gtn(1),"modulus must be greater than 1"),this.m=h,this.prime=null}function o(h){n.call(this,h),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)}ye.prototype._tmp=function(){var d=new s(null);return d.words=new Array(Math.ceil(this.n/13)),d},ye.prototype.ireduce=function(d){var L,y=d;do{this.split(y,this.tmp),L=(y=(y=this.imulK(y)).iadd(this.tmp)).bitLength()}while(L>this.n);var B=L<this.n?-1:y.ucmp(this.p);return 0===B?(y.words[0]=0,y.length=1):B>0?y.isub(this.p):void 0!==y.strip?y.strip():y._strip(),y},ye.prototype.split=function(d,y){d.iushrn(this.n,0,y)},ye.prototype.imulK=function(d){return d.imul(this.k)},E(ue,ye),ue.prototype.split=function(d,y){for(var L=4194303,B=Math.min(d.length,9),v=0;v<B;v++)y.words[v]=d.words[v];if(y.length=B,d.length<=9)return d.words[0]=0,void(d.length=1);var a=d.words[9];for(y.words[y.length++]=a&L,v=10;v<d.length;v++){var C=0|d.words[v];d.words[v-10]=(C&L)<<4|a>>>22,a=C}a>>>=22,d.words[v-10]=a,0===a&&d.length>10?d.length-=10:d.length-=9},ue.prototype.imulK=function(d){d.words[d.length]=0,d.words[d.length+1]=0,d.length+=2;for(var y=0,L=0;L<d.length;L++){var B=0|d.words[L];y+=977*B,d.words[L]=67108863&y,y=64*B+(y/67108864|0)}return 0===d.words[d.length-1]&&(d.length--,0===d.words[d.length-1]&&d.length--),d},E($,ye),E(he,ye),E(w,ye),w.prototype.imulK=function(d){for(var y=0,L=0;L<d.length;L++){var B=19*(0|d.words[L])+y,v=67108863&B;B>>>=26,d.words[L]=v,y=B}return 0!==y&&(d.words[d.length++]=y),d},s._prime=function(d){if(ce[d])return ce[d];var y;if("k256"===d)y=new ue;else if("p224"===d)y=new $;else if("p192"===d)y=new he;else{if("p25519"!==d)throw new Error("Unknown prime "+d);y=new w}return ce[d]=y,y},n.prototype._verify1=function(d){_(0===d.negative,"red works only with positives"),_(d.red,"red works only with red numbers")},n.prototype._verify2=function(d,y){_(0==(d.negative|y.negative),"red works only with positives"),_(d.red&&d.red===y.red,"red works only with red numbers")},n.prototype.imod=function(d){return this.prime?this.prime.ireduce(d)._forceRed(this):(S(d,d.umod(this.m)._forceRed(this)),d)},n.prototype.neg=function(d){return d.isZero()?d.clone():this.m.sub(d)._forceRed(this)},n.prototype.add=function(d,y){this._verify2(d,y);var L=d.add(y);return L.cmp(this.m)>=0&&L.isub(this.m),L._forceRed(this)},n.prototype.iadd=function(d,y){this._verify2(d,y);var L=d.iadd(y);return L.cmp(this.m)>=0&&L.isub(this.m),L},n.prototype.sub=function(d,y){this._verify2(d,y);var L=d.sub(y);return L.cmpn(0)<0&&L.iadd(this.m),L._forceRed(this)},n.prototype.isub=function(d,y){this._verify2(d,y);var L=d.isub(y);return L.cmpn(0)<0&&L.iadd(this.m),L},n.prototype.shl=function(d,y){return this._verify1(d),this.imod(d.ushln(y))},n.prototype.imul=function(d,y){return this._verify2(d,y),this.imod(d.imul(y))},n.prototype.mul=function(d,y){return this._verify2(d,y),this.imod(d.mul(y))},n.prototype.isqr=function(d){return this.imul(d,d.clone())},n.prototype.sqr=function(d){return this.mul(d,d)},n.prototype.sqrt=function(d){if(d.isZero())return d.clone();var y=this.m.andln(3);if(_(y%2==1),3===y){var L=this.m.add(new s(1)).iushrn(2);return this.pow(d,L)}for(var B=this.m.subn(1),v=0;!B.isZero()&&0===B.andln(1);)v++,B.iushrn(1);_(!B.isZero());var a=new s(1).toRed(this),C=a.redNeg(),N=this.m.subn(1).iushrn(1),F=this.m.bitLength();for(F=new s(2*F*F).toRed(this);0!==this.pow(F,N).cmp(C);)F.redIAdd(C);for(var X=this.pow(F,B),Fe=this.pow(d,B.addn(1).iushrn(1)),ke=this.pow(d,B),Ke=v;0!==ke.cmp(a);){for(var je=ke,Ve=0;0!==je.cmp(a);Ve++)je=je.redSqr();_(Ve<Ke);var xe=this.pow(X,new s(1).iushln(Ke-Ve-1));Fe=Fe.redMul(xe),X=xe.redSqr(),ke=ke.redMul(X),Ke=Ve}return Fe},n.prototype.invm=function(d){var y=d._invmp(this.m);return 0!==y.negative?(y.negative=0,this.imod(y).redNeg()):this.imod(y)},n.prototype.pow=function(d,y){if(y.isZero())return new s(1).toRed(this);if(0===y.cmpn(1))return d.clone();var B=new Array(16);B[0]=new s(1).toRed(this),B[1]=d;for(var v=2;v<B.length;v++)B[v]=this.mul(B[v-1],d);var a=B[0],C=0,N=0,F=y.bitLength()%26;for(0===F&&(F=26),v=y.length-1;v>=0;v--){for(var X=y.words[v],Fe=F-1;Fe>=0;Fe--){var ke=X>>Fe&1;(a!==B[0]&&(a=this.sqr(a)),0!==ke||0!==C)?(C<<=1,C|=ke,(4===++N||0===v&&0===Fe)&&(a=this.mul(a,B[C]),N=0,C=0)):N=0}F=26}return a},n.prototype.convertTo=function(d){var y=d.umod(this.m);return y===d?y.clone():y},n.prototype.convertFrom=function(d){var y=d.clone();return y.red=null,y},s.mont=function(d){return new o(d)},E(o,n),o.prototype.convertTo=function(d){return this.imod(d.ushln(this.shift))},o.prototype.convertFrom=function(d){var y=this.imod(d.mul(this.rinv));return y.red=null,y},o.prototype.imul=function(d,y){if(d.isZero()||y.isZero())return d.words[0]=0,d.length=1,d;var L=d.imul(y),B=L.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),v=L.isub(B).iushrn(this.shift),a=v;return v.cmp(this.m)>=0?a=v.isub(this.m):v.cmpn(0)<0&&(a=v.iadd(this.m)),a._forceRed(this)},o.prototype.mul=function(d,y){if(d.isZero()||y.isZero())return new s(0)._forceRed(this);var L=d.mul(y),B=L.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),v=L.isub(B).iushrn(this.shift),a=v;return v.cmp(this.m)>=0?a=v.isub(this.m):v.cmpn(0)<0&&(a=v.iadd(this.m)),a._forceRed(this)},o.prototype.invm=function(d){return this.imod(d._invmp(this.m).mul(this.r2))._forceRed(this)}})(Ue=m.nmd(Ue),this)},340:(Ue,q,m)=>{var e;function t(E){this.rand=E}if(Ue.exports=function(s){return e||(e=new t(null)),e.generate(s)},Ue.exports.Rand=t,t.prototype.generate=function(s){return this._rand(s)},t.prototype._rand=function(s){if(this.rand.getBytes)return this.rand.getBytes(s);for(var D=new Uint8Array(s),u=0;u<D.length;u++)D[u]=this.rand.getByte();return D},"object"==typeof self)self.crypto&&self.crypto.getRandomValues?t.prototype._rand=function(s){var D=new Uint8Array(s);return self.crypto.getRandomValues(D),D}:self.msCrypto&&self.msCrypto.getRandomValues?t.prototype._rand=function(s){var D=new Uint8Array(s);return self.msCrypto.getRandomValues(D),D}:"object"==typeof window&&(t.prototype._rand=function(){throw new Error("Not implemented yet")});else try{var _=m(9501);if("function"!=typeof _.randomBytes)throw new Error("Not supported");t.prototype._rand=function(s){return _.randomBytes(s)}}catch{}},7560:(Ue,q,m)=>{var e=m(9708).Buffer;function t(k){e.isBuffer(k)||(k=e.from(k));for(var p=k.length/4|0,S=new Array(p),A=0;A<p;A++)S[A]=k.readUInt32BE(4*A);return S}function _(k){for(;0<k.length;k++)k[0]=0}function E(k,p,S,A,P){for(var _e,ce,ye,ue,M=S[0],z=S[1],I=S[2],W=S[3],Z=k[0]^p[0],Q=k[1]^p[1],ie=k[2]^p[2],ae=k[3]^p[3],$=4,he=1;he<P;he++)_e=M[Z>>>24]^z[Q>>>16&255]^I[ie>>>8&255]^W[255&ae]^p[$++],ce=M[Q>>>24]^z[ie>>>16&255]^I[ae>>>8&255]^W[255&Z]^p[$++],ye=M[ie>>>24]^z[ae>>>16&255]^I[Z>>>8&255]^W[255&Q]^p[$++],ue=M[ae>>>24]^z[Z>>>16&255]^I[Q>>>8&255]^W[255&ie]^p[$++],Z=_e,Q=ce,ie=ye,ae=ue;return _e=(A[Z>>>24]<<24|A[Q>>>16&255]<<16|A[ie>>>8&255]<<8|A[255&ae])^p[$++],ce=(A[Q>>>24]<<24|A[ie>>>16&255]<<16|A[ae>>>8&255]<<8|A[255&Z])^p[$++],ye=(A[ie>>>24]<<24|A[ae>>>16&255]<<16|A[Z>>>8&255]<<8|A[255&Q])^p[$++],ue=(A[ae>>>24]<<24|A[Z>>>16&255]<<16|A[Q>>>8&255]<<8|A[255&ie])^p[$++],[_e>>>=0,ce>>>=0,ye>>>=0,ue>>>=0]}var s=[0,1,2,4,8,16,32,64,128,27,54],D=function(){for(var k=new Array(256),p=0;p<256;p++)k[p]=p<128?p<<1:p<<1^283;for(var S=[],A=[],P=[[],[],[],[]],M=[[],[],[],[]],z=0,I=0,W=0;W<256;++W){var Z=I^I<<1^I<<2^I<<3^I<<4;Z=Z>>>8^255&Z^99,S[z]=Z,A[Z]=z;var Q=k[z],ie=k[Q],ae=k[ie],_e=257*k[Z]^16843008*Z;P[0][z]=_e<<24|_e>>>8,P[1][z]=_e<<16|_e>>>16,P[2][z]=_e<<8|_e>>>24,P[3][z]=_e,_e=16843009*ae^65537*ie^257*Q^16843008*z,M[0][Z]=_e<<24|_e>>>8,M[1][Z]=_e<<16|_e>>>16,M[2][Z]=_e<<8|_e>>>24,M[3][Z]=_e,0===z?z=I=1:(z=Q^k[k[k[ae^Q]]],I^=k[k[I]])}return{SBOX:S,INV_SBOX:A,SUB_MIX:P,INV_SUB_MIX:M}}();function u(k){this._key=t(k),this._reset()}u.blockSize=16,u.keySize=32,u.prototype.blockSize=u.blockSize,u.prototype.keySize=u.keySize,u.prototype._reset=function(){for(var k=this._key,p=k.length,S=p+6,A=4*(S+1),P=[],M=0;M<p;M++)P[M]=k[M];for(M=p;M<A;M++){var z=P[M-1];M%p==0?(z=z<<8|z>>>24,z=D.SBOX[z>>>24]<<24|D.SBOX[z>>>16&255]<<16|D.SBOX[z>>>8&255]<<8|D.SBOX[255&z],z^=s[M/p|0]<<24):p>6&&M%p==4&&(z=D.SBOX[z>>>24]<<24|D.SBOX[z>>>16&255]<<16|D.SBOX[z>>>8&255]<<8|D.SBOX[255&z]),P[M]=P[M-p]^z}for(var I=[],W=0;W<A;W++){var Z=A-W,Q=P[Z-(W%4?0:4)];I[W]=W<4||Z<=4?Q:D.INV_SUB_MIX[0][D.SBOX[Q>>>24]]^D.INV_SUB_MIX[1][D.SBOX[Q>>>16&255]]^D.INV_SUB_MIX[2][D.SBOX[Q>>>8&255]]^D.INV_SUB_MIX[3][D.SBOX[255&Q]]}this._nRounds=S,this._keySchedule=P,this._invKeySchedule=I},u.prototype.encryptBlockRaw=function(k){return E(k=t(k),this._keySchedule,D.SUB_MIX,D.SBOX,this._nRounds)},u.prototype.encryptBlock=function(k){var p=this.encryptBlockRaw(k),S=e.allocUnsafe(16);return S.writeUInt32BE(p[0],0),S.writeUInt32BE(p[1],4),S.writeUInt32BE(p[2],8),S.writeUInt32BE(p[3],12),S},u.prototype.decryptBlock=function(k){var p=(k=t(k))[1];k[1]=k[3],k[3]=p;var S=E(k,this._invKeySchedule,D.INV_SUB_MIX,D.INV_SBOX,this._nRounds),A=e.allocUnsafe(16);return A.writeUInt32BE(S[0],0),A.writeUInt32BE(S[3],4),A.writeUInt32BE(S[2],8),A.writeUInt32BE(S[1],12),A},u.prototype.scrub=function(){_(this._keySchedule),_(this._invKeySchedule),_(this._key)},Ue.exports.AES=u},7105:(Ue,q,m)=>{var e=m(7560),t=m(9708).Buffer,_=m(3735),E=m(5035),s=m(5045),D=m(7702),u=m(9305);function S(A,P,M,z){_.call(this);var I=t.alloc(4,0);this._cipher=new e.AES(P);var W=this._cipher.encryptBlock(I);this._ghash=new s(W),M=function p(A,P,M){if(12===P.length)return A._finID=t.concat([P,t.from([0,0,0,1])]),t.concat([P,t.from([0,0,0,2])]);var z=new s(M),I=P.length,W=I%16;z.update(P),W&&(W=16-W,z.update(t.alloc(W,0))),z.update(t.alloc(8,0));var Z=8*I,Q=t.alloc(8);Q.writeUIntBE(Z,0,8),z.update(Q),A._finID=z.state;var ie=t.from(A._finID);return u(ie),ie}(this,M,W),this._prev=t.from(M),this._cache=t.allocUnsafe(0),this._secCache=t.allocUnsafe(0),this._decrypt=z,this._alen=0,this._len=0,this._mode=A,this._authTag=null,this._called=!1}E(S,_),S.prototype._update=function(A){if(!this._called&&this._alen){var P=16-this._alen%16;P<16&&(P=t.alloc(P,0),this._ghash.update(P))}this._called=!0;var M=this._mode.encrypt(this,A);return this._decrypt?this._ghash.update(A):this._ghash.update(M),this._len+=A.length,M},S.prototype._final=function(){if(this._decrypt&&!this._authTag)throw new Error("Unsupported state or unable to authenticate data");var A=D(this._ghash.final(8*this._alen,8*this._len),this._cipher.encryptBlock(this._finID));if(this._decrypt&&function k(A,P){var M=0;A.length!==P.length&&M++;for(var z=Math.min(A.length,P.length),I=0;I<z;++I)M+=A[I]^P[I];return M}(A,this._authTag))throw new Error("Unsupported state or unable to authenticate data");this._authTag=A,this._cipher.scrub()},S.prototype.getAuthTag=function(){if(this._decrypt||!t.isBuffer(this._authTag))throw new Error("Attempting to get auth tag in unsupported state");return this._authTag},S.prototype.setAuthTag=function(P){if(!this._decrypt)throw new Error("Attempting to set auth tag in unsupported state");this._authTag=P},S.prototype.setAAD=function(P){if(this._called)throw new Error("Attempting to set AAD in unsupported state");this._ghash.update(P),this._alen+=P.length},Ue.exports=S},3170:(Ue,q,m)=>{var e=m(9185),t=m(8991),_=m(4946);q.createCipher=q.Cipher=e.createCipher,q.createCipheriv=q.Cipheriv=e.createCipheriv,q.createDecipher=q.Decipher=t.createDecipher,q.createDecipheriv=q.Decipheriv=t.createDecipheriv,q.listCiphers=q.getCiphers=function E(){return Object.keys(_)}},8991:(Ue,q,m)=>{var e=m(7105),t=m(9708).Buffer,_=m(7129),E=m(3217),s=m(3735),D=m(7560),u=m(153);function p(z,I,W){s.call(this),this._cache=new S,this._last=void 0,this._cipher=new D.AES(I),this._prev=t.from(W),this._mode=z,this._autopadding=!0}function S(){this.cache=t.allocUnsafe(0)}function P(z,I,W){var Z=_[z.toLowerCase()];if(!Z)throw new TypeError("invalid suite type");if("string"==typeof W&&(W=t.from(W)),"GCM"!==Z.mode&&W.length!==Z.iv)throw new TypeError("invalid iv length "+W.length);if("string"==typeof I&&(I=t.from(I)),I.length!==Z.key/8)throw new TypeError("invalid key length "+I.length);return"stream"===Z.type?new E(Z.module,I,W,!0):"auth"===Z.type?new e(Z.module,I,W,!0):new p(Z.module,I,W)}m(5035)(p,s),p.prototype._update=function(z){this._cache.add(z);for(var I,W,Z=[];I=this._cache.get(this._autopadding);)W=this._mode.decrypt(this,I),Z.push(W);return t.concat(Z)},p.prototype._final=function(){var z=this._cache.flush();if(this._autopadding)return function A(z){var I=z[15];if(I<1||I>16)throw new Error("unable to decrypt data");for(var W=-1;++W<I;)if(z[W+(16-I)]!==I)throw new Error("unable to decrypt data");if(16!==I)return z.slice(0,16-I)}(this._mode.decrypt(this,z));if(z)throw new Error("data not multiple of block length")},p.prototype.setAutoPadding=function(z){return this._autopadding=!!z,this},S.prototype.add=function(z){this.cache=t.concat([this.cache,z])},S.prototype.get=function(z){var I;if(z){if(this.cache.length>16)return I=this.cache.slice(0,16),this.cache=this.cache.slice(16),I}else if(this.cache.length>=16)return I=this.cache.slice(0,16),this.cache=this.cache.slice(16),I;return null},S.prototype.flush=function(){if(this.cache.length)return this.cache},q.createDecipher=function M(z,I){var W=_[z.toLowerCase()];if(!W)throw new TypeError("invalid suite type");var Z=u(I,!1,W.key,W.iv);return P(z,Z.key,Z.iv)},q.createDecipheriv=P},9185:(Ue,q,m)=>{var e=m(7129),t=m(7105),_=m(9708).Buffer,E=m(3217),s=m(3735),D=m(7560),u=m(153);function p(z,I,W){s.call(this),this._cache=new A,this._cipher=new D.AES(I),this._prev=_.from(W),this._mode=z,this._autopadding=!0}m(5035)(p,s),p.prototype._update=function(z){this._cache.add(z);for(var I,W,Z=[];I=this._cache.get();)W=this._mode.encrypt(this,I),Z.push(W);return _.concat(Z)};var S=_.alloc(16,16);function A(){this.cache=_.allocUnsafe(0)}function P(z,I,W){var Z=e[z.toLowerCase()];if(!Z)throw new TypeError("invalid suite type");if("string"==typeof I&&(I=_.from(I)),I.length!==Z.key/8)throw new TypeError("invalid key length "+I.length);if("string"==typeof W&&(W=_.from(W)),"GCM"!==Z.mode&&W.length!==Z.iv)throw new TypeError("invalid iv length "+W.length);return"stream"===Z.type?new E(Z.module,I,W):"auth"===Z.type?new t(Z.module,I,W):new p(Z.module,I,W)}p.prototype._final=function(){var z=this._cache.flush();if(this._autopadding)return z=this._mode.encrypt(this,z),this._cipher.scrub(),z;if(!z.equals(S))throw this._cipher.scrub(),new Error("data not multiple of block length")},p.prototype.setAutoPadding=function(z){return this._autopadding=!!z,this},A.prototype.add=function(z){this.cache=_.concat([this.cache,z])},A.prototype.get=function(){if(this.cache.length>15){var z=this.cache.slice(0,16);return this.cache=this.cache.slice(16),z}return null},A.prototype.flush=function(){for(var z=16-this.cache.length,I=_.allocUnsafe(z),W=-1;++W<z;)I.writeUInt8(z,W);return _.concat([this.cache,I])},q.createCipheriv=P,q.createCipher=function M(z,I){var W=e[z.toLowerCase()];if(!W)throw new TypeError("invalid suite type");var Z=u(I,!1,W.key,W.iv);return P(z,Z.key,Z.iv)}},5045:(Ue,q,m)=>{var e=m(9708).Buffer,t=e.alloc(16,0);function E(D){var u=e.allocUnsafe(16);return u.writeUInt32BE(D[0]>>>0,0),u.writeUInt32BE(D[1]>>>0,4),u.writeUInt32BE(D[2]>>>0,8),u.writeUInt32BE(D[3]>>>0,12),u}function s(D){this.h=D,this.state=e.alloc(16,0),this.cache=e.allocUnsafe(0)}s.prototype.ghash=function(D){for(var u=-1;++u<D.length;)this.state[u]^=D[u];this._multiply()},s.prototype._multiply=function(){for(var k,S,D=function _(D){return[D.readUInt32BE(0),D.readUInt32BE(4),D.readUInt32BE(8),D.readUInt32BE(12)]}(this.h),u=[0,0,0,0],A=-1;++A<128;){for(0!=(this.state[~~(A/8)]&1<<7-A%8)&&(u[0]^=D[0],u[1]^=D[1],u[2]^=D[2],u[3]^=D[3]),S=0!=(1&D[3]),k=3;k>0;k--)D[k]=D[k]>>>1|(1&D[k-1])<<31;D[0]=D[0]>>>1,S&&(D[0]=D[0]^225<<24)}this.state=E(u)},s.prototype.update=function(D){this.cache=e.concat([this.cache,D]);for(var u;this.cache.length>=16;)u=this.cache.slice(0,16),this.cache=this.cache.slice(16),this.ghash(u)},s.prototype.final=function(D,u){return this.cache.length&&this.ghash(e.concat([this.cache,t],16)),this.ghash(E([0,D,0,u])),this.state},Ue.exports=s},9305:Ue=>{Ue.exports=function q(m){for(var t,e=m.length;e--;){if(255!==(t=m.readUInt8(e))){t++,m.writeUInt8(t,e);break}m.writeUInt8(0,e)}}},237:(Ue,q,m)=>{var e=m(7702);q.encrypt=function(t,_){var E=e(_,t._prev);return t._prev=t._cipher.encryptBlock(E),t._prev},q.decrypt=function(t,_){var E=t._prev;t._prev=_;var s=t._cipher.decryptBlock(_);return e(s,E)}},9572:(Ue,q,m)=>{var e=m(9708).Buffer,t=m(7702);function _(E,s,D){var u=s.length,k=t(s,E._cache);return E._cache=E._cache.slice(u),E._prev=e.concat([E._prev,D?s:k]),k}q.encrypt=function(E,s,D){for(var k,u=e.allocUnsafe(0);s.length;){if(0===E._cache.length&&(E._cache=E._cipher.encryptBlock(E._prev),E._prev=e.allocUnsafe(0)),!(E._cache.length<=s.length)){u=e.concat([u,_(E,s,D)]);break}k=E._cache.length,u=e.concat([u,_(E,s.slice(0,k),D)]),s=s.slice(k)}return u}},3989:(Ue,q,m)=>{var e=m(9708).Buffer;function t(E,s,D){for(var A,P,k=-1,S=0;++k<8;)A=s&1<<7-k?128:0,S+=(128&(P=E._cipher.encryptBlock(E._prev)[0]^A))>>k%8,E._prev=_(E._prev,D?A:P);return S}function _(E,s){var D=E.length,u=-1,k=e.allocUnsafe(E.length);for(E=e.concat([E,e.from([s])]);++u<D;)k[u]=E[u]<<1|E[u+1]>>7;return k}q.encrypt=function(E,s,D){for(var u=s.length,k=e.allocUnsafe(u),p=-1;++p<u;)k[p]=t(E,s[p],D);return k}},4164:(Ue,q,m)=>{var e=m(9708).Buffer;function t(_,E,s){var u=_._cipher.encryptBlock(_._prev)[0]^E;return _._prev=e.concat([_._prev.slice(1),e.from([s?E:u])]),u}q.encrypt=function(_,E,s){for(var D=E.length,u=e.allocUnsafe(D),k=-1;++k<D;)u[k]=t(_,E[k],s);return u}},5924:(Ue,q,m)=>{var e=m(7702),t=m(9708).Buffer,_=m(9305);function E(D){var u=D._cipher.encryptBlockRaw(D._prev);return _(D._prev),u}q.encrypt=function(D,u){var k=Math.ceil(u.length/16),p=D._cache.length;D._cache=t.concat([D._cache,t.allocUnsafe(16*k)]);for(var S=0;S<k;S++){var A=E(D),P=p+16*S;D._cache.writeUInt32BE(A[0],P+0),D._cache.writeUInt32BE(A[1],P+4),D._cache.writeUInt32BE(A[2],P+8),D._cache.writeUInt32BE(A[3],P+12)}var M=D._cache.slice(0,u.length);return D._cache=D._cache.slice(u.length),e(u,M)}},323:(Ue,q)=>{q.encrypt=function(m,e){return m._cipher.encryptBlock(e)},q.decrypt=function(m,e){return m._cipher.decryptBlock(e)}},7129:(Ue,q,m)=>{var e={ECB:m(323),CBC:m(237),CFB:m(9572),CFB8:m(4164),CFB1:m(3989),OFB:m(6701),CTR:m(5924),GCM:m(5924)},t=m(4946);for(var _ in t)t[_].module=e[t[_].mode];Ue.exports=t},6701:(Ue,q,m)=>{var e=m(7702);function t(_){return _._prev=_._cipher.encryptBlock(_._prev),_._prev}q.encrypt=function(_,E){for(;_._cache.length<E.length;)_._cache=Buffer.concat([_._cache,t(_)]);var s=_._cache.slice(0,E.length);return _._cache=_._cache.slice(E.length),e(E,s)}},3217:(Ue,q,m)=>{var e=m(7560),t=m(9708).Buffer,_=m(3735);function s(D,u,k,p){_.call(this),this._cipher=new e.AES(u),this._prev=t.from(k),this._cache=t.allocUnsafe(0),this._secCache=t.allocUnsafe(0),this._decrypt=p,this._mode=D}m(5035)(s,_),s.prototype._update=function(D){return this._mode.encrypt(this,D,this._decrypt)},s.prototype._final=function(){this._cipher.scrub()},Ue.exports=s},4791:(Ue,q,m)=>{var e=m(7765),t=m(3170),_=m(7129),E=m(2427),s=m(153);function k(A,P,M){if(A=A.toLowerCase(),_[A])return t.createCipheriv(A,P,M);if(E[A])return new e({key:P,iv:M,mode:A});throw new TypeError("invalid suite type")}function p(A,P,M){if(A=A.toLowerCase(),_[A])return t.createDecipheriv(A,P,M);if(E[A])return new e({key:P,iv:M,mode:A,decrypt:!0});throw new TypeError("invalid suite type")}q.createCipher=q.Cipher=function D(A,P){var M,z;if(A=A.toLowerCase(),_[A])M=_[A].key,z=_[A].iv;else{if(!E[A])throw new TypeError("invalid suite type");M=8*E[A].key,z=E[A].iv}var I=s(P,!1,M,z);return k(A,I.key,I.iv)},q.createCipheriv=q.Cipheriv=k,q.createDecipher=q.Decipher=function u(A,P){var M,z;if(A=A.toLowerCase(),_[A])M=_[A].key,z=_[A].iv;else{if(!E[A])throw new TypeError("invalid suite type");M=8*E[A].key,z=E[A].iv}var I=s(P,!1,M,z);return p(A,I.key,I.iv)},q.createDecipheriv=q.Decipheriv=p,q.listCiphers=q.getCiphers=function S(){return Object.keys(E).concat(t.getCiphers())}},7765:(Ue,q,m)=>{var e=m(3735),t=m(6222),_=m(5035),E=m(9708).Buffer,s={"des-ede3-cbc":t.CBC.instantiate(t.EDE),"des-ede3":t.EDE,"des-ede-cbc":t.CBC.instantiate(t.EDE),"des-ede":t.EDE,"des-cbc":t.CBC.instantiate(t.DES),"des-ecb":t.DES};function D(u){e.call(this);var S,k=u.mode.toLowerCase(),p=s[k];S=u.decrypt?"decrypt":"encrypt";var A=u.key;E.isBuffer(A)||(A=E.from(A)),("des-ede"===k||"des-ede-cbc"===k)&&(A=E.concat([A,A.slice(0,8)]));var P=u.iv;E.isBuffer(P)||(P=E.from(P)),this._des=p.create({key:A,iv:P,type:S})}s.des=s["des-cbc"],s.des3=s["des-ede3-cbc"],Ue.exports=D,_(D,e),D.prototype._update=function(u){return E.from(this._des.update(u))},D.prototype._final=function(){return E.from(this._des.final())}},2427:(Ue,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}},6661:(Ue,q,m)=>{var e=m(6585),t=m(1186);function E(D){var k,u=D.modulus.byteLength();do{k=new e(t(u))}while(k.cmp(D.modulus)>=0||!k.umod(D.prime1)||!k.umod(D.prime2));return k}function s(D,u){var k=function _(D){var u=E(D);return{blinder:u.toRed(e.mont(D.modulus)).redPow(new e(D.publicExponent)).fromRed(),unblinder:u.invm(D.modulus)}}(u),p=u.modulus.byteLength(),S=new e(D).mul(k.blinder).umod(u.modulus),A=S.toRed(e.mont(u.prime1)),P=S.toRed(e.mont(u.prime2)),M=u.coefficient,z=u.prime1,I=u.prime2,W=A.redPow(u.exponent1).fromRed(),Z=P.redPow(u.exponent2).fromRed(),Q=W.isub(Z).imul(M).umod(z).imul(I);return Z.iadd(Q).imul(k.unblinder).umod(u.modulus).toArrayLike(Buffer,"be",p)}s.getr=E,Ue.exports=s},8043:(Ue,q,m)=>{Ue.exports=m(5207)},2124:(Ue,q,m)=>{var e=m(9708).Buffer,t=m(145),_=m(9697),E=m(5035),s=m(5127),D=m(4596),u=m(5207);function k(P){_.Writable.call(this);var M=u[P];if(!M)throw new Error("Unknown message digest");this._hashType=M.hash,this._hash=t(M.hash),this._tag=M.id,this._signType=M.sign}function p(P){_.Writable.call(this);var M=u[P];if(!M)throw new Error("Unknown message digest");this._hash=t(M.hash),this._tag=M.id,this._signType=M.sign}function S(P){return new k(P)}function A(P){return new p(P)}Object.keys(u).forEach(function(P){u[P].id=e.from(u[P].id,"hex"),u[P.toLowerCase()]=u[P]}),E(k,_.Writable),k.prototype._write=function(M,z,I){this._hash.update(M),I()},k.prototype.update=function(M,z){return"string"==typeof M&&(M=e.from(M,z)),this._hash.update(M),this},k.prototype.sign=function(M,z){this.end();var I=this._hash.digest(),W=s(I,M,this._hashType,this._signType,this._tag);return z?W.toString(z):W},E(p,_.Writable),p.prototype._write=function(M,z,I){this._hash.update(M),I()},p.prototype.update=function(M,z){return"string"==typeof M&&(M=e.from(M,z)),this._hash.update(M),this},p.prototype.verify=function(M,z,I){"string"==typeof z&&(z=e.from(z,I)),this.end();var W=this._hash.digest();return D(z,W,M,this._signType,this._tag)},Ue.exports={Sign:S,Verify:A,createSign:S,createVerify:A}},5127:(Ue,q,m)=>{var e=m(9708).Buffer,t=m(3640),_=m(6661),E=m(2142).ec,s=m(6585),D=m(5752),u=m(7036);function P(Z,Q,ie,ae){if((Z=e.from(Z.toArray())).length<Q.byteLength()){var _e=e.alloc(Q.byteLength()-Z.length);Z=e.concat([_e,Z])}var ce=ie.length,ye=function z(Z,Q){Z=(Z=M(Z,Q)).mod(Q);var ie=e.from(Z.toArray());if(ie.length<Q.byteLength()){var ae=e.alloc(Q.byteLength()-ie.length);ie=e.concat([ae,ie])}return ie}(ie,Q),ue=e.alloc(ce);ue.fill(1);var $=e.alloc(ce);return $=t(ae,$).update(ue).update(e.from([0])).update(Z).update(ye).digest(),ue=t(ae,$).update(ue).digest(),{k:$=t(ae,$).update(ue).update(e.from([1])).update(Z).update(ye).digest(),v:ue=t(ae,$).update(ue).digest()}}function M(Z,Q){var ie=new s(Z),ae=(Z.length<<3)-Q.bitLength();return ae>0&&ie.ishrn(ae),ie}function I(Z,Q,ie){var ae,_e;do{for(ae=e.alloc(0);8*ae.length<Z.bitLength();)Q.v=t(ie,Q.k).update(Q.v).digest(),ae=e.concat([ae,Q.v]);_e=M(ae,Z),Q.k=t(ie,Q.k).update(Q.v).update(e.from([0])).digest(),Q.v=t(ie,Q.k).update(Q.v).digest()}while(-1!==_e.cmp(Z));return _e}function W(Z,Q,ie,ae){return Z.toRed(s.mont(ie)).redPow(Q).fromRed().mod(ae)}Ue.exports=function k(Z,Q,ie,ae,_e){var ce=D(Q);if(ce.curve){if("ecdsa"!==ae&&"ecdsa/rsa"!==ae)throw new Error("wrong private key type");return function p(Z,Q){var ie=u[Q.curve.join(".")];if(!ie)throw new Error("unknown curve "+Q.curve.join("."));var ce=new E(ie).keyFromPrivate(Q.privateKey).sign(Z);return e.from(ce.toDER())}(Z,ce)}if("dsa"===ce.type){if("dsa"!==ae)throw new Error("wrong private key type");return function S(Z,Q,ie){for(var $,ae=Q.params.priv_key,_e=Q.params.p,ce=Q.params.q,ye=Q.params.g,ue=new s(0),he=M(Z,ce).mod(ce),w=!1,n=P(ae,ce,Z,ie);!1===w;)$=I(ce,n,ie),ue=W(ye,$,_e,ce),0===(w=$.invm(ce).imul(he.add(ae.mul(ue))).mod(ce)).cmpn(0)&&(w=!1,ue=new s(0));return function A(Z,Q){Z=Z.toArray(),Q=Q.toArray(),128&Z[0]&&(Z=[0].concat(Z)),128&Q[0]&&(Q=[0].concat(Q));var ae=[48,Z.length+Q.length+4,2,Z.length];return ae=ae.concat(Z,[2,Q.length],Q),e.from(ae)}(ue,w)}(Z,ce,ie)}if("rsa"!==ae&&"ecdsa/rsa"!==ae)throw new Error("wrong private key type");Z=e.concat([_e,Z]);for(var ye=ce.modulus.byteLength(),ue=[0,1];Z.length+ue.length+1<ye;)ue.push(255);ue.push(0);for(var $=-1;++$<Z.length;)ue.push(Z[$]);return _(ue,ce)},Ue.exports.getKey=P,Ue.exports.makeKey=I},4596:(Ue,q,m)=>{var e=m(9708).Buffer,t=m(6585),_=m(2142).ec,E=m(5752),s=m(7036);function p(S,A){if(S.cmpn(0)<=0)throw new Error("invalid sig");if(S.cmp(A)>=A)throw new Error("invalid sig")}Ue.exports=function D(S,A,P,M,z){var I=E(P);if("ec"===I.type){if("ecdsa"!==M&&"ecdsa/rsa"!==M)throw new Error("wrong public key type");return function u(S,A,P){var M=s[P.data.algorithm.curve.join(".")];if(!M)throw new Error("unknown curve "+P.data.algorithm.curve.join("."));var z=new _(M),I=P.data.subjectPrivateKey.data;return z.verify(A,S,I)}(S,A,I)}if("dsa"===I.type){if("dsa"!==M)throw new Error("wrong public key type");return function k(S,A,P){var M=P.data.p,z=P.data.q,I=P.data.g,W=P.data.pub_key,Z=E.signature.decode(S,"der"),Q=Z.s,ie=Z.r;p(Q,z),p(ie,z);var ae=t.mont(M),_e=Q.invm(z);return 0===I.toRed(ae).redPow(new t(A).mul(_e).mod(z)).fromRed().mul(W.toRed(ae).redPow(ie.mul(_e).mod(z)).fromRed()).mod(M).mod(z).cmp(ie)}(S,A,I)}if("rsa"!==M&&"ecdsa/rsa"!==M)throw new Error("wrong public key type");A=e.concat([z,A]);for(var W=I.modulus.byteLength(),Z=[1],Q=0;A.length+Z.length+2<W;)Z.push(255),Q++;Z.push(0);for(var ie=-1;++ie<A.length;)Z.push(A[ie]);Z=e.from(Z);var ae=t.mont(I.modulus);S=(S=new t(S).toRed(ae)).redPow(new t(I.publicExponent)),S=e.from(S.fromRed().toArray());var _e=Q<8?1:0;for(W=Math.min(S.length,Z.length),S.length!==Z.length&&(_e=1),ie=-1;++ie<W;)_e|=S[ie]^Z[ie];return 0===_e}},7702:Ue=>{Ue.exports=function(m,e){for(var t=Math.min(m.length,e.length),_=new Buffer(t),E=0;E<t;++E)_[E]=m[E]^e[E];return _}},3195:(Ue,q,m)=>{"use strict";var e=m(2173),t=m(4920),_="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):null;q.Buffer=u,q.SlowBuffer=function Q(Le){return+Le!=Le&&(Le=0),u.alloc(+Le)},q.INSPECT_MAX_BYTES=50;var E=2147483647;function D(Le){if(Le>E)throw new RangeError('The value "'+Le+'" is invalid for option "size"');var Ae=new Uint8Array(Le);return Object.setPrototypeOf(Ae,u.prototype),Ae}function u(Le,Ae,te){if("number"==typeof Le){if("string"==typeof Ae)throw new TypeError('The "string" argument must be of type string. Received type number');return A(Le)}return k(Le,Ae,te)}function k(Le,Ae,te){if("string"==typeof Le)return function P(Le,Ae){if(("string"!=typeof Ae||""===Ae)&&(Ae="utf8"),!u.isEncoding(Ae))throw new TypeError("Unknown encoding: "+Ae);var te=0|ie(Le,Ae),pe=D(te),ee=pe.write(Le,Ae);return ee!==te&&(pe=pe.slice(0,ee)),pe}(Le,Ae);if(ArrayBuffer.isView(Le))return function z(Le){if(ve(Le,Uint8Array)){var Ae=new Uint8Array(Le);return I(Ae.buffer,Ae.byteOffset,Ae.byteLength)}return M(Le)}(Le);if(null==Le)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof Le);if(ve(Le,ArrayBuffer)||Le&&ve(Le.buffer,ArrayBuffer)||typeof SharedArrayBuffer<"u"&&(ve(Le,SharedArrayBuffer)||Le&&ve(Le.buffer,SharedArrayBuffer)))return I(Le,Ae,te);if("number"==typeof Le)throw new TypeError('The "value" argument must not be of type number. Received type number');var pe=Le.valueOf&&Le.valueOf();if(null!=pe&&pe!==Le)return u.from(pe,Ae,te);var ee=function W(Le){if(u.isBuffer(Le)){var Ae=0|Z(Le.length),te=D(Ae);return 0===te.length||Le.copy(te,0,0,Ae),te}if(void 0!==Le.length)return"number"!=typeof Le.length||et(Le.length)?D(0):M(Le);if("Buffer"===Le.type&&Array.isArray(Le.data))return M(Le.data)}(Le);if(ee)return ee;if(typeof Symbol<"u"&&null!=Symbol.toPrimitive&&"function"==typeof Le[Symbol.toPrimitive])return u.from(Le[Symbol.toPrimitive]("string"),Ae,te);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof Le)}function p(Le){if("number"!=typeof Le)throw new TypeError('"size" argument must be of type number');if(Le<0)throw new RangeError('The value "'+Le+'" is invalid for option "size"')}function A(Le){return p(Le),D(Le<0?0:0|Z(Le))}function M(Le){for(var Ae=Le.length<0?0:0|Z(Le.length),te=D(Ae),pe=0;pe<Ae;pe+=1)te[pe]=255&Le[pe];return te}function I(Le,Ae,te){if(Ae<0||Le.byteLength<Ae)throw new RangeError('"offset" is outside of buffer bounds');if(Le.byteLength<Ae+(te||0))throw new RangeError('"length" is outside of buffer bounds');var pe;return pe=void 0===Ae&&void 0===te?new Uint8Array(Le):void 0===te?new Uint8Array(Le,Ae):new Uint8Array(Le,Ae,te),Object.setPrototypeOf(pe,u.prototype),pe}function Z(Le){if(Le>=E)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+E.toString(16)+" bytes");return 0|Le}function ie(Le,Ae){if(u.isBuffer(Le))return Le.length;if(ArrayBuffer.isView(Le)||ve(Le,ArrayBuffer))return Le.byteLength;if("string"!=typeof Le)throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof Le);var te=Le.length,pe=arguments.length>2&&!0===arguments[2];if(!pe&&0===te)return 0;for(var ee=!1;;)switch(Ae){case"ascii":case"latin1":case"binary":return te;case"utf8":case"utf-8":return je(Le).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*te;case"hex":return te>>>1;case"base64":return Ze(Le).length;default:if(ee)return pe?-1:je(Le).length;Ae=(""+Ae).toLowerCase(),ee=!0}}function ae(Le,Ae,te){var pe=!1;if((void 0===Ae||Ae<0)&&(Ae=0),Ae>this.length||((void 0===te||te>this.length)&&(te=this.length),te<=0)||(te>>>=0)<=(Ae>>>=0))return"";for(Le||(Le="utf8");;)switch(Le){case"hex":return v(this,Ae,te);case"utf8":case"utf-8":return h(this,Ae,te);case"ascii":return L(this,Ae,te);case"latin1":case"binary":return B(this,Ae,te);case"base64":return o(this,Ae,te);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return a(this,Ae,te);default:if(pe)throw new TypeError("Unknown encoding: "+Le);Le=(Le+"").toLowerCase(),pe=!0}}function _e(Le,Ae,te){var pe=Le[Ae];Le[Ae]=Le[te],Le[te]=pe}function ce(Le,Ae,te,pe,ee){if(0===Le.length)return-1;if("string"==typeof te?(pe=te,te=0):te>2147483647?te=2147483647:te<-2147483648&&(te=-2147483648),et(te=+te)&&(te=ee?0:Le.length-1),te<0&&(te=Le.length+te),te>=Le.length){if(ee)return-1;te=Le.length-1}else if(te<0){if(!ee)return-1;te=0}if("string"==typeof Ae&&(Ae=u.from(Ae,pe)),u.isBuffer(Ae))return 0===Ae.length?-1:ye(Le,Ae,te,pe,ee);if("number"==typeof Ae)return Ae&=255,"function"==typeof Uint8Array.prototype.indexOf?ee?Uint8Array.prototype.indexOf.call(Le,Ae,te):Uint8Array.prototype.lastIndexOf.call(Le,Ae,te):ye(Le,[Ae],te,pe,ee);throw new TypeError("val must be string, number or Buffer")}function ye(Le,Ae,te,pe,ee){var le,H=1,j=Le.length,Oe=Ae.length;if(void 0!==pe&&("ucs2"===(pe=String(pe).toLowerCase())||"ucs-2"===pe||"utf16le"===pe||"utf-16le"===pe)){if(Le.length<2||Ae.length<2)return-1;H=2,j/=2,Oe/=2,te/=2}function Re(un,Bt){return 1===H?un[Bt]:un.readUInt16BE(Bt*H)}if(ee){var _t=-1;for(le=te;le<j;le++)if(Re(Le,le)===Re(Ae,-1===_t?0:le-_t)){if(-1===_t&&(_t=le),le-_t+1===Oe)return _t*H}else-1!==_t&&(le-=le-_t),_t=-1}else for(te+Oe>j&&(te=j-Oe),le=te;le>=0;le--){for(var it=!0,Ct=0;Ct<Oe;Ct++)if(Re(Le,le+Ct)!==Re(Ae,Ct)){it=!1;break}if(it)return le}return-1}function ue(Le,Ae,te,pe){te=Number(te)||0;var ee=Le.length-te;pe?(pe=Number(pe))>ee&&(pe=ee):pe=ee;var H=Ae.length;pe>H/2&&(pe=H/2);for(var j=0;j<pe;++j){var Oe=parseInt(Ae.substr(2*j,2),16);if(et(Oe))return j;Le[te+j]=Oe}return j}function $(Le,Ae,te,pe){return Ie(je(Ae,Le.length-te),Le,te,pe)}function he(Le,Ae,te,pe){return Ie(function Ve(Le){for(var Ae=[],te=0;te<Le.length;++te)Ae.push(255&Le.charCodeAt(te));return Ae}(Ae),Le,te,pe)}function w(Le,Ae,te,pe){return Ie(Ze(Ae),Le,te,pe)}function n(Le,Ae,te,pe){return Ie(function xe(Le,Ae){for(var te,pe,ee,H=[],j=0;j<Le.length&&!((Ae-=2)<0);++j)te=Le.charCodeAt(j),pe=te>>8,ee=te%256,H.push(ee),H.push(pe);return H}(Ae,Le.length-te),Le,te,pe)}function o(Le,Ae,te){return 0===Ae&&te===Le.length?e.fromByteArray(Le):e.fromByteArray(Le.slice(Ae,te))}function h(Le,Ae,te){te=Math.min(Le.length,te);for(var pe=[],ee=Ae;ee<te;){var Re,le,_t,it,H=Le[ee],j=null,Oe=H>239?4:H>223?3:H>191?2:1;if(ee+Oe<=te)switch(Oe){case 1:H<128&&(j=H);break;case 2:128==(192&(Re=Le[ee+1]))&&((it=(31&H)<<6|63&Re)>127&&(j=it));break;case 3:Re=Le[ee+1],le=Le[ee+2],128==(192&Re)&&128==(192&le)&&((it=(15&H)<<12|(63&Re)<<6|63&le)>2047&&(it<55296||it>57343)&&(j=it));break;case 4:Re=Le[ee+1],le=Le[ee+2],_t=Le[ee+3],128==(192&Re)&&128==(192&le)&&128==(192&_t)&&((it=(15&H)<<18|(63&Re)<<12|(63&le)<<6|63&_t)>65535&&it<1114112&&(j=it))}null===j?(j=65533,Oe=1):j>65535&&(j-=65536,pe.push(j>>>10&1023|55296),j=56320|1023&j),pe.push(j),ee+=Oe}return function y(Le){var Ae=Le.length;if(Ae<=d)return String.fromCharCode.apply(String,Le);for(var te="",pe=0;pe<Ae;)te+=String.fromCharCode.apply(String,Le.slice(pe,pe+=d));return te}(pe)}q.kMaxLength=E,u.TYPED_ARRAY_SUPPORT=function s(){try{var Le=new Uint8Array(1),Ae={foo:function(){return 42}};return Object.setPrototypeOf(Ae,Uint8Array.prototype),Object.setPrototypeOf(Le,Ae),42===Le.foo()}catch{return!1}}(),!u.TYPED_ARRAY_SUPPORT&&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(u.prototype,"parent",{enumerable:!0,get:function(){if(u.isBuffer(this))return this.buffer}}),Object.defineProperty(u.prototype,"offset",{enumerable:!0,get:function(){if(u.isBuffer(this))return this.byteOffset}}),u.poolSize=8192,u.from=function(Le,Ae,te){return k(Le,Ae,te)},Object.setPrototypeOf(u.prototype,Uint8Array.prototype),Object.setPrototypeOf(u,Uint8Array),u.alloc=function(Le,Ae,te){return function S(Le,Ae,te){return p(Le),Le<=0?D(Le):void 0!==Ae?"string"==typeof te?D(Le).fill(Ae,te):D(Le).fill(Ae):D(Le)}(Le,Ae,te)},u.allocUnsafe=function(Le){return A(Le)},u.allocUnsafeSlow=function(Le){return A(Le)},u.isBuffer=function(Ae){return null!=Ae&&!0===Ae._isBuffer&&Ae!==u.prototype},u.compare=function(Ae,te){if(ve(Ae,Uint8Array)&&(Ae=u.from(Ae,Ae.offset,Ae.byteLength)),ve(te,Uint8Array)&&(te=u.from(te,te.offset,te.byteLength)),!u.isBuffer(Ae)||!u.isBuffer(te))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(Ae===te)return 0;for(var pe=Ae.length,ee=te.length,H=0,j=Math.min(pe,ee);H<j;++H)if(Ae[H]!==te[H]){pe=Ae[H],ee=te[H];break}return pe<ee?-1:ee<pe?1:0},u.isEncoding=function(Ae){switch(String(Ae).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},u.concat=function(Ae,te){if(!Array.isArray(Ae))throw new TypeError('"list" argument must be an Array of Buffers');if(0===Ae.length)return u.alloc(0);var pe;if(void 0===te)for(te=0,pe=0;pe<Ae.length;++pe)te+=Ae[pe].length;var ee=u.allocUnsafe(te),H=0;for(pe=0;pe<Ae.length;++pe){var j=Ae[pe];if(ve(j,Uint8Array))H+j.length>ee.length?u.from(j).copy(ee,H):Uint8Array.prototype.set.call(ee,j,H);else{if(!u.isBuffer(j))throw new TypeError('"list" argument must be an Array of Buffers');j.copy(ee,H)}H+=j.length}return ee},u.byteLength=ie,u.prototype._isBuffer=!0,u.prototype.swap16=function(){var Ae=this.length;if(Ae%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var te=0;te<Ae;te+=2)_e(this,te,te+1);return this},u.prototype.swap32=function(){var Ae=this.length;if(Ae%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var te=0;te<Ae;te+=4)_e(this,te,te+3),_e(this,te+1,te+2);return this},u.prototype.swap64=function(){var Ae=this.length;if(Ae%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var te=0;te<Ae;te+=8)_e(this,te,te+7),_e(this,te+1,te+6),_e(this,te+2,te+5),_e(this,te+3,te+4);return this},u.prototype.toString=function(){var Ae=this.length;return 0===Ae?"":0===arguments.length?h(this,0,Ae):ae.apply(this,arguments)},u.prototype.toLocaleString=u.prototype.toString,u.prototype.equals=function(Ae){if(!u.isBuffer(Ae))throw new TypeError("Argument must be a Buffer");return this===Ae||0===u.compare(this,Ae)},u.prototype.inspect=function(){var Ae="",te=q.INSPECT_MAX_BYTES;return Ae=this.toString("hex",0,te).replace(/(.{2})/g,"$1 ").trim(),this.length>te&&(Ae+=" ... "),"<Buffer "+Ae+">"},_&&(u.prototype[_]=u.prototype.inspect),u.prototype.compare=function(Ae,te,pe,ee,H){if(ve(Ae,Uint8Array)&&(Ae=u.from(Ae,Ae.offset,Ae.byteLength)),!u.isBuffer(Ae))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof Ae);if(void 0===te&&(te=0),void 0===pe&&(pe=Ae?Ae.length:0),void 0===ee&&(ee=0),void 0===H&&(H=this.length),te<0||pe>Ae.length||ee<0||H>this.length)throw new RangeError("out of range index");if(ee>=H&&te>=pe)return 0;if(ee>=H)return-1;if(te>=pe)return 1;if(this===Ae)return 0;for(var j=(H>>>=0)-(ee>>>=0),Oe=(pe>>>=0)-(te>>>=0),Re=Math.min(j,Oe),le=this.slice(ee,H),_t=Ae.slice(te,pe),it=0;it<Re;++it)if(le[it]!==_t[it]){j=le[it],Oe=_t[it];break}return j<Oe?-1:Oe<j?1:0},u.prototype.includes=function(Ae,te,pe){return-1!==this.indexOf(Ae,te,pe)},u.prototype.indexOf=function(Ae,te,pe){return ce(this,Ae,te,pe,!0)},u.prototype.lastIndexOf=function(Ae,te,pe){return ce(this,Ae,te,pe,!1)},u.prototype.write=function(Ae,te,pe,ee){if(void 0===te)ee="utf8",pe=this.length,te=0;else if(void 0===pe&&"string"==typeof te)ee=te,pe=this.length,te=0;else{if(!isFinite(te))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");te>>>=0,isFinite(pe)?(pe>>>=0,void 0===ee&&(ee="utf8")):(ee=pe,pe=void 0)}var H=this.length-te;if((void 0===pe||pe>H)&&(pe=H),Ae.length>0&&(pe<0||te<0)||te>this.length)throw new RangeError("Attempt to write outside buffer bounds");ee||(ee="utf8");for(var j=!1;;)switch(ee){case"hex":return ue(this,Ae,te,pe);case"utf8":case"utf-8":return $(this,Ae,te,pe);case"ascii":case"latin1":case"binary":return he(this,Ae,te,pe);case"base64":return w(this,Ae,te,pe);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return n(this,Ae,te,pe);default:if(j)throw new TypeError("Unknown encoding: "+ee);ee=(""+ee).toLowerCase(),j=!0}},u.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var d=4096;function L(Le,Ae,te){var pe="";te=Math.min(Le.length,te);for(var ee=Ae;ee<te;++ee)pe+=String.fromCharCode(127&Le[ee]);return pe}function B(Le,Ae,te){var pe="";te=Math.min(Le.length,te);for(var ee=Ae;ee<te;++ee)pe+=String.fromCharCode(Le[ee]);return pe}function v(Le,Ae,te){var pe=Le.length;(!Ae||Ae<0)&&(Ae=0),(!te||te<0||te>pe)&&(te=pe);for(var ee="",H=Ae;H<te;++H)ee+=ht[Le[H]];return ee}function a(Le,Ae,te){for(var pe=Le.slice(Ae,te),ee="",H=0;H<pe.length-1;H+=2)ee+=String.fromCharCode(pe[H]+256*pe[H+1]);return ee}function C(Le,Ae,te){if(Le%1!=0||Le<0)throw new RangeError("offset is not uint");if(Le+Ae>te)throw new RangeError("Trying to access beyond buffer length")}function N(Le,Ae,te,pe,ee,H){if(!u.isBuffer(Le))throw new TypeError('"buffer" argument must be a Buffer instance');if(Ae>ee||Ae<H)throw new RangeError('"value" argument is out of bounds');if(te+pe>Le.length)throw new RangeError("Index out of range")}function F(Le,Ae,te,pe,ee,H){if(te+pe>Le.length)throw new RangeError("Index out of range");if(te<0)throw new RangeError("Index out of range")}function X(Le,Ae,te,pe,ee){return Ae=+Ae,te>>>=0,ee||F(Le,0,te,4),t.write(Le,Ae,te,pe,23,4),te+4}function Fe(Le,Ae,te,pe,ee){return Ae=+Ae,te>>>=0,ee||F(Le,0,te,8),t.write(Le,Ae,te,pe,52,8),te+8}u.prototype.slice=function(Ae,te){var pe=this.length;(Ae=~~Ae)<0?(Ae+=pe)<0&&(Ae=0):Ae>pe&&(Ae=pe),(te=void 0===te?pe:~~te)<0?(te+=pe)<0&&(te=0):te>pe&&(te=pe),te<Ae&&(te=Ae);var ee=this.subarray(Ae,te);return Object.setPrototypeOf(ee,u.prototype),ee},u.prototype.readUintLE=u.prototype.readUIntLE=function(Ae,te,pe){Ae>>>=0,te>>>=0,pe||C(Ae,te,this.length);for(var ee=this[Ae],H=1,j=0;++j<te&&(H*=256);)ee+=this[Ae+j]*H;return ee},u.prototype.readUintBE=u.prototype.readUIntBE=function(Ae,te,pe){Ae>>>=0,te>>>=0,pe||C(Ae,te,this.length);for(var ee=this[Ae+--te],H=1;te>0&&(H*=256);)ee+=this[Ae+--te]*H;return ee},u.prototype.readUint8=u.prototype.readUInt8=function(Ae,te){return Ae>>>=0,te||C(Ae,1,this.length),this[Ae]},u.prototype.readUint16LE=u.prototype.readUInt16LE=function(Ae,te){return Ae>>>=0,te||C(Ae,2,this.length),this[Ae]|this[Ae+1]<<8},u.prototype.readUint16BE=u.prototype.readUInt16BE=function(Ae,te){return Ae>>>=0,te||C(Ae,2,this.length),this[Ae]<<8|this[Ae+1]},u.prototype.readUint32LE=u.prototype.readUInt32LE=function(Ae,te){return Ae>>>=0,te||C(Ae,4,this.length),(this[Ae]|this[Ae+1]<<8|this[Ae+2]<<16)+16777216*this[Ae+3]},u.prototype.readUint32BE=u.prototype.readUInt32BE=function(Ae,te){return Ae>>>=0,te||C(Ae,4,this.length),16777216*this[Ae]+(this[Ae+1]<<16|this[Ae+2]<<8|this[Ae+3])},u.prototype.readIntLE=function(Ae,te,pe){Ae>>>=0,te>>>=0,pe||C(Ae,te,this.length);for(var ee=this[Ae],H=1,j=0;++j<te&&(H*=256);)ee+=this[Ae+j]*H;return ee>=(H*=128)&&(ee-=Math.pow(2,8*te)),ee},u.prototype.readIntBE=function(Ae,te,pe){Ae>>>=0,te>>>=0,pe||C(Ae,te,this.length);for(var ee=te,H=1,j=this[Ae+--ee];ee>0&&(H*=256);)j+=this[Ae+--ee]*H;return j>=(H*=128)&&(j-=Math.pow(2,8*te)),j},u.prototype.readInt8=function(Ae,te){return Ae>>>=0,te||C(Ae,1,this.length),128&this[Ae]?-1*(255-this[Ae]+1):this[Ae]},u.prototype.readInt16LE=function(Ae,te){Ae>>>=0,te||C(Ae,2,this.length);var pe=this[Ae]|this[Ae+1]<<8;return 32768&pe?4294901760|pe:pe},u.prototype.readInt16BE=function(Ae,te){Ae>>>=0,te||C(Ae,2,this.length);var pe=this[Ae+1]|this[Ae]<<8;return 32768&pe?4294901760|pe:pe},u.prototype.readInt32LE=function(Ae,te){return Ae>>>=0,te||C(Ae,4,this.length),this[Ae]|this[Ae+1]<<8|this[Ae+2]<<16|this[Ae+3]<<24},u.prototype.readInt32BE=function(Ae,te){return Ae>>>=0,te||C(Ae,4,this.length),this[Ae]<<24|this[Ae+1]<<16|this[Ae+2]<<8|this[Ae+3]},u.prototype.readFloatLE=function(Ae,te){return Ae>>>=0,te||C(Ae,4,this.length),t.read(this,Ae,!0,23,4)},u.prototype.readFloatBE=function(Ae,te){return Ae>>>=0,te||C(Ae,4,this.length),t.read(this,Ae,!1,23,4)},u.prototype.readDoubleLE=function(Ae,te){return Ae>>>=0,te||C(Ae,8,this.length),t.read(this,Ae,!0,52,8)},u.prototype.readDoubleBE=function(Ae,te){return Ae>>>=0,te||C(Ae,8,this.length),t.read(this,Ae,!1,52,8)},u.prototype.writeUintLE=u.prototype.writeUIntLE=function(Ae,te,pe,ee){(Ae=+Ae,te>>>=0,pe>>>=0,ee)||N(this,Ae,te,pe,Math.pow(2,8*pe)-1,0);var j=1,Oe=0;for(this[te]=255&Ae;++Oe<pe&&(j*=256);)this[te+Oe]=Ae/j&255;return te+pe},u.prototype.writeUintBE=u.prototype.writeUIntBE=function(Ae,te,pe,ee){(Ae=+Ae,te>>>=0,pe>>>=0,ee)||N(this,Ae,te,pe,Math.pow(2,8*pe)-1,0);var j=pe-1,Oe=1;for(this[te+j]=255&Ae;--j>=0&&(Oe*=256);)this[te+j]=Ae/Oe&255;return te+pe},u.prototype.writeUint8=u.prototype.writeUInt8=function(Ae,te,pe){return Ae=+Ae,te>>>=0,pe||N(this,Ae,te,1,255,0),this[te]=255&Ae,te+1},u.prototype.writeUint16LE=u.prototype.writeUInt16LE=function(Ae,te,pe){return Ae=+Ae,te>>>=0,pe||N(this,Ae,te,2,65535,0),this[te]=255&Ae,this[te+1]=Ae>>>8,te+2},u.prototype.writeUint16BE=u.prototype.writeUInt16BE=function(Ae,te,pe){return Ae=+Ae,te>>>=0,pe||N(this,Ae,te,2,65535,0),this[te]=Ae>>>8,this[te+1]=255&Ae,te+2},u.prototype.writeUint32LE=u.prototype.writeUInt32LE=function(Ae,te,pe){return Ae=+Ae,te>>>=0,pe||N(this,Ae,te,4,4294967295,0),this[te+3]=Ae>>>24,this[te+2]=Ae>>>16,this[te+1]=Ae>>>8,this[te]=255&Ae,te+4},u.prototype.writeUint32BE=u.prototype.writeUInt32BE=function(Ae,te,pe){return Ae=+Ae,te>>>=0,pe||N(this,Ae,te,4,4294967295,0),this[te]=Ae>>>24,this[te+1]=Ae>>>16,this[te+2]=Ae>>>8,this[te+3]=255&Ae,te+4},u.prototype.writeIntLE=function(Ae,te,pe,ee){if(Ae=+Ae,te>>>=0,!ee){var H=Math.pow(2,8*pe-1);N(this,Ae,te,pe,H-1,-H)}var j=0,Oe=1,Re=0;for(this[te]=255&Ae;++j<pe&&(Oe*=256);)Ae<0&&0===Re&&0!==this[te+j-1]&&(Re=1),this[te+j]=(Ae/Oe>>0)-Re&255;return te+pe},u.prototype.writeIntBE=function(Ae,te,pe,ee){if(Ae=+Ae,te>>>=0,!ee){var H=Math.pow(2,8*pe-1);N(this,Ae,te,pe,H-1,-H)}var j=pe-1,Oe=1,Re=0;for(this[te+j]=255&Ae;--j>=0&&(Oe*=256);)Ae<0&&0===Re&&0!==this[te+j+1]&&(Re=1),this[te+j]=(Ae/Oe>>0)-Re&255;return te+pe},u.prototype.writeInt8=function(Ae,te,pe){return Ae=+Ae,te>>>=0,pe||N(this,Ae,te,1,127,-128),Ae<0&&(Ae=255+Ae+1),this[te]=255&Ae,te+1},u.prototype.writeInt16LE=function(Ae,te,pe){return Ae=+Ae,te>>>=0,pe||N(this,Ae,te,2,32767,-32768),this[te]=255&Ae,this[te+1]=Ae>>>8,te+2},u.prototype.writeInt16BE=function(Ae,te,pe){return Ae=+Ae,te>>>=0,pe||N(this,Ae,te,2,32767,-32768),this[te]=Ae>>>8,this[te+1]=255&Ae,te+2},u.prototype.writeInt32LE=function(Ae,te,pe){return Ae=+Ae,te>>>=0,pe||N(this,Ae,te,4,2147483647,-2147483648),this[te]=255&Ae,this[te+1]=Ae>>>8,this[te+2]=Ae>>>16,this[te+3]=Ae>>>24,te+4},u.prototype.writeInt32BE=function(Ae,te,pe){return Ae=+Ae,te>>>=0,pe||N(this,Ae,te,4,2147483647,-2147483648),Ae<0&&(Ae=4294967295+Ae+1),this[te]=Ae>>>24,this[te+1]=Ae>>>16,this[te+2]=Ae>>>8,this[te+3]=255&Ae,te+4},u.prototype.writeFloatLE=function(Ae,te,pe){return X(this,Ae,te,!0,pe)},u.prototype.writeFloatBE=function(Ae,te,pe){return X(this,Ae,te,!1,pe)},u.prototype.writeDoubleLE=function(Ae,te,pe){return Fe(this,Ae,te,!0,pe)},u.prototype.writeDoubleBE=function(Ae,te,pe){return Fe(this,Ae,te,!1,pe)},u.prototype.copy=function(Ae,te,pe,ee){if(!u.isBuffer(Ae))throw new TypeError("argument should be a Buffer");if(pe||(pe=0),!ee&&0!==ee&&(ee=this.length),te>=Ae.length&&(te=Ae.length),te||(te=0),ee>0&&ee<pe&&(ee=pe),ee===pe||0===Ae.length||0===this.length)return 0;if(te<0)throw new RangeError("targetStart out of bounds");if(pe<0||pe>=this.length)throw new RangeError("Index out of range");if(ee<0)throw new RangeError("sourceEnd out of bounds");ee>this.length&&(ee=this.length),Ae.length-te<ee-pe&&(ee=Ae.length-te+pe);var H=ee-pe;return this===Ae&&"function"==typeof Uint8Array.prototype.copyWithin?this.copyWithin(te,pe,ee):Uint8Array.prototype.set.call(Ae,this.subarray(pe,ee),te),H},u.prototype.fill=function(Ae,te,pe,ee){if("string"==typeof Ae){if("string"==typeof te?(ee=te,te=0,pe=this.length):"string"==typeof pe&&(ee=pe,pe=this.length),void 0!==ee&&"string"!=typeof ee)throw new TypeError("encoding must be a string");if("string"==typeof ee&&!u.isEncoding(ee))throw new TypeError("Unknown encoding: "+ee);if(1===Ae.length){var H=Ae.charCodeAt(0);("utf8"===ee&&H<128||"latin1"===ee)&&(Ae=H)}}else"number"==typeof Ae?Ae&=255:"boolean"==typeof Ae&&(Ae=Number(Ae));if(te<0||this.length<te||this.length<pe)throw new RangeError("Out of range index");if(pe<=te)return this;var j;if(te>>>=0,pe=void 0===pe?this.length:pe>>>0,Ae||(Ae=0),"number"==typeof Ae)for(j=te;j<pe;++j)this[j]=Ae;else{var Oe=u.isBuffer(Ae)?Ae:u.from(Ae,ee),Re=Oe.length;if(0===Re)throw new TypeError('The value "'+Ae+'" is invalid for argument "value"');for(j=0;j<pe-te;++j)this[j+te]=Oe[j%Re]}return this};var ke=/[^+/0-9A-Za-z-_]/g;function je(Le,Ae){Ae=Ae||1/0;for(var te,pe=Le.length,ee=null,H=[],j=0;j<pe;++j){if((te=Le.charCodeAt(j))>55295&&te<57344){if(!ee){if(te>56319){(Ae-=3)>-1&&H.push(239,191,189);continue}if(j+1===pe){(Ae-=3)>-1&&H.push(239,191,189);continue}ee=te;continue}if(te<56320){(Ae-=3)>-1&&H.push(239,191,189),ee=te;continue}te=65536+(ee-55296<<10|te-56320)}else ee&&(Ae-=3)>-1&&H.push(239,191,189);if(ee=null,te<128){if((Ae-=1)<0)break;H.push(te)}else if(te<2048){if((Ae-=2)<0)break;H.push(te>>6|192,63&te|128)}else if(te<65536){if((Ae-=3)<0)break;H.push(te>>12|224,te>>6&63|128,63&te|128)}else{if(!(te<1114112))throw new Error("Invalid code point");if((Ae-=4)<0)break;H.push(te>>18|240,te>>12&63|128,te>>6&63|128,63&te|128)}}return H}function Ze(Le){return e.toByteArray(function Ke(Le){if((Le=(Le=Le.split("=")[0]).trim().replace(ke,"")).length<2)return"";for(;Le.length%4!=0;)Le+="=";return Le}(Le))}function Ie(Le,Ae,te,pe){for(var ee=0;ee<pe&&!(ee+te>=Ae.length||ee>=Le.length);++ee)Ae[ee+te]=Le[ee];return ee}function ve(Le,Ae){return Le instanceof Ae||null!=Le&&null!=Le.constructor&&null!=Le.constructor.name&&Le.constructor.name===Ae.name}function et(Le){return Le!=Le}var ht=function(){for(var Le="0123456789abcdef",Ae=new Array(256),te=0;te<16;++te)for(var pe=16*te,ee=0;ee<16;++ee)Ae[pe+ee]=Le[te]+Le[ee];return Ae}()},3735:(Ue,q,m)=>{var e=m(9708).Buffer,t=m(574).Transform,_=m(4547).s;function s(D){t.call(this),this.hashMode="string"==typeof D,this.hashMode?this[D]=this._finalOrDigest:this.final=this._finalOrDigest,this._final&&(this.__final=this._final,this._final=null),this._decoder=null,this._encoding=null}m(5035)(s,t),s.prototype.update=function(D,u,k){"string"==typeof D&&(D=e.from(D,u));var p=this._update(D);return this.hashMode?this:(k&&(p=this._toString(p,k)),p)},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(D,u,k){var p;try{this.hashMode?this._update(D):this.push(this._update(D))}catch(S){p=S}finally{k(p)}},s.prototype._flush=function(D){var u;try{this.push(this.__final())}catch(k){u=k}D(u)},s.prototype._finalOrDigest=function(D){var u=this.__final()||e.alloc(0);return D&&(u=this._toString(u,D,!0)),u},s.prototype._toString=function(D,u,k){if(this._decoder||(this._decoder=new _(u),this._encoding=u),this._encoding!==u)throw new Error("can't switch encodings");var p=this._decoder.write(D);return k&&(p+=this._decoder.end()),p},Ue.exports=s},1381:(Ue,q,m)=>{"use strict";const e=m(9046),t=m(8220),_=m(3858);function E(u,k){switch(t(u)){case"object":return function s(u,k){if("function"==typeof k)return k(u);if(k||_(u)){const p=new u.constructor;for(let S in u)p[S]=E(u[S],k);return p}return u}(u,k);case"array":return function D(u,k){const p=new u.constructor(u.length);for(let S=0;S<u.length;S++)p[S]=E(u[S],k);return p}(u,k);default:return e(u)}}Ue.exports=E},4123:function(Ue){!function(q){"use strict";var m={bytesToHex:function(_){return function e(_){return _.map(function(E){return function t(_,E){return _.length>E?_:Array(E-_.length+1).join("0")+_}(E.toString(16),2)}).join("")}(_)},hexToBytes:function(_){if(_.length%2==1)throw new Error("hexToBytes can't have a string with an odd number of characters.");return 0===_.indexOf("0x")&&(_=_.slice(2)),_.match(/../g).map(function(E){return parseInt(E,16)})}};Ue.exports?Ue.exports=m:q.convertHex=m}(this)},4056:function(Ue){!function(q){"use strict";var m={bytesToString:function(e){return e.map(function(t){return String.fromCharCode(t)}).join("")},stringToBytes:function(e){return e.split("").map(function(t){return t.charCodeAt(0)})}};m.UTF8={bytesToString:function(e){return decodeURIComponent(escape(m.bytesToString(e)))},stringToBytes:function(e){return m.stringToBytes(unescape(encodeURIComponent(e)))}},Ue.exports?Ue.exports=m:q.convertString=m}(this)},9821:(Ue,q,m)=>{var e=m(2142),t=m(854);Ue.exports=function(u){return new E(u)};var _={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 E(D){this.curveType=_[D],this.curveType||(this.curveType={name:D}),this.curve=new e.ec(this.curveType.name),this.keys=void 0}function s(D,u,k){Array.isArray(D)||(D=D.toArray());var p=new Buffer(D);if(k&&p.length<k){var S=new Buffer(k-p.length);S.fill(0),p=Buffer.concat([S,p])}return u?p.toString(u):p}_.p224=_.secp224r1,_.p256=_.secp256r1=_.prime256v1,_.p192=_.secp192r1=_.prime192v1,_.p384=_.secp384r1,_.p521=_.secp521r1,E.prototype.generateKeys=function(D,u){return this.keys=this.curve.genKeyPair(),this.getPublicKey(D,u)},E.prototype.computeSecret=function(D,u,k){return u=u||"utf8",Buffer.isBuffer(D)||(D=new Buffer(D,u)),s(this.curve.keyFromPublic(D).getPublic().mul(this.keys.getPrivate()).getX(),k,this.curveType.byteLength)},E.prototype.getPublicKey=function(D,u){var k=this.keys.getPublic("compressed"===u,!0);return"hybrid"===u&&(k[k.length-1]%2?k[0]=7:k[0]=6),s(k,D)},E.prototype.getPrivateKey=function(D){return s(this.keys.getPrivate(),D)},E.prototype.setPublicKey=function(D,u){return u=u||"utf8",Buffer.isBuffer(D)||(D=new Buffer(D,u)),this.keys._importPublic(D),this},E.prototype.setPrivateKey=function(D,u){u=u||"utf8",Buffer.isBuffer(D)||(D=new Buffer(D,u));var k=new t(D);return k=k.toString(16),this.keys=this.curve.genKeyPair(),this.keys._importPrivate(k),this}},854:function(Ue,q,m){(function(e,t){"use strict";function _(w,n){if(!w)throw new Error(n||"Assertion failed")}function E(w,n){w.super_=n;var o=function(){};o.prototype=n.prototype,w.prototype=new o,w.prototype.constructor=w}function s(w,n,o){if(s.isBN(w))return w;this.negative=0,this.words=null,this.length=0,this.red=null,null!==w&&(("le"===n||"be"===n)&&(o=n,n=10),this._init(w||0,n||10,o||"be"))}var D;"object"==typeof e?e.exports=s:t.BN=s,s.BN=s,s.wordSize=26;try{D=typeof window<"u"&&typeof window.Buffer<"u"?window.Buffer:m(8623).Buffer}catch{}function u(w,n){var o=w.charCodeAt(n);return o>=65&&o<=70?o-55:o>=97&&o<=102?o-87:o-48&15}function k(w,n,o){var h=u(w,o);return o-1>=n&&(h|=u(w,o-1)<<4),h}function p(w,n,o,h){for(var d=0,y=Math.min(w.length,o),L=n;L<y;L++){var B=w.charCodeAt(L)-48;d*=h,d+=B>=49?B-49+10:B>=17?B-17+10:B}return d}s.isBN=function(n){return n instanceof s||null!==n&&"object"==typeof n&&n.constructor.wordSize===s.wordSize&&Array.isArray(n.words)},s.max=function(n,o){return n.cmp(o)>0?n:o},s.min=function(n,o){return n.cmp(o)<0?n:o},s.prototype._init=function(n,o,h){if("number"==typeof n)return this._initNumber(n,o,h);if("object"==typeof n)return this._initArray(n,o,h);"hex"===o&&(o=16),_(o===(0|o)&&o>=2&&o<=36);var d=0;"-"===(n=n.toString().replace(/\s+/g,""))[0]&&(d++,this.negative=1),d<n.length&&(16===o?this._parseHex(n,d,h):(this._parseBase(n,o,d),"le"===h&&this._initArray(this.toArray(),o,h)))},s.prototype._initNumber=function(n,o,h){n<0&&(this.negative=1,n=-n),n<67108864?(this.words=[67108863&n],this.length=1):n<4503599627370496?(this.words=[67108863&n,n/67108864&67108863],this.length=2):(_(n<9007199254740992),this.words=[67108863&n,n/67108864&67108863,1],this.length=3),"le"===h&&this._initArray(this.toArray(),o,h)},s.prototype._initArray=function(n,o,h){if(_("number"==typeof n.length),n.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(n.length/3),this.words=new Array(this.length);for(var d=0;d<this.length;d++)this.words[d]=0;var y,L,B=0;if("be"===h)for(d=n.length-1,y=0;d>=0;d-=3)L=n[d]|n[d-1]<<8|n[d-2]<<16,this.words[y]|=L<<B&67108863,this.words[y+1]=L>>>26-B&67108863,(B+=24)>=26&&(B-=26,y++);else if("le"===h)for(d=0,y=0;d<n.length;d+=3)L=n[d]|n[d+1]<<8|n[d+2]<<16,this.words[y]|=L<<B&67108863,this.words[y+1]=L>>>26-B&67108863,(B+=24)>=26&&(B-=26,y++);return this.strip()},s.prototype._parseHex=function(n,o,h){this.length=Math.ceil((n.length-o)/6),this.words=new Array(this.length);for(var d=0;d<this.length;d++)this.words[d]=0;var B,y=0,L=0;if("be"===h)for(d=n.length-1;d>=o;d-=2)B=k(n,o,d)<<y,this.words[L]|=67108863&B,y>=18?(y-=18,L+=1,this.words[L]|=B>>>26):y+=8;else for(d=(n.length-o)%2==0?o+1:o;d<n.length;d+=2)B=k(n,o,d)<<y,this.words[L]|=67108863&B,y>=18?(y-=18,L+=1,this.words[L]|=B>>>26):y+=8;this.strip()},s.prototype._parseBase=function(n,o,h){this.words=[0],this.length=1;for(var d=0,y=1;y<=67108863;y*=o)d++;d--,y=y/o|0;for(var L=n.length-h,B=L%d,v=Math.min(L,L-B)+h,a=0,C=h;C<v;C+=d)a=p(n,C,C+d,o),this.imuln(y),this.words[0]+a<67108864?this.words[0]+=a:this._iaddn(a);if(0!==B){var N=1;for(a=p(n,C,n.length,o),C=0;C<B;C++)N*=o;this.imuln(N),this.words[0]+a<67108864?this.words[0]+=a:this._iaddn(a)}this.strip()},s.prototype.copy=function(n){n.words=new Array(this.length);for(var o=0;o<this.length;o++)n.words[o]=this.words[o];n.length=this.length,n.negative=this.negative,n.red=this.red},s.prototype.clone=function(){var n=new s(null);return this.copy(n),n},s.prototype._expand=function(n){for(;this.length<n;)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"],A=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],P=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];function z(w,n,o){o.negative=n.negative^w.negative;var h=w.length+n.length|0;o.length=h,h=h-1|0;var d=0|w.words[0],y=0|n.words[0],L=d*y,B=67108863&L,v=L/67108864|0;o.words[0]=B;for(var a=1;a<h;a++){for(var C=v>>>26,N=67108863&v,F=Math.min(a,n.length-1),X=Math.max(0,a-w.length+1);X<=F;X++){var Fe=a-X|0;C+=(L=(d=0|w.words[Fe])*(y=0|n.words[X])+N)/67108864|0,N=67108863&L}o.words[a]=0|N,v=0|C}return 0!==v?o.words[a]=0|v:o.length--,o.strip()}s.prototype.toString=function(n,o){var h;if(o=0|o||1,16===(n=n||10)||"hex"===n){h="";for(var d=0,y=0,L=0;L<this.length;L++){var B=this.words[L],v=(16777215&(B<<d|y)).toString(16);h=0!==(y=B>>>24-d&16777215)||L!==this.length-1?S[6-v.length]+v+h:v+h,(d+=2)>=26&&(d-=26,L--)}for(0!==y&&(h=y.toString(16)+h);h.length%o!=0;)h="0"+h;return 0!==this.negative&&(h="-"+h),h}if(n===(0|n)&&n>=2&&n<=36){var a=A[n],C=P[n];h="";var N=this.clone();for(N.negative=0;!N.isZero();){var F=N.modn(C).toString(n);h=(N=N.idivn(C)).isZero()?F+h:S[a-F.length]+F+h}for(this.isZero()&&(h="0"+h);h.length%o!=0;)h="0"+h;return 0!==this.negative&&(h="-"+h),h}_(!1,"Base should be between 2 and 36")},s.prototype.toNumber=function(){var n=this.words[0];return 2===this.length?n+=67108864*this.words[1]:3===this.length&&1===this.words[2]?n+=4503599627370496+67108864*this.words[1]:this.length>2&&_(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-n:n},s.prototype.toJSON=function(){return this.toString(16)},s.prototype.toBuffer=function(n,o){return _(typeof D<"u"),this.toArrayLike(D,n,o)},s.prototype.toArray=function(n,o){return this.toArrayLike(Array,n,o)},s.prototype.toArrayLike=function(n,o,h){var d=this.byteLength(),y=h||Math.max(1,d);_(d<=y,"byte array longer than desired length"),_(y>0,"Requested array length <= 0"),this.strip();var v,a,L="le"===o,B=new n(y),C=this.clone();if(L){for(a=0;!C.isZero();a++)v=C.andln(255),C.iushrn(8),B[a]=v;for(;a<y;a++)B[a]=0}else{for(a=0;a<y-d;a++)B[a]=0;for(a=0;!C.isZero();a++)v=C.andln(255),C.iushrn(8),B[y-a-1]=v}return B},Math.clz32?s.prototype._countBits=function(n){return 32-Math.clz32(n)}:s.prototype._countBits=function(n){var o=n,h=0;return o>=4096&&(h+=13,o>>>=13),o>=64&&(h+=7,o>>>=7),o>=8&&(h+=4,o>>>=4),o>=2&&(h+=2,o>>>=2),h+o},s.prototype._zeroBits=function(n){if(0===n)return 26;var o=n,h=0;return 0==(8191&o)&&(h+=13,o>>>=13),0==(127&o)&&(h+=7,o>>>=7),0==(15&o)&&(h+=4,o>>>=4),0==(3&o)&&(h+=2,o>>>=2),0==(1&o)&&h++,h},s.prototype.bitLength=function(){var n=this.words[this.length-1],o=this._countBits(n);return 26*(this.length-1)+o},s.prototype.zeroBits=function(){if(this.isZero())return 0;for(var n=0,o=0;o<this.length;o++){var h=this._zeroBits(this.words[o]);if(n+=h,26!==h)break}return n},s.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},s.prototype.toTwos=function(n){return 0!==this.negative?this.abs().inotn(n).iaddn(1):this.clone()},s.prototype.fromTwos=function(n){return this.testn(n-1)?this.notn(n).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(n){for(;this.length<n.length;)this.words[this.length++]=0;for(var o=0;o<n.length;o++)this.words[o]=this.words[o]|n.words[o];return this.strip()},s.prototype.ior=function(n){return _(0==(this.negative|n.negative)),this.iuor(n)},s.prototype.or=function(n){return this.length>n.length?this.clone().ior(n):n.clone().ior(this)},s.prototype.uor=function(n){return this.length>n.length?this.clone().iuor(n):n.clone().iuor(this)},s.prototype.iuand=function(n){var o;o=this.length>n.length?n:this;for(var h=0;h<o.length;h++)this.words[h]=this.words[h]&n.words[h];return this.length=o.length,this.strip()},s.prototype.iand=function(n){return _(0==(this.negative|n.negative)),this.iuand(n)},s.prototype.and=function(n){return this.length>n.length?this.clone().iand(n):n.clone().iand(this)},s.prototype.uand=function(n){return this.length>n.length?this.clone().iuand(n):n.clone().iuand(this)},s.prototype.iuxor=function(n){var o,h;this.length>n.length?(o=this,h=n):(o=n,h=this);for(var d=0;d<h.length;d++)this.words[d]=o.words[d]^h.words[d];if(this!==o)for(;d<o.length;d++)this.words[d]=o.words[d];return this.length=o.length,this.strip()},s.prototype.ixor=function(n){return _(0==(this.negative|n.negative)),this.iuxor(n)},s.prototype.xor=function(n){return this.length>n.length?this.clone().ixor(n):n.clone().ixor(this)},s.prototype.uxor=function(n){return this.length>n.length?this.clone().iuxor(n):n.clone().iuxor(this)},s.prototype.inotn=function(n){_("number"==typeof n&&n>=0);var o=0|Math.ceil(n/26),h=n%26;this._expand(o),h>0&&o--;for(var d=0;d<o;d++)this.words[d]=67108863&~this.words[d];return h>0&&(this.words[d]=~this.words[d]&67108863>>26-h),this.strip()},s.prototype.notn=function(n){return this.clone().inotn(n)},s.prototype.setn=function(n,o){_("number"==typeof n&&n>=0);var h=n/26|0,d=n%26;return this._expand(h+1),this.words[h]=o?this.words[h]|1<<d:this.words[h]&~(1<<d),this.strip()},s.prototype.iadd=function(n){var o,h,d;if(0!==this.negative&&0===n.negative)return this.negative=0,o=this.isub(n),this.negative^=1,this._normSign();if(0===this.negative&&0!==n.negative)return n.negative=0,o=this.isub(n),n.negative=1,o._normSign();this.length>n.length?(h=this,d=n):(h=n,d=this);for(var y=0,L=0;L<d.length;L++)o=(0|h.words[L])+(0|d.words[L])+y,this.words[L]=67108863&o,y=o>>>26;for(;0!==y&&L<h.length;L++)o=(0|h.words[L])+y,this.words[L]=67108863&o,y=o>>>26;if(this.length=h.length,0!==y)this.words[this.length]=y,this.length++;else if(h!==this)for(;L<h.length;L++)this.words[L]=h.words[L];return this},s.prototype.add=function(n){var o;return 0!==n.negative&&0===this.negative?(n.negative=0,o=this.sub(n),n.negative^=1,o):0===n.negative&&0!==this.negative?(this.negative=0,o=n.sub(this),this.negative=1,o):this.length>n.length?this.clone().iadd(n):n.clone().iadd(this)},s.prototype.isub=function(n){if(0!==n.negative){n.negative=0;var o=this.iadd(n);return n.negative=1,o._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(n),this.negative=1,this._normSign();var d,y,h=this.cmp(n);if(0===h)return this.negative=0,this.length=1,this.words[0]=0,this;h>0?(d=this,y=n):(d=n,y=this);for(var L=0,B=0;B<y.length;B++)L=(o=(0|d.words[B])-(0|y.words[B])+L)>>26,this.words[B]=67108863&o;for(;0!==L&&B<d.length;B++)L=(o=(0|d.words[B])+L)>>26,this.words[B]=67108863&o;if(0===L&&B<d.length&&d!==this)for(;B<d.length;B++)this.words[B]=d.words[B];return this.length=Math.max(this.length,B),d!==this&&(this.negative=1),this.strip()},s.prototype.sub=function(n){return this.clone().isub(n)};var I=function(n,o,h){var v,a,C,d=n.words,y=o.words,L=h.words,B=0,N=0|d[0],F=8191&N,X=N>>>13,Fe=0|d[1],ke=8191&Fe,Ke=Fe>>>13,je=0|d[2],Ve=8191&je,xe=je>>>13,Ze=0|d[3],Ie=8191&Ze,ve=Ze>>>13,et=0|d[4],ht=8191&et,Le=et>>>13,Ae=0|d[5],te=8191&Ae,pe=Ae>>>13,ee=0|d[6],H=8191&ee,j=ee>>>13,Oe=0|d[7],Re=8191&Oe,le=Oe>>>13,_t=0|d[8],it=8191&_t,Ct=_t>>>13,un=0|d[9],Bt=8191&un,Ut=un>>>13,yn=0|y[0],Xt=8191&yn,Gt=yn>>>13,In=0|y[1],rn=8191&In,tn=In>>>13,pn=0|y[2],tt=8191&pn,vt=pn>>>13,dt=0|y[3],se=8191&dt,J=dt>>>13,oe=0|y[4],De=8191&oe,Ye=oe>>>13,Dt=0|y[5],ut=8191&Dt,ze=Dt>>>13,Me=0|y[6],Ce=8191&Me,Je=Me>>>13,zt=0|y[7],At=8191&zt,Tt=zt>>>13,Ht=0|y[8],He=8191&Ht,$e=Ht>>>13,$t=0|y[9],Rt=8191&$t,Jt=$t>>>13;h.negative=n.negative^o.negative,h.length=19;var Vn=(B+(v=Math.imul(F,Xt))|0)+((8191&(a=(a=Math.imul(F,Gt))+Math.imul(X,Xt)|0))<<13)|0;B=((C=Math.imul(X,Gt))+(a>>>13)|0)+(Vn>>>26)|0,Vn&=67108863,v=Math.imul(ke,Xt),a=(a=Math.imul(ke,Gt))+Math.imul(Ke,Xt)|0,C=Math.imul(Ke,Gt);var zn=(B+(v=v+Math.imul(F,rn)|0)|0)+((8191&(a=(a=a+Math.imul(F,tn)|0)+Math.imul(X,rn)|0))<<13)|0;B=((C=C+Math.imul(X,tn)|0)+(a>>>13)|0)+(zn>>>26)|0,zn&=67108863,v=Math.imul(Ve,Xt),a=(a=Math.imul(Ve,Gt))+Math.imul(xe,Xt)|0,C=Math.imul(xe,Gt),v=v+Math.imul(ke,rn)|0,a=(a=a+Math.imul(ke,tn)|0)+Math.imul(Ke,rn)|0,C=C+Math.imul(Ke,tn)|0;var Tn=(B+(v=v+Math.imul(F,tt)|0)|0)+((8191&(a=(a=a+Math.imul(F,vt)|0)+Math.imul(X,tt)|0))<<13)|0;B=((C=C+Math.imul(X,vt)|0)+(a>>>13)|0)+(Tn>>>26)|0,Tn&=67108863,v=Math.imul(Ie,Xt),a=(a=Math.imul(Ie,Gt))+Math.imul(ve,Xt)|0,C=Math.imul(ve,Gt),v=v+Math.imul(Ve,rn)|0,a=(a=a+Math.imul(Ve,tn)|0)+Math.imul(xe,rn)|0,C=C+Math.imul(xe,tn)|0,v=v+Math.imul(ke,tt)|0,a=(a=a+Math.imul(ke,vt)|0)+Math.imul(Ke,tt)|0,C=C+Math.imul(Ke,vt)|0;var Yn=(B+(v=v+Math.imul(F,se)|0)|0)+((8191&(a=(a=a+Math.imul(F,J)|0)+Math.imul(X,se)|0))<<13)|0;B=((C=C+Math.imul(X,J)|0)+(a>>>13)|0)+(Yn>>>26)|0,Yn&=67108863,v=Math.imul(ht,Xt),a=(a=Math.imul(ht,Gt))+Math.imul(Le,Xt)|0,C=Math.imul(Le,Gt),v=v+Math.imul(Ie,rn)|0,a=(a=a+Math.imul(Ie,tn)|0)+Math.imul(ve,rn)|0,C=C+Math.imul(ve,tn)|0,v=v+Math.imul(Ve,tt)|0,a=(a=a+Math.imul(Ve,vt)|0)+Math.imul(xe,tt)|0,C=C+Math.imul(xe,vt)|0,v=v+Math.imul(ke,se)|0,a=(a=a+Math.imul(ke,J)|0)+Math.imul(Ke,se)|0,C=C+Math.imul(Ke,J)|0;var Mt=(B+(v=v+Math.imul(F,De)|0)|0)+((8191&(a=(a=a+Math.imul(F,Ye)|0)+Math.imul(X,De)|0))<<13)|0;B=((C=C+Math.imul(X,Ye)|0)+(a>>>13)|0)+(Mt>>>26)|0,Mt&=67108863,v=Math.imul(te,Xt),a=(a=Math.imul(te,Gt))+Math.imul(pe,Xt)|0,C=Math.imul(pe,Gt),v=v+Math.imul(ht,rn)|0,a=(a=a+Math.imul(ht,tn)|0)+Math.imul(Le,rn)|0,C=C+Math.imul(Le,tn)|0,v=v+Math.imul(Ie,tt)|0,a=(a=a+Math.imul(Ie,vt)|0)+Math.imul(ve,tt)|0,C=C+Math.imul(ve,vt)|0,v=v+Math.imul(Ve,se)|0,a=(a=a+Math.imul(Ve,J)|0)+Math.imul(xe,se)|0,C=C+Math.imul(xe,J)|0,v=v+Math.imul(ke,De)|0,a=(a=a+Math.imul(ke,Ye)|0)+Math.imul(Ke,De)|0,C=C+Math.imul(Ke,Ye)|0;var Ge=(B+(v=v+Math.imul(F,ut)|0)|0)+((8191&(a=(a=a+Math.imul(F,ze)|0)+Math.imul(X,ut)|0))<<13)|0;B=((C=C+Math.imul(X,ze)|0)+(a>>>13)|0)+(Ge>>>26)|0,Ge&=67108863,v=Math.imul(H,Xt),a=(a=Math.imul(H,Gt))+Math.imul(j,Xt)|0,C=Math.imul(j,Gt),v=v+Math.imul(te,rn)|0,a=(a=a+Math.imul(te,tn)|0)+Math.imul(pe,rn)|0,C=C+Math.imul(pe,tn)|0,v=v+Math.imul(ht,tt)|0,a=(a=a+Math.imul(ht,vt)|0)+Math.imul(Le,tt)|0,C=C+Math.imul(Le,vt)|0,v=v+Math.imul(Ie,se)|0,a=(a=a+Math.imul(Ie,J)|0)+Math.imul(ve,se)|0,C=C+Math.imul(ve,J)|0,v=v+Math.imul(Ve,De)|0,a=(a=a+Math.imul(Ve,Ye)|0)+Math.imul(xe,De)|0,C=C+Math.imul(xe,Ye)|0,v=v+Math.imul(ke,ut)|0,a=(a=a+Math.imul(ke,ze)|0)+Math.imul(Ke,ut)|0,C=C+Math.imul(Ke,ze)|0;var Be=(B+(v=v+Math.imul(F,Ce)|0)|0)+((8191&(a=(a=a+Math.imul(F,Je)|0)+Math.imul(X,Ce)|0))<<13)|0;B=((C=C+Math.imul(X,Je)|0)+(a>>>13)|0)+(Be>>>26)|0,Be&=67108863,v=Math.imul(Re,Xt),a=(a=Math.imul(Re,Gt))+Math.imul(le,Xt)|0,C=Math.imul(le,Gt),v=v+Math.imul(H,rn)|0,a=(a=a+Math.imul(H,tn)|0)+Math.imul(j,rn)|0,C=C+Math.imul(j,tn)|0,v=v+Math.imul(te,tt)|0,a=(a=a+Math.imul(te,vt)|0)+Math.imul(pe,tt)|0,C=C+Math.imul(pe,vt)|0,v=v+Math.imul(ht,se)|0,a=(a=a+Math.imul(ht,J)|0)+Math.imul(Le,se)|0,C=C+Math.imul(Le,J)|0,v=v+Math.imul(Ie,De)|0,a=(a=a+Math.imul(Ie,Ye)|0)+Math.imul(ve,De)|0,C=C+Math.imul(ve,Ye)|0,v=v+Math.imul(Ve,ut)|0,a=(a=a+Math.imul(Ve,ze)|0)+Math.imul(xe,ut)|0,C=C+Math.imul(xe,ze)|0,v=v+Math.imul(ke,Ce)|0,a=(a=a+Math.imul(ke,Je)|0)+Math.imul(Ke,Ce)|0,C=C+Math.imul(Ke,Je)|0;var ft=(B+(v=v+Math.imul(F,At)|0)|0)+((8191&(a=(a=a+Math.imul(F,Tt)|0)+Math.imul(X,At)|0))<<13)|0;B=((C=C+Math.imul(X,Tt)|0)+(a>>>13)|0)+(ft>>>26)|0,ft&=67108863,v=Math.imul(it,Xt),a=(a=Math.imul(it,Gt))+Math.imul(Ct,Xt)|0,C=Math.imul(Ct,Gt),v=v+Math.imul(Re,rn)|0,a=(a=a+Math.imul(Re,tn)|0)+Math.imul(le,rn)|0,C=C+Math.imul(le,tn)|0,v=v+Math.imul(H,tt)|0,a=(a=a+Math.imul(H,vt)|0)+Math.imul(j,tt)|0,C=C+Math.imul(j,vt)|0,v=v+Math.imul(te,se)|0,a=(a=a+Math.imul(te,J)|0)+Math.imul(pe,se)|0,C=C+Math.imul(pe,J)|0,v=v+Math.imul(ht,De)|0,a=(a=a+Math.imul(ht,Ye)|0)+Math.imul(Le,De)|0,C=C+Math.imul(Le,Ye)|0,v=v+Math.imul(Ie,ut)|0,a=(a=a+Math.imul(Ie,ze)|0)+Math.imul(ve,ut)|0,C=C+Math.imul(ve,ze)|0,v=v+Math.imul(Ve,Ce)|0,a=(a=a+Math.imul(Ve,Je)|0)+Math.imul(xe,Ce)|0,C=C+Math.imul(xe,Je)|0,v=v+Math.imul(ke,At)|0,a=(a=a+Math.imul(ke,Tt)|0)+Math.imul(Ke,At)|0,C=C+Math.imul(Ke,Tt)|0;var re=(B+(v=v+Math.imul(F,He)|0)|0)+((8191&(a=(a=a+Math.imul(F,$e)|0)+Math.imul(X,He)|0))<<13)|0;B=((C=C+Math.imul(X,$e)|0)+(a>>>13)|0)+(re>>>26)|0,re&=67108863,v=Math.imul(Bt,Xt),a=(a=Math.imul(Bt,Gt))+Math.imul(Ut,Xt)|0,C=Math.imul(Ut,Gt),v=v+Math.imul(it,rn)|0,a=(a=a+Math.imul(it,tn)|0)+Math.imul(Ct,rn)|0,C=C+Math.imul(Ct,tn)|0,v=v+Math.imul(Re,tt)|0,a=(a=a+Math.imul(Re,vt)|0)+Math.imul(le,tt)|0,C=C+Math.imul(le,vt)|0,v=v+Math.imul(H,se)|0,a=(a=a+Math.imul(H,J)|0)+Math.imul(j,se)|0,C=C+Math.imul(j,J)|0,v=v+Math.imul(te,De)|0,a=(a=a+Math.imul(te,Ye)|0)+Math.imul(pe,De)|0,C=C+Math.imul(pe,Ye)|0,v=v+Math.imul(ht,ut)|0,a=(a=a+Math.imul(ht,ze)|0)+Math.imul(Le,ut)|0,C=C+Math.imul(Le,ze)|0,v=v+Math.imul(Ie,Ce)|0,a=(a=a+Math.imul(Ie,Je)|0)+Math.imul(ve,Ce)|0,C=C+Math.imul(ve,Je)|0,v=v+Math.imul(Ve,At)|0,a=(a=a+Math.imul(Ve,Tt)|0)+Math.imul(xe,At)|0,C=C+Math.imul(xe,Tt)|0,v=v+Math.imul(ke,He)|0,a=(a=a+Math.imul(ke,$e)|0)+Math.imul(Ke,He)|0,C=C+Math.imul(Ke,$e)|0;var Te=(B+(v=v+Math.imul(F,Rt)|0)|0)+((8191&(a=(a=a+Math.imul(F,Jt)|0)+Math.imul(X,Rt)|0))<<13)|0;B=((C=C+Math.imul(X,Jt)|0)+(a>>>13)|0)+(Te>>>26)|0,Te&=67108863,v=Math.imul(Bt,rn),a=(a=Math.imul(Bt,tn))+Math.imul(Ut,rn)|0,C=Math.imul(Ut,tn),v=v+Math.imul(it,tt)|0,a=(a=a+Math.imul(it,vt)|0)+Math.imul(Ct,tt)|0,C=C+Math.imul(Ct,vt)|0,v=v+Math.imul(Re,se)|0,a=(a=a+Math.imul(Re,J)|0)+Math.imul(le,se)|0,C=C+Math.imul(le,J)|0,v=v+Math.imul(H,De)|0,a=(a=a+Math.imul(H,Ye)|0)+Math.imul(j,De)|0,C=C+Math.imul(j,Ye)|0,v=v+Math.imul(te,ut)|0,a=(a=a+Math.imul(te,ze)|0)+Math.imul(pe,ut)|0,C=C+Math.imul(pe,ze)|0,v=v+Math.imul(ht,Ce)|0,a=(a=a+Math.imul(ht,Je)|0)+Math.imul(Le,Ce)|0,C=C+Math.imul(Le,Je)|0,v=v+Math.imul(Ie,At)|0,a=(a=a+Math.imul(Ie,Tt)|0)+Math.imul(ve,At)|0,C=C+Math.imul(ve,Tt)|0,v=v+Math.imul(Ve,He)|0,a=(a=a+Math.imul(Ve,$e)|0)+Math.imul(xe,He)|0,C=C+Math.imul(xe,$e)|0;var pt=(B+(v=v+Math.imul(ke,Rt)|0)|0)+((8191&(a=(a=a+Math.imul(ke,Jt)|0)+Math.imul(Ke,Rt)|0))<<13)|0;B=((C=C+Math.imul(Ke,Jt)|0)+(a>>>13)|0)+(pt>>>26)|0,pt&=67108863,v=Math.imul(Bt,tt),a=(a=Math.imul(Bt,vt))+Math.imul(Ut,tt)|0,C=Math.imul(Ut,vt),v=v+Math.imul(it,se)|0,a=(a=a+Math.imul(it,J)|0)+Math.imul(Ct,se)|0,C=C+Math.imul(Ct,J)|0,v=v+Math.imul(Re,De)|0,a=(a=a+Math.imul(Re,Ye)|0)+Math.imul(le,De)|0,C=C+Math.imul(le,Ye)|0,v=v+Math.imul(H,ut)|0,a=(a=a+Math.imul(H,ze)|0)+Math.imul(j,ut)|0,C=C+Math.imul(j,ze)|0,v=v+Math.imul(te,Ce)|0,a=(a=a+Math.imul(te,Je)|0)+Math.imul(pe,Ce)|0,C=C+Math.imul(pe,Je)|0,v=v+Math.imul(ht,At)|0,a=(a=a+Math.imul(ht,Tt)|0)+Math.imul(Le,At)|0,C=C+Math.imul(Le,Tt)|0,v=v+Math.imul(Ie,He)|0,a=(a=a+Math.imul(Ie,$e)|0)+Math.imul(ve,He)|0,C=C+Math.imul(ve,$e)|0;var Lt=(B+(v=v+Math.imul(Ve,Rt)|0)|0)+((8191&(a=(a=a+Math.imul(Ve,Jt)|0)+Math.imul(xe,Rt)|0))<<13)|0;B=((C=C+Math.imul(xe,Jt)|0)+(a>>>13)|0)+(Lt>>>26)|0,Lt&=67108863,v=Math.imul(Bt,se),a=(a=Math.imul(Bt,J))+Math.imul(Ut,se)|0,C=Math.imul(Ut,J),v=v+Math.imul(it,De)|0,a=(a=a+Math.imul(it,Ye)|0)+Math.imul(Ct,De)|0,C=C+Math.imul(Ct,Ye)|0,v=v+Math.imul(Re,ut)|0,a=(a=a+Math.imul(Re,ze)|0)+Math.imul(le,ut)|0,C=C+Math.imul(le,ze)|0,v=v+Math.imul(H,Ce)|0,a=(a=a+Math.imul(H,Je)|0)+Math.imul(j,Ce)|0,C=C+Math.imul(j,Je)|0,v=v+Math.imul(te,At)|0,a=(a=a+Math.imul(te,Tt)|0)+Math.imul(pe,At)|0,C=C+Math.imul(pe,Tt)|0,v=v+Math.imul(ht,He)|0,a=(a=a+Math.imul(ht,$e)|0)+Math.imul(Le,He)|0,C=C+Math.imul(Le,$e)|0;var nn=(B+(v=v+Math.imul(Ie,Rt)|0)|0)+((8191&(a=(a=a+Math.imul(Ie,Jt)|0)+Math.imul(ve,Rt)|0))<<13)|0;B=((C=C+Math.imul(ve,Jt)|0)+(a>>>13)|0)+(nn>>>26)|0,nn&=67108863,v=Math.imul(Bt,De),a=(a=Math.imul(Bt,Ye))+Math.imul(Ut,De)|0,C=Math.imul(Ut,Ye),v=v+Math.imul(it,ut)|0,a=(a=a+Math.imul(it,ze)|0)+Math.imul(Ct,ut)|0,C=C+Math.imul(Ct,ze)|0,v=v+Math.imul(Re,Ce)|0,a=(a=a+Math.imul(Re,Je)|0)+Math.imul(le,Ce)|0,C=C+Math.imul(le,Je)|0,v=v+Math.imul(H,At)|0,a=(a=a+Math.imul(H,Tt)|0)+Math.imul(j,At)|0,C=C+Math.imul(j,Tt)|0,v=v+Math.imul(te,He)|0,a=(a=a+Math.imul(te,$e)|0)+Math.imul(pe,He)|0,C=C+Math.imul(pe,$e)|0;var Bn=(B+(v=v+Math.imul(ht,Rt)|0)|0)+((8191&(a=(a=a+Math.imul(ht,Jt)|0)+Math.imul(Le,Rt)|0))<<13)|0;B=((C=C+Math.imul(Le,Jt)|0)+(a>>>13)|0)+(Bn>>>26)|0,Bn&=67108863,v=Math.imul(Bt,ut),a=(a=Math.imul(Bt,ze))+Math.imul(Ut,ut)|0,C=Math.imul(Ut,ze),v=v+Math.imul(it,Ce)|0,a=(a=a+Math.imul(it,Je)|0)+Math.imul(Ct,Ce)|0,C=C+Math.imul(Ct,Je)|0,v=v+Math.imul(Re,At)|0,a=(a=a+Math.imul(Re,Tt)|0)+Math.imul(le,At)|0,C=C+Math.imul(le,Tt)|0,v=v+Math.imul(H,He)|0,a=(a=a+Math.imul(H,$e)|0)+Math.imul(j,He)|0,C=C+Math.imul(j,$e)|0;var Wn=(B+(v=v+Math.imul(te,Rt)|0)|0)+((8191&(a=(a=a+Math.imul(te,Jt)|0)+Math.imul(pe,Rt)|0))<<13)|0;B=((C=C+Math.imul(pe,Jt)|0)+(a>>>13)|0)+(Wn>>>26)|0,Wn&=67108863,v=Math.imul(Bt,Ce),a=(a=Math.imul(Bt,Je))+Math.imul(Ut,Ce)|0,C=Math.imul(Ut,Je),v=v+Math.imul(it,At)|0,a=(a=a+Math.imul(it,Tt)|0)+Math.imul(Ct,At)|0,C=C+Math.imul(Ct,Tt)|0,v=v+Math.imul(Re,He)|0,a=(a=a+Math.imul(Re,$e)|0)+Math.imul(le,He)|0,C=C+Math.imul(le,$e)|0;var ti=(B+(v=v+Math.imul(H,Rt)|0)|0)+((8191&(a=(a=a+Math.imul(H,Jt)|0)+Math.imul(j,Rt)|0))<<13)|0;B=((C=C+Math.imul(j,Jt)|0)+(a>>>13)|0)+(ti>>>26)|0,ti&=67108863,v=Math.imul(Bt,At),a=(a=Math.imul(Bt,Tt))+Math.imul(Ut,At)|0,C=Math.imul(Ut,Tt),v=v+Math.imul(it,He)|0,a=(a=a+Math.imul(it,$e)|0)+Math.imul(Ct,He)|0,C=C+Math.imul(Ct,$e)|0;var Mn=(B+(v=v+Math.imul(Re,Rt)|0)|0)+((8191&(a=(a=a+Math.imul(Re,Jt)|0)+Math.imul(le,Rt)|0))<<13)|0;B=((C=C+Math.imul(le,Jt)|0)+(a>>>13)|0)+(Mn>>>26)|0,Mn&=67108863,v=Math.imul(Bt,He),a=(a=Math.imul(Bt,$e))+Math.imul(Ut,He)|0,C=Math.imul(Ut,$e);var Ln=(B+(v=v+Math.imul(it,Rt)|0)|0)+((8191&(a=(a=a+Math.imul(it,Jt)|0)+Math.imul(Ct,Rt)|0))<<13)|0;B=((C=C+Math.imul(Ct,Jt)|0)+(a>>>13)|0)+(Ln>>>26)|0,Ln&=67108863;var ai=(B+(v=Math.imul(Bt,Rt))|0)+((8191&(a=(a=Math.imul(Bt,Jt))+Math.imul(Ut,Rt)|0))<<13)|0;return B=((C=Math.imul(Ut,Jt))+(a>>>13)|0)+(ai>>>26)|0,ai&=67108863,L[0]=Vn,L[1]=zn,L[2]=Tn,L[3]=Yn,L[4]=Mt,L[5]=Ge,L[6]=Be,L[7]=ft,L[8]=re,L[9]=Te,L[10]=pt,L[11]=Lt,L[12]=nn,L[13]=Bn,L[14]=Wn,L[15]=ti,L[16]=Mn,L[17]=Ln,L[18]=ai,0!==B&&(L[19]=B,h.length++),h};function Z(w,n,o){return(new Q).mulp(w,n,o)}function Q(w,n){this.x=w,this.y=n}Math.imul||(I=z),s.prototype.mulTo=function(n,o){var h,d=this.length+n.length;return h=10===this.length&&10===n.length?I(this,n,o):d<63?z(this,n,o):d<1024?function W(w,n,o){o.negative=n.negative^w.negative,o.length=w.length+n.length;for(var h=0,d=0,y=0;y<o.length-1;y++){var L=d;d=0;for(var B=67108863&h,v=Math.min(y,n.length-1),a=Math.max(0,y-w.length+1);a<=v;a++){var C=y-a,X=(0|w.words[C])*(0|n.words[a]),Fe=67108863&X;B=67108863&(Fe=Fe+B|0),d+=(L=(L=L+(X/67108864|0)|0)+(Fe>>>26)|0)>>>26,L&=67108863}o.words[y]=B,h=L,L=d}return 0!==h?o.words[y]=h:o.length--,o.strip()}(this,n,o):Z(this,n,o),h},Q.prototype.makeRBT=function(n){for(var o=new Array(n),h=s.prototype._countBits(n)-1,d=0;d<n;d++)o[d]=this.revBin(d,h,n);return o},Q.prototype.revBin=function(n,o,h){if(0===n||n===h-1)return n;for(var d=0,y=0;y<o;y++)d|=(1&n)<<o-y-1,n>>=1;return d},Q.prototype.permute=function(n,o,h,d,y,L){for(var B=0;B<L;B++)d[B]=o[n[B]],y[B]=h[n[B]]},Q.prototype.transform=function(n,o,h,d,y,L){this.permute(L,n,o,h,d,y);for(var B=1;B<y;B<<=1)for(var v=B<<1,a=Math.cos(2*Math.PI/v),C=Math.sin(2*Math.PI/v),N=0;N<y;N+=v)for(var F=a,X=C,Fe=0;Fe<B;Fe++){var ke=h[N+Fe],Ke=d[N+Fe],je=h[N+Fe+B],Ve=d[N+Fe+B],xe=F*je-X*Ve;Ve=F*Ve+X*je,je=xe,h[N+Fe]=ke+je,d[N+Fe]=Ke+Ve,h[N+Fe+B]=ke-je,d[N+Fe+B]=Ke-Ve,Fe!==v&&(xe=a*F-C*X,X=a*X+C*F,F=xe)}},Q.prototype.guessLen13b=function(n,o){var h=1|Math.max(o,n),d=1&h,y=0;for(h=h/2|0;h;h>>>=1)y++;return 1<<y+1+d},Q.prototype.conjugate=function(n,o,h){if(!(h<=1))for(var d=0;d<h/2;d++){var y=n[d];n[d]=n[h-d-1],n[h-d-1]=y,y=o[d],o[d]=-o[h-d-1],o[h-d-1]=-y}},Q.prototype.normalize13b=function(n,o){for(var h=0,d=0;d<o/2;d++){var y=8192*Math.round(n[2*d+1]/o)+Math.round(n[2*d]/o)+h;n[d]=67108863&y,h=y<67108864?0:y/67108864|0}return n},Q.prototype.convert13b=function(n,o,h,d){for(var y=0,L=0;L<o;L++)y+=0|n[L],h[2*L]=8191&y,y>>>=13,h[2*L+1]=8191&y,y>>>=13;for(L=2*o;L<d;++L)h[L]=0;_(0===y),_(0==(-8192&y))},Q.prototype.stub=function(n){for(var o=new Array(n),h=0;h<n;h++)o[h]=0;return o},Q.prototype.mulp=function(n,o,h){var d=2*this.guessLen13b(n.length,o.length),y=this.makeRBT(d),L=this.stub(d),B=new Array(d),v=new Array(d),a=new Array(d),C=new Array(d),N=new Array(d),F=new Array(d),X=h.words;X.length=d,this.convert13b(n.words,n.length,B,d),this.convert13b(o.words,o.length,C,d),this.transform(B,L,v,a,d,y),this.transform(C,L,N,F,d,y);for(var Fe=0;Fe<d;Fe++){var ke=v[Fe]*N[Fe]-a[Fe]*F[Fe];a[Fe]=v[Fe]*F[Fe]+a[Fe]*N[Fe],v[Fe]=ke}return this.conjugate(v,a,d),this.transform(v,a,X,L,d,y),this.conjugate(X,L,d),this.normalize13b(X,d),h.negative=n.negative^o.negative,h.length=n.length+o.length,h.strip()},s.prototype.mul=function(n){var o=new s(null);return o.words=new Array(this.length+n.length),this.mulTo(n,o)},s.prototype.mulf=function(n){var o=new s(null);return o.words=new Array(this.length+n.length),Z(this,n,o)},s.prototype.imul=function(n){return this.clone().mulTo(n,this)},s.prototype.imuln=function(n){_("number"==typeof n),_(n<67108864);for(var o=0,h=0;h<this.length;h++){var d=(0|this.words[h])*n,y=(67108863&d)+(67108863&o);o>>=26,o+=d/67108864|0,o+=y>>>26,this.words[h]=67108863&y}return 0!==o&&(this.words[h]=o,this.length++),this},s.prototype.muln=function(n){return this.clone().imuln(n)},s.prototype.sqr=function(){return this.mul(this)},s.prototype.isqr=function(){return this.imul(this.clone())},s.prototype.pow=function(n){var o=function M(w){for(var n=new Array(w.bitLength()),o=0;o<n.length;o++){var h=o/26|0,d=o%26;n[o]=(w.words[h]&1<<d)>>>d}return n}(n);if(0===o.length)return new s(1);for(var h=this,d=0;d<o.length&&0===o[d];d++,h=h.sqr());if(++d<o.length)for(var y=h.sqr();d<o.length;d++,y=y.sqr())0!==o[d]&&(h=h.mul(y));return h},s.prototype.iushln=function(n){_("number"==typeof n&&n>=0);var y,o=n%26,h=(n-o)/26,d=67108863>>>26-o<<26-o;if(0!==o){var L=0;for(y=0;y<this.length;y++){var B=this.words[y]&d,v=(0|this.words[y])-B<<o;this.words[y]=v|L,L=B>>>26-o}L&&(this.words[y]=L,this.length++)}if(0!==h){for(y=this.length-1;y>=0;y--)this.words[y+h]=this.words[y];for(y=0;y<h;y++)this.words[y]=0;this.length+=h}return this.strip()},s.prototype.ishln=function(n){return _(0===this.negative),this.iushln(n)},s.prototype.iushrn=function(n,o,h){var d;_("number"==typeof n&&n>=0),d=o?(o-o%26)/26:0;var y=n%26,L=Math.min((n-y)/26,this.length),B=67108863^67108863>>>y<<y,v=h;if(d-=L,d=Math.max(0,d),v){for(var a=0;a<L;a++)v.words[a]=this.words[a];v.length=L}if(0!==L)if(this.length>L)for(this.length-=L,a=0;a<this.length;a++)this.words[a]=this.words[a+L];else this.words[0]=0,this.length=1;var C=0;for(a=this.length-1;a>=0&&(0!==C||a>=d);a--){var N=0|this.words[a];this.words[a]=C<<26-y|N>>>y,C=N&B}return v&&0!==C&&(v.words[v.length++]=C),0===this.length&&(this.words[0]=0,this.length=1),this.strip()},s.prototype.ishrn=function(n,o,h){return _(0===this.negative),this.iushrn(n,o,h)},s.prototype.shln=function(n){return this.clone().ishln(n)},s.prototype.ushln=function(n){return this.clone().iushln(n)},s.prototype.shrn=function(n){return this.clone().ishrn(n)},s.prototype.ushrn=function(n){return this.clone().iushrn(n)},s.prototype.testn=function(n){_("number"==typeof n&&n>=0);var o=n%26,h=(n-o)/26,d=1<<o;return!(this.length<=h)&&!!(this.words[h]&d)},s.prototype.imaskn=function(n){_("number"==typeof n&&n>=0);var o=n%26,h=(n-o)/26;if(_(0===this.negative,"imaskn works only with positive numbers"),this.length<=h)return this;if(0!==o&&h++,this.length=Math.min(h,this.length),0!==o){var d=67108863^67108863>>>o<<o;this.words[this.length-1]&=d}return this.strip()},s.prototype.maskn=function(n){return this.clone().imaskn(n)},s.prototype.iaddn=function(n){return _("number"==typeof n),_(n<67108864),n<0?this.isubn(-n):0!==this.negative?1===this.length&&(0|this.words[0])<n?(this.words[0]=n-(0|this.words[0]),this.negative=0,this):(this.negative=0,this.isubn(n),this.negative=1,this):this._iaddn(n)},s.prototype._iaddn=function(n){this.words[0]+=n;for(var o=0;o<this.length&&this.words[o]>=67108864;o++)this.words[o]-=67108864,o===this.length-1?this.words[o+1]=1:this.words[o+1]++;return this.length=Math.max(this.length,o+1),this},s.prototype.isubn=function(n){if(_("number"==typeof n),_(n<67108864),n<0)return this.iaddn(-n);if(0!==this.negative)return this.negative=0,this.iaddn(n),this.negative=1,this;if(this.words[0]-=n,1===this.length&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var o=0;o<this.length&&this.words[o]<0;o++)this.words[o]+=67108864,this.words[o+1]-=1;return this.strip()},s.prototype.addn=function(n){return this.clone().iaddn(n)},s.prototype.subn=function(n){return this.clone().isubn(n)},s.prototype.iabs=function(){return this.negative=0,this},s.prototype.abs=function(){return this.clone().iabs()},s.prototype._ishlnsubmul=function(n,o,h){var y,d=n.length+h;this._expand(d);var L,B=0;for(y=0;y<n.length;y++){L=(0|this.words[y+h])+B;var v=(0|n.words[y])*o;B=((L-=67108863&v)>>26)-(v/67108864|0),this.words[y+h]=67108863&L}for(;y<this.length-h;y++)B=(L=(0|this.words[y+h])+B)>>26,this.words[y+h]=67108863&L;if(0===B)return this.strip();for(_(-1===B),B=0,y=0;y<this.length;y++)B=(L=-(0|this.words[y])+B)>>26,this.words[y]=67108863&L;return this.negative=1,this.strip()},s.prototype._wordDiv=function(n,o){var h=(this.length,n.length),d=this.clone(),y=n,L=0|y.words[y.length-1];0!==(h=26-this._countBits(L))&&(y=y.ushln(h),d.iushln(h),L=0|y.words[y.length-1]);var a,v=d.length-y.length;if("mod"!==o){(a=new s(null)).length=v+1,a.words=new Array(a.length);for(var C=0;C<a.length;C++)a.words[C]=0}var N=d.clone()._ishlnsubmul(y,1,v);0===N.negative&&(d=N,a&&(a.words[v]=1));for(var F=v-1;F>=0;F--){var X=67108864*(0|d.words[y.length+F])+(0|d.words[y.length+F-1]);for(X=Math.min(X/L|0,67108863),d._ishlnsubmul(y,X,F);0!==d.negative;)X--,d.negative=0,d._ishlnsubmul(y,1,F),d.isZero()||(d.negative^=1);a&&(a.words[F]=X)}return a&&a.strip(),d.strip(),"div"!==o&&0!==h&&d.iushrn(h),{div:a||null,mod:d}},s.prototype.divmod=function(n,o,h){return _(!n.isZero()),this.isZero()?{div:new s(0),mod:new s(0)}:0!==this.negative&&0===n.negative?(L=this.neg().divmod(n,o),"mod"!==o&&(d=L.div.neg()),"div"!==o&&(y=L.mod.neg(),h&&0!==y.negative&&y.iadd(n)),{div:d,mod:y}):0===this.negative&&0!==n.negative?(L=this.divmod(n.neg(),o),"mod"!==o&&(d=L.div.neg()),{div:d,mod:L.mod}):0!=(this.negative&n.negative)?(L=this.neg().divmod(n.neg(),o),"div"!==o&&(y=L.mod.neg(),h&&0!==y.negative&&y.isub(n)),{div:L.div,mod:y}):n.length>this.length||this.cmp(n)<0?{div:new s(0),mod:this}:1===n.length?"div"===o?{div:this.divn(n.words[0]),mod:null}:"mod"===o?{div:null,mod:new s(this.modn(n.words[0]))}:{div:this.divn(n.words[0]),mod:new s(this.modn(n.words[0]))}:this._wordDiv(n,o);var d,y,L},s.prototype.div=function(n){return this.divmod(n,"div",!1).div},s.prototype.mod=function(n){return this.divmod(n,"mod",!1).mod},s.prototype.umod=function(n){return this.divmod(n,"mod",!0).mod},s.prototype.divRound=function(n){var o=this.divmod(n);if(o.mod.isZero())return o.div;var h=0!==o.div.negative?o.mod.isub(n):o.mod,d=n.ushrn(1),y=n.andln(1),L=h.cmp(d);return L<0||1===y&&0===L?o.div:0!==o.div.negative?o.div.isubn(1):o.div.iaddn(1)},s.prototype.modn=function(n){_(n<=67108863);for(var o=(1<<26)%n,h=0,d=this.length-1;d>=0;d--)h=(o*h+(0|this.words[d]))%n;return h},s.prototype.idivn=function(n){_(n<=67108863);for(var o=0,h=this.length-1;h>=0;h--){var d=(0|this.words[h])+67108864*o;this.words[h]=d/n|0,o=d%n}return this.strip()},s.prototype.divn=function(n){return this.clone().idivn(n)},s.prototype.egcd=function(n){_(0===n.negative),_(!n.isZero());var o=this,h=n.clone();o=0!==o.negative?o.umod(n):o.clone();for(var d=new s(1),y=new s(0),L=new s(0),B=new s(1),v=0;o.isEven()&&h.isEven();)o.iushrn(1),h.iushrn(1),++v;for(var a=h.clone(),C=o.clone();!o.isZero();){for(var N=0,F=1;0==(o.words[0]&F)&&N<26;++N,F<<=1);if(N>0)for(o.iushrn(N);N-- >0;)(d.isOdd()||y.isOdd())&&(d.iadd(a),y.isub(C)),d.iushrn(1),y.iushrn(1);for(var X=0,Fe=1;0==(h.words[0]&Fe)&&X<26;++X,Fe<<=1);if(X>0)for(h.iushrn(X);X-- >0;)(L.isOdd()||B.isOdd())&&(L.iadd(a),B.isub(C)),L.iushrn(1),B.iushrn(1);o.cmp(h)>=0?(o.isub(h),d.isub(L),y.isub(B)):(h.isub(o),L.isub(d),B.isub(y))}return{a:L,b:B,gcd:h.iushln(v)}},s.prototype._invmp=function(n){_(0===n.negative),_(!n.isZero());var N,o=this,h=n.clone();o=0!==o.negative?o.umod(n):o.clone();for(var d=new s(1),y=new s(0),L=h.clone();o.cmpn(1)>0&&h.cmpn(1)>0;){for(var B=0,v=1;0==(o.words[0]&v)&&B<26;++B,v<<=1);if(B>0)for(o.iushrn(B);B-- >0;)d.isOdd()&&d.iadd(L),d.iushrn(1);for(var a=0,C=1;0==(h.words[0]&C)&&a<26;++a,C<<=1);if(a>0)for(h.iushrn(a);a-- >0;)y.isOdd()&&y.iadd(L),y.iushrn(1);o.cmp(h)>=0?(o.isub(h),d.isub(y)):(h.isub(o),y.isub(d))}return(N=0===o.cmpn(1)?d:y).cmpn(0)<0&&N.iadd(n),N},s.prototype.gcd=function(n){if(this.isZero())return n.abs();if(n.isZero())return this.abs();var o=this.clone(),h=n.clone();o.negative=0,h.negative=0;for(var d=0;o.isEven()&&h.isEven();d++)o.iushrn(1),h.iushrn(1);for(;;){for(;o.isEven();)o.iushrn(1);for(;h.isEven();)h.iushrn(1);var y=o.cmp(h);if(y<0){var L=o;o=h,h=L}else if(0===y||0===h.cmpn(1))break;o.isub(h)}return h.iushln(d)},s.prototype.invm=function(n){return this.egcd(n).a.umod(n)},s.prototype.isEven=function(){return 0==(1&this.words[0])},s.prototype.isOdd=function(){return 1==(1&this.words[0])},s.prototype.andln=function(n){return this.words[0]&n},s.prototype.bincn=function(n){_("number"==typeof n);var o=n%26,h=(n-o)/26,d=1<<o;if(this.length<=h)return this._expand(h+1),this.words[h]|=d,this;for(var y=d,L=h;0!==y&&L<this.length;L++){var B=0|this.words[L];y=(B+=y)>>>26,B&=67108863,this.words[L]=B}return 0!==y&&(this.words[L]=y,this.length++),this},s.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},s.prototype.cmpn=function(n){var h,o=n<0;if(0!==this.negative&&!o)return-1;if(0===this.negative&&o)return 1;if(this.strip(),this.length>1)h=1;else{o&&(n=-n),_(n<=67108863,"Number is too big");var d=0|this.words[0];h=d===n?0:d<n?-1:1}return 0!==this.negative?0|-h:h},s.prototype.cmp=function(n){if(0!==this.negative&&0===n.negative)return-1;if(0===this.negative&&0!==n.negative)return 1;var o=this.ucmp(n);return 0!==this.negative?0|-o:o},s.prototype.ucmp=function(n){if(this.length>n.length)return 1;if(this.length<n.length)return-1;for(var o=0,h=this.length-1;h>=0;h--){var d=0|this.words[h],y=0|n.words[h];if(d!==y){d<y?o=-1:d>y&&(o=1);break}}return o},s.prototype.gtn=function(n){return 1===this.cmpn(n)},s.prototype.gt=function(n){return 1===this.cmp(n)},s.prototype.gten=function(n){return this.cmpn(n)>=0},s.prototype.gte=function(n){return this.cmp(n)>=0},s.prototype.ltn=function(n){return-1===this.cmpn(n)},s.prototype.lt=function(n){return-1===this.cmp(n)},s.prototype.lten=function(n){return this.cmpn(n)<=0},s.prototype.lte=function(n){return this.cmp(n)<=0},s.prototype.eqn=function(n){return 0===this.cmpn(n)},s.prototype.eq=function(n){return 0===this.cmp(n)},s.red=function(n){return new $(n)},s.prototype.toRed=function(n){return _(!this.red,"Already a number in reduction context"),_(0===this.negative,"red works only with positives"),n.convertTo(this)._forceRed(n)},s.prototype.fromRed=function(){return _(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},s.prototype._forceRed=function(n){return this.red=n,this},s.prototype.forceRed=function(n){return _(!this.red,"Already a number in reduction context"),this._forceRed(n)},s.prototype.redAdd=function(n){return _(this.red,"redAdd works only with red numbers"),this.red.add(this,n)},s.prototype.redIAdd=function(n){return _(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,n)},s.prototype.redSub=function(n){return _(this.red,"redSub works only with red numbers"),this.red.sub(this,n)},s.prototype.redISub=function(n){return _(this.red,"redISub works only with red numbers"),this.red.isub(this,n)},s.prototype.redShl=function(n){return _(this.red,"redShl works only with red numbers"),this.red.shl(this,n)},s.prototype.redMul=function(n){return _(this.red,"redMul works only with red numbers"),this.red._verify2(this,n),this.red.mul(this,n)},s.prototype.redIMul=function(n){return _(this.red,"redMul works only with red numbers"),this.red._verify2(this,n),this.red.imul(this,n)},s.prototype.redSqr=function(){return _(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},s.prototype.redISqr=function(){return _(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},s.prototype.redSqrt=function(){return _(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},s.prototype.redInvm=function(){return _(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},s.prototype.redNeg=function(){return _(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},s.prototype.redPow=function(n){return _(this.red&&!n.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,n)};var ie={k256:null,p224:null,p192:null,p25519:null};function ae(w,n){this.name=w,this.p=new s(n,16),this.n=this.p.bitLength(),this.k=new s(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function _e(){ae.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function ce(){ae.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function ye(){ae.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function ue(){ae.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function $(w){if("string"==typeof w){var n=s._prime(w);this.m=n.p,this.prime=n}else _(w.gtn(1),"modulus must be greater than 1"),this.m=w,this.prime=null}function he(w){$.call(this,w),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)}ae.prototype._tmp=function(){var n=new s(null);return n.words=new Array(Math.ceil(this.n/13)),n},ae.prototype.ireduce=function(n){var h,o=n;do{this.split(o,this.tmp),h=(o=(o=this.imulK(o)).iadd(this.tmp)).bitLength()}while(h>this.n);var d=h<this.n?-1:o.ucmp(this.p);return 0===d?(o.words[0]=0,o.length=1):d>0?o.isub(this.p):void 0!==o.strip?o.strip():o._strip(),o},ae.prototype.split=function(n,o){n.iushrn(this.n,0,o)},ae.prototype.imulK=function(n){return n.imul(this.k)},E(_e,ae),_e.prototype.split=function(n,o){for(var h=4194303,d=Math.min(n.length,9),y=0;y<d;y++)o.words[y]=n.words[y];if(o.length=d,n.length<=9)return n.words[0]=0,void(n.length=1);var L=n.words[9];for(o.words[o.length++]=L&h,y=10;y<n.length;y++){var B=0|n.words[y];n.words[y-10]=(B&h)<<4|L>>>22,L=B}L>>>=22,n.words[y-10]=L,0===L&&n.length>10?n.length-=10:n.length-=9},_e.prototype.imulK=function(n){n.words[n.length]=0,n.words[n.length+1]=0,n.length+=2;for(var o=0,h=0;h<n.length;h++){var d=0|n.words[h];o+=977*d,n.words[h]=67108863&o,o=64*d+(o/67108864|0)}return 0===n.words[n.length-1]&&(n.length--,0===n.words[n.length-1]&&n.length--),n},E(ce,ae),E(ye,ae),E(ue,ae),ue.prototype.imulK=function(n){for(var o=0,h=0;h<n.length;h++){var d=19*(0|n.words[h])+o,y=67108863&d;d>>>=26,n.words[h]=y,o=d}return 0!==o&&(n.words[n.length++]=o),n},s._prime=function(n){if(ie[n])return ie[n];var o;if("k256"===n)o=new _e;else if("p224"===n)o=new ce;else if("p192"===n)o=new ye;else{if("p25519"!==n)throw new Error("Unknown prime "+n);o=new ue}return ie[n]=o,o},$.prototype._verify1=function(n){_(0===n.negative,"red works only with positives"),_(n.red,"red works only with red numbers")},$.prototype._verify2=function(n,o){_(0==(n.negative|o.negative),"red works only with positives"),_(n.red&&n.red===o.red,"red works only with red numbers")},$.prototype.imod=function(n){return this.prime?this.prime.ireduce(n)._forceRed(this):n.umod(this.m)._forceRed(this)},$.prototype.neg=function(n){return n.isZero()?n.clone():this.m.sub(n)._forceRed(this)},$.prototype.add=function(n,o){this._verify2(n,o);var h=n.add(o);return h.cmp(this.m)>=0&&h.isub(this.m),h._forceRed(this)},$.prototype.iadd=function(n,o){this._verify2(n,o);var h=n.iadd(o);return h.cmp(this.m)>=0&&h.isub(this.m),h},$.prototype.sub=function(n,o){this._verify2(n,o);var h=n.sub(o);return h.cmpn(0)<0&&h.iadd(this.m),h._forceRed(this)},$.prototype.isub=function(n,o){this._verify2(n,o);var h=n.isub(o);return h.cmpn(0)<0&&h.iadd(this.m),h},$.prototype.shl=function(n,o){return this._verify1(n),this.imod(n.ushln(o))},$.prototype.imul=function(n,o){return this._verify2(n,o),this.imod(n.imul(o))},$.prototype.mul=function(n,o){return this._verify2(n,o),this.imod(n.mul(o))},$.prototype.isqr=function(n){return this.imul(n,n.clone())},$.prototype.sqr=function(n){return this.mul(n,n)},$.prototype.sqrt=function(n){if(n.isZero())return n.clone();var o=this.m.andln(3);if(_(o%2==1),3===o){var h=this.m.add(new s(1)).iushrn(2);return this.pow(n,h)}for(var d=this.m.subn(1),y=0;!d.isZero()&&0===d.andln(1);)y++,d.iushrn(1);_(!d.isZero());var L=new s(1).toRed(this),B=L.redNeg(),v=this.m.subn(1).iushrn(1),a=this.m.bitLength();for(a=new s(2*a*a).toRed(this);0!==this.pow(a,v).cmp(B);)a.redIAdd(B);for(var C=this.pow(a,d),N=this.pow(n,d.addn(1).iushrn(1)),F=this.pow(n,d),X=y;0!==F.cmp(L);){for(var Fe=F,ke=0;0!==Fe.cmp(L);ke++)Fe=Fe.redSqr();_(ke<X);var Ke=this.pow(C,new s(1).iushln(X-ke-1));N=N.redMul(Ke),C=Ke.redSqr(),F=F.redMul(C),X=ke}return N},$.prototype.invm=function(n){var o=n._invmp(this.m);return 0!==o.negative?(o.negative=0,this.imod(o).redNeg()):this.imod(o)},$.prototype.pow=function(n,o){if(o.isZero())return new s(1).toRed(this);if(0===o.cmpn(1))return n.clone();var d=new Array(16);d[0]=new s(1).toRed(this),d[1]=n;for(var y=2;y<d.length;y++)d[y]=this.mul(d[y-1],n);var L=d[0],B=0,v=0,a=o.bitLength()%26;for(0===a&&(a=26),y=o.length-1;y>=0;y--){for(var C=o.words[y],N=a-1;N>=0;N--){var F=C>>N&1;(L!==d[0]&&(L=this.sqr(L)),0!==F||0!==B)?(B<<=1,B|=F,(4===++v||0===y&&0===N)&&(L=this.mul(L,d[B]),v=0,B=0)):v=0}a=26}return L},$.prototype.convertTo=function(n){var o=n.umod(this.m);return o===n?o.clone():o},$.prototype.convertFrom=function(n){var o=n.clone();return o.red=null,o},s.mont=function(n){return new he(n)},E(he,$),he.prototype.convertTo=function(n){return this.imod(n.ushln(this.shift))},he.prototype.convertFrom=function(n){var o=this.imod(n.mul(this.rinv));return o.red=null,o},he.prototype.imul=function(n,o){if(n.isZero()||o.isZero())return n.words[0]=0,n.length=1,n;var h=n.imul(o),d=h.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),y=h.isub(d).iushrn(this.shift),L=y;return y.cmp(this.m)>=0?L=y.isub(this.m):y.cmpn(0)<0&&(L=y.iadd(this.m)),L._forceRed(this)},he.prototype.mul=function(n,o){if(n.isZero()||o.isZero())return new s(0)._forceRed(this);var h=n.mul(o),d=h.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),y=h.isub(d).iushrn(this.shift),L=y;return y.cmp(this.m)>=0?L=y.isub(this.m):y.cmpn(0)<0&&(L=y.iadd(this.m)),L._forceRed(this)},he.prototype.invm=function(n){return this.imod(n._invmp(this.m).mul(this.r2))._forceRed(this)}})(Ue=m.nmd(Ue),this)},145:(Ue,q,m)=>{"use strict";var e=m(5035),t=m(2617),_=m(5351),E=m(1001),s=m(3735);function D(u){s.call(this,"digest"),this._hash=u}e(D,s),D.prototype._update=function(u){this._hash.update(u)},D.prototype._final=function(){return this._hash.digest()},Ue.exports=function(k){return"md5"===(k=k.toLowerCase())?new t:"rmd160"===k||"ripemd160"===k?new _:new D(E(k))}},2726:(Ue,q,m)=>{var e=m(2617);Ue.exports=function(t){return(new e).update(t).digest()}},3640:(Ue,q,m)=>{"use strict";var e=m(5035),t=m(7531),_=m(3735),E=m(9708).Buffer,s=m(2726),D=m(5351),u=m(1001),k=E.alloc(128);function p(S,A){_.call(this,"digest"),"string"==typeof A&&(A=E.from(A));var P="sha512"===S||"sha384"===S?128:64;(this._alg=S,this._key=A,A.length>P)?A=("rmd160"===S?new D:u(S)).update(A).digest():A.length<P&&(A=E.concat([A,k],P));for(var z=this._ipad=E.allocUnsafe(P),I=this._opad=E.allocUnsafe(P),W=0;W<P;W++)z[W]=54^A[W],I[W]=92^A[W];this._hash="rmd160"===S?new D:u(S),this._hash.update(z)}e(p,_),p.prototype._update=function(S){this._hash.update(S)},p.prototype._final=function(){var S=this._hash.digest();return("rmd160"===this._alg?new D:u(this._alg)).update(this._opad).update(S).digest()},Ue.exports=function(A,P){return"rmd160"===(A=A.toLowerCase())||"ripemd160"===A?new p("rmd160",P):"md5"===A?new t(s,P):new p(A,P)}},7531:(Ue,q,m)=>{"use strict";var e=m(5035),t=m(9708).Buffer,_=m(3735),E=t.alloc(128),s=64;function D(u,k){_.call(this,"digest"),"string"==typeof k&&(k=t.from(k)),this._alg=u,this._key=k,k.length>s?k=u(k):k.length<s&&(k=t.concat([k,E],s));for(var p=this._ipad=t.allocUnsafe(s),S=this._opad=t.allocUnsafe(s),A=0;A<s;A++)p[A]=54^k[A],S[A]=92^k[A];this._hash=[p]}e(D,_),D.prototype._update=function(u){this._hash.push(u)},D.prototype._final=function(){var u=this._alg(t.concat(this._hash));return this._alg(t.concat([this._opad,u]))},Ue.exports=D},9501:(Ue,q,m)=>{"use strict";q.randomBytes=q.rng=q.pseudoRandomBytes=q.prng=m(1186),q.createHash=q.Hash=m(145),q.createHmac=q.Hmac=m(3640);var e=m(8043),t=Object.keys(e),_=["sha1","sha224","sha256","sha384","sha512","md5","rmd160"].concat(t);q.getHashes=function(){return _};var E=m(4540);q.pbkdf2=E.pbkdf2,q.pbkdf2Sync=E.pbkdf2Sync;var s=m(4791);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 D=m(5078);q.DiffieHellmanGroup=D.DiffieHellmanGroup,q.createDiffieHellmanGroup=D.createDiffieHellmanGroup,q.getDiffieHellman=D.getDiffieHellman,q.createDiffieHellman=D.createDiffieHellman,q.DiffieHellman=D.DiffieHellman;var u=m(2124);q.createSign=u.createSign,q.Sign=u.Sign,q.createVerify=u.createVerify,q.Verify=u.Verify,q.createECDH=m(9821);var k=m(1113);q.publicEncrypt=k.publicEncrypt,q.privateEncrypt=k.privateEncrypt,q.publicDecrypt=k.publicDecrypt,q.privateDecrypt=k.privateDecrypt;var p=m(137);q.randomFill=p.randomFill,q.randomFillSync=p.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}},6222:(Ue,q,m)=>{"use strict";q.utils=m(6272),q.Cipher=m(4040),q.DES=m(7066),q.CBC=m(9297),q.EDE=m(4756)},9297:(Ue,q,m)=>{"use strict";var e=m(3999),t=m(5035),_={};function E(D){e.equal(D.length,8,"Invalid IV length"),this.iv=new Array(8);for(var u=0;u<this.iv.length;u++)this.iv[u]=D[u]}q.instantiate=function s(D){function u(A){D.call(this,A),this._cbcInit()}t(u,D);for(var k=Object.keys(_),p=0;p<k.length;p++){var S=k[p];u.prototype[S]=_[S]}return u.create=function(P){return new u(P)},u},_._cbcInit=function(){var u=new E(this.options.iv);this._cbcState=u},_._update=function(u,k,p,S){var A=this._cbcState,P=this.constructor.super_.prototype,M=A.iv;if("encrypt"===this.type){for(var z=0;z<this.blockSize;z++)M[z]^=u[k+z];P._update.call(this,M,0,p,S);for(z=0;z<this.blockSize;z++)M[z]=p[S+z]}else{P._update.call(this,u,k,p,S);for(z=0;z<this.blockSize;z++)p[S+z]^=M[z];for(z=0;z<this.blockSize;z++)M[z]=u[k+z]}}},4040:(Ue,q,m)=>{"use strict";var e=m(3999);function t(_){this.options=_,this.type=this.options.type,this.blockSize=8,this._init(),this.buffer=new Array(this.blockSize),this.bufferOff=0}Ue.exports=t,t.prototype._init=function(){},t.prototype.update=function(E){return 0===E.length?[]:"decrypt"===this.type?this._updateDecrypt(E):this._updateEncrypt(E)},t.prototype._buffer=function(E,s){for(var D=Math.min(this.buffer.length-this.bufferOff,E.length-s),u=0;u<D;u++)this.buffer[this.bufferOff+u]=E[s+u];return this.bufferOff+=D,D},t.prototype._flushBuffer=function(E,s){return this._update(this.buffer,0,E,s),this.bufferOff=0,this.blockSize},t.prototype._updateEncrypt=function(E){var s=0,D=0,u=(this.bufferOff+E.length)/this.blockSize|0,k=new Array(u*this.blockSize);0!==this.bufferOff&&(s+=this._buffer(E,s),this.bufferOff===this.buffer.length&&(D+=this._flushBuffer(k,D)));for(var p=E.length-(E.length-s)%this.blockSize;s<p;s+=this.blockSize)this._update(E,s,k,D),D+=this.blockSize;for(;s<E.length;s++,this.bufferOff++)this.buffer[this.bufferOff]=E[s];return k},t.prototype._updateDecrypt=function(E){for(var s=0,D=0,u=Math.ceil((this.bufferOff+E.length)/this.blockSize)-1,k=new Array(u*this.blockSize);u>0;u--)s+=this._buffer(E,s),D+=this._flushBuffer(k,D);return s+=this._buffer(E,s),k},t.prototype.final=function(E){var s,D;return E&&(s=this.update(E)),D="encrypt"===this.type?this._finalEncrypt():this._finalDecrypt(),s?s.concat(D):D},t.prototype._pad=function(E,s){if(0===s)return!1;for(;s<E.length;)E[s++]=0;return!0},t.prototype._finalEncrypt=function(){if(!this._pad(this.buffer,this.bufferOff))return[];var E=new Array(this.blockSize);return this._update(this.buffer,0,E,0),E},t.prototype._unpad=function(E){return E},t.prototype._finalDecrypt=function(){e.equal(this.bufferOff,this.blockSize,"Not enough data to decrypt");var E=new Array(this.blockSize);return this._flushBuffer(E,0),this._unpad(E)}},7066:(Ue,q,m)=>{"use strict";var e=m(3999),t=m(5035),_=m(6272),E=m(4040);function s(){this.tmp=new Array(2),this.keys=null}function D(k){E.call(this,k);var p=new s;this._desState=p,this.deriveKeys(p,k.key)}t(D,E),Ue.exports=D,D.create=function(p){return new D(p)};var u=[1,1,2,2,2,2,2,2,1,2,2,2,2,2,2,1];D.prototype.deriveKeys=function(p,S){p.keys=new Array(32),e.equal(S.length,this.blockSize,"Invalid key length");var A=_.readUInt32BE(S,0),P=_.readUInt32BE(S,4);_.pc1(A,P,p.tmp,0),A=p.tmp[0],P=p.tmp[1];for(var M=0;M<p.keys.length;M+=2){var z=u[M>>>1];A=_.r28shl(A,z),P=_.r28shl(P,z),_.pc2(A,P,p.keys,M)}},D.prototype._update=function(p,S,A,P){var M=this._desState,z=_.readUInt32BE(p,S),I=_.readUInt32BE(p,S+4);_.ip(z,I,M.tmp,0),z=M.tmp[0],I=M.tmp[1],"encrypt"===this.type?this._encrypt(M,z,I,M.tmp,0):this._decrypt(M,z,I,M.tmp,0),z=M.tmp[0],I=M.tmp[1],_.writeUInt32BE(A,z,P),_.writeUInt32BE(A,I,P+4)},D.prototype._pad=function(p,S){for(var A=p.length-S,P=S;P<p.length;P++)p[P]=A;return!0},D.prototype._unpad=function(p){for(var S=p[p.length-1],A=p.length-S;A<p.length;A++)e.equal(p[A],S);return p.slice(0,p.length-S)},D.prototype._encrypt=function(p,S,A,P,M){for(var z=S,I=A,W=0;W<p.keys.length;W+=2){var Z=p.keys[W],Q=p.keys[W+1];_.expand(I,p.tmp,0),Z^=p.tmp[0],Q^=p.tmp[1];var ie=_.substitute(Z,Q),_e=I;I=(z^_.permute(ie))>>>0,z=_e}_.rip(I,z,P,M)},D.prototype._decrypt=function(p,S,A,P,M){for(var z=A,I=S,W=p.keys.length-2;W>=0;W-=2){var Z=p.keys[W],Q=p.keys[W+1];_.expand(z,p.tmp,0),Z^=p.tmp[0],Q^=p.tmp[1];var ie=_.substitute(Z,Q),_e=z;z=(I^_.permute(ie))>>>0,I=_e}_.rip(z,I,P,M)}},4756:(Ue,q,m)=>{"use strict";var e=m(3999),t=m(5035),_=m(4040),E=m(7066);function s(u,k){e.equal(k.length,24,"Invalid key length");var p=k.slice(0,8),S=k.slice(8,16),A=k.slice(16,24);this.ciphers="encrypt"===u?[E.create({type:"encrypt",key:p}),E.create({type:"decrypt",key:S}),E.create({type:"encrypt",key:A})]:[E.create({type:"decrypt",key:A}),E.create({type:"encrypt",key:S}),E.create({type:"decrypt",key:p})]}function D(u){_.call(this,u);var k=new s(this.type,this.options.key);this._edeState=k}t(D,_),Ue.exports=D,D.create=function(k){return new D(k)},D.prototype._update=function(k,p,S,A){var P=this._edeState;P.ciphers[0]._update(k,p,S,A),P.ciphers[1]._update(S,A,S,A),P.ciphers[2]._update(S,A,S,A)},D.prototype._pad=E.prototype._pad,D.prototype._unpad=E.prototype._unpad},6272:(Ue,q)=>{"use strict";q.readUInt32BE=function(E,s){return(E[0+s]<<24|E[1+s]<<16|E[2+s]<<8|E[3+s])>>>0},q.writeUInt32BE=function(E,s,D){E[0+D]=s>>>24,E[1+D]=s>>>16&255,E[2+D]=s>>>8&255,E[3+D]=255&s},q.ip=function(E,s,D,u){for(var k=0,p=0,S=6;S>=0;S-=2){for(var A=0;A<=24;A+=8)k<<=1,k|=s>>>A+S&1;for(A=0;A<=24;A+=8)k<<=1,k|=E>>>A+S&1}for(S=6;S>=0;S-=2){for(A=1;A<=25;A+=8)p<<=1,p|=s>>>A+S&1;for(A=1;A<=25;A+=8)p<<=1,p|=E>>>A+S&1}D[u+0]=k>>>0,D[u+1]=p>>>0},q.rip=function(E,s,D,u){for(var k=0,p=0,S=0;S<4;S++)for(var A=24;A>=0;A-=8)k<<=1,k|=s>>>A+S&1,k<<=1,k|=E>>>A+S&1;for(S=4;S<8;S++)for(A=24;A>=0;A-=8)p<<=1,p|=s>>>A+S&1,p<<=1,p|=E>>>A+S&1;D[u+0]=k>>>0,D[u+1]=p>>>0},q.pc1=function(E,s,D,u){for(var k=0,p=0,S=7;S>=5;S--){for(var A=0;A<=24;A+=8)k<<=1,k|=s>>A+S&1;for(A=0;A<=24;A+=8)k<<=1,k|=E>>A+S&1}for(A=0;A<=24;A+=8)k<<=1,k|=s>>A+S&1;for(S=1;S<=3;S++){for(A=0;A<=24;A+=8)p<<=1,p|=s>>A+S&1;for(A=0;A<=24;A+=8)p<<=1,p|=E>>A+S&1}for(A=0;A<=24;A+=8)p<<=1,p|=E>>A+S&1;D[u+0]=k>>>0,D[u+1]=p>>>0},q.r28shl=function(E,s){return E<<s&268435455|E>>>28-s};var m=[14,11,17,4,27,23,25,0,13,22,7,18,5,9,16,24,2,20,12,21,1,8,15,26,15,4,25,19,9,1,26,16,5,11,23,8,12,7,17,0,22,3,10,14,6,20,27,24];q.pc2=function(E,s,D,u){for(var k=0,p=0,S=m.length>>>1,A=0;A<S;A++)k<<=1,k|=E>>>m[A]&1;for(A=S;A<m.length;A++)p<<=1,p|=s>>>m[A]&1;D[u+0]=k>>>0,D[u+1]=p>>>0},q.expand=function(E,s,D){var u=0,k=0;u=(1&E)<<5|E>>>27;for(var p=23;p>=15;p-=4)u<<=6,u|=E>>>p&63;for(p=11;p>=3;p-=4)k|=E>>>p&63,k<<=6;k|=(31&E)<<1|E>>>31,s[D+0]=u>>>0,s[D+1]=k>>>0};var e=[14,0,4,15,13,7,1,4,2,14,15,2,11,13,8,1,3,10,10,6,6,12,12,11,5,9,9,5,0,3,7,8,4,15,1,12,14,8,8,2,13,4,6,9,2,1,11,7,15,5,12,11,9,3,7,14,3,10,10,0,5,6,0,13,15,3,1,13,8,4,14,7,6,15,11,2,3,8,4,14,9,12,7,0,2,1,13,10,12,6,0,9,5,11,10,5,0,13,14,8,7,10,11,1,10,3,4,15,13,4,1,2,5,11,8,6,12,7,6,12,9,0,3,5,2,14,15,9,10,13,0,7,9,0,14,9,6,3,3,4,15,6,5,10,1,2,13,8,12,5,7,14,11,12,4,11,2,15,8,1,13,1,6,10,4,13,9,0,8,6,15,9,3,8,0,7,11,4,1,15,2,14,12,3,5,11,10,5,14,2,7,12,7,13,13,8,14,11,3,5,0,6,6,15,9,0,10,3,1,4,2,7,8,2,5,12,11,1,12,10,4,14,15,9,10,3,6,15,9,0,0,6,12,10,11,1,7,13,13,8,15,9,1,4,3,5,14,11,5,12,2,7,8,2,4,14,2,14,12,11,4,2,1,12,7,4,10,7,11,13,6,1,8,5,5,0,3,15,15,10,13,3,0,9,14,8,9,6,4,11,2,8,1,12,11,7,10,1,13,14,7,2,8,13,15,6,9,15,12,0,5,9,6,10,3,4,0,5,14,3,12,10,1,15,10,4,15,2,9,7,2,12,6,9,8,5,0,6,13,1,3,13,4,14,14,0,7,11,5,3,11,8,9,4,14,3,15,2,5,12,2,9,8,5,12,15,3,10,7,11,0,14,4,1,10,7,1,6,13,0,11,8,6,13,4,13,11,0,2,11,14,7,15,4,0,9,8,1,13,10,3,14,12,3,9,5,7,12,5,2,10,15,6,8,1,6,1,6,4,11,11,13,13,8,12,1,3,4,7,10,14,7,10,9,15,5,6,0,8,15,0,14,5,2,9,3,2,12,13,1,2,15,8,13,4,8,6,10,15,3,11,7,1,4,10,12,9,5,3,6,14,11,5,0,0,14,12,9,7,2,7,2,11,1,4,14,1,7,9,4,12,10,14,8,2,13,0,15,6,12,10,9,13,0,15,3,3,5,5,6,8,11];q.substitute=function(E,s){for(var D=0,u=0;u<4;u++){D<<=4,D|=e[64*u+(E>>>18-6*u&63)]}for(u=0;u<4;u++){D<<=4,D|=e[256+64*u+(s>>>18-6*u&63)]}return D>>>0};var t=[16,25,12,11,3,20,4,15,31,17,9,6,27,14,1,22,30,24,8,18,0,5,29,23,13,19,2,26,10,21,28,7];q.permute=function(E){for(var s=0,D=0;D<t.length;D++)s<<=1,s|=E>>>t[D]&1;return s>>>0},q.padSplit=function(E,s,D){for(var u=E.toString(2);u.length<s;)u="0"+u;for(var k=[],p=0;p<s;p+=D)k.push(u.slice(p,p+D));return k.join(" ")}},5078:(Ue,q,m)=>{var e=m(2847),t=m(9799),_=m(5648);var s={binary:!0,hex:!0,base64:!0};q.DiffieHellmanGroup=q.createDiffieHellmanGroup=q.getDiffieHellman=function E(u){var k=new Buffer(t[u].prime,"hex"),p=new Buffer(t[u].gen,"hex");return new _(k,p)},q.createDiffieHellman=q.DiffieHellman=function D(u,k,p,S){return Buffer.isBuffer(k)||void 0===s[k]?D(u,"binary",k,p):(k=k||"binary",S=S||"binary",p=p||new Buffer([2]),Buffer.isBuffer(p)||(p=new Buffer(p,S)),"number"==typeof u?new _(e(u,p),p,!0):(Buffer.isBuffer(u)||(u=new Buffer(u,k)),new _(u,p,!0)))}},5648:(Ue,q,m)=>{var e=m(490),_=new(m(7789)),E=new e(24),s=new e(11),D=new e(10),u=new e(3),k=new e(7),p=m(2847),S=m(1186);function A(Z,Q){return Q=Q||"utf8",Buffer.isBuffer(Z)||(Z=new Buffer(Z,Q)),this._pub=new e(Z),this}function P(Z,Q){return Q=Q||"utf8",Buffer.isBuffer(Z)||(Z=new Buffer(Z,Q)),this._priv=new e(Z),this}Ue.exports=I;var M={};function I(Z,Q,ie){this.setGenerator(Q),this.__prime=new e(Z),this._prime=e.mont(this.__prime),this._primeLen=Z.length,this._pub=void 0,this._priv=void 0,this._primeCode=void 0,ie?(this.setPublicKey=A,this.setPrivateKey=P):this._primeCode=8}function W(Z,Q){var ie=new Buffer(Z.toArray());return Q?ie.toString(Q):ie}Object.defineProperty(I.prototype,"verifyError",{enumerable:!0,get:function(){return"number"!=typeof this._primeCode&&(this._primeCode=function z(Z,Q){var ie=Q.toString("hex"),ae=[ie,Z.toString(16)].join("_");if(ae in M)return M[ae];var ce,_e=0;if(Z.isEven()||!p.simpleSieve||!p.fermatTest(Z)||!_.test(Z))return _e+=1,_e+="02"===ie||"05"===ie?8:4,M[ae]=_e,_e;switch(_.test(Z.shrn(1))||(_e+=2),ie){case"02":Z.mod(E).cmp(s)&&(_e+=8);break;case"05":(ce=Z.mod(D)).cmp(u)&&ce.cmp(k)&&(_e+=8);break;default:_e+=4}return M[ae]=_e,_e}(this.__prime,this.__gen)),this._primeCode}}),I.prototype.generateKeys=function(){return this._priv||(this._priv=new e(S(this._primeLen))),this._pub=this._gen.toRed(this._prime).redPow(this._priv).fromRed(),this.getPublicKey()},I.prototype.computeSecret=function(Z){var Q=(Z=(Z=new e(Z)).toRed(this._prime)).redPow(this._priv).fromRed(),ie=new Buffer(Q.toArray()),ae=this.getPrime();if(ie.length<ae.length){var _e=new Buffer(ae.length-ie.length);_e.fill(0),ie=Buffer.concat([_e,ie])}return ie},I.prototype.getPublicKey=function(Q){return W(this._pub,Q)},I.prototype.getPrivateKey=function(Q){return W(this._priv,Q)},I.prototype.getPrime=function(Z){return W(this.__prime,Z)},I.prototype.getGenerator=function(Z){return W(this._gen,Z)},I.prototype.setGenerator=function(Z,Q){return Q=Q||"utf8",Buffer.isBuffer(Z)||(Z=new Buffer(Z,Q)),this.__gen=Z,this._gen=new e(Z),this}},2847:(Ue,q,m)=>{var e=m(1186);Ue.exports=_e,_e.simpleSieve=ie,_e.fermatTest=ae;var t=m(490),_=new t(24),s=new(m(7789)),D=new t(1),u=new t(2),k=new t(5),A=(new t(16),new t(8),new t(10)),P=new t(3),z=(new t(7),new t(11)),I=new t(4),Z=(new t(12),null);function ie(ce){for(var ye=function Q(){if(null!==Z)return Z;var ye=[];ye[0]=2;for(var ue=1,$=3;$<1048576;$+=2){for(var he=Math.ceil(Math.sqrt($)),w=0;w<ue&&ye[w]<=he&&$%ye[w]!=0;w++);ue!==w&&ye[w]<=he||(ye[ue++]=$)}return Z=ye,ye}(),ue=0;ue<ye.length;ue++)if(0===ce.modn(ye[ue]))return 0===ce.cmpn(ye[ue]);return!0}function ae(ce){var ye=t.mont(ce);return 0===u.toRed(ye).redPow(ce.subn(1)).fromRed().cmpn(1)}function _e(ce,ye){if(ce<16)return new t(2===ye||5===ye?[140,123]:[140,39]);ye=new t(ye);for(var ue,$;;){for(ue=new t(e(Math.ceil(ce/8)));ue.bitLength()>ce;)ue.ishrn(1);if(ue.isEven()&&ue.iadd(D),ue.testn(1)||ue.iadd(u),ye.cmp(u)){if(!ye.cmp(k))for(;ue.mod(A).cmp(P);)ue.iadd(I)}else for(;ue.mod(_).cmp(z);)ue.iadd(I);if(ie($=ue.shrn(1))&&ie(ue)&&ae($)&&ae(ue)&&s.test($)&&s.test(ue))return ue}}},490:function(Ue,q,m){(function(e,t){"use strict";function _(w,n){if(!w)throw new Error(n||"Assertion failed")}function E(w,n){w.super_=n;var o=function(){};o.prototype=n.prototype,w.prototype=new o,w.prototype.constructor=w}function s(w,n,o){if(s.isBN(w))return w;this.negative=0,this.words=null,this.length=0,this.red=null,null!==w&&(("le"===n||"be"===n)&&(o=n,n=10),this._init(w||0,n||10,o||"be"))}var D;"object"==typeof e?e.exports=s:t.BN=s,s.BN=s,s.wordSize=26;try{D=typeof window<"u"&&typeof window.Buffer<"u"?window.Buffer:m(7748).Buffer}catch{}function u(w,n){var o=w.charCodeAt(n);return o>=65&&o<=70?o-55:o>=97&&o<=102?o-87:o-48&15}function k(w,n,o){var h=u(w,o);return o-1>=n&&(h|=u(w,o-1)<<4),h}function p(w,n,o,h){for(var d=0,y=Math.min(w.length,o),L=n;L<y;L++){var B=w.charCodeAt(L)-48;d*=h,d+=B>=49?B-49+10:B>=17?B-17+10:B}return d}s.isBN=function(n){return n instanceof s||null!==n&&"object"==typeof n&&n.constructor.wordSize===s.wordSize&&Array.isArray(n.words)},s.max=function(n,o){return n.cmp(o)>0?n:o},s.min=function(n,o){return n.cmp(o)<0?n:o},s.prototype._init=function(n,o,h){if("number"==typeof n)return this._initNumber(n,o,h);if("object"==typeof n)return this._initArray(n,o,h);"hex"===o&&(o=16),_(o===(0|o)&&o>=2&&o<=36);var d=0;"-"===(n=n.toString().replace(/\s+/g,""))[0]&&(d++,this.negative=1),d<n.length&&(16===o?this._parseHex(n,d,h):(this._parseBase(n,o,d),"le"===h&&this._initArray(this.toArray(),o,h)))},s.prototype._initNumber=function(n,o,h){n<0&&(this.negative=1,n=-n),n<67108864?(this.words=[67108863&n],this.length=1):n<4503599627370496?(this.words=[67108863&n,n/67108864&67108863],this.length=2):(_(n<9007199254740992),this.words=[67108863&n,n/67108864&67108863,1],this.length=3),"le"===h&&this._initArray(this.toArray(),o,h)},s.prototype._initArray=function(n,o,h){if(_("number"==typeof n.length),n.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(n.length/3),this.words=new Array(this.length);for(var d=0;d<this.length;d++)this.words[d]=0;var y,L,B=0;if("be"===h)for(d=n.length-1,y=0;d>=0;d-=3)L=n[d]|n[d-1]<<8|n[d-2]<<16,this.words[y]|=L<<B&67108863,this.words[y+1]=L>>>26-B&67108863,(B+=24)>=26&&(B-=26,y++);else if("le"===h)for(d=0,y=0;d<n.length;d+=3)L=n[d]|n[d+1]<<8|n[d+2]<<16,this.words[y]|=L<<B&67108863,this.words[y+1]=L>>>26-B&67108863,(B+=24)>=26&&(B-=26,y++);return this.strip()},s.prototype._parseHex=function(n,o,h){this.length=Math.ceil((n.length-o)/6),this.words=new Array(this.length);for(var d=0;d<this.length;d++)this.words[d]=0;var B,y=0,L=0;if("be"===h)for(d=n.length-1;d>=o;d-=2)B=k(n,o,d)<<y,this.words[L]|=67108863&B,y>=18?(y-=18,L+=1,this.words[L]|=B>>>26):y+=8;else for(d=(n.length-o)%2==0?o+1:o;d<n.length;d+=2)B=k(n,o,d)<<y,this.words[L]|=67108863&B,y>=18?(y-=18,L+=1,this.words[L]|=B>>>26):y+=8;this.strip()},s.prototype._parseBase=function(n,o,h){this.words=[0],this.length=1;for(var d=0,y=1;y<=67108863;y*=o)d++;d--,y=y/o|0;for(var L=n.length-h,B=L%d,v=Math.min(L,L-B)+h,a=0,C=h;C<v;C+=d)a=p(n,C,C+d,o),this.imuln(y),this.words[0]+a<67108864?this.words[0]+=a:this._iaddn(a);if(0!==B){var N=1;for(a=p(n,C,n.length,o),C=0;C<B;C++)N*=o;this.imuln(N),this.words[0]+a<67108864?this.words[0]+=a:this._iaddn(a)}this.strip()},s.prototype.copy=function(n){n.words=new Array(this.length);for(var o=0;o<this.length;o++)n.words[o]=this.words[o];n.length=this.length,n.negative=this.negative,n.red=this.red},s.prototype.clone=function(){var n=new s(null);return this.copy(n),n},s.prototype._expand=function(n){for(;this.length<n;)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"],A=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],P=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];function z(w,n,o){o.negative=n.negative^w.negative;var h=w.length+n.length|0;o.length=h,h=h-1|0;var d=0|w.words[0],y=0|n.words[0],L=d*y,B=67108863&L,v=L/67108864|0;o.words[0]=B;for(var a=1;a<h;a++){for(var C=v>>>26,N=67108863&v,F=Math.min(a,n.length-1),X=Math.max(0,a-w.length+1);X<=F;X++){var Fe=a-X|0;C+=(L=(d=0|w.words[Fe])*(y=0|n.words[X])+N)/67108864|0,N=67108863&L}o.words[a]=0|N,v=0|C}return 0!==v?o.words[a]=0|v:o.length--,o.strip()}s.prototype.toString=function(n,o){var h;if(o=0|o||1,16===(n=n||10)||"hex"===n){h="";for(var d=0,y=0,L=0;L<this.length;L++){var B=this.words[L],v=(16777215&(B<<d|y)).toString(16);h=0!==(y=B>>>24-d&16777215)||L!==this.length-1?S[6-v.length]+v+h:v+h,(d+=2)>=26&&(d-=26,L--)}for(0!==y&&(h=y.toString(16)+h);h.length%o!=0;)h="0"+h;return 0!==this.negative&&(h="-"+h),h}if(n===(0|n)&&n>=2&&n<=36){var a=A[n],C=P[n];h="";var N=this.clone();for(N.negative=0;!N.isZero();){var F=N.modn(C).toString(n);h=(N=N.idivn(C)).isZero()?F+h:S[a-F.length]+F+h}for(this.isZero()&&(h="0"+h);h.length%o!=0;)h="0"+h;return 0!==this.negative&&(h="-"+h),h}_(!1,"Base should be between 2 and 36")},s.prototype.toNumber=function(){var n=this.words[0];return 2===this.length?n+=67108864*this.words[1]:3===this.length&&1===this.words[2]?n+=4503599627370496+67108864*this.words[1]:this.length>2&&_(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-n:n},s.prototype.toJSON=function(){return this.toString(16)},s.prototype.toBuffer=function(n,o){return _(typeof D<"u"),this.toArrayLike(D,n,o)},s.prototype.toArray=function(n,o){return this.toArrayLike(Array,n,o)},s.prototype.toArrayLike=function(n,o,h){var d=this.byteLength(),y=h||Math.max(1,d);_(d<=y,"byte array longer than desired length"),_(y>0,"Requested array length <= 0"),this.strip();var v,a,L="le"===o,B=new n(y),C=this.clone();if(L){for(a=0;!C.isZero();a++)v=C.andln(255),C.iushrn(8),B[a]=v;for(;a<y;a++)B[a]=0}else{for(a=0;a<y-d;a++)B[a]=0;for(a=0;!C.isZero();a++)v=C.andln(255),C.iushrn(8),B[y-a-1]=v}return B},Math.clz32?s.prototype._countBits=function(n){return 32-Math.clz32(n)}:s.prototype._countBits=function(n){var o=n,h=0;return o>=4096&&(h+=13,o>>>=13),o>=64&&(h+=7,o>>>=7),o>=8&&(h+=4,o>>>=4),o>=2&&(h+=2,o>>>=2),h+o},s.prototype._zeroBits=function(n){if(0===n)return 26;var o=n,h=0;return 0==(8191&o)&&(h+=13,o>>>=13),0==(127&o)&&(h+=7,o>>>=7),0==(15&o)&&(h+=4,o>>>=4),0==(3&o)&&(h+=2,o>>>=2),0==(1&o)&&h++,h},s.prototype.bitLength=function(){var n=this.words[this.length-1],o=this._countBits(n);return 26*(this.length-1)+o},s.prototype.zeroBits=function(){if(this.isZero())return 0;for(var n=0,o=0;o<this.length;o++){var h=this._zeroBits(this.words[o]);if(n+=h,26!==h)break}return n},s.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},s.prototype.toTwos=function(n){return 0!==this.negative?this.abs().inotn(n).iaddn(1):this.clone()},s.prototype.fromTwos=function(n){return this.testn(n-1)?this.notn(n).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(n){for(;this.length<n.length;)this.words[this.length++]=0;for(var o=0;o<n.length;o++)this.words[o]=this.words[o]|n.words[o];return this.strip()},s.prototype.ior=function(n){return _(0==(this.negative|n.negative)),this.iuor(n)},s.prototype.or=function(n){return this.length>n.length?this.clone().ior(n):n.clone().ior(this)},s.prototype.uor=function(n){return this.length>n.length?this.clone().iuor(n):n.clone().iuor(this)},s.prototype.iuand=function(n){var o;o=this.length>n.length?n:this;for(var h=0;h<o.length;h++)this.words[h]=this.words[h]&n.words[h];return this.length=o.length,this.strip()},s.prototype.iand=function(n){return _(0==(this.negative|n.negative)),this.iuand(n)},s.prototype.and=function(n){return this.length>n.length?this.clone().iand(n):n.clone().iand(this)},s.prototype.uand=function(n){return this.length>n.length?this.clone().iuand(n):n.clone().iuand(this)},s.prototype.iuxor=function(n){var o,h;this.length>n.length?(o=this,h=n):(o=n,h=this);for(var d=0;d<h.length;d++)this.words[d]=o.words[d]^h.words[d];if(this!==o)for(;d<o.length;d++)this.words[d]=o.words[d];return this.length=o.length,this.strip()},s.prototype.ixor=function(n){return _(0==(this.negative|n.negative)),this.iuxor(n)},s.prototype.xor=function(n){return this.length>n.length?this.clone().ixor(n):n.clone().ixor(this)},s.prototype.uxor=function(n){return this.length>n.length?this.clone().iuxor(n):n.clone().iuxor(this)},s.prototype.inotn=function(n){_("number"==typeof n&&n>=0);var o=0|Math.ceil(n/26),h=n%26;this._expand(o),h>0&&o--;for(var d=0;d<o;d++)this.words[d]=67108863&~this.words[d];return h>0&&(this.words[d]=~this.words[d]&67108863>>26-h),this.strip()},s.prototype.notn=function(n){return this.clone().inotn(n)},s.prototype.setn=function(n,o){_("number"==typeof n&&n>=0);var h=n/26|0,d=n%26;return this._expand(h+1),this.words[h]=o?this.words[h]|1<<d:this.words[h]&~(1<<d),this.strip()},s.prototype.iadd=function(n){var o,h,d;if(0!==this.negative&&0===n.negative)return this.negative=0,o=this.isub(n),this.negative^=1,this._normSign();if(0===this.negative&&0!==n.negative)return n.negative=0,o=this.isub(n),n.negative=1,o._normSign();this.length>n.length?(h=this,d=n):(h=n,d=this);for(var y=0,L=0;L<d.length;L++)o=(0|h.words[L])+(0|d.words[L])+y,this.words[L]=67108863&o,y=o>>>26;for(;0!==y&&L<h.length;L++)o=(0|h.words[L])+y,this.words[L]=67108863&o,y=o>>>26;if(this.length=h.length,0!==y)this.words[this.length]=y,this.length++;else if(h!==this)for(;L<h.length;L++)this.words[L]=h.words[L];return this},s.prototype.add=function(n){var o;return 0!==n.negative&&0===this.negative?(n.negative=0,o=this.sub(n),n.negative^=1,o):0===n.negative&&0!==this.negative?(this.negative=0,o=n.sub(this),this.negative=1,o):this.length>n.length?this.clone().iadd(n):n.clone().iadd(this)},s.prototype.isub=function(n){if(0!==n.negative){n.negative=0;var o=this.iadd(n);return n.negative=1,o._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(n),this.negative=1,this._normSign();var d,y,h=this.cmp(n);if(0===h)return this.negative=0,this.length=1,this.words[0]=0,this;h>0?(d=this,y=n):(d=n,y=this);for(var L=0,B=0;B<y.length;B++)L=(o=(0|d.words[B])-(0|y.words[B])+L)>>26,this.words[B]=67108863&o;for(;0!==L&&B<d.length;B++)L=(o=(0|d.words[B])+L)>>26,this.words[B]=67108863&o;if(0===L&&B<d.length&&d!==this)for(;B<d.length;B++)this.words[B]=d.words[B];return this.length=Math.max(this.length,B),d!==this&&(this.negative=1),this.strip()},s.prototype.sub=function(n){return this.clone().isub(n)};var I=function(n,o,h){var v,a,C,d=n.words,y=o.words,L=h.words,B=0,N=0|d[0],F=8191&N,X=N>>>13,Fe=0|d[1],ke=8191&Fe,Ke=Fe>>>13,je=0|d[2],Ve=8191&je,xe=je>>>13,Ze=0|d[3],Ie=8191&Ze,ve=Ze>>>13,et=0|d[4],ht=8191&et,Le=et>>>13,Ae=0|d[5],te=8191&Ae,pe=Ae>>>13,ee=0|d[6],H=8191&ee,j=ee>>>13,Oe=0|d[7],Re=8191&Oe,le=Oe>>>13,_t=0|d[8],it=8191&_t,Ct=_t>>>13,un=0|d[9],Bt=8191&un,Ut=un>>>13,yn=0|y[0],Xt=8191&yn,Gt=yn>>>13,In=0|y[1],rn=8191&In,tn=In>>>13,pn=0|y[2],tt=8191&pn,vt=pn>>>13,dt=0|y[3],se=8191&dt,J=dt>>>13,oe=0|y[4],De=8191&oe,Ye=oe>>>13,Dt=0|y[5],ut=8191&Dt,ze=Dt>>>13,Me=0|y[6],Ce=8191&Me,Je=Me>>>13,zt=0|y[7],At=8191&zt,Tt=zt>>>13,Ht=0|y[8],He=8191&Ht,$e=Ht>>>13,$t=0|y[9],Rt=8191&$t,Jt=$t>>>13;h.negative=n.negative^o.negative,h.length=19;var Vn=(B+(v=Math.imul(F,Xt))|0)+((8191&(a=(a=Math.imul(F,Gt))+Math.imul(X,Xt)|0))<<13)|0;B=((C=Math.imul(X,Gt))+(a>>>13)|0)+(Vn>>>26)|0,Vn&=67108863,v=Math.imul(ke,Xt),a=(a=Math.imul(ke,Gt))+Math.imul(Ke,Xt)|0,C=Math.imul(Ke,Gt);var zn=(B+(v=v+Math.imul(F,rn)|0)|0)+((8191&(a=(a=a+Math.imul(F,tn)|0)+Math.imul(X,rn)|0))<<13)|0;B=((C=C+Math.imul(X,tn)|0)+(a>>>13)|0)+(zn>>>26)|0,zn&=67108863,v=Math.imul(Ve,Xt),a=(a=Math.imul(Ve,Gt))+Math.imul(xe,Xt)|0,C=Math.imul(xe,Gt),v=v+Math.imul(ke,rn)|0,a=(a=a+Math.imul(ke,tn)|0)+Math.imul(Ke,rn)|0,C=C+Math.imul(Ke,tn)|0;var Tn=(B+(v=v+Math.imul(F,tt)|0)|0)+((8191&(a=(a=a+Math.imul(F,vt)|0)+Math.imul(X,tt)|0))<<13)|0;B=((C=C+Math.imul(X,vt)|0)+(a>>>13)|0)+(Tn>>>26)|0,Tn&=67108863,v=Math.imul(Ie,Xt),a=(a=Math.imul(Ie,Gt))+Math.imul(ve,Xt)|0,C=Math.imul(ve,Gt),v=v+Math.imul(Ve,rn)|0,a=(a=a+Math.imul(Ve,tn)|0)+Math.imul(xe,rn)|0,C=C+Math.imul(xe,tn)|0,v=v+Math.imul(ke,tt)|0,a=(a=a+Math.imul(ke,vt)|0)+Math.imul(Ke,tt)|0,C=C+Math.imul(Ke,vt)|0;var Yn=(B+(v=v+Math.imul(F,se)|0)|0)+((8191&(a=(a=a+Math.imul(F,J)|0)+Math.imul(X,se)|0))<<13)|0;B=((C=C+Math.imul(X,J)|0)+(a>>>13)|0)+(Yn>>>26)|0,Yn&=67108863,v=Math.imul(ht,Xt),a=(a=Math.imul(ht,Gt))+Math.imul(Le,Xt)|0,C=Math.imul(Le,Gt),v=v+Math.imul(Ie,rn)|0,a=(a=a+Math.imul(Ie,tn)|0)+Math.imul(ve,rn)|0,C=C+Math.imul(ve,tn)|0,v=v+Math.imul(Ve,tt)|0,a=(a=a+Math.imul(Ve,vt)|0)+Math.imul(xe,tt)|0,C=C+Math.imul(xe,vt)|0,v=v+Math.imul(ke,se)|0,a=(a=a+Math.imul(ke,J)|0)+Math.imul(Ke,se)|0,C=C+Math.imul(Ke,J)|0;var Mt=(B+(v=v+Math.imul(F,De)|0)|0)+((8191&(a=(a=a+Math.imul(F,Ye)|0)+Math.imul(X,De)|0))<<13)|0;B=((C=C+Math.imul(X,Ye)|0)+(a>>>13)|0)+(Mt>>>26)|0,Mt&=67108863,v=Math.imul(te,Xt),a=(a=Math.imul(te,Gt))+Math.imul(pe,Xt)|0,C=Math.imul(pe,Gt),v=v+Math.imul(ht,rn)|0,a=(a=a+Math.imul(ht,tn)|0)+Math.imul(Le,rn)|0,C=C+Math.imul(Le,tn)|0,v=v+Math.imul(Ie,tt)|0,a=(a=a+Math.imul(Ie,vt)|0)+Math.imul(ve,tt)|0,C=C+Math.imul(ve,vt)|0,v=v+Math.imul(Ve,se)|0,a=(a=a+Math.imul(Ve,J)|0)+Math.imul(xe,se)|0,C=C+Math.imul(xe,J)|0,v=v+Math.imul(ke,De)|0,a=(a=a+Math.imul(ke,Ye)|0)+Math.imul(Ke,De)|0,C=C+Math.imul(Ke,Ye)|0;var Ge=(B+(v=v+Math.imul(F,ut)|0)|0)+((8191&(a=(a=a+Math.imul(F,ze)|0)+Math.imul(X,ut)|0))<<13)|0;B=((C=C+Math.imul(X,ze)|0)+(a>>>13)|0)+(Ge>>>26)|0,Ge&=67108863,v=Math.imul(H,Xt),a=(a=Math.imul(H,Gt))+Math.imul(j,Xt)|0,C=Math.imul(j,Gt),v=v+Math.imul(te,rn)|0,a=(a=a+Math.imul(te,tn)|0)+Math.imul(pe,rn)|0,C=C+Math.imul(pe,tn)|0,v=v+Math.imul(ht,tt)|0,a=(a=a+Math.imul(ht,vt)|0)+Math.imul(Le,tt)|0,C=C+Math.imul(Le,vt)|0,v=v+Math.imul(Ie,se)|0,a=(a=a+Math.imul(Ie,J)|0)+Math.imul(ve,se)|0,C=C+Math.imul(ve,J)|0,v=v+Math.imul(Ve,De)|0,a=(a=a+Math.imul(Ve,Ye)|0)+Math.imul(xe,De)|0,C=C+Math.imul(xe,Ye)|0,v=v+Math.imul(ke,ut)|0,a=(a=a+Math.imul(ke,ze)|0)+Math.imul(Ke,ut)|0,C=C+Math.imul(Ke,ze)|0;var Be=(B+(v=v+Math.imul(F,Ce)|0)|0)+((8191&(a=(a=a+Math.imul(F,Je)|0)+Math.imul(X,Ce)|0))<<13)|0;B=((C=C+Math.imul(X,Je)|0)+(a>>>13)|0)+(Be>>>26)|0,Be&=67108863,v=Math.imul(Re,Xt),a=(a=Math.imul(Re,Gt))+Math.imul(le,Xt)|0,C=Math.imul(le,Gt),v=v+Math.imul(H,rn)|0,a=(a=a+Math.imul(H,tn)|0)+Math.imul(j,rn)|0,C=C+Math.imul(j,tn)|0,v=v+Math.imul(te,tt)|0,a=(a=a+Math.imul(te,vt)|0)+Math.imul(pe,tt)|0,C=C+Math.imul(pe,vt)|0,v=v+Math.imul(ht,se)|0,a=(a=a+Math.imul(ht,J)|0)+Math.imul(Le,se)|0,C=C+Math.imul(Le,J)|0,v=v+Math.imul(Ie,De)|0,a=(a=a+Math.imul(Ie,Ye)|0)+Math.imul(ve,De)|0,C=C+Math.imul(ve,Ye)|0,v=v+Math.imul(Ve,ut)|0,a=(a=a+Math.imul(Ve,ze)|0)+Math.imul(xe,ut)|0,C=C+Math.imul(xe,ze)|0,v=v+Math.imul(ke,Ce)|0,a=(a=a+Math.imul(ke,Je)|0)+Math.imul(Ke,Ce)|0,C=C+Math.imul(Ke,Je)|0;var ft=(B+(v=v+Math.imul(F,At)|0)|0)+((8191&(a=(a=a+Math.imul(F,Tt)|0)+Math.imul(X,At)|0))<<13)|0;B=((C=C+Math.imul(X,Tt)|0)+(a>>>13)|0)+(ft>>>26)|0,ft&=67108863,v=Math.imul(it,Xt),a=(a=Math.imul(it,Gt))+Math.imul(Ct,Xt)|0,C=Math.imul(Ct,Gt),v=v+Math.imul(Re,rn)|0,a=(a=a+Math.imul(Re,tn)|0)+Math.imul(le,rn)|0,C=C+Math.imul(le,tn)|0,v=v+Math.imul(H,tt)|0,a=(a=a+Math.imul(H,vt)|0)+Math.imul(j,tt)|0,C=C+Math.imul(j,vt)|0,v=v+Math.imul(te,se)|0,a=(a=a+Math.imul(te,J)|0)+Math.imul(pe,se)|0,C=C+Math.imul(pe,J)|0,v=v+Math.imul(ht,De)|0,a=(a=a+Math.imul(ht,Ye)|0)+Math.imul(Le,De)|0,C=C+Math.imul(Le,Ye)|0,v=v+Math.imul(Ie,ut)|0,a=(a=a+Math.imul(Ie,ze)|0)+Math.imul(ve,ut)|0,C=C+Math.imul(ve,ze)|0,v=v+Math.imul(Ve,Ce)|0,a=(a=a+Math.imul(Ve,Je)|0)+Math.imul(xe,Ce)|0,C=C+Math.imul(xe,Je)|0,v=v+Math.imul(ke,At)|0,a=(a=a+Math.imul(ke,Tt)|0)+Math.imul(Ke,At)|0,C=C+Math.imul(Ke,Tt)|0;var re=(B+(v=v+Math.imul(F,He)|0)|0)+((8191&(a=(a=a+Math.imul(F,$e)|0)+Math.imul(X,He)|0))<<13)|0;B=((C=C+Math.imul(X,$e)|0)+(a>>>13)|0)+(re>>>26)|0,re&=67108863,v=Math.imul(Bt,Xt),a=(a=Math.imul(Bt,Gt))+Math.imul(Ut,Xt)|0,C=Math.imul(Ut,Gt),v=v+Math.imul(it,rn)|0,a=(a=a+Math.imul(it,tn)|0)+Math.imul(Ct,rn)|0,C=C+Math.imul(Ct,tn)|0,v=v+Math.imul(Re,tt)|0,a=(a=a+Math.imul(Re,vt)|0)+Math.imul(le,tt)|0,C=C+Math.imul(le,vt)|0,v=v+Math.imul(H,se)|0,a=(a=a+Math.imul(H,J)|0)+Math.imul(j,se)|0,C=C+Math.imul(j,J)|0,v=v+Math.imul(te,De)|0,a=(a=a+Math.imul(te,Ye)|0)+Math.imul(pe,De)|0,C=C+Math.imul(pe,Ye)|0,v=v+Math.imul(ht,ut)|0,a=(a=a+Math.imul(ht,ze)|0)+Math.imul(Le,ut)|0,C=C+Math.imul(Le,ze)|0,v=v+Math.imul(Ie,Ce)|0,a=(a=a+Math.imul(Ie,Je)|0)+Math.imul(ve,Ce)|0,C=C+Math.imul(ve,Je)|0,v=v+Math.imul(Ve,At)|0,a=(a=a+Math.imul(Ve,Tt)|0)+Math.imul(xe,At)|0,C=C+Math.imul(xe,Tt)|0,v=v+Math.imul(ke,He)|0,a=(a=a+Math.imul(ke,$e)|0)+Math.imul(Ke,He)|0,C=C+Math.imul(Ke,$e)|0;var Te=(B+(v=v+Math.imul(F,Rt)|0)|0)+((8191&(a=(a=a+Math.imul(F,Jt)|0)+Math.imul(X,Rt)|0))<<13)|0;B=((C=C+Math.imul(X,Jt)|0)+(a>>>13)|0)+(Te>>>26)|0,Te&=67108863,v=Math.imul(Bt,rn),a=(a=Math.imul(Bt,tn))+Math.imul(Ut,rn)|0,C=Math.imul(Ut,tn),v=v+Math.imul(it,tt)|0,a=(a=a+Math.imul(it,vt)|0)+Math.imul(Ct,tt)|0,C=C+Math.imul(Ct,vt)|0,v=v+Math.imul(Re,se)|0,a=(a=a+Math.imul(Re,J)|0)+Math.imul(le,se)|0,C=C+Math.imul(le,J)|0,v=v+Math.imul(H,De)|0,a=(a=a+Math.imul(H,Ye)|0)+Math.imul(j,De)|0,C=C+Math.imul(j,Ye)|0,v=v+Math.imul(te,ut)|0,a=(a=a+Math.imul(te,ze)|0)+Math.imul(pe,ut)|0,C=C+Math.imul(pe,ze)|0,v=v+Math.imul(ht,Ce)|0,a=(a=a+Math.imul(ht,Je)|0)+Math.imul(Le,Ce)|0,C=C+Math.imul(Le,Je)|0,v=v+Math.imul(Ie,At)|0,a=(a=a+Math.imul(Ie,Tt)|0)+Math.imul(ve,At)|0,C=C+Math.imul(ve,Tt)|0,v=v+Math.imul(Ve,He)|0,a=(a=a+Math.imul(Ve,$e)|0)+Math.imul(xe,He)|0,C=C+Math.imul(xe,$e)|0;var pt=(B+(v=v+Math.imul(ke,Rt)|0)|0)+((8191&(a=(a=a+Math.imul(ke,Jt)|0)+Math.imul(Ke,Rt)|0))<<13)|0;B=((C=C+Math.imul(Ke,Jt)|0)+(a>>>13)|0)+(pt>>>26)|0,pt&=67108863,v=Math.imul(Bt,tt),a=(a=Math.imul(Bt,vt))+Math.imul(Ut,tt)|0,C=Math.imul(Ut,vt),v=v+Math.imul(it,se)|0,a=(a=a+Math.imul(it,J)|0)+Math.imul(Ct,se)|0,C=C+Math.imul(Ct,J)|0,v=v+Math.imul(Re,De)|0,a=(a=a+Math.imul(Re,Ye)|0)+Math.imul(le,De)|0,C=C+Math.imul(le,Ye)|0,v=v+Math.imul(H,ut)|0,a=(a=a+Math.imul(H,ze)|0)+Math.imul(j,ut)|0,C=C+Math.imul(j,ze)|0,v=v+Math.imul(te,Ce)|0,a=(a=a+Math.imul(te,Je)|0)+Math.imul(pe,Ce)|0,C=C+Math.imul(pe,Je)|0,v=v+Math.imul(ht,At)|0,a=(a=a+Math.imul(ht,Tt)|0)+Math.imul(Le,At)|0,C=C+Math.imul(Le,Tt)|0,v=v+Math.imul(Ie,He)|0,a=(a=a+Math.imul(Ie,$e)|0)+Math.imul(ve,He)|0,C=C+Math.imul(ve,$e)|0;var Lt=(B+(v=v+Math.imul(Ve,Rt)|0)|0)+((8191&(a=(a=a+Math.imul(Ve,Jt)|0)+Math.imul(xe,Rt)|0))<<13)|0;B=((C=C+Math.imul(xe,Jt)|0)+(a>>>13)|0)+(Lt>>>26)|0,Lt&=67108863,v=Math.imul(Bt,se),a=(a=Math.imul(Bt,J))+Math.imul(Ut,se)|0,C=Math.imul(Ut,J),v=v+Math.imul(it,De)|0,a=(a=a+Math.imul(it,Ye)|0)+Math.imul(Ct,De)|0,C=C+Math.imul(Ct,Ye)|0,v=v+Math.imul(Re,ut)|0,a=(a=a+Math.imul(Re,ze)|0)+Math.imul(le,ut)|0,C=C+Math.imul(le,ze)|0,v=v+Math.imul(H,Ce)|0,a=(a=a+Math.imul(H,Je)|0)+Math.imul(j,Ce)|0,C=C+Math.imul(j,Je)|0,v=v+Math.imul(te,At)|0,a=(a=a+Math.imul(te,Tt)|0)+Math.imul(pe,At)|0,C=C+Math.imul(pe,Tt)|0,v=v+Math.imul(ht,He)|0,a=(a=a+Math.imul(ht,$e)|0)+Math.imul(Le,He)|0,C=C+Math.imul(Le,$e)|0;var nn=(B+(v=v+Math.imul(Ie,Rt)|0)|0)+((8191&(a=(a=a+Math.imul(Ie,Jt)|0)+Math.imul(ve,Rt)|0))<<13)|0;B=((C=C+Math.imul(ve,Jt)|0)+(a>>>13)|0)+(nn>>>26)|0,nn&=67108863,v=Math.imul(Bt,De),a=(a=Math.imul(Bt,Ye))+Math.imul(Ut,De)|0,C=Math.imul(Ut,Ye),v=v+Math.imul(it,ut)|0,a=(a=a+Math.imul(it,ze)|0)+Math.imul(Ct,ut)|0,C=C+Math.imul(Ct,ze)|0,v=v+Math.imul(Re,Ce)|0,a=(a=a+Math.imul(Re,Je)|0)+Math.imul(le,Ce)|0,C=C+Math.imul(le,Je)|0,v=v+Math.imul(H,At)|0,a=(a=a+Math.imul(H,Tt)|0)+Math.imul(j,At)|0,C=C+Math.imul(j,Tt)|0,v=v+Math.imul(te,He)|0,a=(a=a+Math.imul(te,$e)|0)+Math.imul(pe,He)|0,C=C+Math.imul(pe,$e)|0;var Bn=(B+(v=v+Math.imul(ht,Rt)|0)|0)+((8191&(a=(a=a+Math.imul(ht,Jt)|0)+Math.imul(Le,Rt)|0))<<13)|0;B=((C=C+Math.imul(Le,Jt)|0)+(a>>>13)|0)+(Bn>>>26)|0,Bn&=67108863,v=Math.imul(Bt,ut),a=(a=Math.imul(Bt,ze))+Math.imul(Ut,ut)|0,C=Math.imul(Ut,ze),v=v+Math.imul(it,Ce)|0,a=(a=a+Math.imul(it,Je)|0)+Math.imul(Ct,Ce)|0,C=C+Math.imul(Ct,Je)|0,v=v+Math.imul(Re,At)|0,a=(a=a+Math.imul(Re,Tt)|0)+Math.imul(le,At)|0,C=C+Math.imul(le,Tt)|0,v=v+Math.imul(H,He)|0,a=(a=a+Math.imul(H,$e)|0)+Math.imul(j,He)|0,C=C+Math.imul(j,$e)|0;var Wn=(B+(v=v+Math.imul(te,Rt)|0)|0)+((8191&(a=(a=a+Math.imul(te,Jt)|0)+Math.imul(pe,Rt)|0))<<13)|0;B=((C=C+Math.imul(pe,Jt)|0)+(a>>>13)|0)+(Wn>>>26)|0,Wn&=67108863,v=Math.imul(Bt,Ce),a=(a=Math.imul(Bt,Je))+Math.imul(Ut,Ce)|0,C=Math.imul(Ut,Je),v=v+Math.imul(it,At)|0,a=(a=a+Math.imul(it,Tt)|0)+Math.imul(Ct,At)|0,C=C+Math.imul(Ct,Tt)|0,v=v+Math.imul(Re,He)|0,a=(a=a+Math.imul(Re,$e)|0)+Math.imul(le,He)|0,C=C+Math.imul(le,$e)|0;var ti=(B+(v=v+Math.imul(H,Rt)|0)|0)+((8191&(a=(a=a+Math.imul(H,Jt)|0)+Math.imul(j,Rt)|0))<<13)|0;B=((C=C+Math.imul(j,Jt)|0)+(a>>>13)|0)+(ti>>>26)|0,ti&=67108863,v=Math.imul(Bt,At),a=(a=Math.imul(Bt,Tt))+Math.imul(Ut,At)|0,C=Math.imul(Ut,Tt),v=v+Math.imul(it,He)|0,a=(a=a+Math.imul(it,$e)|0)+Math.imul(Ct,He)|0,C=C+Math.imul(Ct,$e)|0;var Mn=(B+(v=v+Math.imul(Re,Rt)|0)|0)+((8191&(a=(a=a+Math.imul(Re,Jt)|0)+Math.imul(le,Rt)|0))<<13)|0;B=((C=C+Math.imul(le,Jt)|0)+(a>>>13)|0)+(Mn>>>26)|0,Mn&=67108863,v=Math.imul(Bt,He),a=(a=Math.imul(Bt,$e))+Math.imul(Ut,He)|0,C=Math.imul(Ut,$e);var Ln=(B+(v=v+Math.imul(it,Rt)|0)|0)+((8191&(a=(a=a+Math.imul(it,Jt)|0)+Math.imul(Ct,Rt)|0))<<13)|0;B=((C=C+Math.imul(Ct,Jt)|0)+(a>>>13)|0)+(Ln>>>26)|0,Ln&=67108863;var ai=(B+(v=Math.imul(Bt,Rt))|0)+((8191&(a=(a=Math.imul(Bt,Jt))+Math.imul(Ut,Rt)|0))<<13)|0;return B=((C=Math.imul(Ut,Jt))+(a>>>13)|0)+(ai>>>26)|0,ai&=67108863,L[0]=Vn,L[1]=zn,L[2]=Tn,L[3]=Yn,L[4]=Mt,L[5]=Ge,L[6]=Be,L[7]=ft,L[8]=re,L[9]=Te,L[10]=pt,L[11]=Lt,L[12]=nn,L[13]=Bn,L[14]=Wn,L[15]=ti,L[16]=Mn,L[17]=Ln,L[18]=ai,0!==B&&(L[19]=B,h.length++),h};function Z(w,n,o){return(new Q).mulp(w,n,o)}function Q(w,n){this.x=w,this.y=n}Math.imul||(I=z),s.prototype.mulTo=function(n,o){var h,d=this.length+n.length;return h=10===this.length&&10===n.length?I(this,n,o):d<63?z(this,n,o):d<1024?function W(w,n,o){o.negative=n.negative^w.negative,o.length=w.length+n.length;for(var h=0,d=0,y=0;y<o.length-1;y++){var L=d;d=0;for(var B=67108863&h,v=Math.min(y,n.length-1),a=Math.max(0,y-w.length+1);a<=v;a++){var C=y-a,X=(0|w.words[C])*(0|n.words[a]),Fe=67108863&X;B=67108863&(Fe=Fe+B|0),d+=(L=(L=L+(X/67108864|0)|0)+(Fe>>>26)|0)>>>26,L&=67108863}o.words[y]=B,h=L,L=d}return 0!==h?o.words[y]=h:o.length--,o.strip()}(this,n,o):Z(this,n,o),h},Q.prototype.makeRBT=function(n){for(var o=new Array(n),h=s.prototype._countBits(n)-1,d=0;d<n;d++)o[d]=this.revBin(d,h,n);return o},Q.prototype.revBin=function(n,o,h){if(0===n||n===h-1)return n;for(var d=0,y=0;y<o;y++)d|=(1&n)<<o-y-1,n>>=1;return d},Q.prototype.permute=function(n,o,h,d,y,L){for(var B=0;B<L;B++)d[B]=o[n[B]],y[B]=h[n[B]]},Q.prototype.transform=function(n,o,h,d,y,L){this.permute(L,n,o,h,d,y);for(var B=1;B<y;B<<=1)for(var v=B<<1,a=Math.cos(2*Math.PI/v),C=Math.sin(2*Math.PI/v),N=0;N<y;N+=v)for(var F=a,X=C,Fe=0;Fe<B;Fe++){var ke=h[N+Fe],Ke=d[N+Fe],je=h[N+Fe+B],Ve=d[N+Fe+B],xe=F*je-X*Ve;Ve=F*Ve+X*je,je=xe,h[N+Fe]=ke+je,d[N+Fe]=Ke+Ve,h[N+Fe+B]=ke-je,d[N+Fe+B]=Ke-Ve,Fe!==v&&(xe=a*F-C*X,X=a*X+C*F,F=xe)}},Q.prototype.guessLen13b=function(n,o){var h=1|Math.max(o,n),d=1&h,y=0;for(h=h/2|0;h;h>>>=1)y++;return 1<<y+1+d},Q.prototype.conjugate=function(n,o,h){if(!(h<=1))for(var d=0;d<h/2;d++){var y=n[d];n[d]=n[h-d-1],n[h-d-1]=y,y=o[d],o[d]=-o[h-d-1],o[h-d-1]=-y}},Q.prototype.normalize13b=function(n,o){for(var h=0,d=0;d<o/2;d++){var y=8192*Math.round(n[2*d+1]/o)+Math.round(n[2*d]/o)+h;n[d]=67108863&y,h=y<67108864?0:y/67108864|0}return n},Q.prototype.convert13b=function(n,o,h,d){for(var y=0,L=0;L<o;L++)y+=0|n[L],h[2*L]=8191&y,y>>>=13,h[2*L+1]=8191&y,y>>>=13;for(L=2*o;L<d;++L)h[L]=0;_(0===y),_(0==(-8192&y))},Q.prototype.stub=function(n){for(var o=new Array(n),h=0;h<n;h++)o[h]=0;return o},Q.prototype.mulp=function(n,o,h){var d=2*this.guessLen13b(n.length,o.length),y=this.makeRBT(d),L=this.stub(d),B=new Array(d),v=new Array(d),a=new Array(d),C=new Array(d),N=new Array(d),F=new Array(d),X=h.words;X.length=d,this.convert13b(n.words,n.length,B,d),this.convert13b(o.words,o.length,C,d),this.transform(B,L,v,a,d,y),this.transform(C,L,N,F,d,y);for(var Fe=0;Fe<d;Fe++){var ke=v[Fe]*N[Fe]-a[Fe]*F[Fe];a[Fe]=v[Fe]*F[Fe]+a[Fe]*N[Fe],v[Fe]=ke}return this.conjugate(v,a,d),this.transform(v,a,X,L,d,y),this.conjugate(X,L,d),this.normalize13b(X,d),h.negative=n.negative^o.negative,h.length=n.length+o.length,h.strip()},s.prototype.mul=function(n){var o=new s(null);return o.words=new Array(this.length+n.length),this.mulTo(n,o)},s.prototype.mulf=function(n){var o=new s(null);return o.words=new Array(this.length+n.length),Z(this,n,o)},s.prototype.imul=function(n){return this.clone().mulTo(n,this)},s.prototype.imuln=function(n){_("number"==typeof n),_(n<67108864);for(var o=0,h=0;h<this.length;h++){var d=(0|this.words[h])*n,y=(67108863&d)+(67108863&o);o>>=26,o+=d/67108864|0,o+=y>>>26,this.words[h]=67108863&y}return 0!==o&&(this.words[h]=o,this.length++),this},s.prototype.muln=function(n){return this.clone().imuln(n)},s.prototype.sqr=function(){return this.mul(this)},s.prototype.isqr=function(){return this.imul(this.clone())},s.prototype.pow=function(n){var o=function M(w){for(var n=new Array(w.bitLength()),o=0;o<n.length;o++){var h=o/26|0,d=o%26;n[o]=(w.words[h]&1<<d)>>>d}return n}(n);if(0===o.length)return new s(1);for(var h=this,d=0;d<o.length&&0===o[d];d++,h=h.sqr());if(++d<o.length)for(var y=h.sqr();d<o.length;d++,y=y.sqr())0!==o[d]&&(h=h.mul(y));return h},s.prototype.iushln=function(n){_("number"==typeof n&&n>=0);var y,o=n%26,h=(n-o)/26,d=67108863>>>26-o<<26-o;if(0!==o){var L=0;for(y=0;y<this.length;y++){var B=this.words[y]&d,v=(0|this.words[y])-B<<o;this.words[y]=v|L,L=B>>>26-o}L&&(this.words[y]=L,this.length++)}if(0!==h){for(y=this.length-1;y>=0;y--)this.words[y+h]=this.words[y];for(y=0;y<h;y++)this.words[y]=0;this.length+=h}return this.strip()},s.prototype.ishln=function(n){return _(0===this.negative),this.iushln(n)},s.prototype.iushrn=function(n,o,h){var d;_("number"==typeof n&&n>=0),d=o?(o-o%26)/26:0;var y=n%26,L=Math.min((n-y)/26,this.length),B=67108863^67108863>>>y<<y,v=h;if(d-=L,d=Math.max(0,d),v){for(var a=0;a<L;a++)v.words[a]=this.words[a];v.length=L}if(0!==L)if(this.length>L)for(this.length-=L,a=0;a<this.length;a++)this.words[a]=this.words[a+L];else this.words[0]=0,this.length=1;var C=0;for(a=this.length-1;a>=0&&(0!==C||a>=d);a--){var N=0|this.words[a];this.words[a]=C<<26-y|N>>>y,C=N&B}return v&&0!==C&&(v.words[v.length++]=C),0===this.length&&(this.words[0]=0,this.length=1),this.strip()},s.prototype.ishrn=function(n,o,h){return _(0===this.negative),this.iushrn(n,o,h)},s.prototype.shln=function(n){return this.clone().ishln(n)},s.prototype.ushln=function(n){return this.clone().iushln(n)},s.prototype.shrn=function(n){return this.clone().ishrn(n)},s.prototype.ushrn=function(n){return this.clone().iushrn(n)},s.prototype.testn=function(n){_("number"==typeof n&&n>=0);var o=n%26,h=(n-o)/26,d=1<<o;return!(this.length<=h)&&!!(this.words[h]&d)},s.prototype.imaskn=function(n){_("number"==typeof n&&n>=0);var o=n%26,h=(n-o)/26;if(_(0===this.negative,"imaskn works only with positive numbers"),this.length<=h)return this;if(0!==o&&h++,this.length=Math.min(h,this.length),0!==o){var d=67108863^67108863>>>o<<o;this.words[this.length-1]&=d}return this.strip()},s.prototype.maskn=function(n){return this.clone().imaskn(n)},s.prototype.iaddn=function(n){return _("number"==typeof n),_(n<67108864),n<0?this.isubn(-n):0!==this.negative?1===this.length&&(0|this.words[0])<n?(this.words[0]=n-(0|this.words[0]),this.negative=0,this):(this.negative=0,this.isubn(n),this.negative=1,this):this._iaddn(n)},s.prototype._iaddn=function(n){this.words[0]+=n;for(var o=0;o<this.length&&this.words[o]>=67108864;o++)this.words[o]-=67108864,o===this.length-1?this.words[o+1]=1:this.words[o+1]++;return this.length=Math.max(this.length,o+1),this},s.prototype.isubn=function(n){if(_("number"==typeof n),_(n<67108864),n<0)return this.iaddn(-n);if(0!==this.negative)return this.negative=0,this.iaddn(n),this.negative=1,this;if(this.words[0]-=n,1===this.length&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var o=0;o<this.length&&this.words[o]<0;o++)this.words[o]+=67108864,this.words[o+1]-=1;return this.strip()},s.prototype.addn=function(n){return this.clone().iaddn(n)},s.prototype.subn=function(n){return this.clone().isubn(n)},s.prototype.iabs=function(){return this.negative=0,this},s.prototype.abs=function(){return this.clone().iabs()},s.prototype._ishlnsubmul=function(n,o,h){var y,d=n.length+h;this._expand(d);var L,B=0;for(y=0;y<n.length;y++){L=(0|this.words[y+h])+B;var v=(0|n.words[y])*o;B=((L-=67108863&v)>>26)-(v/67108864|0),this.words[y+h]=67108863&L}for(;y<this.length-h;y++)B=(L=(0|this.words[y+h])+B)>>26,this.words[y+h]=67108863&L;if(0===B)return this.strip();for(_(-1===B),B=0,y=0;y<this.length;y++)B=(L=-(0|this.words[y])+B)>>26,this.words[y]=67108863&L;return this.negative=1,this.strip()},s.prototype._wordDiv=function(n,o){var h=(this.length,n.length),d=this.clone(),y=n,L=0|y.words[y.length-1];0!==(h=26-this._countBits(L))&&(y=y.ushln(h),d.iushln(h),L=0|y.words[y.length-1]);var a,v=d.length-y.length;if("mod"!==o){(a=new s(null)).length=v+1,a.words=new Array(a.length);for(var C=0;C<a.length;C++)a.words[C]=0}var N=d.clone()._ishlnsubmul(y,1,v);0===N.negative&&(d=N,a&&(a.words[v]=1));for(var F=v-1;F>=0;F--){var X=67108864*(0|d.words[y.length+F])+(0|d.words[y.length+F-1]);for(X=Math.min(X/L|0,67108863),d._ishlnsubmul(y,X,F);0!==d.negative;)X--,d.negative=0,d._ishlnsubmul(y,1,F),d.isZero()||(d.negative^=1);a&&(a.words[F]=X)}return a&&a.strip(),d.strip(),"div"!==o&&0!==h&&d.iushrn(h),{div:a||null,mod:d}},s.prototype.divmod=function(n,o,h){return _(!n.isZero()),this.isZero()?{div:new s(0),mod:new s(0)}:0!==this.negative&&0===n.negative?(L=this.neg().divmod(n,o),"mod"!==o&&(d=L.div.neg()),"div"!==o&&(y=L.mod.neg(),h&&0!==y.negative&&y.iadd(n)),{div:d,mod:y}):0===this.negative&&0!==n.negative?(L=this.divmod(n.neg(),o),"mod"!==o&&(d=L.div.neg()),{div:d,mod:L.mod}):0!=(this.negative&n.negative)?(L=this.neg().divmod(n.neg(),o),"div"!==o&&(y=L.mod.neg(),h&&0!==y.negative&&y.isub(n)),{div:L.div,mod:y}):n.length>this.length||this.cmp(n)<0?{div:new s(0),mod:this}:1===n.length?"div"===o?{div:this.divn(n.words[0]),mod:null}:"mod"===o?{div:null,mod:new s(this.modn(n.words[0]))}:{div:this.divn(n.words[0]),mod:new s(this.modn(n.words[0]))}:this._wordDiv(n,o);var d,y,L},s.prototype.div=function(n){return this.divmod(n,"div",!1).div},s.prototype.mod=function(n){return this.divmod(n,"mod",!1).mod},s.prototype.umod=function(n){return this.divmod(n,"mod",!0).mod},s.prototype.divRound=function(n){var o=this.divmod(n);if(o.mod.isZero())return o.div;var h=0!==o.div.negative?o.mod.isub(n):o.mod,d=n.ushrn(1),y=n.andln(1),L=h.cmp(d);return L<0||1===y&&0===L?o.div:0!==o.div.negative?o.div.isubn(1):o.div.iaddn(1)},s.prototype.modn=function(n){_(n<=67108863);for(var o=(1<<26)%n,h=0,d=this.length-1;d>=0;d--)h=(o*h+(0|this.words[d]))%n;return h},s.prototype.idivn=function(n){_(n<=67108863);for(var o=0,h=this.length-1;h>=0;h--){var d=(0|this.words[h])+67108864*o;this.words[h]=d/n|0,o=d%n}return this.strip()},s.prototype.divn=function(n){return this.clone().idivn(n)},s.prototype.egcd=function(n){_(0===n.negative),_(!n.isZero());var o=this,h=n.clone();o=0!==o.negative?o.umod(n):o.clone();for(var d=new s(1),y=new s(0),L=new s(0),B=new s(1),v=0;o.isEven()&&h.isEven();)o.iushrn(1),h.iushrn(1),++v;for(var a=h.clone(),C=o.clone();!o.isZero();){for(var N=0,F=1;0==(o.words[0]&F)&&N<26;++N,F<<=1);if(N>0)for(o.iushrn(N);N-- >0;)(d.isOdd()||y.isOdd())&&(d.iadd(a),y.isub(C)),d.iushrn(1),y.iushrn(1);for(var X=0,Fe=1;0==(h.words[0]&Fe)&&X<26;++X,Fe<<=1);if(X>0)for(h.iushrn(X);X-- >0;)(L.isOdd()||B.isOdd())&&(L.iadd(a),B.isub(C)),L.iushrn(1),B.iushrn(1);o.cmp(h)>=0?(o.isub(h),d.isub(L),y.isub(B)):(h.isub(o),L.isub(d),B.isub(y))}return{a:L,b:B,gcd:h.iushln(v)}},s.prototype._invmp=function(n){_(0===n.negative),_(!n.isZero());var N,o=this,h=n.clone();o=0!==o.negative?o.umod(n):o.clone();for(var d=new s(1),y=new s(0),L=h.clone();o.cmpn(1)>0&&h.cmpn(1)>0;){for(var B=0,v=1;0==(o.words[0]&v)&&B<26;++B,v<<=1);if(B>0)for(o.iushrn(B);B-- >0;)d.isOdd()&&d.iadd(L),d.iushrn(1);for(var a=0,C=1;0==(h.words[0]&C)&&a<26;++a,C<<=1);if(a>0)for(h.iushrn(a);a-- >0;)y.isOdd()&&y.iadd(L),y.iushrn(1);o.cmp(h)>=0?(o.isub(h),d.isub(y)):(h.isub(o),y.isub(d))}return(N=0===o.cmpn(1)?d:y).cmpn(0)<0&&N.iadd(n),N},s.prototype.gcd=function(n){if(this.isZero())return n.abs();if(n.isZero())return this.abs();var o=this.clone(),h=n.clone();o.negative=0,h.negative=0;for(var d=0;o.isEven()&&h.isEven();d++)o.iushrn(1),h.iushrn(1);for(;;){for(;o.isEven();)o.iushrn(1);for(;h.isEven();)h.iushrn(1);var y=o.cmp(h);if(y<0){var L=o;o=h,h=L}else if(0===y||0===h.cmpn(1))break;o.isub(h)}return h.iushln(d)},s.prototype.invm=function(n){return this.egcd(n).a.umod(n)},s.prototype.isEven=function(){return 0==(1&this.words[0])},s.prototype.isOdd=function(){return 1==(1&this.words[0])},s.prototype.andln=function(n){return this.words[0]&n},s.prototype.bincn=function(n){_("number"==typeof n);var o=n%26,h=(n-o)/26,d=1<<o;if(this.length<=h)return this._expand(h+1),this.words[h]|=d,this;for(var y=d,L=h;0!==y&&L<this.length;L++){var B=0|this.words[L];y=(B+=y)>>>26,B&=67108863,this.words[L]=B}return 0!==y&&(this.words[L]=y,this.length++),this},s.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},s.prototype.cmpn=function(n){var h,o=n<0;if(0!==this.negative&&!o)return-1;if(0===this.negative&&o)return 1;if(this.strip(),this.length>1)h=1;else{o&&(n=-n),_(n<=67108863,"Number is too big");var d=0|this.words[0];h=d===n?0:d<n?-1:1}return 0!==this.negative?0|-h:h},s.prototype.cmp=function(n){if(0!==this.negative&&0===n.negative)return-1;if(0===this.negative&&0!==n.negative)return 1;var o=this.ucmp(n);return 0!==this.negative?0|-o:o},s.prototype.ucmp=function(n){if(this.length>n.length)return 1;if(this.length<n.length)return-1;for(var o=0,h=this.length-1;h>=0;h--){var d=0|this.words[h],y=0|n.words[h];if(d!==y){d<y?o=-1:d>y&&(o=1);break}}return o},s.prototype.gtn=function(n){return 1===this.cmpn(n)},s.prototype.gt=function(n){return 1===this.cmp(n)},s.prototype.gten=function(n){return this.cmpn(n)>=0},s.prototype.gte=function(n){return this.cmp(n)>=0},s.prototype.ltn=function(n){return-1===this.cmpn(n)},s.prototype.lt=function(n){return-1===this.cmp(n)},s.prototype.lten=function(n){return this.cmpn(n)<=0},s.prototype.lte=function(n){return this.cmp(n)<=0},s.prototype.eqn=function(n){return 0===this.cmpn(n)},s.prototype.eq=function(n){return 0===this.cmp(n)},s.red=function(n){return new $(n)},s.prototype.toRed=function(n){return _(!this.red,"Already a number in reduction context"),_(0===this.negative,"red works only with positives"),n.convertTo(this)._forceRed(n)},s.prototype.fromRed=function(){return _(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},s.prototype._forceRed=function(n){return this.red=n,this},s.prototype.forceRed=function(n){return _(!this.red,"Already a number in reduction context"),this._forceRed(n)},s.prototype.redAdd=function(n){return _(this.red,"redAdd works only with red numbers"),this.red.add(this,n)},s.prototype.redIAdd=function(n){return _(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,n)},s.prototype.redSub=function(n){return _(this.red,"redSub works only with red numbers"),this.red.sub(this,n)},s.prototype.redISub=function(n){return _(this.red,"redISub works only with red numbers"),this.red.isub(this,n)},s.prototype.redShl=function(n){return _(this.red,"redShl works only with red numbers"),this.red.shl(this,n)},s.prototype.redMul=function(n){return _(this.red,"redMul works only with red numbers"),this.red._verify2(this,n),this.red.mul(this,n)},s.prototype.redIMul=function(n){return _(this.red,"redMul works only with red numbers"),this.red._verify2(this,n),this.red.imul(this,n)},s.prototype.redSqr=function(){return _(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},s.prototype.redISqr=function(){return _(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},s.prototype.redSqrt=function(){return _(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},s.prototype.redInvm=function(){return _(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},s.prototype.redNeg=function(){return _(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},s.prototype.redPow=function(n){return _(this.red&&!n.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,n)};var ie={k256:null,p224:null,p192:null,p25519:null};function ae(w,n){this.name=w,this.p=new s(n,16),this.n=this.p.bitLength(),this.k=new s(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function _e(){ae.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function ce(){ae.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function ye(){ae.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function ue(){ae.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function $(w){if("string"==typeof w){var n=s._prime(w);this.m=n.p,this.prime=n}else _(w.gtn(1),"modulus must be greater than 1"),this.m=w,this.prime=null}function he(w){$.call(this,w),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)}ae.prototype._tmp=function(){var n=new s(null);return n.words=new Array(Math.ceil(this.n/13)),n},ae.prototype.ireduce=function(n){var h,o=n;do{this.split(o,this.tmp),h=(o=(o=this.imulK(o)).iadd(this.tmp)).bitLength()}while(h>this.n);var d=h<this.n?-1:o.ucmp(this.p);return 0===d?(o.words[0]=0,o.length=1):d>0?o.isub(this.p):void 0!==o.strip?o.strip():o._strip(),o},ae.prototype.split=function(n,o){n.iushrn(this.n,0,o)},ae.prototype.imulK=function(n){return n.imul(this.k)},E(_e,ae),_e.prototype.split=function(n,o){for(var h=4194303,d=Math.min(n.length,9),y=0;y<d;y++)o.words[y]=n.words[y];if(o.length=d,n.length<=9)return n.words[0]=0,void(n.length=1);var L=n.words[9];for(o.words[o.length++]=L&h,y=10;y<n.length;y++){var B=0|n.words[y];n.words[y-10]=(B&h)<<4|L>>>22,L=B}L>>>=22,n.words[y-10]=L,0===L&&n.length>10?n.length-=10:n.length-=9},_e.prototype.imulK=function(n){n.words[n.length]=0,n.words[n.length+1]=0,n.length+=2;for(var o=0,h=0;h<n.length;h++){var d=0|n.words[h];o+=977*d,n.words[h]=67108863&o,o=64*d+(o/67108864|0)}return 0===n.words[n.length-1]&&(n.length--,0===n.words[n.length-1]&&n.length--),n},E(ce,ae),E(ye,ae),E(ue,ae),ue.prototype.imulK=function(n){for(var o=0,h=0;h<n.length;h++){var d=19*(0|n.words[h])+o,y=67108863&d;d>>>=26,n.words[h]=y,o=d}return 0!==o&&(n.words[n.length++]=o),n},s._prime=function(n){if(ie[n])return ie[n];var o;if("k256"===n)o=new _e;else if("p224"===n)o=new ce;else if("p192"===n)o=new ye;else{if("p25519"!==n)throw new Error("Unknown prime "+n);o=new ue}return ie[n]=o,o},$.prototype._verify1=function(n){_(0===n.negative,"red works only with positives"),_(n.red,"red works only with red numbers")},$.prototype._verify2=function(n,o){_(0==(n.negative|o.negative),"red works only with positives"),_(n.red&&n.red===o.red,"red works only with red numbers")},$.prototype.imod=function(n){return this.prime?this.prime.ireduce(n)._forceRed(this):n.umod(this.m)._forceRed(this)},$.prototype.neg=function(n){return n.isZero()?n.clone():this.m.sub(n)._forceRed(this)},$.prototype.add=function(n,o){this._verify2(n,o);var h=n.add(o);return h.cmp(this.m)>=0&&h.isub(this.m),h._forceRed(this)},$.prototype.iadd=function(n,o){this._verify2(n,o);var h=n.iadd(o);return h.cmp(this.m)>=0&&h.isub(this.m),h},$.prototype.sub=function(n,o){this._verify2(n,o);var h=n.sub(o);return h.cmpn(0)<0&&h.iadd(this.m),h._forceRed(this)},$.prototype.isub=function(n,o){this._verify2(n,o);var h=n.isub(o);return h.cmpn(0)<0&&h.iadd(this.m),h},$.prototype.shl=function(n,o){return this._verify1(n),this.imod(n.ushln(o))},$.prototype.imul=function(n,o){return this._verify2(n,o),this.imod(n.imul(o))},$.prototype.mul=function(n,o){return this._verify2(n,o),this.imod(n.mul(o))},$.prototype.isqr=function(n){return this.imul(n,n.clone())},$.prototype.sqr=function(n){return this.mul(n,n)},$.prototype.sqrt=function(n){if(n.isZero())return n.clone();var o=this.m.andln(3);if(_(o%2==1),3===o){var h=this.m.add(new s(1)).iushrn(2);return this.pow(n,h)}for(var d=this.m.subn(1),y=0;!d.isZero()&&0===d.andln(1);)y++,d.iushrn(1);_(!d.isZero());var L=new s(1).toRed(this),B=L.redNeg(),v=this.m.subn(1).iushrn(1),a=this.m.bitLength();for(a=new s(2*a*a).toRed(this);0!==this.pow(a,v).cmp(B);)a.redIAdd(B);for(var C=this.pow(a,d),N=this.pow(n,d.addn(1).iushrn(1)),F=this.pow(n,d),X=y;0!==F.cmp(L);){for(var Fe=F,ke=0;0!==Fe.cmp(L);ke++)Fe=Fe.redSqr();_(ke<X);var Ke=this.pow(C,new s(1).iushln(X-ke-1));N=N.redMul(Ke),C=Ke.redSqr(),F=F.redMul(C),X=ke}return N},$.prototype.invm=function(n){var o=n._invmp(this.m);return 0!==o.negative?(o.negative=0,this.imod(o).redNeg()):this.imod(o)},$.prototype.pow=function(n,o){if(o.isZero())return new s(1).toRed(this);if(0===o.cmpn(1))return n.clone();var d=new Array(16);d[0]=new s(1).toRed(this),d[1]=n;for(var y=2;y<d.length;y++)d[y]=this.mul(d[y-1],n);var L=d[0],B=0,v=0,a=o.bitLength()%26;for(0===a&&(a=26),y=o.length-1;y>=0;y--){for(var C=o.words[y],N=a-1;N>=0;N--){var F=C>>N&1;(L!==d[0]&&(L=this.sqr(L)),0!==F||0!==B)?(B<<=1,B|=F,(4===++v||0===y&&0===N)&&(L=this.mul(L,d[B]),v=0,B=0)):v=0}a=26}return L},$.prototype.convertTo=function(n){var o=n.umod(this.m);return o===n?o.clone():o},$.prototype.convertFrom=function(n){var o=n.clone();return o.red=null,o},s.mont=function(n){return new he(n)},E(he,$),he.prototype.convertTo=function(n){return this.imod(n.ushln(this.shift))},he.prototype.convertFrom=function(n){var o=this.imod(n.mul(this.rinv));return o.red=null,o},he.prototype.imul=function(n,o){if(n.isZero()||o.isZero())return n.words[0]=0,n.length=1,n;var h=n.imul(o),d=h.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),y=h.isub(d).iushrn(this.shift),L=y;return y.cmp(this.m)>=0?L=y.isub(this.m):y.cmpn(0)<0&&(L=y.iadd(this.m)),L._forceRed(this)},he.prototype.mul=function(n,o){if(n.isZero()||o.isZero())return new s(0)._forceRed(this);var h=n.mul(o),d=h.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),y=h.isub(d).iushrn(this.shift),L=y;return y.cmp(this.m)>=0?L=y.isub(this.m):y.cmpn(0)<0&&(L=y.iadd(this.m)),L._forceRed(this)},he.prototype.invm=function(n){return this.imod(n._invmp(this.m).mul(this.r2))._forceRed(this)}})(Ue=m.nmd(Ue),this)},6348:Ue=>{"use strict";var q={single_source_shortest_paths:function(m,e,t){var _={},E={};E[e]=0;var D,u,k,p,S,P,M,s=q.PriorityQueue.make();for(s.push(e,0);!s.empty();)for(k in u=(D=s.pop()).value,p=D.cost,S=m[u]||{})S.hasOwnProperty(k)&&(P=p+S[k],M=E[k],(typeof E[k]>"u"||M>P)&&(E[k]=P,s.push(k,P),_[k]=u));if(typeof t<"u"&&typeof E[t]>"u"){var I=["Could not find a path from ",e," to ",t,"."].join("");throw new Error(I)}return _},extract_shortest_path_from_predecessor_list:function(m,e){for(var t=[],_=e;_;)t.push(_),m[_],_=m[_];return t.reverse(),t},find_path:function(m,e,t){var _=q.single_source_shortest_paths(m,e,t);return q.extract_shortest_path_from_predecessor_list(_,t)},PriorityQueue:{make:function(m){var _,e=q.PriorityQueue,t={};for(_ in m=m||{},e)e.hasOwnProperty(_)&&(t[_]=e[_]);return t.queue=[],t.sorter=m.sorter||e.default_sorter,t},default_sorter:function(m,e){return m.cost-e.cost},push:function(m,e){var t={value:m,cost:e};this.queue.push(t),this.queue.sort(this.sorter)},pop:function(){return this.queue.shift()},empty:function(){return 0===this.queue.length}}};Ue.exports=q},2142:(Ue,q,m)=>{"use strict";var e=q;e.version=m(8597).i8,e.utils=m(8865),e.rand=m(340),e.curve=m(9503),e.curves=m(7458),e.ec=m(1336),e.eddsa=m(4380)},725:(Ue,q,m)=>{"use strict";var e=m(2451),t=m(8865),_=t.getNAF,E=t.getJSF,s=t.assert;function D(k,p){this.type=k,this.p=new e(p.p,16),this.red=p.prime?e.red(p.prime):e.mont(this.p),this.zero=new e(0).toRed(this.red),this.one=new e(1).toRed(this.red),this.two=new e(2).toRed(this.red),this.n=p.n&&new e(p.n,16),this.g=p.g&&this.pointFromJSON(p.g,p.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 u(k,p){this.curve=k,this.type=p,this.precomputed=null}Ue.exports=D,D.prototype.point=function(){throw new Error("Not implemented")},D.prototype.validate=function(){throw new Error("Not implemented")},D.prototype._fixedNafMul=function(p,S){s(p.precomputed);var A=p._getDoubles(),P=_(S,1,this._bitLength),M=(1<<A.step+1)-(A.step%2==0?2:1);M/=3;var I,W,z=[];for(I=0;I<P.length;I+=A.step){W=0;for(var Z=I+A.step-1;Z>=I;Z--)W=(W<<1)+P[Z];z.push(W)}for(var Q=this.jpoint(null,null,null),ie=this.jpoint(null,null,null),ae=M;ae>0;ae--){for(I=0;I<z.length;I++)(W=z[I])===ae?ie=ie.mixedAdd(A.points[I]):W===-ae&&(ie=ie.mixedAdd(A.points[I].neg()));Q=Q.add(ie)}return Q.toP()},D.prototype._wnafMul=function(p,S){var A=4,P=p._getNAFPoints(A);A=P.wnd;for(var M=P.points,z=_(S,A,this._bitLength),I=this.jpoint(null,null,null),W=z.length-1;W>=0;W--){for(var Z=0;W>=0&&0===z[W];W--)Z++;if(W>=0&&Z++,I=I.dblp(Z),W<0)break;var Q=z[W];s(0!==Q),I="affine"===p.type?Q>0?I.mixedAdd(M[Q-1>>1]):I.mixedAdd(M[-Q-1>>1].neg()):Q>0?I.add(M[Q-1>>1]):I.add(M[-Q-1>>1].neg())}return"affine"===p.type?I.toP():I},D.prototype._wnafMulAdd=function(p,S,A,P,M){var Q,ie,ae,z=this._wnafT1,I=this._wnafT2,W=this._wnafT3,Z=0;for(Q=0;Q<P;Q++){var _e=(ae=S[Q])._getNAFPoints(p);z[Q]=_e.wnd,I[Q]=_e.points}for(Q=P-1;Q>=1;Q-=2){var ce=Q-1,ye=Q;if(1===z[ce]&&1===z[ye]){var ue=[S[ce],null,null,S[ye]];0===S[ce].y.cmp(S[ye].y)?(ue[1]=S[ce].add(S[ye]),ue[2]=S[ce].toJ().mixedAdd(S[ye].neg())):0===S[ce].y.cmp(S[ye].y.redNeg())?(ue[1]=S[ce].toJ().mixedAdd(S[ye]),ue[2]=S[ce].add(S[ye].neg())):(ue[1]=S[ce].toJ().mixedAdd(S[ye]),ue[2]=S[ce].toJ().mixedAdd(S[ye].neg()));var $=[-3,-1,-5,-7,0,7,5,1,3],he=E(A[ce],A[ye]);for(Z=Math.max(he[0].length,Z),W[ce]=new Array(Z),W[ye]=new Array(Z),ie=0;ie<Z;ie++){var w=0|he[0][ie],n=0|he[1][ie];W[ce][ie]=$[3*(w+1)+(n+1)],W[ye][ie]=0,I[ce]=ue}}else W[ce]=_(A[ce],z[ce],this._bitLength),W[ye]=_(A[ye],z[ye],this._bitLength),Z=Math.max(W[ce].length,Z),Z=Math.max(W[ye].length,Z)}var o=this.jpoint(null,null,null),h=this._wnafT4;for(Q=Z;Q>=0;Q--){for(var d=0;Q>=0;){var y=!0;for(ie=0;ie<P;ie++)h[ie]=0|W[ie][Q],0!==h[ie]&&(y=!1);if(!y)break;d++,Q--}if(Q>=0&&d++,o=o.dblp(d),Q<0)break;for(ie=0;ie<P;ie++){var L=h[ie];0!==L&&(L>0?ae=I[ie][L-1>>1]:L<0&&(ae=I[ie][-L-1>>1].neg()),o="affine"===ae.type?o.mixedAdd(ae):o.add(ae))}}for(Q=0;Q<P;Q++)I[Q]=null;return M?o:o.toP()},D.BasePoint=u,u.prototype.eq=function(){throw new Error("Not implemented")},u.prototype.validate=function(){return this.curve.validate(this)},D.prototype.decodePoint=function(p,S){p=t.toArray(p,S);var A=this.p.byteLength();if((4===p[0]||6===p[0]||7===p[0])&&p.length-1==2*A)return 6===p[0]?s(p[p.length-1]%2==0):7===p[0]&&s(p[p.length-1]%2==1),this.point(p.slice(1,1+A),p.slice(1+A,1+2*A));if((2===p[0]||3===p[0])&&p.length-1===A)return this.pointFromX(p.slice(1,1+A),3===p[0]);throw new Error("Unknown point format")},u.prototype.encodeCompressed=function(p){return this.encode(p,!0)},u.prototype._encode=function(p){var S=this.curve.p.byteLength(),A=this.getX().toArray("be",S);return p?[this.getY().isEven()?2:3].concat(A):[4].concat(A,this.getY().toArray("be",S))},u.prototype.encode=function(p,S){return t.encode(this._encode(S),p)},u.prototype.precompute=function(p){if(this.precomputed)return this;var S={doubles:null,naf:null,beta:null};return S.naf=this._getNAFPoints(8),S.doubles=this._getDoubles(4,p),S.beta=this._getBeta(),this.precomputed=S,this},u.prototype._hasDoubles=function(p){if(!this.precomputed)return!1;var S=this.precomputed.doubles;return!!S&&S.points.length>=Math.ceil((p.bitLength()+1)/S.step)},u.prototype._getDoubles=function(p,S){if(this.precomputed&&this.precomputed.doubles)return this.precomputed.doubles;for(var A=[this],P=this,M=0;M<S;M+=p){for(var z=0;z<p;z++)P=P.dbl();A.push(P)}return{step:p,points:A}},u.prototype._getNAFPoints=function(p){if(this.precomputed&&this.precomputed.naf)return this.precomputed.naf;for(var S=[this],A=(1<<p)-1,P=1===A?null:this.dbl(),M=1;M<A;M++)S[M]=S[M-1].add(P);return{wnd:p,points:S}},u.prototype._getBeta=function(){return null},u.prototype.dblp=function(p){for(var S=this,A=0;A<p;A++)S=S.dbl();return S}},3555:(Ue,q,m)=>{"use strict";var e=m(8865),t=m(2451),_=m(5035),E=m(725),s=e.assert;function D(k){this.twisted=1!=(0|k.a),this.mOneA=this.twisted&&-1==(0|k.a),this.extended=this.mOneA,E.call(this,"edwards",k),this.a=new t(k.a,16).umod(this.red.m),this.a=this.a.toRed(this.red),this.c=new t(k.c,16).toRed(this.red),this.c2=this.c.redSqr(),this.d=new t(k.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|k.c)}function u(k,p,S,A,P){E.BasePoint.call(this,k,"projective"),null===p&&null===S&&null===A?(this.x=this.curve.zero,this.y=this.curve.one,this.z=this.curve.one,this.t=this.curve.zero,this.zOne=!0):(this.x=new t(p,16),this.y=new t(S,16),this.z=A?new t(A,16):this.curve.one,this.t=P&&new t(P,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()))))}_(D,E),Ue.exports=D,D.prototype._mulA=function(p){return this.mOneA?p.redNeg():this.a.redMul(p)},D.prototype._mulC=function(p){return this.oneC?p:this.c.redMul(p)},D.prototype.jpoint=function(p,S,A,P){return this.point(p,S,A,P)},D.prototype.pointFromX=function(p,S){(p=new t(p,16)).red||(p=p.toRed(this.red));var A=p.redSqr(),P=this.c2.redSub(this.a.redMul(A)),M=this.one.redSub(this.c2.redMul(this.d).redMul(A)),z=P.redMul(M.redInvm()),I=z.redSqrt();if(0!==I.redSqr().redSub(z).cmp(this.zero))throw new Error("invalid point");var W=I.fromRed().isOdd();return(S&&!W||!S&&W)&&(I=I.redNeg()),this.point(p,I)},D.prototype.pointFromY=function(p,S){(p=new t(p,16)).red||(p=p.toRed(this.red));var A=p.redSqr(),P=A.redSub(this.c2),M=A.redMul(this.d).redMul(this.c2).redSub(this.a),z=P.redMul(M.redInvm());if(0===z.cmp(this.zero)){if(S)throw new Error("invalid point");return this.point(this.zero,p)}var I=z.redSqrt();if(0!==I.redSqr().redSub(z).cmp(this.zero))throw new Error("invalid point");return I.fromRed().isOdd()!==S&&(I=I.redNeg()),this.point(I,p)},D.prototype.validate=function(p){if(p.isInfinity())return!0;p.normalize();var S=p.x.redSqr(),A=p.y.redSqr(),P=S.redMul(this.a).redAdd(A),M=this.c2.redMul(this.one.redAdd(this.d.redMul(S).redMul(A)));return 0===P.cmp(M)},_(u,E.BasePoint),D.prototype.pointFromJSON=function(p){return u.fromJSON(this,p)},D.prototype.point=function(p,S,A,P){return new u(this,p,S,A,P)},u.fromJSON=function(p,S){return new u(p,S[0],S[1],S[2])},u.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)+">"},u.prototype.isInfinity=function(){return 0===this.x.cmpn(0)&&(0===this.y.cmp(this.z)||this.zOne&&0===this.y.cmp(this.curve.c))},u.prototype._extDbl=function(){var p=this.x.redSqr(),S=this.y.redSqr(),A=this.z.redSqr();A=A.redIAdd(A);var P=this.curve._mulA(p),M=this.x.redAdd(this.y).redSqr().redISub(p).redISub(S),z=P.redAdd(S),I=z.redSub(A),W=P.redSub(S),Z=M.redMul(I),Q=z.redMul(W),ie=M.redMul(W),ae=I.redMul(z);return this.curve.point(Z,Q,ae,ie)},u.prototype._projDbl=function(){var P,M,z,I,W,Z,p=this.x.redAdd(this.y).redSqr(),S=this.x.redSqr(),A=this.y.redSqr();if(this.curve.twisted){var Q=(I=this.curve._mulA(S)).redAdd(A);this.zOne?(P=p.redSub(S).redSub(A).redMul(Q.redSub(this.curve.two)),M=Q.redMul(I.redSub(A)),z=Q.redSqr().redSub(Q).redSub(Q)):(W=this.z.redSqr(),Z=Q.redSub(W).redISub(W),P=p.redSub(S).redISub(A).redMul(Z),M=Q.redMul(I.redSub(A)),z=Q.redMul(Z))}else I=S.redAdd(A),W=this.curve._mulC(this.z).redSqr(),Z=I.redSub(W).redSub(W),P=this.curve._mulC(p.redISub(I)).redMul(Z),M=this.curve._mulC(I).redMul(S.redISub(A)),z=I.redMul(Z);return this.curve.point(P,M,z)},u.prototype.dbl=function(){return this.isInfinity()?this:this.curve.extended?this._extDbl():this._projDbl()},u.prototype._extAdd=function(p){var S=this.y.redSub(this.x).redMul(p.y.redSub(p.x)),A=this.y.redAdd(this.x).redMul(p.y.redAdd(p.x)),P=this.t.redMul(this.curve.dd).redMul(p.t),M=this.z.redMul(p.z.redAdd(p.z)),z=A.redSub(S),I=M.redSub(P),W=M.redAdd(P),Z=A.redAdd(S),Q=z.redMul(I),ie=W.redMul(Z),ae=z.redMul(Z),_e=I.redMul(W);return this.curve.point(Q,ie,_e,ae)},u.prototype._projAdd=function(p){var ie,ae,S=this.z.redMul(p.z),A=S.redSqr(),P=this.x.redMul(p.x),M=this.y.redMul(p.y),z=this.curve.d.redMul(P).redMul(M),I=A.redSub(z),W=A.redAdd(z),Z=this.x.redAdd(this.y).redMul(p.x.redAdd(p.y)).redISub(P).redISub(M),Q=S.redMul(I).redMul(Z);return this.curve.twisted?(ie=S.redMul(W).redMul(M.redSub(this.curve._mulA(P))),ae=I.redMul(W)):(ie=S.redMul(W).redMul(M.redSub(P)),ae=this.curve._mulC(I).redMul(W)),this.curve.point(Q,ie,ae)},u.prototype.add=function(p){return this.isInfinity()?p:p.isInfinity()?this:this.curve.extended?this._extAdd(p):this._projAdd(p)},u.prototype.mul=function(p){return this._hasDoubles(p)?this.curve._fixedNafMul(this,p):this.curve._wnafMul(this,p)},u.prototype.mulAdd=function(p,S,A){return this.curve._wnafMulAdd(1,[this,S],[p,A],2,!1)},u.prototype.jmulAdd=function(p,S,A){return this.curve._wnafMulAdd(1,[this,S],[p,A],2,!0)},u.prototype.normalize=function(){if(this.zOne)return this;var p=this.z.redInvm();return this.x=this.x.redMul(p),this.y=this.y.redMul(p),this.t&&(this.t=this.t.redMul(p)),this.z=this.curve.one,this.zOne=!0,this},u.prototype.neg=function(){return this.curve.point(this.x.redNeg(),this.y,this.z,this.t&&this.t.redNeg())},u.prototype.getX=function(){return this.normalize(),this.x.fromRed()},u.prototype.getY=function(){return this.normalize(),this.y.fromRed()},u.prototype.eq=function(p){return this===p||0===this.getX().cmp(p.getX())&&0===this.getY().cmp(p.getY())},u.prototype.eqXToP=function(p){var S=p.toRed(this.curve.red).redMul(this.z);if(0===this.x.cmp(S))return!0;for(var A=p.clone(),P=this.curve.redN.redMul(this.z);;){if(A.iadd(this.curve.n),A.cmp(this.curve.p)>=0)return!1;if(S.redIAdd(P),0===this.x.cmp(S))return!0}},u.prototype.toP=u.prototype.normalize,u.prototype.mixedAdd=u.prototype.add},9503:(Ue,q,m)=>{"use strict";var e=q;e.base=m(725),e.short=m(4037),e.mont=m(9987),e.edwards=m(3555)},9987:(Ue,q,m)=>{"use strict";var e=m(2451),t=m(5035),_=m(725),E=m(8865);function s(u){_.call(this,"mont",u),this.a=new e(u.a,16).toRed(this.red),this.b=new e(u.b,16).toRed(this.red),this.i4=new e(4).toRed(this.red).redInvm(),this.two=new e(2).toRed(this.red),this.a24=this.i4.redMul(this.a.redAdd(this.two))}function D(u,k,p){_.BasePoint.call(this,u,"projective"),null===k&&null===p?(this.x=this.curve.one,this.z=this.curve.zero):(this.x=new e(k,16),this.z=new e(p,16),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)))}t(s,_),Ue.exports=s,s.prototype.validate=function(k){var p=k.normalize().x,S=p.redSqr(),A=S.redMul(p).redAdd(S.redMul(this.a)).redAdd(p);return 0===A.redSqrt().redSqr().cmp(A)},t(D,_.BasePoint),s.prototype.decodePoint=function(k,p){return this.point(E.toArray(k,p),1)},s.prototype.point=function(k,p){return new D(this,k,p)},s.prototype.pointFromJSON=function(k){return D.fromJSON(this,k)},D.prototype.precompute=function(){},D.prototype._encode=function(){return this.getX().toArray("be",this.curve.p.byteLength())},D.fromJSON=function(k,p){return new D(k,p[0],p[1]||k.one)},D.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)+">"},D.prototype.isInfinity=function(){return 0===this.z.cmpn(0)},D.prototype.dbl=function(){var p=this.x.redAdd(this.z).redSqr(),A=this.x.redSub(this.z).redSqr(),P=p.redSub(A),M=p.redMul(A),z=P.redMul(A.redAdd(this.curve.a24.redMul(P)));return this.curve.point(M,z)},D.prototype.add=function(){throw new Error("Not supported on Montgomery curve")},D.prototype.diffAdd=function(k,p){var S=this.x.redAdd(this.z),A=this.x.redSub(this.z),P=k.x.redAdd(k.z),z=k.x.redSub(k.z).redMul(S),I=P.redMul(A),W=p.z.redMul(z.redAdd(I).redSqr()),Z=p.x.redMul(z.redISub(I).redSqr());return this.curve.point(W,Z)},D.prototype.mul=function(k){for(var p=k.clone(),S=this,A=this.curve.point(null,null),M=[];0!==p.cmpn(0);p.iushrn(1))M.push(p.andln(1));for(var z=M.length-1;z>=0;z--)0===M[z]?(S=S.diffAdd(A,this),A=A.dbl()):(A=S.diffAdd(A,this),S=S.dbl());return A},D.prototype.mulAdd=function(){throw new Error("Not supported on Montgomery curve")},D.prototype.jumlAdd=function(){throw new Error("Not supported on Montgomery curve")},D.prototype.eq=function(k){return 0===this.getX().cmp(k.getX())},D.prototype.normalize=function(){return this.x=this.x.redMul(this.z.redInvm()),this.z=this.curve.one,this},D.prototype.getX=function(){return this.normalize(),this.x.fromRed()}},4037:(Ue,q,m)=>{"use strict";var e=m(8865),t=m(2451),_=m(5035),E=m(725),s=e.assert;function D(p){E.call(this,"short",p),this.a=new t(p.a,16).toRed(this.red),this.b=new t(p.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(p),this._endoWnafT1=new Array(4),this._endoWnafT2=new Array(4)}function u(p,S,A,P){E.BasePoint.call(this,p,"affine"),null===S&&null===A?(this.x=null,this.y=null,this.inf=!0):(this.x=new t(S,16),this.y=new t(A,16),P&&(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 k(p,S,A,P){E.BasePoint.call(this,p,"jacobian"),null===S&&null===A&&null===P?(this.x=this.curve.one,this.y=this.curve.one,this.z=new t(0)):(this.x=new t(S,16),this.y=new t(A,16),this.z=new t(P,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}_(D,E),Ue.exports=D,D.prototype._getEndomorphism=function(S){if(this.zeroA&&this.g&&this.n&&1===this.p.modn(3)){var A,P;if(S.beta)A=new t(S.beta,16).toRed(this.red);else{var M=this._getEndoRoots(this.p);A=(A=M[0].cmp(M[1])<0?M[0]:M[1]).toRed(this.red)}if(S.lambda)P=new t(S.lambda,16);else{var z=this._getEndoRoots(this.n);0===this.g.mul(z[0]).x.cmp(this.g.x.redMul(A))?P=z[0]:(P=z[1],s(0===this.g.mul(P).x.cmp(this.g.x.redMul(A))))}return{beta:A,lambda:P,basis:S.basis?S.basis.map(function(W){return{a:new t(W.a,16),b:new t(W.b,16)}}):this._getEndoBasis(P)}}},D.prototype._getEndoRoots=function(S){var A=S===this.p?this.red:t.mont(S),P=new t(2).toRed(A).redInvm(),M=P.redNeg(),z=new t(3).toRed(A).redNeg().redSqrt().redMul(P);return[M.redAdd(z).fromRed(),M.redSub(z).fromRed()]},D.prototype._getEndoBasis=function(S){for(var Q,ie,ae,_e,ce,ye,ue,he,w,A=this.n.ushrn(Math.floor(this.n.bitLength()/2)),P=S,M=this.n.clone(),z=new t(1),I=new t(0),W=new t(0),Z=new t(1),$=0;0!==P.cmpn(0);){var n=M.div(P);he=M.sub(n.mul(P)),w=W.sub(n.mul(z));var o=Z.sub(n.mul(I));if(!ae&&he.cmp(A)<0)Q=ue.neg(),ie=z,ae=he.neg(),_e=w;else if(ae&&2==++$)break;ue=he,M=P,P=he,W=z,z=w,Z=I,I=o}ce=he.neg(),ye=w;var h=ae.sqr().add(_e.sqr());return ce.sqr().add(ye.sqr()).cmp(h)>=0&&(ce=Q,ye=ie),ae.negative&&(ae=ae.neg(),_e=_e.neg()),ce.negative&&(ce=ce.neg(),ye=ye.neg()),[{a:ae,b:_e},{a:ce,b:ye}]},D.prototype._endoSplit=function(S){var A=this.endo.basis,P=A[0],M=A[1],z=M.b.mul(S).divRound(this.n),I=P.b.neg().mul(S).divRound(this.n),W=z.mul(P.a),Z=I.mul(M.a),Q=z.mul(P.b),ie=I.mul(M.b);return{k1:S.sub(W).sub(Z),k2:Q.add(ie).neg()}},D.prototype.pointFromX=function(S,A){(S=new t(S,16)).red||(S=S.toRed(this.red));var P=S.redSqr().redMul(S).redIAdd(S.redMul(this.a)).redIAdd(this.b),M=P.redSqrt();if(0!==M.redSqr().redSub(P).cmp(this.zero))throw new Error("invalid point");var z=M.fromRed().isOdd();return(A&&!z||!A&&z)&&(M=M.redNeg()),this.point(S,M)},D.prototype.validate=function(S){if(S.inf)return!0;var A=S.x,P=S.y,M=this.a.redMul(A),z=A.redSqr().redMul(A).redIAdd(M).redIAdd(this.b);return 0===P.redSqr().redISub(z).cmpn(0)},D.prototype._endoWnafMulAdd=function(S,A,P){for(var M=this._endoWnafT1,z=this._endoWnafT2,I=0;I<S.length;I++){var W=this._endoSplit(A[I]),Z=S[I],Q=Z._getBeta();W.k1.negative&&(W.k1.ineg(),Z=Z.neg(!0)),W.k2.negative&&(W.k2.ineg(),Q=Q.neg(!0)),M[2*I]=Z,M[2*I+1]=Q,z[2*I]=W.k1,z[2*I+1]=W.k2}for(var ie=this._wnafMulAdd(1,M,z,2*I,P),ae=0;ae<2*I;ae++)M[ae]=null,z[ae]=null;return ie},_(u,E.BasePoint),D.prototype.point=function(S,A,P){return new u(this,S,A,P)},D.prototype.pointFromJSON=function(S,A){return u.fromJSON(this,S,A)},u.prototype._getBeta=function(){if(this.curve.endo){var S=this.precomputed;if(S&&S.beta)return S.beta;var A=this.curve.point(this.x.redMul(this.curve.endo.beta),this.y);if(S){var P=this.curve,M=function(z){return P.point(z.x.redMul(P.endo.beta),z.y)};S.beta=A,A.precomputed={beta:null,naf:S.naf&&{wnd:S.naf.wnd,points:S.naf.points.map(M)},doubles:S.doubles&&{step:S.doubles.step,points:S.doubles.points.map(M)}}}return A}},u.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]},u.fromJSON=function(S,A,P){"string"==typeof A&&(A=JSON.parse(A));var M=S.point(A[0],A[1],P);if(!A[2])return M;function z(W){return S.point(W[0],W[1],P)}var I=A[2];return M.precomputed={beta:null,doubles:I.doubles&&{step:I.doubles.step,points:[M].concat(I.doubles.points.map(z))},naf:I.naf&&{wnd:I.naf.wnd,points:[M].concat(I.naf.points.map(z))}},M},u.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)+">"},u.prototype.isInfinity=function(){return this.inf},u.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 A=this.y.redSub(S.y);0!==A.cmpn(0)&&(A=A.redMul(this.x.redSub(S.x).redInvm()));var P=A.redSqr().redISub(this.x).redISub(S.x),M=A.redMul(this.x.redSub(P)).redISub(this.y);return this.curve.point(P,M)},u.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 A=this.curve.a,P=this.x.redSqr(),M=S.redInvm(),z=P.redAdd(P).redIAdd(P).redIAdd(A).redMul(M),I=z.redSqr().redISub(this.x.redAdd(this.x)),W=z.redMul(this.x.redSub(I)).redISub(this.y);return this.curve.point(I,W)},u.prototype.getX=function(){return this.x.fromRed()},u.prototype.getY=function(){return this.y.fromRed()},u.prototype.mul=function(S){return S=new t(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)},u.prototype.mulAdd=function(S,A,P){var M=[this,A],z=[S,P];return this.curve.endo?this.curve._endoWnafMulAdd(M,z):this.curve._wnafMulAdd(1,M,z,2)},u.prototype.jmulAdd=function(S,A,P){var M=[this,A],z=[S,P];return this.curve.endo?this.curve._endoWnafMulAdd(M,z,!0):this.curve._wnafMulAdd(1,M,z,2,!0)},u.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))},u.prototype.neg=function(S){if(this.inf)return this;var A=this.curve.point(this.x,this.y.redNeg());if(S&&this.precomputed){var P=this.precomputed,M=function(z){return z.neg()};A.precomputed={naf:P.naf&&{wnd:P.naf.wnd,points:P.naf.points.map(M)},doubles:P.doubles&&{step:P.doubles.step,points:P.doubles.points.map(M)}}}return A},u.prototype.toJ=function(){return this.inf?this.curve.jpoint(null,null,null):this.curve.jpoint(this.x,this.y,this.curve.one)},_(k,E.BasePoint),D.prototype.jpoint=function(S,A,P){return new k(this,S,A,P)},k.prototype.toP=function(){if(this.isInfinity())return this.curve.point(null,null);var S=this.z.redInvm(),A=S.redSqr(),P=this.x.redMul(A),M=this.y.redMul(A).redMul(S);return this.curve.point(P,M)},k.prototype.neg=function(){return this.curve.jpoint(this.x,this.y.redNeg(),this.z)},k.prototype.add=function(S){if(this.isInfinity())return S;if(S.isInfinity())return this;var A=S.z.redSqr(),P=this.z.redSqr(),M=this.x.redMul(A),z=S.x.redMul(P),I=this.y.redMul(A.redMul(S.z)),W=S.y.redMul(P.redMul(this.z)),Z=M.redSub(z),Q=I.redSub(W);if(0===Z.cmpn(0))return 0!==Q.cmpn(0)?this.curve.jpoint(null,null,null):this.dbl();var ie=Z.redSqr(),ae=ie.redMul(Z),_e=M.redMul(ie),ce=Q.redSqr().redIAdd(ae).redISub(_e).redISub(_e),ye=Q.redMul(_e.redISub(ce)).redISub(I.redMul(ae)),ue=this.z.redMul(S.z).redMul(Z);return this.curve.jpoint(ce,ye,ue)},k.prototype.mixedAdd=function(S){if(this.isInfinity())return S.toJ();if(S.isInfinity())return this;var A=this.z.redSqr(),P=this.x,M=S.x.redMul(A),z=this.y,I=S.y.redMul(A).redMul(this.z),W=P.redSub(M),Z=z.redSub(I);if(0===W.cmpn(0))return 0!==Z.cmpn(0)?this.curve.jpoint(null,null,null):this.dbl();var Q=W.redSqr(),ie=Q.redMul(W),ae=P.redMul(Q),_e=Z.redSqr().redIAdd(ie).redISub(ae).redISub(ae),ce=Z.redMul(ae.redISub(_e)).redISub(z.redMul(ie)),ye=this.z.redMul(W);return this.curve.jpoint(_e,ce,ye)},k.prototype.dblp=function(S){if(0===S)return this;if(this.isInfinity())return this;if(!S)return this.dbl();var A;if(this.curve.zeroA||this.curve.threeA){var P=this;for(A=0;A<S;A++)P=P.dbl();return P}var M=this.curve.a,z=this.curve.tinv,I=this.x,W=this.y,Z=this.z,Q=Z.redSqr().redSqr(),ie=W.redAdd(W);for(A=0;A<S;A++){var ae=I.redSqr(),_e=ie.redSqr(),ce=_e.redSqr(),ye=ae.redAdd(ae).redIAdd(ae).redIAdd(M.redMul(Q)),ue=I.redMul(_e),$=ye.redSqr().redISub(ue.redAdd(ue)),he=ue.redISub($),w=ye.redMul(he);w=w.redIAdd(w).redISub(ce);var n=ie.redMul(Z);A+1<S&&(Q=Q.redMul(ce)),I=$,Z=n,ie=w}return this.curve.jpoint(I,ie.redMul(z),Z)},k.prototype.dbl=function(){return this.isInfinity()?this:this.curve.zeroA?this._zeroDbl():this.curve.threeA?this._threeDbl():this._dbl()},k.prototype._zeroDbl=function(){var S,A,P;if(this.zOne){var M=this.x.redSqr(),z=this.y.redSqr(),I=z.redSqr(),W=this.x.redAdd(z).redSqr().redISub(M).redISub(I);W=W.redIAdd(W);var Z=M.redAdd(M).redIAdd(M),Q=Z.redSqr().redISub(W).redISub(W),ie=I.redIAdd(I);ie=(ie=ie.redIAdd(ie)).redIAdd(ie),S=Q,A=Z.redMul(W.redISub(Q)).redISub(ie),P=this.y.redAdd(this.y)}else{var ae=this.x.redSqr(),_e=this.y.redSqr(),ce=_e.redSqr(),ye=this.x.redAdd(_e).redSqr().redISub(ae).redISub(ce);ye=ye.redIAdd(ye);var ue=ae.redAdd(ae).redIAdd(ae),$=ue.redSqr(),he=ce.redIAdd(ce);he=(he=he.redIAdd(he)).redIAdd(he),S=$.redISub(ye).redISub(ye),A=ue.redMul(ye.redISub(S)).redISub(he),P=(P=this.y.redMul(this.z)).redIAdd(P)}return this.curve.jpoint(S,A,P)},k.prototype._threeDbl=function(){var S,A,P;if(this.zOne){var M=this.x.redSqr(),z=this.y.redSqr(),I=z.redSqr(),W=this.x.redAdd(z).redSqr().redISub(M).redISub(I);W=W.redIAdd(W);var Z=M.redAdd(M).redIAdd(M).redIAdd(this.curve.a),Q=Z.redSqr().redISub(W).redISub(W);S=Q;var ie=I.redIAdd(I);ie=(ie=ie.redIAdd(ie)).redIAdd(ie),A=Z.redMul(W.redISub(Q)).redISub(ie),P=this.y.redAdd(this.y)}else{var ae=this.z.redSqr(),_e=this.y.redSqr(),ce=this.x.redMul(_e),ye=this.x.redSub(ae).redMul(this.x.redAdd(ae));ye=ye.redAdd(ye).redIAdd(ye);var ue=ce.redIAdd(ce),$=(ue=ue.redIAdd(ue)).redAdd(ue);S=ye.redSqr().redISub($),P=this.y.redAdd(this.z).redSqr().redISub(_e).redISub(ae);var he=_e.redSqr();he=(he=(he=he.redIAdd(he)).redIAdd(he)).redIAdd(he),A=ye.redMul(ue.redISub(S)).redISub(he)}return this.curve.jpoint(S,A,P)},k.prototype._dbl=function(){var S=this.curve.a,A=this.x,P=this.y,M=this.z,z=M.redSqr().redSqr(),I=A.redSqr(),W=P.redSqr(),Z=I.redAdd(I).redIAdd(I).redIAdd(S.redMul(z)),Q=A.redAdd(A),ie=(Q=Q.redIAdd(Q)).redMul(W),ae=Z.redSqr().redISub(ie.redAdd(ie)),_e=ie.redISub(ae),ce=W.redSqr();ce=(ce=(ce=ce.redIAdd(ce)).redIAdd(ce)).redIAdd(ce);var ye=Z.redMul(_e).redISub(ce),ue=P.redAdd(P).redMul(M);return this.curve.jpoint(ae,ye,ue)},k.prototype.trpl=function(){if(!this.curve.zeroA)return this.dbl().add(this);var S=this.x.redSqr(),A=this.y.redSqr(),P=this.z.redSqr(),M=A.redSqr(),z=S.redAdd(S).redIAdd(S),I=z.redSqr(),W=this.x.redAdd(A).redSqr().redISub(S).redISub(M),Z=(W=(W=(W=W.redIAdd(W)).redAdd(W).redIAdd(W)).redISub(I)).redSqr(),Q=M.redIAdd(M);Q=(Q=(Q=Q.redIAdd(Q)).redIAdd(Q)).redIAdd(Q);var ie=z.redIAdd(W).redSqr().redISub(I).redISub(Z).redISub(Q),ae=A.redMul(ie);ae=(ae=ae.redIAdd(ae)).redIAdd(ae);var _e=this.x.redMul(Z).redISub(ae);_e=(_e=_e.redIAdd(_e)).redIAdd(_e);var ce=this.y.redMul(ie.redMul(Q.redISub(ie)).redISub(W.redMul(Z)));ce=(ce=(ce=ce.redIAdd(ce)).redIAdd(ce)).redIAdd(ce);var ye=this.z.redAdd(W).redSqr().redISub(P).redISub(Z);return this.curve.jpoint(_e,ce,ye)},k.prototype.mul=function(S,A){return S=new t(S,A),this.curve._wnafMul(this,S)},k.prototype.eq=function(S){if("affine"===S.type)return this.eq(S.toJ());if(this===S)return!0;var A=this.z.redSqr(),P=S.z.redSqr();if(0!==this.x.redMul(P).redISub(S.x.redMul(A)).cmpn(0))return!1;var M=A.redMul(this.z),z=P.redMul(S.z);return 0===this.y.redMul(z).redISub(S.y.redMul(M)).cmpn(0)},k.prototype.eqXToP=function(S){var A=this.z.redSqr(),P=S.toRed(this.curve.red).redMul(A);if(0===this.x.cmp(P))return!0;for(var M=S.clone(),z=this.curve.redN.redMul(A);;){if(M.iadd(this.curve.n),M.cmp(this.curve.p)>=0)return!1;if(P.redIAdd(z),0===this.x.cmp(P))return!0}},k.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)+">"},k.prototype.isInfinity=function(){return 0===this.z.cmpn(0)}},7458:(Ue,q,m)=>{"use strict";var k,e=q,t=m(9281),_=m(9503),s=m(8865).assert;function D(p){"short"===p.type?this.curve=new _.short(p):"edwards"===p.type?this.curve=new _.edwards(p):this.curve=new _.mont(p),this.g=this.curve.g,this.n=this.curve.n,this.hash=p.hash,s(this.g.validate(),"Invalid curve"),s(this.g.mul(this.n).isInfinity(),"Invalid curve, G*N != O")}function u(p,S){Object.defineProperty(e,p,{configurable:!0,enumerable:!0,get:function(){var A=new D(S);return Object.defineProperty(e,p,{configurable:!0,enumerable:!0,value:A}),A}})}e.PresetCurve=D,u("p192",{type:"short",prime:"p192",p:"ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff",a:"ffffffff ffffffff ffffffff fffffffe ffffffff fffffffc",b:"64210519 e59c80e7 0fa7e9ab 72243049 feb8deec c146b9b1",n:"ffffffff ffffffff ffffffff 99def836 146bc9b1 b4d22831",hash:t.sha256,gRed:!1,g:["188da80e b03090f6 7cbf20eb 43a18800 f4ff0afd 82ff1012","07192b95 ffc8da78 631011ed 6b24cdd5 73f977a1 1e794811"]}),u("p224",{type:"short",prime:"p224",p:"ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001",a:"ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff fffffffe",b:"b4050a85 0c04b3ab f5413256 5044b0b7 d7bfd8ba 270b3943 2355ffb4",n:"ffffffff ffffffff ffffffff ffff16a2 e0b8f03e 13dd2945 5c5c2a3d",hash:t.sha256,gRed:!1,g:["b70e0cbd 6bb4bf7f 321390b9 4a03c1d3 56c21122 343280d6 115c1d21","bd376388 b5f723fb 4c22dfe6 cd4375a0 5a074764 44d58199 85007e34"]}),u("p256",{type:"short",prime:null,p:"ffffffff 00000001 00000000 00000000 00000000 ffffffff ffffffff ffffffff",a:"ffffffff 00000001 00000000 00000000 00000000 ffffffff ffffffff fffffffc",b:"5ac635d8 aa3a93e7 b3ebbd55 769886bc 651d06b0 cc53b0f6 3bce3c3e 27d2604b",n:"ffffffff 00000000 ffffffff ffffffff bce6faad a7179e84 f3b9cac2 fc632551",hash:t.sha256,gRed:!1,g:["6b17d1f2 e12c4247 f8bce6e5 63a440f2 77037d81 2deb33a0 f4a13945 d898c296","4fe342e2 fe1a7f9b 8ee7eb4a 7c0f9e16 2bce3357 6b315ece cbb64068 37bf51f5"]}),u("p384",{type:"short",prime:null,p:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe ffffffff 00000000 00000000 ffffffff",a:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe ffffffff 00000000 00000000 fffffffc",b:"b3312fa7 e23ee7e4 988e056b e3f82d19 181d9c6e fe814112 0314088f 5013875a c656398d 8a2ed19d 2a85c8ed d3ec2aef",n:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff c7634d81 f4372ddf 581a0db2 48b0a77a ecec196a ccc52973",hash:t.sha384,gRed:!1,g:["aa87ca22 be8b0537 8eb1c71e f320ad74 6e1d3b62 8ba79b98 59f741e0 82542a38 5502f25d bf55296c 3a545e38 72760ab7","3617de4a 96262c6f 5d9e98bf 9292dc29 f8f41dbd 289a147c e9da3113 b5f0b8c0 0a60b1ce 1d7e819d 7a431d7c 90ea0e5f"]}),u("p521",{type:"short",prime:null,p:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff",a:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffc",b:"00000051 953eb961 8e1c9a1f 929a21a0 b68540ee a2da725b 99b315f3 b8b48991 8ef109e1 56193951 ec7e937b 1652c0bd 3bb1bf07 3573df88 3d2c34f1 ef451fd4 6b503f00",n:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffa 51868783 bf2f966b 7fcc0148 f709a5d0 3bb5c9b8 899c47ae bb6fb71e 91386409",hash:t.sha512,gRed:!1,g:["000000c6 858e06b7 0404e9cd 9e3ecb66 2395b442 9c648139 053fb521 f828af60 6b4d3dba a14b5e77 efe75928 fe1dc127 a2ffa8de 3348b3c1 856a429b f97e7e31 c2e5bd66","00000118 39296a78 9a3bc004 5c8a5fb4 2c7d1bd9 98f54449 579b4468 17afbd17 273e662c 97ee7299 5ef42640 c550b901 3fad0761 353c7086 a272c240 88be9476 9fd16650"]}),u("curve25519",{type:"mont",prime:"p25519",p:"7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed",a:"76d06",b:"1",n:"1000000000000000 0000000000000000 14def9dea2f79cd6 5812631a5cf5d3ed",hash:t.sha256,gRed:!1,g:["9"]}),u("ed25519",{type:"edwards",prime:"p25519",p:"7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed",a:"-1",c:"1",d:"52036cee2b6ffe73 8cc740797779e898 00700a4d4141d8ab 75eb4dca135978a3",n:"1000000000000000 0000000000000000 14def9dea2f79cd6 5812631a5cf5d3ed",hash:t.sha256,gRed:!1,g:["216936d3cd6e53fec0a4e231fdd6dc5c692cc7609525a7b2c9562d608f25d51a","6666666666666666666666666666666666666666666666666666666666666658"]});try{k=m(692)}catch{k=void 0}u("secp256k1",{type:"short",prime:"k256",p:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f",a:"0",b:"7",n:"ffffffff ffffffff ffffffff fffffffe baaedce6 af48a03b bfd25e8c d0364141",h:"1",hash:t.sha256,beta:"7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee",lambda:"5363ad4cc05c30e0a5261c028812645a122e22ea20816678df02967c1b23bd72",basis:[{a:"3086d221a7d46bcde86c90e49284eb15",b:"-e4437ed6010e88286f547fa90abfe4c3"},{a:"114ca50f7a8e2f3f657c1108d9d44cfd8",b:"3086d221a7d46bcde86c90e49284eb15"}],gRed:!1,g:["79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798","483ada7726a3c4655da4fbfc0e1108a8fd17b448a68554199c47d08ffb10d4b8",k]})},1336:(Ue,q,m)=>{"use strict";var e=m(2451),t=m(3925),_=m(8865),E=m(7458),s=m(340),D=_.assert,u=m(50),k=m(3545);function p(S){if(!(this instanceof p))return new p(S);"string"==typeof S&&(D(Object.prototype.hasOwnProperty.call(E,S),"Unknown curve "+S),S=E[S]),S instanceof E.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}Ue.exports=p,p.prototype.keyPair=function(A){return new u(this,A)},p.prototype.keyFromPrivate=function(A,P){return u.fromPrivate(this,A,P)},p.prototype.keyFromPublic=function(A,P){return u.fromPublic(this,A,P)},p.prototype.genKeyPair=function(A){A||(A={});for(var P=new t({hash:this.hash,pers:A.pers,persEnc:A.persEnc||"utf8",entropy:A.entropy||s(this.hash.hmacStrength),entropyEnc:A.entropy&&A.entropyEnc||"utf8",nonce:this.n.toArray()}),M=this.n.byteLength(),z=this.n.sub(new e(2));;){var I=new e(P.generate(M));if(!(I.cmp(z)>0))return I.iaddn(1),this.keyFromPrivate(I)}},p.prototype._truncateToN=function(A,P){var M=8*A.byteLength()-this.n.bitLength();return M>0&&(A=A.ushrn(M)),!P&&A.cmp(this.n)>=0?A.sub(this.n):A},p.prototype.sign=function(A,P,M,z){"object"==typeof M&&(z=M,M=null),z||(z={}),P=this.keyFromPrivate(P,M),A=this._truncateToN(new e(A,16));for(var I=this.n.byteLength(),W=P.getPrivate().toArray("be",I),Z=A.toArray("be",I),Q=new t({hash:this.hash,entropy:W,nonce:Z,pers:z.pers,persEnc:z.persEnc||"utf8"}),ie=this.n.sub(new e(1)),ae=0;;ae++){var _e=z.k?z.k(ae):new e(Q.generate(this.n.byteLength()));if(!((_e=this._truncateToN(_e,!0)).cmpn(1)<=0||_e.cmp(ie)>=0)){var ce=this.g.mul(_e);if(!ce.isInfinity()){var ye=ce.getX(),ue=ye.umod(this.n);if(0!==ue.cmpn(0)){var $=_e.invm(this.n).mul(ue.mul(P.getPrivate()).iadd(A));if(0!==($=$.umod(this.n)).cmpn(0)){var he=(ce.getY().isOdd()?1:0)|(0!==ye.cmp(ue)?2:0);return z.canonical&&$.cmp(this.nh)>0&&($=this.n.sub($),he^=1),new k({r:ue,s:$,recoveryParam:he})}}}}}},p.prototype.verify=function(A,P,M,z){A=this._truncateToN(new e(A,16)),M=this.keyFromPublic(M,z);var I=(P=new k(P,"hex")).r,W=P.s;if(I.cmpn(1)<0||I.cmp(this.n)>=0||W.cmpn(1)<0||W.cmp(this.n)>=0)return!1;var ae,Z=W.invm(this.n),Q=Z.mul(A).umod(this.n),ie=Z.mul(I).umod(this.n);return this.curve._maxwellTrick?!(ae=this.g.jmulAdd(Q,M.getPublic(),ie)).isInfinity()&&ae.eqXToP(I):!(ae=this.g.mulAdd(Q,M.getPublic(),ie)).isInfinity()&&0===ae.getX().umod(this.n).cmp(I)},p.prototype.recoverPubKey=function(S,A,P,M){D((3&P)===P,"The recovery param is more than two bits"),A=new k(A,M);var z=this.n,I=new e(S),W=A.r,Z=A.s,Q=1&P,ie=P>>1;if(W.cmp(this.curve.p.umod(this.curve.n))>=0&&ie)throw new Error("Unable to find sencond key candinate");W=ie?this.curve.pointFromX(W.add(this.curve.n),Q):this.curve.pointFromX(W,Q);var ae=A.r.invm(z),_e=z.sub(I).mul(ae).umod(z),ce=Z.mul(ae).umod(z);return this.g.mulAdd(_e,W,ce)},p.prototype.getKeyRecoveryParam=function(S,A,P,M){if(null!==(A=new k(A,M)).recoveryParam)return A.recoveryParam;for(var z=0;z<4;z++){var I;try{I=this.recoverPubKey(S,A,z)}catch{continue}if(I.eq(P))return z}throw new Error("Unable to find valid recovery factor")}},50:(Ue,q,m)=>{"use strict";var e=m(2451),_=m(8865).assert;function E(s,D){this.ec=s,this.priv=null,this.pub=null,D.priv&&this._importPrivate(D.priv,D.privEnc),D.pub&&this._importPublic(D.pub,D.pubEnc)}Ue.exports=E,E.fromPublic=function(D,u,k){return u instanceof E?u:new E(D,{pub:u,pubEnc:k})},E.fromPrivate=function(D,u,k){return u instanceof E?u:new E(D,{priv:u,privEnc:k})},E.prototype.validate=function(){var D=this.getPublic();return D.isInfinity()?{result:!1,reason:"Invalid public key"}:D.validate()?D.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"}},E.prototype.getPublic=function(D,u){return"string"==typeof D&&(u=D,D=null),this.pub||(this.pub=this.ec.g.mul(this.priv)),u?this.pub.encode(u,D):this.pub},E.prototype.getPrivate=function(D){return"hex"===D?this.priv.toString(16,2):this.priv},E.prototype._importPrivate=function(D,u){this.priv=new e(D,u||16),this.priv=this.priv.umod(this.ec.curve.n)},E.prototype._importPublic=function(D,u){if(D.x||D.y)return"mont"===this.ec.curve.type?_(D.x,"Need x coordinate"):("short"===this.ec.curve.type||"edwards"===this.ec.curve.type)&&_(D.x&&D.y,"Need both x and y coordinate"),void(this.pub=this.ec.curve.point(D.x,D.y));this.pub=this.ec.curve.decodePoint(D,u)},E.prototype.derive=function(D){return D.validate()||_(D.validate(),"public point not validated"),D.mul(this.priv).getX()},E.prototype.sign=function(D,u,k){return this.ec.sign(D,this,u,k)},E.prototype.verify=function(D,u){return this.ec.verify(D,u,this)},E.prototype.inspect=function(){return"<Key priv: "+(this.priv&&this.priv.toString(16,2))+" pub: "+(this.pub&&this.pub.inspect())+" >"}},3545:(Ue,q,m)=>{"use strict";var e=m(2451),t=m(8865),_=t.assert;function E(p,S){if(p instanceof E)return p;this._importDER(p,S)||(_(p.r&&p.s,"Signature without r or s"),this.r=new e(p.r,16),this.s=new e(p.s,16),void 0===p.recoveryParam?this.recoveryParam=null:this.recoveryParam=p.recoveryParam)}function s(){this.place=0}function D(p,S){var A=p[S.place++];if(!(128&A))return A;var P=15&A;if(0===P||P>4)return!1;for(var M=0,z=0,I=S.place;z<P;z++,I++)M<<=8,M|=p[I],M>>>=0;return!(M<=127)&&(S.place=I,M)}function u(p){for(var S=0,A=p.length-1;!p[S]&&!(128&p[S+1])&&S<A;)S++;return 0===S?p:p.slice(S)}function k(p,S){if(S<128)p.push(S);else{var A=1+(Math.log(S)/Math.LN2>>>3);for(p.push(128|A);--A;)p.push(S>>>(A<<3)&255);p.push(S)}}Ue.exports=E,E.prototype._importDER=function(S,A){S=t.toArray(S,A);var P=new s;if(48!==S[P.place++])return!1;var M=D(S,P);if(!1===M||M+P.place!==S.length||2!==S[P.place++])return!1;var z=D(S,P);if(!1===z)return!1;var I=S.slice(P.place,z+P.place);if(P.place+=z,2!==S[P.place++])return!1;var W=D(S,P);if(!1===W||S.length!==W+P.place)return!1;var Z=S.slice(P.place,W+P.place);if(0===I[0]){if(!(128&I[1]))return!1;I=I.slice(1)}if(0===Z[0]){if(!(128&Z[1]))return!1;Z=Z.slice(1)}return this.r=new e(I),this.s=new e(Z),this.recoveryParam=null,!0},E.prototype.toDER=function(S){var A=this.r.toArray(),P=this.s.toArray();for(128&A[0]&&(A=[0].concat(A)),128&P[0]&&(P=[0].concat(P)),A=u(A),P=u(P);!(P[0]||128&P[1]);)P=P.slice(1);var M=[2];k(M,A.length),(M=M.concat(A)).push(2),k(M,P.length);var z=M.concat(P),I=[48];return k(I,z.length),I=I.concat(z),t.encode(I,S)}},4380:(Ue,q,m)=>{"use strict";var e=m(9281),t=m(7458),_=m(8865),E=_.assert,s=_.parseBytes,D=m(6031),u=m(3134);function k(p){if(E("ed25519"===p,"only tested with ed25519 so far"),!(this instanceof k))return new k(p);p=t[p].curve,this.curve=p,this.g=p.g,this.g.precompute(p.n.bitLength()+1),this.pointClass=p.point().constructor,this.encodingLength=Math.ceil(p.n.bitLength()/8),this.hash=e.sha512}Ue.exports=k,k.prototype.sign=function(S,A){S=s(S);var P=this.keyFromSecret(A),M=this.hashInt(P.messagePrefix(),S),z=this.g.mul(M),I=this.encodePoint(z),W=this.hashInt(I,P.pubBytes(),S).mul(P.priv()),Z=M.add(W).umod(this.curve.n);return this.makeSignature({R:z,S:Z,Rencoded:I})},k.prototype.verify=function(S,A,P){S=s(S),A=this.makeSignature(A);var M=this.keyFromPublic(P),z=this.hashInt(A.Rencoded(),M.pubBytes(),S),I=this.g.mul(A.S());return A.R().add(M.pub().mul(z)).eq(I)},k.prototype.hashInt=function(){for(var S=this.hash(),A=0;A<arguments.length;A++)S.update(arguments[A]);return _.intFromLE(S.digest()).umod(this.curve.n)},k.prototype.keyFromPublic=function(S){return D.fromPublic(this,S)},k.prototype.keyFromSecret=function(S){return D.fromSecret(this,S)},k.prototype.makeSignature=function(S){return S instanceof u?S:new u(this,S)},k.prototype.encodePoint=function(S){var A=S.getY().toArray("le",this.encodingLength);return A[this.encodingLength-1]|=S.getX().isOdd()?128:0,A},k.prototype.decodePoint=function(S){var A=(S=_.parseBytes(S)).length-1,P=S.slice(0,A).concat(-129&S[A]),M=0!=(128&S[A]),z=_.intFromLE(P);return this.curve.pointFromY(z,M)},k.prototype.encodeInt=function(S){return S.toArray("le",this.encodingLength)},k.prototype.decodeInt=function(S){return _.intFromLE(S)},k.prototype.isPoint=function(S){return S instanceof this.pointClass}},6031:(Ue,q,m)=>{"use strict";var e=m(8865),t=e.assert,_=e.parseBytes,E=e.cachedProperty;function s(D,u){this.eddsa=D,this._secret=_(u.secret),D.isPoint(u.pub)?this._pub=u.pub:this._pubBytes=_(u.pub)}s.fromPublic=function(u,k){return k instanceof s?k:new s(u,{pub:k})},s.fromSecret=function(u,k){return k instanceof s?k:new s(u,{secret:k})},s.prototype.secret=function(){return this._secret},E(s,"pubBytes",function(){return this.eddsa.encodePoint(this.pub())}),E(s,"pub",function(){return this._pubBytes?this.eddsa.decodePoint(this._pubBytes):this.eddsa.g.mul(this.priv())}),E(s,"privBytes",function(){var u=this.eddsa,k=this.hash(),p=u.encodingLength-1,S=k.slice(0,u.encodingLength);return S[0]&=248,S[p]&=127,S[p]|=64,S}),E(s,"priv",function(){return this.eddsa.decodeInt(this.privBytes())}),E(s,"hash",function(){return this.eddsa.hash().update(this.secret()).digest()}),E(s,"messagePrefix",function(){return this.hash().slice(this.eddsa.encodingLength)}),s.prototype.sign=function(u){return t(this._secret,"KeyPair can only verify"),this.eddsa.sign(u,this)},s.prototype.verify=function(u,k){return this.eddsa.verify(u,k,this)},s.prototype.getSecret=function(u){return t(this._secret,"KeyPair is public only"),e.encode(this.secret(),u)},s.prototype.getPublic=function(u){return e.encode(this.pubBytes(),u)},Ue.exports=s},3134:(Ue,q,m)=>{"use strict";var e=m(2451),t=m(8865),_=t.assert,E=t.cachedProperty,s=t.parseBytes;function D(u,k){this.eddsa=u,"object"!=typeof k&&(k=s(k)),Array.isArray(k)&&(k={R:k.slice(0,u.encodingLength),S:k.slice(u.encodingLength)}),_(k.R&&k.S,"Signature without R or S"),u.isPoint(k.R)&&(this._R=k.R),k.S instanceof e&&(this._S=k.S),this._Rencoded=Array.isArray(k.R)?k.R:k.Rencoded,this._Sencoded=Array.isArray(k.S)?k.S:k.Sencoded}E(D,"S",function(){return this.eddsa.decodeInt(this.Sencoded())}),E(D,"R",function(){return this.eddsa.decodePoint(this.Rencoded())}),E(D,"Rencoded",function(){return this.eddsa.encodePoint(this.R())}),E(D,"Sencoded",function(){return this.eddsa.encodeInt(this.S())}),D.prototype.toBytes=function(){return this.Rencoded().concat(this.Sencoded())},D.prototype.toHex=function(){return t.encode(this.toBytes(),"hex").toUpperCase()},Ue.exports=D},692:Ue=>{Ue.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"]]}}},8865:(Ue,q,m)=>{"use strict";var e=q,t=m(2451),_=m(3999),E=m(4985);e.assert=_,e.toArray=E.toArray,e.zero2=E.zero2,e.toHex=E.toHex,e.encode=E.encode,e.getNAF=function s(S,A,P){var M=new Array(Math.max(S.bitLength(),P)+1);M.fill(0);for(var z=1<<A+1,I=S.clone(),W=0;W<M.length;W++){var Z,Q=I.andln(z-1);I.isOdd()?(Z=Q>(z>>1)-1?(z>>1)-Q:Q,I.isubn(Z)):Z=0,M[W]=Z,I.iushrn(1)}return M},e.getJSF=function D(S,A){var P=[[],[]];S=S.clone(),A=A.clone();for(var I,M=0,z=0;S.cmpn(-M)>0||A.cmpn(-z)>0;){var Q,ie,W=S.andln(3)+M&3,Z=A.andln(3)+z&3;3===W&&(W=-1),3===Z&&(Z=-1),0==(1&W)?Q=0:Q=3!==(I=S.andln(7)+M&7)&&5!==I||2!==Z?W:-W,P[0].push(Q),0==(1&Z)?ie=0:ie=3!==(I=A.andln(7)+z&7)&&5!==I||2!==W?Z:-Z,P[1].push(ie),2*M===Q+1&&(M=1-M),2*z===ie+1&&(z=1-z),S.iushrn(1),A.iushrn(1)}return P},e.cachedProperty=function u(S,A,P){var M="_"+A;S.prototype[A]=function(){return void 0!==this[M]?this[M]:this[M]=P.call(this)}},e.parseBytes=function k(S){return"string"==typeof S?e.toArray(S,"hex"):S},e.intFromLE=function p(S){return new t(S,"hex","le")}},2451:function(Ue,q,m){(function(e,t){"use strict";function _(w,n){if(!w)throw new Error(n||"Assertion failed")}function E(w,n){w.super_=n;var o=function(){};o.prototype=n.prototype,w.prototype=new o,w.prototype.constructor=w}function s(w,n,o){if(s.isBN(w))return w;this.negative=0,this.words=null,this.length=0,this.red=null,null!==w&&(("le"===n||"be"===n)&&(o=n,n=10),this._init(w||0,n||10,o||"be"))}var D;"object"==typeof e?e.exports=s:t.BN=s,s.BN=s,s.wordSize=26;try{D=typeof window<"u"&&typeof window.Buffer<"u"?window.Buffer:m(5568).Buffer}catch{}function u(w,n){var o=w.charCodeAt(n);return o>=65&&o<=70?o-55:o>=97&&o<=102?o-87:o-48&15}function k(w,n,o){var h=u(w,o);return o-1>=n&&(h|=u(w,o-1)<<4),h}function p(w,n,o,h){for(var d=0,y=Math.min(w.length,o),L=n;L<y;L++){var B=w.charCodeAt(L)-48;d*=h,d+=B>=49?B-49+10:B>=17?B-17+10:B}return d}s.isBN=function(n){return n instanceof s||null!==n&&"object"==typeof n&&n.constructor.wordSize===s.wordSize&&Array.isArray(n.words)},s.max=function(n,o){return n.cmp(o)>0?n:o},s.min=function(n,o){return n.cmp(o)<0?n:o},s.prototype._init=function(n,o,h){if("number"==typeof n)return this._initNumber(n,o,h);if("object"==typeof n)return this._initArray(n,o,h);"hex"===o&&(o=16),_(o===(0|o)&&o>=2&&o<=36);var d=0;"-"===(n=n.toString().replace(/\s+/g,""))[0]&&(d++,this.negative=1),d<n.length&&(16===o?this._parseHex(n,d,h):(this._parseBase(n,o,d),"le"===h&&this._initArray(this.toArray(),o,h)))},s.prototype._initNumber=function(n,o,h){n<0&&(this.negative=1,n=-n),n<67108864?(this.words=[67108863&n],this.length=1):n<4503599627370496?(this.words=[67108863&n,n/67108864&67108863],this.length=2):(_(n<9007199254740992),this.words=[67108863&n,n/67108864&67108863,1],this.length=3),"le"===h&&this._initArray(this.toArray(),o,h)},s.prototype._initArray=function(n,o,h){if(_("number"==typeof n.length),n.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(n.length/3),this.words=new Array(this.length);for(var d=0;d<this.length;d++)this.words[d]=0;var y,L,B=0;if("be"===h)for(d=n.length-1,y=0;d>=0;d-=3)L=n[d]|n[d-1]<<8|n[d-2]<<16,this.words[y]|=L<<B&67108863,this.words[y+1]=L>>>26-B&67108863,(B+=24)>=26&&(B-=26,y++);else if("le"===h)for(d=0,y=0;d<n.length;d+=3)L=n[d]|n[d+1]<<8|n[d+2]<<16,this.words[y]|=L<<B&67108863,this.words[y+1]=L>>>26-B&67108863,(B+=24)>=26&&(B-=26,y++);return this.strip()},s.prototype._parseHex=function(n,o,h){this.length=Math.ceil((n.length-o)/6),this.words=new Array(this.length);for(var d=0;d<this.length;d++)this.words[d]=0;var B,y=0,L=0;if("be"===h)for(d=n.length-1;d>=o;d-=2)B=k(n,o,d)<<y,this.words[L]|=67108863&B,y>=18?(y-=18,L+=1,this.words[L]|=B>>>26):y+=8;else for(d=(n.length-o)%2==0?o+1:o;d<n.length;d+=2)B=k(n,o,d)<<y,this.words[L]|=67108863&B,y>=18?(y-=18,L+=1,this.words[L]|=B>>>26):y+=8;this.strip()},s.prototype._parseBase=function(n,o,h){this.words=[0],this.length=1;for(var d=0,y=1;y<=67108863;y*=o)d++;d--,y=y/o|0;for(var L=n.length-h,B=L%d,v=Math.min(L,L-B)+h,a=0,C=h;C<v;C+=d)a=p(n,C,C+d,o),this.imuln(y),this.words[0]+a<67108864?this.words[0]+=a:this._iaddn(a);if(0!==B){var N=1;for(a=p(n,C,n.length,o),C=0;C<B;C++)N*=o;this.imuln(N),this.words[0]+a<67108864?this.words[0]+=a:this._iaddn(a)}this.strip()},s.prototype.copy=function(n){n.words=new Array(this.length);for(var o=0;o<this.length;o++)n.words[o]=this.words[o];n.length=this.length,n.negative=this.negative,n.red=this.red},s.prototype.clone=function(){var n=new s(null);return this.copy(n),n},s.prototype._expand=function(n){for(;this.length<n;)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"],A=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],P=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];function z(w,n,o){o.negative=n.negative^w.negative;var h=w.length+n.length|0;o.length=h,h=h-1|0;var d=0|w.words[0],y=0|n.words[0],L=d*y,B=67108863&L,v=L/67108864|0;o.words[0]=B;for(var a=1;a<h;a++){for(var C=v>>>26,N=67108863&v,F=Math.min(a,n.length-1),X=Math.max(0,a-w.length+1);X<=F;X++){var Fe=a-X|0;C+=(L=(d=0|w.words[Fe])*(y=0|n.words[X])+N)/67108864|0,N=67108863&L}o.words[a]=0|N,v=0|C}return 0!==v?o.words[a]=0|v:o.length--,o.strip()}s.prototype.toString=function(n,o){var h;if(o=0|o||1,16===(n=n||10)||"hex"===n){h="";for(var d=0,y=0,L=0;L<this.length;L++){var B=this.words[L],v=(16777215&(B<<d|y)).toString(16);h=0!==(y=B>>>24-d&16777215)||L!==this.length-1?S[6-v.length]+v+h:v+h,(d+=2)>=26&&(d-=26,L--)}for(0!==y&&(h=y.toString(16)+h);h.length%o!=0;)h="0"+h;return 0!==this.negative&&(h="-"+h),h}if(n===(0|n)&&n>=2&&n<=36){var a=A[n],C=P[n];h="";var N=this.clone();for(N.negative=0;!N.isZero();){var F=N.modn(C).toString(n);h=(N=N.idivn(C)).isZero()?F+h:S[a-F.length]+F+h}for(this.isZero()&&(h="0"+h);h.length%o!=0;)h="0"+h;return 0!==this.negative&&(h="-"+h),h}_(!1,"Base should be between 2 and 36")},s.prototype.toNumber=function(){var n=this.words[0];return 2===this.length?n+=67108864*this.words[1]:3===this.length&&1===this.words[2]?n+=4503599627370496+67108864*this.words[1]:this.length>2&&_(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-n:n},s.prototype.toJSON=function(){return this.toString(16)},s.prototype.toBuffer=function(n,o){return _(typeof D<"u"),this.toArrayLike(D,n,o)},s.prototype.toArray=function(n,o){return this.toArrayLike(Array,n,o)},s.prototype.toArrayLike=function(n,o,h){var d=this.byteLength(),y=h||Math.max(1,d);_(d<=y,"byte array longer than desired length"),_(y>0,"Requested array length <= 0"),this.strip();var v,a,L="le"===o,B=new n(y),C=this.clone();if(L){for(a=0;!C.isZero();a++)v=C.andln(255),C.iushrn(8),B[a]=v;for(;a<y;a++)B[a]=0}else{for(a=0;a<y-d;a++)B[a]=0;for(a=0;!C.isZero();a++)v=C.andln(255),C.iushrn(8),B[y-a-1]=v}return B},Math.clz32?s.prototype._countBits=function(n){return 32-Math.clz32(n)}:s.prototype._countBits=function(n){var o=n,h=0;return o>=4096&&(h+=13,o>>>=13),o>=64&&(h+=7,o>>>=7),o>=8&&(h+=4,o>>>=4),o>=2&&(h+=2,o>>>=2),h+o},s.prototype._zeroBits=function(n){if(0===n)return 26;var o=n,h=0;return 0==(8191&o)&&(h+=13,o>>>=13),0==(127&o)&&(h+=7,o>>>=7),0==(15&o)&&(h+=4,o>>>=4),0==(3&o)&&(h+=2,o>>>=2),0==(1&o)&&h++,h},s.prototype.bitLength=function(){var n=this.words[this.length-1],o=this._countBits(n);return 26*(this.length-1)+o},s.prototype.zeroBits=function(){if(this.isZero())return 0;for(var n=0,o=0;o<this.length;o++){var h=this._zeroBits(this.words[o]);if(n+=h,26!==h)break}return n},s.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},s.prototype.toTwos=function(n){return 0!==this.negative?this.abs().inotn(n).iaddn(1):this.clone()},s.prototype.fromTwos=function(n){return this.testn(n-1)?this.notn(n).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(n){for(;this.length<n.length;)this.words[this.length++]=0;for(var o=0;o<n.length;o++)this.words[o]=this.words[o]|n.words[o];return this.strip()},s.prototype.ior=function(n){return _(0==(this.negative|n.negative)),this.iuor(n)},s.prototype.or=function(n){return this.length>n.length?this.clone().ior(n):n.clone().ior(this)},s.prototype.uor=function(n){return this.length>n.length?this.clone().iuor(n):n.clone().iuor(this)},s.prototype.iuand=function(n){var o;o=this.length>n.length?n:this;for(var h=0;h<o.length;h++)this.words[h]=this.words[h]&n.words[h];return this.length=o.length,this.strip()},s.prototype.iand=function(n){return _(0==(this.negative|n.negative)),this.iuand(n)},s.prototype.and=function(n){return this.length>n.length?this.clone().iand(n):n.clone().iand(this)},s.prototype.uand=function(n){return this.length>n.length?this.clone().iuand(n):n.clone().iuand(this)},s.prototype.iuxor=function(n){var o,h;this.length>n.length?(o=this,h=n):(o=n,h=this);for(var d=0;d<h.length;d++)this.words[d]=o.words[d]^h.words[d];if(this!==o)for(;d<o.length;d++)this.words[d]=o.words[d];return this.length=o.length,this.strip()},s.prototype.ixor=function(n){return _(0==(this.negative|n.negative)),this.iuxor(n)},s.prototype.xor=function(n){return this.length>n.length?this.clone().ixor(n):n.clone().ixor(this)},s.prototype.uxor=function(n){return this.length>n.length?this.clone().iuxor(n):n.clone().iuxor(this)},s.prototype.inotn=function(n){_("number"==typeof n&&n>=0);var o=0|Math.ceil(n/26),h=n%26;this._expand(o),h>0&&o--;for(var d=0;d<o;d++)this.words[d]=67108863&~this.words[d];return h>0&&(this.words[d]=~this.words[d]&67108863>>26-h),this.strip()},s.prototype.notn=function(n){return this.clone().inotn(n)},s.prototype.setn=function(n,o){_("number"==typeof n&&n>=0);var h=n/26|0,d=n%26;return this._expand(h+1),this.words[h]=o?this.words[h]|1<<d:this.words[h]&~(1<<d),this.strip()},s.prototype.iadd=function(n){var o,h,d;if(0!==this.negative&&0===n.negative)return this.negative=0,o=this.isub(n),this.negative^=1,this._normSign();if(0===this.negative&&0!==n.negative)return n.negative=0,o=this.isub(n),n.negative=1,o._normSign();this.length>n.length?(h=this,d=n):(h=n,d=this);for(var y=0,L=0;L<d.length;L++)o=(0|h.words[L])+(0|d.words[L])+y,this.words[L]=67108863&o,y=o>>>26;for(;0!==y&&L<h.length;L++)o=(0|h.words[L])+y,this.words[L]=67108863&o,y=o>>>26;if(this.length=h.length,0!==y)this.words[this.length]=y,this.length++;else if(h!==this)for(;L<h.length;L++)this.words[L]=h.words[L];return this},s.prototype.add=function(n){var o;return 0!==n.negative&&0===this.negative?(n.negative=0,o=this.sub(n),n.negative^=1,o):0===n.negative&&0!==this.negative?(this.negative=0,o=n.sub(this),this.negative=1,o):this.length>n.length?this.clone().iadd(n):n.clone().iadd(this)},s.prototype.isub=function(n){if(0!==n.negative){n.negative=0;var o=this.iadd(n);return n.negative=1,o._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(n),this.negative=1,this._normSign();var d,y,h=this.cmp(n);if(0===h)return this.negative=0,this.length=1,this.words[0]=0,this;h>0?(d=this,y=n):(d=n,y=this);for(var L=0,B=0;B<y.length;B++)L=(o=(0|d.words[B])-(0|y.words[B])+L)>>26,this.words[B]=67108863&o;for(;0!==L&&B<d.length;B++)L=(o=(0|d.words[B])+L)>>26,this.words[B]=67108863&o;if(0===L&&B<d.length&&d!==this)for(;B<d.length;B++)this.words[B]=d.words[B];return this.length=Math.max(this.length,B),d!==this&&(this.negative=1),this.strip()},s.prototype.sub=function(n){return this.clone().isub(n)};var I=function(n,o,h){var v,a,C,d=n.words,y=o.words,L=h.words,B=0,N=0|d[0],F=8191&N,X=N>>>13,Fe=0|d[1],ke=8191&Fe,Ke=Fe>>>13,je=0|d[2],Ve=8191&je,xe=je>>>13,Ze=0|d[3],Ie=8191&Ze,ve=Ze>>>13,et=0|d[4],ht=8191&et,Le=et>>>13,Ae=0|d[5],te=8191&Ae,pe=Ae>>>13,ee=0|d[6],H=8191&ee,j=ee>>>13,Oe=0|d[7],Re=8191&Oe,le=Oe>>>13,_t=0|d[8],it=8191&_t,Ct=_t>>>13,un=0|d[9],Bt=8191&un,Ut=un>>>13,yn=0|y[0],Xt=8191&yn,Gt=yn>>>13,In=0|y[1],rn=8191&In,tn=In>>>13,pn=0|y[2],tt=8191&pn,vt=pn>>>13,dt=0|y[3],se=8191&dt,J=dt>>>13,oe=0|y[4],De=8191&oe,Ye=oe>>>13,Dt=0|y[5],ut=8191&Dt,ze=Dt>>>13,Me=0|y[6],Ce=8191&Me,Je=Me>>>13,zt=0|y[7],At=8191&zt,Tt=zt>>>13,Ht=0|y[8],He=8191&Ht,$e=Ht>>>13,$t=0|y[9],Rt=8191&$t,Jt=$t>>>13;h.negative=n.negative^o.negative,h.length=19;var Vn=(B+(v=Math.imul(F,Xt))|0)+((8191&(a=(a=Math.imul(F,Gt))+Math.imul(X,Xt)|0))<<13)|0;B=((C=Math.imul(X,Gt))+(a>>>13)|0)+(Vn>>>26)|0,Vn&=67108863,v=Math.imul(ke,Xt),a=(a=Math.imul(ke,Gt))+Math.imul(Ke,Xt)|0,C=Math.imul(Ke,Gt);var zn=(B+(v=v+Math.imul(F,rn)|0)|0)+((8191&(a=(a=a+Math.imul(F,tn)|0)+Math.imul(X,rn)|0))<<13)|0;B=((C=C+Math.imul(X,tn)|0)+(a>>>13)|0)+(zn>>>26)|0,zn&=67108863,v=Math.imul(Ve,Xt),a=(a=Math.imul(Ve,Gt))+Math.imul(xe,Xt)|0,C=Math.imul(xe,Gt),v=v+Math.imul(ke,rn)|0,a=(a=a+Math.imul(ke,tn)|0)+Math.imul(Ke,rn)|0,C=C+Math.imul(Ke,tn)|0;var Tn=(B+(v=v+Math.imul(F,tt)|0)|0)+((8191&(a=(a=a+Math.imul(F,vt)|0)+Math.imul(X,tt)|0))<<13)|0;B=((C=C+Math.imul(X,vt)|0)+(a>>>13)|0)+(Tn>>>26)|0,Tn&=67108863,v=Math.imul(Ie,Xt),a=(a=Math.imul(Ie,Gt))+Math.imul(ve,Xt)|0,C=Math.imul(ve,Gt),v=v+Math.imul(Ve,rn)|0,a=(a=a+Math.imul(Ve,tn)|0)+Math.imul(xe,rn)|0,C=C+Math.imul(xe,tn)|0,v=v+Math.imul(ke,tt)|0,a=(a=a+Math.imul(ke,vt)|0)+Math.imul(Ke,tt)|0,C=C+Math.imul(Ke,vt)|0;var Yn=(B+(v=v+Math.imul(F,se)|0)|0)+((8191&(a=(a=a+Math.imul(F,J)|0)+Math.imul(X,se)|0))<<13)|0;B=((C=C+Math.imul(X,J)|0)+(a>>>13)|0)+(Yn>>>26)|0,Yn&=67108863,v=Math.imul(ht,Xt),a=(a=Math.imul(ht,Gt))+Math.imul(Le,Xt)|0,C=Math.imul(Le,Gt),v=v+Math.imul(Ie,rn)|0,a=(a=a+Math.imul(Ie,tn)|0)+Math.imul(ve,rn)|0,C=C+Math.imul(ve,tn)|0,v=v+Math.imul(Ve,tt)|0,a=(a=a+Math.imul(Ve,vt)|0)+Math.imul(xe,tt)|0,C=C+Math.imul(xe,vt)|0,v=v+Math.imul(ke,se)|0,a=(a=a+Math.imul(ke,J)|0)+Math.imul(Ke,se)|0,C=C+Math.imul(Ke,J)|0;var Mt=(B+(v=v+Math.imul(F,De)|0)|0)+((8191&(a=(a=a+Math.imul(F,Ye)|0)+Math.imul(X,De)|0))<<13)|0;B=((C=C+Math.imul(X,Ye)|0)+(a>>>13)|0)+(Mt>>>26)|0,Mt&=67108863,v=Math.imul(te,Xt),a=(a=Math.imul(te,Gt))+Math.imul(pe,Xt)|0,C=Math.imul(pe,Gt),v=v+Math.imul(ht,rn)|0,a=(a=a+Math.imul(ht,tn)|0)+Math.imul(Le,rn)|0,C=C+Math.imul(Le,tn)|0,v=v+Math.imul(Ie,tt)|0,a=(a=a+Math.imul(Ie,vt)|0)+Math.imul(ve,tt)|0,C=C+Math.imul(ve,vt)|0,v=v+Math.imul(Ve,se)|0,a=(a=a+Math.imul(Ve,J)|0)+Math.imul(xe,se)|0,C=C+Math.imul(xe,J)|0,v=v+Math.imul(ke,De)|0,a=(a=a+Math.imul(ke,Ye)|0)+Math.imul(Ke,De)|0,C=C+Math.imul(Ke,Ye)|0;var Ge=(B+(v=v+Math.imul(F,ut)|0)|0)+((8191&(a=(a=a+Math.imul(F,ze)|0)+Math.imul(X,ut)|0))<<13)|0;B=((C=C+Math.imul(X,ze)|0)+(a>>>13)|0)+(Ge>>>26)|0,Ge&=67108863,v=Math.imul(H,Xt),a=(a=Math.imul(H,Gt))+Math.imul(j,Xt)|0,C=Math.imul(j,Gt),v=v+Math.imul(te,rn)|0,a=(a=a+Math.imul(te,tn)|0)+Math.imul(pe,rn)|0,C=C+Math.imul(pe,tn)|0,v=v+Math.imul(ht,tt)|0,a=(a=a+Math.imul(ht,vt)|0)+Math.imul(Le,tt)|0,C=C+Math.imul(Le,vt)|0,v=v+Math.imul(Ie,se)|0,a=(a=a+Math.imul(Ie,J)|0)+Math.imul(ve,se)|0,C=C+Math.imul(ve,J)|0,v=v+Math.imul(Ve,De)|0,a=(a=a+Math.imul(Ve,Ye)|0)+Math.imul(xe,De)|0,C=C+Math.imul(xe,Ye)|0,v=v+Math.imul(ke,ut)|0,a=(a=a+Math.imul(ke,ze)|0)+Math.imul(Ke,ut)|0,C=C+Math.imul(Ke,ze)|0;var Be=(B+(v=v+Math.imul(F,Ce)|0)|0)+((8191&(a=(a=a+Math.imul(F,Je)|0)+Math.imul(X,Ce)|0))<<13)|0;B=((C=C+Math.imul(X,Je)|0)+(a>>>13)|0)+(Be>>>26)|0,Be&=67108863,v=Math.imul(Re,Xt),a=(a=Math.imul(Re,Gt))+Math.imul(le,Xt)|0,C=Math.imul(le,Gt),v=v+Math.imul(H,rn)|0,a=(a=a+Math.imul(H,tn)|0)+Math.imul(j,rn)|0,C=C+Math.imul(j,tn)|0,v=v+Math.imul(te,tt)|0,a=(a=a+Math.imul(te,vt)|0)+Math.imul(pe,tt)|0,C=C+Math.imul(pe,vt)|0,v=v+Math.imul(ht,se)|0,a=(a=a+Math.imul(ht,J)|0)+Math.imul(Le,se)|0,C=C+Math.imul(Le,J)|0,v=v+Math.imul(Ie,De)|0,a=(a=a+Math.imul(Ie,Ye)|0)+Math.imul(ve,De)|0,C=C+Math.imul(ve,Ye)|0,v=v+Math.imul(Ve,ut)|0,a=(a=a+Math.imul(Ve,ze)|0)+Math.imul(xe,ut)|0,C=C+Math.imul(xe,ze)|0,v=v+Math.imul(ke,Ce)|0,a=(a=a+Math.imul(ke,Je)|0)+Math.imul(Ke,Ce)|0,C=C+Math.imul(Ke,Je)|0;var ft=(B+(v=v+Math.imul(F,At)|0)|0)+((8191&(a=(a=a+Math.imul(F,Tt)|0)+Math.imul(X,At)|0))<<13)|0;B=((C=C+Math.imul(X,Tt)|0)+(a>>>13)|0)+(ft>>>26)|0,ft&=67108863,v=Math.imul(it,Xt),a=(a=Math.imul(it,Gt))+Math.imul(Ct,Xt)|0,C=Math.imul(Ct,Gt),v=v+Math.imul(Re,rn)|0,a=(a=a+Math.imul(Re,tn)|0)+Math.imul(le,rn)|0,C=C+Math.imul(le,tn)|0,v=v+Math.imul(H,tt)|0,a=(a=a+Math.imul(H,vt)|0)+Math.imul(j,tt)|0,C=C+Math.imul(j,vt)|0,v=v+Math.imul(te,se)|0,a=(a=a+Math.imul(te,J)|0)+Math.imul(pe,se)|0,C=C+Math.imul(pe,J)|0,v=v+Math.imul(ht,De)|0,a=(a=a+Math.imul(ht,Ye)|0)+Math.imul(Le,De)|0,C=C+Math.imul(Le,Ye)|0,v=v+Math.imul(Ie,ut)|0,a=(a=a+Math.imul(Ie,ze)|0)+Math.imul(ve,ut)|0,C=C+Math.imul(ve,ze)|0,v=v+Math.imul(Ve,Ce)|0,a=(a=a+Math.imul(Ve,Je)|0)+Math.imul(xe,Ce)|0,C=C+Math.imul(xe,Je)|0,v=v+Math.imul(ke,At)|0,a=(a=a+Math.imul(ke,Tt)|0)+Math.imul(Ke,At)|0,C=C+Math.imul(Ke,Tt)|0;var re=(B+(v=v+Math.imul(F,He)|0)|0)+((8191&(a=(a=a+Math.imul(F,$e)|0)+Math.imul(X,He)|0))<<13)|0;B=((C=C+Math.imul(X,$e)|0)+(a>>>13)|0)+(re>>>26)|0,re&=67108863,v=Math.imul(Bt,Xt),a=(a=Math.imul(Bt,Gt))+Math.imul(Ut,Xt)|0,C=Math.imul(Ut,Gt),v=v+Math.imul(it,rn)|0,a=(a=a+Math.imul(it,tn)|0)+Math.imul(Ct,rn)|0,C=C+Math.imul(Ct,tn)|0,v=v+Math.imul(Re,tt)|0,a=(a=a+Math.imul(Re,vt)|0)+Math.imul(le,tt)|0,C=C+Math.imul(le,vt)|0,v=v+Math.imul(H,se)|0,a=(a=a+Math.imul(H,J)|0)+Math.imul(j,se)|0,C=C+Math.imul(j,J)|0,v=v+Math.imul(te,De)|0,a=(a=a+Math.imul(te,Ye)|0)+Math.imul(pe,De)|0,C=C+Math.imul(pe,Ye)|0,v=v+Math.imul(ht,ut)|0,a=(a=a+Math.imul(ht,ze)|0)+Math.imul(Le,ut)|0,C=C+Math.imul(Le,ze)|0,v=v+Math.imul(Ie,Ce)|0,a=(a=a+Math.imul(Ie,Je)|0)+Math.imul(ve,Ce)|0,C=C+Math.imul(ve,Je)|0,v=v+Math.imul(Ve,At)|0,a=(a=a+Math.imul(Ve,Tt)|0)+Math.imul(xe,At)|0,C=C+Math.imul(xe,Tt)|0,v=v+Math.imul(ke,He)|0,a=(a=a+Math.imul(ke,$e)|0)+Math.imul(Ke,He)|0,C=C+Math.imul(Ke,$e)|0;var Te=(B+(v=v+Math.imul(F,Rt)|0)|0)+((8191&(a=(a=a+Math.imul(F,Jt)|0)+Math.imul(X,Rt)|0))<<13)|0;B=((C=C+Math.imul(X,Jt)|0)+(a>>>13)|0)+(Te>>>26)|0,Te&=67108863,v=Math.imul(Bt,rn),a=(a=Math.imul(Bt,tn))+Math.imul(Ut,rn)|0,C=Math.imul(Ut,tn),v=v+Math.imul(it,tt)|0,a=(a=a+Math.imul(it,vt)|0)+Math.imul(Ct,tt)|0,C=C+Math.imul(Ct,vt)|0,v=v+Math.imul(Re,se)|0,a=(a=a+Math.imul(Re,J)|0)+Math.imul(le,se)|0,C=C+Math.imul(le,J)|0,v=v+Math.imul(H,De)|0,a=(a=a+Math.imul(H,Ye)|0)+Math.imul(j,De)|0,C=C+Math.imul(j,Ye)|0,v=v+Math.imul(te,ut)|0,a=(a=a+Math.imul(te,ze)|0)+Math.imul(pe,ut)|0,C=C+Math.imul(pe,ze)|0,v=v+Math.imul(ht,Ce)|0,a=(a=a+Math.imul(ht,Je)|0)+Math.imul(Le,Ce)|0,C=C+Math.imul(Le,Je)|0,v=v+Math.imul(Ie,At)|0,a=(a=a+Math.imul(Ie,Tt)|0)+Math.imul(ve,At)|0,C=C+Math.imul(ve,Tt)|0,v=v+Math.imul(Ve,He)|0,a=(a=a+Math.imul(Ve,$e)|0)+Math.imul(xe,He)|0,C=C+Math.imul(xe,$e)|0;var pt=(B+(v=v+Math.imul(ke,Rt)|0)|0)+((8191&(a=(a=a+Math.imul(ke,Jt)|0)+Math.imul(Ke,Rt)|0))<<13)|0;B=((C=C+Math.imul(Ke,Jt)|0)+(a>>>13)|0)+(pt>>>26)|0,pt&=67108863,v=Math.imul(Bt,tt),a=(a=Math.imul(Bt,vt))+Math.imul(Ut,tt)|0,C=Math.imul(Ut,vt),v=v+Math.imul(it,se)|0,a=(a=a+Math.imul(it,J)|0)+Math.imul(Ct,se)|0,C=C+Math.imul(Ct,J)|0,v=v+Math.imul(Re,De)|0,a=(a=a+Math.imul(Re,Ye)|0)+Math.imul(le,De)|0,C=C+Math.imul(le,Ye)|0,v=v+Math.imul(H,ut)|0,a=(a=a+Math.imul(H,ze)|0)+Math.imul(j,ut)|0,C=C+Math.imul(j,ze)|0,v=v+Math.imul(te,Ce)|0,a=(a=a+Math.imul(te,Je)|0)+Math.imul(pe,Ce)|0,C=C+Math.imul(pe,Je)|0,v=v+Math.imul(ht,At)|0,a=(a=a+Math.imul(ht,Tt)|0)+Math.imul(Le,At)|0,C=C+Math.imul(Le,Tt)|0,v=v+Math.imul(Ie,He)|0,a=(a=a+Math.imul(Ie,$e)|0)+Math.imul(ve,He)|0,C=C+Math.imul(ve,$e)|0;var Lt=(B+(v=v+Math.imul(Ve,Rt)|0)|0)+((8191&(a=(a=a+Math.imul(Ve,Jt)|0)+Math.imul(xe,Rt)|0))<<13)|0;B=((C=C+Math.imul(xe,Jt)|0)+(a>>>13)|0)+(Lt>>>26)|0,Lt&=67108863,v=Math.imul(Bt,se),a=(a=Math.imul(Bt,J))+Math.imul(Ut,se)|0,C=Math.imul(Ut,J),v=v+Math.imul(it,De)|0,a=(a=a+Math.imul(it,Ye)|0)+Math.imul(Ct,De)|0,C=C+Math.imul(Ct,Ye)|0,v=v+Math.imul(Re,ut)|0,a=(a=a+Math.imul(Re,ze)|0)+Math.imul(le,ut)|0,C=C+Math.imul(le,ze)|0,v=v+Math.imul(H,Ce)|0,a=(a=a+Math.imul(H,Je)|0)+Math.imul(j,Ce)|0,C=C+Math.imul(j,Je)|0,v=v+Math.imul(te,At)|0,a=(a=a+Math.imul(te,Tt)|0)+Math.imul(pe,At)|0,C=C+Math.imul(pe,Tt)|0,v=v+Math.imul(ht,He)|0,a=(a=a+Math.imul(ht,$e)|0)+Math.imul(Le,He)|0,C=C+Math.imul(Le,$e)|0;var nn=(B+(v=v+Math.imul(Ie,Rt)|0)|0)+((8191&(a=(a=a+Math.imul(Ie,Jt)|0)+Math.imul(ve,Rt)|0))<<13)|0;B=((C=C+Math.imul(ve,Jt)|0)+(a>>>13)|0)+(nn>>>26)|0,nn&=67108863,v=Math.imul(Bt,De),a=(a=Math.imul(Bt,Ye))+Math.imul(Ut,De)|0,C=Math.imul(Ut,Ye),v=v+Math.imul(it,ut)|0,a=(a=a+Math.imul(it,ze)|0)+Math.imul(Ct,ut)|0,C=C+Math.imul(Ct,ze)|0,v=v+Math.imul(Re,Ce)|0,a=(a=a+Math.imul(Re,Je)|0)+Math.imul(le,Ce)|0,C=C+Math.imul(le,Je)|0,v=v+Math.imul(H,At)|0,a=(a=a+Math.imul(H,Tt)|0)+Math.imul(j,At)|0,C=C+Math.imul(j,Tt)|0,v=v+Math.imul(te,He)|0,a=(a=a+Math.imul(te,$e)|0)+Math.imul(pe,He)|0,C=C+Math.imul(pe,$e)|0;var Bn=(B+(v=v+Math.imul(ht,Rt)|0)|0)+((8191&(a=(a=a+Math.imul(ht,Jt)|0)+Math.imul(Le,Rt)|0))<<13)|0;B=((C=C+Math.imul(Le,Jt)|0)+(a>>>13)|0)+(Bn>>>26)|0,Bn&=67108863,v=Math.imul(Bt,ut),a=(a=Math.imul(Bt,ze))+Math.imul(Ut,ut)|0,C=Math.imul(Ut,ze),v=v+Math.imul(it,Ce)|0,a=(a=a+Math.imul(it,Je)|0)+Math.imul(Ct,Ce)|0,C=C+Math.imul(Ct,Je)|0,v=v+Math.imul(Re,At)|0,a=(a=a+Math.imul(Re,Tt)|0)+Math.imul(le,At)|0,C=C+Math.imul(le,Tt)|0,v=v+Math.imul(H,He)|0,a=(a=a+Math.imul(H,$e)|0)+Math.imul(j,He)|0,C=C+Math.imul(j,$e)|0;var Wn=(B+(v=v+Math.imul(te,Rt)|0)|0)+((8191&(a=(a=a+Math.imul(te,Jt)|0)+Math.imul(pe,Rt)|0))<<13)|0;B=((C=C+Math.imul(pe,Jt)|0)+(a>>>13)|0)+(Wn>>>26)|0,Wn&=67108863,v=Math.imul(Bt,Ce),a=(a=Math.imul(Bt,Je))+Math.imul(Ut,Ce)|0,C=Math.imul(Ut,Je),v=v+Math.imul(it,At)|0,a=(a=a+Math.imul(it,Tt)|0)+Math.imul(Ct,At)|0,C=C+Math.imul(Ct,Tt)|0,v=v+Math.imul(Re,He)|0,a=(a=a+Math.imul(Re,$e)|0)+Math.imul(le,He)|0,C=C+Math.imul(le,$e)|0;var ti=(B+(v=v+Math.imul(H,Rt)|0)|0)+((8191&(a=(a=a+Math.imul(H,Jt)|0)+Math.imul(j,Rt)|0))<<13)|0;B=((C=C+Math.imul(j,Jt)|0)+(a>>>13)|0)+(ti>>>26)|0,ti&=67108863,v=Math.imul(Bt,At),a=(a=Math.imul(Bt,Tt))+Math.imul(Ut,At)|0,C=Math.imul(Ut,Tt),v=v+Math.imul(it,He)|0,a=(a=a+Math.imul(it,$e)|0)+Math.imul(Ct,He)|0,C=C+Math.imul(Ct,$e)|0;var Mn=(B+(v=v+Math.imul(Re,Rt)|0)|0)+((8191&(a=(a=a+Math.imul(Re,Jt)|0)+Math.imul(le,Rt)|0))<<13)|0;B=((C=C+Math.imul(le,Jt)|0)+(a>>>13)|0)+(Mn>>>26)|0,Mn&=67108863,v=Math.imul(Bt,He),a=(a=Math.imul(Bt,$e))+Math.imul(Ut,He)|0,C=Math.imul(Ut,$e);var Ln=(B+(v=v+Math.imul(it,Rt)|0)|0)+((8191&(a=(a=a+Math.imul(it,Jt)|0)+Math.imul(Ct,Rt)|0))<<13)|0;B=((C=C+Math.imul(Ct,Jt)|0)+(a>>>13)|0)+(Ln>>>26)|0,Ln&=67108863;var ai=(B+(v=Math.imul(Bt,Rt))|0)+((8191&(a=(a=Math.imul(Bt,Jt))+Math.imul(Ut,Rt)|0))<<13)|0;return B=((C=Math.imul(Ut,Jt))+(a>>>13)|0)+(ai>>>26)|0,ai&=67108863,L[0]=Vn,L[1]=zn,L[2]=Tn,L[3]=Yn,L[4]=Mt,L[5]=Ge,L[6]=Be,L[7]=ft,L[8]=re,L[9]=Te,L[10]=pt,L[11]=Lt,L[12]=nn,L[13]=Bn,L[14]=Wn,L[15]=ti,L[16]=Mn,L[17]=Ln,L[18]=ai,0!==B&&(L[19]=B,h.length++),h};function Z(w,n,o){return(new Q).mulp(w,n,o)}function Q(w,n){this.x=w,this.y=n}Math.imul||(I=z),s.prototype.mulTo=function(n,o){var h,d=this.length+n.length;return h=10===this.length&&10===n.length?I(this,n,o):d<63?z(this,n,o):d<1024?function W(w,n,o){o.negative=n.negative^w.negative,o.length=w.length+n.length;for(var h=0,d=0,y=0;y<o.length-1;y++){var L=d;d=0;for(var B=67108863&h,v=Math.min(y,n.length-1),a=Math.max(0,y-w.length+1);a<=v;a++){var C=y-a,X=(0|w.words[C])*(0|n.words[a]),Fe=67108863&X;B=67108863&(Fe=Fe+B|0),d+=(L=(L=L+(X/67108864|0)|0)+(Fe>>>26)|0)>>>26,L&=67108863}o.words[y]=B,h=L,L=d}return 0!==h?o.words[y]=h:o.length--,o.strip()}(this,n,o):Z(this,n,o),h},Q.prototype.makeRBT=function(n){for(var o=new Array(n),h=s.prototype._countBits(n)-1,d=0;d<n;d++)o[d]=this.revBin(d,h,n);return o},Q.prototype.revBin=function(n,o,h){if(0===n||n===h-1)return n;for(var d=0,y=0;y<o;y++)d|=(1&n)<<o-y-1,n>>=1;return d},Q.prototype.permute=function(n,o,h,d,y,L){for(var B=0;B<L;B++)d[B]=o[n[B]],y[B]=h[n[B]]},Q.prototype.transform=function(n,o,h,d,y,L){this.permute(L,n,o,h,d,y);for(var B=1;B<y;B<<=1)for(var v=B<<1,a=Math.cos(2*Math.PI/v),C=Math.sin(2*Math.PI/v),N=0;N<y;N+=v)for(var F=a,X=C,Fe=0;Fe<B;Fe++){var ke=h[N+Fe],Ke=d[N+Fe],je=h[N+Fe+B],Ve=d[N+Fe+B],xe=F*je-X*Ve;Ve=F*Ve+X*je,je=xe,h[N+Fe]=ke+je,d[N+Fe]=Ke+Ve,h[N+Fe+B]=ke-je,d[N+Fe+B]=Ke-Ve,Fe!==v&&(xe=a*F-C*X,X=a*X+C*F,F=xe)}},Q.prototype.guessLen13b=function(n,o){var h=1|Math.max(o,n),d=1&h,y=0;for(h=h/2|0;h;h>>>=1)y++;return 1<<y+1+d},Q.prototype.conjugate=function(n,o,h){if(!(h<=1))for(var d=0;d<h/2;d++){var y=n[d];n[d]=n[h-d-1],n[h-d-1]=y,y=o[d],o[d]=-o[h-d-1],o[h-d-1]=-y}},Q.prototype.normalize13b=function(n,o){for(var h=0,d=0;d<o/2;d++){var y=8192*Math.round(n[2*d+1]/o)+Math.round(n[2*d]/o)+h;n[d]=67108863&y,h=y<67108864?0:y/67108864|0}return n},Q.prototype.convert13b=function(n,o,h,d){for(var y=0,L=0;L<o;L++)y+=0|n[L],h[2*L]=8191&y,y>>>=13,h[2*L+1]=8191&y,y>>>=13;for(L=2*o;L<d;++L)h[L]=0;_(0===y),_(0==(-8192&y))},Q.prototype.stub=function(n){for(var o=new Array(n),h=0;h<n;h++)o[h]=0;return o},Q.prototype.mulp=function(n,o,h){var d=2*this.guessLen13b(n.length,o.length),y=this.makeRBT(d),L=this.stub(d),B=new Array(d),v=new Array(d),a=new Array(d),C=new Array(d),N=new Array(d),F=new Array(d),X=h.words;X.length=d,this.convert13b(n.words,n.length,B,d),this.convert13b(o.words,o.length,C,d),this.transform(B,L,v,a,d,y),this.transform(C,L,N,F,d,y);for(var Fe=0;Fe<d;Fe++){var ke=v[Fe]*N[Fe]-a[Fe]*F[Fe];a[Fe]=v[Fe]*F[Fe]+a[Fe]*N[Fe],v[Fe]=ke}return this.conjugate(v,a,d),this.transform(v,a,X,L,d,y),this.conjugate(X,L,d),this.normalize13b(X,d),h.negative=n.negative^o.negative,h.length=n.length+o.length,h.strip()},s.prototype.mul=function(n){var o=new s(null);return o.words=new Array(this.length+n.length),this.mulTo(n,o)},s.prototype.mulf=function(n){var o=new s(null);return o.words=new Array(this.length+n.length),Z(this,n,o)},s.prototype.imul=function(n){return this.clone().mulTo(n,this)},s.prototype.imuln=function(n){_("number"==typeof n),_(n<67108864);for(var o=0,h=0;h<this.length;h++){var d=(0|this.words[h])*n,y=(67108863&d)+(67108863&o);o>>=26,o+=d/67108864|0,o+=y>>>26,this.words[h]=67108863&y}return 0!==o&&(this.words[h]=o,this.length++),this},s.prototype.muln=function(n){return this.clone().imuln(n)},s.prototype.sqr=function(){return this.mul(this)},s.prototype.isqr=function(){return this.imul(this.clone())},s.prototype.pow=function(n){var o=function M(w){for(var n=new Array(w.bitLength()),o=0;o<n.length;o++){var h=o/26|0,d=o%26;n[o]=(w.words[h]&1<<d)>>>d}return n}(n);if(0===o.length)return new s(1);for(var h=this,d=0;d<o.length&&0===o[d];d++,h=h.sqr());if(++d<o.length)for(var y=h.sqr();d<o.length;d++,y=y.sqr())0!==o[d]&&(h=h.mul(y));return h},s.prototype.iushln=function(n){_("number"==typeof n&&n>=0);var y,o=n%26,h=(n-o)/26,d=67108863>>>26-o<<26-o;if(0!==o){var L=0;for(y=0;y<this.length;y++){var B=this.words[y]&d,v=(0|this.words[y])-B<<o;this.words[y]=v|L,L=B>>>26-o}L&&(this.words[y]=L,this.length++)}if(0!==h){for(y=this.length-1;y>=0;y--)this.words[y+h]=this.words[y];for(y=0;y<h;y++)this.words[y]=0;this.length+=h}return this.strip()},s.prototype.ishln=function(n){return _(0===this.negative),this.iushln(n)},s.prototype.iushrn=function(n,o,h){var d;_("number"==typeof n&&n>=0),d=o?(o-o%26)/26:0;var y=n%26,L=Math.min((n-y)/26,this.length),B=67108863^67108863>>>y<<y,v=h;if(d-=L,d=Math.max(0,d),v){for(var a=0;a<L;a++)v.words[a]=this.words[a];v.length=L}if(0!==L)if(this.length>L)for(this.length-=L,a=0;a<this.length;a++)this.words[a]=this.words[a+L];else this.words[0]=0,this.length=1;var C=0;for(a=this.length-1;a>=0&&(0!==C||a>=d);a--){var N=0|this.words[a];this.words[a]=C<<26-y|N>>>y,C=N&B}return v&&0!==C&&(v.words[v.length++]=C),0===this.length&&(this.words[0]=0,this.length=1),this.strip()},s.prototype.ishrn=function(n,o,h){return _(0===this.negative),this.iushrn(n,o,h)},s.prototype.shln=function(n){return this.clone().ishln(n)},s.prototype.ushln=function(n){return this.clone().iushln(n)},s.prototype.shrn=function(n){return this.clone().ishrn(n)},s.prototype.ushrn=function(n){return this.clone().iushrn(n)},s.prototype.testn=function(n){_("number"==typeof n&&n>=0);var o=n%26,h=(n-o)/26,d=1<<o;return!(this.length<=h)&&!!(this.words[h]&d)},s.prototype.imaskn=function(n){_("number"==typeof n&&n>=0);var o=n%26,h=(n-o)/26;if(_(0===this.negative,"imaskn works only with positive numbers"),this.length<=h)return this;if(0!==o&&h++,this.length=Math.min(h,this.length),0!==o){var d=67108863^67108863>>>o<<o;this.words[this.length-1]&=d}return this.strip()},s.prototype.maskn=function(n){return this.clone().imaskn(n)},s.prototype.iaddn=function(n){return _("number"==typeof n),_(n<67108864),n<0?this.isubn(-n):0!==this.negative?1===this.length&&(0|this.words[0])<n?(this.words[0]=n-(0|this.words[0]),this.negative=0,this):(this.negative=0,this.isubn(n),this.negative=1,this):this._iaddn(n)},s.prototype._iaddn=function(n){this.words[0]+=n;for(var o=0;o<this.length&&this.words[o]>=67108864;o++)this.words[o]-=67108864,o===this.length-1?this.words[o+1]=1:this.words[o+1]++;return this.length=Math.max(this.length,o+1),this},s.prototype.isubn=function(n){if(_("number"==typeof n),_(n<67108864),n<0)return this.iaddn(-n);if(0!==this.negative)return this.negative=0,this.iaddn(n),this.negative=1,this;if(this.words[0]-=n,1===this.length&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var o=0;o<this.length&&this.words[o]<0;o++)this.words[o]+=67108864,this.words[o+1]-=1;return this.strip()},s.prototype.addn=function(n){return this.clone().iaddn(n)},s.prototype.subn=function(n){return this.clone().isubn(n)},s.prototype.iabs=function(){return this.negative=0,this},s.prototype.abs=function(){return this.clone().iabs()},s.prototype._ishlnsubmul=function(n,o,h){var y,d=n.length+h;this._expand(d);var L,B=0;for(y=0;y<n.length;y++){L=(0|this.words[y+h])+B;var v=(0|n.words[y])*o;B=((L-=67108863&v)>>26)-(v/67108864|0),this.words[y+h]=67108863&L}for(;y<this.length-h;y++)B=(L=(0|this.words[y+h])+B)>>26,this.words[y+h]=67108863&L;if(0===B)return this.strip();for(_(-1===B),B=0,y=0;y<this.length;y++)B=(L=-(0|this.words[y])+B)>>26,this.words[y]=67108863&L;return this.negative=1,this.strip()},s.prototype._wordDiv=function(n,o){var h=(this.length,n.length),d=this.clone(),y=n,L=0|y.words[y.length-1];0!==(h=26-this._countBits(L))&&(y=y.ushln(h),d.iushln(h),L=0|y.words[y.length-1]);var a,v=d.length-y.length;if("mod"!==o){(a=new s(null)).length=v+1,a.words=new Array(a.length);for(var C=0;C<a.length;C++)a.words[C]=0}var N=d.clone()._ishlnsubmul(y,1,v);0===N.negative&&(d=N,a&&(a.words[v]=1));for(var F=v-1;F>=0;F--){var X=67108864*(0|d.words[y.length+F])+(0|d.words[y.length+F-1]);for(X=Math.min(X/L|0,67108863),d._ishlnsubmul(y,X,F);0!==d.negative;)X--,d.negative=0,d._ishlnsubmul(y,1,F),d.isZero()||(d.negative^=1);a&&(a.words[F]=X)}return a&&a.strip(),d.strip(),"div"!==o&&0!==h&&d.iushrn(h),{div:a||null,mod:d}},s.prototype.divmod=function(n,o,h){return _(!n.isZero()),this.isZero()?{div:new s(0),mod:new s(0)}:0!==this.negative&&0===n.negative?(L=this.neg().divmod(n,o),"mod"!==o&&(d=L.div.neg()),"div"!==o&&(y=L.mod.neg(),h&&0!==y.negative&&y.iadd(n)),{div:d,mod:y}):0===this.negative&&0!==n.negative?(L=this.divmod(n.neg(),o),"mod"!==o&&(d=L.div.neg()),{div:d,mod:L.mod}):0!=(this.negative&n.negative)?(L=this.neg().divmod(n.neg(),o),"div"!==o&&(y=L.mod.neg(),h&&0!==y.negative&&y.isub(n)),{div:L.div,mod:y}):n.length>this.length||this.cmp(n)<0?{div:new s(0),mod:this}:1===n.length?"div"===o?{div:this.divn(n.words[0]),mod:null}:"mod"===o?{div:null,mod:new s(this.modn(n.words[0]))}:{div:this.divn(n.words[0]),mod:new s(this.modn(n.words[0]))}:this._wordDiv(n,o);var d,y,L},s.prototype.div=function(n){return this.divmod(n,"div",!1).div},s.prototype.mod=function(n){return this.divmod(n,"mod",!1).mod},s.prototype.umod=function(n){return this.divmod(n,"mod",!0).mod},s.prototype.divRound=function(n){var o=this.divmod(n);if(o.mod.isZero())return o.div;var h=0!==o.div.negative?o.mod.isub(n):o.mod,d=n.ushrn(1),y=n.andln(1),L=h.cmp(d);return L<0||1===y&&0===L?o.div:0!==o.div.negative?o.div.isubn(1):o.div.iaddn(1)},s.prototype.modn=function(n){_(n<=67108863);for(var o=(1<<26)%n,h=0,d=this.length-1;d>=0;d--)h=(o*h+(0|this.words[d]))%n;return h},s.prototype.idivn=function(n){_(n<=67108863);for(var o=0,h=this.length-1;h>=0;h--){var d=(0|this.words[h])+67108864*o;this.words[h]=d/n|0,o=d%n}return this.strip()},s.prototype.divn=function(n){return this.clone().idivn(n)},s.prototype.egcd=function(n){_(0===n.negative),_(!n.isZero());var o=this,h=n.clone();o=0!==o.negative?o.umod(n):o.clone();for(var d=new s(1),y=new s(0),L=new s(0),B=new s(1),v=0;o.isEven()&&h.isEven();)o.iushrn(1),h.iushrn(1),++v;for(var a=h.clone(),C=o.clone();!o.isZero();){for(var N=0,F=1;0==(o.words[0]&F)&&N<26;++N,F<<=1);if(N>0)for(o.iushrn(N);N-- >0;)(d.isOdd()||y.isOdd())&&(d.iadd(a),y.isub(C)),d.iushrn(1),y.iushrn(1);for(var X=0,Fe=1;0==(h.words[0]&Fe)&&X<26;++X,Fe<<=1);if(X>0)for(h.iushrn(X);X-- >0;)(L.isOdd()||B.isOdd())&&(L.iadd(a),B.isub(C)),L.iushrn(1),B.iushrn(1);o.cmp(h)>=0?(o.isub(h),d.isub(L),y.isub(B)):(h.isub(o),L.isub(d),B.isub(y))}return{a:L,b:B,gcd:h.iushln(v)}},s.prototype._invmp=function(n){_(0===n.negative),_(!n.isZero());var N,o=this,h=n.clone();o=0!==o.negative?o.umod(n):o.clone();for(var d=new s(1),y=new s(0),L=h.clone();o.cmpn(1)>0&&h.cmpn(1)>0;){for(var B=0,v=1;0==(o.words[0]&v)&&B<26;++B,v<<=1);if(B>0)for(o.iushrn(B);B-- >0;)d.isOdd()&&d.iadd(L),d.iushrn(1);for(var a=0,C=1;0==(h.words[0]&C)&&a<26;++a,C<<=1);if(a>0)for(h.iushrn(a);a-- >0;)y.isOdd()&&y.iadd(L),y.iushrn(1);o.cmp(h)>=0?(o.isub(h),d.isub(y)):(h.isub(o),y.isub(d))}return(N=0===o.cmpn(1)?d:y).cmpn(0)<0&&N.iadd(n),N},s.prototype.gcd=function(n){if(this.isZero())return n.abs();if(n.isZero())return this.abs();var o=this.clone(),h=n.clone();o.negative=0,h.negative=0;for(var d=0;o.isEven()&&h.isEven();d++)o.iushrn(1),h.iushrn(1);for(;;){for(;o.isEven();)o.iushrn(1);for(;h.isEven();)h.iushrn(1);var y=o.cmp(h);if(y<0){var L=o;o=h,h=L}else if(0===y||0===h.cmpn(1))break;o.isub(h)}return h.iushln(d)},s.prototype.invm=function(n){return this.egcd(n).a.umod(n)},s.prototype.isEven=function(){return 0==(1&this.words[0])},s.prototype.isOdd=function(){return 1==(1&this.words[0])},s.prototype.andln=function(n){return this.words[0]&n},s.prototype.bincn=function(n){_("number"==typeof n);var o=n%26,h=(n-o)/26,d=1<<o;if(this.length<=h)return this._expand(h+1),this.words[h]|=d,this;for(var y=d,L=h;0!==y&&L<this.length;L++){var B=0|this.words[L];y=(B+=y)>>>26,B&=67108863,this.words[L]=B}return 0!==y&&(this.words[L]=y,this.length++),this},s.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},s.prototype.cmpn=function(n){var h,o=n<0;if(0!==this.negative&&!o)return-1;if(0===this.negative&&o)return 1;if(this.strip(),this.length>1)h=1;else{o&&(n=-n),_(n<=67108863,"Number is too big");var d=0|this.words[0];h=d===n?0:d<n?-1:1}return 0!==this.negative?0|-h:h},s.prototype.cmp=function(n){if(0!==this.negative&&0===n.negative)return-1;if(0===this.negative&&0!==n.negative)return 1;var o=this.ucmp(n);return 0!==this.negative?0|-o:o},s.prototype.ucmp=function(n){if(this.length>n.length)return 1;if(this.length<n.length)return-1;for(var o=0,h=this.length-1;h>=0;h--){var d=0|this.words[h],y=0|n.words[h];if(d!==y){d<y?o=-1:d>y&&(o=1);break}}return o},s.prototype.gtn=function(n){return 1===this.cmpn(n)},s.prototype.gt=function(n){return 1===this.cmp(n)},s.prototype.gten=function(n){return this.cmpn(n)>=0},s.prototype.gte=function(n){return this.cmp(n)>=0},s.prototype.ltn=function(n){return-1===this.cmpn(n)},s.prototype.lt=function(n){return-1===this.cmp(n)},s.prototype.lten=function(n){return this.cmpn(n)<=0},s.prototype.lte=function(n){return this.cmp(n)<=0},s.prototype.eqn=function(n){return 0===this.cmpn(n)},s.prototype.eq=function(n){return 0===this.cmp(n)},s.red=function(n){return new $(n)},s.prototype.toRed=function(n){return _(!this.red,"Already a number in reduction context"),_(0===this.negative,"red works only with positives"),n.convertTo(this)._forceRed(n)},s.prototype.fromRed=function(){return _(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},s.prototype._forceRed=function(n){return this.red=n,this},s.prototype.forceRed=function(n){return _(!this.red,"Already a number in reduction context"),this._forceRed(n)},s.prototype.redAdd=function(n){return _(this.red,"redAdd works only with red numbers"),this.red.add(this,n)},s.prototype.redIAdd=function(n){return _(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,n)},s.prototype.redSub=function(n){return _(this.red,"redSub works only with red numbers"),this.red.sub(this,n)},s.prototype.redISub=function(n){return _(this.red,"redISub works only with red numbers"),this.red.isub(this,n)},s.prototype.redShl=function(n){return _(this.red,"redShl works only with red numbers"),this.red.shl(this,n)},s.prototype.redMul=function(n){return _(this.red,"redMul works only with red numbers"),this.red._verify2(this,n),this.red.mul(this,n)},s.prototype.redIMul=function(n){return _(this.red,"redMul works only with red numbers"),this.red._verify2(this,n),this.red.imul(this,n)},s.prototype.redSqr=function(){return _(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},s.prototype.redISqr=function(){return _(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},s.prototype.redSqrt=function(){return _(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},s.prototype.redInvm=function(){return _(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},s.prototype.redNeg=function(){return _(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},s.prototype.redPow=function(n){return _(this.red&&!n.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,n)};var ie={k256:null,p224:null,p192:null,p25519:null};function ae(w,n){this.name=w,this.p=new s(n,16),this.n=this.p.bitLength(),this.k=new s(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function _e(){ae.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function ce(){ae.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function ye(){ae.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function ue(){ae.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function $(w){if("string"==typeof w){var n=s._prime(w);this.m=n.p,this.prime=n}else _(w.gtn(1),"modulus must be greater than 1"),this.m=w,this.prime=null}function he(w){$.call(this,w),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)}ae.prototype._tmp=function(){var n=new s(null);return n.words=new Array(Math.ceil(this.n/13)),n},ae.prototype.ireduce=function(n){var h,o=n;do{this.split(o,this.tmp),h=(o=(o=this.imulK(o)).iadd(this.tmp)).bitLength()}while(h>this.n);var d=h<this.n?-1:o.ucmp(this.p);return 0===d?(o.words[0]=0,o.length=1):d>0?o.isub(this.p):void 0!==o.strip?o.strip():o._strip(),o},ae.prototype.split=function(n,o){n.iushrn(this.n,0,o)},ae.prototype.imulK=function(n){return n.imul(this.k)},E(_e,ae),_e.prototype.split=function(n,o){for(var h=4194303,d=Math.min(n.length,9),y=0;y<d;y++)o.words[y]=n.words[y];if(o.length=d,n.length<=9)return n.words[0]=0,void(n.length=1);var L=n.words[9];for(o.words[o.length++]=L&h,y=10;y<n.length;y++){var B=0|n.words[y];n.words[y-10]=(B&h)<<4|L>>>22,L=B}L>>>=22,n.words[y-10]=L,0===L&&n.length>10?n.length-=10:n.length-=9},_e.prototype.imulK=function(n){n.words[n.length]=0,n.words[n.length+1]=0,n.length+=2;for(var o=0,h=0;h<n.length;h++){var d=0|n.words[h];o+=977*d,n.words[h]=67108863&o,o=64*d+(o/67108864|0)}return 0===n.words[n.length-1]&&(n.length--,0===n.words[n.length-1]&&n.length--),n},E(ce,ae),E(ye,ae),E(ue,ae),ue.prototype.imulK=function(n){for(var o=0,h=0;h<n.length;h++){var d=19*(0|n.words[h])+o,y=67108863&d;d>>>=26,n.words[h]=y,o=d}return 0!==o&&(n.words[n.length++]=o),n},s._prime=function(n){if(ie[n])return ie[n];var o;if("k256"===n)o=new _e;else if("p224"===n)o=new ce;else if("p192"===n)o=new ye;else{if("p25519"!==n)throw new Error("Unknown prime "+n);o=new ue}return ie[n]=o,o},$.prototype._verify1=function(n){_(0===n.negative,"red works only with positives"),_(n.red,"red works only with red numbers")},$.prototype._verify2=function(n,o){_(0==(n.negative|o.negative),"red works only with positives"),_(n.red&&n.red===o.red,"red works only with red numbers")},$.prototype.imod=function(n){return this.prime?this.prime.ireduce(n)._forceRed(this):n.umod(this.m)._forceRed(this)},$.prototype.neg=function(n){return n.isZero()?n.clone():this.m.sub(n)._forceRed(this)},$.prototype.add=function(n,o){this._verify2(n,o);var h=n.add(o);return h.cmp(this.m)>=0&&h.isub(this.m),h._forceRed(this)},$.prototype.iadd=function(n,o){this._verify2(n,o);var h=n.iadd(o);return h.cmp(this.m)>=0&&h.isub(this.m),h},$.prototype.sub=function(n,o){this._verify2(n,o);var h=n.sub(o);return h.cmpn(0)<0&&h.iadd(this.m),h._forceRed(this)},$.prototype.isub=function(n,o){this._verify2(n,o);var h=n.isub(o);return h.cmpn(0)<0&&h.iadd(this.m),h},$.prototype.shl=function(n,o){return this._verify1(n),this.imod(n.ushln(o))},$.prototype.imul=function(n,o){return this._verify2(n,o),this.imod(n.imul(o))},$.prototype.mul=function(n,o){return this._verify2(n,o),this.imod(n.mul(o))},$.prototype.isqr=function(n){return this.imul(n,n.clone())},$.prototype.sqr=function(n){return this.mul(n,n)},$.prototype.sqrt=function(n){if(n.isZero())return n.clone();var o=this.m.andln(3);if(_(o%2==1),3===o){var h=this.m.add(new s(1)).iushrn(2);return this.pow(n,h)}for(var d=this.m.subn(1),y=0;!d.isZero()&&0===d.andln(1);)y++,d.iushrn(1);_(!d.isZero());var L=new s(1).toRed(this),B=L.redNeg(),v=this.m.subn(1).iushrn(1),a=this.m.bitLength();for(a=new s(2*a*a).toRed(this);0!==this.pow(a,v).cmp(B);)a.redIAdd(B);for(var C=this.pow(a,d),N=this.pow(n,d.addn(1).iushrn(1)),F=this.pow(n,d),X=y;0!==F.cmp(L);){for(var Fe=F,ke=0;0!==Fe.cmp(L);ke++)Fe=Fe.redSqr();_(ke<X);var Ke=this.pow(C,new s(1).iushln(X-ke-1));N=N.redMul(Ke),C=Ke.redSqr(),F=F.redMul(C),X=ke}return N},$.prototype.invm=function(n){var o=n._invmp(this.m);return 0!==o.negative?(o.negative=0,this.imod(o).redNeg()):this.imod(o)},$.prototype.pow=function(n,o){if(o.isZero())return new s(1).toRed(this);if(0===o.cmpn(1))return n.clone();var d=new Array(16);d[0]=new s(1).toRed(this),d[1]=n;for(var y=2;y<d.length;y++)d[y]=this.mul(d[y-1],n);var L=d[0],B=0,v=0,a=o.bitLength()%26;for(0===a&&(a=26),y=o.length-1;y>=0;y--){for(var C=o.words[y],N=a-1;N>=0;N--){var F=C>>N&1;(L!==d[0]&&(L=this.sqr(L)),0!==F||0!==B)?(B<<=1,B|=F,(4===++v||0===y&&0===N)&&(L=this.mul(L,d[B]),v=0,B=0)):v=0}a=26}return L},$.prototype.convertTo=function(n){var o=n.umod(this.m);return o===n?o.clone():o},$.prototype.convertFrom=function(n){var o=n.clone();return o.red=null,o},s.mont=function(n){return new he(n)},E(he,$),he.prototype.convertTo=function(n){return this.imod(n.ushln(this.shift))},he.prototype.convertFrom=function(n){var o=this.imod(n.mul(this.rinv));return o.red=null,o},he.prototype.imul=function(n,o){if(n.isZero()||o.isZero())return n.words[0]=0,n.length=1,n;var h=n.imul(o),d=h.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),y=h.isub(d).iushrn(this.shift),L=y;return y.cmp(this.m)>=0?L=y.isub(this.m):y.cmpn(0)<0&&(L=y.iadd(this.m)),L._forceRed(this)},he.prototype.mul=function(n,o){if(n.isZero()||o.isZero())return new s(0)._forceRed(this);var h=n.mul(o),d=h.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),y=h.isub(d).iushrn(this.shift),L=y;return y.cmp(this.m)>=0?L=y.isub(this.m):y.cmpn(0)<0&&(L=y.iadd(this.m)),L._forceRed(this)},he.prototype.invm=function(n){return this.imod(n._invmp(this.m).mul(this.r2))._forceRed(this)}})(Ue=m.nmd(Ue),this)},6236:Ue=>{"use strict";Ue.exports=function(m){for(var e=[],t=m.length,_=0;_<t;_++){var E=m.charCodeAt(_);if(E>=55296&&E<=56319&&t>_+1){var s=m.charCodeAt(_+1);s>=56320&&s<=57343&&(E=1024*(E-55296)+s-56320+65536,_+=1)}E<128?e.push(E):E<2048?(e.push(E>>6|192),e.push(63&E|128)):E<55296||E>=57344&&E<65536?(e.push(E>>12|224),e.push(E>>6&63|128),e.push(63&E|128)):E>=65536&&E<=1114111?(e.push(E>>18|240),e.push(E>>12&63|128),e.push(E>>6&63|128),e.push(63&E|128)):e.push(239,191,189)}return new Uint8Array(e).buffer}},3358:Ue=>{"use strict";var e,q="object"==typeof Reflect?Reflect:null,m=q&&"function"==typeof q.apply?q.apply:function(ae,_e,ce){return Function.prototype.apply.call(ae,_e,ce)};e=q&&"function"==typeof q.ownKeys?q.ownKeys:Object.getOwnPropertySymbols?function(ae){return Object.getOwnPropertyNames(ae).concat(Object.getOwnPropertySymbols(ae))}:function(ae){return Object.getOwnPropertyNames(ae)};var _=Number.isNaN||function(ae){return ae!=ae};function E(){E.init.call(this)}Ue.exports=E,Ue.exports.once=function W(ie,ae){return new Promise(function(_e,ce){function ye($){ie.removeListener(ae,ue),ce($)}function ue(){"function"==typeof ie.removeListener&&ie.removeListener("error",ye),_e([].slice.call(arguments))}Q(ie,ae,ue,{once:!0}),"error"!==ae&&function Z(ie,ae,_e){"function"==typeof ie.on&&Q(ie,"error",ae,_e)}(ie,ye,{once:!0})})},E.EventEmitter=E,E.prototype._events=void 0,E.prototype._eventsCount=0,E.prototype._maxListeners=void 0;var s=10;function D(ie){if("function"!=typeof ie)throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof ie)}function u(ie){return void 0===ie._maxListeners?E.defaultMaxListeners:ie._maxListeners}function k(ie,ae,_e,ce){var ye,ue,$;if(D(_e),void 0===(ue=ie._events)?(ue=ie._events=Object.create(null),ie._eventsCount=0):(void 0!==ue.newListener&&(ie.emit("newListener",ae,_e.listener?_e.listener:_e),ue=ie._events),$=ue[ae]),void 0===$)$=ue[ae]=_e,++ie._eventsCount;else if("function"==typeof $?$=ue[ae]=ce?[_e,$]:[$,_e]:ce?$.unshift(_e):$.push(_e),(ye=u(ie))>0&&$.length>ye&&!$.warned){$.warned=!0;var he=new Error("Possible EventEmitter memory leak detected. "+$.length+" "+String(ae)+" listeners added. Use emitter.setMaxListeners() to increase limit");he.name="MaxListenersExceededWarning",he.emitter=ie,he.type=ae,he.count=$.length,function t(ie){console&&console.warn&&console.warn(ie)}(he)}return ie}function p(){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(ie,ae,_e){var ce={fired:!1,wrapFn:void 0,target:ie,type:ae,listener:_e},ye=p.bind(ce);return ye.listener=_e,ce.wrapFn=ye,ye}function A(ie,ae,_e){var ce=ie._events;if(void 0===ce)return[];var ye=ce[ae];return void 0===ye?[]:"function"==typeof ye?_e?[ye.listener||ye]:[ye]:_e?function I(ie){for(var ae=new Array(ie.length),_e=0;_e<ae.length;++_e)ae[_e]=ie[_e].listener||ie[_e];return ae}(ye):M(ye,ye.length)}function P(ie){var ae=this._events;if(void 0!==ae){var _e=ae[ie];if("function"==typeof _e)return 1;if(void 0!==_e)return _e.length}return 0}function M(ie,ae){for(var _e=new Array(ae),ce=0;ce<ae;++ce)_e[ce]=ie[ce];return _e}function Q(ie,ae,_e,ce){if("function"==typeof ie.on)ce.once?ie.once(ae,_e):ie.on(ae,_e);else{if("function"!=typeof ie.addEventListener)throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type '+typeof ie);ie.addEventListener(ae,function ye(ue){ce.once&&ie.removeEventListener(ae,ye),_e(ue)})}}Object.defineProperty(E,"defaultMaxListeners",{enumerable:!0,get:function(){return s},set:function(ie){if("number"!=typeof ie||ie<0||_(ie))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+ie+".");s=ie}}),E.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},E.prototype.setMaxListeners=function(ae){if("number"!=typeof ae||ae<0||_(ae))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+ae+".");return this._maxListeners=ae,this},E.prototype.getMaxListeners=function(){return u(this)},E.prototype.emit=function(ae){for(var _e=[],ce=1;ce<arguments.length;ce++)_e.push(arguments[ce]);var ye="error"===ae,ue=this._events;if(void 0!==ue)ye=ye&&void 0===ue.error;else if(!ye)return!1;if(ye){var $;if(_e.length>0&&($=_e[0]),$ instanceof Error)throw $;var he=new Error("Unhandled error."+($?" ("+$.message+")":""));throw he.context=$,he}var w=ue[ae];if(void 0===w)return!1;if("function"==typeof w)m(w,this,_e);else{var n=w.length,o=M(w,n);for(ce=0;ce<n;++ce)m(o[ce],this,_e)}return!0},E.prototype.addListener=function(ae,_e){return k(this,ae,_e,!1)},E.prototype.on=E.prototype.addListener,E.prototype.prependListener=function(ae,_e){return k(this,ae,_e,!0)},E.prototype.once=function(ae,_e){return D(_e),this.on(ae,S(this,ae,_e)),this},E.prototype.prependOnceListener=function(ae,_e){return D(_e),this.prependListener(ae,S(this,ae,_e)),this},E.prototype.removeListener=function(ae,_e){var ce,ye,ue,$,he;if(D(_e),void 0===(ye=this._events))return this;if(void 0===(ce=ye[ae]))return this;if(ce===_e||ce.listener===_e)0==--this._eventsCount?this._events=Object.create(null):(delete ye[ae],ye.removeListener&&this.emit("removeListener",ae,ce.listener||_e));else if("function"!=typeof ce){for(ue=-1,$=ce.length-1;$>=0;$--)if(ce[$]===_e||ce[$].listener===_e){he=ce[$].listener,ue=$;break}if(ue<0)return this;0===ue?ce.shift():function z(ie,ae){for(;ae+1<ie.length;ae++)ie[ae]=ie[ae+1];ie.pop()}(ce,ue),1===ce.length&&(ye[ae]=ce[0]),void 0!==ye.removeListener&&this.emit("removeListener",ae,he||_e)}return this},E.prototype.off=E.prototype.removeListener,E.prototype.removeAllListeners=function(ae){var _e,ce,ye;if(void 0===(ce=this._events))return this;if(void 0===ce.removeListener)return 0===arguments.length?(this._events=Object.create(null),this._eventsCount=0):void 0!==ce[ae]&&(0==--this._eventsCount?this._events=Object.create(null):delete ce[ae]),this;if(0===arguments.length){var $,ue=Object.keys(ce);for(ye=0;ye<ue.length;++ye)"removeListener"!==($=ue[ye])&&this.removeAllListeners($);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if("function"==typeof(_e=ce[ae]))this.removeListener(ae,_e);else if(void 0!==_e)for(ye=_e.length-1;ye>=0;ye--)this.removeListener(ae,_e[ye]);return this},E.prototype.listeners=function(ae){return A(this,ae,!0)},E.prototype.rawListeners=function(ae){return A(this,ae,!1)},E.listenerCount=function(ie,ae){return"function"==typeof ie.listenerCount?ie.listenerCount(ae):P.call(ie,ae)},E.prototype.listenerCount=P,E.prototype.eventNames=function(){return this._eventsCount>0?e(this._events):[]}},153:(Ue,q,m)=>{var e=m(9708).Buffer,t=m(2617);Ue.exports=function _(E,s,D,u){if(e.isBuffer(E)||(E=e.from(E,"binary")),s&&(e.isBuffer(s)||(s=e.from(s,"binary")),8!==s.length))throw new RangeError("salt should be Buffer with 8 byte length");for(var k=D/8,p=e.alloc(k),S=e.alloc(u||0),A=e.alloc(0);k>0||u>0;){var P=new t;P.update(A),P.update(E),s&&P.update(s),A=P.digest();var M=0;if(k>0){var z=p.length-k;M=Math.min(k,A.length),A.copy(p,z,0,M),k-=M}if(M<A.length&&u>0){var I=S.length-u,W=Math.min(u,A.length-M);A.copy(S,I,M,M+W),u-=W}}return A.fill(0),{key:p,iv:S}}},3817:(Ue,q,m)=>{"use strict";var e=m(9708).Buffer,t=m(9697).Transform;function s(D){t.call(this),this._block=e.allocUnsafe(D),this._blockSize=D,this._blockOffset=0,this._length=[0,0,0,0],this._finalized=!1}m(5035)(s,t),s.prototype._transform=function(D,u,k){var p=null;try{this.update(D,u)}catch(S){p=S}k(p)},s.prototype._flush=function(D){var u=null;try{this.push(this.digest())}catch(k){u=k}D(u)},s.prototype.update=function(D,u){if(function E(D,u){if(!e.isBuffer(D)&&"string"!=typeof D)throw new TypeError(u+" must be a string or a buffer")}(D,"Data"),this._finalized)throw new Error("Digest already called");e.isBuffer(D)||(D=e.from(D,u));for(var k=this._block,p=0;this._blockOffset+D.length-p>=this._blockSize;){for(var S=this._blockOffset;S<this._blockSize;)k[S++]=D[p++];this._update(),this._blockOffset=0}for(;p<D.length;)k[this._blockOffset++]=D[p++];for(var A=0,P=8*D.length;P>0;++A)this._length[A]+=P,(P=this._length[A]/4294967296|0)>0&&(this._length[A]-=4294967296*P);return this},s.prototype._update=function(){throw new Error("_update is not implemented")},s.prototype.digest=function(D){if(this._finalized)throw new Error("Digest already called");this._finalized=!0;var u=this._digest();void 0!==D&&(u=u.toString(D)),this._block.fill(0),this._blockOffset=0;for(var k=0;k<4;++k)this._length[k]=0;return u},s.prototype._digest=function(){throw new Error("_digest is not implemented")},Ue.exports=s},9281:(Ue,q,m)=>{var e=q;e.utils=m(2764),e.common=m(622),e.sha=m(4131),e.ripemd=m(7968),e.hmac=m(7063),e.sha1=e.sha.sha1,e.sha256=e.sha.sha256,e.sha224=e.sha.sha224,e.sha384=e.sha.sha384,e.sha512=e.sha.sha512,e.ripemd160=e.ripemd.ripemd160},622:(Ue,q,m)=>{"use strict";var e=m(2764),t=m(3999);function _(){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=_,_.prototype.update=function(s,D){if(s=e.toArray(s,D),this.pending?this.pending=this.pending.concat(s):this.pending=s,this.pendingTotal+=s.length,this.pending.length>=this._delta8){var u=(s=this.pending).length%this._delta8;this.pending=s.slice(s.length-u,s.length),0===this.pending.length&&(this.pending=null),s=e.join32(s,0,s.length-u,this.endian);for(var k=0;k<s.length;k+=this._delta32)this._update(s,k,k+this._delta32)}return this},_.prototype.digest=function(s){return this.update(this._pad()),t(null===this.pending),this._digest(s)},_.prototype._pad=function(){var s=this.pendingTotal,D=this._delta8,u=D-(s+this.padLength)%D,k=new Array(u+this.padLength);k[0]=128;for(var p=1;p<u;p++)k[p]=0;if(s<<=3,"big"===this.endian){for(var S=8;S<this.padLength;S++)k[p++]=0;k[p++]=0,k[p++]=0,k[p++]=0,k[p++]=0,k[p++]=s>>>24&255,k[p++]=s>>>16&255,k[p++]=s>>>8&255,k[p++]=255&s}else for(k[p++]=255&s,k[p++]=s>>>8&255,k[p++]=s>>>16&255,k[p++]=s>>>24&255,k[p++]=0,k[p++]=0,k[p++]=0,k[p++]=0,S=8;S<this.padLength;S++)k[p++]=0;return k}},7063:(Ue,q,m)=>{"use strict";var e=m(2764),t=m(3999);function _(E,s,D){if(!(this instanceof _))return new _(E,s,D);this.Hash=E,this.blockSize=E.blockSize/8,this.outSize=E.outSize/8,this.inner=null,this.outer=null,this._init(e.toArray(s,D))}Ue.exports=_,_.prototype._init=function(s){s.length>this.blockSize&&(s=(new this.Hash).update(s).digest()),t(s.length<=this.blockSize);for(var D=s.length;D<this.blockSize;D++)s.push(0);for(D=0;D<s.length;D++)s[D]^=54;for(this.inner=(new this.Hash).update(s),D=0;D<s.length;D++)s[D]^=106;this.outer=(new this.Hash).update(s)},_.prototype.update=function(s,D){return this.inner.update(s,D),this},_.prototype.digest=function(s){return this.outer.update(this.inner.digest()),this.outer.digest(s)}},7968:(Ue,q,m)=>{"use strict";var e=m(2764),t=m(622),_=e.rotl32,E=e.sum32,s=e.sum32_3,D=e.sum32_4,u=t.BlockHash;function k(){if(!(this instanceof k))return new k;u.call(this),this.h=[1732584193,4023233417,2562383102,271733878,3285377520],this.endian="little"}function p(W,Z,Q,ie){return W<=15?Z^Q^ie:W<=31?Z&Q|~Z&ie:W<=47?(Z|~Q)^ie:W<=63?Z&ie|Q&~ie:Z^(Q|~ie)}function A(W){return W<=15?1352829926:W<=31?1548603684:W<=47?1836072691:W<=63?2053994217:0}e.inherits(k,u),q.ripemd160=k,k.blockSize=512,k.outSize=160,k.hmacStrength=192,k.padLength=64,k.prototype._update=function(Z,Q){for(var ie=this.h[0],ae=this.h[1],_e=this.h[2],ce=this.h[3],ye=this.h[4],ue=ie,$=ae,he=_e,w=ce,n=ye,o=0;o<80;o++){var h=E(_(D(ie,p(o,ae,_e,ce),Z[P[o]+Q],(W=o)<=15?0:W<=31?1518500249:W<=47?1859775393:W<=63?2400959708:2840853838),z[o]),ye);ie=ye,ye=ce,ce=_(_e,10),_e=ae,ae=h,h=E(_(D(ue,p(79-o,$,he,w),Z[M[o]+Q],A(o)),I[o]),n),ue=n,n=w,w=_(he,10),he=$,$=h}var W;h=s(this.h[1],_e,w),this.h[1]=s(this.h[2],ce,n),this.h[2]=s(this.h[3],ye,ue),this.h[3]=s(this.h[4],ie,$),this.h[4]=s(this.h[0],ae,he),this.h[0]=h},k.prototype._digest=function(Z){return"hex"===Z?e.toHex32(this.h,"little"):e.split32(this.h,"little")};var P=[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13],M=[5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11],z=[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],I=[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]},4131:(Ue,q,m)=>{"use strict";q.sha1=m(4655),q.sha224=m(9912),q.sha256=m(8769),q.sha384=m(5215),q.sha512=m(4664)},4655:(Ue,q,m)=>{"use strict";var e=m(2764),t=m(622),_=m(5590),E=e.rotl32,s=e.sum32,D=e.sum32_5,u=_.ft_1,k=t.BlockHash,p=[1518500249,1859775393,2400959708,3395469782];function S(){if(!(this instanceof S))return new S;k.call(this),this.h=[1732584193,4023233417,2562383102,271733878,3285377520],this.W=new Array(80)}e.inherits(S,k),Ue.exports=S,S.blockSize=512,S.outSize=160,S.hmacStrength=80,S.padLength=64,S.prototype._update=function(P,M){for(var z=this.W,I=0;I<16;I++)z[I]=P[M+I];for(;I<z.length;I++)z[I]=E(z[I-3]^z[I-8]^z[I-14]^z[I-16],1);var W=this.h[0],Z=this.h[1],Q=this.h[2],ie=this.h[3],ae=this.h[4];for(I=0;I<z.length;I++){var _e=~~(I/20),ce=D(E(W,5),u(_e,Z,Q,ie),ae,z[I],p[_e]);ae=ie,ie=Q,Q=E(Z,30),Z=W,W=ce}this.h[0]=s(this.h[0],W),this.h[1]=s(this.h[1],Z),this.h[2]=s(this.h[2],Q),this.h[3]=s(this.h[3],ie),this.h[4]=s(this.h[4],ae)},S.prototype._digest=function(P){return"hex"===P?e.toHex32(this.h,"big"):e.split32(this.h,"big")}},9912:(Ue,q,m)=>{"use strict";var e=m(2764),t=m(8769);function _(){if(!(this instanceof _))return new _;t.call(this),this.h=[3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428]}e.inherits(_,t),Ue.exports=_,_.blockSize=512,_.outSize=224,_.hmacStrength=192,_.padLength=64,_.prototype._digest=function(s){return"hex"===s?e.toHex32(this.h.slice(0,7),"big"):e.split32(this.h.slice(0,7),"big")}},8769:(Ue,q,m)=>{"use strict";var e=m(2764),t=m(622),_=m(5590),E=m(3999),s=e.sum32,D=e.sum32_4,u=e.sum32_5,k=_.ch32,p=_.maj32,S=_.s0_256,A=_.s1_256,P=_.g0_256,M=_.g1_256,z=t.BlockHash,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];function W(){if(!(this instanceof W))return new W;z.call(this),this.h=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225],this.k=I,this.W=new Array(64)}e.inherits(W,z),Ue.exports=W,W.blockSize=512,W.outSize=256,W.hmacStrength=192,W.padLength=64,W.prototype._update=function(Q,ie){for(var ae=this.W,_e=0;_e<16;_e++)ae[_e]=Q[ie+_e];for(;_e<ae.length;_e++)ae[_e]=D(M(ae[_e-2]),ae[_e-7],P(ae[_e-15]),ae[_e-16]);var ce=this.h[0],ye=this.h[1],ue=this.h[2],$=this.h[3],he=this.h[4],w=this.h[5],n=this.h[6],o=this.h[7];for(E(this.k.length===ae.length),_e=0;_e<ae.length;_e++){var h=u(o,A(he),k(he,w,n),this.k[_e],ae[_e]),d=s(S(ce),p(ce,ye,ue));o=n,n=w,w=he,he=s($,h),$=ue,ue=ye,ye=ce,ce=s(h,d)}this.h[0]=s(this.h[0],ce),this.h[1]=s(this.h[1],ye),this.h[2]=s(this.h[2],ue),this.h[3]=s(this.h[3],$),this.h[4]=s(this.h[4],he),this.h[5]=s(this.h[5],w),this.h[6]=s(this.h[6],n),this.h[7]=s(this.h[7],o)},W.prototype._digest=function(Q){return"hex"===Q?e.toHex32(this.h,"big"):e.split32(this.h,"big")}},5215:(Ue,q,m)=>{"use strict";var e=m(2764),t=m(4664);function _(){if(!(this instanceof _))return new _;t.call(this),this.h=[3418070365,3238371032,1654270250,914150663,2438529370,812702999,355462360,4144912697,1731405415,4290775857,2394180231,1750603025,3675008525,1694076839,1203062813,3204075428]}e.inherits(_,t),Ue.exports=_,_.blockSize=1024,_.outSize=384,_.hmacStrength=192,_.padLength=128,_.prototype._digest=function(s){return"hex"===s?e.toHex32(this.h.slice(0,12),"big"):e.split32(this.h.slice(0,12),"big")}},4664:(Ue,q,m)=>{"use strict";var e=m(2764),t=m(622),_=m(3999),E=e.rotr64_hi,s=e.rotr64_lo,D=e.shr64_hi,u=e.shr64_lo,k=e.sum64,p=e.sum64_hi,S=e.sum64_lo,A=e.sum64_4_hi,P=e.sum64_4_lo,M=e.sum64_5_hi,z=e.sum64_5_lo,I=t.BlockHash,W=[1116352408,3609767458,1899447441,602891725,3049323471,3964484399,3921009573,2173295548,961987163,4081628472,1508970993,3053834265,2453635748,2937671579,2870763221,3664609560,3624381080,2734883394,310598401,1164996542,607225278,1323610764,1426881987,3590304994,1925078388,4068182383,2162078206,991336113,2614888103,633803317,3248222580,3479774868,3835390401,2666613458,4022224774,944711139,264347078,2341262773,604807628,2007800933,770255983,1495990901,1249150122,1856431235,1555081692,3175218132,1996064986,2198950837,2554220882,3999719339,2821834349,766784016,2952996808,2566594879,3210313671,3203337956,3336571891,1034457026,3584528711,2466948901,113926993,3758326383,338241895,168717936,666307205,1188179964,773529912,1546045734,1294757372,1522805485,1396182291,2643833823,1695183700,2343527390,1986661051,1014477480,2177026350,1206759142,2456956037,344077627,2730485921,1290863460,2820302411,3158454273,3259730800,3505952657,3345764771,106217008,3516065817,3606008344,3600352804,1432725776,4094571909,1467031594,275423344,851169720,430227734,3100823752,506948616,1363258195,659060556,3750685593,883997877,3785050280,958139571,3318307427,1322822218,3812723403,1537002063,2003034995,1747873779,3602036899,1955562222,1575990012,2024104815,1125592928,2227730452,2716904306,2361852424,442776044,2428436474,593698344,2756734187,3733110249,3204031479,2999351573,3329325298,3815920427,3391569614,3928383900,3515267271,566280711,3940187606,3454069534,4118630271,4000239992,116418474,1914138554,174292421,2731055270,289380356,3203993006,460393269,320620315,685471733,587496836,852142971,1086792851,1017036298,365543100,1126000580,2618297676,1288033470,3409855158,1501505948,4234509866,1607167915,987167468,1816402316,1246189591];function Z(){if(!(this instanceof Z))return new Z;I.call(this),this.h=[1779033703,4089235720,3144134277,2227873595,1013904242,4271175723,2773480762,1595750129,1359893119,2917565137,2600822924,725511199,528734635,4215389547,1541459225,327033209],this.k=W,this.W=new Array(160)}function Q(h,d,y,L,B){var v=h&y^~h&B;return v<0&&(v+=4294967296),v}function ie(h,d,y,L,B,v){var a=d&L^~d&v;return a<0&&(a+=4294967296),a}function ae(h,d,y,L,B){var v=h&y^h&B^y&B;return v<0&&(v+=4294967296),v}function _e(h,d,y,L,B,v){var a=d&L^d&v^L&v;return a<0&&(a+=4294967296),a}function ce(h,d){var v=E(h,d,28)^E(d,h,2)^E(d,h,7);return v<0&&(v+=4294967296),v}function ye(h,d){var v=s(h,d,28)^s(d,h,2)^s(d,h,7);return v<0&&(v+=4294967296),v}function ue(h,d){var v=E(h,d,14)^E(h,d,18)^E(d,h,9);return v<0&&(v+=4294967296),v}function $(h,d){var v=s(h,d,14)^s(h,d,18)^s(d,h,9);return v<0&&(v+=4294967296),v}function he(h,d){var v=E(h,d,1)^E(h,d,8)^D(h,d,7);return v<0&&(v+=4294967296),v}function w(h,d){var v=s(h,d,1)^s(h,d,8)^u(h,d,7);return v<0&&(v+=4294967296),v}function n(h,d){var v=E(h,d,19)^E(d,h,29)^D(h,d,6);return v<0&&(v+=4294967296),v}function o(h,d){var v=s(h,d,19)^s(d,h,29)^u(h,d,6);return v<0&&(v+=4294967296),v}e.inherits(Z,I),Ue.exports=Z,Z.blockSize=1024,Z.outSize=512,Z.hmacStrength=192,Z.padLength=128,Z.prototype._prepareBlock=function(d,y){for(var L=this.W,B=0;B<32;B++)L[B]=d[y+B];for(;B<L.length;B+=2){var v=n(L[B-4],L[B-3]),a=o(L[B-4],L[B-3]),C=L[B-14],N=L[B-13],F=he(L[B-30],L[B-29]),X=w(L[B-30],L[B-29]),Fe=L[B-32],ke=L[B-31];L[B]=A(v,a,C,N,F,X,Fe,ke),L[B+1]=P(v,a,C,N,F,X,Fe,ke)}},Z.prototype._update=function(d,y){this._prepareBlock(d,y);var L=this.W,B=this.h[0],v=this.h[1],a=this.h[2],C=this.h[3],N=this.h[4],F=this.h[5],X=this.h[6],Fe=this.h[7],ke=this.h[8],Ke=this.h[9],je=this.h[10],Ve=this.h[11],xe=this.h[12],Ze=this.h[13],Ie=this.h[14],ve=this.h[15];_(this.k.length===L.length);for(var et=0;et<L.length;et+=2){var ht=Ie,Le=ve,Ae=ue(ke,Ke),te=$(ke,Ke),pe=Q(ke,Ke,je,Ve,xe),ee=ie(ke,Ke,je,Ve,xe,Ze),H=this.k[et],j=this.k[et+1],Oe=L[et],Re=L[et+1],le=M(ht,Le,Ae,te,pe,ee,H,j,Oe,Re),_t=z(ht,Le,Ae,te,pe,ee,H,j,Oe,Re);ht=ce(B,v),Le=ye(B,v),Ae=ae(B,v,a,C,N),te=_e(B,v,a,C,N,F);var it=p(ht,Le,Ae,te),Ct=S(ht,Le,Ae,te);Ie=xe,ve=Ze,xe=je,Ze=Ve,je=ke,Ve=Ke,ke=p(X,Fe,le,_t),Ke=S(Fe,Fe,le,_t),X=N,Fe=F,N=a,F=C,a=B,C=v,B=p(le,_t,it,Ct),v=S(le,_t,it,Ct)}k(this.h,0,B,v),k(this.h,2,a,C),k(this.h,4,N,F),k(this.h,6,X,Fe),k(this.h,8,ke,Ke),k(this.h,10,je,Ve),k(this.h,12,xe,Ze),k(this.h,14,Ie,ve)},Z.prototype._digest=function(d){return"hex"===d?e.toHex32(this.h,"big"):e.split32(this.h,"big")}},5590:(Ue,q,m)=>{"use strict";var t=m(2764).rotr32;function E(A,P,M){return A&P^~A&M}function s(A,P,M){return A&P^A&M^P&M}function D(A,P,M){return A^P^M}q.ft_1=function _(A,P,M,z){return 0===A?E(P,M,z):1===A||3===A?D(P,M,z):2===A?s(P,M,z):void 0},q.ch32=E,q.maj32=s,q.p32=D,q.s0_256=function u(A){return t(A,2)^t(A,13)^t(A,22)},q.s1_256=function k(A){return t(A,6)^t(A,11)^t(A,25)},q.g0_256=function p(A){return t(A,7)^t(A,18)^A>>>3},q.g1_256=function S(A){return t(A,17)^t(A,19)^A>>>10}},2764:(Ue,q,m)=>{"use strict";var e=m(3999),t=m(5035);function _(o,h){return!(55296!=(64512&o.charCodeAt(h))||h<0||h+1>=o.length)&&56320==(64512&o.charCodeAt(h+1))}function D(o){return(o>>>24|o>>>8&65280|o<<8&16711680|(255&o)<<24)>>>0}function k(o){return 1===o.length?"0"+o:o}function p(o){return 7===o.length?"0"+o:6===o.length?"00"+o:5===o.length?"000"+o:4===o.length?"0000"+o:3===o.length?"00000"+o:2===o.length?"000000"+o:1===o.length?"0000000"+o:o}q.inherits=t,q.toArray=function E(o,h){if(Array.isArray(o))return o.slice();if(!o)return[];var d=[];if("string"==typeof o)if(h){if("hex"===h)for((o=o.replace(/[^a-z0-9]+/gi,"")).length%2!=0&&(o="0"+o),L=0;L<o.length;L+=2)d.push(parseInt(o[L]+o[L+1],16))}else for(var y=0,L=0;L<o.length;L++){var B=o.charCodeAt(L);B<128?d[y++]=B:B<2048?(d[y++]=B>>6|192,d[y++]=63&B|128):_(o,L)?(B=65536+((1023&B)<<10)+(1023&o.charCodeAt(++L)),d[y++]=B>>18|240,d[y++]=B>>12&63|128,d[y++]=B>>6&63|128,d[y++]=63&B|128):(d[y++]=B>>12|224,d[y++]=B>>6&63|128,d[y++]=63&B|128)}else for(L=0;L<o.length;L++)d[L]=0|o[L];return d},q.toHex=function s(o){for(var h="",d=0;d<o.length;d++)h+=k(o[d].toString(16));return h},q.htonl=D,q.toHex32=function u(o,h){for(var d="",y=0;y<o.length;y++){var L=o[y];"little"===h&&(L=D(L)),d+=p(L.toString(16))}return d},q.zero2=k,q.zero8=p,q.join32=function S(o,h,d,y){var L=d-h;e(L%4==0);for(var B=new Array(L/4),v=0,a=h;v<B.length;v++,a+=4){var C;C="big"===y?o[a]<<24|o[a+1]<<16|o[a+2]<<8|o[a+3]:o[a+3]<<24|o[a+2]<<16|o[a+1]<<8|o[a],B[v]=C>>>0}return B},q.split32=function A(o,h){for(var d=new Array(4*o.length),y=0,L=0;y<o.length;y++,L+=4){var B=o[y];"big"===h?(d[L]=B>>>24,d[L+1]=B>>>16&255,d[L+2]=B>>>8&255,d[L+3]=255&B):(d[L+3]=B>>>24,d[L+2]=B>>>16&255,d[L+1]=B>>>8&255,d[L]=255&B)}return d},q.rotr32=function P(o,h){return o>>>h|o<<32-h},q.rotl32=function M(o,h){return o<<h|o>>>32-h},q.sum32=function z(o,h){return o+h>>>0},q.sum32_3=function I(o,h,d){return o+h+d>>>0},q.sum32_4=function W(o,h,d,y){return o+h+d+y>>>0},q.sum32_5=function Z(o,h,d,y,L){return o+h+d+y+L>>>0},q.sum64=function Q(o,h,d,y){var L=o[h],v=y+o[h+1]>>>0,a=(v<y?1:0)+d+L;o[h]=a>>>0,o[h+1]=v},q.sum64_hi=function ie(o,h,d,y){return(h+y>>>0<h?1:0)+o+d>>>0},q.sum64_lo=function ae(o,h,d,y){return h+y>>>0},q.sum64_4_hi=function _e(o,h,d,y,L,B,v,a){var C=0,N=h;return C+=(N=N+y>>>0)<h?1:0,C+=(N=N+B>>>0)<B?1:0,o+d+L+v+(C+=(N=N+a>>>0)<a?1:0)>>>0},q.sum64_4_lo=function ce(o,h,d,y,L,B,v,a){return h+y+B+a>>>0},q.sum64_5_hi=function ye(o,h,d,y,L,B,v,a,C,N){var F=0,X=h;return F+=(X=X+y>>>0)<h?1:0,F+=(X=X+B>>>0)<B?1:0,F+=(X=X+a>>>0)<a?1:0,o+d+L+v+C+(F+=(X=X+N>>>0)<N?1:0)>>>0},q.sum64_5_lo=function ue(o,h,d,y,L,B,v,a,C,N){return h+y+B+a+N>>>0},q.rotr64_hi=function $(o,h,d){return(h<<32-d|o>>>d)>>>0},q.rotr64_lo=function he(o,h,d){return(o<<32-d|h>>>d)>>>0},q.shr64_hi=function w(o,h,d){return o>>>d},q.shr64_lo=function n(o,h,d){return(o<<32-d|h>>>d)>>>0}},3925:(Ue,q,m)=>{"use strict";var e=m(9281),t=m(4985),_=m(3999);function E(s){if(!(this instanceof E))return new E(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 D=t.toArray(s.entropy,s.entropyEnc||"hex"),u=t.toArray(s.nonce,s.nonceEnc||"hex"),k=t.toArray(s.pers,s.persEnc||"hex");_(D.length>=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._init(D,u,k)}Ue.exports=E,E.prototype._init=function(D,u,k){var p=D.concat(u).concat(k);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(p),this._reseed=1,this.reseedInterval=281474976710656},E.prototype._hmac=function(){return new e.hmac(this.hash,this.K)},E.prototype._update=function(D){var u=this._hmac().update(this.V).update([0]);D&&(u=u.update(D)),this.K=u.digest(),this.V=this._hmac().update(this.V).digest(),D&&(this.K=this._hmac().update(this.V).update([1]).update(D).digest(),this.V=this._hmac().update(this.V).digest())},E.prototype.reseed=function(D,u,k,p){"string"!=typeof u&&(p=k,k=u,u=null),D=t.toArray(D,u),k=t.toArray(k,p),_(D.length>=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._update(D.concat(k||[])),this._reseed=1},E.prototype.generate=function(D,u,k,p){if(this._reseed>this.reseedInterval)throw new Error("Reseed is required");"string"!=typeof u&&(p=k,k=u,u=null),k&&(k=t.toArray(k,p||"hex"),this._update(k));for(var S=[];S.length<D;)this.V=this._hmac().update(this.V).digest(),S=S.concat(this.V);var A=S.slice(0,D);return this._update(k),this._reseed++,t.encode(A,u)}},4920:(Ue,q)=>{q.read=function(m,e,t,_,E){var s,D,u=8*E-_-1,k=(1<<u)-1,p=k>>1,S=-7,A=t?E-1:0,P=t?-1:1,M=m[e+A];for(A+=P,s=M&(1<<-S)-1,M>>=-S,S+=u;S>0;s=256*s+m[e+A],A+=P,S-=8);for(D=s&(1<<-S)-1,s>>=-S,S+=_;S>0;D=256*D+m[e+A],A+=P,S-=8);if(0===s)s=1-p;else{if(s===k)return D?NaN:1/0*(M?-1:1);D+=Math.pow(2,_),s-=p}return(M?-1:1)*D*Math.pow(2,s-_)},q.write=function(m,e,t,_,E,s){var D,u,k,p=8*s-E-1,S=(1<<p)-1,A=S>>1,P=23===E?Math.pow(2,-24)-Math.pow(2,-77):0,M=_?0:s-1,z=_?1:-1,I=e<0||0===e&&1/e<0?1:0;for(e=Math.abs(e),isNaN(e)||e===1/0?(u=isNaN(e)?1:0,D=S):(D=Math.floor(Math.log(e)/Math.LN2),e*(k=Math.pow(2,-D))<1&&(D--,k*=2),(e+=D+A>=1?P/k:P*Math.pow(2,1-A))*k>=2&&(D++,k/=2),D+A>=S?(u=0,D=S):D+A>=1?(u=(e*k-1)*Math.pow(2,E),D+=A):(u=e*Math.pow(2,A-1)*Math.pow(2,E),D=0));E>=8;m[t+M]=255&u,M+=z,u/=256,E-=8);for(D=D<<E|u,p+=E;p>0;m[t+M]=255&D,M+=z,D/=256,p-=8);m[t+M-z]|=128*I}},5035:Ue=>{"function"==typeof Object.create?Ue.exports=function(m,e){e&&(m.super_=e,m.prototype=Object.create(e.prototype,{constructor:{value:m,enumerable:!1,writable:!0,configurable:!0}}))}:Ue.exports=function(m,e){if(e){m.super_=e;var t=function(){};t.prototype=e.prototype,m.prototype=new t,m.prototype.constructor=m}}},3858:(Ue,q,m)=>{"use strict";var e=m(9848);function t(_){return!0===e(_)&&"[object Object]"===Object.prototype.toString.call(_)}Ue.exports=function(E){var s,D;return!(!1===t(E)||(s=E.constructor,"function"!=typeof s)||(D=s.prototype,!1===t(D))||!1===D.hasOwnProperty("isPrototypeOf"))}},9848:Ue=>{"use strict";Ue.exports=function(m){return null!=m&&"object"==typeof m&&!1===Array.isArray(m)}},8220:Ue=>{var q=Object.prototype.toString;function m(p){return"function"==typeof p.constructor?p.constructor.name:null}Ue.exports=function(S){if(void 0===S)return"undefined";if(null===S)return"null";var A=typeof S;if("boolean"===A)return"boolean";if("string"===A)return"string";if("number"===A)return"number";if("symbol"===A)return"symbol";if("function"===A)return function s(p,S){return"GeneratorFunction"===m(p)}(S)?"generatorfunction":"function";if(function e(p){return Array.isArray?Array.isArray(p):p instanceof Array}(S))return"array";if(function k(p){return!(!p.constructor||"function"!=typeof p.constructor.isBuffer)&&p.constructor.isBuffer(p)}(S))return"buffer";if(function u(p){try{if("number"==typeof p.length&&"function"==typeof p.callee)return!0}catch(S){if(-1!==S.message.indexOf("callee"))return!0}return!1}(S))return"arguments";if(function _(p){return p instanceof Date||"function"==typeof p.toDateString&&"function"==typeof p.getDate&&"function"==typeof p.setDate}(S))return"date";if(function t(p){return p instanceof Error||"string"==typeof p.message&&p.constructor&&"number"==typeof p.constructor.stackTraceLimit}(S))return"error";if(function E(p){return p instanceof RegExp||"string"==typeof p.flags&&"boolean"==typeof p.ignoreCase&&"boolean"==typeof p.multiline&&"boolean"==typeof p.global}(S))return"regexp";switch(m(S)){case"Symbol":return"symbol";case"Promise":return"promise";case"WeakMap":return"weakmap";case"WeakSet":return"weakset";case"Map":return"map";case"Set":return"set";case"Int8Array":return"int8array";case"Uint8Array":return"uint8array";case"Uint8ClampedArray":return"uint8clampedarray";case"Int16Array":return"int16array";case"Uint16Array":return"uint16array";case"Int32Array":return"int32array";case"Uint32Array":return"uint32array";case"Float32Array":return"float32array";case"Float64Array":return"float64array"}if(function D(p){return"function"==typeof p.throw&&"function"==typeof p.return&&"function"==typeof p.next}(S))return"generator";switch(A=q.call(S)){case"[object Object]":return"object";case"[object Map Iterator]":return"mapiterator";case"[object Set Iterator]":return"setiterator";case"[object String Iterator]":return"stringiterator";case"[object Array Iterator]":return"arrayiterator"}return A.slice(8,-1).toLowerCase().replace(/\s/g,"")}},2617:(Ue,q,m)=>{"use strict";var e=m(5035),t=m(3817),_=m(9708).Buffer,E=new Array(16);function s(){t.call(this,64),this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878}function D(A,P){return A<<P|A>>>32-P}function u(A,P,M,z,I,W,Z){return D(A+(P&M|~P&z)+I+W|0,Z)+P|0}function k(A,P,M,z,I,W,Z){return D(A+(P&z|M&~z)+I+W|0,Z)+P|0}function p(A,P,M,z,I,W,Z){return D(A+(P^M^z)+I+W|0,Z)+P|0}function S(A,P,M,z,I,W,Z){return D(A+(M^(P|~z))+I+W|0,Z)+P|0}e(s,t),s.prototype._update=function(){for(var A=E,P=0;P<16;++P)A[P]=this._block.readInt32LE(4*P);var M=this._a,z=this._b,I=this._c,W=this._d;M=u(M,z,I,W,A[0],3614090360,7),W=u(W,M,z,I,A[1],3905402710,12),I=u(I,W,M,z,A[2],606105819,17),z=u(z,I,W,M,A[3],3250441966,22),M=u(M,z,I,W,A[4],4118548399,7),W=u(W,M,z,I,A[5],1200080426,12),I=u(I,W,M,z,A[6],2821735955,17),z=u(z,I,W,M,A[7],4249261313,22),M=u(M,z,I,W,A[8],1770035416,7),W=u(W,M,z,I,A[9],2336552879,12),I=u(I,W,M,z,A[10],4294925233,17),z=u(z,I,W,M,A[11],2304563134,22),M=u(M,z,I,W,A[12],1804603682,7),W=u(W,M,z,I,A[13],4254626195,12),I=u(I,W,M,z,A[14],2792965006,17),M=k(M,z=u(z,I,W,M,A[15],1236535329,22),I,W,A[1],4129170786,5),W=k(W,M,z,I,A[6],3225465664,9),I=k(I,W,M,z,A[11],643717713,14),z=k(z,I,W,M,A[0],3921069994,20),M=k(M,z,I,W,A[5],3593408605,5),W=k(W,M,z,I,A[10],38016083,9),I=k(I,W,M,z,A[15],3634488961,14),z=k(z,I,W,M,A[4],3889429448,20),M=k(M,z,I,W,A[9],568446438,5),W=k(W,M,z,I,A[14],3275163606,9),I=k(I,W,M,z,A[3],4107603335,14),z=k(z,I,W,M,A[8],1163531501,20),M=k(M,z,I,W,A[13],2850285829,5),W=k(W,M,z,I,A[2],4243563512,9),I=k(I,W,M,z,A[7],1735328473,14),M=p(M,z=k(z,I,W,M,A[12],2368359562,20),I,W,A[5],4294588738,4),W=p(W,M,z,I,A[8],2272392833,11),I=p(I,W,M,z,A[11],1839030562,16),z=p(z,I,W,M,A[14],4259657740,23),M=p(M,z,I,W,A[1],2763975236,4),W=p(W,M,z,I,A[4],1272893353,11),I=p(I,W,M,z,A[7],4139469664,16),z=p(z,I,W,M,A[10],3200236656,23),M=p(M,z,I,W,A[13],681279174,4),W=p(W,M,z,I,A[0],3936430074,11),I=p(I,W,M,z,A[3],3572445317,16),z=p(z,I,W,M,A[6],76029189,23),M=p(M,z,I,W,A[9],3654602809,4),W=p(W,M,z,I,A[12],3873151461,11),I=p(I,W,M,z,A[15],530742520,16),M=S(M,z=p(z,I,W,M,A[2],3299628645,23),I,W,A[0],4096336452,6),W=S(W,M,z,I,A[7],1126891415,10),I=S(I,W,M,z,A[14],2878612391,15),z=S(z,I,W,M,A[5],4237533241,21),M=S(M,z,I,W,A[12],1700485571,6),W=S(W,M,z,I,A[3],2399980690,10),I=S(I,W,M,z,A[10],4293915773,15),z=S(z,I,W,M,A[1],2240044497,21),M=S(M,z,I,W,A[8],1873313359,6),W=S(W,M,z,I,A[15],4264355552,10),I=S(I,W,M,z,A[6],2734768916,15),z=S(z,I,W,M,A[13],1309151649,21),M=S(M,z,I,W,A[4],4149444226,6),W=S(W,M,z,I,A[11],3174756917,10),I=S(I,W,M,z,A[2],718787259,15),z=S(z,I,W,M,A[9],3951481745,21),this._a=this._a+M|0,this._b=this._b+z|0,this._c=this._c+I|0,this._d=this._d+W|0},s.prototype._digest=function(){this._block[this._blockOffset++]=128,this._blockOffset>56&&(this._block.fill(0,this._blockOffset,64),this._update(),this._blockOffset=0),this._block.fill(0,this._blockOffset,56),this._block.writeUInt32LE(this._length[0],56),this._block.writeUInt32LE(this._length[1],60),this._update();var A=_.allocUnsafe(16);return A.writeInt32LE(this._a,0),A.writeInt32LE(this._b,4),A.writeInt32LE(this._c,8),A.writeInt32LE(this._d,12),A},Ue.exports=s},7789:(Ue,q,m)=>{var e=m(5369),t=m(340);function _(E){this.rand=E||new t.Rand}Ue.exports=_,_.create=function(s){return new _(s)},_.prototype._randbelow=function(s){var D=s.bitLength(),u=Math.ceil(D/8);do{var k=new e(this.rand.generate(u))}while(k.cmp(s)>=0);return k},_.prototype._randrange=function(s,D){var u=D.sub(s);return s.add(this._randbelow(u))},_.prototype.test=function(s,D,u){var k=s.bitLength(),p=e.mont(s),S=new e(1).toRed(p);D||(D=Math.max(1,k/48|0));for(var A=s.subn(1),P=0;!A.testn(P);P++);for(var M=s.shrn(P),z=A.toRed(p);D>0;D--){var W=this._randrange(new e(2),A);u&&u(W);var Z=W.toRed(p).redPow(M);if(0!==Z.cmp(S)&&0!==Z.cmp(z)){for(var Q=1;Q<P;Q++){if(0===(Z=Z.redSqr()).cmp(S))return!1;if(0===Z.cmp(z))break}if(Q===P)return!1}}return!0},_.prototype.getDivisor=function(s,D){var u=s.bitLength(),k=e.mont(s),p=new e(1).toRed(k);D||(D=Math.max(1,u/48|0));for(var S=s.subn(1),A=0;!S.testn(A);A++);for(var P=s.shrn(A),M=S.toRed(k);D>0;D--){var z=this._randrange(new e(2),S),I=s.gcd(z);if(0!==I.cmpn(1))return I;var W=z.toRed(k).redPow(P);if(0!==W.cmp(p)&&0!==W.cmp(M)){for(var Z=1;Z<A;Z++){if(0===(W=W.redSqr()).cmp(p))return W.fromRed().subn(1).gcd(s);if(0===W.cmp(M))break}if(Z===A)return(W=W.redSqr()).fromRed().subn(1).gcd(s)}}return!1}},5369:function(Ue,q,m){(function(e,t){"use strict";function _(w,n){if(!w)throw new Error(n||"Assertion failed")}function E(w,n){w.super_=n;var o=function(){};o.prototype=n.prototype,w.prototype=new o,w.prototype.constructor=w}function s(w,n,o){if(s.isBN(w))return w;this.negative=0,this.words=null,this.length=0,this.red=null,null!==w&&(("le"===n||"be"===n)&&(o=n,n=10),this._init(w||0,n||10,o||"be"))}var D;"object"==typeof e?e.exports=s:t.BN=s,s.BN=s,s.wordSize=26;try{D=typeof window<"u"&&typeof window.Buffer<"u"?window.Buffer:m(6619).Buffer}catch{}function u(w,n){var o=w.charCodeAt(n);return o>=65&&o<=70?o-55:o>=97&&o<=102?o-87:o-48&15}function k(w,n,o){var h=u(w,o);return o-1>=n&&(h|=u(w,o-1)<<4),h}function p(w,n,o,h){for(var d=0,y=Math.min(w.length,o),L=n;L<y;L++){var B=w.charCodeAt(L)-48;d*=h,d+=B>=49?B-49+10:B>=17?B-17+10:B}return d}s.isBN=function(n){return n instanceof s||null!==n&&"object"==typeof n&&n.constructor.wordSize===s.wordSize&&Array.isArray(n.words)},s.max=function(n,o){return n.cmp(o)>0?n:o},s.min=function(n,o){return n.cmp(o)<0?n:o},s.prototype._init=function(n,o,h){if("number"==typeof n)return this._initNumber(n,o,h);if("object"==typeof n)return this._initArray(n,o,h);"hex"===o&&(o=16),_(o===(0|o)&&o>=2&&o<=36);var d=0;"-"===(n=n.toString().replace(/\s+/g,""))[0]&&(d++,this.negative=1),d<n.length&&(16===o?this._parseHex(n,d,h):(this._parseBase(n,o,d),"le"===h&&this._initArray(this.toArray(),o,h)))},s.prototype._initNumber=function(n,o,h){n<0&&(this.negative=1,n=-n),n<67108864?(this.words=[67108863&n],this.length=1):n<4503599627370496?(this.words=[67108863&n,n/67108864&67108863],this.length=2):(_(n<9007199254740992),this.words=[67108863&n,n/67108864&67108863,1],this.length=3),"le"===h&&this._initArray(this.toArray(),o,h)},s.prototype._initArray=function(n,o,h){if(_("number"==typeof n.length),n.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(n.length/3),this.words=new Array(this.length);for(var d=0;d<this.length;d++)this.words[d]=0;var y,L,B=0;if("be"===h)for(d=n.length-1,y=0;d>=0;d-=3)L=n[d]|n[d-1]<<8|n[d-2]<<16,this.words[y]|=L<<B&67108863,this.words[y+1]=L>>>26-B&67108863,(B+=24)>=26&&(B-=26,y++);else if("le"===h)for(d=0,y=0;d<n.length;d+=3)L=n[d]|n[d+1]<<8|n[d+2]<<16,this.words[y]|=L<<B&67108863,this.words[y+1]=L>>>26-B&67108863,(B+=24)>=26&&(B-=26,y++);return this.strip()},s.prototype._parseHex=function(n,o,h){this.length=Math.ceil((n.length-o)/6),this.words=new Array(this.length);for(var d=0;d<this.length;d++)this.words[d]=0;var B,y=0,L=0;if("be"===h)for(d=n.length-1;d>=o;d-=2)B=k(n,o,d)<<y,this.words[L]|=67108863&B,y>=18?(y-=18,L+=1,this.words[L]|=B>>>26):y+=8;else for(d=(n.length-o)%2==0?o+1:o;d<n.length;d+=2)B=k(n,o,d)<<y,this.words[L]|=67108863&B,y>=18?(y-=18,L+=1,this.words[L]|=B>>>26):y+=8;this.strip()},s.prototype._parseBase=function(n,o,h){this.words=[0],this.length=1;for(var d=0,y=1;y<=67108863;y*=o)d++;d--,y=y/o|0;for(var L=n.length-h,B=L%d,v=Math.min(L,L-B)+h,a=0,C=h;C<v;C+=d)a=p(n,C,C+d,o),this.imuln(y),this.words[0]+a<67108864?this.words[0]+=a:this._iaddn(a);if(0!==B){var N=1;for(a=p(n,C,n.length,o),C=0;C<B;C++)N*=o;this.imuln(N),this.words[0]+a<67108864?this.words[0]+=a:this._iaddn(a)}this.strip()},s.prototype.copy=function(n){n.words=new Array(this.length);for(var o=0;o<this.length;o++)n.words[o]=this.words[o];n.length=this.length,n.negative=this.negative,n.red=this.red},s.prototype.clone=function(){var n=new s(null);return this.copy(n),n},s.prototype._expand=function(n){for(;this.length<n;)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"],A=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],P=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];function z(w,n,o){o.negative=n.negative^w.negative;var h=w.length+n.length|0;o.length=h,h=h-1|0;var d=0|w.words[0],y=0|n.words[0],L=d*y,B=67108863&L,v=L/67108864|0;o.words[0]=B;for(var a=1;a<h;a++){for(var C=v>>>26,N=67108863&v,F=Math.min(a,n.length-1),X=Math.max(0,a-w.length+1);X<=F;X++){var Fe=a-X|0;C+=(L=(d=0|w.words[Fe])*(y=0|n.words[X])+N)/67108864|0,N=67108863&L}o.words[a]=0|N,v=0|C}return 0!==v?o.words[a]=0|v:o.length--,o.strip()}s.prototype.toString=function(n,o){var h;if(o=0|o||1,16===(n=n||10)||"hex"===n){h="";for(var d=0,y=0,L=0;L<this.length;L++){var B=this.words[L],v=(16777215&(B<<d|y)).toString(16);h=0!==(y=B>>>24-d&16777215)||L!==this.length-1?S[6-v.length]+v+h:v+h,(d+=2)>=26&&(d-=26,L--)}for(0!==y&&(h=y.toString(16)+h);h.length%o!=0;)h="0"+h;return 0!==this.negative&&(h="-"+h),h}if(n===(0|n)&&n>=2&&n<=36){var a=A[n],C=P[n];h="";var N=this.clone();for(N.negative=0;!N.isZero();){var F=N.modn(C).toString(n);h=(N=N.idivn(C)).isZero()?F+h:S[a-F.length]+F+h}for(this.isZero()&&(h="0"+h);h.length%o!=0;)h="0"+h;return 0!==this.negative&&(h="-"+h),h}_(!1,"Base should be between 2 and 36")},s.prototype.toNumber=function(){var n=this.words[0];return 2===this.length?n+=67108864*this.words[1]:3===this.length&&1===this.words[2]?n+=4503599627370496+67108864*this.words[1]:this.length>2&&_(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-n:n},s.prototype.toJSON=function(){return this.toString(16)},s.prototype.toBuffer=function(n,o){return _(typeof D<"u"),this.toArrayLike(D,n,o)},s.prototype.toArray=function(n,o){return this.toArrayLike(Array,n,o)},s.prototype.toArrayLike=function(n,o,h){var d=this.byteLength(),y=h||Math.max(1,d);_(d<=y,"byte array longer than desired length"),_(y>0,"Requested array length <= 0"),this.strip();var v,a,L="le"===o,B=new n(y),C=this.clone();if(L){for(a=0;!C.isZero();a++)v=C.andln(255),C.iushrn(8),B[a]=v;for(;a<y;a++)B[a]=0}else{for(a=0;a<y-d;a++)B[a]=0;for(a=0;!C.isZero();a++)v=C.andln(255),C.iushrn(8),B[y-a-1]=v}return B},Math.clz32?s.prototype._countBits=function(n){return 32-Math.clz32(n)}:s.prototype._countBits=function(n){var o=n,h=0;return o>=4096&&(h+=13,o>>>=13),o>=64&&(h+=7,o>>>=7),o>=8&&(h+=4,o>>>=4),o>=2&&(h+=2,o>>>=2),h+o},s.prototype._zeroBits=function(n){if(0===n)return 26;var o=n,h=0;return 0==(8191&o)&&(h+=13,o>>>=13),0==(127&o)&&(h+=7,o>>>=7),0==(15&o)&&(h+=4,o>>>=4),0==(3&o)&&(h+=2,o>>>=2),0==(1&o)&&h++,h},s.prototype.bitLength=function(){var n=this.words[this.length-1],o=this._countBits(n);return 26*(this.length-1)+o},s.prototype.zeroBits=function(){if(this.isZero())return 0;for(var n=0,o=0;o<this.length;o++){var h=this._zeroBits(this.words[o]);if(n+=h,26!==h)break}return n},s.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},s.prototype.toTwos=function(n){return 0!==this.negative?this.abs().inotn(n).iaddn(1):this.clone()},s.prototype.fromTwos=function(n){return this.testn(n-1)?this.notn(n).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(n){for(;this.length<n.length;)this.words[this.length++]=0;for(var o=0;o<n.length;o++)this.words[o]=this.words[o]|n.words[o];return this.strip()},s.prototype.ior=function(n){return _(0==(this.negative|n.negative)),this.iuor(n)},s.prototype.or=function(n){return this.length>n.length?this.clone().ior(n):n.clone().ior(this)},s.prototype.uor=function(n){return this.length>n.length?this.clone().iuor(n):n.clone().iuor(this)},s.prototype.iuand=function(n){var o;o=this.length>n.length?n:this;for(var h=0;h<o.length;h++)this.words[h]=this.words[h]&n.words[h];return this.length=o.length,this.strip()},s.prototype.iand=function(n){return _(0==(this.negative|n.negative)),this.iuand(n)},s.prototype.and=function(n){return this.length>n.length?this.clone().iand(n):n.clone().iand(this)},s.prototype.uand=function(n){return this.length>n.length?this.clone().iuand(n):n.clone().iuand(this)},s.prototype.iuxor=function(n){var o,h;this.length>n.length?(o=this,h=n):(o=n,h=this);for(var d=0;d<h.length;d++)this.words[d]=o.words[d]^h.words[d];if(this!==o)for(;d<o.length;d++)this.words[d]=o.words[d];return this.length=o.length,this.strip()},s.prototype.ixor=function(n){return _(0==(this.negative|n.negative)),this.iuxor(n)},s.prototype.xor=function(n){return this.length>n.length?this.clone().ixor(n):n.clone().ixor(this)},s.prototype.uxor=function(n){return this.length>n.length?this.clone().iuxor(n):n.clone().iuxor(this)},s.prototype.inotn=function(n){_("number"==typeof n&&n>=0);var o=0|Math.ceil(n/26),h=n%26;this._expand(o),h>0&&o--;for(var d=0;d<o;d++)this.words[d]=67108863&~this.words[d];return h>0&&(this.words[d]=~this.words[d]&67108863>>26-h),this.strip()},s.prototype.notn=function(n){return this.clone().inotn(n)},s.prototype.setn=function(n,o){_("number"==typeof n&&n>=0);var h=n/26|0,d=n%26;return this._expand(h+1),this.words[h]=o?this.words[h]|1<<d:this.words[h]&~(1<<d),this.strip()},s.prototype.iadd=function(n){var o,h,d;if(0!==this.negative&&0===n.negative)return this.negative=0,o=this.isub(n),this.negative^=1,this._normSign();if(0===this.negative&&0!==n.negative)return n.negative=0,o=this.isub(n),n.negative=1,o._normSign();this.length>n.length?(h=this,d=n):(h=n,d=this);for(var y=0,L=0;L<d.length;L++)o=(0|h.words[L])+(0|d.words[L])+y,this.words[L]=67108863&o,y=o>>>26;for(;0!==y&&L<h.length;L++)o=(0|h.words[L])+y,this.words[L]=67108863&o,y=o>>>26;if(this.length=h.length,0!==y)this.words[this.length]=y,this.length++;else if(h!==this)for(;L<h.length;L++)this.words[L]=h.words[L];return this},s.prototype.add=function(n){var o;return 0!==n.negative&&0===this.negative?(n.negative=0,o=this.sub(n),n.negative^=1,o):0===n.negative&&0!==this.negative?(this.negative=0,o=n.sub(this),this.negative=1,o):this.length>n.length?this.clone().iadd(n):n.clone().iadd(this)},s.prototype.isub=function(n){if(0!==n.negative){n.negative=0;var o=this.iadd(n);return n.negative=1,o._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(n),this.negative=1,this._normSign();var d,y,h=this.cmp(n);if(0===h)return this.negative=0,this.length=1,this.words[0]=0,this;h>0?(d=this,y=n):(d=n,y=this);for(var L=0,B=0;B<y.length;B++)L=(o=(0|d.words[B])-(0|y.words[B])+L)>>26,this.words[B]=67108863&o;for(;0!==L&&B<d.length;B++)L=(o=(0|d.words[B])+L)>>26,this.words[B]=67108863&o;if(0===L&&B<d.length&&d!==this)for(;B<d.length;B++)this.words[B]=d.words[B];return this.length=Math.max(this.length,B),d!==this&&(this.negative=1),this.strip()},s.prototype.sub=function(n){return this.clone().isub(n)};var I=function(n,o,h){var v,a,C,d=n.words,y=o.words,L=h.words,B=0,N=0|d[0],F=8191&N,X=N>>>13,Fe=0|d[1],ke=8191&Fe,Ke=Fe>>>13,je=0|d[2],Ve=8191&je,xe=je>>>13,Ze=0|d[3],Ie=8191&Ze,ve=Ze>>>13,et=0|d[4],ht=8191&et,Le=et>>>13,Ae=0|d[5],te=8191&Ae,pe=Ae>>>13,ee=0|d[6],H=8191&ee,j=ee>>>13,Oe=0|d[7],Re=8191&Oe,le=Oe>>>13,_t=0|d[8],it=8191&_t,Ct=_t>>>13,un=0|d[9],Bt=8191&un,Ut=un>>>13,yn=0|y[0],Xt=8191&yn,Gt=yn>>>13,In=0|y[1],rn=8191&In,tn=In>>>13,pn=0|y[2],tt=8191&pn,vt=pn>>>13,dt=0|y[3],se=8191&dt,J=dt>>>13,oe=0|y[4],De=8191&oe,Ye=oe>>>13,Dt=0|y[5],ut=8191&Dt,ze=Dt>>>13,Me=0|y[6],Ce=8191&Me,Je=Me>>>13,zt=0|y[7],At=8191&zt,Tt=zt>>>13,Ht=0|y[8],He=8191&Ht,$e=Ht>>>13,$t=0|y[9],Rt=8191&$t,Jt=$t>>>13;h.negative=n.negative^o.negative,h.length=19;var Vn=(B+(v=Math.imul(F,Xt))|0)+((8191&(a=(a=Math.imul(F,Gt))+Math.imul(X,Xt)|0))<<13)|0;B=((C=Math.imul(X,Gt))+(a>>>13)|0)+(Vn>>>26)|0,Vn&=67108863,v=Math.imul(ke,Xt),a=(a=Math.imul(ke,Gt))+Math.imul(Ke,Xt)|0,C=Math.imul(Ke,Gt);var zn=(B+(v=v+Math.imul(F,rn)|0)|0)+((8191&(a=(a=a+Math.imul(F,tn)|0)+Math.imul(X,rn)|0))<<13)|0;B=((C=C+Math.imul(X,tn)|0)+(a>>>13)|0)+(zn>>>26)|0,zn&=67108863,v=Math.imul(Ve,Xt),a=(a=Math.imul(Ve,Gt))+Math.imul(xe,Xt)|0,C=Math.imul(xe,Gt),v=v+Math.imul(ke,rn)|0,a=(a=a+Math.imul(ke,tn)|0)+Math.imul(Ke,rn)|0,C=C+Math.imul(Ke,tn)|0;var Tn=(B+(v=v+Math.imul(F,tt)|0)|0)+((8191&(a=(a=a+Math.imul(F,vt)|0)+Math.imul(X,tt)|0))<<13)|0;B=((C=C+Math.imul(X,vt)|0)+(a>>>13)|0)+(Tn>>>26)|0,Tn&=67108863,v=Math.imul(Ie,Xt),a=(a=Math.imul(Ie,Gt))+Math.imul(ve,Xt)|0,C=Math.imul(ve,Gt),v=v+Math.imul(Ve,rn)|0,a=(a=a+Math.imul(Ve,tn)|0)+Math.imul(xe,rn)|0,C=C+Math.imul(xe,tn)|0,v=v+Math.imul(ke,tt)|0,a=(a=a+Math.imul(ke,vt)|0)+Math.imul(Ke,tt)|0,C=C+Math.imul(Ke,vt)|0;var Yn=(B+(v=v+Math.imul(F,se)|0)|0)+((8191&(a=(a=a+Math.imul(F,J)|0)+Math.imul(X,se)|0))<<13)|0;B=((C=C+Math.imul(X,J)|0)+(a>>>13)|0)+(Yn>>>26)|0,Yn&=67108863,v=Math.imul(ht,Xt),a=(a=Math.imul(ht,Gt))+Math.imul(Le,Xt)|0,C=Math.imul(Le,Gt),v=v+Math.imul(Ie,rn)|0,a=(a=a+Math.imul(Ie,tn)|0)+Math.imul(ve,rn)|0,C=C+Math.imul(ve,tn)|0,v=v+Math.imul(Ve,tt)|0,a=(a=a+Math.imul(Ve,vt)|0)+Math.imul(xe,tt)|0,C=C+Math.imul(xe,vt)|0,v=v+Math.imul(ke,se)|0,a=(a=a+Math.imul(ke,J)|0)+Math.imul(Ke,se)|0,C=C+Math.imul(Ke,J)|0;var Mt=(B+(v=v+Math.imul(F,De)|0)|0)+((8191&(a=(a=a+Math.imul(F,Ye)|0)+Math.imul(X,De)|0))<<13)|0;B=((C=C+Math.imul(X,Ye)|0)+(a>>>13)|0)+(Mt>>>26)|0,Mt&=67108863,v=Math.imul(te,Xt),a=(a=Math.imul(te,Gt))+Math.imul(pe,Xt)|0,C=Math.imul(pe,Gt),v=v+Math.imul(ht,rn)|0,a=(a=a+Math.imul(ht,tn)|0)+Math.imul(Le,rn)|0,C=C+Math.imul(Le,tn)|0,v=v+Math.imul(Ie,tt)|0,a=(a=a+Math.imul(Ie,vt)|0)+Math.imul(ve,tt)|0,C=C+Math.imul(ve,vt)|0,v=v+Math.imul(Ve,se)|0,a=(a=a+Math.imul(Ve,J)|0)+Math.imul(xe,se)|0,C=C+Math.imul(xe,J)|0,v=v+Math.imul(ke,De)|0,a=(a=a+Math.imul(ke,Ye)|0)+Math.imul(Ke,De)|0,C=C+Math.imul(Ke,Ye)|0;var Ge=(B+(v=v+Math.imul(F,ut)|0)|0)+((8191&(a=(a=a+Math.imul(F,ze)|0)+Math.imul(X,ut)|0))<<13)|0;B=((C=C+Math.imul(X,ze)|0)+(a>>>13)|0)+(Ge>>>26)|0,Ge&=67108863,v=Math.imul(H,Xt),a=(a=Math.imul(H,Gt))+Math.imul(j,Xt)|0,C=Math.imul(j,Gt),v=v+Math.imul(te,rn)|0,a=(a=a+Math.imul(te,tn)|0)+Math.imul(pe,rn)|0,C=C+Math.imul(pe,tn)|0,v=v+Math.imul(ht,tt)|0,a=(a=a+Math.imul(ht,vt)|0)+Math.imul(Le,tt)|0,C=C+Math.imul(Le,vt)|0,v=v+Math.imul(Ie,se)|0,a=(a=a+Math.imul(Ie,J)|0)+Math.imul(ve,se)|0,C=C+Math.imul(ve,J)|0,v=v+Math.imul(Ve,De)|0,a=(a=a+Math.imul(Ve,Ye)|0)+Math.imul(xe,De)|0,C=C+Math.imul(xe,Ye)|0,v=v+Math.imul(ke,ut)|0,a=(a=a+Math.imul(ke,ze)|0)+Math.imul(Ke,ut)|0,C=C+Math.imul(Ke,ze)|0;var Be=(B+(v=v+Math.imul(F,Ce)|0)|0)+((8191&(a=(a=a+Math.imul(F,Je)|0)+Math.imul(X,Ce)|0))<<13)|0;B=((C=C+Math.imul(X,Je)|0)+(a>>>13)|0)+(Be>>>26)|0,Be&=67108863,v=Math.imul(Re,Xt),a=(a=Math.imul(Re,Gt))+Math.imul(le,Xt)|0,C=Math.imul(le,Gt),v=v+Math.imul(H,rn)|0,a=(a=a+Math.imul(H,tn)|0)+Math.imul(j,rn)|0,C=C+Math.imul(j,tn)|0,v=v+Math.imul(te,tt)|0,a=(a=a+Math.imul(te,vt)|0)+Math.imul(pe,tt)|0,C=C+Math.imul(pe,vt)|0,v=v+Math.imul(ht,se)|0,a=(a=a+Math.imul(ht,J)|0)+Math.imul(Le,se)|0,C=C+Math.imul(Le,J)|0,v=v+Math.imul(Ie,De)|0,a=(a=a+Math.imul(Ie,Ye)|0)+Math.imul(ve,De)|0,C=C+Math.imul(ve,Ye)|0,v=v+Math.imul(Ve,ut)|0,a=(a=a+Math.imul(Ve,ze)|0)+Math.imul(xe,ut)|0,C=C+Math.imul(xe,ze)|0,v=v+Math.imul(ke,Ce)|0,a=(a=a+Math.imul(ke,Je)|0)+Math.imul(Ke,Ce)|0,C=C+Math.imul(Ke,Je)|0;var ft=(B+(v=v+Math.imul(F,At)|0)|0)+((8191&(a=(a=a+Math.imul(F,Tt)|0)+Math.imul(X,At)|0))<<13)|0;B=((C=C+Math.imul(X,Tt)|0)+(a>>>13)|0)+(ft>>>26)|0,ft&=67108863,v=Math.imul(it,Xt),a=(a=Math.imul(it,Gt))+Math.imul(Ct,Xt)|0,C=Math.imul(Ct,Gt),v=v+Math.imul(Re,rn)|0,a=(a=a+Math.imul(Re,tn)|0)+Math.imul(le,rn)|0,C=C+Math.imul(le,tn)|0,v=v+Math.imul(H,tt)|0,a=(a=a+Math.imul(H,vt)|0)+Math.imul(j,tt)|0,C=C+Math.imul(j,vt)|0,v=v+Math.imul(te,se)|0,a=(a=a+Math.imul(te,J)|0)+Math.imul(pe,se)|0,C=C+Math.imul(pe,J)|0,v=v+Math.imul(ht,De)|0,a=(a=a+Math.imul(ht,Ye)|0)+Math.imul(Le,De)|0,C=C+Math.imul(Le,Ye)|0,v=v+Math.imul(Ie,ut)|0,a=(a=a+Math.imul(Ie,ze)|0)+Math.imul(ve,ut)|0,C=C+Math.imul(ve,ze)|0,v=v+Math.imul(Ve,Ce)|0,a=(a=a+Math.imul(Ve,Je)|0)+Math.imul(xe,Ce)|0,C=C+Math.imul(xe,Je)|0,v=v+Math.imul(ke,At)|0,a=(a=a+Math.imul(ke,Tt)|0)+Math.imul(Ke,At)|0,C=C+Math.imul(Ke,Tt)|0;var re=(B+(v=v+Math.imul(F,He)|0)|0)+((8191&(a=(a=a+Math.imul(F,$e)|0)+Math.imul(X,He)|0))<<13)|0;B=((C=C+Math.imul(X,$e)|0)+(a>>>13)|0)+(re>>>26)|0,re&=67108863,v=Math.imul(Bt,Xt),a=(a=Math.imul(Bt,Gt))+Math.imul(Ut,Xt)|0,C=Math.imul(Ut,Gt),v=v+Math.imul(it,rn)|0,a=(a=a+Math.imul(it,tn)|0)+Math.imul(Ct,rn)|0,C=C+Math.imul(Ct,tn)|0,v=v+Math.imul(Re,tt)|0,a=(a=a+Math.imul(Re,vt)|0)+Math.imul(le,tt)|0,C=C+Math.imul(le,vt)|0,v=v+Math.imul(H,se)|0,a=(a=a+Math.imul(H,J)|0)+Math.imul(j,se)|0,C=C+Math.imul(j,J)|0,v=v+Math.imul(te,De)|0,a=(a=a+Math.imul(te,Ye)|0)+Math.imul(pe,De)|0,C=C+Math.imul(pe,Ye)|0,v=v+Math.imul(ht,ut)|0,a=(a=a+Math.imul(ht,ze)|0)+Math.imul(Le,ut)|0,C=C+Math.imul(Le,ze)|0,v=v+Math.imul(Ie,Ce)|0,a=(a=a+Math.imul(Ie,Je)|0)+Math.imul(ve,Ce)|0,C=C+Math.imul(ve,Je)|0,v=v+Math.imul(Ve,At)|0,a=(a=a+Math.imul(Ve,Tt)|0)+Math.imul(xe,At)|0,C=C+Math.imul(xe,Tt)|0,v=v+Math.imul(ke,He)|0,a=(a=a+Math.imul(ke,$e)|0)+Math.imul(Ke,He)|0,C=C+Math.imul(Ke,$e)|0;var Te=(B+(v=v+Math.imul(F,Rt)|0)|0)+((8191&(a=(a=a+Math.imul(F,Jt)|0)+Math.imul(X,Rt)|0))<<13)|0;B=((C=C+Math.imul(X,Jt)|0)+(a>>>13)|0)+(Te>>>26)|0,Te&=67108863,v=Math.imul(Bt,rn),a=(a=Math.imul(Bt,tn))+Math.imul(Ut,rn)|0,C=Math.imul(Ut,tn),v=v+Math.imul(it,tt)|0,a=(a=a+Math.imul(it,vt)|0)+Math.imul(Ct,tt)|0,C=C+Math.imul(Ct,vt)|0,v=v+Math.imul(Re,se)|0,a=(a=a+Math.imul(Re,J)|0)+Math.imul(le,se)|0,C=C+Math.imul(le,J)|0,v=v+Math.imul(H,De)|0,a=(a=a+Math.imul(H,Ye)|0)+Math.imul(j,De)|0,C=C+Math.imul(j,Ye)|0,v=v+Math.imul(te,ut)|0,a=(a=a+Math.imul(te,ze)|0)+Math.imul(pe,ut)|0,C=C+Math.imul(pe,ze)|0,v=v+Math.imul(ht,Ce)|0,a=(a=a+Math.imul(ht,Je)|0)+Math.imul(Le,Ce)|0,C=C+Math.imul(Le,Je)|0,v=v+Math.imul(Ie,At)|0,a=(a=a+Math.imul(Ie,Tt)|0)+Math.imul(ve,At)|0,C=C+Math.imul(ve,Tt)|0,v=v+Math.imul(Ve,He)|0,a=(a=a+Math.imul(Ve,$e)|0)+Math.imul(xe,He)|0,C=C+Math.imul(xe,$e)|0;var pt=(B+(v=v+Math.imul(ke,Rt)|0)|0)+((8191&(a=(a=a+Math.imul(ke,Jt)|0)+Math.imul(Ke,Rt)|0))<<13)|0;B=((C=C+Math.imul(Ke,Jt)|0)+(a>>>13)|0)+(pt>>>26)|0,pt&=67108863,v=Math.imul(Bt,tt),a=(a=Math.imul(Bt,vt))+Math.imul(Ut,tt)|0,C=Math.imul(Ut,vt),v=v+Math.imul(it,se)|0,a=(a=a+Math.imul(it,J)|0)+Math.imul(Ct,se)|0,C=C+Math.imul(Ct,J)|0,v=v+Math.imul(Re,De)|0,a=(a=a+Math.imul(Re,Ye)|0)+Math.imul(le,De)|0,C=C+Math.imul(le,Ye)|0,v=v+Math.imul(H,ut)|0,a=(a=a+Math.imul(H,ze)|0)+Math.imul(j,ut)|0,C=C+Math.imul(j,ze)|0,v=v+Math.imul(te,Ce)|0,a=(a=a+Math.imul(te,Je)|0)+Math.imul(pe,Ce)|0,C=C+Math.imul(pe,Je)|0,v=v+Math.imul(ht,At)|0,a=(a=a+Math.imul(ht,Tt)|0)+Math.imul(Le,At)|0,C=C+Math.imul(Le,Tt)|0,v=v+Math.imul(Ie,He)|0,a=(a=a+Math.imul(Ie,$e)|0)+Math.imul(ve,He)|0,C=C+Math.imul(ve,$e)|0;var Lt=(B+(v=v+Math.imul(Ve,Rt)|0)|0)+((8191&(a=(a=a+Math.imul(Ve,Jt)|0)+Math.imul(xe,Rt)|0))<<13)|0;B=((C=C+Math.imul(xe,Jt)|0)+(a>>>13)|0)+(Lt>>>26)|0,Lt&=67108863,v=Math.imul(Bt,se),a=(a=Math.imul(Bt,J))+Math.imul(Ut,se)|0,C=Math.imul(Ut,J),v=v+Math.imul(it,De)|0,a=(a=a+Math.imul(it,Ye)|0)+Math.imul(Ct,De)|0,C=C+Math.imul(Ct,Ye)|0,v=v+Math.imul(Re,ut)|0,a=(a=a+Math.imul(Re,ze)|0)+Math.imul(le,ut)|0,C=C+Math.imul(le,ze)|0,v=v+Math.imul(H,Ce)|0,a=(a=a+Math.imul(H,Je)|0)+Math.imul(j,Ce)|0,C=C+Math.imul(j,Je)|0,v=v+Math.imul(te,At)|0,a=(a=a+Math.imul(te,Tt)|0)+Math.imul(pe,At)|0,C=C+Math.imul(pe,Tt)|0,v=v+Math.imul(ht,He)|0,a=(a=a+Math.imul(ht,$e)|0)+Math.imul(Le,He)|0,C=C+Math.imul(Le,$e)|0;var nn=(B+(v=v+Math.imul(Ie,Rt)|0)|0)+((8191&(a=(a=a+Math.imul(Ie,Jt)|0)+Math.imul(ve,Rt)|0))<<13)|0;B=((C=C+Math.imul(ve,Jt)|0)+(a>>>13)|0)+(nn>>>26)|0,nn&=67108863,v=Math.imul(Bt,De),a=(a=Math.imul(Bt,Ye))+Math.imul(Ut,De)|0,C=Math.imul(Ut,Ye),v=v+Math.imul(it,ut)|0,a=(a=a+Math.imul(it,ze)|0)+Math.imul(Ct,ut)|0,C=C+Math.imul(Ct,ze)|0,v=v+Math.imul(Re,Ce)|0,a=(a=a+Math.imul(Re,Je)|0)+Math.imul(le,Ce)|0,C=C+Math.imul(le,Je)|0,v=v+Math.imul(H,At)|0,a=(a=a+Math.imul(H,Tt)|0)+Math.imul(j,At)|0,C=C+Math.imul(j,Tt)|0,v=v+Math.imul(te,He)|0,a=(a=a+Math.imul(te,$e)|0)+Math.imul(pe,He)|0,C=C+Math.imul(pe,$e)|0;var Bn=(B+(v=v+Math.imul(ht,Rt)|0)|0)+((8191&(a=(a=a+Math.imul(ht,Jt)|0)+Math.imul(Le,Rt)|0))<<13)|0;B=((C=C+Math.imul(Le,Jt)|0)+(a>>>13)|0)+(Bn>>>26)|0,Bn&=67108863,v=Math.imul(Bt,ut),a=(a=Math.imul(Bt,ze))+Math.imul(Ut,ut)|0,C=Math.imul(Ut,ze),v=v+Math.imul(it,Ce)|0,a=(a=a+Math.imul(it,Je)|0)+Math.imul(Ct,Ce)|0,C=C+Math.imul(Ct,Je)|0,v=v+Math.imul(Re,At)|0,a=(a=a+Math.imul(Re,Tt)|0)+Math.imul(le,At)|0,C=C+Math.imul(le,Tt)|0,v=v+Math.imul(H,He)|0,a=(a=a+Math.imul(H,$e)|0)+Math.imul(j,He)|0,C=C+Math.imul(j,$e)|0;var Wn=(B+(v=v+Math.imul(te,Rt)|0)|0)+((8191&(a=(a=a+Math.imul(te,Jt)|0)+Math.imul(pe,Rt)|0))<<13)|0;B=((C=C+Math.imul(pe,Jt)|0)+(a>>>13)|0)+(Wn>>>26)|0,Wn&=67108863,v=Math.imul(Bt,Ce),a=(a=Math.imul(Bt,Je))+Math.imul(Ut,Ce)|0,C=Math.imul(Ut,Je),v=v+Math.imul(it,At)|0,a=(a=a+Math.imul(it,Tt)|0)+Math.imul(Ct,At)|0,C=C+Math.imul(Ct,Tt)|0,v=v+Math.imul(Re,He)|0,a=(a=a+Math.imul(Re,$e)|0)+Math.imul(le,He)|0,C=C+Math.imul(le,$e)|0;var ti=(B+(v=v+Math.imul(H,Rt)|0)|0)+((8191&(a=(a=a+Math.imul(H,Jt)|0)+Math.imul(j,Rt)|0))<<13)|0;B=((C=C+Math.imul(j,Jt)|0)+(a>>>13)|0)+(ti>>>26)|0,ti&=67108863,v=Math.imul(Bt,At),a=(a=Math.imul(Bt,Tt))+Math.imul(Ut,At)|0,C=Math.imul(Ut,Tt),v=v+Math.imul(it,He)|0,a=(a=a+Math.imul(it,$e)|0)+Math.imul(Ct,He)|0,C=C+Math.imul(Ct,$e)|0;var Mn=(B+(v=v+Math.imul(Re,Rt)|0)|0)+((8191&(a=(a=a+Math.imul(Re,Jt)|0)+Math.imul(le,Rt)|0))<<13)|0;B=((C=C+Math.imul(le,Jt)|0)+(a>>>13)|0)+(Mn>>>26)|0,Mn&=67108863,v=Math.imul(Bt,He),a=(a=Math.imul(Bt,$e))+Math.imul(Ut,He)|0,C=Math.imul(Ut,$e);var Ln=(B+(v=v+Math.imul(it,Rt)|0)|0)+((8191&(a=(a=a+Math.imul(it,Jt)|0)+Math.imul(Ct,Rt)|0))<<13)|0;B=((C=C+Math.imul(Ct,Jt)|0)+(a>>>13)|0)+(Ln>>>26)|0,Ln&=67108863;var ai=(B+(v=Math.imul(Bt,Rt))|0)+((8191&(a=(a=Math.imul(Bt,Jt))+Math.imul(Ut,Rt)|0))<<13)|0;return B=((C=Math.imul(Ut,Jt))+(a>>>13)|0)+(ai>>>26)|0,ai&=67108863,L[0]=Vn,L[1]=zn,L[2]=Tn,L[3]=Yn,L[4]=Mt,L[5]=Ge,L[6]=Be,L[7]=ft,L[8]=re,L[9]=Te,L[10]=pt,L[11]=Lt,L[12]=nn,L[13]=Bn,L[14]=Wn,L[15]=ti,L[16]=Mn,L[17]=Ln,L[18]=ai,0!==B&&(L[19]=B,h.length++),h};function Z(w,n,o){return(new Q).mulp(w,n,o)}function Q(w,n){this.x=w,this.y=n}Math.imul||(I=z),s.prototype.mulTo=function(n,o){var h,d=this.length+n.length;return h=10===this.length&&10===n.length?I(this,n,o):d<63?z(this,n,o):d<1024?function W(w,n,o){o.negative=n.negative^w.negative,o.length=w.length+n.length;for(var h=0,d=0,y=0;y<o.length-1;y++){var L=d;d=0;for(var B=67108863&h,v=Math.min(y,n.length-1),a=Math.max(0,y-w.length+1);a<=v;a++){var C=y-a,X=(0|w.words[C])*(0|n.words[a]),Fe=67108863&X;B=67108863&(Fe=Fe+B|0),d+=(L=(L=L+(X/67108864|0)|0)+(Fe>>>26)|0)>>>26,L&=67108863}o.words[y]=B,h=L,L=d}return 0!==h?o.words[y]=h:o.length--,o.strip()}(this,n,o):Z(this,n,o),h},Q.prototype.makeRBT=function(n){for(var o=new Array(n),h=s.prototype._countBits(n)-1,d=0;d<n;d++)o[d]=this.revBin(d,h,n);return o},Q.prototype.revBin=function(n,o,h){if(0===n||n===h-1)return n;for(var d=0,y=0;y<o;y++)d|=(1&n)<<o-y-1,n>>=1;return d},Q.prototype.permute=function(n,o,h,d,y,L){for(var B=0;B<L;B++)d[B]=o[n[B]],y[B]=h[n[B]]},Q.prototype.transform=function(n,o,h,d,y,L){this.permute(L,n,o,h,d,y);for(var B=1;B<y;B<<=1)for(var v=B<<1,a=Math.cos(2*Math.PI/v),C=Math.sin(2*Math.PI/v),N=0;N<y;N+=v)for(var F=a,X=C,Fe=0;Fe<B;Fe++){var ke=h[N+Fe],Ke=d[N+Fe],je=h[N+Fe+B],Ve=d[N+Fe+B],xe=F*je-X*Ve;Ve=F*Ve+X*je,je=xe,h[N+Fe]=ke+je,d[N+Fe]=Ke+Ve,h[N+Fe+B]=ke-je,d[N+Fe+B]=Ke-Ve,Fe!==v&&(xe=a*F-C*X,X=a*X+C*F,F=xe)}},Q.prototype.guessLen13b=function(n,o){var h=1|Math.max(o,n),d=1&h,y=0;for(h=h/2|0;h;h>>>=1)y++;return 1<<y+1+d},Q.prototype.conjugate=function(n,o,h){if(!(h<=1))for(var d=0;d<h/2;d++){var y=n[d];n[d]=n[h-d-1],n[h-d-1]=y,y=o[d],o[d]=-o[h-d-1],o[h-d-1]=-y}},Q.prototype.normalize13b=function(n,o){for(var h=0,d=0;d<o/2;d++){var y=8192*Math.round(n[2*d+1]/o)+Math.round(n[2*d]/o)+h;n[d]=67108863&y,h=y<67108864?0:y/67108864|0}return n},Q.prototype.convert13b=function(n,o,h,d){for(var y=0,L=0;L<o;L++)y+=0|n[L],h[2*L]=8191&y,y>>>=13,h[2*L+1]=8191&y,y>>>=13;for(L=2*o;L<d;++L)h[L]=0;_(0===y),_(0==(-8192&y))},Q.prototype.stub=function(n){for(var o=new Array(n),h=0;h<n;h++)o[h]=0;return o},Q.prototype.mulp=function(n,o,h){var d=2*this.guessLen13b(n.length,o.length),y=this.makeRBT(d),L=this.stub(d),B=new Array(d),v=new Array(d),a=new Array(d),C=new Array(d),N=new Array(d),F=new Array(d),X=h.words;X.length=d,this.convert13b(n.words,n.length,B,d),this.convert13b(o.words,o.length,C,d),this.transform(B,L,v,a,d,y),this.transform(C,L,N,F,d,y);for(var Fe=0;Fe<d;Fe++){var ke=v[Fe]*N[Fe]-a[Fe]*F[Fe];a[Fe]=v[Fe]*F[Fe]+a[Fe]*N[Fe],v[Fe]=ke}return this.conjugate(v,a,d),this.transform(v,a,X,L,d,y),this.conjugate(X,L,d),this.normalize13b(X,d),h.negative=n.negative^o.negative,h.length=n.length+o.length,h.strip()},s.prototype.mul=function(n){var o=new s(null);return o.words=new Array(this.length+n.length),this.mulTo(n,o)},s.prototype.mulf=function(n){var o=new s(null);return o.words=new Array(this.length+n.length),Z(this,n,o)},s.prototype.imul=function(n){return this.clone().mulTo(n,this)},s.prototype.imuln=function(n){_("number"==typeof n),_(n<67108864);for(var o=0,h=0;h<this.length;h++){var d=(0|this.words[h])*n,y=(67108863&d)+(67108863&o);o>>=26,o+=d/67108864|0,o+=y>>>26,this.words[h]=67108863&y}return 0!==o&&(this.words[h]=o,this.length++),this},s.prototype.muln=function(n){return this.clone().imuln(n)},s.prototype.sqr=function(){return this.mul(this)},s.prototype.isqr=function(){return this.imul(this.clone())},s.prototype.pow=function(n){var o=function M(w){for(var n=new Array(w.bitLength()),o=0;o<n.length;o++){var h=o/26|0,d=o%26;n[o]=(w.words[h]&1<<d)>>>d}return n}(n);if(0===o.length)return new s(1);for(var h=this,d=0;d<o.length&&0===o[d];d++,h=h.sqr());if(++d<o.length)for(var y=h.sqr();d<o.length;d++,y=y.sqr())0!==o[d]&&(h=h.mul(y));return h},s.prototype.iushln=function(n){_("number"==typeof n&&n>=0);var y,o=n%26,h=(n-o)/26,d=67108863>>>26-o<<26-o;if(0!==o){var L=0;for(y=0;y<this.length;y++){var B=this.words[y]&d,v=(0|this.words[y])-B<<o;this.words[y]=v|L,L=B>>>26-o}L&&(this.words[y]=L,this.length++)}if(0!==h){for(y=this.length-1;y>=0;y--)this.words[y+h]=this.words[y];for(y=0;y<h;y++)this.words[y]=0;this.length+=h}return this.strip()},s.prototype.ishln=function(n){return _(0===this.negative),this.iushln(n)},s.prototype.iushrn=function(n,o,h){var d;_("number"==typeof n&&n>=0),d=o?(o-o%26)/26:0;var y=n%26,L=Math.min((n-y)/26,this.length),B=67108863^67108863>>>y<<y,v=h;if(d-=L,d=Math.max(0,d),v){for(var a=0;a<L;a++)v.words[a]=this.words[a];v.length=L}if(0!==L)if(this.length>L)for(this.length-=L,a=0;a<this.length;a++)this.words[a]=this.words[a+L];else this.words[0]=0,this.length=1;var C=0;for(a=this.length-1;a>=0&&(0!==C||a>=d);a--){var N=0|this.words[a];this.words[a]=C<<26-y|N>>>y,C=N&B}return v&&0!==C&&(v.words[v.length++]=C),0===this.length&&(this.words[0]=0,this.length=1),this.strip()},s.prototype.ishrn=function(n,o,h){return _(0===this.negative),this.iushrn(n,o,h)},s.prototype.shln=function(n){return this.clone().ishln(n)},s.prototype.ushln=function(n){return this.clone().iushln(n)},s.prototype.shrn=function(n){return this.clone().ishrn(n)},s.prototype.ushrn=function(n){return this.clone().iushrn(n)},s.prototype.testn=function(n){_("number"==typeof n&&n>=0);var o=n%26,h=(n-o)/26,d=1<<o;return!(this.length<=h)&&!!(this.words[h]&d)},s.prototype.imaskn=function(n){_("number"==typeof n&&n>=0);var o=n%26,h=(n-o)/26;if(_(0===this.negative,"imaskn works only with positive numbers"),this.length<=h)return this;if(0!==o&&h++,this.length=Math.min(h,this.length),0!==o){var d=67108863^67108863>>>o<<o;this.words[this.length-1]&=d}return this.strip()},s.prototype.maskn=function(n){return this.clone().imaskn(n)},s.prototype.iaddn=function(n){return _("number"==typeof n),_(n<67108864),n<0?this.isubn(-n):0!==this.negative?1===this.length&&(0|this.words[0])<n?(this.words[0]=n-(0|this.words[0]),this.negative=0,this):(this.negative=0,this.isubn(n),this.negative=1,this):this._iaddn(n)},s.prototype._iaddn=function(n){this.words[0]+=n;for(var o=0;o<this.length&&this.words[o]>=67108864;o++)this.words[o]-=67108864,o===this.length-1?this.words[o+1]=1:this.words[o+1]++;return this.length=Math.max(this.length,o+1),this},s.prototype.isubn=function(n){if(_("number"==typeof n),_(n<67108864),n<0)return this.iaddn(-n);if(0!==this.negative)return this.negative=0,this.iaddn(n),this.negative=1,this;if(this.words[0]-=n,1===this.length&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var o=0;o<this.length&&this.words[o]<0;o++)this.words[o]+=67108864,this.words[o+1]-=1;return this.strip()},s.prototype.addn=function(n){return this.clone().iaddn(n)},s.prototype.subn=function(n){return this.clone().isubn(n)},s.prototype.iabs=function(){return this.negative=0,this},s.prototype.abs=function(){return this.clone().iabs()},s.prototype._ishlnsubmul=function(n,o,h){var y,d=n.length+h;this._expand(d);var L,B=0;for(y=0;y<n.length;y++){L=(0|this.words[y+h])+B;var v=(0|n.words[y])*o;B=((L-=67108863&v)>>26)-(v/67108864|0),this.words[y+h]=67108863&L}for(;y<this.length-h;y++)B=(L=(0|this.words[y+h])+B)>>26,this.words[y+h]=67108863&L;if(0===B)return this.strip();for(_(-1===B),B=0,y=0;y<this.length;y++)B=(L=-(0|this.words[y])+B)>>26,this.words[y]=67108863&L;return this.negative=1,this.strip()},s.prototype._wordDiv=function(n,o){var h=(this.length,n.length),d=this.clone(),y=n,L=0|y.words[y.length-1];0!==(h=26-this._countBits(L))&&(y=y.ushln(h),d.iushln(h),L=0|y.words[y.length-1]);var a,v=d.length-y.length;if("mod"!==o){(a=new s(null)).length=v+1,a.words=new Array(a.length);for(var C=0;C<a.length;C++)a.words[C]=0}var N=d.clone()._ishlnsubmul(y,1,v);0===N.negative&&(d=N,a&&(a.words[v]=1));for(var F=v-1;F>=0;F--){var X=67108864*(0|d.words[y.length+F])+(0|d.words[y.length+F-1]);for(X=Math.min(X/L|0,67108863),d._ishlnsubmul(y,X,F);0!==d.negative;)X--,d.negative=0,d._ishlnsubmul(y,1,F),d.isZero()||(d.negative^=1);a&&(a.words[F]=X)}return a&&a.strip(),d.strip(),"div"!==o&&0!==h&&d.iushrn(h),{div:a||null,mod:d}},s.prototype.divmod=function(n,o,h){return _(!n.isZero()),this.isZero()?{div:new s(0),mod:new s(0)}:0!==this.negative&&0===n.negative?(L=this.neg().divmod(n,o),"mod"!==o&&(d=L.div.neg()),"div"!==o&&(y=L.mod.neg(),h&&0!==y.negative&&y.iadd(n)),{div:d,mod:y}):0===this.negative&&0!==n.negative?(L=this.divmod(n.neg(),o),"mod"!==o&&(d=L.div.neg()),{div:d,mod:L.mod}):0!=(this.negative&n.negative)?(L=this.neg().divmod(n.neg(),o),"div"!==o&&(y=L.mod.neg(),h&&0!==y.negative&&y.isub(n)),{div:L.div,mod:y}):n.length>this.length||this.cmp(n)<0?{div:new s(0),mod:this}:1===n.length?"div"===o?{div:this.divn(n.words[0]),mod:null}:"mod"===o?{div:null,mod:new s(this.modn(n.words[0]))}:{div:this.divn(n.words[0]),mod:new s(this.modn(n.words[0]))}:this._wordDiv(n,o);var d,y,L},s.prototype.div=function(n){return this.divmod(n,"div",!1).div},s.prototype.mod=function(n){return this.divmod(n,"mod",!1).mod},s.prototype.umod=function(n){return this.divmod(n,"mod",!0).mod},s.prototype.divRound=function(n){var o=this.divmod(n);if(o.mod.isZero())return o.div;var h=0!==o.div.negative?o.mod.isub(n):o.mod,d=n.ushrn(1),y=n.andln(1),L=h.cmp(d);return L<0||1===y&&0===L?o.div:0!==o.div.negative?o.div.isubn(1):o.div.iaddn(1)},s.prototype.modn=function(n){_(n<=67108863);for(var o=(1<<26)%n,h=0,d=this.length-1;d>=0;d--)h=(o*h+(0|this.words[d]))%n;return h},s.prototype.idivn=function(n){_(n<=67108863);for(var o=0,h=this.length-1;h>=0;h--){var d=(0|this.words[h])+67108864*o;this.words[h]=d/n|0,o=d%n}return this.strip()},s.prototype.divn=function(n){return this.clone().idivn(n)},s.prototype.egcd=function(n){_(0===n.negative),_(!n.isZero());var o=this,h=n.clone();o=0!==o.negative?o.umod(n):o.clone();for(var d=new s(1),y=new s(0),L=new s(0),B=new s(1),v=0;o.isEven()&&h.isEven();)o.iushrn(1),h.iushrn(1),++v;for(var a=h.clone(),C=o.clone();!o.isZero();){for(var N=0,F=1;0==(o.words[0]&F)&&N<26;++N,F<<=1);if(N>0)for(o.iushrn(N);N-- >0;)(d.isOdd()||y.isOdd())&&(d.iadd(a),y.isub(C)),d.iushrn(1),y.iushrn(1);for(var X=0,Fe=1;0==(h.words[0]&Fe)&&X<26;++X,Fe<<=1);if(X>0)for(h.iushrn(X);X-- >0;)(L.isOdd()||B.isOdd())&&(L.iadd(a),B.isub(C)),L.iushrn(1),B.iushrn(1);o.cmp(h)>=0?(o.isub(h),d.isub(L),y.isub(B)):(h.isub(o),L.isub(d),B.isub(y))}return{a:L,b:B,gcd:h.iushln(v)}},s.prototype._invmp=function(n){_(0===n.negative),_(!n.isZero());var N,o=this,h=n.clone();o=0!==o.negative?o.umod(n):o.clone();for(var d=new s(1),y=new s(0),L=h.clone();o.cmpn(1)>0&&h.cmpn(1)>0;){for(var B=0,v=1;0==(o.words[0]&v)&&B<26;++B,v<<=1);if(B>0)for(o.iushrn(B);B-- >0;)d.isOdd()&&d.iadd(L),d.iushrn(1);for(var a=0,C=1;0==(h.words[0]&C)&&a<26;++a,C<<=1);if(a>0)for(h.iushrn(a);a-- >0;)y.isOdd()&&y.iadd(L),y.iushrn(1);o.cmp(h)>=0?(o.isub(h),d.isub(y)):(h.isub(o),y.isub(d))}return(N=0===o.cmpn(1)?d:y).cmpn(0)<0&&N.iadd(n),N},s.prototype.gcd=function(n){if(this.isZero())return n.abs();if(n.isZero())return this.abs();var o=this.clone(),h=n.clone();o.negative=0,h.negative=0;for(var d=0;o.isEven()&&h.isEven();d++)o.iushrn(1),h.iushrn(1);for(;;){for(;o.isEven();)o.iushrn(1);for(;h.isEven();)h.iushrn(1);var y=o.cmp(h);if(y<0){var L=o;o=h,h=L}else if(0===y||0===h.cmpn(1))break;o.isub(h)}return h.iushln(d)},s.prototype.invm=function(n){return this.egcd(n).a.umod(n)},s.prototype.isEven=function(){return 0==(1&this.words[0])},s.prototype.isOdd=function(){return 1==(1&this.words[0])},s.prototype.andln=function(n){return this.words[0]&n},s.prototype.bincn=function(n){_("number"==typeof n);var o=n%26,h=(n-o)/26,d=1<<o;if(this.length<=h)return this._expand(h+1),this.words[h]|=d,this;for(var y=d,L=h;0!==y&&L<this.length;L++){var B=0|this.words[L];y=(B+=y)>>>26,B&=67108863,this.words[L]=B}return 0!==y&&(this.words[L]=y,this.length++),this},s.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},s.prototype.cmpn=function(n){var h,o=n<0;if(0!==this.negative&&!o)return-1;if(0===this.negative&&o)return 1;if(this.strip(),this.length>1)h=1;else{o&&(n=-n),_(n<=67108863,"Number is too big");var d=0|this.words[0];h=d===n?0:d<n?-1:1}return 0!==this.negative?0|-h:h},s.prototype.cmp=function(n){if(0!==this.negative&&0===n.negative)return-1;if(0===this.negative&&0!==n.negative)return 1;var o=this.ucmp(n);return 0!==this.negative?0|-o:o},s.prototype.ucmp=function(n){if(this.length>n.length)return 1;if(this.length<n.length)return-1;for(var o=0,h=this.length-1;h>=0;h--){var d=0|this.words[h],y=0|n.words[h];if(d!==y){d<y?o=-1:d>y&&(o=1);break}}return o},s.prototype.gtn=function(n){return 1===this.cmpn(n)},s.prototype.gt=function(n){return 1===this.cmp(n)},s.prototype.gten=function(n){return this.cmpn(n)>=0},s.prototype.gte=function(n){return this.cmp(n)>=0},s.prototype.ltn=function(n){return-1===this.cmpn(n)},s.prototype.lt=function(n){return-1===this.cmp(n)},s.prototype.lten=function(n){return this.cmpn(n)<=0},s.prototype.lte=function(n){return this.cmp(n)<=0},s.prototype.eqn=function(n){return 0===this.cmpn(n)},s.prototype.eq=function(n){return 0===this.cmp(n)},s.red=function(n){return new $(n)},s.prototype.toRed=function(n){return _(!this.red,"Already a number in reduction context"),_(0===this.negative,"red works only with positives"),n.convertTo(this)._forceRed(n)},s.prototype.fromRed=function(){return _(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},s.prototype._forceRed=function(n){return this.red=n,this},s.prototype.forceRed=function(n){return _(!this.red,"Already a number in reduction context"),this._forceRed(n)},s.prototype.redAdd=function(n){return _(this.red,"redAdd works only with red numbers"),this.red.add(this,n)},s.prototype.redIAdd=function(n){return _(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,n)},s.prototype.redSub=function(n){return _(this.red,"redSub works only with red numbers"),this.red.sub(this,n)},s.prototype.redISub=function(n){return _(this.red,"redISub works only with red numbers"),this.red.isub(this,n)},s.prototype.redShl=function(n){return _(this.red,"redShl works only with red numbers"),this.red.shl(this,n)},s.prototype.redMul=function(n){return _(this.red,"redMul works only with red numbers"),this.red._verify2(this,n),this.red.mul(this,n)},s.prototype.redIMul=function(n){return _(this.red,"redMul works only with red numbers"),this.red._verify2(this,n),this.red.imul(this,n)},s.prototype.redSqr=function(){return _(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},s.prototype.redISqr=function(){return _(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},s.prototype.redSqrt=function(){return _(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},s.prototype.redInvm=function(){return _(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},s.prototype.redNeg=function(){return _(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},s.prototype.redPow=function(n){return _(this.red&&!n.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,n)};var ie={k256:null,p224:null,p192:null,p25519:null};function ae(w,n){this.name=w,this.p=new s(n,16),this.n=this.p.bitLength(),this.k=new s(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function _e(){ae.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function ce(){ae.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function ye(){ae.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function ue(){ae.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function $(w){if("string"==typeof w){var n=s._prime(w);this.m=n.p,this.prime=n}else _(w.gtn(1),"modulus must be greater than 1"),this.m=w,this.prime=null}function he(w){$.call(this,w),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)}ae.prototype._tmp=function(){var n=new s(null);return n.words=new Array(Math.ceil(this.n/13)),n},ae.prototype.ireduce=function(n){var h,o=n;do{this.split(o,this.tmp),h=(o=(o=this.imulK(o)).iadd(this.tmp)).bitLength()}while(h>this.n);var d=h<this.n?-1:o.ucmp(this.p);return 0===d?(o.words[0]=0,o.length=1):d>0?o.isub(this.p):void 0!==o.strip?o.strip():o._strip(),o},ae.prototype.split=function(n,o){n.iushrn(this.n,0,o)},ae.prototype.imulK=function(n){return n.imul(this.k)},E(_e,ae),_e.prototype.split=function(n,o){for(var h=4194303,d=Math.min(n.length,9),y=0;y<d;y++)o.words[y]=n.words[y];if(o.length=d,n.length<=9)return n.words[0]=0,void(n.length=1);var L=n.words[9];for(o.words[o.length++]=L&h,y=10;y<n.length;y++){var B=0|n.words[y];n.words[y-10]=(B&h)<<4|L>>>22,L=B}L>>>=22,n.words[y-10]=L,0===L&&n.length>10?n.length-=10:n.length-=9},_e.prototype.imulK=function(n){n.words[n.length]=0,n.words[n.length+1]=0,n.length+=2;for(var o=0,h=0;h<n.length;h++){var d=0|n.words[h];o+=977*d,n.words[h]=67108863&o,o=64*d+(o/67108864|0)}return 0===n.words[n.length-1]&&(n.length--,0===n.words[n.length-1]&&n.length--),n},E(ce,ae),E(ye,ae),E(ue,ae),ue.prototype.imulK=function(n){for(var o=0,h=0;h<n.length;h++){var d=19*(0|n.words[h])+o,y=67108863&d;d>>>=26,n.words[h]=y,o=d}return 0!==o&&(n.words[n.length++]=o),n},s._prime=function(n){if(ie[n])return ie[n];var o;if("k256"===n)o=new _e;else if("p224"===n)o=new ce;else if("p192"===n)o=new ye;else{if("p25519"!==n)throw new Error("Unknown prime "+n);o=new ue}return ie[n]=o,o},$.prototype._verify1=function(n){_(0===n.negative,"red works only with positives"),_(n.red,"red works only with red numbers")},$.prototype._verify2=function(n,o){_(0==(n.negative|o.negative),"red works only with positives"),_(n.red&&n.red===o.red,"red works only with red numbers")},$.prototype.imod=function(n){return this.prime?this.prime.ireduce(n)._forceRed(this):n.umod(this.m)._forceRed(this)},$.prototype.neg=function(n){return n.isZero()?n.clone():this.m.sub(n)._forceRed(this)},$.prototype.add=function(n,o){this._verify2(n,o);var h=n.add(o);return h.cmp(this.m)>=0&&h.isub(this.m),h._forceRed(this)},$.prototype.iadd=function(n,o){this._verify2(n,o);var h=n.iadd(o);return h.cmp(this.m)>=0&&h.isub(this.m),h},$.prototype.sub=function(n,o){this._verify2(n,o);var h=n.sub(o);return h.cmpn(0)<0&&h.iadd(this.m),h._forceRed(this)},$.prototype.isub=function(n,o){this._verify2(n,o);var h=n.isub(o);return h.cmpn(0)<0&&h.iadd(this.m),h},$.prototype.shl=function(n,o){return this._verify1(n),this.imod(n.ushln(o))},$.prototype.imul=function(n,o){return this._verify2(n,o),this.imod(n.imul(o))},$.prototype.mul=function(n,o){return this._verify2(n,o),this.imod(n.mul(o))},$.prototype.isqr=function(n){return this.imul(n,n.clone())},$.prototype.sqr=function(n){return this.mul(n,n)},$.prototype.sqrt=function(n){if(n.isZero())return n.clone();var o=this.m.andln(3);if(_(o%2==1),3===o){var h=this.m.add(new s(1)).iushrn(2);return this.pow(n,h)}for(var d=this.m.subn(1),y=0;!d.isZero()&&0===d.andln(1);)y++,d.iushrn(1);_(!d.isZero());var L=new s(1).toRed(this),B=L.redNeg(),v=this.m.subn(1).iushrn(1),a=this.m.bitLength();for(a=new s(2*a*a).toRed(this);0!==this.pow(a,v).cmp(B);)a.redIAdd(B);for(var C=this.pow(a,d),N=this.pow(n,d.addn(1).iushrn(1)),F=this.pow(n,d),X=y;0!==F.cmp(L);){for(var Fe=F,ke=0;0!==Fe.cmp(L);ke++)Fe=Fe.redSqr();_(ke<X);var Ke=this.pow(C,new s(1).iushln(X-ke-1));N=N.redMul(Ke),C=Ke.redSqr(),F=F.redMul(C),X=ke}return N},$.prototype.invm=function(n){var o=n._invmp(this.m);return 0!==o.negative?(o.negative=0,this.imod(o).redNeg()):this.imod(o)},$.prototype.pow=function(n,o){if(o.isZero())return new s(1).toRed(this);if(0===o.cmpn(1))return n.clone();var d=new Array(16);d[0]=new s(1).toRed(this),d[1]=n;for(var y=2;y<d.length;y++)d[y]=this.mul(d[y-1],n);var L=d[0],B=0,v=0,a=o.bitLength()%26;for(0===a&&(a=26),y=o.length-1;y>=0;y--){for(var C=o.words[y],N=a-1;N>=0;N--){var F=C>>N&1;(L!==d[0]&&(L=this.sqr(L)),0!==F||0!==B)?(B<<=1,B|=F,(4===++v||0===y&&0===N)&&(L=this.mul(L,d[B]),v=0,B=0)):v=0}a=26}return L},$.prototype.convertTo=function(n){var o=n.umod(this.m);return o===n?o.clone():o},$.prototype.convertFrom=function(n){var o=n.clone();return o.red=null,o},s.mont=function(n){return new he(n)},E(he,$),he.prototype.convertTo=function(n){return this.imod(n.ushln(this.shift))},he.prototype.convertFrom=function(n){var o=this.imod(n.mul(this.rinv));return o.red=null,o},he.prototype.imul=function(n,o){if(n.isZero()||o.isZero())return n.words[0]=0,n.length=1,n;var h=n.imul(o),d=h.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),y=h.isub(d).iushrn(this.shift),L=y;return y.cmp(this.m)>=0?L=y.isub(this.m):y.cmpn(0)<0&&(L=y.iadd(this.m)),L._forceRed(this)},he.prototype.mul=function(n,o){if(n.isZero()||o.isZero())return new s(0)._forceRed(this);var h=n.mul(o),d=h.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),y=h.isub(d).iushrn(this.shift),L=y;return y.cmp(this.m)>=0?L=y.isub(this.m):y.cmpn(0)<0&&(L=y.iadd(this.m)),L._forceRed(this)},he.prototype.invm=function(n){return this.imod(n._invmp(this.m).mul(this.r2))._forceRed(this)}})(Ue=m.nmd(Ue),this)},3999:Ue=>{function q(m,e){if(!m)throw new Error(e||"Assertion failed")}Ue.exports=q,q.equal=function(e,t,_){if(e!=t)throw new Error(_||"Assertion failed: "+e+" != "+t)}},4985:(Ue,q)=>{"use strict";var m=q;function t(E){return 1===E.length?"0"+E:E}function _(E){for(var s="",D=0;D<E.length;D++)s+=t(E[D].toString(16));return s}m.toArray=function e(E,s){if(Array.isArray(E))return E.slice();if(!E)return[];var D=[];if("string"!=typeof E){for(var u=0;u<E.length;u++)D[u]=0|E[u];return D}if("hex"===s){(E=E.replace(/[^a-z0-9]+/gi,"")).length%2!=0&&(E="0"+E);for(u=0;u<E.length;u+=2)D.push(parseInt(E[u]+E[u+1],16))}else for(u=0;u<E.length;u++){var k=E.charCodeAt(u),p=k>>8,S=255&k;p?D.push(p,S):D.push(S)}return D},m.zero2=t,m.toHex=_,m.encode=function(s,D){return"hex"===D?_(s):s}},74:(Ue,q,m)=>{"use strict";Object.defineProperty(q,"__esModule",{value:!0});var e=m(9614);Object.keys(e).forEach(function(t){"default"!==t&&Object.defineProperty(q,t,{enumerable:!0,get:function(){return e[t]}})})},2675:(Ue,q,m)=>{"use strict";var e=m(7183);q.certificate=m(6053);var t=e.define("RSAPrivateKey",function(){this.seq().obj(this.key("version").int(),this.key("modulus").int(),this.key("publicExponent").int(),this.key("privateExponent").int(),this.key("prime1").int(),this.key("prime2").int(),this.key("exponent1").int(),this.key("exponent2").int(),this.key("coefficient").int())});q.RSAPrivateKey=t;var _=e.define("RSAPublicKey",function(){this.seq().obj(this.key("modulus").int(),this.key("publicExponent").int())});q.RSAPublicKey=_;var E=e.define("SubjectPublicKeyInfo",function(){this.seq().obj(this.key("algorithm").use(s),this.key("subjectPublicKey").bitstr())});q.PublicKey=E;var s=e.define("AlgorithmIdentifier",function(){this.seq().obj(this.key("algorithm").objid(),this.key("none").null_().optional(),this.key("curve").objid().optional(),this.key("params").seq().obj(this.key("p").int(),this.key("q").int(),this.key("g").int()).optional())}),D=e.define("PrivateKeyInfo",function(){this.seq().obj(this.key("version").int(),this.key("algorithm").use(s),this.key("subjectPrivateKey").octstr())});q.PrivateKey=D;var u=e.define("EncryptedPrivateKeyInfo",function(){this.seq().obj(this.key("algorithm").seq().obj(this.key("id").objid(),this.key("decrypt").seq().obj(this.key("kde").seq().obj(this.key("id").objid(),this.key("kdeparams").seq().obj(this.key("salt").octstr(),this.key("iters").int())),this.key("cipher").seq().obj(this.key("algo").objid(),this.key("iv").octstr()))),this.key("subjectPrivateKey").octstr())});q.EncryptedPrivateKey=u;var k=e.define("DSAPrivateKey",function(){this.seq().obj(this.key("version").int(),this.key("p").int(),this.key("q").int(),this.key("g").int(),this.key("pub_key").int(),this.key("priv_key").int())});q.DSAPrivateKey=k,q.DSAparam=e.define("DSAparam",function(){this.int()});var p=e.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=p;var S=e.define("ECParameters",function(){this.choice({namedCurve:this.objid()})});q.signature=e.define("signature",function(){this.seq().obj(this.key("r").int(),this.key("s").int())})},6053:(Ue,q,m)=>{"use strict";var e=m(7183),t=e.define("Time",function(){this.choice({utcTime:this.utctime(),generalTime:this.gentime()})}),_=e.define("AttributeTypeValue",function(){this.seq().obj(this.key("type").objid(),this.key("value").any())}),E=e.define("AlgorithmIdentifier",function(){this.seq().obj(this.key("algorithm").objid(),this.key("parameters").optional(),this.key("curve").objid().optional())}),s=e.define("SubjectPublicKeyInfo",function(){this.seq().obj(this.key("algorithm").use(E),this.key("subjectPublicKey").bitstr())}),D=e.define("RelativeDistinguishedName",function(){this.setof(_)}),u=e.define("RDNSequence",function(){this.seqof(D)}),k=e.define("Name",function(){this.choice({rdnSequence:this.use(u)})}),p=e.define("Validity",function(){this.seq().obj(this.key("notBefore").use(t),this.key("notAfter").use(t))}),S=e.define("Extension",function(){this.seq().obj(this.key("extnID").objid(),this.key("critical").bool().def(!1),this.key("extnValue").octstr())}),A=e.define("TBSCertificate",function(){this.seq().obj(this.key("version").explicit(0).int().optional(),this.key("serialNumber").int(),this.key("signature").use(E),this.key("issuer").use(k),this.key("validity").use(p),this.key("subject").use(k),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())}),P=e.define("X509Certificate",function(){this.seq().obj(this.key("tbsCertificate").use(A),this.key("signatureAlgorithm").use(E),this.key("signatureValue").bitstr())});Ue.exports=P},520:(Ue,q,m)=>{var e=/Proc-Type: 4,ENCRYPTED[\n\r]+DEK-Info: AES-((?:128)|(?:192)|(?:256))-CBC,([0-9A-H]+)[\n\r]+([0-9A-z\n\r+/=]+)[\n\r]+/m,t=/^-----BEGIN ((?:.*? KEY)|CERTIFICATE)-----/m,_=/^-----BEGIN ((?:.*? KEY)|CERTIFICATE)-----([0-9A-z\n\r+/=]+)-----END \1-----$/m,E=m(153),s=m(3170),D=m(9708).Buffer;Ue.exports=function(u,k){var A,p=u.toString(),S=p.match(e);if(S){var M="aes"+S[1],z=D.from(S[2],"hex"),I=D.from(S[3].replace(/[\r\n]/g,""),"base64"),W=E(k,z.slice(0,8),parseInt(S[1],10)).key,Z=[],Q=s.createDecipheriv(M,W,z);Z.push(Q.update(I)),Z.push(Q.final()),A=D.concat(Z)}else{var P=p.match(_);A=D.from(P[2].replace(/[\r\n]/g,""),"base64")}return{tag:p.match(t)[1],data:A}}},5752:(Ue,q,m)=>{var e=m(2675),t=m(2562),_=m(520),E=m(3170),s=m(4540),D=m(9708).Buffer;function u(p){var S;"object"==typeof p&&!D.isBuffer(p)&&(S=p.passphrase,p=p.key),"string"==typeof p&&(p=D.from(p));var z,I,A=_(p,S),P=A.tag,M=A.data;switch(P){case"CERTIFICATE":I=e.certificate.decode(M,"der").tbsCertificate.subjectPublicKeyInfo;case"PUBLIC KEY":switch(I||(I=e.PublicKey.decode(M,"der")),z=I.algorithm.algorithm.join(".")){case"1.2.840.113549.1.1.1":return e.RSAPublicKey.decode(I.subjectPublicKey.data,"der");case"1.2.840.10045.2.1":return I.subjectPrivateKey=I.subjectPublicKey,{type:"ec",data:I};case"1.2.840.10040.4.1":return I.algorithm.params.pub_key=e.DSAparam.decode(I.subjectPublicKey.data,"der"),{type:"dsa",data:I.algorithm.params};default:throw new Error("unknown key id "+z)}case"ENCRYPTED PRIVATE KEY":M=function k(p,S){var A=p.algorithm.decrypt.kde.kdeparams.salt,P=parseInt(p.algorithm.decrypt.kde.kdeparams.iters.toString(),10),M=t[p.algorithm.decrypt.cipher.algo.join(".")],z=p.algorithm.decrypt.cipher.iv,I=p.subjectPrivateKey,W=parseInt(M.split("-")[1],10)/8,Z=s.pbkdf2Sync(S,A,P,W,"sha1"),Q=E.createDecipheriv(M,Z,z),ie=[];return ie.push(Q.update(I)),ie.push(Q.final()),D.concat(ie)}(M=e.EncryptedPrivateKey.decode(M,"der"),S);case"PRIVATE KEY":switch(z=(I=e.PrivateKey.decode(M,"der")).algorithm.algorithm.join(".")){case"1.2.840.113549.1.1.1":return e.RSAPrivateKey.decode(I.subjectPrivateKey,"der");case"1.2.840.10045.2.1":return{curve:I.algorithm.curve,privateKey:e.ECPrivateKey.decode(I.subjectPrivateKey,"der").privateKey};case"1.2.840.10040.4.1":return I.algorithm.params.priv_key=e.DSAparam.decode(I.subjectPrivateKey,"der"),{type:"dsa",params:I.algorithm.params};default:throw new Error("unknown key id "+z)}case"RSA PUBLIC KEY":return e.RSAPublicKey.decode(M,"der");case"RSA PRIVATE KEY":return e.RSAPrivateKey.decode(M,"der");case"DSA PRIVATE KEY":return{type:"dsa",params:e.DSAPrivateKey.decode(M,"der")};case"EC PRIVATE KEY":return{curve:(M=e.ECPrivateKey.decode(M,"der")).parameters.value,privateKey:M.privateKey};default:throw new Error("unknown key type "+P)}}Ue.exports=u,u.signature=e.signature},4540:(Ue,q,m)=>{q.pbkdf2=m(8460),q.pbkdf2Sync=m(2351)},8460:(Ue,q,m)=>{var D,A,e=m(9708).Buffer,t=m(4842),_=m(6910),E=m(2351),s=m(815),u=global.crypto&&global.crypto.subtle,k={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"},p=[];function P(){return A||(A=global.process&&global.process.nextTick?global.process.nextTick:global.queueMicrotask?global.queueMicrotask:global.setImmediate?global.setImmediate:global.setTimeout)}function M(I,W,Z,Q,ie){return u.importKey("raw",I,{name:"PBKDF2"},!1,["deriveBits"]).then(function(ae){return u.deriveBits({name:"PBKDF2",salt:W,iterations:Z,hash:{name:ie}},ae,Q<<3)}).then(function(ae){return e.from(ae)})}Ue.exports=function(I,W,Z,Q,ie,ae){"function"==typeof ie&&(ae=ie,ie=void 0);var _e=k[(ie=ie||"sha1").toLowerCase()];if(_e&&"function"==typeof global.Promise){if(t(Z,Q),I=s(I,_,"Password"),W=s(W,_,"Salt"),"function"!=typeof ae)throw new Error("No callback provided to pbkdf2");!function z(I,W){I.then(function(Z){P()(function(){W(null,Z)})},function(Z){P()(function(){W(Z)})})}(function S(I){if(global.process&&!global.process.browser||!u||!u.importKey||!u.deriveBits)return Promise.resolve(!1);if(void 0!==p[I])return p[I];var W=M(D=D||e.alloc(8),D,10,128,I).then(function(){return!0}).catch(function(){return!1});return p[I]=W,W}(_e).then(function(ce){return ce?M(I,W,Z,Q,_e):E(I,W,Z,Q,ie)}),ae)}else P()(function(){var ce;try{ce=E(I,W,Z,Q,ie)}catch(ye){return ae(ye)}ae(null,ce)})}},6910:Ue=>{var q;if(global.process&&global.process.browser)q="utf-8";else if(global.process&&global.process.version){q=parseInt(process.version.split(".")[0].slice(1),10)>=6?"utf-8":"binary"}else q="utf-8";Ue.exports=q},4842:Ue=>{var q=Math.pow(2,30)-1;Ue.exports=function(m,e){if("number"!=typeof m)throw new TypeError("Iterations not a number");if(m<0)throw new TypeError("Bad iterations");if("number"!=typeof e)throw new TypeError("Key length not a number");if(e<0||e>q||e!=e)throw new TypeError("Bad key length")}},2351:(Ue,q,m)=>{var e=m(2726),t=m(5351),_=m(1001),E=m(9708).Buffer,s=m(4842),D=m(6910),u=m(815),k=E.alloc(128),p={md5:16,sha1:20,sha224:28,sha256:32,sha384:48,sha512:64,rmd160:20,ripemd160:20};function S(M,z,I){var W=function A(M){function z(W){return _(M).update(W).digest()}function I(W){return(new t).update(W).digest()}return"rmd160"===M||"ripemd160"===M?I:"md5"===M?e:z}(M),Z="sha512"===M||"sha384"===M?128:64;z.length>Z?z=W(z):z.length<Z&&(z=E.concat([z,k],Z));for(var Q=E.allocUnsafe(Z+p[M]),ie=E.allocUnsafe(Z+p[M]),ae=0;ae<Z;ae++)Q[ae]=54^z[ae],ie[ae]=92^z[ae];var _e=E.allocUnsafe(Z+I+4);Q.copy(_e,0,0,Z),this.ipad1=_e,this.ipad2=Q,this.opad=ie,this.alg=M,this.blocksize=Z,this.hash=W,this.size=p[M]}S.prototype.run=function(M,z){return M.copy(z,this.blocksize),this.hash(z).copy(this.opad,this.blocksize),this.hash(this.opad)},Ue.exports=function P(M,z,I,W,Z){s(I,W);var Q=new S(Z=Z||"sha1",M=u(M,D,"Password"),(z=u(z,D,"Salt")).length),ie=E.allocUnsafe(W),ae=E.allocUnsafe(z.length+4);z.copy(ae,0,0,z.length);for(var _e=0,ce=p[Z],ye=Math.ceil(W/ce),ue=1;ue<=ye;ue++){ae.writeUInt32BE(ue,z.length);for(var $=Q.run(ae,Q.ipad1),he=$,w=1;w<I;w++){he=Q.run(he,Q.ipad2);for(var n=0;n<ce;n++)$[n]^=he[n]}$.copy(ie,_e),_e+=ce}return ie}},815:(Ue,q,m)=>{var e=m(9708).Buffer;Ue.exports=function(t,_,E){if(e.isBuffer(t))return t;if("string"==typeof t)return e.from(t,_);if(ArrayBuffer.isView(t))return e.from(t.buffer);throw new TypeError(E+" must be a string, a Buffer, a typed array or a DataView")}},1113:(Ue,q,m)=>{q.publicEncrypt=m(3653),q.privateDecrypt=m(9674),q.privateEncrypt=function(t,_){return q.publicEncrypt(t,_,!0)},q.publicDecrypt=function(t,_){return q.privateDecrypt(t,_,!0)}},2096:(Ue,q,m)=>{var e=m(145),t=m(9708).Buffer;function _(E){var s=t.allocUnsafe(4);return s.writeUInt32BE(E,0),s}Ue.exports=function(E,s){for(var k,D=t.alloc(0),u=0;D.length<s;)k=_(u++),D=t.concat([D,e("sha1").update(E).update(k).digest()]);return D.slice(0,s)}},6807:function(Ue,q,m){(function(e,t){"use strict";function _(w,n){if(!w)throw new Error(n||"Assertion failed")}function E(w,n){w.super_=n;var o=function(){};o.prototype=n.prototype,w.prototype=new o,w.prototype.constructor=w}function s(w,n,o){if(s.isBN(w))return w;this.negative=0,this.words=null,this.length=0,this.red=null,null!==w&&(("le"===n||"be"===n)&&(o=n,n=10),this._init(w||0,n||10,o||"be"))}var D;"object"==typeof e?e.exports=s:t.BN=s,s.BN=s,s.wordSize=26;try{D=typeof window<"u"&&typeof window.Buffer<"u"?window.Buffer:m(7108).Buffer}catch{}function u(w,n){var o=w.charCodeAt(n);return o>=65&&o<=70?o-55:o>=97&&o<=102?o-87:o-48&15}function k(w,n,o){var h=u(w,o);return o-1>=n&&(h|=u(w,o-1)<<4),h}function p(w,n,o,h){for(var d=0,y=Math.min(w.length,o),L=n;L<y;L++){var B=w.charCodeAt(L)-48;d*=h,d+=B>=49?B-49+10:B>=17?B-17+10:B}return d}s.isBN=function(n){return n instanceof s||null!==n&&"object"==typeof n&&n.constructor.wordSize===s.wordSize&&Array.isArray(n.words)},s.max=function(n,o){return n.cmp(o)>0?n:o},s.min=function(n,o){return n.cmp(o)<0?n:o},s.prototype._init=function(n,o,h){if("number"==typeof n)return this._initNumber(n,o,h);if("object"==typeof n)return this._initArray(n,o,h);"hex"===o&&(o=16),_(o===(0|o)&&o>=2&&o<=36);var d=0;"-"===(n=n.toString().replace(/\s+/g,""))[0]&&(d++,this.negative=1),d<n.length&&(16===o?this._parseHex(n,d,h):(this._parseBase(n,o,d),"le"===h&&this._initArray(this.toArray(),o,h)))},s.prototype._initNumber=function(n,o,h){n<0&&(this.negative=1,n=-n),n<67108864?(this.words=[67108863&n],this.length=1):n<4503599627370496?(this.words=[67108863&n,n/67108864&67108863],this.length=2):(_(n<9007199254740992),this.words=[67108863&n,n/67108864&67108863,1],this.length=3),"le"===h&&this._initArray(this.toArray(),o,h)},s.prototype._initArray=function(n,o,h){if(_("number"==typeof n.length),n.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(n.length/3),this.words=new Array(this.length);for(var d=0;d<this.length;d++)this.words[d]=0;var y,L,B=0;if("be"===h)for(d=n.length-1,y=0;d>=0;d-=3)L=n[d]|n[d-1]<<8|n[d-2]<<16,this.words[y]|=L<<B&67108863,this.words[y+1]=L>>>26-B&67108863,(B+=24)>=26&&(B-=26,y++);else if("le"===h)for(d=0,y=0;d<n.length;d+=3)L=n[d]|n[d+1]<<8|n[d+2]<<16,this.words[y]|=L<<B&67108863,this.words[y+1]=L>>>26-B&67108863,(B+=24)>=26&&(B-=26,y++);return this.strip()},s.prototype._parseHex=function(n,o,h){this.length=Math.ceil((n.length-o)/6),this.words=new Array(this.length);for(var d=0;d<this.length;d++)this.words[d]=0;var B,y=0,L=0;if("be"===h)for(d=n.length-1;d>=o;d-=2)B=k(n,o,d)<<y,this.words[L]|=67108863&B,y>=18?(y-=18,L+=1,this.words[L]|=B>>>26):y+=8;else for(d=(n.length-o)%2==0?o+1:o;d<n.length;d+=2)B=k(n,o,d)<<y,this.words[L]|=67108863&B,y>=18?(y-=18,L+=1,this.words[L]|=B>>>26):y+=8;this.strip()},s.prototype._parseBase=function(n,o,h){this.words=[0],this.length=1;for(var d=0,y=1;y<=67108863;y*=o)d++;d--,y=y/o|0;for(var L=n.length-h,B=L%d,v=Math.min(L,L-B)+h,a=0,C=h;C<v;C+=d)a=p(n,C,C+d,o),this.imuln(y),this.words[0]+a<67108864?this.words[0]+=a:this._iaddn(a);if(0!==B){var N=1;for(a=p(n,C,n.length,o),C=0;C<B;C++)N*=o;this.imuln(N),this.words[0]+a<67108864?this.words[0]+=a:this._iaddn(a)}this.strip()},s.prototype.copy=function(n){n.words=new Array(this.length);for(var o=0;o<this.length;o++)n.words[o]=this.words[o];n.length=this.length,n.negative=this.negative,n.red=this.red},s.prototype.clone=function(){var n=new s(null);return this.copy(n),n},s.prototype._expand=function(n){for(;this.length<n;)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"],A=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],P=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];function z(w,n,o){o.negative=n.negative^w.negative;var h=w.length+n.length|0;o.length=h,h=h-1|0;var d=0|w.words[0],y=0|n.words[0],L=d*y,B=67108863&L,v=L/67108864|0;o.words[0]=B;for(var a=1;a<h;a++){for(var C=v>>>26,N=67108863&v,F=Math.min(a,n.length-1),X=Math.max(0,a-w.length+1);X<=F;X++){var Fe=a-X|0;C+=(L=(d=0|w.words[Fe])*(y=0|n.words[X])+N)/67108864|0,N=67108863&L}o.words[a]=0|N,v=0|C}return 0!==v?o.words[a]=0|v:o.length--,o.strip()}s.prototype.toString=function(n,o){var h;if(o=0|o||1,16===(n=n||10)||"hex"===n){h="";for(var d=0,y=0,L=0;L<this.length;L++){var B=this.words[L],v=(16777215&(B<<d|y)).toString(16);h=0!==(y=B>>>24-d&16777215)||L!==this.length-1?S[6-v.length]+v+h:v+h,(d+=2)>=26&&(d-=26,L--)}for(0!==y&&(h=y.toString(16)+h);h.length%o!=0;)h="0"+h;return 0!==this.negative&&(h="-"+h),h}if(n===(0|n)&&n>=2&&n<=36){var a=A[n],C=P[n];h="";var N=this.clone();for(N.negative=0;!N.isZero();){var F=N.modn(C).toString(n);h=(N=N.idivn(C)).isZero()?F+h:S[a-F.length]+F+h}for(this.isZero()&&(h="0"+h);h.length%o!=0;)h="0"+h;return 0!==this.negative&&(h="-"+h),h}_(!1,"Base should be between 2 and 36")},s.prototype.toNumber=function(){var n=this.words[0];return 2===this.length?n+=67108864*this.words[1]:3===this.length&&1===this.words[2]?n+=4503599627370496+67108864*this.words[1]:this.length>2&&_(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-n:n},s.prototype.toJSON=function(){return this.toString(16)},s.prototype.toBuffer=function(n,o){return _(typeof D<"u"),this.toArrayLike(D,n,o)},s.prototype.toArray=function(n,o){return this.toArrayLike(Array,n,o)},s.prototype.toArrayLike=function(n,o,h){var d=this.byteLength(),y=h||Math.max(1,d);_(d<=y,"byte array longer than desired length"),_(y>0,"Requested array length <= 0"),this.strip();var v,a,L="le"===o,B=new n(y),C=this.clone();if(L){for(a=0;!C.isZero();a++)v=C.andln(255),C.iushrn(8),B[a]=v;for(;a<y;a++)B[a]=0}else{for(a=0;a<y-d;a++)B[a]=0;for(a=0;!C.isZero();a++)v=C.andln(255),C.iushrn(8),B[y-a-1]=v}return B},Math.clz32?s.prototype._countBits=function(n){return 32-Math.clz32(n)}:s.prototype._countBits=function(n){var o=n,h=0;return o>=4096&&(h+=13,o>>>=13),o>=64&&(h+=7,o>>>=7),o>=8&&(h+=4,o>>>=4),o>=2&&(h+=2,o>>>=2),h+o},s.prototype._zeroBits=function(n){if(0===n)return 26;var o=n,h=0;return 0==(8191&o)&&(h+=13,o>>>=13),0==(127&o)&&(h+=7,o>>>=7),0==(15&o)&&(h+=4,o>>>=4),0==(3&o)&&(h+=2,o>>>=2),0==(1&o)&&h++,h},s.prototype.bitLength=function(){var n=this.words[this.length-1],o=this._countBits(n);return 26*(this.length-1)+o},s.prototype.zeroBits=function(){if(this.isZero())return 0;for(var n=0,o=0;o<this.length;o++){var h=this._zeroBits(this.words[o]);if(n+=h,26!==h)break}return n},s.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},s.prototype.toTwos=function(n){return 0!==this.negative?this.abs().inotn(n).iaddn(1):this.clone()},s.prototype.fromTwos=function(n){return this.testn(n-1)?this.notn(n).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(n){for(;this.length<n.length;)this.words[this.length++]=0;for(var o=0;o<n.length;o++)this.words[o]=this.words[o]|n.words[o];return this.strip()},s.prototype.ior=function(n){return _(0==(this.negative|n.negative)),this.iuor(n)},s.prototype.or=function(n){return this.length>n.length?this.clone().ior(n):n.clone().ior(this)},s.prototype.uor=function(n){return this.length>n.length?this.clone().iuor(n):n.clone().iuor(this)},s.prototype.iuand=function(n){var o;o=this.length>n.length?n:this;for(var h=0;h<o.length;h++)this.words[h]=this.words[h]&n.words[h];return this.length=o.length,this.strip()},s.prototype.iand=function(n){return _(0==(this.negative|n.negative)),this.iuand(n)},s.prototype.and=function(n){return this.length>n.length?this.clone().iand(n):n.clone().iand(this)},s.prototype.uand=function(n){return this.length>n.length?this.clone().iuand(n):n.clone().iuand(this)},s.prototype.iuxor=function(n){var o,h;this.length>n.length?(o=this,h=n):(o=n,h=this);for(var d=0;d<h.length;d++)this.words[d]=o.words[d]^h.words[d];if(this!==o)for(;d<o.length;d++)this.words[d]=o.words[d];return this.length=o.length,this.strip()},s.prototype.ixor=function(n){return _(0==(this.negative|n.negative)),this.iuxor(n)},s.prototype.xor=function(n){return this.length>n.length?this.clone().ixor(n):n.clone().ixor(this)},s.prototype.uxor=function(n){return this.length>n.length?this.clone().iuxor(n):n.clone().iuxor(this)},s.prototype.inotn=function(n){_("number"==typeof n&&n>=0);var o=0|Math.ceil(n/26),h=n%26;this._expand(o),h>0&&o--;for(var d=0;d<o;d++)this.words[d]=67108863&~this.words[d];return h>0&&(this.words[d]=~this.words[d]&67108863>>26-h),this.strip()},s.prototype.notn=function(n){return this.clone().inotn(n)},s.prototype.setn=function(n,o){_("number"==typeof n&&n>=0);var h=n/26|0,d=n%26;return this._expand(h+1),this.words[h]=o?this.words[h]|1<<d:this.words[h]&~(1<<d),this.strip()},s.prototype.iadd=function(n){var o,h,d;if(0!==this.negative&&0===n.negative)return this.negative=0,o=this.isub(n),this.negative^=1,this._normSign();if(0===this.negative&&0!==n.negative)return n.negative=0,o=this.isub(n),n.negative=1,o._normSign();this.length>n.length?(h=this,d=n):(h=n,d=this);for(var y=0,L=0;L<d.length;L++)o=(0|h.words[L])+(0|d.words[L])+y,this.words[L]=67108863&o,y=o>>>26;for(;0!==y&&L<h.length;L++)o=(0|h.words[L])+y,this.words[L]=67108863&o,y=o>>>26;if(this.length=h.length,0!==y)this.words[this.length]=y,this.length++;else if(h!==this)for(;L<h.length;L++)this.words[L]=h.words[L];return this},s.prototype.add=function(n){var o;return 0!==n.negative&&0===this.negative?(n.negative=0,o=this.sub(n),n.negative^=1,o):0===n.negative&&0!==this.negative?(this.negative=0,o=n.sub(this),this.negative=1,o):this.length>n.length?this.clone().iadd(n):n.clone().iadd(this)},s.prototype.isub=function(n){if(0!==n.negative){n.negative=0;var o=this.iadd(n);return n.negative=1,o._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(n),this.negative=1,this._normSign();var d,y,h=this.cmp(n);if(0===h)return this.negative=0,this.length=1,this.words[0]=0,this;h>0?(d=this,y=n):(d=n,y=this);for(var L=0,B=0;B<y.length;B++)L=(o=(0|d.words[B])-(0|y.words[B])+L)>>26,this.words[B]=67108863&o;for(;0!==L&&B<d.length;B++)L=(o=(0|d.words[B])+L)>>26,this.words[B]=67108863&o;if(0===L&&B<d.length&&d!==this)for(;B<d.length;B++)this.words[B]=d.words[B];return this.length=Math.max(this.length,B),d!==this&&(this.negative=1),this.strip()},s.prototype.sub=function(n){return this.clone().isub(n)};var I=function(n,o,h){var v,a,C,d=n.words,y=o.words,L=h.words,B=0,N=0|d[0],F=8191&N,X=N>>>13,Fe=0|d[1],ke=8191&Fe,Ke=Fe>>>13,je=0|d[2],Ve=8191&je,xe=je>>>13,Ze=0|d[3],Ie=8191&Ze,ve=Ze>>>13,et=0|d[4],ht=8191&et,Le=et>>>13,Ae=0|d[5],te=8191&Ae,pe=Ae>>>13,ee=0|d[6],H=8191&ee,j=ee>>>13,Oe=0|d[7],Re=8191&Oe,le=Oe>>>13,_t=0|d[8],it=8191&_t,Ct=_t>>>13,un=0|d[9],Bt=8191&un,Ut=un>>>13,yn=0|y[0],Xt=8191&yn,Gt=yn>>>13,In=0|y[1],rn=8191&In,tn=In>>>13,pn=0|y[2],tt=8191&pn,vt=pn>>>13,dt=0|y[3],se=8191&dt,J=dt>>>13,oe=0|y[4],De=8191&oe,Ye=oe>>>13,Dt=0|y[5],ut=8191&Dt,ze=Dt>>>13,Me=0|y[6],Ce=8191&Me,Je=Me>>>13,zt=0|y[7],At=8191&zt,Tt=zt>>>13,Ht=0|y[8],He=8191&Ht,$e=Ht>>>13,$t=0|y[9],Rt=8191&$t,Jt=$t>>>13;h.negative=n.negative^o.negative,h.length=19;var Vn=(B+(v=Math.imul(F,Xt))|0)+((8191&(a=(a=Math.imul(F,Gt))+Math.imul(X,Xt)|0))<<13)|0;B=((C=Math.imul(X,Gt))+(a>>>13)|0)+(Vn>>>26)|0,Vn&=67108863,v=Math.imul(ke,Xt),a=(a=Math.imul(ke,Gt))+Math.imul(Ke,Xt)|0,C=Math.imul(Ke,Gt);var zn=(B+(v=v+Math.imul(F,rn)|0)|0)+((8191&(a=(a=a+Math.imul(F,tn)|0)+Math.imul(X,rn)|0))<<13)|0;B=((C=C+Math.imul(X,tn)|0)+(a>>>13)|0)+(zn>>>26)|0,zn&=67108863,v=Math.imul(Ve,Xt),a=(a=Math.imul(Ve,Gt))+Math.imul(xe,Xt)|0,C=Math.imul(xe,Gt),v=v+Math.imul(ke,rn)|0,a=(a=a+Math.imul(ke,tn)|0)+Math.imul(Ke,rn)|0,C=C+Math.imul(Ke,tn)|0;var Tn=(B+(v=v+Math.imul(F,tt)|0)|0)+((8191&(a=(a=a+Math.imul(F,vt)|0)+Math.imul(X,tt)|0))<<13)|0;B=((C=C+Math.imul(X,vt)|0)+(a>>>13)|0)+(Tn>>>26)|0,Tn&=67108863,v=Math.imul(Ie,Xt),a=(a=Math.imul(Ie,Gt))+Math.imul(ve,Xt)|0,C=Math.imul(ve,Gt),v=v+Math.imul(Ve,rn)|0,a=(a=a+Math.imul(Ve,tn)|0)+Math.imul(xe,rn)|0,C=C+Math.imul(xe,tn)|0,v=v+Math.imul(ke,tt)|0,a=(a=a+Math.imul(ke,vt)|0)+Math.imul(Ke,tt)|0,C=C+Math.imul(Ke,vt)|0;var Yn=(B+(v=v+Math.imul(F,se)|0)|0)+((8191&(a=(a=a+Math.imul(F,J)|0)+Math.imul(X,se)|0))<<13)|0;B=((C=C+Math.imul(X,J)|0)+(a>>>13)|0)+(Yn>>>26)|0,Yn&=67108863,v=Math.imul(ht,Xt),a=(a=Math.imul(ht,Gt))+Math.imul(Le,Xt)|0,C=Math.imul(Le,Gt),v=v+Math.imul(Ie,rn)|0,a=(a=a+Math.imul(Ie,tn)|0)+Math.imul(ve,rn)|0,C=C+Math.imul(ve,tn)|0,v=v+Math.imul(Ve,tt)|0,a=(a=a+Math.imul(Ve,vt)|0)+Math.imul(xe,tt)|0,C=C+Math.imul(xe,vt)|0,v=v+Math.imul(ke,se)|0,a=(a=a+Math.imul(ke,J)|0)+Math.imul(Ke,se)|0,C=C+Math.imul(Ke,J)|0;var Mt=(B+(v=v+Math.imul(F,De)|0)|0)+((8191&(a=(a=a+Math.imul(F,Ye)|0)+Math.imul(X,De)|0))<<13)|0;B=((C=C+Math.imul(X,Ye)|0)+(a>>>13)|0)+(Mt>>>26)|0,Mt&=67108863,v=Math.imul(te,Xt),a=(a=Math.imul(te,Gt))+Math.imul(pe,Xt)|0,C=Math.imul(pe,Gt),v=v+Math.imul(ht,rn)|0,a=(a=a+Math.imul(ht,tn)|0)+Math.imul(Le,rn)|0,C=C+Math.imul(Le,tn)|0,v=v+Math.imul(Ie,tt)|0,a=(a=a+Math.imul(Ie,vt)|0)+Math.imul(ve,tt)|0,C=C+Math.imul(ve,vt)|0,v=v+Math.imul(Ve,se)|0,a=(a=a+Math.imul(Ve,J)|0)+Math.imul(xe,se)|0,C=C+Math.imul(xe,J)|0,v=v+Math.imul(ke,De)|0,a=(a=a+Math.imul(ke,Ye)|0)+Math.imul(Ke,De)|0,C=C+Math.imul(Ke,Ye)|0;var Ge=(B+(v=v+Math.imul(F,ut)|0)|0)+((8191&(a=(a=a+Math.imul(F,ze)|0)+Math.imul(X,ut)|0))<<13)|0;B=((C=C+Math.imul(X,ze)|0)+(a>>>13)|0)+(Ge>>>26)|0,Ge&=67108863,v=Math.imul(H,Xt),a=(a=Math.imul(H,Gt))+Math.imul(j,Xt)|0,C=Math.imul(j,Gt),v=v+Math.imul(te,rn)|0,a=(a=a+Math.imul(te,tn)|0)+Math.imul(pe,rn)|0,C=C+Math.imul(pe,tn)|0,v=v+Math.imul(ht,tt)|0,a=(a=a+Math.imul(ht,vt)|0)+Math.imul(Le,tt)|0,C=C+Math.imul(Le,vt)|0,v=v+Math.imul(Ie,se)|0,a=(a=a+Math.imul(Ie,J)|0)+Math.imul(ve,se)|0,C=C+Math.imul(ve,J)|0,v=v+Math.imul(Ve,De)|0,a=(a=a+Math.imul(Ve,Ye)|0)+Math.imul(xe,De)|0,C=C+Math.imul(xe,Ye)|0,v=v+Math.imul(ke,ut)|0,a=(a=a+Math.imul(ke,ze)|0)+Math.imul(Ke,ut)|0,C=C+Math.imul(Ke,ze)|0;var Be=(B+(v=v+Math.imul(F,Ce)|0)|0)+((8191&(a=(a=a+Math.imul(F,Je)|0)+Math.imul(X,Ce)|0))<<13)|0;B=((C=C+Math.imul(X,Je)|0)+(a>>>13)|0)+(Be>>>26)|0,Be&=67108863,v=Math.imul(Re,Xt),a=(a=Math.imul(Re,Gt))+Math.imul(le,Xt)|0,C=Math.imul(le,Gt),v=v+Math.imul(H,rn)|0,a=(a=a+Math.imul(H,tn)|0)+Math.imul(j,rn)|0,C=C+Math.imul(j,tn)|0,v=v+Math.imul(te,tt)|0,a=(a=a+Math.imul(te,vt)|0)+Math.imul(pe,tt)|0,C=C+Math.imul(pe,vt)|0,v=v+Math.imul(ht,se)|0,a=(a=a+Math.imul(ht,J)|0)+Math.imul(Le,se)|0,C=C+Math.imul(Le,J)|0,v=v+Math.imul(Ie,De)|0,a=(a=a+Math.imul(Ie,Ye)|0)+Math.imul(ve,De)|0,C=C+Math.imul(ve,Ye)|0,v=v+Math.imul(Ve,ut)|0,a=(a=a+Math.imul(Ve,ze)|0)+Math.imul(xe,ut)|0,C=C+Math.imul(xe,ze)|0,v=v+Math.imul(ke,Ce)|0,a=(a=a+Math.imul(ke,Je)|0)+Math.imul(Ke,Ce)|0,C=C+Math.imul(Ke,Je)|0;var ft=(B+(v=v+Math.imul(F,At)|0)|0)+((8191&(a=(a=a+Math.imul(F,Tt)|0)+Math.imul(X,At)|0))<<13)|0;B=((C=C+Math.imul(X,Tt)|0)+(a>>>13)|0)+(ft>>>26)|0,ft&=67108863,v=Math.imul(it,Xt),a=(a=Math.imul(it,Gt))+Math.imul(Ct,Xt)|0,C=Math.imul(Ct,Gt),v=v+Math.imul(Re,rn)|0,a=(a=a+Math.imul(Re,tn)|0)+Math.imul(le,rn)|0,C=C+Math.imul(le,tn)|0,v=v+Math.imul(H,tt)|0,a=(a=a+Math.imul(H,vt)|0)+Math.imul(j,tt)|0,C=C+Math.imul(j,vt)|0,v=v+Math.imul(te,se)|0,a=(a=a+Math.imul(te,J)|0)+Math.imul(pe,se)|0,C=C+Math.imul(pe,J)|0,v=v+Math.imul(ht,De)|0,a=(a=a+Math.imul(ht,Ye)|0)+Math.imul(Le,De)|0,C=C+Math.imul(Le,Ye)|0,v=v+Math.imul(Ie,ut)|0,a=(a=a+Math.imul(Ie,ze)|0)+Math.imul(ve,ut)|0,C=C+Math.imul(ve,ze)|0,v=v+Math.imul(Ve,Ce)|0,a=(a=a+Math.imul(Ve,Je)|0)+Math.imul(xe,Ce)|0,C=C+Math.imul(xe,Je)|0,v=v+Math.imul(ke,At)|0,a=(a=a+Math.imul(ke,Tt)|0)+Math.imul(Ke,At)|0,C=C+Math.imul(Ke,Tt)|0;var re=(B+(v=v+Math.imul(F,He)|0)|0)+((8191&(a=(a=a+Math.imul(F,$e)|0)+Math.imul(X,He)|0))<<13)|0;B=((C=C+Math.imul(X,$e)|0)+(a>>>13)|0)+(re>>>26)|0,re&=67108863,v=Math.imul(Bt,Xt),a=(a=Math.imul(Bt,Gt))+Math.imul(Ut,Xt)|0,C=Math.imul(Ut,Gt),v=v+Math.imul(it,rn)|0,a=(a=a+Math.imul(it,tn)|0)+Math.imul(Ct,rn)|0,C=C+Math.imul(Ct,tn)|0,v=v+Math.imul(Re,tt)|0,a=(a=a+Math.imul(Re,vt)|0)+Math.imul(le,tt)|0,C=C+Math.imul(le,vt)|0,v=v+Math.imul(H,se)|0,a=(a=a+Math.imul(H,J)|0)+Math.imul(j,se)|0,C=C+Math.imul(j,J)|0,v=v+Math.imul(te,De)|0,a=(a=a+Math.imul(te,Ye)|0)+Math.imul(pe,De)|0,C=C+Math.imul(pe,Ye)|0,v=v+Math.imul(ht,ut)|0,a=(a=a+Math.imul(ht,ze)|0)+Math.imul(Le,ut)|0,C=C+Math.imul(Le,ze)|0,v=v+Math.imul(Ie,Ce)|0,a=(a=a+Math.imul(Ie,Je)|0)+Math.imul(ve,Ce)|0,C=C+Math.imul(ve,Je)|0,v=v+Math.imul(Ve,At)|0,a=(a=a+Math.imul(Ve,Tt)|0)+Math.imul(xe,At)|0,C=C+Math.imul(xe,Tt)|0,v=v+Math.imul(ke,He)|0,a=(a=a+Math.imul(ke,$e)|0)+Math.imul(Ke,He)|0,C=C+Math.imul(Ke,$e)|0;var Te=(B+(v=v+Math.imul(F,Rt)|0)|0)+((8191&(a=(a=a+Math.imul(F,Jt)|0)+Math.imul(X,Rt)|0))<<13)|0;B=((C=C+Math.imul(X,Jt)|0)+(a>>>13)|0)+(Te>>>26)|0,Te&=67108863,v=Math.imul(Bt,rn),a=(a=Math.imul(Bt,tn))+Math.imul(Ut,rn)|0,C=Math.imul(Ut,tn),v=v+Math.imul(it,tt)|0,a=(a=a+Math.imul(it,vt)|0)+Math.imul(Ct,tt)|0,C=C+Math.imul(Ct,vt)|0,v=v+Math.imul(Re,se)|0,a=(a=a+Math.imul(Re,J)|0)+Math.imul(le,se)|0,C=C+Math.imul(le,J)|0,v=v+Math.imul(H,De)|0,a=(a=a+Math.imul(H,Ye)|0)+Math.imul(j,De)|0,C=C+Math.imul(j,Ye)|0,v=v+Math.imul(te,ut)|0,a=(a=a+Math.imul(te,ze)|0)+Math.imul(pe,ut)|0,C=C+Math.imul(pe,ze)|0,v=v+Math.imul(ht,Ce)|0,a=(a=a+Math.imul(ht,Je)|0)+Math.imul(Le,Ce)|0,C=C+Math.imul(Le,Je)|0,v=v+Math.imul(Ie,At)|0,a=(a=a+Math.imul(Ie,Tt)|0)+Math.imul(ve,At)|0,C=C+Math.imul(ve,Tt)|0,v=v+Math.imul(Ve,He)|0,a=(a=a+Math.imul(Ve,$e)|0)+Math.imul(xe,He)|0,C=C+Math.imul(xe,$e)|0;var pt=(B+(v=v+Math.imul(ke,Rt)|0)|0)+((8191&(a=(a=a+Math.imul(ke,Jt)|0)+Math.imul(Ke,Rt)|0))<<13)|0;B=((C=C+Math.imul(Ke,Jt)|0)+(a>>>13)|0)+(pt>>>26)|0,pt&=67108863,v=Math.imul(Bt,tt),a=(a=Math.imul(Bt,vt))+Math.imul(Ut,tt)|0,C=Math.imul(Ut,vt),v=v+Math.imul(it,se)|0,a=(a=a+Math.imul(it,J)|0)+Math.imul(Ct,se)|0,C=C+Math.imul(Ct,J)|0,v=v+Math.imul(Re,De)|0,a=(a=a+Math.imul(Re,Ye)|0)+Math.imul(le,De)|0,C=C+Math.imul(le,Ye)|0,v=v+Math.imul(H,ut)|0,a=(a=a+Math.imul(H,ze)|0)+Math.imul(j,ut)|0,C=C+Math.imul(j,ze)|0,v=v+Math.imul(te,Ce)|0,a=(a=a+Math.imul(te,Je)|0)+Math.imul(pe,Ce)|0,C=C+Math.imul(pe,Je)|0,v=v+Math.imul(ht,At)|0,a=(a=a+Math.imul(ht,Tt)|0)+Math.imul(Le,At)|0,C=C+Math.imul(Le,Tt)|0,v=v+Math.imul(Ie,He)|0,a=(a=a+Math.imul(Ie,$e)|0)+Math.imul(ve,He)|0,C=C+Math.imul(ve,$e)|0;var Lt=(B+(v=v+Math.imul(Ve,Rt)|0)|0)+((8191&(a=(a=a+Math.imul(Ve,Jt)|0)+Math.imul(xe,Rt)|0))<<13)|0;B=((C=C+Math.imul(xe,Jt)|0)+(a>>>13)|0)+(Lt>>>26)|0,Lt&=67108863,v=Math.imul(Bt,se),a=(a=Math.imul(Bt,J))+Math.imul(Ut,se)|0,C=Math.imul(Ut,J),v=v+Math.imul(it,De)|0,a=(a=a+Math.imul(it,Ye)|0)+Math.imul(Ct,De)|0,C=C+Math.imul(Ct,Ye)|0,v=v+Math.imul(Re,ut)|0,a=(a=a+Math.imul(Re,ze)|0)+Math.imul(le,ut)|0,C=C+Math.imul(le,ze)|0,v=v+Math.imul(H,Ce)|0,a=(a=a+Math.imul(H,Je)|0)+Math.imul(j,Ce)|0,C=C+Math.imul(j,Je)|0,v=v+Math.imul(te,At)|0,a=(a=a+Math.imul(te,Tt)|0)+Math.imul(pe,At)|0,C=C+Math.imul(pe,Tt)|0,v=v+Math.imul(ht,He)|0,a=(a=a+Math.imul(ht,$e)|0)+Math.imul(Le,He)|0,C=C+Math.imul(Le,$e)|0;var nn=(B+(v=v+Math.imul(Ie,Rt)|0)|0)+((8191&(a=(a=a+Math.imul(Ie,Jt)|0)+Math.imul(ve,Rt)|0))<<13)|0;B=((C=C+Math.imul(ve,Jt)|0)+(a>>>13)|0)+(nn>>>26)|0,nn&=67108863,v=Math.imul(Bt,De),a=(a=Math.imul(Bt,Ye))+Math.imul(Ut,De)|0,C=Math.imul(Ut,Ye),v=v+Math.imul(it,ut)|0,a=(a=a+Math.imul(it,ze)|0)+Math.imul(Ct,ut)|0,C=C+Math.imul(Ct,ze)|0,v=v+Math.imul(Re,Ce)|0,a=(a=a+Math.imul(Re,Je)|0)+Math.imul(le,Ce)|0,C=C+Math.imul(le,Je)|0,v=v+Math.imul(H,At)|0,a=(a=a+Math.imul(H,Tt)|0)+Math.imul(j,At)|0,C=C+Math.imul(j,Tt)|0,v=v+Math.imul(te,He)|0,a=(a=a+Math.imul(te,$e)|0)+Math.imul(pe,He)|0,C=C+Math.imul(pe,$e)|0;var Bn=(B+(v=v+Math.imul(ht,Rt)|0)|0)+((8191&(a=(a=a+Math.imul(ht,Jt)|0)+Math.imul(Le,Rt)|0))<<13)|0;B=((C=C+Math.imul(Le,Jt)|0)+(a>>>13)|0)+(Bn>>>26)|0,Bn&=67108863,v=Math.imul(Bt,ut),a=(a=Math.imul(Bt,ze))+Math.imul(Ut,ut)|0,C=Math.imul(Ut,ze),v=v+Math.imul(it,Ce)|0,a=(a=a+Math.imul(it,Je)|0)+Math.imul(Ct,Ce)|0,C=C+Math.imul(Ct,Je)|0,v=v+Math.imul(Re,At)|0,a=(a=a+Math.imul(Re,Tt)|0)+Math.imul(le,At)|0,C=C+Math.imul(le,Tt)|0,v=v+Math.imul(H,He)|0,a=(a=a+Math.imul(H,$e)|0)+Math.imul(j,He)|0,C=C+Math.imul(j,$e)|0;var Wn=(B+(v=v+Math.imul(te,Rt)|0)|0)+((8191&(a=(a=a+Math.imul(te,Jt)|0)+Math.imul(pe,Rt)|0))<<13)|0;B=((C=C+Math.imul(pe,Jt)|0)+(a>>>13)|0)+(Wn>>>26)|0,Wn&=67108863,v=Math.imul(Bt,Ce),a=(a=Math.imul(Bt,Je))+Math.imul(Ut,Ce)|0,C=Math.imul(Ut,Je),v=v+Math.imul(it,At)|0,a=(a=a+Math.imul(it,Tt)|0)+Math.imul(Ct,At)|0,C=C+Math.imul(Ct,Tt)|0,v=v+Math.imul(Re,He)|0,a=(a=a+Math.imul(Re,$e)|0)+Math.imul(le,He)|0,C=C+Math.imul(le,$e)|0;var ti=(B+(v=v+Math.imul(H,Rt)|0)|0)+((8191&(a=(a=a+Math.imul(H,Jt)|0)+Math.imul(j,Rt)|0))<<13)|0;B=((C=C+Math.imul(j,Jt)|0)+(a>>>13)|0)+(ti>>>26)|0,ti&=67108863,v=Math.imul(Bt,At),a=(a=Math.imul(Bt,Tt))+Math.imul(Ut,At)|0,C=Math.imul(Ut,Tt),v=v+Math.imul(it,He)|0,a=(a=a+Math.imul(it,$e)|0)+Math.imul(Ct,He)|0,C=C+Math.imul(Ct,$e)|0;var Mn=(B+(v=v+Math.imul(Re,Rt)|0)|0)+((8191&(a=(a=a+Math.imul(Re,Jt)|0)+Math.imul(le,Rt)|0))<<13)|0;B=((C=C+Math.imul(le,Jt)|0)+(a>>>13)|0)+(Mn>>>26)|0,Mn&=67108863,v=Math.imul(Bt,He),a=(a=Math.imul(Bt,$e))+Math.imul(Ut,He)|0,C=Math.imul(Ut,$e);var Ln=(B+(v=v+Math.imul(it,Rt)|0)|0)+((8191&(a=(a=a+Math.imul(it,Jt)|0)+Math.imul(Ct,Rt)|0))<<13)|0;B=((C=C+Math.imul(Ct,Jt)|0)+(a>>>13)|0)+(Ln>>>26)|0,Ln&=67108863;var ai=(B+(v=Math.imul(Bt,Rt))|0)+((8191&(a=(a=Math.imul(Bt,Jt))+Math.imul(Ut,Rt)|0))<<13)|0;return B=((C=Math.imul(Ut,Jt))+(a>>>13)|0)+(ai>>>26)|0,ai&=67108863,L[0]=Vn,L[1]=zn,L[2]=Tn,L[3]=Yn,L[4]=Mt,L[5]=Ge,L[6]=Be,L[7]=ft,L[8]=re,L[9]=Te,L[10]=pt,L[11]=Lt,L[12]=nn,L[13]=Bn,L[14]=Wn,L[15]=ti,L[16]=Mn,L[17]=Ln,L[18]=ai,0!==B&&(L[19]=B,h.length++),h};function Z(w,n,o){return(new Q).mulp(w,n,o)}function Q(w,n){this.x=w,this.y=n}Math.imul||(I=z),s.prototype.mulTo=function(n,o){var h,d=this.length+n.length;return h=10===this.length&&10===n.length?I(this,n,o):d<63?z(this,n,o):d<1024?function W(w,n,o){o.negative=n.negative^w.negative,o.length=w.length+n.length;for(var h=0,d=0,y=0;y<o.length-1;y++){var L=d;d=0;for(var B=67108863&h,v=Math.min(y,n.length-1),a=Math.max(0,y-w.length+1);a<=v;a++){var C=y-a,X=(0|w.words[C])*(0|n.words[a]),Fe=67108863&X;B=67108863&(Fe=Fe+B|0),d+=(L=(L=L+(X/67108864|0)|0)+(Fe>>>26)|0)>>>26,L&=67108863}o.words[y]=B,h=L,L=d}return 0!==h?o.words[y]=h:o.length--,o.strip()}(this,n,o):Z(this,n,o),h},Q.prototype.makeRBT=function(n){for(var o=new Array(n),h=s.prototype._countBits(n)-1,d=0;d<n;d++)o[d]=this.revBin(d,h,n);return o},Q.prototype.revBin=function(n,o,h){if(0===n||n===h-1)return n;for(var d=0,y=0;y<o;y++)d|=(1&n)<<o-y-1,n>>=1;return d},Q.prototype.permute=function(n,o,h,d,y,L){for(var B=0;B<L;B++)d[B]=o[n[B]],y[B]=h[n[B]]},Q.prototype.transform=function(n,o,h,d,y,L){this.permute(L,n,o,h,d,y);for(var B=1;B<y;B<<=1)for(var v=B<<1,a=Math.cos(2*Math.PI/v),C=Math.sin(2*Math.PI/v),N=0;N<y;N+=v)for(var F=a,X=C,Fe=0;Fe<B;Fe++){var ke=h[N+Fe],Ke=d[N+Fe],je=h[N+Fe+B],Ve=d[N+Fe+B],xe=F*je-X*Ve;Ve=F*Ve+X*je,je=xe,h[N+Fe]=ke+je,d[N+Fe]=Ke+Ve,h[N+Fe+B]=ke-je,d[N+Fe+B]=Ke-Ve,Fe!==v&&(xe=a*F-C*X,X=a*X+C*F,F=xe)}},Q.prototype.guessLen13b=function(n,o){var h=1|Math.max(o,n),d=1&h,y=0;for(h=h/2|0;h;h>>>=1)y++;return 1<<y+1+d},Q.prototype.conjugate=function(n,o,h){if(!(h<=1))for(var d=0;d<h/2;d++){var y=n[d];n[d]=n[h-d-1],n[h-d-1]=y,y=o[d],o[d]=-o[h-d-1],o[h-d-1]=-y}},Q.prototype.normalize13b=function(n,o){for(var h=0,d=0;d<o/2;d++){var y=8192*Math.round(n[2*d+1]/o)+Math.round(n[2*d]/o)+h;n[d]=67108863&y,h=y<67108864?0:y/67108864|0}return n},Q.prototype.convert13b=function(n,o,h,d){for(var y=0,L=0;L<o;L++)y+=0|n[L],h[2*L]=8191&y,y>>>=13,h[2*L+1]=8191&y,y>>>=13;for(L=2*o;L<d;++L)h[L]=0;_(0===y),_(0==(-8192&y))},Q.prototype.stub=function(n){for(var o=new Array(n),h=0;h<n;h++)o[h]=0;return o},Q.prototype.mulp=function(n,o,h){var d=2*this.guessLen13b(n.length,o.length),y=this.makeRBT(d),L=this.stub(d),B=new Array(d),v=new Array(d),a=new Array(d),C=new Array(d),N=new Array(d),F=new Array(d),X=h.words;X.length=d,this.convert13b(n.words,n.length,B,d),this.convert13b(o.words,o.length,C,d),this.transform(B,L,v,a,d,y),this.transform(C,L,N,F,d,y);for(var Fe=0;Fe<d;Fe++){var ke=v[Fe]*N[Fe]-a[Fe]*F[Fe];a[Fe]=v[Fe]*F[Fe]+a[Fe]*N[Fe],v[Fe]=ke}return this.conjugate(v,a,d),this.transform(v,a,X,L,d,y),this.conjugate(X,L,d),this.normalize13b(X,d),h.negative=n.negative^o.negative,h.length=n.length+o.length,h.strip()},s.prototype.mul=function(n){var o=new s(null);return o.words=new Array(this.length+n.length),this.mulTo(n,o)},s.prototype.mulf=function(n){var o=new s(null);return o.words=new Array(this.length+n.length),Z(this,n,o)},s.prototype.imul=function(n){return this.clone().mulTo(n,this)},s.prototype.imuln=function(n){_("number"==typeof n),_(n<67108864);for(var o=0,h=0;h<this.length;h++){var d=(0|this.words[h])*n,y=(67108863&d)+(67108863&o);o>>=26,o+=d/67108864|0,o+=y>>>26,this.words[h]=67108863&y}return 0!==o&&(this.words[h]=o,this.length++),this},s.prototype.muln=function(n){return this.clone().imuln(n)},s.prototype.sqr=function(){return this.mul(this)},s.prototype.isqr=function(){return this.imul(this.clone())},s.prototype.pow=function(n){var o=function M(w){for(var n=new Array(w.bitLength()),o=0;o<n.length;o++){var h=o/26|0,d=o%26;n[o]=(w.words[h]&1<<d)>>>d}return n}(n);if(0===o.length)return new s(1);for(var h=this,d=0;d<o.length&&0===o[d];d++,h=h.sqr());if(++d<o.length)for(var y=h.sqr();d<o.length;d++,y=y.sqr())0!==o[d]&&(h=h.mul(y));return h},s.prototype.iushln=function(n){_("number"==typeof n&&n>=0);var y,o=n%26,h=(n-o)/26,d=67108863>>>26-o<<26-o;if(0!==o){var L=0;for(y=0;y<this.length;y++){var B=this.words[y]&d,v=(0|this.words[y])-B<<o;this.words[y]=v|L,L=B>>>26-o}L&&(this.words[y]=L,this.length++)}if(0!==h){for(y=this.length-1;y>=0;y--)this.words[y+h]=this.words[y];for(y=0;y<h;y++)this.words[y]=0;this.length+=h}return this.strip()},s.prototype.ishln=function(n){return _(0===this.negative),this.iushln(n)},s.prototype.iushrn=function(n,o,h){var d;_("number"==typeof n&&n>=0),d=o?(o-o%26)/26:0;var y=n%26,L=Math.min((n-y)/26,this.length),B=67108863^67108863>>>y<<y,v=h;if(d-=L,d=Math.max(0,d),v){for(var a=0;a<L;a++)v.words[a]=this.words[a];v.length=L}if(0!==L)if(this.length>L)for(this.length-=L,a=0;a<this.length;a++)this.words[a]=this.words[a+L];else this.words[0]=0,this.length=1;var C=0;for(a=this.length-1;a>=0&&(0!==C||a>=d);a--){var N=0|this.words[a];this.words[a]=C<<26-y|N>>>y,C=N&B}return v&&0!==C&&(v.words[v.length++]=C),0===this.length&&(this.words[0]=0,this.length=1),this.strip()},s.prototype.ishrn=function(n,o,h){return _(0===this.negative),this.iushrn(n,o,h)},s.prototype.shln=function(n){return this.clone().ishln(n)},s.prototype.ushln=function(n){return this.clone().iushln(n)},s.prototype.shrn=function(n){return this.clone().ishrn(n)},s.prototype.ushrn=function(n){return this.clone().iushrn(n)},s.prototype.testn=function(n){_("number"==typeof n&&n>=0);var o=n%26,h=(n-o)/26,d=1<<o;return!(this.length<=h)&&!!(this.words[h]&d)},s.prototype.imaskn=function(n){_("number"==typeof n&&n>=0);var o=n%26,h=(n-o)/26;if(_(0===this.negative,"imaskn works only with positive numbers"),this.length<=h)return this;if(0!==o&&h++,this.length=Math.min(h,this.length),0!==o){var d=67108863^67108863>>>o<<o;this.words[this.length-1]&=d}return this.strip()},s.prototype.maskn=function(n){return this.clone().imaskn(n)},s.prototype.iaddn=function(n){return _("number"==typeof n),_(n<67108864),n<0?this.isubn(-n):0!==this.negative?1===this.length&&(0|this.words[0])<n?(this.words[0]=n-(0|this.words[0]),this.negative=0,this):(this.negative=0,this.isubn(n),this.negative=1,this):this._iaddn(n)},s.prototype._iaddn=function(n){this.words[0]+=n;for(var o=0;o<this.length&&this.words[o]>=67108864;o++)this.words[o]-=67108864,o===this.length-1?this.words[o+1]=1:this.words[o+1]++;return this.length=Math.max(this.length,o+1),this},s.prototype.isubn=function(n){if(_("number"==typeof n),_(n<67108864),n<0)return this.iaddn(-n);if(0!==this.negative)return this.negative=0,this.iaddn(n),this.negative=1,this;if(this.words[0]-=n,1===this.length&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var o=0;o<this.length&&this.words[o]<0;o++)this.words[o]+=67108864,this.words[o+1]-=1;return this.strip()},s.prototype.addn=function(n){return this.clone().iaddn(n)},s.prototype.subn=function(n){return this.clone().isubn(n)},s.prototype.iabs=function(){return this.negative=0,this},s.prototype.abs=function(){return this.clone().iabs()},s.prototype._ishlnsubmul=function(n,o,h){var y,d=n.length+h;this._expand(d);var L,B=0;for(y=0;y<n.length;y++){L=(0|this.words[y+h])+B;var v=(0|n.words[y])*o;B=((L-=67108863&v)>>26)-(v/67108864|0),this.words[y+h]=67108863&L}for(;y<this.length-h;y++)B=(L=(0|this.words[y+h])+B)>>26,this.words[y+h]=67108863&L;if(0===B)return this.strip();for(_(-1===B),B=0,y=0;y<this.length;y++)B=(L=-(0|this.words[y])+B)>>26,this.words[y]=67108863&L;return this.negative=1,this.strip()},s.prototype._wordDiv=function(n,o){var h=(this.length,n.length),d=this.clone(),y=n,L=0|y.words[y.length-1];0!==(h=26-this._countBits(L))&&(y=y.ushln(h),d.iushln(h),L=0|y.words[y.length-1]);var a,v=d.length-y.length;if("mod"!==o){(a=new s(null)).length=v+1,a.words=new Array(a.length);for(var C=0;C<a.length;C++)a.words[C]=0}var N=d.clone()._ishlnsubmul(y,1,v);0===N.negative&&(d=N,a&&(a.words[v]=1));for(var F=v-1;F>=0;F--){var X=67108864*(0|d.words[y.length+F])+(0|d.words[y.length+F-1]);for(X=Math.min(X/L|0,67108863),d._ishlnsubmul(y,X,F);0!==d.negative;)X--,d.negative=0,d._ishlnsubmul(y,1,F),d.isZero()||(d.negative^=1);a&&(a.words[F]=X)}return a&&a.strip(),d.strip(),"div"!==o&&0!==h&&d.iushrn(h),{div:a||null,mod:d}},s.prototype.divmod=function(n,o,h){return _(!n.isZero()),this.isZero()?{div:new s(0),mod:new s(0)}:0!==this.negative&&0===n.negative?(L=this.neg().divmod(n,o),"mod"!==o&&(d=L.div.neg()),"div"!==o&&(y=L.mod.neg(),h&&0!==y.negative&&y.iadd(n)),{div:d,mod:y}):0===this.negative&&0!==n.negative?(L=this.divmod(n.neg(),o),"mod"!==o&&(d=L.div.neg()),{div:d,mod:L.mod}):0!=(this.negative&n.negative)?(L=this.neg().divmod(n.neg(),o),"div"!==o&&(y=L.mod.neg(),h&&0!==y.negative&&y.isub(n)),{div:L.div,mod:y}):n.length>this.length||this.cmp(n)<0?{div:new s(0),mod:this}:1===n.length?"div"===o?{div:this.divn(n.words[0]),mod:null}:"mod"===o?{div:null,mod:new s(this.modn(n.words[0]))}:{div:this.divn(n.words[0]),mod:new s(this.modn(n.words[0]))}:this._wordDiv(n,o);var d,y,L},s.prototype.div=function(n){return this.divmod(n,"div",!1).div},s.prototype.mod=function(n){return this.divmod(n,"mod",!1).mod},s.prototype.umod=function(n){return this.divmod(n,"mod",!0).mod},s.prototype.divRound=function(n){var o=this.divmod(n);if(o.mod.isZero())return o.div;var h=0!==o.div.negative?o.mod.isub(n):o.mod,d=n.ushrn(1),y=n.andln(1),L=h.cmp(d);return L<0||1===y&&0===L?o.div:0!==o.div.negative?o.div.isubn(1):o.div.iaddn(1)},s.prototype.modn=function(n){_(n<=67108863);for(var o=(1<<26)%n,h=0,d=this.length-1;d>=0;d--)h=(o*h+(0|this.words[d]))%n;return h},s.prototype.idivn=function(n){_(n<=67108863);for(var o=0,h=this.length-1;h>=0;h--){var d=(0|this.words[h])+67108864*o;this.words[h]=d/n|0,o=d%n}return this.strip()},s.prototype.divn=function(n){return this.clone().idivn(n)},s.prototype.egcd=function(n){_(0===n.negative),_(!n.isZero());var o=this,h=n.clone();o=0!==o.negative?o.umod(n):o.clone();for(var d=new s(1),y=new s(0),L=new s(0),B=new s(1),v=0;o.isEven()&&h.isEven();)o.iushrn(1),h.iushrn(1),++v;for(var a=h.clone(),C=o.clone();!o.isZero();){for(var N=0,F=1;0==(o.words[0]&F)&&N<26;++N,F<<=1);if(N>0)for(o.iushrn(N);N-- >0;)(d.isOdd()||y.isOdd())&&(d.iadd(a),y.isub(C)),d.iushrn(1),y.iushrn(1);for(var X=0,Fe=1;0==(h.words[0]&Fe)&&X<26;++X,Fe<<=1);if(X>0)for(h.iushrn(X);X-- >0;)(L.isOdd()||B.isOdd())&&(L.iadd(a),B.isub(C)),L.iushrn(1),B.iushrn(1);o.cmp(h)>=0?(o.isub(h),d.isub(L),y.isub(B)):(h.isub(o),L.isub(d),B.isub(y))}return{a:L,b:B,gcd:h.iushln(v)}},s.prototype._invmp=function(n){_(0===n.negative),_(!n.isZero());var N,o=this,h=n.clone();o=0!==o.negative?o.umod(n):o.clone();for(var d=new s(1),y=new s(0),L=h.clone();o.cmpn(1)>0&&h.cmpn(1)>0;){for(var B=0,v=1;0==(o.words[0]&v)&&B<26;++B,v<<=1);if(B>0)for(o.iushrn(B);B-- >0;)d.isOdd()&&d.iadd(L),d.iushrn(1);for(var a=0,C=1;0==(h.words[0]&C)&&a<26;++a,C<<=1);if(a>0)for(h.iushrn(a);a-- >0;)y.isOdd()&&y.iadd(L),y.iushrn(1);o.cmp(h)>=0?(o.isub(h),d.isub(y)):(h.isub(o),y.isub(d))}return(N=0===o.cmpn(1)?d:y).cmpn(0)<0&&N.iadd(n),N},s.prototype.gcd=function(n){if(this.isZero())return n.abs();if(n.isZero())return this.abs();var o=this.clone(),h=n.clone();o.negative=0,h.negative=0;for(var d=0;o.isEven()&&h.isEven();d++)o.iushrn(1),h.iushrn(1);for(;;){for(;o.isEven();)o.iushrn(1);for(;h.isEven();)h.iushrn(1);var y=o.cmp(h);if(y<0){var L=o;o=h,h=L}else if(0===y||0===h.cmpn(1))break;o.isub(h)}return h.iushln(d)},s.prototype.invm=function(n){return this.egcd(n).a.umod(n)},s.prototype.isEven=function(){return 0==(1&this.words[0])},s.prototype.isOdd=function(){return 1==(1&this.words[0])},s.prototype.andln=function(n){return this.words[0]&n},s.prototype.bincn=function(n){_("number"==typeof n);var o=n%26,h=(n-o)/26,d=1<<o;if(this.length<=h)return this._expand(h+1),this.words[h]|=d,this;for(var y=d,L=h;0!==y&&L<this.length;L++){var B=0|this.words[L];y=(B+=y)>>>26,B&=67108863,this.words[L]=B}return 0!==y&&(this.words[L]=y,this.length++),this},s.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},s.prototype.cmpn=function(n){var h,o=n<0;if(0!==this.negative&&!o)return-1;if(0===this.negative&&o)return 1;if(this.strip(),this.length>1)h=1;else{o&&(n=-n),_(n<=67108863,"Number is too big");var d=0|this.words[0];h=d===n?0:d<n?-1:1}return 0!==this.negative?0|-h:h},s.prototype.cmp=function(n){if(0!==this.negative&&0===n.negative)return-1;if(0===this.negative&&0!==n.negative)return 1;var o=this.ucmp(n);return 0!==this.negative?0|-o:o},s.prototype.ucmp=function(n){if(this.length>n.length)return 1;if(this.length<n.length)return-1;for(var o=0,h=this.length-1;h>=0;h--){var d=0|this.words[h],y=0|n.words[h];if(d!==y){d<y?o=-1:d>y&&(o=1);break}}return o},s.prototype.gtn=function(n){return 1===this.cmpn(n)},s.prototype.gt=function(n){return 1===this.cmp(n)},s.prototype.gten=function(n){return this.cmpn(n)>=0},s.prototype.gte=function(n){return this.cmp(n)>=0},s.prototype.ltn=function(n){return-1===this.cmpn(n)},s.prototype.lt=function(n){return-1===this.cmp(n)},s.prototype.lten=function(n){return this.cmpn(n)<=0},s.prototype.lte=function(n){return this.cmp(n)<=0},s.prototype.eqn=function(n){return 0===this.cmpn(n)},s.prototype.eq=function(n){return 0===this.cmp(n)},s.red=function(n){return new $(n)},s.prototype.toRed=function(n){return _(!this.red,"Already a number in reduction context"),_(0===this.negative,"red works only with positives"),n.convertTo(this)._forceRed(n)},s.prototype.fromRed=function(){return _(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},s.prototype._forceRed=function(n){return this.red=n,this},s.prototype.forceRed=function(n){return _(!this.red,"Already a number in reduction context"),this._forceRed(n)},s.prototype.redAdd=function(n){return _(this.red,"redAdd works only with red numbers"),this.red.add(this,n)},s.prototype.redIAdd=function(n){return _(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,n)},s.prototype.redSub=function(n){return _(this.red,"redSub works only with red numbers"),this.red.sub(this,n)},s.prototype.redISub=function(n){return _(this.red,"redISub works only with red numbers"),this.red.isub(this,n)},s.prototype.redShl=function(n){return _(this.red,"redShl works only with red numbers"),this.red.shl(this,n)},s.prototype.redMul=function(n){return _(this.red,"redMul works only with red numbers"),this.red._verify2(this,n),this.red.mul(this,n)},s.prototype.redIMul=function(n){return _(this.red,"redMul works only with red numbers"),this.red._verify2(this,n),this.red.imul(this,n)},s.prototype.redSqr=function(){return _(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},s.prototype.redISqr=function(){return _(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},s.prototype.redSqrt=function(){return _(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},s.prototype.redInvm=function(){return _(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},s.prototype.redNeg=function(){return _(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},s.prototype.redPow=function(n){return _(this.red&&!n.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,n)};var ie={k256:null,p224:null,p192:null,p25519:null};function ae(w,n){this.name=w,this.p=new s(n,16),this.n=this.p.bitLength(),this.k=new s(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function _e(){ae.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function ce(){ae.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function ye(){ae.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function ue(){ae.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function $(w){if("string"==typeof w){var n=s._prime(w);this.m=n.p,this.prime=n}else _(w.gtn(1),"modulus must be greater than 1"),this.m=w,this.prime=null}function he(w){$.call(this,w),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)}ae.prototype._tmp=function(){var n=new s(null);return n.words=new Array(Math.ceil(this.n/13)),n},ae.prototype.ireduce=function(n){var h,o=n;do{this.split(o,this.tmp),h=(o=(o=this.imulK(o)).iadd(this.tmp)).bitLength()}while(h>this.n);var d=h<this.n?-1:o.ucmp(this.p);return 0===d?(o.words[0]=0,o.length=1):d>0?o.isub(this.p):void 0!==o.strip?o.strip():o._strip(),o},ae.prototype.split=function(n,o){n.iushrn(this.n,0,o)},ae.prototype.imulK=function(n){return n.imul(this.k)},E(_e,ae),_e.prototype.split=function(n,o){for(var h=4194303,d=Math.min(n.length,9),y=0;y<d;y++)o.words[y]=n.words[y];if(o.length=d,n.length<=9)return n.words[0]=0,void(n.length=1);var L=n.words[9];for(o.words[o.length++]=L&h,y=10;y<n.length;y++){var B=0|n.words[y];n.words[y-10]=(B&h)<<4|L>>>22,L=B}L>>>=22,n.words[y-10]=L,0===L&&n.length>10?n.length-=10:n.length-=9},_e.prototype.imulK=function(n){n.words[n.length]=0,n.words[n.length+1]=0,n.length+=2;for(var o=0,h=0;h<n.length;h++){var d=0|n.words[h];o+=977*d,n.words[h]=67108863&o,o=64*d+(o/67108864|0)}return 0===n.words[n.length-1]&&(n.length--,0===n.words[n.length-1]&&n.length--),n},E(ce,ae),E(ye,ae),E(ue,ae),ue.prototype.imulK=function(n){for(var o=0,h=0;h<n.length;h++){var d=19*(0|n.words[h])+o,y=67108863&d;d>>>=26,n.words[h]=y,o=d}return 0!==o&&(n.words[n.length++]=o),n},s._prime=function(n){if(ie[n])return ie[n];var o;if("k256"===n)o=new _e;else if("p224"===n)o=new ce;else if("p192"===n)o=new ye;else{if("p25519"!==n)throw new Error("Unknown prime "+n);o=new ue}return ie[n]=o,o},$.prototype._verify1=function(n){_(0===n.negative,"red works only with positives"),_(n.red,"red works only with red numbers")},$.prototype._verify2=function(n,o){_(0==(n.negative|o.negative),"red works only with positives"),_(n.red&&n.red===o.red,"red works only with red numbers")},$.prototype.imod=function(n){return this.prime?this.prime.ireduce(n)._forceRed(this):n.umod(this.m)._forceRed(this)},$.prototype.neg=function(n){return n.isZero()?n.clone():this.m.sub(n)._forceRed(this)},$.prototype.add=function(n,o){this._verify2(n,o);var h=n.add(o);return h.cmp(this.m)>=0&&h.isub(this.m),h._forceRed(this)},$.prototype.iadd=function(n,o){this._verify2(n,o);var h=n.iadd(o);return h.cmp(this.m)>=0&&h.isub(this.m),h},$.prototype.sub=function(n,o){this._verify2(n,o);var h=n.sub(o);return h.cmpn(0)<0&&h.iadd(this.m),h._forceRed(this)},$.prototype.isub=function(n,o){this._verify2(n,o);var h=n.isub(o);return h.cmpn(0)<0&&h.iadd(this.m),h},$.prototype.shl=function(n,o){return this._verify1(n),this.imod(n.ushln(o))},$.prototype.imul=function(n,o){return this._verify2(n,o),this.imod(n.imul(o))},$.prototype.mul=function(n,o){return this._verify2(n,o),this.imod(n.mul(o))},$.prototype.isqr=function(n){return this.imul(n,n.clone())},$.prototype.sqr=function(n){return this.mul(n,n)},$.prototype.sqrt=function(n){if(n.isZero())return n.clone();var o=this.m.andln(3);if(_(o%2==1),3===o){var h=this.m.add(new s(1)).iushrn(2);return this.pow(n,h)}for(var d=this.m.subn(1),y=0;!d.isZero()&&0===d.andln(1);)y++,d.iushrn(1);_(!d.isZero());var L=new s(1).toRed(this),B=L.redNeg(),v=this.m.subn(1).iushrn(1),a=this.m.bitLength();for(a=new s(2*a*a).toRed(this);0!==this.pow(a,v).cmp(B);)a.redIAdd(B);for(var C=this.pow(a,d),N=this.pow(n,d.addn(1).iushrn(1)),F=this.pow(n,d),X=y;0!==F.cmp(L);){for(var Fe=F,ke=0;0!==Fe.cmp(L);ke++)Fe=Fe.redSqr();_(ke<X);var Ke=this.pow(C,new s(1).iushln(X-ke-1));N=N.redMul(Ke),C=Ke.redSqr(),F=F.redMul(C),X=ke}return N},$.prototype.invm=function(n){var o=n._invmp(this.m);return 0!==o.negative?(o.negative=0,this.imod(o).redNeg()):this.imod(o)},$.prototype.pow=function(n,o){if(o.isZero())return new s(1).toRed(this);if(0===o.cmpn(1))return n.clone();var d=new Array(16);d[0]=new s(1).toRed(this),d[1]=n;for(var y=2;y<d.length;y++)d[y]=this.mul(d[y-1],n);var L=d[0],B=0,v=0,a=o.bitLength()%26;for(0===a&&(a=26),y=o.length-1;y>=0;y--){for(var C=o.words[y],N=a-1;N>=0;N--){var F=C>>N&1;(L!==d[0]&&(L=this.sqr(L)),0!==F||0!==B)?(B<<=1,B|=F,(4===++v||0===y&&0===N)&&(L=this.mul(L,d[B]),v=0,B=0)):v=0}a=26}return L},$.prototype.convertTo=function(n){var o=n.umod(this.m);return o===n?o.clone():o},$.prototype.convertFrom=function(n){var o=n.clone();return o.red=null,o},s.mont=function(n){return new he(n)},E(he,$),he.prototype.convertTo=function(n){return this.imod(n.ushln(this.shift))},he.prototype.convertFrom=function(n){var o=this.imod(n.mul(this.rinv));return o.red=null,o},he.prototype.imul=function(n,o){if(n.isZero()||o.isZero())return n.words[0]=0,n.length=1,n;var h=n.imul(o),d=h.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),y=h.isub(d).iushrn(this.shift),L=y;return y.cmp(this.m)>=0?L=y.isub(this.m):y.cmpn(0)<0&&(L=y.iadd(this.m)),L._forceRed(this)},he.prototype.mul=function(n,o){if(n.isZero()||o.isZero())return new s(0)._forceRed(this);var h=n.mul(o),d=h.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),y=h.isub(d).iushrn(this.shift),L=y;return y.cmp(this.m)>=0?L=y.isub(this.m):y.cmpn(0)<0&&(L=y.iadd(this.m)),L._forceRed(this)},he.prototype.invm=function(n){return this.imod(n._invmp(this.m).mul(this.r2))._forceRed(this)}})(Ue=m.nmd(Ue),this)},9674:(Ue,q,m)=>{var e=m(5752),t=m(2096),_=m(464),E=m(6807),s=m(6661),D=m(145),u=m(630),k=m(9708).Buffer;Ue.exports=function(M,z,I){var W;W=M.padding?M.padding:I?1:4;var ie,Z=e(M),Q=Z.modulus.byteLength();if(z.length>Q||new E(z).cmp(Z.modulus)>=0)throw new Error("decryption error");ie=I?u(new E(z),Z):s(z,Z);var ae=k.alloc(Q-ie.length);if(ie=k.concat([ae,ie],Q),4===W)return function p(P,M){var z=P.modulus.byteLength(),I=D("sha1").update(k.alloc(0)).digest(),W=I.length;if(0!==M[0])throw new Error("decryption error");var Z=M.slice(1,W+1),Q=M.slice(W+1),ie=_(Z,t(Q,W)),ae=_(Q,t(ie,z-W-1));if(function A(P,M){P=k.from(P),M=k.from(M);var z=0,I=P.length;P.length!==M.length&&(z++,I=Math.min(P.length,M.length));for(var W=-1;++W<I;)z+=P[W]^M[W];return z}(I,ae.slice(0,W)))throw new Error("decryption error");for(var _e=W;0===ae[_e];)_e++;if(1!==ae[_e++])throw new Error("decryption error");return ae.slice(_e)}(Z,ie);if(1===W)return function S(P,M,z){for(var I=M.slice(0,2),W=2,Z=0;0!==M[W++];)if(W>=M.length){Z++;break}var Q=M.slice(2,W-1);if(("0002"!==I.toString("hex")&&!z||"0001"!==I.toString("hex")&&z)&&Z++,Q.length<8&&Z++,Z)throw new Error("decryption error");return M.slice(W)}(0,ie,I);if(3===W)return ie;throw new Error("unknown padding")}},3653:(Ue,q,m)=>{var e=m(5752),t=m(1186),_=m(145),E=m(2096),s=m(464),D=m(6807),u=m(630),k=m(6661),p=m(9708).Buffer;Ue.exports=function(z,I,W){var Z;Z=z.padding?z.padding:W?1:4;var ie,Q=e(z);if(4===Z)ie=function S(M,z){var I=M.modulus.byteLength(),W=z.length,Z=_("sha1").update(p.alloc(0)).digest(),Q=Z.length,ie=2*Q;if(W>I-ie-2)throw new Error("message too long");var ae=p.alloc(I-W-ie-2),_e=I-Q-1,ce=t(Q),ye=s(p.concat([Z,ae,p.alloc(1,1),z],_e),E(ce,_e)),ue=s(ce,E(ye,Q));return new D(p.concat([p.alloc(1),ue,ye],I))}(Q,I);else if(1===Z)ie=function A(M,z,I){var Q,W=z.length,Z=M.modulus.byteLength();if(W>Z-11)throw new Error("message too long");return Q=I?p.alloc(Z-W-3,255):function P(M){for(var Q,z=p.allocUnsafe(M),I=0,W=t(2*M),Z=0;I<M;)Z===W.length&&(W=t(2*M),Z=0),(Q=W[Z++])&&(z[I++]=Q);return z}(Z-W-3),new D(p.concat([p.from([0,I?1:2]),Q,p.alloc(1),z],Z))}(Q,I,W);else{if(3!==Z)throw new Error("unknown padding");if((ie=new D(I)).cmp(Q.modulus)>=0)throw new Error("data too long for modulus")}return W?k(ie,Q):u(ie,Q)}},630:(Ue,q,m)=>{var e=m(6807),t=m(9708).Buffer;Ue.exports=function _(E,s){return t.from(E.toRed(e.mont(s.modulus)).redPow(new e(s.publicExponent)).fromRed().toArray())}},464:Ue=>{Ue.exports=function(m,e){for(var t=m.length,_=-1;++_<t;)m[_]^=e[_];return m}},5646:(Ue,q,m)=>{const e=m(5704),t=m(9102),_=m(9326),E=m(226);function s(D,u,k,p,S){const A=[].slice.call(arguments,1),P=A.length,M="function"==typeof A[P-1];if(!M&&!e())throw new Error("Callback required as last argument");if(!M){if(P<1)throw new Error("Too few arguments provided");return 1===P?(k=u,u=p=void 0):2===P&&!u.getContext&&(p=k,k=u,u=void 0),new Promise(function(z,I){try{const W=t.create(k,p);z(D(W,u,p))}catch(W){I(W)}})}if(P<2)throw new Error("Too few arguments provided");2===P?(S=k,k=u,u=p=void 0):3===P&&(u.getContext&&typeof S>"u"?(S=p,p=void 0):(S=p,p=k,k=u,u=void 0));try{const z=t.create(k,p);S(null,D(z,u,p))}catch(z){S(z)}}q.create=t.create,q.toCanvas=s.bind(null,_.render),q.toDataURL=s.bind(null,_.renderToDataURL),q.toString=s.bind(null,function(D,u,k){return E.render(D,k)})},5704:Ue=>{Ue.exports=function(){return"function"==typeof Promise&&Promise.prototype&&Promise.prototype.then}},8298:(Ue,q,m)=>{const e=m(2230).getSymbolSize;q.getRowColCoords=function(_){if(1===_)return[];const E=Math.floor(_/7)+2,s=e(_),D=145===s?26:2*Math.ceil((s-13)/(2*E-2)),u=[s-7];for(let k=1;k<E-1;k++)u[k]=u[k-1]-D;return u.push(6),u.reverse()},q.getPositions=function(_){const E=[],s=q.getRowColCoords(_),D=s.length;for(let u=0;u<D;u++)for(let k=0;k<D;k++)0===u&&0===k||0===u&&k===D-1||u===D-1&&0===k||E.push([s[u],s[k]]);return E}},9321:(Ue,q,m)=>{const e=m(4059),t=["0","1","2","3","4","5","6","7","8","9","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"," ","$","%","*","+","-",".","/",":"];function _(E){this.mode=e.ALPHANUMERIC,this.data=E}_.getBitsLength=function(s){return 11*Math.floor(s/2)+s%2*6},_.prototype.getLength=function(){return this.data.length},_.prototype.getBitsLength=function(){return _.getBitsLength(this.data.length)},_.prototype.write=function(s){let D;for(D=0;D+2<=this.data.length;D+=2){let u=45*t.indexOf(this.data[D]);u+=t.indexOf(this.data[D+1]),s.put(u,11)}this.data.length%2&&s.put(t.indexOf(this.data[D]),6)},Ue.exports=_},7701:Ue=>{function q(){this.buffer=[],this.length=0}q.prototype={get:function(m){const e=Math.floor(m/8);return 1==(this.buffer[e]>>>7-m%8&1)},put:function(m,e){for(let t=0;t<e;t++)this.putBit(1==(m>>>e-t-1&1))},getLengthInBits:function(){return this.length},putBit:function(m){const e=Math.floor(this.length/8);this.buffer.length<=e&&this.buffer.push(0),m&&(this.buffer[e]|=128>>>this.length%8),this.length++}},Ue.exports=q},9088:Ue=>{function q(m){if(!m||m<1)throw new Error("BitMatrix size must be defined and greater than 0");this.size=m,this.data=new Uint8Array(m*m),this.reservedBit=new Uint8Array(m*m)}q.prototype.set=function(m,e,t,_){const E=m*this.size+e;this.data[E]=t,_&&(this.reservedBit[E]=!0)},q.prototype.get=function(m,e){return this.data[m*this.size+e]},q.prototype.xor=function(m,e,t){this.data[m*this.size+e]^=t},q.prototype.isReserved=function(m,e){return this.reservedBit[m*this.size+e]},Ue.exports=q},6323:(Ue,q,m)=>{const e=m(6236),t=m(4059);function _(E){this.mode=t.BYTE,"string"==typeof E&&(E=e(E)),this.data=new Uint8Array(E)}_.getBitsLength=function(s){return 8*s},_.prototype.getLength=function(){return this.data.length},_.prototype.getBitsLength=function(){return _.getBitsLength(this.data.length)},_.prototype.write=function(E){for(let s=0,D=this.data.length;s<D;s++)E.put(this.data[s],8)},Ue.exports=_},1690:(Ue,q,m)=>{const e=m(5448),t=[1,1,1,1,1,1,1,1,1,1,2,2,1,2,2,4,1,2,4,4,2,4,4,4,2,4,6,5,2,4,6,6,2,5,8,8,4,5,8,8,4,5,8,11,4,8,10,11,4,9,12,16,4,9,16,16,6,10,12,18,6,10,17,16,6,11,16,19,6,13,18,21,7,14,21,25,8,16,20,25,8,17,23,25,9,17,23,34,9,18,25,30,10,20,27,32,12,21,29,35,12,23,34,37,12,25,34,40,13,26,35,42,14,28,38,45,15,29,40,48,16,31,43,51,17,33,45,54,18,35,48,57,19,37,51,60,19,38,53,63,20,40,56,66,21,43,59,70,22,45,62,74,24,47,65,77,25,49,68,81],_=[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,D){switch(D){case e.L:return t[4*(s-1)+0];case e.M:return t[4*(s-1)+1];case e.Q:return t[4*(s-1)+2];case e.H:return t[4*(s-1)+3];default:return}},q.getTotalCodewordsCount=function(s,D){switch(D){case e.L:return _[4*(s-1)+0];case e.M:return _[4*(s-1)+1];case e.Q:return _[4*(s-1)+2];case e.H:return _[4*(s-1)+3];default:return}}},5448:(Ue,q)=>{q.L={bit:1},q.M={bit:0},q.Q={bit:3},q.H={bit:2},q.isValid=function(t){return t&&typeof t.bit<"u"&&t.bit>=0&&t.bit<4},q.from=function(t,_){if(q.isValid(t))return t;try{return function m(e){if("string"!=typeof e)throw new Error("Param is not a string");switch(e.toLowerCase()){case"l":case"low":return q.L;case"m":case"medium":return q.M;case"q":case"quartile":return q.Q;case"h":case"high":return q.H;default:throw new Error("Unknown EC Level: "+e)}}(t)}catch{return _}}},2903:(Ue,q,m)=>{const e=m(2230).getSymbolSize;q.getPositions=function(E){const s=e(E);return[[0,0],[s-7,0],[0,s-7]]}},6327:(Ue,q,m)=>{const e=m(2230),E=e.getBCHDigit(1335);q.getEncodedBits=function(D,u){const k=D.bit<<3|u;let p=k<<10;for(;e.getBCHDigit(p)-E>=0;)p^=1335<<e.getBCHDigit(p)-E;return 21522^(k<<10|p)}},9240:(Ue,q)=>{const m=new Uint8Array(512),e=new Uint8Array(256);(function(){let _=1;for(let E=0;E<255;E++)m[E]=_,e[_]=E,_<<=1,256&_&&(_^=285);for(let E=255;E<512;E++)m[E]=m[E-255]})(),q.log=function(_){if(_<1)throw new Error("log("+_+")");return e[_]},q.exp=function(_){return m[_]},q.mul=function(_,E){return 0===_||0===E?0:m[e[_]+e[E]]}},5134:(Ue,q,m)=>{const e=m(4059),t=m(2230);function _(E){this.mode=e.KANJI,this.data=E}_.getBitsLength=function(s){return 13*s},_.prototype.getLength=function(){return this.data.length},_.prototype.getBitsLength=function(){return _.getBitsLength(this.data.length)},_.prototype.write=function(E){let s;for(s=0;s<this.data.length;s++){let D=t.toSJIS(this.data[s]);if(D>=33088&&D<=40956)D-=33088;else{if(!(D>=57408&&D<=60351))throw new Error("Invalid SJIS character: "+this.data[s]+"\nMake sure your charset is UTF-8");D-=49472}D=192*(D>>>8&255)+(255&D),E.put(D,13)}},Ue.exports=_},6485:(Ue,q)=>{q.Patterns={PATTERN000:0,PATTERN001:1,PATTERN010:2,PATTERN011:3,PATTERN100:4,PATTERN101:5,PATTERN110:6,PATTERN111:7};const m_N1=3,m_N2=3,m_N3=40,m_N4=10;function e(t,_,E){switch(t){case q.Patterns.PATTERN000:return(_+E)%2==0;case q.Patterns.PATTERN001:return _%2==0;case q.Patterns.PATTERN010:return E%3==0;case q.Patterns.PATTERN011:return(_+E)%3==0;case q.Patterns.PATTERN100:return(Math.floor(_/2)+Math.floor(E/3))%2==0;case q.Patterns.PATTERN101:return _*E%2+_*E%3==0;case q.Patterns.PATTERN110:return(_*E%2+_*E%3)%2==0;case q.Patterns.PATTERN111:return(_*E%3+(_+E)%2)%2==0;default:throw new Error("bad maskPattern:"+t)}}q.isValid=function(_){return null!=_&&""!==_&&!isNaN(_)&&_>=0&&_<=7},q.from=function(_){return q.isValid(_)?parseInt(_,10):void 0},q.getPenaltyN1=function(_){const E=_.size;let s=0,D=0,u=0,k=null,p=null;for(let S=0;S<E;S++){D=u=0,k=p=null;for(let A=0;A<E;A++){let P=_.get(S,A);P===k?D++:(D>=5&&(s+=m_N1+(D-5)),k=P,D=1),P=_.get(A,S),P===p?u++:(u>=5&&(s+=m_N1+(u-5)),p=P,u=1)}D>=5&&(s+=m_N1+(D-5)),u>=5&&(s+=m_N1+(u-5))}return s},q.getPenaltyN2=function(_){const E=_.size;let s=0;for(let D=0;D<E-1;D++)for(let u=0;u<E-1;u++){const k=_.get(D,u)+_.get(D,u+1)+_.get(D+1,u)+_.get(D+1,u+1);(4===k||0===k)&&s++}return s*m_N2},q.getPenaltyN3=function(_){const E=_.size;let s=0,D=0,u=0;for(let k=0;k<E;k++){D=u=0;for(let p=0;p<E;p++)D=D<<1&2047|_.get(k,p),p>=10&&(1488===D||93===D)&&s++,u=u<<1&2047|_.get(p,k),p>=10&&(1488===u||93===u)&&s++}return s*m_N3},q.getPenaltyN4=function(_){let E=0;const s=_.data.length;for(let u=0;u<s;u++)E+=_.data[u];return Math.abs(Math.ceil(100*E/s/5)-10)*m_N4},q.applyMask=function(_,E){const s=E.size;for(let D=0;D<s;D++)for(let u=0;u<s;u++)E.isReserved(u,D)||E.xor(u,D,e(_,u,D))},q.getBestMask=function(_,E){const s=Object.keys(q.Patterns).length;let D=0,u=1/0;for(let k=0;k<s;k++){E(k),q.applyMask(k,_);const p=q.getPenaltyN1(_)+q.getPenaltyN2(_)+q.getPenaltyN3(_)+q.getPenaltyN4(_);q.applyMask(k,_),p<u&&(u=p,D=k)}return D}},4059:(Ue,q,m)=>{const e=m(6859),t=m(7526);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,D){if(!s.ccBits)throw new Error("Invalid mode: "+s);if(!e.isValid(D))throw new Error("Invalid version: "+D);return D>=1&&D<10?s.ccBits[0]:D<27?s.ccBits[1]:s.ccBits[2]},q.getBestModeForData=function(s){return t.testNumeric(s)?q.NUMERIC:t.testAlphanumeric(s)?q.ALPHANUMERIC:t.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,D){if(q.isValid(s))return s;try{return function _(E){if("string"!=typeof E)throw new Error("Param is not a string");switch(E.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: "+E)}}(s)}catch{return D}}},9782:(Ue,q,m)=>{const e=m(4059);function t(_){this.mode=e.NUMERIC,this.data=_.toString()}t.getBitsLength=function(E){return 10*Math.floor(E/3)+(E%3?E%3*3+1:0)},t.prototype.getLength=function(){return this.data.length},t.prototype.getBitsLength=function(){return t.getBitsLength(this.data.length)},t.prototype.write=function(E){let s,D,u;for(s=0;s+3<=this.data.length;s+=3)D=this.data.substr(s,3),u=parseInt(D,10),E.put(u,10);const k=this.data.length-s;k>0&&(D=this.data.substr(s),u=parseInt(D,10),E.put(u,3*k+1))},Ue.exports=t},1845:(Ue,q,m)=>{const e=m(9240);q.mul=function(_,E){const s=new Uint8Array(_.length+E.length-1);for(let D=0;D<_.length;D++)for(let u=0;u<E.length;u++)s[D+u]^=e.mul(_[D],E[u]);return s},q.mod=function(_,E){let s=new Uint8Array(_);for(;s.length-E.length>=0;){const D=s[0];for(let k=0;k<E.length;k++)s[k]^=e.mul(E[k],D);let u=0;for(;u<s.length&&0===s[u];)u++;s=s.slice(u)}return s},q.generateECPolynomial=function(_){let E=new Uint8Array([1]);for(let s=0;s<_;s++)E=q.mul(E,new Uint8Array([1,e.exp(s)]));return E}},9102:(Ue,q,m)=>{const e=m(2230),t=m(5448),_=m(7701),E=m(9088),s=m(8298),D=m(2903),u=m(6485),k=m(1690),p=m(3035),S=m(8421),A=m(6327),P=m(4059),M=m(2149);function Q(ye,ue,$){const he=ye.size,w=A.getEncodedBits(ue,$);let n,o;for(n=0;n<15;n++)o=1==(w>>n&1),n<6?ye.set(n,8,o,!0):n<8?ye.set(n+1,8,o,!0):ye.set(he-15+n,8,o,!0),n<8?ye.set(8,he-n-1,o,!0):n<9?ye.set(8,15-n-1+1,o,!0):ye.set(8,15-n-1,o,!0);ye.set(he-8,8,1,!0)}function ae(ye,ue,$){const he=new _;$.forEach(function(d){he.put(d.mode.bit,4),he.put(d.getLength(),P.getCharCountIndicator(d.mode,ye)),d.write(he)});const o=8*(e.getSymbolTotalCodewords(ye)-k.getTotalCodewordsCount(ye,ue));for(he.getLengthInBits()+4<=o&&he.put(0,4);he.getLengthInBits()%8!=0;)he.putBit(0);const h=(o-he.getLengthInBits())/8;for(let d=0;d<h;d++)he.put(d%2?17:236,8);return function _e(ye,ue,$){const he=e.getSymbolTotalCodewords(ue),w=k.getTotalCodewordsCount(ue,$),n=he-w,o=k.getBlocksCount(ue,$),d=o-he%o,y=Math.floor(he/o),L=Math.floor(n/o),B=L+1,v=y-L,a=new p(v);let C=0;const N=new Array(o),F=new Array(o);let X=0;const Fe=new Uint8Array(ye.buffer);for(let xe=0;xe<o;xe++){const Ze=xe<d?L:B;N[xe]=Fe.slice(C,C+Ze),F[xe]=a.encode(N[xe]),C+=Ze,X=Math.max(X,Ze)}const ke=new Uint8Array(he);let je,Ve,Ke=0;for(je=0;je<X;je++)for(Ve=0;Ve<o;Ve++)je<N[Ve].length&&(ke[Ke++]=N[Ve][je]);for(je=0;je<v;je++)for(Ve=0;Ve<o;Ve++)ke[Ke++]=F[Ve][je];return ke}(he,ye,ue)}function ce(ye,ue,$,he){let w;if(Array.isArray(ye))w=M.fromArray(ye);else{if("string"!=typeof ye)throw new Error("Invalid data");{let y=ue;if(!y){const L=M.rawSplit(ye);y=S.getBestVersionForData(L,$)}w=M.fromString(ye,y||40)}}const n=S.getBestVersionForData(w,$);if(!n)throw new Error("The amount of data is too big to be stored in a QR Code");if(ue){if(ue<n)throw new Error("\nThe chosen QR Code version cannot contain this amount of data.\nMinimum version required to store current data is: "+n+".\n")}else ue=n;const o=ae(ue,$,w),h=e.getSymbolSize(ue),d=new E(h);return function z(ye,ue){const $=ye.size,he=D.getPositions(ue);for(let w=0;w<he.length;w++){const n=he[w][0],o=he[w][1];for(let h=-1;h<=7;h++)if(!(n+h<=-1||$<=n+h))for(let d=-1;d<=7;d++)o+d<=-1||$<=o+d||(h>=0&&h<=6&&(0===d||6===d)||d>=0&&d<=6&&(0===h||6===h)||h>=2&&h<=4&&d>=2&&d<=4?ye.set(n+h,o+d,!0,!0):ye.set(n+h,o+d,!1,!0))}}(d,ue),function I(ye){const ue=ye.size;for(let $=8;$<ue-8;$++){const he=$%2==0;ye.set($,6,he,!0),ye.set(6,$,he,!0)}}(d),function W(ye,ue){const $=s.getPositions(ue);for(let he=0;he<$.length;he++){const w=$[he][0],n=$[he][1];for(let o=-2;o<=2;o++)for(let h=-2;h<=2;h++)-2===o||2===o||-2===h||2===h||0===o&&0===h?ye.set(w+o,n+h,!0,!0):ye.set(w+o,n+h,!1,!0)}}(d,ue),Q(d,$,0),ue>=7&&function Z(ye,ue){const $=ye.size,he=S.getEncodedBits(ue);let w,n,o;for(let h=0;h<18;h++)w=Math.floor(h/3),n=h%3+$-8-3,o=1==(he>>h&1),ye.set(w,n,o,!0),ye.set(n,w,o,!0)}(d,ue),function ie(ye,ue){const $=ye.size;let he=-1,w=$-1,n=7,o=0;for(let h=$-1;h>0;h-=2)for(6===h&&h--;;){for(let d=0;d<2;d++)if(!ye.isReserved(w,h-d)){let y=!1;o<ue.length&&(y=1==(ue[o]>>>n&1)),ye.set(w,h-d,y),n--,-1===n&&(o++,n=7)}if(w+=he,w<0||$<=w){w-=he,he=-he;break}}}(d,o),isNaN(he)&&(he=u.getBestMask(d,Q.bind(null,d,$))),u.applyMask(he,d),Q(d,$,he),{modules:d,version:ue,errorCorrectionLevel:$,maskPattern:he,segments:w}}q.create=function(ue,$){if(typeof ue>"u"||""===ue)throw new Error("No input text");let w,n,he=t.M;return typeof $<"u"&&(he=t.from($.errorCorrectionLevel,t.M),w=S.from($.version),n=u.from($.maskPattern),$.toSJISFunc&&e.setToSJISFunction($.toSJISFunc)),ce(ue,w,he,n)}},3035:(Ue,q,m)=>{const e=m(1845);function t(_){this.genPoly=void 0,this.degree=_,this.degree&&this.initialize(this.degree)}t.prototype.initialize=function(E){this.degree=E,this.genPoly=e.generateECPolynomial(this.degree)},t.prototype.encode=function(E){if(!this.genPoly)throw new Error("Encoder not initialized");const s=new Uint8Array(E.length+this.degree);s.set(E);const D=e.mod(s,this.genPoly),u=this.degree-D.length;if(u>0){const k=new Uint8Array(this.degree);return k.set(D,u),k}return D},Ue.exports=t},7526:(Ue,q)=>{const m="[0-9]+";let t="(?:[u3000-u303F]|[u3040-u309F]|[u30A0-u30FF]|[uFF00-uFFEF]|[u4E00-u9FAF]|[u2605-u2606]|[u2190-u2195]|u203B|[u2010u2015u2018u2019u2025u2026u201Cu201Du2225u2260]|[u0391-u0451]|[u00A7u00A8u00B1u00B4u00D7u00F7])+";t=t.replace(/u/g,"\\u");const _="(?:(?![A-Z0-9 $%*+\\-./:]|"+t+")(?:.|[\r\n]))+";q.KANJI=new RegExp(t,"g"),q.BYTE_KANJI=new RegExp("[^A-Z0-9 $%*+\\-./:]+","g"),q.BYTE=new RegExp(_,"g"),q.NUMERIC=new RegExp(m,"g"),q.ALPHANUMERIC=new RegExp("[A-Z $%*+\\-./:]+","g");const E=new RegExp("^"+t+"$"),s=new RegExp("^"+m+"$"),D=new RegExp("^[A-Z0-9 $%*+\\-./:]+$");q.testKanji=function(k){return E.test(k)},q.testNumeric=function(k){return s.test(k)},q.testAlphanumeric=function(k){return D.test(k)}},2149:(Ue,q,m)=>{const e=m(4059),t=m(9782),_=m(9321),E=m(6323),s=m(5134),D=m(7526),u=m(2230),k=m(6348);function p(Z){return unescape(encodeURIComponent(Z)).length}function S(Z,Q,ie){const ae=[];let _e;for(;null!==(_e=Z.exec(ie));)ae.push({data:_e[0],index:_e.index,mode:Q,length:_e[0].length});return ae}function A(Z){const Q=S(D.NUMERIC,e.NUMERIC,Z),ie=S(D.ALPHANUMERIC,e.ALPHANUMERIC,Z);let ae,_e;return u.isKanjiModeEnabled()?(ae=S(D.BYTE,e.BYTE,Z),_e=S(D.KANJI,e.KANJI,Z)):(ae=S(D.BYTE_KANJI,e.BYTE,Z),_e=[]),Q.concat(ie,ae,_e).sort(function(ye,ue){return ye.index-ue.index}).map(function(ye){return{data:ye.data,mode:ye.mode,length:ye.length}})}function P(Z,Q){switch(Q){case e.NUMERIC:return t.getBitsLength(Z);case e.ALPHANUMERIC:return _.getBitsLength(Z);case e.KANJI:return s.getBitsLength(Z);case e.BYTE:return E.getBitsLength(Z)}}function W(Z,Q){let ie;const ae=e.getBestModeForData(Z);if(ie=e.from(Q,ae),ie!==e.BYTE&&ie.bit<ae.bit)throw new Error('"'+Z+'" cannot be encoded with mode '+e.toString(ie)+".\n Suggested mode is: "+e.toString(ae));switch(ie===e.KANJI&&!u.isKanjiModeEnabled()&&(ie=e.BYTE),ie){case e.NUMERIC:return new t(Z);case e.ALPHANUMERIC:return new _(Z);case e.KANJI:return new s(Z);case e.BYTE:return new E(Z)}}q.fromArray=function(Q){return Q.reduce(function(ie,ae){return"string"==typeof ae?ie.push(W(ae,null)):ae.data&&ie.push(W(ae.data,ae.mode)),ie},[])},q.fromString=function(Q,ie){const _e=function z(Z){const Q=[];for(let ie=0;ie<Z.length;ie++){const ae=Z[ie];switch(ae.mode){case e.NUMERIC:Q.push([ae,{data:ae.data,mode:e.ALPHANUMERIC,length:ae.length},{data:ae.data,mode:e.BYTE,length:ae.length}]);break;case e.ALPHANUMERIC:Q.push([ae,{data:ae.data,mode:e.BYTE,length:ae.length}]);break;case e.KANJI:Q.push([ae,{data:ae.data,mode:e.BYTE,length:p(ae.data)}]);break;case e.BYTE:Q.push([{data:ae.data,mode:e.BYTE,length:p(ae.data)}])}}return Q}(A(Q,u.isKanjiModeEnabled())),ce=function I(Z,Q){const ie={},ae={start:{}};let _e=["start"];for(let ce=0;ce<Z.length;ce++){const ye=Z[ce],ue=[];for(let $=0;$<ye.length;$++){const he=ye[$],w=""+ce+$;ue.push(w),ie[w]={node:he,lastCount:0},ae[w]={};for(let n=0;n<_e.length;n++){const o=_e[n];ie[o]&&ie[o].node.mode===he.mode?(ae[o][w]=P(ie[o].lastCount+he.length,he.mode)-P(ie[o].lastCount,he.mode),ie[o].lastCount+=he.length):(ie[o]&&(ie[o].lastCount=he.length),ae[o][w]=P(he.length,he.mode)+4+e.getCharCountIndicator(he.mode,Q))}}_e=ue}for(let ce=0;ce<_e.length;ce++)ae[_e[ce]].end=0;return{map:ae,table:ie}}(_e,ie),ye=k.find_path(ce.map,"start","end"),ue=[];for(let $=1;$<ye.length-1;$++)ue.push(ce.table[ye[$]].node);return q.fromArray(function M(Z){return Z.reduce(function(Q,ie){const ae=Q.length-1>=0?Q[Q.length-1]:null;return ae&&ae.mode===ie.mode?(Q[Q.length-1].data+=ie.data,Q):(Q.push(ie),Q)},[])}(ue))},q.rawSplit=function(Q){return q.fromArray(A(Q,u.isKanjiModeEnabled()))}},2230:(Ue,q)=>{let m;const e=[0,26,44,70,100,134,172,196,242,292,346,404,466,532,581,655,733,815,901,991,1085,1156,1258,1364,1474,1588,1706,1828,1921,2051,2185,2323,2465,2611,2761,2876,3034,3196,3362,3532,3706];q.getSymbolSize=function(_){if(!_)throw new Error('"version" cannot be null or undefined');if(_<1||_>40)throw new Error('"version" should be in range from 1 to 40');return 4*_+17},q.getSymbolTotalCodewords=function(_){return e[_]},q.getBCHDigit=function(t){let _=0;for(;0!==t;)_++,t>>>=1;return _},q.setToSJISFunction=function(_){if("function"!=typeof _)throw new Error('"toSJISFunc" is not a valid function.');m=_},q.isKanjiModeEnabled=function(){return typeof m<"u"},q.toSJIS=function(_){return m(_)}},6859:(Ue,q)=>{q.isValid=function(e){return!isNaN(e)&&e>=1&&e<=40}},8421:(Ue,q,m)=>{const e=m(2230),t=m(1690),_=m(5448),E=m(4059),s=m(6859),u=e.getBCHDigit(7973);function p(P,M){return E.getCharCountIndicator(P,M)+4}function S(P,M){let z=0;return P.forEach(function(I){const W=p(I.mode,M);z+=W+I.getBitsLength()}),z}q.from=function(M,z){return s.isValid(M)?parseInt(M,10):z},q.getCapacity=function(M,z,I){if(!s.isValid(M))throw new Error("Invalid QR Code version");typeof I>"u"&&(I=E.BYTE);const Q=8*(e.getSymbolTotalCodewords(M)-t.getTotalCodewordsCount(M,z));if(I===E.MIXED)return Q;const ie=Q-p(I,M);switch(I){case E.NUMERIC:return Math.floor(ie/10*3);case E.ALPHANUMERIC:return Math.floor(ie/11*2);case E.KANJI:return Math.floor(ie/13);case E.BYTE:default:return Math.floor(ie/8)}},q.getBestVersionForData=function(M,z){let I;const W=_.from(z,_.M);if(Array.isArray(M)){if(M.length>1)return function A(P,M){for(let z=1;z<=40;z++)if(S(P,z)<=q.getCapacity(z,M,E.MIXED))return z}(M,W);if(0===M.length)return 1;I=M[0]}else I=M;return function k(P,M,z){for(let I=1;I<=40;I++)if(M<=q.getCapacity(I,z,P))return I}(I.mode,I.getLength(),W)},q.getEncodedBits=function(M){if(!s.isValid(M)||M<7)throw new Error("Invalid QR Code version");let z=M<<12;for(;e.getBCHDigit(z)-u>=0;)z^=7973<<e.getBCHDigit(z)-u;return M<<12|z}},9326:(Ue,q,m)=>{const e=m(3239);q.render=function(s,D,u){let k=u,p=D;typeof k>"u"&&(!D||!D.getContext)&&(k=D,D=void 0),D||(p=function _(){try{return document.createElement("canvas")}catch{throw new Error("You need to specify a canvas element")}}()),k=e.getOptions(k);const S=e.getImageWidth(s.modules.size,k),A=p.getContext("2d"),P=A.createImageData(S,S);return e.qrToImageData(P.data,s,k),function t(E,s,D){E.clearRect(0,0,s.width,s.height),s.style||(s.style={}),s.height=D,s.width=D,s.style.height=D+"px",s.style.width=D+"px"}(A,p,S),A.putImageData(P,0,0),p},q.renderToDataURL=function(s,D,u){let k=u;typeof k>"u"&&(!D||!D.getContext)&&(k=D,D=void 0),k||(k={});const p=q.render(s,D,k),S=k.type||"image/png",A=k.rendererOpts||{};return p.toDataURL(S,A.quality)}},226:(Ue,q,m)=>{const e=m(3239);function t(s,D){const u=s.a/255,k=D+'="'+s.hex+'"';return u<1?k+" "+D+'-opacity="'+u.toFixed(2).slice(1)+'"':k}function _(s,D,u){let k=s+D;return typeof u<"u"&&(k+=" "+u),k}q.render=function(D,u,k){const p=e.getOptions(u),S=D.modules.size,A=D.modules.data,P=S+2*p.margin,M=p.color.light.a?"<path "+t(p.color.light,"fill")+' d="M0 0h'+P+"v"+P+'H0z"/>':"",z="<path "+t(p.color.dark,"stroke")+' d="'+function E(s,D,u){let k="",p=0,S=!1,A=0;for(let P=0;P<s.length;P++){const M=Math.floor(P%D),z=Math.floor(P/D);!M&&!S&&(S=!0),s[P]?(A++,P>0&&M>0&&s[P-1]||(k+=S?_("M",M+u,.5+z+u):_("m",p,0),p=0,S=!1),M+1<D&&s[P+1]||(k+=_("h",A),A=0)):p++}return k}(A,S,p.margin)+'"/>',I='viewBox="0 0 '+P+" "+P+'"',Z='<svg xmlns="http://www.w3.org/2000/svg" '+(p.width?'width="'+p.width+'" height="'+p.width+'" ':"")+I+' shape-rendering="crispEdges">'+M+z+"</svg>\n";return"function"==typeof k&&k(null,Z),Z}},3239:(Ue,q)=>{function m(e){if("number"==typeof e&&(e=e.toString()),"string"!=typeof e)throw new Error("Color should be defined as hex string");let t=e.slice().replace("#","").split("");if(t.length<3||5===t.length||t.length>8)throw new Error("Invalid hex color: "+e);(3===t.length||4===t.length)&&(t=Array.prototype.concat.apply([],t.map(function(E){return[E,E]}))),6===t.length&&t.push("F","F");const _=parseInt(t.join(""),16);return{r:_>>24&255,g:_>>16&255,b:_>>8&255,a:255&_,hex:"#"+t.slice(0,6).join("")}}q.getOptions=function(t){t||(t={}),t.color||(t.color={});const _=typeof t.margin>"u"||null===t.margin||t.margin<0?4:t.margin,E=t.width&&t.width>=21?t.width:void 0,s=t.scale||4;return{width:E,scale:E?4:s,margin:_,color:{dark:m(t.color.dark||"#000000ff"),light:m(t.color.light||"#ffffffff")},type:t.type,rendererOpts:t.rendererOpts||{}}},q.getScale=function(t,_){return _.width&&_.width>=t+2*_.margin?_.width/(t+2*_.margin):_.scale},q.getImageWidth=function(t,_){const E=q.getScale(t,_);return Math.floor((t+2*_.margin)*E)},q.qrToImageData=function(t,_,E){const s=_.modules.size,D=_.modules.data,u=q.getScale(s,E),k=Math.floor((s+2*E.margin)*u),p=E.margin*u,S=[E.color.light,E.color.dark];for(let A=0;A<k;A++)for(let P=0;P<k;P++){let M=4*(A*k+P),z=E.color.light;if(A>=p&&P>=p&&A<k-p&&P<k-p){z=S[D[Math.floor((A-p)/u)*s+Math.floor((P-p)/u)]?1:0]}t[M++]=z.r,t[M++]=z.g,t[M++]=z.b,t[M]=z.a}}},1186:(Ue,q,m)=>{"use strict";var e=65536;var E=m(9708).Buffer,s=global.crypto||global.msCrypto;s&&s.getRandomValues?Ue.exports=function D(u,k){if(u>4294967295)throw new RangeError("requested too many random bytes");var p=E.allocUnsafe(u);if(u>0)if(u>e)for(var S=0;S<u;S+=e)s.getRandomValues(p.slice(S,S+e));else s.getRandomValues(p);return"function"==typeof k?process.nextTick(function(){k(null,p)}):p}:Ue.exports=function _(){throw new Error("Secure random number generation is not supported by this browser.\nUse Chrome, Firefox or Internet Explorer 11")}},137:(Ue,q,m)=>{"use strict";function e(){throw new Error("secure random number generation not supported by this browser\nuse chrome, FireFox or Internet Explorer 11")}var t=m(9708),_=m(1186),E=t.Buffer,s=t.kMaxLength,D=global.crypto||global.msCrypto,u=Math.pow(2,32)-1;function k(M,z){if("number"!=typeof M||M!=M)throw new TypeError("offset must be a number");if(M>u||M<0)throw new TypeError("offset must be a uint32");if(M>s||M>z)throw new RangeError("offset out of range")}function p(M,z,I){if("number"!=typeof M||M!=M)throw new TypeError("size must be a number");if(M>u||M<0)throw new TypeError("size must be a uint32");if(M+z>I||M>s)throw new RangeError("buffer too small")}function A(M,z,I,W){if(process.browser){var Z=M.buffer,Q=new Uint8Array(Z,z,I);return D.getRandomValues(Q),W?void process.nextTick(function(){W(null,M)}):M}if(!W)return _(I).copy(M,z),M;_(I,function(ae,_e){if(ae)return W(ae);_e.copy(M,z),W(null,M)})}D&&D.getRandomValues||!process.browser?(q.randomFill=function S(M,z,I,W){if(!(E.isBuffer(M)||M instanceof global.Uint8Array))throw new TypeError('"buf" argument must be a Buffer or Uint8Array');if("function"==typeof z)W=z,z=0,I=M.length;else if("function"==typeof I)W=I,I=M.length-z;else if("function"!=typeof W)throw new TypeError('"cb" argument must be a function');return k(z,M.length),p(I,z,M.length),A(M,z,I,W)},q.randomFillSync=function P(M,z,I){if(typeof z>"u"&&(z=0),!(E.isBuffer(M)||M instanceof global.Uint8Array))throw new TypeError('"buf" argument must be a Buffer or Uint8Array');return k(z,M.length),void 0===I&&(I=M.length-z),p(I,z,M.length),A(M,z,I)}):(q.randomFill=e,q.randomFillSync=e)},7446:Ue=>{"use strict";var m={};function e(D,u,k){k||(k=Error);var S=function(A){function P(M,z,I){return A.call(this,function p(A,P,M){return"string"==typeof u?u:u(A,P,M)}(M,z,I))||this}return function q(D,u){D.prototype=Object.create(u.prototype),D.prototype.constructor=D,D.__proto__=u}(P,A),P}(k);S.prototype.name=k.name,S.prototype.code=D,m[D]=S}function t(D,u){if(Array.isArray(D)){var k=D.length;return D=D.map(function(p){return String(p)}),k>2?"one of ".concat(u," ").concat(D.slice(0,k-1).join(", "),", or ")+D[k-1]:2===k?"one of ".concat(u," ").concat(D[0]," or ").concat(D[1]):"of ".concat(u," ").concat(D[0])}return"of ".concat(u," ").concat(String(D))}e("ERR_INVALID_OPT_VALUE",function(D,u){return'The value "'+u+'" is invalid for option "'+D+'"'},TypeError),e("ERR_INVALID_ARG_TYPE",function(D,u,k){var p,S;if("string"==typeof u&&function _(D,u,k){return D.substr(!k||k<0?0:+k,u.length)===u}(u,"not ")?(p="must not be",u=u.replace(/^not /,"")):p="must be",function E(D,u,k){return(void 0===k||k>D.length)&&(k=D.length),D.substring(k-u.length,k)===u}(D," argument"))S="The ".concat(D," ").concat(p," ").concat(t(u,"type"));else{var A=function s(D,u,k){return"number"!=typeof k&&(k=0),!(k+u.length>D.length)&&-1!==D.indexOf(u,k)}(D,".")?"property":"argument";S='The "'.concat(D,'" ').concat(A," ").concat(p," ").concat(t(u,"type"))}return S+=". Received type ".concat(typeof k)},TypeError),e("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF"),e("ERR_METHOD_NOT_IMPLEMENTED",function(D){return"The "+D+" method is not implemented"}),e("ERR_STREAM_PREMATURE_CLOSE","Premature close"),e("ERR_STREAM_DESTROYED",function(D){return"Cannot call "+D+" after a stream was destroyed"}),e("ERR_MULTIPLE_CALLBACK","Callback called multiple times"),e("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable"),e("ERR_STREAM_WRITE_AFTER_END","write after end"),e("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError),e("ERR_UNKNOWN_ENCODING",function(D){return"Unknown encoding: "+D},TypeError),e("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event"),Ue.exports.q=m},9800:(Ue,q,m)=>{"use strict";var e=Object.keys||function(S){var A=[];for(var P in S)A.push(P);return A};Ue.exports=u;var t=m(1396),_=m(1120);m(5035)(u,t);for(var E=e(_.prototype),s=0;s<E.length;s++){var D=E[s];u.prototype[D]||(u.prototype[D]=_.prototype[D])}function u(S){if(!(this instanceof u))return new u(S);t.call(this,S),_.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",k)))}function k(){this._writableState.ended||process.nextTick(p,this)}function p(S){S.end()}Object.defineProperty(u.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),Object.defineProperty(u.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(u.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}}),Object.defineProperty(u.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._readableState&&void 0!==this._writableState&&(this._readableState.destroyed&&this._writableState.destroyed)},set:function(A){void 0===this._readableState||void 0===this._writableState||(this._readableState.destroyed=A,this._writableState.destroyed=A)}})},1908:(Ue,q,m)=>{"use strict";Ue.exports=t;var e=m(8157);function t(_){if(!(this instanceof t))return new t(_);e.call(this,_)}m(5035)(t,e),t.prototype._transform=function(_,E,s){s(null,_)}},1396:(Ue,q,m)=>{"use strict";var e;Ue.exports=w,w.ReadableState=he;m(3358).EventEmitter;var _=function(et,ht){return et.listeners(ht).length},E=m(8431),s=m(3195).Buffer,D=global.Uint8Array||function(){};var S,p=m(4616);S=p&&p.debuglog?p.debuglog("stream"):function(){};var ae,_e,ce,A=m(350),P=m(5923),z=m(1561).getHighWaterMark,I=m(7446).q,W=I.ERR_INVALID_ARG_TYPE,Z=I.ERR_STREAM_PUSH_AFTER_EOF,Q=I.ERR_METHOD_NOT_IMPLEMENTED,ie=I.ERR_STREAM_UNSHIFT_AFTER_END_EVENT;m(5035)(w,E);var ye=P.errorOrDestroy,ue=["error","close","destroy","pause","resume"];function he(ve,et,ht){e=e||m(9800),ve=ve||{},"boolean"!=typeof ht&&(ht=et instanceof e),this.objectMode=!!ve.objectMode,ht&&(this.objectMode=this.objectMode||!!ve.readableObjectMode),this.highWaterMark=z(this,ve,"readableHighWaterMark",ht),this.buffer=new A,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!==ve.emitClose,this.autoDestroy=!!ve.autoDestroy,this.destroyed=!1,this.defaultEncoding=ve.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,ve.encoding&&(ae||(ae=m(4547).s),this.decoder=new ae(ve.encoding),this.encoding=ve.encoding)}function w(ve){if(e=e||m(9800),!(this instanceof w))return new w(ve);var et=this instanceof e;this._readableState=new he(ve,this,et),this.readable=!0,ve&&("function"==typeof ve.read&&(this._read=ve.read),"function"==typeof ve.destroy&&(this._destroy=ve.destroy)),E.call(this)}function n(ve,et,ht,Le,Ae){S("readableAddChunk",et);var pe,te=ve._readableState;if(null===et)te.reading=!1,function B(ve,et){if(S("onEofChunk"),!et.ended){if(et.decoder){var ht=et.decoder.end();ht&&ht.length&&(et.buffer.push(ht),et.length+=et.objectMode?1:ht.length)}et.ended=!0,et.sync?v(ve):(et.needReadable=!1,et.emittedReadable||(et.emittedReadable=!0,a(ve)))}}(ve,te);else if(Ae||(pe=function h(ve,et){var ht;return!function k(ve){return s.isBuffer(ve)||ve instanceof D}(et)&&"string"!=typeof et&&void 0!==et&&!ve.objectMode&&(ht=new W("chunk",["string","Buffer","Uint8Array"],et)),ht}(te,et)),pe)ye(ve,pe);else if(te.objectMode||et&&et.length>0)if("string"!=typeof et&&!te.objectMode&&Object.getPrototypeOf(et)!==s.prototype&&(et=function u(ve){return s.from(ve)}(et)),Le)te.endEmitted?ye(ve,new ie):o(ve,te,et,!0);else if(te.ended)ye(ve,new Z);else{if(te.destroyed)return!1;te.reading=!1,te.decoder&&!ht?(et=te.decoder.write(et),te.objectMode||0!==et.length?o(ve,te,et,!1):C(ve,te)):o(ve,te,et,!1)}else Le||(te.reading=!1,C(ve,te));return!te.ended&&(te.length<te.highWaterMark||0===te.length)}function o(ve,et,ht,Le){et.flowing&&0===et.length&&!et.sync?(et.awaitDrain=0,ve.emit("data",ht)):(et.length+=et.objectMode?1:ht.length,Le?et.buffer.unshift(ht):et.buffer.push(ht),et.needReadable&&v(ve)),C(ve,et)}Object.defineProperty(w.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._readableState&&this._readableState.destroyed},set:function(et){!this._readableState||(this._readableState.destroyed=et)}}),w.prototype.destroy=P.destroy,w.prototype._undestroy=P.undestroy,w.prototype._destroy=function(ve,et){et(ve)},w.prototype.push=function(ve,et){var Le,ht=this._readableState;return ht.objectMode?Le=!0:"string"==typeof ve&&((et=et||ht.defaultEncoding)!==ht.encoding&&(ve=s.from(ve,et),et=""),Le=!0),n(this,ve,et,!1,Le)},w.prototype.unshift=function(ve){return n(this,ve,null,!0,!1)},w.prototype.isPaused=function(){return!1===this._readableState.flowing},w.prototype.setEncoding=function(ve){ae||(ae=m(4547).s);var et=new ae(ve);this._readableState.decoder=et,this._readableState.encoding=this._readableState.decoder.encoding;for(var ht=this._readableState.buffer.head,Le="";null!==ht;)Le+=et.write(ht.data),ht=ht.next;return this._readableState.buffer.clear(),""!==Le&&this._readableState.buffer.push(Le),this._readableState.length=Le.length,this};var d=1073741824;function L(ve,et){return ve<=0||0===et.length&&et.ended?0:et.objectMode?1:ve!=ve?et.flowing&&et.length?et.buffer.head.data.length:et.length:(ve>et.highWaterMark&&(et.highWaterMark=function y(ve){return ve>=d?ve=d:(ve--,ve|=ve>>>1,ve|=ve>>>2,ve|=ve>>>4,ve|=ve>>>8,ve|=ve>>>16,ve++),ve}(ve)),ve<=et.length?ve:et.ended?et.length:(et.needReadable=!0,0))}function v(ve){var et=ve._readableState;S("emitReadable",et.needReadable,et.emittedReadable),et.needReadable=!1,et.emittedReadable||(S("emitReadable",et.flowing),et.emittedReadable=!0,process.nextTick(a,ve))}function a(ve){var et=ve._readableState;S("emitReadable_",et.destroyed,et.length,et.ended),!et.destroyed&&(et.length||et.ended)&&(ve.emit("readable"),et.emittedReadable=!1),et.needReadable=!et.flowing&&!et.ended&&et.length<=et.highWaterMark,je(ve)}function C(ve,et){et.readingMore||(et.readingMore=!0,process.nextTick(N,ve,et))}function N(ve,et){for(;!et.reading&&!et.ended&&(et.length<et.highWaterMark||et.flowing&&0===et.length);){var ht=et.length;if(S("maybeReadMore read 0"),ve.read(0),ht===et.length)break}et.readingMore=!1}function X(ve){var et=ve._readableState;et.readableListening=ve.listenerCount("readable")>0,et.resumeScheduled&&!et.paused?et.flowing=!0:ve.listenerCount("data")>0&&ve.resume()}function Fe(ve){S("readable nexttick read 0"),ve.read(0)}function Ke(ve,et){S("resume",et.reading),et.reading||ve.read(0),et.resumeScheduled=!1,ve.emit("resume"),je(ve),et.flowing&&!et.reading&&ve.read(0)}function je(ve){var et=ve._readableState;for(S("flow",et.flowing);et.flowing&&null!==ve.read(););}function Ve(ve,et){return 0===et.length?null:(et.objectMode?ht=et.buffer.shift():!ve||ve>=et.length?(ht=et.decoder?et.buffer.join(""):1===et.buffer.length?et.buffer.first():et.buffer.concat(et.length),et.buffer.clear()):ht=et.buffer.consume(ve,et.decoder),ht);var ht}function xe(ve){var et=ve._readableState;S("endReadable",et.endEmitted),et.endEmitted||(et.ended=!0,process.nextTick(Ze,et,ve))}function Ze(ve,et){if(S("endReadableNT",ve.endEmitted,ve.length),!ve.endEmitted&&0===ve.length&&(ve.endEmitted=!0,et.readable=!1,et.emit("end"),ve.autoDestroy)){var ht=et._writableState;(!ht||ht.autoDestroy&&ht.finished)&&et.destroy()}}function Ie(ve,et){for(var ht=0,Le=ve.length;ht<Le;ht++)if(ve[ht]===et)return ht;return-1}w.prototype.read=function(ve){S("read",ve),ve=parseInt(ve,10);var et=this._readableState,ht=ve;if(0!==ve&&(et.emittedReadable=!1),0===ve&&et.needReadable&&((0!==et.highWaterMark?et.length>=et.highWaterMark:et.length>0)||et.ended))return S("read: emitReadable",et.length,et.ended),0===et.length&&et.ended?xe(this):v(this),null;if(0===(ve=L(ve,et))&&et.ended)return 0===et.length&&xe(this),null;var Ae,Le=et.needReadable;return S("need readable",Le),(0===et.length||et.length-ve<et.highWaterMark)&&S("length less than watermark",Le=!0),et.ended||et.reading?S("reading or ended",Le=!1):Le&&(S("do read"),et.reading=!0,et.sync=!0,0===et.length&&(et.needReadable=!0),this._read(et.highWaterMark),et.sync=!1,et.reading||(ve=L(ht,et))),null===(Ae=ve>0?Ve(ve,et):null)?(et.needReadable=et.length<=et.highWaterMark,ve=0):(et.length-=ve,et.awaitDrain=0),0===et.length&&(et.ended||(et.needReadable=!0),ht!==ve&&et.ended&&xe(this)),null!==Ae&&this.emit("data",Ae),Ae},w.prototype._read=function(ve){ye(this,new Q("_read()"))},w.prototype.pipe=function(ve,et){var ht=this,Le=this._readableState;switch(Le.pipesCount){case 0:Le.pipes=ve;break;case 1:Le.pipes=[Le.pipes,ve];break;default:Le.pipes.push(ve)}Le.pipesCount+=1,S("pipe count=%d opts=%j",Le.pipesCount,et);var te=(!et||!1!==et.end)&&ve!==process.stdout&&ve!==process.stderr?ee:Ct;function pe(un,Bt){S("onunpipe"),un===ht&&Bt&&!1===Bt.hasUnpiped&&(Bt.hasUnpiped=!0,function Oe(){S("cleanup"),ve.removeListener("close",_t),ve.removeListener("finish",it),ve.removeListener("drain",H),ve.removeListener("error",le),ve.removeListener("unpipe",pe),ht.removeListener("end",ee),ht.removeListener("end",Ct),ht.removeListener("data",Re),j=!0,Le.awaitDrain&&(!ve._writableState||ve._writableState.needDrain)&&H()}())}function ee(){S("onend"),ve.end()}Le.endEmitted?process.nextTick(te):ht.once("end",te),ve.on("unpipe",pe);var H=function F(ve){return function(){var ht=ve._readableState;S("pipeOnDrain",ht.awaitDrain),ht.awaitDrain&&ht.awaitDrain--,0===ht.awaitDrain&&_(ve,"data")&&(ht.flowing=!0,je(ve))}}(ht);ve.on("drain",H);var j=!1;function Re(un){S("ondata");var Bt=ve.write(un);S("dest.write",Bt),!1===Bt&&((1===Le.pipesCount&&Le.pipes===ve||Le.pipesCount>1&&-1!==Ie(Le.pipes,ve))&&!j&&(S("false write response, pause",Le.awaitDrain),Le.awaitDrain++),ht.pause())}function le(un){S("onerror",un),Ct(),ve.removeListener("error",le),0===_(ve,"error")&&ye(ve,un)}function _t(){ve.removeListener("finish",it),Ct()}function it(){S("onfinish"),ve.removeListener("close",_t),Ct()}function Ct(){S("unpipe"),ht.unpipe(ve)}return ht.on("data",Re),function $(ve,et,ht){if("function"==typeof ve.prependListener)return ve.prependListener(et,ht);ve._events&&ve._events[et]?Array.isArray(ve._events[et])?ve._events[et].unshift(ht):ve._events[et]=[ht,ve._events[et]]:ve.on(et,ht)}(ve,"error",le),ve.once("close",_t),ve.once("finish",it),ve.emit("pipe",ht),Le.flowing||(S("pipe resume"),ht.resume()),ve},w.prototype.unpipe=function(ve){var et=this._readableState,ht={hasUnpiped:!1};if(0===et.pipesCount)return this;if(1===et.pipesCount)return ve&&ve!==et.pipes||(ve||(ve=et.pipes),et.pipes=null,et.pipesCount=0,et.flowing=!1,ve&&ve.emit("unpipe",this,ht)),this;if(!ve){var Le=et.pipes,Ae=et.pipesCount;et.pipes=null,et.pipesCount=0,et.flowing=!1;for(var te=0;te<Ae;te++)Le[te].emit("unpipe",this,{hasUnpiped:!1});return this}var pe=Ie(et.pipes,ve);return-1===pe||(et.pipes.splice(pe,1),et.pipesCount-=1,1===et.pipesCount&&(et.pipes=et.pipes[0]),ve.emit("unpipe",this,ht)),this},w.prototype.on=function(ve,et){var ht=E.prototype.on.call(this,ve,et),Le=this._readableState;return"data"===ve?(Le.readableListening=this.listenerCount("readable")>0,!1!==Le.flowing&&this.resume()):"readable"===ve&&!Le.endEmitted&&!Le.readableListening&&(Le.readableListening=Le.needReadable=!0,Le.flowing=!1,Le.emittedReadable=!1,S("on readable",Le.length,Le.reading),Le.length?v(this):Le.reading||process.nextTick(Fe,this)),ht},w.prototype.addListener=w.prototype.on,w.prototype.removeListener=function(ve,et){var ht=E.prototype.removeListener.call(this,ve,et);return"readable"===ve&&process.nextTick(X,this),ht},w.prototype.removeAllListeners=function(ve){var et=E.prototype.removeAllListeners.apply(this,arguments);return("readable"===ve||void 0===ve)&&process.nextTick(X,this),et},w.prototype.resume=function(){var ve=this._readableState;return ve.flowing||(S("resume"),ve.flowing=!ve.readableListening,function ke(ve,et){et.resumeScheduled||(et.resumeScheduled=!0,process.nextTick(Ke,ve,et))}(this,ve)),ve.paused=!1,this},w.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},w.prototype.wrap=function(ve){var et=this,ht=this._readableState,Le=!1;for(var Ae in ve.on("end",function(){if(S("wrapped end"),ht.decoder&&!ht.ended){var pe=ht.decoder.end();pe&&pe.length&&et.push(pe)}et.push(null)}),ve.on("data",function(pe){(S("wrapped data"),ht.decoder&&(pe=ht.decoder.write(pe)),ht.objectMode&&null==pe||!(ht.objectMode||pe&&pe.length))||(et.push(pe)||(Le=!0,ve.pause()))}),ve)void 0===this[Ae]&&"function"==typeof ve[Ae]&&(this[Ae]=function(ee){return function(){return ve[ee].apply(ve,arguments)}}(Ae));for(var te=0;te<ue.length;te++)ve.on(ue[te],this.emit.bind(this,ue[te]));return this._read=function(pe){S("wrapped _read",pe),Le&&(Le=!1,ve.resume())},this},"function"==typeof Symbol&&(w.prototype[Symbol.asyncIterator]=function(){return void 0===_e&&(_e=m(2325)),_e(this)}),Object.defineProperty(w.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),Object.defineProperty(w.prototype,"readableBuffer",{enumerable:!1,get:function(){return this._readableState&&this._readableState.buffer}}),Object.defineProperty(w.prototype,"readableFlowing",{enumerable:!1,get:function(){return this._readableState.flowing},set:function(et){this._readableState&&(this._readableState.flowing=et)}}),w._fromList=Ve,Object.defineProperty(w.prototype,"readableLength",{enumerable:!1,get:function(){return this._readableState.length}}),"function"==typeof Symbol&&(w.from=function(ve,et){return void 0===ce&&(ce=m(6757)),ce(w,ve,et)})},8157:(Ue,q,m)=>{"use strict";Ue.exports=k;var e=m(7446).q,t=e.ERR_METHOD_NOT_IMPLEMENTED,_=e.ERR_MULTIPLE_CALLBACK,E=e.ERR_TRANSFORM_ALREADY_TRANSFORMING,s=e.ERR_TRANSFORM_WITH_LENGTH_0,D=m(9800);function u(A,P){var M=this._transformState;M.transforming=!1;var z=M.writecb;if(null===z)return this.emit("error",new _);M.writechunk=null,M.writecb=null,null!=P&&this.push(P),z(A);var I=this._readableState;I.reading=!1,(I.needReadable||I.length<I.highWaterMark)&&this._read(I.highWaterMark)}function k(A){if(!(this instanceof k))return new k(A);D.call(this,A),this._transformState={afterTransform:u.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,A&&("function"==typeof A.transform&&(this._transform=A.transform),"function"==typeof A.flush&&(this._flush=A.flush)),this.on("prefinish",p)}function p(){var A=this;"function"!=typeof this._flush||this._readableState.destroyed?S(this,null,null):this._flush(function(P,M){S(A,P,M)})}function S(A,P,M){if(P)return A.emit("error",P);if(null!=M&&A.push(M),A._writableState.length)throw new s;if(A._transformState.transforming)throw new E;return A.push(null)}m(5035)(k,D),k.prototype.push=function(A,P){return this._transformState.needTransform=!1,D.prototype.push.call(this,A,P)},k.prototype._transform=function(A,P,M){M(new t("_transform()"))},k.prototype._write=function(A,P,M){var z=this._transformState;if(z.writecb=M,z.writechunk=A,z.writeencoding=P,!z.transforming){var I=this._readableState;(z.needTransform||I.needReadable||I.length<I.highWaterMark)&&this._read(I.highWaterMark)}},k.prototype._read=function(A){var P=this._transformState;null===P.writechunk||P.transforming?P.needTransform=!0:(P.transforming=!0,this._transform(P.writechunk,P.writeencoding,P.afterTransform))},k.prototype._destroy=function(A,P){D.prototype._destroy.call(this,A,function(M){P(M)})}},1120:(Ue,q,m)=>{"use strict";function t(je){var Ve=this;this.next=null,this.entry=null,this.finish=function(){!function Ke(je,Ve,xe){var Ze=je.entry;for(je.entry=null;Ze;){var Ie=Ze.callback;Ve.pendingcb--,Ie(xe),Ze=Ze.next}Ve.corkedRequestsFree.next=je}(Ve,je)}}var _;Ue.exports=he,he.WritableState=ue;var E={deprecate:m(8059)},s=m(8431),D=m(3195).Buffer,u=global.Uint8Array||function(){};var $,S=m(5923),P=m(1561).getHighWaterMark,M=m(7446).q,z=M.ERR_INVALID_ARG_TYPE,I=M.ERR_METHOD_NOT_IMPLEMENTED,W=M.ERR_MULTIPLE_CALLBACK,Z=M.ERR_STREAM_CANNOT_PIPE,Q=M.ERR_STREAM_DESTROYED,ie=M.ERR_STREAM_NULL_VALUES,ae=M.ERR_STREAM_WRITE_AFTER_END,_e=M.ERR_UNKNOWN_ENCODING,ce=S.errorOrDestroy;function ye(){}function ue(je,Ve,xe){_=_||m(9800),je=je||{},"boolean"!=typeof xe&&(xe=Ve instanceof _),this.objectMode=!!je.objectMode,xe&&(this.objectMode=this.objectMode||!!je.writableObjectMode),this.highWaterMark=P(this,je,"writableHighWaterMark",xe),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var Ze=!1===je.decodeStrings;this.decodeStrings=!Ze,this.defaultEncoding=je.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(Ie){!function B(je,Ve){var xe=je._writableState,Ze=xe.sync,Ie=xe.writecb;if("function"!=typeof Ie)throw new W;if(function L(je){je.writing=!1,je.writecb=null,je.length-=je.writelen,je.writelen=0}(xe),Ve)!function y(je,Ve,xe,Ze,Ie){--Ve.pendingcb,xe?(process.nextTick(Ie,Ze),process.nextTick(Fe,je,Ve),je._writableState.errorEmitted=!0,ce(je,Ze)):(Ie(Ze),je._writableState.errorEmitted=!0,ce(je,Ze),Fe(je,Ve))}(je,xe,Ze,Ve,Ie);else{var ve=N(xe)||je.destroyed;!ve&&!xe.corked&&!xe.bufferProcessing&&xe.bufferedRequest&&C(je,xe),Ze?process.nextTick(v,je,xe,ve,Ie):v(je,xe,ve,Ie)}}(Ve,Ie)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=!1!==je.emitClose,this.autoDestroy=!!je.autoDestroy,this.bufferedRequestCount=0,this.corkedRequestsFree=new t(this)}function he(je){var Ve=this instanceof(_=_||m(9800));if(!Ve&&!$.call(he,this))return new he(je);this._writableState=new ue(je,this,Ve),this.writable=!0,je&&("function"==typeof je.write&&(this._write=je.write),"function"==typeof je.writev&&(this._writev=je.writev),"function"==typeof je.destroy&&(this._destroy=je.destroy),"function"==typeof je.final&&(this._final=je.final)),s.call(this)}function d(je,Ve,xe,Ze,Ie,ve,et){Ve.writelen=Ze,Ve.writecb=et,Ve.writing=!0,Ve.sync=!0,Ve.destroyed?Ve.onwrite(new Q("write")):xe?je._writev(Ie,Ve.onwrite):je._write(Ie,ve,Ve.onwrite),Ve.sync=!1}function v(je,Ve,xe,Ze){xe||function a(je,Ve){0===Ve.length&&Ve.needDrain&&(Ve.needDrain=!1,je.emit("drain"))}(je,Ve),Ve.pendingcb--,Ze(),Fe(je,Ve)}function C(je,Ve){Ve.bufferProcessing=!0;var xe=Ve.bufferedRequest;if(je._writev&&xe&&xe.next){var Ze=Ve.bufferedRequestCount,Ie=new Array(Ze),ve=Ve.corkedRequestsFree;ve.entry=xe;for(var et=0,ht=!0;xe;)Ie[et]=xe,xe.isBuf||(ht=!1),xe=xe.next,et+=1;Ie.allBuffers=ht,d(je,Ve,!0,Ve.length,Ie,"",ve.finish),Ve.pendingcb++,Ve.lastBufferedRequest=null,ve.next?(Ve.corkedRequestsFree=ve.next,ve.next=null):Ve.corkedRequestsFree=new t(Ve),Ve.bufferedRequestCount=0}else{for(;xe;){var Le=xe.chunk,Ae=xe.encoding,te=xe.callback;if(d(je,Ve,!1,Ve.objectMode?1:Le.length,Le,Ae,te),xe=xe.next,Ve.bufferedRequestCount--,Ve.writing)break}null===xe&&(Ve.lastBufferedRequest=null)}Ve.bufferedRequest=xe,Ve.bufferProcessing=!1}function N(je){return je.ending&&0===je.length&&null===je.bufferedRequest&&!je.finished&&!je.writing}function F(je,Ve){je._final(function(xe){Ve.pendingcb--,xe&&ce(je,xe),Ve.prefinished=!0,je.emit("prefinish"),Fe(je,Ve)})}function Fe(je,Ve){var xe=N(Ve);if(xe&&(function X(je,Ve){!Ve.prefinished&&!Ve.finalCalled&&("function"!=typeof je._final||Ve.destroyed?(Ve.prefinished=!0,je.emit("prefinish")):(Ve.pendingcb++,Ve.finalCalled=!0,process.nextTick(F,je,Ve)))}(je,Ve),0===Ve.pendingcb&&(Ve.finished=!0,je.emit("finish"),Ve.autoDestroy))){var Ze=je._readableState;(!Ze||Ze.autoDestroy&&Ze.endEmitted)&&je.destroy()}return xe}m(5035)(he,s),ue.prototype.getBuffer=function(){for(var Ve=this.bufferedRequest,xe=[];Ve;)xe.push(Ve),Ve=Ve.next;return xe},function(){try{Object.defineProperty(ue.prototype,"buffer",{get:E.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(he,Symbol.hasInstance,{value:function(Ve){return!!$.call(this,Ve)||this===he&&(Ve&&Ve._writableState instanceof ue)}})):$=function(Ve){return Ve instanceof this},he.prototype.pipe=function(){ce(this,new Z)},he.prototype.write=function(je,Ve,xe){var Ze=this._writableState,Ie=!1,ve=!Ze.objectMode&&function p(je){return D.isBuffer(je)||je instanceof u}(je);return ve&&!D.isBuffer(je)&&(je=function k(je){return D.from(je)}(je)),"function"==typeof Ve&&(xe=Ve,Ve=null),ve?Ve="buffer":Ve||(Ve=Ze.defaultEncoding),"function"!=typeof xe&&(xe=ye),Ze.ending?function w(je,Ve){var xe=new ae;ce(je,xe),process.nextTick(Ve,xe)}(this,xe):(ve||function n(je,Ve,xe,Ze){var Ie;return null===xe?Ie=new ie:"string"!=typeof xe&&!Ve.objectMode&&(Ie=new z("chunk",["string","Buffer"],xe)),!Ie||(ce(je,Ie),process.nextTick(Ze,Ie),!1)}(this,Ze,je,xe))&&(Ze.pendingcb++,Ie=function h(je,Ve,xe,Ze,Ie,ve){if(!xe){var et=function o(je,Ve,xe){return!je.objectMode&&!1!==je.decodeStrings&&"string"==typeof Ve&&(Ve=D.from(Ve,xe)),Ve}(Ve,Ze,Ie);Ze!==et&&(xe=!0,Ie="buffer",Ze=et)}var ht=Ve.objectMode?1:Ze.length;Ve.length+=ht;var Le=Ve.length<Ve.highWaterMark;if(Le||(Ve.needDrain=!0),Ve.writing||Ve.corked){var Ae=Ve.lastBufferedRequest;Ve.lastBufferedRequest={chunk:Ze,encoding:Ie,isBuf:xe,callback:ve,next:null},Ae?Ae.next=Ve.lastBufferedRequest:Ve.bufferedRequest=Ve.lastBufferedRequest,Ve.bufferedRequestCount+=1}else d(je,Ve,!1,ht,Ze,Ie,ve);return Le}(this,Ze,ve,je,Ve,xe)),Ie},he.prototype.cork=function(){this._writableState.corked++},he.prototype.uncork=function(){var je=this._writableState;je.corked&&(je.corked--,!je.writing&&!je.corked&&!je.bufferProcessing&&je.bufferedRequest&&C(this,je))},he.prototype.setDefaultEncoding=function(Ve){if("string"==typeof Ve&&(Ve=Ve.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((Ve+"").toLowerCase())>-1))throw new _e(Ve);return this._writableState.defaultEncoding=Ve,this},Object.defineProperty(he.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(he.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),he.prototype._write=function(je,Ve,xe){xe(new I("_write()"))},he.prototype._writev=null,he.prototype.end=function(je,Ve,xe){var Ze=this._writableState;return"function"==typeof je?(xe=je,je=null,Ve=null):"function"==typeof Ve&&(xe=Ve,Ve=null),null!=je&&this.write(je,Ve),Ze.corked&&(Ze.corked=1,this.uncork()),Ze.ending||function ke(je,Ve,xe){Ve.ending=!0,Fe(je,Ve),xe&&(Ve.finished?process.nextTick(xe):je.once("finish",xe)),Ve.ended=!0,je.writable=!1}(this,Ze,xe),this},Object.defineProperty(he.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}}),Object.defineProperty(he.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._writableState&&this._writableState.destroyed},set:function(Ve){!this._writableState||(this._writableState.destroyed=Ve)}}),he.prototype.destroy=S.destroy,he.prototype._undestroy=S.undestroy,he.prototype._destroy=function(je,Ve){Ve(je)}},2325:(Ue,q,m)=>{"use strict";var e;function t(Q,ie,ae){return ie in Q?Object.defineProperty(Q,ie,{value:ae,enumerable:!0,configurable:!0,writable:!0}):Q[ie]=ae,Q}var _=m(7722),E=Symbol("lastResolve"),s=Symbol("lastReject"),D=Symbol("error"),u=Symbol("ended"),k=Symbol("lastPromise"),p=Symbol("handlePromise"),S=Symbol("stream");function A(Q,ie){return{value:Q,done:ie}}function P(Q){var ie=Q[E];if(null!==ie){var ae=Q[S].read();null!==ae&&(Q[k]=null,Q[E]=null,Q[s]=null,ie(A(ae,!1)))}}function M(Q){process.nextTick(P,Q)}var I=Object.getPrototypeOf(function(){}),W=Object.setPrototypeOf((t(e={get stream(){return this[S]},next:function(){var ie=this,ae=this[D];if(null!==ae)return Promise.reject(ae);if(this[u])return Promise.resolve(A(void 0,!0));if(this[S].destroyed)return new Promise(function(ue,$){process.nextTick(function(){ie[D]?$(ie[D]):ue(A(void 0,!0))})});var ce,_e=this[k];if(_e)ce=new Promise(function z(Q,ie){return function(ae,_e){Q.then(function(){ie[u]?ae(A(void 0,!0)):ie[p](ae,_e)},_e)}}(_e,this));else{var ye=this[S].read();if(null!==ye)return Promise.resolve(A(ye,!1));ce=new Promise(this[p])}return this[k]=ce,ce}},Symbol.asyncIterator,function(){return this}),t(e,"return",function(){var ie=this;return new Promise(function(ae,_e){ie[S].destroy(null,function(ce){ce?_e(ce):ae(A(void 0,!0))})})}),e),I);Ue.exports=function(ie){var ae,_e=Object.create(W,(t(ae={},S,{value:ie,writable:!0}),t(ae,E,{value:null,writable:!0}),t(ae,s,{value:null,writable:!0}),t(ae,D,{value:null,writable:!0}),t(ae,u,{value:ie._readableState.endEmitted,writable:!0}),t(ae,p,{value:function(ye,ue){var $=_e[S].read();$?(_e[k]=null,_e[E]=null,_e[s]=null,ye(A($,!1))):(_e[E]=ye,_e[s]=ue)},writable:!0}),ae));return _e[k]=null,_(ie,function(ce){if(ce&&"ERR_STREAM_PREMATURE_CLOSE"!==ce.code){var ye=_e[s];return null!==ye&&(_e[k]=null,_e[E]=null,_e[s]=null,ye(ce)),void(_e[D]=ce)}var ue=_e[E];null!==ue&&(_e[k]=null,_e[E]=null,_e[s]=null,ue(A(void 0,!0))),_e[u]=!0}),ie.on("readable",M.bind(null,_e)),_e}},350:(Ue,q,m)=>{"use strict";function e(M,z){var I=Object.keys(M);if(Object.getOwnPropertySymbols){var W=Object.getOwnPropertySymbols(M);z&&(W=W.filter(function(Z){return Object.getOwnPropertyDescriptor(M,Z).enumerable})),I.push.apply(I,W)}return I}function _(M,z,I){return z in M?Object.defineProperty(M,z,{value:I,enumerable:!0,configurable:!0,writable:!0}):M[z]=I,M}function s(M,z){for(var I=0;I<z.length;I++){var W=z[I];W.enumerable=W.enumerable||!1,W.configurable=!0,"value"in W&&(W.writable=!0),Object.defineProperty(M,W.key,W)}}var k=m(3195).Buffer,S=m(2361).inspect,A=S&&S.custom||"inspect";function P(M,z,I){k.prototype.copy.call(M,z,I)}Ue.exports=function(){function M(){(function E(M,z){if(!(M instanceof z))throw new TypeError("Cannot call a class as a function")})(this,M),this.head=null,this.tail=null,this.length=0}return function D(M,z,I){return z&&s(M.prototype,z),I&&s(M,I),M}(M,[{key:"push",value:function(I){var W={data:I,next:null};this.length>0?this.tail.next=W:this.head=W,this.tail=W,++this.length}},{key:"unshift",value:function(I){var W={data:I,next:this.head};0===this.length&&(this.tail=W),this.head=W,++this.length}},{key:"shift",value:function(){if(0!==this.length){var I=this.head.data;return 1===this.length?this.head=this.tail=null:this.head=this.head.next,--this.length,I}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(I){if(0===this.length)return"";for(var W=this.head,Z=""+W.data;W=W.next;)Z+=I+W.data;return Z}},{key:"concat",value:function(I){if(0===this.length)return k.alloc(0);for(var W=k.allocUnsafe(I>>>0),Z=this.head,Q=0;Z;)P(Z.data,W,Q),Q+=Z.data.length,Z=Z.next;return W}},{key:"consume",value:function(I,W){var Z;return I<this.head.data.length?(Z=this.head.data.slice(0,I),this.head.data=this.head.data.slice(I)):Z=I===this.head.data.length?this.shift():W?this._getString(I):this._getBuffer(I),Z}},{key:"first",value:function(){return this.head.data}},{key:"_getString",value:function(I){var W=this.head,Z=1,Q=W.data;for(I-=Q.length;W=W.next;){var ie=W.data,ae=I>ie.length?ie.length:I;if(ae===ie.length?Q+=ie:Q+=ie.slice(0,I),0===(I-=ae)){ae===ie.length?(++Z,W.next?this.head=W.next:this.head=this.tail=null):(this.head=W,W.data=ie.slice(ae));break}++Z}return this.length-=Z,Q}},{key:"_getBuffer",value:function(I){var W=k.allocUnsafe(I),Z=this.head,Q=1;for(Z.data.copy(W),I-=Z.data.length;Z=Z.next;){var ie=Z.data,ae=I>ie.length?ie.length:I;if(ie.copy(W,W.length-I,0,ae),0===(I-=ae)){ae===ie.length?(++Q,Z.next?this.head=Z.next:this.head=this.tail=null):(this.head=Z,Z.data=ie.slice(ae));break}++Q}return this.length-=Q,W}},{key:A,value:function(I,W){return S(this,function t(M){for(var z=1;z<arguments.length;z++){var I=null!=arguments[z]?arguments[z]:{};z%2?e(Object(I),!0).forEach(function(W){_(M,W,I[W])}):Object.getOwnPropertyDescriptors?Object.defineProperties(M,Object.getOwnPropertyDescriptors(I)):e(Object(I)).forEach(function(W){Object.defineProperty(M,W,Object.getOwnPropertyDescriptor(I,W))})}return M}({},W,{depth:0,customInspect:!1}))}}]),M}()},5923:Ue=>{"use strict";function m(s,D){_(s,D),e(s)}function e(s){s._writableState&&!s._writableState.emitClose||s._readableState&&!s._readableState.emitClose||s.emit("close")}function _(s,D){s.emit("error",D)}Ue.exports={destroy:function q(s,D){var u=this,k=this._readableState&&this._readableState.destroyed,p=this._writableState&&this._writableState.destroyed;return k||p?(D?D(s):s&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,process.nextTick(_,this,s)):process.nextTick(_,this,s)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(s||null,function(S){!D&&S?u._writableState?u._writableState.errorEmitted?process.nextTick(e,u):(u._writableState.errorEmitted=!0,process.nextTick(m,u,S)):process.nextTick(m,u,S):D?(process.nextTick(e,u),D(S)):process.nextTick(e,u)}),this)},undestroy:function t(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)},errorOrDestroy:function E(s,D){var u=s._readableState,k=s._writableState;u&&u.autoDestroy||k&&k.autoDestroy?s.destroy(D):s.emit("error",D)}}},7722:(Ue,q,m)=>{"use strict";var e=m(7446).q.ERR_STREAM_PREMATURE_CLOSE;function _(){}Ue.exports=function s(D,u,k){if("function"==typeof u)return s(D,null,u);u||(u={}),k=function t(D){var u=!1;return function(){if(!u){u=!0;for(var k=arguments.length,p=new Array(k),S=0;S<k;S++)p[S]=arguments[S];D.apply(this,p)}}}(k||_);var p=u.readable||!1!==u.readable&&D.readable,S=u.writable||!1!==u.writable&&D.writable,A=function(){D.writable||M()},P=D._writableState&&D._writableState.finished,M=function(){S=!1,P=!0,p||k.call(D)},z=D._readableState&&D._readableState.endEmitted,I=function(){p=!1,z=!0,S||k.call(D)},W=function(ae){k.call(D,ae)},Z=function(){var ae;return p&&!z?((!D._readableState||!D._readableState.ended)&&(ae=new e),k.call(D,ae)):S&&!P?((!D._writableState||!D._writableState.ended)&&(ae=new e),k.call(D,ae)):void 0},Q=function(){D.req.on("finish",M)};return function E(D){return D.setHeader&&"function"==typeof D.abort}(D)?(D.on("complete",M),D.on("abort",Z),D.req?Q():D.on("request",Q)):S&&!D._writableState&&(D.on("end",A),D.on("close",A)),D.on("end",I),D.on("finish",M),!1!==u.error&&D.on("error",W),D.on("close",Z),function(){D.removeListener("complete",M),D.removeListener("abort",Z),D.removeListener("request",Q),D.req&&D.req.removeListener("finish",M),D.removeListener("end",A),D.removeListener("close",A),D.removeListener("finish",M),D.removeListener("end",I),D.removeListener("error",W),D.removeListener("close",Z)}}},6757:Ue=>{Ue.exports=function(){throw new Error("Readable.from is not available in the browser")}},8096:(Ue,q,m)=>{"use strict";var e;var _=m(7446).q,E=_.ERR_MISSING_ARGS,s=_.ERR_STREAM_DESTROYED;function D(M){if(M)throw M}function k(M,z,I,W){W=function t(M){var z=!1;return function(){z||(z=!0,M.apply(void 0,arguments))}}(W);var Z=!1;M.on("close",function(){Z=!0}),void 0===e&&(e=m(7722)),e(M,{readable:z,writable:I},function(ie){if(ie)return W(ie);Z=!0,W()});var Q=!1;return function(ie){if(!Z&&!Q){if(Q=!0,function u(M){return M.setHeader&&"function"==typeof M.abort}(M))return M.abort();if("function"==typeof M.destroy)return M.destroy();W(ie||new s("pipe"))}}}function p(M){M()}function S(M,z){return M.pipe(z)}function A(M){return M.length&&"function"==typeof M[M.length-1]?M.pop():D}Ue.exports=function P(){for(var M=arguments.length,z=new Array(M),I=0;I<M;I++)z[I]=arguments[I];var W=A(z);if(Array.isArray(z[0])&&(z=z[0]),z.length<2)throw new E("streams");var Z,Q=z.map(function(ie,ae){var _e=ae<z.length-1;return k(ie,_e,ae>0,function(ye){Z||(Z=ye),ye&&Q.forEach(p),!_e&&(Q.forEach(p),W(Z))})});return z.reduce(S)}},1561:(Ue,q,m)=>{"use strict";var e=m(7446).q.ERR_INVALID_OPT_VALUE;Ue.exports={getHighWaterMark:function _(E,s,D,u){var k=function t(E,s,D){return null!=E.highWaterMark?E.highWaterMark:s?E[D]:null}(s,u,D);if(null!=k){if(!isFinite(k)||Math.floor(k)!==k||k<0)throw new e(u?D:"highWaterMark",k);return Math.floor(k)}return E.objectMode?16:16384}}},8431:(Ue,q,m)=>{Ue.exports=m(3358).EventEmitter},9697:(Ue,q,m)=>{(q=Ue.exports=m(1396)).Stream=q,q.Readable=q,q.Writable=m(1120),q.Duplex=m(9800),q.Transform=m(8157),q.PassThrough=m(1908),q.finished=m(7722),q.pipeline=m(8096)},5351:(Ue,q,m)=>{"use strict";var e=m(3195).Buffer,t=m(5035),_=m(3817),E=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],D=[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],u=[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],k=[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],p=[0,1518500249,1859775393,2400959708,2840853838],S=[1352829926,1548603684,1836072691,2053994217,0];function A(){_.call(this,64),this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520}function P(Q,ie){return Q<<ie|Q>>>32-ie}function M(Q,ie,ae,_e,ce,ye,ue,$){return P(Q+(ie^ae^_e)+ye+ue|0,$)+ce|0}function z(Q,ie,ae,_e,ce,ye,ue,$){return P(Q+(ie&ae|~ie&_e)+ye+ue|0,$)+ce|0}function I(Q,ie,ae,_e,ce,ye,ue,$){return P(Q+((ie|~ae)^_e)+ye+ue|0,$)+ce|0}function W(Q,ie,ae,_e,ce,ye,ue,$){return P(Q+(ie&_e|ae&~_e)+ye+ue|0,$)+ce|0}function Z(Q,ie,ae,_e,ce,ye,ue,$){return P(Q+(ie^(ae|~_e))+ye+ue|0,$)+ce|0}t(A,_),A.prototype._update=function(){for(var Q=E,ie=0;ie<16;++ie)Q[ie]=this._block.readInt32LE(4*ie);for(var ae=0|this._a,_e=0|this._b,ce=0|this._c,ye=0|this._d,ue=0|this._e,$=0|this._a,he=0|this._b,w=0|this._c,n=0|this._d,o=0|this._e,h=0;h<80;h+=1){var d,y;h<16?(d=M(ae,_e,ce,ye,ue,Q[s[h]],p[0],u[h]),y=Z($,he,w,n,o,Q[D[h]],S[0],k[h])):h<32?(d=z(ae,_e,ce,ye,ue,Q[s[h]],p[1],u[h]),y=W($,he,w,n,o,Q[D[h]],S[1],k[h])):h<48?(d=I(ae,_e,ce,ye,ue,Q[s[h]],p[2],u[h]),y=I($,he,w,n,o,Q[D[h]],S[2],k[h])):h<64?(d=W(ae,_e,ce,ye,ue,Q[s[h]],p[3],u[h]),y=z($,he,w,n,o,Q[D[h]],S[3],k[h])):(d=Z(ae,_e,ce,ye,ue,Q[s[h]],p[4],u[h]),y=M($,he,w,n,o,Q[D[h]],S[4],k[h])),ae=ue,ue=ye,ye=P(ce,10),ce=_e,_e=d,$=o,o=n,n=P(w,10),w=he,he=y}var L=this._b+ce+n|0;this._b=this._c+ye+o|0,this._c=this._d+ue+$|0,this._d=this._e+ae+he|0,this._e=this._a+_e+w|0,this._a=L},A.prototype._digest=function(){this._block[this._blockOffset++]=128,this._blockOffset>56&&(this._block.fill(0,this._blockOffset,64),this._update(),this._blockOffset=0),this._block.fill(0,this._blockOffset,56),this._block.writeUInt32LE(this._length[0],56),this._block.writeUInt32LE(this._length[1],60),this._update();var Q=e.alloc?e.alloc(20):new e(20);return Q.writeInt32LE(this._a,0),Q.writeInt32LE(this._b,4),Q.writeInt32LE(this._c,8),Q.writeInt32LE(this._d,12),Q.writeInt32LE(this._e,16),Q},Ue.exports=A},6317:(Ue,q,m)=>{"use strict";m.d(q,{X:()=>t});var e=m(253);class t extends e.x{constructor(E){super(),this._value=E}get value(){return this.getValue()}_subscribe(E){const s=super._subscribe(E);return!s.closed&&E.next(this._value),s}getValue(){const{hasError:E,thrownError:s,_value:D}=this;if(E)throw s;return this._throwIfClosed(),D}next(E){super.next(this._value=E)}}},833:(Ue,q,m)=>{"use strict";m.d(q,{y:()=>k});var e=m(5463),t=m(7714),_=m(4585),E=m(629),s=m(9057),D=m(2971),u=m(2309);class k{constructor(M){M&&(this._subscribe=M)}lift(M){const z=new k;return z.source=this,z.operator=M,z}subscribe(M,z,I){const W=function A(P){return P&&P instanceof e.Lv||function S(P){return P&&(0,D.m)(P.next)&&(0,D.m)(P.error)&&(0,D.m)(P.complete)}(P)&&(0,t.Nn)(P)}(M)?M:new e.Hp(M,z,I);return(0,u.x)(()=>{const{operator:Z,source:Q}=this;W.add(Z?Z.call(W,Q):Q?this._subscribe(W):this._trySubscribe(W))}),W}_trySubscribe(M){try{return this._subscribe(M)}catch(z){M.error(z)}}forEach(M,z){return new(z=p(z))((I,W)=>{const Z=new e.Hp({next:Q=>{try{M(Q)}catch(ie){W(ie),Z.unsubscribe()}},error:W,complete:I});this.subscribe(Z)})}_subscribe(M){var z;return null===(z=this.source)||void 0===z?void 0:z.subscribe(M)}[_.L](){return this}pipe(...M){return(0,E.U)(M)(this)}toPromise(M){return new(M=p(M))((z,I)=>{let W;this.subscribe(Z=>W=Z,Z=>I(Z),()=>z(W))})}}function p(P){var M;return null!==(M=P??s.v.Promise)&&void 0!==M?M:Promise}k.create=P=>new k(P)},6067:(Ue,q,m)=>{"use strict";m.d(q,{t:()=>_});var e=m(253),t=m(7654);class _ extends e.x{constructor(s=1/0,D=1/0,u=t.l){super(),this._bufferSize=s,this._windowTime=D,this._timestampProvider=u,this._buffer=[],this._infiniteTimeWindow=!0,this._infiniteTimeWindow=D===1/0,this._bufferSize=Math.max(1,s),this._windowTime=Math.max(1,D)}next(s){const{isStopped:D,_buffer:u,_infiniteTimeWindow:k,_timestampProvider:p,_windowTime:S}=this;D||(u.push(s),!k&&u.push(p.now()+S)),this._trimBuffer(),super.next(s)}_subscribe(s){this._throwIfClosed(),this._trimBuffer();const D=this._innerSubscribe(s),{_infiniteTimeWindow:u,_buffer:k}=this,p=k.slice();for(let S=0;S<p.length&&!s.closed;S+=u?1:2)s.next(p[S]);return this._checkFinalizedStatuses(s),D}_trimBuffer(){const{_bufferSize:s,_timestampProvider:D,_buffer:u,_infiniteTimeWindow:k}=this,p=(k?1:2)*s;if(s<1/0&&p<u.length&&u.splice(0,u.length-p),!k){const S=D.now();let A=0;for(let P=1;P<u.length&&u[P]<=S;P+=2)A=P;A&&u.splice(0,A+1)}}}},253:(Ue,q,m)=>{"use strict";m.d(q,{u:()=>k,x:()=>u});var e=m(833),t=m(7714);const E=(0,m(7543).d)(p=>function(){p(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"});var s=m(9663),D=m(2309);class u extends e.y{constructor(){super(),this.closed=!1,this.currentObservers=null,this.observers=[],this.isStopped=!1,this.hasError=!1,this.thrownError=null}lift(S){const A=new k(this,this);return A.operator=S,A}_throwIfClosed(){if(this.closed)throw new E}next(S){(0,D.x)(()=>{if(this._throwIfClosed(),!this.isStopped){this.currentObservers||(this.currentObservers=Array.from(this.observers));for(const A of this.currentObservers)A.next(S)}})}error(S){(0,D.x)(()=>{if(this._throwIfClosed(),!this.isStopped){this.hasError=this.isStopped=!0,this.thrownError=S;const{observers:A}=this;for(;A.length;)A.shift().error(S)}})}complete(){(0,D.x)(()=>{if(this._throwIfClosed(),!this.isStopped){this.isStopped=!0;const{observers:S}=this;for(;S.length;)S.shift().complete()}})}unsubscribe(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null}get observed(){var S;return(null===(S=this.observers)||void 0===S?void 0:S.length)>0}_trySubscribe(S){return this._throwIfClosed(),super._trySubscribe(S)}_subscribe(S){return this._throwIfClosed(),this._checkFinalizedStatuses(S),this._innerSubscribe(S)}_innerSubscribe(S){const{hasError:A,isStopped:P,observers:M}=this;return A||P?t.Lc:(this.currentObservers=null,M.push(S),new t.w0(()=>{this.currentObservers=null,(0,s.P)(M,S)}))}_checkFinalizedStatuses(S){const{hasError:A,thrownError:P,isStopped:M}=this;A?S.error(P):M&&S.complete()}asObservable(){const S=new e.y;return S.source=this,S}}u.create=(p,S)=>new k(p,S);class k extends u{constructor(S,A){super(),this.destination=S,this.source=A}next(S){var A,P;null===(P=null===(A=this.destination)||void 0===A?void 0:A.next)||void 0===P||P.call(A,S)}error(S){var A,P;null===(P=null===(A=this.destination)||void 0===A?void 0:A.error)||void 0===P||P.call(A,S)}complete(){var S,A;null===(A=null===(S=this.destination)||void 0===S?void 0:S.complete)||void 0===A||A.call(S)}_subscribe(S){var A,P;return null!==(P=null===(A=this.source)||void 0===A?void 0:A.subscribe(S))&&void 0!==P?P:t.Lc}}},5463:(Ue,q,m)=>{"use strict";m.d(q,{Hp:()=>W,Lv:()=>P});var e=m(2971),t=m(7714),_=m(9057),E=m(4709),s=m(9635);const D=p("C",void 0,void 0);function p(_e,ce,ye){return{kind:_e,value:ce,error:ye}}var S=m(3542),A=m(2309);class P extends t.w0{constructor(ce){super(),this.isStopped=!1,ce?(this.destination=ce,(0,t.Nn)(ce)&&ce.add(this)):this.destination=ae}static create(ce,ye,ue){return new W(ce,ye,ue)}next(ce){this.isStopped?ie(function k(_e){return p("N",_e,void 0)}(ce),this):this._next(ce)}error(ce){this.isStopped?ie(function u(_e){return p("E",void 0,_e)}(ce),this):(this.isStopped=!0,this._error(ce))}complete(){this.isStopped?ie(D,this):(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe(),this.destination=null)}_next(ce){this.destination.next(ce)}_error(ce){try{this.destination.error(ce)}finally{this.unsubscribe()}}_complete(){try{this.destination.complete()}finally{this.unsubscribe()}}}const M=Function.prototype.bind;function z(_e,ce){return M.call(_e,ce)}class I{constructor(ce){this.partialObserver=ce}next(ce){const{partialObserver:ye}=this;if(ye.next)try{ye.next(ce)}catch(ue){Z(ue)}}error(ce){const{partialObserver:ye}=this;if(ye.error)try{ye.error(ce)}catch(ue){Z(ue)}else Z(ce)}complete(){const{partialObserver:ce}=this;if(ce.complete)try{ce.complete()}catch(ye){Z(ye)}}}class W extends P{constructor(ce,ye,ue){let $;if(super(),(0,e.m)(ce)||!ce)$={next:ce??void 0,error:ye??void 0,complete:ue??void 0};else{let he;this&&_.v.useDeprecatedNextContext?(he=Object.create(ce),he.unsubscribe=()=>this.unsubscribe(),$={next:ce.next&&z(ce.next,he),error:ce.error&&z(ce.error,he),complete:ce.complete&&z(ce.complete,he)}):$=ce}this.destination=new I($)}}function Z(_e){_.v.useDeprecatedSynchronousErrorHandling?(0,A.O)(_e):(0,E.h)(_e)}function ie(_e,ce){const{onStoppedNotification:ye}=_.v;ye&&S.z.setTimeout(()=>ye(_e,ce))}const ae={closed:!0,next:s.Z,error:function Q(_e){throw _e},complete:s.Z}},7714:(Ue,q,m)=>{"use strict";m.d(q,{Lc:()=>D,w0:()=>s,Nn:()=>u});var e=m(2971);const _=(0,m(7543).d)(p=>function(A){p(this),this.message=A?`${A.length} errors occurred during unsubscription:\n${A.map((P,M)=>`${M+1}) ${P.toString()}`).join("\n ")}`:"",this.name="UnsubscriptionError",this.errors=A});var E=m(9663);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:A}=this;if(A)if(this._parentage=null,Array.isArray(A))for(const z of A)z.remove(this);else A.remove(this);const{initialTeardown:P}=this;if((0,e.m)(P))try{P()}catch(z){S=z instanceof _?z.errors:[z]}const{_finalizers:M}=this;if(M){this._finalizers=null;for(const z of M)try{k(z)}catch(I){S=S??[],I instanceof _?S=[...S,...I.errors]:S.push(I)}}if(S)throw new _(S)}}add(S){var A;if(S&&S!==this)if(this.closed)k(S);else{if(S instanceof s){if(S.closed||S._hasParent(this))return;S._addParent(this)}(this._finalizers=null!==(A=this._finalizers)&&void 0!==A?A:[]).push(S)}}_hasParent(S){const{_parentage:A}=this;return A===S||Array.isArray(A)&&A.includes(S)}_addParent(S){const{_parentage:A}=this;this._parentage=Array.isArray(A)?(A.push(S),A):A?[A,S]:S}_removeParent(S){const{_parentage:A}=this;A===S?this._parentage=null:Array.isArray(A)&&(0,E.P)(A,S)}remove(S){const{_finalizers:A}=this;A&&(0,E.P)(A,S),S instanceof s&&S._removeParent(this)}}s.EMPTY=(()=>{const p=new s;return p.closed=!0,p})();const D=s.EMPTY;function u(p){return p instanceof s||p&&"closed"in p&&(0,e.m)(p.remove)&&(0,e.m)(p.add)&&(0,e.m)(p.unsubscribe)}function k(p){(0,e.m)(p)?p():p.unsubscribe()}},9057:(Ue,q,m)=>{"use strict";m.d(q,{v:()=>e});const e={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1}},3932:(Ue,q,m)=>{"use strict";m.d(q,{c:()=>D});var e=m(833),t=m(7714),_=m(6074),E=m(3945),s=m(1944);class D extends e.y{constructor(k,p){super(),this.source=k,this.subjectFactory=p,this._subject=null,this._refCount=0,this._connection=null,(0,s.A)(k)&&(this.lift=k.lift)}_subscribe(k){return this.getSubject().subscribe(k)}getSubject(){const k=this._subject;return(!k||k.isStopped)&&(this._subject=this.subjectFactory()),this._subject}_teardown(){this._refCount=0;const{_connection:k}=this;this._subject=this._connection=null,k?.unsubscribe()}connect(){let k=this._connection;if(!k){k=this._connection=new t.w0;const p=this.getSubject();k.add(this.source.subscribe((0,E.x)(p,void 0,()=>{this._teardown(),p.complete()},S=>{this._teardown(),p.error(S)},()=>this._teardown()))),k.closed&&(this._connection=null,k=t.w0.EMPTY)}return k}refCount(){return(0,_.x)()(this)}}},6562:(Ue,q,m)=>{"use strict";m.d(q,{a:()=>S});var e=m(833),t=m(5756),_=m(7400),E=m(9173),s=m(8385),D=m(420),u=m(1054),k=m(3945),p=m(1817);function S(...M){const z=(0,D.yG)(M),I=(0,D.jO)(M),{args:W,keys:Z}=(0,t.D)(M);if(0===W.length)return(0,_.D)([],z);const Q=new e.y(function A(M,z,I=E.y){return W=>{P(z,()=>{const{length:Z}=M,Q=new Array(Z);let ie=Z,ae=Z;for(let _e=0;_e<Z;_e++)P(z,()=>{const ce=(0,_.D)(M[_e],z);let ye=!1;ce.subscribe((0,k.x)(W,ue=>{Q[_e]=ue,ye||(ye=!0,ae--),ae||W.next(I(Q.slice()))},()=>{--ie||W.complete()}))},W)},W)}}(W,z,Z?ie=>(0,u.n)(Z,ie):E.y));return I?Q.pipe((0,s.Z)(I)):Q}function P(M,z,I){M?(0,p.f)(I,M,z):z()}},9319:(Ue,q,m)=>{"use strict";m.d(q,{z:()=>s});var e=m(1308);var _=m(420),E=m(7400);function s(...D){return function t(){return(0,e.J)(1)}()((0,E.D)(D,(0,_.yG)(D)))}},1954:(Ue,q,m)=>{"use strict";m.d(q,{P:()=>_});var e=m(833),t=m(4987);function _(E){return new e.y(s=>{(0,t.Xf)(E()).subscribe(s)})}},591:(Ue,q,m)=>{"use strict";m.d(q,{E:()=>t});const t=new(m(833).y)(s=>s.complete())},1640:(Ue,q,m)=>{"use strict";m.d(q,{D:()=>k});var e=m(833),t=m(5756),_=m(4987),E=m(420),s=m(3945),D=m(8385),u=m(1054);function k(...p){const S=(0,E.jO)(p),{args:A,keys:P}=(0,t.D)(p),M=new e.y(z=>{const{length:I}=A;if(!I)return void z.complete();const W=new Array(I);let Z=I,Q=I;for(let ie=0;ie<I;ie++){let ae=!1;(0,_.Xf)(A[ie]).subscribe((0,s.x)(z,_e=>{ae||(ae=!0,Q--),W[ie]=_e},()=>Z--,void 0,()=>{(!Z||!ae)&&(Q||z.next(P?(0,u.n)(P,W):W),z.complete())}))}});return S?M.pipe((0,D.Z)(S)):M}},7400:(Ue,q,m)=>{"use strict";m.d(q,{D:()=>ye});var e=m(4987),t=m(8728),_=m(1944);function E(ue,$=0){return(0,_.e)((he,w)=>{w.add(ue.schedule(()=>he.subscribe(w),$))})}var u=m(833);var p=m(7321),S=m(2971),A=m(1817);function M(ue,$){if(!ue)throw new Error("Iterable cannot be null");return new u.y(he=>{(0,A.f)(he,$,()=>{const w=ue[Symbol.asyncIterator]();(0,A.f)(he,$,()=>{w.next().then(n=>{n.done?he.complete():he.next(n.value)})},0,!0)})})}var z=m(1331),I=m(9548),W=m(9806),Z=m(3433),Q=m(470),ie=m(7785),ae=m(181);function ce(ue,$){if(null!=ue){if((0,z.c)(ue))return function s(ue,$){return(0,e.Xf)(ue).pipe(E($),(0,t.Q)($))}(ue,$);if((0,W.z)(ue))return function k(ue,$){return new u.y(he=>{let w=0;return $.schedule(function(){w===ue.length?he.complete():(he.next(ue[w++]),he.closed||this.schedule())})})}(ue,$);if((0,I.t)(ue))return function D(ue,$){return(0,e.Xf)(ue).pipe(E($),(0,t.Q)($))}(ue,$);if((0,Q.D)(ue))return M(ue,$);if((0,Z.T)(ue))return function P(ue,$){return new u.y(he=>{let w;return(0,A.f)(he,$,()=>{w=ue[p.h](),(0,A.f)(he,$,()=>{let n,o;try{({value:n,done:o}=w.next())}catch(h){return void he.error(h)}o?he.complete():he.next(n)},0,!0)}),()=>(0,S.m)(w?.return)&&w.return()})}(ue,$);if((0,ae.L)(ue))return function _e(ue,$){return M((0,ae.Q)(ue),$)}(ue,$)}throw(0,ie.z)(ue)}function ye(ue,$){return $?ce(ue,$):(0,e.Xf)(ue)}},3280:(Ue,q,m)=>{"use strict";m.d(q,{R:()=>S});var e=m(4987),t=m(833),_=m(9525),E=m(9806),s=m(2971),D=m(8385);const u=["addListener","removeListener"],k=["addEventListener","removeEventListener"],p=["on","off"];function S(I,W,Z,Q){if((0,s.m)(Z)&&(Q=Z,Z=void 0),Q)return S(I,W,Z).pipe((0,D.Z)(Q));const[ie,ae]=function z(I){return(0,s.m)(I.addEventListener)&&(0,s.m)(I.removeEventListener)}(I)?k.map(_e=>ce=>I[_e](W,ce,Z)):function P(I){return(0,s.m)(I.addListener)&&(0,s.m)(I.removeListener)}(I)?u.map(A(I,W)):function M(I){return(0,s.m)(I.on)&&(0,s.m)(I.off)}(I)?p.map(A(I,W)):[];if(!ie&&(0,E.z)(I))return(0,_.z)(_e=>S(_e,W,Z))((0,e.Xf)(I));if(!ie)throw new TypeError("Invalid event target");return new t.y(_e=>{const ce=(...ye)=>_e.next(1<ye.length?ye:ye[0]);return ie(ce),()=>ae(ce)})}function A(I,W){return Z=>Q=>I[Z](W,Q)}},4987:(Ue,q,m)=>{"use strict";m.d(q,{Xf:()=>M});var e=m(4929),t=m(9806),_=m(9548),E=m(833),s=m(1331),D=m(470),u=m(7785),k=m(3433),p=m(181),S=m(2971),A=m(4709),P=m(4585);function M(_e){if(_e instanceof E.y)return _e;if(null!=_e){if((0,s.c)(_e))return function z(_e){return new E.y(ce=>{const ye=_e[P.L]();if((0,S.m)(ye.subscribe))return ye.subscribe(ce);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}(_e);if((0,t.z)(_e))return function I(_e){return new E.y(ce=>{for(let ye=0;ye<_e.length&&!ce.closed;ye++)ce.next(_e[ye]);ce.complete()})}(_e);if((0,_.t)(_e))return function W(_e){return new E.y(ce=>{_e.then(ye=>{ce.closed||(ce.next(ye),ce.complete())},ye=>ce.error(ye)).then(null,A.h)})}(_e);if((0,D.D)(_e))return Q(_e);if((0,k.T)(_e))return function Z(_e){return new E.y(ce=>{for(const ye of _e)if(ce.next(ye),ce.closed)return;ce.complete()})}(_e);if((0,p.L)(_e))return function ie(_e){return Q((0,p.Q)(_e))}(_e)}throw(0,u.z)(_e)}function Q(_e){return new E.y(ce=>{(function ae(_e,ce){var ye,ue,$,he;return(0,e.mG)(this,void 0,void 0,function*(){try{for(ye=(0,e.KL)(_e);!(ue=yield ye.next()).done;){const w=ue.value;if(ce.next(w),ce.closed)return}}catch(w){$={error:w}}finally{try{ue&&!ue.done&&(he=ye.return)&&(yield he.call(ye))}finally{if($)throw $.error}}ce.complete()})})(_e,ce).catch(ye=>ce.error(ye))})}},6646:(Ue,q,m)=>{"use strict";m.d(q,{T:()=>D});var e=m(1308),t=m(4987),_=m(591),E=m(420),s=m(7400);function D(...u){const k=(0,E.yG)(u),p=(0,E._6)(u,1/0),S=u;return S.length?1===S.length?(0,t.Xf)(S[0]):(0,e.J)(p)((0,s.D)(S,k)):_.E}},745:(Ue,q,m)=>{"use strict";m.d(q,{of:()=>_});var e=m(420),t=m(7400);function _(...E){const s=(0,e.yG)(E);return(0,t.D)(E,s)}},5474:(Ue,q,m)=>{"use strict";m.d(q,{_:()=>_});var e=m(833),t=m(2971);function _(E,s){const D=(0,t.m)(E)?E:()=>E,u=k=>k.error(D());return new e.y(s?k=>s.schedule(u,0,k):u)}},8947:(Ue,q,m)=>{"use strict";m.d(q,{H:()=>s});var e=m(833),t=m(6936),_=m(9867),E=m(7885);function s(D=0,u,k=t.P){let p=-1;return null!=u&&((0,_.K)(u)?k=u:p=u),new e.y(S=>{let A=(0,E.q)(D)?+D-k.now():D;A<0&&(A=0);let P=0;return k.schedule(function(){S.closed||(S.next(P++),0<=p?this.schedule(void 0,p):S.complete())},A)})}},3945:(Ue,q,m)=>{"use strict";m.d(q,{Q:()=>_,x:()=>t});var e=m(5463);function t(E,s,D,u,k){return new _(E,s,D,u,k)}class _ extends e.Lv{constructor(s,D,u,k,p,S){super(s),this.onFinalize=p,this.shouldUnsubscribe=S,this._next=D?function(A){try{D(A)}catch(P){s.error(P)}}:super._next,this._error=k?function(A){try{k(A)}catch(P){s.error(P)}finally{this.unsubscribe()}}:super._error,this._complete=u?function(){try{u()}catch(A){s.error(A)}finally{this.unsubscribe()}}:super._complete}unsubscribe(){var s;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){const{closed:D}=this;super.unsubscribe(),!D&&(null===(s=this.onFinalize)||void 0===s||s.call(this))}}}},9211:(Ue,q,m)=>{"use strict";m.d(q,{e:()=>u});var e=m(6936),t=m(1944),_=m(4987),E=m(3945);var D=m(8947);function u(k,p=e.z){return function s(k){return(0,t.e)((p,S)=>{let A=!1,P=null,M=null,z=!1;const I=()=>{if(M?.unsubscribe(),M=null,A){A=!1;const Z=P;P=null,S.next(Z)}z&&S.complete()},W=()=>{M=null,z&&S.complete()};p.subscribe((0,E.x)(S,Z=>{A=!0,P=Z,M||(0,_.Xf)(k(Z)).subscribe(M=(0,E.x)(S,I,W))},()=>{z=!0,(!A||!M||M.closed)&&S.complete()}))})}(()=>(0,D.H)(k,p))}},3158:(Ue,q,m)=>{"use strict";m.d(q,{K:()=>E});var e=m(4987),t=m(3945),_=m(1944);function E(s){return(0,_.e)((D,u)=>{let S,k=null,p=!1;k=D.subscribe((0,t.x)(u,void 0,void 0,A=>{S=(0,e.Xf)(s(A,E(s)(D))),k?(k.unsubscribe(),k=null,S.subscribe(u)):p=!0})),p&&(k.unsubscribe(),k=null,S.subscribe(u))})}},3853:(Ue,q,m)=>{"use strict";m.d(q,{b:()=>_});var e=m(9525),t=m(2971);function _(E,s){return(0,t.m)(s)?(0,e.z)(E,s,1):(0,e.z)(E,1)}},1989:(Ue,q,m)=>{"use strict";m.d(q,{b:()=>E});var e=m(6936),t=m(1944),_=m(3945);function E(s,D=e.z){return(0,t.e)((u,k)=>{let p=null,S=null,A=null;const P=()=>{if(p){p.unsubscribe(),p=null;const z=S;S=null,k.next(z)}};function M(){const z=A+s,I=D.now();if(I<z)return p=this.schedule(void 0,z-I),void k.add(p);P()}u.subscribe((0,_.x)(k,z=>{S=z,A=D.now(),p||(p=D.schedule(M,s),k.add(p))},()=>{P(),k.complete()},void 0,()=>{S=p=null}))})}},4744:(Ue,q,m)=>{"use strict";m.d(q,{d:()=>_});var e=m(1944),t=m(3945);function _(E){return(0,e.e)((s,D)=>{let u=!1;s.subscribe((0,t.x)(D,k=>{u=!0,D.next(k)},()=>{u||D.next(E),D.complete()}))})}},6234:(Ue,q,m)=>{"use strict";m.d(q,{g:()=>p});var e=m(6936),t=m(9319),_=m(9295),E=m(23),s=m(73),D=m(9525);function u(S,A){return A?P=>(0,t.z)(A.pipe((0,_.q)(1),(0,E.l)()),P.pipe(u(S))):(0,D.z)((P,M)=>S(P,M).pipe((0,_.q)(1),(0,s.h)(P)))}var k=m(8947);function p(S,A=e.z){const P=(0,k.H)(S,A);return u(()=>P)}},8977:(Ue,q,m)=>{"use strict";m.d(q,{x:()=>E});var e=m(9173),t=m(1944),_=m(3945);function E(D,u=e.y){return D=D??s,(0,t.e)((k,p)=>{let S,A=!0;k.subscribe((0,_.x)(p,P=>{const M=u(P);(A||!D(S,M))&&(A=!1,S=M,p.next(P))}))})}function s(D,u){return D===u}},116:(Ue,q,m)=>{"use strict";m.d(q,{h:()=>_});var e=m(1944),t=m(3945);function _(E,s){return(0,e.e)((D,u)=>{let k=0;D.subscribe((0,t.x)(u,p=>E.call(s,p,k++)&&u.next(p)))})}},2313:(Ue,q,m)=>{"use strict";m.d(q,{x:()=>t});var e=m(1944);function t(_){return(0,e.e)((E,s)=>{try{E.subscribe(s)}finally{s.add(_)}})}},155:(Ue,q,m)=>{"use strict";m.d(q,{P:()=>u});var e=m(4423),t=m(116),_=m(9295),E=m(4744),s=m(7354),D=m(9173);function u(k,p){const S=arguments.length>=2;return A=>A.pipe(k?(0,t.h)((P,M)=>k(P,M,A)):D.y,(0,_.q)(1),S?(0,E.d)(p):(0,s.T)(()=>new e.K))}},23:(Ue,q,m)=>{"use strict";m.d(q,{l:()=>E});var e=m(1944),t=m(3945),_=m(9635);function E(){return(0,e.e)((s,D)=>{s.subscribe((0,t.x)(D,_.Z))})}},635:(Ue,q,m)=>{"use strict";m.d(q,{U:()=>_});var e=m(1944),t=m(3945);function _(E,s){return(0,e.e)((D,u)=>{let k=0;D.subscribe((0,t.x)(u,p=>{u.next(E.call(s,p,k++))}))})}},73:(Ue,q,m)=>{"use strict";m.d(q,{h:()=>t});var e=m(635);function t(_){return(0,e.U)(()=>_)}},1308:(Ue,q,m)=>{"use strict";m.d(q,{J:()=>_});var e=m(9525),t=m(9173);function _(E=1/0){return(0,e.z)(t.y,E)}},9525:(Ue,q,m)=>{"use strict";m.d(q,{z:()=>k});var e=m(635),t=m(4987),_=m(1944),E=m(1817),s=m(3945);var u=m(2971);function k(p,S,A=1/0){return(0,u.m)(S)?k((P,M)=>(0,e.U)((z,I)=>S(P,z,M,I))((0,t.Xf)(p(P,M))),A):("number"==typeof S&&(A=S),(0,_.e)((P,M)=>function D(p,S,A,P,M,z,I,W){const Z=[];let Q=0,ie=0,ae=!1;const _e=()=>{ae&&!Z.length&&!Q&&S.complete()},ce=ue=>Q<P?ye(ue):Z.push(ue),ye=ue=>{z&&S.next(ue),Q++;let $=!1;(0,t.Xf)(A(ue,ie++)).subscribe((0,s.x)(S,he=>{M?.(he),z?ce(he):S.next(he)},()=>{$=!0},void 0,()=>{if($)try{for(Q--;Z.length&&Q<P;){const he=Z.shift();I?(0,E.f)(S,I,()=>ye(he)):ye(he)}_e()}catch(he){S.error(he)}}))};return p.subscribe((0,s.x)(S,ce,()=>{ae=!0,_e()})),()=>{W?.()}}(P,M,p,A)))}},8728:(Ue,q,m)=>{"use strict";m.d(q,{Q:()=>E});var e=m(1817),t=m(1944),_=m(3945);function E(s,D=0){return(0,t.e)((u,k)=>{u.subscribe((0,_.x)(k,p=>(0,e.f)(k,s,()=>k.next(p),D),()=>(0,e.f)(k,s,()=>k.complete(),D),p=>(0,e.f)(k,s,()=>k.error(p),D)))})}},6074:(Ue,q,m)=>{"use strict";m.d(q,{x:()=>_});var e=m(1944),t=m(3945);function _(){return(0,e.e)((E,s)=>{let D=null;E._refCount++;const u=(0,t.x)(s,void 0,void 0,void 0,()=>{if(!E||E._refCount<=0||0<--E._refCount)return void(D=null);const k=E._connection,p=D;D=null,k&&(!p||k===p)&&k.unsubscribe(),s.unsubscribe()});E.subscribe(u),u.closed||(D=E.connect())})}},4351:(Ue,q,m)=>{"use strict";m.d(q,{R:()=>E});var e=m(1944),t=m(3945);function _(s,D,u,k,p){return(S,A)=>{let P=u,M=D,z=0;S.subscribe((0,t.x)(A,I=>{const W=z++;M=P?s(M,I,W):(P=!0,I),k&&A.next(M)},p&&(()=>{P&&A.next(M),A.complete()})))}}function E(s,D){return(0,e.e)(_(s,D,arguments.length>=2,!0))}},1203:(Ue,q,m)=>{"use strict";m.d(q,{B:()=>s});var e=m(4987),t=m(253),_=m(5463),E=m(1944);function s(u={}){const{connector:k=(()=>new t.x),resetOnError:p=!0,resetOnComplete:S=!0,resetOnRefCountZero:A=!0}=u;return P=>{let M,z,I,W=0,Z=!1,Q=!1;const ie=()=>{z?.unsubscribe(),z=void 0},ae=()=>{ie(),M=I=void 0,Z=Q=!1},_e=()=>{const ce=M;ae(),ce?.unsubscribe()};return(0,E.e)((ce,ye)=>{W++,!Q&&!Z&&ie();const ue=I=I??k();ye.add(()=>{W--,0===W&&!Q&&!Z&&(z=D(_e,A))}),ue.subscribe(ye),!M&&W>0&&(M=new _.Hp({next:$=>ue.next($),error:$=>{Q=!0,ie(),z=D(ae,p,$),ue.error($)},complete:()=>{Z=!0,ie(),z=D(ae,S),ue.complete()}}),(0,e.Xf)(ce).subscribe(M))})(P)}}function D(u,k,...p){if(!0===k)return void u();if(!1===k)return;const S=new _.Hp({next:()=>{S.unsubscribe(),u()}});return k(...p).subscribe(S)}},7260:(Ue,q,m)=>{"use strict";m.d(q,{T:()=>t});var e=m(116);function t(_){return(0,e.h)((E,s)=>_<=s)}},4874:(Ue,q,m)=>{"use strict";m.d(q,{O:()=>E});var e=m(9319),t=m(420),_=m(1944);function E(...s){const D=(0,t.yG)(s);return(0,_.e)((u,k)=>{(D?(0,e.z)(s,u,D):(0,e.z)(s,u)).subscribe(k)})}},2673:(Ue,q,m)=>{"use strict";m.d(q,{w:()=>E});var e=m(4987),t=m(1944),_=m(3945);function E(s,D){return(0,t.e)((u,k)=>{let p=null,S=0,A=!1;const P=()=>A&&!p&&k.complete();u.subscribe((0,_.x)(k,M=>{p?.unsubscribe();let z=0;const I=S++;(0,e.Xf)(s(M,I)).subscribe(p=(0,_.x)(k,W=>k.next(D?D(M,W,I,z++):W),()=>{p=null,P()}))},()=>{A=!0,P()}))})}},9295:(Ue,q,m)=>{"use strict";m.d(q,{q:()=>E});var e=m(591),t=m(1944),_=m(3945);function E(s){return s<=0?()=>e.E:(0,t.e)((D,u)=>{let k=0;D.subscribe((0,_.x)(u,p=>{++k<=s&&(u.next(p),s<=k&&u.complete())}))})}},8951:(Ue,q,m)=>{"use strict";m.d(q,{R:()=>s});var e=m(1944),t=m(3945),_=m(4987),E=m(9635);function s(D){return(0,e.e)((u,k)=>{(0,_.Xf)(D).subscribe((0,t.x)(k,()=>k.complete(),E.Z)),!k.closed&&u.subscribe(k)})}},2566:(Ue,q,m)=>{"use strict";m.d(q,{o:()=>_});var e=m(1944),t=m(3945);function _(E,s=!1){return(0,e.e)((D,u)=>{let k=0;D.subscribe((0,t.x)(u,p=>{const S=E(p,k++);(S||s)&&u.next(p),!S&&u.complete()}))})}},9337:(Ue,q,m)=>{"use strict";m.d(q,{b:()=>s});var e=m(2971),t=m(1944),_=m(3945),E=m(9173);function s(D,u,k){const p=(0,e.m)(D)||u||k?{next:D,error:u,complete:k}:D;return p?(0,t.e)((S,A)=>{var P;null===(P=p.subscribe)||void 0===P||P.call(p);let M=!0;S.subscribe((0,_.x)(A,z=>{var I;null===(I=p.next)||void 0===I||I.call(p,z),A.next(z)},()=>{var z;M=!1,null===(z=p.complete)||void 0===z||z.call(p),A.complete()},z=>{var I;M=!1,null===(I=p.error)||void 0===I||I.call(p,z),A.error(z)},()=>{var z,I;M&&(null===(z=p.unsubscribe)||void 0===z||z.call(p)),null===(I=p.finalize)||void 0===I||I.call(p)}))}):E.y}},7354:(Ue,q,m)=>{"use strict";m.d(q,{T:()=>E});var e=m(4423),t=m(1944),_=m(3945);function E(D=s){return(0,t.e)((u,k)=>{let p=!1;u.subscribe((0,_.x)(k,S=>{p=!0,k.next(S)},()=>p?k.complete():k.error(D())))})}function s(){return new e.K}},7580:(Ue,q,m)=>{"use strict";m.d(q,{V:()=>p});var e=m(6936),t=m(7885),_=m(1944),E=m(4987),s=m(7543),D=m(3945),u=m(1817);const k=(0,s.d)(A=>function(M=null){A(this),this.message="Timeout has occurred",this.name="TimeoutError",this.info=M});function p(A,P){const{first:M,each:z,with:I=S,scheduler:W=P??e.z,meta:Z=null}=(0,t.q)(A)?{first:A}:"number"==typeof A?{each:A}:A;if(null==M&&null==z)throw new TypeError("No timeout provided.");return(0,_.e)((Q,ie)=>{let ae,_e,ce=null,ye=0;const ue=$=>{_e=(0,u.f)(ie,W,()=>{try{ae.unsubscribe(),(0,E.Xf)(I({meta:Z,lastValue:ce,seen:ye})).subscribe(ie)}catch(he){ie.error(he)}},$)};ae=Q.subscribe((0,D.x)(ie,$=>{_e?.unsubscribe(),ye++,ie.next(ce=$),z>0&&ue(z)},void 0,void 0,()=>{_e?.closed||_e?.unsubscribe(),ce=null})),!ye&&ue(null!=M?"number"==typeof M?M:+M-W.now():z)})}function S(A){throw new k(A)}},538:(Ue,q,m)=>{"use strict";m.d(q,{M:()=>u});var e=m(1944),t=m(3945),_=m(4987),E=m(9173),s=m(9635),D=m(420);function u(...k){const p=(0,D.jO)(k);return(0,e.e)((S,A)=>{const P=k.length,M=new Array(P);let z=k.map(()=>!1),I=!1;for(let W=0;W<P;W++)(0,_.Xf)(k[W]).subscribe((0,t.x)(A,Z=>{M[W]=Z,!I&&!z[W]&&(z[W]=!0,(I=z.every(E.y))&&(z=null))},s.Z));S.subscribe((0,t.x)(A,W=>{if(I){const Z=[W,...M];A.next(p?p(...Z):Z)}}))})}},5417:(Ue,q,m)=>{"use strict";m.d(q,{o:()=>s});var e=m(7714);class t extends e.w0{constructor(u,k){super()}schedule(u,k=0){return this}}const _={setInterval(D,u,...k){const{delegate:p}=_;return p?.setInterval?p.setInterval(D,u,...k):setInterval(D,u,...k)},clearInterval(D){const{delegate:u}=_;return(u?.clearInterval||clearInterval)(D)},delegate:void 0};var E=m(9663);class s extends t{constructor(u,k){super(u,k),this.scheduler=u,this.work=k,this.pending=!1}schedule(u,k=0){var p;if(this.closed)return this;this.state=u;const S=this.id,A=this.scheduler;return null!=S&&(this.id=this.recycleAsyncId(A,S,k)),this.pending=!0,this.delay=k,this.id=null!==(p=this.id)&&void 0!==p?p:this.requestAsyncId(A,this.id,k),this}requestAsyncId(u,k,p=0){return _.setInterval(u.flush.bind(u,this),p)}recycleAsyncId(u,k,p=0){if(null!=p&&this.delay===p&&!1===this.pending)return k;null!=k&&_.clearInterval(k)}execute(u,k){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;const p=this._execute(u,k);if(p)return p;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}_execute(u,k){let S,p=!1;try{this.work(u)}catch(A){p=!0,S=A||new Error("Scheduled action threw falsy error")}if(p)return this.unsubscribe(),S}unsubscribe(){if(!this.closed){const{id:u,scheduler:k}=this,{actions:p}=k;this.work=this.state=this.scheduler=null,this.pending=!1,(0,E.P)(p,this),null!=u&&(this.id=this.recycleAsyncId(k,u,null)),this.delay=null,super.unsubscribe()}}}},1010:(Ue,q,m)=>{"use strict";m.d(q,{v:()=>_});var e=m(7654);class t{constructor(s,D=t.now){this.schedulerActionCtor=s,this.now=D}schedule(s,D=0,u){return new this.schedulerActionCtor(this,s).schedule(u,D)}}t.now=e.l.now;class _ extends t{constructor(s,D=t.now){super(s,D),this.actions=[],this._active=!1}flush(s){const{actions:D}=this;if(this._active)return void D.push(s);let u;this._active=!0;do{if(u=s.execute(s.state,s.delay))break}while(s=D.shift());if(this._active=!1,u){for(;s=D.shift();)s.unsubscribe();throw u}}}},3888:(Ue,q,m)=>{"use strict";m.d(q,{E:()=>z});var e=m(5417);let _,t=1;const E={};function s(W){return W in E&&(delete E[W],!0)}const D={setImmediate(W){const Z=t++;return E[Z]=!0,_||(_=Promise.resolve()),_.then(()=>s(Z)&&W()),Z},clearImmediate(W){s(W)}},{setImmediate:k,clearImmediate:p}=D,S={setImmediate(...W){const{delegate:Z}=S;return(Z?.setImmediate||k)(...W)},clearImmediate(W){const{delegate:Z}=S;return(Z?.clearImmediate||p)(W)},delegate:void 0};class A extends e.o{constructor(Z,Q){super(Z,Q),this.scheduler=Z,this.work=Q}requestAsyncId(Z,Q,ie=0){return null!==ie&&ie>0?super.requestAsyncId(Z,Q,ie):(Z.actions.push(this),Z._scheduled||(Z._scheduled=S.setImmediate(Z.flush.bind(Z,void 0))))}recycleAsyncId(Z,Q,ie=0){var ae;if(null!=ie?ie>0:this.delay>0)return super.recycleAsyncId(Z,Q,ie);const{actions:_e}=Z;null!=Q&&(null===(ae=_e[_e.length-1])||void 0===ae?void 0:ae.id)!==Q&&(S.clearImmediate(Q),Z._scheduled=void 0)}}var P=m(1010);class M extends P.v{flush(Z){this._active=!0;const Q=this._scheduled;this._scheduled=void 0;const{actions:ie}=this;let ae;Z=Z||ie.shift();do{if(ae=Z.execute(Z.state,Z.delay))break}while((Z=ie[0])&&Z.id===Q&&ie.shift());if(this._active=!1,ae){for(;(Z=ie[0])&&Z.id===Q&&ie.shift();)Z.unsubscribe();throw ae}}}const z=new M(A)},6936:(Ue,q,m)=>{"use strict";m.d(q,{P:()=>E,z:()=>_});var e=m(5417);const _=new(m(1010).v)(e.o),E=_},7654:(Ue,q,m)=>{"use strict";m.d(q,{l:()=>e});const e={now:()=>(e.delegate||Date).now(),delegate:void 0}},4915:(Ue,q,m)=>{"use strict";m.d(q,{N:()=>s});var e=m(5417);class t extends e.o{constructor(k,p){super(k,p),this.scheduler=k,this.work=p}schedule(k,p=0){return p>0?super.schedule(k,p):(this.delay=p,this.state=k,this.scheduler.flush(this),this)}execute(k,p){return p>0||this.closed?super.execute(k,p):this._execute(k,p)}requestAsyncId(k,p,S=0){return null!=S&&S>0||null==S&&this.delay>0?super.requestAsyncId(k,p,S):(k.flush(this),0)}}var _=m(1010);class E extends _.v{}const s=new E(t)},3542:(Ue,q,m)=>{"use strict";m.d(q,{z:()=>e});const e={setTimeout(t,_,...E){const{delegate:s}=e;return s?.setTimeout?s.setTimeout(t,_,...E):setTimeout(t,_,...E)},clearTimeout(t){const{delegate:_}=e;return(_?.clearTimeout||clearTimeout)(t)},delegate:void 0}},7321:(Ue,q,m)=>{"use strict";m.d(q,{h:()=>t});const t=function e(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}()},4585:(Ue,q,m)=>{"use strict";m.d(q,{L:()=>e});const e="function"==typeof Symbol&&Symbol.observable||"@@observable"},4423:(Ue,q,m)=>{"use strict";m.d(q,{K:()=>t});const t=(0,m(7543).d)(_=>function(){_(this),this.name="EmptyError",this.message="no elements in sequence"})},420:(Ue,q,m)=>{"use strict";m.d(q,{_6:()=>D,jO:()=>E,yG:()=>s});var e=m(2971),t=m(9867);function _(u){return u[u.length-1]}function E(u){return(0,e.m)(_(u))?u.pop():void 0}function s(u){return(0,t.K)(_(u))?u.pop():void 0}function D(u,k){return"number"==typeof _(u)?u.pop():k}},5756:(Ue,q,m)=>{"use strict";m.d(q,{D:()=>s});const{isArray:e}=Array,{getPrototypeOf:t,prototype:_,keys:E}=Object;function s(u){if(1===u.length){const k=u[0];if(e(k))return{args:k,keys:null};if(function D(u){return u&&"object"==typeof u&&t(u)===_}(k)){const p=E(k);return{args:p.map(S=>k[S]),keys:p}}}return{args:u,keys:null}}},9663:(Ue,q,m)=>{"use strict";function e(t,_){if(t){const E=t.indexOf(_);0<=E&&t.splice(E,1)}}m.d(q,{P:()=>e})},7543:(Ue,q,m)=>{"use strict";function e(t){const E=t(s=>{Error.call(s),s.stack=(new Error).stack});return E.prototype=Object.create(Error.prototype),E.prototype.constructor=E,E}m.d(q,{d:()=>e})},1054:(Ue,q,m)=>{"use strict";function e(t,_){return t.reduce((E,s,D)=>(E[s]=_[D],E),{})}m.d(q,{n:()=>e})},2309:(Ue,q,m)=>{"use strict";m.d(q,{O:()=>E,x:()=>_});var e=m(9057);let t=null;function _(s){if(e.v.useDeprecatedSynchronousErrorHandling){const D=!t;if(D&&(t={errorThrown:!1,error:null}),s(),D){const{errorThrown:u,error:k}=t;if(t=null,u)throw k}}else s()}function E(s){e.v.useDeprecatedSynchronousErrorHandling&&t&&(t.errorThrown=!0,t.error=s)}},1817:(Ue,q,m)=>{"use strict";function e(t,_,E,s=0,D=!1){const u=_.schedule(function(){E(),D?t.add(this.schedule(null,s)):this.unsubscribe()},s);if(t.add(u),!D)return u}m.d(q,{f:()=>e})},9173:(Ue,q,m)=>{"use strict";function e(t){return t}m.d(q,{y:()=>e})},9806:(Ue,q,m)=>{"use strict";m.d(q,{z:()=>e});const e=t=>t&&"number"==typeof t.length&&"function"!=typeof t},470:(Ue,q,m)=>{"use strict";m.d(q,{D:()=>t});var e=m(2971);function t(_){return Symbol.asyncIterator&&(0,e.m)(_?.[Symbol.asyncIterator])}},7885:(Ue,q,m)=>{"use strict";function e(t){return t instanceof Date&&!isNaN(t)}m.d(q,{q:()=>e})},2971:(Ue,q,m)=>{"use strict";function e(t){return"function"==typeof t}m.d(q,{m:()=>e})},1331:(Ue,q,m)=>{"use strict";m.d(q,{c:()=>_});var e=m(4585),t=m(2971);function _(E){return(0,t.m)(E[e.L])}},3433:(Ue,q,m)=>{"use strict";m.d(q,{T:()=>_});var e=m(7321),t=m(2971);function _(E){return(0,t.m)(E?.[e.h])}},4437:(Ue,q,m)=>{"use strict";m.d(q,{b:()=>_});var e=m(833),t=m(2971);function _(E){return!!E&&(E instanceof e.y||(0,t.m)(E.lift)&&(0,t.m)(E.subscribe))}},9548:(Ue,q,m)=>{"use strict";m.d(q,{t:()=>t});var e=m(2971);function t(_){return(0,e.m)(_?.then)}},181:(Ue,q,m)=>{"use strict";m.d(q,{L:()=>E,Q:()=>_});var e=m(4929),t=m(2971);function _(s){return(0,e.FC)(this,arguments,function*(){const u=s.getReader();try{for(;;){const{value:k,done:p}=yield(0,e.qq)(u.read());if(p)return yield(0,e.qq)(void 0);yield yield(0,e.qq)(k)}}finally{u.releaseLock()}})}function E(s){return(0,t.m)(s?.getReader)}},9867:(Ue,q,m)=>{"use strict";m.d(q,{K:()=>t});var e=m(2971);function t(_){return _&&(0,e.m)(_.schedule)}},1944:(Ue,q,m)=>{"use strict";m.d(q,{A:()=>t,e:()=>_});var e=m(2971);function t(E){return(0,e.m)(E?.lift)}function _(E){return s=>{if(t(s))return s.lift(function(D){try{return E(D,this)}catch(u){this.error(u)}});throw new TypeError("Unable to lift unknown Observable type")}}},8385:(Ue,q,m)=>{"use strict";m.d(q,{Z:()=>E});var e=m(635);const{isArray:t}=Array;function E(s){return(0,e.U)(D=>function _(s,D){return t(D)?s(...D):s(D)}(s,D))}},9635:(Ue,q,m)=>{"use strict";function e(){}m.d(q,{Z:()=>e})},629:(Ue,q,m)=>{"use strict";m.d(q,{U:()=>_,z:()=>t});var e=m(9173);function t(...E){return _(E)}function _(E){return 0===E.length?e.y:1===E.length?E[0]:function(D){return E.reduce((u,k)=>k(u),D)}}},4709:(Ue,q,m)=>{"use strict";m.d(q,{h:()=>_});var e=m(9057),t=m(3542);function _(E){t.z.setTimeout(()=>{const{onUnhandledError:s}=e.v;if(!s)throw E;s(E)})}},7785:(Ue,q,m)=>{"use strict";function e(t){return new TypeError(`You provided ${null!==t&&"object"==typeof t?"an invalid object":`'${t}'`} where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.`)}m.d(q,{z:()=>e})},9708:(Ue,q,m)=>{var e=m(3195),t=e.Buffer;function _(s,D){for(var u in s)D[u]=s[u]}function E(s,D,u){return t(s,D,u)}t.from&&t.alloc&&t.allocUnsafe&&t.allocUnsafeSlow?Ue.exports=e:(_(e,q),q.Buffer=E),E.prototype=Object.create(t.prototype),_(t,E),E.from=function(s,D,u){if("number"==typeof s)throw new TypeError("Argument must not be a number");return t(s,D,u)},E.alloc=function(s,D,u){if("number"!=typeof s)throw new TypeError("Argument must be a number");var k=t(s);return void 0!==D?"string"==typeof u?k.fill(D,u):k.fill(D):k.fill(0),k},E.allocUnsafe=function(s){if("number"!=typeof s)throw new TypeError("Argument must be a number");return t(s)},E.allocUnsafeSlow=function(s){if("number"!=typeof s)throw new TypeError("Argument must be a number");return e.SlowBuffer(s)}},4421:(Ue,q,m)=>{"use strict";var E,e=m(3195),t=e.Buffer,_={};for(E in e)!e.hasOwnProperty(E)||"SlowBuffer"===E||"Buffer"===E||(_[E]=e[E]);var s=_.Buffer={};for(E in t)!t.hasOwnProperty(E)||"allocUnsafe"===E||"allocUnsafeSlow"===E||(s[E]=t[E]);if(_.Buffer.prototype=t.prototype,(!s.from||s.from===Uint8Array.from)&&(s.from=function(D,u,k){if("number"==typeof D)throw new TypeError('The "value" argument must not be of type number. Received type '+typeof D);if(D&&typeof D.length>"u")throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof D);return t(D,u,k)}),s.alloc||(s.alloc=function(D,u,k){if("number"!=typeof D)throw new TypeError('The "size" argument must be of type number. Received type '+typeof D);if(D<0||D>=2*(1<<30))throw new RangeError('The value "'+D+'" is invalid for option "size"');var p=t(D);return u&&0!==u.length?"string"==typeof k?p.fill(u,k):p.fill(u):p.fill(0),p}),!_.kStringMaxLength)try{_.kStringMaxLength=process.binding("buffer").kStringMaxLength}catch{}_.constants||(_.constants={MAX_LENGTH:_.kMaxLength},_.kStringMaxLength&&(_.constants.MAX_STRING_LENGTH=_.kStringMaxLength)),Ue.exports=_},2443:(Ue,q,m)=>{var e=m(9708).Buffer;function t(_,E){this._block=e.alloc(_),this._finalSize=E,this._blockSize=_,this._len=0}t.prototype.update=function(_,E){"string"==typeof _&&(E=E||"utf8",_=e.from(_,E));for(var s=this._block,D=this._blockSize,u=_.length,k=this._len,p=0;p<u;){for(var S=k%D,A=Math.min(u-p,D-S),P=0;P<A;P++)s[S+P]=_[p+P];p+=A,(k+=A)%D==0&&this._update(s)}return this._len+=u,this},t.prototype.digest=function(_){var E=this._len%this._blockSize;this._block[E]=128,this._block.fill(0,E+1),E>=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 D=(4294967295&s)>>>0,u=(s-D)/4294967296;this._block.writeUInt32BE(u,this._blockSize-8),this._block.writeUInt32BE(D,this._blockSize-4)}this._update(this._block);var k=this._hash();return _?k.toString(_):k},t.prototype._update=function(){throw new Error("_update must be implemented by subclass")},Ue.exports=t},1001:(Ue,q,m)=>{var e=Ue.exports=function(_){_=_.toLowerCase();var E=e[_];if(!E)throw new Error(_+" is not supported (we accept pull requests)");return new E};e.sha=m(6216),e.sha1=m(442),e.sha224=m(3843),e.sha256=m(4507),e.sha384=m(8660),e.sha512=m(3544)},6216:(Ue,q,m)=>{var e=m(5035),t=m(2443),_=m(9708).Buffer,E=[1518500249,1859775393,-1894007588,-899497514],s=new Array(80);function D(){this.init(),this._w=s,t.call(this,64,56)}function u(S){return S<<5|S>>>27}function k(S){return S<<30|S>>>2}function p(S,A,P,M){return 0===S?A&P|~A&M:2===S?A&P|A&M|P&M:A^P^M}e(D,t),D.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,this},D.prototype._update=function(S){for(var A=this._w,P=0|this._a,M=0|this._b,z=0|this._c,I=0|this._d,W=0|this._e,Z=0;Z<16;++Z)A[Z]=S.readInt32BE(4*Z);for(;Z<80;++Z)A[Z]=A[Z-3]^A[Z-8]^A[Z-14]^A[Z-16];for(var Q=0;Q<80;++Q){var ie=~~(Q/20),ae=u(P)+p(ie,M,z,I)+W+A[Q]+E[ie]|0;W=I,I=z,z=k(M),M=P,P=ae}this._a=P+this._a|0,this._b=M+this._b|0,this._c=z+this._c|0,this._d=I+this._d|0,this._e=W+this._e|0},D.prototype._hash=function(){var S=_.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},Ue.exports=D},442:(Ue,q,m)=>{var e=m(5035),t=m(2443),_=m(9708).Buffer,E=[1518500249,1859775393,-1894007588,-899497514],s=new Array(80);function D(){this.init(),this._w=s,t.call(this,64,56)}function u(A){return A<<1|A>>>31}function k(A){return A<<5|A>>>27}function p(A){return A<<30|A>>>2}function S(A,P,M,z){return 0===A?P&M|~P&z:2===A?P&M|P&z|M&z:P^M^z}e(D,t),D.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,this},D.prototype._update=function(A){for(var P=this._w,M=0|this._a,z=0|this._b,I=0|this._c,W=0|this._d,Z=0|this._e,Q=0;Q<16;++Q)P[Q]=A.readInt32BE(4*Q);for(;Q<80;++Q)P[Q]=u(P[Q-3]^P[Q-8]^P[Q-14]^P[Q-16]);for(var ie=0;ie<80;++ie){var ae=~~(ie/20),_e=k(M)+S(ae,z,I,W)+Z+P[ie]+E[ae]|0;Z=W,W=I,I=p(z),z=M,M=_e}this._a=M+this._a|0,this._b=z+this._b|0,this._c=I+this._c|0,this._d=W+this._d|0,this._e=Z+this._e|0},D.prototype._hash=function(){var A=_.allocUnsafe(20);return A.writeInt32BE(0|this._a,0),A.writeInt32BE(0|this._b,4),A.writeInt32BE(0|this._c,8),A.writeInt32BE(0|this._d,12),A.writeInt32BE(0|this._e,16),A},Ue.exports=D},3843:(Ue,q,m)=>{var e=m(5035),t=m(4507),_=m(2443),E=m(9708).Buffer,s=new Array(64);function D(){this.init(),this._w=s,_.call(this,64,56)}e(D,t),D.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},D.prototype._hash=function(){var u=E.allocUnsafe(28);return u.writeInt32BE(this._a,0),u.writeInt32BE(this._b,4),u.writeInt32BE(this._c,8),u.writeInt32BE(this._d,12),u.writeInt32BE(this._e,16),u.writeInt32BE(this._f,20),u.writeInt32BE(this._g,24),u},Ue.exports=D},4507:(Ue,q,m)=>{var e=m(5035),t=m(2443),_=m(9708).Buffer,E=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298],s=new Array(64);function D(){this.init(),this._w=s,t.call(this,64,56)}function u(M,z,I){return I^M&(z^I)}function k(M,z,I){return M&z|I&(M|z)}function p(M){return(M>>>2|M<<30)^(M>>>13|M<<19)^(M>>>22|M<<10)}function S(M){return(M>>>6|M<<26)^(M>>>11|M<<21)^(M>>>25|M<<7)}function A(M){return(M>>>7|M<<25)^(M>>>18|M<<14)^M>>>3}function P(M){return(M>>>17|M<<15)^(M>>>19|M<<13)^M>>>10}e(D,t),D.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},D.prototype._update=function(M){for(var z=this._w,I=0|this._a,W=0|this._b,Z=0|this._c,Q=0|this._d,ie=0|this._e,ae=0|this._f,_e=0|this._g,ce=0|this._h,ye=0;ye<16;++ye)z[ye]=M.readInt32BE(4*ye);for(;ye<64;++ye)z[ye]=P(z[ye-2])+z[ye-7]+A(z[ye-15])+z[ye-16]|0;for(var ue=0;ue<64;++ue){var $=ce+S(ie)+u(ie,ae,_e)+E[ue]+z[ue]|0,he=p(I)+k(I,W,Z)|0;ce=_e,_e=ae,ae=ie,ie=Q+$|0,Q=Z,Z=W,W=I,I=$+he|0}this._a=I+this._a|0,this._b=W+this._b|0,this._c=Z+this._c|0,this._d=Q+this._d|0,this._e=ie+this._e|0,this._f=ae+this._f|0,this._g=_e+this._g|0,this._h=ce+this._h|0},D.prototype._hash=function(){var M=_.allocUnsafe(32);return M.writeInt32BE(this._a,0),M.writeInt32BE(this._b,4),M.writeInt32BE(this._c,8),M.writeInt32BE(this._d,12),M.writeInt32BE(this._e,16),M.writeInt32BE(this._f,20),M.writeInt32BE(this._g,24),M.writeInt32BE(this._h,28),M},Ue.exports=D},8660:(Ue,q,m)=>{var e=m(5035),t=m(3544),_=m(2443),E=m(9708).Buffer,s=new Array(160);function D(){this.init(),this._w=s,_.call(this,128,112)}e(D,t),D.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},D.prototype._hash=function(){var u=E.allocUnsafe(48);function k(p,S,A){u.writeInt32BE(p,A),u.writeInt32BE(S,A+4)}return k(this._ah,this._al,0),k(this._bh,this._bl,8),k(this._ch,this._cl,16),k(this._dh,this._dl,24),k(this._eh,this._el,32),k(this._fh,this._fl,40),u},Ue.exports=D},3544:(Ue,q,m)=>{var e=m(5035),t=m(2443),_=m(9708).Buffer,E=[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 D(){this.init(),this._w=s,t.call(this,128,112)}function u(W,Z,Q){return Q^W&(Z^Q)}function k(W,Z,Q){return W&Z|Q&(W|Z)}function p(W,Z){return(W>>>28|Z<<4)^(Z>>>2|W<<30)^(Z>>>7|W<<25)}function S(W,Z){return(W>>>14|Z<<18)^(W>>>18|Z<<14)^(Z>>>9|W<<23)}function A(W,Z){return(W>>>1|Z<<31)^(W>>>8|Z<<24)^W>>>7}function P(W,Z){return(W>>>1|Z<<31)^(W>>>8|Z<<24)^(W>>>7|Z<<25)}function M(W,Z){return(W>>>19|Z<<13)^(Z>>>29|W<<3)^W>>>6}function z(W,Z){return(W>>>19|Z<<13)^(Z>>>29|W<<3)^(W>>>6|Z<<26)}function I(W,Z){return W>>>0<Z>>>0?1:0}e(D,t),D.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},D.prototype._update=function(W){for(var Z=this._w,Q=0|this._ah,ie=0|this._bh,ae=0|this._ch,_e=0|this._dh,ce=0|this._eh,ye=0|this._fh,ue=0|this._gh,$=0|this._hh,he=0|this._al,w=0|this._bl,n=0|this._cl,o=0|this._dl,h=0|this._el,d=0|this._fl,y=0|this._gl,L=0|this._hl,B=0;B<32;B+=2)Z[B]=W.readInt32BE(4*B),Z[B+1]=W.readInt32BE(4*B+4);for(;B<160;B+=2){var v=Z[B-30],a=Z[B-30+1],C=A(v,a),N=P(a,v),F=M(v=Z[B-4],a=Z[B-4+1]),X=z(a,v),Fe=Z[B-14],ke=Z[B-14+1],Ke=Z[B-32],je=Z[B-32+1],Ve=N+ke|0,xe=C+Fe+I(Ve,N)|0;xe=(xe=xe+F+I(Ve=Ve+X|0,X)|0)+Ke+I(Ve=Ve+je|0,je)|0,Z[B]=xe,Z[B+1]=Ve}for(var Ze=0;Ze<160;Ze+=2){xe=Z[Ze],Ve=Z[Ze+1];var Ie=k(Q,ie,ae),ve=k(he,w,n),et=p(Q,he),ht=p(he,Q),Le=S(ce,h),Ae=S(h,ce),te=E[Ze],pe=E[Ze+1],ee=u(ce,ye,ue),H=u(h,d,y),j=L+Ae|0,Oe=$+Le+I(j,L)|0;Oe=(Oe=(Oe=Oe+ee+I(j=j+H|0,H)|0)+te+I(j=j+pe|0,pe)|0)+xe+I(j=j+Ve|0,Ve)|0;var Re=ht+ve|0,le=et+Ie+I(Re,ht)|0;$=ue,L=y,ue=ye,y=d,ye=ce,d=h,ce=_e+Oe+I(h=o+j|0,o)|0,_e=ae,o=n,ae=ie,n=w,ie=Q,w=he,Q=Oe+le+I(he=j+Re|0,j)|0}this._al=this._al+he|0,this._bl=this._bl+w|0,this._cl=this._cl+n|0,this._dl=this._dl+o|0,this._el=this._el+h|0,this._fl=this._fl+d|0,this._gl=this._gl+y|0,this._hl=this._hl+L|0,this._ah=this._ah+Q+I(this._al,he)|0,this._bh=this._bh+ie+I(this._bl,w)|0,this._ch=this._ch+ae+I(this._cl,n)|0,this._dh=this._dh+_e+I(this._dl,o)|0,this._eh=this._eh+ce+I(this._el,h)|0,this._fh=this._fh+ye+I(this._fl,d)|0,this._gh=this._gh+ue+I(this._gl,y)|0,this._hh=this._hh+$+I(this._hl,L)|0},D.prototype._hash=function(){var W=_.allocUnsafe(64);function Z(Q,ie,ae){W.writeInt32BE(Q,ae),W.writeInt32BE(ie,ae+4)}return Z(this._ah,this._al,0),Z(this._bh,this._bl,8),Z(this._ch,this._cl,16),Z(this._dh,this._dl,24),Z(this._eh,this._el,32),Z(this._fh,this._fl,40),Z(this._gh,this._gl,48),Z(this._hh,this._hl,56),W},Ue.exports=D},9591:function(Ue,q,m){!function(e){"use strict";var t={};Ue.exports?(t.bytesToHex=m(4123).bytesToHex,t.convertString=m(4056),Ue.exports=k):(t.bytesToHex=e.convertHex.bytesToHex,t.convertString=e.convertString,e.sha256=k);var _=[];!function(){function p(M){for(var z=Math.sqrt(M),I=2;I<=z;I++)if(!(M%I))return!1;return!0}for(var A=2,P=0;P<64;)p(A)&&(_[P]=4294967296*((M=Math.pow(A,1/3))-(0|M))|0,P++),A++;var M}();var D=[],u=function(p,S,A){for(var P=p[0],M=p[1],z=p[2],I=p[3],W=p[4],Z=p[5],Q=p[6],ie=p[7],ae=0;ae<64;ae++){if(ae<16)D[ae]=0|S[A+ae];else{var _e=D[ae-15],ce=(_e<<25|_e>>>7)^(_e<<14|_e>>>18)^_e>>>3,ye=D[ae-2],ue=(ye<<15|ye>>>17)^(ye<<13|ye>>>19)^ye>>>10;D[ae]=ce+D[ae-7]+ue+D[ae-16]}var he=P&M^P&z^M&z,w=(P<<30|P>>>2)^(P<<19|P>>>13)^(P<<10|P>>>22),o=ie+((W<<26|W>>>6)^(W<<21|W>>>11)^(W<<7|W>>>25))+(W&Z^~W&Q)+_[ae]+D[ae];ie=Q,Q=Z,Z=W,W=I+o|0,I=z,z=M,M=P,P=o+(w+he)|0}p[0]=p[0]+P|0,p[1]=p[1]+M|0,p[2]=p[2]+z|0,p[3]=p[3]+I|0,p[4]=p[4]+W|0,p[5]=p[5]+Z|0,p[6]=p[6]+Q|0,p[7]=p[7]+ie|0};function k(p,S){p.constructor===String&&(p=t.convertString.UTF8.stringToBytes(p));var A=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225],P=function(p){for(var S=[],A=0,P=0;A<p.length;A++,P+=8)S[P>>>5]|=p[A]<<24-P%32;return S}(p),M=8*p.length;P[M>>5]|=128<<24-M%32,P[15+(M+64>>9<<4)]=M;for(var z=0;z<P.length;z+=16)u(A,P,z);var I=function(p){for(var S=[],A=0;A<32*p.length;A+=8)S.push(p[A>>>5]>>>24-A%32&255);return S}(A);return S&&S.asBytes?I:S&&S.asString?t.convertString.bytesToString(I):t.bytesToHex(I)}k.x2=function(p,S){return k(k(p,{asBytes:!0}),S)}}(this)},9046:(Ue,q,m)=>{"use strict";const e=Symbol.prototype.valueOf,t=m(8220);Ue.exports=function _(p,S){switch(t(p)){case"array":return p.slice();case"object":return Object.assign({},p);case"date":return new p.constructor(Number(p));case"map":return new Map(p);case"set":return new Set(p);case"buffer":return function u(p){const S=p.length,A=Buffer.allocUnsafe?Buffer.allocUnsafe(S):Buffer.from(S);return p.copy(A),A}(p);case"symbol":return function k(p){return e?Object(e.call(p)):{}}(p);case"arraybuffer":return function s(p){const S=new p.constructor(p.byteLength);return new Uint8Array(S).set(new Uint8Array(p)),S}(p);case"float32array":case"float64array":case"int16array":case"int32array":case"int8array":case"uint16array":case"uint32array":case"uint8clampedarray":case"uint8array":return function D(p,S){return new p.constructor(p.buffer,p.byteOffset,p.length)}(p);case"regexp":return function E(p){const S=void 0!==p.flags?p.flags:/\w+$/.exec(p)||void 0,A=new p.constructor(p.source,S);return A.lastIndex=p.lastIndex,A}(p);case"error":return Object.create(p);default:return p}}},574:(Ue,q,m)=>{Ue.exports=_;var e=m(3358).EventEmitter;function _(){e.call(this)}m(5035)(_,e),_.Readable=m(1396),_.Writable=m(1120),_.Duplex=m(9800),_.Transform=m(8157),_.PassThrough=m(1908),_.finished=m(7722),_.pipeline=m(8096),_.Stream=_,_.prototype.pipe=function(E,s){var D=this;function u(z){E.writable&&!1===E.write(z)&&D.pause&&D.pause()}function k(){D.readable&&D.resume&&D.resume()}D.on("data",u),E.on("drain",k),!E._isStdio&&(!s||!1!==s.end)&&(D.on("end",S),D.on("close",A));var p=!1;function S(){p||(p=!0,E.end())}function A(){p||(p=!0,"function"==typeof E.destroy&&E.destroy())}function P(z){if(M(),0===e.listenerCount(this,"error"))throw z}function M(){D.removeListener("data",u),E.removeListener("drain",k),D.removeListener("end",S),D.removeListener("close",A),D.removeListener("error",P),E.removeListener("error",P),D.removeListener("end",M),D.removeListener("close",M),E.removeListener("close",M)}return D.on("error",P),E.on("error",P),D.on("end",M),D.on("close",M),E.on("close",M),E.emit("pipe",D),E}},4547:(Ue,q,m)=>{"use strict";var e=m(9708).Buffer,t=e.isEncoding||function(Q){switch((Q=""+Q)&&Q.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function s(Q){var ie;switch(this.encoding=function E(Q){var ie=function _(Q){if(!Q)return"utf8";for(var ie;;)switch(Q){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return Q;default:if(ie)return;Q=(""+Q).toLowerCase(),ie=!0}}(Q);if("string"!=typeof ie&&(e.isEncoding===t||!t(Q)))throw new Error("Unknown encoding: "+Q);return ie||Q}(Q),this.encoding){case"utf16le":this.text=P,this.end=M,ie=4;break;case"utf8":this.fillLast=p,ie=4;break;case"base64":this.text=z,this.end=I,ie=3;break;default:return this.write=W,void(this.end=Z)}this.lastNeed=0,this.lastTotal=0,this.lastChar=e.allocUnsafe(ie)}function D(Q){return Q<=127?0:Q>>5==6?2:Q>>4==14?3:Q>>3==30?4:Q>>6==2?-1:-2}function p(Q){var ie=this.lastTotal-this.lastNeed,ae=function k(Q,ie,ae){if(128!=(192&ie[0]))return Q.lastNeed=0,"\ufffd";if(Q.lastNeed>1&&ie.length>1){if(128!=(192&ie[1]))return Q.lastNeed=1,"\ufffd";if(Q.lastNeed>2&&ie.length>2&&128!=(192&ie[2]))return Q.lastNeed=2,"\ufffd"}}(this,Q);return void 0!==ae?ae:this.lastNeed<=Q.length?(Q.copy(this.lastChar,ie,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal)):(Q.copy(this.lastChar,ie,0,Q.length),void(this.lastNeed-=Q.length))}function P(Q,ie){if((Q.length-ie)%2==0){var ae=Q.toString("utf16le",ie);if(ae){var _e=ae.charCodeAt(ae.length-1);if(_e>=55296&&_e<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=Q[Q.length-2],this.lastChar[1]=Q[Q.length-1],ae.slice(0,-1)}return ae}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=Q[Q.length-1],Q.toString("utf16le",ie,Q.length-1)}function M(Q){var ie=Q&&Q.length?this.write(Q):"";if(this.lastNeed){var ae=this.lastTotal-this.lastNeed;return ie+this.lastChar.toString("utf16le",0,ae)}return ie}function z(Q,ie){var ae=(Q.length-ie)%3;return 0===ae?Q.toString("base64",ie):(this.lastNeed=3-ae,this.lastTotal=3,1===ae?this.lastChar[0]=Q[Q.length-1]:(this.lastChar[0]=Q[Q.length-2],this.lastChar[1]=Q[Q.length-1]),Q.toString("base64",ie,Q.length-ae))}function I(Q){var ie=Q&&Q.length?this.write(Q):"";return this.lastNeed?ie+this.lastChar.toString("base64",0,3-this.lastNeed):ie}function W(Q){return Q.toString(this.encoding)}function Z(Q){return Q&&Q.length?this.write(Q):""}q.s=s,s.prototype.write=function(Q){if(0===Q.length)return"";var ie,ae;if(this.lastNeed){if(void 0===(ie=this.fillLast(Q)))return"";ae=this.lastNeed,this.lastNeed=0}else ae=0;return ae<Q.length?ie?ie+this.text(Q,ae):this.text(Q,ae):ie||""},s.prototype.end=function A(Q){var ie=Q&&Q.length?this.write(Q):"";return this.lastNeed?ie+"\ufffd":ie},s.prototype.text=function S(Q,ie){var ae=function u(Q,ie,ae){var _e=ie.length-1;if(_e<ae)return 0;var ce=D(ie[_e]);return ce>=0?(ce>0&&(Q.lastNeed=ce-1),ce):--_e<ae||-2===ce?0:(ce=D(ie[_e]))>=0?(ce>0&&(Q.lastNeed=ce-2),ce):--_e<ae||-2===ce?0:(ce=D(ie[_e]))>=0?(ce>0&&(2===ce?ce=0:Q.lastNeed=ce-3),ce):0}(this,Q,ie);if(!this.lastNeed)return Q.toString("utf8",ie);this.lastTotal=ae;var _e=Q.length-(ae-this.lastNeed);return Q.copy(this.lastChar,0,_e),Q.toString("utf8",ie,_e)},s.prototype.fillLast=function(Q){if(this.lastNeed<=Q.length)return Q.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);Q.copy(this.lastChar,this.lastTotal-this.lastNeed,0,Q.length),this.lastNeed-=Q.length}},917:(Ue,q,m)=>{var e=m(1546);q.encode=e.encode,q.decode=e.decode},1546:(Ue,q)=>{"use strict";var e=[255,255,26,27,28,29,30,31,255,255,255,255,255,255,255,255,255,0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,255,255,255,255,255,255,0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,255,255,255,255,255];q.encode=function(_){Buffer.isBuffer(_)||(_=new Buffer(_));for(var E=0,s=0,D=0,u=0,k=new Buffer(8*function t(_){var E=Math.floor(_.length/5);return _.length%5==0?E:E+1}(_));E<_.length;){var p=_[E];D>3?(u=(u=p&255>>D)<<(D=(D+5)%8)|(E+1<_.length?_[E+1]:0)>>8-D,E++):(u=p>>8-(D+5)&31,0===(D=(D+5)%8)&&E++),k[s]="ABCDEFGHIJKLMNOPQRSTUVWXYZ234567".charCodeAt(u),s++}for(E=s;E<k.length;E++)k[E]=61;return k},q.decode=function(_){var D,E=0,s=0,u=0;Buffer.isBuffer(_)||(_=new Buffer(_));for(var k=new Buffer(Math.ceil(5*_.length/8)),p=0;p<_.length&&61!==_[p];p++){var S=_[p]-48;if(!(S<e.length))throw new Error("Invalid input - it is not base32 encoded string");s=e[S],E<=3?0===(E=(E+5)%8)?(D|=s,k[u]=D,u++,D=0):D|=255&s<<8-E:(D|=255&s>>>(E=(E+5)%8),k[u]=D,u++,D=255&s<<8-E)}return k.slice(0,u)}},8059:Ue=>{function m(e){try{if(!global.localStorage)return!1}catch{return!1}var t=global.localStorage[e];return null!=t&&"true"===String(t).toLowerCase()}Ue.exports=function q(e,t){if(m("noDeprecation"))return e;var _=!1;return function E(){if(!_){if(m("throwDeprecation"))throw new Error(t);m("traceDeprecation")?console.trace(t):console.warn(t),_=!0}return e.apply(this,arguments)}}},4929:(Ue,q,m)=>{"use strict";m.d(q,{FC:()=>Q,KL:()=>ae,gn:()=>s,mG:()=>k,qq:()=>Z});function s(n,o,h,d){var B,y=arguments.length,L=y<3?o:null===d?d=Object.getOwnPropertyDescriptor(o,h):d;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)L=Reflect.decorate(n,o,h,d);else for(var v=n.length-1;v>=0;v--)(B=n[v])&&(L=(y<3?B(L):y>3?B(o,h,L):B(o,h))||L);return y>3&&L&&Object.defineProperty(o,h,L),L}function k(n,o,h,d){return new(h||(h=Promise))(function(L,B){function v(N){try{C(d.next(N))}catch(F){B(F)}}function a(N){try{C(d.throw(N))}catch(F){B(F)}}function C(N){N.done?L(N.value):function y(L){return L instanceof h?L:new h(function(B){B(L)})}(N.value).then(v,a)}C((d=d.apply(n,o||[])).next())})}Object.create;function P(n){var o="function"==typeof Symbol&&Symbol.iterator,h=o&&n[o],d=0;if(h)return h.call(n);if(n&&"number"==typeof n.length)return{next:function(){return n&&d>=n.length&&(n=void 0),{value:n&&n[d++],done:!n}}};throw new TypeError(o?"Object is not iterable.":"Symbol.iterator is not defined.")}function Z(n){return this instanceof Z?(this.v=n,this):new Z(n)}function Q(n,o,h){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var y,d=h.apply(n,o||[]),L=[];return y={},B("next"),B("throw"),B("return"),y[Symbol.asyncIterator]=function(){return this},y;function B(X){d[X]&&(y[X]=function(Fe){return new Promise(function(ke,Ke){L.push([X,Fe,ke,Ke])>1||v(X,Fe)})})}function v(X,Fe){try{!function a(X){X.value instanceof Z?Promise.resolve(X.value.v).then(C,N):F(L[0][2],X)}(d[X](Fe))}catch(ke){F(L[0][3],ke)}}function C(X){v("next",X)}function N(X){v("throw",X)}function F(X,Fe){X(Fe),L.shift(),L.length&&v(L[0][0],L[0][1])}}function ae(n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var h,o=n[Symbol.asyncIterator];return o?o.call(n):(n=P(n),h={},d("next"),d("throw"),d("return"),h[Symbol.asyncIterator]=function(){return this},h);function d(L){h[L]=n[L]&&function(B){return new Promise(function(v,a){(function y(L,B,v,a){Promise.resolve(a).then(function(C){L({value:C,done:v})},B)})(v,a,(B=n[L](B)).done,B.value)})}}}Object.create},950:()=>{},6601:()=>{},8623:()=>{},7748:()=>{},5568:()=>{},6619:()=>{},7108:()=>{},2361:()=>{},4616:()=>{},4851:(Ue,q,m)=>{"use strict";m.d(q,{F4:()=>S,IO:()=>I,LC:()=>t,SB:()=>p,X$:()=>E,ZE:()=>ie,ZN:()=>Q,_j:()=>e,eR:()=>A,jt:()=>s,k1:()=>ae,l3:()=>_,oB:()=>k,pV:()=>M,ru:()=>D,vP:()=>u});class e{}class t{}const _="*";function E(_e,ce){return{type:7,name:_e,definitions:ce,options:{}}}function s(_e,ce=null){return{type:4,styles:ce,timings:_e}}function D(_e,ce=null){return{type:3,steps:_e,options:ce}}function u(_e,ce=null){return{type:2,steps:_e,options:ce}}function k(_e){return{type:6,styles:_e,offset:null}}function p(_e,ce,ye){return{type:0,name:_e,styles:ce,options:ye}}function S(_e){return{type:5,steps:_e}}function A(_e,ce,ye=null){return{type:1,expr:_e,animation:ce,options:ye}}function M(_e=null){return{type:9,options:_e}}function I(_e,ce,ye=null){return{type:11,selector:_e,animation:ce,options:ye}}function Z(_e){Promise.resolve().then(_e)}class Q{constructor(ce=0,ye=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=ce+ye}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(ce=>ce()),this._onDoneFns=[])}onStart(ce){this._originalOnStartFns.push(ce),this._onStartFns.push(ce)}onDone(ce){this._originalOnDoneFns.push(ce),this._onDoneFns.push(ce)}onDestroy(ce){this._onDestroyFns.push(ce)}hasStarted(){return this._started}init(){}play(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=!0}triggerMicrotask(){Z(()=>this._onFinish())}_onStart(){this._onStartFns.forEach(ce=>ce()),this._onStartFns=[]}pause(){}restart(){}finish(){this._onFinish()}destroy(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach(ce=>ce()),this._onDestroyFns=[])}reset(){this._started=!1,this._finished=!1,this._onStartFns=this._originalOnStartFns,this._onDoneFns=this._originalOnDoneFns}setPosition(ce){this._position=this.totalTime?ce*this.totalTime:1}getPosition(){return this.totalTime?this._position/this.totalTime:1}triggerCallback(ce){const ye="start"==ce?this._onStartFns:this._onDoneFns;ye.forEach(ue=>ue()),ye.length=0}}class ie{constructor(ce){this._onDoneFns=[],this._onStartFns=[],this._finished=!1,this._started=!1,this._destroyed=!1,this._onDestroyFns=[],this.parentPlayer=null,this.totalTime=0,this.players=ce;let ye=0,ue=0,$=0;const he=this.players.length;0==he?Z(()=>this._onFinish()):this.players.forEach(w=>{w.onDone(()=>{++ye==he&&this._onFinish()}),w.onDestroy(()=>{++ue==he&&this._onDestroy()}),w.onStart(()=>{++$==he&&this._onStart()})}),this.totalTime=this.players.reduce((w,n)=>Math.max(w,n.totalTime),0)}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(ce=>ce()),this._onDoneFns=[])}init(){this.players.forEach(ce=>ce.init())}onStart(ce){this._onStartFns.push(ce)}_onStart(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach(ce=>ce()),this._onStartFns=[])}onDone(ce){this._onDoneFns.push(ce)}onDestroy(ce){this._onDestroyFns.push(ce)}hasStarted(){return this._started}play(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach(ce=>ce.play())}pause(){this.players.forEach(ce=>ce.pause())}restart(){this.players.forEach(ce=>ce.restart())}finish(){this._onFinish(),this.players.forEach(ce=>ce.finish())}destroy(){this._onDestroy()}_onDestroy(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach(ce=>ce.destroy()),this._onDestroyFns.forEach(ce=>ce()),this._onDestroyFns=[])}reset(){this.players.forEach(ce=>ce.reset()),this._destroyed=!1,this._finished=!1,this._started=!1}setPosition(ce){const ye=ce*this.totalTime;this.players.forEach(ue=>{const $=ue.totalTime?Math.min(1,ye/ue.totalTime):1;ue.setPosition($)})}getPosition(){const ce=this.players.reduce((ye,ue)=>null===ye||ue.totalTime>ye.totalTime?ue:ye,null);return null!=ce?ce.getPosition():0}beforeDestroy(){this.players.forEach(ce=>{ce.beforeDestroy&&ce.beforeDestroy()})}triggerCallback(ce){const ye="start"==ce?this._onStartFns:this._onDoneFns;ye.forEach(ue=>ue()),ye.length=0}}const ae="!"},4218:(Ue,q,m)=>{"use strict";m.d(q,{$s:()=>n,Em:()=>L,Kd:()=>Bt,X6:()=>ee,ic:()=>v,kH:()=>In,mK:()=>et,qV:()=>ve,qm:()=>tt,rt:()=>vt,s1:()=>y,tE:()=>Gt,yG:()=>H});var e=m(4666),t=m(2560),_=m(9107),E=m(253),s=m(7714),D=m(6317),u=m(745),k=m(8456),p=m(9337),S=m(1989),A=m(116),P=m(635),M=m(9295),z=m(7260),I=m(8977),W=m(8951),Z=m(8971),Q=m(3773),ie=m(3278);function ye(dt,se){return(dt.getAttribute(se)||"").match(/\S+/g)||[]}const $="cdk-describedby-message",he="cdk-describedby-host";let w=0;class n{constructor(se,J){this._platform=J,this._messageRegistry=new Map,this._messagesContainer=null,this._id=""+w++,this._document=se,this._id=(0,t.f3M)(t.AFp)+"-"+w++}describe(se,J,oe){if(!this._canBeDescribed(se,J))return;const De=o(J,oe);"string"!=typeof J?(h(J,this._id),this._messageRegistry.set(De,{messageElement:J,referenceCount:0})):this._messageRegistry.has(De)||this._createMessageElement(J,oe),this._isElementDescribedByMessage(se,De)||this._addMessageReference(se,De)}removeDescription(se,J,oe){if(!J||!this._isElementNode(se))return;const De=o(J,oe);if(this._isElementDescribedByMessage(se,De)&&this._removeMessageReference(se,De),"string"==typeof J){const Ye=this._messageRegistry.get(De);Ye&&0===Ye.referenceCount&&this._deleteMessageElement(De)}0===this._messagesContainer?.childNodes.length&&(this._messagesContainer.remove(),this._messagesContainer=null)}ngOnDestroy(){const se=this._document.querySelectorAll(`[${he}="${this._id}"]`);for(let J=0;J<se.length;J++)this._removeCdkDescribedByReferenceIds(se[J]),se[J].removeAttribute(he);this._messagesContainer?.remove(),this._messagesContainer=null,this._messageRegistry.clear()}_createMessageElement(se,J){const oe=this._document.createElement("div");h(oe,this._id),oe.textContent=se,J&&oe.setAttribute("role",J),this._createMessagesContainer(),this._messagesContainer.appendChild(oe),this._messageRegistry.set(o(se,J),{messageElement:oe,referenceCount:0})}_deleteMessageElement(se){this._messageRegistry.get(se)?.messageElement?.remove(),this._messageRegistry.delete(se)}_createMessagesContainer(){if(this._messagesContainer)return;const se="cdk-describedby-message-container",J=this._document.querySelectorAll(`.${se}[platform="server"]`);for(let De=0;De<J.length;De++)J[De].remove();const oe=this._document.createElement("div");oe.style.visibility="hidden",oe.classList.add(se),oe.classList.add("cdk-visually-hidden"),this._platform&&!this._platform.isBrowser&&oe.setAttribute("platform","server"),this._document.body.appendChild(oe),this._messagesContainer=oe}_removeCdkDescribedByReferenceIds(se){const J=ye(se,"aria-describedby").filter(oe=>0!=oe.indexOf($));se.setAttribute("aria-describedby",J.join(" "))}_addMessageReference(se,J){const oe=this._messageRegistry.get(J);(function _e(dt,se,J){const oe=ye(dt,se);oe.some(De=>De.trim()==J.trim())||(oe.push(J.trim()),dt.setAttribute(se,oe.join(" ")))})(se,"aria-describedby",oe.messageElement.id),se.setAttribute(he,this._id),oe.referenceCount++}_removeMessageReference(se,J){const oe=this._messageRegistry.get(J);oe.referenceCount--,function ce(dt,se,J){const De=ye(dt,se).filter(Ye=>Ye!=J.trim());De.length?dt.setAttribute(se,De.join(" ")):dt.removeAttribute(se)}(se,"aria-describedby",oe.messageElement.id),se.removeAttribute(he)}_isElementDescribedByMessage(se,J){const oe=ye(se,"aria-describedby"),De=this._messageRegistry.get(J),Ye=De&&De.messageElement.id;return!!Ye&&-1!=oe.indexOf(Ye)}_canBeDescribed(se,J){if(!this._isElementNode(se))return!1;if(J&&"object"==typeof J)return!0;const oe=null==J?"":`${J}`.trim(),De=se.getAttribute("aria-label");return!!oe&&(!De||De.trim()!==oe)}_isElementNode(se){return se.nodeType===this._document.ELEMENT_NODE}}function o(dt,se){return"string"==typeof dt?`${se||""}/${dt}`:dt}function h(dt,se){dt.id||(dt.id=`${$}-${se}-${w++}`)}n.\u0275fac=function(se){return new(se||n)(t.LFG(e.K0),t.LFG(_.t4))},n.\u0275prov=t.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"});class d{constructor(se){this._items=se,this._activeItemIndex=-1,this._activeItem=null,this._wrap=!1,this._letterKeyStream=new E.x,this._typeaheadSubscription=s.w0.EMPTY,this._vertical=!0,this._allowedModifierKeys=[],this._homeAndEnd=!1,this._skipPredicateFn=J=>J.disabled,this._pressedLetters=[],this.tabOut=new E.x,this.change=new E.x,se instanceof t.n_E&&se.changes.subscribe(J=>{if(this._activeItem){const De=J.toArray().indexOf(this._activeItem);De>-1&&De!==this._activeItemIndex&&(this._activeItemIndex=De)}})}skipPredicate(se){return this._skipPredicateFn=se,this}withWrap(se=!0){return this._wrap=se,this}withVerticalOrientation(se=!0){return this._vertical=se,this}withHorizontalOrientation(se){return this._horizontal=se,this}withAllowedModifierKeys(se){return this._allowedModifierKeys=se,this}withTypeAhead(se=200){return this._typeaheadSubscription.unsubscribe(),this._typeaheadSubscription=this._letterKeyStream.pipe((0,p.b)(J=>this._pressedLetters.push(J)),(0,S.b)(se),(0,A.h)(()=>this._pressedLetters.length>0),(0,P.U)(()=>this._pressedLetters.join(""))).subscribe(J=>{const oe=this._getItemsArray();for(let De=1;De<oe.length+1;De++){const Ye=(this._activeItemIndex+De)%oe.length,Dt=oe[Ye];if(!this._skipPredicateFn(Dt)&&0===Dt.getLabel().toUpperCase().trim().indexOf(J)){this.setActiveItem(Ye);break}}this._pressedLetters=[]}),this}withHomeAndEnd(se=!0){return this._homeAndEnd=se,this}setActiveItem(se){const J=this._activeItem;this.updateActiveItem(se),this._activeItem!==J&&this.change.next(this._activeItemIndex)}onKeydown(se){const J=se.keyCode,De=["altKey","ctrlKey","metaKey","shiftKey"].every(Ye=>!se[Ye]||this._allowedModifierKeys.indexOf(Ye)>-1);switch(J){case k.Mf:return void this.tabOut.next();case k.JH:if(this._vertical&&De){this.setNextItemActive();break}return;case k.LH:if(this._vertical&&De){this.setPreviousItemActive();break}return;case k.SV:if(this._horizontal&&De){"rtl"===this._horizontal?this.setPreviousItemActive():this.setNextItemActive();break}return;case k.oh:if(this._horizontal&&De){"rtl"===this._horizontal?this.setNextItemActive():this.setPreviousItemActive();break}return;case k.Sd:if(this._homeAndEnd&&De){this.setFirstItemActive();break}return;case k.uR:if(this._homeAndEnd&&De){this.setLastItemActive();break}return;default:return void((De||(0,k.Vb)(se,"shiftKey"))&&(se.key&&1===se.key.length?this._letterKeyStream.next(se.key.toLocaleUpperCase()):(J>=k.A&&J<=k.Z||J>=k.xE&&J<=k.aO)&&this._letterKeyStream.next(String.fromCharCode(J))))}this._pressedLetters=[],se.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(se){const J=this._getItemsArray(),oe="number"==typeof se?se:J.indexOf(se),De=J[oe];this._activeItem=De??null,this._activeItemIndex=oe}_setActiveItemByDelta(se){this._wrap?this._setActiveInWrapMode(se):this._setActiveInDefaultMode(se)}_setActiveInWrapMode(se){const J=this._getItemsArray();for(let oe=1;oe<=J.length;oe++){const De=(this._activeItemIndex+se*oe+J.length)%J.length,Ye=J[De];if(!this._skipPredicateFn(Ye))return void this.setActiveItem(De)}}_setActiveInDefaultMode(se){this._setActiveItemByIndex(this._activeItemIndex+se,se)}_setActiveItemByIndex(se,J){const oe=this._getItemsArray();if(oe[se]){for(;this._skipPredicateFn(oe[se]);)if(!oe[se+=J])return;this.setActiveItem(se)}}_getItemsArray(){return this._items instanceof t.n_E?this._items.toArray():this._items}}class y extends d{setActiveItem(se){this.activeItem&&this.activeItem.setInactiveStyles(),super.setActiveItem(se),this.activeItem&&this.activeItem.setActiveStyles()}}class L extends d{constructor(){super(...arguments),this._origin="program"}setFocusOrigin(se){return this._origin=se,this}setActiveItem(se){super.setActiveItem(se),this.activeItem&&this.activeItem.focus(this._origin)}}class v{constructor(se){this._platform=se}isDisabled(se){return se.hasAttribute("disabled")}isVisible(se){return function C(dt){return!!(dt.offsetWidth||dt.offsetHeight||"function"==typeof dt.getClientRects&&dt.getClientRects().length)}(se)&&"visible"===getComputedStyle(se).visibility}isTabbable(se){if(!this._platform.isBrowser)return!1;const J=function a(dt){try{return dt.frameElement}catch{return null}}(function Ze(dt){return dt.ownerDocument&&dt.ownerDocument.defaultView||window}(se));if(J&&(-1===je(J)||!this.isVisible(J)))return!1;let oe=se.nodeName.toLowerCase(),De=je(se);return se.hasAttribute("contenteditable")?-1!==De:!("iframe"===oe||"object"===oe||this._platform.WEBKIT&&this._platform.IOS&&!function Ve(dt){let se=dt.nodeName.toLowerCase(),J="input"===se&&dt.type;return"text"===J||"password"===J||"select"===se||"textarea"===se}(se))&&("audio"===oe?!!se.hasAttribute("controls")&&-1!==De:"video"===oe?-1!==De&&(null!==De||(this._platform.FIREFOX||se.hasAttribute("controls"))):se.tabIndex>=0)}isFocusable(se,J){return function xe(dt){return!function F(dt){return function Fe(dt){return"input"==dt.nodeName.toLowerCase()}(dt)&&"hidden"==dt.type}(dt)&&(function N(dt){let se=dt.nodeName.toLowerCase();return"input"===se||"select"===se||"button"===se||"textarea"===se}(dt)||function X(dt){return function ke(dt){return"a"==dt.nodeName.toLowerCase()}(dt)&&dt.hasAttribute("href")}(dt)||dt.hasAttribute("contenteditable")||Ke(dt))}(se)&&!this.isDisabled(se)&&(J?.ignoreVisibility||this.isVisible(se))}}function Ke(dt){if(!dt.hasAttribute("tabindex")||void 0===dt.tabIndex)return!1;let se=dt.getAttribute("tabindex");return!(!se||isNaN(parseInt(se,10)))}function je(dt){if(!Ke(dt))return null;const se=parseInt(dt.getAttribute("tabindex")||"",10);return isNaN(se)?-1:se}v.\u0275fac=function(se){return new(se||v)(t.LFG(_.t4))},v.\u0275prov=t.Yz7({token:v,factory:v.\u0275fac,providedIn:"root"});class Ie{constructor(se,J,oe,De,Ye=!1){this._element=se,this._checker=J,this._ngZone=oe,this._document=De,this._hasAttached=!1,this.startAnchorListener=()=>this.focusLastTabbableElement(),this.endAnchorListener=()=>this.focusFirstTabbableElement(),this._enabled=!0,Ye||this.attachAnchors()}get enabled(){return this._enabled}set enabled(se){this._enabled=se,this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(se,this._startAnchor),this._toggleAnchorTabIndex(se,this._endAnchor))}destroy(){const se=this._startAnchor,J=this._endAnchor;se&&(se.removeEventListener("focus",this.startAnchorListener),se.remove()),J&&(J.removeEventListener("focus",this.endAnchorListener),J.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(se){return new Promise(J=>{this._executeOnStable(()=>J(this.focusInitialElement(se)))})}focusFirstTabbableElementWhenReady(se){return new Promise(J=>{this._executeOnStable(()=>J(this.focusFirstTabbableElement(se)))})}focusLastTabbableElementWhenReady(se){return new Promise(J=>{this._executeOnStable(()=>J(this.focusLastTabbableElement(se)))})}_getRegionBoundary(se){const J=this._element.querySelectorAll(`[cdk-focus-region-${se}], [cdkFocusRegion${se}], [cdk-focus-${se}]`);return"start"==se?J.length?J[0]:this._getFirstTabbableElement(this._element):J.length?J[J.length-1]:this._getLastTabbableElement(this._element)}focusInitialElement(se){const J=this._element.querySelector("[cdk-focus-initial], [cdkFocusInitial]");if(J){if(!this._checker.isFocusable(J)){const oe=this._getFirstTabbableElement(J);return oe?.focus(se),!!oe}return J.focus(se),!0}return this.focusFirstTabbableElement(se)}focusFirstTabbableElement(se){const J=this._getRegionBoundary("start");return J&&J.focus(se),!!J}focusLastTabbableElement(se){const J=this._getRegionBoundary("end");return J&&J.focus(se),!!J}hasAttached(){return this._hasAttached}_getFirstTabbableElement(se){if(this._checker.isFocusable(se)&&this._checker.isTabbable(se))return se;const J=se.children;for(let oe=0;oe<J.length;oe++){const De=J[oe].nodeType===this._document.ELEMENT_NODE?this._getFirstTabbableElement(J[oe]):null;if(De)return De}return null}_getLastTabbableElement(se){if(this._checker.isFocusable(se)&&this._checker.isTabbable(se))return se;const J=se.children;for(let oe=J.length-1;oe>=0;oe--){const De=J[oe].nodeType===this._document.ELEMENT_NODE?this._getLastTabbableElement(J[oe]):null;if(De)return De}return null}_createAnchor(){const se=this._document.createElement("div");return this._toggleAnchorTabIndex(this._enabled,se),se.classList.add("cdk-visually-hidden"),se.classList.add("cdk-focus-trap-anchor"),se.setAttribute("aria-hidden","true"),se}_toggleAnchorTabIndex(se,J){se?J.setAttribute("tabindex","0"):J.removeAttribute("tabindex")}toggleAnchors(se){this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(se,this._startAnchor),this._toggleAnchorTabIndex(se,this._endAnchor))}_executeOnStable(se){this._ngZone.isStable?se():this._ngZone.onStable.pipe((0,M.q)(1)).subscribe(se)}}class ve{constructor(se,J,oe){this._checker=se,this._ngZone=J,this._document=oe}create(se,J=!1){return new Ie(se,this._checker,this._ngZone,this._document,J)}}ve.\u0275fac=function(se){return new(se||ve)(t.LFG(v),t.LFG(t.R0b),t.LFG(e.K0))},ve.\u0275prov=t.Yz7({token:ve,factory:ve.\u0275fac,providedIn:"root"});class et{constructor(se,J,oe){this._elementRef=se,this._focusTrapFactory=J,this._previouslyFocusedElement=null,this.focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement,!0)}get enabled(){return this.focusTrap.enabled}set enabled(se){this.focusTrap.enabled=(0,Z.Ig)(se)}get autoCapture(){return this._autoCapture}set autoCapture(se){this._autoCapture=(0,Z.Ig)(se)}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(se){const J=se.autoCapture;J&&!J.firstChange&&this.autoCapture&&this.focusTrap.hasAttached()&&this._captureFocus()}_captureFocus(){this._previouslyFocusedElement=(0,_.ht)(),this.focusTrap.focusInitialElementWhenReady()}}et.\u0275fac=function(se){return new(se||et)(t.Y36(t.SBq),t.Y36(ve),t.Y36(e.K0))},et.\u0275dir=t.lG2({type:et,selectors:[["","cdkTrapFocus",""]],inputs:{enabled:["cdkTrapFocus","enabled"],autoCapture:["cdkTrapFocusAutoCapture","autoCapture"]},exportAs:["cdkTrapFocus"],features:[t.TTD]});class ht extends Ie{constructor(se,J,oe,De,Ye,Dt,ut){super(se,J,oe,De,ut.defer),this._focusTrapManager=Ye,this._inertStrategy=Dt,this._focusTrapManager.register(this)}get enabled(){return this._enabled}set enabled(se){this._enabled=se,this._enabled?this._focusTrapManager.register(this):this._focusTrapManager.deregister(this)}destroy(){this._focusTrapManager.deregister(this),super.destroy()}_enable(){this._inertStrategy.preventFocus(this),this.toggleAnchors(!0)}_disable(){this._inertStrategy.allowFocus(this),this.toggleAnchors(!1)}}const Le=new t.OlP("FOCUS_TRAP_INERT_STRATEGY");class Ae{constructor(){this._listener=null}preventFocus(se){this._listener&&se._document.removeEventListener("focus",this._listener,!0),this._listener=J=>this._trapFocus(se,J),se._ngZone.runOutsideAngular(()=>{se._document.addEventListener("focus",this._listener,!0)})}allowFocus(se){!this._listener||(se._document.removeEventListener("focus",this._listener,!0),this._listener=null)}_trapFocus(se,J){const oe=J.target,De=se._element;oe&&!De.contains(oe)&&!oe.closest?.("div.cdk-overlay-pane")&&setTimeout(()=>{se.enabled&&!De.contains(se._document.activeElement)&&se.focusFirstTabbableElement()})}}class te{constructor(){this._focusTrapStack=[]}register(se){this._focusTrapStack=this._focusTrapStack.filter(oe=>oe!==se);let J=this._focusTrapStack;J.length&&J[J.length-1]._disable(),J.push(se),se._enable()}deregister(se){se._disable();const J=this._focusTrapStack,oe=J.indexOf(se);-1!==oe&&(J.splice(oe,1),J.length&&J[J.length-1]._enable())}}te.\u0275fac=function(se){return new(se||te)},te.\u0275prov=t.Yz7({token:te,factory:te.\u0275fac,providedIn:"root"});class pe{constructor(se,J,oe,De,Ye){this._checker=se,this._ngZone=J,this._focusTrapManager=oe,this._document=De,this._inertStrategy=Ye||new Ae}create(se,J={defer:!1}){let oe;return oe="boolean"==typeof J?{defer:J}:J,new ht(se,this._checker,this._ngZone,this._document,this._focusTrapManager,this._inertStrategy,oe)}}function ee(dt){return 0===dt.buttons||0===dt.offsetX&&0===dt.offsetY}function H(dt){const se=dt.touches&&dt.touches[0]||dt.changedTouches&&dt.changedTouches[0];return!(!se||-1!==se.identifier||null!=se.radiusX&&1!==se.radiusX||null!=se.radiusY&&1!==se.radiusY)}pe.\u0275fac=function(se){return new(se||pe)(t.LFG(v),t.LFG(t.R0b),t.LFG(te),t.LFG(e.K0),t.LFG(Le,8))},pe.\u0275prov=t.Yz7({token:pe,factory:pe.\u0275fac,providedIn:"root"});const j=new t.OlP("cdk-input-modality-detector-options"),Oe={ignoreKeys:[k.zL,k.jx,k.b2,k.MW,k.JU]},le=(0,_.i$)({passive:!0,capture:!0});class _t{constructor(se,J,oe,De){this._platform=se,this._mostRecentTarget=null,this._modality=new D.X(null),this._lastTouchMs=0,this._onKeydown=Ye=>{this._options?.ignoreKeys?.some(Dt=>Dt===Ye.keyCode)||(this._modality.next("keyboard"),this._mostRecentTarget=(0,_.sA)(Ye))},this._onMousedown=Ye=>{Date.now()-this._lastTouchMs<650||(this._modality.next(ee(Ye)?"keyboard":"mouse"),this._mostRecentTarget=(0,_.sA)(Ye))},this._onTouchstart=Ye=>{H(Ye)?this._modality.next("keyboard"):(this._lastTouchMs=Date.now(),this._modality.next("touch"),this._mostRecentTarget=(0,_.sA)(Ye))},this._options={...Oe,...De},this.modalityDetected=this._modality.pipe((0,z.T)(1)),this.modalityChanged=this.modalityDetected.pipe((0,I.x)()),se.isBrowser&&J.runOutsideAngular(()=>{oe.addEventListener("keydown",this._onKeydown,le),oe.addEventListener("mousedown",this._onMousedown,le),oe.addEventListener("touchstart",this._onTouchstart,le)})}get mostRecentModality(){return this._modality.value}ngOnDestroy(){this._modality.complete(),this._platform.isBrowser&&(document.removeEventListener("keydown",this._onKeydown,le),document.removeEventListener("mousedown",this._onMousedown,le),document.removeEventListener("touchstart",this._onTouchstart,le))}}_t.\u0275fac=function(se){return new(se||_t)(t.LFG(_.t4),t.LFG(t.R0b),t.LFG(e.K0),t.LFG(j,8))},_t.\u0275prov=t.Yz7({token:_t,factory:_t.\u0275fac,providedIn:"root"});const it=new t.OlP("liveAnnouncerElement",{providedIn:"root",factory:function Ct(){return null}});const un=new t.OlP("LIVE_ANNOUNCER_DEFAULT_OPTIONS");class Bt{constructor(se,J,oe,De){this._ngZone=J,this._defaultOptions=De,this._document=oe,this._liveElement=se||this._createLiveElement()}announce(se,...J){const oe=this._defaultOptions;let De,Ye;return 1===J.length&&"number"==typeof J[0]?Ye=J[0]:[De,Ye]=J,this.clear(),clearTimeout(this._previousTimeout),De||(De=oe&&oe.politeness?oe.politeness:"polite"),null==Ye&&oe&&(Ye=oe.duration),this._liveElement.setAttribute("aria-live",De),this._ngZone.runOutsideAngular(()=>(this._currentPromise||(this._currentPromise=new Promise(Dt=>this._currentResolve=Dt)),clearTimeout(this._previousTimeout),this._previousTimeout=setTimeout(()=>{this._liveElement.textContent=se,"number"==typeof Ye&&(this._previousTimeout=setTimeout(()=>this.clear(),Ye)),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 se="cdk-live-announcer-element",J=this._document.getElementsByClassName(se),oe=this._document.createElement("div");for(let De=0;De<J.length;De++)J[De].remove();return oe.classList.add(se),oe.classList.add("cdk-visually-hidden"),oe.setAttribute("aria-atomic","true"),oe.setAttribute("aria-live","polite"),this._document.body.appendChild(oe),oe}}Bt.\u0275fac=function(se){return new(se||Bt)(t.LFG(it,8),t.LFG(t.R0b),t.LFG(e.K0),t.LFG(un,8))},Bt.\u0275prov=t.Yz7({token:Bt,factory:Bt.\u0275fac,providedIn:"root"});class Ut{constructor(se,J,oe,De){this._elementRef=se,this._liveAnnouncer=J,this._contentObserver=oe,this._ngZone=De,this._politeness="polite"}get politeness(){return this._politeness}set politeness(se){this._politeness="off"===se||"assertive"===se?se:"polite","off"===this._politeness?this._subscription&&(this._subscription.unsubscribe(),this._subscription=null):this._subscription||(this._subscription=this._ngZone.runOutsideAngular(()=>this._contentObserver.observe(this._elementRef).subscribe(()=>{const J=this._elementRef.nativeElement.textContent;J!==this._previousAnnouncedText&&(this._liveAnnouncer.announce(J,this._politeness,this.duration),this._previousAnnouncedText=J)})))}ngOnDestroy(){this._subscription&&this._subscription.unsubscribe()}}Ut.\u0275fac=function(se){return new(se||Ut)(t.Y36(t.SBq),t.Y36(Bt),t.Y36(Q.yq),t.Y36(t.R0b))},Ut.\u0275dir=t.lG2({type:Ut,selectors:[["","cdkAriaLive",""]],inputs:{politeness:["cdkAriaLive","politeness"],duration:["cdkAriaLiveDuration","duration"]},exportAs:["cdkAriaLive"]});const yn=new t.OlP("cdk-focus-monitor-default-options"),Xt=(0,_.i$)({passive:!0,capture:!0});class Gt{constructor(se,J,oe,De,Ye){this._ngZone=se,this._platform=J,this._inputModalityDetector=oe,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 E.x,this._rootNodeFocusAndBlurListener=Dt=>{for(let ze=(0,_.sA)(Dt);ze;ze=ze.parentElement)"focus"===Dt.type?this._onFocus(Dt,ze):this._onBlur(Dt,ze)},this._document=De,this._detectionMode=Ye?.detectionMode||0}monitor(se,J=!1){const oe=(0,Z.fI)(se);if(!this._platform.isBrowser||1!==oe.nodeType)return(0,u.of)(null);const De=(0,_.kV)(oe)||this._getDocument(),Ye=this._elementInfo.get(oe);if(Ye)return J&&(Ye.checkChildren=!0),Ye.subject;const Dt={checkChildren:J,subject:new E.x,rootNode:De};return this._elementInfo.set(oe,Dt),this._registerGlobalListeners(Dt),Dt.subject}stopMonitoring(se){const J=(0,Z.fI)(se),oe=this._elementInfo.get(J);oe&&(oe.subject.complete(),this._setClasses(J),this._elementInfo.delete(J),this._removeGlobalListeners(oe))}focusVia(se,J,oe){const De=(0,Z.fI)(se);De===this._getDocument().activeElement?this._getClosestElementsInfo(De).forEach(([Dt,ut])=>this._originChanged(Dt,J,ut)):(this._setOrigin(J),"function"==typeof De.focus&&De.focus(oe))}ngOnDestroy(){this._elementInfo.forEach((se,J)=>this.stopMonitoring(J))}_getDocument(){return this._document||document}_getWindow(){return this._getDocument().defaultView||window}_getFocusOrigin(se){return this._origin?this._originFromTouchInteraction?this._shouldBeAttributedToTouch(se)?"touch":"program":this._origin:this._windowFocused&&this._lastFocusOrigin?this._lastFocusOrigin:se&&this._isLastInteractionFromInputLabel(se)?"mouse":"program"}_shouldBeAttributedToTouch(se){return 1===this._detectionMode||!!se?.contains(this._inputModalityDetector._mostRecentTarget)}_setClasses(se,J){se.classList.toggle("cdk-focused",!!J),se.classList.toggle("cdk-touch-focused","touch"===J),se.classList.toggle("cdk-keyboard-focused","keyboard"===J),se.classList.toggle("cdk-mouse-focused","mouse"===J),se.classList.toggle("cdk-program-focused","program"===J)}_setOrigin(se,J=!1){this._ngZone.runOutsideAngular(()=>{if(this._origin=se,this._originFromTouchInteraction="touch"===se&&J,0===this._detectionMode){clearTimeout(this._originTimeoutId);const oe=this._originFromTouchInteraction?650:1;this._originTimeoutId=setTimeout(()=>this._origin=null,oe)}})}_onFocus(se,J){const oe=this._elementInfo.get(J),De=(0,_.sA)(se);!oe||!oe.checkChildren&&J!==De||this._originChanged(J,this._getFocusOrigin(De),oe)}_onBlur(se,J){const oe=this._elementInfo.get(J);!oe||oe.checkChildren&&se.relatedTarget instanceof Node&&J.contains(se.relatedTarget)||(this._setClasses(J),this._emitOrigin(oe,null))}_emitOrigin(se,J){se.subject.observers.length&&this._ngZone.run(()=>se.subject.next(J))}_registerGlobalListeners(se){if(!this._platform.isBrowser)return;const J=se.rootNode,oe=this._rootNodeFocusListenerCount.get(J)||0;oe||this._ngZone.runOutsideAngular(()=>{J.addEventListener("focus",this._rootNodeFocusAndBlurListener,Xt),J.addEventListener("blur",this._rootNodeFocusAndBlurListener,Xt)}),this._rootNodeFocusListenerCount.set(J,oe+1),1==++this._monitoredElementCount&&(this._ngZone.runOutsideAngular(()=>{this._getWindow().addEventListener("focus",this._windowFocusListener)}),this._inputModalityDetector.modalityDetected.pipe((0,W.R)(this._stopInputModalityDetector)).subscribe(De=>{this._setOrigin(De,!0)}))}_removeGlobalListeners(se){const J=se.rootNode;if(this._rootNodeFocusListenerCount.has(J)){const oe=this._rootNodeFocusListenerCount.get(J);oe>1?this._rootNodeFocusListenerCount.set(J,oe-1):(J.removeEventListener("focus",this._rootNodeFocusAndBlurListener,Xt),J.removeEventListener("blur",this._rootNodeFocusAndBlurListener,Xt),this._rootNodeFocusListenerCount.delete(J))}--this._monitoredElementCount||(this._getWindow().removeEventListener("focus",this._windowFocusListener),this._stopInputModalityDetector.next(),clearTimeout(this._windowFocusTimeoutId),clearTimeout(this._originTimeoutId))}_originChanged(se,J,oe){this._setClasses(se,J),this._emitOrigin(oe,J),this._lastFocusOrigin=J}_getClosestElementsInfo(se){const J=[];return this._elementInfo.forEach((oe,De)=>{(De===se||oe.checkChildren&&De.contains(se))&&J.push([De,oe])}),J}_isLastInteractionFromInputLabel(se){const{_mostRecentTarget:J,mostRecentModality:oe}=this._inputModalityDetector;if("mouse"!==oe||!J||J===se||"INPUT"!==se.nodeName&&"TEXTAREA"!==se.nodeName||se.disabled)return!1;const De=se.labels;if(De)for(let Ye=0;Ye<De.length;Ye++)if(De[Ye].contains(J))return!0;return!1}}Gt.\u0275fac=function(se){return new(se||Gt)(t.LFG(t.R0b),t.LFG(_.t4),t.LFG(_t),t.LFG(e.K0,8),t.LFG(yn,8))},Gt.\u0275prov=t.Yz7({token:Gt,factory:Gt.\u0275fac,providedIn:"root"});class In{constructor(se,J){this._elementRef=se,this._focusMonitor=J,this._focusOrigin=null,this.cdkFocusChange=new t.vpe}get focusOrigin(){return this._focusOrigin}ngAfterViewInit(){const se=this._elementRef.nativeElement;this._monitorSubscription=this._focusMonitor.monitor(se,1===se.nodeType&&se.hasAttribute("cdkMonitorSubtreeFocus")).subscribe(J=>{this._focusOrigin=J,this.cdkFocusChange.emit(J)})}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef),this._monitorSubscription&&this._monitorSubscription.unsubscribe()}}In.\u0275fac=function(se){return new(se||In)(t.Y36(t.SBq),t.Y36(Gt))},In.\u0275dir=t.lG2({type:In,selectors:[["","cdkMonitorElementFocus",""],["","cdkMonitorSubtreeFocus",""]],outputs:{cdkFocusChange:"cdkFocusChange"},exportAs:["cdkMonitorFocus"]});const rn="cdk-high-contrast-black-on-white",tn="cdk-high-contrast-white-on-black",pn="cdk-high-contrast-active";class tt{constructor(se,J){this._platform=se,this._document=J,this._breakpointSubscription=(0,t.f3M)(ie.Yg).observe("(forced-colors: active)").subscribe(()=>{this._hasCheckedHighContrastMode&&(this._hasCheckedHighContrastMode=!1,this._applyBodyHighContrastModeCssClasses())})}getHighContrastMode(){if(!this._platform.isBrowser)return 0;const se=this._document.createElement("div");se.style.backgroundColor="rgb(1,2,3)",se.style.position="absolute",this._document.body.appendChild(se);const J=this._document.defaultView||window,oe=J&&J.getComputedStyle?J.getComputedStyle(se):null,De=(oe&&oe.backgroundColor||"").replace(/ /g,"");switch(se.remove(),De){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 se=this._document.body.classList;se.remove(pn,rn,tn),this._hasCheckedHighContrastMode=!0;const J=this.getHighContrastMode();1===J?se.add(pn,rn):2===J&&se.add(pn,tn)}}}tt.\u0275fac=function(se){return new(se||tt)(t.LFG(_.t4),t.LFG(e.K0))},tt.\u0275prov=t.Yz7({token:tt,factory:tt.\u0275fac,providedIn:"root"});class vt{constructor(se){se._applyBodyHighContrastModeCssClasses()}}vt.\u0275fac=function(se){return new(se||vt)(t.LFG(tt))},vt.\u0275mod=t.oAB({type:vt}),vt.\u0275inj=t.cJS({imports:[Q.Q8]})},2867:(Ue,q,m)=>{"use strict";m.d(q,{Is:()=>u,vT:()=>p});var e=m(2560),t=m(4666);const _=new e.OlP("cdk-dir-doc",{providedIn:"root",factory:function E(){return(0,e.f3M)(t.K0)}});const s=/^(ar|ckb|dv|he|iw|fa|nqo|ps|sd|ug|ur|yi|.*[-_](Adlm|Arab|Hebr|Nkoo|Rohg|Thaa))(?!.*[-_](Latn|Cyrl)($|-|_))($|-|_)/i;function D(S){const A=S?.toLowerCase()||"";return"auto"===A&&typeof navigator<"u"&&navigator?.language?s.test(navigator.language)?"rtl":"ltr":"rtl"===A?"rtl":"ltr"}class u{constructor(A){if(this.value="ltr",this.change=new e.vpe,A){const P=A.body?A.body.dir:null,M=A.documentElement?A.documentElement.dir:null;this.value=D(P||M||"ltr")}}ngOnDestroy(){this.change.complete()}}u.\u0275fac=function(A){return new(A||u)(e.LFG(_,8))},u.\u0275prov=e.Yz7({token:u,factory:u.\u0275fac,providedIn:"root"});class k{constructor(){this._dir="ltr",this._isInitialized=!1,this.change=new e.vpe}get dir(){return this._dir}set dir(A){const P=this._dir;this._dir=D(A),this._rawDir=A,P!==this._dir&&this._isInitialized&&this.change.emit(this._dir)}get value(){return this.dir}ngAfterContentInit(){this._isInitialized=!0}ngOnDestroy(){this.change.complete()}}k.\u0275fac=function(A){return new(A||k)},k.\u0275dir=e.lG2({type:k,selectors:[["","dir",""]],hostVars:1,hostBindings:function(A,P){2&A&&e.uIk("dir",P._rawDir)},inputs:{dir:"dir"},outputs:{change:"dirChange"},exportAs:["dir"],features:[e._Bn([{provide:u,useExisting:k}])]});class p{}p.\u0275fac=function(A){return new(A||p)},p.\u0275mod=e.oAB({type:p}),p.\u0275inj=e.cJS({})},8971:(Ue,q,m)=>{"use strict";m.d(q,{Eq:()=>s,HM:()=>D,Ig:()=>t,du:()=>k,fI:()=>u,su:()=>_,t6:()=>E});var e=m(2560);function t(p){return null!=p&&"false"!=`${p}`}function _(p,S=0){return E(p)?Number(p):S}function E(p){return!isNaN(parseFloat(p))&&!isNaN(Number(p))}function s(p){return Array.isArray(p)?p:[p]}function D(p){return null==p?"":"string"==typeof p?p:`${p}px`}function u(p){return p instanceof e.SBq?p.nativeElement:p}function k(p,S=/\s+/){const A=[];if(null!=p){const P=Array.isArray(p)?p:`${p}`.split(S);for(const M of P){const z=`${M}`.trim();z&&A.push(z)}}return A}},1755:(Ue,q,m)=>{"use strict";m.d(q,{A8:()=>M,Ov:()=>A,P3:()=>k,Z9:()=>u,eX:()=>S,k:()=>z,o2:()=>D,yy:()=>p});var e=m(3932),t=m(4437),_=m(745),E=m(253),s=m(2560);class D{}function u(I){return I&&"function"==typeof I.connect&&!(I instanceof e.c)}class k extends D{constructor(W){super(),this._data=W}connect(){return(0,t.b)(this._data)?this._data:(0,_.of)(this._data)}disconnect(){}}class p{applyChanges(W,Z,Q,ie,ae){W.forEachOperation((_e,ce,ye)=>{let ue,$;if(null==_e.previousIndex){const he=Q(_e,ce,ye);ue=Z.createEmbeddedView(he.templateRef,he.context,he.index),$=1}else null==ye?(Z.remove(ce),$=3):(ue=Z.get(ce),Z.move(ue,ye),$=2);ae&&ae({context:ue?.context,operation:$,record:_e})})}detach(){}}class S{constructor(){this.viewCacheSize=20,this._viewCache=[]}applyChanges(W,Z,Q,ie,ae){W.forEachOperation((_e,ce,ye)=>{let ue,$;if(null==_e.previousIndex){const he=()=>Q(_e,ce,ye);ue=this._insertView(he,ye,Z,ie(_e)),$=ue?1:0}else null==ye?(this._detachAndCacheView(ce,Z),$=3):(ue=this._moveView(ce,ye,Z,ie(_e)),$=2);ae&&ae({context:ue?.context,operation:$,record:_e})})}detach(){for(const W of this._viewCache)W.destroy();this._viewCache=[]}_insertView(W,Z,Q,ie){const ae=this._insertViewFromCache(Z,Q);if(ae)return void(ae.context.$implicit=ie);const _e=W();return Q.createEmbeddedView(_e.templateRef,_e.context,_e.index)}_detachAndCacheView(W,Z){const Q=Z.detach(W);this._maybeCacheView(Q,Z)}_moveView(W,Z,Q,ie){const ae=Q.get(W);return Q.move(ae,Z),ae.context.$implicit=ie,ae}_maybeCacheView(W,Z){if(this._viewCache.length<this.viewCacheSize)this._viewCache.push(W);else{const Q=Z.indexOf(W);-1===Q?W.destroy():Z.remove(Q)}}_insertViewFromCache(W,Z){const Q=this._viewCache.pop();return Q&&Z.insert(Q,W),Q||null}}class A{constructor(W=!1,Z,Q=!0,ie){this._multiple=W,this._emitChanges=Q,this.compareWith=ie,this._selection=new Set,this._deselectedToEmit=[],this._selectedToEmit=[],this.changed=new E.x,Z&&Z.length&&(W?Z.forEach(ae=>this._markSelected(ae)):this._markSelected(Z[0]),this._selectedToEmit.length=0)}get selected(){return this._selected||(this._selected=Array.from(this._selection.values())),this._selected}select(...W){this._verifyValueAssignment(W),W.forEach(Q=>this._markSelected(Q));const Z=this._hasQueuedChanges();return this._emitChangeEvent(),Z}deselect(...W){this._verifyValueAssignment(W),W.forEach(Q=>this._unmarkSelected(Q));const Z=this._hasQueuedChanges();return this._emitChangeEvent(),Z}setSelection(...W){this._verifyValueAssignment(W);const Z=this.selected,Q=new Set(W);W.forEach(ae=>this._markSelected(ae)),Z.filter(ae=>!Q.has(ae)).forEach(ae=>this._unmarkSelected(ae));const ie=this._hasQueuedChanges();return this._emitChangeEvent(),ie}toggle(W){return this.isSelected(W)?this.deselect(W):this.select(W)}clear(W=!0){this._unmarkAll();const Z=this._hasQueuedChanges();return W&&this._emitChangeEvent(),Z}isSelected(W){if(this.compareWith){for(const Z of this._selection)if(this.compareWith(Z,W))return!0;return!1}return this._selection.has(W)}isEmpty(){return 0===this._selection.size}hasValue(){return!this.isEmpty()}sort(W){this._multiple&&this.selected&&this._selected.sort(W)}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(W){this.isSelected(W)||(this._multiple||this._unmarkAll(),this.isSelected(W)||this._selection.add(W),this._emitChanges&&this._selectedToEmit.push(W))}_unmarkSelected(W){this.isSelected(W)&&(this._selection.delete(W),this._emitChanges&&this._deselectedToEmit.push(W))}_unmarkAll(){this.isEmpty()||this._selection.forEach(W=>this._unmarkSelected(W))}_verifyValueAssignment(W){W.length>1&&this._multiple}_hasQueuedChanges(){return!(!this._deselectedToEmit.length&&!this._selectedToEmit.length)}}class M{constructor(){this._listeners=[]}notify(W,Z){for(let Q of this._listeners)Q(W,Z)}listen(W){return this._listeners.push(W),()=>{this._listeners=this._listeners.filter(Z=>W!==Z)}}ngOnDestroy(){this._listeners=[]}}M.\u0275fac=function(W){return new(W||M)},M.\u0275prov=s.Yz7({token:M,factory:M.\u0275fac,providedIn:"root"});const z=new s.OlP("_ViewRepeater")},8456:(Ue,q,m)=>{"use strict";m.d(q,{A:()=>F,JH:()=>ae,JU:()=>D,K5:()=>s,Ku:()=>M,LH:()=>Q,L_:()=>P,MW:()=>un,Mf:()=>_,SV:()=>ie,Sd:()=>W,VM:()=>z,Vb:()=>gn,Z:()=>Ct,ZH:()=>t,aO:()=>B,b2:()=>en,hY:()=>A,jx:()=>u,oh:()=>Z,uR:()=>I,xE:()=>$,yY:()=>ue,zL:()=>k});const t=8,_=9,s=13,D=16,u=17,k=18,A=27,P=32,M=33,z=34,I=35,W=36,Z=37,Q=38,ie=39,ae=40,ue=46,$=48,B=57,F=65,Ct=90,un=91,en=224;function gn(Qn,...Ei){return Ei.length?Ei.some(ha=>Qn[ha]):Qn.altKey||Qn.shiftKey||Qn.ctrlKey||Qn.metaKey}},3278:(Ue,q,m)=>{"use strict";m.d(q,{Yg:()=>ae,u3:()=>ce,xu:()=>z});var e=m(2560),t=m(8971),_=m(253),E=m(6562),s=m(9319),D=m(833),u=m(9295),k=m(7260),p=m(1989),S=m(635),A=m(4874),P=m(8951),M=m(9107);class z{}z.\u0275fac=function(ue){return new(ue||z)},z.\u0275mod=e.oAB({type:z}),z.\u0275inj=e.cJS({});const I=new Set;let W;class Z{constructor(ue){this._platform=ue,this._matchMedia=this._platform.isBrowser&&window.matchMedia?window.matchMedia.bind(window):ie}matchMedia(ue){return(this._platform.WEBKIT||this._platform.BLINK)&&function Q(ye){if(!I.has(ye))try{W||(W=document.createElement("style"),W.setAttribute("type","text/css"),document.head.appendChild(W)),W.sheet&&(W.sheet.insertRule(`@media ${ye} {body{ }}`,0),I.add(ye))}catch(ue){console.error(ue)}}(ue),this._matchMedia(ue)}}function ie(ye){return{matches:"all"===ye||""===ye,media:ye,addListener:()=>{},removeListener:()=>{}}}Z.\u0275fac=function(ue){return new(ue||Z)(e.LFG(M.t4))},Z.\u0275prov=e.Yz7({token:Z,factory:Z.\u0275fac,providedIn:"root"});class ae{constructor(ue,$){this._mediaMatcher=ue,this._zone=$,this._queries=new Map,this._destroySubject=new _.x}ngOnDestroy(){this._destroySubject.next(),this._destroySubject.complete()}isMatched(ue){return _e((0,t.Eq)(ue)).some(he=>this._registerQuery(he).mql.matches)}observe(ue){const he=_e((0,t.Eq)(ue)).map(n=>this._registerQuery(n).observable);let w=(0,E.a)(he);return w=(0,s.z)(w.pipe((0,u.q)(1)),w.pipe((0,k.T)(1),(0,p.b)(0))),w.pipe((0,S.U)(n=>{const o={matches:!1,breakpoints:{}};return n.forEach(({matches:h,query:d})=>{o.matches=o.matches||h,o.breakpoints[d]=h}),o}))}_registerQuery(ue){if(this._queries.has(ue))return this._queries.get(ue);const $=this._mediaMatcher.matchMedia(ue),w={observable:new D.y(n=>{const o=h=>this._zone.run(()=>n.next(h));return $.addListener(o),()=>{$.removeListener(o)}}).pipe((0,A.O)($),(0,S.U)(({matches:n})=>({query:ue,matches:n})),(0,P.R)(this._destroySubject)),mql:$};return this._queries.set(ue,w),w}}function _e(ye){return ye.map(ue=>ue.split(",")).reduce((ue,$)=>ue.concat($)).map(ue=>ue.trim())}ae.\u0275fac=function(ue){return new(ue||ae)(e.LFG(Z),e.LFG(e.R0b))},ae.\u0275prov=e.Yz7({token:ae,factory:ae.\u0275fac,providedIn:"root"});const ce={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)"}},3773:(Ue,q,m)=>{"use strict";m.d(q,{Q8:()=>p,wD:()=>k,yq:()=>u});var e=m(8971),t=m(2560),_=m(833),E=m(253),s=m(1989);class D{create(A){return typeof MutationObserver>"u"?null:new MutationObserver(A)}}D.\u0275fac=function(A){return new(A||D)},D.\u0275prov=t.Yz7({token:D,factory:D.\u0275fac,providedIn:"root"});class u{constructor(A){this._mutationObserverFactory=A,this._observedElements=new Map}ngOnDestroy(){this._observedElements.forEach((A,P)=>this._cleanupObserver(P))}observe(A){const P=(0,e.fI)(A);return new _.y(M=>{const I=this._observeElement(P).subscribe(M);return()=>{I.unsubscribe(),this._unobserveElement(P)}})}_observeElement(A){if(this._observedElements.has(A))this._observedElements.get(A).count++;else{const P=new E.x,M=this._mutationObserverFactory.create(z=>P.next(z));M&&M.observe(A,{characterData:!0,childList:!0,subtree:!0}),this._observedElements.set(A,{observer:M,stream:P,count:1})}return this._observedElements.get(A).stream}_unobserveElement(A){this._observedElements.has(A)&&(this._observedElements.get(A).count--,this._observedElements.get(A).count||this._cleanupObserver(A))}_cleanupObserver(A){if(this._observedElements.has(A)){const{observer:P,stream:M}=this._observedElements.get(A);P&&P.disconnect(),M.complete(),this._observedElements.delete(A)}}}u.\u0275fac=function(A){return new(A||u)(t.LFG(D))},u.\u0275prov=t.Yz7({token:u,factory:u.\u0275fac,providedIn:"root"});class k{constructor(A,P,M){this._contentObserver=A,this._elementRef=P,this._ngZone=M,this.event=new t.vpe,this._disabled=!1,this._currentSubscription=null}get disabled(){return this._disabled}set disabled(A){this._disabled=(0,e.Ig)(A),this._disabled?this._unsubscribe():this._subscribe()}get debounce(){return this._debounce}set debounce(A){this._debounce=(0,e.su)(A),this._subscribe()}ngAfterContentInit(){!this._currentSubscription&&!this.disabled&&this._subscribe()}ngOnDestroy(){this._unsubscribe()}_subscribe(){this._unsubscribe();const A=this._contentObserver.observe(this._elementRef);this._ngZone.runOutsideAngular(()=>{this._currentSubscription=(this.debounce?A.pipe((0,s.b)(this.debounce)):A).subscribe(this.event)})}_unsubscribe(){this._currentSubscription?.unsubscribe()}}k.\u0275fac=function(A){return new(A||k)(t.Y36(u),t.Y36(t.SBq),t.Y36(t.R0b))},k.\u0275dir=t.lG2({type:k,selectors:[["","cdkObserveContent",""]],inputs:{disabled:["cdkObserveContentDisabled","disabled"],debounce:"debounce"},outputs:{event:"cdkObserveContent"},exportAs:["cdkObserveContent"]});class p{}p.\u0275fac=function(A){return new(A||p)},p.\u0275mod=t.oAB({type:p}),p.\u0275inj=t.cJS({providers:[D]})},5895:(Ue,q,m)=>{"use strict";m.d(q,{Iu:()=>B,U8:()=>te,X_:()=>ue,Xj:()=>L,_G:()=>C,aV:()=>Ze,pI:()=>ht,xu:()=>et});var e=m(1494),t=m(4666),_=m(2560),E=m(8971),s=m(9107),D=m(2867),u=m(7520),k=m(253),p=m(7714),S=m(6646),A=m(9295),P=m(8951),M=m(2566),z=m(8456);const I=(0,s.Mq)();class W{constructor(H,j){this._viewportRuler=H,this._previousHTMLStyles={top:"",left:""},this._isEnabled=!1,this._document=j}attach(){}enable(){if(this._canBeEnabled()){const H=this._document.documentElement;this._previousScrollPosition=this._viewportRuler.getViewportScrollPosition(),this._previousHTMLStyles.left=H.style.left||"",this._previousHTMLStyles.top=H.style.top||"",H.style.left=(0,E.HM)(-this._previousScrollPosition.left),H.style.top=(0,E.HM)(-this._previousScrollPosition.top),H.classList.add("cdk-global-scrollblock"),this._isEnabled=!0}}disable(){if(this._isEnabled){const H=this._document.documentElement,j=this._document.body,Oe=H.style,Re=j.style,le=Oe.scrollBehavior||"",_t=Re.scrollBehavior||"";this._isEnabled=!1,Oe.left=this._previousHTMLStyles.left,Oe.top=this._previousHTMLStyles.top,H.classList.remove("cdk-global-scrollblock"),I&&(Oe.scrollBehavior=Re.scrollBehavior="auto"),window.scroll(this._previousScrollPosition.left,this._previousScrollPosition.top),I&&(Oe.scrollBehavior=le,Re.scrollBehavior=_t)}}_canBeEnabled(){if(this._document.documentElement.classList.contains("cdk-global-scrollblock")||this._isEnabled)return!1;const j=this._document.body,Oe=this._viewportRuler.getViewportSize();return j.scrollHeight>Oe.height||j.scrollWidth>Oe.width}}class Q{constructor(H,j,Oe,Re){this._scrollDispatcher=H,this._ngZone=j,this._viewportRuler=Oe,this._config=Re,this._scrollSubscription=null,this._detach=()=>{this.disable(),this._overlayRef.hasAttached()&&this._ngZone.run(()=>this._overlayRef.detach())}}attach(H){this._overlayRef,this._overlayRef=H}enable(){if(this._scrollSubscription)return;const H=this._scrollDispatcher.scrolled(0);this._config&&this._config.threshold&&this._config.threshold>1?(this._initialScrollPosition=this._viewportRuler.getViewportScrollPosition().top,this._scrollSubscription=H.subscribe(()=>{const j=this._viewportRuler.getViewportScrollPosition().top;Math.abs(j-this._initialScrollPosition)>this._config.threshold?this._detach():this._overlayRef.updatePosition()})):this._scrollSubscription=H.subscribe(this._detach)}disable(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}detach(){this.disable(),this._overlayRef=null}}class ie{enable(){}disable(){}attach(){}}function ae(ee,H){return H.some(j=>{const Oe=ee.bottom<j.top,Re=ee.top>j.bottom,le=ee.right<j.left,_t=ee.left>j.right;return Oe||Re||le||_t})}function _e(ee,H){return H.some(j=>{const Oe=ee.top<j.top,Re=ee.bottom>j.bottom,le=ee.left<j.left,_t=ee.right>j.right;return Oe||Re||le||_t})}class ce{constructor(H,j,Oe,Re){this._scrollDispatcher=H,this._viewportRuler=j,this._ngZone=Oe,this._config=Re,this._scrollSubscription=null}attach(H){this._overlayRef,this._overlayRef=H}enable(){if(!this._scrollSubscription){const H=this._config?this._config.scrollThrottle:0;this._scrollSubscription=this._scrollDispatcher.scrolled(H).subscribe(()=>{if(this._overlayRef.updatePosition(),this._config&&this._config.autoClose){const j=this._overlayRef.overlayElement.getBoundingClientRect(),{width:Oe,height:Re}=this._viewportRuler.getViewportSize();ae(j,[{width:Oe,height:Re,bottom:Re,right:Oe,top:0,left:0}])&&(this.disable(),this._ngZone.run(()=>this._overlayRef.detach()))}})}}disable(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}detach(){this.disable(),this._overlayRef=null}}class ye{constructor(H,j,Oe,Re){this._scrollDispatcher=H,this._viewportRuler=j,this._ngZone=Oe,this.noop=()=>new ie,this.close=le=>new Q(this._scrollDispatcher,this._ngZone,this._viewportRuler,le),this.block=()=>new W(this._viewportRuler,this._document),this.reposition=le=>new ce(this._scrollDispatcher,this._viewportRuler,this._ngZone,le),this._document=Re}}ye.\u0275fac=function(H){return new(H||ye)(_.LFG(e.mF),_.LFG(e.rL),_.LFG(_.R0b),_.LFG(t.K0))},ye.\u0275prov=_.Yz7({token:ye,factory:ye.\u0275fac,providedIn:"root"});class ue{constructor(H){if(this.scrollStrategy=new ie,this.panelClass="",this.hasBackdrop=!1,this.backdropClass="cdk-overlay-dark-backdrop",this.disposeOnNavigation=!1,H){const j=Object.keys(H);for(const Oe of j)void 0!==H[Oe]&&(this[Oe]=H[Oe])}}}class w{constructor(H,j){this.connectionPair=H,this.scrollableViewProperties=j}}class h{constructor(H){this._attachedOverlays=[],this._document=H}ngOnDestroy(){this.detach()}add(H){this.remove(H),this._attachedOverlays.push(H)}remove(H){const j=this._attachedOverlays.indexOf(H);j>-1&&this._attachedOverlays.splice(j,1),0===this._attachedOverlays.length&&this.detach()}}h.\u0275fac=function(H){return new(H||h)(_.LFG(t.K0))},h.\u0275prov=_.Yz7({token:h,factory:h.\u0275fac,providedIn:"root"});class d extends h{constructor(H,j){super(H),this._ngZone=j,this._keydownListener=Oe=>{const Re=this._attachedOverlays;for(let le=Re.length-1;le>-1;le--)if(Re[le]._keydownEvents.observers.length>0){const _t=Re[le]._keydownEvents;this._ngZone?this._ngZone.run(()=>_t.next(Oe)):_t.next(Oe);break}}}add(H){super.add(H),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)}}d.\u0275fac=function(H){return new(H||d)(_.LFG(t.K0),_.LFG(_.R0b,8))},d.\u0275prov=_.Yz7({token:d,factory:d.\u0275fac,providedIn:"root"});class y extends h{constructor(H,j,Oe){super(H),this._platform=j,this._ngZone=Oe,this._cursorStyleIsSet=!1,this._pointerDownListener=Re=>{this._pointerDownEventTarget=(0,s.sA)(Re)},this._clickListener=Re=>{const le=(0,s.sA)(Re),_t="click"===Re.type&&this._pointerDownEventTarget?this._pointerDownEventTarget:le;this._pointerDownEventTarget=null;const it=this._attachedOverlays.slice();for(let Ct=it.length-1;Ct>-1;Ct--){const un=it[Ct];if(un._outsidePointerEvents.observers.length<1||!un.hasAttached())continue;if(un.overlayElement.contains(le)||un.overlayElement.contains(_t))break;const Bt=un._outsidePointerEvents;this._ngZone?this._ngZone.run(()=>Bt.next(Re)):Bt.next(Re)}}}add(H){if(super.add(H),!this._isAttached){const j=this._document.body;this._ngZone?this._ngZone.runOutsideAngular(()=>this._addEventListeners(j)):this._addEventListeners(j),this._platform.IOS&&!this._cursorStyleIsSet&&(this._cursorOriginalValue=j.style.cursor,j.style.cursor="pointer",this._cursorStyleIsSet=!0),this._isAttached=!0}}detach(){if(this._isAttached){const H=this._document.body;H.removeEventListener("pointerdown",this._pointerDownListener,!0),H.removeEventListener("click",this._clickListener,!0),H.removeEventListener("auxclick",this._clickListener,!0),H.removeEventListener("contextmenu",this._clickListener,!0),this._platform.IOS&&this._cursorStyleIsSet&&(H.style.cursor=this._cursorOriginalValue,this._cursorStyleIsSet=!1),this._isAttached=!1}}_addEventListeners(H){H.addEventListener("pointerdown",this._pointerDownListener,!0),H.addEventListener("click",this._clickListener,!0),H.addEventListener("auxclick",this._clickListener,!0),H.addEventListener("contextmenu",this._clickListener,!0)}}y.\u0275fac=function(H){return new(H||y)(_.LFG(t.K0),_.LFG(s.t4),_.LFG(_.R0b,8))},y.\u0275prov=_.Yz7({token:y,factory:y.\u0275fac,providedIn:"root"});class L{constructor(H,j){this._platform=j,this._document=H}ngOnDestroy(){this._containerElement?.remove()}getContainerElement(){return this._containerElement||this._createContainer(),this._containerElement}_createContainer(){const H="cdk-overlay-container";if(this._platform.isBrowser||(0,s.Oy)()){const Oe=this._document.querySelectorAll(`.${H}[platform="server"], .${H}[platform="test"]`);for(let Re=0;Re<Oe.length;Re++)Oe[Re].remove()}const j=this._document.createElement("div");j.classList.add(H),(0,s.Oy)()?j.setAttribute("platform","test"):this._platform.isBrowser||j.setAttribute("platform","server"),this._document.body.appendChild(j),this._containerElement=j}}L.\u0275fac=function(H){return new(H||L)(_.LFG(t.K0),_.LFG(s.t4))},L.\u0275prov=_.Yz7({token:L,factory:L.\u0275fac,providedIn:"root"});class B{constructor(H,j,Oe,Re,le,_t,it,Ct,un,Bt=!1){this._portalOutlet=H,this._host=j,this._pane=Oe,this._config=Re,this._ngZone=le,this._keyboardDispatcher=_t,this._document=it,this._location=Ct,this._outsideClickDispatcher=un,this._animationsDisabled=Bt,this._backdropElement=null,this._backdropClick=new k.x,this._attachments=new k.x,this._detachments=new k.x,this._locationChanges=p.w0.EMPTY,this._backdropClickHandler=Ut=>this._backdropClick.next(Ut),this._backdropTransitionendHandler=Ut=>{this._disposeBackdrop(Ut.target)},this._keydownEvents=new k.x,this._outsidePointerEvents=new k.x,Re.scrollStrategy&&(this._scrollStrategy=Re.scrollStrategy,this._scrollStrategy.attach(this)),this._positionStrategy=Re.positionStrategy}get overlayElement(){return this._pane}get backdropElement(){return this._backdropElement}get hostElement(){return this._host}attach(H){!this._host.parentElement&&this._previousHostParent&&this._previousHostParent.appendChild(this._host);const j=this._portalOutlet.attach(H);return this._positionStrategy&&this._positionStrategy.attach(this),this._updateStackingOrder(),this._updateElementSize(),this._updateElementDirection(),this._scrollStrategy&&this._scrollStrategy.enable(),this._ngZone.onStable.pipe((0,A.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 j?.onDestroy&&j.onDestroy(()=>{this.hasAttached()&&this._ngZone.runOutsideAngular(()=>Promise.resolve().then(()=>this.detach()))}),j}detach(){if(!this.hasAttached())return;this.detachBackdrop(),this._togglePointerEvents(!1),this._positionStrategy&&this._positionStrategy.detach&&this._positionStrategy.detach(),this._scrollStrategy&&this._scrollStrategy.disable();const H=this._portalOutlet.detach();return this._detachments.next(),this._keyboardDispatcher.remove(this),this._detachContentWhenStable(),this._locationChanges.unsubscribe(),this._outsideClickDispatcher.remove(this),H}dispose(){const H=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,H&&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(H){H!==this._positionStrategy&&(this._positionStrategy&&this._positionStrategy.dispose(),this._positionStrategy=H,this.hasAttached()&&(H.attach(this),this.updatePosition()))}updateSize(H){this._config={...this._config,...H},this._updateElementSize()}setDirection(H){this._config={...this._config,direction:H},this._updateElementDirection()}addPanelClass(H){this._pane&&this._toggleClasses(this._pane,H,!0)}removePanelClass(H){this._pane&&this._toggleClasses(this._pane,H,!1)}getDirection(){const H=this._config.direction;return H?"string"==typeof H?H:H.value:"ltr"}updateScrollStrategy(H){H!==this._scrollStrategy&&(this._disposeScrollStrategy(),this._scrollStrategy=H,this.hasAttached()&&(H.attach(this),H.enable()))}_updateElementDirection(){this._host.setAttribute("dir",this.getDirection())}_updateElementSize(){if(!this._pane)return;const H=this._pane.style;H.width=(0,E.HM)(this._config.width),H.height=(0,E.HM)(this._config.height),H.minWidth=(0,E.HM)(this._config.minWidth),H.minHeight=(0,E.HM)(this._config.minHeight),H.maxWidth=(0,E.HM)(this._config.maxWidth),H.maxHeight=(0,E.HM)(this._config.maxHeight)}_togglePointerEvents(H){this._pane.style.pointerEvents=H?"":"none"}_attachBackdrop(){const H="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(H)})}):this._backdropElement.classList.add(H)}_updateStackingOrder(){this._host.nextSibling&&this._host.parentNode.appendChild(this._host)}detachBackdrop(){const H=this._backdropElement;if(H){if(this._animationsDisabled)return void this._disposeBackdrop(H);H.classList.remove("cdk-overlay-backdrop-showing"),this._ngZone.runOutsideAngular(()=>{H.addEventListener("transitionend",this._backdropTransitionendHandler)}),H.style.pointerEvents="none",this._backdropTimeout=this._ngZone.runOutsideAngular(()=>setTimeout(()=>{this._disposeBackdrop(H)},500))}}_toggleClasses(H,j,Oe){const Re=(0,E.Eq)(j||[]).filter(le=>!!le);Re.length&&(Oe?H.classList.add(...Re):H.classList.remove(...Re))}_detachContentWhenStable(){this._ngZone.runOutsideAngular(()=>{const H=this._ngZone.onStable.pipe((0,P.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()),H.unsubscribe())})})}_disposeScrollStrategy(){const H=this._scrollStrategy;H&&(H.disable(),H.detach&&H.detach())}_disposeBackdrop(H){H&&(H.removeEventListener("click",this._backdropClickHandler),H.removeEventListener("transitionend",this._backdropTransitionendHandler),H.remove(),this._backdropElement===H&&(this._backdropElement=null)),this._backdropTimeout&&(clearTimeout(this._backdropTimeout),this._backdropTimeout=void 0)}}const v="cdk-overlay-connected-position-bounding-box",a=/([A-Za-z%]+)$/;class C{constructor(H,j,Oe,Re,le){this._viewportRuler=j,this._document=Oe,this._platform=Re,this._overlayContainer=le,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 k.x,this._resizeSubscription=p.w0.EMPTY,this._offsetX=0,this._offsetY=0,this._appliedPanelClasses=[],this.positionChanges=this._positionChanges,this.setOrigin(H)}get positions(){return this._preferredPositions}attach(H){this._overlayRef&&this._overlayRef,this._validatePositions(),H.hostElement.classList.add(v),this._overlayRef=H,this._boundingBox=H.hostElement,this._pane=H.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 H=this._originRect,j=this._overlayRect,Oe=this._viewportRect,Re=this._containerRect,le=[];let _t;for(let it of this._preferredPositions){let Ct=this._getOriginPoint(H,Re,it),un=this._getOverlayPoint(Ct,j,it),Bt=this._getOverlayFit(un,j,Oe,it);if(Bt.isCompletelyWithinViewport)return this._isPushed=!1,void this._applyPosition(it,Ct);this._canFitWithFlexibleDimensions(Bt,un,Oe)?le.push({position:it,origin:Ct,overlayRect:j,boundingBoxRect:this._calculateBoundingBoxRect(Ct,it)}):(!_t||_t.overlayFit.visibleArea<Bt.visibleArea)&&(_t={overlayFit:Bt,overlayPoint:un,originPoint:Ct,position:it,overlayRect:j})}if(le.length){let it=null,Ct=-1;for(const un of le){const Bt=un.boundingBoxRect.width*un.boundingBoxRect.height*(un.position.weight||1);Bt>Ct&&(Ct=Bt,it=un)}return this._isPushed=!1,void this._applyPosition(it.position,it.origin)}if(this._canPush)return this._isPushed=!0,void this._applyPosition(_t.position,_t.originPoint);this._applyPosition(_t.position,_t.originPoint)}detach(){this._clearPanelClasses(),this._lastPosition=null,this._previousPushAmount=null,this._resizeSubscription.unsubscribe()}dispose(){this._isDisposed||(this._boundingBox&&N(this._boundingBox.style,{top:"",left:"",right:"",bottom:"",height:"",width:"",alignItems:"",justifyContent:""}),this._pane&&this._resetOverlayElementStyles(),this._overlayRef&&this._overlayRef.hostElement.classList.remove(v),this.detach(),this._positionChanges.complete(),this._overlayRef=this._boundingBox=null,this._isDisposed=!0)}reapplyLastPosition(){if(this._isDisposed||!this._platform.isBrowser)return;const H=this._lastPosition;if(H){this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._viewportRect=this._getNarrowedViewportRect(),this._containerRect=this._overlayContainer.getContainerElement().getBoundingClientRect();const j=this._getOriginPoint(this._originRect,this._containerRect,H);this._applyPosition(H,j)}else this.apply()}withScrollableContainers(H){return this._scrollables=H,this}withPositions(H){return this._preferredPositions=H,-1===H.indexOf(this._lastPosition)&&(this._lastPosition=null),this._validatePositions(),this}withViewportMargin(H){return this._viewportMargin=H,this}withFlexibleDimensions(H=!0){return this._hasFlexibleDimensions=H,this}withGrowAfterOpen(H=!0){return this._growAfterOpen=H,this}withPush(H=!0){return this._canPush=H,this}withLockedPosition(H=!0){return this._positionLocked=H,this}setOrigin(H){return this._origin=H,this}withDefaultOffsetX(H){return this._offsetX=H,this}withDefaultOffsetY(H){return this._offsetY=H,this}withTransformOriginOn(H){return this._transformOriginSelector=H,this}_getOriginPoint(H,j,Oe){let Re,le;if("center"==Oe.originX)Re=H.left+H.width/2;else{const _t=this._isRtl()?H.right:H.left,it=this._isRtl()?H.left:H.right;Re="start"==Oe.originX?_t:it}return j.left<0&&(Re-=j.left),le="center"==Oe.originY?H.top+H.height/2:"top"==Oe.originY?H.top:H.bottom,j.top<0&&(le-=j.top),{x:Re,y:le}}_getOverlayPoint(H,j,Oe){let Re,le;return Re="center"==Oe.overlayX?-j.width/2:"start"===Oe.overlayX?this._isRtl()?-j.width:0:this._isRtl()?0:-j.width,le="center"==Oe.overlayY?-j.height/2:"top"==Oe.overlayY?0:-j.height,{x:H.x+Re,y:H.y+le}}_getOverlayFit(H,j,Oe,Re){const le=X(j);let{x:_t,y:it}=H,Ct=this._getOffset(Re,"x"),un=this._getOffset(Re,"y");Ct&&(_t+=Ct),un&&(it+=un);let Bt=0-_t,Ut=_t+le.width-Oe.width,yn=0-it,Xt=it+le.height-Oe.height,Gt=this._subtractOverflows(le.width,Bt,Ut),In=this._subtractOverflows(le.height,yn,Xt),rn=Gt*In;return{visibleArea:rn,isCompletelyWithinViewport:le.width*le.height===rn,fitsInViewportVertically:In===le.height,fitsInViewportHorizontally:Gt==le.width}}_canFitWithFlexibleDimensions(H,j,Oe){if(this._hasFlexibleDimensions){const Re=Oe.bottom-j.y,le=Oe.right-j.x,_t=F(this._overlayRef.getConfig().minHeight),it=F(this._overlayRef.getConfig().minWidth),Ct=H.fitsInViewportVertically||null!=_t&&_t<=Re,un=H.fitsInViewportHorizontally||null!=it&&it<=le;return Ct&&un}return!1}_pushOverlayOnScreen(H,j,Oe){if(this._previousPushAmount&&this._positionLocked)return{x:H.x+this._previousPushAmount.x,y:H.y+this._previousPushAmount.y};const Re=X(j),le=this._viewportRect,_t=Math.max(H.x+Re.width-le.width,0),it=Math.max(H.y+Re.height-le.height,0),Ct=Math.max(le.top-Oe.top-H.y,0),un=Math.max(le.left-Oe.left-H.x,0);let Bt=0,Ut=0;return Bt=Re.width<=le.width?un||-_t:H.x<this._viewportMargin?le.left-Oe.left-H.x:0,Ut=Re.height<=le.height?Ct||-it:H.y<this._viewportMargin?le.top-Oe.top-H.y:0,this._previousPushAmount={x:Bt,y:Ut},{x:H.x+Bt,y:H.y+Ut}}_applyPosition(H,j){if(this._setTransformOrigin(H),this._setOverlayElementStyles(j,H),this._setBoundingBoxStyles(j,H),H.panelClass&&this._addPanelClasses(H.panelClass),this._lastPosition=H,this._positionChanges.observers.length){const Oe=this._getScrollVisibility(),Re=new w(H,Oe);this._positionChanges.next(Re)}this._isInitialRender=!1}_setTransformOrigin(H){if(!this._transformOriginSelector)return;const j=this._boundingBox.querySelectorAll(this._transformOriginSelector);let Oe,Re=H.overlayY;Oe="center"===H.overlayX?"center":this._isRtl()?"start"===H.overlayX?"right":"left":"start"===H.overlayX?"left":"right";for(let le=0;le<j.length;le++)j[le].style.transformOrigin=`${Oe} ${Re}`}_calculateBoundingBoxRect(H,j){const Oe=this._viewportRect,Re=this._isRtl();let le,_t,it;if("top"===j.overlayY)_t=H.y,le=Oe.height-_t+this._viewportMargin;else if("bottom"===j.overlayY)it=Oe.height-H.y+2*this._viewportMargin,le=Oe.height-it+this._viewportMargin;else{const Xt=Math.min(Oe.bottom-H.y+Oe.top,H.y),Gt=this._lastBoundingBoxSize.height;le=2*Xt,_t=H.y-Xt,le>Gt&&!this._isInitialRender&&!this._growAfterOpen&&(_t=H.y-Gt/2)}const Ct="start"===j.overlayX&&!Re||"end"===j.overlayX&&Re;let Bt,Ut,yn;if("end"===j.overlayX&&!Re||"start"===j.overlayX&&Re)yn=Oe.width-H.x+this._viewportMargin,Bt=H.x-this._viewportMargin;else if(Ct)Ut=H.x,Bt=Oe.right-H.x;else{const Xt=Math.min(Oe.right-H.x+Oe.left,H.x),Gt=this._lastBoundingBoxSize.width;Bt=2*Xt,Ut=H.x-Xt,Bt>Gt&&!this._isInitialRender&&!this._growAfterOpen&&(Ut=H.x-Gt/2)}return{top:_t,left:Ut,bottom:it,right:yn,width:Bt,height:le}}_setBoundingBoxStyles(H,j){const Oe=this._calculateBoundingBoxRect(H,j);!this._isInitialRender&&!this._growAfterOpen&&(Oe.height=Math.min(Oe.height,this._lastBoundingBoxSize.height),Oe.width=Math.min(Oe.width,this._lastBoundingBoxSize.width));const Re={};if(this._hasExactPosition())Re.top=Re.left="0",Re.bottom=Re.right=Re.maxHeight=Re.maxWidth="",Re.width=Re.height="100%";else{const le=this._overlayRef.getConfig().maxHeight,_t=this._overlayRef.getConfig().maxWidth;Re.height=(0,E.HM)(Oe.height),Re.top=(0,E.HM)(Oe.top),Re.bottom=(0,E.HM)(Oe.bottom),Re.width=(0,E.HM)(Oe.width),Re.left=(0,E.HM)(Oe.left),Re.right=(0,E.HM)(Oe.right),"center"===j.overlayX?Re.alignItems="center":Re.alignItems="end"===j.overlayX?"flex-end":"flex-start","center"===j.overlayY?Re.justifyContent="center":Re.justifyContent="bottom"===j.overlayY?"flex-end":"flex-start",le&&(Re.maxHeight=(0,E.HM)(le)),_t&&(Re.maxWidth=(0,E.HM)(_t))}this._lastBoundingBoxSize=Oe,N(this._boundingBox.style,Re)}_resetBoundingBoxStyles(){N(this._boundingBox.style,{top:"0",left:"0",right:"0",bottom:"0",height:"",width:"",alignItems:"",justifyContent:""})}_resetOverlayElementStyles(){N(this._pane.style,{top:"",left:"",bottom:"",right:"",position:"",transform:""})}_setOverlayElementStyles(H,j){const Oe={},Re=this._hasExactPosition(),le=this._hasFlexibleDimensions,_t=this._overlayRef.getConfig();if(Re){const Bt=this._viewportRuler.getViewportScrollPosition();N(Oe,this._getExactOverlayY(j,H,Bt)),N(Oe,this._getExactOverlayX(j,H,Bt))}else Oe.position="static";let it="",Ct=this._getOffset(j,"x"),un=this._getOffset(j,"y");Ct&&(it+=`translateX(${Ct}px) `),un&&(it+=`translateY(${un}px)`),Oe.transform=it.trim(),_t.maxHeight&&(Re?Oe.maxHeight=(0,E.HM)(_t.maxHeight):le&&(Oe.maxHeight="")),_t.maxWidth&&(Re?Oe.maxWidth=(0,E.HM)(_t.maxWidth):le&&(Oe.maxWidth="")),N(this._pane.style,Oe)}_getExactOverlayY(H,j,Oe){let Re={top:"",bottom:""},le=this._getOverlayPoint(j,this._overlayRect,H);if(this._isPushed&&(le=this._pushOverlayOnScreen(le,this._overlayRect,Oe)),"bottom"===H.overlayY){const _t=this._document.documentElement.clientHeight;Re.bottom=_t-(le.y+this._overlayRect.height)+"px"}else Re.top=(0,E.HM)(le.y);return Re}_getExactOverlayX(H,j,Oe){let _t,Re={left:"",right:""},le=this._getOverlayPoint(j,this._overlayRect,H);if(this._isPushed&&(le=this._pushOverlayOnScreen(le,this._overlayRect,Oe)),_t=this._isRtl()?"end"===H.overlayX?"left":"right":"end"===H.overlayX?"right":"left","right"===_t){const it=this._document.documentElement.clientWidth;Re.right=it-(le.x+this._overlayRect.width)+"px"}else Re.left=(0,E.HM)(le.x);return Re}_getScrollVisibility(){const H=this._getOriginRect(),j=this._pane.getBoundingClientRect(),Oe=this._scrollables.map(Re=>Re.getElementRef().nativeElement.getBoundingClientRect());return{isOriginClipped:_e(H,Oe),isOriginOutsideView:ae(H,Oe),isOverlayClipped:_e(j,Oe),isOverlayOutsideView:ae(j,Oe)}}_subtractOverflows(H,...j){return j.reduce((Oe,Re)=>Oe-Math.max(Re,0),H)}_getNarrowedViewportRect(){const H=this._document.documentElement.clientWidth,j=this._document.documentElement.clientHeight,Oe=this._viewportRuler.getViewportScrollPosition();return{top:Oe.top+this._viewportMargin,left:Oe.left+this._viewportMargin,right:Oe.left+H-this._viewportMargin,bottom:Oe.top+j-this._viewportMargin,width:H-2*this._viewportMargin,height:j-2*this._viewportMargin}}_isRtl(){return"rtl"===this._overlayRef.getDirection()}_hasExactPosition(){return!this._hasFlexibleDimensions||this._isPushed}_getOffset(H,j){return"x"===j?null==H.offsetX?this._offsetX:H.offsetX:null==H.offsetY?this._offsetY:H.offsetY}_validatePositions(){}_addPanelClasses(H){this._pane&&(0,E.Eq)(H).forEach(j=>{""!==j&&-1===this._appliedPanelClasses.indexOf(j)&&(this._appliedPanelClasses.push(j),this._pane.classList.add(j))})}_clearPanelClasses(){this._pane&&(this._appliedPanelClasses.forEach(H=>{this._pane.classList.remove(H)}),this._appliedPanelClasses=[])}_getOriginRect(){const H=this._origin;if(H instanceof _.SBq)return H.nativeElement.getBoundingClientRect();if(H instanceof Element)return H.getBoundingClientRect();const j=H.width||0,Oe=H.height||0;return{top:H.y,bottom:H.y+Oe,left:H.x,right:H.x+j,height:Oe,width:j}}}function N(ee,H){for(let j in H)H.hasOwnProperty(j)&&(ee[j]=H[j]);return ee}function F(ee){if("number"!=typeof ee&&null!=ee){const[H,j]=ee.split(a);return j&&"px"!==j?null:parseFloat(H)}return ee||null}function X(ee){return{top:Math.floor(ee.top),right:Math.floor(ee.right),bottom:Math.floor(ee.bottom),left:Math.floor(ee.left),width:Math.floor(ee.width),height:Math.floor(ee.height)}}const Ke="cdk-global-overlay-wrapper";class je{constructor(){this._cssPosition="static",this._topOffset="",this._bottomOffset="",this._alignItems="",this._xPosition="",this._xOffset="",this._width="",this._height="",this._isDisposed=!1}attach(H){const j=H.getConfig();this._overlayRef=H,this._width&&!j.width&&H.updateSize({width:this._width}),this._height&&!j.height&&H.updateSize({height:this._height}),H.hostElement.classList.add(Ke),this._isDisposed=!1}top(H=""){return this._bottomOffset="",this._topOffset=H,this._alignItems="flex-start",this}left(H=""){return this._xOffset=H,this._xPosition="left",this}bottom(H=""){return this._topOffset="",this._bottomOffset=H,this._alignItems="flex-end",this}right(H=""){return this._xOffset=H,this._xPosition="right",this}start(H=""){return this._xOffset=H,this._xPosition="start",this}end(H=""){return this._xOffset=H,this._xPosition="end",this}width(H=""){return this._overlayRef?this._overlayRef.updateSize({width:H}):this._width=H,this}height(H=""){return this._overlayRef?this._overlayRef.updateSize({height:H}):this._height=H,this}centerHorizontally(H=""){return this.left(H),this._xPosition="center",this}centerVertically(H=""){return this.top(H),this._alignItems="center",this}apply(){if(!this._overlayRef||!this._overlayRef.hasAttached())return;const H=this._overlayRef.overlayElement.style,j=this._overlayRef.hostElement.style,Oe=this._overlayRef.getConfig(),{width:Re,height:le,maxWidth:_t,maxHeight:it}=Oe,Ct=!("100%"!==Re&&"100vw"!==Re||_t&&"100%"!==_t&&"100vw"!==_t),un=!("100%"!==le&&"100vh"!==le||it&&"100%"!==it&&"100vh"!==it),Bt=this._xPosition,Ut=this._xOffset,yn="rtl"===this._overlayRef.getConfig().direction;let Xt="",Gt="",In="";Ct?In="flex-start":"center"===Bt?(In="center",yn?Gt=Ut:Xt=Ut):yn?"left"===Bt||"end"===Bt?(In="flex-end",Xt=Ut):("right"===Bt||"start"===Bt)&&(In="flex-start",Gt=Ut):"left"===Bt||"start"===Bt?(In="flex-start",Xt=Ut):("right"===Bt||"end"===Bt)&&(In="flex-end",Gt=Ut),H.position=this._cssPosition,H.marginLeft=Ct?"0":Xt,H.marginTop=un?"0":this._topOffset,H.marginBottom=this._bottomOffset,H.marginRight=Ct?"0":Gt,j.justifyContent=In,j.alignItems=un?"flex-start":this._alignItems}dispose(){if(this._isDisposed||!this._overlayRef)return;const H=this._overlayRef.overlayElement.style,j=this._overlayRef.hostElement,Oe=j.style;j.classList.remove(Ke),Oe.justifyContent=Oe.alignItems=H.marginTop=H.marginBottom=H.marginLeft=H.marginRight=H.position="",this._overlayRef=null,this._isDisposed=!0}}class Ve{constructor(H,j,Oe,Re){this._viewportRuler=H,this._document=j,this._platform=Oe,this._overlayContainer=Re}global(){return new je}flexibleConnectedTo(H){return new C(H,this._viewportRuler,this._document,this._platform,this._overlayContainer)}}Ve.\u0275fac=function(H){return new(H||Ve)(_.LFG(e.rL),_.LFG(t.K0),_.LFG(s.t4),_.LFG(L))},Ve.\u0275prov=_.Yz7({token:Ve,factory:Ve.\u0275fac,providedIn:"root"});let xe=0;class Ze{constructor(H,j,Oe,Re,le,_t,it,Ct,un,Bt,Ut,yn){this.scrollStrategies=H,this._overlayContainer=j,this._componentFactoryResolver=Oe,this._positionBuilder=Re,this._keyboardDispatcher=le,this._injector=_t,this._ngZone=it,this._document=Ct,this._directionality=un,this._location=Bt,this._outsideClickDispatcher=Ut,this._animationsModuleType=yn}create(H){const j=this._createHostElement(),Oe=this._createPaneElement(j),Re=this._createPortalOutlet(Oe),le=new ue(H);return le.direction=le.direction||this._directionality.value,new B(Re,j,Oe,le,this._ngZone,this._keyboardDispatcher,this._document,this._location,this._outsideClickDispatcher,"NoopAnimations"===this._animationsModuleType)}position(){return this._positionBuilder}_createPaneElement(H){const j=this._document.createElement("div");return j.id="cdk-overlay-"+xe++,j.classList.add("cdk-overlay-pane"),H.appendChild(j),j}_createHostElement(){const H=this._document.createElement("div");return this._overlayContainer.getContainerElement().appendChild(H),H}_createPortalOutlet(H){return this._appRef||(this._appRef=this._injector.get(_.z2F)),new u.u0(H,this._componentFactoryResolver,this._appRef,this._injector,this._document)}}Ze.\u0275fac=function(H){return new(H||Ze)(_.LFG(ye),_.LFG(L),_.LFG(_._Vd),_.LFG(Ve),_.LFG(d),_.LFG(_.zs3),_.LFG(_.R0b),_.LFG(t.K0),_.LFG(D.Is),_.LFG(t.Ye),_.LFG(y),_.LFG(_.QbO,8))},Ze.\u0275prov=_.Yz7({token:Ze,factory:Ze.\u0275fac});const Ie=[{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"}],ve=new _.OlP("cdk-connected-overlay-scroll-strategy");class et{constructor(H){this.elementRef=H}}et.\u0275fac=function(H){return new(H||et)(_.Y36(_.SBq))},et.\u0275dir=_.lG2({type:et,selectors:[["","cdk-overlay-origin",""],["","overlay-origin",""],["","cdkOverlayOrigin",""]],exportAs:["cdkOverlayOrigin"]});class ht{constructor(H,j,Oe,Re,le){this._overlay=H,this._dir=le,this._hasBackdrop=!1,this._lockPosition=!1,this._growAfterOpen=!1,this._flexibleDimensions=!1,this._push=!1,this._backdropSubscription=p.w0.EMPTY,this._attachSubscription=p.w0.EMPTY,this._detachSubscription=p.w0.EMPTY,this._positionSubscription=p.w0.EMPTY,this.viewportMargin=0,this.open=!1,this.disableClose=!1,this.backdropClick=new _.vpe,this.positionChange=new _.vpe,this.attach=new _.vpe,this.detach=new _.vpe,this.overlayKeydown=new _.vpe,this.overlayOutsideClick=new _.vpe,this._templatePortal=new u.UE(j,Oe),this._scrollStrategyFactory=Re,this.scrollStrategy=this._scrollStrategyFactory()}get offsetX(){return this._offsetX}set offsetX(H){this._offsetX=H,this._position&&this._updatePositionStrategy(this._position)}get offsetY(){return this._offsetY}set offsetY(H){this._offsetY=H,this._position&&this._updatePositionStrategy(this._position)}get hasBackdrop(){return this._hasBackdrop}set hasBackdrop(H){this._hasBackdrop=(0,E.Ig)(H)}get lockPosition(){return this._lockPosition}set lockPosition(H){this._lockPosition=(0,E.Ig)(H)}get flexibleDimensions(){return this._flexibleDimensions}set flexibleDimensions(H){this._flexibleDimensions=(0,E.Ig)(H)}get growAfterOpen(){return this._growAfterOpen}set growAfterOpen(H){this._growAfterOpen=(0,E.Ig)(H)}get push(){return this._push}set push(H){this._push=(0,E.Ig)(H)}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(H){this._position&&(this._updatePositionStrategy(this._position),this._overlayRef.updateSize({width:this.width,minWidth:this.minWidth,height:this.height,minHeight:this.minHeight}),H.origin&&this.open&&this._position.apply()),H.open&&(this.open?this._attachOverlay():this._detachOverlay())}_createOverlay(){(!this.positions||!this.positions.length)&&(this.positions=Ie);const H=this._overlayRef=this._overlay.create(this._buildConfig());this._attachSubscription=H.attachments().subscribe(()=>this.attach.emit()),this._detachSubscription=H.detachments().subscribe(()=>this.detach.emit()),H.keydownEvents().subscribe(j=>{this.overlayKeydown.next(j),j.keyCode===z.hY&&!this.disableClose&&!(0,z.Vb)(j)&&(j.preventDefault(),this._detachOverlay())}),this._overlayRef.outsidePointerEvents().subscribe(j=>{this.overlayOutsideClick.next(j)})}_buildConfig(){const H=this._position=this.positionStrategy||this._createPositionStrategy(),j=new ue({direction:this._dir,positionStrategy:H,scrollStrategy:this.scrollStrategy,hasBackdrop:this.hasBackdrop});return(this.width||0===this.width)&&(j.width=this.width),(this.height||0===this.height)&&(j.height=this.height),(this.minWidth||0===this.minWidth)&&(j.minWidth=this.minWidth),(this.minHeight||0===this.minHeight)&&(j.minHeight=this.minHeight),this.backdropClass&&(j.backdropClass=this.backdropClass),this.panelClass&&(j.panelClass=this.panelClass),j}_updatePositionStrategy(H){const j=this.positions.map(Oe=>({originX:Oe.originX,originY:Oe.originY,overlayX:Oe.overlayX,overlayY:Oe.overlayY,offsetX:Oe.offsetX||this.offsetX,offsetY:Oe.offsetY||this.offsetY,panelClass:Oe.panelClass||void 0}));return H.setOrigin(this._getFlexibleConnectedPositionStrategyOrigin()).withPositions(j).withFlexibleDimensions(this.flexibleDimensions).withPush(this.push).withGrowAfterOpen(this.growAfterOpen).withViewportMargin(this.viewportMargin).withLockedPosition(this.lockPosition).withTransformOriginOn(this.transformOriginSelector)}_createPositionStrategy(){const H=this._overlay.position().flexibleConnectedTo(this._getFlexibleConnectedPositionStrategyOrigin());return this._updatePositionStrategy(H),H}_getFlexibleConnectedPositionStrategyOrigin(){return this.origin instanceof et?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(H=>{this.backdropClick.emit(H)}):this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe(),this.positionChange.observers.length>0&&(this._positionSubscription=this._position.positionChanges.pipe((0,M.o)(()=>this.positionChange.observers.length>0)).subscribe(H=>{this.positionChange.emit(H),0===this.positionChange.observers.length&&this._positionSubscription.unsubscribe()}))}_detachOverlay(){this._overlayRef&&this._overlayRef.detach(),this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe()}}ht.\u0275fac=function(H){return new(H||ht)(_.Y36(Ze),_.Y36(_.Rgc),_.Y36(_.s_b),_.Y36(ve),_.Y36(D.Is,8))},ht.\u0275dir=_.lG2({type:ht,selectors:[["","cdk-connected-overlay",""],["","connected-overlay",""],["","cdkConnectedOverlay",""]],inputs:{origin:["cdkConnectedOverlayOrigin","origin"],positions:["cdkConnectedOverlayPositions","positions"],positionStrategy:["cdkConnectedOverlayPositionStrategy","positionStrategy"],offsetX:["cdkConnectedOverlayOffsetX","offsetX"],offsetY:["cdkConnectedOverlayOffsetY","offsetY"],width:["cdkConnectedOverlayWidth","width"],height:["cdkConnectedOverlayHeight","height"],minWidth:["cdkConnectedOverlayMinWidth","minWidth"],minHeight:["cdkConnectedOverlayMinHeight","minHeight"],backdropClass:["cdkConnectedOverlayBackdropClass","backdropClass"],panelClass:["cdkConnectedOverlayPanelClass","panelClass"],viewportMargin:["cdkConnectedOverlayViewportMargin","viewportMargin"],scrollStrategy:["cdkConnectedOverlayScrollStrategy","scrollStrategy"],open:["cdkConnectedOverlayOpen","open"],disableClose:["cdkConnectedOverlayDisableClose","disableClose"],transformOriginSelector:["cdkConnectedOverlayTransformOriginOn","transformOriginSelector"],hasBackdrop:["cdkConnectedOverlayHasBackdrop","hasBackdrop"],lockPosition:["cdkConnectedOverlayLockPosition","lockPosition"],flexibleDimensions:["cdkConnectedOverlayFlexibleDimensions","flexibleDimensions"],growAfterOpen:["cdkConnectedOverlayGrowAfterOpen","growAfterOpen"],push:["cdkConnectedOverlayPush","push"]},outputs:{backdropClick:"backdropClick",positionChange:"positionChange",attach:"attach",detach:"detach",overlayKeydown:"overlayKeydown",overlayOutsideClick:"overlayOutsideClick"},exportAs:["cdkConnectedOverlay"],features:[_.TTD]});const Ae={provide:ve,deps:[Ze],useFactory:function Le(ee){return()=>ee.scrollStrategies.reposition()}};class te{}te.\u0275fac=function(H){return new(H||te)},te.\u0275mod=_.oAB({type:te}),te.\u0275inj=_.cJS({providers:[Ze,Ae],imports:[D.vT,u.eL,e.Cl,e.Cl]});class pe extends L{constructor(H,j){super(H,j)}ngOnDestroy(){super.ngOnDestroy(),this._fullScreenEventName&&this._fullScreenListener&&this._document.removeEventListener(this._fullScreenEventName,this._fullScreenListener)}_createContainer(){super._createContainer(),this._adjustParentForFullscreenChange(),this._addFullscreenChangeListener(()=>this._adjustParentForFullscreenChange())}_adjustParentForFullscreenChange(){this._containerElement&&(this.getFullscreenElement()||this._document.body).appendChild(this._containerElement)}_addFullscreenChangeListener(H){const j=this._getEventName();j&&(this._fullScreenListener&&this._document.removeEventListener(j,this._fullScreenListener),this._document.addEventListener(j,H),this._fullScreenListener=H)}_getEventName(){if(!this._fullScreenEventName){const H=this._document;H.fullscreenEnabled?this._fullScreenEventName="fullscreenchange":H.webkitFullscreenEnabled?this._fullScreenEventName="webkitfullscreenchange":H.mozFullScreenEnabled?this._fullScreenEventName="mozfullscreenchange":H.msFullscreenEnabled&&(this._fullScreenEventName="MSFullscreenChange")}return this._fullScreenEventName}getFullscreenElement(){const H=this._document;return H.fullscreenElement||H.webkitFullscreenElement||H.mozFullScreenElement||H.msFullscreenElement||null}}pe.\u0275fac=function(H){return new(H||pe)(_.LFG(t.K0),_.LFG(s.t4))},pe.\u0275prov=_.Yz7({token:pe,factory:pe.\u0275fac,providedIn:"root"})},9107:(Ue,q,m)=>{"use strict";m.d(q,{Mq:()=>z,Oy:()=>_e,_i:()=>I,ht:()=>ie,i$:()=>A,kV:()=>Q,qK:()=>k,sA:()=>ae,t4:()=>E});var e=m(2560),t=m(4666);let _,D;try{_=typeof Intl<"u"&&Intl.v8BreakIterator}catch{_=!1}class E{constructor(ye){this._platformId=ye,this.isBrowser=this._platformId?(0,t.NF)(this._platformId):"object"==typeof document&&!!document,this.EDGE=this.isBrowser&&/(edge)/i.test(navigator.userAgent),this.TRIDENT=this.isBrowser&&/(msie|trident)/i.test(navigator.userAgent),this.BLINK=this.isBrowser&&!(!window.chrome&&!_)&&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}}E.\u0275fac=function(ye){return new(ye||E)(e.LFG(e.Lbi))},E.\u0275prov=e.Yz7({token:E,factory:E.\u0275fac,providedIn:"root"});class s{}s.\u0275fac=function(ye){return new(ye||s)},s.\u0275mod=e.oAB({type:s}),s.\u0275inj=e.cJS({});const u=["color","button","checkbox","date","datetime-local","email","file","hidden","image","month","number","password","radio","range","reset","search","submit","tel","text","time","url","week"];function k(){if(D)return D;if("object"!=typeof document||!document)return D=new Set(u),D;let ce=document.createElement("input");return D=new Set(u.filter(ye=>(ce.setAttribute("type",ye),ce.type===ye))),D}let p,P,M,W;function A(ce){return function S(){if(null==p&&typeof window<"u")try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:()=>p=!0}))}finally{p=p||!1}return p}()?ce:!!ce.capture}function z(){if(null==M){if("object"!=typeof document||!document||"function"!=typeof Element||!Element)return M=!1,M;if("scrollBehavior"in document.documentElement.style)M=!0;else{const ce=Element.prototype.scrollTo;M=!!ce&&!/\{\s*\[native code\]\s*\}/.test(ce.toString())}}return M}function I(){if("object"!=typeof document||!document)return 0;if(null==P){const ce=document.createElement("div"),ye=ce.style;ce.dir="rtl",ye.width="1px",ye.overflow="auto",ye.visibility="hidden",ye.pointerEvents="none",ye.position="absolute";const ue=document.createElement("div"),$=ue.style;$.width="2px",$.height="1px",ce.appendChild(ue),document.body.appendChild(ce),P=0,0===ce.scrollLeft&&(ce.scrollLeft=1,P=0===ce.scrollLeft?1:2),ce.remove()}return P}function Q(ce){if(function Z(){if(null==W){const ce=typeof document<"u"?document.head:null;W=!(!ce||!ce.createShadowRoot&&!ce.attachShadow)}return W}()){const ye=ce.getRootNode?ce.getRootNode():null;if(typeof ShadowRoot<"u"&&ShadowRoot&&ye instanceof ShadowRoot)return ye}return null}function ie(){let ce=typeof document<"u"&&document?document.activeElement:null;for(;ce&&ce.shadowRoot;){const ye=ce.shadowRoot.activeElement;if(ye===ce)break;ce=ye}return ce}function ae(ce){return ce.composedPath?ce.composedPath()[0]:ce.target}function _e(){return typeof __karma__<"u"&&!!__karma__||typeof jasmine<"u"&&!!jasmine||typeof jest<"u"&&!!jest||typeof Mocha<"u"&&!!Mocha}},7520:(Ue,q,m)=>{"use strict";m.d(q,{C5:()=>S,Pl:()=>ie,UE:()=>A,eL:()=>_e,en:()=>M,ig:()=>Z,u0:()=>I});var e=m(2560),t=m(4666);class p{attach(ue){return this._attachedHost=ue,ue.attach(this)}detach(){let ue=this._attachedHost;null!=ue&&(this._attachedHost=null,ue.detach())}get isAttached(){return null!=this._attachedHost}setAttachedHost(ue){this._attachedHost=ue}}class S extends p{constructor(ue,$,he,w){super(),this.component=ue,this.viewContainerRef=$,this.injector=he,this.componentFactoryResolver=w}}class A extends p{constructor(ue,$,he,w){super(),this.templateRef=ue,this.viewContainerRef=$,this.context=he,this.injector=w}get origin(){return this.templateRef.elementRef}attach(ue,$=this.context){return this.context=$,super.attach(ue)}detach(){return this.context=void 0,super.detach()}}class P extends p{constructor(ue){super(),this.element=ue instanceof e.SBq?ue.nativeElement:ue}}class M{constructor(){this._isDisposed=!1,this.attachDomPortal=null}hasAttached(){return!!this._attachedPortal}attach(ue){return ue instanceof S?(this._attachedPortal=ue,this.attachComponentPortal(ue)):ue instanceof A?(this._attachedPortal=ue,this.attachTemplatePortal(ue)):this.attachDomPortal&&ue instanceof P?(this._attachedPortal=ue,this.attachDomPortal(ue)):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(ue){this._disposeFn=ue}_invokeDisposeFn(){this._disposeFn&&(this._disposeFn(),this._disposeFn=null)}}class I extends M{constructor(ue,$,he,w,n){super(),this.outletElement=ue,this._componentFactoryResolver=$,this._appRef=he,this._defaultInjector=w,this.attachDomPortal=o=>{this._document;const h=o.element;h.parentNode;const d=this._document.createComment("dom-portal");h.parentNode.insertBefore(d,h),this.outletElement.appendChild(h),this._attachedPortal=o,super.setDisposeFn(()=>{d.parentNode&&d.parentNode.replaceChild(h,d)})},this._document=n}attachComponentPortal(ue){const he=(ue.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(ue.component);let w;return ue.viewContainerRef?(w=ue.viewContainerRef.createComponent(he,ue.viewContainerRef.length,ue.injector||ue.viewContainerRef.injector),this.setDisposeFn(()=>w.destroy())):(w=he.create(ue.injector||this._defaultInjector||e.zs3.NULL),this._appRef.attachView(w.hostView),this.setDisposeFn(()=>{this._appRef.viewCount>0&&this._appRef.detachView(w.hostView),w.destroy()})),this.outletElement.appendChild(this._getComponentRootNode(w)),this._attachedPortal=ue,w}attachTemplatePortal(ue){let $=ue.viewContainerRef,he=$.createEmbeddedView(ue.templateRef,ue.context,{injector:ue.injector});return he.rootNodes.forEach(w=>this.outletElement.appendChild(w)),he.detectChanges(),this.setDisposeFn(()=>{let w=$.indexOf(he);-1!==w&&$.remove(w)}),this._attachedPortal=ue,he}dispose(){super.dispose(),this.outletElement.remove()}_getComponentRootNode(ue){return ue.hostView.rootNodes[0]}}class Z extends A{constructor(ue,$){super(ue,$)}}Z.\u0275fac=function(ue){return new(ue||Z)(e.Y36(e.Rgc),e.Y36(e.s_b))},Z.\u0275dir=e.lG2({type:Z,selectors:[["","cdkPortal",""]],exportAs:["cdkPortal"],features:[e.qOj]});class Q extends Z{}Q.\u0275fac=function(){let ye;return function($){return(ye||(ye=e.n5z(Q)))($||Q)}}(),Q.\u0275dir=e.lG2({type:Q,selectors:[["","cdk-portal",""],["","portal",""]],exportAs:["cdkPortal"],features:[e._Bn([{provide:Z,useExisting:Q}]),e.qOj]});class ie extends M{constructor(ue,$,he){super(),this._componentFactoryResolver=ue,this._viewContainerRef=$,this._isInitialized=!1,this.attached=new e.vpe,this.attachDomPortal=w=>{this._document;const n=w.element;n.parentNode;const o=this._document.createComment("dom-portal");w.setAttachedHost(this),n.parentNode.insertBefore(o,n),this._getRootNode().appendChild(n),this._attachedPortal=w,super.setDisposeFn(()=>{o.parentNode&&o.parentNode.replaceChild(n,o)})},this._document=he}get portal(){return this._attachedPortal}set portal(ue){this.hasAttached()&&!ue&&!this._isInitialized||(this.hasAttached()&&super.detach(),ue&&super.attach(ue),this._attachedPortal=ue||null)}get attachedRef(){return this._attachedRef}ngOnInit(){this._isInitialized=!0}ngOnDestroy(){super.dispose(),this._attachedPortal=null,this._attachedRef=null}attachComponentPortal(ue){ue.setAttachedHost(this);const $=null!=ue.viewContainerRef?ue.viewContainerRef:this._viewContainerRef,w=(ue.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(ue.component),n=$.createComponent(w,$.length,ue.injector||$.injector);return $!==this._viewContainerRef&&this._getRootNode().appendChild(n.hostView.rootNodes[0]),super.setDisposeFn(()=>n.destroy()),this._attachedPortal=ue,this._attachedRef=n,this.attached.emit(n),n}attachTemplatePortal(ue){ue.setAttachedHost(this);const $=this._viewContainerRef.createEmbeddedView(ue.templateRef,ue.context,{injector:ue.injector});return super.setDisposeFn(()=>this._viewContainerRef.clear()),this._attachedPortal=ue,this._attachedRef=$,this.attached.emit($),$}_getRootNode(){const ue=this._viewContainerRef.element.nativeElement;return ue.nodeType===ue.ELEMENT_NODE?ue:ue.parentNode}}ie.\u0275fac=function(ue){return new(ue||ie)(e.Y36(e._Vd),e.Y36(e.s_b),e.Y36(t.K0))},ie.\u0275dir=e.lG2({type:ie,selectors:[["","cdkPortalOutlet",""]],inputs:{portal:["cdkPortalOutlet","portal"]},outputs:{attached:"attached"},exportAs:["cdkPortalOutlet"],features:[e.qOj]});class ae extends ie{}ae.\u0275fac=function(){let ye;return function($){return(ye||(ye=e.n5z(ae)))($||ae)}}(),ae.\u0275dir=e.lG2({type:ae,selectors:[["","cdkPortalHost",""],["","portalHost",""]],inputs:{portal:["cdkPortalHost","portal"]},exportAs:["cdkPortalHost"],features:[e._Bn([{provide:ie,useExisting:ae}]),e.qOj]});class _e{}_e.\u0275fac=function(ue){return new(ue||_e)},_e.\u0275mod=e.oAB({type:_e}),_e.\u0275inj=e.cJS({})},1494:(Ue,q,m)=>{"use strict";m.d(q,{PQ:()=>Fe,ZD:()=>Ae,mF:()=>X,Cl:()=>te,rL:()=>Ke});var e=m(8971),t=m(2560),_=m(253),E=m(745),s=m(833),D=m(3280),u=m(5417),k=m(7714);const p={schedule(pe){let ee=requestAnimationFrame,H=cancelAnimationFrame;const{delegate:j}=p;j&&(ee=j.requestAnimationFrame,H=j.cancelAnimationFrame);const Oe=ee(Re=>{H=void 0,pe(Re)});return new k.w0(()=>H?.(Oe))},requestAnimationFrame(...pe){const{delegate:ee}=p;return(ee?.requestAnimationFrame||requestAnimationFrame)(...pe)},cancelAnimationFrame(...pe){const{delegate:ee}=p;return(ee?.cancelAnimationFrame||cancelAnimationFrame)(...pe)},delegate:void 0};class S extends u.o{constructor(ee,H){super(ee,H),this.scheduler=ee,this.work=H}requestAsyncId(ee,H,j=0){return null!==j&&j>0?super.requestAsyncId(ee,H,j):(ee.actions.push(this),ee._scheduled||(ee._scheduled=p.requestAnimationFrame(()=>ee.flush(void 0))))}recycleAsyncId(ee,H,j=0){var Oe;if(null!=j?j>0:this.delay>0)return super.recycleAsyncId(ee,H,j);const{actions:Re}=ee;null!=H&&(null===(Oe=Re[Re.length-1])||void 0===Oe?void 0:Oe.id)!==H&&(p.cancelAnimationFrame(H),ee._scheduled=void 0)}}var A=m(1010);class P extends A.v{flush(ee){this._active=!0;const H=this._scheduled;this._scheduled=void 0;const{actions:j}=this;let Oe;ee=ee||j.shift();do{if(Oe=ee.execute(ee.state,ee.delay))break}while((ee=j[0])&&ee.id===H&&j.shift());if(this._active=!1,Oe){for(;(ee=j[0])&&ee.id===H&&j.shift();)ee.unsubscribe();throw Oe}}}const M=new P(S);var I=m(3888),W=m(4437),Z=m(8977),Q=m(9211),ie=m(116),ae=m(8951),_e=m(4874),ce=m(1944),ye=m(3945);var $=m(2673),he=m(6067),w=m(1203);var o=m(9107),h=m(4666),d=m(2867),y=m(1755);const L=["contentWrapper"],v=new t.OlP("VIRTUAL_SCROLL_STRATEGY");class a{constructor(ee,H,j){this._scrolledIndexChange=new _.x,this.scrolledIndexChange=this._scrolledIndexChange.pipe((0,Z.x)()),this._viewport=null,this._itemSize=ee,this._minBufferPx=H,this._maxBufferPx=j}attach(ee){this._viewport=ee,this._updateTotalContentSize(),this._updateRenderedRange()}detach(){this._scrolledIndexChange.complete(),this._viewport=null}updateItemAndBufferSize(ee,H,j){this._itemSize=ee,this._minBufferPx=H,this._maxBufferPx=j,this._updateTotalContentSize(),this._updateRenderedRange()}onContentScrolled(){this._updateRenderedRange()}onDataLengthChanged(){this._updateTotalContentSize(),this._updateRenderedRange()}onContentRendered(){}onRenderedOffsetChanged(){}scrollToIndex(ee,H){this._viewport&&this._viewport.scrollToOffset(ee*this._itemSize,H)}_updateTotalContentSize(){!this._viewport||this._viewport.setTotalContentSize(this._viewport.getDataLength()*this._itemSize)}_updateRenderedRange(){if(!this._viewport)return;const ee=this._viewport.getRenderedRange(),H={start:ee.start,end:ee.end},j=this._viewport.getViewportSize(),Oe=this._viewport.getDataLength();let Re=this._viewport.measureScrollOffset(),le=this._itemSize>0?Re/this._itemSize:0;if(H.end>Oe){const it=Math.ceil(j/this._itemSize),Ct=Math.max(0,Math.min(le,Oe-it));le!=Ct&&(le=Ct,Re=Ct*this._itemSize,H.start=Math.floor(le)),H.end=Math.max(0,Math.min(Oe,H.start+it))}const _t=Re-H.start*this._itemSize;if(_t<this._minBufferPx&&0!=H.start){const it=Math.ceil((this._maxBufferPx-_t)/this._itemSize);H.start=Math.max(0,H.start-it),H.end=Math.min(Oe,Math.ceil(le+(j+this._minBufferPx)/this._itemSize))}else{const it=H.end*this._itemSize-(Re+j);if(it<this._minBufferPx&&H.end!=Oe){const Ct=Math.ceil((this._maxBufferPx-it)/this._itemSize);Ct>0&&(H.end=Math.min(Oe,H.end+Ct),H.start=Math.max(0,Math.floor(le-this._minBufferPx/this._itemSize)))}}this._viewport.setRenderedRange(H),this._viewport.setRenderedContentOffset(this._itemSize*H.start),this._scrolledIndexChange.next(Math.floor(le))}}class N{constructor(){this._itemSize=20,this._minBufferPx=100,this._maxBufferPx=200,this._scrollStrategy=new a(this.itemSize,this.minBufferPx,this.maxBufferPx)}get itemSize(){return this._itemSize}set itemSize(ee){this._itemSize=(0,e.su)(ee)}get minBufferPx(){return this._minBufferPx}set minBufferPx(ee){this._minBufferPx=(0,e.su)(ee)}get maxBufferPx(){return this._maxBufferPx}set maxBufferPx(ee){this._maxBufferPx=(0,e.su)(ee)}ngOnChanges(){this._scrollStrategy.updateItemAndBufferSize(this.itemSize,this.minBufferPx,this.maxBufferPx)}}N.\u0275fac=function(ee){return new(ee||N)},N.\u0275dir=t.lG2({type:N,selectors:[["cdk-virtual-scroll-viewport","itemSize",""]],inputs:{itemSize:"itemSize",minBufferPx:"minBufferPx",maxBufferPx:"maxBufferPx"},features:[t._Bn([{provide:v,useFactory:function C(pe){return pe._scrollStrategy},deps:[(0,t.Gpc)(()=>N)]}]),t.TTD]});class X{constructor(ee,H,j){this._ngZone=ee,this._platform=H,this._scrolled=new _.x,this._globalSubscription=null,this._scrolledCount=0,this.scrollContainers=new Map,this._document=j}register(ee){this.scrollContainers.has(ee)||this.scrollContainers.set(ee,ee.elementScrolled().subscribe(()=>this._scrolled.next(ee)))}deregister(ee){const H=this.scrollContainers.get(ee);H&&(H.unsubscribe(),this.scrollContainers.delete(ee))}scrolled(ee=20){return this._platform.isBrowser?new s.y(H=>{this._globalSubscription||this._addGlobalListener();const j=ee>0?this._scrolled.pipe((0,Q.e)(ee)).subscribe(H):this._scrolled.subscribe(H);return this._scrolledCount++,()=>{j.unsubscribe(),this._scrolledCount--,this._scrolledCount||this._removeGlobalListener()}}):(0,E.of)()}ngOnDestroy(){this._removeGlobalListener(),this.scrollContainers.forEach((ee,H)=>this.deregister(H)),this._scrolled.complete()}ancestorScrolled(ee,H){const j=this.getAncestorScrollContainers(ee);return this.scrolled(H).pipe((0,ie.h)(Oe=>!Oe||j.indexOf(Oe)>-1))}getAncestorScrollContainers(ee){const H=[];return this.scrollContainers.forEach((j,Oe)=>{this._scrollableContainsElement(Oe,ee)&&H.push(Oe)}),H}_getWindow(){return this._document.defaultView||window}_scrollableContainsElement(ee,H){let j=(0,e.fI)(H),Oe=ee.getElementRef().nativeElement;do{if(j==Oe)return!0}while(j=j.parentElement);return!1}_addGlobalListener(){this._globalSubscription=this._ngZone.runOutsideAngular(()=>{const ee=this._getWindow();return(0,D.R)(ee.document,"scroll").subscribe(()=>this._scrolled.next())})}_removeGlobalListener(){this._globalSubscription&&(this._globalSubscription.unsubscribe(),this._globalSubscription=null)}}X.\u0275fac=function(ee){return new(ee||X)(t.LFG(t.R0b),t.LFG(o.t4),t.LFG(h.K0,8))},X.\u0275prov=t.Yz7({token:X,factory:X.\u0275fac,providedIn:"root"});class Fe{constructor(ee,H,j,Oe){this.elementRef=ee,this.scrollDispatcher=H,this.ngZone=j,this.dir=Oe,this._destroyed=new _.x,this._elementScrolled=new s.y(Re=>this.ngZone.runOutsideAngular(()=>(0,D.R)(this.elementRef.nativeElement,"scroll").pipe((0,ae.R)(this._destroyed)).subscribe(Re)))}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(ee){const H=this.elementRef.nativeElement,j=this.dir&&"rtl"==this.dir.value;null==ee.left&&(ee.left=j?ee.end:ee.start),null==ee.right&&(ee.right=j?ee.start:ee.end),null!=ee.bottom&&(ee.top=H.scrollHeight-H.clientHeight-ee.bottom),j&&0!=(0,o._i)()?(null!=ee.left&&(ee.right=H.scrollWidth-H.clientWidth-ee.left),2==(0,o._i)()?ee.left=ee.right:1==(0,o._i)()&&(ee.left=ee.right?-ee.right:ee.right)):null!=ee.right&&(ee.left=H.scrollWidth-H.clientWidth-ee.right),this._applyScrollToOptions(ee)}_applyScrollToOptions(ee){const H=this.elementRef.nativeElement;(0,o.Mq)()?H.scrollTo(ee):(null!=ee.top&&(H.scrollTop=ee.top),null!=ee.left&&(H.scrollLeft=ee.left))}measureScrollOffset(ee){const H="left",j="right",Oe=this.elementRef.nativeElement;if("top"==ee)return Oe.scrollTop;if("bottom"==ee)return Oe.scrollHeight-Oe.clientHeight-Oe.scrollTop;const Re=this.dir&&"rtl"==this.dir.value;return"start"==ee?ee=Re?j:H:"end"==ee&&(ee=Re?H:j),Re&&2==(0,o._i)()?ee==H?Oe.scrollWidth-Oe.clientWidth-Oe.scrollLeft:Oe.scrollLeft:Re&&1==(0,o._i)()?ee==H?Oe.scrollLeft+Oe.scrollWidth-Oe.clientWidth:-Oe.scrollLeft:ee==H?Oe.scrollLeft:Oe.scrollWidth-Oe.clientWidth-Oe.scrollLeft}}Fe.\u0275fac=function(ee){return new(ee||Fe)(t.Y36(t.SBq),t.Y36(X),t.Y36(t.R0b),t.Y36(d.Is,8))},Fe.\u0275dir=t.lG2({type:Fe,selectors:[["","cdk-scrollable",""],["","cdkScrollable",""]]});class Ke{constructor(ee,H,j){this._platform=ee,this._change=new _.x,this._changeListener=Oe=>{this._change.next(Oe)},this._document=j,H.runOutsideAngular(()=>{if(ee.isBrowser){const Oe=this._getWindow();Oe.addEventListener("resize",this._changeListener),Oe.addEventListener("orientationchange",this._changeListener)}this.change().subscribe(()=>this._viewportSize=null)})}ngOnDestroy(){if(this._platform.isBrowser){const ee=this._getWindow();ee.removeEventListener("resize",this._changeListener),ee.removeEventListener("orientationchange",this._changeListener)}this._change.complete()}getViewportSize(){this._viewportSize||this._updateViewportSize();const ee={width:this._viewportSize.width,height:this._viewportSize.height};return this._platform.isBrowser||(this._viewportSize=null),ee}getViewportRect(){const ee=this.getViewportScrollPosition(),{width:H,height:j}=this.getViewportSize();return{top:ee.top,left:ee.left,bottom:ee.top+j,right:ee.left+H,height:j,width:H}}getViewportScrollPosition(){if(!this._platform.isBrowser)return{top:0,left:0};const ee=this._document,H=this._getWindow(),j=ee.documentElement,Oe=j.getBoundingClientRect();return{top:-Oe.top||ee.body.scrollTop||H.scrollY||j.scrollTop||0,left:-Oe.left||ee.body.scrollLeft||H.scrollX||j.scrollLeft||0}}change(ee=20){return ee>0?this._change.pipe((0,Q.e)(ee)):this._change}_getWindow(){return this._document.defaultView||window}_updateViewportSize(){const ee=this._getWindow();this._viewportSize=this._platform.isBrowser?{width:ee.innerWidth,height:ee.innerHeight}:{width:0,height:0}}}Ke.\u0275fac=function(ee){return new(ee||Ke)(t.LFG(o.t4),t.LFG(t.R0b),t.LFG(h.K0,8))},Ke.\u0275prov=t.Yz7({token:Ke,factory:Ke.\u0275fac,providedIn:"root"});const je=new t.OlP("VIRTUAL_SCROLLABLE");class Ve extends Fe{constructor(ee,H,j,Oe){super(ee,H,j,Oe)}measureViewportSize(ee){const H=this.elementRef.nativeElement;return"horizontal"===ee?H.clientWidth:H.clientHeight}}Ve.\u0275fac=function(ee){return new(ee||Ve)(t.Y36(t.SBq),t.Y36(X),t.Y36(t.R0b),t.Y36(d.Is,8))},Ve.\u0275dir=t.lG2({type:Ve,features:[t.qOj]});const Ze=typeof requestAnimationFrame<"u"?M:I.E;class Ie extends Ve{constructor(ee,H,j,Oe,Re,le,_t,it){super(ee,le,j,Re),this.elementRef=ee,this._changeDetectorRef=H,this._scrollStrategy=Oe,this.scrollable=it,this._platform=(0,t.f3M)(o.t4),this._detachedSubject=new _.x,this._renderedRangeSubject=new _.x,this._orientation="vertical",this._appendOnly=!1,this.scrolledIndexChange=new s.y(Ct=>this._scrollStrategy.scrolledIndexChange.subscribe(un=>Promise.resolve().then(()=>this.ngZone.run(()=>Ct.next(un))))),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=k.w0.EMPTY,this._viewportChanges=_t.change().subscribe(()=>{this.checkViewportSize()}),this.scrollable||(this.elementRef.nativeElement.classList.add("cdk-virtual-scrollable"),this.scrollable=this)}get orientation(){return this._orientation}set orientation(ee){this._orientation!==ee&&(this._orientation=ee,this._calculateSpacerSize())}get appendOnly(){return this._appendOnly}set appendOnly(ee){this._appendOnly=(0,e.Ig)(ee)}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,_e.O)(null),(0,Q.e)(0,Ze)).subscribe(()=>this._scrollStrategy.onContentScrolled()),this._markChangeDetectionNeeded()})))}ngOnDestroy(){this.detach(),this._scrollStrategy.detach(),this._renderedRangeSubject.complete(),this._detachedSubject.complete(),this._viewportChanges.unsubscribe(),super.ngOnDestroy()}attach(ee){this._forOf,this.ngZone.runOutsideAngular(()=>{this._forOf=ee,this._forOf.dataStream.pipe((0,ae.R)(this._detachedSubject)).subscribe(H=>{const j=H.length;j!==this._dataLength&&(this._dataLength=j,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(ee){return this.getElementRef().nativeElement.getBoundingClientRect()[ee]}setTotalContentSize(ee){this._totalContentSize!==ee&&(this._totalContentSize=ee,this._calculateSpacerSize(),this._markChangeDetectionNeeded())}setRenderedRange(ee){(function xe(pe,ee){return pe.start==ee.start&&pe.end==ee.end})(this._renderedRange,ee)||(this.appendOnly&&(ee={start:0,end:Math.max(this._renderedRange.end,ee.end)}),this._renderedRangeSubject.next(this._renderedRange=ee),this._markChangeDetectionNeeded(()=>this._scrollStrategy.onContentRendered()))}getOffsetToRenderedContentStart(){return this._renderedContentOffsetNeedsRewrite?null:this._renderedContentOffset}setRenderedContentOffset(ee,H="to-start"){ee=this.appendOnly&&"to-start"===H?0:ee;const j=this.dir&&"rtl"==this.dir.value,Oe="horizontal"==this.orientation,Re=Oe?"X":"Y";let _t=`translate${Re}(${Number((Oe&&j?-1:1)*ee)}px)`;this._renderedContentOffset=ee,"to-end"===H&&(_t+=` translate${Re}(-100%)`,this._renderedContentOffsetNeedsRewrite=!0),this._renderedContentTransform!=_t&&(this._renderedContentTransform=_t,this._markChangeDetectionNeeded(()=>{this._renderedContentOffsetNeedsRewrite?(this._renderedContentOffset-=this.measureRenderedContentSize(),this._renderedContentOffsetNeedsRewrite=!1,this.setRenderedContentOffset(this._renderedContentOffset)):this._scrollStrategy.onRenderedOffsetChanged()}))}scrollToOffset(ee,H="auto"){const j={behavior:H};"horizontal"===this.orientation?j.start=ee:j.top=ee,this.scrollable.scrollTo(j)}scrollToIndex(ee,H="auto"){this._scrollStrategy.scrollToIndex(ee,H)}measureScrollOffset(ee){let H;return H=this.scrollable==this?j=>super.measureScrollOffset(j):j=>this.scrollable.measureScrollOffset(j),Math.max(0,H(ee??("horizontal"===this.orientation?"start":"top"))-this.measureViewportOffset())}measureViewportOffset(ee){let H;const j="left",Re="rtl"==this.dir?.value;H="start"==ee?Re?"right":j:"end"==ee?Re?j:"right":ee||("horizontal"===this.orientation?"left":"top");const le=this.scrollable.measureBoundingClientRectWithScrollOffset(H);return this.elementRef.nativeElement.getBoundingClientRect()[H]-le}measureRenderedContentSize(){const ee=this._contentWrapper.nativeElement;return"horizontal"===this.orientation?ee.offsetWidth:ee.offsetHeight}measureRangeSize(ee){return this._forOf?this._forOf.measureRangeSize(ee,this.orientation):0}checkViewportSize(){this._measureViewportSize(),this._scrollStrategy.onDataLengthChanged()}_measureViewportSize(){this._viewportSize=this.scrollable.measureViewportSize(this.orientation)}_markChangeDetectionNeeded(ee){ee&&this._runAfterChangeDetection.push(ee),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 ee=this._runAfterChangeDetection;this._runAfterChangeDetection=[];for(const H of ee)H()}_calculateSpacerSize(){this._totalContentHeight="horizontal"===this.orientation?"":`${this._totalContentSize}px`,this._totalContentWidth="horizontal"===this.orientation?`${this._totalContentSize}px`:""}}function ve(pe,ee,H){const j=H;if(!j.getBoundingClientRect)return 0;const Oe=j.getBoundingClientRect();return"horizontal"===pe?"start"===ee?Oe.left:Oe.right:"start"===ee?Oe.top:Oe.bottom}Ie.\u0275fac=function(ee){return new(ee||Ie)(t.Y36(t.SBq),t.Y36(t.sBO),t.Y36(t.R0b),t.Y36(v,8),t.Y36(d.Is,8),t.Y36(X),t.Y36(Ke),t.Y36(je,8))},Ie.\u0275cmp=t.Xpm({type:Ie,selectors:[["cdk-virtual-scroll-viewport"]],viewQuery:function(ee,H){if(1&ee&&t.Gf(L,7),2&ee){let j;t.iGM(j=t.CRH())&&(H._contentWrapper=j.first)}},hostAttrs:[1,"cdk-virtual-scroll-viewport"],hostVars:4,hostBindings:function(ee,H){2&ee&&t.ekj("cdk-virtual-scroll-orientation-horizontal","horizontal"===H.orientation)("cdk-virtual-scroll-orientation-vertical","horizontal"!==H.orientation)},inputs:{orientation:"orientation",appendOnly:"appendOnly"},outputs:{scrolledIndexChange:"scrolledIndexChange"},features:[t._Bn([{provide:Fe,useFactory:(pe,ee)=>pe||ee,deps:[[new t.FiY,new t.tBr(je)],Ie]}]),t.qOj],ngContentSelectors:["*"],decls:4,vars:4,consts:[[1,"cdk-virtual-scroll-content-wrapper"],["contentWrapper",""],[1,"cdk-virtual-scroll-spacer"]],template:function(ee,H){1&ee&&(t.F$t(),t.TgZ(0,"div",0,1),t.Hsn(2),t.qZA(),t._UZ(3,"div",2)),2&ee&&(t.xp6(3),t.Udp("width",H._totalContentWidth)("height",H._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});class et{constructor(ee,H,j,Oe,Re,le){this._viewContainerRef=ee,this._template=H,this._differs=j,this._viewRepeater=Oe,this._viewport=Re,this.viewChange=new _.x,this._dataSourceChanges=new _.x,this.dataStream=this._dataSourceChanges.pipe((0,_e.O)(null),function ue(){return(0,ce.e)((pe,ee)=>{let H,j=!1;pe.subscribe((0,ye.x)(ee,Oe=>{const Re=H;H=Oe,j&&ee.next([Re,Oe]),j=!0}))})}(),(0,$.w)(([_t,it])=>this._changeDataSource(_t,it)),function n(pe,ee,H){let j,Oe=!1;return pe&&"object"==typeof pe?({bufferSize:j=1/0,windowTime:ee=1/0,refCount:Oe=!1,scheduler:H}=pe):j=pe??1/0,(0,w.B)({connector:()=>new he.t(j,ee,H),resetOnError:!0,resetOnComplete:!1,resetOnRefCountZero:Oe})}(1)),this._differ=null,this._needsUpdate=!1,this._destroyed=new _.x,this.dataStream.subscribe(_t=>{this._data=_t,this._onRenderedDataChange()}),this._viewport.renderedRangeStream.pipe((0,ae.R)(this._destroyed)).subscribe(_t=>{this._renderedRange=_t,this.viewChange.observers.length&&le.run(()=>this.viewChange.next(this._renderedRange)),this._onRenderedDataChange()}),this._viewport.attach(this)}get cdkVirtualForOf(){return this._cdkVirtualForOf}set cdkVirtualForOf(ee){this._cdkVirtualForOf=ee,(0,y.Z9)(ee)?this._dataSourceChanges.next(ee):this._dataSourceChanges.next(new y.P3((0,W.b)(ee)?ee:Array.from(ee||[])))}get cdkVirtualForTrackBy(){return this._cdkVirtualForTrackBy}set cdkVirtualForTrackBy(ee){this._needsUpdate=!0,this._cdkVirtualForTrackBy=ee?(H,j)=>ee(H+(this._renderedRange?this._renderedRange.start:0),j):void 0}set cdkVirtualForTemplate(ee){ee&&(this._needsUpdate=!0,this._template=ee)}get cdkVirtualForTemplateCacheSize(){return this._viewRepeater.viewCacheSize}set cdkVirtualForTemplateCacheSize(ee){this._viewRepeater.viewCacheSize=(0,e.su)(ee)}measureRangeSize(ee,H){if(ee.start>=ee.end)return 0;ee.start<this._renderedRange.start||(ee.end,this._renderedRange.end);const j=ee.start-this._renderedRange.start,Oe=ee.end-ee.start;let Re,le;for(let _t=0;_t<Oe;_t++){const it=this._viewContainerRef.get(_t+j);if(it&&it.rootNodes.length){Re=le=it.rootNodes[0];break}}for(let _t=Oe-1;_t>-1;_t--){const it=this._viewContainerRef.get(_t+j);if(it&&it.rootNodes.length){le=it.rootNodes[it.rootNodes.length-1];break}}return Re&&le?ve(H,"end",le)-ve(H,"start",Re):0}ngDoCheck(){if(this._differ&&this._needsUpdate){const ee=this._differ.diff(this._renderedItems);ee?this._applyChanges(ee):this._updateContext(),this._needsUpdate=!1}}ngOnDestroy(){this._viewport.detach(),this._dataSourceChanges.next(void 0),this._dataSourceChanges.complete(),this.viewChange.complete(),this._destroyed.next(),this._destroyed.complete(),this._viewRepeater.detach()}_onRenderedDataChange(){!this._renderedRange||(this._renderedItems=this._data.slice(this._renderedRange.start,this._renderedRange.end),this._differ||(this._differ=this._differs.find(this._renderedItems).create((ee,H)=>this.cdkVirtualForTrackBy?this.cdkVirtualForTrackBy(ee,H):H)),this._needsUpdate=!0)}_changeDataSource(ee,H){return ee&&ee.disconnect(this),this._needsUpdate=!0,H?H.connect(this):(0,E.of)()}_updateContext(){const ee=this._data.length;let H=this._viewContainerRef.length;for(;H--;){const j=this._viewContainerRef.get(H);j.context.index=this._renderedRange.start+H,j.context.count=ee,this._updateComputedContextProperties(j.context),j.detectChanges()}}_applyChanges(ee){this._viewRepeater.applyChanges(ee,this._viewContainerRef,(Oe,Re,le)=>this._getEmbeddedViewArgs(Oe,le),Oe=>Oe.item),ee.forEachIdentityChange(Oe=>{this._viewContainerRef.get(Oe.currentIndex).context.$implicit=Oe.item});const H=this._data.length;let j=this._viewContainerRef.length;for(;j--;){const Oe=this._viewContainerRef.get(j);Oe.context.index=this._renderedRange.start+j,Oe.context.count=H,this._updateComputedContextProperties(Oe.context)}}_updateComputedContextProperties(ee){ee.first=0===ee.index,ee.last=ee.index===ee.count-1,ee.even=ee.index%2==0,ee.odd=!ee.even}_getEmbeddedViewArgs(ee,H){return{templateRef:this._template,context:{$implicit:ee.item,cdkVirtualForOf:this._cdkVirtualForOf,index:-1,count:-1,first:!1,last:!1,odd:!1,even:!1},index:H}}}et.\u0275fac=function(ee){return new(ee||et)(t.Y36(t.s_b),t.Y36(t.Rgc),t.Y36(t.ZZ4),t.Y36(y.k),t.Y36(Ie,4),t.Y36(t.R0b))},et.\u0275dir=t.lG2({type:et,selectors:[["","cdkVirtualFor","","cdkVirtualForOf",""]],inputs:{cdkVirtualForOf:"cdkVirtualForOf",cdkVirtualForTrackBy:"cdkVirtualForTrackBy",cdkVirtualForTemplate:"cdkVirtualForTemplate",cdkVirtualForTemplateCacheSize:"cdkVirtualForTemplateCacheSize"},features:[t._Bn([{provide:y.k,useClass:y.eX}])]});class ht extends Ve{constructor(ee,H,j,Oe){super(ee,H,j,Oe)}measureBoundingClientRectWithScrollOffset(ee){return this.getElementRef().nativeElement.getBoundingClientRect()[ee]-this.measureScrollOffset(ee)}}ht.\u0275fac=function(ee){return new(ee||ht)(t.Y36(t.SBq),t.Y36(X),t.Y36(t.R0b),t.Y36(d.Is,8))},ht.\u0275dir=t.lG2({type:ht,selectors:[["","cdkVirtualScrollingElement",""]],hostAttrs:[1,"cdk-virtual-scrollable"],features:[t._Bn([{provide:je,useExisting:ht}]),t.qOj]});class Le extends Ve{constructor(ee,H,j){super(new t.SBq(document.documentElement),ee,H,j),this._elementScrolled=new s.y(Oe=>this.ngZone.runOutsideAngular(()=>(0,D.R)(document,"scroll").pipe((0,ae.R)(this._destroyed)).subscribe(Oe)))}measureBoundingClientRectWithScrollOffset(ee){return this.getElementRef().nativeElement.getBoundingClientRect()[ee]}}Le.\u0275fac=function(ee){return new(ee||Le)(t.Y36(X),t.Y36(t.R0b),t.Y36(d.Is,8))},Le.\u0275dir=t.lG2({type:Le,selectors:[["cdk-virtual-scroll-viewport","scrollWindow",""]],features:[t._Bn([{provide:je,useExisting:Le}]),t.qOj]});class Ae{}Ae.\u0275fac=function(ee){return new(ee||Ae)},Ae.\u0275mod=t.oAB({type:Ae}),Ae.\u0275inj=t.cJS({});class te{}te.\u0275fac=function(ee){return new(ee||te)},te.\u0275mod=t.oAB({type:te}),te.\u0275inj=t.cJS({imports:[d.vT,Ae,d.vT,Ae]})},1861:(Ue,q,m)=>{"use strict";m.d(q,{B8:()=>ae,KL:()=>M,U5:()=>ye,be:()=>ie,gx:()=>Q,po:()=>ce,st:()=>_e,u6:()=>z});var e=m(4218),t=m(2867),_=m(8971),E=m(8456),s=m(2560),D=m(9107),u=m(253),k=m(745),p=m(4874),S=m(8951);function A(ue,$){1&ue&&s.Hsn(0)}class M{constructor($){this._elementRef=$}focus(){this._elementRef.nativeElement.focus()}}M.\u0275fac=function($){return new($||M)(s.Y36(s.SBq))},M.\u0275dir=s.lG2({type:M,selectors:[["","cdkStepHeader",""]],hostAttrs:["role","tab"]});class z{constructor($){this.template=$}}z.\u0275fac=function($){return new($||z)(s.Y36(s.Rgc))},z.\u0275dir=s.lG2({type:z,selectors:[["","cdkStepLabel",""]]});let I=0;const Z_NUMBER="number",Z_EDIT="edit",Z_DONE="done",Z_ERROR="error",Q=new s.OlP("STEPPER_GLOBAL_OPTIONS");class ie{constructor($,he){this._stepper=$,this.interacted=!1,this.interactedStream=new s.vpe,this._editable=!0,this._optional=!1,this._completedOverride=null,this._customError=null,this._stepperOptions=he||{},this._displayDefaultIndicatorType=!1!==this._stepperOptions.displayDefaultIndicatorType}get editable(){return this._editable}set editable($){this._editable=(0,_.Ig)($)}get optional(){return this._optional}set optional($){this._optional=(0,_.Ig)($)}get completed(){return null==this._completedOverride?this._getDefaultCompleted():this._completedOverride}set completed($){this._completedOverride=(0,_.Ig)($)}_getDefaultCompleted(){return this.stepControl?this.stepControl.valid&&this.interacted:this.interacted}get hasError(){return null==this._customError?this._getDefaultError():this._customError}set hasError($){this._customError=(0,_.Ig)($)}_getDefaultError(){return this.stepControl&&this.stepControl.invalid&&this.interacted}select(){this._stepper.selected=this}reset(){this.interacted=!1,null!=this._completedOverride&&(this._completedOverride=!1),null!=this._customError&&(this._customError=!1),this.stepControl&&this.stepControl.reset()}ngOnChanges(){this._stepper._stateChanged()}_markAsInteracted(){this.interacted||(this.interacted=!0,this.interactedStream.emit(this))}_showError(){return this._stepperOptions.showError??null!=this._customError}}ie.\u0275fac=function($){return new($||ie)(s.Y36((0,s.Gpc)(()=>ae)),s.Y36(Q,8))},ie.\u0275cmp=s.Xpm({type:ie,selectors:[["cdk-step"]],contentQueries:function($,he,w){if(1&$&&s.Suo(w,z,5),2&$){let n;s.iGM(n=s.CRH())&&(he.stepLabel=n.first)}},viewQuery:function($,he){if(1&$&&s.Gf(s.Rgc,7),2&$){let w;s.iGM(w=s.CRH())&&(he.content=w.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:["*"],decls:1,vars:0,template:function($,he){1&$&&(s.F$t(),s.YNc(0,A,1,0,"ng-template"))},encapsulation:2,changeDetection:0});class ae{constructor($,he,w){this._dir=$,this._changeDetectorRef=he,this._elementRef=w,this._destroyed=new u.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=I++}get linear(){return this._linear}set linear($){this._linear=(0,_.Ig)($)}get selectedIndex(){return this._selectedIndex}set selectedIndex($){const he=(0,_.su)($);this.steps&&this._steps?(this._isValidIndex(he),this.selected?._markAsInteracted(),this._selectedIndex!==he&&!this._anyControlsInvalidOrPending(he)&&(he>=this._selectedIndex||this.steps.toArray()[he].editable)&&this._updateSelectedItemIndex(he)):this._selectedIndex=he}get selected(){return this.steps?this.steps.toArray()[this.selectedIndex]:void 0}set selected($){this.selectedIndex=$&&this.steps?this.steps.toArray().indexOf($):-1}get orientation(){return this._orientation}set orientation($){this._orientation=$,this._keyManager&&this._keyManager.withVerticalOrientation("vertical"===$)}ngAfterContentInit(){this._steps.changes.pipe((0,p.O)(this._steps),(0,S.R)(this._destroyed)).subscribe($=>{this.steps.reset($.filter(he=>he._stepper===this)),this.steps.notifyOnChanges()})}ngAfterViewInit(){this._stepHeader.changes.pipe((0,p.O)(this._stepHeader),(0,S.R)(this._destroyed)).subscribe($=>{this._sortedHeaders.reset($.toArray().sort((he,w)=>he._elementRef.nativeElement.compareDocumentPosition(w._elementRef.nativeElement)&Node.DOCUMENT_POSITION_FOLLOWING?-1:1)),this._sortedHeaders.notifyOnChanges()}),this._keyManager=new e.Em(this._sortedHeaders).withWrap().withHomeAndEnd().withVerticalOrientation("vertical"===this._orientation),(this._dir?this._dir.change:(0,k.of)()).pipe((0,p.O)(this._layoutDirection()),(0,S.R)(this._destroyed)).subscribe($=>this._keyManager.withHorizontalOrientation($)),this._keyManager.updateActiveItem(this._selectedIndex),this.steps.changes.subscribe(()=>{this.selected||(this._selectedIndex=Math.max(this._selectedIndex-1,0))}),this._isValidIndex(this._selectedIndex)||(this._selectedIndex=0)}ngOnDestroy(){this.steps.destroy(),this._sortedHeaders.destroy(),this._destroyed.next(),this._destroyed.complete()}next(){this.selectedIndex=Math.min(this._selectedIndex+1,this.steps.length-1)}previous(){this.selectedIndex=Math.max(this._selectedIndex-1,0)}reset(){this._updateSelectedItemIndex(0),this.steps.forEach($=>$.reset()),this._stateChanged()}_getStepLabelId($){return`cdk-step-label-${this._groupId}-${$}`}_getStepContentId($){return`cdk-step-content-${this._groupId}-${$}`}_stateChanged(){this._changeDetectorRef.markForCheck()}_getAnimationDirection($){const he=$-this._selectedIndex;return he<0?"rtl"===this._layoutDirection()?"next":"previous":he>0?"rtl"===this._layoutDirection()?"previous":"next":"current"}_getIndicatorType($,he=Z_NUMBER){const w=this.steps.toArray()[$],n=this._isCurrentStep($);return w._displayDefaultIndicatorType?this._getDefaultIndicatorLogic(w,n):this._getGuidelineLogic(w,n,he)}_getDefaultIndicatorLogic($,he){return $._showError()&&$.hasError&&!he?Z_ERROR:!$.completed||he?Z_NUMBER:$.editable?Z_EDIT:Z_DONE}_getGuidelineLogic($,he,w=Z_NUMBER){return $._showError()&&$.hasError&&!he?Z_ERROR:$.completed&&!he?Z_DONE:$.completed&&he?w:$.editable&&he?Z_EDIT:w}_isCurrentStep($){return this._selectedIndex===$}_getFocusIndex(){return this._keyManager?this._keyManager.activeItemIndex:this._selectedIndex}_updateSelectedItemIndex($){const he=this.steps.toArray();this.selectionChange.emit({selectedIndex:$,previouslySelectedIndex:this._selectedIndex,selectedStep:he[$],previouslySelectedStep:he[this._selectedIndex]}),this._containsFocus()?this._keyManager.setActiveItem($):this._keyManager.updateActiveItem($),this._selectedIndex=$,this._stateChanged()}_onKeydown($){const he=(0,E.Vb)($),w=$.keyCode,n=this._keyManager;null==n.activeItemIndex||he||w!==E.L_&&w!==E.K5?n.onKeydown($):(this.selectedIndex=n.activeItemIndex,$.preventDefault())}_anyControlsInvalidOrPending($){return!!(this._linear&&$>=0)&&this.steps.toArray().slice(0,$).some(he=>{const w=he.stepControl;return(w?w.invalid||w.pending||!he.interacted:!he.completed)&&!he.optional&&!he._completedOverride})}_layoutDirection(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"}_containsFocus(){const $=this._elementRef.nativeElement,he=(0,D.ht)();return $===he||$.contains(he)}_isValidIndex($){return $>-1&&(!this.steps||$<this.steps.length)}}ae.\u0275fac=function($){return new($||ae)(s.Y36(t.Is,8),s.Y36(s.sBO),s.Y36(s.SBq))},ae.\u0275dir=s.lG2({type:ae,selectors:[["","cdkStepper",""]],contentQueries:function($,he,w){if(1&$&&(s.Suo(w,ie,5),s.Suo(w,M,5)),2&$){let n;s.iGM(n=s.CRH())&&(he._steps=n),s.iGM(n=s.CRH())&&(he._stepHeader=n)}},inputs:{linear:"linear",selectedIndex:"selectedIndex",selected:"selected",orientation:"orientation"},outputs:{selectionChange:"selectionChange"},exportAs:["cdkStepper"]});class _e{constructor($){this._stepper=$,this.type="submit"}}_e.\u0275fac=function($){return new($||_e)(s.Y36(ae))},_e.\u0275dir=s.lG2({type:_e,selectors:[["button","cdkStepperNext",""]],hostVars:1,hostBindings:function($,he){1&$&&s.NdJ("click",function(){return he._stepper.next()}),2&$&&s.Ikx("type",he.type)},inputs:{type:"type"}});class ce{constructor($){this._stepper=$,this.type="button"}}ce.\u0275fac=function($){return new($||ce)(s.Y36(ae))},ce.\u0275dir=s.lG2({type:ce,selectors:[["button","cdkStepperPrevious",""]],hostVars:1,hostBindings:function($,he){1&$&&s.NdJ("click",function(){return he._stepper.previous()}),2&$&&s.Ikx("type",he.type)},inputs:{type:"type"}});class ye{}ye.\u0275fac=function($){return new($||ye)},ye.\u0275mod=s.oAB({type:ye}),ye.\u0275inj=s.cJS({imports:[t.vT]})},5183:(Ue,q,m)=>{"use strict";m.d(q,{HI:()=>I,Hs:()=>$,Ud:()=>d,VY:()=>z,XJ:()=>h,Xx:()=>n,_0:()=>ue,cu:()=>W,nZ:()=>L,rO:()=>Q});var e=m(1755),t=m(4437),_=m(253),E=m(6317),s=m(745),D=m(9295),u=m(116),k=m(8951),p=m(2560),S=m(8971),A=m(2867);class P{constructor(){this.expansionModel=new e.Ov(!0)}toggle(v){this.expansionModel.toggle(this._trackByValue(v))}expand(v){this.expansionModel.select(this._trackByValue(v))}collapse(v){this.expansionModel.deselect(this._trackByValue(v))}isExpanded(v){return this.expansionModel.isSelected(this._trackByValue(v))}toggleDescendants(v){this.expansionModel.isSelected(this._trackByValue(v))?this.collapseDescendants(v):this.expandDescendants(v)}collapseAll(){this.expansionModel.clear()}expandDescendants(v){let a=[v];a.push(...this.getDescendants(v)),this.expansionModel.select(...a.map(C=>this._trackByValue(C)))}collapseDescendants(v){let a=[v];a.push(...this.getDescendants(v)),this.expansionModel.deselect(...a.map(C=>this._trackByValue(C)))}_trackByValue(v){return this.trackBy?this.trackBy(v):v}}class z extends P{constructor(v,a){super(),this.getChildren=v,this.options=a,this.options&&(this.trackBy=this.options.trackBy)}expandAll(){this.expansionModel.clear();const v=this.dataNodes.reduce((a,C)=>[...a,...this.getDescendants(C),C],[]);this.expansionModel.select(...v.map(a=>this._trackByValue(a)))}getDescendants(v){const a=[];return this._getDescendants(a,v),a.splice(1)}_getDescendants(v,a){v.push(a);const C=this.getChildren(a);Array.isArray(C)?C.forEach(N=>this._getDescendants(v,N)):(0,t.b)(C)&&C.pipe((0,D.q)(1),(0,u.h)(Boolean)).subscribe(N=>{for(const F of N)this._getDescendants(v,F)})}}const I=new p.OlP("CDK_TREE_NODE_OUTLET_NODE");class W{constructor(v,a){this.viewContainer=v,this._node=a}}W.\u0275fac=function(v){return new(v||W)(p.Y36(p.s_b),p.Y36(I,8))},W.\u0275dir=p.lG2({type:W,selectors:[["","cdkTreeNodeOutlet",""]]});class Z{constructor(v){this.$implicit=v}}class Q{constructor(v){this.template=v}}Q.\u0275fac=function(v){return new(v||Q)(p.Y36(p.Rgc))},Q.\u0275dir=p.lG2({type:Q,selectors:[["","cdkTreeNodeDef",""]],inputs:{when:["cdkTreeNodeDefWhen","when"]}});class ue{constructor(v,a){this._differs=v,this._changeDetectorRef=a,this._onDestroy=new _.x,this._levels=new Map,this.viewChange=new E.X({start:0,end:Number.MAX_VALUE})}get dataSource(){return this._dataSource}set dataSource(v){this._dataSource!==v&&this._switchDataSource(v)}ngOnInit(){this._dataDiffer=this._differs.find([]).create(this.trackBy),this.treeControl}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 v=this._nodeDefs.filter(a=>!a.when);v.length,this._defaultNodeDef=v[0],this.dataSource&&this._nodeDefs&&!this._dataSubscription&&this._observeRenderChanges()}_switchDataSource(v){this._dataSource&&"function"==typeof this._dataSource.disconnect&&this.dataSource.disconnect(this),this._dataSubscription&&(this._dataSubscription.unsubscribe(),this._dataSubscription=null),v||this._nodeOutlet.viewContainer.clear(),this._dataSource=v,this._nodeDefs&&this._observeRenderChanges()}_observeRenderChanges(){let v;(0,e.Z9)(this._dataSource)?v=this._dataSource.connect(this):(0,t.b)(this._dataSource)?v=this._dataSource:Array.isArray(this._dataSource)&&(v=(0,s.of)(this._dataSource)),v&&(this._dataSubscription=v.pipe((0,k.R)(this._onDestroy)).subscribe(a=>this.renderNodeChanges(a)))}renderNodeChanges(v,a=this._dataDiffer,C=this._nodeOutlet.viewContainer,N){const F=a.diff(v);!F||(F.forEachOperation((X,Fe,ke)=>{if(null==X.previousIndex)this.insertNode(v[ke],ke,C,N);else if(null==ke)C.remove(Fe),this._levels.delete(X.item);else{const Ke=C.get(Fe);C.move(Ke,ke)}}),this._changeDetectorRef.detectChanges())}_getNodeDef(v,a){if(1===this._nodeDefs.length)return this._nodeDefs.first;return this._nodeDefs.find(N=>N.when&&N.when(a,v))||this._defaultNodeDef}insertNode(v,a,C,N){const F=this._getNodeDef(v,a),X=new Z(v);this.treeControl.getLevel?X.level=this.treeControl.getLevel(v):typeof N<"u"&&this._levels.has(N)?X.level=this._levels.get(N)+1:X.level=0,this._levels.set(v,X.level),(C||this._nodeOutlet.viewContainer).createEmbeddedView(F.template,X,a),$.mostRecentTreeNode&&($.mostRecentTreeNode.data=v)}}ue.\u0275fac=function(v){return new(v||ue)(p.Y36(p.ZZ4),p.Y36(p.sBO))},ue.\u0275cmp=p.Xpm({type:ue,selectors:[["cdk-tree"]],contentQueries:function(v,a,C){if(1&v&&p.Suo(C,Q,5),2&v){let N;p.iGM(N=p.CRH())&&(a._nodeDefs=N)}},viewQuery:function(v,a){if(1&v&&p.Gf(W,7),2&v){let C;p.iGM(C=p.CRH())&&(a._nodeOutlet=C.first)}},hostAttrs:["role","tree",1,"cdk-tree"],inputs:{dataSource:"dataSource",treeControl:"treeControl",trackBy:"trackBy"},exportAs:["cdkTree"],decls:1,vars:0,consts:[["cdkTreeNodeOutlet",""]],template:function(v,a){1&v&&p.GkF(0,0)},dependencies:[W],encapsulation:2});class ${constructor(v,a){this._elementRef=v,this._tree=a,this._destroyed=new _.x,this._dataChanges=new _.x,$.mostRecentTreeNode=this,this.role="treeitem"}get role(){return"treeitem"}set role(v){this._elementRef.nativeElement.setAttribute("role",v)}get data(){return this._data}set data(v){v!==this._data&&(this._data=v,this._setRoleFromData(),this._dataChanges.next())}get isExpanded(){return this._tree.treeControl.isExpanded(this._data)}get level(){return this._tree.treeControl.getLevel?this._tree.treeControl.getLevel(this._data):this._parentNodeAriaLevel}ngOnInit(){this._parentNodeAriaLevel=function he(B){let v=B.parentElement;for(;v&&!w(v);)v=v.parentElement;return v?v.classList.contains("cdk-nested-tree-node")?(0,S.su)(v.getAttribute("aria-level")):0:-1}(this._elementRef.nativeElement),this._elementRef.nativeElement.setAttribute("aria-level",`${this.level+1}`)}ngOnDestroy(){$.mostRecentTreeNode===this&&($.mostRecentTreeNode=null),this._dataChanges.complete(),this._destroyed.next(),this._destroyed.complete()}focus(){this._elementRef.nativeElement.focus()}_setRoleFromData(){!this._tree.treeControl.isExpandable&&this._tree.treeControl.getChildren,this.role="treeitem"}}function w(B){const v=B.classList;return!(!v?.contains("cdk-nested-tree-node")&&!v?.contains("cdk-tree"))}$.mostRecentTreeNode=null,$.\u0275fac=function(v){return new(v||$)(p.Y36(p.SBq),p.Y36(ue))},$.\u0275dir=p.lG2({type:$,selectors:[["cdk-tree-node"]],hostAttrs:[1,"cdk-tree-node"],hostVars:1,hostBindings:function(v,a){2&v&&p.uIk("aria-expanded",a.isExpanded)},inputs:{role:"role"},exportAs:["cdkTreeNode"]});class n extends ${constructor(v,a,C){super(v,a),this._differs=C}ngAfterContentInit(){this._dataDiffer=this._differs.find([]).create(this._tree.trackBy),this._tree.treeControl.getChildren;const v=this._tree.treeControl.getChildren(this.data);Array.isArray(v)?this.updateChildrenNodes(v):(0,t.b)(v)&&v.pipe((0,k.R)(this._destroyed)).subscribe(a=>this.updateChildrenNodes(a)),this.nodeOutlet.changes.pipe((0,k.R)(this._destroyed)).subscribe(()=>this.updateChildrenNodes())}ngOnInit(){super.ngOnInit()}ngOnDestroy(){this._clear(),super.ngOnDestroy()}updateChildrenNodes(v){const a=this._getNodeOutlet();if(v&&(this._children=v),a&&this._children){const C=a.viewContainer;this._tree.renderNodeChanges(this._children,this._dataDiffer,C,this._data)}else this._dataDiffer.diff([])}_clear(){const v=this._getNodeOutlet();v&&(v.viewContainer.clear(),this._dataDiffer.diff([]))}_getNodeOutlet(){const v=this.nodeOutlet;return v&&v.find(a=>!a._node||a._node===this)}}n.\u0275fac=function(v){return new(v||n)(p.Y36(p.SBq),p.Y36(ue),p.Y36(p.ZZ4))},n.\u0275dir=p.lG2({type:n,selectors:[["cdk-nested-tree-node"]],contentQueries:function(v,a,C){if(1&v&&p.Suo(C,W,5),2&v){let N;p.iGM(N=p.CRH())&&(a.nodeOutlet=N)}},hostAttrs:[1,"cdk-nested-tree-node"],inputs:{role:"role",disabled:"disabled",tabIndex:"tabIndex"},exportAs:["cdkNestedTreeNode"],features:[p._Bn([{provide:$,useExisting:n},{provide:I,useExisting:n}]),p.qOj]});const o=/([A-Za-z%]+)$/;class h{constructor(v,a,C,N){this._treeNode=v,this._tree=a,this._element=C,this._dir=N,this._destroyed=new _.x,this.indentUnits="px",this._indent=40,this._setPadding(),N&&N.change.pipe((0,k.R)(this._destroyed)).subscribe(()=>this._setPadding(!0)),v._dataChanges.subscribe(()=>this._setPadding())}get level(){return this._level}set level(v){this._setLevelInput(v)}get indent(){return this._indent}set indent(v){this._setIndentInput(v)}ngOnDestroy(){this._destroyed.next(),this._destroyed.complete()}_paddingIndent(){const v=this._treeNode.data&&this._tree.treeControl.getLevel?this._tree.treeControl.getLevel(this._treeNode.data):null,a=null==this._level?v:this._level;return"number"==typeof a?`${a*this._indent}${this.indentUnits}`:null}_setPadding(v=!1){const a=this._paddingIndent();if(a!==this._currentPadding||v){const C=this._element.nativeElement,N=this._dir&&"rtl"===this._dir.value?"paddingRight":"paddingLeft",F="paddingLeft"===N?"paddingRight":"paddingLeft";C.style[N]=a||"",C.style[F]="",this._currentPadding=a}}_setLevelInput(v){this._level=(0,S.su)(v,null),this._setPadding()}_setIndentInput(v){let a=v,C="px";if("string"==typeof v){const N=v.split(o);a=N[0],C=N[1]||C}this.indentUnits=C,this._indent=(0,S.su)(a),this._setPadding()}}h.\u0275fac=function(v){return new(v||h)(p.Y36($),p.Y36(ue),p.Y36(p.SBq),p.Y36(A.Is,8))},h.\u0275dir=p.lG2({type:h,selectors:[["","cdkTreeNodePadding",""]],inputs:{level:["cdkTreeNodePadding","level"],indent:["cdkTreeNodePaddingIndent","indent"]}});class d{constructor(v,a){this._tree=v,this._treeNode=a,this._recursive=!1}get recursive(){return this._recursive}set recursive(v){this._recursive=(0,S.Ig)(v)}_toggle(v){this.recursive?this._tree.treeControl.toggleDescendants(this._treeNode.data):this._tree.treeControl.toggle(this._treeNode.data),v.stopPropagation()}}d.\u0275fac=function(v){return new(v||d)(p.Y36(ue),p.Y36($))},d.\u0275dir=p.lG2({type:d,selectors:[["","cdkTreeNodeToggle",""]],hostBindings:function(v,a){1&v&&p.NdJ("click",function(N){return a._toggle(N)})},inputs:{recursive:["cdkTreeNodeToggleRecursive","recursive"]}});class L{}L.\u0275fac=function(v){return new(v||L)},L.\u0275mod=p.oAB({type:L}),L.\u0275inj=p.cJS({})},4666:(Ue,q,m)=>{"use strict";m.d(q,{Do:()=>ae,ED:()=>Za,EM:()=>Oa,HT:()=>s,JF:()=>yr,JJ:()=>is,K0:()=>u,Mx:()=>Wn,NF:()=>nr,Nd:()=>za,O5:()=>Qn,OU:()=>Ua,Ov:()=>Di,PC:()=>ln,PM:()=>Pr,RF:()=>qi,S$:()=>Z,Ts:()=>ra,V_:()=>S,Ye:()=>_e,b0:()=>ie,bD:()=>vr,ez:()=>Ca,gd:()=>Ha,i8:()=>Ji,mk:()=>ti,n9:()=>Zi,q:()=>_,rS:()=>Yi,sg:()=>hn,tP:()=>En,uU:()=>Sa,w_:()=>D});var e=m(2560);let t=null;function _(){return t}function s(Ne){t||(t=Ne)}class D{}const u=new e.OlP("DocumentToken");class k{historyGo(fe){throw new Error("Not implemented")}}k.\u0275fac=function(fe){return new(fe||k)},k.\u0275prov=e.Yz7({token:k,factory:function(){return function p(){return(0,e.LFG)(A)}()},providedIn:"platform"});const S=new e.OlP("Location Initialized");class A extends k{constructor(fe){super(),this._doc=fe,this._init()}_init(){this.location=window.location,this._history=window.history}getBaseHrefFromDOM(){return _().getBaseHref(this._doc)}onPopState(fe){const st=_().getGlobalEventTarget(this._doc,"window");return st.addEventListener("popstate",fe,!1),()=>st.removeEventListener("popstate",fe)}onHashChange(fe){const st=_().getGlobalEventTarget(this._doc,"window");return st.addEventListener("hashchange",fe,!1),()=>st.removeEventListener("hashchange",fe)}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(fe){this.location.pathname=fe}pushState(fe,st,Ot){P()?this._history.pushState(fe,st,Ot):this.location.hash=Ot}replaceState(fe,st,Ot){P()?this._history.replaceState(fe,st,Ot):this.location.hash=Ot}forward(){this._history.forward()}back(){this._history.back()}historyGo(fe=0){this._history.go(fe)}getState(){return this._history.state}}function P(){return!!window.history.pushState}function z(Ne,fe){if(0==Ne.length)return fe;if(0==fe.length)return Ne;let st=0;return Ne.endsWith("/")&&st++,fe.startsWith("/")&&st++,2==st?Ne+fe.substring(1):1==st?Ne+fe:Ne+"/"+fe}function I(Ne){const fe=Ne.match(/#|\?|$/),st=fe&&fe.index||Ne.length,Ot=st-("/"===Ne[st-1]?1:0);return Ne.slice(0,Ot)+Ne.slice(st)}function W(Ne){return Ne&&"?"!==Ne[0]?"?"+Ne:Ne}A.\u0275fac=function(fe){return new(fe||A)(e.LFG(u))},A.\u0275prov=e.Yz7({token:A,factory:function(){return function M(){return new A((0,e.LFG)(u))}()},providedIn:"platform"});class Z{historyGo(fe){throw new Error("Not implemented")}}Z.\u0275fac=function(fe){return new(fe||Z)},Z.\u0275prov=e.Yz7({token:Z,factory:function(){return(0,e.f3M)(ie)},providedIn:"root"});const Q=new e.OlP("appBaseHref");class ie extends Z{constructor(fe,st){super(),this._platformLocation=fe,this._removeListenerFns=[],this._baseHref=st??this._platformLocation.getBaseHrefFromDOM()??(0,e.f3M)(u).location?.origin??""}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(fe){this._removeListenerFns.push(this._platformLocation.onPopState(fe),this._platformLocation.onHashChange(fe))}getBaseHref(){return this._baseHref}prepareExternalUrl(fe){return z(this._baseHref,fe)}path(fe=!1){const st=this._platformLocation.pathname+W(this._platformLocation.search),Ot=this._platformLocation.hash;return Ot&&fe?`${st}${Ot}`:st}pushState(fe,st,Ot,Vt){const fn=this.prepareExternalUrl(Ot+W(Vt));this._platformLocation.pushState(fe,st,fn)}replaceState(fe,st,Ot,Vt){const fn=this.prepareExternalUrl(Ot+W(Vt));this._platformLocation.replaceState(fe,st,fn)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(fe=0){this._platformLocation.historyGo?.(fe)}}ie.\u0275fac=function(fe){return new(fe||ie)(e.LFG(k),e.LFG(Q,8))},ie.\u0275prov=e.Yz7({token:ie,factory:ie.\u0275fac,providedIn:"root"});class ae extends Z{constructor(fe,st){super(),this._platformLocation=fe,this._baseHref="",this._removeListenerFns=[],null!=st&&(this._baseHref=st)}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(fe){this._removeListenerFns.push(this._platformLocation.onPopState(fe),this._platformLocation.onHashChange(fe))}getBaseHref(){return this._baseHref}path(fe=!1){let st=this._platformLocation.hash;return null==st&&(st="#"),st.length>0?st.substring(1):st}prepareExternalUrl(fe){const st=z(this._baseHref,fe);return st.length>0?"#"+st:st}pushState(fe,st,Ot,Vt){let fn=this.prepareExternalUrl(Ot+W(Vt));0==fn.length&&(fn=this._platformLocation.pathname),this._platformLocation.pushState(fe,st,fn)}replaceState(fe,st,Ot,Vt){let fn=this.prepareExternalUrl(Ot+W(Vt));0==fn.length&&(fn=this._platformLocation.pathname),this._platformLocation.replaceState(fe,st,fn)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(fe=0){this._platformLocation.historyGo?.(fe)}}ae.\u0275fac=function(fe){return new(fe||ae)(e.LFG(k),e.LFG(Q,8))},ae.\u0275prov=e.Yz7({token:ae,factory:ae.\u0275fac});class _e{constructor(fe){this._subject=new e.vpe,this._urlChangeListeners=[],this._urlChangeSubscription=null,this._locationStrategy=fe;const st=this._locationStrategy.getBaseHref();this._baseHref=I(ue(st)),this._locationStrategy.onPopState(Ot=>{this._subject.emit({url:this.path(!0),pop:!0,state:Ot.state,type:Ot.type})})}ngOnDestroy(){this._urlChangeSubscription?.unsubscribe(),this._urlChangeListeners=[]}path(fe=!1){return this.normalize(this._locationStrategy.path(fe))}getState(){return this._locationStrategy.getState()}isCurrentPathEqualTo(fe,st=""){return this.path()==this.normalize(fe+W(st))}normalize(fe){return _e.stripTrailingSlash(function ye(Ne,fe){return Ne&&fe.startsWith(Ne)?fe.substring(Ne.length):fe}(this._baseHref,ue(fe)))}prepareExternalUrl(fe){return fe&&"/"!==fe[0]&&(fe="/"+fe),this._locationStrategy.prepareExternalUrl(fe)}go(fe,st="",Ot=null){this._locationStrategy.pushState(Ot,"",fe,st),this._notifyUrlChangeListeners(this.prepareExternalUrl(fe+W(st)),Ot)}replaceState(fe,st="",Ot=null){this._locationStrategy.replaceState(Ot,"",fe,st),this._notifyUrlChangeListeners(this.prepareExternalUrl(fe+W(st)),Ot)}forward(){this._locationStrategy.forward()}back(){this._locationStrategy.back()}historyGo(fe=0){this._locationStrategy.historyGo?.(fe)}onUrlChange(fe){return this._urlChangeListeners.push(fe),this._urlChangeSubscription||(this._urlChangeSubscription=this.subscribe(st=>{this._notifyUrlChangeListeners(st.url,st.state)})),()=>{const st=this._urlChangeListeners.indexOf(fe);this._urlChangeListeners.splice(st,1),0===this._urlChangeListeners.length&&(this._urlChangeSubscription?.unsubscribe(),this._urlChangeSubscription=null)}}_notifyUrlChangeListeners(fe="",st){this._urlChangeListeners.forEach(Ot=>Ot(fe,st))}subscribe(fe,st,Ot){return this._subject.subscribe({next:fe,error:st,complete:Ot})}}function ue(Ne){return Ne.replace(/\/index.html$/,"")}_e.normalizeQueryParams=W,_e.joinWithSlash=z,_e.stripTrailingSlash=I,_e.\u0275fac=function(fe){return new(fe||_e)(e.LFG(Z))},_e.\u0275prov=e.Yz7({token:_e,factory:function(){return function ce(){return new _e((0,e.LFG)(Z))}()},providedIn:"root"});const $={ADP:[void 0,void 0,0],AFN:[void 0,"\u060b",0],ALL:[void 0,void 0,0],AMD:[void 0,"\u058f",2],AOA:[void 0,"Kz"],ARS:[void 0,"$"],AUD:["A$","$"],AZN:[void 0,"\u20bc"],BAM:[void 0,"KM"],BBD:[void 0,"$"],BDT:[void 0,"\u09f3"],BHD:[void 0,void 0,3],BIF:[void 0,void 0,0],BMD:[void 0,"$"],BND:[void 0,"$"],BOB:[void 0,"Bs"],BRL:["R$"],BSD:[void 0,"$"],BWP:[void 0,"P"],BYN:[void 0,void 0,2],BYR:[void 0,void 0,0],BZD:[void 0,"$"],CAD:["CA$","$",2],CHF:[void 0,void 0,2],CLF:[void 0,void 0,4],CLP:[void 0,"$",0],CNY:["CN\xa5","\xa5"],COP:[void 0,"$",2],CRC:[void 0,"\u20a1",2],CUC:[void 0,"$"],CUP:[void 0,"$"],CZK:[void 0,"K\u010d",2],DJF:[void 0,void 0,0],DKK:[void 0,"kr",2],DOP:[void 0,"$"],EGP:[void 0,"E\xa3"],ESP:[void 0,"\u20a7",0],EUR:["\u20ac"],FJD:[void 0,"$"],FKP:[void 0,"\xa3"],GBP:["\xa3"],GEL:[void 0,"\u20be"],GHS:[void 0,"GH\u20b5"],GIP:[void 0,"\xa3"],GNF:[void 0,"FG",0],GTQ:[void 0,"Q"],GYD:[void 0,"$",2],HKD:["HK$","$"],HNL:[void 0,"L"],HRK:[void 0,"kn"],HUF:[void 0,"Ft",2],IDR:[void 0,"Rp",2],ILS:["\u20aa"],INR:["\u20b9"],IQD:[void 0,void 0,0],IRR:[void 0,void 0,0],ISK:[void 0,"kr",0],ITL:[void 0,void 0,0],JMD:[void 0,"$"],JOD:[void 0,void 0,3],JPY:["\xa5",void 0,0],KHR:[void 0,"\u17db"],KMF:[void 0,"CF",0],KPW:[void 0,"\u20a9",0],KRW:["\u20a9",void 0,0],KWD:[void 0,void 0,3],KYD:[void 0,"$"],KZT:[void 0,"\u20b8"],LAK:[void 0,"\u20ad",0],LBP:[void 0,"L\xa3",0],LKR:[void 0,"Rs"],LRD:[void 0,"$"],LTL:[void 0,"Lt"],LUF:[void 0,void 0,0],LVL:[void 0,"Ls"],LYD:[void 0,void 0,3],MGA:[void 0,"Ar",0],MGF:[void 0,void 0,0],MMK:[void 0,"K",0],MNT:[void 0,"\u20ae",2],MRO:[void 0,void 0,0],MUR:[void 0,"Rs",2],MXN:["MX$","$"],MYR:[void 0,"RM"],NAD:[void 0,"$"],NGN:[void 0,"\u20a6"],NIO:[void 0,"C$"],NOK:[void 0,"kr",2],NPR:[void 0,"Rs"],NZD:["NZ$","$"],OMR:[void 0,void 0,3],PHP:["\u20b1"],PKR:[void 0,"Rs",2],PLN:[void 0,"z\u0142"],PYG:[void 0,"\u20b2",0],RON:[void 0,"lei"],RSD:[void 0,void 0,0],RUB:[void 0,"\u20bd"],RWF:[void 0,"RF",0],SBD:[void 0,"$"],SEK:[void 0,"kr",2],SGD:[void 0,"$"],SHP:[void 0,"\xa3"],SLE:[void 0,void 0,2],SLL:[void 0,void 0,0],SOS:[void 0,void 0,0],SRD:[void 0,"$"],SSP:[void 0,"\xa3"],STD:[void 0,void 0,0],STN:[void 0,"Db"],SYP:[void 0,"\xa3",0],THB:[void 0,"\u0e3f"],TMM:[void 0,void 0,0],TND:[void 0,void 0,3],TOP:[void 0,"T$"],TRL:[void 0,void 0,0],TRY:[void 0,"\u20ba"],TTD:[void 0,"$"],TWD:["NT$","$",2],TZS:[void 0,void 0,2],UAH:[void 0,"\u20b4"],UGX:[void 0,void 0,0],USD:["$"],UYI:[void 0,void 0,0],UYU:[void 0,"$"],UYW:[void 0,void 0,4],UZS:[void 0,void 0,2],VEF:[void 0,"Bs",2],VND:["\u20ab",void 0,0],VUV:[void 0,void 0,0],XAF:["FCFA",void 0,0],XCD:["EC$","$"],XOF:["F\u202fCFA",void 0,0],XPF:["CFPF",void 0,0],XXX:["\xa4"],YER:[void 0,void 0,0],ZAR:[void 0,"R"],ZMK:[void 0,void 0,0],ZMW:[void 0,"ZK"],ZWD:[void 0,void 0,0]};var he,Ne,w,n,o,h,d,y;function X(Ne,fe){return te((0,e.cg1)(Ne)[e.wAp.DateFormat],fe)}function Fe(Ne,fe){return te((0,e.cg1)(Ne)[e.wAp.TimeFormat],fe)}function ke(Ne,fe){return te((0,e.cg1)(Ne)[e.wAp.DateTimeFormat],fe)}function Ke(Ne,fe){const st=(0,e.cg1)(Ne),Ot=st[e.wAp.NumberSymbols][fe];if(typeof Ot>"u"){if(fe===d.CurrencyDecimal)return st[e.wAp.NumberSymbols][d.Decimal];if(fe===d.CurrencyGroup)return st[e.wAp.NumberSymbols][d.Group]}return Ot}function je(Ne,fe){return(0,e.cg1)(Ne)[e.wAp.NumberFormats][fe]}(Ne=he||(he={}))[Ne.Decimal=0]="Decimal",Ne[Ne.Percent=1]="Percent",Ne[Ne.Currency=2]="Currency",Ne[Ne.Scientific=3]="Scientific",function(Ne){Ne[Ne.Zero=0]="Zero",Ne[Ne.One=1]="One",Ne[Ne.Two=2]="Two",Ne[Ne.Few=3]="Few",Ne[Ne.Many=4]="Many",Ne[Ne.Other=5]="Other"}(w||(w={})),function(Ne){Ne[Ne.Format=0]="Format",Ne[Ne.Standalone=1]="Standalone"}(n||(n={})),function(Ne){Ne[Ne.Narrow=0]="Narrow",Ne[Ne.Abbreviated=1]="Abbreviated",Ne[Ne.Wide=2]="Wide",Ne[Ne.Short=3]="Short"}(o||(o={})),function(Ne){Ne[Ne.Short=0]="Short",Ne[Ne.Medium=1]="Medium",Ne[Ne.Long=2]="Long",Ne[Ne.Full=3]="Full"}(h||(h={})),function(Ne){Ne[Ne.Decimal=0]="Decimal",Ne[Ne.Group=1]="Group",Ne[Ne.List=2]="List",Ne[Ne.PercentSign=3]="PercentSign",Ne[Ne.PlusSign=4]="PlusSign",Ne[Ne.MinusSign=5]="MinusSign",Ne[Ne.Exponential=6]="Exponential",Ne[Ne.SuperscriptingExponent=7]="SuperscriptingExponent",Ne[Ne.PerMille=8]="PerMille",Ne[Ne.Infinity=9]="Infinity",Ne[Ne.NaN=10]="NaN",Ne[Ne.TimeSeparator=11]="TimeSeparator",Ne[Ne.CurrencyDecimal=12]="CurrencyDecimal",Ne[Ne.CurrencyGroup=13]="CurrencyGroup"}(d||(d={})),function(Ne){Ne[Ne.Sunday=0]="Sunday",Ne[Ne.Monday=1]="Monday",Ne[Ne.Tuesday=2]="Tuesday",Ne[Ne.Wednesday=3]="Wednesday",Ne[Ne.Thursday=4]="Thursday",Ne[Ne.Friday=5]="Friday",Ne[Ne.Saturday=6]="Saturday"}(y||(y={}));const ve=e.kL8;function et(Ne){if(!Ne[e.wAp.ExtraData])throw new Error(`Missing extra locale data for the locale "${Ne[e.wAp.LocaleId]}". Use "registerLocaleData" to load new data. See the "I18n guide" on angular.io to know more.`)}function te(Ne,fe){for(let st=fe;st>-1;st--)if(typeof Ne[st]<"u")return Ne[st];throw new Error("Locale data API: locale data undefined")}function pe(Ne){const[fe,st]=Ne.split(":");return{hours:+fe,minutes:+st}}function ee(Ne,fe,st="en"){const Ot=function Ie(Ne){return(0,e.cg1)(Ne)[e.wAp.Currencies]}(st)[Ne]||$[Ne]||[],Vt=Ot[1];return"narrow"===fe&&"string"==typeof Vt?Vt:Ot[0]||Ne}const Oe=/^(\d{4,})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/,Re={},le=/((?:[^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 _t,it,Ct;function un(Ne,fe,st,Ot){let Vt=function Ce(Ne){if(zt(Ne))return Ne;if("number"==typeof Ne&&!isNaN(Ne))return new Date(Ne);if("string"==typeof Ne){if(Ne=Ne.trim(),/^(\d{4}(-\d{1,2}(-\d{1,2})?)?)$/.test(Ne)){const[Vt,fn=1,Un=1]=Ne.split("-").map(Xe=>+Xe);return Bt(Vt,fn-1,Un)}const st=parseFloat(Ne);if(!isNaN(Ne-st))return new Date(st);let Ot;if(Ot=Ne.match(Oe))return function Je(Ne){const fe=new Date(0);let st=0,Ot=0;const Vt=Ne[8]?fe.setUTCFullYear:fe.setFullYear,fn=Ne[8]?fe.setUTCHours:fe.setHours;Ne[9]&&(st=Number(Ne[9]+Ne[10]),Ot=Number(Ne[9]+Ne[11])),Vt.call(fe,Number(Ne[1]),Number(Ne[2])-1,Number(Ne[3]));const Un=Number(Ne[4]||0)-st,Xe=Number(Ne[5]||0)-Ot,rt=Number(Ne[6]||0),yt=Math.floor(1e3*parseFloat("0."+(Ne[7]||0)));return fn.call(fe,Un,Xe,rt,yt),fe}(Ot)}const fe=new Date(Ne);if(!zt(fe))throw new Error(`Unable to convert "${Ne}" into a date`);return fe}(Ne);fe=Ut(st,fe)||fe;let Xe,Un=[];for(;fe;){if(Xe=le.exec(fe),!Xe){Un.push(fe);break}{Un=Un.concat(Xe.slice(1));const Pt=Un.pop();if(!Pt)break;fe=Pt}}let rt=Vt.getTimezoneOffset();Ot&&(rt=ut(Ot,rt),Vt=function Me(Ne,fe,st){const Ot=st?-1:1,Vt=Ne.getTimezoneOffset(),fn=ut(fe,Vt);return function ze(Ne,fe){return(Ne=new Date(Ne.getTime())).setMinutes(Ne.getMinutes()+fe),Ne}(Ne,Ot*(fn-Vt))}(Vt,Ot,!0));let yt="";return Un.forEach(Pt=>{const Qe=function Dt(Ne){if(Ye[Ne])return Ye[Ne];let fe;switch(Ne){case"G":case"GG":case"GGG":fe=tn(Ct.Eras,o.Abbreviated);break;case"GGGG":fe=tn(Ct.Eras,o.Wide);break;case"GGGGG":fe=tn(Ct.Eras,o.Narrow);break;case"y":fe=In(it.FullYear,1,0,!1,!0);break;case"yy":fe=In(it.FullYear,2,0,!0,!0);break;case"yyy":fe=In(it.FullYear,3,0,!1,!0);break;case"yyyy":fe=In(it.FullYear,4,0,!1,!0);break;case"Y":fe=De(1);break;case"YY":fe=De(2,!0);break;case"YYY":fe=De(3);break;case"YYYY":fe=De(4);break;case"M":case"L":fe=In(it.Month,1,1);break;case"MM":case"LL":fe=In(it.Month,2,1);break;case"MMM":fe=tn(Ct.Months,o.Abbreviated);break;case"MMMM":fe=tn(Ct.Months,o.Wide);break;case"MMMMM":fe=tn(Ct.Months,o.Narrow);break;case"LLL":fe=tn(Ct.Months,o.Abbreviated,n.Standalone);break;case"LLLL":fe=tn(Ct.Months,o.Wide,n.Standalone);break;case"LLLLL":fe=tn(Ct.Months,o.Narrow,n.Standalone);break;case"w":fe=oe(1);break;case"ww":fe=oe(2);break;case"W":fe=oe(1,!0);break;case"d":fe=In(it.Date,1);break;case"dd":fe=In(it.Date,2);break;case"c":case"cc":fe=In(it.Day,1);break;case"ccc":fe=tn(Ct.Days,o.Abbreviated,n.Standalone);break;case"cccc":fe=tn(Ct.Days,o.Wide,n.Standalone);break;case"ccccc":fe=tn(Ct.Days,o.Narrow,n.Standalone);break;case"cccccc":fe=tn(Ct.Days,o.Short,n.Standalone);break;case"E":case"EE":case"EEE":fe=tn(Ct.Days,o.Abbreviated);break;case"EEEE":fe=tn(Ct.Days,o.Wide);break;case"EEEEE":fe=tn(Ct.Days,o.Narrow);break;case"EEEEEE":fe=tn(Ct.Days,o.Short);break;case"a":case"aa":case"aaa":fe=tn(Ct.DayPeriods,o.Abbreviated);break;case"aaaa":fe=tn(Ct.DayPeriods,o.Wide);break;case"aaaaa":fe=tn(Ct.DayPeriods,o.Narrow);break;case"b":case"bb":case"bbb":fe=tn(Ct.DayPeriods,o.Abbreviated,n.Standalone,!0);break;case"bbbb":fe=tn(Ct.DayPeriods,o.Wide,n.Standalone,!0);break;case"bbbbb":fe=tn(Ct.DayPeriods,o.Narrow,n.Standalone,!0);break;case"B":case"BB":case"BBB":fe=tn(Ct.DayPeriods,o.Abbreviated,n.Format,!0);break;case"BBBB":fe=tn(Ct.DayPeriods,o.Wide,n.Format,!0);break;case"BBBBB":fe=tn(Ct.DayPeriods,o.Narrow,n.Format,!0);break;case"h":fe=In(it.Hours,1,-12);break;case"hh":fe=In(it.Hours,2,-12);break;case"H":fe=In(it.Hours,1);break;case"HH":fe=In(it.Hours,2);break;case"m":fe=In(it.Minutes,1);break;case"mm":fe=In(it.Minutes,2);break;case"s":fe=In(it.Seconds,1);break;case"ss":fe=In(it.Seconds,2);break;case"S":fe=In(it.FractionalSeconds,1);break;case"SS":fe=In(it.FractionalSeconds,2);break;case"SSS":fe=In(it.FractionalSeconds,3);break;case"Z":case"ZZ":case"ZZZ":fe=tt(_t.Short);break;case"ZZZZZ":fe=tt(_t.Extended);break;case"O":case"OO":case"OOO":case"z":case"zz":case"zzz":fe=tt(_t.ShortGMT);break;case"OOOO":case"ZZZZ":case"zzzz":fe=tt(_t.Long);break;default:return null}return Ye[Ne]=fe,fe}(Pt);yt+=Qe?Qe(Vt,st,rt):"''"===Pt?"'":Pt.replace(/(^'|'$)/g,"").replace(/''/g,"'")}),yt}function Bt(Ne,fe,st){const Ot=new Date(0);return Ot.setFullYear(Ne,fe,st),Ot.setHours(0,0,0),Ot}function Ut(Ne,fe){const st=function L(Ne){return(0,e.cg1)(Ne)[e.wAp.LocaleId]}(Ne);if(Re[st]=Re[st]||{},Re[st][fe])return Re[st][fe];let Ot="";switch(fe){case"shortDate":Ot=X(Ne,h.Short);break;case"mediumDate":Ot=X(Ne,h.Medium);break;case"longDate":Ot=X(Ne,h.Long);break;case"fullDate":Ot=X(Ne,h.Full);break;case"shortTime":Ot=Fe(Ne,h.Short);break;case"mediumTime":Ot=Fe(Ne,h.Medium);break;case"longTime":Ot=Fe(Ne,h.Long);break;case"fullTime":Ot=Fe(Ne,h.Full);break;case"short":const Vt=Ut(Ne,"shortTime"),fn=Ut(Ne,"shortDate");Ot=yn(ke(Ne,h.Short),[Vt,fn]);break;case"medium":const Un=Ut(Ne,"mediumTime"),Xe=Ut(Ne,"mediumDate");Ot=yn(ke(Ne,h.Medium),[Un,Xe]);break;case"long":const rt=Ut(Ne,"longTime"),yt=Ut(Ne,"longDate");Ot=yn(ke(Ne,h.Long),[rt,yt]);break;case"full":const Pt=Ut(Ne,"fullTime"),Qe=Ut(Ne,"fullDate");Ot=yn(ke(Ne,h.Full),[Pt,Qe])}return Ot&&(Re[st][fe]=Ot),Ot}function yn(Ne,fe){return fe&&(Ne=Ne.replace(/\{([^}]+)}/g,function(st,Ot){return null!=fe&&Ot in fe?fe[Ot]:st})),Ne}function Xt(Ne,fe,st="-",Ot,Vt){let fn="";(Ne<0||Vt&&Ne<=0)&&(Vt?Ne=1-Ne:(Ne=-Ne,fn=st));let Un=String(Ne);for(;Un.length<fe;)Un="0"+Un;return Ot&&(Un=Un.slice(Un.length-fe)),fn+Un}function In(Ne,fe,st=0,Ot=!1,Vt=!1){return function(fn,Un){let Xe=function rn(Ne,fe){switch(Ne){case it.FullYear:return fe.getFullYear();case it.Month:return fe.getMonth();case it.Date:return fe.getDate();case it.Hours:return fe.getHours();case it.Minutes:return fe.getMinutes();case it.Seconds:return fe.getSeconds();case it.FractionalSeconds:return fe.getMilliseconds();case it.Day:return fe.getDay();default:throw new Error(`Unknown DateType value "${Ne}".`)}}(Ne,fn);if((st>0||Xe>-st)&&(Xe+=st),Ne===it.Hours)0===Xe&&-12===st&&(Xe=12);else if(Ne===it.FractionalSeconds)return function Gt(Ne,fe){return Xt(Ne,3).substring(0,fe)}(Xe,fe);const rt=Ke(Un,d.MinusSign);return Xt(Xe,fe,rt,Ot,Vt)}}function tn(Ne,fe,st=n.Format,Ot=!1){return function(Vt,fn){return function pn(Ne,fe,st,Ot,Vt,fn){switch(st){case Ct.Months:return function a(Ne,fe,st){const Ot=(0,e.cg1)(Ne),fn=te([Ot[e.wAp.MonthsFormat],Ot[e.wAp.MonthsStandalone]],fe);return te(fn,st)}(fe,Vt,Ot)[Ne.getMonth()];case Ct.Days:return function v(Ne,fe,st){const Ot=(0,e.cg1)(Ne),fn=te([Ot[e.wAp.DaysFormat],Ot[e.wAp.DaysStandalone]],fe);return te(fn,st)}(fe,Vt,Ot)[Ne.getDay()];case Ct.DayPeriods:const Un=Ne.getHours(),Xe=Ne.getMinutes();if(fn){const yt=function ht(Ne){const fe=(0,e.cg1)(Ne);return et(fe),(fe[e.wAp.ExtraData][2]||[]).map(Ot=>"string"==typeof Ot?pe(Ot):[pe(Ot[0]),pe(Ot[1])])}(fe),Pt=function Le(Ne,fe,st){const Ot=(0,e.cg1)(Ne);et(Ot);const fn=te([Ot[e.wAp.ExtraData][0],Ot[e.wAp.ExtraData][1]],fe)||[];return te(fn,st)||[]}(fe,Vt,Ot),Qe=yt.findIndex(Qt=>{if(Array.isArray(Qt)){const[sn,qt]=Qt,An=Un>=sn.hours&&Xe>=sn.minutes,Sn=Un<qt.hours||Un===qt.hours&&Xe<qt.minutes;if(sn.hours<qt.hours){if(An&&Sn)return!0}else if(An||Sn)return!0}else if(Qt.hours===Un&&Qt.minutes===Xe)return!0;return!1});if(-1!==Qe)return Pt[Qe]}return function B(Ne,fe,st){const Ot=(0,e.cg1)(Ne),fn=te([Ot[e.wAp.DayPeriodsFormat],Ot[e.wAp.DayPeriodsStandalone]],fe);return te(fn,st)}(fe,Vt,Ot)[Un<12?0:1];case Ct.Eras:return function C(Ne,fe){return te((0,e.cg1)(Ne)[e.wAp.Eras],fe)}(fe,Ot)[Ne.getFullYear()<=0?0:1];default:throw new Error(`unexpected translation type ${st}`)}}(Vt,fn,Ne,fe,st,Ot)}}function tt(Ne){return function(fe,st,Ot){const Vt=-1*Ot,fn=Ke(st,d.MinusSign),Un=Vt>0?Math.floor(Vt/60):Math.ceil(Vt/60);switch(Ne){case _t.Short:return(Vt>=0?"+":"")+Xt(Un,2,fn)+Xt(Math.abs(Vt%60),2,fn);case _t.ShortGMT:return"GMT"+(Vt>=0?"+":"")+Xt(Un,1,fn);case _t.Long:return"GMT"+(Vt>=0?"+":"")+Xt(Un,2,fn)+":"+Xt(Math.abs(Vt%60),2,fn);case _t.Extended:return 0===Ot?"Z":(Vt>=0?"+":"")+Xt(Un,2,fn)+":"+Xt(Math.abs(Vt%60),2,fn);default:throw new Error(`Unknown zone width "${Ne}"`)}}}!function(Ne){Ne[Ne.Short=0]="Short",Ne[Ne.ShortGMT=1]="ShortGMT",Ne[Ne.Long=2]="Long",Ne[Ne.Extended=3]="Extended"}(_t||(_t={})),function(Ne){Ne[Ne.FullYear=0]="FullYear",Ne[Ne.Month=1]="Month",Ne[Ne.Date=2]="Date",Ne[Ne.Hours=3]="Hours",Ne[Ne.Minutes=4]="Minutes",Ne[Ne.Seconds=5]="Seconds",Ne[Ne.FractionalSeconds=6]="FractionalSeconds",Ne[Ne.Day=7]="Day"}(it||(it={})),function(Ne){Ne[Ne.DayPeriods=0]="DayPeriods",Ne[Ne.Days=1]="Days",Ne[Ne.Months=2]="Months",Ne[Ne.Eras=3]="Eras"}(Ct||(Ct={}));function J(Ne){return Bt(Ne.getFullYear(),Ne.getMonth(),Ne.getDate()+(4-Ne.getDay()))}function oe(Ne,fe=!1){return function(st,Ot){let Vt;if(fe){const fn=new Date(st.getFullYear(),st.getMonth(),1).getDay()-1,Un=st.getDate();Vt=1+Math.floor((Un+fn)/7)}else{const fn=J(st),Un=function se(Ne){const fe=Bt(Ne,0,1).getDay();return Bt(Ne,0,1+(fe<=4?4:11)-fe)}(fn.getFullYear()),Xe=fn.getTime()-Un.getTime();Vt=1+Math.round(Xe/6048e5)}return Xt(Vt,Ne,Ke(Ot,d.MinusSign))}}function De(Ne,fe=!1){return function(st,Ot){return Xt(J(st).getFullYear(),Ne,Ke(Ot,d.MinusSign),fe)}}const Ye={};function ut(Ne,fe){Ne=Ne.replace(/:/g,"");const st=Date.parse("Jan 01, 1970 00:00:00 "+Ne)/6e4;return isNaN(st)?fe:st}function zt(Ne){return Ne instanceof Date&&!isNaN(Ne.valueOf())}const At=/^(\d+)?\.((\d+)(-(\d+))?)?$/;function zn(Ne,fe,st,Ot,Vt,fn,Un=!1){let Xe="",rt=!1;if(isFinite(Ne)){let yt=function ft(Ne){let Ot,Vt,fn,Un,Xe,fe=Math.abs(Ne)+"",st=0;for((Vt=fe.indexOf("."))>-1&&(fe=fe.replace(".","")),(fn=fe.search(/e/i))>0?(Vt<0&&(Vt=fn),Vt+=+fe.slice(fn+1),fe=fe.substring(0,fn)):Vt<0&&(Vt=fe.length),fn=0;"0"===fe.charAt(fn);fn++);if(fn===(Xe=fe.length))Ot=[0],Vt=1;else{for(Xe--;"0"===fe.charAt(Xe);)Xe--;for(Vt-=fn,Ot=[],Un=0;fn<=Xe;fn++,Un++)Ot[Un]=Number(fe.charAt(fn))}return Vt>22&&(Ot=Ot.splice(0,21),st=Vt-1,Vt=1),{digits:Ot,exponent:st,integerLen:Vt}}(Ne);Un&&(yt=function Be(Ne){if(0===Ne.digits[0])return Ne;const fe=Ne.digits.length-Ne.integerLen;return Ne.exponent?Ne.exponent+=2:(0===fe?Ne.digits.push(0,0):1===fe&&Ne.digits.push(0),Ne.integerLen+=2),Ne}(yt));let Pt=fe.minInt,Qe=fe.minFrac,Qt=fe.maxFrac;if(fn){const oi=fn.match(At);if(null===oi)throw new Error(`${fn} is not a valid digit info`);const xi=oi[1],Si=oi[3],ur=oi[5];null!=xi&&(Pt=Te(xi)),null!=Si&&(Qe=Te(Si)),null!=ur?Qt=Te(ur):null!=Si&&Qe>Qt&&(Qt=Qe)}!function re(Ne,fe,st){if(fe>st)throw new Error(`The minimum number of digits after fraction (${fe}) is higher than the maximum (${st}).`);let Ot=Ne.digits,Vt=Ot.length-Ne.integerLen;const fn=Math.min(Math.max(fe,Vt),st);let Un=fn+Ne.integerLen,Xe=Ot[Un];if(Un>0){Ot.splice(Math.max(Ne.integerLen,Un));for(let Qe=Un;Qe<Ot.length;Qe++)Ot[Qe]=0}else{Vt=Math.max(0,Vt),Ne.integerLen=1,Ot.length=Math.max(1,Un=fn+1),Ot[0]=0;for(let Qe=1;Qe<Un;Qe++)Ot[Qe]=0}if(Xe>=5)if(Un-1<0){for(let Qe=0;Qe>Un;Qe--)Ot.unshift(0),Ne.integerLen++;Ot.unshift(1),Ne.integerLen++}else Ot[Un-1]++;for(;Vt<Math.max(0,fn);Vt++)Ot.push(0);let rt=0!==fn;const yt=fe+Ne.integerLen,Pt=Ot.reduceRight(function(Qe,Qt,sn,qt){return Qt+=Qe,qt[sn]=Qt<10?Qt:Qt-10,rt&&(0===qt[sn]&&sn>=yt?qt.pop():rt=!1),Qt>=10?1:0},0);Pt&&(Ot.unshift(Pt),Ne.integerLen++)}(yt,Qe,Qt);let sn=yt.digits,qt=yt.integerLen;const An=yt.exponent;let Sn=[];for(rt=sn.every(oi=>!oi);qt<Pt;qt++)sn.unshift(0);for(;qt<0;qt++)sn.unshift(0);qt>0?Sn=sn.splice(qt,sn.length):(Sn=sn,sn=[0]);const Jn=[];for(sn.length>=fe.lgSize&&Jn.unshift(sn.splice(-fe.lgSize,sn.length).join(""));sn.length>fe.gSize;)Jn.unshift(sn.splice(-fe.gSize,sn.length).join(""));sn.length&&Jn.unshift(sn.join("")),Xe=Jn.join(Ke(st,Ot)),Sn.length&&(Xe+=Ke(st,Vt)+Sn.join("")),An&&(Xe+=Ke(st,d.Exponential)+"+"+An)}else Xe=Ke(st,d.Infinity);return Xe=Ne<0&&!rt?fe.negPre+Xe+fe.negSuf:fe.posPre+Xe+fe.posSuf,Xe}function Tn(Ne,fe,st,Ot,Vt){const Un=Ge(je(fe,he.Currency),Ke(fe,d.MinusSign));return Un.minFrac=function j(Ne){let fe;const st=$[Ne];return st&&(fe=st[2]),"number"==typeof fe?fe:2}(Ot),Un.maxFrac=Un.minFrac,zn(Ne,Un,fe,d.CurrencyGroup,d.CurrencyDecimal,Vt).replace("\xa4",st).replace("\xa4","").trim()}function Ge(Ne,fe="-"){const st={minInt:1,minFrac:0,maxFrac:0,posPre:"",posSuf:"",negPre:"",negSuf:"",gSize:0,lgSize:0},Ot=Ne.split(";"),Vt=Ot[0],fn=Ot[1],Un=-1!==Vt.indexOf(".")?Vt.split("."):[Vt.substring(0,Vt.lastIndexOf("0")+1),Vt.substring(Vt.lastIndexOf("0")+1)],Xe=Un[0],rt=Un[1]||"";st.posPre=Xe.substring(0,Xe.indexOf("#"));for(let Pt=0;Pt<rt.length;Pt++){const Qe=rt.charAt(Pt);"0"===Qe?st.minFrac=st.maxFrac=Pt+1:"#"===Qe?st.maxFrac=Pt+1:st.posSuf+=Qe}const yt=Xe.split(",");if(st.gSize=yt[1]?yt[1].length:0,st.lgSize=yt[2]||yt[1]?(yt[2]||yt[1]).length:0,fn){const Pt=Vt.length-st.posPre.length-st.posSuf.length,Qe=fn.indexOf("#");st.negPre=fn.substring(0,Qe).replace(/'/g,""),st.negSuf=fn.slice(Qe+Pt).replace(/'/g,"")}else st.negPre=fe+st.posPre,st.negSuf=st.posSuf;return st}function Te(Ne){const fe=parseInt(Ne);if(isNaN(fe))throw new Error("Invalid integer literal when parsing "+Ne);return fe}class pt{}function Lt(Ne,fe,st,Ot){let Vt=`=${Ne}`;if(fe.indexOf(Vt)>-1||(Vt=st.getPluralCategory(Ne,Ot),fe.indexOf(Vt)>-1))return Vt;if(fe.indexOf("other")>-1)return"other";throw new Error(`No plural message found for value "${Ne}"`)}pt.\u0275fac=function(fe){return new(fe||pt)},pt.\u0275prov=e.Yz7({token:pt,factory:function(fe){let st=null;return fe?st=new fe:(Ot=e.LFG(e.soG),st=new nn(Ot)),st;var Ot},providedIn:"root"});class nn extends pt{constructor(fe){super(),this.locale=fe}getPluralCategory(fe,st){switch(ve(st||this.locale)(fe)){case w.Zero:return"zero";case w.One:return"one";case w.Two:return"two";case w.Few:return"few";case w.Many:return"many";default:return"other"}}}function Wn(Ne,fe){fe=encodeURIComponent(fe);for(const st of Ne.split(";")){const Ot=st.indexOf("="),[Vt,fn]=-1==Ot?[st,""]:[st.slice(0,Ot),st.slice(Ot+1)];if(Vt.trim()===fe)return decodeURIComponent(fn)}return null}nn.\u0275fac=function(fe){return new(fe||nn)(e.LFG(e.soG))},nn.\u0275prov=e.Yz7({token:nn,factory:nn.\u0275fac});class ti{constructor(fe,st,Ot,Vt){this._iterableDiffers=fe,this._keyValueDiffers=st,this._ngEl=Ot,this._renderer=Vt,this._iterableDiffer=null,this._keyValueDiffer=null,this._initialClasses=[],this._rawClass=null}set klass(fe){this._removeClasses(this._initialClasses),this._initialClasses="string"==typeof fe?fe.split(/\s+/):[],this._applyClasses(this._initialClasses),this._applyClasses(this._rawClass)}set ngClass(fe){this._removeClasses(this._rawClass),this._applyClasses(this._initialClasses),this._iterableDiffer=null,this._keyValueDiffer=null,this._rawClass="string"==typeof fe?fe.split(/\s+/):fe,this._rawClass&&((0,e.sIi)(this._rawClass)?this._iterableDiffer=this._iterableDiffers.find(this._rawClass).create():this._keyValueDiffer=this._keyValueDiffers.find(this._rawClass).create())}ngDoCheck(){if(this._iterableDiffer){const fe=this._iterableDiffer.diff(this._rawClass);fe&&this._applyIterableChanges(fe)}else if(this._keyValueDiffer){const fe=this._keyValueDiffer.diff(this._rawClass);fe&&this._applyKeyValueChanges(fe)}}_applyKeyValueChanges(fe){fe.forEachAddedItem(st=>this._toggleClass(st.key,st.currentValue)),fe.forEachChangedItem(st=>this._toggleClass(st.key,st.currentValue)),fe.forEachRemovedItem(st=>{st.previousValue&&this._toggleClass(st.key,!1)})}_applyIterableChanges(fe){fe.forEachAddedItem(st=>{if("string"!=typeof st.item)throw new Error(`NgClass can only toggle CSS classes expressed as strings, got ${(0,e.AaK)(st.item)}`);this._toggleClass(st.item,!0)}),fe.forEachRemovedItem(st=>this._toggleClass(st.item,!1))}_applyClasses(fe){fe&&(Array.isArray(fe)||fe instanceof Set?fe.forEach(st=>this._toggleClass(st,!0)):Object.keys(fe).forEach(st=>this._toggleClass(st,!!fe[st])))}_removeClasses(fe){fe&&(Array.isArray(fe)||fe instanceof Set?fe.forEach(st=>this._toggleClass(st,!1)):Object.keys(fe).forEach(st=>this._toggleClass(st,!1)))}_toggleClass(fe,st){(fe=fe.trim())&&fe.split(/\s+/g).forEach(Ot=>{st?this._renderer.addClass(this._ngEl.nativeElement,Ot):this._renderer.removeClass(this._ngEl.nativeElement,Ot)})}}ti.\u0275fac=function(fe){return new(fe||ti)(e.Y36(e.ZZ4),e.Y36(e.aQg),e.Y36(e.SBq),e.Y36(e.Qsj))},ti.\u0275dir=e.lG2({type:ti,selectors:[["","ngClass",""]],inputs:{klass:["class","klass"],ngClass:"ngClass"},standalone:!0});class Mn{constructor(fe){this._viewContainerRef=fe,this.ngComponentOutlet=null}ngOnChanges(fe){const{_viewContainerRef:st,ngComponentOutletNgModule:Ot,ngComponentOutletNgModuleFactory:Vt}=this;if(st.clear(),this._componentRef=void 0,this.ngComponentOutlet){const fn=this.ngComponentOutletInjector||st.parentInjector;(fe.ngComponentOutletNgModule||fe.ngComponentOutletNgModuleFactory)&&(this._moduleRef&&this._moduleRef.destroy(),this._moduleRef=Ot?(0,e.Lck)(Ot,Ln(fn)):Vt?Vt.create(Ln(fn)):void 0),this._componentRef=st.createComponent(this.ngComponentOutlet,{index:st.length,injector:fn,ngModuleRef:this._moduleRef,projectableNodes:this.ngComponentOutletContent})}}ngOnDestroy(){this._moduleRef&&this._moduleRef.destroy()}}function Ln(Ne){return Ne.get(e.h0i).injector}Mn.\u0275fac=function(fe){return new(fe||Mn)(e.Y36(e.s_b))},Mn.\u0275dir=e.lG2({type:Mn,selectors:[["","ngComponentOutlet",""]],inputs:{ngComponentOutlet:"ngComponentOutlet",ngComponentOutletInjector:"ngComponentOutletInjector",ngComponentOutletContent:"ngComponentOutletContent",ngComponentOutletNgModule:"ngComponentOutletNgModule",ngComponentOutletNgModuleFactory:"ngComponentOutletNgModuleFactory"},standalone:!0,features:[e.TTD]});class an{constructor(fe,st,Ot,Vt){this.$implicit=fe,this.ngForOf=st,this.index=Ot,this.count=Vt}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}}class hn{constructor(fe,st,Ot){this._viewContainer=fe,this._template=st,this._differs=Ot,this._ngForOf=null,this._ngForOfDirty=!0,this._differ=null}set ngForOf(fe){this._ngForOf=fe,this._ngForOfDirty=!0}set ngForTrackBy(fe){this._trackByFn=fe}get ngForTrackBy(){return this._trackByFn}set ngForTemplate(fe){fe&&(this._template=fe)}ngDoCheck(){if(this._ngForOfDirty){this._ngForOfDirty=!1;const fe=this._ngForOf;!this._differ&&fe&&(this._differ=this._differs.find(fe).create(this.ngForTrackBy))}if(this._differ){const fe=this._differ.diff(this._ngForOf);fe&&this._applyChanges(fe)}}_applyChanges(fe){const st=this._viewContainer;fe.forEachOperation((Ot,Vt,fn)=>{if(null==Ot.previousIndex)st.createEmbeddedView(this._template,new an(Ot.item,this._ngForOf,-1,-1),null===fn?void 0:fn);else if(null==fn)st.remove(null===Vt?void 0:Vt);else if(null!==Vt){const Un=st.get(Vt);st.move(Un,fn),en(Un,Ot)}});for(let Ot=0,Vt=st.length;Ot<Vt;Ot++){const Un=st.get(Ot).context;Un.index=Ot,Un.count=Vt,Un.ngForOf=this._ngForOf}fe.forEachIdentityChange(Ot=>{en(st.get(Ot.currentIndex),Ot)})}static ngTemplateContextGuard(fe,st){return!0}}function en(Ne,fe){Ne.context.$implicit=fe.item}hn.\u0275fac=function(fe){return new(fe||hn)(e.Y36(e.s_b),e.Y36(e.Rgc),e.Y36(e.ZZ4))},hn.\u0275dir=e.lG2({type:hn,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"},standalone:!0});class Qn{constructor(fe,st){this._viewContainer=fe,this._context=new Ei,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=st}set ngIf(fe){this._context.$implicit=this._context.ngIf=fe,this._updateView()}set ngIfThen(fe){ha("ngIfThen",fe),this._thenTemplateRef=fe,this._thenViewRef=null,this._updateView()}set ngIfElse(fe){ha("ngIfElse",fe),this._elseTemplateRef=fe,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(fe,st){return!0}}Qn.\u0275fac=function(fe){return new(fe||Qn)(e.Y36(e.s_b),e.Y36(e.Rgc))},Qn.\u0275dir=e.lG2({type:Qn,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"},standalone:!0});class Ei{constructor(){this.$implicit=null,this.ngIf=null}}function ha(Ne,fe){if(fe&&!fe.createEmbeddedView)throw new Error(`${Ne} must be a TemplateRef, but received '${(0,e.AaK)(fe)}'.`)}class mi{constructor(fe,st){this._viewContainerRef=fe,this._templateRef=st,this._created=!1}create(){this._created=!0,this._viewContainerRef.createEmbeddedView(this._templateRef)}destroy(){this._created=!1,this._viewContainerRef.clear()}enforceState(fe){fe&&!this._created?this.create():!fe&&this._created&&this.destroy()}}class qi{constructor(){this._defaultUsed=!1,this._caseCount=0,this._lastCaseCheckIndex=0,this._lastCasesMatched=!1}set ngSwitch(fe){this._ngSwitch=fe,0===this._caseCount&&this._updateDefaultCases(!0)}_addCase(){return this._caseCount++}_addDefault(fe){this._defaultViews||(this._defaultViews=[]),this._defaultViews.push(fe)}_matchCase(fe){const st=fe==this._ngSwitch;return this._lastCasesMatched=this._lastCasesMatched||st,this._lastCaseCheckIndex++,this._lastCaseCheckIndex===this._caseCount&&(this._updateDefaultCases(!this._lastCasesMatched),this._lastCaseCheckIndex=0,this._lastCasesMatched=!1),st}_updateDefaultCases(fe){if(this._defaultViews&&fe!==this._defaultUsed){this._defaultUsed=fe;for(let st=0;st<this._defaultViews.length;st++)this._defaultViews[st].enforceState(fe)}}}qi.\u0275fac=function(fe){return new(fe||qi)},qi.\u0275dir=e.lG2({type:qi,selectors:[["","ngSwitch",""]],inputs:{ngSwitch:"ngSwitch"},standalone:!0});class Zi{constructor(fe,st,Ot){this.ngSwitch=Ot,Ot._addCase(),this._view=new mi(fe,st)}ngDoCheck(){this._view.enforceState(this.ngSwitch._matchCase(this.ngSwitchCase))}}Zi.\u0275fac=function(fe){return new(fe||Zi)(e.Y36(e.s_b),e.Y36(e.Rgc),e.Y36(qi,9))},Zi.\u0275dir=e.lG2({type:Zi,selectors:[["","ngSwitchCase",""]],inputs:{ngSwitchCase:"ngSwitchCase"},standalone:!0});class Za{constructor(fe,st,Ot){Ot._addDefault(new mi(fe,st))}}Za.\u0275fac=function(fe){return new(fe||Za)(e.Y36(e.s_b),e.Y36(e.Rgc),e.Y36(qi,9))},Za.\u0275dir=e.lG2({type:Za,selectors:[["","ngSwitchDefault",""]],standalone:!0});class It{constructor(fe){this._localization=fe,this._caseViews={}}set ngPlural(fe){this._switchValue=fe,this._updateView()}addCase(fe,st){this._caseViews[fe]=st}_updateView(){this._clearViews();const fe=Object.keys(this._caseViews),st=Lt(this._switchValue,fe,this._localization);this._activateView(this._caseViews[st])}_clearViews(){this._activeView&&this._activeView.destroy()}_activateView(fe){fe&&(this._activeView=fe,this._activeView.create())}}It.\u0275fac=function(fe){return new(fe||It)(e.Y36(pt))},It.\u0275dir=e.lG2({type:It,selectors:[["","ngPlural",""]],inputs:{ngPlural:"ngPlural"},standalone:!0});class Ft{constructor(fe,st,Ot,Vt){this.value=fe;const fn=!isNaN(Number(fe));Vt.addCase(fn?`=${fe}`:fe,new mi(Ot,st))}}Ft.\u0275fac=function(fe){return new(fe||Ft)(e.$8M("ngPluralCase"),e.Y36(e.Rgc),e.Y36(e.s_b),e.Y36(It,1))},Ft.\u0275dir=e.lG2({type:Ft,selectors:[["","ngPluralCase",""]],standalone:!0});class ln{constructor(fe,st,Ot){this._ngEl=fe,this._differs=st,this._renderer=Ot,this._ngStyle=null,this._differ=null}set ngStyle(fe){this._ngStyle=fe,!this._differ&&fe&&(this._differ=this._differs.find(fe).create())}ngDoCheck(){if(this._differ){const fe=this._differ.diff(this._ngStyle);fe&&this._applyChanges(fe)}}_setStyle(fe,st){const[Ot,Vt]=fe.split("."),fn=-1===Ot.indexOf("-")?void 0:e.JOm.DashCase;null!=st?this._renderer.setStyle(this._ngEl.nativeElement,Ot,Vt?`${st}${Vt}`:st,fn):this._renderer.removeStyle(this._ngEl.nativeElement,Ot,fn)}_applyChanges(fe){fe.forEachRemovedItem(st=>this._setStyle(st.key,null)),fe.forEachAddedItem(st=>this._setStyle(st.key,st.currentValue)),fe.forEachChangedItem(st=>this._setStyle(st.key,st.currentValue))}}ln.\u0275fac=function(fe){return new(fe||ln)(e.Y36(e.SBq),e.Y36(e.aQg),e.Y36(e.Qsj))},ln.\u0275dir=e.lG2({type:ln,selectors:[["","ngStyle",""]],inputs:{ngStyle:"ngStyle"},standalone:!0});class En{constructor(fe){this._viewContainerRef=fe,this._viewRef=null,this.ngTemplateOutletContext=null,this.ngTemplateOutlet=null,this.ngTemplateOutletInjector=null}ngOnChanges(fe){if(fe.ngTemplateOutlet||fe.ngTemplateOutletInjector){const st=this._viewContainerRef;if(this._viewRef&&st.remove(st.indexOf(this._viewRef)),this.ngTemplateOutlet){const{ngTemplateOutlet:Ot,ngTemplateOutletContext:Vt,ngTemplateOutletInjector:fn}=this;this._viewRef=st.createEmbeddedView(Ot,Vt,fn?{injector:fn}:void 0)}else this._viewRef=null}else this._viewRef&&fe.ngTemplateOutletContext&&this.ngTemplateOutletContext&&(this._viewRef.context=this.ngTemplateOutletContext)}}En.\u0275fac=function(fe){return new(fe||En)(e.Y36(e.s_b))},En.\u0275dir=e.lG2({type:En,selectors:[["","ngTemplateOutlet",""]],inputs:{ngTemplateOutletContext:"ngTemplateOutletContext",ngTemplateOutlet:"ngTemplateOutlet",ngTemplateOutletInjector:"ngTemplateOutletInjector"},standalone:!0,features:[e.TTD]});function Nn(Ne,fe){return new e.vHH(2100,!1)}const Ii=new class aa{createSubscription(fe,st){return fe.then(st,Ot=>{throw Ot})}dispose(fe){}},ea=new class li{createSubscription(fe,st){return fe.subscribe({next:st,error:Ot=>{throw Ot}})}dispose(fe){fe.unsubscribe()}};class Di{constructor(fe){this._latestValue=null,this._subscription=null,this._obj=null,this._strategy=null,this._ref=fe}ngOnDestroy(){this._subscription&&this._dispose(),this._ref=null}transform(fe){return this._obj?fe!==this._obj?(this._dispose(),this.transform(fe)):this._latestValue:(fe&&this._subscribe(fe),this._latestValue)}_subscribe(fe){this._obj=fe,this._strategy=this._selectStrategy(fe),this._subscription=this._strategy.createSubscription(fe,st=>this._updateLatestValue(fe,st))}_selectStrategy(fe){if((0,e.QGY)(fe))return Ii;if((0,e.F4k)(fe))return ea;throw Nn()}_dispose(){this._strategy.dispose(this._subscription),this._latestValue=null,this._subscription=null,this._obj=null}_updateLatestValue(fe,st){fe===this._obj&&(this._latestValue=st,this._ref.markForCheck())}}Di.\u0275fac=function(fe){return new(fe||Di)(e.Y36(e.sBO,16))},Di.\u0275pipe=e.Yjl({name:"async",type:Di,pure:!1,standalone:!0});class Ji{transform(fe){if(null==fe)return null;if("string"!=typeof fe)throw Nn();return fe.toLowerCase()}}Ji.\u0275fac=function(fe){return new(fe||Ji)},Ji.\u0275pipe=e.Yjl({name:"lowercase",type:Ji,pure:!0,standalone:!0});const ka=/(?:[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;class Yi{transform(fe){if(null==fe)return null;if("string"!=typeof fe)throw Nn();return fe.replace(ka,st=>st[0].toUpperCase()+st.slice(1).toLowerCase())}}Yi.\u0275fac=function(fe){return new(fe||Yi)},Yi.\u0275pipe=e.Yjl({name:"titlecase",type:Yi,pure:!0,standalone:!0});class Ha{transform(fe){if(null==fe)return null;if("string"!=typeof fe)throw Nn();return fe.toUpperCase()}}Ha.\u0275fac=function(fe){return new(fe||Ha)},Ha.\u0275pipe=e.Yjl({name:"uppercase",type:Ha,pure:!0,standalone:!0});const La=new e.OlP("DATE_PIPE_DEFAULT_TIMEZONE"),gr=new e.OlP("DATE_PIPE_DEFAULT_OPTIONS");class Sa{constructor(fe,st,Ot){this.locale=fe,this.defaultTimezone=st,this.defaultOptions=Ot}transform(fe,st,Ot,Vt){if(null==fe||""===fe||fe!=fe)return null;try{const fn=st??this.defaultOptions?.dateFormat??"mediumDate",Un=Ot??this.defaultOptions?.timezone??this.defaultTimezone??void 0;return un(fe,fn,Vt||this.locale,Un)}catch(fn){throw Nn(0,fn.message)}}}Sa.\u0275fac=function(fe){return new(fe||Sa)(e.Y36(e.soG,16),e.Y36(La,24),e.Y36(gr,24))},Sa.\u0275pipe=e.Yjl({name:"date",type:Sa,pure:!0,standalone:!0});const fa=/#/g;class Ki{constructor(fe){this._localization=fe}transform(fe,st,Ot){if(null==fe)return"";if("object"!=typeof st||null===st)throw Nn();return st[Lt(fe,Object.keys(st),this._localization,Ot)].replace(fa,fe.toString())}}Ki.\u0275fac=function(fe){return new(fe||Ki)(e.Y36(pt,16))},Ki.\u0275pipe=e.Yjl({name:"i18nPlural",type:Ki,pure:!0,standalone:!0});class xa{transform(fe,st){if(null==fe)return"";if("object"!=typeof st||"string"!=typeof fe)throw Nn();return st.hasOwnProperty(fe)?st[fe]:st.hasOwnProperty("other")?st.other:""}}xa.\u0275fac=function(fe){return new(fe||xa)},xa.\u0275pipe=e.Yjl({name:"i18nSelect",type:xa,pure:!0,standalone:!0});class ra{transform(fe){return JSON.stringify(fe,null,2)}}ra.\u0275fac=function(fe){return new(fe||ra)},ra.\u0275pipe=e.Yjl({name:"json",type:ra,pure:!1,standalone:!0});class za{constructor(fe){this.differs=fe,this.keyValues=[],this.compareFn=js}transform(fe,st=js){if(!fe||!(fe instanceof Map)&&"object"!=typeof fe)return null;this.differ||(this.differ=this.differs.find(fe).create());const Ot=this.differ.diff(fe),Vt=st!==this.compareFn;return Ot&&(this.keyValues=[],Ot.forEachItem(fn=>{this.keyValues.push(function fo(Ne,fe){return{key:Ne,value:fe}}(fn.key,fn.currentValue))})),(Ot||Vt)&&(this.keyValues.sort(st),this.compareFn=st),this.keyValues}}function js(Ne,fe){const st=Ne.key,Ot=fe.key;if(st===Ot)return 0;if(void 0===st)return 1;if(void 0===Ot)return-1;if(null===st)return 1;if(null===Ot)return-1;if("string"==typeof st&&"string"==typeof Ot)return st<Ot?-1:1;if("number"==typeof st&&"number"==typeof Ot)return st-Ot;if("boolean"==typeof st&&"boolean"==typeof Ot)return st<Ot?-1:1;const Vt=String(st),fn=String(Ot);return Vt==fn?0:Vt<fn?-1:1}za.\u0275fac=function(fe){return new(fe||za)(e.Y36(e.aQg,16))},za.\u0275pipe=e.Yjl({name:"keyvalue",type:za,pure:!1,standalone:!0});class is{constructor(fe){this._locale=fe}transform(fe,st,Ot){if(!Ta(fe))return null;Ot=Ot||this._locale;try{return function Mt(Ne,fe,st){return zn(Ne,Ge(je(fe,he.Decimal),Ke(fe,d.MinusSign)),fe,d.Group,d.Decimal,st)}(Is(fe),Ot,st)}catch(Vt){throw Nn(0,Vt.message)}}}is.\u0275fac=function(fe){return new(fe||is)(e.Y36(e.soG,16))},is.\u0275pipe=e.Yjl({name:"number",type:is,pure:!0,standalone:!0});class Qi{constructor(fe){this._locale=fe}transform(fe,st,Ot){if(!Ta(fe))return null;Ot=Ot||this._locale;try{return function Yn(Ne,fe,st){return zn(Ne,Ge(je(fe,he.Percent),Ke(fe,d.MinusSign)),fe,d.Group,d.Decimal,st,!0).replace(new RegExp("%","g"),Ke(fe,d.PercentSign))}(Is(fe),Ot,st)}catch(Vt){throw Nn(0,Vt.message)}}}Qi.\u0275fac=function(fe){return new(fe||Qi)(e.Y36(e.soG,16))},Qi.\u0275pipe=e.Yjl({name:"percent",type:Qi,pure:!0,standalone:!0});class Gr{constructor(fe,st="USD"){this._locale=fe,this._defaultCurrencyCode=st}transform(fe,st=this._defaultCurrencyCode,Ot="symbol",Vt,fn){if(!Ta(fe))return null;fn=fn||this._locale,"boolean"==typeof Ot&&(Ot=Ot?"symbol":"code");let Un=st||this._defaultCurrencyCode;"code"!==Ot&&(Un="symbol"===Ot||"symbol-narrow"===Ot?ee(Un,"symbol"===Ot?"wide":"narrow",fn):Ot);try{return Tn(Is(fe),fn,Un,st,Vt)}catch(Xe){throw Nn(0,Xe.message)}}}function Ta(Ne){return!(null==Ne||""===Ne||Ne!=Ne)}function Is(Ne){if("string"==typeof Ne&&!isNaN(Number(Ne)-parseFloat(Ne)))return Number(Ne);if("number"!=typeof Ne)throw new Error(`${Ne} is not a number`);return Ne}Gr.\u0275fac=function(fe){return new(fe||Gr)(e.Y36(e.soG,16),e.Y36(e.EJc,16))},Gr.\u0275pipe=e.Yjl({name:"currency",type:Gr,pure:!0,standalone:!0});class Ua{transform(fe,st,Ot){if(null==fe)return null;if(!this.supports(fe))throw Nn();return fe.slice(st,Ot)}supports(fe){return"string"==typeof fe||Array.isArray(fe)}}Ua.\u0275fac=function(fe){return new(fe||Ua)},Ua.\u0275pipe=e.Yjl({name:"slice",type:Ua,pure:!1,standalone:!0});class Ca{}Ca.\u0275fac=function(fe){return new(fe||Ca)},Ca.\u0275mod=e.oAB({type:Ca}),Ca.\u0275inj=e.cJS({});const vr="browser";function nr(Ne){return Ne===vr}function Pr(Ne){return"server"===Ne}new e.GfV("15.0.2");class Oa{}Oa.\u0275prov=(0,e.Yz7)({token:Oa,providedIn:"root",factory:()=>new Ss((0,e.LFG)(u),window)});class Ss{constructor(fe,st){this.document=fe,this.window=st,this.offset=()=>[0,0]}setOffset(fe){Array.isArray(fe)?this.offset=()=>fe:this.offset=fe}getScrollPosition(){return this.supportsScrolling()?[this.window.pageXOffset,this.window.pageYOffset]:[0,0]}scrollToPosition(fe){this.supportsScrolling()&&this.window.scrollTo(fe[0],fe[1])}scrollToAnchor(fe){if(!this.supportsScrolling())return;const st=function Os(Ne,fe){const st=Ne.getElementById(fe)||Ne.getElementsByName(fe)[0];if(st)return st;if("function"==typeof Ne.createTreeWalker&&Ne.body&&(Ne.body.createShadowRoot||Ne.body.attachShadow)){const Ot=Ne.createTreeWalker(Ne.body,NodeFilter.SHOW_ELEMENT);let Vt=Ot.currentNode;for(;Vt;){const fn=Vt.shadowRoot;if(fn){const Un=fn.getElementById(fe)||fn.querySelector(`[name="${fe}"]`);if(Un)return Un}Vt=Ot.nextNode()}}return null}(this.document,fe);st&&(this.scrollToElement(st),st.focus())}setHistoryScrollRestoration(fe){if(this.supportScrollRestoration()){const st=this.window.history;st&&st.scrollRestoration&&(st.scrollRestoration=fe)}}scrollToElement(fe){const st=fe.getBoundingClientRect(),Ot=st.left+this.window.pageXOffset,Vt=st.top+this.window.pageYOffset,fn=this.offset();this.window.scrollTo(Ot-fn[0],Vt-fn[1])}supportScrollRestoration(){try{if(!this.supportsScrolling())return!1;const fe=Ja(this.window.history)||Ja(Object.getPrototypeOf(this.window.history));return!(!fe||!fe.writable&&!fe.set)}catch{return!1}}supportsScrolling(){try{return!!this.window&&!!this.window.scrollTo&&"pageXOffset"in this.window}catch{return!1}}}function Ja(Ne){return Object.getOwnPropertyDescriptor(Ne,"scrollRestoration")}class yr{}function sa(Ne,fe){return ir(Ne)?new URL(Ne):new URL(Ne,fe.location.href)}function ir(Ne){return/^https?:\/\//.test(Ne)}function br(Ne){return ir(Ne)?new URL(Ne).hostname:Ne}function Va(Ne){return Ne.startsWith("/")?Ne.slice(1):Ne}const dn=Ne=>Ne.src,xt=new e.OlP("ImageLoader",{providedIn:"root",factory:()=>dn});function Nt(Ne,fe){return function(Ot){return function as(Ne){if("string"!=typeof Ne||""===Ne.trim())return!1;try{return new URL(Ne),!0}catch{return!1}}(Ot)||function Fn(Ne,fe){throw new e.vHH(2959,!1)}(),Ot=function kr(Ne){return Ne.endsWith("/")?Ne.slice(0,-1):Ne}(Ot),[{provide:xt,useValue:Un=>(ir(Un.src)&&function ri(Ne,fe){throw new e.vHH(2959,!1)}(0,Un.src),Ne(Ot,{...Un,src:Va(Un.src)}))}]}}Nt(function Xi(Ne,fe){let st="format=auto";return fe.width&&(st+=`,width=${fe.width}`),`${Ne}/cdn-cgi/image/${st}/${fe.src}`});Nt(function Rr(Ne,fe){let st="f_auto,q_auto";return fe.width&&(st+=`,w_${fe.width}`),`${Ne}/image/upload/${st}/${fe.src}`});Nt(function Ps(Ne,fe){let st="tr:q-auto";return fe.width&&(st+=`,w-${fe.width}`),`${Ne}/${st}/${fe.src}`});Nt(function Pn(Ne,fe){const st=new URL(`${Ne}/${fe.src}`);return st.searchParams.set("auto","format"),fe.width&&st.searchParams.set("w",fe.width.toString()),st.href});function Ti(Ne,fe=!0){return`The NgOptimizedImage directive ${fe?`(activated on an <img> element with the \`ngSrc="${Ne}"\`) `:""}has detected that`}function rr(Ne){throw new e.vHH(2958,`Unexpected invocation of the ${Ne} in the prod mode. Please make sure that the prod mode is enabled for production builds.`)}class gs{constructor(){this.images=new Map,this.alreadyWarned=new Set,this.window=null,this.observer=null,rr("LCP checker");const fe=(0,e.f3M)(u).defaultView;typeof fe<"u"&&typeof PerformanceObserver<"u"&&(this.window=fe,this.observer=this.initPerformanceObserver())}initPerformanceObserver(){const fe=new PerformanceObserver(st=>{const Ot=st.getEntries();if(0===Ot.length)return;const fn=Ot[Ot.length-1].element?.src??"";fn.startsWith("data:")||fn.startsWith("blob:")||this.images.get(fn)&&!this.alreadyWarned.has(fn)&&(this.alreadyWarned.add(fn),function Oo(Ne){const fe=Ti(Ne);console.warn((0,e.kuF)(2955,`${fe} this image is the Largest Contentful Paint (LCP) element but was not marked "priority". This image should be marked "priority" in order to prioritize its loading. To fix this, add the "priority" attribute.`))}(fn))});return fe.observe({type:"largest-contentful-paint",buffered:!0}),fe}registerImage(fe,st){!this.observer||this.images.set(sa(fe,this.window).href,st)}unregisterImage(fe){!this.observer||this.images.delete(sa(fe,this.window).href)}ngOnDestroy(){!this.observer||(this.observer.disconnect(),this.images.clear(),this.alreadyWarned.clear())}}gs.\u0275fac=function(fe){return new(fe||gs)},gs.\u0275prov=e.Yz7({token:gs,factory:gs.\u0275fac,providedIn:"root"});const $s=new Set(["localhost","127.0.0.1","0.0.0.0"]),kl=new e.OlP("PRECONNECT_CHECK_BLOCKLIST");class po{constructor(){this.document=(0,e.f3M)(u),this.preconnectLinks=null,this.alreadySeen=new Set,this.window=null,this.blocklist=new Set($s),rr("preconnect link checker");const fe=this.document.defaultView;typeof fe<"u"&&(this.window=fe);const st=(0,e.f3M)(kl,{optional:!0});st&&this.populateBlocklist(st)}populateBlocklist(fe){Array.isArray(fe)?kn(fe,st=>{this.blocklist.add(br(st))}):this.blocklist.add(br(fe))}assertPreconnect(fe,st){if(!this.window)return;const Ot=sa(fe,this.window);this.blocklist.has(Ot.hostname)||this.alreadySeen.has(Ot.origin)||(this.alreadySeen.add(Ot.origin),this.preconnectLinks||(this.preconnectLinks=this.queryPreconnectLinks()),this.preconnectLinks.has(Ot.origin)||console.warn((0,e.kuF)(2956,`${Ti(st)} there is no preconnect tag present for this image. Preconnecting to the origin(s) that serve priority images ensures that these images are delivered as soon as possible. To fix this, please add the following element into the <head> of the document:\n <link rel="preconnect" href="${Ot.origin}">`)))}queryPreconnectLinks(){const fe=new Set,Ot=Array.from(this.document.querySelectorAll("link[rel=preconnect]"));for(let Vt of Ot){const fn=sa(Vt.href,this.window);fe.add(fn.origin)}return fe}ngOnDestroy(){this.preconnectLinks?.clear(),this.alreadySeen.clear()}}function kn(Ne,fe){for(let st of Ne)Array.isArray(st)?kn(st,fe):fe(st)}po.\u0275fac=function(fe){return new(fe||po)},po.\u0275prov=e.Yz7({token:po,factory:po.\u0275fac,providedIn:"root"});const eo=new e.OlP("NG_OPTIMIZED_PRELOADED_IMAGES",{providedIn:"root",factory:()=>new Set});class sr{constructor(){this.preloadedImages=(0,e.f3M)(eo),this.document=(0,e.f3M)(u)}createPreloadLinkTag(fe,st,Ot,Vt){if(this.preloadedImages.has(st))return;this.preloadedImages.add(st);const fn=fe.createElement("link");fe.setAttribute(fn,"as","image"),fe.setAttribute(fn,"href",st),fe.setAttribute(fn,"rel","preload"),fe.setAttribute(fn,"fetchpriority","high"),Vt&&fe.setAttribute(fn,"imageSizes",Vt),Ot&&fe.setAttribute(fn,"imageSrcset",Ot),fe.appendChild(this.document.head,fn)}}sr.\u0275fac=function(fe){return new(fe||sr)},sr.\u0275prov=e.Yz7({token:sr,factory:sr.\u0275fac,providedIn:"root"});const Br=/^((\s*\d+w\s*(,|$)){1,})$/,Hn=[1,2],Wa={breakpoints:[16,32,48,64,96,128,256,384,640,750,828,1080,1200,1920,2048,3840]},ss=new e.OlP("ImageConfig",{providedIn:"root",factory:()=>Wa});class zs{constructor(){this.imageLoader=(0,e.f3M)(xt),this.config=function Po(Ne){let fe={};return Ne.breakpoints&&(fe.breakpoints=Ne.breakpoints.sort((st,Ot)=>st-Ot)),Object.assign({},Wa,Ne,fe)}((0,e.f3M)(ss)),this.renderer=(0,e.f3M)(e.Qsj),this.imgElement=(0,e.f3M)(e.SBq).nativeElement,this.injector=(0,e.f3M)(e.zs3),this.isServer=Pr((0,e.f3M)(e.Lbi)),this.preloadLinkChecker=(0,e.f3M)(sr),this.lcpObserver=null,this._renderedSrc=null,this._priority=!1,this._disableOptimizedSrcset=!1,this._fill=!1}set width(fe){this._width=to(fe)}get width(){return this._width}set height(fe){this._height=to(fe)}get height(){return this._height}set priority(fe){this._priority=Yr(fe)}get priority(){return this._priority}set disableOptimizedSrcset(fe){this._disableOptimizedSrcset=Yr(fe)}get disableOptimizedSrcset(){return this._disableOptimizedSrcset}set fill(fe){this._fill=Yr(fe)}get fill(){return this._fill}ngOnInit(){this.setHostAttributes()}setHostAttributes(){this.fill?this.sizes||(this.sizes="100vw"):(this.setHostAttribute("width",this.width.toString()),this.setHostAttribute("height",this.height.toString())),this.setHostAttribute("loading",this.getLoadingBehavior()),this.setHostAttribute("fetchpriority",this.getFetchPriority());const fe=this.getRewrittenSrc();let st;this.setHostAttribute("src",fe),this.sizes&&this.setHostAttribute("sizes",this.sizes),this.ngSrcset?st=this.getRewrittenSrcset():!this._disableOptimizedSrcset&&!this.srcset&&this.imageLoader!==dn&&(st=this.getAutomaticSrcset()),st&&this.setHostAttribute("srcset",st),this.isServer&&this.priority&&this.preloadLinkChecker.createPreloadLinkTag(this.renderer,fe,st,this.sizes)}ngOnChanges(fe){}getLoadingBehavior(){return this.priority||void 0===this.loading?this.priority?"eager":"lazy":this.loading}getFetchPriority(){return this.priority?"high":"auto"}getRewrittenSrc(){if(!this._renderedSrc){const fe={src:this.ngSrc};this._renderedSrc=this.imageLoader(fe)}return this._renderedSrc}getRewrittenSrcset(){const fe=Br.test(this.ngSrcset);return this.ngSrcset.split(",").filter(Ot=>""!==Ot).map(Ot=>{Ot=Ot.trim();const Vt=fe?parseFloat(Ot):parseFloat(Ot)*this.width;return`${this.imageLoader({src:this.ngSrc,width:Vt})} ${Ot}`}).join(", ")}getAutomaticSrcset(){return this.sizes?this.getResponsiveSrcset():this.getFixedSrcset()}getResponsiveSrcset(){const{breakpoints:fe}=this.config;let st=fe;return"100vw"===this.sizes?.trim()&&(st=fe.filter(Vt=>Vt>=640)),st.map(Vt=>`${this.imageLoader({src:this.ngSrc,width:Vt})} ${Vt}w`).join(", ")}getFixedSrcset(){return Hn.map(st=>`${this.imageLoader({src:this.ngSrc,width:this.width*st})} ${st}x`).join(", ")}ngOnDestroy(){}setHostAttribute(fe,st){this.renderer.setAttribute(this.imgElement,fe,st)}}function to(Ne){return"string"==typeof Ne?parseInt(Ne,10):Ne}function Yr(Ne){return null!=Ne&&"false"!=`${Ne}`}zs.\u0275fac=function(fe){return new(fe||zs)},zs.\u0275dir=e.lG2({type:zs,selectors:[["img","ngSrc",""]],hostVars:8,hostBindings:function(fe,st){2&fe&&e.Udp("position",st.fill?"absolute":null)("width",st.fill?"100%":null)("height",st.fill?"100%":null)("inset",st.fill?"0px":null)},inputs:{ngSrc:"ngSrc",ngSrcset:"ngSrcset",sizes:"sizes",width:"width",height:"height",loading:"loading",priority:"priority",disableOptimizedSrcset:"disableOptimizedSrcset",fill:"fill",src:"src",srcset:"srcset"},standalone:!0,features:[e.TTD]})},8987:(Ue,q,m)=>{"use strict";m.d(q,{JF:()=>tt,LE:()=>Q,TP:()=>C,eN:()=>L});var e=m(4666),t=m(2560),_=m(745),E=m(833),s=m(3853),D=m(116),u=m(635);class k{}class p{}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(oe=>{const De=oe.indexOf(":");if(De>0){const Ye=oe.slice(0,De),Dt=Ye.toLowerCase(),ut=oe.slice(De+1).trim();this.maybeSetNormalizedName(Ye,Dt),this.headers.has(Dt)?this.headers.get(Dt).push(ut):this.headers.set(Dt,[ut])}})}:()=>{this.headers=new Map,Object.keys(J).forEach(oe=>{let De=J[oe];const Ye=oe.toLowerCase();"string"==typeof De&&(De=[De]),De.length>0&&(this.headers.set(Ye,De),this.maybeSetNormalizedName(oe,Ye))})}:this.headers=new Map}has(J){return this.init(),this.headers.has(J.toLowerCase())}get(J){this.init();const oe=this.headers.get(J.toLowerCase());return oe&&oe.length>0?oe[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(J){return this.init(),this.headers.get(J.toLowerCase())||null}append(J,oe){return this.clone({name:J,value:oe,op:"a"})}set(J,oe){return this.clone({name:J,value:oe,op:"s"})}delete(J,oe){return this.clone({name:J,value:oe,op:"d"})}maybeSetNormalizedName(J,oe){this.normalizedNames.has(oe)||this.normalizedNames.set(oe,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(oe=>{this.headers.set(oe,J.headers.get(oe)),this.normalizedNames.set(oe,J.normalizedNames.get(oe))})}clone(J){const oe=new S;return oe.lazyInit=this.lazyInit&&this.lazyInit instanceof S?this.lazyInit:this,oe.lazyUpdate=(this.lazyUpdate||[]).concat([J]),oe}applyUpdate(J){const oe=J.name.toLowerCase();switch(J.op){case"a":case"s":let De=J.value;if("string"==typeof De&&(De=[De]),0===De.length)return;this.maybeSetNormalizedName(J.name,oe);const Ye=("a"===J.op?this.headers.get(oe):void 0)||[];Ye.push(...De),this.headers.set(oe,Ye);break;case"d":const Dt=J.value;if(Dt){let ut=this.headers.get(oe);if(!ut)return;ut=ut.filter(ze=>-1===Dt.indexOf(ze)),0===ut.length?(this.headers.delete(oe),this.normalizedNames.delete(oe)):this.headers.set(oe,ut)}else this.headers.delete(oe),this.normalizedNames.delete(oe)}}forEach(J){this.init(),Array.from(this.normalizedNames.keys()).forEach(oe=>J(this.normalizedNames.get(oe),this.headers.get(oe)))}}class P{encodeKey(J){return W(J)}encodeValue(J){return W(J)}decodeKey(J){return decodeURIComponent(J)}decodeValue(J){return decodeURIComponent(J)}}const z=/%(\d[a-f0-9])/gi,I={40:"@","3A":":",24:"$","2C":",","3B":";","3D":"=","3F":"?","2F":"/"};function W(se){return encodeURIComponent(se).replace(z,(J,oe)=>I[oe]??J)}function Z(se){return`${se}`}class Q{constructor(J={}){if(this.updates=null,this.cloneFrom=null,this.encoder=J.encoder||new P,J.fromString){if(J.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=function M(se,J){const oe=new Map;return se.length>0&&se.replace(/^\?/,"").split("&").forEach(Ye=>{const Dt=Ye.indexOf("="),[ut,ze]=-1==Dt?[J.decodeKey(Ye),""]:[J.decodeKey(Ye.slice(0,Dt)),J.decodeValue(Ye.slice(Dt+1))],Me=oe.get(ut)||[];Me.push(ze),oe.set(ut,Me)}),oe}(J.fromString,this.encoder)}else J.fromObject?(this.map=new Map,Object.keys(J.fromObject).forEach(oe=>{const De=J.fromObject[oe],Ye=Array.isArray(De)?De.map(Z):[Z(De)];this.map.set(oe,Ye)})):this.map=null}has(J){return this.init(),this.map.has(J)}get(J){this.init();const oe=this.map.get(J);return oe?oe[0]:null}getAll(J){return this.init(),this.map.get(J)||null}keys(){return this.init(),Array.from(this.map.keys())}append(J,oe){return this.clone({param:J,value:oe,op:"a"})}appendAll(J){const oe=[];return Object.keys(J).forEach(De=>{const Ye=J[De];Array.isArray(Ye)?Ye.forEach(Dt=>{oe.push({param:De,value:Dt,op:"a"})}):oe.push({param:De,value:Ye,op:"a"})}),this.clone(oe)}set(J,oe){return this.clone({param:J,value:oe,op:"s"})}delete(J,oe){return this.clone({param:J,value:oe,op:"d"})}toString(){return this.init(),this.keys().map(J=>{const oe=this.encoder.encodeKey(J);return this.map.get(J).map(De=>oe+"="+this.encoder.encodeValue(De)).join("&")}).filter(J=>""!==J).join("&")}clone(J){const oe=new Q({encoder:this.encoder});return oe.cloneFrom=this.cloneFrom||this,oe.updates=(this.updates||[]).concat(J),oe}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 oe=("a"===J.op?this.map.get(J.param):void 0)||[];oe.push(Z(J.value)),this.map.set(J.param,oe);break;case"d":if(void 0===J.value){this.map.delete(J.param);break}{let De=this.map.get(J.param)||[];const Ye=De.indexOf(Z(J.value));-1!==Ye&&De.splice(Ye,1),De.length>0?this.map.set(J.param,De):this.map.delete(J.param)}}}),this.cloneFrom=this.updates=null)}}class ae{constructor(){this.map=new Map}set(J,oe){return this.map.set(J,oe),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 ce(se){return typeof ArrayBuffer<"u"&&se instanceof ArrayBuffer}function ye(se){return typeof Blob<"u"&&se instanceof Blob}function ue(se){return typeof FormData<"u"&&se instanceof FormData}class he{constructor(J,oe,De,Ye){let Dt;if(this.url=oe,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=J.toUpperCase(),function _e(se){switch(se){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}(this.method)||Ye?(this.body=void 0!==De?De:null,Dt=Ye):Dt=De,Dt&&(this.reportProgress=!!Dt.reportProgress,this.withCredentials=!!Dt.withCredentials,Dt.responseType&&(this.responseType=Dt.responseType),Dt.headers&&(this.headers=Dt.headers),Dt.context&&(this.context=Dt.context),Dt.params&&(this.params=Dt.params)),this.headers||(this.headers=new S),this.context||(this.context=new ae),this.params){const ut=this.params.toString();if(0===ut.length)this.urlWithParams=oe;else{const ze=oe.indexOf("?"),Me=-1===ze?"?":ze<oe.length-1?"&":"";this.urlWithParams=oe+Me+ut}}else this.params=new Q,this.urlWithParams=oe}serializeBody(){return null===this.body?null:ce(this.body)||ye(this.body)||ue(this.body)||function $(se){return typeof URLSearchParams<"u"&&se instanceof URLSearchParams}(this.body)||"string"==typeof this.body?this.body:this.body instanceof Q?this.body.toString():"object"==typeof this.body||"boolean"==typeof this.body||Array.isArray(this.body)?JSON.stringify(this.body):this.body.toString()}detectContentTypeHeader(){return null===this.body||ue(this.body)?null:ye(this.body)?this.body.type||null:ce(this.body)?null:"string"==typeof this.body?"text/plain":this.body instanceof Q?"application/x-www-form-urlencoded;charset=UTF-8":"object"==typeof this.body||"number"==typeof this.body||"boolean"==typeof this.body?"application/json":null}clone(J={}){const oe=J.method||this.method,De=J.url||this.url,Ye=J.responseType||this.responseType,Dt=void 0!==J.body?J.body:this.body,ut=void 0!==J.withCredentials?J.withCredentials:this.withCredentials,ze=void 0!==J.reportProgress?J.reportProgress:this.reportProgress;let Me=J.headers||this.headers,Ce=J.params||this.params;const Je=J.context??this.context;return void 0!==J.setHeaders&&(Me=Object.keys(J.setHeaders).reduce((zt,At)=>zt.set(At,J.setHeaders[At]),Me)),J.setParams&&(Ce=Object.keys(J.setParams).reduce((zt,At)=>zt.set(At,J.setParams[At]),Ce)),new he(oe,De,Dt,{params:Ce,headers:Me,context:Je,reportProgress:ze,responseType:Ye,withCredentials:ut})}}var w,se;(se=w||(w={}))[se.Sent=0]="Sent",se[se.UploadProgress=1]="UploadProgress",se[se.ResponseHeader=2]="ResponseHeader",se[se.DownloadProgress=3]="DownloadProgress",se[se.Response=4]="Response",se[se.User=5]="User";class n{constructor(J,oe=200,De="OK"){this.headers=J.headers||new S,this.status=void 0!==J.status?J.status:oe,this.statusText=J.statusText||De,this.url=J.url||null,this.ok=this.status>=200&&this.status<300}}class o extends n{constructor(J={}){super(J),this.type=w.ResponseHeader}clone(J={}){return new o({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 h extends n{constructor(J={}){super(J),this.type=w.Response,this.body=void 0!==J.body?J.body:null}clone(J={}){return new h({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 d extends n{constructor(J){super(J,0,"Unknown Error"),this.name="HttpErrorResponse",this.ok=!1,this.status>=200&&this.status<300?this.message=`Http failure during parsing for ${J.url||"(unknown url)"}`:this.message=`Http failure response for ${J.url||"(unknown url)"}: ${J.status} ${J.statusText}`,this.error=J.error||null}}function y(se,J){return{body:J,headers:se.headers,context:se.context,observe:se.observe,params:se.params,reportProgress:se.reportProgress,responseType:se.responseType,withCredentials:se.withCredentials}}class L{constructor(J){this.handler=J}request(J,oe,De={}){let Ye;if(J instanceof he)Ye=J;else{let ze,Me;ze=De.headers instanceof S?De.headers:new S(De.headers),De.params&&(Me=De.params instanceof Q?De.params:new Q({fromObject:De.params})),Ye=new he(J,oe,void 0!==De.body?De.body:null,{headers:ze,context:De.context,params:Me,reportProgress:De.reportProgress,responseType:De.responseType||"json",withCredentials:De.withCredentials})}const Dt=(0,_.of)(Ye).pipe((0,s.b)(ze=>this.handler.handle(ze)));if(J instanceof he||"events"===De.observe)return Dt;const ut=Dt.pipe((0,D.h)(ze=>ze instanceof h));switch(De.observe||"body"){case"body":switch(Ye.responseType){case"arraybuffer":return ut.pipe((0,u.U)(ze=>{if(null!==ze.body&&!(ze.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return ze.body}));case"blob":return ut.pipe((0,u.U)(ze=>{if(null!==ze.body&&!(ze.body instanceof Blob))throw new Error("Response is not a Blob.");return ze.body}));case"text":return ut.pipe((0,u.U)(ze=>{if(null!==ze.body&&"string"!=typeof ze.body)throw new Error("Response is not a string.");return ze.body}));default:return ut.pipe((0,u.U)(ze=>ze.body))}case"response":return ut;default:throw new Error(`Unreachable: unhandled observe type ${De.observe}}`)}}delete(J,oe={}){return this.request("DELETE",J,oe)}get(J,oe={}){return this.request("GET",J,oe)}head(J,oe={}){return this.request("HEAD",J,oe)}jsonp(J,oe){return this.request("JSONP",J,{params:(new Q).append(oe,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(J,oe={}){return this.request("OPTIONS",J,oe)}patch(J,oe,De={}){return this.request("PATCH",J,y(De,oe))}post(J,oe,De={}){return this.request("POST",J,y(De,oe))}put(J,oe,De={}){return this.request("PUT",J,y(De,oe))}}function B(se,J){return J(se)}function v(se,J){return(oe,De)=>J.intercept(oe,{handle:Ye=>se(Ye,De)})}L.\u0275fac=function(J){return new(J||L)(t.LFG(k))},L.\u0275prov=t.Yz7({token:L,factory:L.\u0275fac});const C=new t.OlP("HTTP_INTERCEPTORS"),N=new t.OlP("HTTP_INTERCEPTOR_FNS");function F(){let se=null;return(J,oe)=>(null===se&&(se=((0,t.f3M)(C,{optional:!0})??[]).reduceRight(v,B)),se(J,oe))}class X extends k{constructor(J,oe){super(),this.backend=J,this.injector=oe,this.chain=null}handle(J){if(null===this.chain){const oe=Array.from(new Set(this.injector.get(N)));this.chain=oe.reduceRight((De,Ye)=>function a(se,J,oe){return(De,Ye)=>oe.runInContext(()=>J(De,Dt=>se(Dt,Ye)))}(De,Ye,this.injector),B)}return this.chain(J,oe=>this.backend.handle(oe))}}X.\u0275fac=function(J){return new(J||X)(t.LFG(p),t.LFG(t.lqb))},X.\u0275prov=t.Yz7({token:X,factory:X.\u0275fac});let ke,Fe=0;class Ze{}function Ie(){return"object"==typeof window?window:{}}class ve{constructor(J,oe){this.callbackMap=J,this.document=oe,this.resolvedPromise=Promise.resolve()}nextCallback(){return"ng_jsonp_callback_"+Fe++}handle(J){if("JSONP"!==J.method)throw new Error("JSONP requests must use JSONP request method.");if("json"!==J.responseType)throw new Error("JSONP requests must use Json response type.");if(J.headers.keys().length>0)throw new Error("JSONP requests do not support headers.");return new E.y(oe=>{const De=this.nextCallback(),Ye=J.urlWithParams.replace(/=JSONP_CALLBACK(&|$)/,`=${De}$1`),Dt=this.document.createElement("script");Dt.src=Ye;let ut=null,ze=!1;this.callbackMap[De]=zt=>{delete this.callbackMap[De],ut=zt,ze=!0};const Me=()=>{Dt.parentNode&&Dt.parentNode.removeChild(Dt),delete this.callbackMap[De]};return Dt.addEventListener("load",zt=>{this.resolvedPromise.then(()=>{Me(),ze?(oe.next(new h({body:ut,status:200,statusText:"OK",url:Ye})),oe.complete()):oe.error(new d({url:Ye,status:0,statusText:"JSONP Error",error:new Error("JSONP injected script did not invoke callback.")}))})}),Dt.addEventListener("error",zt=>{Me(),oe.error(new d({error:zt,status:0,statusText:"JSONP Error",url:Ye}))}),this.document.body.appendChild(Dt),oe.next({type:w.Sent}),()=>{ze||this.removeListeners(Dt),Me()}})}removeListeners(J){ke||(ke=this.document.implementation.createHTMLDocument()),ke.adoptNode(J)}}function et(se,J){return"JSONP"===se.method?(0,t.f3M)(ve).handle(se):J(se)}ve.\u0275fac=function(J){return new(J||ve)(t.LFG(Ze),t.LFG(e.K0))},ve.\u0275prov=t.Yz7({token:ve,factory:ve.\u0275fac});class ht{constructor(J){this.injector=J}intercept(J,oe){return this.injector.runInContext(()=>et(J,De=>oe.handle(De)))}}ht.\u0275fac=function(J){return new(J||ht)(t.LFG(t.lqb))},ht.\u0275prov=t.Yz7({token:ht,factory:ht.\u0275fac});const Le=/^\)\]\}',?\n/;class te{constructor(J){this.xhrFactory=J}handle(J){if("JSONP"===J.method)throw new Error("Attempted to construct Jsonp request without HttpClientJsonpModule installed.");return new E.y(oe=>{const De=this.xhrFactory.build();if(De.open(J.method,J.urlWithParams),J.withCredentials&&(De.withCredentials=!0),J.headers.forEach((At,Tt)=>De.setRequestHeader(At,Tt.join(","))),J.headers.has("Accept")||De.setRequestHeader("Accept","application/json, text/plain, */*"),!J.headers.has("Content-Type")){const At=J.detectContentTypeHeader();null!==At&&De.setRequestHeader("Content-Type",At)}if(J.responseType){const At=J.responseType.toLowerCase();De.responseType="json"!==At?At:"text"}const Ye=J.serializeBody();let Dt=null;const ut=()=>{if(null!==Dt)return Dt;const At=De.statusText||"OK",Tt=new S(De.getAllResponseHeaders()),Ht=function Ae(se){return"responseURL"in se&&se.responseURL?se.responseURL:/^X-Request-URL:/m.test(se.getAllResponseHeaders())?se.getResponseHeader("X-Request-URL"):null}(De)||J.url;return Dt=new o({headers:Tt,status:De.status,statusText:At,url:Ht}),Dt},ze=()=>{let{headers:At,status:Tt,statusText:Ht,url:He}=ut(),$e=null;204!==Tt&&($e=typeof De.response>"u"?De.responseText:De.response),0===Tt&&(Tt=$e?200:0);let $t=Tt>=200&&Tt<300;if("json"===J.responseType&&"string"==typeof $e){const Rt=$e;$e=$e.replace(Le,"");try{$e=""!==$e?JSON.parse($e):null}catch(Jt){$e=Rt,$t&&($t=!1,$e={error:Jt,text:$e})}}$t?(oe.next(new h({body:$e,headers:At,status:Tt,statusText:Ht,url:He||void 0})),oe.complete()):oe.error(new d({error:$e,headers:At,status:Tt,statusText:Ht,url:He||void 0}))},Me=At=>{const{url:Tt}=ut(),Ht=new d({error:At,status:De.status||0,statusText:De.statusText||"Unknown Error",url:Tt||void 0});oe.error(Ht)};let Ce=!1;const Je=At=>{Ce||(oe.next(ut()),Ce=!0);let Tt={type:w.DownloadProgress,loaded:At.loaded};At.lengthComputable&&(Tt.total=At.total),"text"===J.responseType&&!!De.responseText&&(Tt.partialText=De.responseText),oe.next(Tt)},zt=At=>{let Tt={type:w.UploadProgress,loaded:At.loaded};At.lengthComputable&&(Tt.total=At.total),oe.next(Tt)};return De.addEventListener("load",ze),De.addEventListener("error",Me),De.addEventListener("timeout",Me),De.addEventListener("abort",Me),J.reportProgress&&(De.addEventListener("progress",Je),null!==Ye&&De.upload&&De.upload.addEventListener("progress",zt)),De.send(Ye),oe.next({type:w.Sent}),()=>{De.removeEventListener("error",Me),De.removeEventListener("abort",Me),De.removeEventListener("load",ze),De.removeEventListener("timeout",Me),J.reportProgress&&(De.removeEventListener("progress",Je),null!==Ye&&De.upload&&De.upload.removeEventListener("progress",zt)),De.readyState!==De.DONE&&De.abort()}})}}te.\u0275fac=function(J){return new(J||te)(t.LFG(e.JF))},te.\u0275prov=t.Yz7({token:te,factory:te.\u0275fac});const pe=new t.OlP("XSRF_ENABLED"),ee="XSRF-TOKEN",H=new t.OlP("XSRF_COOKIE_NAME",{providedIn:"root",factory:()=>ee}),j="X-XSRF-TOKEN",Oe=new t.OlP("XSRF_HEADER_NAME",{providedIn:"root",factory:()=>j});class Re{}class le{constructor(J,oe,De){this.doc=J,this.platform=oe,this.cookieName=De,this.lastCookieString="",this.lastToken=null,this.parseCount=0}getToken(){if("server"===this.platform)return null;const J=this.doc.cookie||"";return J!==this.lastCookieString&&(this.parseCount++,this.lastToken=(0,e.Mx)(J,this.cookieName),this.lastCookieString=J),this.lastToken}}function _t(se,J){const oe=se.url.toLowerCase();if(!(0,t.f3M)(pe)||"GET"===se.method||"HEAD"===se.method||oe.startsWith("http://")||oe.startsWith("https://"))return J(se);const De=(0,t.f3M)(Re).getToken(),Ye=(0,t.f3M)(Oe);return null!=De&&!se.headers.has(Ye)&&(se=se.clone({headers:se.headers.set(Ye,De)})),J(se)}le.\u0275fac=function(J){return new(J||le)(t.LFG(e.K0),t.LFG(t.Lbi),t.LFG(H))},le.\u0275prov=t.Yz7({token:le,factory:le.\u0275fac});class it{constructor(J){this.injector=J}intercept(J,oe){return this.injector.runInContext(()=>_t(J,De=>oe.handle(De)))}}var Ct;function un(se,J){return{\u0275kind:se,\u0275providers:J}}it.\u0275fac=function(J){return new(J||it)(t.LFG(t.lqb))},it.\u0275prov=t.Yz7({token:it,factory:it.\u0275fac}),function(se){se[se.Interceptors=0]="Interceptors",se[se.LegacyInterceptors=1]="LegacyInterceptors",se[se.CustomXsrfConfiguration=2]="CustomXsrfConfiguration",se[se.NoXsrfProtection=3]="NoXsrfProtection",se[se.JsonpSupport=4]="JsonpSupport",se[se.RequestsMadeViaParent=5]="RequestsMadeViaParent"}(Ct||(Ct={}));const yn=new t.OlP("LEGACY_INTERCEPTOR_FN");function Gt({cookieName:se,headerName:J}){const oe=[];return void 0!==se&&oe.push({provide:H,useValue:se}),void 0!==J&&oe.push({provide:Oe,useValue:J}),un(Ct.CustomXsrfConfiguration,oe)}class pn{static disable(){return{ngModule:pn,providers:[un(Ct.NoXsrfProtection,[{provide:pe,useValue:!1}]).\u0275providers]}}static withOptions(J={}){return{ngModule:pn,providers:Gt(J).\u0275providers}}}pn.\u0275fac=function(J){return new(J||pn)},pn.\u0275mod=t.oAB({type:pn}),pn.\u0275inj=t.cJS({providers:[it,{provide:C,useExisting:it,multi:!0},{provide:Re,useClass:le},Gt({cookieName:ee,headerName:j}).\u0275providers,{provide:pe,useValue:!0}]});class tt{}tt.\u0275fac=function(J){return new(J||tt)},tt.\u0275mod=t.oAB({type:tt}),tt.\u0275inj=t.cJS({providers:[function Bt(...se){const J=[L,te,X,{provide:k,useExisting:X},{provide:p,useExisting:te},{provide:N,useValue:_t,multi:!0},{provide:pe,useValue:!0},{provide:Re,useClass:le}];for(const oe of se)J.push(...oe.\u0275providers);return(0,t.MR2)(J)}(function Xt(){return un(Ct.LegacyInterceptors,[{provide:yn,useFactory:F},{provide:N,useExisting:yn,multi:!0}])}(),Gt({cookieName:ee,headerName:j}))]});class vt{}vt.\u0275fac=function(J){return new(J||vt)},vt.\u0275mod=t.oAB({type:vt}),vt.\u0275inj=t.cJS({providers:[function rn(){return un(Ct.JsonpSupport,[ve,{provide:Ze,useFactory:Ie},{provide:N,useValue:et,multi:!0}])}().\u0275providers]})},2560:(Ue,q,m)=>{"use strict";m.d(q,{$8M:()=>yl,$Z:()=>Ih,AA_:()=>d3,AFp:()=>Cm,ALo:()=>H_,AaK:()=>k,AcB:()=>ne,AsE:()=>tu,BQk:()=>Vh,CHM:()=>eo,CRH:()=>em,CZH:()=>w2,CqO:()=>Wf,D6c:()=>x8,DdM:()=>L_,Dn7:()=>U_,DyG:()=>Rn,E6H:()=>vm,EJc:()=>zg,EiD:()=>nh,EpF:()=>v4,F$t:()=>x4,F4k:()=>Vf,FYo:()=>hd,FiY:()=>B2,G48:()=>Hm,GSi:()=>kt,Gf:()=>J_,GfV:()=>dh,GkF:()=>g4,Gpc:()=>A,Gre:()=>Zs,HOy:()=>y1,Hsn:()=>Qf,IIB:()=>Rg,Ikx:()=>Ds,JOm:()=>z2,JVY:()=>T0,JZr:()=>W,Jf7:()=>K0,KtG:()=>sr,L6J:()=>bm,L6k:()=>k3,LAX:()=>ju,LFG:()=>vt,LVF:()=>Ng,Lbi:()=>wp,Lck:()=>_s,MAs:()=>f4,MGl:()=>Gh,MMx:()=>Ol,MR2:()=>s1,NdJ:()=>Kh,O4$:()=>Ot,OlP:()=>va,Oqu:()=>Oc,P3R:()=>P0,PXZ:()=>$g,PiD:()=>qc,Q6J:()=>p4,QGY:()=>Wh,QP$:()=>Bn,QbO:()=>Fg,Qsj:()=>U0,R0b:()=>sc,RDi:()=>S3,Rgc:()=>t3,SBq:()=>Ac,Sil:()=>o3,Suo:()=>$_,TTD:()=>Ja,TgZ:()=>eu,Tol:()=>O4,Udp:()=>S4,VKq:()=>S_,W1O:()=>G6,WFA:()=>y4,WLB:()=>vp,X6Q:()=>r8,XFs:()=>ee,Xek:()=>gm,Xpm:()=>zn,Xts:()=>er,Y36:()=>wc,YKP:()=>Pa,YNc:()=>Uf,Yjl:()=>Te,Yz7:()=>Ke,Z0I:()=>Ze,ZZ4:()=>I1,_Bn:()=>Vr,_UZ:()=>m4,_Vd:()=>d1,_c5:()=>b8,_uU:()=>es,aQ5:()=>Ee,aQg:()=>L1,ahi:()=>B1,c2e:()=>_u,cJS:()=>Ve,cg1:()=>Sd,d8E:()=>fr,dDg:()=>l3,dqk:()=>_t,eBb:()=>R3,eFA:()=>o_,ekj:()=>Ri,eoX:()=>mu,f3M:()=>se,g9A:()=>Em,h0i:()=>ua,hGG:()=>c3,hYB:()=>M4,hij:()=>wl,i9L:()=>at,iGM:()=>i3,ifc:()=>zt,ip1:()=>xm,jDz:()=>Pl,kEZ:()=>O_,kL8:()=>au,kcU:()=>fn,kuF:()=>Q,lG2:()=>re,lcZ:()=>z_,lnq:()=>Gs,lqb:()=>tl,lri:()=>Sm,mCW:()=>td,n4l:()=>Me,n5z:()=>jo,n_E:()=>bp,oAB:()=>Ge,oJD:()=>L0,oxw:()=>Zf,pB0:()=>qu,pfw:()=>Bg,q3G:()=>el,qLn:()=>El,qOj:()=>o4,qZA:()=>Uh,qzn:()=>Cc,rWj:()=>Om,r_U:()=>ym,s9C:()=>C4,sBO:()=>d_,sIi:()=>J0,s_b:()=>H4,soG:()=>Ip,tBr:()=>jc,tb:()=>Dm,tp0:()=>bl,uIk:()=>u4,vHH:()=>Z,vR:()=>qe,vpe:()=>w1,wA2:()=>kg,wAp:()=>Ll,xi3:()=>B6,xp6:()=>md,ynx:()=>Td,z2F:()=>L2,z3N:()=>Jo,zSh:()=>da,zlt:()=>I_,zs3:()=>xn});var e=m(253),t=m(7714),_=m(833),E=m(6646),s=m(1203);function D(l){for(let c in l)if(l[c]===D)return c;throw Error("Could not find renamed property on target object.")}function u(l,c){for(const g in c)c.hasOwnProperty(g)&&!l.hasOwnProperty(g)&&(l[g]=c[g])}function k(l){if("string"==typeof l)return l;if(Array.isArray(l))return"["+l.map(k).join(", ")+"]";if(null==l)return""+l;if(l.overriddenName)return`${l.overriddenName}`;if(l.name)return`${l.name}`;const c=l.toString();if(null==c)return""+c;const g=c.indexOf("\n");return-1===g?c:c.substring(0,g)}function p(l,c){return null==l||""===l?null===c?"":c:null==c||""===c?l:l+" "+c}const S=D({__forward_ref__:D});function A(l){return l.__forward_ref__=A,l.toString=function(){return k(this())},l}function P(l){return M(l)?l():l}function M(l){return"function"==typeof l&&l.hasOwnProperty(S)&&l.__forward_ref__===A}function z(l){return l&&!!l.\u0275providers}const W="https://g.co/ng/security#xss";class Z extends Error{constructor(c,g){super(Q(c,g)),this.code=c}}function Q(l,c){return`NG0${Math.abs(l)}${c?": "+c.trim():""}`}function ie(l){return"string"==typeof l?l:null==l?"":String(l)}function ae(l){return"function"==typeof l?l.name||l.toString():"object"==typeof l&&null!=l&&"function"==typeof l.type?l.type.name||l.type.toString():ie(l)}function ue(l,c){throw new Z(-201,!1)}function o(l,c,g){l!=c&&F(g,l,c,"==")}function N(l,c){null==l&&F(c,l,null,"!=")}function F(l,c,g,O){throw new Error(`ASSERTION ERROR: ${l}`+(null==O?"":` [Expected=> ${g} ${O} ${c} <=Actual]`))}function Ke(l){return{token:l.token,providedIn:l.providedIn||null,factory:l.factory,value:void 0}}function Ve(l){return{providers:l.providers||[],imports:l.imports||[]}}function xe(l){return Ie(l,Le)||Ie(l,te)}function Ze(l){return null!==xe(l)}function Ie(l,c){return l.hasOwnProperty(c)?l[c]:null}function ht(l){return l&&(l.hasOwnProperty(Ae)||l.hasOwnProperty(pe))?l[Ae]:null}const Le=D({\u0275prov:D}),Ae=D({\u0275inj:D}),te=D({ngInjectableDef:D}),pe=D({ngInjectorDef:D});var ee,l;let H;function Oe(l){const c=H;return H=l,c}function Re(l,c,g){const O=xe(l);return O&&"root"==O.providedIn?void 0===O.value?O.value=O.factory():O.value:g&ee.Optional?null:void 0!==c?c:void ue(k(l))}(l=ee||(ee={}))[l.Default=0]="Default",l[l.Host=1]="Host",l[l.Self=2]="Self",l[l.SkipSelf=4]="SkipSelf",l[l.Optional=8]="Optional";const _t=(()=>typeof globalThis<"u"&&globalThis||typeof global<"u"&&global||typeof window<"u"&&window||typeof self<"u"&&typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&self)();const Bt={},Ut="__NG_DI_FLAG__",yn="ngTempTokenPath",Gt=/\n/gm,rn="__source";let tn;function pn(l){const c=tn;return tn=l,c}function tt(l,c=ee.Default){if(void 0===tn)throw new Z(-203,!1);return null===tn?Re(l,void 0,c):tn.get(l,c&ee.Optional?null:void 0,c)}function vt(l,c=ee.Default){return(function j(){return H}()||tt)(P(l),c)}function dt(l){throw new Z(202,!1)}function se(l,c=ee.Default){return vt(l,J(c))}function J(l){return typeof l>"u"||"number"==typeof l?l:0|(l.optional&&8)|(l.host&&1)|(l.self&&2)|(l.skipSelf&&4)}function oe(l){const c=[];for(let g=0;g<l.length;g++){const O=P(l[g]);if(Array.isArray(O)){if(0===O.length)throw new Z(900,!1);let U,G=ee.Default;for(let de=0;de<O.length;de++){const Se=O[de],We=Ye(Se);"number"==typeof We?-1===We?U=Se.token:G|=We:U=Se}c.push(vt(U,G))}else c.push(vt(O))}return c}function De(l,c){return l[Ut]=c,l.prototype[Ut]=c,l}function Ye(l){return l[Ut]}function Dt(l,c,g,O){const U=l[yn];throw c[rn]&&U.unshift(c[rn]),l.message=function ut(l,c,g,O=null){l=l&&"\n"===l.charAt(0)&&"\u0275"==l.charAt(1)?l.slice(2):l;let U=k(c);if(Array.isArray(c))U=c.map(k).join(" -> ");else if("object"==typeof c){let G=[];for(let de in c)if(c.hasOwnProperty(de)){let Se=c[de];G.push(de+":"+("string"==typeof Se?JSON.stringify(Se):k(Se)))}U=`{${G.join(", ")}}`}return`${g}${O?"("+O+")":""}[${U}]: ${l.replace(Gt,"\n ")}`}("\n"+l.message,U,g,O),l.ngTokenPath=U,l[yn]=null,l}function ze(l){return{toString:l}.toString()}var Me,Ce,zt;!function(l){l[l.OnPush=0]="OnPush",l[l.Default=1]="Default"}(Me||(Me={})),function(l){l[l.CheckOnce=0]="CheckOnce",l[l.Checked=1]="Checked",l[l.CheckAlways=2]="CheckAlways",l[l.Detached=3]="Detached",l[l.Errored=4]="Errored",l[l.Destroyed=5]="Destroyed"}(Ce||(Ce={})),function(l){l[l.Emulated=0]="Emulated",l[l.None=2]="None",l[l.ShadowDom=3]="ShadowDom"}(zt||(zt={}));const At={},Tt=[],Ht=D({\u0275cmp:D}),He=D({\u0275dir:D}),$e=D({\u0275pipe:D}),$t=D({\u0275mod:D}),Rt=D({\u0275fac:D}),Jt=D({__NG_ELEMENT_ID__:D});let Vn=0;function zn(l){return ze(()=>{const c=l.type,g=!0===l.standalone,O={},U={type:c,providersResolver:null,decls:l.decls,vars:l.vars,factory:null,template:l.template||null,consts:l.consts||null,ngContentSelectors:l.ngContentSelectors,hostBindings:l.hostBindings||null,hostVars:l.hostVars||0,hostAttrs:l.hostAttrs||null,contentQueries:l.contentQueries||null,declaredInputs:O,inputs:null,outputs:null,exportAs:l.exportAs||null,onPush:l.changeDetection===Me.OnPush,directiveDefs:null,pipeDefs:null,standalone:g,dependencies:g&&l.dependencies||null,getStandaloneInjector:null,selectors:l.selectors||Tt,viewQuery:l.viewQuery||null,features:l.features||null,data:l.data||{},encapsulation:l.encapsulation||zt.Emulated,id:"c"+Vn++,styles:l.styles||Tt,_:null,setInput:null,schemas:l.schemas||null,tView:null,findHostDirectiveDefs:null,hostDirectives:null},G=l.dependencies,de=l.features;return U.inputs=ft(l.inputs,O),U.outputs=ft(l.outputs),de&&de.forEach(Se=>Se(U)),U.directiveDefs=G?()=>("function"==typeof G?G():G).map(Yn).filter(Mt):null,U.pipeDefs=G?()=>("function"==typeof G?G():G).map(nn).filter(Mt):null,U})}function Tn(l,c,g){const O=l.\u0275cmp;O.directiveDefs=()=>("function"==typeof c?c():c).map(Yn),O.pipeDefs=()=>("function"==typeof g?g():g).map(nn)}function Yn(l){return pt(l)||Lt(l)}function Mt(l){return null!==l}function Ge(l){return ze(()=>({type:l.type,bootstrap:l.bootstrap||Tt,declarations:l.declarations||Tt,imports:l.imports||Tt,exports:l.exports||Tt,transitiveCompileScopes:null,schemas:l.schemas||null,id:l.id||null}))}function Be(l,c){return ze(()=>{const g=Wn(l,!0);g.declarations=c.declarations||Tt,g.imports=c.imports||Tt,g.exports=c.exports||Tt})}function ft(l,c){if(null==l)return At;const g={};for(const O in l)if(l.hasOwnProperty(O)){let U=l[O],G=U;Array.isArray(U)&&(G=U[1],U=U[0]),g[U]=O,c&&(c[U]=G)}return g}const re=zn;function Te(l){return{type:l.type,name:l.name,factory:null,pure:!1!==l.pure,standalone:!0===l.standalone,onDestroy:l.type.prototype.ngOnDestroy||null}}function pt(l){return l[Ht]||null}function Lt(l){return l[He]||null}function nn(l){return l[$e]||null}function Bn(l){const c=pt(l)||Lt(l)||nn(l);return null!==c&&c.standalone}function Wn(l,c){const g=l[$t]||null;if(!g&&!0===c)throw new Error(`Type ${k(l)} does not have '\u0275mod' property.`);return g}function Hi(l){return Array.isArray(l)&&"object"==typeof l[1]}function La(l){return Array.isArray(l)&&!0===l[1]}function gr(l){return 0!=(4&l.flags)}function Sa(l){return l.componentOffset>-1}function fa(l){return 1==(1&l.flags)}function Ki(l){return null!==l.template}function xa(l){return 0!=(256&l[2])}function Oa(l,c){return l.hasOwnProperty(Rt)?l[Rt]:null}class Ss{constructor(c,g,O){this.previousValue=c,this.currentValue=g,this.firstChange=O}isFirstChange(){return this.firstChange}}function Ja(){return Os}function Os(l){return l.type.prototype.ngOnChanges&&(l.setInput=yr),$a}function $a(){const l=ir(this),c=l?.current;if(c){const g=l.previous;if(g===At)l.previous=c;else for(let O in c)g[O]=c[O];l.current=null,this.ngOnChanges(c)}}function yr(l,c,g,O){const U=this.declaredInputs[g],G=ir(l)||function br(l,c){return l[sa]=c}(l,{previous:At,current:null}),de=G.current||(G.current={}),Se=G.previous,We=Se[U];de[U]=new Ss(We&&We.currentValue,c,Se===At),l[O]=c}Ja.ngInherit=!0;const sa="__ngSimpleChanges__";function ir(l){return l[sa]||null}let as=null;const Va=function(l,c,g){as?.(l,c,g)},Nt="math";function Bi(l){for(;Array.isArray(l);)l=l[0];return l}function la(l,c){return Bi(c[l])}function Li(l,c){return Bi(c[l.index])}function Rr(l,c){return l.data[c]}function Zr(l,c){return l[c]}function ca(l,c){const g=c[l];return Hi(g)?g:g[0]}function ar(l){return 64==(64&l[2])}function bt(l,c){return null==c?null:l[c]}function be(l){l[18]=0}function ct(l,c){l[5]+=c;let g=l,O=l[3];for(;null!==O&&(1===c&&1===g[5]||-1===c&&0===g[5]);)O[5]+=c,g=O,O=O[3]}const Yt={lFrame:ul(null),bindingsEnabled:!0};function $s(){return Yt.bindingsEnabled}function kl(){Yt.bindingsEnabled=!0}function po(){Yt.bindingsEnabled=!1}function kn(){return Yt.lFrame.lView}function Ui(){return Yt.lFrame.tView}function eo(l){return Yt.lFrame.contextLView=l,l[8]}function sr(l){return Yt.lFrame.contextLView=null,l}function Ra(){let l=Br();for(;null!==l&&64===l.type;)l=l.parent;return l}function Br(){return Yt.lFrame.currentTNode}function _o(){const l=Yt.lFrame,c=l.currentTNode;return l.isParent?c:c.parent}function Ba(l,c){const g=Yt.lFrame;g.currentTNode=l,g.isParent=c}function $i(){return Yt.lFrame.isParent}function Hn(){Yt.lFrame.isParent=!1}function Wa(){const l=Yt.lFrame;let c=l.bindingRootIndex;return-1===c&&(c=l.bindingRootIndex=l.tView.bindingStartIndex),c}function ss(){return Yt.lFrame.bindingIndex}function zs(l){return Yt.lFrame.bindingIndex=l}function to(){return Yt.lFrame.bindingIndex++}function Yr(l){const c=Yt.lFrame,g=c.bindingIndex;return c.bindingIndex=c.bindingIndex+l,g}function Vc(l){Yt.lFrame.inI18n=l}function Wc(l,c){const g=Yt.lFrame;g.bindingIndex=g.bindingRootIndex=l,Rl(c)}function Rl(l){Yt.lFrame.currentDirectiveIndex=l}function Go(l){const c=Yt.lFrame.currentDirectiveIndex;return-1===c?null:l[c]}function Zo(){return Yt.lFrame.currentQueryIndex}function ko(l){Yt.lFrame.currentQueryIndex=l}function xr(l){const c=l[1];return 2===c.type?c.declTNode:1===c.type?l[6]:null}function Ro(l,c,g){if(g&ee.SkipSelf){let U=c,G=l;for(;(U=U.parent,null===U&&!(g&ee.Host))&&(U=xr(G),!(null===U||(G=G[15],10&U.type))););if(null===U)return!1;c=U,l=G}const O=Yt.lFrame=ui();return O.currentTNode=c,O.lView=l,!0}function Yo(l){const c=ui(),g=l[1];Yt.lFrame=c,c.currentTNode=g.firstChild,c.lView=l,c.tView=g,c.contextLView=l,c.bindingIndex=g.bindingStartIndex,c.inI18n=!1}function ui(){const l=Yt.lFrame,c=null===l?null:l.child;return null===c?ul(l):c}function ul(l){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:l,child:null,inI18n:!1};return null!==l&&(l.child=c),c}function oc(){const l=Yt.lFrame;return Yt.lFrame=l.parent,l.currentTNode=null,l.lView=null,l}const ys=oc;function ks(){const l=oc();l.isParent=!0,l.tView=null,l.selectedIndex=-1,l.contextLView=null,l.elementDepthCount=0,l.currentDirectiveIndex=-1,l.currentNamespace=null,l.bindingRootIndex=-1,l.bindingIndex=-1,l.currentQueryIndex=0}function no(l){return(Yt.lFrame.contextLView=function os(l,c){for(;l>0;)c=c[15],l--;return c}(l,Yt.lFrame.contextLView))[8]}function Ne(){return Yt.lFrame.selectedIndex}function fe(l){Yt.lFrame.selectedIndex=l}function st(){const l=Yt.lFrame;return Rr(l.tView,l.selectedIndex)}function Ot(){Yt.lFrame.currentNamespace="svg"}function Vt(){Yt.lFrame.currentNamespace=Nt}function fn(){!function Un(){Yt.lFrame.currentNamespace=null}()}function yt(l,c){for(let g=c.directiveStart,O=c.directiveEnd;g<O;g++){const G=l.data[g].type.prototype,{ngAfterContentInit:de,ngAfterContentChecked:Se,ngAfterViewInit:We,ngAfterViewChecked:ot,ngOnDestroy:wt}=G;de&&(l.contentHooks||(l.contentHooks=[])).push(-g,de),Se&&((l.contentHooks||(l.contentHooks=[])).push(g,Se),(l.contentCheckHooks||(l.contentCheckHooks=[])).push(g,Se)),We&&(l.viewHooks||(l.viewHooks=[])).push(-g,We),ot&&((l.viewHooks||(l.viewHooks=[])).push(g,ot),(l.viewCheckHooks||(l.viewCheckHooks=[])).push(g,ot)),null!=wt&&(l.destroyHooks||(l.destroyHooks=[])).push(g,wt)}}function Pt(l,c,g){sn(l,c,3,g)}function Qe(l,c,g,O){(3&l[2])===g&&sn(l,c,g,O)}function Qt(l,c){let g=l[2];(3&g)===c&&(g&=2047,g+=1,l[2]=g)}function sn(l,c,g,O){const U=void 0!==O?65535&l[18]:0,G=O??-1,de=c.length-1;let Se=0;for(let We=U;We<de;We++)if("number"==typeof c[We+1]){if(Se=c[We],null!=O&&Se>=O)break}else c[We]<0&&(l[18]+=65536),(Se<G||-1==G)&&(qt(l,g,c,We),l[18]=(4294901760&l[18])+We+2),We++}function qt(l,c,g,O){const U=g[O]<0,G=g[O+1],Se=l[U?-g[O]:g[O]];if(U){if(l[2]>>11<l[18]>>16&&(3&l[2])===c){l[2]+=2048,Va(4,Se,G);try{G.call(Se)}finally{Va(5,Se,G)}}}else{Va(4,Se,G);try{G.call(Se)}finally{Va(5,Se,G)}}}class Sn{constructor(c,g,O){this.factory=c,this.resolving=!1,this.canSeeViewProviders=g,this.injectImpl=O}}function Ka(l,c,g){let O=0;for(;O<g.length;){const U=g[O];if("number"==typeof U){if(0!==U)break;O++;const G=g[O++],de=g[O++],Se=g[O++];l.setAttribute(c,de,Se,G)}else{const G=U,de=g[++O];ls(G)?l.setProperty(c,G,de):l.setAttribute(c,G,de),O++}}return O}function Ma(l){return 3===l||4===l||6===l}function ls(l){return 64===l.charCodeAt(0)}function Na(l,c){if(null!==c&&0!==c.length)if(null===l||0===l.length)l=c.slice();else{let g=-1;for(let O=0;O<c.length;O++){const U=c[O];"number"==typeof U?g=U:0===g||mo(l,g,U,null,-1===g||2===g?c[++O]:null)}}return l}function mo(l,c,g,O,U){let G=0,de=l.length;if(-1===c)de=-1;else for(;G<l.length;){const Se=l[G++];if("number"==typeof Se){if(Se===c){de=-1;break}if(Se>c){de=G-1;break}}}for(;G<l.length;){const Se=l[G];if("number"==typeof Se)break;if(Se===g){if(null===O)return void(null!==U&&(l[G+1]=U));if(O===l[G+1])return void(l[G+2]=U)}G++,null!==O&&G++,null!==U&&G++}-1!==de&&(l.splice(de,0,c),G=de+1),l.splice(G++,0,g),null!==O&&l.splice(G++,0,O),null!==U&&l.splice(G++,0,U)}function Er(l){return-1!==l}function bs(l){return 32767&l}function hl(l,c){let g=function go(l){return l>>16}(l),O=c;for(;g>0;)O=O[15],g--;return O}let Dr=!0;function lc(l){const c=Dr;return Dr=l,c}let S1=0;const or={};function Mo(l,c){const g=Bl(l,c);if(-1!==g)return g;const O=c[1];O.firstCreatePass&&(l.injectorIndex=c.length,vo(O.data,l),vo(c,null),vo(O.blueprint,null));const U=ml(l,c),G=l.injectorIndex;if(Er(U)){const de=bs(U),Se=hl(U,c),We=Se[1].data;for(let ot=0;ot<8;ot++)c[G+ot]=Se[de+ot]|We[de+ot]}return c[G+8]=U,G}function vo(l,c){l.push(0,0,0,0,0,0,0,0,c)}function Bl(l,c){return-1===l.injectorIndex||l.parent&&l.parent.injectorIndex===l.injectorIndex||null===c[l.injectorIndex+8]?-1:l.injectorIndex}function ml(l,c){if(l.parent&&-1!==l.parent.injectorIndex)return l.parent.injectorIndex;let g=0,O=null,U=c;for(;null!==U;){if(O=P2(U),null===O)return-1;if(g++,U=U[15],-1!==O.injectorIndex)return O.injectorIndex|g<<16}return-1}function O1(l,c,g){!function _l(l,c,g){let O;"string"==typeof g?O=g.charCodeAt(0)||0:g.hasOwnProperty(Jt)&&(O=g[Jt]),null==O&&(O=g[Jt]=S1++);const U=255&O,G=1<<U;c.data[l+(U>>5)]|=G}(l,c,g)}function gl(l,c,g){if(g&ee.Optional||void 0!==l)return l;ue()}function cc(l,c,g,O){if(g&ee.Optional&&void 0===O&&(O=null),0==(g&(ee.Self|ee.Host))){const U=l[9],G=Oe(void 0);try{return U?U.get(c,O,g&ee.Optional):Re(c,O,g&ee.Optional)}finally{Oe(G)}}return gl(O,0,g)}function O2(l,c,g,O=ee.Default,U){if(null!==l){if(1024&c[2]){const de=function Ar(l,c,g,O,U){let G=l,de=c;for(;null!==G&&null!==de&&1024&de[2]&&!(256&de[2]);){const Se=k1(G,de,g,O|ee.Self,or);if(Se!==or)return Se;let We=G.parent;if(!We){const ot=de[21];if(ot){const wt=ot.get(g,or,O);if(wt!==or)return wt}We=P2(de),de=de[15]}G=We}return U}(l,c,g,O,or);if(de!==or)return de}const G=k1(l,c,g,O,or);if(G!==or)return G}return cc(c,g,O,U)}function k1(l,c,g,O,U){const G=function dc(l){if("string"==typeof l)return l.charCodeAt(0)||0;const c=l.hasOwnProperty(Jt)?l[Jt]:void 0;return"number"==typeof c?c>=0?255&c:Eo:c}(g);if("function"==typeof G){if(!Ro(c,l,O))return O&ee.Host?gl(U,0,O):cc(c,g,O,U);try{const de=G(O);if(null!=de||O&ee.Optional)return de;ue()}finally{ys()}}else if("number"==typeof G){let de=null,Se=Bl(l,c),We=-1,ot=O&ee.Host?c[16][6]:null;for((-1===Se||O&ee.SkipSelf)&&(We=-1===Se?ml(l,c):c[Se+8],-1!==We&&Gc(O,!1)?(de=c[1],Se=bs(We),c=hl(We,c)):Se=-1);-1!==Se;){const wt=c[1];if(R1(G,Se,wt.data)){const Kt=Qo(Se,c,g,de,O,ot);if(Kt!==or)return Kt}We=c[Se+8],-1!==We&&Gc(O,c[1].data[Se+8]===ot)&&R1(G,Se,c)?(de=wt,Se=bs(We),c=hl(We,c)):Se=-1}}return U}function Qo(l,c,g,O,U,G){const de=c[1],Se=de.data[l+8],wt=io(Se,de,g,null==O?Sa(Se)&&Dr:O!=de&&0!=(3&Se.type),U&ee.Host&&G===Se);return null!==wt?vl(c,de,wt,Se):or}function io(l,c,g,O,U){const G=l.providerIndexes,de=c.data,Se=1048575&G,We=l.directiveStart,ot=l.directiveEnd,wt=G>>20,cn=U?Se+wt:ot;for(let bn=O?Se:Se+wt;bn<cn;bn++){const On=de[bn];if(bn<We&&g===On||bn>=We&&On.type===g)return bn}if(U){const bn=de[We];if(bn&&Ki(bn)&&bn.type===g)return We}return null}function vl(l,c,g,O){let U=l[g];const G=c.data;if(function Jn(l){return l instanceof Sn}(U)){const de=U;de.resolving&&function _e(l,c){const g=c?`. Dependency path: ${c.join(" > ")} > ${l}`:"";throw new Z(-200,`Circular dependency in DI detected for ${l}${g}`)}(ae(G[g]));const Se=lc(de.canSeeViewProviders);de.resolving=!0;const We=de.injectImpl?Oe(de.injectImpl):null;Ro(l,O,ee.Default);try{U=l[g]=de.factory(void 0,G,l,O),c.firstCreatePass&&g>=O.directiveStart&&function rt(l,c,g){const{ngOnChanges:O,ngOnInit:U,ngDoCheck:G}=c.type.prototype;if(O){const de=Os(c);(g.preOrderHooks||(g.preOrderHooks=[])).push(l,de),(g.preOrderCheckHooks||(g.preOrderCheckHooks=[])).push(l,de)}U&&(g.preOrderHooks||(g.preOrderHooks=[])).push(0-l,U),G&&((g.preOrderHooks||(g.preOrderHooks=[])).push(l,G),(g.preOrderCheckHooks||(g.preOrderCheckHooks=[])).push(l,G))}(g,G[g],c)}finally{null!==We&&Oe(We),lc(Se),de.resolving=!1,ys()}}return U}function R1(l,c,g){const O=1<<l;return!!(g[c+(l>>5)]&O)}function Gc(l,c){return!(l&ee.Self||l&ee.Host&&c)}class ao{constructor(c,g){this._tNode=c,this._lView=g}get(c,g,O){return O2(this._tNode,this._lView,c,J(O),g)}}function Eo(){return new ao(Ra(),kn())}function jo(l){return ze(()=>{const c=l.prototype.constructor,g=c[Rt]||Nr(c),O=Object.prototype;let U=Object.getPrototypeOf(l.prototype).constructor;for(;U&&U!==O;){const G=U[Rt]||Nr(U);if(G&&G!==g)return G;U=Object.getPrototypeOf(U)}return G=>new G})}function Nr(l){return M(l)?()=>{const c=Nr(P(l));return c&&c()}:Oa(l)}function P2(l){const c=l[1],g=c.type;return 2===g?c.declTNode:1===g?l[6]:null}function yl(l){return function P1(l,c){if("class"===c)return l.classes;if("style"===c)return l.styles;const g=l.attrs;if(g){const O=g.length;let U=0;for(;U<O;){const G=g[U];if(Ma(G))break;if(0===G)U+=2;else if("number"==typeof G)for(U++;U<O&&"string"==typeof g[U];)U++;else{if(G===c)return g[U+1];U+=2}}}return null}(Ra(),l)}const Bo="__annotations__",ro="__parameters__",Rs="__prop__metadata__";function cs(l,c,g,O,U){return ze(()=>{const G=Zc(c);function de(...Se){if(this instanceof de)return G.call(this,...Se),this;const We=new de(...Se);return function(wt){return U&&U(wt,...Se),(wt.hasOwnProperty(Bo)?wt[Bo]:Object.defineProperty(wt,Bo,{value:[]})[Bo]).push(We),O&&O(wt),wt}}return g&&(de.prototype=Object.create(g.prototype)),de.prototype.ngMetadataName=l,de.annotationCls=de,de})}function Zc(l){return function(...g){if(l){const O=l(...g);for(const U in O)this[U]=O[U]}}}function Do(l,c,g){return ze(()=>{const O=Zc(c);function U(...G){if(this instanceof U)return O.apply(this,G),this;const de=new U(...G);return Se.annotation=de,Se;function Se(We,ot,wt){const Kt=We.hasOwnProperty(ro)?We[ro]:Object.defineProperty(We,ro,{value:[]})[ro];for(;Kt.length<=wt;)Kt.push(null);return(Kt[wt]=Kt[wt]||[]).push(de),We}}return g&&(U.prototype=Object.create(g.prototype)),U.prototype.ngMetadataName=l,U.annotationCls=U,U})}function qo(l,c,g,O){return ze(()=>{const U=Zc(c);function G(...de){if(this instanceof G)return U.apply(this,de),this;const Se=new G(...de);return function We(ot,wt){const Kt=ot.constructor,cn=Kt.hasOwnProperty(Rs)?Kt[Rs]:Object.defineProperty(Kt,Rs,{value:{}})[Rs];cn[wt]=cn.hasOwnProperty(wt)&&cn[wt]||[],cn[wt].unshift(Se),O&&O(ot,wt,...de)}}return g&&(G.prototype=Object.create(g.prototype)),G.prototype.ngMetadataName=l,G.annotationCls=G,G})}const B1=Do("Attribute",l=>({attributeName:l,__NG_ELEMENT_ID__:()=>yl(l)}));class va{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=Ke({token:this,providedIn:g.providedIn||"root",factory:g.factory}))}get multi(){return this}toString(){return`InjectionToken ${this._desc}`}}new va("AnalyzeForEntryComponents");class we{}const ne=qo("ContentChildren",(l,c={})=>({selector:l,first:!1,isViewQuery:!1,descendants:!1,emitDistinctChangesOnly:true,...c}),we),Ee=qo("ContentChild",(l,c={})=>({selector:l,first:!0,isViewQuery:!1,descendants:!0,...c}),we),qe=qo("ViewChildren",(l,c={})=>({selector:l,first:!1,isViewQuery:!0,descendants:!0,emitDistinctChangesOnly:true,...c}),we),at=qo("ViewChild",(l,c)=>({selector:l,first:!0,isViewQuery:!0,descendants:!0,...c}),we);var mt,Wt,mn;function Dn(l){const c=_t.ng;if(c&&c.\u0275compilerFacade)return c.\u0275compilerFacade;throw new Error("JIT compiler unavailable")}!function(l){l[l.Directive=0]="Directive",l[l.Component=1]="Component",l[l.Injectable=2]="Injectable",l[l.Pipe=3]="Pipe",l[l.NgModule=4]="NgModule"}(mt||(mt={})),function(l){l[l.Directive=0]="Directive",l[l.Pipe=1]="Pipe",l[l.NgModule=2]="NgModule"}(Wt||(Wt={})),function(l){l[l.Emulated=0]="Emulated",l[l.None=2]="None",l[l.ShadowDom=3]="ShadowDom"}(mn||(mn={}));const Rn=Function;function di(l){return"function"==typeof l}function zi(l,c){void 0===c&&(c=l);for(let g=0;g<l.length;g++){let O=l[g];Array.isArray(O)?(c===l&&(c=l.slice(0,g)),zi(O,c)):c!==l&&c.push(O)}return c}function Fr(l,c){l.forEach(g=>Array.isArray(g)?Fr(g,c):c(g))}function so(l,c,g){c>=l.length?l.push(g):l.splice(c,0,g)}function ds(l,c){return c>=l.length-1?l.pop():l.splice(c,1)[0]}function Us(l,c){const g=[];for(let O=0;O<l;O++)g.push(c);return g}function Cs(l,c,g){let O=lr(l,c);return O>=0?l[1|O]=g:(O=~O,function uc(l,c,g,O){let U=l.length;if(U==c)l.push(g,O);else if(1===U)l.push(O,l[0]),l[0]=g;else{for(U--,l.push(l[U-1],l[U]);U>c;){const G=U-2;l[U]=l[G],U--}l[c]=g,l[c+1]=O}}(l,O,c,g)),O}function Nl(l,c){const g=lr(l,c);if(g>=0)return l[1|g]}function lr(l,c){return R2(l,c,1)}function R2(l,c,g){let O=0,U=l.length>>g;for(;U!==O;){const G=O+(U-O>>1),de=l[G<<g];if(c===de)return G<<g;de>c?U=G:O=G+1}return~(U<<g)}const $d=/^function\s+\S+\(\)\s*{[\s\S]+\.apply\(this,\s*(arguments|(?:[^()]+\(\[\],)?[^()]+\(arguments\).*)\)/,e0=/^class\s+[A-Za-z\d$_]*\s*extends\s+[^{]+{/,Hl=/^class\s+[A-Za-z\d$_]*\s*extends\s+[^{]+{[\s\S]*constructor\s*\(/,K4=/^class\s+[A-Za-z\d$_]*\s*extends\s+[^{]+{[\s\S]*constructor\s*\(\)\s*{[^}]*super\(\.\.\.arguments\)/;class xu{constructor(c){this._reflect=c||_t.Reflect}factory(c){return(...g)=>new c(...g)}_zipTypesAndAnnotations(c,g){let O;O=Us(typeof c>"u"?g.length:c.length);for(let U=0;U<O.length;U++)typeof c>"u"?O[U]=[]:c[U]&&c[U]!=Object?O[U]=[c[U]]:O[U]=[],g&&null!=g[U]&&(O[U]=O[U].concat(g[U]));return O}_ownParameters(c,g){if(function bu(l){return $d.test(l)||K4.test(l)||e0.test(l)&&!Hl.test(l)}(c.toString()))return null;if(c.parameters&&c.parameters!==g.parameters)return c.parameters;const U=c.ctorParameters;if(U&&U!==g.ctorParameters){const Se="function"==typeof U?U():U,We=Se.map(wt=>wt&&wt.type),ot=Se.map(wt=>wt&&Cu(wt.decorators));return this._zipTypesAndAnnotations(We,ot)}const G=c.hasOwnProperty(ro)&&c[ro],de=this._reflect&&this._reflect.getOwnMetadata&&this._reflect.getOwnMetadata("design:paramtypes",c);return de||G?this._zipTypesAndAnnotations(de,G):Us(c.length)}parameters(c){if(!di(c))return[];const g=N1(c);let O=this._ownParameters(c,g);return!O&&g!==Object&&(O=this.parameters(g)),O||[]}_ownAnnotations(c,g){if(c.annotations&&c.annotations!==g.annotations){let O=c.annotations;return"function"==typeof O&&O.annotations&&(O=O.annotations),O}return c.decorators&&c.decorators!==g.decorators?Cu(c.decorators):c.hasOwnProperty(Bo)?c[Bo]:null}annotations(c){if(!di(c))return[];const g=N1(c),O=this._ownAnnotations(c,g)||[];return(g!==Object?this.annotations(g):[]).concat(O)}_ownPropMetadata(c,g){if(c.propMetadata&&c.propMetadata!==g.propMetadata){let O=c.propMetadata;return"function"==typeof O&&O.propMetadata&&(O=O.propMetadata),O}if(c.propDecorators&&c.propDecorators!==g.propDecorators){const O=c.propDecorators,U={};return Object.keys(O).forEach(G=>{U[G]=Cu(O[G])}),U}return c.hasOwnProperty(Rs)?c[Rs]:null}propMetadata(c){if(!di(c))return{};const g=N1(c),O={};if(g!==Object){const G=this.propMetadata(g);Object.keys(G).forEach(de=>{O[de]=G[de]})}const U=this._ownPropMetadata(c,g);return U&&Object.keys(U).forEach(G=>{const de=[];O.hasOwnProperty(G)&&de.push(...O[G]),de.push(...U[G]),O[G]=de}),O}ownPropMetadata(c){return di(c)&&this._ownPropMetadata(c,N1(c))||{}}hasLifecycleHook(c,g){return c instanceof Rn&&g in c.prototype}}function Cu(l){return l?l.map(c=>new(0,c.type.annotationCls)(...c.args?c.args:[])):[]}function N1(l){const c=l.prototype?Object.getPrototypeOf(l.prototype):null;return(c?c.constructor:null)||Object}const jc=De(Do("Inject",l=>({token:l})),-1),B2=De(Do("Optional"),8),qc=De(Do("Self"),2),bl=De(Do("SkipSelf"),4),d3=De(Do("Host"),1);let zl=null;function Ul(){return zl=zl||new xu}function hc(l){return Mu(Ul().parameters(l))}function Mu(l){return l.map(c=>function u3(l){const c={token:null,attribute:null,host:!1,optional:!1,self:!1,skipSelf:!1};if(Array.isArray(l)&&l.length>0)for(let g=0;g<l.length;g++){const O=l[g];if(void 0===O)continue;const U=Object.getPrototypeOf(O);if(O instanceof B2||"Optional"===U.ngMetadataName)c.optional=!0;else if(O instanceof bl||"SkipSelf"===U.ngMetadataName)c.skipSelf=!0;else if(O instanceof qc||"Self"===U.ngMetadataName)c.self=!0;else if(O instanceof d3||"Host"===U.ngMetadataName)c.host=!0;else if(O instanceof jc)c.token=O.token;else if(O instanceof B1){if(void 0===O.attributeName)throw new Z(204,!1);c.attribute=O.attributeName}else c.token=O}else void 0===l||Array.isArray(l)&&0===l.length?c.token=null:c.token=l;return c}(c))}let xl=new Map;const F1=new Set;function h3(l){return!!(l.templateUrl&&!l.hasOwnProperty("template")||l.styleUrls&&l.styleUrls.length)}const Vl=new Map;let F2=!0;function Wl(l,c){(function t0(l,c,g){if(c&&c!==g&&F2)throw new Error(`Duplicate module registered for ${l} - ${k(c)} vs ${k(c.name)}`)})(c,Vl.get(c)||null,l),Vl.set(c,l)}var z2;!function(l){l[l.Important=1]="Important",l[l.DashCase=2]="DashCase"}(z2||(z2={}));const j4=/^>|^->|<!--|-->|--!>|<!-$/g,q4=/(<|>)/;function v3(l){return l.replace(j4,c=>c.replace(q4,"\u200b$1\u200b"))}const U2=new Map;let s0=0;const W2="__ngContext__";function us(l,c){Hi(c)?(l[W2]=c[20],function V2(l){U2.set(l[20],l)}(c)):l[W2]=c}let o0;function K2(l,c){return o0(l,c)}function yo(l){const c=l[3];return La(c)?c[3]:c}function c0(l){return e1(l[13])}function d0(l){return e1(l[4])}function e1(l){for(;null!==l&&!La(l);)l=l[4];return l}function Zl(l,c,g,O,U){if(null!=O){let G,de=!1;La(O)?G=O:Hi(O)&&(de=!0,O=O[0]);const Se=Bi(O);0===l&&null!==g?null==U?_0(c,g,Se):Yl(c,g,Se,U||null,!0):1===l&&null!==g?Yl(c,g,Se,U||null,!0):2===l?y0(c,Se,de):3===l&&c.destroyNode(Se),null!=G&&function Wu(l,c,g,O,U){const G=g[7],de=Bi(g);G!==de&&Zl(c,l,O,G,U);for(let Se=10;Se<g.length;Se++){const We=g[Se];i1(We[1],We,l,c,O,G)}}(c,l,G,g,U)}}function h0(l,c){return l.createText(c)}function yc(l,c,g){l.setValue(c,g)}function x3(l,c){return l.createComment(v3(c))}function Z2(l,c,g){return l.createElement(c,g)}function E3(l,c,g,O){const U=10+O,G=g.length;O>0&&(g[U-1][4]=c),O<G-10?(c[4]=g[U],so(g,10+O,c)):(g.push(c),c[4]=null),c[3]=g;const de=c[17];null!==de&&g!==de&&function U1(l,c){const g=l[9],U=c[3][3][16];c[16]!==U&&(l[2]=!0),null===g?l[9]=[c]:g.push(c)}(de,c);const Se=c[19];null!==Se&&Se.insertView(l),c[2]|=64}function f0(l,c){const g=l[9],O=g.indexOf(c),U=c[3];512&c[2]&&(c[2]&=-513,ct(U,-1)),g.splice(O,1)}function Y2(l,c){if(l.length<=10)return;const g=10+c,O=l[g];if(O){const U=O[17];null!==U&&U!==l&&f0(U,O),c>0&&(l[g-1][4]=O[4]);const G=ds(l,10+c);!function C3(l,c){i1(l,c,c[11],2,null,null),c[0]=null,c[6]=null}(O[1],O);const de=G[19];null!==de&&de.detachView(G[1]),O[3]=null,O[4]=null,O[2]&=-65}return O}function Ru(l,c){if(!(128&c[2])){const g=c[11];g.destroyNode&&i1(l,c,g,3,null,null),function t1(l){let c=l[13];if(!c)return p0(l[1],l);for(;c;){let g=null;if(Hi(c))g=c[13];else{const O=c[10];O&&(g=O)}if(!g){for(;c&&!c[4]&&c!==l;)Hi(c)&&p0(c[1],c),c=c[3];null===c&&(c=l),Hi(c)&&p0(c[1],c),g=c&&c[4]}c=g}}(c)}}function p0(l,c){if(!(128&c[2])){c[2]&=-65,c[2]|=128,function V1(l,c){let g;if(null!=l&&null!=(g=l.destroyHooks))for(let O=0;O<g.length;O+=2){const U=c[g[O]];if(!(U instanceof Sn)){const G=g[O+1];if(Array.isArray(G))for(let de=0;de<G.length;de+=2){const Se=U[G[de]],We=G[de+1];Va(4,Se,We);try{We.call(Se)}finally{Va(5,Se,We)}}else{Va(4,U,G);try{G.call(U)}finally{Va(5,U,G)}}}}}(l,c),function D3(l,c){const g=l.cleanup,O=c[7];let U=-1;if(null!==g)for(let G=0;G<g.length-1;G+=2)if("string"==typeof g[G]){const de=g[G+3];de>=0?O[U=de]():O[U=-de].unsubscribe(),G+=2}else{const de=O[U=g[G+1]];g[G].call(de)}if(null!==O){for(let G=U+1;G<O.length;G++){(0,O[G])()}c[7]=null}}(l,c),1===c[1].type&&c[11].destroy();const g=c[17];if(null!==g&&La(c[3])){g!==c[3]&&f0(g,c);const O=c[19];null!==O&&O.detachView(l)}!function J4(l){U2.delete(l[20])}(c)}}function Bu(l,c,g){return Nu(l,c.parent,g)}function Nu(l,c,g){let O=c;for(;null!==O&&40&O.type;)O=(c=O).parent;if(null===O)return g[0];{const{componentOffset:U}=O;if(U>-1){const{encapsulation:G}=l.data[O.directiveStart+U];if(G===zt.None||G===zt.Emulated)return null}return Li(O,g)}}function Yl(l,c,g,O,U){l.insertBefore(c,g,O,U)}function _0(l,c,g){l.appendChild(c,g)}function Fu(l,c,g,O,U){null!==O?Yl(l,c,g,O,U):_0(l,c,g)}function Q2(l,c){return l.parentNode(c)}function zu(l,c,g){return m0(l,c,g)}function Uu(l,c,g){return 40&l.type?Li(l,g):null}let g0,X2,J2,Xo,m0=Uu;function v0(l,c){m0=l,g0=c}function j2(l,c,g,O){const U=Bu(l,O,c),G=c[11],Se=zu(O.parent||c[6],O,c);if(null!=U)if(Array.isArray(g))for(let We=0;We<g.length;We++)Fu(G,U,g[We],Se,!1);else Fu(G,U,g,Se,!1);void 0!==g0&&g0(G,O,c,g,U)}function n1(l,c){if(null!==c){const g=c.type;if(3&g)return Li(c,l);if(4&g)return q2(-1,l[c.index]);if(8&g){const O=c.child;if(null!==O)return n1(l,O);{const U=l[c.index];return La(U)?q2(-1,U):Bi(U)}}if(32&g)return K2(c,l)()||Bi(l[c.index]);{const O=Vu(l,c);if(null!==O){if(Array.isArray(O))return O[0];return n1(yo(l[16]),O)}return n1(l,c.next)}}return null}function Vu(l,c){if(null!==c){const O=l[16][6],U=c.projection;return O.projection[U]}return null}function q2(l,c){const g=10+l+1;if(g<c.length){const O=c[g],U=O[1].firstChild;if(null!==U)return n1(O,U)}return c[7]}function y0(l,c,g){const O=Q2(l,c);O&&function Hu(l,c,g,O){l.removeChild(c,g,O)}(l,O,c,g)}function b0(l,c,g,O,U,G,de){for(;null!=g;){const Se=O[g.index],We=g.type;if(de&&0===c&&(Se&&us(Bi(Se),O),g.flags|=2),32!=(32&g.flags))if(8&We)b0(l,c,g.child,O,U,G,!1),Zl(c,l,U,Se,G);else if(32&We){const ot=K2(g,O);let wt;for(;wt=ot();)Zl(c,l,U,wt,G);Zl(c,l,U,Se,G)}else 16&We?x0(l,c,O,g,U,G):Zl(c,l,U,Se,G);g=de?g.projectionNext:g.next}}function i1(l,c,g,O,U,G){b0(g,O,l.firstChild,c,U,G,!1)}function x0(l,c,g,O,U,G){const de=g[16],We=de[6].projection[O.projection];if(Array.isArray(We))for(let ot=0;ot<We.length;ot++){Zl(c,l,U,We[ot],G)}else{b0(l,c,We,de[3],U,G,!0)}}function C0(l,c,g){""===g?l.removeAttribute(c,"class"):l.setAttribute(c,"class",g)}function Ku(l,c,g){const{mergedAttrs:O,classes:U,styles:G}=g;null!==O&&Ka(l,c,O),null!==U&&C0(l,c,U),null!==G&&function I3(l,c,g){l.setAttribute(c,"style",g)}(l,c,G)}function M0(){if(void 0===X2&&(X2=null,_t.trustedTypes))try{X2=_t.trustedTypes.createPolicy("angular",{createHTML:l=>l,createScript:l=>l,createScriptURL:l=>l})}catch{}return X2}function Fo(l){return M0()?.createHTML(l)||l}function bc(l,c,g){const O=kn(),U=st(),G=Li(U,O);if(2===U.type&&"iframe"===c.toLowerCase()){const de=G;de.src="",de.srcdoc=Fo(""),y0(O[11],de);throw new Z(-910,!1)}return l}function S3(l){J2=l}function Zu(){return void 0!==J2?J2:typeof document<"u"?document:void 0}function D0(){if(void 0===Xo&&(Xo=null,_t.trustedTypes))try{Xo=_t.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:l=>l,createScript:l=>l,createScriptURL:l=>l})}catch{}return Xo}function $2(l){return D0()?.createHTML(l)||l}function Yu(l){return D0()?.createScript(l)||l}function A0(l){return D0()?.createScriptURL(l)||l}class xc{constructor(c){this.changingThisBreaksApplicationSecurity=c}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see ${W})`}}class ef extends xc{getTypeName(){return"HTML"}}class tf extends xc{getTypeName(){return"Style"}}class Qu extends xc{getTypeName(){return"Script"}}class O3 extends xc{getTypeName(){return"URL"}}class P3 extends xc{getTypeName(){return"ResourceURL"}}function Jo(l){return l instanceof xc?l.changingThisBreaksApplicationSecurity:l}function Cc(l,c){const g=function Mc(l){return l instanceof xc&&l.getTypeName()||null}(l);if(null!=g&&g!==c){if("ResourceURL"===g&&"URL"===c)return!0;throw new Error(`Required a safe ${c}, got a ${g} (see ${W})`)}return g===c}function T0(l){return new ef(l)}function k3(l){return new tf(l)}function R3(l){return new Qu(l)}function ju(l){return new O3(l)}function qu(l){return new P3(l)}function ed(l){const c=new W1(l);return function B3(){try{return!!(new window.DOMParser).parseFromString(Fo(""),"text/html")}catch{return!1}}()?new Xu(c):c}class Xu{constructor(c){this.inertDocumentHelper=c}getInertBodyElement(c){c="<body><remove></remove>"+c;try{const g=(new window.DOMParser).parseFromString(Fo(c),"text/html").body;return null===g?this.inertDocumentHelper.getInertBodyElement(c):(g.removeChild(g.firstChild),g)}catch{return null}}}class W1{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 O=this.inertDocument.createElement("body");g.appendChild(O)}}getInertBodyElement(c){const g=this.inertDocument.createElement("template");if("content"in g)return g.innerHTML=Fo(c),g;const O=this.inertDocument.createElement("body");return O.innerHTML=Fo(c),this.defaultDoc.documentMode&&this.stripCustomNsAttrs(O),O}stripCustomNsAttrs(c){const g=c.attributes;for(let U=g.length-1;0<U;U--){const de=g.item(U).name;("xmlns:ns1"===de||0===de.indexOf("ns1:"))&&c.removeAttribute(de)}let O=c.firstChild;for(;O;)O.nodeType===Node.ELEMENT_NODE&&this.stripCustomNsAttrs(O),O=O.nextSibling}}const N3=/^(?:(?:https?|mailto|data|ftp|tel|file|sms):|[^&:/?#]*(?:[/?#]|$))/gi;function td(l){return(l=String(l)).match(N3)?l:"unsafe:"+l}function $o(l){const c={};for(const g of l.split(","))c[g]=!0;return c}function a1(...l){const c={};for(const g of l)for(const O in g)g.hasOwnProperty(O)&&(c[O]=!0);return c}const Ql=$o("area,br,col,hr,img,wbr"),Ju=$o("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),K1=$o("rp,rt"),w0=a1(K1,Ju),F3=a1(Ju,$o("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")),nd=a1(K1,$o("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")),jl=a1(Ql,F3,nd,w0),id=$o("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),H3=$o("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"),$u=$o("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"),G1=a1(id,H3,$u),eh=$o("script,style,template");class th{constructor(){this.sanitizedSomething=!1,this.buf=[]}sanitizeChildren(c){let g=c.firstChild,O=!0;for(;g;)if(g.nodeType===Node.ELEMENT_NODE?O=this.startElement(g):g.nodeType===Node.TEXT_NODE?this.chars(g.nodeValue):this.sanitizedSomething=!0,O&&g.firstChild)g=g.firstChild;else for(;g;){g.nodeType===Node.ELEMENT_NODE&&this.endElement(g);let U=this.checkClobberedElement(g,g.nextSibling);if(U){g=U;break}g=this.checkClobberedElement(g,g.parentNode)}return this.buf.join("")}startElement(c){const g=c.nodeName.toLowerCase();if(!jl.hasOwnProperty(g))return this.sanitizedSomething=!0,!eh.hasOwnProperty(g);this.buf.push("<"),this.buf.push(g);const O=c.attributes;for(let U=0;U<O.length;U++){const G=O.item(U),de=G.name,Se=de.toLowerCase();if(!G1.hasOwnProperty(Se)){this.sanitizedSomething=!0;continue}let We=G.value;id[Se]&&(We=td(We)),this.buf.push(" ",de,'="',I0(We),'"')}return this.buf.push(">"),!0}endElement(c){const g=c.nodeName.toLowerCase();jl.hasOwnProperty(g)&&!Ql.hasOwnProperty(g)&&(this.buf.push("</"),this.buf.push(g),this.buf.push(">"))}chars(c){this.buf.push(I0(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 Z1=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,z3=/([^\#-~ |!])/g;function I0(l){return l.replace(/&/g,"&amp;").replace(Z1,function(c){return"&#"+(1024*(c.charCodeAt(0)-55296)+(c.charCodeAt(1)-56320)+65536)+";"}).replace(z3,function(c){return"&#"+c.charCodeAt(0)+";"}).replace(/</g,"&lt;").replace(/>/g,"&gt;")}let ad;function nh(l,c){let g=null;try{ad=ad||ed(l);let O=c?String(c):"";g=ad.getInertBodyElement(O);let U=5,G=O;do{if(0===U)throw new Error("Failed to sanitize html because the input is unstable");U--,O=G,G=g.innerHTML,g=ad.getInertBodyElement(O)}while(O!==G);return Fo((new th).sanitizeChildren(ih(g)||g))}finally{if(g){const O=ih(g)||g;for(;O.firstChild;)O.removeChild(O.firstChild)}}}function ih(l){return"content"in l&&function wr(l){return l.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===l.nodeName}(l)?l.content:null}var el;function L0(l){const c=Cl();return c?$2(c.sanitize(el.HTML,l)||""):Cc(l,"HTML")?$2(Jo(l)):nh(Zu(),ie(l))}function rd(l){const c=Cl();return c?c.sanitize(el.STYLE,l)||"":Cc(l,"Style")?Jo(l):ie(l)}function ah(l){const c=Cl();return c?c.sanitize(el.URL,l)||"":Cc(l,"URL")?Jo(l):td(ie(l))}function S0(l){const c=Cl();if(c)return A0(c.sanitize(el.RESOURCE_URL,l)||"");if(Cc(l,"ResourceURL"))return A0(Jo(l));throw new Z(904,!1)}function sd(l){const c=Cl();if(c)return Yu(c.sanitize(el.SCRIPT,l)||"");if(Cc(l,"Script"))return Yu(Jo(l));throw new Z(905,!1)}function rh(l){return Fo(l[0])}function Ga(l){return function E0(l){return M0()?.createScriptURL(l)||l}(l[0])}function P0(l,c,g){return function O0(l,c){return"src"===c&&("embed"===l||"frame"===l||"iframe"===l||"media"===l||"script"===l)||"href"===c&&("base"===l||"link"===l)?S0:ah}(c,g)(l)}function Cl(){const l=kn();return l&&l[12]}!function(l){l[l.NONE=0]="NONE",l[l.HTML=1]="HTML",l[l.STYLE=2]="STYLE",l[l.SCRIPT=3]="SCRIPT",l[l.URL=4]="URL",l[l.RESOURCE_URL=5]="RESOURCE_URL"}(el||(el={}));const er=new va("ENVIRONMENT_INITIALIZER"),r1=new va("INJECTOR",-1),Q1=new va("INJECTOR_DEF_TYPES");class k0{get(c,g=Bt){if(g===Bt){const O=new Error(`NullInjectorError: No provider for ${k(c)}!`);throw O.name="NullInjectorError",O}return g}}function s1(l){return{\u0275providers:l}}function R0(...l){return{\u0275providers:sh(!0,l),\u0275fromNgModule:!0}}function sh(l,...c){const g=[],O=new Set;let U;return Fr(c,G=>{const de=G;o1(de,g,[],O)&&(U||(U=[]),U.push(de))}),void 0!==U&&B0(U,g),g}function B0(l,c){for(let g=0;g<l.length;g++){const{ngModule:O,providers:U}=l[g];Ml(U,G=>{c.push(G)})}}function o1(l,c,g,O){if(!(l=P(l)))return!1;let U=null,G=ht(l);const de=!G&&pt(l);if(G||de){if(de&&!de.standalone)return!1;U=l}else{const We=l.ngModule;if(G=ht(We),!G)return!1;U=We}const Se=O.has(U);if(de){if(Se)return!1;if(O.add(U),de.dependencies){const We="function"==typeof de.dependencies?de.dependencies():de.dependencies;for(const ot of We)o1(ot,c,g,O)}}else{if(!G)return!1;{if(null!=G.imports&&!Se){let ot;O.add(U);try{Fr(G.imports,wt=>{o1(wt,c,g,O)&&(ot||(ot=[]),ot.push(wt))})}finally{}void 0!==ot&&B0(ot,c)}if(!Se){const ot=Oa(U)||(()=>new U);c.push({provide:U,useFactory:ot,deps:Tt},{provide:Q1,useValue:U,multi:!0},{provide:er,useValue:()=>vt(U),multi:!0})}const We=G.providers;if(null!=We&&!Se){Ml(We,wt=>{c.push(wt)})}}}return U!==l&&void 0!==l.providers}function Ml(l,c){for(let g of l)z(g)&&(g=g.\u0275providers),Array.isArray(g)?Ml(g,c):c(g)}const U3=D({provide:String,useValue:D});function j1(l){return null!==l&&"object"==typeof l&&U3 in l}function F0(l){return!(!l||!l.useExisting)}function od(l){return!(!l||!l.useFactory)}function l1(l){return"function"==typeof l}const da=new va("Set Injector scope."),q1={},Ec={};let ld;function ql(){return void 0===ld&&(ld=new k0),ld}class tl{}class Xl extends tl{constructor(c,g,O,U){super(),this.parent=g,this.source=O,this.scopes=U,this.records=new Map,this._ngOnDestroyHooks=new Set,this._onDestroyHooks=[],this._destroyed=!1,c1(c,de=>this.processProvider(de)),this.records.set(r1,Jl(void 0,this)),U.has("environment")&&this.records.set(tl,Jl(void 0,this));const G=this.records.get(da);null!=G&&"string"==typeof G.value&&this.scopes.add(G.value),this.injectorDefTypes=new Set(this.get(Q1.multi,Tt,ee.Self))}get destroyed(){return this._destroyed}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=pn(this),O=Oe(void 0);try{return c()}finally{pn(g),Oe(O)}}get(c,g=Bt,O=ee.Default){this.assertNotDestroyed(),O=J(O);const U=pn(this),G=Oe(void 0);try{if(!(O&ee.SkipSelf)){let Se=this.records.get(c);if(void 0===Se){const We=function xo(l){return"function"==typeof l||"object"==typeof l&&l instanceof va}(c)&&xe(c);Se=We&&this.injectableDefInScope(We)?Jl(cd(c),q1):null,this.records.set(c,Se)}if(null!=Se)return this.hydrate(c,Se)}const de=O&ee.Self?ql():this.parent;return g=O&ee.Optional&&g===Bt?null:g,de.get(c,g)}catch(de){if("NullInjectorError"===de.name){if((de[yn]=de[yn]||[]).unshift(k(c)),U)throw de;return Dt(de,c,"R3InjectorError",this.source)}throw de}finally{Oe(G),pn(U)}}resolveInjectorInitializers(){const c=pn(this),g=Oe(void 0);try{const O=this.get(er.multi,Tt,ee.Self);for(const U of O)U()}finally{pn(c),Oe(g)}}toString(){const c=[],g=this.records;for(const O of g.keys())c.push(k(O));return`R3Injector[${c.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new Z(205,!1)}processProvider(c){let g=l1(c=P(c))?c:P(c&&c.provide);const O=function Dc(l){if(j1(l))return Jl(void 0,l.useValue);return Jl(dd(l),q1)}(c);if(l1(c)||!0!==c.multi){this.records.get(g)}else{let U=this.records.get(g);U||(U=Jl(void 0,q1,!0),U.factory=()=>oe(U.multi),this.records.set(g,U)),g=c,U.multi.push(c)}this.records.set(g,O)}hydrate(c,g){return g.value===q1&&(g.value=Ec,g.value=g.factory()),"object"==typeof g.value&&g.value&&function Vs(l){return null!==l&&"object"==typeof l&&"function"==typeof l.ngOnDestroy}(g.value)&&this._ngOnDestroyHooks.add(g.value),g.value}injectableDefInScope(c){if(!c.providedIn)return!1;const g=P(c.providedIn);return"string"==typeof g?"any"===g||this.scopes.has(g):this.injectorDefTypes.has(g)}}function cd(l){const c=xe(l),g=null!==c?c.factory:Oa(l);if(null!==g)return g;if(l instanceof va)throw new Z(204,!1);if(l instanceof Function)return function Xr(l){const c=l.length;if(c>0){Us(c,"?");throw new Z(204,!1)}const g=function ve(l){const c=l&&(l[Le]||l[te]);if(c){const g=function et(l){if(l.hasOwnProperty("name"))return l.name;const c=(""+l).match(/^function\s*([^\s(]+)/);return null===c?"":c[1]}(l);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}(l);return null!==g?()=>g.factory(l):()=>new l}(l);throw new Z(204,!1)}function dd(l,c,g){let O;if(l1(l)){const U=P(l);return Oa(U)||cd(U)}if(j1(l))O=()=>P(l.useValue);else if(od(l))O=()=>l.useFactory(...oe(l.deps||[]));else if(F0(l))O=()=>vt(P(l.useExisting));else{const U=P(l&&(l.useClass||l.provide));if(!function bo(l){return!!l.deps}(l))return Oa(U)||cd(U);O=()=>new U(...oe(l.deps))}return O}function Jl(l,c,g=!1){return{factory:l,value:c,multi:g?[]:void 0}}function c1(l,c){for(const g of l)Array.isArray(g)?c1(g,c):g&&z(g)?c1(g.\u0275providers,c):c(g)}class Ho{}class X1{}const z0="ngComponent";class lh{resolveComponentFactory(c){throw function oh(l){const c=Error(`No component factory found for ${k(l)}. Did you add it to @NgModule.entryComponents?`);return c[z0]=l,c}(c)}}class d1{}function u1(l,c){return new Ac(Li(l,c))}d1.NULL=new lh;class Ac{constructor(c){this.nativeElement=c}}function ud(l){return l instanceof Ac?l.nativeElement:l}Ac.__NG_ELEMENT_ID__=function V3(){return u1(Ra(),kn())};class hd{}class U0{}U0.__NG_ELEMENT_ID__=()=>function ch(){const l=kn(),g=ca(Ra().index,l);return(Hi(g)?g:l)[11]}();class fd{}fd.\u0275prov=Ke({token:fd,providedIn:"root",factory:()=>null});class dh{constructor(c){this.full=c,this.major=c.split(".")[0],this.minor=c.split(".")[1],this.patch=c.split(".").slice(2).join(".")}}const V0=new dh("15.0.2"),pd={},J1="ngOriginalError";function W0(l){return l[J1]}class El{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&&W0(c);for(;g&&W0(g);)g=W0(g);return g||null}}function K0(l){return l.ownerDocument.defaultView}function $1(l){return l.ownerDocument}function af(l){return l.ownerDocument.body}function nl(l){return l instanceof Function?l():l}function mh(l,c,g){let O=l.length;for(;;){const U=l.indexOf(c,g);if(-1===U)return U;if(0===U||l.charCodeAt(U-1)<=32){const G=c.length;if(U+G===O||l.charCodeAt(U+G)<=32)return U}g=U+1}}const Dl="ng-template";function t2(l,c,g){let O=0;for(;O<l.length;){let U=l[O++];if(g&&"class"===U){if(U=l[O],-1!==mh(U.toLowerCase(),c,0))return!0}else if(1===U){for(;O<l.length&&"string"==typeof(U=l[O++]);)if(U.toLowerCase()===c)return!0;return!1}}return!1}function $l(l){return 4===l.type&&l.value!==Dl}function Z3(l,c,g){return c===(4!==l.type||g?l.value:Dl)}function Y3(l,c,g){let O=4;const U=l.attrs||[],G=function bh(l){for(let c=0;c<l.length;c++){if(Ma(l[c]))return c}return l.length}(U);let de=!1;for(let Se=0;Se<c.length;Se++){const We=c[Se];if("number"!=typeof We){if(!de)if(4&O){if(O=2|1&O,""!==We&&!Z3(l,We,g)||""===We&&1===c.length){if(Ao(O))return!1;de=!0}}else{const ot=8&O?We:c[++Se];if(8&O&&null!==l.attrs){if(!t2(l.attrs,ot,g)){if(Ao(O))return!1;de=!0}continue}const Kt=vh(8&O?"class":We,U,$l(l),g);if(-1===Kt){if(Ao(O))return!1;de=!0;continue}if(""!==ot){let cn;cn=Kt>G?"":U[Kt+1].toLowerCase();const bn=8&O?cn:null;if(bn&&-1!==mh(bn,ot,0)||2&O&&ot!==cn){if(Ao(O))return!1;de=!0}}}}else{if(!de&&!Ao(O)&&!Ao(We))return!1;if(de&&Ao(We))continue;de=!1,O=We|1&O}}return Ao(O)||de}function Ao(l){return 0==(1&l)}function vh(l,c,g,O){if(null===c)return-1;let U=0;if(O||!g){let G=!1;for(;U<c.length;){const de=c[U];if(de===l)return U;if(3===de||6===de)G=!0;else{if(1===de||2===de){let Se=c[++U];for(;"string"==typeof Se;)Se=c[++U];continue}if(4===de)break;if(0===de){U+=4;continue}}U+=G?1:2}return-1}return function xh(l,c){let g=l.indexOf(4);if(g>-1)for(g++;g<l.length;){const O=l[g];if("number"==typeof O)return-1;if(O===c)return g;g++}return-1}(c,l)}function G0(l,c,g=!1){for(let O=0;O<c.length;O++)if(Y3(l,c[O],g))return!0;return!1}function Ch(l,c){e:for(let g=0;g<c.length;g++){const O=c[g];if(l.length===O.length){for(let U=0;U<l.length;U++)if(l[U]!==O[U])continue e;return!0}}return!1}function Z0(l,c){return l?":not("+c.trim()+")":c}function Q3(l){let c=l[0],g=1,O=2,U="",G=!1;for(;g<l.length;){let de=l[g];if("string"==typeof de)if(2&O){const Se=l[++g];U+="["+de+(Se.length>0?'="'+Se+'"':"")+"]"}else 8&O?U+="."+de:4&O&&(U+=" "+de);else""!==U&&!Ao(de)&&(c+=Z0(G,U),U=""),O=de,G=G||!Ao(O);g++}return""!==U&&(c+=Z0(G,U)),c}const Vi={};function md(l){Dh(Ui(),kn(),Ne()+l,!1)}function Dh(l,c,g,O){if(!O)if(3==(3&c[2])){const G=l.preOrderCheckHooks;null!==G&&Pt(c,G,g)}else{const G=l.preOrderHooks;null!==G&&Qe(c,G,0,g)}fe(g)}const gd={\u0275\u0275defineInjectable:Ke,\u0275\u0275defineInjector:Ve,\u0275\u0275inject:vt,\u0275\u0275invalidFactoryDep:dt,resolveForwardRef:P};function n2(l,c){let g=null,O=null;l.hasOwnProperty(Le)||Object.defineProperty(l,Le,{get:()=>(null===g&&(g=Dn().compileInjectable(gd,`ng:///${l.name}/\u0275prov.js`,function nt(l,c){const g=c||{providedIn:null},O={name:l.name,type:l,typeArgumentCount:0,providedIn:g.providedIn};return(T(g)||V(g))&&void 0!==g.deps&&(O.deps=Mu(g.deps)),T(g)?O.useClass=g.useClass:function x(l){return K in l}(g)?O.useValue=g.useValue:V(g)?O.useFactory=g.useFactory:function ge(l){return void 0!==l.useExisting}(g)&&(O.useExisting=g.useExisting),O}(l,c))),g)}),l.hasOwnProperty(Rt)||Object.defineProperty(l,Rt,{get:()=>{if(null===O){const U=Dn();O=U.compileFactory(gd,`ng:///${l.name}/\u0275fac.js`,{name:l.name,type:l,typeArgumentCount:0,deps:hc(l),target:U.FactoryTarget.Injectable})}return O},configurable:!0})}const K=D({provide:String,useValue:D});function T(l){return void 0!==l.useClass}function V(l){return void 0!==l.useFactory}const kt=cs("Injectable",void 0,void 0,void 0,(l,c)=>n2(l,c));function jt(l,c=null,g=null,O){const U=on(l,c,g,O);return U.resolveInjectorInitializers(),U}function on(l,c=null,g=null,O,U=new Set){const G=[g||Tt,R0(l)];return O=O||("object"==typeof l?void 0:k(l)),new Xl(G,c||ql(),O||null,U)}class xn{static create(c,g){if(Array.isArray(c))return jt({name:""},g,c,"");{const O=c.name??"";return jt({name:O},c.parent,c.providers,O)}}}function Xn(l){return l.length>1?" ("+function fi(l){const c=[];for(let g=0;g<l.length;++g){if(c.indexOf(l[g])>-1)return c.push(l[g]),c;c.push(l[g])}return c}(l.slice().reverse()).map(O=>k(O.token)).join(" -> ")+")":""}function Pi(l,c,g,O){const U=[c],G=g(U),de=O?function uh(l,c){const g=`${l} caused by: ${c instanceof Error?c.message:c}`,O=Error(g);return O[J1]=c,O}(G,O):Error(G);return de.addKey=Ni,de.keys=U,de.injectors=[l],de.constructResolvingMessage=g,de[J1]=O,de}function Ni(l,c){this.injectors.push(l),this.keys.push(c),this.message=this.constructResolvingMessage(this.keys)}function Jr(l,c){const g=[];for(let O=0,U=c.length;O<U;O++){const G=c[O];G&&0!=G.length?g.push(G.map(k).join(" ")):g.push("?")}return Error("Cannot resolve all parameters for '"+k(l)+"'("+g.join(", ")+"). Make sure that all the parameters are decorated with Inject or have valid type annotations and that '"+k(l)+"' is decorated with Injectable.")}function hs(l,c){return Error(`Cannot mix multi providers and regular providers, got: ${l} ${c}`)}xn.THROW_IF_NOT_FOUND=Bt,xn.NULL=new k0,xn.\u0275prov=Ke({token:xn,providedIn:"any",factory:()=>vt(r1)}),xn.__NG_ELEMENT_ID__=-1;class lo{constructor(c,g){if(this.token=c,this.id=g,!c)throw new Z(208,!1);this.displayName=k(this.token)}static get(c){return Ms.get(P(c))}static get numberOfKeys(){return Ms.numberOfKeys}}const Ms=new class il{constructor(){this._allKeys=new Map}get(c){if(c instanceof lo)return c;if(this._allKeys.has(c))return this._allKeys.get(c);const g=new lo(c,lo.numberOfKeys);return this._allKeys.set(c,g),g}get numberOfKeys(){return this._allKeys.size}};class To{constructor(c,g,O){this.key=c,this.optional=g,this.visibility=O}static fromKey(c){return new To(c,!1,null)}}const al=[];class zo{constructor(c,g,O){this.key=c,this.resolvedFactories=g,this.multiProvider=O,this.resolvedFactory=this.resolvedFactories[0]}}class Ah{constructor(c,g){this.factory=c,this.dependencies=g}}function h1(l){let c,g;if(l.useClass){const O=P(l.useClass);c=Ul().factory(O),g=ki(O)}else l.useExisting?(c=O=>O,g=[To.fromKey(lo.get(l.useExisting))]):l.useFactory?(c=l.useFactory,g=function wi(l,c){if(c){const g=c.map(O=>[O]);return c.map(O=>_a(l,O,g))}return ki(l)}(l.useFactory,l.deps)):(c=()=>l.useValue,g=al);return new Ah(c,g)}function Tc(l){return new zo(lo.get(l.provide),[h1(l)],l.multi||!1)}function Th(l){const O=function wh(l,c){for(let g=0;g<l.length;g++){const O=l[g],U=c.get(O.key.id);if(U){if(O.multiProvider!==U.multiProvider)throw hs(U,O);if(O.multiProvider)for(let G=0;G<O.resolvedFactories.length;G++)U.resolvedFactories.push(O.resolvedFactories[G]);else c.set(O.key.id,O)}else{let G;G=O.multiProvider?new zo(O.key,O.resolvedFactories.slice(),O.multiProvider):O,c.set(O.key.id,G)}}return c}(vi(l,[]).map(Tc),new Map);return Array.from(O.values())}function vi(l,c){return l.forEach(g=>{if(g instanceof Rn)c.push({provide:g,useClass:g});else if(g&&"object"==typeof g&&void 0!==g.provide)c.push(g);else{if(!Array.isArray(g))throw function Ia(l){return Error(`Invalid provider - only instances of Provider and Type are allowed, got: ${l}`)}(g);vi(g,c)}}),c}function ki(l){const c=Ul().parameters(l);if(!c)return[];if(c.some(g=>null==g))throw Jr(l,c);return c.map(g=>_a(l,g,c))}function _a(l,c,g){let O=null,U=!1;if(!Array.isArray(c))return Tr(c instanceof jc?c.token:c,U,null);let G=null;for(let de=0;de<c.length;++de){const Se=c[de];Se instanceof Rn?O=Se:Se instanceof jc?O=Se.token:Se instanceof B2?U=!0:Se instanceof qc||Se instanceof bl?G=Se:Se instanceof va&&(O=Se)}if(O=P(O),null!=O)return Tr(O,U,G);throw Jr(l,g)}function Tr(l,c,g){return new To(lo.get(l),c,g)}const co={};class Es{static resolve(c){return Th(c)}static resolveAndCreate(c,g){const O=Es.resolve(c);return Es.fromResolvedProviders(O,g)}static fromResolvedProviders(c,g){return new Co(c,g)}}class Co{constructor(c,g){this._constructionCounter=0,this._providers=c,this.parent=g||null;const O=c.length;this.keyIds=[],this.objs=[];for(let U=0;U<O;U++)this.keyIds[U]=c[U].key.id,this.objs[U]=co}get(c,g=Bt){return this._getByKey(lo.get(c),null,g)}resolveAndCreateChild(c){const g=Es.resolve(c);return this.createChildFromResolved(g)}createChildFromResolved(c){const g=new Co(c);return g.parent=this,g}resolveAndInstantiate(c){return this.instantiateResolved(Es.resolve([c])[0])}instantiateResolved(c){return this._instantiateProvider(c)}getProviderAtIndex(c){if(c<0||c>=this._providers.length)throw function Ns(l){return Error(`Index ${l} is out-of-bounds.`)}(c);return this._providers[c]}_new(c){if(this._constructionCounter++>this._getMaxNumberOfObjects())throw function Oi(l,c){return Pi(l,c,function(g){return`Cannot instantiate cyclic dependency!${Xn(g)}`})}(this,c.key);return this._instantiateProvider(c)}_getMaxNumberOfObjects(){return this.objs.length}_instantiateProvider(c){if(c.multiProvider){const g=[];for(let O=0;O<c.resolvedFactories.length;++O)g[O]=this._instantiate(c,c.resolvedFactories[O]);return g}return this._instantiate(c,c.resolvedFactories[0])}_instantiate(c,g){const O=g.factory;let U,G;try{U=g.dependencies.map(de=>this._getByReflectiveDependency(de))}catch(de){throw de.addKey&&de.addKey(this,c.key),de}try{G=O(...U)}catch(de){throw function na(l,c,g,O){return Pi(l,O,function(U){const G=k(U[0].token);return`${c.message}: Error during instantiation of ${G}!${Xn(U)}.`},c)}(this,de,de.stack,c.key)}return G}_getByReflectiveDependency(c){return this._getByKey(c.key,c.visibility,c.optional?null:Bt)}_getByKey(c,g,O){return c===Co.INJECTOR_KEY?this:g instanceof qc?this._getByKeySelf(c,O):this._getByKeyDefault(c,O,g)}_getObjByKeyId(c){for(let g=0;g<this.keyIds.length;g++)if(this.keyIds[g]===c)return this.objs[g]===co&&(this.objs[g]=this._new(this._providers[g])),this.objs[g];return co}_throwOrNull(c,g){if(g!==Bt)return g;throw function Ci(l,c){return Pi(l,c,function(g){return`No provider for ${k(g[0].token)}!${Xn(g)}`})}(this,c)}_getByKeySelf(c,g){const O=this._getObjByKeyId(c.id);return O!==co?O:this._throwOrNull(c,g)}_getByKeyDefault(c,g,O){let U;for(U=O instanceof bl?this.parent:this;U instanceof Co;){const G=U,de=G._getObjByKeyId(c.id);if(de!==co)return de;U=G.parent}return null!==U?U.get(c.token,g):this._throwOrNull(c,g)}get displayName(){return`ReflectiveInjector(providers: [${function cr(l,c){const g=[];for(let O=0;O<l._providers.length;++O)g[O]=c(l.getProviderAtIndex(O));return g}(this,g=>' "'+g.key.displayName+'" ').join(", ")}])`}toString(){return this.displayName}}function wc(l,c=ee.Default){const g=kn();if(null===g)return vt(l,c);return O2(Ra(),g,P(l),c)}function Ih(){throw new Error("invalid")}function Al(l,c){const g=l.contentQueries;if(null!==g)for(let O=0;O<g.length;O+=2){const U=g[O],G=g[O+1];if(-1!==G){const de=l.data[G];ko(U),de.contentQueries(2,c[G],G)}}}function f1(l,c,g,O,U,G,de,Se,We,ot,wt){const Kt=c.blueprint.slice();return Kt[0]=U,Kt[2]=76|O,(null!==wt||l&&1024&l[2])&&(Kt[2]|=1024),be(Kt),Kt[3]=Kt[15]=l,Kt[8]=g,Kt[10]=de||l&&l[10],Kt[11]=Se||l&&l[11],Kt[12]=We||l&&l[12]||null,Kt[9]=ot||l&&l[9]||null,Kt[6]=G,Kt[20]=function y3(){return s0++}(),Kt[21]=wt,Kt[16]=2==c.type?l[16]:Kt,Kt}function vd(l,c,g,O,U){let G=l.data[c];if(null===G)G=Lh(l,c,g,O,U),function Po(){return Yt.lFrame.inI18n}()&&(G.flags|=32);else if(64&G.type){G.type=g,G.value=O,G.attrs=U;const de=_o();G.injectorIndex=null===de?-1:de.injectorIndex}return Ba(G,!0),G}function Lh(l,c,g,O,U){const G=Br(),de=$i(),Se=de?G:G&&G.parent,We=l.data[c]=function Hp(l,c,g,O,U,G){let de=c?c.injectorIndex:-1;return{type:g,index:O,insertBeforeIndex:null,injectorIndex:de,directiveStart:-1,directiveEnd:-1,directiveStylingLast:-1,componentOffset:-1,propertyBindings:null,flags:0,providerIndexes:0,value:U,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,c,O,U);return null===l.firstChild&&(l.firstChild=We),null!==G&&(de?null==G.child&&null!==We.parent&&(G.child=We):null===G.next&&(G.next=We)),We}function Y0(l,c,g,O){if(0===g)return-1;const U=c.length;for(let G=0;G<g;G++)c.push(O),l.blueprint.push(O),l.data.push(null);return U}function j3(l,c,g){Yo(c);try{const O=l.viewQuery;null!==O&&a4(1,O,g);const U=l.template;null!==U&&lf(l,c,U,1,g),l.firstCreatePass&&(l.firstCreatePass=!1),l.staticContentQueries&&Al(l,c),l.staticViewQueries&&a4(2,l.viewQuery,g);const G=l.components;null!==G&&function i2(l,c){for(let g=0;g<c.length;g++)Jp(l,c[g])}(c,G)}catch(O){throw l.firstCreatePass&&(l.incompleteFirstPass=!0,l.firstCreatePass=!1),O}finally{c[2]&=-5,ks()}}function Sh(l,c,g,O){const U=c[2];if(128==(128&U))return;Yo(c);try{be(c),zs(l.bindingStartIndex),null!==g&&lf(l,c,g,2,O);const de=3==(3&U);if(de){const ot=l.preOrderCheckHooks;null!==ot&&Pt(c,ot,null)}else{const ot=l.preOrderHooks;null!==ot&&Qe(c,ot,0,null),Qt(c,0)}if(function qp(l){for(let c=c0(l);null!==c;c=d0(c)){if(!c[2])continue;const g=c[9];for(let O=0;O<g.length;O++){const U=g[O],G=U[3];0==(512&U[2])&&ct(G,1),U[2]|=512}}}(c),function jp(l){for(let c=c0(l);null!==c;c=d0(c))for(let g=10;g<c.length;g++){const O=c[g],U=O[1];ar(O)&&Sh(U,O,U.template,O[8])}}(c),null!==l.contentQueries&&Al(l,c),de){const ot=l.contentCheckHooks;null!==ot&&Pt(c,ot)}else{const ot=l.contentHooks;null!==ot&&Qe(c,ot,1),Qt(c,1)}!function Fs(l,c){const g=l.hostBindingOpCodes;if(null!==g)try{for(let O=0;O<g.length;O++){const U=g[O];if(U<0)fe(~U);else{const G=U,de=g[++O],Se=g[++O];Wc(de,G),Se(2,c[G])}}}finally{fe(-1)}}(l,c);const Se=l.components;null!==Se&&function wo(l,c){for(let g=0;g<c.length;g++)Xp(l,c[g])}(c,Se);const We=l.viewQuery;if(null!==We&&a4(2,We,O),de){const ot=l.viewCheckHooks;null!==ot&&Pt(c,ot)}else{const ot=l.viewHooks;null!==ot&&Qe(c,ot,2),Qt(c,2)}!0===l.firstUpdatePass&&(l.firstUpdatePass=!1),c[2]&=-41,512&c[2]&&(c[2]&=-513,ct(c[3],-1))}finally{ks()}}function lf(l,c,g,O,U){const G=Ne(),de=2&O;try{fe(-1),de&&c.length>22&&Dh(l,c,22,!1),Va(de?2:0,U),g(O,U)}finally{fe(G),Va(de?3:1,U)}}function Q0(l,c,g){if(gr(c)){const O=c.directiveStart,U=c.directiveEnd;for(let G=O;G<U;G++){const de=l.data[G];de.contentQueries&&de.contentQueries(1,g[G],G)}}}function q3(l,c,g){!$s()||(function Wp(l,c,g,O){const U=g.directiveStart,G=g.directiveEnd;l.firstCreatePass||Mo(g,c),us(O,c);const de=g.initialInputs;for(let Se=U;Se<G;Se++){const We=l.data[Se],ot=Ki(We);ot&&Qp(c,g,We);const wt=vl(c,l,Se,g);if(us(wt,c),null!==de&&mf(c,Se-U,wt,We,g,de),ot){ca(g.index,c)[8]=wt}}}(l,c,g,Li(g,c)),64==(64&g.flags)&&pf(l,c,g))}function X3(l,c,g=Li){const O=c.localNames;if(null!==O){let U=c.index+1;for(let G=0;G<O.length;G+=2){const de=O[G+1],Se=-1===de?g(c,l):l[de];l[U++]=Se}}}function J3(l){const c=l.tView;return null===c||c.incompleteFirstPass?l.tView=$3(1,null,l.template,l.decls,l.vars,l.directiveDefs,l.pipeDefs,l.viewQuery,l.schemas,l.consts):c}function $3(l,c,g,O,U,G,de,Se,We,ot){const wt=22+O,Kt=wt+U,cn=function cf(l,c){const g=[];for(let O=0;O<c;O++)g.push(O<l?null:Vi);return g}(wt,Kt),bn="function"==typeof ot?ot():ot;return cn[1]={type:l,blueprint:cn,template:g,queries:null,viewQuery:Se,declTNode:c,data:cn.slice().fill(null,wt),bindingStartIndex:wt,expandoStartIndex:Kt,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 de?de():de,firstChild:null,schemas:We,consts:bn,incompleteFirstPass:!1}}function e4(l,c,g,O){const U=r4(c);null===g?U.push(O):(U.push(g),l.firstCreatePass&&gf(l).push(O,U.length-1))}function df(l,c,g,O){for(let U in l)if(l.hasOwnProperty(U)){g=null===g?{}:g;const G=l[U];null===O?uf(g,c,U,G):O.hasOwnProperty(U)&&uf(g,c,O[U],G)}return g}function uf(l,c,g,O){l.hasOwnProperty(g)?l[g].push(c,O):l[g]=[c,O]}function Uo(l,c,g,O,U,G,de,Se){const We=Li(c,g);let wt,ot=c.inputs;!Se&&null!=ot&&(wt=ot[O])?(s4(l,g,wt,O,U),Sa(c)&&Oh(g,c.index)):3&c.type?(O=function zp(l){return"class"===l?"className":"for"===l?"htmlFor":"formaction"===l?"formAction":"innerHtml"===l?"innerHTML":"readonly"===l?"readOnly":"tabindex"===l?"tabIndex":l}(O),U=null!=de?de(U,c.value||"",O):U,G.setProperty(We,O,U)):c.type}function Oh(l,c){const g=ca(c,l);16&g[2]||(g[2]|=32)}function Ir(l,c,g,O){let U=!1;if($s()){const G=null===O?null:{"":-1},de=function Kp(l,c){const g=l.directiveRegistry;let O=null,U=null;if(g)for(let G=0;G<g.length;G++){const de=g[G];if(G0(c,de.selectors,!1))if(O||(O=[]),Ki(de))if(null!==de.findHostDirectiveDefs){const Se=[];U=U||new Map,de.findHostDirectiveDefs(de,Se,U),O.unshift(...Se,de);Ya(l,c,Se.length)}else O.unshift(de),Ya(l,c,0);else U=U||new Map,de.findHostDirectiveDefs?.(de,O,U),O.push(de)}return null===O?null:[O,U]}(l,g);let Se,We;null===de?Se=We=null:[Se,We]=de,null!==Se&&(U=!0,yd(l,c,g,Se,G,We)),G&&function Gp(l,c,g){if(c){const O=l.localNames=[];for(let U=0;U<c.length;U+=2){const G=g[c[U+1]];if(null==G)throw new Z(-301,!1);O.push(c[U],G)}}}(g,O,G)}return g.mergedAttrs=Na(g.mergedAttrs,g.attrs),U}function yd(l,c,g,O,U,G){for(let ot=0;ot<O.length;ot++)O1(Mo(g,c),l,O[ot].type);!function Zp(l,c,g){l.flags|=1,l.directiveStart=c,l.directiveEnd=c+g,l.providerIndexes=c}(g,l.data.length,O.length);for(let ot=0;ot<O.length;ot++){const wt=O[ot];wt.providersResolver&&wt.providersResolver(wt)}let de=!1,Se=!1,We=Y0(l,c,O.length,null);for(let ot=0;ot<O.length;ot++){const wt=O[ot];g.mergedAttrs=Na(g.mergedAttrs,wt.hostAttrs),Yp(l,g,c,We,wt),t4(We,wt,U),null!==wt.contentQueries&&(g.flags|=4),(null!==wt.hostBindings||null!==wt.hostAttrs||0!==wt.hostVars)&&(g.flags|=64);const Kt=wt.type.prototype;!de&&(Kt.ngOnChanges||Kt.ngOnInit||Kt.ngDoCheck)&&((l.preOrderHooks||(l.preOrderHooks=[])).push(g.index),de=!0),!Se&&(Kt.ngOnChanges||Kt.ngDoCheck)&&((l.preOrderCheckHooks||(l.preOrderCheckHooks=[])).push(g.index),Se=!0),We++}!function hf(l,c,g){const O=c.directiveStart,U=c.directiveEnd,G=l.data,de=c.attrs,Se=[];let We=null,ot=null;for(let wt=O;wt<U;wt++){const Kt=G[wt],cn=g?g.get(Kt):null,bn=cn?cn.inputs:null,On=cn?cn.outputs:null;We=df(Kt.inputs,wt,We,bn),ot=df(Kt.outputs,wt,ot,On);const ii=null===We||null===de||$l(c)?null:$r(We,wt,de);Se.push(ii)}null!==We&&(We.hasOwnProperty("class")&&(c.flags|=8),We.hasOwnProperty("style")&&(c.flags|=16)),c.initialInputs=Se,c.inputs=We,c.outputs=ot}(l,g,G)}function pf(l,c,g){const O=g.directiveStart,U=g.directiveEnd,G=g.index,de=function Kc(){return Yt.lFrame.currentDirectiveIndex}();try{fe(G);for(let Se=O;Se<U;Se++){const We=l.data[Se],ot=c[Se];Rl(Se),(null!==We.hostBindings||0!==We.hostVars||null!==We.hostAttrs)&&_f(We,ot)}}finally{fe(-1),Rl(de)}}function _f(l,c){null!==l.hostBindings&&l.hostBindings(1,c)}function Ya(l,c,g){c.componentOffset=g,(l.components||(l.components=[])).push(c.index)}function t4(l,c,g){if(g){if(c.exportAs)for(let O=0;O<c.exportAs.length;O++)g[c.exportAs[O]]=l;Ki(c)&&(g[""]=l)}}function Yp(l,c,g,O,U){l.data[O]=U;const G=U.factory||(U.factory=Oa(U.type)),de=new Sn(G,Ki(U),wc);l.blueprint[O]=de,g[O]=de,function Vp(l,c,g,O,U){const G=U.hostBindings;if(G){let de=l.hostBindingOpCodes;null===de&&(de=l.hostBindingOpCodes=[]);const Se=~c.index;(function ff(l){let c=l.length;for(;c>0;){const g=l[--c];if("number"==typeof g&&g<0)return g}return 0})(de)!=Se&&de.push(Se),de.push(g,O,G)}}(l,c,O,Y0(l,g,U.hostVars,Vi),U)}function Qp(l,c,g){const O=Li(c,l),U=J3(g),G=l[10],de=kh(l,f1(l,U,null,g.onPush?32:16,O,c,G,G.createRenderer(O,g),null,null,null));l[c.index]=de}function ec(l,c,g,O,U,G){const de=Li(l,c);n4(c[11],de,G,l.value,g,O,U)}function n4(l,c,g,O,U,G,de){if(null==G)l.removeAttribute(c,U,g);else{const Se=null==de?ie(G):de(G,O||"",U);l.setAttribute(c,U,Se,g)}}function mf(l,c,g,O,U,G){const de=G[c];if(null!==de){const Se=O.setInput;for(let We=0;We<de.length;){const ot=de[We++],wt=de[We++],Kt=de[We++];null!==Se?O.setInput(g,Kt,ot,wt):g[wt]=Kt}}}function $r(l,c,g){let O=null,U=0;for(;U<g.length;){const G=g[U];if(0!==G)if(5!==G){if("number"==typeof G)break;if(l.hasOwnProperty(G)){null===O&&(O=[]);const de=l[G];for(let Se=0;Se<de.length;Se+=2)if(de[Se]===c){O.push(G,de[Se+1],g[U+1]);break}}U+=2}else U+=2;else U+=4}return O}function i4(l,c,g,O){return[l,!0,!1,c,null,0,O,g,null,null]}function Xp(l,c){const g=ca(c,l);if(ar(g)){const O=g[1];48&g[2]?Sh(O,g,O.template,g[8]):g[5]>0&&Ph(g)}}function Ph(l){for(let O=c0(l);null!==O;O=d0(O))for(let U=10;U<O.length;U++){const G=O[U];if(ar(G))if(512&G[2]){const de=G[1];Sh(de,G,de.template,G[8])}else G[5]>0&&Ph(G)}const g=l[1].components;if(null!==g)for(let O=0;O<g.length;O++){const U=ca(g[O],l);ar(U)&&U[5]>0&&Ph(U)}}function Jp(l,c){const g=ca(c,l),O=g[1];(function $p(l,c){for(let g=c.length;g<l.blueprint.length;g++)c.push(l.blueprint[g])})(O,g),j3(O,g,g[8])}function kh(l,c){return l[13]?l[14][4]=c:l[13]=c,l[14]=c,c}function Rh(l){for(;l;){l[2]|=32;const c=yo(l);if(xa(l)&&!c)return l;l=c}return null}function Bh(l,c,g,O=!0){const U=c[10];U.begin&&U.begin();try{Sh(l,c,l.template,g)}catch(de){throw O&&yf(c,de),de}finally{U.end&&U.end()}}function a4(l,c,g){ko(0),c(l,g)}function r4(l){return l[7]||(l[7]=[])}function gf(l){return l.cleanup||(l.cleanup=[])}function vf(l,c,g){return(null===l||Ki(l))&&(g=function Xi(l){for(;Array.isArray(l);){if("object"==typeof l[1])return l;l=l[0]}return null}(g[c.index])),g[11]}function yf(l,c){const g=l[9],O=g?g.get(El,null):null;O&&O.handleError(c)}function s4(l,c,g,O,U){for(let G=0;G<g.length;){const de=g[G++],Se=g[G++],We=c[de],ot=l.data[de];null!==ot.setInput?ot.setInput(We,U,O,Se):We[Se]=U}}function Ic(l,c,g){const O=la(c,l);yc(l[11],O,g)}function Nh(l,c,g){let O=g?l.styles:null,U=g?l.classes:null,G=0;if(null!==c)for(let de=0;de<c.length;de++){const Se=c[de];if("number"==typeof Se)G=Se;else if(1==G)U=p(U,Se);else if(2==G){O=p(O,Se+": "+c[++de]+";")}}g?l.styles=O:l.stylesWithoutHost=O,g?l.classes=U:l.classesWithoutHost=U}function Fh(l,c,g,O,U=!1){for(;null!==g;){const G=c[g.index];if(null!==G&&O.push(Bi(G)),La(G))for(let Se=10;Se<G.length;Se++){const We=G[Se],ot=We[1].firstChild;null!==ot&&Fh(We[1],We,ot,O)}const de=g.type;if(8&de)Fh(l,c,g.child,O);else if(32&de){const Se=K2(g,c);let We;for(;We=Se();)O.push(We)}else if(16&de){const Se=Vu(c,g);if(Array.isArray(Se))O.push(...Se);else{const We=yo(c[16]);Fh(We[1],We,Se,O,!0)}}g=U?g.projectionNext:g.next}return O}Co.INJECTOR_KEY=lo.get(xn);class j0{constructor(c,g){this._lView=c,this._cdRefInjectingView=g,this._appRef=null,this._attachedToViewContainer=!1}get rootNodes(){const c=this._lView,g=c[1];return Fh(g,c,g.firstChild,[])}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(La(c)){const g=c[8],O=g?g.indexOf(this):-1;O>-1&&(Y2(c,O),ds(g,O))}this._attachedToViewContainer=!1}Ru(this._lView[1],this._lView)}onDestroy(c){e4(this._lView[1],this._lView,null,c)}markForCheck(){Rh(this._cdRefInjectingView||this._lView)}detach(){this._lView[2]&=-65}reattach(){this._lView[2]|=64}detectChanges(){Bh(this._lView[1],this._lView,this.context)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new Z(902,!1);this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null,function M3(l,c){i1(l,c,c[11],2,null,null)}(this._lView[1],this._lView)}attachToAppRef(c){if(this._attachedToViewContainer)throw new Z(902,!1);this._appRef=c}}class bf extends j0{constructor(c){super(c),this._view=c}detectChanges(){const c=this._view;Bh(c[1],c,c[8],!1)}checkNoChanges(){}get context(){return null}}class xf extends d1{constructor(c){super(),this.ngModule=c}resolveComponentFactory(c){const g=pt(c);return new q0(g,this.ngModule)}}function Cf(l){const c=[];for(let g in l)if(l.hasOwnProperty(g)){const O=l[g];c.push({propName:O,templateName:g})}return c}class Mf{constructor(c,g){this.injector=c,this.parentInjector=g}get(c,g,O){O=J(O);const U=this.injector.get(c,pd,O);return U!==pd||g===pd?U:this.parentInjector.get(c,g,O)}}class q0 extends X1{constructor(c,g){super(),this.componentDef=c,this.ngModule=g,this.componentType=c.type,this.selector=function Mh(l){return l.map(Q3).join(",")}(c.selectors),this.ngContentSelectors=c.ngContentSelectors?c.ngContentSelectors:[],this.isBoundToModule=!!g}get inputs(){return Cf(this.componentDef.inputs)}get outputs(){return Cf(this.componentDef.outputs)}create(c,g,O,U){let G=(U=U||this.ngModule)instanceof tl?U:U?.injector;G&&null!==this.componentDef.getStandaloneInjector&&(G=this.componentDef.getStandaloneInjector(G)||G);const de=G?new Mf(c,G):c,Se=de.get(hd,null);if(null===Se)throw new Z(407,!1);const We=de.get(fd,null),ot=Se.createRenderer(null,this.componentDef),wt=this.componentDef.selectors[0][0]||"div",Kt=O?function Fp(l,c,g){const O=g===zt.ShadowDom;return l.selectRootElement(c,O)}(ot,O,this.componentDef.encapsulation):Z2(ot,wt,function t6(l){const c=l.toLowerCase();return"svg"===c?"svg":"math"===c?Nt:null}(wt)),cn=this.componentDef.onPush?288:272,bn=$3(0,null,null,1,0,null,null,null,null,null),On=f1(null,bn,null,cn,null,null,Se,ot,We,de,null);let ii,hi;Yo(On);try{const Mi=this.componentDef;let Fi,Kn=null;Mi.findHostDirectiveDefs?(Fi=[],Kn=new Map,Mi.findHostDirectiveDefs(Mi,Fi,Kn),Fi.push(Mi)):Fi=[Mi];const ji=function n6(l,c){const g=l[1],O=22;return l[O]=c,vd(g,O,2,"#host",null)}(On,Kt),Kr=function i6(l,c,g,O,U,G,de,Se){const We=U[1];!function a6(l,c,g,O){for(const U of l)c.mergedAttrs=Na(c.mergedAttrs,U.hostAttrs);null!==c.mergedAttrs&&(Nh(c,c.mergedAttrs,!0),null!==g&&Ku(O,g,c))}(O,l,c,de);const ot=G.createRenderer(c,g),wt=f1(U,J3(g),null,g.onPush?32:16,U[l.index],l,G,ot,Se||null,null,null);return We.firstCreatePass&&Ya(We,l,O.length-1),kh(U,wt),U[l.index]=wt}(ji,Kt,Mi,Fi,On,Se,ot);hi=Rr(bn,22),Kt&&function r6(l,c,g,O){if(O)Ka(l,g,["ng-version",V0.full]);else{const{attrs:U,classes:G}=function Eh(l){const c=[],g=[];let O=1,U=2;for(;O<l.length;){let G=l[O];if("string"==typeof G)2===U?""!==G&&c.push(G,l[++O]):8===U&&g.push(G);else{if(!Ao(U))break;U=G}O++}return{attrs:c,classes:g}}(c.selectors[0]);U&&Ka(l,g,U),G&&G.length>0&&C0(l,g,G.join(" "))}}(ot,Mi,Kt,O),void 0!==g&&function Af(l,c,g){const O=l.projection=[];for(let U=0;U<c.length;U++){const G=g[U];O.push(null!=G?Array.from(G):null)}}(hi,this.ngContentSelectors,g),ii=function Df(l,c,g,O,U,G){const de=Ra(),Se=U[1],We=Li(de,U);yd(Se,U,de,g,null,O);for(let wt=0;wt<g.length;wt++){us(vl(U,Se,de.directiveStart+wt,de),U)}pf(Se,U,de),We&&us(We,U);const ot=vl(U,Se,de.directiveStart+de.componentOffset,de);if(l[8]=U[8]=ot,null!==G)for(const wt of G)wt(ot,c);return Q0(Se,de,l),ot}(Kr,Mi,Fi,Kn,On,[s6]),j3(bn,On,null)}finally{ks()}return new Ef(this.componentType,ii,u1(hi,On),On,hi)}}class Ef extends Ho{constructor(c,g,O,U,G){super(),this.location=O,this._rootLView=U,this._tNode=G,this.instance=g,this.hostView=this.changeDetectorRef=new bf(U),this.componentType=c}setInput(c,g){const O=this._tNode.inputs;let U;if(null!==O&&(U=O[c])){const G=this._rootLView;s4(G[1],G,U,c,g),Oh(G,this._tNode.index)}}get injector(){return new ao(this._tNode,this._rootLView)}destroy(){this.hostView.destroy()}onDestroy(c){this.hostView.onDestroy(c)}}function s6(){const l=Ra();yt(kn()[1],l)}function Tf(l){return Object.getPrototypeOf(l.prototype).constructor}function o4(l){let c=Tf(l.type),g=!0;const O=[l];for(;c;){let U;if(Ki(l))U=c.\u0275cmp||c.\u0275dir;else{if(c.\u0275cmp)throw new Z(903,!1);U=c.\u0275dir}if(U){if(g){O.push(U);const de=l;de.inputs=l4(l.inputs),de.declaredInputs=l4(l.declaredInputs),de.outputs=l4(l.outputs);const Se=U.hostBindings;Se&&l6(l,Se);const We=U.viewQuery,ot=U.contentQueries;if(We&&c4(l,We),ot&&o6(l,ot),u(l.inputs,U.inputs),u(l.declaredInputs,U.declaredInputs),u(l.outputs,U.outputs),Ki(U)&&U.data.animation){const wt=l.data;wt.animation=(wt.animation||[]).concat(U.data.animation)}}const G=U.features;if(G)for(let de=0;de<G.length;de++){const Se=G[de];Se&&Se.ngInherit&&Se(l),Se===o4&&(g=!1)}}c=Object.getPrototypeOf(c)}!function wf(l){let c=0,g=null;for(let O=l.length-1;O>=0;O--){const U=l[O];U.hostVars=c+=U.hostVars,U.hostAttrs=Na(U.hostAttrs,g=Na(g,U.hostAttrs))}}(O)}function l4(l){return l===At?{}:l===Tt?[]:l}function c4(l,c){const g=l.viewQuery;l.viewQuery=g?(O,U)=>{c(O,U),g(O,U)}:c}function o6(l,c){const g=l.contentQueries;l.contentQueries=g?(O,U,G)=>{c(O,U,G),g(O,U,G)}:c}function l6(l,c){const g=l.hostBindings;l.hostBindings=g?(O,U)=>{c(O,U),g(O,U)}:c}const c6=["providersResolver"],If=["template","decls","consts","vars","onPush","ngContentSelectors","styles","encapsulation","schemas"];function d6(l){let g,c=Tf(l.type);g=Ki(l)?c.\u0275cmp:c.\u0275dir;const O=l;for(const U of c6)O[U]=g[U];if(Ki(g))for(const U of If)O[U]=g[U]}function u6(l){return c=>{c.findHostDirectiveDefs=Lf,c.hostDirectives=(Array.isArray(l)?l:l()).map(g=>"function"==typeof g?{directive:P(g),inputs:At,outputs:At}:{directive:P(g.directive),inputs:Sf(g.inputs),outputs:Sf(g.outputs)})}}function Lf(l,c,g){if(null!==l.hostDirectives)for(const O of l.hostDirectives){const U=Lt(O.directive);Of(U.declaredInputs,O.inputs),Lf(U,c,g),g.set(U,O),c.push(U)}}function Sf(l){if(void 0===l||0===l.length)return At;const c={};for(let g=0;g<l.length;g+=2)c[l[g]]=l[g+1];return c}function Of(l,c){for(const g in c)if(c.hasOwnProperty(g)){const O=c[g],U=l[g];l[O]=U}}let X0=null;function a2(){if(!X0){const l=_t.Symbol;if(l&&l.iterator)X0=l.iterator;else{const c=Object.getOwnPropertyNames(Map.prototype);for(let g=0;g<c.length;++g){const O=c[g];"entries"!==O&&"size"!==O&&Map.prototype[O]===Map.prototype.entries&&(X0=O)}}}return X0}function J0(l){return!!d4(l)&&(Array.isArray(l)||!(l instanceof Map)&&a2()in l)}function d4(l){return null!==l&&("function"==typeof l||"object"==typeof l)}function Tl(l,c,g){return l[c]=g}function $0(l,c){return l[c]}function Ws(l,c,g){const O=l[c];return!Object.is(O,g)&&(l[c]=g,!0)}function p1(l,c,g,O){const U=Ws(l,c,g);return Ws(l,c+1,O)||U}function Hh(l,c,g,O,U){const G=p1(l,c,g,O);return Ws(l,c+2,U)||G}function rl(l,c,g,O,U,G){const de=p1(l,c,g,O);return p1(l,c+2,U,G)||de}function u4(l,c,g,O){const U=kn();if(Ws(U,to(),c)){Ui();ec(st(),U,l,c,g,O)}return u4}function r2(l,c){let g=!1,O=ss();for(let G=1;G<c.length;G+=2)g=Ws(l,O++,c[G])||g;if(zs(O),!g)return Vi;let U=c[0];for(let G=1;G<c.length;G+=2)U+=ie(c[G])+c[G+1];return U}function bd(l,c,g,O){return Ws(l,to(),g)?c+ie(g)+O:Vi}function xd(l,c,g,O,U,G){const Se=p1(l,ss(),g,U);return Yr(2),Se?c+ie(g)+O+ie(U)+G:Vi}function _1(l,c,g,O,U,G,de,Se){const ot=Hh(l,ss(),g,U,de);return Yr(3),ot?c+ie(g)+O+ie(U)+G+ie(de)+Se:Vi}function Cd(l,c,g,O,U,G,de,Se,We,ot){const Kt=rl(l,ss(),g,U,de,We);return Yr(4),Kt?c+ie(g)+O+ie(U)+G+ie(de)+Se+ie(We)+ot:Vi}function Md(l,c,g,O,U,G,de,Se,We,ot,wt,Kt){const cn=ss();let bn=rl(l,cn,g,U,de,We);return bn=Ws(l,cn+4,wt)||bn,Yr(5),bn?c+ie(g)+O+ie(U)+G+ie(de)+Se+ie(We)+ot+ie(wt)+Kt:Vi}function Ed(l,c,g,O,U,G,de,Se,We,ot,wt,Kt,cn,bn){const On=ss();let ii=rl(l,On,g,U,de,We);return ii=p1(l,On+4,wt,cn)||ii,Yr(6),ii?c+ie(g)+O+ie(U)+G+ie(de)+Se+ie(We)+ot+ie(wt)+Kt+ie(cn)+bn:Vi}function Dd(l,c,g,O,U,G,de,Se,We,ot,wt,Kt,cn,bn,On,ii){const hi=ss();let Mi=rl(l,hi,g,U,de,We);return Mi=Hh(l,hi+4,wt,cn,On)||Mi,Yr(7),Mi?c+ie(g)+O+ie(U)+G+ie(de)+Se+ie(We)+ot+ie(wt)+Kt+ie(cn)+bn+ie(On)+ii:Vi}function Ad(l,c,g,O,U,G,de,Se,We,ot,wt,Kt,cn,bn,On,ii,hi,Mi){const Fi=ss();let Kn=rl(l,Fi,g,U,de,We);return Kn=rl(l,Fi+4,wt,cn,On,hi)||Kn,Yr(8),Kn?c+ie(g)+O+ie(U)+G+ie(de)+Se+ie(We)+ot+ie(wt)+Kt+ie(cn)+bn+ie(On)+ii+ie(hi)+Mi:Vi}function kf(l,c,g,O,U,G){const de=kn(),Se=bd(de,c,g,O);if(Se!==Vi){ec(st(),de,l,Se,U,G)}return kf}function Rf(l,c,g,O,U,G,de,Se){const We=kn(),ot=xd(We,c,g,O,U,G);if(ot!==Vi){ec(st(),We,l,ot,de,Se)}return Rf}function h4(l,c,g,O,U,G,de,Se,We,ot){const wt=kn(),Kt=_1(wt,c,g,O,U,G,de,Se);if(Kt!==Vi){ec(st(),wt,l,Kt,We,ot)}return h4}function Bf(l,c,g,O,U,G,de,Se,We,ot,wt,Kt){const cn=kn(),bn=Cd(cn,c,g,O,U,G,de,Se,We,ot);if(bn!==Vi){ec(st(),cn,l,bn,wt,Kt)}return Bf}function Nf(l,c,g,O,U,G,de,Se,We,ot,wt,Kt,cn,bn){const On=kn(),ii=Md(On,c,g,O,U,G,de,Se,We,ot,wt,Kt);if(ii!==Vi){ec(st(),On,l,ii,cn,bn)}return Nf}function zh(l,c,g,O,U,G,de,Se,We,ot,wt,Kt,cn,bn,On,ii){const hi=kn(),Mi=Ed(hi,c,g,O,U,G,de,Se,We,ot,wt,Kt,cn,bn);if(Mi!==Vi){ec(st(),hi,l,Mi,On,ii)}return zh}function Ff(l,c,g,O,U,G,de,Se,We,ot,wt,Kt,cn,bn,On,ii,hi,Mi){const Fi=kn(),Kn=Dd(Fi,c,g,O,U,G,de,Se,We,ot,wt,Kt,cn,bn,On,ii);if(Kn!==Vi){ec(st(),Fi,l,Kn,hi,Mi)}return Ff}function Hf(l,c,g,O,U,G,de,Se,We,ot,wt,Kt,cn,bn,On,ii,hi,Mi,Fi,Kn){const ji=kn(),Kr=Ad(ji,c,g,O,U,G,de,Se,We,ot,wt,Kt,cn,bn,On,ii,hi,Mi);if(Kr!==Vi){ec(st(),ji,l,Kr,Fi,Kn)}return Hf}function zf(l,c,g,O){const U=kn(),G=r2(U,c);if(G!==Vi){ec(st(),U,l,G,g,O)}return zf}function Uf(l,c,g,O,U,G,de,Se){const We=kn(),ot=Ui(),wt=l+22,Kt=ot.firstCreatePass?function g6(l,c,g,O,U,G,de,Se,We){const ot=c.consts,wt=vd(c,l,4,de||null,bt(ot,Se));Ir(c,g,wt,bt(ot,We)),yt(c,wt);const Kt=wt.tViews=$3(2,wt,O,U,G,c.directiveRegistry,c.pipeRegistry,null,c.schemas,ot);return null!==c.queries&&(c.queries.template(c,wt),Kt.queries=c.queries.embeddedTView(wt)),wt}(wt,ot,We,c,g,O,U,G,de):ot.data[wt];Ba(Kt,!1);const cn=We[11].createComment("");j2(ot,We,cn,Kt),us(cn,We),kh(We,We[wt]=i4(cn,We,cn,Kt)),fa(Kt)&&q3(ot,We,Kt),null!=de&&X3(We,Kt,Se)}function f4(l){return Zr(function dl(){return Yt.lFrame.contextLView}(),22+l)}function p4(l,c,g){const O=kn();if(Ws(O,to(),c)){Uo(Ui(),st(),O,l,c,O[11],g,!1)}return p4}function _4(l,c,g,O,U){const de=U?"class":"style";s4(l,g,c.inputs[de],de,O)}function eu(l,c,g,O){const U=kn(),G=Ui(),de=22+l,Se=U[11],We=U[de]=Z2(Se,c,function Xe(){return Yt.lFrame.currentNamespace}()),ot=G.firstCreatePass?function y6(l,c,g,O,U,G,de){const Se=c.consts,ot=vd(c,l,2,U,bt(Se,G));return Ir(c,g,ot,bt(Se,de)),null!==ot.attrs&&Nh(ot,ot.attrs,!1),null!==ot.mergedAttrs&&Nh(ot,ot.mergedAttrs,!0),null!==c.queries&&c.queries.elementStart(c,ot),ot}(de,G,U,0,c,g,O):G.data[de];return Ba(ot,!0),Ku(Se,We,ot),32!=(32&ot.flags)&&j2(G,U,We,ot),0===function rr(){return Yt.lFrame.elementDepthCount}()&&us(We,U),function gs(){Yt.lFrame.elementDepthCount++}(),fa(ot)&&(q3(G,U,ot),Q0(G,ot,U)),null!==O&&X3(U,ot),eu}function Uh(){let l=Ra();$i()?Hn():(l=l.parent,Ba(l,!1));const c=l;!function Oo(){Yt.lFrame.elementDepthCount--}();const g=Ui();return g.firstCreatePass&&(yt(g,l),gr(l)&&g.queries.elementEnd(l)),null!=c.classesWithoutHost&&function ur(l){return 0!=(8&l.flags)}(c)&&_4(g,c,kn(),c.classesWithoutHost,!0),null!=c.stylesWithoutHost&&function Cr(l){return 0!=(16&l.flags)}(c)&&_4(g,c,kn(),c.stylesWithoutHost,!1),Uh}function m4(l,c,g,O){return eu(l,c,g,O),Uh(),m4}function Td(l,c,g){const O=kn(),U=Ui(),G=l+22,de=U.firstCreatePass?function b6(l,c,g,O,U){const G=c.consts,de=bt(G,O),Se=vd(c,l,8,"ng-container",de);return null!==de&&Nh(Se,de,!0),Ir(c,g,Se,bt(G,U)),null!==c.queries&&c.queries.elementStart(c,Se),Se}(G,U,O,c,g):U.data[G];Ba(de,!0);const Se=O[G]=O[11].createComment("");return j2(U,O,Se,de),us(Se,O),fa(de)&&(q3(U,O,de),Q0(U,de,O)),null!=g&&X3(O,de),Td}function Vh(){let l=Ra();const c=Ui();return $i()?Hn():(l=l.parent,Ba(l,!1)),c.firstCreatePass&&(yt(c,l),gr(l)&&c.queries.elementEnd(l)),Vh}function g4(l,c,g){return Td(l,c,g),Vh(),g4}function v4(){return kn()}function Wh(l){return!!l&&"function"==typeof l.then}function Vf(l){return!!l&&"function"==typeof l.subscribe}const Wf=Vf;function Kh(l,c,g,O){const U=kn(),G=Ui(),de=Ra();return b4(G,U,U[11],de,l,c,O),Kh}function y4(l,c){const g=Ra(),O=kn(),U=Ui();return b4(U,O,vf(Go(U.data),g,O),g,l,c),y4}function b4(l,c,g,O,U,G,de){const Se=fa(O),ot=l.firstCreatePass&&gf(l),wt=c[8],Kt=r4(c);let cn=!0;if(3&O.type||de){const ii=Li(O,c),hi=de?de(ii):ii,Mi=Kt.length,Fi=de?ji=>de(Bi(ji[O.index])):O.index;let Kn=null;if(!de&&Se&&(Kn=function x6(l,c,g,O){const U=l.cleanup;if(null!=U)for(let G=0;G<U.length-1;G+=2){const de=U[G];if(de===g&&U[G+1]===O){const Se=c[7],We=U[G+2];return Se.length>We?Se[We]:null}"string"==typeof de&&(G+=2)}return null}(l,c,U,O.index)),null!==Kn){(Kn.__ngLastListenerFn__||Kn).__ngNextListenerFn__=G,Kn.__ngLastListenerFn__=G,cn=!1}else{G=Gf(O,c,wt,G,!1);const ji=g.listen(hi,U,G);Kt.push(G,ji),ot&&ot.push(U,Fi,Mi,Mi+1)}}else G=Gf(O,c,wt,G,!1);const bn=O.outputs;let On;if(cn&&null!==bn&&(On=bn[U])){const ii=On.length;if(ii)for(let hi=0;hi<ii;hi+=2){const Mi=On[hi],Fi=On[hi+1],Kr=c[Mi][Fi].subscribe(G),ws=Kt.length;Kt.push(G,Kr),ot&&ot.push(U,O.index,ws,-(ws+1))}}}function Kf(l,c,g,O){try{return Va(6,c,g),!1!==g(O)}catch(U){return yf(l,U),!1}finally{Va(7,c,g)}}function Gf(l,c,g,O,U){return function G(de){if(de===Function)return O;Rh(l.componentOffset>-1?ca(l.index,c):c);let We=Kf(c,g,O,de),ot=G.__ngNextListenerFn__;for(;ot;)We=Kf(c,g,ot,de)&&We,ot=ot.__ngNextListenerFn__;return U&&!1===We&&(de.preventDefault(),de.returnValue=!1),We}}function Zf(l=1){return no(l)}function Yf(l,c){let g=null;const O=function yh(l){const c=l.attrs;if(null!=c){const g=c.indexOf(5);if(0==(1&g))return c[g+1]}return null}(l);for(let U=0;U<c.length;U++){const G=c[U];if("*"!==G){if(null===O?G0(l,G,!0):Ch(O,G))return U}else g=U}return g}function x4(l){const c=kn()[16][6];if(!c.projection){const g=l?l.length:1,O=c.projection=Us(g,null),U=O.slice();let G=c.child;for(;null!==G;){const de=l?Yf(G,l):0;null!==de&&(U[de]?U[de].projectionNext=G:O[de]=G,U[de]=G),G=G.next}}}function Qf(l,c=0,g){const O=kn(),U=Ui(),G=vd(U,22+l,16,null,g||null);null===G.projection&&(G.projection=c),Hn(),32!=(32&G.flags)&&function T3(l,c,g){x0(c[11],0,c,g,Bu(l,g,c),zu(g.parent||c[6],g,c))}(U,O,G)}function C4(l,c,g){return Gh(l,"",c,"",g),C4}function Gh(l,c,g,O,U){const G=kn(),de=bd(G,c,g,O);if(de!==Vi){Uo(Ui(),st(),G,l,de,G[11],U,!1)}return Gh}function M4(l,c,g,O,U,G,de){const Se=kn(),We=xd(Se,c,g,O,U,G);if(We!==Vi){Uo(Ui(),st(),Se,l,We,Se[11],de,!1)}return M4}function E4(l,c,g,O,U,G,de,Se,We){const ot=kn(),wt=_1(ot,c,g,O,U,G,de,Se);if(wt!==Vi){Uo(Ui(),st(),ot,l,wt,ot[11],We,!1)}return E4}function D4(l,c,g,O,U,G,de,Se,We,ot,wt){const Kt=kn(),cn=Cd(Kt,c,g,O,U,G,de,Se,We,ot);if(cn!==Vi){Uo(Ui(),st(),Kt,l,cn,Kt[11],wt,!1)}return D4}function jf(l,c,g,O,U,G,de,Se,We,ot,wt,Kt,cn){const bn=kn(),On=Md(bn,c,g,O,U,G,de,Se,We,ot,wt,Kt);if(On!==Vi){Uo(Ui(),st(),bn,l,On,bn[11],cn,!1)}return jf}function qf(l,c,g,O,U,G,de,Se,We,ot,wt,Kt,cn,bn,On){const ii=kn(),hi=Ed(ii,c,g,O,U,G,de,Se,We,ot,wt,Kt,cn,bn);if(hi!==Vi){Uo(Ui(),st(),ii,l,hi,ii[11],On,!1)}return qf}function Xf(l,c,g,O,U,G,de,Se,We,ot,wt,Kt,cn,bn,On,ii,hi){const Mi=kn(),Fi=Dd(Mi,c,g,O,U,G,de,Se,We,ot,wt,Kt,cn,bn,On,ii);if(Fi!==Vi){Uo(Ui(),st(),Mi,l,Fi,Mi[11],hi,!1)}return Xf}function Jf(l,c,g,O,U,G,de,Se,We,ot,wt,Kt,cn,bn,On,ii,hi,Mi,Fi){const Kn=kn(),ji=Ad(Kn,c,g,O,U,G,de,Se,We,ot,wt,Kt,cn,bn,On,ii,hi,Mi);if(ji!==Vi){Uo(Ui(),st(),Kn,l,ji,Kn[11],Fi,!1)}return Jf}function A4(l,c,g){const O=kn(),U=r2(O,c);if(U!==Vi){Uo(Ui(),st(),O,l,U,O[11],g,!1)}return A4}function Zh(l,c){return l<<17|c<<2}function m1(l){return l>>17&32767}function w4(l){return 2|l}function g1(l){return(131068&l)>>2}function I4(l,c){return-131069&l|c<<2}function Yh(l){return 1|l}function $f(l,c,g,O,U,G){let de=G?c.classBindings:c.styleBindings,Se=m1(de),We=g1(de);l[O]=g;let wt,ot=!1;if(Array.isArray(g)){const Kt=g;wt=Kt[1],(null===wt||lr(Kt,wt)>0)&&(ot=!0)}else wt=g;if(U)if(0!==We){const cn=m1(l[Se+1]);l[O+1]=Zh(cn,Se),0!==cn&&(l[cn+1]=I4(l[cn+1],O)),l[Se+1]=function T4(l,c){return 131071&l|c<<17}(l[Se+1],O)}else l[O+1]=Zh(Se,0),0!==Se&&(l[Se+1]=I4(l[Se+1],O)),Se=O;else l[O+1]=Zh(We,0),0===Se?Se=O:l[We+1]=I4(l[We+1],O),We=O;ot&&(l[O+1]=w4(l[O+1])),ep(l,wt,O,!0,G),ep(l,wt,O,!1,G),function E6(l,c,g,O,U){const G=U?l.residualClasses:l.residualStyles;null!=G&&"string"==typeof c&&lr(G,c)>=0&&(g[O+1]=Yh(g[O+1]))}(c,wt,l,O,G),de=Zh(Se,We),G?c.classBindings=de:c.styleBindings=de}function ep(l,c,g,O,U){const G=l[g+1],de=null===c;let Se=O?m1(G):g1(G),We=!1;for(;0!==Se&&(!1===We||de);){const ot=l[Se],wt=l[Se+1];D6(ot,c)&&(We=!0,l[Se+1]=O?Yh(wt):w4(wt)),Se=O?m1(wt):g1(wt)}We&&(l[g+1]=O?w4(G):Yh(G))}function D6(l,c){return null===l||null==c||(Array.isArray(l)?l[1]:l)===c||!(!Array.isArray(l)||"string"!=typeof c)&&lr(l,c)>=0}const Hr={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function tp(l){return l.substring(Hr.key,Hr.keyEnd)}function A6(l){return l.substring(Hr.value,Hr.valueEnd)}function np(l,c){const g=Hr.textEnd;return g===c?-1:(c=Hr.keyEnd=function w6(l,c,g){for(;c<g&&l.charCodeAt(c)>32;)c++;return c}(l,Hr.key=c,g),wd(l,c,g))}function ap(l,c){const g=Hr.textEnd;let O=Hr.key=wd(l,c,g);return g===O?-1:(O=Hr.keyEnd=function I6(l,c,g){let O;for(;c<g&&(45===(O=l.charCodeAt(c))||95===O||(-33&O)>=65&&(-33&O)<=90||O>=48&&O<=57);)c++;return c}(l,O,g),O=sp(l,O,g,58),O=Hr.value=wd(l,O,g),O=Hr.valueEnd=function L6(l,c,g){let O=-1,U=-1,G=-1,de=c,Se=de;for(;de<g;){const We=l.charCodeAt(de++);if(59===We)return Se;34===We||39===We?Se=de=L4(l,We,de,g):c===de-4&&85===G&&82===U&&76===O&&40===We?Se=de=L4(l,41,de,g):We>32&&(Se=de),G=U,U=O,O=-33&We}return Se}(l,O,g),sp(l,O,g,59))}function rp(l){Hr.key=0,Hr.keyEnd=0,Hr.value=0,Hr.valueEnd=0,Hr.textEnd=l.length}function wd(l,c,g){for(;c<g&&l.charCodeAt(c)<=32;)c++;return c}function sp(l,c,g,O){return(c=wd(l,c,g))<g&&c++,c}function L4(l,c,g,O){let U=-1,G=g;for(;G<O;){const de=l.charCodeAt(G++);if(de==c&&92!==U)return G;U=92==de&&92===U?0:de}throw new Error}function S4(l,c,g){return uo(l,c,g,!1),S4}function Ri(l,c){return uo(l,c,null,!0),Ri}function Ks(l){sl(v1,op,l,!1)}function op(l,c){for(let g=function ip(l){return rp(l),ap(l,wd(l,0,Hr.textEnd))}(c);g>=0;g=ap(c,g))v1(l,tp(c),A6(c))}function O4(l){sl(Cs,zr,l,!0)}function zr(l,c){for(let g=function T6(l){return rp(l),np(l,wd(l,0,Hr.textEnd))}(c);g>=0;g=np(c,g))Cs(l,tp(c),!0)}function uo(l,c,g,O){const U=kn(),G=Ui(),de=Yr(2);if(G.firstUpdatePass&&Vo(G,l,de,O),c!==Vi&&Ws(U,de,c)){Qa(G,G.data[Ne()],U,U[11],l,U[de+1]=function S6(l,c){return null==l||("string"==typeof c?l+=c:"object"==typeof l&&(l=k(Jo(l)))),l}(c,g),O,de)}}function sl(l,c,g,O){const U=Ui(),G=Yr(2);U.firstUpdatePass&&Vo(U,null,G,O);const de=kn();if(g!==Vi&&Ws(de,G,g)){const Se=U.data[Ne()];if(ja(Se,O)&&!lp(U,G)){let We=O?Se.classesWithoutHost:Se.stylesWithoutHost;null!==We&&(g=p(We,g||"")),_4(U,Se,de,g,O)}else!function Id(l,c,g,O,U,G,de,Se){U===Vi&&(U=Tt);let We=0,ot=0,wt=0<U.length?U[0]:null,Kt=0<G.length?G[0]:null;for(;null!==wt||null!==Kt;){const cn=We<U.length?U[We+1]:void 0,bn=ot<G.length?G[ot+1]:void 0;let ii,On=null;wt===Kt?(We+=2,ot+=2,cn!==bn&&(On=Kt,ii=bn)):null===Kt||null!==wt&&wt<Kt?(We+=2,On=wt):(ot+=2,On=Kt,ii=bn),null!==On&&Qa(l,c,g,O,On,ii,de,Se),wt=We<U.length?U[We]:null,Kt=ot<G.length?G[ot]:null}}(U,Se,de,de[11],de[G+1],de[G+1]=function fs(l,c,g){if(null==g||""===g)return Tt;const O=[],U=Jo(g);if(Array.isArray(U))for(let G=0;G<U.length;G++)l(O,U[G],!0);else if("object"==typeof U)for(const G in U)U.hasOwnProperty(G)&&l(O,G,U[G]);else"string"==typeof U&&c(O,U);return O}(l,c,g),O,G)}}function lp(l,c){return c>=l.expandoStartIndex}function Vo(l,c,g,O){const U=l.data;if(null===U[g+1]){const G=U[Ne()],de=lp(l,g);ja(G,O)&&null===c&&!de&&(c=!1),c=function Lc(l,c,g,O){const U=Go(l);let G=O?c.residualClasses:c.residualStyles;if(null===U)0===(O?c.classBindings:c.styleBindings)&&(g=Ur(g=Sc(null,l,c,g,O),c.attrs,O),G=null);else{const de=c.directiveStylingLast;if(-1===de||l[de]!==U)if(g=Sc(U,l,c,g,O),null===G){let We=function hr(l,c,g){const O=g?c.classBindings:c.styleBindings;if(0!==g1(O))return l[m1(O)]}(l,c,O);void 0!==We&&Array.isArray(We)&&(We=Sc(null,l,c,We[1],O),We=Ur(We,c.attrs,O),function s2(l,c,g,O){const U=g?c.classBindings:c.styleBindings;l[m1(U)]=O}(l,c,O,We))}else G=function Cn(l,c,g){let O;const U=c.directiveEnd;for(let G=1+c.directiveStylingLast;G<U;G++){O=Ur(O,l[G].hostAttrs,g)}return Ur(O,c.attrs,g)}(l,c,O)}return void 0!==G&&(O?c.residualClasses=G:c.residualStyles=G),g}(U,G,c,O),$f(U,G,c,g,de,O)}}function Sc(l,c,g,O,U){let G=null;const de=g.directiveEnd;let Se=g.directiveStylingLast;for(-1===Se?Se=g.directiveStart:Se++;Se<de&&(G=c[Se],O=Ur(O,G.hostAttrs,U),G!==l);)Se++;return null!==l&&(g.directiveStylingLast=Se),O}function Ur(l,c,g){const O=g?1:2;let U=-1;if(null!==c)for(let G=0;G<c.length;G++){const de=c[G];"number"==typeof de?U=de:U===O&&(Array.isArray(l)||(l=void 0===l?[]:["",l]),Cs(l,de,!!g||c[++G]))}return void 0===l?null:l}function v1(l,c,g){Cs(l,c,Jo(g))}function Qa(l,c,g,O,U,G,de,Se){if(!(3&c.type))return;const We=l.data,ot=We[Se+1],wt=function M6(l){return 1==(1&l)}(ot)?o2(We,c,g,U,g1(ot),de):void 0;if(!l2(wt)){l2(G)||function C6(l){return 2==(2&l)}(ot)&&(G=o2(We,null,g,U,Se,de));!function w3(l,c,g,O,U){if(c)U?l.addClass(g,O):l.removeClass(g,O);else{let G=-1===O.indexOf("-")?void 0:z2.DashCase;null==U?l.removeStyle(g,O,G):("string"==typeof U&&U.endsWith("!important")&&(U=U.slice(0,-10),G|=z2.Important),l.setStyle(g,O,U,G))}}(O,de,la(Ne(),g),U,G)}}function o2(l,c,g,O,U,G){const de=null===c;let Se;for(;U>0;){const We=l[U],ot=Array.isArray(We),wt=ot?We[1]:We,Kt=null===wt;let cn=g[U+1];cn===Vi&&(cn=Kt?Tt:void 0);let bn=Kt?Nl(cn,O):wt===O?cn:void 0;if(ot&&!l2(bn)&&(bn=Nl(We,O)),l2(bn)&&(Se=bn,de))return Se;const On=l[U+1];U=de?m1(On):g1(On)}if(null!==c){let We=G?c.residualClasses:c.residualStyles;null!=We&&(Se=Nl(We,O))}return Se}function l2(l){return void 0!==l}function ja(l,c){return 0!=(l.flags&(c?8:16))}function es(l,c=""){const g=kn(),O=Ui(),U=l+22,G=O.firstCreatePass?vd(O,U,1,c,null):O.data[U],de=g[U]=h0(g[11],c);j2(O,g,de,G),Ba(G,!1)}function Oc(l){return wl("",l,""),Oc}function wl(l,c,g){const O=kn(),U=bd(O,l,c,g);return U!==Vi&&Ic(O,Ne(),U),wl}function tu(l,c,g,O,U){const G=kn(),de=xd(G,l,c,g,O,U);return de!==Vi&&Ic(G,Ne(),de),tu}function Gs(l,c,g,O,U,G,de){const Se=kn(),We=_1(Se,l,c,g,O,U,G,de);return We!==Vi&&Ic(Se,Ne(),We),Gs}function y1(l,c,g,O,U,G,de,Se,We){const ot=kn(),wt=Cd(ot,l,c,g,O,U,G,de,Se,We);return wt!==Vi&&Ic(ot,Ne(),wt),y1}function ps(l,c,g,O,U,G,de,Se,We,ot,wt){const Kt=kn(),cn=Md(Kt,l,c,g,O,U,G,de,Se,We,ot,wt);return cn!==Vi&&Ic(Kt,Ne(),cn),ps}function ol(l,c,g,O,U,G,de,Se,We,ot,wt,Kt,cn){const bn=kn(),On=Ed(bn,l,c,g,O,U,G,de,Se,We,ot,wt,Kt,cn);return On!==Vi&&Ic(bn,Ne(),On),ol}function b1(l,c,g,O,U,G,de,Se,We,ot,wt,Kt,cn,bn,On){const ii=kn(),hi=Dd(ii,l,c,g,O,U,G,de,Se,We,ot,wt,Kt,cn,bn,On);return hi!==Vi&&Ic(ii,Ne(),hi),b1}function ts(l,c,g,O,U,G,de,Se,We,ot,wt,Kt,cn,bn,On,ii,hi){const Mi=kn(),Fi=Ad(Mi,l,c,g,O,U,G,de,Se,We,ot,wt,Kt,cn,bn,On,ii,hi);return Fi!==Vi&&Ic(Mi,Ne(),Fi),ts}function x1(l){const c=kn(),g=r2(c,l);return g!==Vi&&Ic(c,Ne(),g),x1}function Zs(l,c,g){sl(Cs,zr,bd(kn(),l,c,g),!0)}function c2(l,c,g,O,U){sl(Cs,zr,xd(kn(),l,c,g,O,U),!0)}function ho(l,c,g,O,U,G,de){sl(Cs,zr,_1(kn(),l,c,g,O,U,G,de),!0)}function d2(l,c,g,O,U,G,de,Se,We){sl(Cs,zr,Cd(kn(),l,c,g,O,U,G,de,Se,We),!0)}function cp(l,c,g,O,U,G,de,Se,We,ot,wt){sl(Cs,zr,Md(kn(),l,c,g,O,U,G,de,Se,We,ot,wt),!0)}function Ys(l,c,g,O,U,G,de,Se,We,ot,wt,Kt,cn){sl(Cs,zr,Ed(kn(),l,c,g,O,U,G,de,Se,We,ot,wt,Kt,cn),!0)}function Fa(l,c,g,O,U,G,de,Se,We,ot,wt,Kt,cn,bn,On){sl(Cs,zr,Dd(kn(),l,c,g,O,U,G,de,Se,We,ot,wt,Kt,cn,bn,On),!0)}function ll(l,c,g,O,U,G,de,Se,We,ot,wt,Kt,cn,bn,On,ii,hi){sl(Cs,zr,Ad(kn(),l,c,g,O,U,G,de,Se,We,ot,wt,Kt,cn,bn,On,ii,hi),!0)}function C1(l){sl(Cs,zr,r2(kn(),l),!0)}function u2(l,c,g){Ks(bd(kn(),l,c,g))}function Pc(l,c,g,O,U){Ks(xd(kn(),l,c,g,O,U))}function Ld(l,c,g,O,U,G,de){Ks(_1(kn(),l,c,g,O,U,G,de))}function nu(l,c,g,O,U,G,de,Se,We){Ks(Cd(kn(),l,c,g,O,U,G,de,Se,We))}function h2(l,c,g,O,U,G,de,Se,We,ot,wt){Ks(Md(kn(),l,c,g,O,U,G,de,Se,We,ot,wt))}function M1(l,c,g,O,U,G,de,Se,We,ot,wt,Kt,cn){Ks(Ed(kn(),l,c,g,O,U,G,de,Se,We,ot,wt,Kt,cn))}function f2(l,c,g,O,U,G,de,Se,We,ot,wt,Kt,cn,bn,On){Ks(Dd(kn(),l,c,g,O,U,G,de,Se,We,ot,wt,Kt,cn,bn,On))}function P4(l,c,g,O,U,G,de,Se,We,ot,wt,Kt,cn,bn,On,ii,hi){Ks(Ad(kn(),l,c,g,O,U,G,de,Se,We,ot,wt,Kt,cn,bn,On,ii,hi))}function dp(l){Ks(r2(kn(),l))}function Qh(l,c,g,O,U){return uo(l,bd(kn(),c,g,O),U,!1),Qh}function kc(l,c,g,O,U,G,de){return uo(l,xd(kn(),c,g,O,U,G),de,!1),kc}function jh(l,c,g,O,U,G,de,Se,We){return uo(l,_1(kn(),c,g,O,U,G,de,Se),We,!1),jh}function qh(l,c,g,O,U,G,de,Se,We,ot,wt){return uo(l,Cd(kn(),c,g,O,U,G,de,Se,We,ot),wt,!1),qh}function Xh(l,c,g,O,U,G,de,Se,We,ot,wt,Kt,cn){return uo(l,Md(kn(),c,g,O,U,G,de,Se,We,ot,wt,Kt),cn,!1),Xh}function tc(l,c,g,O,U,G,de,Se,We,ot,wt,Kt,cn,bn,On){return uo(l,Ed(kn(),c,g,O,U,G,de,Se,We,ot,wt,Kt,cn,bn),On,!1),tc}function Il(l,c,g,O,U,G,de,Se,We,ot,wt,Kt,cn,bn,On,ii,hi){return uo(l,Dd(kn(),c,g,O,U,G,de,Se,We,ot,wt,Kt,cn,bn,On,ii),hi,!1),Il}function p2(l,c,g,O,U,G,de,Se,We,ot,wt,Kt,cn,bn,On,ii,hi,Mi,Fi){return uo(l,Ad(kn(),c,g,O,U,G,de,Se,We,ot,wt,Kt,cn,bn,On,ii,hi,Mi),Fi,!1),p2}function up(l,c,g){return uo(l,r2(kn(),c),g,!1),up}function Ds(l,c,g){const O=kn();if(Ws(O,to(),c)){Uo(Ui(),st(),O,l,c,O[11],g,!0)}return Ds}function fr(l,c,g){const O=kn();if(Ws(O,to(),c)){const G=Ui(),de=st();Uo(G,de,O,l,c,vf(Go(G.data),de,O),g,!0)}return fr}const E1=void 0;var iu=["en",[["a","p"],["AM","PM"],E1],[["AM","PM"],E1,E1],[["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"]],E1,[["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"]],E1,[["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}",E1,"{1} 'at' {0}",E1],[".",",",";","%","+","-","E","\xd7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0%","\xa4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",function Lr(l){const g=Math.floor(Math.abs(l)),O=l.toString().replace(/^[^.]*\.?/,"").length;return 1===g&&0===O?1:5}];let Io={};function Sd(l){const c=function ru(l){return l.toLowerCase().replace(/_/g,"-")}(l);let g=Rc(c);if(g)return g;const O=c.split("-")[0];if(g=Rc(O),g)return g;if("en"===O)return iu;throw new Z(701,!1)}function au(l){return Sd(l)[Ll.PluralCase]}function Rc(l){return l in Io||(Io[l]=_t.ng&&_t.ng.common&&_t.ng.common.locales&&_t.ng.common.locales[l]),Io[l]}var Ll;!function(l){l[l.LocaleId=0]="LocaleId",l[l.DayPeriodsFormat=1]="DayPeriodsFormat",l[l.DayPeriodsStandalone=2]="DayPeriodsStandalone",l[l.DaysFormat=3]="DaysFormat",l[l.DaysStandalone=4]="DaysStandalone",l[l.MonthsFormat=5]="MonthsFormat",l[l.MonthsStandalone=6]="MonthsStandalone",l[l.Eras=7]="Eras",l[l.FirstDayOfWeek=8]="FirstDayOfWeek",l[l.WeekendRange=9]="WeekendRange",l[l.DateFormat=10]="DateFormat",l[l.TimeFormat=11]="TimeFormat",l[l.DateTimeFormat=12]="DateTimeFormat",l[l.NumberSymbols=13]="NumberSymbols",l[l.NumberFormats=14]="NumberFormats",l[l.CurrencyCode=15]="CurrencyCode",l[l.CurrencySymbol=16]="CurrencySymbol",l[l.CurrencyName=17]="CurrencyName",l[l.Currencies=18]="Currencies",l[l.Directionality=19]="Directionality",l[l.PluralCase=20]="PluralCase",l[l.ExtraData=21]="ExtraData"}(Ll||(Ll={}));const Od=["zero","one","two","few","many"];const pr="en-US",Bc={marker:"element"},Wo={marker:"ICU"};var As;!function(l){l[l.SHIFT=2]="SHIFT",l[l.APPEND_EAGERLY=1]="APPEND_EAGERLY",l[l.COMMENT=2]="COMMENT"}(As||(As={}));let Pd=pr;function kd(l){N(l,"Expected localeId to be defined"),"string"==typeof l&&(Pd=l.toLowerCase().replace(/_/g,"-"))}function m2(l,c,g){const O=c.insertBeforeIndex,U=Array.isArray(O)?O[0]:O;return null===U?Uu(l,0,g):Bi(g[U])}function g2(l,c,g,O,U){const G=c.insertBeforeIndex;if(Array.isArray(G)){let de=O,Se=null;if(3&c.type||(Se=de,de=U),null!==de&&-1===c.componentOffset)for(let We=1;We<G.length;We++){Yl(l,de,g[G[We]],Se,!1)}}}function v2(l,c){if(l.push(c),l.length>1)for(let g=l.length-2;g>=0;g--){const O=l[g];Rd(O)||y2(O,c)&&null===Bd(O)&&su(O,c.index)}}function Rd(l){return!(64&l.type)}function y2(l,c){return Rd(c)||l.index>c.index}function Bd(l){const c=l.insertBeforeIndex;return Array.isArray(c)?c[0]:c}function su(l,c){const g=l.insertBeforeIndex;Array.isArray(g)?g[0]=c:(v0(m2,g2),l.insertBeforeIndex=c)}function nc(l,c){const g=l.data[c];return null===g||"string"==typeof g?null:g.hasOwnProperty("currentCaseLViewIndex")?g:g.value}function k4(l,c,g){const O=Lh(l,g,64,null,null);return v2(c,O),O}function D1(l,c){const g=c[l.currentCaseLViewIndex];return null===g?g:g<0?~g:g}function b2(l){return l>>>17}function x2(l){return(131070&l)>>>1}let Fc=0,ic=0;function A1(l,c,g,O){const U=g[11];let de,G=null;for(let Se=0;Se<c.length;Se++){const We=c[Se];if("string"==typeof We){const ot=c[++Se];null===g[ot]&&(g[ot]=h0(U,We))}else if("number"==typeof We)switch(1&We){case 0:const ot=b2(We);let wt,Kt;if(null===G&&(G=ot,de=Q2(U,O)),ot===G?(wt=O,Kt=de):(wt=null,Kt=Bi(g[ot])),null!==Kt){const ii=x2(We);Yl(U,Kt,g[ii],wt,!1);const Mi=nc(l,ii);if(null!==Mi&&"object"==typeof Mi){const Fi=D1(Mi,g);null!==Fi&&A1(l,Mi.create[Fi],g,g[Mi.anchorIdx])}}break;case 1:const cn=We>>>1,bn=c[++Se],On=c[++Se];n4(U,la(cn,g),null,null,bn,On,null)}else switch(We){case Wo:const ot=c[++Se],wt=c[++Se];if(null===g[wt]){us(g[wt]=x3(U,ot),g)}break;case Bc:const Kt=c[++Se],cn=c[++Se];if(null===g[cn]){us(g[cn]=Z2(U,Kt,null),g)}}}}function E2(l,c,g,O,U){for(let G=0;G<g.length;G++){const de=g[G],Se=g[++G];if(de&U){let We="";for(let ot=G+1;ot<=G+Se;ot++){const wt=g[ot];if("string"==typeof wt)We+=wt;else if("number"==typeof wt)if(wt<0)We+=ie(c[O-wt]);else{const Kt=wt>>>2;switch(3&wt){case 1:const cn=g[++ot],bn=g[++ot],On=l.data[Kt];"string"==typeof On?n4(c[11],c[Kt],null,On,cn,We,bn):Uo(l,On,c,cn,We,c[11],bn,!1);break;case 0:const ii=c[Kt];null!==ii&&yc(c[11],ii,We);break;case 2:pp(l,nc(l,Kt),c,We);break;case 3:Hd(l,nc(l,Kt),O,c)}}}}else{const We=g[G+1];if(We>0&&3==(3&We)){const wt=nc(l,We>>>2);c[wt.currentCaseLViewIndex]<0&&Hd(l,wt,O,c)}}G+=Se}}function Hd(l,c,g,O){let U=O[c.currentCaseLViewIndex];if(null!==U){let G=Fc;U<0&&(U=O[c.currentCaseLViewIndex]=~U,G=-1),E2(l,O,c.update[U],g,G)}}function pp(l,c,g,O){const U=function T1(l,c){let g=l.cases.indexOf(c);if(-1===g)switch(l.type){case 1:{const O=function _2(l,c){const g=au(c)(parseInt(l,10)),O=Od[g];return void 0!==O?O:"other"}(c,function Nc(){return Pd}());g=l.cases.indexOf(O),-1===g&&"other"!==O&&(g=l.cases.indexOf("other"));break}case 0:g=l.cases.indexOf("other")}return-1===g?null:g}(c,O);if(D1(c,g)!==U&&(zd(l,c,g),g[c.currentCaseLViewIndex]=null===U?null:~U,null!==U)){const de=g[c.anchorIdx];de&&A1(l,c.create[U],g,de)}}function zd(l,c,g){let O=D1(c,g);if(null!==O){const U=c.remove[O];for(let G=0;G<U.length;G++){const de=U[G];if(de>0){const Se=la(de,g);null!==Se&&y0(g[11],Se)}else zd(l,nc(l,~de),g)}}}function Ud(){const l=[];let g,O,c=-1;function G(Se,We){c=0;const ot=D1(Se,We);O=null!==ot?Se.remove[ot]:Tt}function de(){if(c<O.length){const Se=O[c++];if(Se>0)return g[Se];{l.push(c,O);const We=~Se;return G(g[1].data[We],g),de()}}return 0===l.length?null:(O=l.pop(),c=l.pop(),de())}return function U(Se,We){for(g=We;l.length;)l.pop();return G(Se.value,We),de}}const Sl=/\ufffd(\d+):?\d*\ufffd/gi,Wd=/({\s*\ufffd\d+:?\d*\ufffd\s*,\s*\S{6}\s*,[\s\S]*})/gi,_p=/\ufffd(\d+)\ufffd/,R4=/^\s*(\ufffd\d+:?\d*\ufffd)\s*,\s*(select|plural)\s*,/,w_=/\ufffd\/?\*(\d+:\d+)\ufffd/gi,mp=/\ufffd(\/?[#*]\d+):?\d*\ufffd/gi,gp=/\uE500/g;function uu(l,c,g,O,U,G){const de=_o(),Se=[],We=[],ot=[[]];U=function fu(l,c){if(function hu(l){return-1===l}(c))return Yd(l);{const g=l.indexOf(`:${c}\ufffd`)+2+c.toString().length,O=l.search(new RegExp(`\ufffd\\/\\*\\d+:${c}\ufffd`));return Yd(l.substring(g,O))}}(U,G);const wt=function du(l){return l.replace(gp," ")}(U).split(mp);for(let Kt=0;Kt<wt.length;Kt++){let cn=wt[Kt];if(0==(1&Kt)){const bn=B4(cn);for(let On=0;On<bn.length;On++){let ii=bn[On];if(0==(1&On)){const hi=ii;""!==hi&&Kd(l,de,ot[0],Se,We,g,hi)}else{const hi=ii;if("object"!=typeof hi)throw new Error(`Unable to parse ICU expression in "${U}" message.`);Qd(l,g,We,c,hi,A2(l,de,ot[0],g,Se,"",!0).index)}}}else{const bn=47===cn.charCodeAt(0),ii=(cn.charCodeAt(bn?1:0),22+Number.parseInt(cn.substring(bn?2:1)));if(bn)ot.shift(),Ba(_o(),!1);else{const hi=k4(l,ot[0],ii);ot.unshift([]),Ba(hi,!0)}}}l.data[O]={create:Se,update:We}}function A2(l,c,g,O,U,G,de){const Se=Y0(l,O,1,null);let We=Se<<As.SHIFT,ot=_o();c===ot&&(ot=null),null===ot&&(We|=As.APPEND_EAGERLY),de&&(We|=As.COMMENT,function G2(l){void 0===o0&&(o0=l())}(Ud)),U.push(We,null===G?"":G);const wt=Lh(l,Se,de?32:1,null===G?"":G,null);v2(g,wt);const Kt=wt.index;return Ba(wt,!1),null!==ot&&c!==ot&&function fp(l,c){let g=l.insertBeforeIndex;null===g?(v0(m2,g2),g=l.insertBeforeIndex=[null,c]):(o(Array.isArray(g),!0,"Expecting array here"),g.push(c))}(ot,Kt),wt}function Kd(l,c,g,O,U,G,de){const Se=de.match(Sl),We=A2(l,c,g,G,O,Se?null:de,!1);Se&&rc(U,de,We.index,null,0,null)}function rc(l,c,g,O,U,G){const de=l.length,Se=de+1;l.push(null,null);const We=de+2,ot=c.split(Sl);let wt=0;for(let Kt=0;Kt<ot.length;Kt++){const cn=ot[Kt];if(1&Kt){const bn=U+parseInt(cn,10);l.push(-1-bn),wt|=Hc(bn)}else""!==cn&&l.push(cn)}return l.push(g<<2|(O?1:0)),O&&l.push(O,G),l[de]=wt,l[Se]=l.length-We,wt}function Zd(l){let c=0;for(let g=0;g<l.length;g++){const O=l[g];"number"==typeof O&&O<0&&c++}return c}function Hc(l){return 1<<Math.min(l,31)}function Yd(l){let c,G,g="",O=0,U=!1;for(;null!==(c=w_.exec(l));)U?c[0]===`\ufffd/*${G}\ufffd`&&(O=c.index,U=!1):(g+=l.substring(O,c.index+c[0].length),G=c[1],U=!0);return g+=l.slice(O),g}function Qd(l,c,g,O,U,G){let de=0;const Se={type:U.type,currentCaseLViewIndex:Y0(l,c,1,null),anchorIdx:G,cases:[],create:[],remove:[],update:[]};(function i(l,c,g){l.push(Hc(c.mainBinding),2,-1-c.mainBinding,g<<2|2)})(g,U,G),function Nd(l,c,g){const O=l.data[c];null===O?l.data[c]=g:O.value=g}(l,G,Se);const We=U.values;for(let ot=0;ot<We.length;ot++){const wt=We[ot],Kt=[];for(let cn=0;cn<wt.length;cn++){const bn=wt[cn];if("string"!=typeof bn){const On=Kt.push(bn)-1;wt[cn]=`\x3c!--\ufffd${On}\ufffd--\x3e`}}de=qd(l,Se,c,g,O,U.cases[ot],wt.join(""),Kt)|de}de&&function b(l,c,g){l.push(c,1,g<<2|3)}(g,de,G)}function jd(l){const c=[],g=[];let O=1,U=0;const G=B4(l=l.replace(R4,function(de,Se,We){return O="select"===We?0:1,U=parseInt(Se.slice(1),10),""}));for(let de=0;de<G.length;){let Se=G[de++].trim();1===O&&(Se=Se.replace(/\s*(?:=)?(\w+)\s*/,"$1")),Se.length&&c.push(Se);const We=B4(G[de++]);c.length>g.length&&g.push(We)}return{type:O,mainBinding:U,cases:c,values:g}}function B4(l){if(!l)return[];let c=0;const g=[],O=[],U=/[{}]/g;let G;for(U.lastIndex=0;G=U.exec(l);){const Se=G.index;if("}"==G[0]){if(g.pop(),0==g.length){const We=l.substring(c,Se);R4.test(We)?O.push(jd(We)):O.push(We),c=Se+1}}else{if(0==g.length){const We=l.substring(c,Se);O.push(We),c=Se+1}g.push("{")}}const de=l.substring(c);return O.push(de),O}function qd(l,c,g,O,U,G,de,Se){const We=[],ot=[],wt=[];c.cases.push(G),c.create.push(We),c.remove.push(ot),c.update.push(wt);const cn=ed(Zu()).getInertBodyElement(de),bn=ih(cn)||cn;return bn?k6(l,c,g,O,We,ot,wt,bn,U,Se,0):0}function k6(l,c,g,O,U,G,de,Se,We,ot,wt){let Kt=0,cn=Se.firstChild;for(;cn;){const bn=Y0(l,g,1,null);switch(cn.nodeType){case Node.ELEMENT_NODE:const On=cn,ii=On.tagName.toLowerCase();if(jl.hasOwnProperty(ii)){R(U,Bc,ii,We,bn),l.data[bn]=ii;const Kn=On.attributes;for(let ji=0;ji<Kn.length;ji++){const Kr=Kn.item(ji),ws=Kr.name.toLowerCase();Kr.value.match(Sl)?G1.hasOwnProperty(ws)&&(id[ws]?rc(de,Kr.value,bn,Kr.name,0,td):rc(de,Kr.value,bn,Kr.name,0,null)):Y(U,bn,Kr)}Kt=k6(l,c,g,O,U,G,de,cn,bn,ot,wt+1)|Kt,f(G,bn,wt)}break;case Node.TEXT_NODE:const hi=cn.textContent||"",Mi=hi.match(Sl);R(U,null,Mi?"":hi,We,bn),f(G,bn,wt),Mi&&(Kt=rc(de,hi,bn,null,0,null)|Kt);break;case Node.COMMENT_NODE:const Fi=_p.exec(cn.textContent||"");if(Fi){const ji=ot[parseInt(Fi[1],10)];R(U,Wo,"",We,bn),Qd(l,g,O,We,ji,bn),r(G,bn,wt)}}cn=cn.nextSibling}return Kt}function f(l,c,g){0===g&&l.push(c)}function r(l,c,g){0===g&&(l.push(~c),l.push(c))}function R(l,c,g,O,U){null!==c&&l.push(c),l.push(g,U,function ou(l,c,g){return l|c<<17|g<<1}(0,O,U))}function Y(l,c,g){l.push(c<<1|1,g.name,g.value)}const Pe=/\[(\ufffd.+?\ufffd?)\]/,lt=/\[(\ufffd.+?\ufffd?)\]|(\ufffd\/?\*\d+:\d+\ufffd)/g,gt=/({\s*)(VAR_(PLURAL|SELECT)(_\d+)?)(\s*,)/g,Et=/{([A-Z0-9_]+)}/g,Zt=/\ufffdI18N_EXP_(ICU(_\d+)?)\ufffd/g,St=/\/\*/,vn=/\d+\:(\d+)/;function Zn(l,c,g=-1){const O=Ui(),U=kn(),G=22+l,de=bt(O.consts,c),Se=_o();O.firstCreatePass&&uu(O,null===Se?0:Se.index,U,G,de,g);const We=O.data[G],wt=Nu(O,Se===U[6]?null:Se,U),Kt=Se&&8&Se.type?U[Se.index]:null;(function Fd(l,c,g,O){const U=l[11];for(let G=0;G<c.length;G++){const de=c[G++],Se=c[G],We=(de&As.COMMENT)===As.COMMENT,ot=(de&As.APPEND_EAGERLY)===As.APPEND_EAGERLY,wt=de>>>As.SHIFT;let Kt=l[wt];null===Kt&&(Kt=l[wt]=We?U.createComment(Se):h0(U,Se)),ot&&null!==g&&Yl(U,g,Kt,O,!1)}})(U,We.create,wt,Kt),Vc(!0)}function _n(){Vc(!1)}function jn(l,c,g){Zn(l,c,g),_n()}function ni(l,c){const g=Ui();!function Gd(l,c,g){const U=Ra().index,G=[];if(l.firstCreatePass&&null===l.data[c]){for(let de=0;de<g.length;de+=2){const Se=g[de],We=g[de+1];if(""!==We){if(Wd.test(We))throw new Error(`ICU expressions are not supported in attributes. Message: "${We}".`);rc(G,We,U,Se,Zd(G),null)}}l.data[c]=G}}(g,l+22,bt(g.consts,c))}function $n(l){return function M2(l){l&&(Fc|=1<<Math.min(ic,31)),ic++}(Ws(kn(),to(),l)),$n}function _i(l){!function lu(l,c,g){if(ic>0){const O=l.data[g];E2(l,c,Array.isArray(O)?O:O.update,ss()-ic-1,Fc)}Fc=0,ic=0}(Ui(),kn(),l+22)}function gi(l,c={}){return function wn(l,c={}){let g=l;if(Pe.test(l)){const O={},U=[0];g=g.replace(lt,(G,de,Se)=>{const We=de||Se,ot=O[We]||[];if(ot.length||(We.split("|").forEach(ii=>{const hi=ii.match(vn),Mi=hi?parseInt(hi[1],10):0,Fi=St.test(ii);ot.push([Mi,Fi,ii])}),O[We]=ot),!ot.length)throw new Error(`i18n postprocess: unmatched placeholder - ${We}`);const wt=U[U.length-1];let Kt=0;for(let ii=0;ii<ot.length;ii++)if(ot[ii][0]===wt){Kt=ii;break}const[cn,bn,On]=ot[Kt];return bn?U.pop():wt!==cn&&U.push(cn),ot.splice(Kt,1),On})}return Object.keys(c).length&&(g=g.replace(gt,(O,U,G,de,Se,We)=>c.hasOwnProperty(G)?`${U}${c[G]}${We}`:O),g=g.replace(Et,(O,U)=>c.hasOwnProperty(U)?c[U]:O),g=g.replace(Zt,(O,U)=>{if(c.hasOwnProperty(U)){const G=c[U];if(!G.length)throw new Error(`i18n postprocess: unmatched ICU - ${O} with key: ${U}`);return G.shift()}return O})),g}(l,c)}function Da(l,c,g,O,U){if(l=P(l),Array.isArray(l))for(let G=0;G<l.length;G++)Da(l[G],c,g,O,U);else{const G=Ui(),de=kn();let Se=l1(l)?l:P(l.provide),We=dd(l);const ot=Ra(),wt=1048575&ot.providerIndexes,Kt=ot.directiveStart,cn=ot.providerIndexes>>20;if(l1(l)||!l.multi){const bn=new Sn(We,U,wc),On=ma(Se,c,U?wt:wt+cn,Kt);-1===On?(O1(Mo(ot,de),G,Se),ia(G,l,c.length),c.push(Se),ot.directiveStart++,ot.directiveEnd++,U&&(ot.providerIndexes+=1048576),g.push(bn),de.push(bn)):(g[On]=bn,de[On]=bn)}else{const bn=ma(Se,c,wt+cn,Kt),On=ma(Se,c,wt,wt+cn),ii=bn>=0&&g[bn],hi=On>=0&&g[On];if(U&&!hi||!U&&!ii){O1(Mo(ot,de),G,Se);const Mi=function ba(l,c,g,O,U){const G=new Sn(l,g,wc);return G.multi=[],G.index=c,G.componentProviders=0,qa(G,U,O&&!g),G}(U?Ai:yi,g.length,U,O,We);!U&&hi&&(g[On].providerFactory=Mi),ia(G,l,c.length,0),c.push(Se),ot.directiveStart++,ot.directiveEnd++,U&&(ot.providerIndexes+=1048576),g.push(Mi),de.push(Mi)}else{ia(G,l,bn>-1?bn:On,qa(g[U?On:bn],We,!U&&O))}!U&&O&&hi&&g[On].componentProviders++}}}function ia(l,c,g,O){const U=l1(c),G=function H0(l){return!!l.useClass}(c);if(U||G){const We=(G?P(c.useClass):c).prototype.ngOnDestroy;if(We){const ot=l.destroyHooks||(l.destroyHooks=[]);if(!U&&c.multi){const wt=ot.indexOf(g);-1===wt?ot.push(g,[O,We]):ot[wt+1].push(O,We)}else ot.push(g,We)}}}function qa(l,c,g){return g&&l.componentProviders++,l.multi.push(c)-1}function ma(l,c,g,O){for(let U=g;U<O;U++)if(c[U]===l)return U;return-1}function yi(l,c,g,O){return bi(this.multi,[])}function Ai(l,c,g,O){const U=this.multi;let G;if(this.providerFactory){const de=this.providerFactory.componentProviders,Se=vl(g,g[1],this.providerFactory.index,O);G=Se.slice(0,de),bi(U,G);for(let We=de;We<Se.length;We++)G.push(Se[We])}else G=[],bi(U,G);return G}function bi(l,c){for(let g=0;g<l.length;g++){const O=l[g];c.push(O())}return c}function Vr(l,c=[]){return g=>{g.providersResolver=(O,U)=>function ci(l,c,g){const O=Ui();if(O.firstCreatePass){const U=Ki(l);Da(g,O.data,O.blueprint,U,!0),Da(c,O.data,O.blueprint,U,!1)}}(O,U?U(l):l,c)}}class ua{}class Pa{}function _s(l,c){return new _r(l,c??null)}class _r extends ua{constructor(c,g){super(),this._parent=g,this._bootstrapComponents=[],this.destroyCbs=[],this.componentFactoryResolver=new xf(this);const O=Wn(c);this._bootstrapComponents=nl(O.bootstrap),this._r3Injector=on(c,g,[{provide:ua,useValue:this},{provide:d1,useValue:this.componentFactoryResolver}],k(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 tr extends Pa{constructor(c){super(),this.moduleType=c}create(c){return new _r(this.moduleType,c)}}class dr extends ua{constructor(c,g,O){super(),this.componentFactoryResolver=new xf(this),this.instance=null;const U=new Xl([...c,{provide:ua,useValue:this},{provide:d1,useValue:this.componentFactoryResolver}],g||ql(),O,new Set(["environment"]));this.injector=U,U.resolveInjectorInitializers()}destroy(){this.injector.destroy()}onDestroy(c){this.injector.onDestroy(c)}}function Ol(l,c,g=null){return new dr(l,c,g).injector}class Ts{constructor(c){this._injector=c,this.cachedInjectors=new Map}getOrCreateStandaloneInjector(c){if(!c.standalone)return null;if(!this.cachedInjectors.has(c.id)){const g=sh(0,c.type),O=g.length>0?Ol([g],this._injector,`Standalone[${c.type.name}]`):null;this.cachedInjectors.set(c.id,O)}return this.cachedInjectors.get(c.id)}ngOnDestroy(){try{for(const c of this.cachedInjectors.values())null!==c&&c.destroy()}finally{this.cachedInjectors.clear()}}}function Pl(l){l.getStandaloneInjector=c=>c.get(Ts).getOrCreateStandaloneInjector(l)}function I_(l,c,g,O){return ze(()=>{const U=l;null!==c&&(U.hasOwnProperty("decorators")&&void 0!==U.decorators?U.decorators.push(...c):U.decorators=c),null!==g&&(U.ctorParameters=g),null!==O&&(U.hasOwnProperty("propDecorators")&&void 0!==U.propDecorators?U.propDecorators={...U.propDecorators,...O}:U.propDecorators=O)})}function L_(l,c,g){const O=Wa()+l,U=kn();return U[O]===Vi?Tl(U,O,g?c.call(g):c()):$0(U,O)}function S_(l,c,g,O){return R_(kn(),Wa(),l,c,g,O)}function vp(l,c,g,O,U){return R6(kn(),Wa(),l,c,g,O,U)}function O_(l,c,g,O,U,G){return B_(kn(),Wa(),l,c,g,O,U,G)}function tg(l,c,g,O,U,G,de){return N_(kn(),Wa(),l,c,g,O,U,G,de)}function ng(l,c,g,O,U,G,de,Se){const We=Wa()+l,ot=kn(),wt=rl(ot,We,g,O,U,G);return Ws(ot,We+4,de)||wt?Tl(ot,We+5,Se?c.call(Se,g,O,U,G,de):c(g,O,U,G,de)):$0(ot,We+5)}function P_(l,c,g,O,U,G,de,Se,We){const ot=Wa()+l,wt=kn(),Kt=rl(wt,ot,g,O,U,G);return p1(wt,ot+4,de,Se)||Kt?Tl(wt,ot+6,We?c.call(We,g,O,U,G,de,Se):c(g,O,U,G,de,Se)):$0(wt,ot+6)}function k_(l,c,g,O,U,G,de,Se,We,ot){const wt=Wa()+l,Kt=kn();let cn=rl(Kt,wt,g,O,U,G);return Hh(Kt,wt+4,de,Se,We)||cn?Tl(Kt,wt+7,ot?c.call(ot,g,O,U,G,de,Se,We):c(g,O,U,G,de,Se,We)):$0(Kt,wt+7)}function ig(l,c,g,O,U,G,de,Se,We,ot,wt){const Kt=Wa()+l,cn=kn(),bn=rl(cn,Kt,g,O,U,G);return rl(cn,Kt+4,de,Se,We,ot)||bn?Tl(cn,Kt+8,wt?c.call(wt,g,O,U,G,de,Se,We,ot):c(g,O,U,G,de,Se,We,ot)):$0(cn,Kt+8)}function ag(l,c,g,O){return F_(kn(),Wa(),l,c,g,O)}function N4(l,c){const g=l[c];return g===Vi?void 0:g}function R_(l,c,g,O,U,G){const de=c+g;return Ws(l,de,U)?Tl(l,de+1,G?O.call(G,U):O(U)):N4(l,de+1)}function R6(l,c,g,O,U,G,de){const Se=c+g;return p1(l,Se,U,G)?Tl(l,Se+2,de?O.call(de,U,G):O(U,G)):N4(l,Se+2)}function B_(l,c,g,O,U,G,de,Se){const We=c+g;return Hh(l,We,U,G,de)?Tl(l,We+3,Se?O.call(Se,U,G,de):O(U,G,de)):N4(l,We+3)}function N_(l,c,g,O,U,G,de,Se,We){const ot=c+g;return rl(l,ot,U,G,de,Se)?Tl(l,ot+4,We?O.call(We,U,G,de,Se):O(U,G,de,Se)):N4(l,ot+4)}function F_(l,c,g,O,U,G){let de=c+g,Se=!1;for(let We=0;We<U.length;We++)Ws(l,de++,U[We])&&(Se=!0);return Se?Tl(l,de,O.apply(G,U)):N4(l,de)}function H_(l,c){const g=Ui();let O;const U=l+22;g.firstCreatePass?(O=function rg(l,c){if(c)for(let g=c.length-1;g>=0;g--){const O=c[g];if(l===O.name)return O}}(c,g.pipeRegistry),g.data[U]=O,O.onDestroy&&(g.destroyHooks||(g.destroyHooks=[])).push(U,O.onDestroy)):O=g.data[U];const G=O.factory||(O.factory=Oa(O.type)),de=Oe(wc);try{const Se=lc(!1),We=G();return lc(Se),function v6(l,c,g,O){g>=l.data.length&&(l.data[g]=null,l.blueprint[g]=null),c[g]=O}(g,kn(),U,We),We}finally{Oe(de)}}function z_(l,c,g){const O=l+22,U=kn(),G=Zr(U,O);return F4(U,O)?R_(U,Wa(),c,G.transform,g,G):G.transform(g)}function B6(l,c,g,O){const U=l+22,G=kn(),de=Zr(G,U);return F4(G,U)?R6(G,Wa(),c,de.transform,g,O,de):de.transform(g,O)}function U_(l,c,g,O,U){const G=l+22,de=kn(),Se=Zr(de,G);return F4(de,G)?B_(de,Wa(),c,Se.transform,g,O,U,Se):Se.transform(g,O,U)}function sg(l,c,g,O,U,G){const de=l+22,Se=kn(),We=Zr(Se,de);return F4(Se,de)?N_(Se,Wa(),c,We.transform,g,O,U,G,We):We.transform(g,O,U,G)}function V_(l,c,g){const O=l+22,U=kn(),G=Zr(U,O);return F4(U,O)?F_(U,Wa(),c,G.transform,g,G):G.transform.apply(G,g)}function F4(l,c){return l[1].data[c].pure}Ts.\u0275prov=Ke({token:Ts,providedIn:"environment",factory:()=>new Ts(vt(tl))});class W_ extends e.x{constructor(c=!1){super(),this.__isAsync=c}emit(c){super.next(c)}subscribe(c,g,O){let U=c,G=g||(()=>null),de=O;if(c&&"object"==typeof c){const We=c;U=We.next?.bind(We),G=We.error?.bind(We),de=We.complete?.bind(We)}this.__isAsync&&(G=yp(G),U&&(U=yp(U)),de&&(de=yp(de)));const Se=super.subscribe({next:U,error:G,complete:de});return c instanceof t.w0&&c.add(Se),Se}}function yp(l){return c=>{setTimeout(l,void 0,c)}}const w1=W_;function K_(){return this._results[a2()]()}class bp{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=a2(),O=bp.prototype;O[g]||(O[g]=K_)}get changes(){return this._changes||(this._changes=new w1)}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 O=this;O.dirty=!1;const U=zi(c);(this._changesDetected=!function Ea(l,c,g){if(l.length!==c.length)return!1;for(let O=0;O<l.length;O++){let U=l[O],G=c[O];if(g&&(U=g(U),G=g(G)),G!==U)return!1}return!0}(O._results,U,g))&&(O._results=U,O.length=U.length,O.last=U[this.length-1],O.first=U[0])}notifyOnChanges(){this._changes&&(this._changesDetected||!this._emitDistinctChangesOnly)&&this._changes.emit(this)}setDirty(){this.dirty=!0}destroy(){this.changes.complete(),this.changes.unsubscribe()}}class t3{}t3.__NG_ELEMENT_ID__=function cg(){return n3(Ra(),kn())};const og=t3,lg=class extends og{constructor(c,g,O){super(),this._declarationLView=c,this._declarationTContainer=g,this.elementRef=O}createEmbeddedView(c,g){const O=this._declarationTContainer.tViews,U=f1(this._declarationLView,O,c,16,null,O.declTNode,null,null,null,null,g||null),G=this._declarationLView[this._declarationTContainer.index];U[17]=G;const de=this._declarationLView[19];return null!==de&&(U[19]=de.createEmbeddedView(O)),j3(O,U,c),new j0(U)}};function n3(l,c){return 4&l.type?new lg(c,l,u1(l,c)):null}class H4{}H4.__NG_ELEMENT_ID__=function dg(){return Q_(Ra(),kn())};const G_=H4,Z_=class extends G_{constructor(c,g,O){super(),this._lContainer=c,this._hostTNode=g,this._hostLView=O}get element(){return u1(this._hostTNode,this._hostLView)}get injector(){return new ao(this._hostTNode,this._hostLView)}get parentInjector(){const c=ml(this._hostTNode,this._hostLView);if(Er(c)){const g=hl(c,this._hostLView),O=bs(c),U=g[1].data[O+8];return new ao(U,g)}return new ao(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(c){const g=Y_(this._lContainer);return null!==g&&g[c]||null}get length(){return this._lContainer.length-10}createEmbeddedView(c,g,O){let U,G;"number"==typeof O?U=O:null!=O&&(U=O.index,G=O.injector);const de=c.createEmbeddedView(g||{},G);return this.insert(de,U),de}createComponent(c,g,O,U,G){const de=c&&!di(c);let Se;if(de)Se=g;else{const Kt=g||{};Se=Kt.index,O=Kt.injector,U=Kt.projectableNodes,G=Kt.environmentInjector||Kt.ngModuleRef}const We=de?c:new q0(pt(c)),ot=O||this.parentInjector;if(!G&&null==We.ngModule){const cn=(de?ot:this.parentInjector).get(tl,null);cn&&(G=cn)}const wt=We.create(ot,U,void 0,G);return this.insert(wt.hostView,Se),wt}insert(c,g){const O=c._lView,U=O[1];if(function Ps(l){return La(l[3])}(O)){const wt=this.indexOf(c);if(-1!==wt)this.detach(wt);else{const Kt=O[3],cn=new Z_(Kt,Kt[6],Kt[3]);cn.detach(cn.indexOf(c))}}const G=this._adjustIndex(g),de=this._lContainer;E3(U,O,de,G);const Se=q2(G,de),We=O[11],ot=Q2(We,de[7]);return null!==ot&&function ku(l,c,g,O,U,G){O[0]=U,O[6]=c,i1(l,O,g,1,U,G)}(U,de[6],We,O,ot,Se),c.attachToViewContainerRef(),so(N6(de),G,c),c}move(c,g){return this.insert(c,g)}indexOf(c){const g=Y_(this._lContainer);return null!==g?g.indexOf(c):-1}remove(c){const g=this._adjustIndex(c,-1),O=Y2(this._lContainer,g);O&&(ds(N6(this._lContainer),g),Ru(O[1],O))}detach(c){const g=this._adjustIndex(c,-1),O=Y2(this._lContainer,g);return O&&null!=ds(N6(this._lContainer),g)?new j0(O):null}_adjustIndex(c,g=0){return c??this.length+g}};function Y_(l){return l[8]}function N6(l){return l[8]||(l[8]=[])}function Q_(l,c){let g;const O=c[l.index];if(La(O))g=O;else{let U;if(8&l.type)U=Bi(O);else{const G=c[11];U=G.createComment("");const de=Li(l,c);Yl(G,Q2(G,de),U,function A3(l,c){return l.nextSibling(c)}(G,de),!1)}c[l.index]=g=i4(O,c,U,l),kh(c,g)}return new Z_(g,l,c)}class F6{constructor(c){this.queryList=c,this.matches=null}clone(){return new F6(this.queryList)}setDirty(){this.queryList.setDirty()}}class H6{constructor(c=[]){this.queries=c}createEmbeddedView(c){const g=c.queries;if(null!==g){const O=null!==c.contentQueries?c.contentQueries[0]:g.length,U=[];for(let G=0;G<O;G++){const de=g.getByIndex(G),Se=this.queries[de.indexInDeclarationView];U.push(Se.clone())}return new H6(U)}return null}insertView(c){this.dirtyQueriesWithMatches(c)}detachView(c){this.dirtyQueriesWithMatches(c)}dirtyQueriesWithMatches(c){for(let g=0;g<this.queries.length;g++)null!==im(c,g).matches&&this.queries[g].setDirty()}}class q_{constructor(c,g,O=null){this.predicate=c,this.flags=g,this.read=O}}class z6{constructor(c=[]){this.queries=c}elementStart(c,g){for(let O=0;O<this.queries.length;O++)this.queries[O].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 O=0;O<this.length;O++){const U=null!==g?g.length:0,G=this.getByIndex(O).embeddedTView(c,U);G&&(G.indexInDeclarationView=O,null!==g?g.push(G):g=[G])}return null!==g?new z6(g):null}template(c,g){for(let O=0;O<this.queries.length;O++)this.queries[O].template(c,g)}getByIndex(c){return this.queries[c]}get length(){return this.queries.length}track(c){this.queries.push(c)}}class U6{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 U6(this.metadata)):null}isApplyingToNode(c){if(this._appliesToNextNode&&1!=(1&this.metadata.flags)){const g=this._declarationNodeIndex;let O=c.parent;for(;null!==O&&8&O.type&&O.index!==g;)O=O.parent;return g===(null!==O?O.index:-1)}return this._appliesToNextNode}matchTNode(c,g){const O=this.metadata.predicate;if(Array.isArray(O))for(let U=0;U<O.length;U++){const G=O[U];this.matchTNodeWithReadOption(c,g,hg(g,G)),this.matchTNodeWithReadOption(c,g,io(g,c,G,!1,!1))}else O===t3?4&g.type&&this.matchTNodeWithReadOption(c,g,-1):this.matchTNodeWithReadOption(c,g,io(g,c,O,!1,!1))}matchTNodeWithReadOption(c,g,O){if(null!==O){const U=this.metadata.read;if(null!==U)if(U===Ac||U===H4||U===t3&&4&g.type)this.addMatch(g.index,-2);else{const G=io(g,c,U,!1,!1);null!==G&&this.addMatch(g.index,G)}else this.addMatch(g.index,O)}}addMatch(c,g){null===this.matches?this.matches=[c,g]:this.matches.push(c,g)}}function hg(l,c){const g=l.localNames;if(null!==g)for(let O=0;O<g.length;O+=2)if(g[O]===c)return g[O+1];return null}function fg(l,c,g,O){return-1===g?function V6(l,c){return 11&l.type?u1(l,c):4&l.type?n3(l,c):null}(c,l):-2===g?function pg(l,c,g){if(g===Ac)return u1(c,l);if(g===t3)return n3(c,l);if(g===H4)return Q_(c,l)}(l,c,O):vl(l,l[1],g,c)}function X_(l,c,g,O){const U=c[19].queries[O];if(null===U.matches){const G=l.data,de=g.matches,Se=[];for(let We=0;We<de.length;We+=2){const ot=de[We];if(ot<0)Se.push(null);else{const wt=G[ot];Se.push(fg(c,wt,de[We+1],g.metadata.read))}}U.matches=Se}return U.matches}function W6(l,c,g,O){const U=l.queries.getByIndex(g),G=U.matches;if(null!==G){const de=X_(l,c,U,g);for(let Se=0;Se<G.length;Se+=2){const We=G[Se];if(We>0)O.push(de[Se/2]);else{const ot=G[Se+1],wt=c[-We];for(let Kt=10;Kt<wt.length;Kt++){const cn=wt[Kt];cn[17]===cn[3]&&W6(cn[1],cn,ot,O)}if(null!==wt[9]){const Kt=wt[9];for(let cn=0;cn<Kt.length;cn++){const bn=Kt[cn];W6(bn[1],bn,ot,O)}}}}}return O}function i3(l){const c=kn(),g=Ui(),O=Zo();ko(O+1);const U=im(g,O);if(l.dirty&&function si(l){return 4==(4&l[2])}(c)===(2==(2&U.metadata.flags))){if(null===U.matches)l.reset([]);else{const G=U.crossesNgTemplate?W6(g,c,O,[]):X_(g,c,U,O);l.reset(G,ud),l.notifyOnChanges()}return!0}return!1}function J_(l,c,g){const O=Ui();O.firstCreatePass&&(tm(O,new q_(l,c,g),-1),2==(2&c)&&(O.staticViewQueries=!0)),K6(O,kn(),c)}function $_(l,c,g,O){const U=Ui();if(U.firstCreatePass){const G=Ra();tm(U,new q_(c,g,O),G.index),function nm(l,c){const g=l.contentQueries||(l.contentQueries=[]),O=g.length?g[g.length-1]:-1;c!==O&&g.push(l.queries.length-1,c)}(U,l),2==(2&g)&&(U.staticContentQueries=!0)}K6(U,kn(),g)}function em(){return function _g(l,c){return l[19].queries[c].queryList}(kn(),Zo())}function K6(l,c,g){const O=new bp(4==(4&g));e4(l,c,O,O.destroy),null===c[19]&&(c[19]=new H6),c[19].queries.push(new F6(O))}function tm(l,c,g){null===l.queries&&(l.queries=new z6),l.queries.track(new U6(c,g))}function im(l,c){return l.queries.getByIndex(c)}function G6(l,c){return n3(l,c)}const So={\u0275\u0275attribute:u4,\u0275\u0275attributeInterpolate1:kf,\u0275\u0275attributeInterpolate2:Rf,\u0275\u0275attributeInterpolate3:h4,\u0275\u0275attributeInterpolate4:Bf,\u0275\u0275attributeInterpolate5:Nf,\u0275\u0275attributeInterpolate6:zh,\u0275\u0275attributeInterpolate7:Ff,\u0275\u0275attributeInterpolate8:Hf,\u0275\u0275attributeInterpolateV:zf,\u0275\u0275defineComponent:zn,\u0275\u0275defineDirective:re,\u0275\u0275defineInjectable:Ke,\u0275\u0275defineInjector:Ve,\u0275\u0275defineNgModule:Ge,\u0275\u0275definePipe:Te,\u0275\u0275directiveInject:wc,\u0275\u0275getInheritedFactory:jo,\u0275\u0275inject:vt,\u0275\u0275injectAttribute:yl,\u0275\u0275invalidFactory:Ih,\u0275\u0275invalidFactoryDep:dt,\u0275\u0275templateRefExtractor:G6,\u0275\u0275resetView:sr,\u0275\u0275HostDirectivesFeature:u6,\u0275\u0275NgOnChangesFeature:Ja,\u0275\u0275ProvidersFeature:Vr,\u0275\u0275CopyDefinitionFeature:d6,\u0275\u0275InheritDefinitionFeature:o4,\u0275\u0275StandaloneFeature:Pl,\u0275\u0275nextContext:Zf,\u0275\u0275namespaceHTML:fn,\u0275\u0275namespaceMathML:Vt,\u0275\u0275namespaceSVG:Ot,\u0275\u0275enableBindings:kl,\u0275\u0275disableBindings:po,\u0275\u0275elementStart:eu,\u0275\u0275elementEnd:Uh,\u0275\u0275element:m4,\u0275\u0275elementContainerStart:Td,\u0275\u0275elementContainerEnd:Vh,\u0275\u0275elementContainer:g4,\u0275\u0275pureFunction0:L_,\u0275\u0275pureFunction1:S_,\u0275\u0275pureFunction2:vp,\u0275\u0275pureFunction3:O_,\u0275\u0275pureFunction4:tg,\u0275\u0275pureFunction5:ng,\u0275\u0275pureFunction6:P_,\u0275\u0275pureFunction7:k_,\u0275\u0275pureFunction8:ig,\u0275\u0275pureFunctionV:ag,\u0275\u0275getCurrentView:v4,\u0275\u0275restoreView:eo,\u0275\u0275listener:Kh,\u0275\u0275projection:Qf,\u0275\u0275syntheticHostProperty:fr,\u0275\u0275syntheticHostListener:y4,\u0275\u0275pipeBind1:z_,\u0275\u0275pipeBind2:B6,\u0275\u0275pipeBind3:U_,\u0275\u0275pipeBind4:sg,\u0275\u0275pipeBindV:V_,\u0275\u0275projectionDef:x4,\u0275\u0275hostProperty:Ds,\u0275\u0275property:p4,\u0275\u0275propertyInterpolate:C4,\u0275\u0275propertyInterpolate1:Gh,\u0275\u0275propertyInterpolate2:M4,\u0275\u0275propertyInterpolate3:E4,\u0275\u0275propertyInterpolate4:D4,\u0275\u0275propertyInterpolate5:jf,\u0275\u0275propertyInterpolate6:qf,\u0275\u0275propertyInterpolate7:Xf,\u0275\u0275propertyInterpolate8:Jf,\u0275\u0275propertyInterpolateV:A4,\u0275\u0275pipe:H_,\u0275\u0275queryRefresh:i3,\u0275\u0275viewQuery:J_,\u0275\u0275loadQuery:em,\u0275\u0275contentQuery:$_,\u0275\u0275reference:f4,\u0275\u0275classMap:O4,\u0275\u0275classMapInterpolate1:Zs,\u0275\u0275classMapInterpolate2:c2,\u0275\u0275classMapInterpolate3:ho,\u0275\u0275classMapInterpolate4:d2,\u0275\u0275classMapInterpolate5:cp,\u0275\u0275classMapInterpolate6:Ys,\u0275\u0275classMapInterpolate7:Fa,\u0275\u0275classMapInterpolate8:ll,\u0275\u0275classMapInterpolateV:C1,\u0275\u0275styleMap:Ks,\u0275\u0275styleMapInterpolate1:u2,\u0275\u0275styleMapInterpolate2:Pc,\u0275\u0275styleMapInterpolate3:Ld,\u0275\u0275styleMapInterpolate4:nu,\u0275\u0275styleMapInterpolate5:h2,\u0275\u0275styleMapInterpolate6:M1,\u0275\u0275styleMapInterpolate7:f2,\u0275\u0275styleMapInterpolate8:P4,\u0275\u0275styleMapInterpolateV:dp,\u0275\u0275styleProp:S4,\u0275\u0275stylePropInterpolate1:Qh,\u0275\u0275stylePropInterpolate2:kc,\u0275\u0275stylePropInterpolate3:jh,\u0275\u0275stylePropInterpolate4:qh,\u0275\u0275stylePropInterpolate5:Xh,\u0275\u0275stylePropInterpolate6:tc,\u0275\u0275stylePropInterpolate7:Il,\u0275\u0275stylePropInterpolate8:p2,\u0275\u0275stylePropInterpolateV:up,\u0275\u0275classProp:Ri,\u0275\u0275advance:md,\u0275\u0275template:Uf,\u0275\u0275text:es,\u0275\u0275textInterpolate:Oc,\u0275\u0275textInterpolate1:wl,\u0275\u0275textInterpolate2:tu,\u0275\u0275textInterpolate3:Gs,\u0275\u0275textInterpolate4:y1,\u0275\u0275textInterpolate5:ps,\u0275\u0275textInterpolate6:ol,\u0275\u0275textInterpolate7:b1,\u0275\u0275textInterpolate8:ts,\u0275\u0275textInterpolateV:x1,\u0275\u0275i18n:jn,\u0275\u0275i18nAttributes:ni,\u0275\u0275i18nExp:$n,\u0275\u0275i18nStart:Zn,\u0275\u0275i18nEnd:_n,\u0275\u0275i18nApply:_i,\u0275\u0275i18nPostprocess:gi,\u0275\u0275resolveWindow:K0,\u0275\u0275resolveDocument:$1,\u0275\u0275resolveBody:af,\u0275\u0275setComponentScope:Tn,\u0275\u0275setNgModuleScope:Be,\u0275\u0275registerNgModuleType:Wl,\u0275\u0275sanitizeHtml:L0,\u0275\u0275sanitizeStyle:rd,\u0275\u0275sanitizeResourceUrl:S0,\u0275\u0275sanitizeScript:sd,\u0275\u0275sanitizeUrl:ah,\u0275\u0275sanitizeUrlOrResourceUrl:P0,\u0275\u0275trustConstantHtml:rh,\u0275\u0275trustConstantResourceUrl:Ga,\u0275\u0275validateIframeAttribute:bc,forwardRef:A,resolveForwardRef:P};let a3=null;function am(l){return void 0!==l.ngModule}function rm(l){return!!Wn(l)}const r3=[];let xp=!1;function sm(l){return Array.isArray(l)?l.every(sm):!!P(l)}function Z6(l,c={}){(function xg(l,c,g=!1){const O=zi(c.declarations||Tt);let U=null;Object.defineProperty(l,$t,{configurable:!0,get:()=>(null===U&&(U=Dn().compileNgModule(So,`ng:///${l.name}/\u0275mod.js`,{type:l,bootstrap:zi(c.bootstrap||Tt).map(P),declarations:O.map(P),imports:zi(c.imports||Tt).map(P).map(Q6),exports:zi(c.exports||Tt).map(P).map(Q6),schemas:c.schemas?zi(c.schemas):null,id:c.id||null}),U.schemas||(U.schemas=[])),U)});let G=null;Object.defineProperty(l,Rt,{get:()=>{if(null===G){const Se=Dn();G=Se.compileFactory(So,`ng:///${l.name}/\u0275fac.js`,{name:l.name,type:l,deps:hc(l),target:Se.FactoryTarget.NgModule,typeArgumentCount:0})}return G},configurable:!1});let de=null;Object.defineProperty(l,Ae,{get:()=>{if(null===de){const Se={name:l.name,type:l,providers:c.providers||Tt,imports:[(c.imports||Tt).map(P),(c.exports||Tt).map(P)]};de=Dn().compileInjector(So,`ng:///${l.name}/\u0275inj.js`,Se)}return de},configurable:!1})})(l,c),void 0!==c.id&&Wl(l,c.id),function yg(l,c){r3.push({moduleType:l,ngModule:c})}(l,c)}function Mg(l,c){const g=zi(c.declarations||Tt),O=s3(l);g.forEach(U=>{if((U=P(U)).hasOwnProperty(Ht)){Y6(pt(U),O)}else!U.hasOwnProperty(He)&&!U.hasOwnProperty($e)&&(U.ngSelectorScope=l)})}function Y6(l,c){l.directiveDefs=()=>Array.from(c.compilation.directives).map(g=>g.hasOwnProperty(Ht)?pt(g):Lt(g)).filter(g=>!!g),l.pipeDefs=()=>Array.from(c.compilation.pipes).map(g=>nn(g)),l.schemas=c.schemas,l.tView=null}function s3(l){if(rm(l))return function Eg(l){const c=Wn(l,!0);if(null!==c.transitiveCompileScopes)return c.transitiveCompileScopes;const g={schemas:c.schemas||null,compilation:{directives:new Set,pipes:new Set},exported:{directives:new Set,pipes:new Set}};return nl(c.imports).forEach(O=>{const U=s3(O);U.exported.directives.forEach(G=>g.compilation.directives.add(G)),U.exported.pipes.forEach(G=>g.compilation.pipes.add(G))}),nl(c.declarations).forEach(O=>{nn(O)?g.compilation.pipes.add(O):g.compilation.directives.add(O)}),nl(c.exports).forEach(O=>{const U=O;if(rm(U)){const G=s3(U);G.exported.directives.forEach(de=>{g.compilation.directives.add(de),g.exported.directives.add(de)}),G.exported.pipes.forEach(de=>{g.compilation.pipes.add(de),g.exported.pipes.add(de)})}else nn(U)?g.exported.pipes.add(U):g.exported.directives.add(U)}),c.transitiveCompileScopes=g,g}(l);if(Bn(l)){if(null!==(pt(l)||Lt(l)))return{schemas:null,compilation:{directives:new Set,pipes:new Set},exported:{directives:new Set([l]),pipes:new Set}};if(null!==nn(l))return{schemas:null,compilation:{directives:new Set,pipes:new Set},exported:{directives:new Set,pipes:new Set([l])}}}throw new Error(`${l.name} does not have a module def (\u0275mod property)`)}function Q6(l){return am(l)?l.ngModule:l}let j6=0;function Dg(l,c){let g=null;(function G4(l,c){h3(c)&&(xl.set(l,c),F1.add(l))})(l,c),um(l,c),Object.defineProperty(l,Ht,{get:()=>{if(null===g){const O=Dn();if(h3(c)){const ot=[`Component '${l.name}' is not resolved:`];throw c.templateUrl&&ot.push(` - templateUrl: ${c.templateUrl}`),c.styleUrls&&c.styleUrls.length&&ot.push(` - styleUrls: ${JSON.stringify(c.styleUrls)}`),ot.push("Did you run and wait for 'resolveComponentResources()'?"),new Error(ot.join("\n"))}const U=function gg(){return a3}();let G=c.preserveWhitespaces;void 0===G&&(G=null!==U&&void 0!==U.preserveWhitespaces&&U.preserveWhitespaces);let de=c.encapsulation;void 0===de&&(de=null!==U&&void 0!==U.defaultEncapsulation?U.defaultEncapsulation:zt.Emulated);const Se=c.templateUrl||`ng:///${l.name}/template.html`,We={...q6(l,c),typeSourceSpan:O.createParseSourceSpan("Component",l.name,Se),template:c.template||"",preserveWhitespaces:G,styles:c.styles||Tt,animations:c.animations,declarations:[],changeDetection:c.changeDetection,encapsulation:de,interpolation:c.interpolation,viewProviders:c.viewProviders||null,isStandalone:!!c.standalone};j6++;try{if(We.usesInheritance&&X6(l),g=O.compileComponent(So,Se,We),c.standalone){const ot=zi(c.imports||Tt),{directiveDefs:wt,pipeDefs:Kt}=function Tg(l,c){let g=null,O=null;return{directiveDefs:()=>{if(null===g){g=[pt(l)];const de=new Set;for(const Se of c){const We=P(Se);if(!de.has(We))if(de.add(We),Wn(We)){const ot=s3(We);for(const wt of ot.exported.directives){const Kt=pt(wt)||Lt(wt);Kt&&!de.has(wt)&&(de.add(wt),g.push(Kt))}}else{const ot=pt(We)||Lt(We);ot&&g.push(ot)}}}return g},pipeDefs:()=>{if(null===O){O=[];const de=new Set;for(const Se of c){const We=P(Se);if(!de.has(We))if(de.add(We),Wn(We)){const ot=s3(We);for(const wt of ot.exported.pipes){const Kt=nn(wt);Kt&&!de.has(wt)&&(de.add(wt),O.push(Kt))}}else{const ot=nn(We);ot&&O.push(ot)}}}return O}}}(l,ot);g.directiveDefs=wt,g.pipeDefs=Kt,g.dependencies=()=>ot.map(P)}}finally{j6--}if(0===j6&&function bg(){if(!xp){xp=!0;try{for(let l=r3.length-1;l>=0;l--){const{moduleType:c,ngModule:g}=r3[l];g.declarations&&g.declarations.every(sm)&&(r3.splice(l,1),Mg(c,g))}}finally{xp=!1}}}(),function Dp(l){return void 0!==l.ngSelectorScope}(l)){const ot=s3(l.ngSelectorScope);Y6(g,ot)}if(c.schemas){if(!c.standalone)throw new Error(`The 'schemas' was specified for the ${ae(l)} but is only valid on a component that is standalone.`);g.schemas=c.schemas}else c.standalone&&(g.schemas=[])}return g},configurable:!1})}function cm(l,c){let g=null;um(l,c||{}),Object.defineProperty(l,He,{get:()=>{if(null===g){const O=dm(l,c||{});g=Dn().compileDirective(So,O.sourceMapUrl,O.metadata)}return g},configurable:!1})}function dm(l,c){const g=l&&l.name,O=`ng:///${g}/\u0275dir.js`,U=Dn(),G=q6(l,c);return G.typeSourceSpan=U.createParseSourceSpan("Directive",g,O),G.usesInheritance&&X6(l),{metadata:G,sourceMapUrl:O}}function um(l,c){let g=null;Object.defineProperty(l,Rt,{get:()=>{if(null===g){const O=dm(l,c),U=Dn();g=U.compileFactory(So,`ng:///${l.name}/\u0275fac.js`,{name:O.metadata.name,type:O.metadata.type,typeArgumentCount:0,deps:hc(l),target:U.FactoryTarget.Directive})}return g},configurable:!1})}function hm(l){return Object.getPrototypeOf(l.prototype)===Object.prototype}function q6(l,c){const g=Ul(),O=g.ownPropMetadata(l);return{name:l.name,type:l,selector:void 0!==c.selector?c.selector:null,host:c.host||At,propMetadata:O,inputs:c.inputs||Tt,outputs:c.outputs||Tt,queries:fm(l,O,pm),lifecycle:{usesOnChanges:g.hasLifecycleHook(l,"ngOnChanges")},typeSourceSpan:null,usesInheritance:!hm(l),exportAs:Lg(c.exportAs),providers:c.providers||null,viewQueries:fm(l,O,J6),isStandalone:!!c.standalone,hostDirectives:c.hostDirectives?.map(U=>"function"==typeof U?{directive:U}:U)||null}}function X6(l){const c=Object.prototype;let g=Object.getPrototypeOf(l.prototype).constructor;for(;g&&g!==c;)!Lt(g)&&!pt(g)&&Og(g)&&cm(g,null),g=Object.getPrototypeOf(g)}function wg(l){return"string"==typeof l?mm(l):P(l)}function Ig(l,c){return{propertyName:l,predicate:wg(c.selector),descendants:c.descendants,first:c.first,read:c.read?c.read:null,static:!!c.static,emitDistinctChangesOnly:!!c.emitDistinctChangesOnly}}function fm(l,c,g){const O=[];for(const U in c)if(c.hasOwnProperty(U)){const G=c[U];G.forEach(de=>{if(g(de)){if(!de.selector)throw new Error(`Can't construct a query for the property "${U}" of "${ae(l)}" since the query selector wasn't defined.`);if(G.some(_m))throw new Error("Cannot combine @Input decorators with query decorators");O.push(Ig(U,de))}})}return O}function Lg(l){return void 0===l?null:mm(l)}function pm(l){const c=l.ngMetadataName;return"ContentChild"===c||"ContentChildren"===c}function J6(l){const c=l.ngMetadataName;return"ViewChild"===c||"ViewChildren"===c}function _m(l){return"Input"===l.ngMetadataName}function mm(l){return l.split(",").map(c=>c.trim())}const Sg=["ngOnChanges","ngOnInit","ngOnDestroy","ngDoCheck","ngAfterViewInit","ngAfterViewChecked","ngAfterContentInit","ngAfterContentChecked"];function Og(l){const c=Ul();if(Sg.some(O=>c.hasLifecycleHook(l,O)))return!0;const g=c.propMetadata(l);for(const O in g){const U=g[O];for(let G=0;G<U.length;G++){const de=U[G],Se=de.ngMetadataName;if(_m(de)||pm(de)||J6(de)||"Output"===Se||"HostBinding"===Se||"HostListener"===Se)return!0}}return!1}function $6(l,c){return{type:l,name:l.name,pipeName:c.name,pure:void 0===c.pure||c.pure,isStandalone:!!c.standalone}}const gm=cs("Directive",(l={})=>l,void 0,void 0,(l,c)=>cm(l,c)),kg=cs("Component",(l={})=>({changeDetection:Me.Default,...l}),gm,void 0,(l,c)=>Dg(l,c)),vm=cs("Pipe",l=>({pure:!0,...l}),void 0,void 0,(l,c)=>function Pg(l,c){let g=null,O=null;Object.defineProperty(l,Rt,{get:()=>{if(null===O){const U=$6(l,c),G=Dn(U.type);O=G.compileFactory(So,`ng:///${U.name}/\u0275fac.js`,{name:U.name,type:U.type,typeArgumentCount:0,deps:hc(l),target:G.FactoryTarget.Pipe})}return O},configurable:!1}),Object.defineProperty(l,$e,{get:()=>{if(null===g){const U=$6(l,c);g=Dn(U.type).compilePipe(So,`ng:///${U.name}/\u0275pipe.js`,U)}return g},configurable:!1})}(l,c)),Rg=qo("Input",l=>({bindingPropertyName:l})),ym=qo("Output",l=>({bindingPropertyName:l})),Bg=qo("HostBinding",l=>({hostPropertyName:l})),bm=qo("HostListener",(l,c)=>({eventName:l,args:c})),Ng=cs("NgModule",l=>l,void 0,void 0,(l,c)=>Z6(l,c));function Ap(...l){}const xm=new va("Application Initializer");class w2{constructor(c){this.appInits=c,this.resolve=Ap,this.reject=Ap,this.initialized=!1,this.done=!1,this.donePromise=new Promise((g,O)=>{this.resolve=g,this.reject=O})}runInitializers(){if(this.initialized)return;const c=[],g=()=>{this.done=!0,this.resolve()};if(this.appInits)for(let O=0;O<this.appInits.length;O++){const U=this.appInits[O]();if(Wh(U))c.push(U);else if(Wf(U)){const G=new Promise((de,Se)=>{U.subscribe({complete:de,error:Se})});c.push(G)}}Promise.all(c).then(()=>{g()}).catch(O=>{this.reject(O)}),0===c.length&&g(),this.initialized=!0}}w2.\u0275fac=function(c){return new(c||w2)(vt(xm,8))},w2.\u0275prov=Ke({token:w2,factory:w2.\u0275fac,providedIn:"root"});const Cm=new va("AppId",{providedIn:"root",factory:Mm});function Mm(){return`${Tp()}${Tp()}${Tp()}`}function Tp(){return String.fromCharCode(97+Math.floor(25*Math.random()))}const Em=new va("Platform Initializer"),wp=new va("Platform ID",{providedIn:"platform",factory:()=>"unknown"}),Dm=new va("appBootstrapListener"),Fg=(new va("Application Packages Root URL"),new va("AnimationModuleType"));class _u{log(c){console.log(c)}warn(c){console.warn(c)}}_u.\u0275fac=function(c){return new(c||_u)},_u.\u0275prov=Ke({token:_u,factory:_u.\u0275fac,providedIn:"platform"});const Ip=new va("LocaleId",{providedIn:"root",factory:()=>se(Ip,ee.Optional|ee.SkipSelf)||function Hg(){return typeof $localize<"u"&&$localize.locale||pr}()}),zg=new va("DefaultCurrencyCode",{providedIn:"root",factory:()=>"USD"});new va("Translations"),new va("TranslationsFormat");var Am;!function(l){l[l.Error=0]="Error",l[l.Warning=1]="Warning",l[l.Ignore=2]="Ignore"}(Am||(Am={}));class Vg{constructor(c,g){this.ngModuleFactory=c,this.componentFactories=g}}class o3{compileModuleSync(c){return new tr(c)}compileModuleAsync(c){return Promise.resolve(this.compileModuleSync(c))}compileModuleAndAllComponentsSync(c){const g=this.compileModuleSync(c),U=nl(Wn(c).declarations).reduce((G,de)=>{const Se=pt(de);return Se&&G.push(new q0(Se)),G},[]);return new Vg(g,U)}compileModuleAndAllComponentsAsync(c){return Promise.resolve(this.compileModuleAndAllComponentsSync(c))}clearCache(){}clearCacheFor(c){}getModuleId(c){}}o3.\u0275fac=function(c){return new(c||o3)},o3.\u0275prov=Ke({token:o3,factory:o3.\u0275fac,providedIn:"root"});new va("compilerOptions");const Kg=Promise.resolve(0);function t_(l){typeof Zone>"u"?Kg.then(()=>{l&&l.apply(null,null)}):Zone.current.scheduleMicroTask("scheduleMicrotask",l)}class sc{constructor({enableLongStackTrace:c=!1,shouldCoalesceEventChangeDetection:g=!1,shouldCoalesceRunChangeDetection:O=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new w1(!1),this.onMicrotaskEmpty=new w1(!1),this.onStable=new w1(!1),this.onError=new w1(!1),typeof Zone>"u")throw new Z(908,!1);Zone.assertZonePatched();const U=this;U._nesting=0,U._outer=U._inner=Zone.current,Zone.TaskTrackingZoneSpec&&(U._inner=U._inner.fork(new Zone.TaskTrackingZoneSpec)),c&&Zone.longStackTraceZoneSpec&&(U._inner=U._inner.fork(Zone.longStackTraceZoneSpec)),U.shouldCoalesceEventChangeDetection=!O&&g,U.shouldCoalesceRunChangeDetection=O,U.lastRequestAnimationFrameId=-1,U.nativeRequestAnimationFrame=function Gg(){let l=_t.requestAnimationFrame,c=_t.cancelAnimationFrame;if(typeof Zone<"u"&&l&&c){const g=l[Zone.__symbol__("OriginalDelegate")];g&&(l=g);const O=c[Zone.__symbol__("OriginalDelegate")];O&&(c=O)}return{nativeRequestAnimationFrame:l,nativeCancelAnimationFrame:c}}().nativeRequestAnimationFrame,function Qg(l){const c=()=>{!function Im(l){l.isCheckStableRunning||-1!==l.lastRequestAnimationFrameId||(l.lastRequestAnimationFrameId=l.nativeRequestAnimationFrame.call(_t,()=>{l.fakeTopEventTask||(l.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",()=>{l.lastRequestAnimationFrameId=-1,i_(l),l.isCheckStableRunning=!0,n_(l),l.isCheckStableRunning=!1},void 0,()=>{},()=>{})),l.fakeTopEventTask.invoke()}),i_(l))}(l)};l._inner=l._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:(g,O,U,G,de,Se)=>{try{return Lm(l),g.invokeTask(U,G,de,Se)}finally{(l.shouldCoalesceEventChangeDetection&&"eventTask"===G.type||l.shouldCoalesceRunChangeDetection)&&c(),a_(l)}},onInvoke:(g,O,U,G,de,Se,We)=>{try{return Lm(l),g.invoke(U,G,de,Se,We)}finally{l.shouldCoalesceRunChangeDetection&&c(),a_(l)}},onHasTask:(g,O,U,G)=>{g.hasTask(U,G),O===U&&("microTask"==G.change?(l._hasPendingMicrotasks=G.microTask,i_(l),n_(l)):"macroTask"==G.change&&(l.hasPendingMacrotasks=G.macroTask))},onHandleError:(g,O,U,G)=>(g.handleError(U,G),l.runOutsideAngular(()=>l.onError.emit(G)),!1)})}(U)}static isInAngularZone(){return typeof Zone<"u"&&!0===Zone.current.get("isAngularZone")}static assertInAngularZone(){if(!sc.isInAngularZone())throw new Z(909,!1)}static assertNotInAngularZone(){if(sc.isInAngularZone())throw new Z(909,!1)}run(c,g,O){return this._inner.run(c,g,O)}runTask(c,g,O,U){const G=this._inner,de=G.scheduleEventTask("NgZoneEvent: "+U,c,Yg,Ap,Ap);try{return G.runTask(de,g,O)}finally{G.cancelTask(de)}}runGuarded(c,g,O){return this._inner.runGuarded(c,g,O)}runOutsideAngular(c){return this._outer.run(c)}}const Yg={};function n_(l){if(0==l._nesting&&!l.hasPendingMicrotasks&&!l.isStable)try{l._nesting++,l.onMicrotaskEmpty.emit(null)}finally{if(l._nesting--,!l.hasPendingMicrotasks)try{l.runOutsideAngular(()=>l.onStable.emit(null))}finally{l.isStable=!0}}}function i_(l){l._hasPendingMicrotasks||(l.shouldCoalesceEventChangeDetection||l.shouldCoalesceRunChangeDetection)&&-1!==l.lastRequestAnimationFrameId?l.hasPendingMicrotasks=!0:l.hasPendingMicrotasks=!1}function Lm(l){l._nesting++,l.isStable&&(l.isStable=!1,l.onUnstable.emit(null))}function a_(l){l._nesting--,n_(l)}class jg{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new w1,this.onMicrotaskEmpty=new w1,this.onStable=new w1,this.onError=new w1}run(c,g,O){return c.apply(g,O)}runGuarded(c,g,O){return c.apply(g,O)}runOutsideAngular(c){return c()}runTask(c,g,O,U){return c.apply(g,O)}}const Sm=new va(""),Om=new va("");class l3{constructor(c,g,O){this._ngZone=c,this.registry=g,this._pendingCount=0,this._isZoneStable=!0,this._didWork=!1,this._callbacks=[],this.taskTrackingZone=null,r_||(function Pm(l){r_=l}(O),O.addToWindow(g)),this._watchAngularEvents(),c.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:()=>{sc.assertNotInAngularZone(),t_(()=>{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())t_(()=>{for(;0!==this._callbacks.length;){let c=this._callbacks.pop();clearTimeout(c.timeoutId),c.doneCb(this._didWork)}this._didWork=!1});else{let c=this.getPendingTasks();this._callbacks=this._callbacks.filter(g=>!g.updateCb||!g.updateCb(c)||(clearTimeout(g.timeoutId),!1)),this._didWork=!0}}getPendingTasks(){return this.taskTrackingZone?this.taskTrackingZone.macroTasks.map(c=>({source:c.source,creationLocation:c.creationLocation,data:c.data})):[]}addCallback(c,g,O){let U=-1;g&&g>0&&(U=setTimeout(()=>{this._callbacks=this._callbacks.filter(G=>G.timeoutId!==U),c(this._didWork,this.getPendingTasks())},g)),this._callbacks.push({doneCb:c,timeoutId:U,updateCb:O})}whenStable(c,g,O){if(O&&!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(c,g,O),this._runCallbacksIfReady()}getPendingRequestCount(){return this._pendingCount}registerApplication(c){this.registry.registerApplication(c,this)}unregisterApplication(c){this.registry.unregisterApplication(c)}findProviders(c,g,O){return[]}}l3.\u0275fac=function(c){return new(c||l3)(vt(sc),vt(mu),vt(Om))},l3.\u0275prov=Ke({token:l3,factory:l3.\u0275fac});class mu{constructor(){this._applications=new Map}registerApplication(c,g){this._applications.set(c,g)}unregisterApplication(c){this._applications.delete(c)}unregisterAllApplications(){this._applications.clear()}getTestability(c){return this._applications.get(c)||null}getAllTestabilities(){return Array.from(this._applications.values())}getAllRootElements(){return Array.from(this._applications.keys())}findTestabilityInTree(c,g=!0){return r_?.findTestabilityInTree(this,c,g)??null}}let r_;mu.\u0275fac=function(c){return new(c||mu)},mu.\u0275prov=Ke({token:mu,factory:mu.\u0275fac,providedIn:"platform"});let Xd=null;const km=new va("AllowMultipleToken"),s_=new va("PlatformDestroyListeners"),I2=!1;class $g{constructor(c,g){this.name=c,this.token=g}}function Rm(l){const c=l.get(Em,null);c&&c.forEach(g=>g())}function o_(l,c,g=[]){const O=`Platform: ${c}`,U=new va(O);return(G=[])=>{let de=U4();if(!de||de.injector.get(km,!1)){const Se=[...g,...G,{provide:U,useValue:!0}];l?l(Se):function e8(l){if(Xd&&!Xd.get(km,!1))throw new Z(400,!1);Xd=l;const c=l.get(gu);return Rm(l),c}(l_(Se,O))}return function i8(l){const c=U4();if(!c)throw new Z(401,!1);return c}()}}function l_(l=[],c){return xn.create({name:c,providers:[{provide:da,useValue:"platform"},{provide:s_,useValue:new Set([()=>Xd=null])},...l]})}function U4(){return Xd?.get(gu)??null}class gu{constructor(c){this._injector=c,this._modules=[],this._destroyListeners=[],this._destroyed=!1}bootstrapModuleFactory(c,g){const O=Nm(g?.ngZone,Bm(g)),U=[{provide:sc,useValue:O}];return O.run(()=>{const G=xn.create({providers:U,parent:this.injector,name:c.moduleType.name}),de=c.create(G),Se=de.injector.get(El,null);if(!Se)throw new Z(402,!1);return O.runOutsideAngular(()=>{const We=O.onError.subscribe({next:ot=>{Se.handleError(ot)}});de.onDestroy(()=>{Sp(this._modules,de),We.unsubscribe()})}),Fm(Se,O,()=>{const We=de.injector.get(w2);return We.runInitializers(),We.donePromise.then(()=>(kd(de.injector.get(Ip,pr)||pr),this._moduleDoBootstrap(de),de))})})}bootstrapModule(c,g=[]){const O=Lp({},g);return function qg(l,c,g){const O=new tr(g);return Promise.resolve(O)}(this.injector,0,c).then(U=>this.bootstrapModuleFactory(U,O))}_moduleDoBootstrap(c){const g=c.injector.get(L2);if(c._bootstrapComponents.length>0)c._bootstrapComponents.forEach(O=>g.bootstrap(O));else{if(!c.instance.ngDoBootstrap)throw new Z(403,!1);c.instance.ngDoBootstrap(g)}this._modules.push(c)}onDestroy(c){this._destroyListeners.push(c)}get injector(){return this._injector}destroy(){if(this._destroyed)throw new Z(404,!1);this._modules.slice().forEach(g=>g.destroy()),this._destroyListeners.forEach(g=>g());const c=this._injector.get(s_,null);c&&(c.forEach(g=>g()),c.clear()),this._destroyed=!0}get destroyed(){return this._destroyed}}function Bm(l){return{enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:!(!l||!l.ngZoneEventCoalescing)||!1,shouldCoalesceRunChangeDetection:!(!l||!l.ngZoneRunCoalescing)||!1}}function Nm(l,c){let g;return g="noop"===l?new jg:("zone.js"===l?void 0:l)||new sc(c),g}function Fm(l,c,g){try{const O=g();return Wh(O)?O.catch(U=>{throw c.runOutsideAngular(()=>l.handleError(U)),U}):O}catch(O){throw c.runOutsideAngular(()=>l.handleError(O)),O}}function Lp(l,c){return l=Array.isArray(c)?c.reduce(Lp,l):{...l,...c}}gu.\u0275fac=function(c){return new(c||gu)(vt(xn))},gu.\u0275prov=Ke({token:gu,factory:gu.\u0275fac,providedIn:"platform"});class L2{constructor(c,g,O){this._zone=c,this._injector=g,this._exceptionHandler=O,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 U=new _.y(de=>{this._stable=this._zone.isStable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks,this._zone.runOutsideAngular(()=>{de.next(this._stable),de.complete()})}),G=new _.y(de=>{let Se;this._zone.runOutsideAngular(()=>{Se=this._zone.onStable.subscribe(()=>{sc.assertNotInAngularZone(),t_(()=>{!this._stable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks&&(this._stable=!0,de.next(!0))})})});const We=this._zone.onUnstable.subscribe(()=>{sc.assertInAngularZone(),this._stable&&(this._stable=!1,this._zone.runOutsideAngular(()=>{de.next(!1)}))});return()=>{Se.unsubscribe(),We.unsubscribe()}});this.isStable=(0,E.T)(U,G.pipe((0,s.B)()))}get destroyed(){return this._destroyed}get injector(){return this._injector}bootstrap(c,g){const O=c instanceof X1;if(!this._injector.get(w2).done){!O&&Bn(c);throw new Z(405,I2)}let G;G=O?c:this._injector.get(d1).resolveComponentFactory(c),this.componentTypes.push(G.componentType);const de=function Jg(l){return l.isBoundToModule}(G)?void 0:this._injector.get(ua),Se=g||G.selector,We=G.create(xn.NULL,[],Se,de),ot=We.location.nativeElement,wt=We.injector.get(Sm,null);return wt?.registerApplication(ot),We.onDestroy(()=>{this.detachView(We.hostView),Sp(this.components,We),wt?.unregisterApplication(ot)}),this._loadComponent(We),We}tick(){if(this._runningTick)throw new Z(101,!1);try{this._runningTick=!0;for(let c of this._views)c.detectChanges()}catch(c){this._zone.runOutsideAngular(()=>this._exceptionHandler.handleError(c))}finally{this._runningTick=!1}}attachView(c){const g=c;this._views.push(g),g.attachToAppRef(this)}detachView(c){const g=c;Sp(this._views,g),g.detachFromAppRef()}_loadComponent(c){this.attachView(c.hostView),this.tick(),this.components.push(c),this._injector.get(Dm,[]).concat(this._bootstrapListeners).forEach(O=>O(c))}ngOnDestroy(){if(!this._destroyed)try{this._destroyListeners.forEach(c=>c()),this._views.slice().forEach(c=>c.destroy()),this._onMicrotaskEmptySubscription.unsubscribe()}finally{this._destroyed=!0,this._views=[],this._bootstrapListeners=[],this._destroyListeners=[]}}onDestroy(c){return this._destroyListeners.push(c),()=>Sp(this._destroyListeners,c)}destroy(){if(this._destroyed)throw new Z(406,!1);const c=this._injector;c.destroy&&!c.destroyed&&c.destroy()}get viewCount(){return this._views.length}warnIfDestroyed(){}}function Sp(l,c){const g=l.indexOf(c);g>-1&&l.splice(g,1)}function r8(){return!1}function Hm(){}L2.\u0275fac=function(c){return new(c||L2)(vt(sc),vt(tl),vt(El))},L2.\u0275prov=Ke({token:L2,factory:L2.\u0275fac,providedIn:"root"});class d_{}d_.__NG_ELEMENT_ID__=function o8(l){return function l8(l,c,g){if(Sa(l)&&!g){const O=ca(l.index,c);return new j0(O,O)}if(47&l.type){const O=c[16];return new j0(O,c)}return null}(Ra(),kn(),16==(16&l))};class p_{constructor(){}supports(c){return J0(c)}create(c){return new p8(c)}}const f8=(l,c)=>c;class p8{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||f8}forEachItem(c){let g;for(g=this._itHead;null!==g;g=g._next)c(g)}forEachOperation(c){let g=this._itHead,O=this._removalsHead,U=0,G=null;for(;g||O;){const de=!O||g&&g.currentIndex<Gm(O,U,G)?g:O,Se=Gm(de,U,G),We=de.currentIndex;if(de===O)U--,O=O._nextRemoved;else if(g=g._next,null==de.previousIndex)U++;else{G||(G=[]);const ot=Se-U,wt=We-U;if(ot!=wt){for(let cn=0;cn<ot;cn++){const bn=cn<G.length?G[cn]:G[cn]=0,On=bn+cn;wt<=On&&On<ot&&(G[cn]=bn+1)}G[de.previousIndex]=wt-ot}}Se!==We&&c(de,Se,We)}}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=[]),!J0(c))throw new Z(900,!1);return this.check(c)?this:null}onDestroy(){}check(c){this._reset();let U,G,de,g=this._itHead,O=!1;if(Array.isArray(c)){this.length=c.length;for(let Se=0;Se<this.length;Se++)G=c[Se],de=this._trackByFn(Se,G),null!==g&&Object.is(g.trackById,de)?(O&&(g=this._verifyReinsertion(g,G,de,Se)),Object.is(g.item,G)||this._addIdentityChange(g,G)):(g=this._mismatch(g,G,de,Se),O=!0),g=g._next}else U=0,function p6(l,c){if(Array.isArray(l))for(let g=0;g<l.length;g++)c(l[g]);else{const g=l[a2()]();let O;for(;!(O=g.next()).done;)c(O.value)}}(c,Se=>{de=this._trackByFn(U,Se),null!==g&&Object.is(g.trackById,de)?(O&&(g=this._verifyReinsertion(g,Se,de,U)),Object.is(g.item,Se)||this._addIdentityChange(g,Se)):(g=this._mismatch(g,Se,de,U),O=!0),g=g._next,U++}),this.length=U;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,O,U){let G;return null===c?G=this._itTail:(G=c._prev,this._remove(c)),null!==(c=null===this._unlinkedRecords?null:this._unlinkedRecords.get(O,null))?(Object.is(c.item,g)||this._addIdentityChange(c,g),this._reinsertAfter(c,G,U)):null!==(c=null===this._linkedRecords?null:this._linkedRecords.get(O,U))?(Object.is(c.item,g)||this._addIdentityChange(c,g),this._moveAfter(c,G,U)):c=this._addAfter(new Wm(g,O),G,U),c}_verifyReinsertion(c,g,O,U){let G=null===this._unlinkedRecords?null:this._unlinkedRecords.get(O,null);return null!==G?c=this._reinsertAfter(G,c._prev,U):c.currentIndex!=U&&(c.currentIndex=U,this._addToMoves(c,U)),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,O){null!==this._unlinkedRecords&&this._unlinkedRecords.remove(c);const U=c._prevRemoved,G=c._nextRemoved;return null===U?this._removalsHead=G:U._nextRemoved=G,null===G?this._removalsTail=U:G._prevRemoved=U,this._insertAfter(c,g,O),this._addToMoves(c,O),c}_moveAfter(c,g,O){return this._unlink(c),this._insertAfter(c,g,O),this._addToMoves(c,O),c}_addAfter(c,g,O){return this._insertAfter(c,g,O),null===this._additionsTail?this._additionsTail=this._additionsHead=c:this._additionsTail=this._additionsTail._nextAdded=c,c}_insertAfter(c,g,O){const U=null===g?this._itHead:g._next;return c._next=U,c._prev=g,null===U?this._itTail=c:U._prev=c,null===g?this._itHead=c:g._next=c,null===this._linkedRecords&&(this._linkedRecords=new Km),this._linkedRecords.put(c),c.currentIndex=O,c}_remove(c){return this._addToRemovals(this._unlink(c))}_unlink(c){null!==this._linkedRecords&&this._linkedRecords.remove(c);const g=c._prev,O=c._next;return null===g?this._itHead=O:g._next=O,null===O?this._itTail=g:O._prev=g,c}_addToMoves(c,g){return c.previousIndex===g||(null===this._movesTail?this._movesTail=this._movesHead=c:this._movesTail=this._movesTail._nextMoved=c),c}_addToRemovals(c){return null===this._unlinkedRecords&&(this._unlinkedRecords=new Km),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,null===this._identityChangesTail?this._identityChangesTail=this._identityChangesHead=c:this._identityChangesTail=this._identityChangesTail._nextIdentityChange=c,c}}class Wm{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 _8{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 O;for(O=this._head;null!==O;O=O._nextDup)if((null===g||g<=O.currentIndex)&&Object.is(O.trackById,c))return O;return null}remove(c){const g=c._prevDup,O=c._nextDup;return null===g?this._head=O:g._nextDup=O,null===O?this._tail=g:O._prevDup=g,null===this._head}}class Km{constructor(){this.map=new Map}put(c){const g=c.trackById;let O=this.map.get(g);O||(O=new _8,this.map.set(g,O)),O.add(c)}get(c,g){const O=c,U=this.map.get(O);return U?U.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 Gm(l,c,g){const O=l.previousIndex;if(null===O)return O;let U=0;return g&&O<g.length&&(U=g[O]),O+c+U}class Zm{constructor(){}supports(c){return c instanceof Map||d4(c)}create(){return new m8}}class m8{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||d4(c)))throw new Z(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,(O,U)=>{if(g&&g.key===U)this._maybeAddToChanges(g,O),this._appendAfter=g,g=g._next;else{const G=this._getOrCreateRecordForKey(U,O);g=this._insertBeforeOrAppend(g,G)}}),g){g._prev&&(g._prev._next=null),this._removalsHead=g;for(let O=g;null!==O;O=O._nextRemoved)O===this._mapHead&&(this._mapHead=null),this._records.delete(O.key),O._nextRemoved=O._next,O.previousValue=O.currentValue,O.currentValue=null,O._prev=null,O._next=null}return this._changesTail&&(this._changesTail._nextChanged=null),this._additionsTail&&(this._additionsTail._nextAdded=null),this.isDirty}_insertBeforeOrAppend(c,g){if(c){const O=c._prev;return g._next=c,g._prev=O,c._prev=g,O&&(O._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 U=this._records.get(c);this._maybeAddToChanges(U,g);const G=U._prev,de=U._next;return G&&(G._next=de),de&&(de._prev=G),U._next=null,U._prev=null,U}const O=new g8(c);return this._records.set(c,O),O.currentValue=g,this._addToAdditions(O),O}_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(O=>g(c[O],O))}}class g8{constructor(c){this.key=c,this.previousValue=null,this.currentValue=null,this._nextPrevious=null,this._next=null,this._prev=null,this._nextAdded=null,this._nextRemoved=null,this._nextChanged=null}}function Ym(){return new I1([new p_])}class I1{constructor(c){this.factories=c}static create(c,g){if(null!=g){const O=g.factories.slice();c=c.concat(O)}return new I1(c)}static extend(c){return{provide:I1,useFactory:g=>I1.create(c,g||Ym()),deps:[[I1,new bl,new B2]]}}find(c){const g=this.factories.find(O=>O.supports(c));if(null!=g)return g;throw new Z(901,!1)}}function Qm(){return new L1([new Zm])}I1.\u0275prov=Ke({token:I1,providedIn:"root",factory:Ym});class L1{constructor(c){this.factories=c}static create(c,g){if(g){const O=g.factories.slice();c=c.concat(O)}return new L1(c)}static extend(c){return{provide:L1,useFactory:g=>L1.create(c,g||Qm()),deps:[[L1,new bl,new B2]]}}find(c){const g=this.factories.find(O=>O.supports(c));if(g)return g;throw new Z(901,!1)}}L1.\u0275prov=Ke({token:L1,providedIn:"root",factory:Qm});const y8=[new Zm],__=[new p_],b8=(new I1(__),new L1(y8),o_(null,"core",[]));class c3{constructor(c){}}function x8(l){return"boolean"==typeof l?l:null!=l&&"false"!==l}c3.\u0275fac=function(c){return new(c||c3)(vt(L2))},c3.\u0275mod=Ge({type:c3}),c3.\u0275inj=Ve({})},7200:(Ue,q,m)=>{"use strict";function e(S){for(let A in S){let P=S[A]??"";switch(A){case"display":S.display="flex"===P?["-webkit-flex","flex"]:"inline-flex"===P?["-webkit-inline-flex","inline-flex"]:P;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-"+A]=P;break;case"flex-direction":S["-webkit-flex-direction"]=P,S["flex-direction"]=P;break;case"order":S.order=S["-webkit-"+A]=isNaN(+P)?"0":P}}return S}m.d(q,{Ar:()=>E,GK:()=>e,iQ:()=>_,kt:()=>p,tj:()=>D});const t="inline",_=["row","column","row-reverse","column-reverse"];function E(S){let[A,P,M]=s(S);return function k(S,A=null,P=!1){return{display:P?"inline-flex":"flex","box-sizing":"border-box","flex-direction":S,"flex-wrap":A||null}}(A,P,M)}function s(S){S=S?.toLowerCase()??"";let[A,P,M]=S.split(" ");return _.find(z=>z===A)||(A=_[0]),P===t&&(P=M!==t?M:"",M=t),[A,u(P),!!M]}function D(S){let[A]=s(S);return A.indexOf("row")>-1}function u(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 p(S,...A){if(null==S)throw TypeError("Cannot convert undefined or null to object");for(let P of A)if(null!=P)for(let M in P)P.hasOwnProperty(M)&&(S[M]=P[M]);return S}},4658:(Ue,q,m)=>{"use strict";m.d(q,{Bs:()=>n,FL:()=>se,IR:()=>ce,Ot:()=>tt,QI:()=>h,RK:()=>d,WU:()=>he,g5:()=>$,iR:()=>Bt,wY:()=>w,yB:()=>Ct});var e=m(2560),t=m(4666),_=m(6317),E=m(833),s=m(6646),D=m(253),u=m(3888),k=m(745),p=m(3280),S=m(7200),A=m(116),P=m(9337),M=m(1989),z=m(2673),I=m(635),W=m(8977),Z=m(8951),Q=m(9295);const ae={provide:e.tb,useFactory:function ie(J,oe){return()=>{if((0,t.NF)(oe)){const De=Array.from(J.querySelectorAll(`[class*=${_e}]`)),Ye=/\bflex-layout-.+?\b/g;De.forEach(Dt=>{Dt.classList.contains(`${_e}ssr`)&&Dt.parentNode?Dt.parentNode.removeChild(Dt):Dt.className.replace(Ye,"")})}}},deps:[t.K0,e.Lbi],multi:!0},_e="flex-layout-";class ce{}ce.\u0275fac=function(oe){return new(oe||ce)},ce.\u0275mod=e.oAB({type:ce}),ce.\u0275inj=e.cJS({providers:[ae]});class ye{constructor(oe=!1,De="all",Ye="",Dt="",ut=0){this.matches=oe,this.mediaQuery=De,this.mqAlias=Ye,this.suffix=Dt,this.priority=ut,this.property=""}clone(){return new ye(this.matches,this.mediaQuery,this.mqAlias,this.suffix)}}class ue{constructor(){this.stylesheet=new Map}addStyleToElement(oe,De,Ye){const Dt=this.stylesheet.get(oe);Dt?Dt.set(De,Ye):this.stylesheet.set(oe,new Map([[De,Ye]]))}clearStyles(){this.stylesheet.clear()}getStyleForElement(oe,De){const Ye=this.stylesheet.get(oe);let Dt="";if(Ye){const ut=Ye.get(De);("number"==typeof ut||"string"==typeof ut)&&(Dt=ut+"")}return Dt}}ue.\u0275fac=function(oe){return new(oe||ue)},ue.\u0275prov=e.Yz7({token:ue,factory:ue.\u0275fac,providedIn:"root"});const $={addFlexToParent:!0,addOrientationBps:!1,disableDefaultBps:!1,disableVendorPrefixes:!1,serverLoaded:!1,useColumnBasisZero:!0,printWithBreakpoints:[],mediaTriggerAutoRestore:!0,ssrObserveBreakpoints:[],multiplier:void 0,defaultUnit:"px",detectLayoutDisplay:!1},he=new e.OlP("Flex Layout token, config options for the library",{providedIn:"root",factory:()=>$}),w=new e.OlP("FlexLayoutServerLoaded",{providedIn:"root",factory:()=>!1}),n=new e.OlP("Flex Layout token, collect all breakpoints into one provider",{providedIn:"root",factory:()=>null});function o(J,oe){return J=J?.clone()??new ye,oe&&(J.mqAlias=oe.alias,J.mediaQuery=oe.mediaQuery,J.suffix=oe.suffix,J.priority=oe.priority),J}class h{constructor(){this.shouldCache=!0}sideEffect(oe,De,Ye){}}class d{constructor(oe,De,Ye,Dt){this._serverStylesheet=oe,this._serverModuleLoaded=De,this._platformId=Ye,this.layoutConfig=Dt}applyStyleToElement(oe,De,Ye=null){let Dt={};"string"==typeof De&&(Dt[De]=Ye,De=Dt),Dt=this.layoutConfig.disableVendorPrefixes?De:(0,S.GK)(De),this._applyMultiValueStyleToElement(Dt,oe)}applyStyleToElements(oe,De=[]){const Ye=this.layoutConfig.disableVendorPrefixes?oe:(0,S.GK)(oe);De.forEach(Dt=>{this._applyMultiValueStyleToElement(Ye,Dt)})}getFlowDirection(oe){const De="flex-direction";let Ye=this.lookupStyle(oe,De);return[Ye||"row",this.lookupInlineStyle(oe,De)||(0,t.PM)(this._platformId)&&this._serverModuleLoaded?Ye:""]}hasWrap(oe){return"wrap"===this.lookupStyle(oe,"flex-wrap")}lookupAttributeValue(oe,De){return oe.getAttribute(De)??""}lookupInlineStyle(oe,De){return(0,t.NF)(this._platformId)?oe.style.getPropertyValue(De):function y(J,oe){return v(J)[oe]??""}(oe,De)}lookupStyle(oe,De,Ye=!1){let Dt="";return oe&&((Dt=this.lookupInlineStyle(oe,De))||((0,t.NF)(this._platformId)?Ye||(Dt=getComputedStyle(oe).getPropertyValue(De)):this._serverModuleLoaded&&(Dt=this._serverStylesheet.getStyleForElement(oe,De)))),Dt?Dt.trim():""}_applyMultiValueStyleToElement(oe,De){Object.keys(oe).sort().forEach(Ye=>{const Dt=oe[Ye],ut=Array.isArray(Dt)?Dt:[Dt];ut.sort();for(let ze of ut)ze=ze?ze+"":"",(0,t.NF)(this._platformId)||!this._serverModuleLoaded?(0,t.NF)(this._platformId)?De.style.setProperty(Ye,ze):L(De,Ye,ze):this._serverStylesheet.addStyleToElement(De,Ye,ze)})}}function L(J,oe,De){oe=oe.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase();const Ye=v(J);Ye[oe]=De??"",function B(J,oe){let De="";for(const Ye in oe)oe[Ye]&&(De+=`${Ye}:${oe[Ye]};`);J.setAttribute("style",De)}(J,Ye)}function v(J){const oe={},De=J.getAttribute("style");if(De){const Ye=De.split(/;+/g);for(let Dt=0;Dt<Ye.length;Dt++){const ut=Ye[Dt].trim();if(ut.length>0){const ze=ut.indexOf(":");if(-1===ze)throw new Error(`Invalid CSS style: ${ut}`);oe[ut.substr(0,ze).trim()]=ut.substr(ze+1).trim()}}}return oe}function a(J,oe){const De=J&&J.priority||0;return(oe&&oe.priority||0)-De}function C(J,oe){return(J.priority||0)-(oe.priority||0)}d.\u0275fac=function(oe){return new(oe||d)(e.LFG(ue),e.LFG(w),e.LFG(e.Lbi),e.LFG(he))},d.\u0275prov=e.Yz7({token:d,factory:d.\u0275fac,providedIn:"root"});class N{constructor(oe,De,Ye){this._zone=oe,this._platformId=De,this._document=Ye,this.source=new _.X(new ye(!0)),this.registry=new Map,this.pendingRemoveListenerFns=[],this._observable$=this.source.asObservable()}get activations(){const oe=[];return this.registry.forEach((De,Ye)=>{De.matches&&oe.push(Ye)}),oe}isActive(oe){return this.registry.get(oe)?.matches??this.registerQuery(oe).some(Ye=>Ye.matches)}observe(oe,De=!1){if(oe&&oe.length){const Ye=this._observable$.pipe((0,A.h)(ut=>!De||oe.indexOf(ut.mediaQuery)>-1)),Dt=new E.y(ut=>{const ze=this.registerQuery(oe);if(ze.length){const Me=ze.pop();ze.forEach(Ce=>{ut.next(Ce)}),this.source.next(Me)}ut.complete()});return(0,s.T)(Dt,Ye)}return this._observable$}registerQuery(oe){const De=Array.isArray(oe)?oe:[oe],Ye=[];return function X(J,oe){const De=J.filter(Ye=>!F[Ye]);if(De.length>0){const Ye=De.join(", ");try{const Dt=oe.createElement("style");if(Dt.setAttribute("type","text/css"),!Dt.styleSheet){const ut=`\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`;Dt.appendChild(oe.createTextNode(ut))}oe.head.appendChild(Dt),De.forEach(ut=>F[ut]=Dt)}catch(Dt){console.error(Dt)}}}(De,this._document),De.forEach(Dt=>{const ut=Me=>{this._zone.run(()=>this.source.next(new ye(Me.matches,Dt)))};let ze=this.registry.get(Dt);ze||(ze=this.buildMQL(Dt),ze.addListener(ut),this.pendingRemoveListenerFns.push(()=>ze.removeListener(ut)),this.registry.set(Dt,ze)),ze.matches&&Ye.push(new ye(!0,Dt))}),Ye}ngOnDestroy(){let oe;for(;oe=this.pendingRemoveListenerFns.pop();)oe()}buildMQL(oe){return function ke(J,oe){return oe&&window.matchMedia("all").addListener?window.matchMedia(J):function Fe(J){const oe=new EventTarget;return oe.matches="all"===J||""===J,oe.media=J,oe.addListener=()=>{},oe.removeListener=()=>{},oe.addEventListener=()=>{},oe.dispatchEvent=()=>!1,oe.onchange=null,oe}(J)}(oe,(0,t.NF)(this._platformId))}}N.\u0275fac=function(oe){return new(oe||N)(e.LFG(e.R0b),e.LFG(e.Lbi),e.LFG(t.K0))},N.\u0275prov=e.Yz7({token:N,factory:N.\u0275fac,providedIn:"root"});const F={};const Ke=[{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}],je="(orientation: portrait) and (max-width: 599.98px)",Ve="(orientation: landscape) and (max-width: 959.98px)",xe="(orientation: portrait) and (min-width: 600px) and (max-width: 839.98px)",Ze="(orientation: landscape) and (min-width: 960px) and (max-width: 1279.98px)",Ie="(orientation: portrait) and (min-width: 840px)",ve="(orientation: landscape) and (min-width: 1280px)",et={HANDSET:`${je}, ${Ve}`,TABLET:`${xe} , ${Ze}`,WEB:`${Ie}, ${ve} `,HANDSET_PORTRAIT:`${je}`,TABLET_PORTRAIT:`${xe} `,WEB_PORTRAIT:`${Ie}`,HANDSET_LANDSCAPE:`${Ve}`,TABLET_LANDSCAPE:`${Ze}`,WEB_LANDSCAPE:`${ve}`},ht=[{alias:"handset",priority:2e3,mediaQuery:et.HANDSET},{alias:"handset.landscape",priority:2e3,mediaQuery:et.HANDSET_LANDSCAPE},{alias:"handset.portrait",priority:2e3,mediaQuery:et.HANDSET_PORTRAIT},{alias:"tablet",priority:2100,mediaQuery:et.TABLET},{alias:"tablet.landscape",priority:2100,mediaQuery:et.TABLET_LANDSCAPE},{alias:"tablet.portrait",priority:2100,mediaQuery:et.TABLET_PORTRAIT},{alias:"web",priority:2200,mediaQuery:et.WEB,overlapping:!0},{alias:"web.landscape",priority:2200,mediaQuery:et.WEB_LANDSCAPE,overlapping:!0},{alias:"web.portrait",priority:2200,mediaQuery:et.WEB_PORTRAIT,overlapping:!0}],Le=/(\.|-|_)/g;function Ae(J){let oe=J.length>0?J.charAt(0):"",De=J.length>1?J.slice(1):"";return oe.toUpperCase()+De}function pe(J){return J.forEach(oe=>{oe.suffix||(oe.suffix=function te(J){return J.replace(Le,"|").split("|").map(Ae).join("")}(oe.alias),oe.overlapping=!!oe.overlapping)}),J}const H=new e.OlP("Token (@angular/flex-layout) Breakpoints",{providedIn:"root",factory:()=>{const J=(0,e.f3M)(n),oe=(0,e.f3M)(he),De=[].concat.apply([],(J||[]).map(Dt=>Array.isArray(Dt)?Dt:[Dt]));return function ee(J,oe=[]){const De={};return J.forEach(Ye=>{De[Ye.alias]=Ye}),oe.forEach(Ye=>{De[Ye.alias]?(0,S.kt)(De[Ye.alias],Ye):De[Ye.alias]=Ye}),pe(Object.keys(De).map(Ye=>De[Ye]))}((oe.disableDefaultBps?[]:Ke).concat(oe.addOrientationBps?ht:[]),De)}});class j{constructor(oe){this.findByMap=new Map,this.items=[...oe].sort(C)}findByAlias(oe){return oe?this.findWithPredicate(oe,De=>De.alias===oe):null}findByQuery(oe){return this.findWithPredicate(oe,De=>De.mediaQuery===oe)}get overlappings(){return this.items.filter(oe=>oe.overlapping)}get aliases(){return this.items.map(oe=>oe.alias)}get suffixes(){return this.items.map(oe=>oe?.suffix??"")}findWithPredicate(oe,De){let Ye=this.findByMap.get(oe);return Ye||(Ye=this.items.find(De)??null,this.findByMap.set(oe,Ye)),Ye??null}}j.\u0275fac=function(oe){return new(oe||j)(e.LFG(H))},j.\u0275prov=e.Yz7({token:j,factory:j.\u0275fac,providedIn:"root"});const Oe="print",Re={alias:Oe,mediaQuery:Oe,priority:1e3};class le{constructor(oe,De,Ye){this.breakpoints=oe,this.layoutConfig=De,this._document=Ye,this.registeredBeforeAfterPrintHooks=!1,this.isPrintingBeforeAfterEvent=!1,this.beforePrintEventListeners=[],this.afterPrintEventListeners=[],this.formerActivations=null,this.isPrinting=!1,this.queue=new _t,this.deactivations=[]}withPrintQuery(oe){return[...oe,Oe]}isPrintEvent(oe){return oe.mediaQuery.startsWith(Oe)}get printAlias(){return[...this.layoutConfig.printWithBreakpoints??[]]}get printBreakPoints(){return this.printAlias.map(oe=>this.breakpoints.findByAlias(oe)).filter(oe=>null!==oe)}getEventBreakpoints({mediaQuery:oe}){const De=this.breakpoints.findByQuery(oe);return(De?[...this.printBreakPoints,De]:this.printBreakPoints).sort(a)}updateEvent(oe){let De=this.breakpoints.findByQuery(oe.mediaQuery);return this.isPrintEvent(oe)&&(De=this.getEventBreakpoints(oe)[0],oe.mediaQuery=De?.mediaQuery??""),o(oe,De)}registerBeforeAfterPrintHooks(oe){if(!this._document.defaultView||this.registeredBeforeAfterPrintHooks)return;this.registeredBeforeAfterPrintHooks=!0;const De=()=>{this.isPrinting||(this.isPrintingBeforeAfterEvent=!0,this.startPrinting(oe,this.getEventBreakpoints(new ye(!0,Oe))),oe.updateStyles())},Ye=()=>{this.isPrintingBeforeAfterEvent=!1,this.isPrinting&&(this.stopPrinting(oe),oe.updateStyles())};this._document.defaultView.addEventListener("beforeprint",De),this._document.defaultView.addEventListener("afterprint",Ye),this.beforePrintEventListeners.push(De),this.afterPrintEventListeners.push(Ye)}interceptEvents(oe){return De=>{this.isPrintEvent(De)?De.matches&&!this.isPrinting?(this.startPrinting(oe,this.getEventBreakpoints(De)),oe.updateStyles()):!De.matches&&this.isPrinting&&!this.isPrintingBeforeAfterEvent&&(this.stopPrinting(oe),oe.updateStyles()):this.collectActivations(oe,De)}}blockPropagation(){return oe=>!(this.isPrinting||this.isPrintEvent(oe))}startPrinting(oe,De){this.isPrinting=!0,this.formerActivations=oe.activatedBreakpoints,oe.activatedBreakpoints=this.queue.addPrintBreakpoints(De)}stopPrinting(oe){oe.activatedBreakpoints=this.deactivations,this.deactivations=[],this.formerActivations=null,this.queue.clear(),this.isPrinting=!1}collectActivations(oe,De){if(!this.isPrinting||this.isPrintingBeforeAfterEvent){if(!this.isPrintingBeforeAfterEvent)return void(this.deactivations=[]);if(!De.matches){const Ye=this.breakpoints.findByQuery(De.mediaQuery);if(Ye){const Dt=this.formerActivations&&this.formerActivations.includes(Ye),ut=!this.formerActivations&&oe.activatedBreakpoints.includes(Ye);(Dt||ut)&&(this.deactivations.push(Ye),this.deactivations.sort(a))}}}}ngOnDestroy(){this._document.defaultView&&(this.beforePrintEventListeners.forEach(oe=>this._document.defaultView.removeEventListener("beforeprint",oe)),this.afterPrintEventListeners.forEach(oe=>this._document.defaultView.removeEventListener("afterprint",oe)))}}le.\u0275fac=function(oe){return new(oe||le)(e.LFG(j),e.LFG(he),e.LFG(t.K0))},le.\u0275prov=e.Yz7({token:le,factory:le.\u0275fac,providedIn:"root"});class _t{constructor(){this.printBreakpoints=[]}addPrintBreakpoints(oe){return oe.push(Re),oe.sort(a),oe.forEach(De=>this.addBreakpoint(De)),this.printBreakpoints}addBreakpoint(oe){oe&&void 0===this.printBreakpoints.find(Ye=>Ye.mediaQuery===oe.mediaQuery)&&(this.printBreakpoints=function it(J){return J?.mediaQuery.startsWith(Oe)??!1}(oe)?[oe,...this.printBreakpoints]:[...this.printBreakpoints,oe])}clear(){this.printBreakpoints=[]}}class Ct{constructor(oe,De,Ye){this.matchMedia=oe,this.breakpoints=De,this.hook=Ye,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 D.x,this.observeActivations()}get activatedAlias(){return this.activatedBreakpoints[0]?.alias??""}set activatedBreakpoints(oe){this._activatedBreakpoints=[...oe]}get activatedBreakpoints(){return[...this._activatedBreakpoints]}set useFallbacks(oe){this._useFallbacks=oe}onMediaChange(oe){const De=this.findByQuery(oe.mediaQuery);if(De){oe=o(oe,De);const Ye=this.activatedBreakpoints.indexOf(De);oe.matches&&-1===Ye?(this._activatedBreakpoints.push(De),this._activatedBreakpoints.sort(a),this.updateStyles()):!oe.matches&&-1!==Ye&&(this._activatedBreakpoints.splice(Ye,1),this._activatedBreakpoints.sort(a),this.updateStyles())}}init(oe,De,Ye,Dt,ut=[]){un(this.updateMap,oe,De,Ye),un(this.clearMap,oe,De,Dt),this.buildElementKeyMap(oe,De),this.watchExtraTriggers(oe,De,ut)}getValue(oe,De,Ye){const Dt=this.elementMap.get(oe);if(Dt){const ut=void 0!==Ye?Dt.get(Ye):this.getActivatedValues(Dt,De);if(ut)return ut.get(De)}}hasValue(oe,De){const Ye=this.elementMap.get(oe);if(Ye){const Dt=this.getActivatedValues(Ye,De);if(Dt)return void 0!==Dt.get(De)||!1}return!1}setValue(oe,De,Ye,Dt){let ut=this.elementMap.get(oe);if(ut){const Me=(ut.get(Dt)??new Map).set(De,Ye);ut.set(Dt,Me),this.elementMap.set(oe,ut)}else ut=(new Map).set(Dt,(new Map).set(De,Ye)),this.elementMap.set(oe,ut);const ze=this.getValue(oe,De);void 0!==ze&&this.updateElement(oe,De,ze)}trackValue(oe,De){return this.subject.asObservable().pipe((0,A.h)(Ye=>Ye.element===oe&&Ye.key===De))}updateStyles(){this.elementMap.forEach((oe,De)=>{const Ye=new Set(this.elementKeyMap.get(De));let Dt=this.getActivatedValues(oe);Dt&&Dt.forEach((ut,ze)=>{this.updateElement(De,ze,ut),Ye.delete(ze)}),Ye.forEach(ut=>{if(Dt=this.getActivatedValues(oe,ut),Dt){const ze=Dt.get(ut);this.updateElement(De,ut,ze)}else this.clearElement(De,ut)})})}clearElement(oe,De){const Ye=this.clearMap.get(oe);if(Ye){const Dt=Ye.get(De);Dt&&(Dt(),this.subject.next({element:oe,key:De,value:""}))}}updateElement(oe,De,Ye){const Dt=this.updateMap.get(oe);if(Dt){const ut=Dt.get(De);ut&&(ut(Ye),this.subject.next({element:oe,key:De,value:Ye}))}}releaseElement(oe){const De=this.watcherMap.get(oe);De&&(De.forEach(Dt=>Dt.unsubscribe()),this.watcherMap.delete(oe));const Ye=this.elementMap.get(oe);Ye&&(Ye.forEach((Dt,ut)=>Ye.delete(ut)),this.elementMap.delete(oe))}triggerUpdate(oe,De){const Ye=this.elementMap.get(oe);if(Ye){const Dt=this.getActivatedValues(Ye,De);Dt&&(De?this.updateElement(oe,De,Dt.get(De)):Dt.forEach((ut,ze)=>this.updateElement(oe,ze,ut)))}}buildElementKeyMap(oe,De){let Ye=this.elementKeyMap.get(oe);Ye||(Ye=new Set,this.elementKeyMap.set(oe,Ye)),Ye.add(De)}watchExtraTriggers(oe,De,Ye){if(Ye&&Ye.length){let Dt=this.watcherMap.get(oe);if(Dt||(Dt=new Map,this.watcherMap.set(oe,Dt)),!Dt.get(De)){const ze=(0,s.T)(...Ye).subscribe(()=>{const Me=this.getValue(oe,De);this.updateElement(oe,De,Me)});Dt.set(De,ze)}}}findByQuery(oe){return this.breakpoints.findByQuery(oe)}getActivatedValues(oe,De){for(let Dt=0;Dt<this.activatedBreakpoints.length;Dt++){const ut=this.activatedBreakpoints[Dt],ze=oe.get(ut.alias);if(ze&&(void 0===De||ze.has(De)&&null!=ze.get(De)))return ze}if(!this._useFallbacks)return;const Ye=oe.get("");return void 0===De||Ye&&Ye.has(De)?Ye:void 0}observeActivations(){const oe=this.breakpoints.items.map(De=>De.mediaQuery);this.hook.registerBeforeAfterPrintHooks(this),this.matchMedia.observe(this.hook.withPrintQuery(oe)).pipe((0,P.b)(this.hook.interceptEvents(this)),(0,A.h)(this.hook.blockPropagation())).subscribe(this.onMediaChange.bind(this))}}function un(J,oe,De,Ye){if(void 0!==Ye){const Dt=J.get(oe)??new Map;Dt.set(De,Ye),J.set(oe,Dt)}}Ct.\u0275fac=function(oe){return new(oe||Ct)(e.LFG(N),e.LFG(j),e.LFG(le))},Ct.\u0275prov=e.Yz7({token:Ct,factory:Ct.\u0275fac,providedIn:"root"});class Bt{constructor(oe,De,Ye,Dt){this.elementRef=oe,this.styleBuilder=De,this.styler=Ye,this.marshal=Dt,this.DIRECTIVE_KEY="",this.inputs=[],this.mru={},this.destroySubject=new D.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(oe){this.marshal.setValue(this.nativeElement,this.DIRECTIVE_KEY,oe,this.marshal.activatedAlias)}ngOnChanges(oe){Object.keys(oe).forEach(De=>{if(-1!==this.inputs.indexOf(De)){const Ye=De.split(".").slice(1).join("."),Dt=oe[De].currentValue;this.setValue(Dt,Ye)}})}ngOnDestroy(){this.destroySubject.next(),this.destroySubject.complete(),this.marshal.releaseElement(this.nativeElement)}init(oe=[]){this.marshal.init(this.elementRef.nativeElement,this.DIRECTIVE_KEY,this.updateWithValue.bind(this),this.clearStyles.bind(this),oe)}addStyles(oe,De){const Ye=this.styleBuilder,Dt=Ye.shouldCache;let ut=this.styleCache.get(oe);(!ut||!Dt)&&(ut=Ye.buildStyles(oe,De),Dt&&this.styleCache.set(oe,ut)),this.mru={...ut},this.applyStyleToElement(ut),Ye.sideEffect(oe,ut,De)}clearStyles(){Object.keys(this.mru).forEach(oe=>{this.mru[oe]=""}),this.applyStyleToElement(this.mru),this.mru={},this.currentValue=void 0}triggerUpdate(){this.marshal.triggerUpdate(this.nativeElement,this.DIRECTIVE_KEY)}getFlexFlowDirection(oe,De=!1){if(oe){const[Ye,Dt]=this.styler.getFlowDirection(oe);if(!Dt&&De){const ut=(0,S.Ar)(Ye),ze=[oe];this.styler.applyStyleToElements(ut,ze)}return Ye.trim()}return"row"}hasWrap(oe){return this.styler.hasWrap(oe)}applyStyleToElement(oe,De,Ye=this.nativeElement){this.styler.applyStyleToElement(Ye,oe,De)}setValue(oe,De){this.marshal.setValue(this.nativeElement,this.DIRECTIVE_KEY,oe,De)}updateWithValue(oe){this.currentValue!==oe&&(this.addStyles(oe),this.currentValue=oe)}}Bt.\u0275fac=function(oe){return new(oe||Bt)(e.Y36(e.SBq),e.Y36(h),e.Y36(d),e.Y36(Ct))},Bt.\u0275dir=e.lG2({type:Bt,features:[e.TTD]});class Ut extends N{constructor(oe,De,Ye,Dt){super(oe,De,Ye),this._breakpoints=Dt,this.autoRegisterQueries=!0,this.useOverlaps=!1}clearAll(){this.registry.forEach(oe=>{oe.destroy()}),this.registry.clear(),this.useOverlaps=!1}activate(oe,De=this.useOverlaps){return oe=this._validateQuery(oe),(De||!this.isActive(oe))&&(this._deactivateAll(),this._registerMediaQuery(oe),this._activateWithOverlaps(oe,De)),this.hasActivated}_validateQuery(oe){return this._breakpoints.findByAlias(oe)?.mediaQuery??oe}_activateWithOverlaps(oe,De){if(De){const Dt=this._breakpoints.findByQuery(oe)?.alias??"unknown";switch(Dt){case"lg":this._activateByAlias(["lt-xl"]);break;case"md":this._activateByAlias(["lt-xl","lt-lg"]);break;case"sm":this._activateByAlias(["lt-xl","lt-lg","lt-md"]);break;case"xs":this._activateByAlias(["lt-xl","lt-lg","lt-md","lt-sm"])}switch(Dt){case"xl":this._activateByAlias(["gt-lg","gt-md","gt-sm","gt-xs"]);break;case"lg":this._activateByAlias(["gt-md","gt-sm","gt-xs"]);break;case"md":this._activateByAlias(["gt-sm","gt-xs"]);break;case"sm":this._activateByAlias(["gt-xs"])}}return this._activateByQuery(oe)}_activateByAlias(oe){oe.forEach(Ye=>{const Dt=this._breakpoints.findByAlias(Ye);this._activateByQuery(Dt?.mediaQuery??Ye)})}_activateByQuery(oe){!this.registry.has(oe)&&this.autoRegisterQueries&&this._registerMediaQuery(oe);const De=this.registry.get(oe);return De&&!this.isActive(oe)&&this.registry.set(oe,De.activate()),this.hasActivated}_deactivateAll(){return this.registry.forEach(oe=>{oe.deactivate()}),this}_registerMediaQuery(oe){!this.registry.has(oe)&&this.autoRegisterQueries&&this.registerQuery(oe)}buildMQL(oe){return new yn(oe)}get hasActivated(){return this.activations.length>0}}Ut.\u0275fac=function(oe){return new(oe||Ut)(e.LFG(e.R0b),e.LFG(e.Lbi),e.LFG(t.K0),e.LFG(j))},Ut.\u0275prov=e.Yz7({token:Ut,factory:Ut.\u0275fac});class yn extends EventTarget{constructor(oe){super(),this._mediaQuery=oe,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(oe=>{oe.call(this,{matches:this.matches,media:this.media})})),this}deactivate(){return this._isActive&&(this._isActive=!1,this._listeners.forEach(oe=>{oe.call(this,{matches:this.matches,media:this.media})})),this}addListener(oe){-1===this._listeners.indexOf(oe)&&this._listeners.push(oe),this._isActive&&oe.call(this,{matches:this.matches,media:this.media})}removeListener(oe){}dispatchEvent(oe){return!1}}class In{constructor(oe,De,Ye){this.breakpoints=oe,this.matchMedia=De,this.hook=Ye,this.filterOverlaps=!1,this.destroyed$=new D.x,this._media$=this.watchActivations()}ngOnDestroy(){this.destroyed$.next(),this.destroyed$.complete()}asObservable(){return this._media$}isActive(oe){return function tn(J){return J.flatMap(oe=>oe.split(",")).map(oe=>oe.trim())}(function Gt(J){return Array.isArray(J)?J:[J]}(oe)).some(Ye=>{const Dt=function rn(J,oe){return(oe.findByAlias(J)??oe.findByQuery(J))?.mediaQuery??null}(Ye,this.breakpoints);return null!==Dt&&this.matchMedia.isActive(Dt)})}watchActivations(){const oe=this.breakpoints.items.map(De=>De.mediaQuery);return this.buildObservable(oe)}buildObservable(oe){return this.matchMedia.observe(this.hook.withPrintQuery(oe)).pipe((0,A.h)(ut=>ut.matches),(0,M.b)(0,u.E),(0,z.w)(ut=>(0,k.of)(this.findAllActivations())),(0,I.U)(ut=>this.filterOverlaps?ut.filter(ze=>this.breakpoints.findByQuery(ze.mediaQuery)?.overlapping??!0):ut),(0,A.h)(ut=>ut.filter(Me=>Me.mediaQuery.length>0).length>0),(0,W.x)((ut,ze)=>{if(ut.length!==ze.length)return!1;const Me=ut.map(zt=>zt.mediaQuery),Ce=new Set(ze.map(zt=>zt.mediaQuery));return 0===new Set(Me.filter(zt=>!Ce.has(zt))).size}),(0,Z.R)(this.destroyed$))}findAllActivations(){return this.matchMedia.activations.map(Ye=>new ye(!0,Ye)).map(Ye=>this.hook.isPrintEvent(Ye)?this.hook.updateEvent(Ye):Ye).map(Ye=>o(Ye,this.breakpoints.findByQuery(Ye.mediaQuery))).sort(a)}}In.\u0275fac=function(oe){return new(oe||In)(e.LFG(j),e.LFG(N),e.LFG(le))},In.\u0275prov=e.Yz7({token:In,factory:In.\u0275fac,providedIn:"root"});class pn{constructor(oe,De,Ye,Dt,ut){this.breakpoints=oe,this.matchMedia=De,this.layoutConfig=Ye,this._platformId=Dt,this._document=ut,this.hasCachedRegistryMatches=!1,this.originalActivations=[],this.originalRegistry=new Map}activate(oe){oe=oe.map(De=>De.trim()),this.saveActivations(),this.deactivateAll(),this.setActivations(oe),this.prepareAutoRestore()}restore(){if(this.hasCachedRegistryMatches){const oe=Ye=>Ye.mediaQuery,De=this.originalActivations.map(oe);try{this.deactivateAll(),this.restoreRegistryMatches(),this.setActivations(De)}finally{this.originalActivations=[],this.resizeSubscription&&this.resizeSubscription.unsubscribe()}}}prepareAutoRestore(){if((0,t.NF)(this._platformId)&&this._document&&this.layoutConfig.mediaTriggerAutoRestore){const Ye=(0,p.R)(window,"resize").pipe((0,Q.q)(1));this.resizeSubscription=Ye.subscribe(this.restore.bind(this))}}deactivateAll(){const oe=this.currentActivations;this.forceRegistryMatches(oe,!1),this.simulateMediaChanges(oe,!1)}saveActivations(){if(!this.hasCachedRegistryMatches){const oe=Ye=>new ye(!0,Ye),De=Ye=>o(Ye,this.breakpoints.findByQuery(Ye.mediaQuery));this.originalActivations=this.currentActivations.map(oe).map(De).sort(a),this.cacheRegistryMatches()}}setActivations(oe){this.originalRegistry&&this.forceRegistryMatches(oe,!0),this.simulateMediaChanges(oe)}simulateMediaChanges(oe,De=!0){oe.map(ut=>{const ze=this.breakpoints,Me=ze.findByAlias(ut)||ze.findByQuery(ut);return Me?Me.mediaQuery:ut}).forEach(ut=>this.emitChangeEvent(De,ut))}forceRegistryMatches(oe,De){const Ye=new Map;oe.forEach(Dt=>{Ye.set(Dt,{matches:De})}),this.matchMedia.registry=Ye}cacheRegistryMatches(){const oe=this.originalRegistry;oe.clear(),this.matchMedia.registry.forEach((De,Ye)=>{oe.set(Ye,De)}),this.hasCachedRegistryMatches=!0}restoreRegistryMatches(){const oe=this.matchMedia.registry;oe.clear(),this.originalRegistry.forEach((De,Ye)=>{oe.set(Ye,De)}),this.originalRegistry.clear(),this.hasCachedRegistryMatches=!1}emitChangeEvent(oe,De){this.matchMedia.source.next(new ye(oe,De))}get currentActivations(){return this.matchMedia.activations}}function tt(J,oe="1",De="1"){let Ye=[oe,De,J],Dt=J.indexOf("calc");if(Dt>0){Ye[2]=vt(J.substring(Dt).trim());let ut=J.substr(0,Dt).trim().split(" ");2==ut.length&&(Ye[0]=ut[0],Ye[1]=ut[1])}else if(0==Dt)Ye[2]=vt(J.trim());else{let ut=J.split(" ");Ye=3===ut.length?ut:[oe,De,J]}return Ye}function vt(J){return J.replace(/[\s]/g,"").replace(/[\/\*\+\-]/g," $& ")}pn.\u0275fac=function(oe){return new(oe||pn)(e.LFG(j),e.LFG(N),e.LFG(he),e.LFG(e.Lbi),e.LFG(t.K0))},pn.\u0275prov=e.Yz7({token:pn,factory:pn.\u0275fac,providedIn:"root"});function se(J,oe){if(void 0===oe)return J;const De=Ye=>{const Dt=+Ye.slice(0,-"x".length);return J.endsWith("x")&&!isNaN(Dt)?`${Dt*oe.value}${oe.unit}`:J};return J.includes(" ")?J.split(" ").map(De).join(" "):De(J)}},3704:(Ue,q,m)=>{"use strict";m.d(q,{Zl:()=>L,aT:()=>a,oO:()=>W});var e=m(2560),t=m(4658),_=m(4666),E=m(8971),s=m(8951),D=m(4497);class u extends t.QI{buildStyles(N){return{content:N?`url(${N})`:""}}}u.\u0275fac=function(){let C;return function(F){return(C||(C=e.n5z(u)))(F||u)}}(),u.\u0275prov=e.Yz7({token:u,factory:u.\u0275fac,providedIn:"root"});class k extends t.iR{constructor(N,F,X,Fe,ke,Ke){super(N,F,X,Fe),this.platformId=ke,this.serverModuleLoaded=Ke,this.DIRECTIVE_KEY="img-src",this.defaultSrc="",this.styleCache=p,this.init(),this.setValue(this.nativeElement.getAttribute("src")||"",""),(0,_.PM)(this.platformId)&&this.serverModuleLoaded&&this.nativeElement.setAttribute("src","")}set src(N){this.defaultSrc=N,this.setValue(this.defaultSrc,"")}updateWithValue(N){const F=N||this.defaultSrc;(0,_.PM)(this.platformId)&&this.serverModuleLoaded?this.addStyles(F):this.nativeElement.setAttribute("src",F)}}k.\u0275fac=function(N){return new(N||k)(e.Y36(e.SBq),e.Y36(u),e.Y36(t.RK),e.Y36(t.yB),e.Y36(e.Lbi),e.Y36(t.wY))},k.\u0275dir=e.lG2({type:k,inputs:{src:"src"},features:[e.qOj]});const p=new Map,S=["src.xs","src.sm","src.md","src.lg","src.xl","src.lt-sm","src.lt-md","src.lt-lg","src.lt-xl","src.gt-xs","src.gt-sm","src.gt-md","src.gt-lg"];class P extends k{constructor(){super(...arguments),this.inputs=S}}P.\u0275fac=function(){let C;return function(F){return(C||(C=e.n5z(P)))(F||P)}}(),P.\u0275dir=e.lG2({type:P,selectors:[["img","src.xs",""],["img","src.sm",""],["img","src.md",""],["img","src.lg",""],["img","src.xl",""],["img","src.lt-sm",""],["img","src.lt-md",""],["img","src.lt-lg",""],["img","src.lt-xl",""],["img","src.gt-xs",""],["img","src.gt-sm",""],["img","src.gt-md",""],["img","src.gt-lg",""]],inputs:{"src.xs":"src.xs","src.sm":"src.sm","src.md":"src.md","src.lg":"src.lg","src.xl":"src.xl","src.lt-sm":"src.lt-sm","src.lt-md":"src.lt-md","src.lt-lg":"src.lt-lg","src.lt-xl":"src.lt-xl","src.gt-xs":"src.gt-xs","src.gt-sm":"src.gt-sm","src.gt-md":"src.gt-md","src.gt-lg":"src.gt-lg"},features:[e.qOj]});class M extends t.iR{constructor(N,F,X,Fe,ke,Ke,je){super(N,null,F,X),this.ngClassInstance=je,this.DIRECTIVE_KEY="ngClass",this.ngClassInstance||(this.ngClassInstance=new _.mk(Fe,ke,N,Ke)),this.init(),this.setValue("","")}set klass(N){this.ngClassInstance.klass=N,this.setValue(N,"")}updateWithValue(N){this.ngClassInstance.ngClass=N,this.ngClassInstance.ngDoCheck()}ngDoCheck(){this.ngClassInstance.ngDoCheck()}}M.\u0275fac=function(N){return new(N||M)(e.Y36(e.SBq),e.Y36(t.RK),e.Y36(t.yB),e.Y36(e.ZZ4),e.Y36(e.aQg),e.Y36(e.Qsj),e.Y36(_.mk,10))},M.\u0275dir=e.lG2({type:M,inputs:{klass:["class","klass"]},features:[e.qOj]});const z=["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"];class W extends M{constructor(){super(...arguments),this.inputs=z}}W.\u0275fac=function(){let C;return function(F){return(C||(C=e.n5z(W)))(F||W)}}(),W.\u0275dir=e.lG2({type:W,selectors:[["","ngClass",""],["","ngClass.xs",""],["","ngClass.sm",""],["","ngClass.md",""],["","ngClass.lg",""],["","ngClass.xl",""],["","ngClass.lt-sm",""],["","ngClass.lt-md",""],["","ngClass.lt-lg",""],["","ngClass.lt-xl",""],["","ngClass.gt-xs",""],["","ngClass.gt-sm",""],["","ngClass.gt-md",""],["","ngClass.gt-lg",""]],inputs:{ngClass:"ngClass","ngClass.xs":"ngClass.xs","ngClass.sm":"ngClass.sm","ngClass.md":"ngClass.md","ngClass.lg":"ngClass.lg","ngClass.xl":"ngClass.xl","ngClass.lt-sm":"ngClass.lt-sm","ngClass.lt-md":"ngClass.lt-md","ngClass.lt-lg":"ngClass.lt-lg","ngClass.lt-xl":"ngClass.lt-xl","ngClass.gt-xs":"ngClass.gt-xs","ngClass.gt-sm":"ngClass.gt-sm","ngClass.gt-md":"ngClass.gt-md","ngClass.gt-lg":"ngClass.gt-lg"},features:[e.qOj]});class Z extends t.QI{buildStyles(N,F){return{display:"true"===N?F.display||(F.isServer?"initial":""):"none"}}}Z.\u0275fac=function(){let C;return function(F){return(C||(C=e.n5z(Z)))(F||Z)}}(),Z.\u0275prov=e.Yz7({token:Z,factory:Z.\u0275fac,providedIn:"root"});class Q extends t.iR{constructor(N,F,X,Fe,ke,Ke,je){super(N,F,X,Fe),this.layoutConfig=ke,this.platformId=Ke,this.serverModuleLoaded=je,this.DIRECTIVE_KEY="show-hide",this.display="",this.hasLayout=!1,this.hasFlexChild=!1}ngAfterViewInit(){this.trackExtraTriggers();const N=Array.from(this.nativeElement.children);for(let X=0;X<N.length;X++)if(this.marshal.hasValue(N[X],"flex")){this.hasFlexChild=!0;break}ie.has(this.nativeElement)?this.display=ie.get(this.nativeElement):(this.display=this.getDisplayStyle(),ie.set(this.nativeElement,this.display)),this.init();const F=this.marshal.getValue(this.nativeElement,this.DIRECTIVE_KEY,"");void 0===F||""===F?this.setValue(!0,""):this.triggerUpdate()}ngOnChanges(N){Object.keys(N).forEach(F=>{if(-1!==this.inputs.indexOf(F)){const X=F.split("."),Fe=X.slice(1).join("."),ke=N[F].currentValue;let Ke=""===ke||0!==ke&&(0,E.Ig)(ke);"fxHide"===X[0]&&(Ke=!Ke),this.setValue(Ke,Fe)}})}trackExtraTriggers(){this.hasLayout=this.marshal.hasValue(this.nativeElement,"layout"),["layout","layout-align"].forEach(N=>{this.marshal.trackValue(this.nativeElement,N).pipe((0,s.R)(this.destroySubject)).subscribe(this.triggerUpdate.bind(this))})}getDisplayStyle(){return this.hasLayout||this.hasFlexChild&&this.layoutConfig.addFlexToParent?"flex":this.styler.lookupStyle(this.nativeElement,"display",!0)}updateWithValue(N=!0){if(""===N)return;const F=(0,_.PM)(this.platformId);this.addStyles(N?"true":"false",{display:this.display,isServer:F}),F&&this.serverModuleLoaded&&this.nativeElement.style.setProperty("display",""),this.marshal.triggerUpdate(this.parentElement,"layout-gap")}}Q.\u0275fac=function(N){return new(N||Q)(e.Y36(e.SBq),e.Y36(Z),e.Y36(t.RK),e.Y36(t.yB),e.Y36(t.WU),e.Y36(e.Lbi),e.Y36(t.wY))},Q.\u0275dir=e.lG2({type:Q,features:[e.qOj,e.TTD]});const ie=new WeakMap,ae=["fxShow","fxShow.print","fxShow.xs","fxShow.sm","fxShow.md","fxShow.lg","fxShow.xl","fxShow.lt-sm","fxShow.lt-md","fxShow.lt-lg","fxShow.lt-xl","fxShow.gt-xs","fxShow.gt-sm","fxShow.gt-md","fxShow.gt-lg","fxHide","fxHide.print","fxHide.xs","fxHide.sm","fxHide.md","fxHide.lg","fxHide.xl","fxHide.lt-sm","fxHide.lt-md","fxHide.lt-lg","fxHide.lt-xl","fxHide.gt-xs","fxHide.gt-sm","fxHide.gt-md","fxHide.gt-lg"];class ce extends Q{constructor(){super(...arguments),this.inputs=ae}}ce.\u0275fac=function(){let C;return function(F){return(C||(C=e.n5z(ce)))(F||ce)}}(),ce.\u0275dir=e.lG2({type:ce,selectors:[["","fxShow",""],["","fxShow.print",""],["","fxShow.xs",""],["","fxShow.sm",""],["","fxShow.md",""],["","fxShow.lg",""],["","fxShow.xl",""],["","fxShow.lt-sm",""],["","fxShow.lt-md",""],["","fxShow.lt-lg",""],["","fxShow.lt-xl",""],["","fxShow.gt-xs",""],["","fxShow.gt-sm",""],["","fxShow.gt-md",""],["","fxShow.gt-lg",""],["","fxHide",""],["","fxHide.print",""],["","fxHide.xs",""],["","fxHide.sm",""],["","fxHide.md",""],["","fxHide.lg",""],["","fxHide.xl",""],["","fxHide.lt-sm",""],["","fxHide.lt-md",""],["","fxHide.lt-lg",""],["","fxHide.lt-xl",""],["","fxHide.gt-xs",""],["","fxHide.gt-sm",""],["","fxHide.gt-md",""],["","fxHide.gt-lg",""]],inputs:{fxShow:"fxShow","fxShow.print":"fxShow.print","fxShow.xs":"fxShow.xs","fxShow.sm":"fxShow.sm","fxShow.md":"fxShow.md","fxShow.lg":"fxShow.lg","fxShow.xl":"fxShow.xl","fxShow.lt-sm":"fxShow.lt-sm","fxShow.lt-md":"fxShow.lt-md","fxShow.lt-lg":"fxShow.lt-lg","fxShow.lt-xl":"fxShow.lt-xl","fxShow.gt-xs":"fxShow.gt-xs","fxShow.gt-sm":"fxShow.gt-sm","fxShow.gt-md":"fxShow.gt-md","fxShow.gt-lg":"fxShow.gt-lg",fxHide:"fxHide","fxHide.print":"fxHide.print","fxHide.xs":"fxHide.xs","fxHide.sm":"fxHide.sm","fxHide.md":"fxHide.md","fxHide.lg":"fxHide.lg","fxHide.xl":"fxHide.xl","fxHide.lt-sm":"fxHide.lt-sm","fxHide.lt-md":"fxHide.lt-md","fxHide.lt-lg":"fxHide.lt-lg","fxHide.lt-xl":"fxHide.lt-xl","fxHide.gt-xs":"fxHide.gt-xs","fxHide.gt-sm":"fxHide.gt-sm","fxHide.gt-md":"fxHide.gt-md","fxHide.gt-lg":"fxHide.gt-lg"},features:[e.qOj]});class ye{constructor(N,F,X=!0){this.key=N,this.value=F,this.key=X?N.replace(/['"]/g,"").trim():N.trim(),this.value=X?F.replace(/['"]/g,"").trim():F.trim(),this.value=this.value.replace(/;/,"")}}function ue(C){let N=typeof C;return"object"===N?C.constructor===Array?"array":C.constructor===Set?"set":"object":N}function w(C,N){let F=[];return"set"===ue(C)?C.forEach(X=>F.push(X)):Object.keys(C).forEach(X=>{F.push(`${X}:${C[X]}`)}),function he(C,N){return C.map(n).filter(X=>!!X).map(X=>(N&&(X.value=N(X.value)),X)).reduce(o,{})}(F,N)}function n(C){const[N,...F]=C.split(":");return new ye(N,F.join(":"))}function o(C,N){return N.key&&(C[N.key]=N.value),C}class h extends t.iR{constructor(N,F,X,Fe,ke,Ke,je,Ve,xe){super(N,null,F,X),this.sanitizer=Fe,this.ngStyleInstance=je,this.DIRECTIVE_KEY="ngStyle",this.ngStyleInstance||(this.ngStyleInstance=new _.PC(N,ke,Ke)),this.init();const Ze=this.nativeElement.getAttribute("style")??"";this.fallbackStyles=this.buildStyleMap(Ze),this.isServer=Ve&&(0,_.PM)(xe)}updateWithValue(N){const F=this.buildStyleMap(N);this.ngStyleInstance.ngStyle={...this.fallbackStyles,...F},this.isServer&&this.applyStyleToElement(F),this.ngStyleInstance.ngDoCheck()}clearStyles(){this.ngStyleInstance.ngStyle=this.fallbackStyles,this.ngStyleInstance.ngDoCheck()}buildStyleMap(N){const F=X=>this.sanitizer.sanitize(e.q3G.STYLE,X)??"";if(N)switch(ue(N)){case"string":return B(function $(C,N=";"){return String(C).trim().split(N).map(F=>F.trim()).filter(F=>""!==F)}(N),F);case"array":return B(N,F);default:return w(N,F)}return{}}ngDoCheck(){this.ngStyleInstance.ngDoCheck()}}h.\u0275fac=function(N){return new(N||h)(e.Y36(e.SBq),e.Y36(t.RK),e.Y36(t.yB),e.Y36(D.H7),e.Y36(e.aQg),e.Y36(e.Qsj),e.Y36(_.PC,10),e.Y36(t.wY),e.Y36(e.Lbi))},h.\u0275dir=e.lG2({type:h,features:[e.qOj]});const d=["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"];class L extends h{constructor(){super(...arguments),this.inputs=d}}function B(C,N){return C.map(n).filter(X=>!!X).map(X=>(N&&(X.value=N(X.value)),X)).reduce(o,{})}L.\u0275fac=function(){let C;return function(F){return(C||(C=e.n5z(L)))(F||L)}}(),L.\u0275dir=e.lG2({type:L,selectors:[["","ngStyle",""],["","ngStyle.xs",""],["","ngStyle.sm",""],["","ngStyle.md",""],["","ngStyle.lg",""],["","ngStyle.xl",""],["","ngStyle.lt-sm",""],["","ngStyle.lt-md",""],["","ngStyle.lt-lg",""],["","ngStyle.lt-xl",""],["","ngStyle.gt-xs",""],["","ngStyle.gt-sm",""],["","ngStyle.gt-md",""],["","ngStyle.gt-lg",""]],inputs:{ngStyle:"ngStyle","ngStyle.xs":"ngStyle.xs","ngStyle.sm":"ngStyle.sm","ngStyle.md":"ngStyle.md","ngStyle.lg":"ngStyle.lg","ngStyle.xl":"ngStyle.xl","ngStyle.lt-sm":"ngStyle.lt-sm","ngStyle.lt-md":"ngStyle.lt-md","ngStyle.lt-lg":"ngStyle.lt-lg","ngStyle.lt-xl":"ngStyle.lt-xl","ngStyle.gt-xs":"ngStyle.gt-xs","ngStyle.gt-sm":"ngStyle.gt-sm","ngStyle.gt-md":"ngStyle.gt-md","ngStyle.gt-lg":"ngStyle.gt-lg"},features:[e.qOj]});class a{}a.\u0275fac=function(N){return new(N||a)},a.\u0275mod=e.oAB({type:a}),a.\u0275inj=e.cJS({imports:[t.IR]})},6722:(Ue,q,m)=>{"use strict";m.d(q,{Wh:()=>Bt,ae:()=>vt,xw:()=>A,yH:()=>y});var e=m(2560),t=m(2867),_=m(4658),E=m(7200),s=m(253),D=m(8951);class u extends _.QI{buildStyles(se,{display:J}){const oe=(0,E.Ar)(se);return{...oe,display:"none"===J?J:oe.display}}}u.\u0275fac=function(){let dt;return function(J){return(dt||(dt=e.n5z(u)))(J||u)}}(),u.\u0275prov=e.Yz7({token:u,factory:u.\u0275fac,providedIn:"root"});const k=["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"];class S extends _.iR{constructor(se,J,oe,De,Ye){super(se,oe,J,De),this._config=Ye,this.DIRECTIVE_KEY="layout",this.init()}updateWithValue(se){const oe=this._config.detectLayoutDisplay?this.styler.lookupStyle(this.nativeElement,"display"):"";this.styleCache=P.get(oe)??new Map,P.set(oe,this.styleCache),this.currentValue!==se&&(this.addStyles(se,{display:oe}),this.currentValue=se)}}S.\u0275fac=function(se){return new(se||S)(e.Y36(e.SBq),e.Y36(_.RK),e.Y36(u),e.Y36(_.yB),e.Y36(_.WU))},S.\u0275dir=e.lG2({type:S,features:[e.qOj]});class A extends S{constructor(){super(...arguments),this.inputs=k}}A.\u0275fac=function(){let dt;return function(J){return(dt||(dt=e.n5z(A)))(J||A)}}(),A.\u0275dir=e.lG2({type:A,selectors:[["","fxLayout",""],["","fxLayout.xs",""],["","fxLayout.sm",""],["","fxLayout.md",""],["","fxLayout.lg",""],["","fxLayout.xl",""],["","fxLayout.lt-sm",""],["","fxLayout.lt-md",""],["","fxLayout.lt-lg",""],["","fxLayout.lt-xl",""],["","fxLayout.gt-xs",""],["","fxLayout.gt-sm",""],["","fxLayout.gt-md",""],["","fxLayout.gt-lg",""]],inputs:{fxLayout:"fxLayout","fxLayout.xs":"fxLayout.xs","fxLayout.sm":"fxLayout.sm","fxLayout.md":"fxLayout.md","fxLayout.lg":"fxLayout.lg","fxLayout.xl":"fxLayout.xl","fxLayout.lt-sm":"fxLayout.lt-sm","fxLayout.lt-md":"fxLayout.lt-md","fxLayout.lt-lg":"fxLayout.lt-lg","fxLayout.lt-xl":"fxLayout.lt-xl","fxLayout.gt-xs":"fxLayout.gt-xs","fxLayout.gt-sm":"fxLayout.gt-sm","fxLayout.gt-md":"fxLayout.gt-md","fxLayout.gt-lg":"fxLayout.gt-lg"},features:[e.qOj]});const P=new Map,M={"margin-left":null,"margin-right":null,"margin-top":null,"margin-bottom":null};class z extends _.QI{constructor(se,J){super(),this._styler=se,this._config=J}buildStyles(se,J){return se.endsWith(ye)?(se=se.slice(0,se.indexOf(ye)),function $(dt,se){const[J,oe]=dt.split(" "),Ye=Me=>`-${Me}`;let Dt="0px",ut=Ye(oe??J),ze="0px";return"rtl"===se?ze=Ye(J):Dt=Ye(J),{margin:`0px ${Dt} ${ut} ${ze}`}}(se=(0,_.FL)(se,this._config.multiplier),J.directionality)):{}}sideEffect(se,J,oe){const De=oe.items;if(se.endsWith(ye)){se=se.slice(0,se.indexOf(ye));const Ye=function ue(dt,se){const[J,oe]=dt.split(" ");let Ye="0px",ut="0px";return"rtl"===se?ut=J:Ye=J,{padding:`0px ${Ye} ${oe??J} ${ut}`}}(se=(0,_.FL)(se,this._config.multiplier),oe.directionality);this._styler.applyStyleToElements(Ye,oe.items)}else{se=(0,_.FL)(se,this._config.multiplier),se=this.addFallbackUnit(se);const Ye=De.pop(),Dt=function w(dt,se){const J=he(se.directionality,se.layout),oe={...M};return oe[J]=dt,oe}(se,oe);this._styler.applyStyleToElements(Dt,De),this._styler.applyStyleToElements(M,[Ye])}}addFallbackUnit(se){return isNaN(+se)?se:`${se}${this._config.defaultUnit}`}}z.\u0275fac=function(se){return new(se||z)(e.LFG(_.RK),e.LFG(_.WU))},z.\u0275prov=e.Yz7({token:z,factory:z.\u0275fac,providedIn:"root"});const I=["fxLayoutGap","fxLayoutGap.xs","fxLayoutGap.sm","fxLayoutGap.md","fxLayoutGap.lg","fxLayoutGap.xl","fxLayoutGap.lt-sm","fxLayoutGap.lt-md","fxLayoutGap.lt-lg","fxLayoutGap.lt-xl","fxLayoutGap.gt-xs","fxLayoutGap.gt-sm","fxLayoutGap.gt-md","fxLayoutGap.gt-lg"];class Z extends _.iR{constructor(se,J,oe,De,Ye,Dt){super(se,Ye,De,Dt),this.zone=J,this.directionality=oe,this.styleUtils=De,this.layout="row",this.DIRECTIVE_KEY="layout-gap",this.observerSubject=new s.x;const ut=[this.directionality.change,this.observerSubject.asObservable()];this.init(ut),this.marshal.trackValue(this.nativeElement,"layout").pipe((0,D.R)(this.destroySubject)).subscribe(this.onLayoutChange.bind(this))}get childrenNodes(){const se=this.nativeElement.children,J=[];for(let oe=se.length;oe--;)J[oe]=se[oe];return J}ngAfterContentInit(){this.buildChildObservable(),this.triggerUpdate()}ngOnDestroy(){super.ngOnDestroy(),this.observer&&this.observer.disconnect()}onLayoutChange(se){const oe=se.value.split(" ");this.layout=oe[0],E.iQ.find(De=>De===this.layout)||(this.layout="row"),this.triggerUpdate()}updateWithValue(se){const J=this.childrenNodes.filter(oe=>1===oe.nodeType&&this.willDisplay(oe)).sort((oe,De)=>{const Ye=+this.styler.lookupStyle(oe,"order"),Dt=+this.styler.lookupStyle(De,"order");return isNaN(Ye)||isNaN(Dt)||Ye===Dt?0:Ye>Dt?1:-1});if(J.length>0){const oe=this.directionality.value,De=this.layout;"row"===De&&"rtl"===oe?this.styleCache=ie:"row"===De&&"rtl"!==oe?this.styleCache=_e:"column"===De&&"rtl"===oe?this.styleCache=ae:"column"===De&&"rtl"!==oe&&(this.styleCache=ce),this.addStyles(se,{directionality:oe,items:J,layout:De})}}clearStyles(){const se=Object.keys(this.mru).length>0,J=se?"padding":he(this.directionality.value,this.layout);se&&super.clearStyles(),this.styleUtils.applyStyleToElements({[J]:""},this.childrenNodes)}willDisplay(se){const J=this.marshal.getValue(se,"show-hide");return!0===J||void 0===J&&"none"!==this.styleUtils.lookupStyle(se,"display")}buildChildObservable(){this.zone.runOutsideAngular(()=>{typeof MutationObserver<"u"&&(this.observer=new MutationObserver(se=>{se.some(oe=>oe.addedNodes&&oe.addedNodes.length>0||oe.removedNodes&&oe.removedNodes.length>0)&&this.observerSubject.next()}),this.observer.observe(this.nativeElement,{childList:!0}))})}}Z.\u0275fac=function(se){return new(se||Z)(e.Y36(e.SBq),e.Y36(e.R0b),e.Y36(t.Is),e.Y36(_.RK),e.Y36(z),e.Y36(_.yB))},Z.\u0275dir=e.lG2({type:Z,features:[e.qOj]});class Q extends Z{constructor(){super(...arguments),this.inputs=I}}Q.\u0275fac=function(){let dt;return function(J){return(dt||(dt=e.n5z(Q)))(J||Q)}}(),Q.\u0275dir=e.lG2({type:Q,selectors:[["","fxLayoutGap",""],["","fxLayoutGap.xs",""],["","fxLayoutGap.sm",""],["","fxLayoutGap.md",""],["","fxLayoutGap.lg",""],["","fxLayoutGap.xl",""],["","fxLayoutGap.lt-sm",""],["","fxLayoutGap.lt-md",""],["","fxLayoutGap.lt-lg",""],["","fxLayoutGap.lt-xl",""],["","fxLayoutGap.gt-xs",""],["","fxLayoutGap.gt-sm",""],["","fxLayoutGap.gt-md",""],["","fxLayoutGap.gt-lg",""]],inputs:{fxLayoutGap:"fxLayoutGap","fxLayoutGap.xs":"fxLayoutGap.xs","fxLayoutGap.sm":"fxLayoutGap.sm","fxLayoutGap.md":"fxLayoutGap.md","fxLayoutGap.lg":"fxLayoutGap.lg","fxLayoutGap.xl":"fxLayoutGap.xl","fxLayoutGap.lt-sm":"fxLayoutGap.lt-sm","fxLayoutGap.lt-md":"fxLayoutGap.lt-md","fxLayoutGap.lt-lg":"fxLayoutGap.lt-lg","fxLayoutGap.lt-xl":"fxLayoutGap.lt-xl","fxLayoutGap.gt-xs":"fxLayoutGap.gt-xs","fxLayoutGap.gt-sm":"fxLayoutGap.gt-sm","fxLayoutGap.gt-md":"fxLayoutGap.gt-md","fxLayoutGap.gt-lg":"fxLayoutGap.gt-lg"},features:[e.qOj]});const ie=new Map,ae=new Map,_e=new Map,ce=new Map,ye=" grid";function he(dt,se){switch(se){case"column":return"margin-bottom";case"column-reverse":return"margin-top";case"row":default:return"rtl"===dt?"margin-left":"margin-right";case"row-reverse":return"rtl"===dt?"margin-right":"margin-left"}}class n extends _.QI{constructor(se){super(),this.layoutConfig=se}buildStyles(se,J){let[oe,De,...Ye]=se.split(" "),Dt=Ye.join(" ");const ut=J.direction.indexOf("column")>-1?"column":"row",ze=(0,E.tj)(ut)?"max-width":"max-height",Me=(0,E.tj)(ut)?"min-width":"min-height",Ce=String(Dt).indexOf("calc")>-1,Je=Ce||"auto"===Dt,zt=String(Dt).indexOf("%")>-1&&!Ce,At=String(Dt).indexOf("px")>-1||String(Dt).indexOf("rem")>-1||String(Dt).indexOf("em")>-1||String(Dt).indexOf("vw")>-1||String(Dt).indexOf("vh")>-1;let Tt=Ce||At;oe="0"==oe?0:oe,De="0"==De?0:De;const Ht=!oe&&!De;let He={};const $e={"max-width":null,"max-height":null,"min-width":null,"min-height":null};switch(Dt||""){case"":const $t=!1!==this.layoutConfig.useColumnBasisZero;Dt="row"===ut?"0%":$t?"0.000000001px":"auto";break;case"initial":case"nogrow":oe=0,Dt="auto";break;case"grow":Dt="100%";break;case"noshrink":De=0,Dt="auto";break;case"auto":break;case"none":oe=0,De=0,Dt="auto";break;default:!Tt&&!zt&&!isNaN(Dt)&&(Dt+="%"),"0%"===Dt&&(Tt=!0),"0px"===Dt&&(Dt="0%"),He=Ce?(0,E.kt)($e,{"flex-grow":oe,"flex-shrink":De,"flex-basis":Tt?Dt:"100%"}):(0,E.kt)($e,{flex:`${oe} ${De} ${Tt?Dt:"100%"}`})}return He.flex||He["flex-grow"]||(He=Ce?(0,E.kt)($e,{"flex-grow":oe,"flex-shrink":De,"flex-basis":Dt}):(0,E.kt)($e,{flex:`${oe} ${De} ${Dt}`})),"0%"!==Dt&&"0px"!==Dt&&"0.000000001px"!==Dt&&"auto"!==Dt&&(He[Me]=Ht||Tt&&oe?Dt:null,He[ze]=Ht||!Je&&De?Dt:null),He[Me]||He[ze]?J.hasWrap&&(He[Ce?"flex-basis":"flex"]=He[ze]?Ce?He[ze]:`${oe} ${De} ${He[ze]}`:Ce?He[Me]:`${oe} ${De} ${He[Me]}`):He=Ce?(0,E.kt)($e,{"flex-grow":oe,"flex-shrink":De,"flex-basis":Dt}):(0,E.kt)($e,{flex:`${oe} ${De} ${Dt}`}),(0,E.kt)(He,{"box-sizing":"border-box"})}}n.\u0275fac=function(se){return new(se||n)(e.LFG(_.WU))},n.\u0275prov=e.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"});const o=["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"];class d extends _.iR{constructor(se,J,oe,De,Ye){super(se,De,J,Ye),this.layoutConfig=oe,this.marshal=Ye,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(se){this.flexShrink=se||"1",this.triggerReflow()}get grow(){return this.flexGrow}set grow(se){this.flexGrow=se||"1",this.triggerReflow()}ngOnInit(){this.parentElement&&(this.marshal.trackValue(this.parentElement,"layout").pipe((0,D.R)(this.destroySubject)).subscribe(this.onLayoutChange.bind(this)),this.marshal.trackValue(this.nativeElement,"layout-align").pipe((0,D.R)(this.destroySubject)).subscribe(this.triggerReflow.bind(this)))}onLayoutChange(se){const oe=se.value.split(" ");this.direction=oe[0],this.wrap=void 0!==oe[1]&&"wrap"===oe[1],this.triggerUpdate()}updateWithValue(se){const J=!1!==this.layoutConfig.addFlexToParent;void 0===this.direction&&(this.direction=this.getFlexFlowDirection(this.parentElement,J)),void 0===this.wrap&&(this.wrap=this.hasWrap(this.parentElement));const oe=this.direction,De=oe.startsWith("row"),Ye=this.wrap;De&&Ye?this.styleCache=v:De&&!Ye?this.styleCache=L:!De&&Ye?this.styleCache=a:!De&&!Ye&&(this.styleCache=B);const Dt=String(se).replace(";",""),ut=(0,_.Ot)(Dt,this.flexGrow,this.flexShrink);this.addStyles(ut.join(" "),{direction:oe,hasWrap:Ye})}triggerReflow(){const se=this.activatedValue;if(void 0!==se){const J=(0,_.Ot)(se+"",this.flexGrow,this.flexShrink);this.marshal.updateElement(this.nativeElement,this.DIRECTIVE_KEY,J.join(" "))}}}d.\u0275fac=function(se){return new(se||d)(e.Y36(e.SBq),e.Y36(_.RK),e.Y36(_.WU),e.Y36(n),e.Y36(_.yB))},d.\u0275dir=e.lG2({type:d,inputs:{shrink:["fxShrink","shrink"],grow:["fxGrow","grow"]},features:[e.qOj]});class y extends d{constructor(){super(...arguments),this.inputs=o}}y.\u0275fac=function(){let dt;return function(J){return(dt||(dt=e.n5z(y)))(J||y)}}(),y.\u0275dir=e.lG2({type:y,selectors:[["","fxFlex",""],["","fxFlex.xs",""],["","fxFlex.sm",""],["","fxFlex.md",""],["","fxFlex.lg",""],["","fxFlex.xl",""],["","fxFlex.lt-sm",""],["","fxFlex.lt-md",""],["","fxFlex.lt-lg",""],["","fxFlex.lt-xl",""],["","fxFlex.gt-xs",""],["","fxFlex.gt-sm",""],["","fxFlex.gt-md",""],["","fxFlex.gt-lg",""]],inputs:{fxFlex:"fxFlex","fxFlex.xs":"fxFlex.xs","fxFlex.sm":"fxFlex.sm","fxFlex.md":"fxFlex.md","fxFlex.lg":"fxFlex.lg","fxFlex.xl":"fxFlex.xl","fxFlex.lt-sm":"fxFlex.lt-sm","fxFlex.lt-md":"fxFlex.lt-md","fxFlex.lt-lg":"fxFlex.lt-lg","fxFlex.lt-xl":"fxFlex.lt-xl","fxFlex.gt-xs":"fxFlex.gt-xs","fxFlex.gt-sm":"fxFlex.gt-sm","fxFlex.gt-md":"fxFlex.gt-md","fxFlex.gt-lg":"fxFlex.gt-lg"},features:[e.qOj]});const L=new Map,B=new Map,v=new Map,a=new Map;class C extends _.QI{buildStyles(se){return{order:se&&parseInt(se,10)||""}}}C.\u0275fac=function(){let dt;return function(J){return(dt||(dt=e.n5z(C)))(J||C)}}(),C.\u0275prov=e.Yz7({token:C,factory:C.\u0275fac,providedIn:"root"});const N=["fxFlexOrder","fxFlexOrder.xs","fxFlexOrder.sm","fxFlexOrder.md","fxFlexOrder.lg","fxFlexOrder.xl","fxFlexOrder.lt-sm","fxFlexOrder.lt-md","fxFlexOrder.lt-lg","fxFlexOrder.lt-xl","fxFlexOrder.gt-xs","fxFlexOrder.gt-sm","fxFlexOrder.gt-md","fxFlexOrder.gt-lg"];class X extends _.iR{constructor(se,J,oe,De){super(se,oe,J,De),this.DIRECTIVE_KEY="flex-order",this.styleCache=Fe,this.init()}}X.\u0275fac=function(se){return new(se||X)(e.Y36(e.SBq),e.Y36(_.RK),e.Y36(C),e.Y36(_.yB))},X.\u0275dir=e.lG2({type:X,features:[e.qOj]});const Fe=new Map;class ke extends X{constructor(){super(...arguments),this.inputs=N}}ke.\u0275fac=function(){let dt;return function(J){return(dt||(dt=e.n5z(ke)))(J||ke)}}(),ke.\u0275dir=e.lG2({type:ke,selectors:[["","fxFlexOrder",""],["","fxFlexOrder.xs",""],["","fxFlexOrder.sm",""],["","fxFlexOrder.md",""],["","fxFlexOrder.lg",""],["","fxFlexOrder.xl",""],["","fxFlexOrder.lt-sm",""],["","fxFlexOrder.lt-md",""],["","fxFlexOrder.lt-lg",""],["","fxFlexOrder.lt-xl",""],["","fxFlexOrder.gt-xs",""],["","fxFlexOrder.gt-sm",""],["","fxFlexOrder.gt-md",""],["","fxFlexOrder.gt-lg",""]],inputs:{fxFlexOrder:"fxFlexOrder","fxFlexOrder.xs":"fxFlexOrder.xs","fxFlexOrder.sm":"fxFlexOrder.sm","fxFlexOrder.md":"fxFlexOrder.md","fxFlexOrder.lg":"fxFlexOrder.lg","fxFlexOrder.xl":"fxFlexOrder.xl","fxFlexOrder.lt-sm":"fxFlexOrder.lt-sm","fxFlexOrder.lt-md":"fxFlexOrder.lt-md","fxFlexOrder.lt-lg":"fxFlexOrder.lt-lg","fxFlexOrder.lt-xl":"fxFlexOrder.lt-xl","fxFlexOrder.gt-xs":"fxFlexOrder.gt-xs","fxFlexOrder.gt-sm":"fxFlexOrder.gt-sm","fxFlexOrder.gt-md":"fxFlexOrder.gt-md","fxFlexOrder.gt-lg":"fxFlexOrder.gt-lg"},features:[e.qOj]});class Ke extends _.QI{constructor(se){super(),this._config=se}buildStyles(se,J){se||(se="0"),se=(0,_.FL)(se,this._config.multiplier);const oe=String(se).indexOf("%")>-1;!(String(se).indexOf("px")>-1)&&!oe&&!isNaN(+se)&&(se=`${se}%`);const Ye=J.isRtl?"margin-right":"margin-left";return(0,E.tj)(J.layout)?{[Ye]:se}:{"margin-top":se}}}Ke.\u0275fac=function(se){return new(se||Ke)(e.LFG(_.WU))},Ke.\u0275prov=e.Yz7({token:Ke,factory:Ke.\u0275fac,providedIn:"root"});const je=["fxFlexOffset","fxFlexOffset.xs","fxFlexOffset.sm","fxFlexOffset.md","fxFlexOffset.lg","fxFlexOffset.xl","fxFlexOffset.lt-sm","fxFlexOffset.lt-md","fxFlexOffset.lt-lg","fxFlexOffset.lt-xl","fxFlexOffset.gt-xs","fxFlexOffset.gt-sm","fxFlexOffset.gt-md","fxFlexOffset.gt-lg"];class xe extends _.iR{constructor(se,J,oe,De,Ye){super(se,oe,Ye,De),this.directionality=J,this.DIRECTIVE_KEY="flex-offset",this.init([this.directionality.change]),this.parentElement&&this.marshal.trackValue(this.parentElement,"layout-gap").pipe((0,D.R)(this.destroySubject)).subscribe(this.triggerUpdate.bind(this))}updateWithValue(se=""){const J=this.getFlexFlowDirection(this.parentElement,!0),oe="rtl"===this.directionality.value;"row"===J&&oe?this.styleCache=Ie:"row"!==J||oe?"column"===J&&oe?this.styleCache=ve:"column"===J&&!oe&&(this.styleCache=ht):this.styleCache=et,this.addStyles(se+"",{layout:J,isRtl:oe})}}xe.\u0275fac=function(se){return new(se||xe)(e.Y36(e.SBq),e.Y36(t.Is),e.Y36(Ke),e.Y36(_.yB),e.Y36(_.RK))},xe.\u0275dir=e.lG2({type:xe,features:[e.qOj]});class Ze extends xe{constructor(){super(...arguments),this.inputs=je}}Ze.\u0275fac=function(){let dt;return function(J){return(dt||(dt=e.n5z(Ze)))(J||Ze)}}(),Ze.\u0275dir=e.lG2({type:Ze,selectors:[["","fxFlexOffset",""],["","fxFlexOffset.xs",""],["","fxFlexOffset.sm",""],["","fxFlexOffset.md",""],["","fxFlexOffset.lg",""],["","fxFlexOffset.xl",""],["","fxFlexOffset.lt-sm",""],["","fxFlexOffset.lt-md",""],["","fxFlexOffset.lt-lg",""],["","fxFlexOffset.lt-xl",""],["","fxFlexOffset.gt-xs",""],["","fxFlexOffset.gt-sm",""],["","fxFlexOffset.gt-md",""],["","fxFlexOffset.gt-lg",""]],inputs:{fxFlexOffset:"fxFlexOffset","fxFlexOffset.xs":"fxFlexOffset.xs","fxFlexOffset.sm":"fxFlexOffset.sm","fxFlexOffset.md":"fxFlexOffset.md","fxFlexOffset.lg":"fxFlexOffset.lg","fxFlexOffset.xl":"fxFlexOffset.xl","fxFlexOffset.lt-sm":"fxFlexOffset.lt-sm","fxFlexOffset.lt-md":"fxFlexOffset.lt-md","fxFlexOffset.lt-lg":"fxFlexOffset.lt-lg","fxFlexOffset.lt-xl":"fxFlexOffset.lt-xl","fxFlexOffset.gt-xs":"fxFlexOffset.gt-xs","fxFlexOffset.gt-sm":"fxFlexOffset.gt-sm","fxFlexOffset.gt-md":"fxFlexOffset.gt-md","fxFlexOffset.gt-lg":"fxFlexOffset.gt-lg"},features:[e.qOj]});const Ie=new Map,ve=new Map,et=new Map,ht=new Map;class Le extends _.QI{buildStyles(se){const J={};switch(se=se||"stretch"){case"start":J["align-self"]="flex-start";break;case"end":J["align-self"]="flex-end";break;default:J["align-self"]=se}return J}}Le.\u0275fac=function(){let dt;return function(J){return(dt||(dt=e.n5z(Le)))(J||Le)}}(),Le.\u0275prov=e.Yz7({token:Le,factory:Le.\u0275fac,providedIn:"root"});const Ae=["fxFlexAlign","fxFlexAlign.xs","fxFlexAlign.sm","fxFlexAlign.md","fxFlexAlign.lg","fxFlexAlign.xl","fxFlexAlign.lt-sm","fxFlexAlign.lt-md","fxFlexAlign.lt-lg","fxFlexAlign.lt-xl","fxFlexAlign.gt-xs","fxFlexAlign.gt-sm","fxFlexAlign.gt-md","fxFlexAlign.gt-lg"];class pe extends _.iR{constructor(se,J,oe,De){super(se,oe,J,De),this.DIRECTIVE_KEY="flex-align",this.styleCache=ee,this.init()}}pe.\u0275fac=function(se){return new(se||pe)(e.Y36(e.SBq),e.Y36(_.RK),e.Y36(Le),e.Y36(_.yB))},pe.\u0275dir=e.lG2({type:pe,features:[e.qOj]});const ee=new Map;class H extends pe{constructor(){super(...arguments),this.inputs=Ae}}H.\u0275fac=function(){let dt;return function(J){return(dt||(dt=e.n5z(H)))(J||H)}}(),H.\u0275dir=e.lG2({type:H,selectors:[["","fxFlexAlign",""],["","fxFlexAlign.xs",""],["","fxFlexAlign.sm",""],["","fxFlexAlign.md",""],["","fxFlexAlign.lg",""],["","fxFlexAlign.xl",""],["","fxFlexAlign.lt-sm",""],["","fxFlexAlign.lt-md",""],["","fxFlexAlign.lt-lg",""],["","fxFlexAlign.lt-xl",""],["","fxFlexAlign.gt-xs",""],["","fxFlexAlign.gt-sm",""],["","fxFlexAlign.gt-md",""],["","fxFlexAlign.gt-lg",""]],inputs:{fxFlexAlign:"fxFlexAlign","fxFlexAlign.xs":"fxFlexAlign.xs","fxFlexAlign.sm":"fxFlexAlign.sm","fxFlexAlign.md":"fxFlexAlign.md","fxFlexAlign.lg":"fxFlexAlign.lg","fxFlexAlign.xl":"fxFlexAlign.xl","fxFlexAlign.lt-sm":"fxFlexAlign.lt-sm","fxFlexAlign.lt-md":"fxFlexAlign.lt-md","fxFlexAlign.lt-lg":"fxFlexAlign.lt-lg","fxFlexAlign.lt-xl":"fxFlexAlign.lt-xl","fxFlexAlign.gt-xs":"fxFlexAlign.gt-xs","fxFlexAlign.gt-sm":"fxFlexAlign.gt-sm","fxFlexAlign.gt-md":"fxFlexAlign.gt-md","fxFlexAlign.gt-lg":"fxFlexAlign.gt-lg"},features:[e.qOj]});const j={margin:0,width:"100%",height:"100%","min-width":"100%","min-height":"100%"};class Oe extends _.QI{buildStyles(se){return j}}Oe.\u0275fac=function(){let dt;return function(J){return(dt||(dt=e.n5z(Oe)))(J||Oe)}}(),Oe.\u0275prov=e.Yz7({token:Oe,factory:Oe.\u0275fac,providedIn:"root"});class Re extends _.iR{constructor(se,J,oe,De){super(se,oe,J,De),this.styleCache=le,this.addStyles("")}}Re.\u0275fac=function(se){return new(se||Re)(e.Y36(e.SBq),e.Y36(_.RK),e.Y36(Oe),e.Y36(_.yB))},Re.\u0275dir=e.lG2({type:Re,selectors:[["","fxFill",""],["","fxFlexFill",""]],features:[e.qOj]});const le=new Map;class _t extends _.QI{buildStyles(se,J){const oe={},[De,Ye]=se.split(" ");switch(De){case"center":oe["justify-content"]="center";break;case"space-around":oe["justify-content"]="space-around";break;case"space-between":oe["justify-content"]="space-between";break;case"space-evenly":oe["justify-content"]="space-evenly";break;case"end":case"flex-end":oe["justify-content"]="flex-end";break;default:oe["justify-content"]="flex-start"}switch(Ye){case"start":case"flex-start":oe["align-items"]=oe["align-content"]="flex-start";break;case"center":oe["align-items"]=oe["align-content"]="center";break;case"end":case"flex-end":oe["align-items"]=oe["align-content"]="flex-end";break;case"space-between":oe["align-content"]="space-between",oe["align-items"]="stretch";break;case"space-around":oe["align-content"]="space-around",oe["align-items"]="stretch";break;case"baseline":oe["align-content"]="stretch",oe["align-items"]="baseline";break;default:oe["align-items"]=oe["align-content"]="stretch"}return(0,E.kt)(oe,{display:J.inline?"inline-flex":"flex","flex-direction":J.layout,"box-sizing":"border-box","max-width":"stretch"===Ye?(0,E.tj)(J.layout)?null:"100%":null,"max-height":"stretch"===Ye&&(0,E.tj)(J.layout)?"100%":null})}}_t.\u0275fac=function(){let dt;return function(J){return(dt||(dt=e.n5z(_t)))(J||_t)}}(),_t.\u0275prov=e.Yz7({token:_t,factory:_t.\u0275fac,providedIn:"root"});const it=["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"];class un extends _.iR{constructor(se,J,oe,De){super(se,oe,J,De),this.DIRECTIVE_KEY="layout-align",this.layout="row",this.inline=!1,this.init(),this.marshal.trackValue(this.nativeElement,"layout").pipe((0,D.R)(this.destroySubject)).subscribe(this.onLayoutChange.bind(this))}updateWithValue(se){const J=this.layout||"row",oe=this.inline;"row"===J&&oe?this.styleCache=In:"row"!==J||oe?"row-reverse"===J&&oe?this.styleCache=tn:"row-reverse"!==J||oe?"column"===J&&oe?this.styleCache=rn:"column"!==J||oe?"column-reverse"===J&&oe?this.styleCache=pn:"column-reverse"===J&&!oe&&(this.styleCache=Gt):this.styleCache=yn:this.styleCache=Xt:this.styleCache=Ut,this.addStyles(se,{layout:J,inline:oe})}onLayoutChange(se){const J=se.value.split(" ");this.layout=J[0],this.inline=se.value.includes("inline"),E.iQ.find(oe=>oe===this.layout)||(this.layout="row"),this.triggerUpdate()}}un.\u0275fac=function(se){return new(se||un)(e.Y36(e.SBq),e.Y36(_.RK),e.Y36(_t),e.Y36(_.yB))},un.\u0275dir=e.lG2({type:un,features:[e.qOj]});class Bt extends un{constructor(){super(...arguments),this.inputs=it}}Bt.\u0275fac=function(){let dt;return function(J){return(dt||(dt=e.n5z(Bt)))(J||Bt)}}(),Bt.\u0275dir=e.lG2({type:Bt,selectors:[["","fxLayoutAlign",""],["","fxLayoutAlign.xs",""],["","fxLayoutAlign.sm",""],["","fxLayoutAlign.md",""],["","fxLayoutAlign.lg",""],["","fxLayoutAlign.xl",""],["","fxLayoutAlign.lt-sm",""],["","fxLayoutAlign.lt-md",""],["","fxLayoutAlign.lt-lg",""],["","fxLayoutAlign.lt-xl",""],["","fxLayoutAlign.gt-xs",""],["","fxLayoutAlign.gt-sm",""],["","fxLayoutAlign.gt-md",""],["","fxLayoutAlign.gt-lg",""]],inputs:{fxLayoutAlign:"fxLayoutAlign","fxLayoutAlign.xs":"fxLayoutAlign.xs","fxLayoutAlign.sm":"fxLayoutAlign.sm","fxLayoutAlign.md":"fxLayoutAlign.md","fxLayoutAlign.lg":"fxLayoutAlign.lg","fxLayoutAlign.xl":"fxLayoutAlign.xl","fxLayoutAlign.lt-sm":"fxLayoutAlign.lt-sm","fxLayoutAlign.lt-md":"fxLayoutAlign.lt-md","fxLayoutAlign.lt-lg":"fxLayoutAlign.lt-lg","fxLayoutAlign.lt-xl":"fxLayoutAlign.lt-xl","fxLayoutAlign.gt-xs":"fxLayoutAlign.gt-xs","fxLayoutAlign.gt-sm":"fxLayoutAlign.gt-sm","fxLayoutAlign.gt-md":"fxLayoutAlign.gt-md","fxLayoutAlign.gt-lg":"fxLayoutAlign.gt-lg"},features:[e.qOj]});const Ut=new Map,yn=new Map,Xt=new Map,Gt=new Map,In=new Map,rn=new Map,tn=new Map,pn=new Map;class vt{}vt.\u0275fac=function(se){return new(se||vt)},vt.\u0275mod=e.oAB({type:vt}),vt.\u0275inj=e.cJS({imports:[_.IR,t.vT]})},2508:(Ue,q,m)=>{"use strict";m.d(q,{Cf:()=>Q,F:()=>en,Fd:()=>Oa,Fj:()=>z,JJ:()=>te,JL:()=>pe,JU:()=>k,On:()=>Nn,Q7:()=>yr,QS:()=>ar,UX:()=>la,Zs:()=>sa,_Y:()=>li,a5:()=>et,gN:()=>ve,kI:()=>_e,oH:()=>Sa,p4:()=>ha,qQ:()=>Ja,sg:()=>Ki,u:()=>Qi,u5:()=>oa,wV:()=>Ii});var e=m(2560),t=m(4666),_=m(7400),E=m(1640),s=m(635);class D{constructor(be,ct){this._renderer=be,this._elementRef=ct,this.onChange=Yt=>{},this.onTouched=()=>{}}setProperty(be,ct){this._renderer.setProperty(this._elementRef.nativeElement,be,ct)}registerOnTouched(be){this.onTouched=be}registerOnChange(be){this.onChange=be}setDisabledState(be){this.setProperty("disabled",be)}}D.\u0275fac=function(be){return new(be||D)(e.Y36(e.Qsj),e.Y36(e.SBq))},D.\u0275dir=e.lG2({type:D});class u extends D{}u.\u0275fac=function(){let bt;return function(ct){return(bt||(bt=e.n5z(u)))(ct||u)}}(),u.\u0275dir=e.lG2({type:u,features:[e.qOj]});const k=new e.OlP("NgValueAccessor"),p={provide:k,useExisting:(0,e.Gpc)(()=>S),multi:!0};class S extends u{writeValue(be){this.setProperty("checked",be)}}S.\u0275fac=function(){let bt;return function(ct){return(bt||(bt=e.n5z(S)))(ct||S)}}(),S.\u0275dir=e.lG2({type:S,selectors:[["input","type","checkbox","formControlName",""],["input","type","checkbox","formControl",""],["input","type","checkbox","ngModel",""]],hostBindings:function(be,ct){1&be&&e.NdJ("change",function(Pn){return ct.onChange(Pn.target.checked)})("blur",function(){return ct.onTouched()})},features:[e._Bn([p]),e.qOj]});const A={provide:k,useExisting:(0,e.Gpc)(()=>z),multi:!0};const M=new e.OlP("CompositionEventMode");class z extends D{constructor(be,ct,Yt){super(be,ct),this._compositionMode=Yt,this._composing=!1,null==this._compositionMode&&(this._compositionMode=!function P(){const bt=(0,t.q)()?(0,t.q)().getUserAgent():"";return/android (\d+)/.test(bt.toLowerCase())}())}writeValue(be){const ct=be??"";this.setProperty("value",ct)}_handleInput(be){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(be)}_compositionStart(){this._composing=!0}_compositionEnd(be){this._composing=!1,this._compositionMode&&this.onChange(be)}}z.\u0275fac=function(be){return new(be||z)(e.Y36(e.Qsj),e.Y36(e.SBq),e.Y36(M,8))},z.\u0275dir=e.lG2({type:z,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(be,ct){1&be&&e.NdJ("input",function(Pn){return ct._handleInput(Pn.target.value)})("blur",function(){return ct.onTouched()})("compositionstart",function(){return ct._compositionStart()})("compositionend",function(Pn){return ct._compositionEnd(Pn.target.value)})},features:[e._Bn([A]),e.qOj]});function W(bt){return null==bt||("string"==typeof bt||Array.isArray(bt))&&0===bt.length}function Z(bt){return null!=bt&&"number"==typeof bt.length}const Q=new e.OlP("NgValidators"),ie=new e.OlP("NgAsyncValidators"),ae=/^(?=.{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 _e{static min(be){return ce(be)}static max(be){return ye(be)}static required(be){return ue(be)}static requiredTrue(be){return $(be)}static email(be){return he(be)}static minLength(be){return w(be)}static maxLength(be){return n(be)}static pattern(be){return o(be)}static nullValidator(be){return null}static compose(be){return C(be)}static composeAsync(be){return F(be)}}function ce(bt){return be=>{if(W(be.value)||W(bt))return null;const ct=parseFloat(be.value);return!isNaN(ct)&&ct<bt?{min:{min:bt,actual:be.value}}:null}}function ye(bt){return be=>{if(W(be.value)||W(bt))return null;const ct=parseFloat(be.value);return!isNaN(ct)&&ct>bt?{max:{max:bt,actual:be.value}}:null}}function ue(bt){return W(bt.value)?{required:!0}:null}function $(bt){return!0===bt.value?null:{required:!0}}function he(bt){return W(bt.value)||ae.test(bt.value)?null:{email:!0}}function w(bt){return be=>W(be.value)||!Z(be.value)?null:be.value.length<bt?{minlength:{requiredLength:bt,actualLength:be.value.length}}:null}function n(bt){return be=>Z(be.value)&&be.value.length>bt?{maxlength:{requiredLength:bt,actualLength:be.value.length}}:null}function o(bt){if(!bt)return h;let be,ct;return"string"==typeof bt?(ct="","^"!==bt.charAt(0)&&(ct+="^"),ct+=bt,"$"!==bt.charAt(bt.length-1)&&(ct+="$"),be=new RegExp(ct)):(ct=bt.toString(),be=bt),Yt=>{if(W(Yt.value))return null;const Pn=Yt.value;return be.test(Pn)?null:{pattern:{requiredPattern:ct,actualValue:Pn}}}}function h(bt){return null}function d(bt){return null!=bt}function y(bt){const be=(0,e.QGY)(bt)?(0,_.D)(bt):bt;return be}function L(bt){let be={};return bt.forEach(ct=>{be=null!=ct?{...be,...ct}:be}),0===Object.keys(be).length?null:be}function B(bt,be){return be.map(ct=>ct(bt))}function a(bt){return bt.map(be=>function v(bt){return!bt.validate}(be)?be:ct=>be.validate(ct))}function C(bt){if(!bt)return null;const be=bt.filter(d);return 0==be.length?null:function(ct){return L(B(ct,be))}}function N(bt){return null!=bt?C(a(bt)):null}function F(bt){if(!bt)return null;const be=bt.filter(d);return 0==be.length?null:function(ct){const Yt=B(ct,be).map(y);return(0,E.D)(Yt).pipe((0,s.U)(L))}}function X(bt){return null!=bt?F(a(bt)):null}function Fe(bt,be){return null===bt?[be]:Array.isArray(bt)?[...bt,be]:[bt,be]}function ke(bt){return bt._rawValidators}function Ke(bt){return bt._rawAsyncValidators}function je(bt){return bt?Array.isArray(bt)?bt:[bt]:[]}function Ve(bt,be){return Array.isArray(bt)?bt.includes(be):bt===be}function xe(bt,be){const ct=je(be);return je(bt).forEach(Pn=>{Ve(ct,Pn)||ct.push(Pn)}),ct}function Ze(bt,be){return je(be).filter(ct=>!Ve(bt,ct))}class Ie{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(be){this._rawValidators=be||[],this._composedValidatorFn=N(this._rawValidators)}_setAsyncValidators(be){this._rawAsyncValidators=be||[],this._composedAsyncValidatorFn=X(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_registerOnDestroy(be){this._onDestroyCallbacks.push(be)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(be=>be()),this._onDestroyCallbacks=[]}reset(be){this.control&&this.control.reset(be)}hasError(be,ct){return!!this.control&&this.control.hasError(be,ct)}getError(be,ct){return this.control?this.control.getError(be,ct):null}}class ve extends Ie{get formDirective(){return null}get path(){return null}}class et extends Ie{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null}}class ht{constructor(be){this._cd=be}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}}class te extends ht{constructor(be){super(be)}}te.\u0275fac=function(be){return new(be||te)(e.Y36(et,2))},te.\u0275dir=e.lG2({type:te,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(be,ct){2&be&&e.ekj("ng-untouched",ct.isUntouched)("ng-touched",ct.isTouched)("ng-pristine",ct.isPristine)("ng-dirty",ct.isDirty)("ng-valid",ct.isValid)("ng-invalid",ct.isInvalid)("ng-pending",ct.isPending)},features:[e.qOj]});class pe extends ht{constructor(be){super(be)}}pe.\u0275fac=function(be){return new(be||pe)(e.Y36(ve,10))},pe.\u0275dir=e.lG2({type:pe,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:16,hostBindings:function(be,ct){2&be&&e.ekj("ng-untouched",ct.isUntouched)("ng-touched",ct.isTouched)("ng-pristine",ct.isPristine)("ng-dirty",ct.isDirty)("ng-valid",ct.isValid)("ng-invalid",ct.isInvalid)("ng-pending",ct.isPending)("ng-submitted",ct.isSubmitted)},features:[e.qOj]});const pn="VALID",tt="INVALID",vt="PENDING",dt="DISABLED";function se(bt){return(Ye(bt)?bt.validators:bt)||null}function oe(bt,be){return(Ye(be)?be.asyncValidators:bt)||null}function Ye(bt){return null!=bt&&!Array.isArray(bt)&&"object"==typeof bt}function Dt(bt,be,ct){const Yt=bt.controls;if(!(be?Object.keys(Yt):Yt).length)throw new e.vHH(1e3,"");if(!Yt[ct])throw new e.vHH(1001,"")}function ut(bt,be,ct){bt._forEachChild((Yt,Pn)=>{if(void 0===ct[Pn])throw new e.vHH(1002,"")})}class ze{constructor(be,ct){this._pendingDirty=!1,this._hasOwnPendingAsyncValidator=!1,this._pendingTouched=!1,this._onCollectionChange=()=>{},this._parent=null,this.pristine=!0,this.touched=!1,this._onDisabledChange=[],this._assignValidators(be),this._assignAsyncValidators(ct)}get validator(){return this._composedValidatorFn}set validator(be){this._rawValidators=this._composedValidatorFn=be}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(be){this._rawAsyncValidators=this._composedAsyncValidatorFn=be}get parent(){return this._parent}get valid(){return this.status===pn}get invalid(){return this.status===tt}get pending(){return this.status==vt}get disabled(){return this.status===dt}get enabled(){return this.status!==dt}get dirty(){return!this.pristine}get untouched(){return!this.touched}get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(be){this._assignValidators(be)}setAsyncValidators(be){this._assignAsyncValidators(be)}addValidators(be){this.setValidators(xe(be,this._rawValidators))}addAsyncValidators(be){this.setAsyncValidators(xe(be,this._rawAsyncValidators))}removeValidators(be){this.setValidators(Ze(be,this._rawValidators))}removeAsyncValidators(be){this.setAsyncValidators(Ze(be,this._rawAsyncValidators))}hasValidator(be){return Ve(this._rawValidators,be)}hasAsyncValidator(be){return Ve(this._rawAsyncValidators,be)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(be={}){this.touched=!0,this._parent&&!be.onlySelf&&this._parent.markAsTouched(be)}markAllAsTouched(){this.markAsTouched({onlySelf:!0}),this._forEachChild(be=>be.markAllAsTouched())}markAsUntouched(be={}){this.touched=!1,this._pendingTouched=!1,this._forEachChild(ct=>{ct.markAsUntouched({onlySelf:!0})}),this._parent&&!be.onlySelf&&this._parent._updateTouched(be)}markAsDirty(be={}){this.pristine=!1,this._parent&&!be.onlySelf&&this._parent.markAsDirty(be)}markAsPristine(be={}){this.pristine=!0,this._pendingDirty=!1,this._forEachChild(ct=>{ct.markAsPristine({onlySelf:!0})}),this._parent&&!be.onlySelf&&this._parent._updatePristine(be)}markAsPending(be={}){this.status=vt,!1!==be.emitEvent&&this.statusChanges.emit(this.status),this._parent&&!be.onlySelf&&this._parent.markAsPending(be)}disable(be={}){const ct=this._parentMarkedDirty(be.onlySelf);this.status=dt,this.errors=null,this._forEachChild(Yt=>{Yt.disable({...be,onlySelf:!0})}),this._updateValue(),!1!==be.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors({...be,skipPristineCheck:ct}),this._onDisabledChange.forEach(Yt=>Yt(!0))}enable(be={}){const ct=this._parentMarkedDirty(be.onlySelf);this.status=pn,this._forEachChild(Yt=>{Yt.enable({...be,onlySelf:!0})}),this.updateValueAndValidity({onlySelf:!0,emitEvent:be.emitEvent}),this._updateAncestors({...be,skipPristineCheck:ct}),this._onDisabledChange.forEach(Yt=>Yt(!1))}_updateAncestors(be){this._parent&&!be.onlySelf&&(this._parent.updateValueAndValidity(be),be.skipPristineCheck||this._parent._updatePristine(),this._parent._updateTouched())}setParent(be){this._parent=be}getRawValue(){return this.value}updateValueAndValidity(be={}){this._setInitialStatus(),this._updateValue(),this.enabled&&(this._cancelExistingSubscription(),this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===pn||this.status===vt)&&this._runAsyncValidator(be.emitEvent)),!1!==be.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!be.onlySelf&&this._parent.updateValueAndValidity(be)}_updateTreeValidity(be={emitEvent:!0}){this._forEachChild(ct=>ct._updateTreeValidity(be)),this.updateValueAndValidity({onlySelf:!0,emitEvent:be.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?dt:pn}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(be){if(this.asyncValidator){this.status=vt,this._hasOwnPendingAsyncValidator=!0;const ct=y(this.asyncValidator(this));this._asyncValidationSubscription=ct.subscribe(Yt=>{this._hasOwnPendingAsyncValidator=!1,this.setErrors(Yt,{emitEvent:be})})}}_cancelExistingSubscription(){this._asyncValidationSubscription&&(this._asyncValidationSubscription.unsubscribe(),this._hasOwnPendingAsyncValidator=!1)}setErrors(be,ct={}){this.errors=be,this._updateControlsErrors(!1!==ct.emitEvent)}get(be){let ct=be;return null==ct||(Array.isArray(ct)||(ct=ct.split(".")),0===ct.length)?null:ct.reduce((Yt,Pn)=>Yt&&Yt._find(Pn),this)}getError(be,ct){const Yt=ct?this.get(ct):this;return Yt&&Yt.errors?Yt.errors[be]:null}hasError(be,ct){return!!this.getError(be,ct)}get root(){let be=this;for(;be._parent;)be=be._parent;return be}_updateControlsErrors(be){this.status=this._calculateStatus(),be&&this.statusChanges.emit(this.status),this._parent&&this._parent._updateControlsErrors(be)}_initObservables(){this.valueChanges=new e.vpe,this.statusChanges=new e.vpe}_calculateStatus(){return this._allControlsDisabled()?dt:this.errors?tt:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(vt)?vt:this._anyControlsHaveStatus(tt)?tt:pn}_anyControlsHaveStatus(be){return this._anyControls(ct=>ct.status===be)}_anyControlsDirty(){return this._anyControls(be=>be.dirty)}_anyControlsTouched(){return this._anyControls(be=>be.touched)}_updatePristine(be={}){this.pristine=!this._anyControlsDirty(),this._parent&&!be.onlySelf&&this._parent._updatePristine(be)}_updateTouched(be={}){this.touched=this._anyControlsTouched(),this._parent&&!be.onlySelf&&this._parent._updateTouched(be)}_registerOnCollectionChange(be){this._onCollectionChange=be}_setUpdateStrategy(be){Ye(be)&&null!=be.updateOn&&(this._updateOn=be.updateOn)}_parentMarkedDirty(be){const ct=this._parent&&this._parent.dirty;return!be&&!!ct&&!this._parent._anyControlsDirty()}_find(be){return null}_assignValidators(be){this._rawValidators=Array.isArray(be)?be.slice():be,this._composedValidatorFn=function J(bt){return Array.isArray(bt)?N(bt):bt||null}(this._rawValidators)}_assignAsyncValidators(be){this._rawAsyncValidators=Array.isArray(be)?be.slice():be,this._composedAsyncValidatorFn=function De(bt){return Array.isArray(bt)?X(bt):bt||null}(this._rawAsyncValidators)}}class Me extends ze{constructor(be,ct,Yt){super(se(ct),oe(Yt,ct)),this.controls=be,this._initObservables(),this._setUpdateStrategy(ct),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}registerControl(be,ct){return this.controls[be]?this.controls[be]:(this.controls[be]=ct,ct.setParent(this),ct._registerOnCollectionChange(this._onCollectionChange),ct)}addControl(be,ct,Yt={}){this.registerControl(be,ct),this.updateValueAndValidity({emitEvent:Yt.emitEvent}),this._onCollectionChange()}removeControl(be,ct={}){this.controls[be]&&this.controls[be]._registerOnCollectionChange(()=>{}),delete this.controls[be],this.updateValueAndValidity({emitEvent:ct.emitEvent}),this._onCollectionChange()}setControl(be,ct,Yt={}){this.controls[be]&&this.controls[be]._registerOnCollectionChange(()=>{}),delete this.controls[be],ct&&this.registerControl(be,ct),this.updateValueAndValidity({emitEvent:Yt.emitEvent}),this._onCollectionChange()}contains(be){return this.controls.hasOwnProperty(be)&&this.controls[be].enabled}setValue(be,ct={}){ut(this,0,be),Object.keys(be).forEach(Yt=>{Dt(this,!0,Yt),this.controls[Yt].setValue(be[Yt],{onlySelf:!0,emitEvent:ct.emitEvent})}),this.updateValueAndValidity(ct)}patchValue(be,ct={}){null!=be&&(Object.keys(be).forEach(Yt=>{const Pn=this.controls[Yt];Pn&&Pn.patchValue(be[Yt],{onlySelf:!0,emitEvent:ct.emitEvent})}),this.updateValueAndValidity(ct))}reset(be={},ct={}){this._forEachChild((Yt,Pn)=>{Yt.reset(be[Pn],{onlySelf:!0,emitEvent:ct.emitEvent})}),this._updatePristine(ct),this._updateTouched(ct),this.updateValueAndValidity(ct)}getRawValue(){return this._reduceChildren({},(be,ct,Yt)=>(be[Yt]=ct.getRawValue(),be))}_syncPendingControls(){let be=this._reduceChildren(!1,(ct,Yt)=>!!Yt._syncPendingControls()||ct);return be&&this.updateValueAndValidity({onlySelf:!0}),be}_forEachChild(be){Object.keys(this.controls).forEach(ct=>{const Yt=this.controls[ct];Yt&&be(Yt,ct)})}_setUpControls(){this._forEachChild(be=>{be.setParent(this),be._registerOnCollectionChange(this._onCollectionChange)})}_updateValue(){this.value=this._reduceValue()}_anyControls(be){for(const[ct,Yt]of Object.entries(this.controls))if(this.contains(ct)&&be(Yt))return!0;return!1}_reduceValue(){return this._reduceChildren({},(ct,Yt,Pn)=>((Yt.enabled||this.disabled)&&(ct[Pn]=Yt.value),ct))}_reduceChildren(be,ct){let Yt=be;return this._forEachChild((Pn,Ti)=>{Yt=ct(Yt,Pn,Ti)}),Yt}_allControlsDisabled(){for(const be of Object.keys(this.controls))if(this.controls[be].enabled)return!1;return Object.keys(this.controls).length>0||this.disabled}_find(be){return this.controls.hasOwnProperty(be)?this.controls[be]:null}}class zt extends Me{}const Tt=new e.OlP("CallSetDisabledState",{providedIn:"root",factory:()=>Ht}),Ht="always";function He(bt,be){return[...be.path,bt]}function $e(bt,be,ct=Ht){Vn(bt,be),be.valueAccessor.writeValue(bt.value),(bt.disabled||"always"===ct)&&be.valueAccessor.setDisabledState?.(bt.disabled),function Tn(bt,be){be.valueAccessor.registerOnChange(ct=>{bt._pendingValue=ct,bt._pendingChange=!0,bt._pendingDirty=!0,"change"===bt.updateOn&&Mt(bt,be)})}(bt,be),function Ge(bt,be){const ct=(Yt,Pn)=>{be.valueAccessor.writeValue(Yt),Pn&&be.viewToModelUpdate(Yt)};bt.registerOnChange(ct),be._registerOnDestroy(()=>{bt._unregisterOnChange(ct)})}(bt,be),function Yn(bt,be){be.valueAccessor.registerOnTouched(()=>{bt._pendingTouched=!0,"blur"===bt.updateOn&&bt._pendingChange&&Mt(bt,be),"submit"!==bt.updateOn&&bt.markAsTouched()})}(bt,be),function Jt(bt,be){if(be.valueAccessor.setDisabledState){const ct=Yt=>{be.valueAccessor.setDisabledState(Yt)};bt.registerOnDisabledChange(ct),be._registerOnDestroy(()=>{bt._unregisterOnDisabledChange(ct)})}}(bt,be)}function $t(bt,be,ct=!0){const Yt=()=>{};be.valueAccessor&&(be.valueAccessor.registerOnChange(Yt),be.valueAccessor.registerOnTouched(Yt)),zn(bt,be),bt&&(be._invokeOnDestroyCallbacks(),bt._registerOnCollectionChange(()=>{}))}function Rt(bt,be){bt.forEach(ct=>{ct.registerOnValidatorChange&&ct.registerOnValidatorChange(be)})}function Vn(bt,be){const ct=ke(bt);null!==be.validator?bt.setValidators(Fe(ct,be.validator)):"function"==typeof ct&&bt.setValidators([ct]);const Yt=Ke(bt);null!==be.asyncValidator?bt.setAsyncValidators(Fe(Yt,be.asyncValidator)):"function"==typeof Yt&&bt.setAsyncValidators([Yt]);const Pn=()=>bt.updateValueAndValidity();Rt(be._rawValidators,Pn),Rt(be._rawAsyncValidators,Pn)}function zn(bt,be){let ct=!1;if(null!==bt){if(null!==be.validator){const Pn=ke(bt);if(Array.isArray(Pn)&&Pn.length>0){const Ti=Pn.filter(rr=>rr!==be.validator);Ti.length!==Pn.length&&(ct=!0,bt.setValidators(Ti))}}if(null!==be.asyncValidator){const Pn=Ke(bt);if(Array.isArray(Pn)&&Pn.length>0){const Ti=Pn.filter(rr=>rr!==be.asyncValidator);Ti.length!==Pn.length&&(ct=!0,bt.setAsyncValidators(Ti))}}}const Yt=()=>{};return Rt(be._rawValidators,Yt),Rt(be._rawAsyncValidators,Yt),ct}function Mt(bt,be){bt._pendingDirty&&bt.markAsDirty(),bt.setValue(bt._pendingValue,{emitModelToViewChange:!1}),be.viewToModelUpdate(bt._pendingValue),bt._pendingChange=!1}function Be(bt,be){Vn(bt,be)}function Bn(bt,be){if(!bt.hasOwnProperty("model"))return!1;const ct=bt.model;return!!ct.isFirstChange()||!Object.is(be,ct.currentValue)}function ti(bt,be){bt._syncPendingControls(),be.forEach(ct=>{const Yt=ct.control;"submit"===Yt.updateOn&&Yt._pendingChange&&(ct.viewToModelUpdate(Yt._pendingValue),Yt._pendingChange=!1)})}function Mn(bt,be){if(!be)return null;let ct,Yt,Pn;return Array.isArray(be),be.forEach(Ti=>{Ti.constructor===z?ct=Ti:function Wn(bt){return Object.getPrototypeOf(bt.constructor)===u}(Ti)?Yt=Ti:Pn=Ti}),Pn||Yt||ct||null}const an={provide:ve,useExisting:(0,e.Gpc)(()=>en)},hn=Promise.resolve();class en extends ve{constructor(be,ct,Yt){super(),this.callSetDisabledState=Yt,this.submitted=!1,this._directives=new Set,this.ngSubmit=new e.vpe,this.form=new Me({},N(be),X(ct))}ngAfterViewInit(){this._setUpdateStrategy()}get formDirective(){return this}get control(){return this.form}get path(){return[]}get controls(){return this.form.controls}addControl(be){hn.then(()=>{const ct=this._findContainer(be.path);be.control=ct.registerControl(be.name,be.control),$e(be.control,be,this.callSetDisabledState),be.control.updateValueAndValidity({emitEvent:!1}),this._directives.add(be)})}getControl(be){return this.form.get(be.path)}removeControl(be){hn.then(()=>{const ct=this._findContainer(be.path);ct&&ct.removeControl(be.name),this._directives.delete(be)})}addFormGroup(be){hn.then(()=>{const ct=this._findContainer(be.path),Yt=new Me({});Be(Yt,be),ct.registerControl(be.name,Yt),Yt.updateValueAndValidity({emitEvent:!1})})}removeFormGroup(be){hn.then(()=>{const ct=this._findContainer(be.path);ct&&ct.removeControl(be.name)})}getFormGroup(be){return this.form.get(be.path)}updateModel(be,ct){hn.then(()=>{this.form.get(be.path).setValue(ct)})}setValue(be){this.control.setValue(be)}onSubmit(be){return this.submitted=!0,ti(this.form,this._directives),this.ngSubmit.emit(be),"dialog"===be?.target?.method}onReset(){this.resetForm()}resetForm(be){this.form.reset(be),this.submitted=!1}_setUpdateStrategy(){this.options&&null!=this.options.updateOn&&(this.form._updateOn=this.options.updateOn)}_findContainer(be){return be.pop(),be.length?this.form.get(be):this.form}}function gn(bt,be){const ct=bt.indexOf(be);ct>-1&&bt.splice(ct,1)}function Qn(bt){return"object"==typeof bt&&null!==bt&&2===Object.keys(bt).length&&"value"in bt&&"disabled"in bt}en.\u0275fac=function(be){return new(be||en)(e.Y36(Q,10),e.Y36(ie,10),e.Y36(Tt,8))},en.\u0275dir=e.lG2({type:en,selectors:[["form",3,"ngNoForm","",3,"formGroup",""],["ng-form"],["","ngForm",""]],hostBindings:function(be,ct){1&be&&e.NdJ("submit",function(Pn){return ct.onSubmit(Pn)})("reset",function(){return ct.onReset()})},inputs:{options:["ngFormOptions","options"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[e._Bn([an]),e.qOj]});const Ei=class extends ze{constructor(be=null,ct,Yt){super(se(ct),oe(Yt,ct)),this.defaultValue=null,this._onChange=[],this._pendingChange=!1,this._applyFormState(be),this._setUpdateStrategy(ct),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator}),Ye(ct)&&(ct.nonNullable||ct.initialValueIsDefault)&&(Qn(be)?this.defaultValue=be.value:this.defaultValue=be)}setValue(be,ct={}){this.value=this._pendingValue=be,this._onChange.length&&!1!==ct.emitModelToViewChange&&this._onChange.forEach(Yt=>Yt(this.value,!1!==ct.emitViewToModelChange)),this.updateValueAndValidity(ct)}patchValue(be,ct={}){this.setValue(be,ct)}reset(be=this.defaultValue,ct={}){this._applyFormState(be),this.markAsPristine(ct),this.markAsUntouched(ct),this.setValue(this.value,ct),this._pendingChange=!1}_updateValue(){}_anyControls(be){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(be){this._onChange.push(be)}_unregisterOnChange(be){gn(this._onChange,be)}registerOnDisabledChange(be){this._onDisabledChange.push(be)}_unregisterOnDisabledChange(be){gn(this._onDisabledChange,be)}_forEachChild(be){}_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(be){Qn(be)?(this.value=this._pendingValue=be.value,be.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=be}},ha=Ei;class qi extends ve{ngOnInit(){this._checkParentType(),this.formDirective.addFormGroup(this)}ngOnDestroy(){this.formDirective&&this.formDirective.removeFormGroup(this)}get control(){return this.formDirective.getFormGroup(this)}get path(){return He(null==this.name?this.name:this.name.toString(),this._parent)}get formDirective(){return this._parent?this._parent.formDirective:null}_checkParentType(){}}qi.\u0275fac=function(){let bt;return function(ct){return(bt||(bt=e.n5z(qi)))(ct||qi)}}(),qi.\u0275dir=e.lG2({type:qi,features:[e.qOj]});const Ft={provide:ve,useExisting:(0,e.Gpc)(()=>ln)};class ln extends qi{constructor(be,ct,Yt){super(),this._parent=be,this._setValidators(ct),this._setAsyncValidators(Yt)}_checkParentType(){!(this._parent instanceof ln)&&this._parent}}ln.\u0275fac=function(be){return new(be||ln)(e.Y36(ve,5),e.Y36(Q,10),e.Y36(ie,10))},ln.\u0275dir=e.lG2({type:ln,selectors:[["","ngModelGroup",""]],inputs:{name:["ngModelGroup","name"]},exportAs:["ngModelGroup"],features:[e._Bn([Ft]),e.qOj]});const En={provide:et,useExisting:(0,e.Gpc)(()=>Nn)},qn=Promise.resolve();class Nn extends et{constructor(be,ct,Yt,Pn,Ti,rr){super(),this._changeDetectorRef=Ti,this.callSetDisabledState=rr,this.control=new Ei,this._registered=!1,this.update=new e.vpe,this._parent=be,this._setValidators(ct),this._setAsyncValidators(Yt),this.valueAccessor=Mn(0,Pn)}ngOnChanges(be){if(this._checkForErrors(),!this._registered||"name"in be){if(this._registered&&(this._checkName(),this.formDirective)){const ct=be.name.previousValue;this.formDirective.removeControl({name:ct,path:this._getPath(ct)})}this._setUpControl()}"isDisabled"in be&&this._updateDisabled(be),Bn(be,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(be){this.viewModel=be,this.update.emit(be)}_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(){$e(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()&&this.name}_updateValue(be){qn.then(()=>{this.control.setValue(be,{emitViewToModelChange:!1}),this._changeDetectorRef?.markForCheck()})}_updateDisabled(be){const ct=be.isDisabled.currentValue,Yt=0!==ct&&(0,e.D6c)(ct);qn.then(()=>{Yt&&!this.control.disabled?this.control.disable():!Yt&&this.control.disabled&&this.control.enable(),this._changeDetectorRef?.markForCheck()})}_getPath(be){return this._parent?He(be,this._parent):[be]}}Nn.\u0275fac=function(be){return new(be||Nn)(e.Y36(ve,9),e.Y36(Q,10),e.Y36(ie,10),e.Y36(k,10),e.Y36(e.sBO,8),e.Y36(Tt,8))},Nn.\u0275dir=e.lG2({type:Nn,selectors:[["","ngModel","",3,"formControlName","",3,"formControl",""]],inputs:{name:"name",isDisabled:["disabled","isDisabled"],model:["ngModel","model"],options:["ngModelOptions","options"]},outputs:{update:"ngModelChange"},exportAs:["ngModel"],features:[e._Bn([En]),e.qOj,e.TTD]});class li{}li.\u0275fac=function(be){return new(be||li)},li.\u0275dir=e.lG2({type:li,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""]});const aa={provide:k,useExisting:(0,e.Gpc)(()=>Ii),multi:!0};class Ii extends u{writeValue(be){const ct=be??"";this.setProperty("value",ct)}registerOnChange(be){this.onChange=ct=>{be(""==ct?null:parseFloat(ct))}}}Ii.\u0275fac=function(){let bt;return function(ct){return(bt||(bt=e.n5z(Ii)))(ct||Ii)}}(),Ii.\u0275dir=e.lG2({type:Ii,selectors:[["input","type","number","formControlName",""],["input","type","number","formControl",""],["input","type","number","ngModel",""]],hostBindings:function(be,ct){1&be&&e.NdJ("input",function(Pn){return ct.onChange(Pn.target.value)})("blur",function(){return ct.onTouched()})},features:[e._Bn([aa]),e.qOj]});const ea={provide:k,useExisting:(0,e.Gpc)(()=>Yi),multi:!0};class Ji{}Ji.\u0275fac=function(be){return new(be||Ji)},Ji.\u0275mod=e.oAB({type:Ji}),Ji.\u0275inj=e.cJS({});class ka{constructor(){this._accessors=[]}add(be,ct){this._accessors.push([be,ct])}remove(be){for(let ct=this._accessors.length-1;ct>=0;--ct)if(this._accessors[ct][1]===be)return void this._accessors.splice(ct,1)}select(be){this._accessors.forEach(ct=>{this._isSameGroup(ct,be)&&ct[1]!==be&&ct[1].fireUncheck(be.value)})}_isSameGroup(be,ct){return!!be[0].control&&(be[0]._parent===ct._control._parent&&be[1].name===ct.name)}}ka.\u0275fac=function(be){return new(be||ka)},ka.\u0275prov=e.Yz7({token:ka,factory:ka.\u0275fac,providedIn:Ji});class Yi extends u{constructor(be,ct,Yt,Pn){super(be,ct),this._registry=Yt,this._injector=Pn,this.onChange=()=>{}}ngOnInit(){this._control=this._injector.get(et),this._checkName(),this._registry.add(this._control,this)}ngOnDestroy(){this._registry.remove(this)}writeValue(be){this._state=be===this.value,this.setProperty("checked",this._state)}registerOnChange(be){this._fn=be,this.onChange=()=>{be(this.value),this._registry.select(this)}}fireUncheck(be){this.writeValue(be)}_checkName(){this.name&&this.formControlName&&(this.name,this.formControlName),!this.name&&this.formControlName&&(this.name=this.formControlName)}}Yi.\u0275fac=function(be){return new(be||Yi)(e.Y36(e.Qsj),e.Y36(e.SBq),e.Y36(ka),e.Y36(e.zs3))},Yi.\u0275dir=e.lG2({type:Yi,selectors:[["input","type","radio","formControlName",""],["input","type","radio","formControl",""],["input","type","radio","ngModel",""]],hostBindings:function(be,ct){1&be&&e.NdJ("change",function(){return ct.onChange()})("blur",function(){return ct.onTouched()})},inputs:{name:"name",formControlName:"formControlName",value:"value"},features:[e._Bn([ea]),e.qOj]});const Ha={provide:k,useExisting:(0,e.Gpc)(()=>Hi),multi:!0};class Hi extends u{writeValue(be){this.setProperty("value",parseFloat(be))}registerOnChange(be){this.onChange=ct=>{be(""==ct?null:parseFloat(ct))}}}Hi.\u0275fac=function(){let bt;return function(ct){return(bt||(bt=e.n5z(Hi)))(ct||Hi)}}(),Hi.\u0275dir=e.lG2({type:Hi,selectors:[["input","type","range","formControlName",""],["input","type","range","formControl",""],["input","type","range","ngModel",""]],hostBindings:function(be,ct){1&be&&e.NdJ("change",function(Pn){return ct.onChange(Pn.target.value)})("input",function(Pn){return ct.onChange(Pn.target.value)})("blur",function(){return ct.onTouched()})},features:[e._Bn([Ha]),e.qOj]});const La=new e.OlP("NgModelWithFormControlWarning"),gr={provide:et,useExisting:(0,e.Gpc)(()=>Sa)};class Sa extends et{constructor(be,ct,Yt,Pn,Ti){super(),this._ngModelWarningConfig=Pn,this.callSetDisabledState=Ti,this.update=new e.vpe,this._ngModelWarningSent=!1,this._setValidators(be),this._setAsyncValidators(ct),this.valueAccessor=Mn(0,Yt)}set isDisabled(be){}ngOnChanges(be){if(this._isControlChanged(be)){const ct=be.form.previousValue;ct&&$t(ct,this,!1),$e(this.form,this,this.callSetDisabledState),this.form.updateValueAndValidity({emitEvent:!1})}Bn(be,this.viewModel)&&(this.form.setValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.form&&$t(this.form,this,!1)}get path(){return[]}get control(){return this.form}viewToModelUpdate(be){this.viewModel=be,this.update.emit(be)}_isControlChanged(be){return be.hasOwnProperty("form")}}Sa._ngModelWarningSentOnce=!1,Sa.\u0275fac=function(be){return new(be||Sa)(e.Y36(Q,10),e.Y36(ie,10),e.Y36(k,10),e.Y36(La,8),e.Y36(Tt,8))},Sa.\u0275dir=e.lG2({type:Sa,selectors:[["","formControl",""]],inputs:{form:["formControl","form"],isDisabled:["disabled","isDisabled"],model:["ngModel","model"]},outputs:{update:"ngModelChange"},exportAs:["ngForm"],features:[e._Bn([gr]),e.qOj,e.TTD]});const fa={provide:ve,useExisting:(0,e.Gpc)(()=>Ki)};class Ki extends ve{constructor(be,ct,Yt){super(),this.callSetDisabledState=Yt,this.submitted=!1,this._onCollectionChange=()=>this._updateDomValue(),this.directives=[],this.form=null,this.ngSubmit=new e.vpe,this._setValidators(be),this._setAsyncValidators(ct)}ngOnChanges(be){this._checkFormPresent(),be.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations(),this._oldForm=this.form)}ngOnDestroy(){this.form&&(zn(this.form,this),this.form._onCollectionChange===this._onCollectionChange&&this.form._registerOnCollectionChange(()=>{}))}get formDirective(){return this}get control(){return this.form}get path(){return[]}addControl(be){const ct=this.form.get(be.path);return $e(ct,be,this.callSetDisabledState),ct.updateValueAndValidity({emitEvent:!1}),this.directives.push(be),ct}getControl(be){return this.form.get(be.path)}removeControl(be){$t(be.control||null,be,!1),function Ln(bt,be){const ct=bt.indexOf(be);ct>-1&&bt.splice(ct,1)}(this.directives,be)}addFormGroup(be){this._setUpFormContainer(be)}removeFormGroup(be){this._cleanUpFormContainer(be)}getFormGroup(be){return this.form.get(be.path)}addFormArray(be){this._setUpFormContainer(be)}removeFormArray(be){this._cleanUpFormContainer(be)}getFormArray(be){return this.form.get(be.path)}updateModel(be,ct){this.form.get(be.path).setValue(ct)}onSubmit(be){return this.submitted=!0,ti(this.form,this.directives),this.ngSubmit.emit(be),"dialog"===be?.target?.method}onReset(){this.resetForm()}resetForm(be){this.form.reset(be),this.submitted=!1}_updateDomValue(){this.directives.forEach(be=>{const ct=be.control,Yt=this.form.get(be.path);ct!==Yt&&($t(ct||null,be),Yt instanceof Ei&&($e(Yt,be,this.callSetDisabledState),be.control=Yt))}),this.form._updateTreeValidity({emitEvent:!1})}_setUpFormContainer(be){const ct=this.form.get(be.path);Be(ct,be),ct.updateValueAndValidity({emitEvent:!1})}_cleanUpFormContainer(be){if(this.form){const ct=this.form.get(be.path);ct&&function ft(bt,be){return zn(bt,be)}(ct,be)&&ct.updateValueAndValidity({emitEvent:!1})}}_updateRegistrations(){this.form._registerOnCollectionChange(this._onCollectionChange),this._oldForm&&this._oldForm._registerOnCollectionChange(()=>{})}_updateValidators(){Vn(this.form,this),this._oldForm&&zn(this._oldForm,this)}_checkFormPresent(){this.form}}Ki.\u0275fac=function(be){return new(be||Ki)(e.Y36(Q,10),e.Y36(ie,10),e.Y36(Tt,8))},Ki.\u0275dir=e.lG2({type:Ki,selectors:[["","formGroup",""]],hostBindings:function(be,ct){1&be&&e.NdJ("submit",function(Pn){return ct.onSubmit(Pn)})("reset",function(){return ct.onReset()})},inputs:{form:["formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[e._Bn([fa]),e.qOj,e.TTD]});const xa={provide:ve,useExisting:(0,e.Gpc)(()=>ra)};class ra extends qi{constructor(be,ct,Yt){super(),this._parent=be,this._setValidators(ct),this._setAsyncValidators(Yt)}_checkParentType(){js(this._parent)}}ra.\u0275fac=function(be){return new(be||ra)(e.Y36(ve,13),e.Y36(Q,10),e.Y36(ie,10))},ra.\u0275dir=e.lG2({type:ra,selectors:[["","formGroupName",""]],inputs:{name:["formGroupName","name"]},features:[e._Bn([xa]),e.qOj]});const fo={provide:ve,useExisting:(0,e.Gpc)(()=>za)};class za extends ve{constructor(be,ct,Yt){super(),this._parent=be,this._setValidators(ct),this._setAsyncValidators(Yt)}ngOnInit(){this._checkParentType(),this.formDirective.addFormArray(this)}ngOnDestroy(){this.formDirective&&this.formDirective.removeFormArray(this)}get control(){return this.formDirective.getFormArray(this)}get formDirective(){return this._parent?this._parent.formDirective:null}get path(){return He(null==this.name?this.name:this.name.toString(),this._parent)}_checkParentType(){js(this._parent)}}function js(bt){return!(bt instanceof ra||bt instanceof Ki||bt instanceof za)}za.\u0275fac=function(be){return new(be||za)(e.Y36(ve,13),e.Y36(Q,10),e.Y36(ie,10))},za.\u0275dir=e.lG2({type:za,selectors:[["","formArrayName",""]],inputs:{name:["formArrayName","name"]},features:[e._Bn([fo]),e.qOj]});const is={provide:et,useExisting:(0,e.Gpc)(()=>Qi)};class Qi extends et{constructor(be,ct,Yt,Pn,Ti){super(),this._ngModelWarningConfig=Ti,this._added=!1,this.update=new e.vpe,this._ngModelWarningSent=!1,this._parent=be,this._setValidators(ct),this._setAsyncValidators(Yt),this.valueAccessor=Mn(0,Pn)}set isDisabled(be){}ngOnChanges(be){this._added||this._setUpControl(),Bn(be,this.viewModel)&&(this.viewModel=this.model,this.formDirective.updateModel(this,this.model))}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}viewToModelUpdate(be){this.viewModel=be,this.update.emit(be)}get path(){return He(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}}Qi._ngModelWarningSentOnce=!1,Qi.\u0275fac=function(be){return new(be||Qi)(e.Y36(ve,13),e.Y36(Q,10),e.Y36(ie,10),e.Y36(k,10),e.Y36(La,8))},Qi.\u0275dir=e.lG2({type:Qi,selectors:[["","formControlName",""]],inputs:{name:["formControlName","name"],isDisabled:["disabled","isDisabled"],model:["ngModel","model"]},outputs:{update:"ngModelChange"},features:[e._Bn([is]),e.qOj,e.TTD]});const Gr={provide:k,useExisting:(0,e.Gpc)(()=>Ua),multi:!0};function Ta(bt,be){return null==bt?`${be}`:(be&&"object"==typeof be&&(be="Object"),`${bt}: ${be}`.slice(0,50))}class Ua extends u{constructor(){super(...arguments),this._optionMap=new Map,this._idCounter=0,this._compareWith=Object.is}set compareWith(be){this._compareWith=be}writeValue(be){this.value=be;const Yt=Ta(this._getOptionId(be),be);this.setProperty("value",Yt)}registerOnChange(be){this.onChange=ct=>{this.value=this._getOptionValue(ct),be(this.value)}}_registerOption(){return(this._idCounter++).toString()}_getOptionId(be){for(const ct of Array.from(this._optionMap.keys()))if(this._compareWith(this._optionMap.get(ct),be))return ct;return null}_getOptionValue(be){const ct=function Is(bt){return bt.split(":")[0]}(be);return this._optionMap.has(ct)?this._optionMap.get(ct):be}}Ua.\u0275fac=function(){let bt;return function(ct){return(bt||(bt=e.n5z(Ua)))(ct||Ua)}}(),Ua.\u0275dir=e.lG2({type:Ua,selectors:[["select","formControlName","",3,"multiple",""],["select","formControl","",3,"multiple",""],["select","ngModel","",3,"multiple",""]],hostBindings:function(be,ct){1&be&&e.NdJ("change",function(Pn){return ct.onChange(Pn.target.value)})("blur",function(){return ct.onTouched()})},inputs:{compareWith:"compareWith"},features:[e._Bn([Gr]),e.qOj]});class Ls{constructor(be,ct,Yt){this._element=be,this._renderer=ct,this._select=Yt,this._select&&(this.id=this._select._registerOption())}set ngValue(be){null!=this._select&&(this._select._optionMap.set(this.id,be),this._setElementValue(Ta(this.id,be)),this._select.writeValue(this._select.value))}set value(be){this._setElementValue(be),this._select&&this._select.writeValue(this._select.value)}_setElementValue(be){this._renderer.setProperty(this._element.nativeElement,"value",be)}ngOnDestroy(){this._select&&(this._select._optionMap.delete(this.id),this._select.writeValue(this._select.value))}}Ls.\u0275fac=function(be){return new(be||Ls)(e.Y36(e.SBq),e.Y36(e.Qsj),e.Y36(Ua,9))},Ls.\u0275dir=e.lG2({type:Ls,selectors:[["option"]],inputs:{ngValue:"ngValue",value:"value"}});const Ca={provide:k,useExisting:(0,e.Gpc)(()=>ms),multi:!0};function vr(bt,be){return null==bt?`${be}`:("string"==typeof be&&(be=`'${be}'`),be&&"object"==typeof be&&(be="Object"),`${bt}: ${be}`.slice(0,50))}class ms extends u{constructor(){super(...arguments),this._optionMap=new Map,this._idCounter=0,this._compareWith=Object.is}set compareWith(be){this._compareWith=be}writeValue(be){let ct;if(this.value=be,Array.isArray(be)){const Yt=be.map(Pn=>this._getOptionId(Pn));ct=(Pn,Ti)=>{Pn._setSelected(Yt.indexOf(Ti.toString())>-1)}}else ct=(Yt,Pn)=>{Yt._setSelected(!1)};this._optionMap.forEach(ct)}registerOnChange(be){this.onChange=ct=>{const Yt=[],Pn=ct.selectedOptions;if(void 0!==Pn){const Ti=Pn;for(let rr=0;rr<Ti.length;rr++){const gs=Ti[rr],Oo=this._getOptionValue(gs.value);Yt.push(Oo)}}else{const Ti=ct.options;for(let rr=0;rr<Ti.length;rr++){const gs=Ti[rr];if(gs.selected){const Oo=this._getOptionValue(gs.value);Yt.push(Oo)}}}this.value=Yt,be(Yt)}}_registerOption(be){const ct=(this._idCounter++).toString();return this._optionMap.set(ct,be),ct}_getOptionId(be){for(const ct of Array.from(this._optionMap.keys()))if(this._compareWith(this._optionMap.get(ct)._value,be))return ct;return null}_getOptionValue(be){const ct=function Or(bt){return bt.split(":")[0]}(be);return this._optionMap.has(ct)?this._optionMap.get(ct)._value:be}}ms.\u0275fac=function(){let bt;return function(ct){return(bt||(bt=e.n5z(ms)))(ct||ms)}}(),ms.\u0275dir=e.lG2({type:ms,selectors:[["select","multiple","","formControlName",""],["select","multiple","","formControl",""],["select","multiple","","ngModel",""]],hostBindings:function(be,ct){1&be&&e.NdJ("change",function(Pn){return ct.onChange(Pn.target)})("blur",function(){return ct.onTouched()})},inputs:{compareWith:"compareWith"},features:[e._Bn([Ca]),e.qOj]});class nr{constructor(be,ct,Yt){this._element=be,this._renderer=ct,this._select=Yt,this._select&&(this.id=this._select._registerOption(this))}set ngValue(be){null!=this._select&&(this._value=be,this._setElementValue(vr(this.id,be)),this._select.writeValue(this._select.value))}set value(be){this._select?(this._value=be,this._setElementValue(vr(this.id,be)),this._select.writeValue(this._select.value)):this._setElementValue(be)}_setElementValue(be){this._renderer.setProperty(this._element.nativeElement,"value",be)}_setSelected(be){this._renderer.setProperty(this._element.nativeElement,"selected",be)}ngOnDestroy(){this._select&&(this._select._optionMap.delete(this.id),this._select.writeValue(this._select.value))}}function Pr(bt){return"number"==typeof bt?bt:parseInt(bt,10)}function Xs(bt){return"number"==typeof bt?bt:parseFloat(bt)}nr.\u0275fac=function(be){return new(be||nr)(e.Y36(e.SBq),e.Y36(e.Qsj),e.Y36(ms,9))},nr.\u0275dir=e.lG2({type:nr,selectors:[["option"]],inputs:{ngValue:"ngValue",value:"value"}});class pa{constructor(){this._validator=h}ngOnChanges(be){if(this.inputName in be){const ct=this.normalizeInput(be[this.inputName].currentValue);this._enabled=this.enabled(ct),this._validator=this._enabled?this.createValidator(ct):h,this._onChange&&this._onChange()}}validate(be){return this._validator(be)}registerOnValidatorChange(be){this._onChange=be}enabled(be){return null!=be}}pa.\u0275fac=function(be){return new(be||pa)},pa.\u0275dir=e.lG2({type:pa,features:[e.TTD]});const Js={provide:Q,useExisting:(0,e.Gpc)(()=>Oa),multi:!0};class Oa extends pa{constructor(){super(...arguments),this.inputName="max",this.normalizeInput=be=>Xs(be),this.createValidator=be=>ye(be)}}Oa.\u0275fac=function(){let bt;return function(ct){return(bt||(bt=e.n5z(Oa)))(ct||Oa)}}(),Oa.\u0275dir=e.lG2({type:Oa,selectors:[["input","type","number","max","","formControlName",""],["input","type","number","max","","formControl",""],["input","type","number","max","","ngModel",""]],hostVars:1,hostBindings:function(be,ct){2&be&&e.uIk("max",ct._enabled?ct.max:null)},inputs:{max:"max"},features:[e._Bn([Js]),e.qOj]});const Ss={provide:Q,useExisting:(0,e.Gpc)(()=>Ja),multi:!0};class Ja extends pa{constructor(){super(...arguments),this.inputName="min",this.normalizeInput=be=>Xs(be),this.createValidator=be=>ce(be)}}Ja.\u0275fac=function(){let bt;return function(ct){return(bt||(bt=e.n5z(Ja)))(ct||Ja)}}(),Ja.\u0275dir=e.lG2({type:Ja,selectors:[["input","type","number","min","","formControlName",""],["input","type","number","min","","formControl",""],["input","type","number","min","","ngModel",""]],hostVars:1,hostBindings:function(be,ct){2&be&&e.uIk("min",ct._enabled?ct.min:null)},inputs:{min:"min"},features:[e._Bn([Ss]),e.qOj]});const Os={provide:Q,useExisting:(0,e.Gpc)(()=>yr),multi:!0},$a={provide:Q,useExisting:(0,e.Gpc)(()=>sa),multi:!0};class yr extends pa{constructor(){super(...arguments),this.inputName="required",this.normalizeInput=e.D6c,this.createValidator=be=>ue}enabled(be){return be}}yr.\u0275fac=function(){let bt;return function(ct){return(bt||(bt=e.n5z(yr)))(ct||yr)}}(),yr.\u0275dir=e.lG2({type:yr,selectors:[["","required","","formControlName","",3,"type","checkbox"],["","required","","formControl","",3,"type","checkbox"],["","required","","ngModel","",3,"type","checkbox"]],hostVars:1,hostBindings:function(be,ct){2&be&&e.uIk("required",ct._enabled?"":null)},inputs:{required:"required"},features:[e._Bn([Os]),e.qOj]});class sa extends yr{constructor(){super(...arguments),this.createValidator=be=>$}}sa.\u0275fac=function(){let bt;return function(ct){return(bt||(bt=e.n5z(sa)))(ct||sa)}}(),sa.\u0275dir=e.lG2({type:sa,selectors:[["input","type","checkbox","required","","formControlName",""],["input","type","checkbox","required","","formControl",""],["input","type","checkbox","required","","ngModel",""]],hostVars:1,hostBindings:function(be,ct){2&be&&e.uIk("required",ct._enabled?"":null)},features:[e._Bn([$a]),e.qOj]});const ir={provide:Q,useExisting:(0,e.Gpc)(()=>br),multi:!0};class br extends pa{constructor(){super(...arguments),this.inputName="email",this.normalizeInput=e.D6c,this.createValidator=be=>he}enabled(be){return be}}br.\u0275fac=function(){let bt;return function(ct){return(bt||(bt=e.n5z(br)))(ct||br)}}(),br.\u0275dir=e.lG2({type:br,selectors:[["","email","","formControlName",""],["","email","","formControl",""],["","email","","ngModel",""]],inputs:{email:"email"},features:[e._Bn([ir]),e.qOj]});const as={provide:Q,useExisting:(0,e.Gpc)(()=>kr),multi:!0};class kr extends pa{constructor(){super(...arguments),this.inputName="minlength",this.normalizeInput=be=>Pr(be),this.createValidator=be=>w(be)}}kr.\u0275fac=function(){let bt;return function(ct){return(bt||(bt=e.n5z(kr)))(ct||kr)}}(),kr.\u0275dir=e.lG2({type:kr,selectors:[["","minlength","","formControlName",""],["","minlength","","formControl",""],["","minlength","","ngModel",""]],hostVars:1,hostBindings:function(be,ct){2&be&&e.uIk("minlength",ct._enabled?ct.minlength:null)},inputs:{minlength:"minlength"},features:[e._Bn([as]),e.qOj]});const Va={provide:Q,useExisting:(0,e.Gpc)(()=>dn),multi:!0};class dn extends pa{constructor(){super(...arguments),this.inputName="maxlength",this.normalizeInput=be=>Pr(be),this.createValidator=be=>n(be)}}dn.\u0275fac=function(){let bt;return function(ct){return(bt||(bt=e.n5z(dn)))(ct||dn)}}(),dn.\u0275dir=e.lG2({type:dn,selectors:[["","maxlength","","formControlName",""],["","maxlength","","formControl",""],["","maxlength","","ngModel",""]],hostVars:1,hostBindings:function(be,ct){2&be&&e.uIk("maxlength",ct._enabled?ct.maxlength:null)},inputs:{maxlength:"maxlength"},features:[e._Bn([Va]),e.qOj]});const xt={provide:Q,useExisting:(0,e.Gpc)(()=>Nt),multi:!0};class Nt extends pa{constructor(){super(...arguments),this.inputName="pattern",this.normalizeInput=be=>be,this.createValidator=be=>o(be)}}Nt.\u0275fac=function(){let bt;return function(ct){return(bt||(bt=e.n5z(Nt)))(ct||Nt)}}(),Nt.\u0275dir=e.lG2({type:Nt,selectors:[["","pattern","","formControlName",""],["","pattern","","formControl",""],["","pattern","","ngModel",""]],hostVars:1,hostBindings:function(be,ct){2&be&&e.uIk("pattern",ct._enabled?ct.pattern:null)},inputs:{pattern:"pattern"},features:[e._Bn([xt]),e.qOj]});class Xi{}Xi.\u0275fac=function(be){return new(be||Xi)},Xi.\u0275mod=e.oAB({type:Xi}),Xi.\u0275inj=e.cJS({imports:[Ji]});class oa{static withConfig(be){return{ngModule:oa,providers:[{provide:Tt,useValue:be.callSetDisabledState??Ht}]}}}oa.\u0275fac=function(be){return new(be||oa)},oa.\u0275mod=e.oAB({type:oa}),oa.\u0275inj=e.cJS({imports:[Xi]});class la{static withConfig(be){return{ngModule:la,providers:[{provide:La,useValue:be.warnOnNgModelWithFormControl??"always"},{provide:Tt,useValue:be.callSetDisabledState??Ht}]}}}la.\u0275fac=function(be){return new(be||la)},la.\u0275mod=e.oAB({type:la}),la.\u0275inj=e.cJS({imports:[Xi]});class Li extends ze{constructor(be,ct,Yt){super(se(ct),oe(Yt,ct)),this.controls=be,this._initObservables(),this._setUpdateStrategy(ct),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}at(be){return this.controls[this._adjustIndex(be)]}push(be,ct={}){this.controls.push(be),this._registerControl(be),this.updateValueAndValidity({emitEvent:ct.emitEvent}),this._onCollectionChange()}insert(be,ct,Yt={}){this.controls.splice(be,0,ct),this._registerControl(ct),this.updateValueAndValidity({emitEvent:Yt.emitEvent})}removeAt(be,ct={}){let Yt=this._adjustIndex(be);Yt<0&&(Yt=0),this.controls[Yt]&&this.controls[Yt]._registerOnCollectionChange(()=>{}),this.controls.splice(Yt,1),this.updateValueAndValidity({emitEvent:ct.emitEvent})}setControl(be,ct,Yt={}){let Pn=this._adjustIndex(be);Pn<0&&(Pn=0),this.controls[Pn]&&this.controls[Pn]._registerOnCollectionChange(()=>{}),this.controls.splice(Pn,1),ct&&(this.controls.splice(Pn,0,ct),this._registerControl(ct)),this.updateValueAndValidity({emitEvent:Yt.emitEvent}),this._onCollectionChange()}get length(){return this.controls.length}setValue(be,ct={}){ut(this,0,be),be.forEach((Yt,Pn)=>{Dt(this,!1,Pn),this.at(Pn).setValue(Yt,{onlySelf:!0,emitEvent:ct.emitEvent})}),this.updateValueAndValidity(ct)}patchValue(be,ct={}){null!=be&&(be.forEach((Yt,Pn)=>{this.at(Pn)&&this.at(Pn).patchValue(Yt,{onlySelf:!0,emitEvent:ct.emitEvent})}),this.updateValueAndValidity(ct))}reset(be=[],ct={}){this._forEachChild((Yt,Pn)=>{Yt.reset(be[Pn],{onlySelf:!0,emitEvent:ct.emitEvent})}),this._updatePristine(ct),this._updateTouched(ct),this.updateValueAndValidity(ct)}getRawValue(){return this.controls.map(be=>be.getRawValue())}clear(be={}){this.controls.length<1||(this._forEachChild(ct=>ct._registerOnCollectionChange(()=>{})),this.controls.splice(0),this.updateValueAndValidity({emitEvent:be.emitEvent}))}_adjustIndex(be){return be<0?be+this.length:be}_syncPendingControls(){let be=this.controls.reduce((ct,Yt)=>!!Yt._syncPendingControls()||ct,!1);return be&&this.updateValueAndValidity({onlySelf:!0}),be}_forEachChild(be){this.controls.forEach((ct,Yt)=>{be(ct,Yt)})}_updateValue(){this.value=this.controls.filter(be=>be.enabled||this.disabled).map(be=>be.value)}_anyControls(be){return this.controls.some(ct=>ct.enabled&&be(ct))}_setUpControls(){this._forEachChild(be=>this._registerControl(be))}_allControlsDisabled(){for(const be of this.controls)if(be.enabled)return!1;return this.controls.length>0||this.disabled}_registerControl(be){be.setParent(this),be._registerOnCollectionChange(this._onCollectionChange)}_find(be){return this.at(be)??null}}function Zr(bt){return!!bt&&(void 0!==bt.asyncValidators||void 0!==bt.validators||void 0!==bt.updateOn)}class ca{constructor(){this.useNonNullable=!1}get nonNullable(){const be=new ca;return be.useNonNullable=!0,be}group(be,ct=null){const Yt=this._reduceControls(be);let Pn={};return Zr(ct)?Pn=ct:null!==ct&&(Pn.validators=ct.validator,Pn.asyncValidators=ct.asyncValidator),new Me(Yt,Pn)}record(be,ct=null){const Yt=this._reduceControls(be);return new zt(Yt,ct)}control(be,ct,Yt){let Pn={};return this.useNonNullable?(Zr(ct)?Pn=ct:(Pn.validators=ct,Pn.asyncValidators=Yt),new Ei(be,{...Pn,nonNullable:!0})):new Ei(be,ct,Yt)}array(be,ct,Yt){const Pn=be.map(Ti=>this._createControl(Ti));return new Li(Pn,ct,Yt)}_reduceControls(be){const ct={};return Object.keys(be).forEach(Yt=>{ct[Yt]=this._createControl(be[Yt])}),ct}_createControl(be){if(be instanceof Ei)return be;if(be instanceof ze)return be;if(Array.isArray(be)){const ct=be[0],Yt=be.length>1?be[1]:null,Pn=be.length>2?be[2]:null;return this.control(ct,Yt,Pn)}return this.control(be)}}ca.\u0275fac=function(be){return new(be||ca)},ca.\u0275prov=e.Yz7({token:ca,factory:ca.\u0275fac,providedIn:la});class si{}si.\u0275fac=function(be){return new(be||si)},si.\u0275prov=e.Yz7({token:si,factory:function(){return(0,e.f3M)(ca).nonNullable},providedIn:la});class ar extends ca{group(be,ct=null){return super.group(be,ct)}control(be,ct,Yt){return super.control(be,ct,Yt)}array(be,ct,Yt){return super.array(be,ct,Yt)}}ar.\u0275fac=function(){let bt;return function(ct){return(bt||(bt=e.n5z(ar)))(ct||ar)}}(),ar.\u0275prov=e.Yz7({token:ar,factory:ar.\u0275fac,providedIn:la});new e.GfV("15.0.2")},8550:(Ue,q,m)=>{"use strict";m.d(q,{Bb:()=>xe,XC:()=>a,ZL:()=>Ve});var e=m(4218),t=m(8971),_=m(9107),E=m(2560),s=m(207),D=m(7714),u=m(253),k=m(1954),p=m(6646),S=m(745),A=m(3280),P=m(4666),M=m(5895),z=m(1494),I=m(2867),W=m(8456),Z=m(7520),Q=m(2508),ie=m(5074),ae=m(4874),_e=m(2673),ce=m(9295),ye=m(116),ue=m(635),$=m(9337),he=m(6234);const w=["panel"];function n(Ze,Ie){if(1&Ze&&(E.TgZ(0,"div",0,1),E.Hsn(2),E.qZA()),2&Ze){const ve=Ie.id,et=E.oxw();E.Q6J("id",et.id)("ngClass",et._classList),E.uIk("aria-label",et.ariaLabel||null)("aria-labelledby",et._getPanelAriaLabelledby(ve))}}let h=0;class d{constructor(Ie,ve){this.source=Ie,this.option=ve}}const y=(0,s.Kr)(class{}),L=new E.OlP("mat-autocomplete-default-options",{providedIn:"root",factory:function B(){return{autoActiveFirstOption:!1,autoSelectActiveOption:!1}}});class v extends y{constructor(Ie,ve,et,ht){super(),this._changeDetectorRef=Ie,this._elementRef=ve,this._activeOptionChanges=D.w0.EMPTY,this.showPanel=!1,this._isOpen=!1,this.displayWith=null,this.optionSelected=new E.vpe,this.opened=new E.vpe,this.closed=new E.vpe,this.optionActivated=new E.vpe,this._classList={},this.id="mat-autocomplete-"+h++,this.inertGroups=ht?.SAFARI||!1,this._autoActiveFirstOption=!!et.autoActiveFirstOption,this._autoSelectActiveOption=!!et.autoSelectActiveOption}get isOpen(){return this._isOpen&&this.showPanel}get autoActiveFirstOption(){return this._autoActiveFirstOption}set autoActiveFirstOption(Ie){this._autoActiveFirstOption=(0,t.Ig)(Ie)}get autoSelectActiveOption(){return this._autoSelectActiveOption}set autoSelectActiveOption(Ie){this._autoSelectActiveOption=(0,t.Ig)(Ie)}set classList(Ie){Ie&&Ie.length?this._classList=(0,t.du)(Ie).reduce((ve,et)=>(ve[et]=!0,ve),{}):this._classList={},this._setVisibilityClasses(this._classList),this._elementRef.nativeElement.className=""}ngAfterContentInit(){this._keyManager=new e.s1(this.options).withWrap(),this._activeOptionChanges=this._keyManager.change.subscribe(Ie=>{this.isOpen&&this.optionActivated.emit({source:this,option:this.options.toArray()[Ie]||null})}),this._setVisibility()}ngOnDestroy(){this._activeOptionChanges.unsubscribe()}_setScrollTop(Ie){this.panel&&(this.panel.nativeElement.scrollTop=Ie)}_getScrollTop(){return this.panel?this.panel.nativeElement.scrollTop:0}_setVisibility(){this.showPanel=!!this.options.length,this._setVisibilityClasses(this._classList),this._changeDetectorRef.markForCheck()}_emitSelectEvent(Ie){const ve=new d(this,Ie);this.optionSelected.emit(ve)}_getPanelAriaLabelledby(Ie){if(this.ariaLabel)return null;const ve=Ie?Ie+" ":"";return this.ariaLabelledby?ve+this.ariaLabelledby:Ie}_setVisibilityClasses(Ie){Ie[this._visibleClass]=this.showPanel,Ie[this._hiddenClass]=!this.showPanel}}v.\u0275fac=function(Ie){return new(Ie||v)(E.Y36(E.sBO),E.Y36(E.SBq),E.Y36(L),E.Y36(_.t4))},v.\u0275dir=E.lG2({type:v,viewQuery:function(Ie,ve){if(1&Ie&&(E.Gf(E.Rgc,7),E.Gf(w,5)),2&Ie){let et;E.iGM(et=E.CRH())&&(ve.template=et.first),E.iGM(et=E.CRH())&&(ve.panel=et.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:[E.qOj]});class a extends v{constructor(){super(...arguments),this._visibleClass="mat-autocomplete-visible",this._hiddenClass="mat-autocomplete-hidden"}}a.\u0275fac=function(){let Ze;return function(ve){return(Ze||(Ze=E.n5z(a)))(ve||a)}}(),a.\u0275cmp=E.Xpm({type:a,selectors:[["mat-autocomplete"]],contentQueries:function(Ie,ve,et){if(1&Ie&&(E.Suo(et,s.K7,5),E.Suo(et,s.ey,5)),2&Ie){let ht;E.iGM(ht=E.CRH())&&(ve.optionGroups=ht),E.iGM(ht=E.CRH())&&(ve.options=ht)}},hostAttrs:[1,"mat-autocomplete"],inputs:{disableRipple:"disableRipple"},exportAs:["matAutocomplete"],features:[E._Bn([{provide:s.HF,useExisting:a}]),E.qOj],ngContentSelectors:["*"],decls:1,vars:0,consts:[["role","listbox",1,"mat-autocomplete-panel",3,"id","ngClass"],["panel",""]],template:function(Ie,ve){1&Ie&&(E.F$t(),E.YNc(0,n,3,4,"ng-template"))},dependencies:[P.mk],styles:[".mat-autocomplete-panel{min-width:112px;max-width:280px;overflow:auto;-webkit-overflow-scrolling:touch;visibility:hidden;max-width:none;max-height:256px;position:relative;width:100%;border-bottom-left-radius:4px;border-bottom-right-radius:4px}.mat-autocomplete-panel.mat-autocomplete-visible{visibility:visible}.mat-autocomplete-panel.mat-autocomplete-hidden{visibility:hidden}.mat-autocomplete-panel-above .mat-autocomplete-panel{border-radius:0;border-top-left-radius:4px;border-top-right-radius:4px}.mat-autocomplete-panel .mat-divider-horizontal{margin-top:-1px}.cdk-high-contrast-active .mat-autocomplete-panel{outline:solid 1px}mat-autocomplete{display:none}"],encapsulation:2,changeDetection:0});class C{constructor(Ie){this.elementRef=Ie}}C.\u0275fac=function(Ie){return new(Ie||C)(E.Y36(E.SBq))},C.\u0275dir=E.lG2({type:C});class N extends C{}N.\u0275fac=function(){let Ze;return function(ve){return(Ze||(Ze=E.n5z(N)))(ve||N)}}(),N.\u0275dir=E.lG2({type:N,selectors:[["","matAutocompleteOrigin",""]],exportAs:["matAutocompleteOrigin"],features:[E.qOj]});const F=new E.OlP("mat-autocomplete-scroll-strategy");const Fe={provide:F,deps:[M.aV],useFactory:function X(Ze){return()=>Ze.scrollStrategies.reposition()}},ke={provide:Q.JU,useExisting:(0,E.Gpc)(()=>Ve),multi:!0};class je{constructor(Ie,ve,et,ht,Le,Ae,te,pe,ee,H,j){this._element=Ie,this._overlay=ve,this._viewContainerRef=et,this._zone=ht,this._changeDetectorRef=Le,this._dir=te,this._formField=pe,this._document=ee,this._viewportRuler=H,this._defaults=j,this._componentDestroyed=!1,this._autocompleteDisabled=!1,this._manuallyFloatingLabel=!1,this._viewportSubscription=D.w0.EMPTY,this._canOpenOnNextFocus=!0,this._closeKeyEventStream=new u.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,k.P)(()=>{const Oe=this.autocomplete?this.autocomplete.options:null;return Oe?Oe.changes.pipe((0,ae.O)(Oe),(0,_e.w)(()=>(0,p.T)(...Oe.map(Re=>Re.onSelectionChange)))):this._zone.onStable.pipe((0,ce.q)(1),(0,_e.w)(()=>this.optionSelections))}),this._scrollStrategy=Ae}get autocompleteDisabled(){return this._autocompleteDisabled}set autocompleteDisabled(Ie){this._autocompleteDisabled=(0,t.Ig)(Ie)}ngAfterViewInit(){const Ie=this._getWindow();typeof Ie<"u"&&this._zone.runOutsideAngular(()=>Ie.addEventListener("blur",this._windowBlurHandler))}ngOnChanges(Ie){Ie.position&&this._positionStrategy&&(this._setStrategyPositions(this._positionStrategy),this.panelOpen&&this._overlayRef.updatePosition())}ngOnDestroy(){const Ie=this._getWindow();typeof Ie<"u"&&Ie.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,p.T)(this.optionSelections,this.autocomplete._keyManager.tabOut.pipe((0,ye.h)(()=>this._overlayAttached)),this._closeKeyEventStream,this._getOutsideClickStream(),this._overlayRef?this._overlayRef.detachments().pipe((0,ye.h)(()=>this._overlayAttached)):(0,S.of)()).pipe((0,ue.U)(Ie=>Ie instanceof s.rN?Ie:null))}get activeOption(){return this.autocomplete&&this.autocomplete._keyManager?this.autocomplete._keyManager.activeItem:null}_getOutsideClickStream(){return(0,p.T)((0,A.R)(this._document,"click"),(0,A.R)(this._document,"auxclick"),(0,A.R)(this._document,"touchend")).pipe((0,ye.h)(Ie=>{const ve=(0,_.sA)(Ie),et=this._formField?this._formField._elementRef.nativeElement:null,ht=this.connectedTo?this.connectedTo.elementRef.nativeElement:null;return this._overlayAttached&&ve!==this._element.nativeElement&&this._document.activeElement!==this._element.nativeElement&&(!et||!et.contains(ve))&&(!ht||!ht.contains(ve))&&!!this._overlayRef&&!this._overlayRef.overlayElement.contains(ve)}))}writeValue(Ie){Promise.resolve(null).then(()=>this._assignOptionValue(Ie))}registerOnChange(Ie){this._onChange=Ie}registerOnTouched(Ie){this._onTouched=Ie}setDisabledState(Ie){this._element.nativeElement.disabled=Ie}_handleKeydown(Ie){const ve=Ie.keyCode,et=(0,W.Vb)(Ie);if(ve===W.hY&&!et&&Ie.preventDefault(),this.activeOption&&ve===W.K5&&this.panelOpen&&!et)this.activeOption._selectViaInteraction(),this._resetActiveItem(),Ie.preventDefault();else if(this.autocomplete){const ht=this.autocomplete._keyManager.activeItem,Le=ve===W.LH||ve===W.JH;ve===W.Mf||Le&&!et&&this.panelOpen?this.autocomplete._keyManager.onKeydown(Ie):Le&&this._canOpen()&&this.openPanel(),(Le||this.autocomplete._keyManager.activeItem!==ht)&&(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(Ie){let ve=Ie.target,et=ve.value;"number"===ve.type&&(et=""==et?null:parseFloat(et)),this._previousValue!==et&&(this._previousValue=et,this._pendingAutoselectedOption=null,this._onChange(et),this._canOpen()&&this._document.activeElement===Ie.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(Ie=!1){this._formField&&"auto"===this._formField.floatLabel&&(Ie?this._formField._animateAndLockLabel():this._formField.floatLabel="always",this._manuallyFloatingLabel=!0)}_resetLabel(){this._manuallyFloatingLabel&&(this._formField.floatLabel="auto",this._manuallyFloatingLabel=!1)}_subscribeToClosingActions(){const Ie=this._zone.onStable.pipe((0,ce.q)(1)),ve=this.autocomplete.options.changes.pipe((0,$.b)(()=>this._positionStrategy.reapplyLastPosition()),(0,he.g)(0));return(0,p.T)(Ie,ve).pipe((0,_e.w)(()=>(this._zone.run(()=>{const et=this.panelOpen;this._resetActiveItem(),this.autocomplete._setVisibility(),this._changeDetectorRef.detectChanges(),this.panelOpen&&this._overlayRef.updatePosition(),et!==this.panelOpen&&(this.panelOpen?this.autocomplete.opened.emit():this.autocomplete.closed.emit())}),this.panelClosingActions)),(0,ce.q)(1)).subscribe(et=>this._setValueAndClose(et))}_destroyPanel(){this._overlayRef&&(this.closePanel(),this._overlayRef.dispose(),this._overlayRef=null)}_assignOptionValue(Ie){const ve=this.autocomplete&&this.autocomplete.displayWith?this.autocomplete.displayWith(Ie):Ie;this._updateNativeInputValue(ve??"")}_updateNativeInputValue(Ie){this._formField?this._formField._control.value=Ie:this._element.nativeElement.value=Ie,this._previousValue=Ie}_setValueAndClose(Ie){const ve=Ie?Ie.source:this._pendingAutoselectedOption;ve&&(this._clearPreviousSelectedOption(ve),this._assignOptionValue(ve.value),this._onChange(ve.value),this.autocomplete._emitSelectEvent(ve),this._element.nativeElement.focus()),this.closePanel()}_clearPreviousSelectedOption(Ie){this.autocomplete.options.forEach(ve=>{ve!==Ie&&ve.selected&&ve.deselect()})}_attachOverlay(){this.autocomplete;let Ie=this._overlayRef;Ie?(this._positionStrategy.setOrigin(this._getConnectedElement()),Ie.updateSize({width:this._getPanelWidth()})):(this._portal=new Z.UE(this.autocomplete.template,this._viewContainerRef,{id:this._formField?.getLabelId()}),Ie=this._overlay.create(this._getOverlayConfig()),this._overlayRef=Ie,this._handleOverlayEvents(Ie),this._viewportSubscription=this._viewportRuler.change().subscribe(()=>{this.panelOpen&&Ie&&Ie.updateSize({width:this._getPanelWidth()})})),Ie&&!Ie.hasAttached()&&(Ie.attach(this._portal),this._closingActionsSubscription=this._subscribeToClosingActions());const ve=this.panelOpen;this.autocomplete._setVisibility(),this.autocomplete._isOpen=this._overlayAttached=!0,this.panelOpen&&ve!==this.panelOpen&&this.autocomplete.opened.emit()}_getOverlayConfig(){return new M.X_({positionStrategy:this._getOverlayPosition(),scrollStrategy:this._scrollStrategy(),width:this._getPanelWidth(),direction:this._dir,panelClass:this._defaults?.overlayPanelClass})}_getOverlayPosition(){const Ie=this._overlay.position().flexibleConnectedTo(this._getConnectedElement()).withFlexibleDimensions(!1).withPush(!1);return this._setStrategyPositions(Ie),this._positionStrategy=Ie,Ie}_setStrategyPositions(Ie){const ve=[{originX:"start",originY:"bottom",overlayX:"start",overlayY:"top"},{originX:"end",originY:"bottom",overlayX:"end",overlayY:"top"}],et=this._aboveClass,ht=[{originX:"start",originY:"top",overlayX:"start",overlayY:"bottom",panelClass:et},{originX:"end",originY:"top",overlayX:"end",overlayY:"bottom",panelClass:et}];let Le;Le="above"===this.position?ht:"below"===this.position?ve:[...ve,...ht],Ie.withPositions(Le)}_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 Ie=this.autocomplete;Ie.autoActiveFirstOption?Ie._keyManager.setFirstItemActive():Ie._keyManager.setActiveItem(-1)}_canOpen(){const Ie=this._element.nativeElement;return!Ie.readOnly&&!Ie.disabled&&!this._autocompleteDisabled}_getWindow(){return this._document?.defaultView||window}_scrollToOption(Ie){const ve=this.autocomplete,et=(0,s.CB)(Ie,ve.options,ve.optionGroups);if(0===Ie&&1===et)ve._setScrollTop(0);else if(ve.panel){const ht=ve.options.toArray()[Ie];if(ht){const Le=ht._getHostElement(),Ae=(0,s.jH)(Le.offsetTop,Le.offsetHeight,ve._getScrollTop(),ve.panel.nativeElement.offsetHeight);ve._setScrollTop(Ae)}}}_handleOverlayEvents(Ie){Ie.keydownEvents().subscribe(ve=>{(ve.keyCode===W.hY&&!(0,W.Vb)(ve)||ve.keyCode===W.LH&&(0,W.Vb)(ve,"altKey"))&&(this._pendingAutoselectedOption&&(this._updateNativeInputValue(this._valueBeforeAutoSelection??""),this._pendingAutoselectedOption=null),this._closeKeyEventStream.next(),this._resetActiveItem(),ve.stopPropagation(),ve.preventDefault())}),Ie.outsidePointerEvents().subscribe()}}je.\u0275fac=function(Ie){return new(Ie||je)(E.Y36(E.SBq),E.Y36(M.aV),E.Y36(E.s_b),E.Y36(E.R0b),E.Y36(E.sBO),E.Y36(F),E.Y36(I.Is,8),E.Y36(ie.G_,9),E.Y36(P.K0,8),E.Y36(z.rL),E.Y36(L,8))},je.\u0275dir=E.lG2({type:je,inputs:{autocomplete:["matAutocomplete","autocomplete"],position:["matAutocompletePosition","position"],connectedTo:["matAutocompleteConnectedTo","connectedTo"],autocompleteAttribute:["autocomplete","autocompleteAttribute"],autocompleteDisabled:["matAutocompleteDisabled","autocompleteDisabled"]},features:[E.TTD]});class Ve extends je{constructor(){super(...arguments),this._aboveClass="mat-autocomplete-panel-above"}}Ve.\u0275fac=function(){let Ze;return function(ve){return(Ze||(Ze=E.n5z(Ve)))(ve||Ve)}}(),Ve.\u0275dir=E.lG2({type:Ve,selectors:[["input","matAutocomplete",""],["textarea","matAutocomplete",""]],hostAttrs:[1,"mat-autocomplete-trigger"],hostVars:7,hostBindings:function(Ie,ve){1&Ie&&E.NdJ("focusin",function(){return ve._handleFocus()})("blur",function(){return ve._onTouched()})("input",function(ht){return ve._handleInput(ht)})("keydown",function(ht){return ve._handleKeydown(ht)})("click",function(){return ve._handleClick()}),2&Ie&&E.uIk("autocomplete",ve.autocompleteAttribute)("role",ve.autocompleteDisabled?null:"combobox")("aria-autocomplete",ve.autocompleteDisabled?null:"list")("aria-activedescendant",ve.panelOpen&&ve.activeOption?ve.activeOption.id:null)("aria-expanded",ve.autocompleteDisabled?null:ve.panelOpen.toString())("aria-owns",ve.autocompleteDisabled||!ve.panelOpen||null==ve.autocomplete?null:ve.autocomplete.id)("aria-haspopup",ve.autocompleteDisabled?null:"listbox")},exportAs:["matAutocompleteTrigger"],features:[E._Bn([ke]),E.qOj]});class xe{}xe.\u0275fac=function(Ie){return new(Ie||xe)},xe.\u0275mod=E.oAB({type:xe}),xe.\u0275inj=E.cJS({providers:[Fe],imports:[M.U8,s.Ng,s.BQ,P.ez,z.ZD,s.Ng,s.BQ]})},3335:(Ue,q,m)=>{"use strict";m.d(q,{g:()=>p,k:()=>k});var e=m(2560),t=m(207),_=m(4218),E=m(8971);let s=0;const D=(0,t.Id)(class{}),u="mat-badge-content";class k extends D{constructor(A,P,M,z,I){super(),this._ngZone=A,this._elementRef=P,this._ariaDescriber=M,this._renderer=z,this._animationMode=I,this._color="primary",this._overlap=!0,this.position="above after",this.size="medium",this._id=s++,this._isInitialized=!1}get color(){return this._color}set color(A){this._setColor(A),this._color=A}get overlap(){return this._overlap}set overlap(A){this._overlap=(0,E.Ig)(A)}get content(){return this._content}set content(A){this._updateRenderedContent(A)}get description(){return this._description}set description(A){this._updateHostAriaDescription(A)}get hidden(){return this._hidden}set hidden(A){this._hidden=(0,E.Ig)(A)}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 A=this._renderer.createElement("span"),P="mat-badge-active";return A.setAttribute("id",`mat-badge-content-${this._id}`),A.setAttribute("aria-hidden","true"),A.classList.add(u),"NoopAnimations"===this._animationMode&&A.classList.add("_mat-animation-noopable"),this._elementRef.nativeElement.appendChild(A),"function"==typeof requestAnimationFrame&&"NoopAnimations"!==this._animationMode?this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>{A.classList.add(P)})}):A.classList.add(P),A}_updateRenderedContent(A){const P=`${A??""}`.trim();this._isInitialized&&P&&!this._badgeElement&&(this._badgeElement=this._createBadgeElement()),this._badgeElement&&(this._badgeElement.textContent=P),this._content=P}_updateHostAriaDescription(A){this._ariaDescriber.removeDescription(this._elementRef.nativeElement,this.description),A&&this._ariaDescriber.describe(this._elementRef.nativeElement,A),this._description=A}_setColor(A){const P=this._elementRef.nativeElement.classList;P.remove(`mat-badge-${this._color}`),A&&P.add(`mat-badge-${A}`)}_clearExistingBadges(){const A=this._elementRef.nativeElement.querySelectorAll(`:scope > .${u}`);for(const P of Array.from(A))P!==this._badgeElement&&P.remove()}}k.\u0275fac=function(A){return new(A||k)(e.Y36(e.R0b),e.Y36(e.SBq),e.Y36(_.$s),e.Y36(e.Qsj),e.Y36(e.QbO,8))},k.\u0275dir=e.lG2({type:k,selectors:[["","matBadge",""]],hostAttrs:[1,"mat-badge"],hostVars:20,hostBindings:function(A,P){2&A&&e.ekj("mat-badge-overlap",P.overlap)("mat-badge-above",P.isAbove())("mat-badge-below",!P.isAbove())("mat-badge-before",!P.isAfter())("mat-badge-after",P.isAfter())("mat-badge-small","small"===P.size)("mat-badge-medium","medium"===P.size)("mat-badge-large","large"===P.size)("mat-badge-hidden",P.hidden||!P.content)("mat-badge-disabled",P.disabled)},inputs:{disabled:["matBadgeDisabled","disabled"],color:["matBadgeColor","color"],overlap:["matBadgeOverlap","overlap"],position:["matBadgePosition","position"],content:["matBadge","content"],description:["matBadgeDescription","description"],size:["matBadgeSize","size"],hidden:["matBadgeHidden","hidden"]},features:[e.qOj]});class p{}p.\u0275fac=function(A){return new(A||p)},p.\u0275mod=e.oAB({type:p}),p.\u0275inj=e.cJS({imports:[_.rt,t.BQ,t.BQ]})},4522:(Ue,q,m)=>{"use strict";m.d(q,{lW:()=>S,ot:()=>P});var e=m(2560),t=m(207),_=m(4218);const E=["mat-button",""],s=["*"],k=["mat-button","mat-flat-button","mat-icon-button","mat-raised-button","mat-stroked-button","mat-mini-fab","mat-fab"],p=(0,t.pj)((0,t.Id)((0,t.Kr)(class{constructor(M){this._elementRef=M}})));class S extends p{constructor(z,I,W){super(z),this._focusMonitor=I,this._animationMode=W,this.isRoundButton=this._hasHostAttributes("mat-fab","mat-mini-fab"),this.isIconButton=this._hasHostAttributes("mat-icon-button");for(const Z of k)this._hasHostAttributes(Z)&&this._getHostElement().classList.add(Z);z.nativeElement.classList.add("mat-button-base"),this.isRoundButton&&(this.color="accent")}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0)}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef)}focus(z,I){z?this._focusMonitor.focusVia(this._getHostElement(),z,I):this._getHostElement().focus(I)}_getHostElement(){return this._elementRef.nativeElement}_isRippleDisabled(){return this.disableRipple||this.disabled}_hasHostAttributes(...z){return z.some(I=>this._getHostElement().hasAttribute(I))}}S.\u0275fac=function(z){return new(z||S)(e.Y36(e.SBq),e.Y36(_.tE),e.Y36(e.QbO,8))},S.\u0275cmp=e.Xpm({type:S,selectors:[["button","mat-button",""],["button","mat-raised-button",""],["button","mat-icon-button",""],["button","mat-fab",""],["button","mat-mini-fab",""],["button","mat-stroked-button",""],["button","mat-flat-button",""]],viewQuery:function(z,I){if(1&z&&e.Gf(t.wG,5),2&z){let W;e.iGM(W=e.CRH())&&(I.ripple=W.first)}},hostAttrs:[1,"mat-focus-indicator"],hostVars:5,hostBindings:function(z,I){2&z&&(e.uIk("disabled",I.disabled||null),e.ekj("_mat-animation-noopable","NoopAnimations"===I._animationMode)("mat-button-disabled",I.disabled))},inputs:{disabled:"disabled",disableRipple:"disableRipple",color:"color"},exportAs:["matButton"],features:[e.qOj],attrs:E,ngContentSelectors:s,decls:4,vars:5,consts:[[1,"mat-button-wrapper"],["matRipple","",1,"mat-button-ripple",3,"matRippleDisabled","matRippleCentered","matRippleTrigger"],[1,"mat-button-focus-overlay"]],template:function(z,I){1&z&&(e.F$t(),e.TgZ(0,"span",0),e.Hsn(1),e.qZA(),e._UZ(2,"span",1)(3,"span",2)),2&z&&(e.xp6(2),e.ekj("mat-button-ripple-round",I.isRoundButton||I.isIconButton),e.Q6J("matRippleDisabled",I._isRippleDisabled())("matRippleCentered",I.isIconButton)("matRippleTrigger",I._getHostElement()))},dependencies:[t.wG],styles:[".mat-button .mat-button-focus-overlay,.mat-icon-button .mat-button-focus-overlay{opacity:0}.mat-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay,.mat-stroked-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay{opacity:.04}@media(hover: none){.mat-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay,.mat-stroked-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay{opacity:0}}.mat-button,.mat-icon-button,.mat-stroked-button,.mat-flat-button{box-sizing:border-box;position:relative;-webkit-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:rgba(0,0,0,0);display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible}.mat-button::-moz-focus-inner,.mat-icon-button::-moz-focus-inner,.mat-stroked-button::-moz-focus-inner,.mat-flat-button::-moz-focus-inner{border:0}.mat-button.mat-button-disabled,.mat-icon-button.mat-button-disabled,.mat-stroked-button.mat-button-disabled,.mat-flat-button.mat-button-disabled{cursor:default}.mat-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-button.cdk-program-focused .mat-button-focus-overlay,.mat-icon-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-icon-button.cdk-program-focused .mat-button-focus-overlay,.mat-stroked-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-stroked-button.cdk-program-focused .mat-button-focus-overlay,.mat-flat-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-flat-button.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-button::-moz-focus-inner,.mat-icon-button::-moz-focus-inner,.mat-stroked-button::-moz-focus-inner,.mat-flat-button::-moz-focus-inner{border:0}.mat-raised-button{box-sizing:border-box;position:relative;-webkit-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:rgba(0,0,0,0);display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-raised-button::-moz-focus-inner{border:0}.mat-raised-button.mat-button-disabled{cursor:default}.mat-raised-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-raised-button.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-raised-button::-moz-focus-inner{border:0}.mat-raised-button._mat-animation-noopable{transition:none !important;animation:none !important}.mat-stroked-button{border:1px solid currentColor;padding:0 15px;line-height:34px}.mat-stroked-button .mat-button-ripple.mat-ripple,.mat-stroked-button .mat-button-focus-overlay{top:-1px;left:-1px;right:-1px;bottom:-1px}.mat-fab{box-sizing:border-box;position:relative;-webkit-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:rgba(0,0,0,0);display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);min-width:0;border-radius:50%;width:56px;height:56px;padding:0;flex-shrink:0}.mat-fab::-moz-focus-inner{border:0}.mat-fab.mat-button-disabled{cursor:default}.mat-fab.cdk-keyboard-focused .mat-button-focus-overlay,.mat-fab.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-fab::-moz-focus-inner{border:0}.mat-fab._mat-animation-noopable{transition:none !important;animation:none !important}.mat-fab .mat-button-wrapper{padding:16px 0;display:inline-block;line-height:24px}.mat-mini-fab{box-sizing:border-box;position:relative;-webkit-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:rgba(0,0,0,0);display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);min-width:0;border-radius:50%;width:40px;height:40px;padding:0;flex-shrink:0}.mat-mini-fab::-moz-focus-inner{border:0}.mat-mini-fab.mat-button-disabled{cursor:default}.mat-mini-fab.cdk-keyboard-focused .mat-button-focus-overlay,.mat-mini-fab.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-mini-fab::-moz-focus-inner{border:0}.mat-mini-fab._mat-animation-noopable{transition:none !important;animation:none !important}.mat-mini-fab .mat-button-wrapper{padding:8px 0;display:inline-block;line-height:24px}.mat-icon-button{padding:0;min-width:0;width:40px;height:40px;flex-shrink:0;line-height:40px;border-radius:50%}.mat-icon-button i,.mat-icon-button .mat-icon{line-height:24px}.mat-button-ripple.mat-ripple,.mat-button-focus-overlay{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-button-ripple.mat-ripple:not(:empty){transform:translateZ(0)}.mat-button-focus-overlay{opacity:0;transition:opacity 200ms cubic-bezier(0.35, 0, 0.25, 1),background-color 200ms cubic-bezier(0.35, 0, 0.25, 1)}._mat-animation-noopable .mat-button-focus-overlay{transition:none}.mat-button-ripple-round{border-radius:50%;z-index:1}.mat-button .mat-button-wrapper>*,.mat-flat-button .mat-button-wrapper>*,.mat-stroked-button .mat-button-wrapper>*,.mat-raised-button .mat-button-wrapper>*,.mat-icon-button .mat-button-wrapper>*,.mat-fab .mat-button-wrapper>*,.mat-mini-fab .mat-button-wrapper>*{vertical-align:middle}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon-button,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon-button{display:inline-flex;justify-content:center;align-items:center;font-size:inherit;width:2.5em;height:2.5em}.mat-flat-button::before,.mat-raised-button::before,.mat-fab::before,.mat-mini-fab::before{margin:calc(calc(var(--mat-focus-indicator-border-width, 3px) + 2px) * -1)}.mat-stroked-button::before{margin:calc(calc(var(--mat-focus-indicator-border-width, 3px) + 3px) * -1)}.cdk-high-contrast-active .mat-button,.cdk-high-contrast-active .mat-flat-button,.cdk-high-contrast-active .mat-raised-button,.cdk-high-contrast-active .mat-icon-button,.cdk-high-contrast-active .mat-fab,.cdk-high-contrast-active .mat-mini-fab{outline:solid 1px}"],encapsulation:2,changeDetection:0});class A extends S{constructor(z,I,W,Z){super(I,z,W),this._ngZone=Z,this._haltDisabledEvents=Q=>{this.disabled&&(Q.preventDefault(),Q.stopImmediatePropagation())}}ngAfterViewInit(){super.ngAfterViewInit(),this._ngZone?this._ngZone.runOutsideAngular(()=>{this._elementRef.nativeElement.addEventListener("click",this._haltDisabledEvents)}):this._elementRef.nativeElement.addEventListener("click",this._haltDisabledEvents)}ngOnDestroy(){super.ngOnDestroy(),this._elementRef.nativeElement.removeEventListener("click",this._haltDisabledEvents)}}A.\u0275fac=function(z){return new(z||A)(e.Y36(_.tE),e.Y36(e.SBq),e.Y36(e.QbO,8),e.Y36(e.R0b,8))},A.\u0275cmp=e.Xpm({type:A,selectors:[["a","mat-button",""],["a","mat-raised-button",""],["a","mat-icon-button",""],["a","mat-fab",""],["a","mat-mini-fab",""],["a","mat-stroked-button",""],["a","mat-flat-button",""]],hostAttrs:[1,"mat-focus-indicator"],hostVars:7,hostBindings:function(z,I){2&z&&(e.uIk("tabindex",I.disabled?-1:I.tabIndex)("disabled",I.disabled||null)("aria-disabled",I.disabled.toString()),e.ekj("_mat-animation-noopable","NoopAnimations"===I._animationMode)("mat-button-disabled",I.disabled))},inputs:{disabled:"disabled",disableRipple:"disableRipple",color:"color",tabIndex:"tabIndex"},exportAs:["matButton","matAnchor"],features:[e.qOj],attrs:E,ngContentSelectors:s,decls:4,vars:5,consts:[[1,"mat-button-wrapper"],["matRipple","",1,"mat-button-ripple",3,"matRippleDisabled","matRippleCentered","matRippleTrigger"],[1,"mat-button-focus-overlay"]],template:function(z,I){1&z&&(e.F$t(),e.TgZ(0,"span",0),e.Hsn(1),e.qZA(),e._UZ(2,"span",1)(3,"span",2)),2&z&&(e.xp6(2),e.ekj("mat-button-ripple-round",I.isRoundButton||I.isIconButton),e.Q6J("matRippleDisabled",I._isRippleDisabled())("matRippleCentered",I.isIconButton)("matRippleTrigger",I._getHostElement()))},dependencies:[t.wG],styles:[".mat-button .mat-button-focus-overlay,.mat-icon-button .mat-button-focus-overlay{opacity:0}.mat-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay,.mat-stroked-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay{opacity:.04}@media(hover: none){.mat-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay,.mat-stroked-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay{opacity:0}}.mat-button,.mat-icon-button,.mat-stroked-button,.mat-flat-button{box-sizing:border-box;position:relative;-webkit-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:rgba(0,0,0,0);display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible}.mat-button::-moz-focus-inner,.mat-icon-button::-moz-focus-inner,.mat-stroked-button::-moz-focus-inner,.mat-flat-button::-moz-focus-inner{border:0}.mat-button.mat-button-disabled,.mat-icon-button.mat-button-disabled,.mat-stroked-button.mat-button-disabled,.mat-flat-button.mat-button-disabled{cursor:default}.mat-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-button.cdk-program-focused .mat-button-focus-overlay,.mat-icon-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-icon-button.cdk-program-focused .mat-button-focus-overlay,.mat-stroked-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-stroked-button.cdk-program-focused .mat-button-focus-overlay,.mat-flat-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-flat-button.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-button::-moz-focus-inner,.mat-icon-button::-moz-focus-inner,.mat-stroked-button::-moz-focus-inner,.mat-flat-button::-moz-focus-inner{border:0}.mat-raised-button{box-sizing:border-box;position:relative;-webkit-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:rgba(0,0,0,0);display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-raised-button::-moz-focus-inner{border:0}.mat-raised-button.mat-button-disabled{cursor:default}.mat-raised-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-raised-button.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-raised-button::-moz-focus-inner{border:0}.mat-raised-button._mat-animation-noopable{transition:none !important;animation:none !important}.mat-stroked-button{border:1px solid currentColor;padding:0 15px;line-height:34px}.mat-stroked-button .mat-button-ripple.mat-ripple,.mat-stroked-button .mat-button-focus-overlay{top:-1px;left:-1px;right:-1px;bottom:-1px}.mat-fab{box-sizing:border-box;position:relative;-webkit-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:rgba(0,0,0,0);display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);min-width:0;border-radius:50%;width:56px;height:56px;padding:0;flex-shrink:0}.mat-fab::-moz-focus-inner{border:0}.mat-fab.mat-button-disabled{cursor:default}.mat-fab.cdk-keyboard-focused .mat-button-focus-overlay,.mat-fab.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-fab::-moz-focus-inner{border:0}.mat-fab._mat-animation-noopable{transition:none !important;animation:none !important}.mat-fab .mat-button-wrapper{padding:16px 0;display:inline-block;line-height:24px}.mat-mini-fab{box-sizing:border-box;position:relative;-webkit-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:rgba(0,0,0,0);display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);min-width:0;border-radius:50%;width:40px;height:40px;padding:0;flex-shrink:0}.mat-mini-fab::-moz-focus-inner{border:0}.mat-mini-fab.mat-button-disabled{cursor:default}.mat-mini-fab.cdk-keyboard-focused .mat-button-focus-overlay,.mat-mini-fab.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-mini-fab::-moz-focus-inner{border:0}.mat-mini-fab._mat-animation-noopable{transition:none !important;animation:none !important}.mat-mini-fab .mat-button-wrapper{padding:8px 0;display:inline-block;line-height:24px}.mat-icon-button{padding:0;min-width:0;width:40px;height:40px;flex-shrink:0;line-height:40px;border-radius:50%}.mat-icon-button i,.mat-icon-button .mat-icon{line-height:24px}.mat-button-ripple.mat-ripple,.mat-button-focus-overlay{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-button-ripple.mat-ripple:not(:empty){transform:translateZ(0)}.mat-button-focus-overlay{opacity:0;transition:opacity 200ms cubic-bezier(0.35, 0, 0.25, 1),background-color 200ms cubic-bezier(0.35, 0, 0.25, 1)}._mat-animation-noopable .mat-button-focus-overlay{transition:none}.mat-button-ripple-round{border-radius:50%;z-index:1}.mat-button .mat-button-wrapper>*,.mat-flat-button .mat-button-wrapper>*,.mat-stroked-button .mat-button-wrapper>*,.mat-raised-button .mat-button-wrapper>*,.mat-icon-button .mat-button-wrapper>*,.mat-fab .mat-button-wrapper>*,.mat-mini-fab .mat-button-wrapper>*{vertical-align:middle}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon-button,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon-button{display:inline-flex;justify-content:center;align-items:center;font-size:inherit;width:2.5em;height:2.5em}.mat-flat-button::before,.mat-raised-button::before,.mat-fab::before,.mat-mini-fab::before{margin:calc(calc(var(--mat-focus-indicator-border-width, 3px) + 2px) * -1)}.mat-stroked-button::before{margin:calc(calc(var(--mat-focus-indicator-border-width, 3px) + 3px) * -1)}.cdk-high-contrast-active .mat-button,.cdk-high-contrast-active .mat-flat-button,.cdk-high-contrast-active .mat-raised-button,.cdk-high-contrast-active .mat-icon-button,.cdk-high-contrast-active .mat-fab,.cdk-high-contrast-active .mat-mini-fab{outline:solid 1px}"],encapsulation:2,changeDetection:0});class P{}P.\u0275fac=function(z){return new(z||P)},P.\u0275mod=e.oAB({type:P}),P.\u0275inj=e.cJS({imports:[t.si,t.BQ,t.BQ]})},2156:(Ue,q,m)=>{"use strict";m.d(q,{$j:()=>A,QW:()=>ye,a8:()=>ae,dk:()=>_e,dn:()=>p,n5:()=>S});var e=m(2560),t=m(207);const _=["*",[["mat-card-footer"]]],s=[[["","mat-card-avatar",""],["","matCardAvatar",""]],[["mat-card-title"],["mat-card-subtitle"],["","mat-card-title",""],["","mat-card-subtitle",""],["","matCardTitle",""],["","matCardSubtitle",""]],"*"],D=["[mat-card-avatar], [matCardAvatar]","mat-card-title, mat-card-subtitle,\n [mat-card-title], [mat-card-subtitle],\n [matCardTitle], [matCardSubtitle]","*"],u=[[["mat-card-title"],["mat-card-subtitle"],["","mat-card-title",""],["","mat-card-subtitle",""],["","matCardTitle",""],["","matCardSubtitle",""]],[["img"]],"*"],k=["mat-card-title, mat-card-subtitle,\n [mat-card-title], [mat-card-subtitle],\n [matCardTitle], [matCardSubtitle]","img","*"];class p{}p.\u0275fac=function($){return new($||p)},p.\u0275dir=e.lG2({type:p,selectors:[["mat-card-content"],["","mat-card-content",""],["","matCardContent",""]],hostAttrs:[1,"mat-card-content"]});class S{}S.\u0275fac=function($){return new($||S)},S.\u0275dir=e.lG2({type:S,selectors:[["mat-card-title"],["","mat-card-title",""],["","matCardTitle",""]],hostAttrs:[1,"mat-card-title"]});class A{}A.\u0275fac=function($){return new($||A)},A.\u0275dir=e.lG2({type:A,selectors:[["mat-card-subtitle"],["","mat-card-subtitle",""],["","matCardSubtitle",""]],hostAttrs:[1,"mat-card-subtitle"]});class P{constructor(){this.align="start"}}P.\u0275fac=function($){return new($||P)},P.\u0275dir=e.lG2({type:P,selectors:[["mat-card-actions"]],hostAttrs:[1,"mat-card-actions"],hostVars:2,hostBindings:function($,he){2&$&&e.ekj("mat-card-actions-align-end","end"===he.align)},inputs:{align:"align"},exportAs:["matCardActions"]});class M{}M.\u0275fac=function($){return new($||M)},M.\u0275dir=e.lG2({type:M,selectors:[["mat-card-footer"]],hostAttrs:[1,"mat-card-footer"]});class z{}z.\u0275fac=function($){return new($||z)},z.\u0275dir=e.lG2({type:z,selectors:[["","mat-card-image",""],["","matCardImage",""]],hostAttrs:[1,"mat-card-image"]});class I{}I.\u0275fac=function($){return new($||I)},I.\u0275dir=e.lG2({type:I,selectors:[["","mat-card-sm-image",""],["","matCardImageSmall",""]],hostAttrs:[1,"mat-card-sm-image"]});class W{}W.\u0275fac=function($){return new($||W)},W.\u0275dir=e.lG2({type:W,selectors:[["","mat-card-md-image",""],["","matCardImageMedium",""]],hostAttrs:[1,"mat-card-md-image"]});class Z{}Z.\u0275fac=function($){return new($||Z)},Z.\u0275dir=e.lG2({type:Z,selectors:[["","mat-card-lg-image",""],["","matCardImageLarge",""]],hostAttrs:[1,"mat-card-lg-image"]});class Q{}Q.\u0275fac=function($){return new($||Q)},Q.\u0275dir=e.lG2({type:Q,selectors:[["","mat-card-xl-image",""],["","matCardImageXLarge",""]],hostAttrs:[1,"mat-card-xl-image"]});class ie{}ie.\u0275fac=function($){return new($||ie)},ie.\u0275dir=e.lG2({type:ie,selectors:[["","mat-card-avatar",""],["","matCardAvatar",""]],hostAttrs:[1,"mat-card-avatar"]});class ae{constructor($){this._animationMode=$}}ae.\u0275fac=function($){return new($||ae)(e.Y36(e.QbO,8))},ae.\u0275cmp=e.Xpm({type:ae,selectors:[["mat-card"]],hostAttrs:[1,"mat-card","mat-focus-indicator"],hostVars:2,hostBindings:function($,he){2&$&&e.ekj("_mat-animation-noopable","NoopAnimations"===he._animationMode)},exportAs:["matCard"],ngContentSelectors:["*","mat-card-footer"],decls:2,vars:0,template:function($,he){1&$&&(e.F$t(_),e.Hsn(0),e.Hsn(1,1))},styles:[".mat-card{transition:box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);display:block;position:relative;padding:16px;border-radius:4px}.mat-card._mat-animation-noopable{transition:none !important;animation:none !important}.mat-card>.mat-divider-horizontal{position:absolute;left:0;width:100%}[dir=rtl] .mat-card>.mat-divider-horizontal{left:auto;right:0}.mat-card>.mat-divider-horizontal.mat-divider-inset{position:static;margin:0}[dir=rtl] .mat-card>.mat-divider-horizontal.mat-divider-inset{margin-right:0}.cdk-high-contrast-active .mat-card{outline:solid 1px}.mat-card-actions,.mat-card-subtitle,.mat-card-content{display:block;margin-bottom:16px}.mat-card-title{display:block;margin-bottom:8px}.mat-card-actions{margin-left:-8px;margin-right:-8px;padding:8px 0}.mat-card-actions-align-end{display:flex;justify-content:flex-end}.mat-card-image{width:calc(100% + 32px);margin:0 -16px 16px -16px;display:block;overflow:hidden}.mat-card-image img{width:100%}.mat-card-footer{display:block;margin:0 -16px -16px -16px}.mat-card-actions .mat-button,.mat-card-actions .mat-raised-button,.mat-card-actions .mat-stroked-button{margin:0 8px}.mat-card-header{display:flex;flex-direction:row}.mat-card-header .mat-card-title{margin-bottom:12px}.mat-card-header-text{margin:0 16px}.mat-card-avatar{height:40px;width:40px;border-radius:50%;flex-shrink:0;object-fit:cover}.mat-card-title-group{display:flex;justify-content:space-between}.mat-card-sm-image{width:80px;height:80px}.mat-card-md-image{width:112px;height:112px}.mat-card-lg-image{width:152px;height:152px}.mat-card-xl-image{width:240px;height:240px;margin:-8px}.mat-card-title-group>.mat-card-xl-image{margin:-8px 0 8px}@media(max-width: 599px){.mat-card-title-group{margin:0}.mat-card-xl-image{margin-left:0;margin-right:0}}.mat-card>:first-child,.mat-card-content>:first-child{margin-top:0}.mat-card>:last-child:not(.mat-card-footer),.mat-card-content>:last-child:not(.mat-card-footer){margin-bottom:0}.mat-card-image:first-child{margin-top:-16px;border-top-left-radius:inherit;border-top-right-radius:inherit}.mat-card>.mat-card-actions:last-child{margin-bottom:-8px;padding-bottom:0}.mat-card-actions:not(.mat-card-actions-align-end) .mat-button:first-child,.mat-card-actions:not(.mat-card-actions-align-end) .mat-raised-button:first-child,.mat-card-actions:not(.mat-card-actions-align-end) .mat-stroked-button:first-child{margin-left:0;margin-right:0}.mat-card-actions-align-end .mat-button:last-child,.mat-card-actions-align-end .mat-raised-button:last-child,.mat-card-actions-align-end .mat-stroked-button:last-child{margin-left:0;margin-right:0}.mat-card-title:not(:first-child),.mat-card-subtitle:not(:first-child){margin-top:-4px}.mat-card-header .mat-card-subtitle:not(:first-child){margin-top:-8px}.mat-card>.mat-card-xl-image:first-child{margin-top:-8px}.mat-card>.mat-card-xl-image:last-child{margin-bottom:-8px}"],encapsulation:2,changeDetection:0});class _e{}_e.\u0275fac=function($){return new($||_e)},_e.\u0275cmp=e.Xpm({type:_e,selectors:[["mat-card-header"]],hostAttrs:[1,"mat-card-header"],ngContentSelectors:D,decls:4,vars:0,consts:[[1,"mat-card-header-text"]],template:function($,he){1&$&&(e.F$t(s),e.Hsn(0),e.TgZ(1,"div",0),e.Hsn(2,1),e.qZA(),e.Hsn(3,2))},encapsulation:2,changeDetection:0});class ce{}ce.\u0275fac=function($){return new($||ce)},ce.\u0275cmp=e.Xpm({type:ce,selectors:[["mat-card-title-group"]],hostAttrs:[1,"mat-card-title-group"],ngContentSelectors:k,decls:4,vars:0,template:function($,he){1&$&&(e.F$t(u),e.TgZ(0,"div"),e.Hsn(1),e.qZA(),e.Hsn(2,1),e.Hsn(3,2))},encapsulation:2,changeDetection:0});class ye{}ye.\u0275fac=function($){return new($||ye)},ye.\u0275mod=e.oAB({type:ye}),ye.\u0275inj=e.cJS({imports:[t.BQ,t.BQ]})},4792:(Ue,q,m)=>{"use strict";m.d(q,{oG:()=>ie,p9:()=>ye});var e=m(4218),t=m(8971),_=m(2560),E=m(2508),s=m(207),D=m(3773);const u=["input"],k=["label"],p=function(ue){return{enterDuration:ue}},A=new _.OlP("mat-checkbox-default-options",{providedIn:"root",factory:P});function P(){return{color:"accent",clickAction:"check-indeterminate"}}let M=0;const z={color:"accent",clickAction:"check-indeterminate"},I={provide:E.JU,useExisting:(0,_.Gpc)(()=>ie),multi:!0};class W{}const Z=(0,s.sb)((0,s.pj)((0,s.Kr)((0,s.Id)(class{constructor(ue){this._elementRef=ue}}))));class Q extends Z{constructor($,he,w,n,o,h,d){super(he),this._changeDetectorRef=w,this._ngZone=n,this._animationMode=h,this._options=d,this.ariaLabel="",this.ariaLabelledby=null,this.labelPosition="after",this.name=null,this.change=new _.vpe,this.indeterminateChange=new _.vpe,this._onTouched=()=>{},this._currentAnimationClass="",this._currentCheckState=0,this._controlValueAccessorChangeFn=()=>{},this._checked=!1,this._disabled=!1,this._indeterminate=!1,this._options=this._options||z,this.color=this.defaultColor=this._options.color||z.color,this.tabIndex=parseInt(o)||0,this.id=this._uniqueId=`${$}${++M}`}get inputId(){return`${this.id||this._uniqueId}-input`}get required(){return this._required}set required($){this._required=(0,t.Ig)($)}ngAfterViewInit(){this._syncIndeterminate(this._indeterminate)}get checked(){return this._checked}set checked($){const he=(0,t.Ig)($);he!=this.checked&&(this._checked=he,this._changeDetectorRef.markForCheck())}get disabled(){return this._disabled}set disabled($){const he=(0,t.Ig)($);he!==this.disabled&&(this._disabled=he,this._changeDetectorRef.markForCheck())}get indeterminate(){return this._indeterminate}set indeterminate($){const he=$!=this._indeterminate;this._indeterminate=(0,t.Ig)($),he&&(this._indeterminate?this._transitionCheckState(3):this._transitionCheckState(this.checked?1:2),this.indeterminateChange.emit(this._indeterminate)),this._syncIndeterminate(this._indeterminate)}_isRippleDisabled(){return this.disableRipple||this.disabled}_onLabelTextChange(){this._changeDetectorRef.detectChanges()}writeValue($){this.checked=!!$}registerOnChange($){this._controlValueAccessorChangeFn=$}registerOnTouched($){this._onTouched=$}setDisabledState($){this.disabled=$}_getAriaChecked(){return this.checked?"true":this.indeterminate?"mixed":"false"}_transitionCheckState($){let he=this._currentCheckState,w=this._getAnimationTargetElement();if(he!==$&&w&&(this._currentAnimationClass&&w.classList.remove(this._currentAnimationClass),this._currentAnimationClass=this._getAnimationClassForCheckStateTransition(he,$),this._currentCheckState=$,this._currentAnimationClass.length>0)){w.classList.add(this._currentAnimationClass);const n=this._currentAnimationClass;this._ngZone.runOutsideAngular(()=>{setTimeout(()=>{w.classList.remove(n)},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 $=this._options?.clickAction;this.disabled||"noop"===$?!this.disabled&&"noop"===$&&(this._inputElement.nativeElement.checked=this.checked,this._inputElement.nativeElement.indeterminate=this.indeterminate):(this.indeterminate&&"check"!==$&&Promise.resolve().then(()=>{this._indeterminate=!1,this.indeterminateChange.emit(this._indeterminate)}),this._checked=!this._checked,this._transitionCheckState(this._checked?1:2),this._emitChangeEvent())}_onInteractionEvent($){$.stopPropagation()}_onBlur(){Promise.resolve().then(()=>{this._onTouched(),this._changeDetectorRef.markForCheck()})}_getAnimationClassForCheckStateTransition($,he){if("NoopAnimations"===this._animationMode)return"";switch($){case 0:if(1===he)return this._animationClasses.uncheckedToChecked;if(3==he)return this._checked?this._animationClasses.checkedToIndeterminate:this._animationClasses.uncheckedToIndeterminate;break;case 2:return 1===he?this._animationClasses.uncheckedToChecked:this._animationClasses.uncheckedToIndeterminate;case 1:return 2===he?this._animationClasses.checkedToUnchecked:this._animationClasses.checkedToIndeterminate;case 3:return 1===he?this._animationClasses.indeterminateToChecked:this._animationClasses.indeterminateToUnchecked}return""}_syncIndeterminate($){const he=this._inputElement;he&&(he.nativeElement.indeterminate=$)}}Q.\u0275fac=function($){_.$Z()},Q.\u0275dir=_.lG2({type:Q,viewQuery:function($,he){if(1&$&&(_.Gf(u,5),_.Gf(k,5),_.Gf(s.wG,5)),2&$){let w;_.iGM(w=_.CRH())&&(he._inputElement=w.first),_.iGM(w=_.CRH())&&(he._labelElement=w.first),_.iGM(w=_.CRH())&&(he.ripple=w.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:[_.qOj]});class ie extends Q{constructor($,he,w,n,o,h,d){super("mat-checkbox-",$,he,n,o,h,d),this._focusMonitor=w,this._animationClasses={uncheckedToChecked:"mat-checkbox-anim-unchecked-checked",uncheckedToIndeterminate:"mat-checkbox-anim-unchecked-indeterminate",checkedToUnchecked:"mat-checkbox-anim-checked-unchecked",checkedToIndeterminate:"mat-checkbox-anim-checked-indeterminate",indeterminateToChecked:"mat-checkbox-anim-indeterminate-checked",indeterminateToUnchecked:"mat-checkbox-anim-indeterminate-unchecked"}}_createChangeEvent($){const he=new W;return he.source=this,he.checked=$,he}_getAnimationTargetElement(){return this._elementRef.nativeElement}ngAfterViewInit(){super.ngAfterViewInit(),this._focusMonitor.monitor(this._elementRef,!0).subscribe($=>{$||this._onBlur()})}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef)}_onInputClick($){$.stopPropagation(),super._handleInputClick()}focus($,he){$?this._focusMonitor.focusVia(this._inputElement,$,he):this._inputElement.nativeElement.focus(he)}}ie.\u0275fac=function($){return new($||ie)(_.Y36(_.SBq),_.Y36(_.sBO),_.Y36(e.tE),_.Y36(_.R0b),_.$8M("tabindex"),_.Y36(_.QbO,8),_.Y36(A,8))},ie.\u0275cmp=_.Xpm({type:ie,selectors:[["mat-checkbox"]],hostAttrs:[1,"mat-checkbox"],hostVars:14,hostBindings:function($,he){2&$&&(_.Ikx("id",he.id),_.uIk("tabindex",null)("aria-label",null)("aria-labelledby",null),_.ekj("mat-checkbox-indeterminate",he.indeterminate)("mat-checkbox-checked",he.checked)("mat-checkbox-disabled",he.disabled)("mat-checkbox-label-before","before"==he.labelPosition)("_mat-animation-noopable","NoopAnimations"===he._animationMode))},inputs:{disableRipple:"disableRipple",color:"color",tabIndex:"tabIndex"},exportAs:["matCheckbox"],features:[_._Bn([I]),_.qOj],ngContentSelectors:["*"],decls:17,vars:21,consts:[[1,"mat-checkbox-layout"],["label",""],[1,"mat-checkbox-inner-container"],["type","checkbox",1,"mat-checkbox-input","cdk-visually-hidden",3,"id","required","checked","disabled","tabIndex","change","click"],["input",""],["matRipple","",1,"mat-checkbox-ripple","mat-focus-indicator",3,"matRippleTrigger","matRippleDisabled","matRippleRadius","matRippleCentered","matRippleAnimation"],[1,"mat-ripple-element","mat-checkbox-persistent-ripple"],[1,"mat-checkbox-frame"],[1,"mat-checkbox-background"],["version","1.1","focusable","false","viewBox","0 0 24 24","aria-hidden","true",1,"mat-checkbox-checkmark"],["fill","none","stroke","white","d","M4.1,12.7 9,17.6 20.3,6.3",1,"mat-checkbox-checkmark-path"],[1,"mat-checkbox-mixedmark"],[1,"mat-checkbox-label",3,"cdkObserveContent"],["checkboxLabel",""],[2,"display","none"]],template:function($,he){if(1&$&&(_.F$t(),_.TgZ(0,"label",0,1)(2,"span",2)(3,"input",3,4),_.NdJ("change",function(n){return he._onInteractionEvent(n)})("click",function(n){return he._onInputClick(n)}),_.qZA(),_.TgZ(5,"span",5),_._UZ(6,"span",6),_.qZA(),_._UZ(7,"span",7),_.TgZ(8,"span",8),_.O4$(),_.TgZ(9,"svg",9),_._UZ(10,"path",10),_.qZA(),_.kcU(),_._UZ(11,"span",11),_.qZA()(),_.TgZ(12,"span",12,13),_.NdJ("cdkObserveContent",function(){return he._onLabelTextChange()}),_.TgZ(14,"span",14),_._uU(15,"\xa0"),_.qZA(),_.Hsn(16),_.qZA()()),2&$){const w=_.MAs(1),n=_.MAs(13);_.uIk("for",he.inputId),_.xp6(2),_.ekj("mat-checkbox-inner-container-no-side-margin",!n.textContent||!n.textContent.trim()),_.xp6(1),_.Q6J("id",he.inputId)("required",he.required)("checked",he.checked)("disabled",he.disabled)("tabIndex",he.tabIndex),_.uIk("value",he.value)("name",he.name)("aria-label",he.ariaLabel||null)("aria-labelledby",he.ariaLabelledby)("aria-checked",he._getAriaChecked())("aria-describedby",he.ariaDescribedby),_.xp6(2),_.Q6J("matRippleTrigger",w)("matRippleDisabled",he._isRippleDisabled())("matRippleRadius",20)("matRippleCentered",!0)("matRippleAnimation",_.VKq(19,p,"NoopAnimations"===he._animationMode?0:150))}},dependencies:[s.wG,D.wD],styles:['@keyframes mat-checkbox-fade-in-background{0%{opacity:0}50%{opacity:1}}@keyframes mat-checkbox-fade-out-background{0%,50%{opacity:1}100%{opacity:0}}@keyframes mat-checkbox-unchecked-checked-checkmark-path{0%,50%{stroke-dashoffset:22.910259}50%{animation-timing-function:cubic-bezier(0, 0, 0.2, 0.1)}100%{stroke-dashoffset:0}}@keyframes mat-checkbox-unchecked-indeterminate-mixedmark{0%,68.2%{transform:scaleX(0)}68.2%{animation-timing-function:cubic-bezier(0, 0, 0, 1)}100%{transform:scaleX(1)}}@keyframes mat-checkbox-checked-unchecked-checkmark-path{from{animation-timing-function:cubic-bezier(0.4, 0, 1, 1);stroke-dashoffset:0}to{stroke-dashoffset:-22.910259}}@keyframes mat-checkbox-checked-indeterminate-checkmark{from{animation-timing-function:cubic-bezier(0, 0, 0.2, 0.1);opacity:1;transform:rotate(0deg)}to{opacity:0;transform:rotate(45deg)}}@keyframes mat-checkbox-indeterminate-checked-checkmark{from{animation-timing-function:cubic-bezier(0.14, 0, 0, 1);opacity:0;transform:rotate(45deg)}to{opacity:1;transform:rotate(360deg)}}@keyframes mat-checkbox-checked-indeterminate-mixedmark{from{animation-timing-function:cubic-bezier(0, 0, 0.2, 0.1);opacity:0;transform:rotate(-45deg)}to{opacity:1;transform:rotate(0deg)}}@keyframes mat-checkbox-indeterminate-checked-mixedmark{from{animation-timing-function:cubic-bezier(0.14, 0, 0, 1);opacity:1;transform:rotate(0deg)}to{opacity:0;transform:rotate(315deg)}}@keyframes mat-checkbox-indeterminate-unchecked-mixedmark{0%{animation-timing-function:linear;opacity:1;transform:scaleX(1)}32.8%,100%{opacity:0;transform:scaleX(0)}}.mat-checkbox-background,.mat-checkbox-frame{top:0;left:0;right:0;bottom:0;position:absolute;border-radius:2px;box-sizing:border-box;pointer-events:none}.mat-checkbox{display:inline-block;transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);cursor:pointer;-webkit-tap-highlight-color:rgba(0,0,0,0);position:relative}.mat-checkbox._mat-animation-noopable{transition:none !important;animation:none !important}.mat-checkbox .mat-ripple-element:not(.mat-checkbox-persistent-ripple){opacity:.16}.mat-checkbox .mat-checkbox-ripple{position:absolute;left:calc(50% - 20px);top:calc(50% - 20px);height:40px;width:40px;z-index:1;pointer-events:none}.mat-checkbox-layout{-webkit-user-select:none;user-select:none;cursor:inherit;align-items:baseline;vertical-align:middle;display:inline-flex;white-space:nowrap}.mat-checkbox-label{-webkit-user-select:auto;user-select:auto}.mat-checkbox-inner-container{display:inline-block;height:16px;line-height:0;margin:auto;margin-right:8px;order:0;position:relative;vertical-align:middle;white-space:nowrap;width:16px;flex-shrink:0}[dir=rtl] .mat-checkbox-inner-container{margin-left:8px;margin-right:auto}.mat-checkbox-inner-container-no-side-margin{margin-left:0;margin-right:0}.mat-checkbox-frame{background-color:rgba(0,0,0,0);transition:border-color 90ms cubic-bezier(0, 0, 0.2, 0.1);border-width:2px;border-style:solid}._mat-animation-noopable .mat-checkbox-frame{transition:none}.mat-checkbox-background{align-items:center;display:inline-flex;justify-content:center;transition:background-color 90ms cubic-bezier(0, 0, 0.2, 0.1),opacity 90ms cubic-bezier(0, 0, 0.2, 0.1);-webkit-print-color-adjust:exact;color-adjust:exact}._mat-animation-noopable .mat-checkbox-background{transition:none}.cdk-high-contrast-active .mat-checkbox .mat-checkbox-background{background:none}.mat-checkbox-persistent-ripple{display:block;width:100%;height:100%;transform:none}.mat-checkbox-inner-container:hover .mat-checkbox-persistent-ripple{opacity:.04}.mat-checkbox.cdk-keyboard-focused .mat-checkbox-persistent-ripple{opacity:.12}.mat-checkbox-persistent-ripple,.mat-checkbox.mat-checkbox-disabled .mat-checkbox-inner-container:hover .mat-checkbox-persistent-ripple{opacity:0}@media(hover: none){.mat-checkbox-inner-container:hover .mat-checkbox-persistent-ripple{display:none}}.mat-checkbox-checkmark{top:0;left:0;right:0;bottom:0;position:absolute;width:100%}.mat-checkbox-checkmark-path{stroke-dashoffset:22.910259;stroke-dasharray:22.910259;stroke-width:2.1333333333px}.cdk-high-contrast-black-on-white .mat-checkbox-checkmark-path{stroke:#000 !important}.mat-checkbox-mixedmark{width:calc(100% - 6px);height:2px;opacity:0;transform:scaleX(0) rotate(0deg);border-radius:2px}.cdk-high-contrast-active .mat-checkbox-mixedmark{height:0;border-top:solid 2px;margin-top:2px}.mat-checkbox-label-before .mat-checkbox-inner-container{order:1;margin-left:8px;margin-right:auto}[dir=rtl] .mat-checkbox-label-before .mat-checkbox-inner-container{margin-left:auto;margin-right:8px}.mat-checkbox-checked .mat-checkbox-checkmark{opacity:1}.mat-checkbox-checked .mat-checkbox-checkmark-path{stroke-dashoffset:0}.mat-checkbox-checked .mat-checkbox-mixedmark{transform:scaleX(1) rotate(-45deg)}.mat-checkbox-indeterminate .mat-checkbox-checkmark{opacity:0;transform:rotate(45deg)}.mat-checkbox-indeterminate .mat-checkbox-checkmark-path{stroke-dashoffset:0}.mat-checkbox-indeterminate .mat-checkbox-mixedmark{opacity:1;transform:scaleX(1) rotate(0deg)}.mat-checkbox-unchecked .mat-checkbox-background{background-color:rgba(0,0,0,0)}.mat-checkbox-disabled{cursor:default}.cdk-high-contrast-active .mat-checkbox-disabled{opacity:.5}.mat-checkbox-anim-unchecked-checked .mat-checkbox-background{animation:180ms linear 0ms mat-checkbox-fade-in-background}.mat-checkbox-anim-unchecked-checked .mat-checkbox-checkmark-path{animation:180ms linear 0ms mat-checkbox-unchecked-checked-checkmark-path}.mat-checkbox-anim-unchecked-indeterminate .mat-checkbox-background{animation:180ms linear 0ms mat-checkbox-fade-in-background}.mat-checkbox-anim-unchecked-indeterminate .mat-checkbox-mixedmark{animation:90ms linear 0ms mat-checkbox-unchecked-indeterminate-mixedmark}.mat-checkbox-anim-checked-unchecked .mat-checkbox-background{animation:180ms linear 0ms mat-checkbox-fade-out-background}.mat-checkbox-anim-checked-unchecked .mat-checkbox-checkmark-path{animation:90ms linear 0ms mat-checkbox-checked-unchecked-checkmark-path}.mat-checkbox-anim-checked-indeterminate .mat-checkbox-checkmark{animation:90ms linear 0ms mat-checkbox-checked-indeterminate-checkmark}.mat-checkbox-anim-checked-indeterminate .mat-checkbox-mixedmark{animation:90ms linear 0ms mat-checkbox-checked-indeterminate-mixedmark}.mat-checkbox-anim-indeterminate-checked .mat-checkbox-checkmark{animation:500ms linear 0ms mat-checkbox-indeterminate-checked-checkmark}.mat-checkbox-anim-indeterminate-checked .mat-checkbox-mixedmark{animation:500ms linear 0ms mat-checkbox-indeterminate-checked-mixedmark}.mat-checkbox-anim-indeterminate-unchecked .mat-checkbox-background{animation:180ms linear 0ms mat-checkbox-fade-out-background}.mat-checkbox-anim-indeterminate-unchecked .mat-checkbox-mixedmark{animation:300ms linear 0ms mat-checkbox-indeterminate-unchecked-mixedmark}.mat-checkbox-input{bottom:0;left:50%}.mat-checkbox-input:focus~.mat-focus-indicator::before{content:""}'],encapsulation:2,changeDetection:0});const ae={provide:E.Cf,useExisting:(0,_.Gpc)(()=>_e),multi:!0};class _e extends E.Zs{}_e.\u0275fac=function(){let ue;return function(he){return(ue||(ue=_.n5z(_e)))(he||_e)}}(),_e.\u0275dir=_.lG2({type:_e,selectors:[["mat-checkbox","required","","formControlName",""],["mat-checkbox","required","","formControl",""],["mat-checkbox","required","","ngModel",""]],features:[_._Bn([ae]),_.qOj]});class ce{}ce.\u0275fac=function($){return new($||ce)},ce.\u0275mod=_.oAB({type:ce}),ce.\u0275inj=_.cJS({});class ye{}ye.\u0275fac=function($){return new($||ye)},ye.\u0275mod=_.oAB({type:ye}),ye.\u0275inj=_.cJS({imports:[s.si,s.BQ,D.Q8,ce,s.BQ,ce]})},1169:(Ue,q,m)=>{"use strict";m.d(q,{HS:()=>he,Hi:()=>a,qn:()=>y});var e=m(8456),t=m(2560),_=m(207),E=m(8971),s=m(9107),D=m(4666),u=m(253),k=m(6646),p=m(9295),S=m(8951),A=m(4874),P=m(4218),M=m(2867),z=m(1755),I=m(2508),W=m(5074);const ie=new t.OlP("MatChipRemove"),ae=new t.OlP("MatChipAvatar"),_e=new t.OlP("MatChipTrailingIcon");const ye=(0,_.sb)((0,_.pj)((0,_.Kr)(class ce{constructor(N){this._elementRef=N}}),"primary"),-1);class ue{}ue.\u0275fac=function(N){return new(N||ue)},ue.\u0275dir=t.lG2({type:ue,selectors:[["mat-chip-avatar"],["","matChipAvatar",""]],hostAttrs:[1,"mat-chip-avatar"],features:[t._Bn([{provide:ae,useExisting:ue}])]});class ${}$.\u0275fac=function(N){return new(N||$)},$.\u0275dir=t.lG2({type:$,selectors:[["mat-chip-trailing-icon"],["","matChipTrailingIcon",""]],hostAttrs:[1,"mat-chip-trailing-icon"],features:[t._Bn([{provide:_e,useExisting:$}])]});class he extends ye{constructor(N,F,X,Fe,ke,Ke,je,Ve){super(N),this._ngZone=F,this._changeDetectorRef=ke,this._hasFocus=!1,this.chipListSelectable=!0,this._chipListMultiple=!1,this._chipListDisabled=!1,this.role="option",this._selected=!1,this._selectable=!0,this._disabled=!1,this._removable=!0,this._onFocus=new u.x,this._onBlur=new u.x,this.selectionChange=new t.vpe,this.destroyed=new t.vpe,this.removed=new t.vpe,this._addHostClassName(),this._chipRippleTarget=Ke.createElement("div"),this._chipRippleTarget.classList.add("mat-chip-ripple"),this._elementRef.nativeElement.appendChild(this._chipRippleTarget),this._chipRipple=new _.IR(this,F,this._chipRippleTarget,X),this._chipRipple.setupTriggerEvents(N),this.rippleConfig=Fe||{},this._animationsDisabled="NoopAnimations"===je,this.tabIndex=null!=Ve&&parseInt(Ve)||-1}get rippleDisabled(){return this.disabled||this.disableRipple||this._animationsDisabled||!!this.rippleConfig.disabled}get selected(){return this._selected}set selected(N){const F=(0,E.Ig)(N);F!==this._selected&&(this._selected=F,this._dispatchSelectionChange())}get value(){return void 0!==this._value?this._value:this._elementRef.nativeElement.textContent}set value(N){this._value=N}get selectable(){return this._selectable&&this.chipListSelectable}set selectable(N){this._selectable=(0,E.Ig)(N)}get disabled(){return this._chipListDisabled||this._disabled}set disabled(N){this._disabled=(0,E.Ig)(N)}get removable(){return this._removable}set removable(N){this._removable=(0,E.Ig)(N)}get ariaSelected(){return this.selectable&&(this._chipListMultiple||this.selected)?this.selected.toString():null}_addHostClassName(){const N="mat-basic-chip",F=this._elementRef.nativeElement;F.hasAttribute(N)||F.tagName.toLowerCase()===N?F.classList.add(N):F.classList.add("mat-standard-chip")}ngOnDestroy(){this.destroyed.emit({chip:this}),this._chipRipple._removeTriggerEvents()}select(){this._selected||(this._selected=!0,this._dispatchSelectionChange(),this._changeDetectorRef.markForCheck())}deselect(){this._selected&&(this._selected=!1,this._dispatchSelectionChange(),this._changeDetectorRef.markForCheck())}selectViaInteraction(){this._selected||(this._selected=!0,this._dispatchSelectionChange(!0),this._changeDetectorRef.markForCheck())}toggleSelected(N=!1){return this._selected=!this.selected,this._dispatchSelectionChange(N),this._changeDetectorRef.markForCheck(),this.selected}focus(){this._hasFocus||(this._elementRef.nativeElement.focus(),this._onFocus.next({chip:this})),this._hasFocus=!0}remove(){this.removable&&this.removed.emit({chip:this})}_handleClick(N){this.disabled&&N.preventDefault()}_handleKeydown(N){if(!this.disabled)switch(N.keyCode){case e.yY:case e.ZH:this.remove(),N.preventDefault();break;case e.L_:this.selectable&&this.toggleSelected(!0),N.preventDefault()}}_blur(){this._ngZone.onStable.pipe((0,p.q)(1)).subscribe(()=>{this._ngZone.run(()=>{this._hasFocus=!1,this._onBlur.next({chip:this})})})}_dispatchSelectionChange(N=!1){this.selectionChange.emit({source:this,isUserInput:N,selected:this._selected})}}he.\u0275fac=function(N){return new(N||he)(t.Y36(t.SBq),t.Y36(t.R0b),t.Y36(s.t4),t.Y36(_.Y2,8),t.Y36(t.sBO),t.Y36(D.K0),t.Y36(t.QbO,8),t.$8M("tabindex"))},he.\u0275dir=t.lG2({type:he,selectors:[["mat-basic-chip"],["","mat-basic-chip",""],["mat-chip"],["","mat-chip",""]],contentQueries:function(N,F,X){if(1&N&&(t.Suo(X,ae,5),t.Suo(X,_e,5),t.Suo(X,ie,5)),2&N){let Fe;t.iGM(Fe=t.CRH())&&(F.avatar=Fe.first),t.iGM(Fe=t.CRH())&&(F.trailingIcon=Fe.first),t.iGM(Fe=t.CRH())&&(F.removeIcon=Fe.first)}},hostAttrs:[1,"mat-chip","mat-focus-indicator"],hostVars:15,hostBindings:function(N,F){1&N&&t.NdJ("click",function(Fe){return F._handleClick(Fe)})("keydown",function(Fe){return F._handleKeydown(Fe)})("focus",function(){return F.focus()})("blur",function(){return F._blur()}),2&N&&(t.uIk("tabindex",F.disabled?null:F.tabIndex)("role",F.role)("disabled",F.disabled||null)("aria-disabled",F.disabled.toString())("aria-selected",F.ariaSelected),t.ekj("mat-chip-selected",F.selected)("mat-chip-with-avatar",F.avatar)("mat-chip-with-trailing-icon",F.trailingIcon||F.removeIcon)("mat-chip-disabled",F.disabled)("_mat-animation-noopable",F._animationsDisabled))},inputs:{color:"color",disableRipple:"disableRipple",tabIndex:"tabIndex",role:"role",selected:"selected",value:"value",selectable:"selectable",disabled:"disabled",removable:"removable"},outputs:{selectionChange:"selectionChange",destroyed:"destroyed",removed:"removed"},exportAs:["matChip"],features:[t.qOj]});class w{constructor(N,F){this._parentChip=N,"BUTTON"===F.nativeElement.nodeName&&F.nativeElement.setAttribute("type","button")}_handleClick(N){const F=this._parentChip;F.removable&&!F.disabled&&F.remove(),N.stopPropagation(),N.preventDefault()}}w.\u0275fac=function(N){return new(N||w)(t.Y36(he),t.Y36(t.SBq))},w.\u0275dir=t.lG2({type:w,selectors:[["","matChipRemove",""]],hostAttrs:[1,"mat-chip-remove","mat-chip-trailing-icon"],hostBindings:function(N,F){1&N&&t.NdJ("click",function(Fe){return F._handleClick(Fe)})},features:[t._Bn([{provide:ie,useExisting:w}])]});const n=new t.OlP("mat-chips-default-options"),o=(0,_.FD)(class{constructor(C,N,F,X){this._defaultErrorStateMatcher=C,this._parentForm=N,this._parentFormGroup=F,this.ngControl=X,this.stateChanges=new u.x}});let h=0;class d{constructor(N,F){this.source=N,this.value=F}}class y extends o{constructor(N,F,X,Fe,ke,Ke,je){super(Ke,Fe,ke,je),this._elementRef=N,this._changeDetectorRef=F,this._dir=X,this.controlType="mat-chip-list",this._lastDestroyedChipIndex=null,this._destroyed=new u.x,this._uid="mat-chip-list-"+h++,this._tabIndex=0,this._userTabIndex=null,this._onTouched=()=>{},this._onChange=()=>{},this._multiple=!1,this._compareWith=(Ve,xe)=>Ve===xe,this._disabled=!1,this.ariaOrientation="horizontal",this._selectable=!0,this.change=new t.vpe,this.valueChange=new t.vpe,this.ngControl&&(this.ngControl.valueAccessor=this)}get selected(){return this.multiple?this._selectionModel?.selected||[]:this._selectionModel?.selected[0]}get role(){return this._explicitRole?this._explicitRole:this.empty?null:"listbox"}set role(N){this._explicitRole=N}get multiple(){return this._multiple}set multiple(N){this._multiple=(0,E.Ig)(N),this._syncChipsState()}get compareWith(){return this._compareWith}set compareWith(N){this._compareWith=N,this._selectionModel&&this._initializeSelection()}get value(){return this._value}set value(N){this.writeValue(N),this._value=N}get id(){return this._chipInput?this._chipInput.id:this._uid}get required(){return this._required??this.ngControl?.control?.hasValidator(I.kI.required)??!1}set required(N){this._required=(0,E.Ig)(N),this.stateChanges.next()}get placeholder(){return this._chipInput?this._chipInput.placeholder:this._placeholder}set placeholder(N){this._placeholder=N,this.stateChanges.next()}get focused(){return this._chipInput&&this._chipInput.focused||this._hasFocusedChip()}get empty(){return(!this._chipInput||this._chipInput.empty)&&(!this.chips||0===this.chips.length)}get shouldLabelFloat(){return!this.empty||this.focused}get disabled(){return this.ngControl?!!this.ngControl.disabled:this._disabled}set disabled(N){this._disabled=(0,E.Ig)(N),this._syncChipsState()}get selectable(){return this._selectable}set selectable(N){this._selectable=(0,E.Ig)(N),this._syncChipsState()}set tabIndex(N){this._userTabIndex=N,this._tabIndex=N}get chipSelectionChanges(){return(0,k.T)(...this.chips.map(N=>N.selectionChange))}get chipFocusChanges(){return(0,k.T)(...this.chips.map(N=>N._onFocus))}get chipBlurChanges(){return(0,k.T)(...this.chips.map(N=>N._onBlur))}get chipRemoveChanges(){return(0,k.T)(...this.chips.map(N=>N.destroyed))}ngAfterContentInit(){this._keyManager=new P.Em(this.chips).withWrap().withVerticalOrientation().withHomeAndEnd().withHorizontalOrientation(this._dir?this._dir.value:"ltr"),this._dir&&this._dir.change.pipe((0,S.R)(this._destroyed)).subscribe(N=>this._keyManager.withHorizontalOrientation(N)),this._keyManager.tabOut.pipe((0,S.R)(this._destroyed)).subscribe(()=>{this._allowFocusEscape()}),this.chips.changes.pipe((0,A.O)(null),(0,S.R)(this._destroyed)).subscribe(()=>{(this.disabled||!this.selectable)&&Promise.resolve().then(()=>{this._syncChipsState()}),this._resetChips(),this._initializeSelection(),this._updateTabIndex(),this._updateFocusForDestroyedChips(),this.stateChanges.next()})}ngOnInit(){this._selectionModel=new z.Ov(this.multiple,void 0,!1),this.stateChanges.next()}ngDoCheck(){this.ngControl&&(this.updateErrorState(),this.ngControl.disabled!==this._disabled&&(this.disabled=!!this.ngControl.disabled))}ngOnDestroy(){this._destroyed.next(),this._destroyed.complete(),this.stateChanges.complete(),this._dropSubscriptions()}registerInput(N){this._chipInput=N,this._elementRef.nativeElement.setAttribute("data-mat-chip-input",N.id)}setDescribedByIds(N){N.length?this._elementRef.nativeElement.setAttribute("aria-describedby",N.join(" ")):this._elementRef.nativeElement.removeAttribute("aria-describedby")}writeValue(N){this.chips&&this._setSelectionByValue(N,!1)}registerOnChange(N){this._onChange=N}registerOnTouched(N){this._onTouched=N}setDisabledState(N){this.disabled=N,this.stateChanges.next()}onContainerClick(N){this._originatesFromChip(N)||this.focus()}focus(N){this.disabled||this._chipInput&&this._chipInput.focused||(this.chips.length>0?(this._keyManager.setFirstItemActive(),this.stateChanges.next()):(this._focusInput(N),this.stateChanges.next()))}_focusInput(N){this._chipInput&&this._chipInput.focus(N)}_keydown(N){const F=N.target;F&&F.classList.contains("mat-chip")&&(this._keyManager.onKeydown(N),this.stateChanges.next())}_updateTabIndex(){this._tabIndex=this._userTabIndex||(0===this.chips.length?-1:0)}_updateFocusForDestroyedChips(){if(null!=this._lastDestroyedChipIndex)if(this.chips.length){const N=Math.min(this._lastDestroyedChipIndex,this.chips.length-1);this._keyManager.setActiveItem(N)}else this.focus();this._lastDestroyedChipIndex=null}_isValidIndex(N){return N>=0&&N<this.chips.length}_setSelectionByValue(N,F=!0){if(this._clearSelection(),this.chips.forEach(X=>X.deselect()),Array.isArray(N))N.forEach(X=>this._selectValue(X,F)),this._sortValues();else{const X=this._selectValue(N,F);X&&F&&this._keyManager.setActiveItem(X)}}_selectValue(N,F=!0){const X=this.chips.find(Fe=>null!=Fe.value&&this._compareWith(Fe.value,N));return X&&(F?X.selectViaInteraction():X.select(),this._selectionModel.select(X)),X}_initializeSelection(){Promise.resolve().then(()=>{(this.ngControl||this._value)&&(this._setSelectionByValue(this.ngControl?this.ngControl.value:this._value,!1),this.stateChanges.next())})}_clearSelection(N){this._selectionModel.clear(),this.chips.forEach(F=>{F!==N&&F.deselect()}),this.stateChanges.next()}_sortValues(){this._multiple&&(this._selectionModel.clear(),this.chips.forEach(N=>{N.selected&&this._selectionModel.select(N)}),this.stateChanges.next())}_propagateChanges(N){let F=null;F=Array.isArray(this.selected)?this.selected.map(X=>X.value):this.selected?this.selected.value:N,this._value=F,this.change.emit(new d(this,F)),this.valueChange.emit(F),this._onChange(F),this._changeDetectorRef.markForCheck()}_blur(){this._hasFocusedChip()||this._keyManager.setActiveItem(-1),this.disabled||(this._chipInput?setTimeout(()=>{this.focused||this._markAsTouched()}):this._markAsTouched())}_markAsTouched(){this._onTouched(),this._changeDetectorRef.markForCheck(),this.stateChanges.next()}_allowFocusEscape(){-1!==this._tabIndex&&(this._tabIndex=-1,setTimeout(()=>{this._tabIndex=this._userTabIndex||0,this._changeDetectorRef.markForCheck()}))}_resetChips(){this._dropSubscriptions(),this._listenToChipsFocus(),this._listenToChipsSelection(),this._listenToChipsRemoved()}_dropSubscriptions(){this._chipFocusSubscription&&(this._chipFocusSubscription.unsubscribe(),this._chipFocusSubscription=null),this._chipBlurSubscription&&(this._chipBlurSubscription.unsubscribe(),this._chipBlurSubscription=null),this._chipSelectionSubscription&&(this._chipSelectionSubscription.unsubscribe(),this._chipSelectionSubscription=null),this._chipRemoveSubscription&&(this._chipRemoveSubscription.unsubscribe(),this._chipRemoveSubscription=null)}_listenToChipsSelection(){this._chipSelectionSubscription=this.chipSelectionChanges.subscribe(N=>{N.source.selected?this._selectionModel.select(N.source):this._selectionModel.deselect(N.source),this.multiple||this.chips.forEach(F=>{!this._selectionModel.isSelected(F)&&F.selected&&F.deselect()}),N.isUserInput&&this._propagateChanges()})}_listenToChipsFocus(){this._chipFocusSubscription=this.chipFocusChanges.subscribe(N=>{let F=this.chips.toArray().indexOf(N.chip);this._isValidIndex(F)&&this._keyManager.updateActiveItem(F),this.stateChanges.next()}),this._chipBlurSubscription=this.chipBlurChanges.subscribe(()=>{this._blur(),this.stateChanges.next()})}_listenToChipsRemoved(){this._chipRemoveSubscription=this.chipRemoveChanges.subscribe(N=>{const F=N.chip,X=this.chips.toArray().indexOf(N.chip);this._isValidIndex(X)&&F._hasFocus&&(this._lastDestroyedChipIndex=X)})}_originatesFromChip(N){let F=N.target;for(;F&&F!==this._elementRef.nativeElement;){if(F.classList.contains("mat-chip"))return!0;F=F.parentElement}return!1}_hasFocusedChip(){return this.chips&&this.chips.some(N=>N._hasFocus)}_syncChipsState(){this.chips&&this.chips.forEach(N=>{N._chipListDisabled=this._disabled,N._chipListMultiple=this.multiple,N.chipListSelectable=this._selectable})}}y.\u0275fac=function(N){return new(N||y)(t.Y36(t.SBq),t.Y36(t.sBO),t.Y36(M.Is,8),t.Y36(I.F,8),t.Y36(I.sg,8),t.Y36(_.rD),t.Y36(I.a5,10))},y.\u0275cmp=t.Xpm({type:y,selectors:[["mat-chip-list"]],contentQueries:function(N,F,X){if(1&N&&t.Suo(X,he,5),2&N){let Fe;t.iGM(Fe=t.CRH())&&(F.chips=Fe)}},hostAttrs:[1,"mat-chip-list"],hostVars:14,hostBindings:function(N,F){1&N&&t.NdJ("focus",function(){return F.focus()})("blur",function(){return F._blur()})("keydown",function(Fe){return F._keydown(Fe)}),2&N&&(t.Ikx("id",F._uid),t.uIk("tabindex",F.disabled?null:F._tabIndex)("aria-required",F.role?F.required:null)("aria-disabled",F.disabled.toString())("aria-invalid",F.errorState)("aria-multiselectable",F.multiple)("role",F.role)("aria-orientation",F.ariaOrientation),t.ekj("mat-chip-list-disabled",F.disabled)("mat-chip-list-invalid",F.errorState)("mat-chip-list-required",F.required))},inputs:{role:"role",userAriaDescribedBy:["aria-describedby","userAriaDescribedBy"],errorStateMatcher:"errorStateMatcher",multiple:"multiple",compareWith:"compareWith",value:"value",required:"required",placeholder:"placeholder",disabled:"disabled",ariaOrientation:["aria-orientation","ariaOrientation"],selectable:"selectable",tabIndex:"tabIndex"},outputs:{change:"change",valueChange:"valueChange"},exportAs:["matChipList"],features:[t._Bn([{provide:W.Eo,useExisting:y}]),t.qOj],ngContentSelectors:["*"],decls:2,vars:0,consts:[[1,"mat-chip-list-wrapper"]],template:function(N,F){1&N&&(t.F$t(),t.TgZ(0,"div",0),t.Hsn(1),t.qZA())},styles:['.mat-chip{position:relative;box-sizing:border-box;-webkit-tap-highlight-color:rgba(0,0,0,0);border:none;-webkit-appearance:none;-moz-appearance:none}.mat-chip::before{margin:calc(calc(var(--mat-focus-indicator-border-width, 3px) + 2px) * -1)}.mat-standard-chip{transition:box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);display:inline-flex;padding:7px 12px;border-radius:16px;align-items:center;cursor:default;min-height:32px;height:1px}.mat-standard-chip._mat-animation-noopable{transition:none !important;animation:none !important}.mat-standard-chip .mat-chip-remove{border:none;-webkit-appearance:none;-moz-appearance:none;padding:0;background:none}.mat-standard-chip .mat-chip-remove.mat-icon,.mat-standard-chip .mat-chip-remove .mat-icon{width:18px;height:18px;font-size:18px}.mat-standard-chip::after{top:0;left:0;right:0;bottom:0;position:absolute;border-radius:inherit;opacity:0;content:"";pointer-events:none;transition:opacity 200ms cubic-bezier(0.35, 0, 0.25, 1)}.mat-standard-chip:hover::after{opacity:.12}.mat-standard-chip:focus{outline:none}.mat-standard-chip:focus::after{opacity:.16}.cdk-high-contrast-active .mat-standard-chip{outline:solid 1px}.cdk-high-contrast-active .mat-standard-chip.mat-chip-selected{outline-width:3px}.mat-standard-chip.mat-chip-disabled::after{opacity:0}.mat-standard-chip.mat-chip-disabled .mat-chip-remove,.mat-standard-chip.mat-chip-disabled .mat-chip-trailing-icon{cursor:default}.mat-standard-chip.mat-chip-with-trailing-icon.mat-chip-with-avatar,.mat-standard-chip.mat-chip-with-avatar{padding-top:0;padding-bottom:0}.mat-standard-chip.mat-chip-with-trailing-icon.mat-chip-with-avatar{padding-right:8px;padding-left:0}[dir=rtl] .mat-standard-chip.mat-chip-with-trailing-icon.mat-chip-with-avatar{padding-left:8px;padding-right:0}.mat-standard-chip.mat-chip-with-trailing-icon{padding-top:7px;padding-bottom:7px;padding-right:8px;padding-left:12px}[dir=rtl] .mat-standard-chip.mat-chip-with-trailing-icon{padding-left:8px;padding-right:12px}.mat-standard-chip.mat-chip-with-avatar{padding-left:0;padding-right:12px}[dir=rtl] .mat-standard-chip.mat-chip-with-avatar{padding-right:0;padding-left:12px}.mat-standard-chip .mat-chip-avatar{width:24px;height:24px;margin-right:8px;margin-left:4px}[dir=rtl] .mat-standard-chip .mat-chip-avatar{margin-left:8px;margin-right:4px}.mat-standard-chip .mat-chip-remove,.mat-standard-chip .mat-chip-trailing-icon{width:18px;height:18px;cursor:pointer}.mat-standard-chip .mat-chip-remove,.mat-standard-chip .mat-chip-trailing-icon{margin-left:8px;margin-right:0}[dir=rtl] .mat-standard-chip .mat-chip-remove,[dir=rtl] .mat-standard-chip .mat-chip-trailing-icon{margin-right:8px;margin-left:0}.mat-chip-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit;overflow:hidden;transform:translateZ(0)}.mat-chip-list-wrapper{display:flex;flex-direction:row;flex-wrap:wrap;align-items:center;margin:-4px}.mat-chip-list-wrapper input.mat-input-element,.mat-chip-list-wrapper .mat-standard-chip{margin:4px}.mat-chip-list-stacked .mat-chip-list-wrapper{flex-direction:column;align-items:flex-start}.mat-chip-list-stacked .mat-chip-list-wrapper .mat-standard-chip{width:100%}.mat-chip-avatar{border-radius:50%;justify-content:center;align-items:center;display:flex;overflow:hidden;object-fit:cover}input.mat-chip-input{width:150px;margin:4px;flex:1 0 150px}'],encapsulation:2,changeDetection:0});let L=0;class B{constructor(N,F){this._elementRef=N,this._defaultOptions=F,this.focused=!1,this._addOnBlur=!1,this.separatorKeyCodes=this._defaultOptions.separatorKeyCodes,this.chipEnd=new t.vpe,this.placeholder="",this.id="mat-chip-list-input-"+L++,this._disabled=!1,this.inputElement=this._elementRef.nativeElement}set chipList(N){N&&(this._chipList=N,this._chipList.registerInput(this))}get addOnBlur(){return this._addOnBlur}set addOnBlur(N){this._addOnBlur=(0,E.Ig)(N)}get disabled(){return this._disabled||this._chipList&&this._chipList.disabled}set disabled(N){this._disabled=(0,E.Ig)(N)}get empty(){return!this.inputElement.value}ngOnChanges(){this._chipList.stateChanges.next()}ngOnDestroy(){this.chipEnd.complete()}ngAfterContentInit(){this._focusLastChipOnBackspace=this.empty}_keydown(N){if(N){if(N.keyCode===e.Mf&&!(0,e.Vb)(N,"shiftKey")&&this._chipList._allowFocusEscape(),N.keyCode===e.ZH&&this._focusLastChipOnBackspace)return this._chipList._keyManager.setLastItemActive(),void N.preventDefault();this._focusLastChipOnBackspace=!1}this._emitChipEnd(N)}_keyup(N){!this._focusLastChipOnBackspace&&N.keyCode===e.ZH&&this.empty&&(this._focusLastChipOnBackspace=!0,N.preventDefault())}_blur(){this.addOnBlur&&this._emitChipEnd(),this.focused=!1,this._chipList.focused||this._chipList._blur(),this._chipList.stateChanges.next()}_focus(){this.focused=!0,this._focusLastChipOnBackspace=this.empty,this._chipList.stateChanges.next()}_emitChipEnd(N){!this.inputElement.value&&!!N&&this._chipList._keydown(N),(!N||this._isSeparatorKey(N))&&(this.chipEnd.emit({input:this.inputElement,value:this.inputElement.value,chipInput:this}),N?.preventDefault())}_onInput(){this._chipList.stateChanges.next()}focus(N){this.inputElement.focus(N)}clear(){this.inputElement.value="",this._focusLastChipOnBackspace=!0}_isSeparatorKey(N){return!(0,e.Vb)(N)&&new Set(this.separatorKeyCodes).has(N.keyCode)}}B.\u0275fac=function(N){return new(N||B)(t.Y36(t.SBq),t.Y36(n))},B.\u0275dir=t.lG2({type:B,selectors:[["input","matChipInputFor",""]],hostAttrs:[1,"mat-chip-input","mat-input-element"],hostVars:5,hostBindings:function(N,F){1&N&&t.NdJ("keydown",function(Fe){return F._keydown(Fe)})("keyup",function(Fe){return F._keyup(Fe)})("blur",function(){return F._blur()})("focus",function(){return F._focus()})("input",function(){return F._onInput()}),2&N&&(t.Ikx("id",F.id),t.uIk("disabled",F.disabled||null)("placeholder",F.placeholder||null)("aria-invalid",F._chipList&&F._chipList.ngControl?F._chipList.ngControl.invalid:null)("aria-required",F._chipList&&F._chipList.required||null))},inputs:{chipList:["matChipInputFor","chipList"],addOnBlur:["matChipInputAddOnBlur","addOnBlur"],separatorKeyCodes:["matChipInputSeparatorKeyCodes","separatorKeyCodes"],placeholder:"placeholder",id:"id",disabled:"disabled"},outputs:{chipEnd:"matChipInputTokenEnd"},exportAs:["matChipInput","matChipInputFor"],features:[t.TTD]});class a{}a.\u0275fac=function(N){return new(N||a)},a.\u0275mod=t.oAB({type:a}),a.\u0275inj=t.cJS({providers:[_.rD,{provide:n,useValue:{separatorKeyCodes:[e.K5]}}],imports:[_.BQ]})},207:(Ue,q,m)=>{"use strict";m.d(q,{yN:()=>Q,mZ:()=>ie,_A:()=>B,rD:()=>Ke,sG:()=>v,Ad:()=>y,K7:()=>un,HF:()=>le,Y2:()=>ee,BQ:()=>ce,X2:()=>je,uc:()=>Ze,XK:()=>Fe,ey:()=>Gt,Ng:()=>tn,rN:()=>yn,nP:()=>Oe,us:()=>Re,wG:()=>H,si:()=>j,LF:()=>N,IR:()=>te,CB:()=>In,jH:()=>rn,pj:()=>w,Kr:()=>n,Id:()=>he,FD:()=>h,dB:()=>d,sb:()=>o,E0:()=>Ve});var e=m(2560),t=m(4218),_=m(2867);new e.GfV("14.2.7");var s=m(4666),D=m(9107),u=m(8971),k=m(833),p=m(253),S=m(4874),A=m(8456);const P=["*",[["mat-option"],["ng-container"]]];function z(pn,tt){if(1&pn&&e._UZ(0,"mat-pseudo-checkbox",4),2&pn){const vt=e.oxw();e.Q6J("state",vt.selected?"checked":"unchecked")("disabled",vt.disabled)}}function I(pn,tt){if(1&pn&&(e.TgZ(0,"span",5),e._uU(1),e.qZA()),2&pn){const vt=e.oxw();e.xp6(1),e.hij("(",vt.group.label,")")}}new e.GfV("14.2.7");class Q{}Q.STANDARD_CURVE="cubic-bezier(0.4,0.0,0.2,1)",Q.DECELERATION_CURVE="cubic-bezier(0.0,0.0,0.2,1)",Q.ACCELERATION_CURVE="cubic-bezier(0.4,0.0,1,1)",Q.SHARP_CURVE="cubic-bezier(0.4,0.0,0.6,1)";class ie{}ie.COMPLEX="375ms",ie.ENTERING="225ms",ie.EXITING="195ms";const _e=new e.OlP("mat-sanity-checks",{providedIn:"root",factory:function ae(){return!0}});class ce{constructor(tt,vt,dt){this._sanityChecks=vt,this._document=dt,this._hasDoneGlobalChecks=!1,tt._applyBodyHighContrastModeCssClasses(),this._hasDoneGlobalChecks||(this._hasDoneGlobalChecks=!0)}_checkIsEnabled(tt){return!(0,D.Oy)()&&("boolean"==typeof this._sanityChecks?this._sanityChecks:!!this._sanityChecks[tt])}}function he(pn){return class extends pn{constructor(...tt){super(...tt),this._disabled=!1}get disabled(){return this._disabled}set disabled(tt){this._disabled=(0,u.Ig)(tt)}}}function w(pn,tt){return class extends pn{constructor(...vt){super(...vt),this.defaultColor=tt,this.color=tt}get color(){return this._color}set color(vt){const dt=vt||this.defaultColor;dt!==this._color&&(this._color&&this._elementRef.nativeElement.classList.remove(`mat-${this._color}`),dt&&this._elementRef.nativeElement.classList.add(`mat-${dt}`),this._color=dt)}}}function n(pn){return class extends pn{constructor(...tt){super(...tt),this._disableRipple=!1}get disableRipple(){return this._disableRipple}set disableRipple(tt){this._disableRipple=(0,u.Ig)(tt)}}}function o(pn,tt=0){return class extends pn{constructor(...vt){super(...vt),this._tabIndex=tt,this.defaultTabIndex=tt}get tabIndex(){return this.disabled?-1:this._tabIndex}set tabIndex(vt){this._tabIndex=null!=vt?(0,u.su)(vt):this.defaultTabIndex}}}function h(pn){return class extends pn{constructor(...tt){super(...tt),this.errorState=!1}updateErrorState(){const tt=this.errorState,vt=this._parentFormGroup||this._parentForm,dt=this.errorStateMatcher||this._defaultErrorStateMatcher,se=this.ngControl?this.ngControl.control:null,J=dt.isErrorState(se,vt);J!==tt&&(this.errorState=J,this.stateChanges.next())}}}function d(pn){return class extends pn{constructor(...tt){super(...tt),this._isInitialized=!1,this._pendingSubscribers=[],this.initialized=new k.y(vt=>{this._isInitialized?this._notifySubscriber(vt):this._pendingSubscribers.push(vt)})}_markInitialized(){this._isInitialized,this._isInitialized=!0,this._pendingSubscribers.forEach(this._notifySubscriber),this._pendingSubscribers=null}_notifySubscriber(tt){tt.next(),tt.complete()}}}ce.\u0275fac=function(tt){return new(tt||ce)(e.LFG(t.qm),e.LFG(_e,8),e.LFG(s.K0))},ce.\u0275mod=e.oAB({type:ce}),ce.\u0275inj=e.cJS({imports:[_.vT,_.vT]});const y=new e.OlP("MAT_DATE_LOCALE",{providedIn:"root",factory:function L(){return(0,e.f3M)(e.soG)}});class B{constructor(){this._localeChanges=new p.x,this.localeChanges=this._localeChanges}getValidDateOrNull(tt){return this.isDateInstance(tt)&&this.isValid(tt)?tt:null}deserialize(tt){return null==tt||this.isDateInstance(tt)&&this.isValid(tt)?tt:this.invalid()}setLocale(tt){this.locale=tt,this._localeChanges.next()}compareDate(tt,vt){return this.getYear(tt)-this.getYear(vt)||this.getMonth(tt)-this.getMonth(vt)||this.getDate(tt)-this.getDate(vt)}sameDate(tt,vt){if(tt&&vt){let dt=this.isValid(tt),se=this.isValid(vt);return dt&&se?!this.compareDate(tt,vt):dt==se}return tt==vt}clampDate(tt,vt,dt){return vt&&this.compareDate(tt,vt)<0?vt:dt&&this.compareDate(tt,dt)>0?dt:tt}}const v=new e.OlP("mat-date-formats"),a=/^\d{4}-\d{2}-\d{2}(?:T\d{2}:\d{2}:\d{2}(?:\.\d+)?(?:Z|(?:(?:\+|-)\d{2}:\d{2}))?)?$/;function C(pn,tt){const vt=Array(pn);for(let dt=0;dt<pn;dt++)vt[dt]=tt(dt);return vt}class N extends B{constructor(tt,vt){super(),this.useUtcForDisplay=!1,super.setLocale(tt)}getYear(tt){return tt.getFullYear()}getMonth(tt){return tt.getMonth()}getDate(tt){return tt.getDate()}getDayOfWeek(tt){return tt.getDay()}getMonthNames(tt){const vt=new Intl.DateTimeFormat(this.locale,{month:tt,timeZone:"utc"});return C(12,dt=>this._format(vt,new Date(2017,dt,1)))}getDateNames(){const tt=new Intl.DateTimeFormat(this.locale,{day:"numeric",timeZone:"utc"});return C(31,vt=>this._format(tt,new Date(2017,0,vt+1)))}getDayOfWeekNames(tt){const vt=new Intl.DateTimeFormat(this.locale,{weekday:tt,timeZone:"utc"});return C(7,dt=>this._format(vt,new Date(2017,0,dt+1)))}getYearName(tt){const vt=new Intl.DateTimeFormat(this.locale,{year:"numeric",timeZone:"utc"});return this._format(vt,tt)}getFirstDayOfWeek(){return 0}getNumDaysInMonth(tt){return this.getDate(this._createDateWithOverflow(this.getYear(tt),this.getMonth(tt)+1,0))}clone(tt){return new Date(tt.getTime())}createDate(tt,vt,dt){let se=this._createDateWithOverflow(tt,vt,dt);return se.getMonth(),se}today(){return new Date}parse(tt,vt){return"number"==typeof tt?new Date(tt):tt?new Date(Date.parse(tt)):null}format(tt,vt){if(!this.isValid(tt))throw Error("NativeDateAdapter: Cannot format invalid date.");const dt=new Intl.DateTimeFormat(this.locale,{...vt,timeZone:"utc"});return this._format(dt,tt)}addCalendarYears(tt,vt){return this.addCalendarMonths(tt,12*vt)}addCalendarMonths(tt,vt){let dt=this._createDateWithOverflow(this.getYear(tt),this.getMonth(tt)+vt,this.getDate(tt));return this.getMonth(dt)!=((this.getMonth(tt)+vt)%12+12)%12&&(dt=this._createDateWithOverflow(this.getYear(dt),this.getMonth(dt),0)),dt}addCalendarDays(tt,vt){return this._createDateWithOverflow(this.getYear(tt),this.getMonth(tt),this.getDate(tt)+vt)}toIso8601(tt){return[tt.getUTCFullYear(),this._2digit(tt.getUTCMonth()+1),this._2digit(tt.getUTCDate())].join("-")}deserialize(tt){if("string"==typeof tt){if(!tt)return null;if(a.test(tt)){let vt=new Date(tt);if(this.isValid(vt))return vt}}return super.deserialize(tt)}isDateInstance(tt){return tt instanceof Date}isValid(tt){return!isNaN(tt.getTime())}invalid(){return new Date(NaN)}_createDateWithOverflow(tt,vt,dt){const se=new Date;return se.setFullYear(tt,vt,dt),se.setHours(0,0,0,0),se}_2digit(tt){return("00"+tt).slice(-2)}_format(tt,vt){const dt=new Date;return dt.setUTCFullYear(vt.getFullYear(),vt.getMonth(),vt.getDate()),dt.setUTCHours(vt.getHours(),vt.getMinutes(),vt.getSeconds(),vt.getMilliseconds()),tt.format(dt)}}N.\u0275fac=function(tt){return new(tt||N)(e.LFG(y,8),e.LFG(D.t4))},N.\u0275prov=e.Yz7({token:N,factory:N.\u0275fac});class X{}X.\u0275fac=function(tt){return new(tt||X)},X.\u0275mod=e.oAB({type:X}),X.\u0275inj=e.cJS({providers:[{provide:B,useClass:N}]});class Fe{}Fe.\u0275fac=function(tt){return new(tt||Fe)},Fe.\u0275mod=e.oAB({type:Fe}),Fe.\u0275inj=e.cJS({providers:[{provide:v,useValue:{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"}}}}],imports:[X]});class ke{isErrorState(tt,vt){return!!(tt&&tt.invalid&&(tt.dirty||vt&&vt.submitted))}}ke.\u0275fac=function(tt){return new(tt||ke)},ke.\u0275prov=e.Yz7({token:ke,factory:ke.\u0275fac});class Ke{isErrorState(tt,vt){return!!(tt&&tt.invalid&&(tt.touched||vt&&vt.submitted))}}Ke.\u0275fac=function(tt){return new(tt||Ke)},Ke.\u0275prov=e.Yz7({token:Ke,factory:Ke.\u0275fac,providedIn:"root"});class je{}function Ve(pn,tt,vt="mat"){pn.changes.pipe((0,S.O)(pn)).subscribe(({length:dt})=>{xe(tt,`${vt}-2-line`,!1),xe(tt,`${vt}-3-line`,!1),xe(tt,`${vt}-multi-line`,!1),2===dt||3===dt?xe(tt,`${vt}-${dt}-line`,!0):dt>3&&xe(tt,`${vt}-multi-line`,!0)})}function xe(pn,tt,vt){pn.nativeElement.classList.toggle(tt,vt)}je.\u0275fac=function(tt){return new(tt||je)},je.\u0275dir=e.lG2({type:je,selectors:[["","mat-line",""],["","matLine",""]],hostAttrs:[1,"mat-line"]});class Ze{}Ze.\u0275fac=function(tt){return new(tt||Ze)},Ze.\u0275mod=e.oAB({type:Ze}),Ze.\u0275inj=e.cJS({imports:[ce,ce]});class Ie{constructor(tt,vt,dt,se=!1){this._renderer=tt,this.element=vt,this.config=dt,this._animationForciblyDisabledThroughCss=se,this.state=3}fadeOut(){this._renderer.fadeOutRipple(this)}}const ve={enterDuration:225,exitDuration:150},ht=(0,D.i$)({passive:!0}),Le=["mousedown","touchstart"],Ae=["mouseup","mouseleave","touchend","touchcancel"];class te{constructor(tt,vt,dt,se){this._target=tt,this._ngZone=vt,this._isPointerDown=!1,this._activeRipples=new Map,this._pointerUpEventsRegistered=!1,se.isBrowser&&(this._containerElement=(0,u.fI)(dt))}fadeInRipple(tt,vt,dt={}){const se=this._containerRect=this._containerRect||this._containerElement.getBoundingClientRect(),J={...ve,...dt.animation};dt.centered&&(tt=se.left+se.width/2,vt=se.top+se.height/2);const oe=dt.radius||function pe(pn,tt,vt){const dt=Math.max(Math.abs(pn-vt.left),Math.abs(pn-vt.right)),se=Math.max(Math.abs(tt-vt.top),Math.abs(tt-vt.bottom));return Math.sqrt(dt*dt+se*se)}(tt,vt,se),De=tt-se.left,Ye=vt-se.top,Dt=J.enterDuration,ut=document.createElement("div");ut.classList.add("mat-ripple-element"),ut.style.left=De-oe+"px",ut.style.top=Ye-oe+"px",ut.style.height=2*oe+"px",ut.style.width=2*oe+"px",null!=dt.color&&(ut.style.backgroundColor=dt.color),ut.style.transitionDuration=`${Dt}ms`,this._containerElement.appendChild(ut);const ze=window.getComputedStyle(ut),Me=ze.transitionProperty,Ce=ze.transitionDuration,Je="none"===Me||"0s"===Ce||"0s, 0s"===Ce,zt=new Ie(this,ut,dt,Je);ut.style.transform="scale3d(1, 1, 1)",zt.state=0,dt.persistent||(this._mostRecentTransientRipple=zt);let At=null;return!Je&&(Dt||J.exitDuration)&&this._ngZone.runOutsideAngular(()=>{const Tt=()=>this._finishRippleTransition(zt),Ht=()=>this._destroyRipple(zt);ut.addEventListener("transitionend",Tt),ut.addEventListener("transitioncancel",Ht),At={onTransitionEnd:Tt,onTransitionCancel:Ht}}),this._activeRipples.set(zt,At),(Je||!Dt)&&this._finishRippleTransition(zt),zt}fadeOutRipple(tt){if(2===tt.state||3===tt.state)return;const vt=tt.element,dt={...ve,...tt.config.animation};vt.style.transitionDuration=`${dt.exitDuration}ms`,vt.style.opacity="0",tt.state=2,(tt._animationForciblyDisabledThroughCss||!dt.exitDuration)&&this._finishRippleTransition(tt)}fadeOutAll(){this._getActiveRipples().forEach(tt=>tt.fadeOut())}fadeOutAllNonPersistent(){this._getActiveRipples().forEach(tt=>{tt.config.persistent||tt.fadeOut()})}setupTriggerEvents(tt){const vt=(0,u.fI)(tt);!vt||vt===this._triggerElement||(this._removeTriggerEvents(),this._triggerElement=vt,this._registerEvents(Le))}handleEvent(tt){"mousedown"===tt.type?this._onMousedown(tt):"touchstart"===tt.type?this._onTouchStart(tt):this._onPointerUp(),this._pointerUpEventsRegistered||(this._registerEvents(Ae),this._pointerUpEventsRegistered=!0)}_finishRippleTransition(tt){0===tt.state?this._startFadeOutTransition(tt):2===tt.state&&this._destroyRipple(tt)}_startFadeOutTransition(tt){const vt=tt===this._mostRecentTransientRipple,{persistent:dt}=tt.config;tt.state=1,!dt&&(!vt||!this._isPointerDown)&&tt.fadeOut()}_destroyRipple(tt){const vt=this._activeRipples.get(tt)??null;this._activeRipples.delete(tt),this._activeRipples.size||(this._containerRect=null),tt===this._mostRecentTransientRipple&&(this._mostRecentTransientRipple=null),tt.state=3,null!==vt&&(tt.element.removeEventListener("transitionend",vt.onTransitionEnd),tt.element.removeEventListener("transitioncancel",vt.onTransitionCancel)),tt.element.remove()}_onMousedown(tt){const vt=(0,t.X6)(tt),dt=this._lastTouchStartEvent&&Date.now()<this._lastTouchStartEvent+800;!this._target.rippleDisabled&&!vt&&!dt&&(this._isPointerDown=!0,this.fadeInRipple(tt.clientX,tt.clientY,this._target.rippleConfig))}_onTouchStart(tt){if(!this._target.rippleDisabled&&!(0,t.yG)(tt)){this._lastTouchStartEvent=Date.now(),this._isPointerDown=!0;const vt=tt.changedTouches;for(let dt=0;dt<vt.length;dt++)this.fadeInRipple(vt[dt].clientX,vt[dt].clientY,this._target.rippleConfig)}}_onPointerUp(){!this._isPointerDown||(this._isPointerDown=!1,this._getActiveRipples().forEach(tt=>{const vt=1===tt.state||tt.config.terminateOnPointerUp&&0===tt.state;!tt.config.persistent&&vt&&tt.fadeOut()}))}_registerEvents(tt){this._ngZone.runOutsideAngular(()=>{tt.forEach(vt=>{this._triggerElement.addEventListener(vt,this,ht)})})}_getActiveRipples(){return Array.from(this._activeRipples.keys())}_removeTriggerEvents(){this._triggerElement&&(Le.forEach(tt=>{this._triggerElement.removeEventListener(tt,this,ht)}),this._pointerUpEventsRegistered&&Ae.forEach(tt=>{this._triggerElement.removeEventListener(tt,this,ht)}))}}const ee=new e.OlP("mat-ripple-global-options");class H{constructor(tt,vt,dt,se,J){this._elementRef=tt,this._animationMode=J,this.radius=0,this._disabled=!1,this._isInitialized=!1,this._globalOptions=se||{},this._rippleRenderer=new te(this,vt,tt,dt)}get disabled(){return this._disabled}set disabled(tt){tt&&this.fadeOutAllNonPersistent(),this._disabled=tt,this._setupTriggerEventsIfEnabled()}get trigger(){return this._trigger||this._elementRef.nativeElement}set trigger(tt){this._trigger=tt,this._setupTriggerEventsIfEnabled()}ngOnInit(){this._isInitialized=!0,this._setupTriggerEventsIfEnabled()}ngOnDestroy(){this._rippleRenderer._removeTriggerEvents()}fadeOutAll(){this._rippleRenderer.fadeOutAll()}fadeOutAllNonPersistent(){this._rippleRenderer.fadeOutAllNonPersistent()}get rippleConfig(){return{centered:this.centered,radius:this.radius,color:this.color,animation:{...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(tt,vt=0,dt){return"number"==typeof tt?this._rippleRenderer.fadeInRipple(tt,vt,{...this.rippleConfig,...dt}):this._rippleRenderer.fadeInRipple(0,0,{...this.rippleConfig,...tt})}}H.\u0275fac=function(tt){return new(tt||H)(e.Y36(e.SBq),e.Y36(e.R0b),e.Y36(D.t4),e.Y36(ee,8),e.Y36(e.QbO,8))},H.\u0275dir=e.lG2({type:H,selectors:[["","mat-ripple",""],["","matRipple",""]],hostAttrs:[1,"mat-ripple"],hostVars:2,hostBindings:function(tt,vt){2&tt&&e.ekj("mat-ripple-unbounded",vt.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"]});class j{}j.\u0275fac=function(tt){return new(tt||j)},j.\u0275mod=e.oAB({type:j}),j.\u0275inj=e.cJS({imports:[ce,ce]});class Oe{constructor(tt){this._animationMode=tt,this.state="unchecked",this.disabled=!1}}Oe.\u0275fac=function(tt){return new(tt||Oe)(e.Y36(e.QbO,8))},Oe.\u0275cmp=e.Xpm({type:Oe,selectors:[["mat-pseudo-checkbox"]],hostAttrs:[1,"mat-pseudo-checkbox"],hostVars:8,hostBindings:function(tt,vt){2&tt&&e.ekj("mat-pseudo-checkbox-indeterminate","indeterminate"===vt.state)("mat-pseudo-checkbox-checked","checked"===vt.state)("mat-pseudo-checkbox-disabled",vt.disabled)("_mat-animation-noopable","NoopAnimations"===vt._animationMode)},inputs:{state:"state",disabled:"disabled"},decls:0,vars:0,template:function(tt,vt){},styles:['.mat-pseudo-checkbox{width:16px;height:16px;border:2px solid;border-radius:2px;cursor:pointer;display:inline-block;vertical-align:middle;box-sizing:border-box;position:relative;flex-shrink:0;transition:border-color 90ms cubic-bezier(0, 0, 0.2, 0.1),background-color 90ms cubic-bezier(0, 0, 0.2, 0.1)}.mat-pseudo-checkbox::after{position:absolute;opacity:0;content:"";border-bottom:2px solid currentColor;transition:opacity 90ms cubic-bezier(0, 0, 0.2, 0.1)}.mat-pseudo-checkbox.mat-pseudo-checkbox-checked,.mat-pseudo-checkbox.mat-pseudo-checkbox-indeterminate{border-color: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{top:5px;left:1px;width:10px;opacity:1;border-radius:2px}.mat-pseudo-checkbox-checked::after{top:2.4px;left:1px;width:8px;height:3px;border-left:2px solid currentColor;transform:rotate(-45deg);opacity:1;box-sizing:content-box}'],encapsulation:2,changeDetection:0});class Re{}Re.\u0275fac=function(tt){return new(tt||Re)},Re.\u0275mod=e.oAB({type:Re}),Re.\u0275inj=e.cJS({imports:[ce]});const le=new e.OlP("MAT_OPTION_PARENT_COMPONENT"),_t=he(class{});let it=0;class Ct extends _t{constructor(tt){super(),this._labelId="mat-optgroup-label-"+it++,this._inert=tt?.inertGroups??!1}}Ct.\u0275fac=function(tt){return new(tt||Ct)(e.Y36(le,8))},Ct.\u0275dir=e.lG2({type:Ct,inputs:{label:"label"},features:[e.qOj]});const un=new e.OlP("MatOptgroup");class Bt extends Ct{}Bt.\u0275fac=function(){let pn;return function(vt){return(pn||(pn=e.n5z(Bt)))(vt||Bt)}}(),Bt.\u0275cmp=e.Xpm({type:Bt,selectors:[["mat-optgroup"]],hostAttrs:[1,"mat-optgroup"],hostVars:5,hostBindings:function(tt,vt){2&tt&&(e.uIk("role",vt._inert?null:"group")("aria-disabled",vt._inert?null:vt.disabled.toString())("aria-labelledby",vt._inert?null:vt._labelId),e.ekj("mat-optgroup-disabled",vt.disabled))},inputs:{disabled:"disabled"},exportAs:["matOptgroup"],features:[e._Bn([{provide:un,useExisting:Bt}]),e.qOj],ngContentSelectors:["*","mat-option, ng-container"],decls:4,vars:2,consts:[["aria-hidden","true",1,"mat-optgroup-label",3,"id"]],template:function(tt,vt){1&tt&&(e.F$t(P),e.TgZ(0,"span",0),e._uU(1),e.Hsn(2),e.qZA(),e.Hsn(3,1)),2&tt&&(e.Q6J("id",vt._labelId),e.xp6(1),e.hij("",vt.label," "))},styles:[".mat-optgroup-label{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block;line-height:48px;height:48px;padding:0 16px;text-align:left;text-decoration:none;max-width:100%;-webkit-user-select:none;user-select:none;cursor:default}.mat-optgroup-label[disabled]{cursor:default}[dir=rtl] .mat-optgroup-label{text-align:right}.mat-optgroup-label .mat-icon{margin-right:16px;vertical-align:middle}.mat-optgroup-label .mat-icon svg{vertical-align:top}[dir=rtl] .mat-optgroup-label .mat-icon{margin-left:16px;margin-right:0}"],encapsulation:2,changeDetection:0});let Ut=0;class yn{constructor(tt,vt=!1){this.source=tt,this.isUserInput=vt}}class Xt{constructor(tt,vt,dt,se){this._element=tt,this._changeDetectorRef=vt,this._parent=dt,this.group=se,this._selected=!1,this._active=!1,this._disabled=!1,this._mostRecentViewValue="",this.id="mat-option-"+Ut++,this.onSelectionChange=new e.vpe,this._stateChanges=new p.x}get multiple(){return this._parent&&this._parent.multiple}get selected(){return this._selected}get disabled(){return this.group&&this.group.disabled||this._disabled}set disabled(tt){this._disabled=(0,u.Ig)(tt)}get disableRipple(){return!(!this._parent||!this._parent.disableRipple)}get active(){return this._active}get viewValue(){return(this._getHostElement().textContent||"").trim()}select(){this._selected||(this._selected=!0,this._changeDetectorRef.markForCheck(),this._emitSelectionChangeEvent())}deselect(){this._selected&&(this._selected=!1,this._changeDetectorRef.markForCheck(),this._emitSelectionChangeEvent())}focus(tt,vt){const dt=this._getHostElement();"function"==typeof dt.focus&&dt.focus(vt)}setActiveStyles(){this._active||(this._active=!0,this._changeDetectorRef.markForCheck())}setInactiveStyles(){this._active&&(this._active=!1,this._changeDetectorRef.markForCheck())}getLabel(){return this.viewValue}_handleKeydown(tt){(tt.keyCode===A.K5||tt.keyCode===A.L_)&&!(0,A.Vb)(tt)&&(this._selectViaInteraction(),tt.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 tt=this.viewValue;tt!==this._mostRecentViewValue&&(this._mostRecentViewValue=tt,this._stateChanges.next())}}ngOnDestroy(){this._stateChanges.complete()}_emitSelectionChangeEvent(tt=!1){this.onSelectionChange.emit(new yn(this,tt))}}Xt.\u0275fac=function(tt){e.$Z()},Xt.\u0275dir=e.lG2({type:Xt,inputs:{value:"value",id:"id",disabled:"disabled"},outputs:{onSelectionChange:"onSelectionChange"}});class Gt extends Xt{constructor(tt,vt,dt,se){super(tt,vt,dt,se)}}function In(pn,tt,vt){if(vt.length){let dt=tt.toArray(),se=vt.toArray(),J=0;for(let oe=0;oe<pn+1;oe++)dt[oe].group&&dt[oe].group===se[J]&&J++;return J}return 0}function rn(pn,tt,vt,dt){return pn<vt?pn:pn+tt>vt+dt?Math.max(0,pn-dt+tt):vt}Gt.\u0275fac=function(tt){return new(tt||Gt)(e.Y36(e.SBq),e.Y36(e.sBO),e.Y36(le,8),e.Y36(un,8))},Gt.\u0275cmp=e.Xpm({type:Gt,selectors:[["mat-option"]],hostAttrs:["role","option",1,"mat-option","mat-focus-indicator"],hostVars:12,hostBindings:function(tt,vt){1&tt&&e.NdJ("click",function(){return vt._selectViaInteraction()})("keydown",function(se){return vt._handleKeydown(se)}),2&tt&&(e.Ikx("id",vt.id),e.uIk("tabindex",vt._getTabIndex())("aria-selected",vt._getAriaSelected())("aria-disabled",vt.disabled.toString()),e.ekj("mat-selected",vt.selected)("mat-option-multiple",vt.multiple)("mat-active",vt.active)("mat-option-disabled",vt.disabled))},exportAs:["matOption"],features:[e.qOj],ngContentSelectors:["*"],decls:5,vars:4,consts:[["class","mat-option-pseudo-checkbox",3,"state","disabled",4,"ngIf"],[1,"mat-option-text"],["class","cdk-visually-hidden",4,"ngIf"],["mat-ripple","",1,"mat-option-ripple",3,"matRippleTrigger","matRippleDisabled"],[1,"mat-option-pseudo-checkbox",3,"state","disabled"],[1,"cdk-visually-hidden"]],template:function(tt,vt){1&tt&&(e.F$t(),e.YNc(0,z,1,2,"mat-pseudo-checkbox",0),e.TgZ(1,"span",1),e.Hsn(2),e.qZA(),e.YNc(3,I,2,1,"span",2),e._UZ(4,"div",3)),2&tt&&(e.Q6J("ngIf",vt.multiple),e.xp6(3),e.Q6J("ngIf",vt.group&&vt.group._inert),e.xp6(1),e.Q6J("matRippleTrigger",vt._getHostElement())("matRippleDisabled",vt.disabled||vt.disableRipple))},dependencies:[H,s.O5,Oe],styles:['.mat-option{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block;line-height:48px;height:48px;padding:0 16px;text-align:left;text-decoration:none;max-width:100%;position:relative;cursor:pointer;outline:none;display:flex;flex-direction:row;max-width:100%;box-sizing:border-box;align-items:center;-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-option[disabled]{cursor:default}[dir=rtl] .mat-option{text-align:right}.mat-option .mat-icon{margin-right:16px;vertical-align:middle}.mat-option .mat-icon svg{vertical-align:top}[dir=rtl] .mat-option .mat-icon{margin-left:16px;margin-right:0}.mat-option[aria-disabled=true]{-webkit-user-select:none;user-select:none;cursor:default}.mat-optgroup .mat-option:not(.mat-option-multiple){padding-left:32px}[dir=rtl] .mat-optgroup .mat-option:not(.mat-option-multiple){padding-left:16px;padding-right:32px}.mat-option.mat-active::before{content:""}.cdk-high-contrast-active .mat-option[aria-disabled=true]{opacity:.5}.cdk-high-contrast-active .mat-option.mat-selected:not(.mat-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-option.mat-selected:not(.mat-option-multiple)::after{right:auto;left:16px}.mat-option-text{display:inline-block;flex-grow:1;overflow:hidden;text-overflow:ellipsis}.mat-option .mat-option-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-option-pseudo-checkbox{margin-right:8px}[dir=rtl] .mat-option-pseudo-checkbox{margin-left:8px;margin-right:0}'],encapsulation:2,changeDetection:0});class tn{}tn.\u0275fac=function(tt){return new(tt||tn)},tn.\u0275mod=e.oAB({type:tn}),tn.\u0275inj=e.cJS({imports:[j,s.ez,ce,Re]})},2298:(Ue,q,m)=>{"use strict";m.d(q,{FA:()=>Be,Mq:()=>ut,hl:()=>At,nW:()=>Ht});var e=m(4218),t=m(5895),_=m(7520),E=m(4666),s=m(2560),D=m(4522),u=m(1494),k=m(207),p=m(253),S=m(7714),A=m(6646),P=m(745),M=m(8456),z=m(2867),I=m(9295),W=m(4874),Z=m(116),Q=m(8971),ie=m(9107),ae=m(4851),_e=m(2508),ce=m(5074),ye=m(1267);function $(ft,re){if(1&ft&&(s.TgZ(0,"tr",2)(1,"td",3),s._uU(2),s.qZA()()),2&ft){const Te=s.oxw();s.xp6(1),s.Udp("padding-top",Te._cellPadding)("padding-bottom",Te._cellPadding),s.uIk("colspan",Te.numCols),s.xp6(1),s.hij(" ",Te.label," ")}}function he(ft,re){if(1&ft&&(s.TgZ(0,"td",3),s._uU(1),s.qZA()),2&ft){const Te=s.oxw(2);s.Udp("padding-top",Te._cellPadding)("padding-bottom",Te._cellPadding),s.uIk("colspan",Te._firstRowOffset),s.xp6(1),s.hij(" ",Te._firstRowOffset>=Te.labelMinRequiredCells?Te.label:""," ")}}function w(ft,re){if(1&ft){const Te=s.EpF();s.TgZ(0,"td",7)(1,"button",8),s.NdJ("click",function(Lt){const Bn=s.CHM(Te).$implicit,Wn=s.oxw(2);return s.KtG(Wn._cellClicked(Bn,Lt))})("focus",function(Lt){const Bn=s.CHM(Te).$implicit,Wn=s.oxw(2);return s.KtG(Wn._emitActiveDateChange(Bn,Lt))}),s.TgZ(2,"div",9),s._uU(3),s.qZA(),s._UZ(4,"div",10),s.qZA()()}if(2&ft){const Te=re.$implicit,pt=re.index,Lt=s.oxw().index,nn=s.oxw();s.Udp("width",nn._cellWidth)("padding-top",nn._cellPadding)("padding-bottom",nn._cellPadding),s.uIk("data-mat-row",Lt)("data-mat-col",pt),s.xp6(1),s.ekj("mat-calendar-body-disabled",!Te.enabled)("mat-calendar-body-active",nn._isActiveCell(Lt,pt))("mat-calendar-body-range-start",nn._isRangeStart(Te.compareValue))("mat-calendar-body-range-end",nn._isRangeEnd(Te.compareValue))("mat-calendar-body-in-range",nn._isInRange(Te.compareValue))("mat-calendar-body-comparison-bridge-start",nn._isComparisonBridgeStart(Te.compareValue,Lt,pt))("mat-calendar-body-comparison-bridge-end",nn._isComparisonBridgeEnd(Te.compareValue,Lt,pt))("mat-calendar-body-comparison-start",nn._isComparisonStart(Te.compareValue))("mat-calendar-body-comparison-end",nn._isComparisonEnd(Te.compareValue))("mat-calendar-body-in-comparison-range",nn._isInComparisonRange(Te.compareValue))("mat-calendar-body-preview-start",nn._isPreviewStart(Te.compareValue))("mat-calendar-body-preview-end",nn._isPreviewEnd(Te.compareValue))("mat-calendar-body-in-preview",nn._isInPreview(Te.compareValue)),s.Q6J("ngClass",Te.cssClasses)("tabindex",nn._isActiveCell(Lt,pt)?0:-1),s.uIk("aria-label",Te.ariaLabel)("aria-disabled",!Te.enabled||null)("aria-pressed",nn._isSelected(Te.compareValue))("aria-current",nn.todayValue===Te.compareValue?"date":null),s.xp6(1),s.ekj("mat-calendar-body-selected",nn._isSelected(Te.compareValue))("mat-calendar-body-comparison-identical",nn._isComparisonIdentical(Te.compareValue))("mat-calendar-body-today",nn.todayValue===Te.compareValue),s.xp6(1),s.hij(" ",Te.displayValue," ")}}function n(ft,re){if(1&ft&&(s.TgZ(0,"tr",4),s.YNc(1,he,2,6,"td",5),s.YNc(2,w,5,47,"td",6),s.qZA()),2&ft){const Te=re.$implicit,pt=re.index,Lt=s.oxw();s.xp6(1),s.Q6J("ngIf",0===pt&&Lt._firstRowOffset),s.xp6(1),s.Q6J("ngForOf",Te)}}function o(ft,re){if(1&ft&&(s.TgZ(0,"th",5)(1,"span",6),s._uU(2),s.qZA(),s.TgZ(3,"span",7),s._uU(4),s.qZA()()),2&ft){const Te=re.$implicit;s.xp6(2),s.Oqu(Te.long),s.xp6(2),s.Oqu(Te.narrow)}}const h=["*"];function d(ft,re){}function y(ft,re){if(1&ft){const Te=s.EpF();s.TgZ(0,"mat-month-view",5),s.NdJ("activeDateChange",function(Lt){s.CHM(Te);const nn=s.oxw();return s.KtG(nn.activeDate=Lt)})("_userSelection",function(Lt){s.CHM(Te);const nn=s.oxw();return s.KtG(nn._dateSelected(Lt))}),s.qZA()}if(2&ft){const Te=s.oxw();s.Q6J("activeDate",Te.activeDate)("selected",Te.selected)("dateFilter",Te.dateFilter)("maxDate",Te.maxDate)("minDate",Te.minDate)("dateClass",Te.dateClass)("comparisonStart",Te.comparisonStart)("comparisonEnd",Te.comparisonEnd)}}function L(ft,re){if(1&ft){const Te=s.EpF();s.TgZ(0,"mat-year-view",6),s.NdJ("activeDateChange",function(Lt){s.CHM(Te);const nn=s.oxw();return s.KtG(nn.activeDate=Lt)})("monthSelected",function(Lt){s.CHM(Te);const nn=s.oxw();return s.KtG(nn._monthSelectedInYearView(Lt))})("selectedChange",function(Lt){s.CHM(Te);const nn=s.oxw();return s.KtG(nn._goToDateInView(Lt,"month"))}),s.qZA()}if(2&ft){const Te=s.oxw();s.Q6J("activeDate",Te.activeDate)("selected",Te.selected)("dateFilter",Te.dateFilter)("maxDate",Te.maxDate)("minDate",Te.minDate)("dateClass",Te.dateClass)}}function B(ft,re){if(1&ft){const Te=s.EpF();s.TgZ(0,"mat-multi-year-view",7),s.NdJ("activeDateChange",function(Lt){s.CHM(Te);const nn=s.oxw();return s.KtG(nn.activeDate=Lt)})("yearSelected",function(Lt){s.CHM(Te);const nn=s.oxw();return s.KtG(nn._yearSelectedInMultiYearView(Lt))})("selectedChange",function(Lt){s.CHM(Te);const nn=s.oxw();return s.KtG(nn._goToDateInView(Lt,"year"))}),s.qZA()}if(2&ft){const Te=s.oxw();s.Q6J("activeDate",Te.activeDate)("selected",Te.selected)("dateFilter",Te.dateFilter)("maxDate",Te.maxDate)("minDate",Te.minDate)("dateClass",Te.dateClass)}}function v(ft,re){}const a=["button"];function C(ft,re){1&ft&&(s.O4$(),s.TgZ(0,"svg",3),s._UZ(1,"path",4),s.qZA())}const N=[[["","matDatepickerToggleIcon",""]]],X=[[["input","matStartDate",""]],[["input","matEndDate",""]]];function ke(ft,re){1&ft&&(s.TgZ(0,"div",0),s.Hsn(1),s.qZA())}class je{constructor(){this.changes=new p.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(re,Te){return`${re} \u2013 ${Te}`}formatYearRangeLabel(re,Te){return`${re} to ${Te}`}}je.\u0275fac=function(re){return new(re||je)},je.\u0275prov=s.Yz7({token:je,factory:je.\u0275fac,providedIn:"root"});class Ve{constructor(re,Te,pt,Lt,nn={},Bn=re,Wn){this.value=re,this.displayValue=Te,this.ariaLabel=pt,this.enabled=Lt,this.cssClasses=nn,this.compareValue=Bn,this.rawValue=Wn}}class xe{constructor(re,Te){this._elementRef=re,this._ngZone=Te,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._enterHandler=pt=>{if(this._skipNextFocus&&"focus"===pt.type)this._skipNextFocus=!1;else if(pt.target&&this.isRange){const Lt=this._getCellFromElement(pt.target);Lt&&this._ngZone.run(()=>this.previewChange.emit({value:Lt.enabled?Lt:null,event:pt}))}},this._leaveHandler=pt=>{null!==this.previewEnd&&this.isRange&&pt.target&&this._getCellFromElement(pt.target)&&this._ngZone.run(()=>this.previewChange.emit({value:null,event:pt}))},Te.runOutsideAngular(()=>{const pt=re.nativeElement;pt.addEventListener("mouseenter",this._enterHandler,!0),pt.addEventListener("focus",this._enterHandler,!0),pt.addEventListener("mouseleave",this._leaveHandler,!0),pt.addEventListener("blur",this._leaveHandler,!0)})}ngAfterViewChecked(){this._focusActiveCellAfterViewChecked&&(this._focusActiveCell(),this._focusActiveCellAfterViewChecked=!1)}_cellClicked(re,Te){re.enabled&&this.selectedValueChange.emit({value:re.value,event:Te})}_emitActiveDateChange(re,Te){re.enabled&&this.activeDateChange.emit({value:re.value,event:Te})}_isSelected(re){return this.startValue===re||this.endValue===re}ngOnChanges(re){const Te=re.numCols,{rows:pt,numCols:Lt}=this;(re.rows||Te)&&(this._firstRowOffset=pt&&pt.length&&pt[0].length?Lt-pt[0].length:0),(re.cellAspectRatio||Te||!this._cellPadding)&&(this._cellPadding=50*this.cellAspectRatio/Lt+"%"),(Te||!this._cellWidth)&&(this._cellWidth=100/Lt+"%")}ngOnDestroy(){const re=this._elementRef.nativeElement;re.removeEventListener("mouseenter",this._enterHandler,!0),re.removeEventListener("focus",this._enterHandler,!0),re.removeEventListener("mouseleave",this._leaveHandler,!0),re.removeEventListener("blur",this._leaveHandler,!0)}_isActiveCell(re,Te){let pt=re*this.numCols+Te;return re&&(pt-=this._firstRowOffset),pt==this.activeCell}_focusActiveCell(re=!0){this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.pipe((0,I.q)(1)).subscribe(()=>{setTimeout(()=>{const Te=this._elementRef.nativeElement.querySelector(".mat-calendar-body-active");Te&&(re||(this._skipNextFocus=!0),Te.focus())})})})}_scheduleFocusActiveCellAfterViewChecked(){this._focusActiveCellAfterViewChecked=!0}_isRangeStart(re){return Ie(re,this.startValue,this.endValue)}_isRangeEnd(re){return ve(re,this.startValue,this.endValue)}_isInRange(re){return et(re,this.startValue,this.endValue,this.isRange)}_isComparisonStart(re){return Ie(re,this.comparisonStart,this.comparisonEnd)}_isComparisonBridgeStart(re,Te,pt){if(!this._isComparisonStart(re)||this._isRangeStart(re)||!this._isInRange(re))return!1;let Lt=this.rows[Te][pt-1];if(!Lt){const nn=this.rows[Te-1];Lt=nn&&nn[nn.length-1]}return Lt&&!this._isRangeEnd(Lt.compareValue)}_isComparisonBridgeEnd(re,Te,pt){if(!this._isComparisonEnd(re)||this._isRangeEnd(re)||!this._isInRange(re))return!1;let Lt=this.rows[Te][pt+1];if(!Lt){const nn=this.rows[Te+1];Lt=nn&&nn[0]}return Lt&&!this._isRangeStart(Lt.compareValue)}_isComparisonEnd(re){return ve(re,this.comparisonStart,this.comparisonEnd)}_isInComparisonRange(re){return et(re,this.comparisonStart,this.comparisonEnd,this.isRange)}_isComparisonIdentical(re){return this.comparisonStart===this.comparisonEnd&&re===this.comparisonStart}_isPreviewStart(re){return Ie(re,this.previewStart,this.previewEnd)}_isPreviewEnd(re){return ve(re,this.previewStart,this.previewEnd)}_isInPreview(re){return et(re,this.previewStart,this.previewEnd,this.isRange)}_getCellFromElement(re){let Te;if(Ze(re)?Te=re:Ze(re.parentNode)&&(Te=re.parentNode),Te){const pt=Te.getAttribute("data-mat-row"),Lt=Te.getAttribute("data-mat-col");if(pt&&Lt)return this.rows[parseInt(pt)][parseInt(Lt)]}return null}}function Ze(ft){return"TD"===ft.nodeName}function Ie(ft,re,Te){return null!==Te&&re!==Te&&ft<Te&&ft===re}function ve(ft,re,Te){return null!==re&&re!==Te&&ft>=re&&ft===Te}function et(ft,re,Te,pt){return pt&&null!==re&&null!==Te&&re!==Te&&ft>=re&&ft<=Te}xe.\u0275fac=function(re){return new(re||xe)(s.Y36(s.SBq),s.Y36(s.R0b))},xe.\u0275cmp=s.Xpm({type:xe,selectors:[["","mat-calendar-body",""]],hostAttrs:[1,"mat-calendar-body"],inputs:{label:"label",rows:"rows",todayValue:"todayValue",startValue:"startValue",endValue:"endValue",labelMinRequiredCells:"labelMinRequiredCells",numCols:"numCols",activeCell:"activeCell",isRange:"isRange",cellAspectRatio:"cellAspectRatio",comparisonStart:"comparisonStart",comparisonEnd:"comparisonEnd",previewStart:"previewStart",previewEnd:"previewEnd"},outputs:{selectedValueChange:"selectedValueChange",previewChange:"previewChange",activeDateChange:"activeDateChange"},exportAs:["matCalendarBody"],features:[s.TTD],attrs:["mat-calendar-body",""],decls:2,vars:2,consts:[["aria-hidden","true",4,"ngIf"],["role","row",4,"ngFor","ngForOf"],["aria-hidden","true"],[1,"mat-calendar-body-label"],["role","row"],["class","mat-calendar-body-label",3,"paddingTop","paddingBottom",4,"ngIf"],["role","gridcell","class","mat-calendar-body-cell-container",3,"width","paddingTop","paddingBottom",4,"ngFor","ngForOf"],["role","gridcell",1,"mat-calendar-body-cell-container"],["type","button",1,"mat-calendar-body-cell",3,"ngClass","tabindex","click","focus"],[1,"mat-calendar-body-cell-content","mat-focus-indicator"],["aria-hidden","true",1,"mat-calendar-body-cell-preview"]],template:function(re,Te){1&re&&(s.YNc(0,$,3,6,"tr",0),s.YNc(1,n,3,2,"tr",1)),2&re&&(s.Q6J("ngIf",Te._firstRowOffset<Te.labelMinRequiredCells),s.xp6(1),s.Q6J("ngForOf",Te.rows))},dependencies:[E.mk,E.sg,E.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-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});class ht{constructor(re,Te){this.start=re,this.end=Te}}class Le{constructor(re,Te){this.selection=re,this._adapter=Te,this._selectionChanged=new p.x,this.selectionChanged=this._selectionChanged,this.selection=re}updateSelection(re,Te){const pt=this.selection;this.selection=re,this._selectionChanged.next({selection:re,source:Te,oldValue:pt})}ngOnDestroy(){this._selectionChanged.complete()}_isValidDateInstance(re){return this._adapter.isDateInstance(re)&&this._adapter.isValid(re)}}Le.\u0275fac=function(re){s.$Z()},Le.\u0275prov=s.Yz7({token:Le,factory:Le.\u0275fac});class Ae extends Le{constructor(re){super(null,re)}add(re){super.updateSelection(re,this)}isValid(){return null!=this.selection&&this._isValidDateInstance(this.selection)}isComplete(){return null!=this.selection}clone(){const re=new Ae(this._adapter);return re.updateSelection(this.selection,this),re}}Ae.\u0275fac=function(re){return new(re||Ae)(s.LFG(k._A))},Ae.\u0275prov=s.Yz7({token:Ae,factory:Ae.\u0275fac});class te extends Le{constructor(re){super(new ht(null,null),re)}add(re){let{start:Te,end:pt}=this.selection;null==Te?Te=re:null==pt?pt=re:(Te=re,pt=null),super.updateSelection(new ht(Te,pt),this)}isValid(){const{start:re,end:Te}=this.selection;return null==re&&null==Te||(null!=re&&null!=Te?this._isValidDateInstance(re)&&this._isValidDateInstance(Te)&&this._adapter.compareDate(re,Te)<=0:(null==re||this._isValidDateInstance(re))&&(null==Te||this._isValidDateInstance(Te)))}isComplete(){return null!=this.selection.start&&null!=this.selection.end}clone(){const re=new te(this._adapter);return re.updateSelection(this.selection,this),re}}te.\u0275fac=function(re){return new(re||te)(s.LFG(k._A))},te.\u0275prov=s.Yz7({token:te,factory:te.\u0275fac});const ee={provide:Le,deps:[[new s.FiY,new s.tp0,Le],k._A],useFactory:function pe(ft,re){return ft||new Ae(re)}};const j={provide:Le,deps:[[new s.FiY,new s.tp0,Le],k._A],useFactory:function H(ft,re){return ft||new te(re)}},Oe=new s.OlP("MAT_DATE_RANGE_SELECTION_STRATEGY");class Re{constructor(re){this._dateAdapter=re}selectionFinished(re,Te){let{start:pt,end:Lt}=Te;return null==pt?pt=re:null==Lt&&re&&this._dateAdapter.compareDate(re,pt)>=0?Lt=re:(pt=re,Lt=null),new ht(pt,Lt)}createPreview(re,Te){let pt=null,Lt=null;return Te.start&&!Te.end&&re&&(pt=Te.start,Lt=re),new ht(pt,Lt)}}Re.\u0275fac=function(re){return new(re||Re)(s.LFG(k._A))},Re.\u0275prov=s.Yz7({token:Re,factory:Re.\u0275fac});const _t={provide:Oe,deps:[[new s.FiY,new s.tp0,Oe],k._A],useFactory:function le(ft,re){return ft||new Re(re)}};class Ct{constructor(re,Te,pt,Lt,nn){this._changeDetectorRef=re,this._dateFormats=Te,this._dateAdapter=pt,this._dir=Lt,this._rangeStrategy=nn,this._rerenderSubscription=S.w0.EMPTY,this.selectedChange=new s.vpe,this._userSelection=new s.vpe,this.activeDateChange=new s.vpe,this._activeDate=this._dateAdapter.today()}get activeDate(){return this._activeDate}set activeDate(re){const Te=this._activeDate,pt=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(re))||this._dateAdapter.today();this._activeDate=this._dateAdapter.clampDate(pt,this.minDate,this.maxDate),this._hasSameMonthAndYear(Te,this._activeDate)||this._init()}get selected(){return this._selected}set selected(re){this._selected=re instanceof ht?re:this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(re)),this._setRanges(this._selected)}get minDate(){return this._minDate}set minDate(re){this._minDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(re))}get maxDate(){return this._maxDate}set maxDate(re){this._maxDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(re))}ngAfterContentInit(){this._rerenderSubscription=this._dateAdapter.localeChanges.pipe((0,W.O)(null)).subscribe(()=>this._init())}ngOnChanges(re){const Te=re.comparisonStart||re.comparisonEnd;Te&&!Te.firstChange&&this._setRanges(this.selected)}ngOnDestroy(){this._rerenderSubscription.unsubscribe()}_dateSelected(re){const Te=re.value,pt=this._getDateFromDayOfMonth(Te);let Lt,nn;this._selected instanceof ht?(Lt=this._getDateInCurrentMonth(this._selected.start),nn=this._getDateInCurrentMonth(this._selected.end)):Lt=nn=this._getDateInCurrentMonth(this._selected),(Lt!==Te||nn!==Te)&&this.selectedChange.emit(pt),this._userSelection.emit({value:pt,event:re.event}),this._previewStart=this._previewEnd=null,this._changeDetectorRef.markForCheck()}_updateActiveDate(re){const Te=re.value,pt=this._activeDate;this.activeDate=this._getDateFromDayOfMonth(Te),this._dateAdapter.compareDate(pt,this.activeDate)&&this.activeDateChange.emit(this._activeDate)}_handleCalendarBodyKeydown(re){const Te=this._activeDate,pt=this._isRtl();switch(re.keyCode){case M.oh:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,pt?1:-1);break;case M.SV:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,pt?-1:1);break;case M.LH:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,-7);break;case M.JH:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,7);break;case M.Sd:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,1-this._dateAdapter.getDate(this._activeDate));break;case M.uR:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,this._dateAdapter.getNumDaysInMonth(this._activeDate)-this._dateAdapter.getDate(this._activeDate));break;case M.Ku:this.activeDate=re.altKey?this._dateAdapter.addCalendarYears(this._activeDate,-1):this._dateAdapter.addCalendarMonths(this._activeDate,-1);break;case M.VM:this.activeDate=re.altKey?this._dateAdapter.addCalendarYears(this._activeDate,1):this._dateAdapter.addCalendarMonths(this._activeDate,1);break;case M.K5:case M.L_:return this._selectionKeyPressed=!0,void(this._canSelect(this._activeDate)&&re.preventDefault());case M.hY:return void(null!=this._previewEnd&&!(0,M.Vb)(re)&&(this._previewStart=this._previewEnd=null,this.selectedChange.emit(null),this._userSelection.emit({value:null,event:re}),re.preventDefault(),re.stopPropagation()));default:return}this._dateAdapter.compareDate(Te,this.activeDate)&&(this.activeDateChange.emit(this.activeDate),this._focusActiveCellAfterViewChecked()),re.preventDefault()}_handleCalendarBodyKeyup(re){(re.keyCode===M.L_||re.keyCode===M.K5)&&(this._selectionKeyPressed&&this._canSelect(this._activeDate)&&this._dateSelected({value:this._dateAdapter.getDate(this._activeDate),event:re}),this._selectionKeyPressed=!1)}_init(){this._setRanges(this.selected),this._todayDate=this._getCellCompareValue(this._dateAdapter.today()),this._monthLabel=this._dateFormats.display.monthLabel?this._dateAdapter.format(this.activeDate,this._dateFormats.display.monthLabel):this._dateAdapter.getMonthNames("short")[this._dateAdapter.getMonth(this.activeDate)].toLocaleUpperCase();let re=this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),this._dateAdapter.getMonth(this.activeDate),1);this._firstWeekOffset=(7+this._dateAdapter.getDayOfWeek(re)-this._dateAdapter.getFirstDayOfWeek())%7,this._initWeekdays(),this._createWeekCells(),this._changeDetectorRef.markForCheck()}_focusActiveCell(re){this._matCalendarBody._focusActiveCell(re)}_focusActiveCellAfterViewChecked(){this._matCalendarBody._scheduleFocusActiveCellAfterViewChecked()}_previewChanged({event:re,value:Te}){if(this._rangeStrategy){const pt=Te?Te.rawValue:null,Lt=this._rangeStrategy.createPreview(pt,this.selected,re);this._previewStart=this._getCellCompareValue(Lt.start),this._previewEnd=this._getCellCompareValue(Lt.end),this._changeDetectorRef.detectChanges()}}_getDateFromDayOfMonth(re){return this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),this._dateAdapter.getMonth(this.activeDate),re)}_initWeekdays(){const re=this._dateAdapter.getFirstDayOfWeek(),Te=this._dateAdapter.getDayOfWeekNames("narrow");let Lt=this._dateAdapter.getDayOfWeekNames("long").map((nn,Bn)=>({long:nn,narrow:Te[Bn]}));this._weekdays=Lt.slice(re).concat(Lt.slice(0,re))}_createWeekCells(){const re=this._dateAdapter.getNumDaysInMonth(this.activeDate),Te=this._dateAdapter.getDateNames();this._weeks=[[]];for(let pt=0,Lt=this._firstWeekOffset;pt<re;pt++,Lt++){7==Lt&&(this._weeks.push([]),Lt=0);const nn=this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),this._dateAdapter.getMonth(this.activeDate),pt+1),Bn=this._shouldEnableDate(nn),Wn=this._dateAdapter.format(nn,this._dateFormats.display.dateA11yLabel),ti=this.dateClass?this.dateClass(nn,"month"):void 0;this._weeks[this._weeks.length-1].push(new Ve(pt+1,Te[pt],Wn,Bn,ti,this._getCellCompareValue(nn),nn))}}_shouldEnableDate(re){return!!re&&(!this.minDate||this._dateAdapter.compareDate(re,this.minDate)>=0)&&(!this.maxDate||this._dateAdapter.compareDate(re,this.maxDate)<=0)&&(!this.dateFilter||this.dateFilter(re))}_getDateInCurrentMonth(re){return re&&this._hasSameMonthAndYear(re,this.activeDate)?this._dateAdapter.getDate(re):null}_hasSameMonthAndYear(re,Te){return!(!re||!Te||this._dateAdapter.getMonth(re)!=this._dateAdapter.getMonth(Te)||this._dateAdapter.getYear(re)!=this._dateAdapter.getYear(Te))}_getCellCompareValue(re){if(re){const Te=this._dateAdapter.getYear(re),pt=this._dateAdapter.getMonth(re),Lt=this._dateAdapter.getDate(re);return new Date(Te,pt,Lt).getTime()}return null}_isRtl(){return this._dir&&"rtl"===this._dir.value}_setRanges(re){re instanceof ht?(this._rangeStart=this._getCellCompareValue(re.start),this._rangeEnd=this._getCellCompareValue(re.end),this._isRange=!0):(this._rangeStart=this._rangeEnd=this._getCellCompareValue(re),this._isRange=!1),this._comparisonRangeStart=this._getCellCompareValue(this.comparisonStart),this._comparisonRangeEnd=this._getCellCompareValue(this.comparisonEnd)}_canSelect(re){return!this.dateFilter||this.dateFilter(re)}}Ct.\u0275fac=function(re){return new(re||Ct)(s.Y36(s.sBO),s.Y36(k.sG,8),s.Y36(k._A,8),s.Y36(z.Is,8),s.Y36(Oe,8))},Ct.\u0275cmp=s.Xpm({type:Ct,selectors:[["mat-month-view"]],viewQuery:function(re,Te){if(1&re&&s.Gf(xe,5),2&re){let pt;s.iGM(pt=s.CRH())&&(Te._matCalendarBody=pt.first)}},inputs:{activeDate:"activeDate",selected:"selected",minDate:"minDate",maxDate:"maxDate",dateFilter:"dateFilter",dateClass:"dateClass",comparisonStart:"comparisonStart",comparisonEnd:"comparisonEnd"},outputs:{selectedChange:"selectedChange",_userSelection:"_userSelection",activeDateChange:"activeDateChange"},exportAs:["matMonthView"],features:[s.TTD],decls:7,vars:13,consts:[["role","grid",1,"mat-calendar-table"],[1,"mat-calendar-table-header"],["scope","col",4,"ngFor","ngForOf"],["aria-hidden","true","colspan","7",1,"mat-calendar-table-header-divider"],["mat-calendar-body","",3,"label","rows","todayValue","startValue","endValue","comparisonStart","comparisonEnd","previewStart","previewEnd","isRange","labelMinRequiredCells","activeCell","selectedValueChange","activeDateChange","previewChange","keyup","keydown"],["scope","col"],[1,"cdk-visually-hidden"],["aria-hidden","true"]],template:function(re,Te){1&re&&(s.TgZ(0,"table",0)(1,"thead",1)(2,"tr"),s.YNc(3,o,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(Lt){return Te._dateSelected(Lt)})("activeDateChange",function(Lt){return Te._updateActiveDate(Lt)})("previewChange",function(Lt){return Te._previewChanged(Lt)})("keyup",function(Lt){return Te._handleCalendarBodyKeyup(Lt)})("keydown",function(Lt){return Te._handleCalendarBodyKeydown(Lt)}),s.qZA()()),2&re&&(s.xp6(3),s.Q6J("ngForOf",Te._weekdays),s.xp6(3),s.Q6J("label",Te._monthLabel)("rows",Te._weeks)("todayValue",Te._todayDate)("startValue",Te._rangeStart)("endValue",Te._rangeEnd)("comparisonStart",Te._comparisonRangeStart)("comparisonEnd",Te._comparisonRangeEnd)("previewStart",Te._previewStart)("previewEnd",Te._previewEnd)("isRange",Te._isRange)("labelMinRequiredCells",3)("activeCell",Te._dateAdapter.getDate(Te.activeDate)-1))},dependencies:[E.sg,xe],encapsulation:2,changeDetection:0});class Ut{constructor(re,Te,pt){this._changeDetectorRef=re,this._dateAdapter=Te,this._dir=pt,this._rerenderSubscription=S.w0.EMPTY,this.selectedChange=new s.vpe,this.yearSelected=new s.vpe,this.activeDateChange=new s.vpe,this._dateAdapter,this._activeDate=this._dateAdapter.today()}get activeDate(){return this._activeDate}set activeDate(re){let Te=this._activeDate;const pt=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(re))||this._dateAdapter.today();this._activeDate=this._dateAdapter.clampDate(pt,this.minDate,this.maxDate),yn(this._dateAdapter,Te,this._activeDate,this.minDate,this.maxDate)||this._init()}get selected(){return this._selected}set selected(re){this._selected=re instanceof ht?re:this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(re)),this._setSelectedYear(re)}get minDate(){return this._minDate}set minDate(re){this._minDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(re))}get maxDate(){return this._maxDate}set maxDate(re){this._maxDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(re))}ngAfterContentInit(){this._rerenderSubscription=this._dateAdapter.localeChanges.pipe((0,W.O)(null)).subscribe(()=>this._init())}ngOnDestroy(){this._rerenderSubscription.unsubscribe()}_init(){this._todayYear=this._dateAdapter.getYear(this._dateAdapter.today());const Te=this._dateAdapter.getYear(this._activeDate)-Xt(this._dateAdapter,this.activeDate,this.minDate,this.maxDate);this._years=[];for(let pt=0,Lt=[];pt<24;pt++)Lt.push(Te+pt),4==Lt.length&&(this._years.push(Lt.map(nn=>this._createCellForYear(nn))),Lt=[]);this._changeDetectorRef.markForCheck()}_yearSelected(re){const Te=re.value,pt=this._dateAdapter.createDate(Te,0,1),Lt=this._getDateFromYear(Te);this.yearSelected.emit(pt),this.selectedChange.emit(Lt)}_updateActiveDate(re){const Te=re.value,pt=this._activeDate;this.activeDate=this._getDateFromYear(Te),this._dateAdapter.compareDate(pt,this.activeDate)&&this.activeDateChange.emit(this.activeDate)}_handleCalendarBodyKeydown(re){const Te=this._activeDate,pt=this._isRtl();switch(re.keyCode){case M.oh:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,pt?1:-1);break;case M.SV:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,pt?-1:1);break;case M.LH:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,-4);break;case M.JH:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,4);break;case M.Sd:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,-Xt(this._dateAdapter,this.activeDate,this.minDate,this.maxDate));break;case M.uR:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,24-Xt(this._dateAdapter,this.activeDate,this.minDate,this.maxDate)-1);break;case M.Ku:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,re.altKey?-240:-24);break;case M.VM:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,re.altKey?240:24);break;case M.K5:case M.L_:this._selectionKeyPressed=!0;break;default:return}this._dateAdapter.compareDate(Te,this.activeDate)&&this.activeDateChange.emit(this.activeDate),this._focusActiveCellAfterViewChecked(),re.preventDefault()}_handleCalendarBodyKeyup(re){(re.keyCode===M.L_||re.keyCode===M.K5)&&(this._selectionKeyPressed&&this._yearSelected({value:this._dateAdapter.getYear(this._activeDate),event:re}),this._selectionKeyPressed=!1)}_getActiveCell(){return Xt(this._dateAdapter,this.activeDate,this.minDate,this.maxDate)}_focusActiveCell(){this._matCalendarBody._focusActiveCell()}_focusActiveCellAfterViewChecked(){this._matCalendarBody._scheduleFocusActiveCellAfterViewChecked()}_getDateFromYear(re){const Te=this._dateAdapter.getMonth(this.activeDate),pt=this._dateAdapter.getNumDaysInMonth(this._dateAdapter.createDate(re,Te,1));return this._dateAdapter.createDate(re,Te,Math.min(this._dateAdapter.getDate(this.activeDate),pt))}_createCellForYear(re){const Te=this._dateAdapter.createDate(re,0,1),pt=this._dateAdapter.getYearName(Te),Lt=this.dateClass?this.dateClass(Te,"multi-year"):void 0;return new Ve(re,pt,pt,this._shouldEnableYear(re),Lt)}_shouldEnableYear(re){if(null==re||this.maxDate&&re>this._dateAdapter.getYear(this.maxDate)||this.minDate&&re<this._dateAdapter.getYear(this.minDate))return!1;if(!this.dateFilter)return!0;for(let pt=this._dateAdapter.createDate(re,0,1);this._dateAdapter.getYear(pt)==re;pt=this._dateAdapter.addCalendarDays(pt,1))if(this.dateFilter(pt))return!0;return!1}_isRtl(){return this._dir&&"rtl"===this._dir.value}_setSelectedYear(re){if(this._selectedYear=null,re instanceof ht){const Te=re.start||re.end;Te&&(this._selectedYear=this._dateAdapter.getYear(Te))}else re&&(this._selectedYear=this._dateAdapter.getYear(re))}}function yn(ft,re,Te,pt,Lt){const nn=ft.getYear(re),Bn=ft.getYear(Te),Wn=Gt(ft,pt,Lt);return Math.floor((nn-Wn)/24)===Math.floor((Bn-Wn)/24)}function Xt(ft,re,Te,pt){return function In(ft,re){return(ft%re+re)%re}(ft.getYear(re)-Gt(ft,Te,pt),24)}function Gt(ft,re,Te){let pt=0;return Te?pt=ft.getYear(Te)-24+1:re&&(pt=ft.getYear(re)),pt}Ut.\u0275fac=function(re){return new(re||Ut)(s.Y36(s.sBO),s.Y36(k._A,8),s.Y36(z.Is,8))},Ut.\u0275cmp=s.Xpm({type:Ut,selectors:[["mat-multi-year-view"]],viewQuery:function(re,Te){if(1&re&&s.Gf(xe,5),2&re){let pt;s.iGM(pt=s.CRH())&&(Te._matCalendarBody=pt.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(re,Te){1&re&&(s.TgZ(0,"table",0)(1,"thead",1)(2,"tr"),s._UZ(3,"th",2),s.qZA()(),s.TgZ(4,"tbody",3),s.NdJ("selectedValueChange",function(Lt){return Te._yearSelected(Lt)})("activeDateChange",function(Lt){return Te._updateActiveDate(Lt)})("keyup",function(Lt){return Te._handleCalendarBodyKeyup(Lt)})("keydown",function(Lt){return Te._handleCalendarBodyKeydown(Lt)}),s.qZA()()),2&re&&(s.xp6(4),s.Q6J("rows",Te._years)("todayValue",Te._todayYear)("startValue",Te._selectedYear)("endValue",Te._selectedYear)("numCols",4)("cellAspectRatio",4/7)("activeCell",Te._getActiveCell()))},dependencies:[xe],encapsulation:2,changeDetection:0});class rn{constructor(re,Te,pt,Lt){this._changeDetectorRef=re,this._dateFormats=Te,this._dateAdapter=pt,this._dir=Lt,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()}get activeDate(){return this._activeDate}set activeDate(re){let Te=this._activeDate;const pt=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(re))||this._dateAdapter.today();this._activeDate=this._dateAdapter.clampDate(pt,this.minDate,this.maxDate),this._dateAdapter.getYear(Te)!==this._dateAdapter.getYear(this._activeDate)&&this._init()}get selected(){return this._selected}set selected(re){this._selected=re instanceof ht?re:this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(re)),this._setSelectedMonth(re)}get minDate(){return this._minDate}set minDate(re){this._minDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(re))}get maxDate(){return this._maxDate}set maxDate(re){this._maxDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(re))}ngAfterContentInit(){this._rerenderSubscription=this._dateAdapter.localeChanges.pipe((0,W.O)(null)).subscribe(()=>this._init())}ngOnDestroy(){this._rerenderSubscription.unsubscribe()}_monthSelected(re){const Te=re.value,pt=this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),Te,1);this.monthSelected.emit(pt);const Lt=this._getDateFromMonth(Te);this.selectedChange.emit(Lt)}_updateActiveDate(re){const Te=re.value,pt=this._activeDate;this.activeDate=this._getDateFromMonth(Te),this._dateAdapter.compareDate(pt,this.activeDate)&&this.activeDateChange.emit(this.activeDate)}_handleCalendarBodyKeydown(re){const Te=this._activeDate,pt=this._isRtl();switch(re.keyCode){case M.oh:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,pt?1:-1);break;case M.SV:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,pt?-1:1);break;case M.LH:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,-4);break;case M.JH:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,4);break;case M.Sd:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,-this._dateAdapter.getMonth(this._activeDate));break;case M.uR:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,11-this._dateAdapter.getMonth(this._activeDate));break;case M.Ku:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,re.altKey?-10:-1);break;case M.VM:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,re.altKey?10:1);break;case M.K5:case M.L_:this._selectionKeyPressed=!0;break;default:return}this._dateAdapter.compareDate(Te,this.activeDate)&&(this.activeDateChange.emit(this.activeDate),this._focusActiveCellAfterViewChecked()),re.preventDefault()}_handleCalendarBodyKeyup(re){(re.keyCode===M.L_||re.keyCode===M.K5)&&(this._selectionKeyPressed&&this._monthSelected({value:this._dateAdapter.getMonth(this._activeDate),event:re}),this._selectionKeyPressed=!1)}_init(){this._setSelectedMonth(this.selected),this._todayMonth=this._getMonthInCurrentYear(this._dateAdapter.today()),this._yearLabel=this._dateAdapter.getYearName(this.activeDate);let re=this._dateAdapter.getMonthNames("short");this._months=[[0,1,2,3],[4,5,6,7],[8,9,10,11]].map(Te=>Te.map(pt=>this._createCellForMonth(pt,re[pt]))),this._changeDetectorRef.markForCheck()}_focusActiveCell(){this._matCalendarBody._focusActiveCell()}_focusActiveCellAfterViewChecked(){this._matCalendarBody._scheduleFocusActiveCellAfterViewChecked()}_getMonthInCurrentYear(re){return re&&this._dateAdapter.getYear(re)==this._dateAdapter.getYear(this.activeDate)?this._dateAdapter.getMonth(re):null}_getDateFromMonth(re){const Te=this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),re,1),pt=this._dateAdapter.getNumDaysInMonth(Te);return this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),re,Math.min(this._dateAdapter.getDate(this.activeDate),pt))}_createCellForMonth(re,Te){const pt=this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),re,1),Lt=this._dateAdapter.format(pt,this._dateFormats.display.monthYearA11yLabel),nn=this.dateClass?this.dateClass(pt,"year"):void 0;return new Ve(re,Te.toLocaleUpperCase(),Lt,this._shouldEnableMonth(re),nn)}_shouldEnableMonth(re){const Te=this._dateAdapter.getYear(this.activeDate);if(null==re||this._isYearAndMonthAfterMaxDate(Te,re)||this._isYearAndMonthBeforeMinDate(Te,re))return!1;if(!this.dateFilter)return!0;for(let Lt=this._dateAdapter.createDate(Te,re,1);this._dateAdapter.getMonth(Lt)==re;Lt=this._dateAdapter.addCalendarDays(Lt,1))if(this.dateFilter(Lt))return!0;return!1}_isYearAndMonthAfterMaxDate(re,Te){if(this.maxDate){const pt=this._dateAdapter.getYear(this.maxDate),Lt=this._dateAdapter.getMonth(this.maxDate);return re>pt||re===pt&&Te>Lt}return!1}_isYearAndMonthBeforeMinDate(re,Te){if(this.minDate){const pt=this._dateAdapter.getYear(this.minDate),Lt=this._dateAdapter.getMonth(this.minDate);return re<pt||re===pt&&Te<Lt}return!1}_isRtl(){return this._dir&&"rtl"===this._dir.value}_setSelectedMonth(re){this._selectedMonth=re instanceof ht?this._getMonthInCurrentYear(re.start)||this._getMonthInCurrentYear(re.end):this._getMonthInCurrentYear(re)}}rn.\u0275fac=function(re){return new(re||rn)(s.Y36(s.sBO),s.Y36(k.sG,8),s.Y36(k._A,8),s.Y36(z.Is,8))},rn.\u0275cmp=s.Xpm({type:rn,selectors:[["mat-year-view"]],viewQuery:function(re,Te){if(1&re&&s.Gf(xe,5),2&re){let pt;s.iGM(pt=s.CRH())&&(Te._matCalendarBody=pt.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(re,Te){1&re&&(s.TgZ(0,"table",0)(1,"thead",1)(2,"tr"),s._UZ(3,"th",2),s.qZA()(),s.TgZ(4,"tbody",3),s.NdJ("selectedValueChange",function(Lt){return Te._monthSelected(Lt)})("activeDateChange",function(Lt){return Te._updateActiveDate(Lt)})("keyup",function(Lt){return Te._handleCalendarBodyKeyup(Lt)})("keydown",function(Lt){return Te._handleCalendarBodyKeydown(Lt)}),s.qZA()()),2&re&&(s.xp6(4),s.Q6J("label",Te._yearLabel)("rows",Te._months)("todayValue",Te._todayMonth)("startValue",Te._selectedMonth)("endValue",Te._selectedMonth)("labelMinRequiredCells",2)("numCols",4)("cellAspectRatio",4/7)("activeCell",Te._dateAdapter.getMonth(Te.activeDate)))},dependencies:[xe],encapsulation:2,changeDetection:0});let tn=0;class pn{constructor(re,Te,pt,Lt,nn){this._intl=re,this.calendar=Te,this._dateAdapter=pt,this._dateFormats=Lt,this._buttonDescriptionId="mat-calendar-button-"+tn++,this.calendar.stateChanges.subscribe(()=>nn.markForCheck())}get periodButtonText(){if("month"==this.calendar.currentView)return this._dateAdapter.format(this.calendar.activeDate,this._dateFormats.display.monthYearLabel).toLocaleUpperCase();if("year"==this.calendar.currentView)return this._dateAdapter.getYearName(this.calendar.activeDate);const Te=this._dateAdapter.getYear(this.calendar.activeDate)-Xt(this._dateAdapter,this.calendar.activeDate,this.calendar.minDate,this.calendar.maxDate),pt=Te+24-1,Lt=this._dateAdapter.getYearName(this._dateAdapter.createDate(Te,0,1)),nn=this._dateAdapter.getYearName(this._dateAdapter.createDate(pt,0,1));return this._intl.formatYearRange(Lt,nn)}get periodButtonLabel(){return"month"==this.calendar.currentView?this._intl.switchToMultiYearViewLabel:this._intl.switchToMonthViewLabel}get prevButtonLabel(){return{month:this._intl.prevMonthLabel,year:this._intl.prevYearLabel,"multi-year":this._intl.prevMultiYearLabel}[this.calendar.currentView]}get nextButtonLabel(){return{month:this._intl.nextMonthLabel,year:this._intl.nextYearLabel,"multi-year":this._intl.nextMultiYearLabel}[this.calendar.currentView]}currentPeriodClicked(){this.calendar.currentView="month"==this.calendar.currentView?"multi-year":"month"}previousClicked(){this.calendar.activeDate="month"==this.calendar.currentView?this._dateAdapter.addCalendarMonths(this.calendar.activeDate,-1):this._dateAdapter.addCalendarYears(this.calendar.activeDate,"year"==this.calendar.currentView?-1:-24)}nextClicked(){this.calendar.activeDate="month"==this.calendar.currentView?this._dateAdapter.addCalendarMonths(this.calendar.activeDate,1):this._dateAdapter.addCalendarYears(this.calendar.activeDate,"year"==this.calendar.currentView?1:24)}previousEnabled(){return!this.calendar.minDate||(!this.calendar.minDate||!this._isSameView(this.calendar.activeDate,this.calendar.minDate))}nextEnabled(){return!this.calendar.maxDate||!this._isSameView(this.calendar.activeDate,this.calendar.maxDate)}_isSameView(re,Te){return"month"==this.calendar.currentView?this._dateAdapter.getYear(re)==this._dateAdapter.getYear(Te)&&this._dateAdapter.getMonth(re)==this._dateAdapter.getMonth(Te):"year"==this.calendar.currentView?this._dateAdapter.getYear(re)==this._dateAdapter.getYear(Te):yn(this._dateAdapter,re,Te,this.calendar.minDate,this.calendar.maxDate)}}pn.\u0275fac=function(re){return new(re||pn)(s.Y36(je),s.Y36((0,s.Gpc)(()=>tt)),s.Y36(k._A,8),s.Y36(k.sG,8),s.Y36(s.sBO))},pn.\u0275cmp=s.Xpm({type:pn,selectors:[["mat-calendar-header"]],exportAs:["matCalendarHeader"],ngContentSelectors:h,decls:11,vars:10,consts:[[1,"mat-calendar-header"],[1,"mat-calendar-controls"],["mat-button","","type","button","aria-live","polite",1,"mat-calendar-period-button",3,"click"],["viewBox","0 0 10 5","focusable","false",1,"mat-calendar-arrow"],["points","0,0 5,5 10,0"],[1,"mat-calendar-spacer"],["mat-icon-button","","type","button",1,"mat-calendar-previous-button",3,"disabled","click"],["mat-icon-button","","type","button",1,"mat-calendar-next-button",3,"disabled","click"]],template:function(re,Te){1&re&&(s.F$t(),s.TgZ(0,"div",0)(1,"div",1)(2,"button",2),s.NdJ("click",function(){return Te.currentPeriodClicked()}),s.TgZ(3,"span"),s._uU(4),s.qZA(),s.O4$(),s.TgZ(5,"svg",3),s._UZ(6,"polygon",4),s.qZA()(),s.kcU(),s._UZ(7,"div",5),s.Hsn(8),s.TgZ(9,"button",6),s.NdJ("click",function(){return Te.previousClicked()}),s.qZA(),s.TgZ(10,"button",7),s.NdJ("click",function(){return Te.nextClicked()}),s.qZA()()()),2&re&&(s.xp6(2),s.uIk("aria-label",Te.periodButtonLabel)("aria-describedby",Te._buttonDescriptionId),s.xp6(1),s.uIk("id",Te._buttonDescriptionId),s.xp6(1),s.Oqu(Te.periodButtonText),s.xp6(1),s.ekj("mat-calendar-invert","month"!==Te.calendar.currentView),s.xp6(4),s.Q6J("disabled",!Te.previousEnabled()),s.uIk("aria-label",Te.prevButtonLabel),s.xp6(1),s.Q6J("disabled",!Te.nextEnabled()),s.uIk("aria-label",Te.nextButtonLabel))},dependencies:[D.lW],encapsulation:2,changeDetection:0});class tt{constructor(re,Te,pt,Lt){this._dateAdapter=Te,this._dateFormats=pt,this._changeDetectorRef=Lt,this._moveFocusOnNextTick=!1,this.startView="month",this.selectedChange=new s.vpe,this.yearSelected=new s.vpe,this.monthSelected=new s.vpe,this.viewChanged=new s.vpe(!0),this._userSelection=new s.vpe,this.stateChanges=new p.x,this._intlChanges=re.changes.subscribe(()=>{Lt.markForCheck(),this.stateChanges.next()})}get startAt(){return this._startAt}set startAt(re){this._startAt=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(re))}get selected(){return this._selected}set selected(re){this._selected=re instanceof ht?re:this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(re))}get minDate(){return this._minDate}set minDate(re){this._minDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(re))}get maxDate(){return this._maxDate}set maxDate(re){this._maxDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(re))}get activeDate(){return this._clampedActiveDate}set activeDate(re){this._clampedActiveDate=this._dateAdapter.clampDate(re,this.minDate,this.maxDate),this.stateChanges.next(),this._changeDetectorRef.markForCheck()}get currentView(){return this._currentView}set currentView(re){const Te=this._currentView!==re?re:null;this._currentView=re,this._moveFocusOnNextTick=!0,this._changeDetectorRef.markForCheck(),Te&&this.viewChanged.emit(Te)}ngAfterContentInit(){this._calendarHeaderPortal=new _.C5(this.headerComponent||pn),this.activeDate=this.startAt||this._dateAdapter.today(),this._currentView=this.startView}ngAfterViewChecked(){this._moveFocusOnNextTick&&(this._moveFocusOnNextTick=!1,this.focusActiveCell())}ngOnDestroy(){this._intlChanges.unsubscribe(),this.stateChanges.complete()}ngOnChanges(re){const Te=re.minDate&&!this._dateAdapter.sameDate(re.minDate.previousValue,re.minDate.currentValue)?re.minDate:void 0,pt=re.maxDate&&!this._dateAdapter.sameDate(re.maxDate.previousValue,re.maxDate.currentValue)?re.maxDate:void 0,Lt=Te||pt||re.dateFilter;if(Lt&&!Lt.firstChange){const nn=this._getCurrentViewComponent();nn&&(this._changeDetectorRef.detectChanges(),nn._init())}this.stateChanges.next()}focusActiveCell(){this._getCurrentViewComponent()._focusActiveCell(!1)}updateTodaysDate(){this._getCurrentViewComponent()._init()}_dateSelected(re){const Te=re.value;(this.selected instanceof ht||Te&&!this._dateAdapter.sameDate(Te,this.selected))&&this.selectedChange.emit(Te),this._userSelection.emit(re)}_yearSelectedInMultiYearView(re){this.yearSelected.emit(re)}_monthSelectedInYearView(re){this.monthSelected.emit(re)}_goToDateInView(re,Te){this.activeDate=re,this.currentView=Te}_getCurrentViewComponent(){return this.monthView||this.yearView||this.multiYearView}}tt.\u0275fac=function(re){return new(re||tt)(s.Y36(je),s.Y36(k._A,8),s.Y36(k.sG,8),s.Y36(s.sBO))},tt.\u0275cmp=s.Xpm({type:tt,selectors:[["mat-calendar"]],viewQuery:function(re,Te){if(1&re&&(s.Gf(Ct,5),s.Gf(rn,5),s.Gf(Ut,5)),2&re){let pt;s.iGM(pt=s.CRH())&&(Te.monthView=pt.first),s.iGM(pt=s.CRH())&&(Te.yearView=pt.first),s.iGM(pt=s.CRH())&&(Te.multiYearView=pt.first)}},hostAttrs:[1,"mat-calendar"],inputs:{headerComponent:"headerComponent",startAt:"startAt",startView:"startView",selected:"selected",minDate:"minDate",maxDate:"maxDate",dateFilter:"dateFilter",dateClass:"dateClass",comparisonStart:"comparisonStart",comparisonEnd:"comparisonEnd"},outputs:{selectedChange:"selectedChange",yearSelected:"yearSelected",monthSelected:"monthSelected",viewChanged:"viewChanged",_userSelection:"_userSelection"},exportAs:["matCalendar"],features:[s._Bn([ee]),s.TTD],decls:5,vars:5,consts:[[3,"cdkPortalOutlet"],["cdkMonitorSubtreeFocus","","tabindex","-1",1,"mat-calendar-content",3,"ngSwitch"],[3,"activeDate","selected","dateFilter","maxDate","minDate","dateClass","comparisonStart","comparisonEnd","activeDateChange","_userSelection",4,"ngSwitchCase"],[3,"activeDate","selected","dateFilter","maxDate","minDate","dateClass","activeDateChange","monthSelected","selectedChange",4,"ngSwitchCase"],[3,"activeDate","selected","dateFilter","maxDate","minDate","dateClass","activeDateChange","yearSelected","selectedChange",4,"ngSwitchCase"],[3,"activeDate","selected","dateFilter","maxDate","minDate","dateClass","comparisonStart","comparisonEnd","activeDateChange","_userSelection"],[3,"activeDate","selected","dateFilter","maxDate","minDate","dateClass","activeDateChange","monthSelected","selectedChange"],[3,"activeDate","selected","dateFilter","maxDate","minDate","dateClass","activeDateChange","yearSelected","selectedChange"]],template:function(re,Te){1&re&&(s.YNc(0,d,0,0,"ng-template",0),s.TgZ(1,"div",1),s.YNc(2,y,1,8,"mat-month-view",2),s.YNc(3,L,1,6,"mat-year-view",3),s.YNc(4,B,1,6,"mat-multi-year-view",4),s.qZA()),2&re&&(s.Q6J("cdkPortalOutlet",Te._calendarHeaderPortal),s.xp6(1),s.Q6J("ngSwitch",Te.currentView),s.xp6(1),s.Q6J("ngSwitchCase","month"),s.xp6(1),s.Q6J("ngSwitchCase","year"),s.xp6(1),s.Q6J("ngSwitchCase","multi-year"))},dependencies:[E.RF,E.n9,e.kH,_.Pl,Ct,rn,Ut],styles:['.mat-calendar{display:block}.mat-calendar-header{padding:8px 8px 0 8px}.mat-calendar-content{padding:0 8px 8px 8px;outline:none}.mat-calendar-controls{display:flex;margin:5% calc(4.7142857143% - 16px)}.mat-calendar-controls .mat-icon-button:hover .mat-button-focus-overlay{opacity:.04}.mat-calendar-spacer{flex:1 1 auto}.mat-calendar-period-button{min-width:0}.mat-calendar-arrow{display:inline-block;width:10px;height:5px;margin:0 0 0 5px;vertical-align:middle}.mat-calendar-arrow.mat-calendar-invert{transform:rotate(180deg)}[dir=rtl] .mat-calendar-arrow{margin:0 5px 0 0}.cdk-high-contrast-active .mat-calendar-arrow{fill:CanvasText}.mat-calendar-previous-button,.mat-calendar-next-button{position:relative}.mat-calendar-previous-button::after,.mat-calendar-next-button::after{top:0;left:0;right:0;bottom:0;position:absolute;content:"";margin:15.5px;border:0 solid currentColor;border-top-width:2px}[dir=rtl] .mat-calendar-previous-button,[dir=rtl] .mat-calendar-next-button{transform:rotate(180deg)}.mat-calendar-previous-button::after{border-left-width:2px;transform:translateX(2px) rotate(-45deg)}.mat-calendar-next-button::after{border-right-width:2px;transform:translateX(-2px) rotate(45deg)}.mat-calendar-table{border-spacing:0;border-collapse:collapse;width:100%}.mat-calendar-table-header th{text-align:center;padding:0 0 8px 0}.mat-calendar-table-header-divider{position:relative;height:1px}.mat-calendar-table-header-divider::after{content:"";position:absolute;top:0;left:-8px;right:-8px;height:1px}.mat-calendar-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:""}'],encapsulation:2,changeDetection:0});const vt={transformPanel:(0,ae.X$)("transformPanel",[(0,ae.eR)("void => enter-dropdown",(0,ae.jt)("120ms cubic-bezier(0, 0, 0.2, 1)",(0,ae.F4)([(0,ae.oB)({opacity:0,transform:"scale(1, 0.8)"}),(0,ae.oB)({opacity:1,transform:"scale(1, 1)"})]))),(0,ae.eR)("void => enter-dialog",(0,ae.jt)("150ms cubic-bezier(0, 0, 0.2, 1)",(0,ae.F4)([(0,ae.oB)({opacity:0,transform:"scale(0.7)"}),(0,ae.oB)({transform:"none",opacity:1})]))),(0,ae.eR)("* => void",(0,ae.jt)("100ms linear",(0,ae.oB)({opacity:0})))]),fadeInCalendar:(0,ae.X$)("fadeInCalendar",[(0,ae.SB)("void",(0,ae.oB)({opacity:0})),(0,ae.SB)("enter",(0,ae.oB)({opacity:1})),(0,ae.eR)("void => *",(0,ae.jt)("120ms 100ms cubic-bezier(0.55, 0, 0.55, 0.2)"))])};let dt=0;const se=new s.OlP("mat-datepicker-scroll-strategy");const oe={provide:se,deps:[t.aV],useFactory:function J(ft){return()=>ft.scrollStrategies.reposition()}},De=(0,k.pj)(class{constructor(ft){this._elementRef=ft}});class Ye extends De{constructor(re,Te,pt,Lt,nn,Bn){super(re),this._changeDetectorRef=Te,this._globalModel=pt,this._dateAdapter=Lt,this._rangeSelectionStrategy=nn,this._subscriptions=new S.w0,this._animationDone=new p.x,this._actionsPortal=null,this._closeButtonText=Bn.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(re){const Te=this._model.selection,pt=re.value,Lt=Te instanceof ht;if(Lt&&this._rangeSelectionStrategy){const nn=this._rangeSelectionStrategy.selectionFinished(pt,Te,re.event);this._model.updateSelection(nn,this)}else pt&&(Lt||!this._dateAdapter.sameDate(pt,Te))&&this._model.add(pt);(!this._model||this._model.isComplete())&&!this._actionsPortal&&this.datepicker.close()}_startExitAnimation(){this._animationState="void",this._changeDetectorRef.markForCheck()}_getSelected(){return this._model.selection}_applyPendingSelection(){this._model!==this._globalModel&&this._globalModel.updateSelection(this._model.selection,this)}_assignActions(re,Te){this._model=re?this._globalModel.clone():this._globalModel,this._actionsPortal=re,Te&&this._changeDetectorRef.detectChanges()}}Ye.\u0275fac=function(re){return new(re||Ye)(s.Y36(s.SBq),s.Y36(s.sBO),s.Y36(Le),s.Y36(k._A),s.Y36(Oe,8),s.Y36(je))},Ye.\u0275cmp=s.Xpm({type:Ye,selectors:[["mat-datepicker-content"]],viewQuery:function(re,Te){if(1&re&&s.Gf(tt,5),2&re){let pt;s.iGM(pt=s.CRH())&&(Te._calendar=pt.first)}},hostAttrs:[1,"mat-datepicker-content"],hostVars:3,hostBindings:function(re,Te){1&re&&s.WFA("@transformPanel.done",function(){return Te._animationDone.next()}),2&re&&(s.d8E("@transformPanel",Te._animationState),s.ekj("mat-datepicker-content-touch",Te.datepicker.touchUi))},inputs:{color:"color"},exportAs:["matDatepickerContent"],features:[s.qOj],decls:5,vars:24,consts:[["cdkTrapFocus","","role","dialog",1,"mat-datepicker-content-container"],[3,"id","ngClass","startAt","startView","minDate","maxDate","dateFilter","headerComponent","selected","dateClass","comparisonStart","comparisonEnd","yearSelected","monthSelected","viewChanged","_userSelection"],[3,"cdkPortalOutlet"],["type","button","mat-raised-button","",1,"mat-datepicker-close-button",3,"color","focus","blur","click"]],template:function(re,Te){if(1&re&&(s.TgZ(0,"div",0)(1,"mat-calendar",1),s.NdJ("yearSelected",function(Lt){return Te.datepicker._selectYear(Lt)})("monthSelected",function(Lt){return Te.datepicker._selectMonth(Lt)})("viewChanged",function(Lt){return Te.datepicker._viewChanged(Lt)})("_userSelection",function(Lt){return Te._handleUserSelection(Lt)}),s.qZA(),s.YNc(2,v,0,0,"ng-template",2),s.TgZ(3,"button",3),s.NdJ("focus",function(){return Te._closeButtonFocused=!0})("blur",function(){return Te._closeButtonFocused=!1})("click",function(){return Te.datepicker.close()}),s._uU(4),s.qZA()()),2&re){let pt;s.ekj("mat-datepicker-content-container-with-custom-header",Te.datepicker.calendarHeaderComponent)("mat-datepicker-content-container-with-actions",Te._actionsPortal),s.uIk("aria-modal",!0)("aria-labelledby",null!==(pt=Te._dialogLabelId)&&void 0!==pt?pt:void 0),s.xp6(1),s.Q6J("id",Te.datepicker.id)("ngClass",Te.datepicker.panelClass)("startAt",Te.datepicker.startAt)("startView",Te.datepicker.startView)("minDate",Te.datepicker._getMinDate())("maxDate",Te.datepicker._getMaxDate())("dateFilter",Te.datepicker._getDateFilter())("headerComponent",Te.datepicker.calendarHeaderComponent)("selected",Te._getSelected())("dateClass",Te.datepicker.dateClass)("comparisonStart",Te.comparisonStart)("comparisonEnd",Te.comparisonEnd)("@fadeInCalendar","enter"),s.xp6(1),s.Q6J("cdkPortalOutlet",Te._actionsPortal),s.xp6(1),s.ekj("cdk-visually-hidden",!Te._closeButtonFocused),s.Q6J("color",Te.color||"primary"),s.xp6(1),s.Oqu(Te._closeButtonText)}},dependencies:[E.mk,D.lW,e.mK,_.Pl,tt],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:[vt.transformPanel,vt.fadeInCalendar]},changeDetection:0});class Dt{constructor(re,Te,pt,Lt,nn,Bn,Wn){this._overlay=re,this._ngZone=Te,this._viewContainerRef=pt,this._dateAdapter=nn,this._dir=Bn,this._model=Wn,this._inputStateChanges=S.w0.EMPTY,this._document=(0,s.f3M)(E.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-"+dt++,this._focusedElementBeforeOpen=null,this._backdropHarnessClass=`${this.id}-backdrop`,this.stateChanges=new p.x,this._dateAdapter,this._scrollStrategy=Lt}get startAt(){return this._startAt||(this.datepickerInput?this.datepickerInput.getStartValue():null)}set startAt(re){this._startAt=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(re))}get color(){return this._color||(this.datepickerInput?this.datepickerInput.getThemePalette():void 0)}set color(re){this._color=re}get touchUi(){return this._touchUi}set touchUi(re){this._touchUi=(0,Q.Ig)(re)}get disabled(){return void 0===this._disabled&&this.datepickerInput?this.datepickerInput.disabled:!!this._disabled}set disabled(re){const Te=(0,Q.Ig)(re);Te!==this._disabled&&(this._disabled=Te,this.stateChanges.next(void 0))}get restoreFocus(){return this._restoreFocus}set restoreFocus(re){this._restoreFocus=(0,Q.Ig)(re)}get panelClass(){return this._panelClass}set panelClass(re){this._panelClass=(0,Q.du)(re)}get opened(){return this._opened}set opened(re){(0,Q.Ig)(re)?this.open():this.close()}_getMinDate(){return this.datepickerInput&&this.datepickerInput.min}_getMaxDate(){return this.datepickerInput&&this.datepickerInput.max}_getDateFilter(){return this.datepickerInput&&this.datepickerInput.dateFilter}ngOnChanges(re){const Te=re.xPosition||re.yPosition;if(Te&&!Te.firstChange&&this._overlayRef){const pt=this._overlayRef.getConfig().positionStrategy;pt instanceof t._G&&(this._setConnectedPositions(pt),this.opened&&this._overlayRef.updatePosition())}this.stateChanges.next(void 0)}ngOnDestroy(){this._destroyOverlay(),this.close(),this._inputStateChanges.unsubscribe(),this.stateChanges.complete()}select(re){this._model.add(re)}_selectYear(re){this.yearSelected.emit(re)}_selectMonth(re){this.monthSelected.emit(re)}_viewChanged(re){this.viewChanged.emit(re)}registerInput(re){return this.datepickerInput,this._inputStateChanges.unsubscribe(),this.datepickerInput=re,this._inputStateChanges=re.stateChanges.subscribe(()=>this.stateChanges.next(void 0)),this._model}registerActions(re){this._actionsPortal,this._actionsPortal=re,this._componentRef?.instance._assignActions(re,!0)}removeActions(re){re===this._actionsPortal&&(this._actionsPortal=null,this._componentRef?.instance._assignActions(null,!0))}open(){this._opened||this.disabled||(this.datepickerInput,this._focusedElementBeforeOpen=(0,ie.ht)(),this._openOverlay(),this._opened=!0,this.openedStream.emit())}close(){if(!this._opened)return;const re=this._restoreFocus&&this._focusedElementBeforeOpen&&"function"==typeof this._focusedElementBeforeOpen.focus,Te=()=>{this._opened&&(this._opened=!1,this.closedStream.emit())};if(this._componentRef){const{instance:pt,location:Lt}=this._componentRef;pt._startExitAnimation(),pt._animationDone.pipe((0,I.q)(1)).subscribe(()=>{const nn=this._document.activeElement;re&&(!nn||nn===this._document.activeElement||Lt.nativeElement.contains(nn))&&this._focusedElementBeforeOpen.focus(),this._focusedElementBeforeOpen=null,this._destroyOverlay()})}re?setTimeout(Te):Te()}_applyPendingSelection(){this._componentRef?.instance?._applyPendingSelection()}_forwardContentValues(re){re.datepicker=this,re.color=this.color,re._dialogLabelId=this.datepickerInput.getOverlayLabelId(),re._assignActions(this._actionsPortal,!1)}_openOverlay(){this._destroyOverlay();const re=this.touchUi,Te=new _.C5(Ye,this._viewContainerRef),pt=this._overlayRef=this._overlay.create(new t.X_({positionStrategy:re?this._getDialogStrategy():this._getDropdownStrategy(),hasBackdrop:!0,backdropClass:[re?"cdk-overlay-dark-backdrop":"mat-overlay-transparent-backdrop",this._backdropHarnessClass],direction:this._dir,scrollStrategy:re?this._overlay.scrollStrategies.block():this._scrollStrategy(),panelClass:"mat-datepicker-"+(re?"dialog":"popup")}));this._getCloseStream(pt).subscribe(Lt=>{Lt&&Lt.preventDefault(),this.close()}),pt.keydownEvents().subscribe(Lt=>{const nn=Lt.keyCode;(nn===M.LH||nn===M.JH||nn===M.oh||nn===M.SV||nn===M.Ku||nn===M.VM)&&Lt.preventDefault()}),this._componentRef=pt.attach(Te),this._forwardContentValues(this._componentRef.instance),re||this._ngZone.onStable.pipe((0,I.q)(1)).subscribe(()=>pt.updatePosition())}_destroyOverlay(){this._overlayRef&&(this._overlayRef.dispose(),this._overlayRef=this._componentRef=null)}_getDialogStrategy(){return this._overlay.position().global().centerHorizontally().centerVertically()}_getDropdownStrategy(){const re=this._overlay.position().flexibleConnectedTo(this.datepickerInput.getConnectedOverlayOrigin()).withTransformOriginOn(".mat-datepicker-content").withFlexibleDimensions(!1).withViewportMargin(8).withLockedPosition();return this._setConnectedPositions(re)}_setConnectedPositions(re){const Te="end"===this.xPosition?"end":"start",pt="start"===Te?"end":"start",Lt="above"===this.yPosition?"bottom":"top",nn="top"===Lt?"bottom":"top";return re.withPositions([{originX:Te,originY:nn,overlayX:Te,overlayY:Lt},{originX:Te,originY:Lt,overlayX:Te,overlayY:nn},{originX:pt,originY:nn,overlayX:pt,overlayY:Lt},{originX:pt,originY:Lt,overlayX:pt,overlayY:nn}])}_getCloseStream(re){return(0,A.T)(re.backdropClick(),re.detachments(),re.keydownEvents().pipe((0,Z.h)(Te=>Te.keyCode===M.hY&&!(0,M.Vb)(Te)||this.datepickerInput&&(0,M.Vb)(Te,"altKey")&&Te.keyCode===M.LH)))}}Dt.\u0275fac=function(re){return new(re||Dt)(s.Y36(t.aV),s.Y36(s.R0b),s.Y36(s.s_b),s.Y36(se),s.Y36(k._A,8),s.Y36(z.Is,8),s.Y36(Le))},Dt.\u0275dir=s.lG2({type:Dt,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]});class ut extends Dt{}ut.\u0275fac=function(){let ft;return function(Te){return(ft||(ft=s.n5z(ut)))(Te||ut)}}(),ut.\u0275cmp=s.Xpm({type:ut,selectors:[["mat-datepicker"]],exportAs:["matDatepicker"],features:[s._Bn([ee,{provide:Dt,useExisting:ut}]),s.qOj],decls:0,vars:0,template:function(re,Te){},encapsulation:2,changeDetection:0});class ze{constructor(re,Te){this.target=re,this.targetElement=Te,this.value=this.target.value}}class Me{constructor(re,Te,pt){this._elementRef=re,this._dateAdapter=Te,this._dateFormats=pt,this.dateChange=new s.vpe,this.dateInput=new s.vpe,this.stateChanges=new p.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=Lt=>{const nn=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(Lt.value));return!nn||this._matchesFilter(nn)?null:{matDatepickerFilter:!0}},this._minValidator=Lt=>{const nn=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(Lt.value)),Bn=this._getMinDate();return!Bn||!nn||this._dateAdapter.compareDate(Bn,nn)<=0?null:{matDatepickerMin:{min:Bn,actual:nn}}},this._maxValidator=Lt=>{const nn=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(Lt.value)),Bn=this._getMaxDate();return!Bn||!nn||this._dateAdapter.compareDate(Bn,nn)>=0?null:{matDatepickerMax:{max:Bn,actual:nn}}},this._lastValueValid=!1,this._localeSubscription=Te.localeChanges.subscribe(()=>{this._assignValueProgrammatically(this.value)})}get value(){return this._model?this._getValueFromModel(this._model.selection):this._pendingValue}set value(re){this._assignValueProgrammatically(re)}get disabled(){return!!this._disabled||this._parentDisabled()}set disabled(re){const Te=(0,Q.Ig)(re),pt=this._elementRef.nativeElement;this._disabled!==Te&&(this._disabled=Te,this.stateChanges.next(void 0)),Te&&this._isInitialized&&pt.blur&&pt.blur()}_getValidators(){return[this._parseValidator,this._minValidator,this._maxValidator,this._filterValidator]}_registerModel(re){this._model=re,this._valueChangesSubscription.unsubscribe(),this._pendingValue&&this._assignValue(this._pendingValue),this._valueChangesSubscription=this._model.selectionChanged.subscribe(Te=>{if(this._shouldHandleChangeEvent(Te)){const pt=this._getValueFromModel(Te.selection);this._lastValueValid=this._isValidValue(pt),this._cvaOnChange(pt),this._onTouched(),this._formatValue(pt),this.dateInput.emit(new ze(this,this._elementRef.nativeElement)),this.dateChange.emit(new ze(this,this._elementRef.nativeElement))}})}ngAfterViewInit(){this._isInitialized=!0}ngOnChanges(re){Ce(re,this._dateAdapter)&&this.stateChanges.next(void 0)}ngOnDestroy(){this._valueChangesSubscription.unsubscribe(),this._localeSubscription.unsubscribe(),this.stateChanges.complete()}registerOnValidatorChange(re){this._validatorOnChange=re}validate(re){return this._validator?this._validator(re):null}writeValue(re){this._assignValueProgrammatically(re)}registerOnChange(re){this._cvaOnChange=re}registerOnTouched(re){this._onTouched=re}setDisabledState(re){this.disabled=re}_onKeydown(re){re.altKey&&re.keyCode===M.JH&&!this._elementRef.nativeElement.readOnly&&(this._openPopup(),re.preventDefault())}_onInput(re){const Te=this._lastValueValid;let pt=this._dateAdapter.parse(re,this._dateFormats.parse.dateInput);this._lastValueValid=this._isValidValue(pt),pt=this._dateAdapter.getValidDateOrNull(pt);const Lt=!this._dateAdapter.sameDate(pt,this.value);!pt||Lt?this._cvaOnChange(pt):(re&&!this.value&&this._cvaOnChange(pt),Te!==this._lastValueValid&&this._validatorOnChange()),Lt&&(this._assignValue(pt),this.dateInput.emit(new ze(this,this._elementRef.nativeElement)))}_onChange(){this.dateChange.emit(new ze(this,this._elementRef.nativeElement))}_onBlur(){this.value&&this._formatValue(this.value),this._onTouched()}_formatValue(re){this._elementRef.nativeElement.value=null!=re?this._dateAdapter.format(re,this._dateFormats.display.dateInput):""}_assignValue(re){this._model?(this._assignValueToModel(re),this._pendingValue=null):this._pendingValue=re}_isValidValue(re){return!re||this._dateAdapter.isValid(re)}_parentDisabled(){return!1}_assignValueProgrammatically(re){re=this._dateAdapter.deserialize(re),this._lastValueValid=this._isValidValue(re),re=this._dateAdapter.getValidDateOrNull(re),this._assignValue(re),this._formatValue(re)}_matchesFilter(re){const Te=this._getDateFilter();return!Te||Te(re)}}function Ce(ft,re){const Te=Object.keys(ft);for(let pt of Te){const{previousValue:Lt,currentValue:nn}=ft[pt];if(!re.isDateInstance(Lt)||!re.isDateInstance(nn))return!0;if(!re.sameDate(Lt,nn))return!0}return!1}Me.\u0275fac=function(re){return new(re||Me)(s.Y36(s.SBq),s.Y36(k._A,8),s.Y36(k.sG,8))},Me.\u0275dir=s.lG2({type:Me,inputs:{value:"value",disabled:"disabled"},outputs:{dateChange:"dateChange",dateInput:"dateInput"},features:[s.TTD]});const Je={provide:_e.JU,useExisting:(0,s.Gpc)(()=>At),multi:!0},zt={provide:_e.Cf,useExisting:(0,s.Gpc)(()=>At),multi:!0};class At extends Me{constructor(re,Te,pt,Lt){super(re,Te,pt),this._formField=Lt,this._closedSubscription=S.w0.EMPTY,this._validator=_e.kI.compose(super._getValidators())}set matDatepicker(re){re&&(this._datepicker=re,this._closedSubscription=re.closedStream.subscribe(()=>this._onTouched()),this._registerModel(re.registerInput(this)))}get min(){return this._min}set min(re){const Te=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(re));this._dateAdapter.sameDate(Te,this._min)||(this._min=Te,this._validatorOnChange())}get max(){return this._max}set max(re){const Te=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(re));this._dateAdapter.sameDate(Te,this._max)||(this._max=Te,this._validatorOnChange())}get dateFilter(){return this._dateFilter}set dateFilter(re){const Te=this._matchesFilter(this.value);this._dateFilter=re,this._matchesFilter(this.value)!==Te&&this._validatorOnChange()}getConnectedOverlayOrigin(){return this._formField?this._formField.getConnectedOverlayOrigin():this._elementRef}getOverlayLabelId(){return this._formField?this._formField.getLabelId():this._elementRef.nativeElement.getAttribute("aria-labelledby")}getThemePalette(){return this._formField?this._formField.color:void 0}getStartValue(){return this.value}ngOnDestroy(){super.ngOnDestroy(),this._closedSubscription.unsubscribe()}_openPopup(){this._datepicker&&this._datepicker.open()}_getValueFromModel(re){return re}_assignValueToModel(re){this._model&&this._model.updateSelection(re,this)}_getMinDate(){return this._min}_getMaxDate(){return this._max}_getDateFilter(){return this._dateFilter}_shouldHandleChangeEvent(re){return re.source!==this}}At.\u0275fac=function(re){return new(re||At)(s.Y36(s.SBq),s.Y36(k._A,8),s.Y36(k.sG,8),s.Y36(ce.G_,8))},At.\u0275dir=s.lG2({type:At,selectors:[["input","matDatepicker",""]],hostAttrs:[1,"mat-datepicker-input"],hostVars:6,hostBindings:function(re,Te){1&re&&s.NdJ("input",function(Lt){return Te._onInput(Lt.target.value)})("change",function(){return Te._onChange()})("blur",function(){return Te._onBlur()})("keydown",function(Lt){return Te._onKeydown(Lt)}),2&re&&(s.Ikx("disabled",Te.disabled),s.uIk("aria-haspopup",Te._datepicker?"dialog":null)("aria-owns",(null==Te._datepicker?null:Te._datepicker.opened)&&Te._datepicker.id||null)("min",Te.min?Te._dateAdapter.toIso8601(Te.min):null)("max",Te.max?Te._dateAdapter.toIso8601(Te.max):null)("data-mat-calendar",Te._datepicker?Te._datepicker.id:null))},inputs:{matDatepicker:"matDatepicker",min:"min",max:"max",dateFilter:["matDatepickerFilter","dateFilter"]},exportAs:["matDatepickerInput"],features:[s._Bn([Je,zt,{provide:ye.Jk,useExisting:At}]),s.qOj]});class Tt{}Tt.\u0275fac=function(re){return new(re||Tt)},Tt.\u0275dir=s.lG2({type:Tt,selectors:[["","matDatepickerToggleIcon",""]]});class Ht{constructor(re,Te,pt){this._intl=re,this._changeDetectorRef=Te,this._stateChanges=S.w0.EMPTY;const Lt=Number(pt);this.tabIndex=Lt||0===Lt?Lt:null}get disabled(){return void 0===this._disabled&&this.datepicker?this.datepicker.disabled:!!this._disabled}set disabled(re){this._disabled=(0,Q.Ig)(re)}ngOnChanges(re){re.datepicker&&this._watchStateChanges()}ngOnDestroy(){this._stateChanges.unsubscribe()}ngAfterContentInit(){this._watchStateChanges()}_open(re){this.datepicker&&!this.disabled&&(this.datepicker.open(),re.stopPropagation())}_watchStateChanges(){const re=this.datepicker?this.datepicker.stateChanges:(0,P.of)(),Te=this.datepicker&&this.datepicker.datepickerInput?this.datepicker.datepickerInput.stateChanges:(0,P.of)(),pt=this.datepicker?(0,A.T)(this.datepicker.openedStream,this.datepicker.closedStream):(0,P.of)();this._stateChanges.unsubscribe(),this._stateChanges=(0,A.T)(this._intl.changes,re,Te,pt).subscribe(()=>this._changeDetectorRef.markForCheck())}}Ht.\u0275fac=function(re){return new(re||Ht)(s.Y36(je),s.Y36(s.sBO),s.$8M("tabindex"))},Ht.\u0275cmp=s.Xpm({type:Ht,selectors:[["mat-datepicker-toggle"]],contentQueries:function(re,Te,pt){if(1&re&&s.Suo(pt,Tt,5),2&re){let Lt;s.iGM(Lt=s.CRH())&&(Te._customIcon=Lt.first)}},viewQuery:function(re,Te){if(1&re&&s.Gf(a,5),2&re){let pt;s.iGM(pt=s.CRH())&&(Te._button=pt.first)}},hostAttrs:[1,"mat-datepicker-toggle"],hostVars:8,hostBindings:function(re,Te){1&re&&s.NdJ("click",function(Lt){return Te._open(Lt)}),2&re&&(s.uIk("tabindex",null)("data-mat-calendar",Te.datepicker?Te.datepicker.id:null),s.ekj("mat-datepicker-toggle-active",Te.datepicker&&Te.datepicker.opened)("mat-accent",Te.datepicker&&"accent"===Te.datepicker.color)("mat-warn",Te.datepicker&&"warn"===Te.datepicker.color))},inputs:{datepicker:["for","datepicker"],tabIndex:"tabIndex",ariaLabel:["aria-label","ariaLabel"],disabled:"disabled",disableRipple:"disableRipple"},exportAs:["matDatepickerToggle"],features:[s.TTD],ngContentSelectors:["[matDatepickerToggleIcon]"],decls:4,vars:6,consts:[["mat-icon-button","","type","button",3,"disabled","disableRipple"],["button",""],["class","mat-datepicker-toggle-default-icon","viewBox","0 0 24 24","width","24px","height","24px","fill","currentColor","focusable","false",4,"ngIf"],["viewBox","0 0 24 24","width","24px","height","24px","fill","currentColor","focusable","false",1,"mat-datepicker-toggle-default-icon"],["d","M19 3h-1V1h-2v2H8V1H6v2H5c-1.11 0-1.99.9-1.99 2L3 19c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm0 16H5V8h14v11zM7 10h5v5H7z"]],template:function(re,Te){1&re&&(s.F$t(N),s.TgZ(0,"button",0,1),s.YNc(2,C,2,0,"svg",2),s.Hsn(3),s.qZA()),2&re&&(s.Q6J("disabled",Te.disabled)("disableRipple",Te.disableRipple),s.uIk("aria-haspopup",Te.datepicker?"dialog":null)("aria-label",Te.ariaLabel||Te._intl.openCalendarLabel)("tabindex",Te.disabled?-1:Te.tabIndex),s.xp6(2),s.Q6J("ngIf",!Te._customIcon))},dependencies:[E.O5,D.lW],styles:[".mat-form-field-appearance-legacy .mat-form-field-prefix .mat-datepicker-toggle-default-icon,.mat-form-field-appearance-legacy .mat-form-field-suffix .mat-datepicker-toggle-default-icon{width:1em}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-datepicker-toggle-default-icon,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-datepicker-toggle-default-icon{display:block;width:1.5em;height:1.5em}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon-button .mat-datepicker-toggle-default-icon,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon-button .mat-datepicker-toggle-default-icon{margin:auto}.cdk-high-contrast-active .mat-datepicker-toggle-default-icon{color:CanvasText}"],encapsulation:2,changeDetection:0});const He=new s.OlP("MAT_DATE_RANGE_INPUT_PARENT");class $e extends Me{constructor(re,Te,pt,Lt,nn,Bn,Wn,ti){super(Te,Wn,ti),this._rangeInput=re,this._elementRef=Te,this._defaultErrorStateMatcher=pt,this._injector=Lt,this._parentForm=nn,this._parentFormGroup=Bn,this._dir=(0,s.f3M)(z.Is,s.XFs.Optional)}ngOnInit(){const re=this._injector.get(_e.a5,null,s.XFs.Self|s.XFs.Optional);re&&(this.ngControl=re)}ngDoCheck(){this.ngControl&&this.updateErrorState()}isEmpty(){return 0===this._elementRef.nativeElement.value.length}_getPlaceholder(){return this._elementRef.nativeElement.placeholder}focus(){this._elementRef.nativeElement.focus()}_onInput(re){super._onInput(re),this._rangeInput._handleChildValueChange()}_openPopup(){this._rangeInput._openDatepicker()}_getMinDate(){return this._rangeInput.min}_getMaxDate(){return this._rangeInput.max}_getDateFilter(){return this._rangeInput.dateFilter}_parentDisabled(){return this._rangeInput._groupDisabled}_shouldHandleChangeEvent({source:re}){return re!==this._rangeInput._startInput&&re!==this._rangeInput._endInput}_assignValueProgrammatically(re){super._assignValueProgrammatically(re),(this===this._rangeInput._startInput?this._rangeInput._endInput:this._rangeInput._startInput)?._validatorOnChange()}}$e.\u0275fac=function(re){return new(re||$e)(s.Y36(He),s.Y36(s.SBq),s.Y36(k.rD),s.Y36(s.zs3),s.Y36(_e.F,8),s.Y36(_e.sg,8),s.Y36(k._A,8),s.Y36(k.sG,8))},$e.\u0275dir=s.lG2({type:$e,features:[s.qOj]});const $t=(0,k.FD)($e);class Rt extends $t{constructor(re,Te,pt,Lt,nn,Bn,Wn,ti){super(re,Te,pt,Lt,nn,Bn,Wn,ti),this._startValidator=Mn=>{const Ln=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(Mn.value)),ai=this._model?this._model.selection.end:null;return!Ln||!ai||this._dateAdapter.compareDate(Ln,ai)<=0?null:{matStartDateInvalid:{end:ai,actual:Ln}}},this._validator=_e.kI.compose([...super._getValidators(),this._startValidator])}_getValueFromModel(re){return re.start}_shouldHandleChangeEvent(re){return!!super._shouldHandleChangeEvent(re)&&(re.oldValue?.start?!re.selection.start||!!this._dateAdapter.compareDate(re.oldValue.start,re.selection.start):!!re.selection.start)}_assignValueToModel(re){if(this._model){const Te=new ht(re,this._model.selection.end);this._model.updateSelection(Te,this)}}_formatValue(re){super._formatValue(re),this._rangeInput._handleChildValueChange()}getMirrorValue(){const re=this._elementRef.nativeElement,Te=re.value;return Te.length>0?Te:re.placeholder}_onKeydown(re){const Te=this._rangeInput._endInput,pt=this._elementRef.nativeElement,Lt="rtl"!==this._dir?.value;(re.keyCode===M.SV&&Lt||re.keyCode===M.oh&&!Lt)&&pt.selectionStart===pt.value.length&&pt.selectionEnd===pt.value.length?(re.preventDefault(),Te._elementRef.nativeElement.setSelectionRange(0,0),Te.focus()):super._onKeydown(re)}}Rt.\u0275fac=function(re){return new(re||Rt)(s.Y36(He),s.Y36(s.SBq),s.Y36(k.rD),s.Y36(s.zs3),s.Y36(_e.F,8),s.Y36(_e.sg,8),s.Y36(k._A,8),s.Y36(k.sG,8))},Rt.\u0275dir=s.lG2({type:Rt,selectors:[["input","matStartDate",""]],hostAttrs:["type","text",1,"mat-start-date","mat-date-range-input-inner"],hostVars:6,hostBindings:function(re,Te){1&re&&s.NdJ("input",function(Lt){return Te._onInput(Lt.target.value)})("change",function(){return Te._onChange()})("keydown",function(Lt){return Te._onKeydown(Lt)})("blur",function(){return Te._onBlur()}),2&re&&(s.Ikx("disabled",Te.disabled),s.uIk("id",Te._rangeInput.id)("aria-haspopup",Te._rangeInput.rangePicker?"dialog":null)("aria-owns",(null==Te._rangeInput.rangePicker?null:Te._rangeInput.rangePicker.opened)&&Te._rangeInput.rangePicker.id||null)("min",Te._getMinDate()?Te._dateAdapter.toIso8601(Te._getMinDate()):null)("max",Te._getMaxDate()?Te._dateAdapter.toIso8601(Te._getMaxDate()):null))},inputs:{errorStateMatcher:"errorStateMatcher"},outputs:{dateChange:"dateChange",dateInput:"dateInput"},features:[s._Bn([{provide:_e.JU,useExisting:Rt,multi:!0},{provide:_e.Cf,useExisting:Rt,multi:!0}]),s.qOj]});class Jt extends $t{constructor(re,Te,pt,Lt,nn,Bn,Wn,ti){super(re,Te,pt,Lt,nn,Bn,Wn,ti),this._endValidator=Mn=>{const Ln=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(Mn.value)),ai=this._model?this._model.selection.start:null;return!Ln||!ai||this._dateAdapter.compareDate(Ln,ai)>=0?null:{matEndDateInvalid:{start:ai,actual:Ln}}},this._validator=_e.kI.compose([...super._getValidators(),this._endValidator])}_getValueFromModel(re){return re.end}_shouldHandleChangeEvent(re){return!!super._shouldHandleChangeEvent(re)&&(re.oldValue?.end?!re.selection.end||!!this._dateAdapter.compareDate(re.oldValue.end,re.selection.end):!!re.selection.end)}_assignValueToModel(re){if(this._model){const Te=new ht(this._model.selection.start,re);this._model.updateSelection(Te,this)}}_onKeydown(re){const Te=this._rangeInput._startInput,pt=this._elementRef.nativeElement,Lt="rtl"!==this._dir?.value;if(re.keyCode!==M.ZH||pt.value)if((re.keyCode===M.oh&&Lt||re.keyCode===M.SV&&!Lt)&&0===pt.selectionStart&&0===pt.selectionEnd){re.preventDefault();const nn=Te._elementRef.nativeElement.value.length;Te._elementRef.nativeElement.setSelectionRange(nn,nn),Te.focus()}else super._onKeydown(re);else Te.focus()}}Jt.\u0275fac=function(re){return new(re||Jt)(s.Y36(He),s.Y36(s.SBq),s.Y36(k.rD),s.Y36(s.zs3),s.Y36(_e.F,8),s.Y36(_e.sg,8),s.Y36(k._A,8),s.Y36(k.sG,8))},Jt.\u0275dir=s.lG2({type:Jt,selectors:[["input","matEndDate",""]],hostAttrs:["type","text",1,"mat-end-date","mat-date-range-input-inner"],hostVars:5,hostBindings:function(re,Te){1&re&&s.NdJ("input",function(Lt){return Te._onInput(Lt.target.value)})("change",function(){return Te._onChange()})("keydown",function(Lt){return Te._onKeydown(Lt)})("blur",function(){return Te._onBlur()}),2&re&&(s.Ikx("disabled",Te.disabled),s.uIk("aria-haspopup",Te._rangeInput.rangePicker?"dialog":null)("aria-owns",(null==Te._rangeInput.rangePicker?null:Te._rangeInput.rangePicker.opened)&&Te._rangeInput.rangePicker.id||null)("min",Te._getMinDate()?Te._dateAdapter.toIso8601(Te._getMinDate()):null)("max",Te._getMaxDate()?Te._dateAdapter.toIso8601(Te._getMaxDate()):null))},inputs:{errorStateMatcher:"errorStateMatcher"},outputs:{dateChange:"dateChange",dateInput:"dateInput"},features:[s._Bn([{provide:_e.JU,useExisting:Jt,multi:!0},{provide:_e.Cf,useExisting:Jt,multi:!0}]),s.qOj]});let Vn=0;class zn{constructor(re,Te,pt,Lt,nn){if(this._changeDetectorRef=re,this._elementRef=Te,this._dateAdapter=Lt,this._formField=nn,this._closedSubscription=S.w0.EMPTY,this.id="mat-date-range-input-"+Vn++,this.focused=!1,this.controlType="mat-date-range-input",this._groupDisabled=!1,this._ariaDescribedBy=null,this.separator="\u2013",this.comparisonStart=null,this.comparisonEnd=null,this.stateChanges=new p.x,nn?._elementRef.nativeElement.classList.contains("mat-mdc-form-field")){const Bn=Te.nativeElement.classList;Bn.add("mat-mdc-input-element"),Bn.add("mat-mdc-form-field-input-control")}this.ngControl=pt}get value(){return this._model?this._model.selection:null}get shouldLabelFloat(){return this.focused||!this.empty}get placeholder(){const re=this._startInput?._getPlaceholder()||"",Te=this._endInput?._getPlaceholder()||"";return re||Te?`${re} ${this.separator} ${Te}`:""}get rangePicker(){return this._rangePicker}set rangePicker(re){re&&(this._model=re.registerInput(this),this._rangePicker=re,this._closedSubscription.unsubscribe(),this._closedSubscription=re.closedStream.subscribe(()=>{this._startInput?._onTouched(),this._endInput?._onTouched()}),this._registerModel(this._model))}get required(){return!!this._required}set required(re){this._required=(0,Q.Ig)(re)}get dateFilter(){return this._dateFilter}set dateFilter(re){const Te=this._startInput,pt=this._endInput,Lt=Te&&Te._matchesFilter(Te.value),nn=pt&&pt._matchesFilter(Te.value);this._dateFilter=re,Te&&Te._matchesFilter(Te.value)!==Lt&&Te._validatorOnChange(),pt&&pt._matchesFilter(pt.value)!==nn&&pt._validatorOnChange()}get min(){return this._min}set min(re){const Te=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(re));this._dateAdapter.sameDate(Te,this._min)||(this._min=Te,this._revalidate())}get max(){return this._max}set max(re){const Te=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(re));this._dateAdapter.sameDate(Te,this._max)||(this._max=Te,this._revalidate())}get disabled(){return this._startInput&&this._endInput?this._startInput.disabled&&this._endInput.disabled:this._groupDisabled}set disabled(re){const Te=(0,Q.Ig)(re);Te!==this._groupDisabled&&(this._groupDisabled=Te,this.stateChanges.next(void 0))}get errorState(){return!(!this._startInput||!this._endInput)&&(this._startInput.errorState||this._endInput.errorState)}get empty(){const re=!!this._startInput&&this._startInput.isEmpty(),Te=!!this._endInput&&this._endInput.isEmpty();return re&&Te}setDescribedByIds(re){this._ariaDescribedBy=re.length?re.join(" "):null}onContainerClick(){!this.focused&&!this.disabled&&(this._model&&this._model.selection.start?this._endInput.focus():this._startInput.focus())}ngAfterContentInit(){this._model&&this._registerModel(this._model),(0,A.T)(this._startInput.stateChanges,this._endInput.stateChanges).subscribe(()=>{this.stateChanges.next(void 0)})}ngOnChanges(re){Ce(re,this._dateAdapter)&&this.stateChanges.next(void 0)}ngOnDestroy(){this._closedSubscription.unsubscribe(),this.stateChanges.complete()}getStartValue(){return this.value?this.value.start:null}getThemePalette(){return this._formField?this._formField.color:void 0}getConnectedOverlayOrigin(){return this._formField?this._formField.getConnectedOverlayOrigin():this._elementRef}getOverlayLabelId(){return this._formField?this._formField.getLabelId():null}_getInputMirrorValue(){return this._startInput?this._startInput.getMirrorValue():""}_shouldHidePlaceholders(){return!!this._startInput&&!this._startInput.isEmpty()}_handleChildValueChange(){this.stateChanges.next(void 0),this._changeDetectorRef.markForCheck()}_openDatepicker(){this._rangePicker&&this._rangePicker.open()}_shouldHideSeparator(){return(!this._formField||this._formField.getLabelId()&&!this._formField._shouldLabelFloat())&&this.empty}_getAriaLabelledby(){const re=this._formField;return re&&re._hasFloatingLabel()?re._labelId:null}_updateFocus(re){this.focused=null!==re,this.stateChanges.next()}_revalidate(){this._startInput&&this._startInput._validatorOnChange(),this._endInput&&this._endInput._validatorOnChange()}_registerModel(re){this._startInput&&this._startInput._registerModel(re),this._endInput&&this._endInput._registerModel(re)}}zn.\u0275fac=function(re){return new(re||zn)(s.Y36(s.sBO),s.Y36(s.SBq),s.Y36(_e.gN,10),s.Y36(k._A,8),s.Y36(ce.G_,8))},zn.\u0275cmp=s.Xpm({type:zn,selectors:[["mat-date-range-input"]],contentQueries:function(re,Te,pt){if(1&re&&(s.Suo(pt,Rt,5),s.Suo(pt,Jt,5)),2&re){let Lt;s.iGM(Lt=s.CRH())&&(Te._startInput=Lt.first),s.iGM(Lt=s.CRH())&&(Te._endInput=Lt.first)}},hostAttrs:["role","group",1,"mat-date-range-input"],hostVars:8,hostBindings:function(re,Te){2&re&&(s.uIk("id",null)("aria-labelledby",Te._getAriaLabelledby())("aria-describedby",Te._ariaDescribedBy)("data-mat-calendar",Te.rangePicker?Te.rangePicker.id:null),s.ekj("mat-date-range-input-hide-placeholders",Te._shouldHidePlaceholders())("mat-date-range-input-required",Te.required))},inputs:{rangePicker:"rangePicker",required:"required",dateFilter:"dateFilter",min:"min",max:"max",disabled:"disabled",separator:"separator",comparisonStart:"comparisonStart",comparisonEnd:"comparisonEnd"},exportAs:["matDateRangeInput"],features:[s._Bn([{provide:ce.Eo,useExisting:zn},{provide:He,useExisting:zn}]),s.TTD],ngContentSelectors:["input[matStartDate]","input[matEndDate]"],decls:9,vars:4,consts:[["cdkMonitorSubtreeFocus","",1,"mat-date-range-input-container",3,"cdkFocusChange"],[1,"mat-date-range-input-start-wrapper"],["aria-hidden","true",1,"mat-date-range-input-mirror"],[1,"mat-date-range-input-separator"],[1,"mat-date-range-input-end-wrapper"]],template:function(re,Te){1&re&&(s.F$t(X),s.TgZ(0,"div",0),s.NdJ("cdkFocusChange",function(Lt){return Te._updateFocus(Lt)}),s.TgZ(1,"div",1),s.Hsn(2),s.TgZ(3,"span",2),s._uU(4),s.qZA()(),s.TgZ(5,"span",3),s._uU(6),s.qZA(),s.TgZ(7,"div",4),s.Hsn(8,1),s.qZA()()),2&re&&(s.xp6(4),s.Oqu(Te._getInputMirrorValue()),s.xp6(1),s.ekj("mat-date-range-input-separator-hidden",Te._shouldHideSeparator()),s.xp6(1),s.Oqu(Te.separator))},dependencies:[e.kH],styles:[".mat-date-range-input{display:block;width:100%}.mat-date-range-input-container{display:flex;align-items:center}.mat-date-range-input-separator{transition:opacity 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1);margin:0 4px}._mat-animation-noopable .mat-date-range-input-separator{transition:none}.mat-date-range-input-separator-hidden{-webkit-user-select:none;user-select:none;opacity:0;transition:none}.mat-date-range-input-inner{font:inherit;background:rgba(0,0,0,0);color:currentColor;border:none;outline:none;padding:0;margin:0;vertical-align:bottom;text-align:inherit;-webkit-appearance:none;width:100%}.mat-date-range-input-inner:-moz-ui-invalid{box-shadow:none}.mat-date-range-input-inner::placeholder{transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-date-range-input-inner::-moz-placeholder{transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-date-range-input-inner::-webkit-input-placeholder{transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-date-range-input-inner:-ms-input-placeholder{transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-form-field-hide-placeholder .mat-date-range-input-inner::placeholder,.mat-date-range-input-hide-placeholders .mat-date-range-input-inner::placeholder{-webkit-user-select:none;user-select:none;color:rgba(0,0,0,0) !important;-webkit-text-fill-color:rgba(0,0,0,0);transition:none}.cdk-high-contrast-active .mat-form-field-hide-placeholder .mat-date-range-input-inner::placeholder,.cdk-high-contrast-active .mat-date-range-input-hide-placeholders .mat-date-range-input-inner::placeholder{opacity:0}.mat-form-field-hide-placeholder .mat-date-range-input-inner::-moz-placeholder,.mat-date-range-input-hide-placeholders .mat-date-range-input-inner::-moz-placeholder{-webkit-user-select:none;user-select:none;color:rgba(0,0,0,0) !important;-webkit-text-fill-color:rgba(0,0,0,0);transition:none}.cdk-high-contrast-active .mat-form-field-hide-placeholder .mat-date-range-input-inner::-moz-placeholder,.cdk-high-contrast-active .mat-date-range-input-hide-placeholders .mat-date-range-input-inner::-moz-placeholder{opacity:0}.mat-form-field-hide-placeholder .mat-date-range-input-inner::-webkit-input-placeholder,.mat-date-range-input-hide-placeholders .mat-date-range-input-inner::-webkit-input-placeholder{-webkit-user-select:none;user-select:none;color:rgba(0,0,0,0) !important;-webkit-text-fill-color:rgba(0,0,0,0);transition:none}.cdk-high-contrast-active .mat-form-field-hide-placeholder .mat-date-range-input-inner::-webkit-input-placeholder,.cdk-high-contrast-active .mat-date-range-input-hide-placeholders .mat-date-range-input-inner::-webkit-input-placeholder{opacity:0}.mat-form-field-hide-placeholder .mat-date-range-input-inner:-ms-input-placeholder,.mat-date-range-input-hide-placeholders .mat-date-range-input-inner:-ms-input-placeholder{-webkit-user-select:none;user-select:none;color:rgba(0,0,0,0) !important;-webkit-text-fill-color:rgba(0,0,0,0);transition:none}.cdk-high-contrast-active .mat-form-field-hide-placeholder .mat-date-range-input-inner:-ms-input-placeholder,.cdk-high-contrast-active .mat-date-range-input-hide-placeholders .mat-date-range-input-inner:-ms-input-placeholder{opacity:0}._mat-animation-noopable .mat-date-range-input-inner::placeholder{transition:none}._mat-animation-noopable .mat-date-range-input-inner::-moz-placeholder{transition:none}._mat-animation-noopable .mat-date-range-input-inner::-webkit-input-placeholder{transition:none}._mat-animation-noopable .mat-date-range-input-inner:-ms-input-placeholder{transition:none}.mat-date-range-input-mirror{-webkit-user-select:none;user-select:none;visibility:hidden;white-space:nowrap;display:inline-block;min-width:2px}.mat-date-range-input-start-wrapper{position:relative;overflow:hidden;max-width:calc(50% - 4px)}.mat-date-range-input-start-wrapper .mat-date-range-input-inner{position:absolute;top:0;left:0}.mat-date-range-input-end-wrapper{flex-grow:1;max-width:calc(50% - 4px)}.mat-form-field-type-mat-date-range-input .mat-form-field-infix{width:200px}"],encapsulation:2,changeDetection:0});class Tn extends Dt{_forwardContentValues(re){super._forwardContentValues(re);const Te=this.datepickerInput;Te&&(re.comparisonStart=Te.comparisonStart,re.comparisonEnd=Te.comparisonEnd)}}Tn.\u0275fac=function(){let ft;return function(Te){return(ft||(ft=s.n5z(Tn)))(Te||Tn)}}(),Tn.\u0275cmp=s.Xpm({type:Tn,selectors:[["mat-date-range-picker"]],exportAs:["matDateRangePicker"],features:[s._Bn([j,_t,{provide:Dt,useExisting:Tn}]),s.qOj],decls:0,vars:0,template:function(re,Te){},encapsulation:2,changeDetection:0});class Yn{constructor(re){this._datepicker=re}_applySelection(){this._datepicker._applyPendingSelection(),this._datepicker.close()}}Yn.\u0275fac=function(re){return new(re||Yn)(s.Y36(Dt))},Yn.\u0275dir=s.lG2({type:Yn,selectors:[["","matDatepickerApply",""],["","matDateRangePickerApply",""]],hostBindings:function(re,Te){1&re&&s.NdJ("click",function(){return Te._applySelection()})}});class Mt{constructor(re){this._datepicker=re}}Mt.\u0275fac=function(re){return new(re||Mt)(s.Y36(Dt))},Mt.\u0275dir=s.lG2({type:Mt,selectors:[["","matDatepickerCancel",""],["","matDateRangePickerCancel",""]],hostBindings:function(re,Te){1&re&&s.NdJ("click",function(){return Te._datepicker.close()})}});class Ge{constructor(re,Te){this._datepicker=re,this._viewContainerRef=Te}ngAfterViewInit(){this._portal=new _.UE(this._template,this._viewContainerRef),this._datepicker.registerActions(this._portal)}ngOnDestroy(){this._datepicker.removeActions(this._portal),this._portal&&this._portal.isAttached&&this._portal?.detach()}}Ge.\u0275fac=function(re){return new(re||Ge)(s.Y36(Dt),s.Y36(s.s_b))},Ge.\u0275cmp=s.Xpm({type:Ge,selectors:[["mat-datepicker-actions"],["mat-date-range-picker-actions"]],viewQuery:function(re,Te){if(1&re&&s.Gf(s.Rgc,5),2&re){let pt;s.iGM(pt=s.CRH())&&(Te._template=pt.first)}},ngContentSelectors:h,decls:1,vars:0,consts:[[1,"mat-datepicker-actions"]],template:function(re,Te){1&re&&(s.F$t(),s.YNc(0,ke,2,0,"ng-template"))},styles:[".mat-datepicker-actions{display:flex;justify-content:flex-end;align-items:center;padding:0 8px 8px 8px}.mat-datepicker-actions .mat-button-base+.mat-button-base{margin-left:8px}[dir=rtl] .mat-datepicker-actions .mat-button-base+.mat-button-base{margin-left:0;margin-right:8px}"],encapsulation:2,changeDetection:0});class Be{}Be.\u0275fac=function(re){return new(re||Be)},Be.\u0275mod=s.oAB({type:Be}),Be.\u0275inj=s.cJS({providers:[je,oe],imports:[E.ez,D.ot,t.U8,e.rt,_.eL,k.BQ,u.ZD]})},640:(Ue,q,m)=>{"use strict";m.d(q,{WI:()=>X,Bq:()=>Fe,uw:()=>Ie,ZT:()=>et,Is:()=>pe,so:()=>N});var e=m(4218),t=m(5895),_=m(9107),E=m(7520),s=m(4666),D=m(2560),u=m(8456),k=m(253),p=m(1954),S=m(745),A=m(2867),P=m(4874);function M(ee,H){}class z{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}}class W extends E.en{constructor(H,j,Oe,Re,le,_t,it,Ct){super(),this._elementRef=H,this._focusTrapFactory=j,this._config=Re,this._interactivityChecker=le,this._ngZone=_t,this._overlayRef=it,this._focusMonitor=Ct,this._elementFocusedBeforeDialogWasOpened=null,this._closeInteractionType=null,this.attachDomPortal=un=>{this._portalOutlet.hasAttached();const Bt=this._portalOutlet.attachDomPortal(un);return this._contentAttached(),Bt},this._ariaLabelledBy=this._config.ariaLabelledBy||null,this._document=Oe}_contentAttached(){this._initializeFocusTrap(),this._handleBackdropClicks(),this._captureInitialFocus()}_captureInitialFocus(){this._trapFocus()}ngOnDestroy(){this._restoreFocus()}attachComponentPortal(H){this._portalOutlet.hasAttached();const j=this._portalOutlet.attachComponentPortal(H);return this._contentAttached(),j}attachTemplatePortal(H){this._portalOutlet.hasAttached();const j=this._portalOutlet.attachTemplatePortal(H);return this._contentAttached(),j}_recaptureFocus(){this._containsFocus()||this._trapFocus()}_forceFocus(H,j){this._interactivityChecker.isFocusable(H)||(H.tabIndex=-1,this._ngZone.runOutsideAngular(()=>{const Oe=()=>{H.removeEventListener("blur",Oe),H.removeEventListener("mousedown",Oe),H.removeAttribute("tabindex")};H.addEventListener("blur",Oe),H.addEventListener("mousedown",Oe)})),H.focus(j)}_focusByCssSelector(H,j){let Oe=this._elementRef.nativeElement.querySelector(H);Oe&&this._forceFocus(Oe,j)}_trapFocus(){const H=this._elementRef.nativeElement;switch(this._config.autoFocus){case!1:case"dialog":this._containsFocus()||H.focus();break;case!0:case"first-tabbable":this._focusTrap.focusInitialElementWhenReady().then(j=>{j||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 H=this._config.restoreFocus;let j=null;if("string"==typeof H?j=this._document.querySelector(H):"boolean"==typeof H?j=H?this._elementFocusedBeforeDialogWasOpened:null:H&&(j=H),this._config.restoreFocus&&j&&"function"==typeof j.focus){const Oe=(0,_.ht)(),Re=this._elementRef.nativeElement;(!Oe||Oe===this._document.body||Oe===Re||Re.contains(Oe))&&(this._focusMonitor?(this._focusMonitor.focusVia(j,this._closeInteractionType),this._closeInteractionType=null):j.focus())}this._focusTrap&&this._focusTrap.destroy()}_focusDialogContainer(){this._elementRef.nativeElement.focus&&this._elementRef.nativeElement.focus()}_containsFocus(){const H=this._elementRef.nativeElement,j=(0,_.ht)();return H===j||H.contains(j)}_initializeFocusTrap(){this._focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement),this._document&&(this._elementFocusedBeforeDialogWasOpened=(0,_.ht)())}_handleBackdropClicks(){this._overlayRef.backdropClick().subscribe(()=>{this._config.disableClose&&this._recaptureFocus()})}}W.\u0275fac=function(H){return new(H||W)(D.Y36(D.SBq),D.Y36(e.qV),D.Y36(s.K0,8),D.Y36(z),D.Y36(e.ic),D.Y36(D.R0b),D.Y36(t.Iu),D.Y36(e.tE))},W.\u0275cmp=D.Xpm({type:W,selectors:[["cdk-dialog-container"]],viewQuery:function(H,j){if(1&H&&D.Gf(E.Pl,7),2&H){let Oe;D.iGM(Oe=D.CRH())&&(j._portalOutlet=Oe.first)}},hostAttrs:["tabindex","-1",1,"cdk-dialog-container"],hostVars:6,hostBindings:function(H,j){2&H&&D.uIk("id",j._config.id||null)("role",j._config.role)("aria-modal",j._config.ariaModal)("aria-labelledby",j._config.ariaLabel?null:j._ariaLabelledBy)("aria-label",j._config.ariaLabel)("aria-describedby",j._config.ariaDescribedBy||null)},features:[D.qOj],decls:1,vars:0,consts:[["cdkPortalOutlet",""]],template:function(H,j){1&H&&D.YNc(0,M,0,0,"ng-template",0)},dependencies:[E.Pl],styles:[".cdk-dialog-container{display:block;width:100%;height:100%;min-height:inherit;max-height:inherit}"],encapsulation:2});class Z{constructor(H,j){this.overlayRef=H,this.config=j,this.closed=new k.x,this.disableClose=j.disableClose,this.backdropClick=H.backdropClick(),this.keydownEvents=H.keydownEvents(),this.outsidePointerEvents=H.outsidePointerEvents(),this.id=j.id,this.keydownEvents.subscribe(Oe=>{Oe.keyCode===u.hY&&!this.disableClose&&!(0,u.Vb)(Oe)&&(Oe.preventDefault(),this.close(void 0,{focusOrigin:"keyboard"}))}),this.backdropClick.subscribe(()=>{this.disableClose||this.close(void 0,{focusOrigin:"mouse"})})}close(H,j){if(this.containerInstance){const Oe=this.closed;this.containerInstance._closeInteractionType=j?.focusOrigin||"program",this.overlayRef.dispose(),Oe.next(H),Oe.complete(),this.componentInstance=this.containerInstance=null}}updatePosition(){return this.overlayRef.updatePosition(),this}updateSize(H="",j=""){return this.overlayRef.updateSize({width:H,height:j}),this}addPanelClass(H){return this.overlayRef.addPanelClass(H),this}removePanelClass(H){return this.overlayRef.removePanelClass(H),this}}const Q=new D.OlP("DialogScrollStrategy"),ie=new D.OlP("DialogData"),ae=new D.OlP("DefaultDialogConfig");const ce={provide:Q,deps:[t.aV],useFactory:function _e(ee){return()=>ee.scrollStrategies.block()}};let ye=0;class ue{constructor(H,j,Oe,Re,le,_t){this._overlay=H,this._injector=j,this._defaultOptions=Oe,this._parentDialog=Re,this._overlayContainer=le,this._openDialogsAtThisLevel=[],this._afterAllClosedAtThisLevel=new k.x,this._afterOpenedAtThisLevel=new k.x,this._ariaHiddenElements=new Map,this.afterAllClosed=(0,p.P)(()=>this.openDialogs.length?this._getAfterAllClosed():this._getAfterAllClosed().pipe((0,P.O)(void 0))),this._scrollStrategy=_t}get openDialogs(){return this._parentDialog?this._parentDialog.openDialogs:this._openDialogsAtThisLevel}get afterOpened(){return this._parentDialog?this._parentDialog.afterOpened:this._afterOpenedAtThisLevel}open(H,j){(j={...this._defaultOptions||new z,...j}).id=j.id||"cdk-dialog-"+ye++,j.id&&this.getDialogById(j.id);const Re=this._getOverlayConfig(j),le=this._overlay.create(Re),_t=new Z(le,j),it=this._attachContainer(le,_t,j);return _t.containerInstance=it,this._attachDialogContent(H,_t,it,j),this.openDialogs.length||this._hideNonDialogContentFromAssistiveTechnology(),this.openDialogs.push(_t),_t.closed.subscribe(()=>this._removeOpenDialog(_t,!0)),this.afterOpened.next(_t),_t}closeAll(){$(this.openDialogs,H=>H.close())}getDialogById(H){return this.openDialogs.find(j=>j.id===H)}ngOnDestroy(){$(this._openDialogsAtThisLevel,H=>{!1===H.config.closeOnDestroy&&this._removeOpenDialog(H,!1)}),$(this._openDialogsAtThisLevel,H=>H.close()),this._afterAllClosedAtThisLevel.complete(),this._afterOpenedAtThisLevel.complete(),this._openDialogsAtThisLevel=[]}_getOverlayConfig(H){const j=new t.X_({positionStrategy:H.positionStrategy||this._overlay.position().global().centerHorizontally().centerVertically(),scrollStrategy:H.scrollStrategy||this._scrollStrategy(),panelClass:H.panelClass,hasBackdrop:H.hasBackdrop,direction:H.direction,minWidth:H.minWidth,minHeight:H.minHeight,maxWidth:H.maxWidth,maxHeight:H.maxHeight,width:H.width,height:H.height,disposeOnNavigation:H.closeOnNavigation});return H.backdropClass&&(j.backdropClass=H.backdropClass),j}_attachContainer(H,j,Oe){const Re=Oe.injector||Oe.viewContainerRef?.injector,le=[{provide:z,useValue:Oe},{provide:Z,useValue:j},{provide:t.Iu,useValue:H}];let _t;Oe.container?"function"==typeof Oe.container?_t=Oe.container:(_t=Oe.container.type,le.push(...Oe.container.providers(Oe))):_t=W;const it=new E.C5(_t,Oe.viewContainerRef,D.zs3.create({parent:Re||this._injector,providers:le}),Oe.componentFactoryResolver);return H.attach(it).instance}_attachDialogContent(H,j,Oe,Re){if(H instanceof D.Rgc){const le=this._createInjector(Re,j,Oe,void 0);let _t={$implicit:Re.data,dialogRef:j};Re.templateContext&&(_t={..._t,..."function"==typeof Re.templateContext?Re.templateContext():Re.templateContext}),Oe.attachTemplatePortal(new E.UE(H,null,_t,le))}else{const le=this._createInjector(Re,j,Oe,this._injector),_t=Oe.attachComponentPortal(new E.C5(H,Re.viewContainerRef,le,Re.componentFactoryResolver));j.componentInstance=_t.instance}}_createInjector(H,j,Oe,Re){const le=H.injector||H.viewContainerRef?.injector,_t=[{provide:ie,useValue:H.data},{provide:Z,useValue:j}];return H.providers&&("function"==typeof H.providers?_t.push(...H.providers(j,H,Oe)):_t.push(...H.providers)),H.direction&&(!le||!le.get(A.Is,null,D.XFs.Optional))&&_t.push({provide:A.Is,useValue:{value:H.direction,change:(0,S.of)()}}),D.zs3.create({parent:le||Re,providers:_t})}_removeOpenDialog(H,j){const Oe=this.openDialogs.indexOf(H);Oe>-1&&(this.openDialogs.splice(Oe,1),this.openDialogs.length||(this._ariaHiddenElements.forEach((Re,le)=>{Re?le.setAttribute("aria-hidden",Re):le.removeAttribute("aria-hidden")}),this._ariaHiddenElements.clear(),j&&this._getAfterAllClosed().next()))}_hideNonDialogContentFromAssistiveTechnology(){const H=this._overlayContainer.getContainerElement();if(H.parentElement){const j=H.parentElement.children;for(let Oe=j.length-1;Oe>-1;Oe--){const Re=j[Oe];Re!==H&&"SCRIPT"!==Re.nodeName&&"STYLE"!==Re.nodeName&&!Re.hasAttribute("aria-live")&&(this._ariaHiddenElements.set(Re,Re.getAttribute("aria-hidden")),Re.setAttribute("aria-hidden","true"))}}}_getAfterAllClosed(){const H=this._parentDialog;return H?H._getAfterAllClosed():this._afterAllClosedAtThisLevel}}function $(ee,H){let j=ee.length;for(;j--;)H(ee[j])}ue.\u0275fac=function(H){return new(H||ue)(D.LFG(t.aV),D.LFG(D.zs3),D.LFG(ae,8),D.LFG(ue,12),D.LFG(t.Xj),D.LFG(Q))},ue.\u0275prov=D.Yz7({token:ue,factory:ue.\u0275fac});class he{}he.\u0275fac=function(H){return new(H||he)},he.\u0275mod=D.oAB({type:he}),he.\u0275inj=D.cJS({providers:[ue,ce],imports:[t.U8,E.eL,e.rt,E.eL]});var w=m(207),n=m(6646),o=m(116),h=m(9295),d=m(4851);function y(ee,H){}const L={params:{enterAnimationDuration:"150ms",exitAnimationDuration:"75ms"}},B={dialogContainer:(0,d.X$)("dialogContainer",[(0,d.SB)("void, exit",(0,d.oB)({opacity:0,transform:"scale(0.7)"})),(0,d.SB)("enter",(0,d.oB)({transform:"none"})),(0,d.eR)("* => enter",(0,d.ru)([(0,d.jt)("{{enterAnimationDuration}} cubic-bezier(0, 0, 0.2, 1)",(0,d.oB)({transform:"none",opacity:1})),(0,d.IO)("@*",(0,d.pV)(),{optional:!0})]),L),(0,d.eR)("* => void, * => exit",(0,d.ru)([(0,d.jt)("{{exitAnimationDuration}} cubic-bezier(0.4, 0.0, 0.2, 1)",(0,d.oB)({opacity:0})),(0,d.IO)("@*",(0,d.pV)(),{optional:!0})]),L)])};class v{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,this.enterAnimationDuration=L.params.enterAnimationDuration,this.exitAnimationDuration=L.params.exitAnimationDuration}}class a extends W{constructor(H,j,Oe,Re,le,_t,it,Ct){super(H,j,Oe,Re,le,_t,it,Ct),this._animationStateChanged=new D.vpe}_captureInitialFocus(){this._config.delayFocusTrap||this._trapFocus()}_openAnimationDone(H){this._config.delayFocusTrap&&this._trapFocus(),this._animationStateChanged.next({state:"opened",totalTime:H})}}a.\u0275fac=function(H){return new(H||a)(D.Y36(D.SBq),D.Y36(e.qV),D.Y36(s.K0,8),D.Y36(v),D.Y36(e.ic),D.Y36(D.R0b),D.Y36(t.Iu),D.Y36(e.tE))},a.\u0275cmp=D.Xpm({type:a,selectors:[["ng-component"]],features:[D.qOj],decls:0,vars:0,template:function(H,j){},encapsulation:2});class C extends a{constructor(H,j,Oe,Re,le,_t,it,Ct,un){super(H,j,Oe,Re,le,_t,it,un),this._changeDetectorRef=Ct,this._state="enter"}_onAnimationDone({toState:H,totalTime:j}){"enter"===H?this._openAnimationDone(j):"exit"===H&&this._animationStateChanged.next({state:"closed",totalTime:j})}_onAnimationStart({toState:H,totalTime:j}){"enter"===H?this._animationStateChanged.next({state:"opening",totalTime:j}):("exit"===H||"void"===H)&&this._animationStateChanged.next({state:"closing",totalTime:j})}_startExitAnimation(){this._state="exit",this._changeDetectorRef.markForCheck()}_getAnimationState(){return{value:this._state,params:{enterAnimationDuration:this._config.enterAnimationDuration||L.params.enterAnimationDuration,exitAnimationDuration:this._config.exitAnimationDuration||L.params.exitAnimationDuration}}}}C.\u0275fac=function(H){return new(H||C)(D.Y36(D.SBq),D.Y36(e.qV),D.Y36(s.K0,8),D.Y36(v),D.Y36(e.ic),D.Y36(D.R0b),D.Y36(t.Iu),D.Y36(D.sBO),D.Y36(e.tE))},C.\u0275cmp=D.Xpm({type:C,selectors:[["mat-dialog-container"]],hostAttrs:["tabindex","-1",1,"mat-dialog-container"],hostVars:7,hostBindings:function(H,j){1&H&&D.WFA("@dialogContainer.start",function(Re){return j._onAnimationStart(Re)})("@dialogContainer.done",function(Re){return j._onAnimationDone(Re)}),2&H&&(D.Ikx("id",j._config.id),D.uIk("aria-modal",j._config.ariaModal)("role",j._config.role)("aria-labelledby",j._config.ariaLabel?null:j._ariaLabelledBy)("aria-label",j._config.ariaLabel)("aria-describedby",j._config.ariaDescribedBy||null),D.d8E("@dialogContainer",j._getAnimationState()))},features:[D.qOj],decls:1,vars:0,consts:[["cdkPortalOutlet",""]],template:function(H,j){1&H&&D.YNc(0,y,0,0,"ng-template",0)},dependencies:[E.Pl],styles:[".mat-dialog-container{display:block;padding:24px;border-radius:4px;box-sizing:border-box;overflow:auto;outline:0;width:100%;height:100%;min-height:inherit;max-height:inherit}.cdk-high-contrast-active .mat-dialog-container{outline:solid 1px}.mat-dialog-content{display:block;margin:0 -24px;padding:0 24px;max-height:65vh;overflow:auto;-webkit-overflow-scrolling:touch}.mat-dialog-title{margin:0 0 20px;display:block}.mat-dialog-actions{padding:8px 0;display:flex;flex-wrap:wrap;min-height:52px;align-items:center;box-sizing:content-box;margin-bottom:-24px}.mat-dialog-actions.mat-dialog-actions-align-center,.mat-dialog-actions[align=center]{justify-content:center}.mat-dialog-actions.mat-dialog-actions-align-end,.mat-dialog-actions[align=end]{justify-content:flex-end}.mat-dialog-actions .mat-button-base+.mat-button-base,.mat-dialog-actions .mat-mdc-button-base+.mat-mdc-button-base{margin-left:8px}[dir=rtl] .mat-dialog-actions .mat-button-base+.mat-button-base,[dir=rtl] .mat-dialog-actions .mat-mdc-button-base+.mat-mdc-button-base{margin-left:0;margin-right:8px}"],encapsulation:2,data:{animation:[B.dialogContainer]}});class N{constructor(H,j,Oe){this._ref=H,this._containerInstance=Oe,this._afterOpened=new k.x,this._beforeClosed=new k.x,this._state=0,this.disableClose=j.disableClose,this.id=H.id,Oe._animationStateChanged.pipe((0,o.h)(Re=>"opened"===Re.state),(0,h.q)(1)).subscribe(()=>{this._afterOpened.next(),this._afterOpened.complete()}),Oe._animationStateChanged.pipe((0,o.h)(Re=>"closed"===Re.state),(0,h.q)(1)).subscribe(()=>{clearTimeout(this._closeFallbackTimeout),this._finishDialogClose()}),H.overlayRef.detachments().subscribe(()=>{this._beforeClosed.next(this._result),this._beforeClosed.complete(),this._finishDialogClose()}),(0,n.T)(this.backdropClick(),this.keydownEvents().pipe((0,o.h)(Re=>Re.keyCode===u.hY&&!this.disableClose&&!(0,u.Vb)(Re)))).subscribe(Re=>{this.disableClose||(Re.preventDefault(),F(this,"keydown"===Re.type?"keyboard":"mouse"))})}close(H){this._result=H,this._containerInstance._animationStateChanged.pipe((0,o.h)(j=>"closing"===j.state),(0,h.q)(1)).subscribe(j=>{this._beforeClosed.next(H),this._beforeClosed.complete(),this._ref.overlayRef.detachBackdrop(),this._closeFallbackTimeout=setTimeout(()=>this._finishDialogClose(),j.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(H){let j=this._ref.config.positionStrategy;return H&&(H.left||H.right)?H.left?j.left(H.left):j.right(H.right):j.centerHorizontally(),H&&(H.top||H.bottom)?H.top?j.top(H.top):j.bottom(H.bottom):j.centerVertically(),this._ref.updatePosition(),this}updateSize(H="",j=""){return this._ref.updateSize(H,j),this}addPanelClass(H){return this._ref.addPanelClass(H),this}removePanelClass(H){return this._ref.removePanelClass(H),this}getState(){return this._state}_finishDialogClose(){this._state=2,this._ref.close(this._result,{focusOrigin:this._closeInteractionType}),this.componentInstance=null}}function F(ee,H,j){return ee._closeInteractionType=H,ee.close(j)}const X=new D.OlP("MatDialogData"),Fe=new D.OlP("mat-dialog-default-options"),ke=new D.OlP("mat-dialog-scroll-strategy");const Ve={provide:ke,deps:[t.aV],useFactory:function je(ee){return()=>ee.scrollStrategies.block()}};let xe=0;class Ze{constructor(H,j,Oe,Re,le,_t,it,Ct,un,Bt){this._overlay=H,this._defaultOptions=Oe,this._parentDialog=Re,this._dialogRefConstructor=it,this._dialogContainerType=Ct,this._dialogDataToken=un,this._openDialogsAtThisLevel=[],this._afterAllClosedAtThisLevel=new k.x,this._afterOpenedAtThisLevel=new k.x,this._idPrefix="mat-dialog-",this.afterAllClosed=(0,p.P)(()=>this.openDialogs.length?this._getAfterAllClosed():this._getAfterAllClosed().pipe((0,P.O)(void 0))),this._scrollStrategy=_t,this._dialog=j.get(ue)}get openDialogs(){return this._parentDialog?this._parentDialog.openDialogs:this._openDialogsAtThisLevel}get afterOpened(){return this._parentDialog?this._parentDialog.afterOpened:this._afterOpenedAtThisLevel}_getAfterAllClosed(){const H=this._parentDialog;return H?H._getAfterAllClosed():this._afterAllClosedAtThisLevel}open(H,j){let Oe;(j={...this._defaultOptions||new v,...j}).id=j.id||`${this._idPrefix}${xe++}`,j.scrollStrategy=j.scrollStrategy||this._scrollStrategy();const Re=this._dialog.open(H,{...j,positionStrategy:this._overlay.position().global().centerHorizontally().centerVertically(),disableClose:!0,closeOnDestroy:!1,container:{type:this._dialogContainerType,providers:()=>[{provide:v,useValue:j},{provide:z,useValue:j}]},templateContext:()=>({dialogRef:Oe}),providers:(le,_t,it)=>(Oe=new this._dialogRefConstructor(le,j,it),Oe.updatePosition(j?.position),[{provide:this._dialogContainerType,useValue:it},{provide:this._dialogDataToken,useValue:_t.data},{provide:this._dialogRefConstructor,useValue:Oe}])});return Oe.componentInstance=Re.componentInstance,this.openDialogs.push(Oe),this.afterOpened.next(Oe),Oe.afterClosed().subscribe(()=>{const le=this.openDialogs.indexOf(Oe);le>-1&&(this.openDialogs.splice(le,1),this.openDialogs.length||this._getAfterAllClosed().next())}),Oe}closeAll(){this._closeDialogs(this.openDialogs)}getDialogById(H){return this.openDialogs.find(j=>j.id===H)}ngOnDestroy(){this._closeDialogs(this._openDialogsAtThisLevel),this._afterAllClosedAtThisLevel.complete(),this._afterOpenedAtThisLevel.complete()}_closeDialogs(H){let j=H.length;for(;j--;)H[j].close()}}Ze.\u0275fac=function(H){D.$Z()},Ze.\u0275prov=D.Yz7({token:Ze,factory:Ze.\u0275fac});class Ie extends Ze{constructor(H,j,Oe,Re,le,_t,it,Ct){super(H,j,Re,_t,it,le,N,C,X,Ct)}}Ie.\u0275fac=function(H){return new(H||Ie)(D.LFG(t.aV),D.LFG(D.zs3),D.LFG(s.Ye,8),D.LFG(Fe,8),D.LFG(ke),D.LFG(Ie,12),D.LFG(t.Xj),D.LFG(D.QbO,8))},Ie.\u0275prov=D.Yz7({token:Ie,factory:Ie.\u0275fac});let ve=0;class et{constructor(H,j,Oe){this.dialogRef=H,this._elementRef=j,this._dialog=Oe,this.type="button"}ngOnInit(){this.dialogRef||(this.dialogRef=te(this._elementRef,this._dialog.openDialogs))}ngOnChanges(H){const j=H._matDialogClose||H._matDialogCloseResult;j&&(this.dialogResult=j.currentValue)}_onButtonClick(H){F(this.dialogRef,0===H.screenX&&0===H.screenY?"keyboard":"mouse",this.dialogResult)}}et.\u0275fac=function(H){return new(H||et)(D.Y36(N,8),D.Y36(D.SBq),D.Y36(Ie))},et.\u0275dir=D.lG2({type:et,selectors:[["","mat-dialog-close",""],["","matDialogClose",""]],hostVars:2,hostBindings:function(H,j){1&H&&D.NdJ("click",function(Re){return j._onButtonClick(Re)}),2&H&&D.uIk("aria-label",j.ariaLabel||null)("type",j.type)},inputs:{ariaLabel:["aria-label","ariaLabel"],type:"type",dialogResult:["mat-dialog-close","dialogResult"],_matDialogClose:["matDialogClose","_matDialogClose"]},exportAs:["matDialogClose"],features:[D.TTD]});class ht{constructor(H,j,Oe){this._dialogRef=H,this._elementRef=j,this._dialog=Oe,this.id="mat-dialog-title-"+ve++}ngOnInit(){this._dialogRef||(this._dialogRef=te(this._elementRef,this._dialog.openDialogs)),this._dialogRef&&Promise.resolve().then(()=>{const H=this._dialogRef._containerInstance;H&&!H._ariaLabelledBy&&(H._ariaLabelledBy=this.id)})}}ht.\u0275fac=function(H){return new(H||ht)(D.Y36(N,8),D.Y36(D.SBq),D.Y36(Ie))},ht.\u0275dir=D.lG2({type:ht,selectors:[["","mat-dialog-title",""],["","matDialogTitle",""]],hostAttrs:[1,"mat-dialog-title"],hostVars:1,hostBindings:function(H,j){2&H&&D.Ikx("id",j.id)},inputs:{id:"id"},exportAs:["matDialogTitle"]});class Le{}Le.\u0275fac=function(H){return new(H||Le)},Le.\u0275dir=D.lG2({type:Le,selectors:[["","mat-dialog-content",""],["mat-dialog-content"],["","matDialogContent",""]],hostAttrs:[1,"mat-dialog-content"]});class Ae{constructor(){this.align="start"}}function te(ee,H){let j=ee.nativeElement.parentElement;for(;j&&!j.classList.contains("mat-dialog-container");)j=j.parentElement;return j?H.find(Oe=>Oe.id===j.id):null}Ae.\u0275fac=function(H){return new(H||Ae)},Ae.\u0275dir=D.lG2({type:Ae,selectors:[["","mat-dialog-actions",""],["mat-dialog-actions"],["","matDialogActions",""]],hostAttrs:[1,"mat-dialog-actions"],hostVars:4,hostBindings:function(H,j){2&H&&D.ekj("mat-dialog-actions-align-center","center"===j.align)("mat-dialog-actions-align-end","end"===j.align)},inputs:{align:"align"}});class pe{}pe.\u0275fac=function(H){return new(H||pe)},pe.\u0275mod=D.oAB({type:pe}),pe.\u0275inj=D.cJS({providers:[Ie,Ve],imports:[he,t.U8,E.eL,w.BQ,w.BQ]})},1528:(Ue,q,m)=>{"use strict";m.d(q,{d:()=>E,t:()=>s});var e=m(2560),t=m(8971),_=m(207);class E{constructor(){this._vertical=!1,this._inset=!1}get vertical(){return this._vertical}set vertical(u){this._vertical=(0,t.Ig)(u)}get inset(){return this._inset}set inset(u){this._inset=(0,t.Ig)(u)}}E.\u0275fac=function(u){return new(u||E)},E.\u0275cmp=e.Xpm({type:E,selectors:[["mat-divider"]],hostAttrs:["role","separator",1,"mat-divider"],hostVars:7,hostBindings:function(u,k){2&u&&(e.uIk("aria-orientation",k.vertical?"vertical":"horizontal"),e.ekj("mat-divider-vertical",k.vertical)("mat-divider-horizontal",!k.vertical)("mat-divider-inset",k.inset))},inputs:{vertical:"vertical",inset:"inset"},decls:0,vars:0,template:function(u,k){},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});class s{}s.\u0275fac=function(u){return new(u||s)},s.\u0275mod=e.oAB({type:s}),s.\u0275inj=e.cJS({imports:[_.BQ,_.BQ]})},3012:(Ue,q,m)=>{"use strict";m.d(q,{pp:()=>Ve,To:()=>xe,ib:()=>N,u4:()=>Ke,yz:()=>ke,yK:()=>je});var e=m(2560),t=m(1755),_=m(8971),E=m(253),s=m(7714);let D=0;const u=new e.OlP("CdkAccordion");class k{constructor(){this._stateChanges=new E.x,this._openCloseAllActions=new E.x,this.id="cdk-accordion-"+D++,this._multi=!1}get multi(){return this._multi}set multi(Ie){this._multi=(0,_.Ig)(Ie)}openAll(){this._multi&&this._openCloseAllActions.next(!0)}closeAll(){this._openCloseAllActions.next(!1)}ngOnChanges(Ie){this._stateChanges.next(Ie)}ngOnDestroy(){this._stateChanges.complete(),this._openCloseAllActions.complete()}}k.\u0275fac=function(Ie){return new(Ie||k)},k.\u0275dir=e.lG2({type:k,selectors:[["cdk-accordion"],["","cdkAccordion",""]],inputs:{multi:"multi"},exportAs:["cdkAccordion"],features:[e._Bn([{provide:u,useExisting:k}]),e.TTD]});let p=0;class S{constructor(Ie,ve,et){this.accordion=Ie,this._changeDetectorRef=ve,this._expansionDispatcher=et,this._openCloseAllSubscription=s.w0.EMPTY,this.closed=new e.vpe,this.opened=new e.vpe,this.destroyed=new e.vpe,this.expandedChange=new e.vpe,this.id="cdk-accordion-child-"+p++,this._expanded=!1,this._disabled=!1,this._removeUniqueSelectionListener=()=>{},this._removeUniqueSelectionListener=et.listen((ht,Le)=>{this.accordion&&!this.accordion.multi&&this.accordion.id===Le&&this.id!==ht&&(this.expanded=!1)}),this.accordion&&(this._openCloseAllSubscription=this._subscribeToOpenCloseAllActions())}get expanded(){return this._expanded}set expanded(Ie){if(Ie=(0,_.Ig)(Ie),this._expanded!==Ie){if(this._expanded=Ie,this.expandedChange.emit(Ie),Ie){this.opened.emit();const ve=this.accordion?this.accordion.id:this.id;this._expansionDispatcher.notify(this.id,ve)}else this.closed.emit();this._changeDetectorRef.markForCheck()}}get disabled(){return this._disabled}set disabled(Ie){this._disabled=(0,_.Ig)(Ie)}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(Ie=>{this.disabled||(this.expanded=Ie)})}}S.\u0275fac=function(Ie){return new(Ie||S)(e.Y36(u,12),e.Y36(e.sBO),e.Y36(t.A8))},S.\u0275dir=e.lG2({type:S,selectors:[["cdk-accordion-item"],["","cdkAccordionItem",""]],inputs:{expanded:"expanded",disabled:"disabled"},outputs:{closed:"closed",opened:"opened",destroyed:"destroyed",expandedChange:"expandedChange"},exportAs:["cdkAccordionItem"],features:[e._Bn([{provide:u,useValue:void 0}])]});class A{}A.\u0275fac=function(Ie){return new(Ie||A)},A.\u0275mod=e.oAB({type:A}),A.\u0275inj=e.cJS({});var P=m(7520),M=m(4666),z=m(207),I=m(4218),W=m(8977),Z=m(4874),Q=m(116),ie=m(9295),ae=m(8456),_e=m(591),ce=m(6646),ye=m(4851);const ue=["body"];function $(Ze,Ie){}const he=[[["mat-expansion-panel-header"]],"*",[["mat-action-row"]]];function n(Ze,Ie){if(1&Ze&&e._UZ(0,"span",2),2&Ze){const ve=e.oxw();e.Q6J("@indicatorRotate",ve._getExpandedState())}}const o=[[["mat-panel-title"]],[["mat-panel-description"]],"*"],d=new e.OlP("MAT_ACCORDION"),y="225ms cubic-bezier(0.4,0.0,0.2,1)",L={indicatorRotate:(0,ye.X$)("indicatorRotate",[(0,ye.SB)("collapsed, void",(0,ye.oB)({transform:"rotate(0deg)"})),(0,ye.SB)("expanded",(0,ye.oB)({transform:"rotate(180deg)"})),(0,ye.eR)("expanded <=> collapsed, void => collapsed",(0,ye.jt)(y))]),bodyExpansion:(0,ye.X$)("bodyExpansion",[(0,ye.SB)("collapsed, void",(0,ye.oB)({height:"0px",visibility:"hidden"})),(0,ye.SB)("expanded",(0,ye.oB)({height:"*",visibility:"visible"})),(0,ye.eR)("expanded <=> collapsed, void => collapsed",(0,ye.jt)(y))])},B=new e.OlP("MAT_EXPANSION_PANEL");class v{constructor(Ie,ve){this._template=Ie,this._expansionPanel=ve}}v.\u0275fac=function(Ie){return new(Ie||v)(e.Y36(e.Rgc),e.Y36(B,8))},v.\u0275dir=e.lG2({type:v,selectors:[["ng-template","matExpansionPanelContent",""]]});let a=0;const C=new e.OlP("MAT_EXPANSION_PANEL_DEFAULT_OPTIONS");class N extends S{constructor(Ie,ve,et,ht,Le,Ae,te){super(Ie,ve,et),this._viewContainerRef=ht,this._animationMode=Ae,this._hideToggle=!1,this.afterExpand=new e.vpe,this.afterCollapse=new e.vpe,this._inputChanges=new E.x,this._headerId="mat-expansion-panel-header-"+a++,this._bodyAnimationDone=new E.x,this.accordion=Ie,this._document=Le,this._bodyAnimationDone.pipe((0,W.x)((pe,ee)=>pe.fromState===ee.fromState&&pe.toState===ee.toState)).subscribe(pe=>{"void"!==pe.fromState&&("expanded"===pe.toState?this.afterExpand.emit():"collapsed"===pe.toState&&this.afterCollapse.emit())}),te&&(this.hideToggle=te.hideToggle)}get hideToggle(){return this._hideToggle||this.accordion&&this.accordion.hideToggle}set hideToggle(Ie){this._hideToggle=(0,_.Ig)(Ie)}get togglePosition(){return this._togglePosition||this.accordion&&this.accordion.togglePosition}set togglePosition(Ie){this._togglePosition=Ie}_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,Z.O)(null),(0,Q.h)(()=>this.expanded&&!this._portal),(0,ie.q)(1)).subscribe(()=>{this._portal=new P.UE(this._lazyContent._template,this._viewContainerRef)})}ngOnChanges(Ie){this._inputChanges.next(Ie)}ngOnDestroy(){super.ngOnDestroy(),this._bodyAnimationDone.complete(),this._inputChanges.complete()}_containsFocus(){if(this._body){const Ie=this._document.activeElement,ve=this._body.nativeElement;return Ie===ve||ve.contains(Ie)}return!1}}N.\u0275fac=function(Ie){return new(Ie||N)(e.Y36(d,12),e.Y36(e.sBO),e.Y36(t.A8),e.Y36(e.s_b),e.Y36(M.K0),e.Y36(e.QbO,8),e.Y36(C,8))},N.\u0275cmp=e.Xpm({type:N,selectors:[["mat-expansion-panel"]],contentQueries:function(Ie,ve,et){if(1&Ie&&e.Suo(et,v,5),2&Ie){let ht;e.iGM(ht=e.CRH())&&(ve._lazyContent=ht.first)}},viewQuery:function(Ie,ve){if(1&Ie&&e.Gf(ue,5),2&Ie){let et;e.iGM(et=e.CRH())&&(ve._body=et.first)}},hostAttrs:[1,"mat-expansion-panel"],hostVars:6,hostBindings:function(Ie,ve){2&Ie&&e.ekj("mat-expanded",ve.expanded)("_mat-animation-noopable","NoopAnimations"===ve._animationMode)("mat-expansion-panel-spacing",ve._hasSpacing())},inputs:{disabled:"disabled",expanded:"expanded",hideToggle:"hideToggle",togglePosition:"togglePosition"},outputs:{opened:"opened",closed:"closed",expandedChange:"expandedChange",afterExpand:"afterExpand",afterCollapse:"afterCollapse"},exportAs:["matExpansionPanel"],features:[e._Bn([{provide:d,useValue:void 0},{provide:B,useExisting:N}]),e.qOj,e.TTD],ngContentSelectors:["mat-expansion-panel-header","*","mat-action-row"],decls:7,vars:4,consts:[["role","region",1,"mat-expansion-panel-content",3,"id"],["body",""],[1,"mat-expansion-panel-body"],[3,"cdkPortalOutlet"]],template:function(Ie,ve){1&Ie&&(e.F$t(he),e.Hsn(0),e.TgZ(1,"div",0,1),e.NdJ("@bodyExpansion.done",function(ht){return ve._bodyAnimationDone.next(ht)}),e.TgZ(3,"div",2),e.Hsn(4,1),e.YNc(5,$,0,0,"ng-template",3),e.qZA(),e.Hsn(6,2),e.qZA()),2&Ie&&(e.xp6(1),e.Q6J("@bodyExpansion",ve._getExpandedState())("id",ve.id),e.uIk("aria-labelledby",ve._headerId),e.xp6(4),e.Q6J("cdkPortalOutlet",ve._portal))},dependencies:[P.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:[L.bodyExpansion]},changeDetection:0});class F{}F.\u0275fac=function(Ie){return new(Ie||F)},F.\u0275dir=e.lG2({type:F,selectors:[["mat-action-row"]],hostAttrs:[1,"mat-action-row"]});const Fe=(0,z.sb)(class X{});class ke extends Fe{constructor(Ie,ve,et,ht,Le,Ae,te){super(),this.panel=Ie,this._element=ve,this._focusMonitor=et,this._changeDetectorRef=ht,this._animationMode=Ae,this._parentChangeSubscription=s.w0.EMPTY;const pe=Ie.accordion?Ie.accordion._stateChanges.pipe((0,Q.h)(ee=>!(!ee.hideToggle&&!ee.togglePosition))):_e.E;this.tabIndex=parseInt(te||"")||0,this._parentChangeSubscription=(0,ce.T)(Ie.opened,Ie.closed,pe,Ie._inputChanges.pipe((0,Q.h)(ee=>!!(ee.hideToggle||ee.disabled||ee.togglePosition)))).subscribe(()=>this._changeDetectorRef.markForCheck()),Ie.closed.pipe((0,Q.h)(()=>Ie._containsFocus())).subscribe(()=>et.focusVia(ve,"program")),Le&&(this.expandedHeight=Le.expandedHeight,this.collapsedHeight=Le.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 Ie=this._isExpanded();return Ie&&this.expandedHeight?this.expandedHeight:!Ie&&this.collapsedHeight?this.collapsedHeight:null}_keydown(Ie){switch(Ie.keyCode){case ae.L_:case ae.K5:(0,ae.Vb)(Ie)||(Ie.preventDefault(),this._toggle());break;default:return void(this.panel.accordion&&this.panel.accordion._handleHeaderKeydown(Ie))}}focus(Ie,ve){Ie?this._focusMonitor.focusVia(this._element,Ie,ve):this._element.nativeElement.focus(ve)}ngAfterViewInit(){this._focusMonitor.monitor(this._element).subscribe(Ie=>{Ie&&this.panel.accordion&&this.panel.accordion._handleHeaderFocus(this)})}ngOnDestroy(){this._parentChangeSubscription.unsubscribe(),this._focusMonitor.stopMonitoring(this._element)}}ke.\u0275fac=function(Ie){return new(Ie||ke)(e.Y36(N,1),e.Y36(e.SBq),e.Y36(I.tE),e.Y36(e.sBO),e.Y36(C,8),e.Y36(e.QbO,8),e.$8M("tabindex"))},ke.\u0275cmp=e.Xpm({type:ke,selectors:[["mat-expansion-panel-header"]],hostAttrs:["role","button",1,"mat-expansion-panel-header","mat-focus-indicator"],hostVars:15,hostBindings:function(Ie,ve){1&Ie&&e.NdJ("click",function(){return ve._toggle()})("keydown",function(ht){return ve._keydown(ht)}),2&Ie&&(e.uIk("id",ve.panel._headerId)("tabindex",ve.tabIndex)("aria-controls",ve._getPanelId())("aria-expanded",ve._isExpanded())("aria-disabled",ve.panel.disabled),e.Udp("height",ve._getHeaderHeight()),e.ekj("mat-expanded",ve._isExpanded())("mat-expansion-toggle-indicator-after","after"===ve._getTogglePosition())("mat-expansion-toggle-indicator-before","before"===ve._getTogglePosition())("_mat-animation-noopable","NoopAnimations"===ve._animationMode))},inputs:{tabIndex:"tabIndex",expandedHeight:"expandedHeight",collapsedHeight:"collapsedHeight"},features:[e.qOj],ngContentSelectors:["mat-panel-title","mat-panel-description","*"],decls:5,vars:3,consts:[[1,"mat-content"],["class","mat-expansion-indicator",4,"ngIf"],[1,"mat-expansion-indicator"]],template:function(Ie,ve){1&Ie&&(e.F$t(o),e.TgZ(0,"span",0),e.Hsn(1),e.Hsn(2,1),e.Hsn(3,2),e.qZA(),e.YNc(4,n,1,1,"span",1)),2&Ie&&(e.ekj("mat-content-hide-toggle",!ve._showToggle()),e.xp6(4),e.Q6J("ngIf",ve._showToggle()))},dependencies:[M.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:[L.indicatorRotate]},changeDetection:0});class Ke{}Ke.\u0275fac=function(Ie){return new(Ie||Ke)},Ke.\u0275dir=e.lG2({type:Ke,selectors:[["mat-panel-description"]],hostAttrs:[1,"mat-expansion-panel-header-description"]});class je{}je.\u0275fac=function(Ie){return new(Ie||je)},je.\u0275dir=e.lG2({type:je,selectors:[["mat-panel-title"]],hostAttrs:[1,"mat-expansion-panel-header-title"]});class Ve extends k{constructor(){super(...arguments),this._ownHeaders=new e.n_E,this._hideToggle=!1,this.displayMode="default",this.togglePosition="after"}get hideToggle(){return this._hideToggle}set hideToggle(Ie){this._hideToggle=(0,_.Ig)(Ie)}ngAfterContentInit(){this._headers.changes.pipe((0,Z.O)(this._headers)).subscribe(Ie=>{this._ownHeaders.reset(Ie.filter(ve=>ve.panel.accordion===this)),this._ownHeaders.notifyOnChanges()}),this._keyManager=new I.Em(this._ownHeaders).withWrap().withHomeAndEnd()}_handleHeaderKeydown(Ie){this._keyManager.onKeydown(Ie)}_handleHeaderFocus(Ie){this._keyManager.updateActiveItem(Ie)}ngOnDestroy(){super.ngOnDestroy(),this._ownHeaders.destroy()}}Ve.\u0275fac=function(){let Ze;return function(ve){return(Ze||(Ze=e.n5z(Ve)))(ve||Ve)}}(),Ve.\u0275dir=e.lG2({type:Ve,selectors:[["mat-accordion"]],contentQueries:function(Ie,ve,et){if(1&Ie&&e.Suo(et,ke,5),2&Ie){let ht;e.iGM(ht=e.CRH())&&(ve._headers=ht)}},hostAttrs:[1,"mat-accordion"],hostVars:2,hostBindings:function(Ie,ve){2&Ie&&e.ekj("mat-accordion-multi",ve.multi)},inputs:{multi:"multi",hideToggle:"hideToggle",displayMode:"displayMode",togglePosition:"togglePosition"},exportAs:["matAccordion"],features:[e._Bn([{provide:d,useExisting:Ve}]),e.qOj]});class xe{}xe.\u0275fac=function(Ie){return new(Ie||xe)},xe.\u0275mod=e.oAB({type:xe}),xe.\u0275inj=e.cJS({imports:[M.ez,z.BQ,A,P.eL]})},5074:(Ue,q,m)=>{"use strict";m.d(q,{Eo:()=>v,G_:()=>Ae,KE:()=>te,R9:()=>Ze,TO:()=>L,bx:()=>Fe,lN:()=>pe});var e=m(3773),t=m(4666),_=m(2560),E=m(207),s=m(2867),D=m(8971),u=m(253),k=m(6646),p=m(3280),S=m(4874),A=m(8951),P=m(9295),M=m(4851),z=m(9107);const I=["connectionContainer"],W=["inputContainer"],Z=["label"];function Q(ee,H){1&ee&&(_.ynx(0),_.TgZ(1,"div",14),_._UZ(2,"div",15)(3,"div",16)(4,"div",17),_.qZA(),_.TgZ(5,"div",18),_._UZ(6,"div",15)(7,"div",16)(8,"div",17),_.qZA(),_.BQk())}function ie(ee,H){if(1&ee){const j=_.EpF();_.TgZ(0,"div",19),_.NdJ("cdkObserveContent",function(){_.CHM(j);const Re=_.oxw();return _.KtG(Re.updateOutlineGap())}),_.Hsn(1,1),_.qZA()}if(2&ee){const j=_.oxw();_.Q6J("cdkObserveContentDisabled","outline"!=j.appearance)}}function ae(ee,H){if(1&ee&&(_.ynx(0),_.Hsn(1,2),_.TgZ(2,"span"),_._uU(3),_.qZA(),_.BQk()),2&ee){const j=_.oxw(2);_.xp6(3),_.Oqu(j._control.placeholder)}}function _e(ee,H){1&ee&&_.Hsn(0,3,["*ngSwitchCase","true"])}function ce(ee,H){1&ee&&(_.TgZ(0,"span",23),_._uU(1," *"),_.qZA())}function ye(ee,H){if(1&ee){const j=_.EpF();_.TgZ(0,"label",20,21),_.NdJ("cdkObserveContent",function(){_.CHM(j);const Re=_.oxw();return _.KtG(Re.updateOutlineGap())}),_.YNc(2,ae,4,1,"ng-container",12),_.YNc(3,_e,1,0,"ng-content",12),_.YNc(4,ce,2,0,"span",22),_.qZA()}if(2&ee){const j=_.oxw();_.ekj("mat-empty",j._control.empty&&!j._shouldAlwaysFloat())("mat-form-field-empty",j._control.empty&&!j._shouldAlwaysFloat())("mat-accent","accent"==j.color)("mat-warn","warn"==j.color),_.Q6J("cdkObserveContentDisabled","outline"!=j.appearance)("id",j._labelId)("ngSwitch",j._hasLabel()),_.uIk("for",j._control.id)("aria-owns",j._control.id),_.xp6(2),_.Q6J("ngSwitchCase",!1),_.xp6(1),_.Q6J("ngSwitchCase",!0),_.xp6(1),_.Q6J("ngIf",!j.hideRequiredMarker&&j._control.required&&!j._control.disabled)}}function ue(ee,H){1&ee&&(_.TgZ(0,"div",24),_.Hsn(1,4),_.qZA())}function $(ee,H){if(1&ee&&(_.TgZ(0,"div",25),_._UZ(1,"span",26),_.qZA()),2&ee){const j=_.oxw();_.xp6(1),_.ekj("mat-accent","accent"==j.color)("mat-warn","warn"==j.color)}}function he(ee,H){if(1&ee&&(_.TgZ(0,"div"),_.Hsn(1,5),_.qZA()),2&ee){const j=_.oxw();_.Q6J("@transitionMessages",j._subscriptAnimationState)}}function w(ee,H){if(1&ee&&(_.TgZ(0,"div",30),_._uU(1),_.qZA()),2&ee){const j=_.oxw(2);_.Q6J("id",j._hintLabelId),_.xp6(1),_.Oqu(j.hintLabel)}}function n(ee,H){if(1&ee&&(_.TgZ(0,"div",27),_.YNc(1,w,2,2,"div",28),_.Hsn(2,6),_._UZ(3,"div",29),_.Hsn(4,7),_.qZA()),2&ee){const j=_.oxw();_.Q6J("@transitionMessages",j._subscriptAnimationState),_.xp6(1),_.Q6J("ngIf",j.hintLabel)}}const o=["*",[["","matPrefix",""]],[["mat-placeholder"]],[["mat-label"]],[["","matSuffix",""]],[["mat-error"]],[["mat-hint",3,"align","end"]],[["mat-hint","align","end"]]];let d=0;const y=new _.OlP("MatError");class L{constructor(H,j){this.id="mat-error-"+d++,H||j.nativeElement.setAttribute("aria-live","polite")}}L.\u0275fac=function(H){return new(H||L)(_.$8M("aria-live"),_.Y36(_.SBq))},L.\u0275dir=_.lG2({type:L,selectors:[["mat-error"]],hostAttrs:["aria-atomic","true",1,"mat-error"],hostVars:1,hostBindings:function(H,j){2&H&&_.uIk("id",j.id)},inputs:{id:"id"},features:[_._Bn([{provide:y,useExisting:L}])]});const B={transitionMessages:(0,M.X$)("transitionMessages",[(0,M.SB)("enter",(0,M.oB)({opacity:1,transform:"translateY(0%)"})),(0,M.eR)("void => enter",[(0,M.oB)({opacity:0,transform:"translateY(-5px)"}),(0,M.jt)("300ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])};class v{}v.\u0275fac=function(H){return new(H||v)},v.\u0275dir=_.lG2({type:v});let F=0;const X=new _.OlP("MatHint");class Fe{constructor(){this.align="start",this.id="mat-hint-"+F++}}Fe.\u0275fac=function(H){return new(H||Fe)},Fe.\u0275dir=_.lG2({type:Fe,selectors:[["mat-hint"]],hostAttrs:[1,"mat-hint"],hostVars:4,hostBindings:function(H,j){2&H&&(_.uIk("id",j.id)("align",null),_.ekj("mat-form-field-hint-end","end"===j.align))},inputs:{align:"align",id:"id"},features:[_._Bn([{provide:X,useExisting:Fe}])]});class ke{}ke.\u0275fac=function(H){return new(H||ke)},ke.\u0275dir=_.lG2({type:ke,selectors:[["mat-label"]]});class Ke{}Ke.\u0275fac=function(H){return new(H||Ke)},Ke.\u0275dir=_.lG2({type:Ke,selectors:[["mat-placeholder"]]});const je=new _.OlP("MatPrefix");class Ve{}Ve.\u0275fac=function(H){return new(H||Ve)},Ve.\u0275dir=_.lG2({type:Ve,selectors:[["","matPrefix",""]],features:[_._Bn([{provide:je,useExisting:Ve}])]});const xe=new _.OlP("MatSuffix");class Ze{}Ze.\u0275fac=function(H){return new(H||Ze)},Ze.\u0275dir=_.lG2({type:Ze,selectors:[["","matSuffix",""]],features:[_._Bn([{provide:xe,useExisting:Ze}])]});let Ie=0;const ht=(0,E.pj)(class{constructor(ee){this._elementRef=ee}},"primary"),Le=new _.OlP("MAT_FORM_FIELD_DEFAULT_OPTIONS"),Ae=new _.OlP("MatFormField");class te extends ht{constructor(H,j,Oe,Re,le,_t,it){super(H),this._changeDetectorRef=j,this._dir=Oe,this._defaults=Re,this._platform=le,this._ngZone=_t,this._outlineGapCalculationNeededImmediately=!1,this._outlineGapCalculationNeededOnStable=!1,this._destroyed=new u.x,this._hideRequiredMarker=!1,this._showAlwaysAnimate=!1,this._subscriptAnimationState="",this._hintLabel="",this._hintLabelId="mat-hint-"+Ie++,this._labelId="mat-form-field-label-"+Ie++,this.floatLabel=this._getDefaultFloatLabelState(),this._animationsEnabled="NoopAnimations"!==it,this.appearance=Re?.appearance||"legacy",Re&&(this._hideRequiredMarker=Boolean(Re.hideRequiredMarker),Re.color&&(this.color=this.defaultColor=Re.color))}get appearance(){return this._appearance}set appearance(H){const j=this._appearance;this._appearance=H||this._defaults?.appearance||"legacy","outline"===this._appearance&&j!==H&&(this._outlineGapCalculationNeededOnStable=!0)}get hideRequiredMarker(){return this._hideRequiredMarker}set hideRequiredMarker(H){this._hideRequiredMarker=(0,D.Ig)(H)}_shouldAlwaysFloat(){return"always"===this.floatLabel&&!this._showAlwaysAnimate}_canLabelFloat(){return"never"!==this.floatLabel}get hintLabel(){return this._hintLabel}set hintLabel(H){this._hintLabel=H,this._processHints()}get floatLabel(){return"legacy"!==this.appearance&&"never"===this._floatLabel?"auto":this._floatLabel}set floatLabel(H){H!==this._floatLabel&&(this._floatLabel=H||this._getDefaultFloatLabelState(),this._changeDetectorRef.markForCheck())}get _control(){return this._explicitFormFieldControl||this._controlNonStatic||this._controlStatic}set _control(H){this._explicitFormFieldControl=H}getLabelId(){return this._hasFloatingLabel()?this._labelId:null}getConnectedOverlayOrigin(){return this._connectionContainerRef||this._elementRef}ngAfterContentInit(){this._validateControlChild();const H=this._control;H.controlType&&this._elementRef.nativeElement.classList.add(`mat-form-field-type-${H.controlType}`),H.stateChanges.pipe((0,S.O)(null)).subscribe(()=>{this._validatePlaceholders(),this._syncDescribedByIds(),this._changeDetectorRef.markForCheck()}),H.ngControl&&H.ngControl.valueChanges&&H.ngControl.valueChanges.pipe((0,A.R)(this._destroyed)).subscribe(()=>this._changeDetectorRef.markForCheck()),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.pipe((0,A.R)(this._destroyed)).subscribe(()=>{this._outlineGapCalculationNeededOnStable&&this.updateOutlineGap()})}),(0,k.T)(this._prefixChildren.changes,this._suffixChildren.changes).subscribe(()=>{this._outlineGapCalculationNeededOnStable=!0,this._changeDetectorRef.markForCheck()}),this._hintChildren.changes.pipe((0,S.O)(null)).subscribe(()=>{this._processHints(),this._changeDetectorRef.markForCheck()}),this._errorChildren.changes.pipe((0,S.O)(null)).subscribe(()=>{this._syncDescribedByIds(),this._changeDetectorRef.markForCheck()}),this._dir&&this._dir.change.pipe((0,A.R)(this._destroyed)).subscribe(()=>{"function"==typeof requestAnimationFrame?this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>this.updateOutlineGap())}):this.updateOutlineGap()})}ngAfterContentChecked(){this._validateControlChild(),this._outlineGapCalculationNeededImmediately&&this.updateOutlineGap()}ngAfterViewInit(){this._subscriptAnimationState="enter",this._changeDetectorRef.detectChanges()}ngOnDestroy(){this._destroyed.next(),this._destroyed.complete()}_shouldForward(H){const j=this._control?this._control.ngControl:null;return j&&j[H]}_hasPlaceholder(){return!!(this._control&&this._control.placeholder||this._placeholderChild)}_hasLabel(){return!(!this._labelChildNonStatic&&!this._labelChildStatic)}_shouldLabelFloat(){return this._canLabelFloat()&&(this._control&&this._control.shouldLabelFloat||this._shouldAlwaysFloat())}_hideControlPlaceholder(){return"legacy"===this.appearance&&!this._hasLabel()||this._hasLabel()&&!this._shouldLabelFloat()}_hasFloatingLabel(){return this._hasLabel()||"legacy"===this.appearance&&this._hasPlaceholder()}_getDisplayedMessages(){return this._errorChildren&&this._errorChildren.length>0&&this._control.errorState?"error":"hint"}_animateAndLockLabel(){this._hasFloatingLabel()&&this._canLabelFloat()&&(this._animationsEnabled&&this._label&&(this._showAlwaysAnimate=!0,(0,p.R)(this._label.nativeElement,"transitionend").pipe((0,P.q)(1)).subscribe(()=>{this._showAlwaysAnimate=!1})),this.floatLabel="always",this._changeDetectorRef.markForCheck())}_validatePlaceholders(){this._control.placeholder&&this._placeholderChild}_processHints(){this._validateHints(),this._syncDescribedByIds()}_validateHints(){this._hintChildren}_getDefaultFloatLabelState(){return this._defaults&&this._defaults.floatLabel||"auto"}_syncDescribedByIds(){if(this._control){let H=[];if(this._control.userAriaDescribedBy&&"string"==typeof this._control.userAriaDescribedBy&&H.push(...this._control.userAriaDescribedBy.split(" ")),"hint"===this._getDisplayedMessages()){const j=this._hintChildren?this._hintChildren.find(Re=>"start"===Re.align):null,Oe=this._hintChildren?this._hintChildren.find(Re=>"end"===Re.align):null;j?H.push(j.id):this._hintLabel&&H.push(this._hintLabelId),Oe&&H.push(Oe.id)}else this._errorChildren&&H.push(...this._errorChildren.map(j=>j.id));this._control.setDescribedByIds(H)}}_validateControlChild(){this._control}updateOutlineGap(){const H=this._label?this._label.nativeElement:null,j=this._connectionContainerRef.nativeElement,Oe=".mat-form-field-outline-start",Re=".mat-form-field-outline-gap";if("outline"!==this.appearance||!this._platform.isBrowser)return;if(!H||!H.children.length||!H.textContent.trim()){const un=j.querySelectorAll(`${Oe}, ${Re}`);for(let Bt=0;Bt<un.length;Bt++)un[Bt].style.width="0";return}if(!this._isAttachedToDOM())return void(this._outlineGapCalculationNeededImmediately=!0);let le=0,_t=0;const it=j.querySelectorAll(Oe),Ct=j.querySelectorAll(Re);if(this._label&&this._label.nativeElement.children.length){const un=j.getBoundingClientRect();if(0===un.width&&0===un.height)return this._outlineGapCalculationNeededOnStable=!0,void(this._outlineGapCalculationNeededImmediately=!1);const Bt=this._getStartEnd(un),Ut=H.children,yn=this._getStartEnd(Ut[0].getBoundingClientRect());let Xt=0;for(let Gt=0;Gt<Ut.length;Gt++)Xt+=Ut[Gt].offsetWidth;le=Math.abs(yn-Bt)-5,_t=Xt>0?.75*Xt+10:0}for(let un=0;un<it.length;un++)it[un].style.width=`${le}px`;for(let un=0;un<Ct.length;un++)Ct[un].style.width=`${_t}px`;this._outlineGapCalculationNeededOnStable=this._outlineGapCalculationNeededImmediately=!1}_getStartEnd(H){return this._dir&&"rtl"===this._dir.value?H.right:H.left}_isAttachedToDOM(){const H=this._elementRef.nativeElement;if(H.getRootNode){const j=H.getRootNode();return j&&j!==H}return document.documentElement.contains(H)}}te.\u0275fac=function(H){return new(H||te)(_.Y36(_.SBq),_.Y36(_.sBO),_.Y36(s.Is,8),_.Y36(Le,8),_.Y36(z.t4),_.Y36(_.R0b),_.Y36(_.QbO,8))},te.\u0275cmp=_.Xpm({type:te,selectors:[["mat-form-field"]],contentQueries:function(H,j,Oe){if(1&H&&(_.Suo(Oe,v,5),_.Suo(Oe,v,7),_.Suo(Oe,ke,5),_.Suo(Oe,ke,7),_.Suo(Oe,Ke,5),_.Suo(Oe,y,5),_.Suo(Oe,X,5),_.Suo(Oe,je,5),_.Suo(Oe,xe,5)),2&H){let Re;_.iGM(Re=_.CRH())&&(j._controlNonStatic=Re.first),_.iGM(Re=_.CRH())&&(j._controlStatic=Re.first),_.iGM(Re=_.CRH())&&(j._labelChildNonStatic=Re.first),_.iGM(Re=_.CRH())&&(j._labelChildStatic=Re.first),_.iGM(Re=_.CRH())&&(j._placeholderChild=Re.first),_.iGM(Re=_.CRH())&&(j._errorChildren=Re),_.iGM(Re=_.CRH())&&(j._hintChildren=Re),_.iGM(Re=_.CRH())&&(j._prefixChildren=Re),_.iGM(Re=_.CRH())&&(j._suffixChildren=Re)}},viewQuery:function(H,j){if(1&H&&(_.Gf(I,7),_.Gf(W,5),_.Gf(Z,5)),2&H){let Oe;_.iGM(Oe=_.CRH())&&(j._connectionContainerRef=Oe.first),_.iGM(Oe=_.CRH())&&(j._inputContainerRef=Oe.first),_.iGM(Oe=_.CRH())&&(j._label=Oe.first)}},hostAttrs:[1,"mat-form-field"],hostVars:40,hostBindings:function(H,j){2&H&&_.ekj("mat-form-field-appearance-standard","standard"==j.appearance)("mat-form-field-appearance-fill","fill"==j.appearance)("mat-form-field-appearance-outline","outline"==j.appearance)("mat-form-field-appearance-legacy","legacy"==j.appearance)("mat-form-field-invalid",j._control.errorState)("mat-form-field-can-float",j._canLabelFloat())("mat-form-field-should-float",j._shouldLabelFloat())("mat-form-field-has-label",j._hasFloatingLabel())("mat-form-field-hide-placeholder",j._hideControlPlaceholder())("mat-form-field-disabled",j._control.disabled)("mat-form-field-autofilled",j._control.autofilled)("mat-focused",j._control.focused)("ng-untouched",j._shouldForward("untouched"))("ng-touched",j._shouldForward("touched"))("ng-pristine",j._shouldForward("pristine"))("ng-dirty",j._shouldForward("dirty"))("ng-valid",j._shouldForward("valid"))("ng-invalid",j._shouldForward("invalid"))("ng-pending",j._shouldForward("pending"))("_mat-animation-noopable",!j._animationsEnabled)},inputs:{color:"color",appearance:"appearance",hideRequiredMarker:"hideRequiredMarker",hintLabel:"hintLabel",floatLabel:"floatLabel"},exportAs:["matFormField"],features:[_._Bn([{provide:Ae,useExisting:te}]),_.qOj],ngContentSelectors:["*","[matPrefix]","mat-placeholder","mat-label","[matSuffix]","mat-error","mat-hint:not([align='end'])","mat-hint[align='end']"],decls:15,vars:8,consts:[[1,"mat-form-field-wrapper"],[1,"mat-form-field-flex",3,"click"],["connectionContainer",""],[4,"ngIf"],["class","mat-form-field-prefix",3,"cdkObserveContentDisabled","cdkObserveContent",4,"ngIf"],[1,"mat-form-field-infix"],["inputContainer",""],[1,"mat-form-field-label-wrapper"],["class","mat-form-field-label",3,"cdkObserveContentDisabled","id","mat-empty","mat-form-field-empty","mat-accent","mat-warn","ngSwitch","cdkObserveContent",4,"ngIf"],["class","mat-form-field-suffix",4,"ngIf"],["class","mat-form-field-underline",4,"ngIf"],[1,"mat-form-field-subscript-wrapper",3,"ngSwitch"],[4,"ngSwitchCase"],["class","mat-form-field-hint-wrapper",4,"ngSwitchCase"],[1,"mat-form-field-outline"],[1,"mat-form-field-outline-start"],[1,"mat-form-field-outline-gap"],[1,"mat-form-field-outline-end"],[1,"mat-form-field-outline","mat-form-field-outline-thick"],[1,"mat-form-field-prefix",3,"cdkObserveContentDisabled","cdkObserveContent"],[1,"mat-form-field-label",3,"cdkObserveContentDisabled","id","ngSwitch","cdkObserveContent"],["label",""],["class","mat-placeholder-required mat-form-field-required-marker","aria-hidden","true",4,"ngIf"],["aria-hidden","true",1,"mat-placeholder-required","mat-form-field-required-marker"],[1,"mat-form-field-suffix"],[1,"mat-form-field-underline"],[1,"mat-form-field-ripple"],[1,"mat-form-field-hint-wrapper"],["class","mat-hint",3,"id",4,"ngIf"],[1,"mat-form-field-hint-spacer"],[1,"mat-hint",3,"id"]],template:function(H,j){1&H&&(_.F$t(o),_.TgZ(0,"div",0)(1,"div",1,2),_.NdJ("click",function(Re){return j._control.onContainerClick&&j._control.onContainerClick(Re)}),_.YNc(3,Q,9,0,"ng-container",3),_.YNc(4,ie,2,1,"div",4),_.TgZ(5,"div",5,6),_.Hsn(7),_.TgZ(8,"span",7),_.YNc(9,ye,5,16,"label",8),_.qZA()(),_.YNc(10,ue,2,0,"div",9),_.qZA(),_.YNc(11,$,2,4,"div",10),_.TgZ(12,"div",11),_.YNc(13,he,2,1,"div",12),_.YNc(14,n,5,2,"div",13),_.qZA()()),2&H&&(_.xp6(3),_.Q6J("ngIf","outline"==j.appearance),_.xp6(1),_.Q6J("ngIf",j._prefixChildren.length),_.xp6(5),_.Q6J("ngIf",j._hasFloatingLabel()),_.xp6(1),_.Q6J("ngIf",j._suffixChildren.length),_.xp6(1),_.Q6J("ngIf","outline"!=j.appearance),_.xp6(1),_.Q6J("ngSwitch",j._getDisplayedMessages()),_.xp6(1),_.Q6J("ngSwitchCase","error"),_.xp6(1),_.Q6J("ngSwitchCase","hint"))},dependencies:[t.O5,t.RF,t.n9,e.wD],styles:[".mat-form-field{display:inline-block;position:relative;text-align:left}[dir=rtl] .mat-form-field{text-align:right}.mat-form-field-wrapper{position:relative}.mat-form-field-flex{display:inline-flex;align-items:baseline;box-sizing:border-box;width:100%}.mat-form-field-prefix,.mat-form-field-suffix{white-space:nowrap;flex:none;position:relative}.mat-form-field-infix{display:block;position:relative;flex:auto;min-width:0;width:180px}.cdk-high-contrast-active .mat-form-field-infix{border-image:linear-gradient(transparent, transparent)}.mat-form-field-label-wrapper{position:absolute;left:0;box-sizing:content-box;width:100%;height:100%;overflow:hidden;pointer-events:none}[dir=rtl] .mat-form-field-label-wrapper{left:auto;right:0}.mat-form-field-label{position:absolute;left:0;font:inherit;pointer-events:none;width:100%;white-space:nowrap;text-overflow:ellipsis;overflow:hidden;transform-origin:0 0;transition:transform 400ms cubic-bezier(0.25, 0.8, 0.25, 1),color 400ms cubic-bezier(0.25, 0.8, 0.25, 1),width 400ms cubic-bezier(0.25, 0.8, 0.25, 1);display:none}[dir=rtl] .mat-form-field-label{transform-origin:100% 0;left:auto;right:0}.cdk-high-contrast-active .mat-form-field-disabled .mat-form-field-label{color:GrayText}.mat-form-field-empty.mat-form-field-label,.mat-form-field-can-float.mat-form-field-should-float .mat-form-field-label{display:block}.mat-form-field-autofill-control:-webkit-autofill+.mat-form-field-label-wrapper .mat-form-field-label{display:none}.mat-form-field-can-float .mat-form-field-autofill-control:-webkit-autofill+.mat-form-field-label-wrapper .mat-form-field-label{display:block;transition:none}.mat-input-server:focus+.mat-form-field-label-wrapper .mat-form-field-label,.mat-input-server[placeholder]:not(:placeholder-shown)+.mat-form-field-label-wrapper .mat-form-field-label{display:none}.mat-form-field-can-float .mat-input-server:focus+.mat-form-field-label-wrapper .mat-form-field-label,.mat-form-field-can-float .mat-input-server[placeholder]:not(:placeholder-shown)+.mat-form-field-label-wrapper .mat-form-field-label{display:block}.mat-form-field-label:not(.mat-form-field-empty){transition:none}.mat-form-field-underline{position:absolute;width:100%;pointer-events:none;transform:scale3d(1, 1.0001, 1)}.mat-form-field-ripple{position:absolute;left:0;width:100%;transform-origin:50%;transform:scaleX(0.5);opacity:0;transition:background-color 300ms cubic-bezier(0.55, 0, 0.55, 0.2)}.mat-form-field.mat-focused .mat-form-field-ripple,.mat-form-field.mat-form-field-invalid .mat-form-field-ripple{opacity:1;transform:none;transition:transform 300ms cubic-bezier(0.25, 0.8, 0.25, 1),opacity 100ms cubic-bezier(0.25, 0.8, 0.25, 1),background-color 300ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-form-field-subscript-wrapper{position:absolute;box-sizing:border-box;width:100%;overflow:hidden}.mat-form-field-subscript-wrapper .mat-icon,.mat-form-field-label-wrapper .mat-icon{width:1em;height:1em;font-size:inherit;vertical-align:baseline}.mat-form-field-hint-wrapper{display:flex}.mat-form-field-hint-spacer{flex:1 0 1em}.mat-error{display:block}.mat-form-field-control-wrapper{position:relative}.mat-form-field-hint-end{order:1}.mat-form-field._mat-animation-noopable .mat-form-field-label,.mat-form-field._mat-animation-noopable .mat-form-field-ripple{transition:none}",'.mat-form-field-appearance-fill .mat-form-field-flex{border-radius:4px 4px 0 0;padding:.75em .75em 0 .75em}.cdk-high-contrast-active .mat-form-field-appearance-fill .mat-form-field-flex{outline:solid 1px}.cdk-high-contrast-active .mat-form-field-appearance-fill.mat-form-field-disabled .mat-form-field-flex{outline-color:GrayText}.cdk-high-contrast-active .mat-form-field-appearance-fill.mat-focused .mat-form-field-flex{outline:dashed 3px}.mat-form-field-appearance-fill .mat-form-field-underline::before{content:"";display:block;position:absolute;bottom:0;height:1px;width:100%}.mat-form-field-appearance-fill .mat-form-field-ripple{bottom:0;height:2px}.cdk-high-contrast-active .mat-form-field-appearance-fill .mat-form-field-ripple{height:0}.mat-form-field-appearance-fill:not(.mat-form-field-disabled) .mat-form-field-flex:hover~.mat-form-field-underline .mat-form-field-ripple{opacity:1;transform:none;transition:opacity 600ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-form-field-appearance-fill._mat-animation-noopable:not(.mat-form-field-disabled) .mat-form-field-flex:hover~.mat-form-field-underline .mat-form-field-ripple{transition:none}.mat-form-field-appearance-fill .mat-form-field-subscript-wrapper{padding:0 1em}','.mat-input-element{font:inherit;background:rgba(0,0,0,0);color:currentColor;border:none;outline:none;padding:0;margin:0;width:100%;max-width:100%;vertical-align:bottom;text-align:inherit;box-sizing:content-box}.mat-input-element:-moz-ui-invalid{box-shadow:none}.mat-input-element,.mat-input-element::-webkit-search-cancel-button,.mat-input-element::-webkit-search-decoration,.mat-input-element::-webkit-search-results-button,.mat-input-element::-webkit-search-results-decoration{-webkit-appearance:none}.mat-input-element::-webkit-contacts-auto-fill-button,.mat-input-element::-webkit-caps-lock-indicator,.mat-input-element:not([type=password])::-webkit-credentials-auto-fill-button{visibility:hidden}.mat-input-element[type=date],.mat-input-element[type=datetime],.mat-input-element[type=datetime-local],.mat-input-element[type=month],.mat-input-element[type=week],.mat-input-element[type=time]{line-height:1}.mat-input-element[type=date]::after,.mat-input-element[type=datetime]::after,.mat-input-element[type=datetime-local]::after,.mat-input-element[type=month]::after,.mat-input-element[type=week]::after,.mat-input-element[type=time]::after{content:" ";white-space:pre;width:1px}.mat-input-element::-webkit-inner-spin-button,.mat-input-element::-webkit-calendar-picker-indicator,.mat-input-element::-webkit-clear-button{font-size:.75em}.mat-input-element::placeholder{-webkit-user-select:none;user-select:none;transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-input-element::-moz-placeholder{-webkit-user-select:none;user-select:none;transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-input-element::-webkit-input-placeholder{-webkit-user-select:none;user-select:none;transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-input-element:-ms-input-placeholder{-webkit-user-select:none;user-select:none;transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-form-field-hide-placeholder .mat-input-element::placeholder{color:rgba(0,0,0,0) !important;-webkit-text-fill-color:rgba(0,0,0,0);transition:none}.cdk-high-contrast-active .mat-form-field-hide-placeholder .mat-input-element::placeholder{opacity:0}.mat-form-field-hide-placeholder .mat-input-element::-moz-placeholder{color:rgba(0,0,0,0) !important;-webkit-text-fill-color:rgba(0,0,0,0);transition:none}.cdk-high-contrast-active .mat-form-field-hide-placeholder .mat-input-element::-moz-placeholder{opacity:0}.mat-form-field-hide-placeholder .mat-input-element::-webkit-input-placeholder{color:rgba(0,0,0,0) !important;-webkit-text-fill-color:rgba(0,0,0,0);transition:none}.cdk-high-contrast-active .mat-form-field-hide-placeholder .mat-input-element::-webkit-input-placeholder{opacity:0}.mat-form-field-hide-placeholder .mat-input-element:-ms-input-placeholder{color:rgba(0,0,0,0) !important;-webkit-text-fill-color:rgba(0,0,0,0);transition:none}.cdk-high-contrast-active .mat-form-field-hide-placeholder .mat-input-element:-ms-input-placeholder{opacity:0}._mat-animation-noopable .mat-input-element::placeholder{transition:none}._mat-animation-noopable .mat-input-element::-moz-placeholder{transition:none}._mat-animation-noopable .mat-input-element::-webkit-input-placeholder{transition:none}._mat-animation-noopable .mat-input-element:-ms-input-placeholder{transition:none}textarea.mat-input-element{resize:vertical;overflow:auto}textarea.mat-input-element.cdk-textarea-autosize{resize:none}textarea.mat-input-element{padding:2px 0;margin:-2px 0}select.mat-input-element{-moz-appearance:none;-webkit-appearance:none;position:relative;background-color:rgba(0,0,0,0);display:inline-flex;box-sizing:border-box;padding-top:1em;top:-1em;margin-bottom:-1em}select.mat-input-element::-moz-focus-inner{border:0}select.mat-input-element:not(:disabled){cursor:pointer}.mat-form-field-type-mat-native-select .mat-form-field-infix::after{content:"";width:0;height:0;border-left:5px solid rgba(0,0,0,0);border-right:5px solid rgba(0,0,0,0);border-top:5px solid;position:absolute;top:50%;right:0;margin-top:-2.5px;pointer-events:none}[dir=rtl] .mat-form-field-type-mat-native-select .mat-form-field-infix::after{right:auto;left:0}.mat-form-field-type-mat-native-select .mat-input-element{padding-right:15px}[dir=rtl] .mat-form-field-type-mat-native-select .mat-input-element{padding-right:0;padding-left:15px}.mat-form-field-type-mat-native-select .mat-form-field-label-wrapper{max-width:calc(100% - 10px)}.mat-form-field-type-mat-native-select.mat-form-field-appearance-outline .mat-form-field-infix::after{margin-top:-5px}.mat-form-field-type-mat-native-select.mat-form-field-appearance-fill .mat-form-field-infix::after{margin-top:-10px}',".mat-form-field-appearance-legacy .mat-form-field-label{transform:perspective(100px)}.mat-form-field-appearance-legacy .mat-form-field-prefix .mat-icon,.mat-form-field-appearance-legacy .mat-form-field-suffix .mat-icon{width:1em}.mat-form-field-appearance-legacy .mat-form-field-prefix .mat-icon-button,.mat-form-field-appearance-legacy .mat-form-field-suffix .mat-icon-button{font:inherit;vertical-align:baseline}.mat-form-field-appearance-legacy .mat-form-field-prefix .mat-icon-button .mat-icon,.mat-form-field-appearance-legacy .mat-form-field-suffix .mat-icon-button .mat-icon{font-size:inherit}.mat-form-field-appearance-legacy .mat-form-field-underline{height:1px}.cdk-high-contrast-active .mat-form-field-appearance-legacy .mat-form-field-underline{height:0;border-top:solid 1px}.mat-form-field-appearance-legacy .mat-form-field-ripple{top:0;height:2px;overflow:hidden}.cdk-high-contrast-active .mat-form-field-appearance-legacy .mat-form-field-ripple{height:0;border-top:solid 2px}.mat-form-field-appearance-legacy.mat-form-field-disabled .mat-form-field-underline{background-position:0;background-color:rgba(0,0,0,0)}.cdk-high-contrast-active .mat-form-field-appearance-legacy.mat-form-field-disabled .mat-form-field-underline{border-top-style:dotted;border-top-width:2px;border-top-color:GrayText}.mat-form-field-appearance-legacy.mat-form-field-invalid:not(.mat-focused) .mat-form-field-ripple{height:1px}",".mat-form-field-appearance-outline .mat-form-field-wrapper{margin:.25em 0}.mat-form-field-appearance-outline .mat-form-field-flex{padding:0 .75em 0 .75em;margin-top:-0.25em;position:relative}.mat-form-field-appearance-outline .mat-form-field-prefix,.mat-form-field-appearance-outline .mat-form-field-suffix{top:.25em}.mat-form-field-appearance-outline .mat-form-field-outline{display:flex;position:absolute;top:.25em;left:0;right:0;bottom:0;pointer-events:none}.mat-form-field-appearance-outline .mat-form-field-outline-start,.mat-form-field-appearance-outline .mat-form-field-outline-end{border:1px solid currentColor;min-width:5px}.mat-form-field-appearance-outline .mat-form-field-outline-start{border-radius:5px 0 0 5px;border-right-style:none}[dir=rtl] .mat-form-field-appearance-outline .mat-form-field-outline-start{border-right-style:solid;border-left-style:none;border-radius:0 5px 5px 0}.mat-form-field-appearance-outline .mat-form-field-outline-end{border-radius:0 5px 5px 0;border-left-style:none;flex-grow:1}[dir=rtl] .mat-form-field-appearance-outline .mat-form-field-outline-end{border-left-style:solid;border-right-style:none;border-radius:5px 0 0 5px}.mat-form-field-appearance-outline .mat-form-field-outline-gap{border-radius:.000001px;border:1px solid currentColor;border-left-style:none;border-right-style:none}.mat-form-field-appearance-outline.mat-form-field-can-float.mat-form-field-should-float .mat-form-field-outline-gap{border-top-color:rgba(0,0,0,0)}.mat-form-field-appearance-outline .mat-form-field-outline-thick{opacity:0}.mat-form-field-appearance-outline .mat-form-field-outline-thick .mat-form-field-outline-start,.mat-form-field-appearance-outline .mat-form-field-outline-thick .mat-form-field-outline-end,.mat-form-field-appearance-outline .mat-form-field-outline-thick .mat-form-field-outline-gap{border-width:2px}.mat-form-field-appearance-outline.mat-focused .mat-form-field-outline,.mat-form-field-appearance-outline.mat-form-field-invalid .mat-form-field-outline{opacity:0;transition:opacity 100ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-form-field-appearance-outline.mat-focused .mat-form-field-outline-thick,.mat-form-field-appearance-outline.mat-form-field-invalid .mat-form-field-outline-thick{opacity:1}.cdk-high-contrast-active .mat-form-field-appearance-outline.mat-focused .mat-form-field-outline-thick{border:3px dashed}.mat-form-field-appearance-outline:not(.mat-form-field-disabled) .mat-form-field-flex:hover .mat-form-field-outline{opacity:0;transition:opacity 600ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-form-field-appearance-outline:not(.mat-form-field-disabled) .mat-form-field-flex:hover .mat-form-field-outline-thick{opacity:1}.mat-form-field-appearance-outline .mat-form-field-subscript-wrapper{padding:0 1em}.cdk-high-contrast-active .mat-form-field-appearance-outline.mat-form-field-disabled .mat-form-field-outline{color:GrayText}.mat-form-field-appearance-outline._mat-animation-noopable:not(.mat-form-field-disabled) .mat-form-field-flex:hover~.mat-form-field-outline,.mat-form-field-appearance-outline._mat-animation-noopable .mat-form-field-outline,.mat-form-field-appearance-outline._mat-animation-noopable .mat-form-field-outline-start,.mat-form-field-appearance-outline._mat-animation-noopable .mat-form-field-outline-end,.mat-form-field-appearance-outline._mat-animation-noopable .mat-form-field-outline-gap{transition:none}",".mat-form-field-appearance-standard .mat-form-field-flex{padding-top:.75em}.mat-form-field-appearance-standard .mat-form-field-underline{height:1px}.cdk-high-contrast-active .mat-form-field-appearance-standard .mat-form-field-underline{height:0;border-top:solid 1px}.mat-form-field-appearance-standard .mat-form-field-ripple{bottom:0;height:2px}.cdk-high-contrast-active .mat-form-field-appearance-standard .mat-form-field-ripple{height:0;border-top:solid 2px}.mat-form-field-appearance-standard.mat-form-field-disabled .mat-form-field-underline{background-position:0;background-color:rgba(0,0,0,0)}.cdk-high-contrast-active .mat-form-field-appearance-standard.mat-form-field-disabled .mat-form-field-underline{border-top-style:dotted;border-top-width:2px}.mat-form-field-appearance-standard:not(.mat-form-field-disabled) .mat-form-field-flex:hover~.mat-form-field-underline .mat-form-field-ripple{opacity:1;transform:none;transition:opacity 600ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-form-field-appearance-standard._mat-animation-noopable:not(.mat-form-field-disabled) .mat-form-field-flex:hover~.mat-form-field-underline .mat-form-field-ripple{transition:none}"],encapsulation:2,data:{animation:[B.transitionMessages]},changeDetection:0});class pe{}pe.\u0275fac=function(H){return new(H||pe)},pe.\u0275mod=_.oAB({type:pe}),pe.\u0275inj=_.cJS({imports:[t.ez,E.BQ,e.Q8,E.BQ]})},2642:(Ue,q,m)=>{"use strict";m.d(q,{DX:()=>P,Il:()=>$,N6:()=>he});var e=m(2560),t=m(207),_=m(8971),E=m(2867);const s=["*"],D=[[["","mat-grid-avatar",""],["","matGridAvatar",""]],[["","mat-line",""],["","matLine",""]],"*"];class p{constructor(){this.columnIndex=0,this.rowIndex=0}get rowCount(){return this.rowIndex+1}get rowspan(){const o=Math.max(...this.tracker);return o>1?this.rowCount+o-1:this.rowCount}update(o,h){this.columnIndex=0,this.rowIndex=0,this.tracker=new Array(o),this.tracker.fill(0,0,this.tracker.length),this.positions=h.map(d=>this._trackTile(d))}_trackTile(o){const h=this._findMatchingGap(o.colspan);return this._markTilePosition(h,o),this.columnIndex=h+o.colspan,new S(this.rowIndex,h)}_findMatchingGap(o){this.tracker.length;let h=-1,d=-1;do{this.columnIndex+o>this.tracker.length?(this._nextRow(),h=this.tracker.indexOf(0,this.columnIndex),d=this._findGapEndIndex(h)):(h=this.tracker.indexOf(0,this.columnIndex),-1!=h?(d=this._findGapEndIndex(h),this.columnIndex=h+1):(this._nextRow(),h=this.tracker.indexOf(0,this.columnIndex),d=this._findGapEndIndex(h)))}while(d-h<o||0==d);return Math.max(h,0)}_nextRow(){this.columnIndex=0,this.rowIndex++;for(let o=0;o<this.tracker.length;o++)this.tracker[o]=Math.max(0,this.tracker[o]-1)}_findGapEndIndex(o){for(let h=o+1;h<this.tracker.length;h++)if(0!=this.tracker[h])return h;return this.tracker.length}_markTilePosition(o,h){for(let d=0;d<h.colspan;d++)this.tracker[o+d]=h.rowspan}}class S{constructor(o,h){this.row=o,this.col=h}}const A=new e.OlP("MAT_GRID_LIST");class P{constructor(o,h){this._element=o,this._gridList=h,this._rowspan=1,this._colspan=1}get rowspan(){return this._rowspan}set rowspan(o){this._rowspan=Math.round((0,_.su)(o))}get colspan(){return this._colspan}set colspan(o){this._colspan=Math.round((0,_.su)(o))}_setStyle(o,h){this._element.nativeElement.style[o]=h}}P.\u0275fac=function(o){return new(o||P)(e.Y36(e.SBq),e.Y36(A,8))},P.\u0275cmp=e.Xpm({type:P,selectors:[["mat-grid-tile"]],hostAttrs:[1,"mat-grid-tile"],hostVars:2,hostBindings:function(o,h){2&o&&e.uIk("rowspan",h.rowspan)("colspan",h.colspan)},inputs:{rowspan:"rowspan",colspan:"colspan"},exportAs:["matGridTile"],ngContentSelectors:s,decls:2,vars:0,consts:[[1,"mat-grid-tile-content"]],template:function(o,h){1&o&&(e.F$t(),e.TgZ(0,"div",0),e.Hsn(1),e.qZA())},styles:[".mat-grid-list{display:block;position:relative}.mat-grid-tile{display:block;position:absolute;overflow:hidden}.mat-grid-tile .mat-grid-tile-header,.mat-grid-tile .mat-grid-tile-footer{display:flex;align-items:center;height:48px;color:#fff;background:rgba(0,0,0,.38);overflow:hidden;padding:0 16px;position:absolute;left:0;right:0}.mat-grid-tile .mat-grid-tile-header>*,.mat-grid-tile .mat-grid-tile-footer>*{margin:0;padding:0;font-weight:normal;font-size:inherit}.mat-grid-tile .mat-grid-tile-header.mat-2-line,.mat-grid-tile .mat-grid-tile-footer.mat-2-line{height:68px}.mat-grid-tile .mat-grid-list-text{display:flex;flex-direction:column;flex:auto;box-sizing:border-box;overflow:hidden}.mat-grid-tile .mat-grid-list-text>*{margin:0;padding:0;font-weight:normal;font-size:inherit}.mat-grid-tile .mat-grid-list-text:empty{display:none}.mat-grid-tile .mat-grid-tile-header{top:0}.mat-grid-tile .mat-grid-tile-footer{bottom:0}.mat-grid-tile .mat-grid-avatar{padding-right:16px}[dir=rtl] .mat-grid-tile .mat-grid-avatar{padding-right:0;padding-left:16px}.mat-grid-tile .mat-grid-avatar:empty{display:none}.mat-grid-tile-content{top:0;left:0;right:0;bottom:0;position:absolute;display:flex;align-items:center;justify-content:center;height:100%;padding:0;margin:0}"],encapsulation:2,changeDetection:0});class M{constructor(o){this._element=o}ngAfterContentInit(){(0,t.E0)(this._lines,this._element)}}M.\u0275fac=function(o){return new(o||M)(e.Y36(e.SBq))},M.\u0275cmp=e.Xpm({type:M,selectors:[["mat-grid-tile-header"],["mat-grid-tile-footer"]],contentQueries:function(o,h,d){if(1&o&&e.Suo(d,t.X2,5),2&o){let y;e.iGM(y=e.CRH())&&(h._lines=y)}},ngContentSelectors:["[mat-grid-avatar], [matGridAvatar]","[mat-line], [matLine]","*"],decls:4,vars:0,consts:[[1,"mat-grid-list-text"]],template:function(o,h){1&o&&(e.F$t(D),e.Hsn(0),e.TgZ(1,"div",0),e.Hsn(2,1),e.qZA(),e.Hsn(3,2))},encapsulation:2,changeDetection:0});class z{}z.\u0275fac=function(o){return new(o||z)},z.\u0275dir=e.lG2({type:z,selectors:[["","mat-grid-avatar",""],["","matGridAvatar",""]],hostAttrs:[1,"mat-grid-avatar"]});class I{}I.\u0275fac=function(o){return new(o||I)},I.\u0275dir=e.lG2({type:I,selectors:[["mat-grid-tile-header"]],hostAttrs:[1,"mat-grid-tile-header"]});class W{}W.\u0275fac=function(o){return new(o||W)},W.\u0275dir=e.lG2({type:W,selectors:[["mat-grid-tile-footer"]],hostAttrs:[1,"mat-grid-tile-footer"]});const Z=/^-?\d+((\.\d+)?[A-Za-z%$]?)+$/;class Q{constructor(){this._rows=0,this._rowspan=0}init(o,h,d,y){this._gutterSize=ye(o),this._rows=h.rowCount,this._rowspan=h.rowspan,this._cols=d,this._direction=y}getBaseTileSize(o,h){return`(${o}% - (${this._gutterSize} * ${h}))`}getTilePosition(o,h){return 0===h?"0":ce(`(${o} + ${this._gutterSize}) * ${h}`)}getTileSize(o,h){return`(${o} * ${h}) + (${h-1} * ${this._gutterSize})`}setStyle(o,h,d){let y=100/this._cols,L=(this._cols-1)/this._cols;this.setColStyles(o,d,y,L),this.setRowStyles(o,h,y,L)}setColStyles(o,h,d,y){let L=this.getBaseTileSize(d,y),B="rtl"===this._direction?"right":"left";o._setStyle(B,this.getTilePosition(L,h)),o._setStyle("width",ce(this.getTileSize(L,o.colspan)))}getGutterSpan(){return`${this._gutterSize} * (${this._rowspan} - 1)`}getTileSpan(o){return`${this._rowspan} * ${this.getTileSize(o,1)}`}getComputedHeight(){return null}}class ie extends Q{constructor(o){super(),this.fixedRowHeight=o}init(o,h,d,y){super.init(o,h,d,y),this.fixedRowHeight=ye(this.fixedRowHeight),Z.test(this.fixedRowHeight)}setRowStyles(o,h){o._setStyle("top",this.getTilePosition(this.fixedRowHeight,h)),o._setStyle("height",ce(this.getTileSize(this.fixedRowHeight,o.rowspan)))}getComputedHeight(){return["height",ce(`${this.getTileSpan(this.fixedRowHeight)} + ${this.getGutterSpan()}`)]}reset(o){o._setListStyle(["height",null]),o._tiles&&o._tiles.forEach(h=>{h._setStyle("top",null),h._setStyle("height",null)})}}class ae extends Q{constructor(o){super(),this._parseRatio(o)}setRowStyles(o,h,d,y){let L=d/this.rowHeightRatio;this.baseTileHeight=this.getBaseTileSize(L,y),o._setStyle("marginTop",this.getTilePosition(this.baseTileHeight,h)),o._setStyle("paddingTop",ce(this.getTileSize(this.baseTileHeight,o.rowspan)))}getComputedHeight(){return["paddingBottom",ce(`${this.getTileSpan(this.baseTileHeight)} + ${this.getGutterSpan()}`)]}reset(o){o._setListStyle(["paddingBottom",null]),o._tiles.forEach(h=>{h._setStyle("marginTop",null),h._setStyle("paddingTop",null)})}_parseRatio(o){const h=o.split(":");h.length,this.rowHeightRatio=parseFloat(h[0])/parseFloat(h[1])}}class _e extends Q{setRowStyles(o,h){let d=100/this._rowspan,y=(this._rows-1)/this._rows,L=this.getBaseTileSize(d,y);o._setStyle("top",this.getTilePosition(L,h)),o._setStyle("height",ce(this.getTileSize(L,o.rowspan)))}reset(o){o._tiles&&o._tiles.forEach(h=>{h._setStyle("top",null),h._setStyle("height",null)})}}function ce(n){return`calc(${n})`}function ye(n){return n.match(/([A-Za-z%]+)$/)?n:`${n}px`}class ${constructor(o,h){this._element=o,this._dir=h,this._gutter="1px"}get cols(){return this._cols}set cols(o){this._cols=Math.max(1,Math.round((0,_.su)(o)))}get gutterSize(){return this._gutter}set gutterSize(o){this._gutter=`${o??""}`}get rowHeight(){return this._rowHeight}set rowHeight(o){const h=`${o??""}`;h!==this._rowHeight&&(this._rowHeight=h,this._setTileStyler(this._rowHeight))}ngOnInit(){this._checkCols(),this._checkRowHeight()}ngAfterContentChecked(){this._layoutTiles()}_checkCols(){this.cols}_checkRowHeight(){this._rowHeight||this._setTileStyler("1:1")}_setTileStyler(o){this._tileStyler&&this._tileStyler.reset(this),"fit"===o?this._tileStyler=new _e:o&&o.indexOf(":")>-1?this._tileStyler=new ae(o):this._tileStyler=new ie(o)}_layoutTiles(){this._tileCoordinator||(this._tileCoordinator=new p);const o=this._tileCoordinator,h=this._tiles.filter(y=>!y._gridList||y._gridList===this),d=this._dir?this._dir.value:"ltr";this._tileCoordinator.update(this.cols,h),this._tileStyler.init(this.gutterSize,o,this.cols,d),h.forEach((y,L)=>{const B=o.positions[L];this._tileStyler.setStyle(y,B.row,B.col)}),this._setListStyle(this._tileStyler.getComputedHeight())}_setListStyle(o){o&&(this._element.nativeElement.style[o[0]]=o[1])}}$.\u0275fac=function(o){return new(o||$)(e.Y36(e.SBq),e.Y36(E.Is,8))},$.\u0275cmp=e.Xpm({type:$,selectors:[["mat-grid-list"]],contentQueries:function(o,h,d){if(1&o&&e.Suo(d,P,5),2&o){let y;e.iGM(y=e.CRH())&&(h._tiles=y)}},hostAttrs:[1,"mat-grid-list"],hostVars:1,hostBindings:function(o,h){2&o&&e.uIk("cols",h.cols)},inputs:{cols:"cols",gutterSize:"gutterSize",rowHeight:"rowHeight"},exportAs:["matGridList"],features:[e._Bn([{provide:A,useExisting:$}])],ngContentSelectors:s,decls:2,vars:0,template:function(o,h){1&o&&(e.F$t(),e.TgZ(0,"div"),e.Hsn(1),e.qZA())},styles:[".mat-grid-list{display:block;position:relative}.mat-grid-tile{display:block;position:absolute;overflow:hidden}.mat-grid-tile .mat-grid-tile-header,.mat-grid-tile .mat-grid-tile-footer{display:flex;align-items:center;height:48px;color:#fff;background:rgba(0,0,0,.38);overflow:hidden;padding:0 16px;position:absolute;left:0;right:0}.mat-grid-tile .mat-grid-tile-header>*,.mat-grid-tile .mat-grid-tile-footer>*{margin:0;padding:0;font-weight:normal;font-size:inherit}.mat-grid-tile .mat-grid-tile-header.mat-2-line,.mat-grid-tile .mat-grid-tile-footer.mat-2-line{height:68px}.mat-grid-tile .mat-grid-list-text{display:flex;flex-direction:column;flex:auto;box-sizing:border-box;overflow:hidden}.mat-grid-tile .mat-grid-list-text>*{margin:0;padding:0;font-weight:normal;font-size:inherit}.mat-grid-tile .mat-grid-list-text:empty{display:none}.mat-grid-tile .mat-grid-tile-header{top:0}.mat-grid-tile .mat-grid-tile-footer{bottom:0}.mat-grid-tile .mat-grid-avatar{padding-right:16px}[dir=rtl] .mat-grid-tile .mat-grid-avatar{padding-right:0;padding-left:16px}.mat-grid-tile .mat-grid-avatar:empty{display:none}.mat-grid-tile-content{top:0;left:0;right:0;bottom:0;position:absolute;display:flex;align-items:center;justify-content:center;height:100%;padding:0;margin:0}"],encapsulation:2,changeDetection:0});class he{}he.\u0275fac=function(o){return new(o||he)},he.\u0275mod=e.oAB({type:he}),he.\u0275inj=e.cJS({imports:[t.uc,t.BQ,t.uc,t.BQ]})},7822:(Ue,q,m)=>{"use strict";m.d(q,{Hw:()=>F,Ps:()=>X});var e=m(2560),t=m(207),_=m(8971),E=m(4666),s=m(745),D=m(5474),u=m(1640),k=m(7714),p=m(9337),S=m(635),A=m(3158),P=m(2313),M=m(1203),z=m(9295),I=m(8987),W=m(4497);let Q;function ae(Fe){return function ie(){if(void 0===Q&&(Q=null,typeof window<"u")){const Fe=window;void 0!==Fe.trustedTypes&&(Q=Fe.trustedTypes.createPolicy("angular#components",{createHTML:ke=>ke}))}return Q}()?.createHTML(Fe)||Fe}function _e(Fe){return Error(`Unable to find icon with the name "${Fe}"`)}function ye(Fe){return Error(`The URL provided to MatIconRegistry was not trusted as a resource URL via Angular's DomSanitizer. Attempted URL was "${Fe}".`)}function ue(Fe){return Error(`The literal provided to MatIconRegistry was not trusted as safe HTML by Angular's DomSanitizer. Attempted literal was "${Fe}".`)}class ${constructor(ke,Ke,je){this.url=ke,this.svgText=Ke,this.options=je}}class he{constructor(ke,Ke,je,Ve){this._httpClient=ke,this._sanitizer=Ke,this._errorHandler=Ve,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=je}addSvgIcon(ke,Ke,je){return this.addSvgIconInNamespace("",ke,Ke,je)}addSvgIconLiteral(ke,Ke,je){return this.addSvgIconLiteralInNamespace("",ke,Ke,je)}addSvgIconInNamespace(ke,Ke,je,Ve){return this._addSvgIconConfig(ke,Ke,new $(je,null,Ve))}addSvgIconResolver(ke){return this._resolvers.push(ke),this}addSvgIconLiteralInNamespace(ke,Ke,je,Ve){const xe=this._sanitizer.sanitize(e.q3G.HTML,je);if(!xe)throw ue(je);const Ze=ae(xe);return this._addSvgIconConfig(ke,Ke,new $("",Ze,Ve))}addSvgIconSet(ke,Ke){return this.addSvgIconSetInNamespace("",ke,Ke)}addSvgIconSetLiteral(ke,Ke){return this.addSvgIconSetLiteralInNamespace("",ke,Ke)}addSvgIconSetInNamespace(ke,Ke,je){return this._addSvgIconSetConfig(ke,new $(Ke,null,je))}addSvgIconSetLiteralInNamespace(ke,Ke,je){const Ve=this._sanitizer.sanitize(e.q3G.HTML,Ke);if(!Ve)throw ue(Ke);const xe=ae(Ve);return this._addSvgIconSetConfig(ke,new $("",xe,je))}registerFontClassAlias(ke,Ke=ke){return this._fontCssClassesByAlias.set(ke,Ke),this}classNameForFontAlias(ke){return this._fontCssClassesByAlias.get(ke)||ke}setDefaultFontSetClass(...ke){return this._defaultFontSetClass=ke,this}getDefaultFontSetClass(){return this._defaultFontSetClass}getSvgIconFromUrl(ke){const Ke=this._sanitizer.sanitize(e.q3G.RESOURCE_URL,ke);if(!Ke)throw ye(ke);const je=this._cachedIconsByUrl.get(Ke);return je?(0,s.of)(o(je)):this._loadSvgIconFromConfig(new $(ke,null)).pipe((0,p.b)(Ve=>this._cachedIconsByUrl.set(Ke,Ve)),(0,S.U)(Ve=>o(Ve)))}getNamedSvgIcon(ke,Ke=""){const je=h(Ke,ke);let Ve=this._svgIconConfigs.get(je);if(Ve)return this._getSvgFromConfig(Ve);if(Ve=this._getIconConfigFromResolvers(Ke,ke),Ve)return this._svgIconConfigs.set(je,Ve),this._getSvgFromConfig(Ve);const xe=this._iconSetConfigs.get(Ke);return xe?this._getSvgFromIconSetConfigs(ke,xe):(0,D._)(_e(je))}ngOnDestroy(){this._resolvers=[],this._svgIconConfigs.clear(),this._iconSetConfigs.clear(),this._cachedIconsByUrl.clear()}_getSvgFromConfig(ke){return ke.svgText?(0,s.of)(o(this._svgElementFromConfig(ke))):this._loadSvgIconFromConfig(ke).pipe((0,S.U)(Ke=>o(Ke)))}_getSvgFromIconSetConfigs(ke,Ke){const je=this._extractIconWithNameFromAnySet(ke,Ke);if(je)return(0,s.of)(je);const Ve=Ke.filter(xe=>!xe.svgText).map(xe=>this._loadSvgIconSetFromConfig(xe).pipe((0,A.K)(Ze=>{const ve=`Loading icon set URL: ${this._sanitizer.sanitize(e.q3G.RESOURCE_URL,xe.url)} failed: ${Ze.message}`;return this._errorHandler.handleError(new Error(ve)),(0,s.of)(null)})));return(0,u.D)(Ve).pipe((0,S.U)(()=>{const xe=this._extractIconWithNameFromAnySet(ke,Ke);if(!xe)throw _e(ke);return xe}))}_extractIconWithNameFromAnySet(ke,Ke){for(let je=Ke.length-1;je>=0;je--){const Ve=Ke[je];if(Ve.svgText&&Ve.svgText.toString().indexOf(ke)>-1){const xe=this._svgElementFromConfig(Ve),Ze=this._extractSvgIconFromSet(xe,ke,Ve.options);if(Ze)return Ze}}return null}_loadSvgIconFromConfig(ke){return this._fetchIcon(ke).pipe((0,p.b)(Ke=>ke.svgText=Ke),(0,S.U)(()=>this._svgElementFromConfig(ke)))}_loadSvgIconSetFromConfig(ke){return ke.svgText?(0,s.of)(null):this._fetchIcon(ke).pipe((0,p.b)(Ke=>ke.svgText=Ke))}_extractSvgIconFromSet(ke,Ke,je){const Ve=ke.querySelector(`[id="${Ke}"]`);if(!Ve)return null;const xe=Ve.cloneNode(!0);if(xe.removeAttribute("id"),"svg"===xe.nodeName.toLowerCase())return this._setSvgAttributes(xe,je);if("symbol"===xe.nodeName.toLowerCase())return this._setSvgAttributes(this._toSvgElement(xe),je);const Ze=this._svgElementFromString(ae("<svg></svg>"));return Ze.appendChild(xe),this._setSvgAttributes(Ze,je)}_svgElementFromString(ke){const Ke=this._document.createElement("DIV");Ke.innerHTML=ke;const je=Ke.querySelector("svg");if(!je)throw Error("<svg> tag not found");return je}_toSvgElement(ke){const Ke=this._svgElementFromString(ae("<svg></svg>")),je=ke.attributes;for(let Ve=0;Ve<je.length;Ve++){const{name:xe,value:Ze}=je[Ve];"id"!==xe&&Ke.setAttribute(xe,Ze)}for(let Ve=0;Ve<ke.childNodes.length;Ve++)ke.childNodes[Ve].nodeType===this._document.ELEMENT_NODE&&Ke.appendChild(ke.childNodes[Ve].cloneNode(!0));return Ke}_setSvgAttributes(ke,Ke){return ke.setAttribute("fit",""),ke.setAttribute("height","100%"),ke.setAttribute("width","100%"),ke.setAttribute("preserveAspectRatio","xMidYMid meet"),ke.setAttribute("focusable","false"),Ke&&Ke.viewBox&&ke.setAttribute("viewBox",Ke.viewBox),ke}_fetchIcon(ke){const{url:Ke,options:je}=ke,Ve=je?.withCredentials??!1;if(!this._httpClient)throw function ce(){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==Ke)throw Error(`Cannot fetch icon from URL "${Ke}".`);const xe=this._sanitizer.sanitize(e.q3G.RESOURCE_URL,Ke);if(!xe)throw ye(Ke);const Ze=this._inProgressUrlFetches.get(xe);if(Ze)return Ze;const Ie=this._httpClient.get(xe,{responseType:"text",withCredentials:Ve}).pipe((0,S.U)(ve=>ae(ve)),(0,P.x)(()=>this._inProgressUrlFetches.delete(xe)),(0,M.B)());return this._inProgressUrlFetches.set(xe,Ie),Ie}_addSvgIconConfig(ke,Ke,je){return this._svgIconConfigs.set(h(ke,Ke),je),this}_addSvgIconSetConfig(ke,Ke){const je=this._iconSetConfigs.get(ke);return je?je.push(Ke):this._iconSetConfigs.set(ke,[Ke]),this}_svgElementFromConfig(ke){if(!ke.svgElement){const Ke=this._svgElementFromString(ke.svgText);this._setSvgAttributes(Ke,ke.options),ke.svgElement=Ke}return ke.svgElement}_getIconConfigFromResolvers(ke,Ke){for(let je=0;je<this._resolvers.length;je++){const Ve=this._resolvers[je](Ke,ke);if(Ve)return(Fe=Ve).url&&Fe.options?new $(Ve.url,null,Ve.options):new $(Ve,null)}var Fe}}he.\u0275fac=function(ke){return new(ke||he)(e.LFG(I.eN,8),e.LFG(W.H7),e.LFG(E.K0,8),e.LFG(e.qLn))},he.\u0275prov=e.Yz7({token:he,factory:he.\u0275fac,providedIn:"root"});new e.FiY,new e.tp0,new e.FiY,I.eN,W.H7,e.qLn,new e.FiY,E.K0;function o(Fe){return Fe.cloneNode(!0)}function h(Fe,ke){return Fe+":"+ke}const y=(0,t.pj)(class{constructor(Fe){this._elementRef=Fe}}),L=new e.OlP("MAT_ICON_DEFAULT_OPTIONS"),B=new e.OlP("mat-icon-location",{providedIn:"root",factory:function v(){const Fe=(0,e.f3M)(E.K0),ke=Fe?Fe.location:null;return{getPathname:()=>ke?ke.pathname+ke.search:""}}});const a=["clip-path","color-profile","src","cursor","fill","filter","marker","marker-start","marker-mid","marker-end","mask","stroke"],C=a.map(Fe=>`[${Fe}]`).join(", "),N=/^url\(['"]?#(.*?)['"]?\)$/;class F extends y{constructor(ke,Ke,je,Ve,xe,Ze){super(ke),this._iconRegistry=Ke,this._location=Ve,this._errorHandler=xe,this._inline=!1,this._previousFontSetClass=[],this._currentIconFetch=k.w0.EMPTY,Ze&&(Ze.color&&(this.color=this.defaultColor=Ze.color),Ze.fontSet&&(this.fontSet=Ze.fontSet)),je||ke.nativeElement.setAttribute("aria-hidden","true")}get inline(){return this._inline}set inline(ke){this._inline=(0,_.Ig)(ke)}get svgIcon(){return this._svgIcon}set svgIcon(ke){ke!==this._svgIcon&&(ke?this._updateSvgIcon(ke):this._svgIcon&&this._clearSvgElement(),this._svgIcon=ke)}get fontSet(){return this._fontSet}set fontSet(ke){const Ke=this._cleanupFontValue(ke);Ke!==this._fontSet&&(this._fontSet=Ke,this._updateFontIconClasses())}get fontIcon(){return this._fontIcon}set fontIcon(ke){const Ke=this._cleanupFontValue(ke);Ke!==this._fontIcon&&(this._fontIcon=Ke,this._updateFontIconClasses())}_splitIconName(ke){if(!ke)return["",""];const Ke=ke.split(":");switch(Ke.length){case 1:return["",Ke[0]];case 2:return Ke;default:throw Error(`Invalid icon name: "${ke}"`)}}ngOnInit(){this._updateFontIconClasses()}ngAfterViewChecked(){const ke=this._elementsWithExternalReferences;if(ke&&ke.size){const Ke=this._location.getPathname();Ke!==this._previousPath&&(this._previousPath=Ke,this._prependPathToReferences(Ke))}}ngOnDestroy(){this._currentIconFetch.unsubscribe(),this._elementsWithExternalReferences&&this._elementsWithExternalReferences.clear()}_usingFontIcon(){return!this.svgIcon}_setSvgElement(ke){this._clearSvgElement();const Ke=this._location.getPathname();this._previousPath=Ke,this._cacheChildrenWithExternalReferences(ke),this._prependPathToReferences(Ke),this._elementRef.nativeElement.appendChild(ke)}_clearSvgElement(){const ke=this._elementRef.nativeElement;let Ke=ke.childNodes.length;for(this._elementsWithExternalReferences&&this._elementsWithExternalReferences.clear();Ke--;){const je=ke.childNodes[Ke];(1!==je.nodeType||"svg"===je.nodeName.toLowerCase())&&je.remove()}}_updateFontIconClasses(){if(!this._usingFontIcon())return;const ke=this._elementRef.nativeElement,Ke=(this.fontSet?this._iconRegistry.classNameForFontAlias(this.fontSet).split(/ +/):this._iconRegistry.getDefaultFontSetClass()).filter(je=>je.length>0);this._previousFontSetClass.forEach(je=>ke.classList.remove(je)),Ke.forEach(je=>ke.classList.add(je)),this._previousFontSetClass=Ke,this.fontIcon!==this._previousFontIconClass&&!Ke.includes("mat-ligature-font")&&(this._previousFontIconClass&&ke.classList.remove(this._previousFontIconClass),this.fontIcon&&ke.classList.add(this.fontIcon),this._previousFontIconClass=this.fontIcon)}_cleanupFontValue(ke){return"string"==typeof ke?ke.trim().split(" ")[0]:ke}_prependPathToReferences(ke){const Ke=this._elementsWithExternalReferences;Ke&&Ke.forEach((je,Ve)=>{je.forEach(xe=>{Ve.setAttribute(xe.name,`url('${ke}#${xe.value}')`)})})}_cacheChildrenWithExternalReferences(ke){const Ke=ke.querySelectorAll(C),je=this._elementsWithExternalReferences=this._elementsWithExternalReferences||new Map;for(let Ve=0;Ve<Ke.length;Ve++)a.forEach(xe=>{const Ze=Ke[Ve],Ie=Ze.getAttribute(xe),ve=Ie?Ie.match(N):null;if(ve){let et=je.get(Ze);et||(et=[],je.set(Ze,et)),et.push({name:xe,value:ve[1]})}})}_updateSvgIcon(ke){if(this._svgNamespace=null,this._svgName=null,this._currentIconFetch.unsubscribe(),ke){const[Ke,je]=this._splitIconName(ke);Ke&&(this._svgNamespace=Ke),je&&(this._svgName=je),this._currentIconFetch=this._iconRegistry.getNamedSvgIcon(je,Ke).pipe((0,z.q)(1)).subscribe(Ve=>this._setSvgElement(Ve),Ve=>{const xe=`Error retrieving icon ${Ke}:${je}! ${Ve.message}`;this._errorHandler.handleError(new Error(xe))})}}}F.\u0275fac=function(ke){return new(ke||F)(e.Y36(e.SBq),e.Y36(he),e.$8M("aria-hidden"),e.Y36(B),e.Y36(e.qLn),e.Y36(L,8))},F.\u0275cmp=e.Xpm({type:F,selectors:[["mat-icon"]],hostAttrs:["role","img",1,"mat-icon","notranslate"],hostVars:8,hostBindings:function(ke,Ke){2&ke&&(e.uIk("data-mat-icon-type",Ke._usingFontIcon()?"font":"svg")("data-mat-icon-name",Ke._svgName||Ke.fontIcon)("data-mat-icon-namespace",Ke._svgNamespace||Ke.fontSet)("fontIcon",Ke._usingFontIcon()?Ke.fontIcon:null),e.ekj("mat-icon-inline",Ke.inline)("mat-icon-no-color","primary"!==Ke.color&&"accent"!==Ke.color&&"warn"!==Ke.color))},inputs:{color:"color",inline:"inline",svgIcon:"svgIcon",fontSet:"fontSet",fontIcon:"fontIcon"},exportAs:["matIcon"],features:[e.qOj],ngContentSelectors:["*"],decls:1,vars:0,template:function(ke,Ke){1&ke&&(e.F$t(),e.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});class X{}X.\u0275fac=function(ke){return new(ke||X)},X.\u0275mod=e.oAB({type:X}),X.\u0275inj=e.cJS({imports:[t.BQ,t.BQ]})},1267:(Ue,q,m)=>{"use strict";m.d(q,{Jk:()=>ie,Nt:()=>ye,c:()=>ue});var e=m(8971),t=m(9107),_=m(2560),E=m(591),s=m(253),D=m(3280),u=m(9211),k=m(8951),p=m(4666);const S=(0,t.i$)({passive:!0});class A{constructor(he,w){this._platform=he,this._ngZone=w,this._monitoredElements=new Map}monitor(he){if(!this._platform.isBrowser)return E.E;const w=(0,e.fI)(he),n=this._monitoredElements.get(w);if(n)return n.subject;const o=new s.x,h="cdk-text-field-autofilled",d=y=>{"cdk-text-field-autofill-start"!==y.animationName||w.classList.contains(h)?"cdk-text-field-autofill-end"===y.animationName&&w.classList.contains(h)&&(w.classList.remove(h),this._ngZone.run(()=>o.next({target:y.target,isAutofilled:!1}))):(w.classList.add(h),this._ngZone.run(()=>o.next({target:y.target,isAutofilled:!0})))};return this._ngZone.runOutsideAngular(()=>{w.addEventListener("animationstart",d,S),w.classList.add("cdk-text-field-autofill-monitored")}),this._monitoredElements.set(w,{subject:o,unlisten:()=>{w.removeEventListener("animationstart",d,S)}}),o}stopMonitoring(he){const w=(0,e.fI)(he),n=this._monitoredElements.get(w);n&&(n.unlisten(),n.subject.complete(),w.classList.remove("cdk-text-field-autofill-monitored"),w.classList.remove("cdk-text-field-autofilled"),this._monitoredElements.delete(w))}ngOnDestroy(){this._monitoredElements.forEach((he,w)=>this.stopMonitoring(w))}}A.\u0275fac=function(he){return new(he||A)(_.LFG(t.t4),_.LFG(_.R0b))},A.\u0275prov=_.Yz7({token:A,factory:A.\u0275fac,providedIn:"root"});class P{constructor(he,w){this._elementRef=he,this._autofillMonitor=w,this.cdkAutofill=new _.vpe}ngOnInit(){this._autofillMonitor.monitor(this._elementRef).subscribe(he=>this.cdkAutofill.emit(he))}ngOnDestroy(){this._autofillMonitor.stopMonitoring(this._elementRef)}}P.\u0275fac=function(he){return new(he||P)(_.Y36(_.SBq),_.Y36(A))},P.\u0275dir=_.lG2({type:P,selectors:[["","cdkAutofill",""]],outputs:{cdkAutofill:"cdkAutofill"}});class M{constructor(he,w,n,o){this._elementRef=he,this._platform=w,this._ngZone=n,this._destroyed=new s.x,this._enabled=!0,this._previousMinRows=-1,this._isViewInited=!1,this._handleFocusEvent=h=>{this._hasFocus="focus"===h.type},this._document=o,this._textareaElement=this._elementRef.nativeElement}get minRows(){return this._minRows}set minRows(he){this._minRows=(0,e.su)(he),this._setMinHeight()}get maxRows(){return this._maxRows}set maxRows(he){this._maxRows=(0,e.su)(he),this._setMaxHeight()}get enabled(){return this._enabled}set enabled(he){he=(0,e.Ig)(he),this._enabled!==he&&((this._enabled=he)?this.resizeToFitContent(!0):this.reset())}get placeholder(){return this._textareaElement.placeholder}set placeholder(he){this._cachedPlaceholderHeight=void 0,he?this._textareaElement.setAttribute("placeholder",he):this._textareaElement.removeAttribute("placeholder"),this._cacheTextareaPlaceholderHeight()}_setMinHeight(){const he=this.minRows&&this._cachedLineHeight?this.minRows*this._cachedLineHeight+"px":null;he&&(this._textareaElement.style.minHeight=he)}_setMaxHeight(){const he=this.maxRows&&this._cachedLineHeight?this.maxRows*this._cachedLineHeight+"px":null;he&&(this._textareaElement.style.maxHeight=he)}ngAfterViewInit(){this._platform.isBrowser&&(this._initialHeight=this._textareaElement.style.height,this.resizeToFitContent(),this._ngZone.runOutsideAngular(()=>{const he=this._getWindow();(0,D.R)(he,"resize").pipe((0,u.e)(16),(0,k.R)(this._destroyed)).subscribe(()=>this.resizeToFitContent(!0)),this._textareaElement.addEventListener("focus",this._handleFocusEvent),this._textareaElement.addEventListener("blur",this._handleFocusEvent)}),this._isViewInited=!0,this.resizeToFitContent(!0))}ngOnDestroy(){this._textareaElement.removeEventListener("focus",this._handleFocusEvent),this._textareaElement.removeEventListener("blur",this._handleFocusEvent),this._destroyed.next(),this._destroyed.complete()}_cacheTextareaLineHeight(){if(this._cachedLineHeight)return;let he=this._textareaElement.cloneNode(!1);he.rows=1,he.style.position="absolute",he.style.visibility="hidden",he.style.border="none",he.style.padding="0",he.style.height="",he.style.minHeight="",he.style.maxHeight="",he.style.overflow="hidden",this._textareaElement.parentNode.appendChild(he),this._cachedLineHeight=he.clientHeight,he.remove(),this._setMinHeight(),this._setMaxHeight()}_measureScrollHeight(){const he=this._textareaElement,w=he.style.marginBottom||"",n=this._platform.FIREFOX,o=n&&this._hasFocus,h=n?"cdk-textarea-autosize-measuring-firefox":"cdk-textarea-autosize-measuring";o&&(he.style.marginBottom=`${he.clientHeight}px`),he.classList.add(h);const d=he.scrollHeight-4;return he.classList.remove(h),o&&(he.style.marginBottom=w),d}_cacheTextareaPlaceholderHeight(){if(!this._isViewInited||null!=this._cachedPlaceholderHeight)return;if(!this.placeholder)return void(this._cachedPlaceholderHeight=0);const he=this._textareaElement.value;this._textareaElement.value=this._textareaElement.placeholder,this._cachedPlaceholderHeight=this._measureScrollHeight(),this._textareaElement.value=he}ngDoCheck(){this._platform.isBrowser&&this.resizeToFitContent()}resizeToFitContent(he=!1){if(!this._enabled||(this._cacheTextareaLineHeight(),this._cacheTextareaPlaceholderHeight(),!this._cachedLineHeight))return;const w=this._elementRef.nativeElement,n=w.value;if(!he&&this._minRows===this._previousMinRows&&n===this._previousValue)return;const o=this._measureScrollHeight(),h=Math.max(o,this._cachedPlaceholderHeight||0);w.style.height=`${h}px`,this._ngZone.runOutsideAngular(()=>{typeof requestAnimationFrame<"u"?requestAnimationFrame(()=>this._scrollToCaretPosition(w)):setTimeout(()=>this._scrollToCaretPosition(w))}),this._previousValue=n,this._previousMinRows=this._minRows}reset(){void 0!==this._initialHeight&&(this._textareaElement.style.height=this._initialHeight)}_noopInputHandler(){}_getDocument(){return this._document||document}_getWindow(){return this._getDocument().defaultView||window}_scrollToCaretPosition(he){const{selectionStart:w,selectionEnd:n}=he;!this._destroyed.isStopped&&this._hasFocus&&he.setSelectionRange(w,n)}}M.\u0275fac=function(he){return new(he||M)(_.Y36(_.SBq),_.Y36(t.t4),_.Y36(_.R0b),_.Y36(p.K0,8))},M.\u0275dir=_.lG2({type:M,selectors:[["textarea","cdkTextareaAutosize",""]],hostAttrs:["rows","1",1,"cdk-textarea-autosize"],hostBindings:function(he,w){1&he&&_.NdJ("input",function(){return w._noopInputHandler()})},inputs:{minRows:["cdkAutosizeMinRows","minRows"],maxRows:["cdkAutosizeMaxRows","maxRows"],enabled:["cdkTextareaAutosize","enabled"],placeholder:"placeholder"},exportAs:["cdkTextareaAutosize"]});class z{}z.\u0275fac=function(he){return new(he||z)},z.\u0275mod=_.oAB({type:z}),z.\u0275inj=_.cJS({});var I=m(2508),W=m(207),Z=m(5074);const ie=new _.OlP("MAT_INPUT_VALUE_ACCESSOR"),ae=["button","checkbox","file","hidden","image","radio","range","reset","submit"];let _e=0;const ce=(0,W.FD)(class{constructor($,he,w,n){this._defaultErrorStateMatcher=$,this._parentForm=he,this._parentFormGroup=w,this.ngControl=n,this.stateChanges=new s.x}});class ye extends ce{constructor(he,w,n,o,h,d,y,L,B,v){super(d,o,h,n),this._elementRef=he,this._platform=w,this._autofillMonitor=L,this._formField=v,this._uid="mat-input-"+_e++,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(N=>(0,t.qK)().has(N)),this._iOSKeyupListener=N=>{const F=N.target;!F.value&&0===F.selectionStart&&0===F.selectionEnd&&(F.setSelectionRange(1,1),F.setSelectionRange(0,0))};const a=this._elementRef.nativeElement,C=a.nodeName.toLowerCase();this._inputValueAccessor=y||a,this._previousNativeValue=this.value,this.id=this.id,w.IOS&&B.runOutsideAngular(()=>{he.nativeElement.addEventListener("keyup",this._iOSKeyupListener)}),this._isServer=!this._platform.isBrowser,this._isNativeSelect="select"===C,this._isTextarea="textarea"===C,this._isInFormField=!!v,this._isNativeSelect&&(this.controlType=a.multiple?"mat-native-select-multiple":"mat-native-select")}get disabled(){return this.ngControl&&null!==this.ngControl.disabled?this.ngControl.disabled:this._disabled}set disabled(he){this._disabled=(0,e.Ig)(he),this.focused&&(this.focused=!1,this.stateChanges.next())}get id(){return this._id}set id(he){this._id=he||this._uid}get required(){return this._required??this.ngControl?.control?.hasValidator(I.kI.required)??!1}set required(he){this._required=(0,e.Ig)(he)}get type(){return this._type}set type(he){this._type=he||"text",this._validateType(),!this._isTextarea&&(0,t.qK)().has(this._type)&&(this._elementRef.nativeElement.type=this._type)}get value(){return this._inputValueAccessor.value}set value(he){he!==this.value&&(this._inputValueAccessor.value=he,this.stateChanges.next())}get readonly(){return this._readonly}set readonly(he){this._readonly=(0,e.Ig)(he)}ngAfterViewInit(){this._platform.isBrowser&&this._autofillMonitor.monitor(this._elementRef.nativeElement).subscribe(he=>{this.autofilled=he.isAutofilled,this.stateChanges.next()})}ngOnChanges(){this.stateChanges.next()}ngOnDestroy(){this.stateChanges.complete(),this._platform.isBrowser&&this._autofillMonitor.stopMonitoring(this._elementRef.nativeElement),this._platform.IOS&&this._elementRef.nativeElement.removeEventListener("keyup",this._iOSKeyupListener)}ngDoCheck(){this.ngControl&&this.updateErrorState(),this._dirtyCheckNativeValue(),this._dirtyCheckPlaceholder()}focus(he){this._elementRef.nativeElement.focus(he)}_focusChanged(he){he!==this.focused&&(this.focused=he,this.stateChanges.next())}_onInput(){}_dirtyCheckPlaceholder(){const he=this._formField,w=he&&"legacy"===he.appearance&&!he._hasLabel?.()?null:this.placeholder;if(w!==this._previousPlaceholder){const n=this._elementRef.nativeElement;this._previousPlaceholder=w,w?n.setAttribute("placeholder",w):n.removeAttribute("placeholder")}}_dirtyCheckNativeValue(){const he=this._elementRef.nativeElement.value;this._previousNativeValue!==he&&(this._previousNativeValue=he,this.stateChanges.next())}_validateType(){ae.indexOf(this._type)}_isNeverEmpty(){return this._neverEmptyInputTypes.indexOf(this._type)>-1}_isBadInput(){let he=this._elementRef.nativeElement.validity;return he&&he.badInput}get empty(){return!(this._isNeverEmpty()||this._elementRef.nativeElement.value||this._isBadInput()||this.autofilled)}get shouldLabelFloat(){if(this._isNativeSelect){const he=this._elementRef.nativeElement,w=he.options[0];return this.focused||he.multiple||!this.empty||!!(he.selectedIndex>-1&&w&&w.label)}return this.focused||!this.empty}setDescribedByIds(he){he.length?this._elementRef.nativeElement.setAttribute("aria-describedby",he.join(" ")):this._elementRef.nativeElement.removeAttribute("aria-describedby")}onContainerClick(){this.focused||this.focus()}_isInlineSelect(){const he=this._elementRef.nativeElement;return this._isNativeSelect&&(he.multiple||he.size>1)}}ye.\u0275fac=function(he){return new(he||ye)(_.Y36(_.SBq),_.Y36(t.t4),_.Y36(I.a5,10),_.Y36(I.F,8),_.Y36(I.sg,8),_.Y36(W.rD),_.Y36(ie,10),_.Y36(A),_.Y36(_.R0b),_.Y36(Z.G_,8))},ye.\u0275dir=_.lG2({type:ye,selectors:[["input","matInput",""],["textarea","matInput",""],["select","matNativeControl",""],["input","matNativeControl",""],["textarea","matNativeControl",""]],hostAttrs:[1,"mat-input-element","mat-form-field-autofill-control"],hostVars:12,hostBindings:function(he,w){1&he&&_.NdJ("focus",function(){return w._focusChanged(!0)})("blur",function(){return w._focusChanged(!1)})("input",function(){return w._onInput()}),2&he&&(_.Ikx("disabled",w.disabled)("required",w.required),_.uIk("id",w.id)("data-placeholder",w.placeholder)("name",w.name||null)("readonly",w.readonly&&!w._isNativeSelect||null)("aria-invalid",w.empty&&w.required?null:w.errorState)("aria-required",w.required),_.ekj("mat-input-server",w._isServer)("mat-native-select-inline",w._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:[_._Bn([{provide:Z.Eo,useExisting:ye}]),_.qOj,_.TTD]});class ue{}ue.\u0275fac=function(he){return new(he||ue)},ue.\u0275mod=_.oAB({type:ue}),ue.\u0275inj=_.cJS({providers:[W.rD],imports:[z,Z.lN,W.BQ,z,Z.lN]})},6517:(Ue,q,m)=>{"use strict";m.d(q,{Tg:()=>h,i$:()=>he,ie:()=>C});var e=m(4666),t=m(2560),_=m(207),E=m(8971),s=m(253),D=m(8951),u=m(4874),k=m(4218),p=m(1755),S=m(8456),A=m(2508),P=m(1528);const M=["*"],z='.mat-subheader{display:flex;box-sizing:border-box;padding:16px;align-items:center}.mat-list-base .mat-subheader{margin:0}button.mat-list-item,button.mat-list-option{padding:0;width:100%;background:none;color:inherit;border:none;outline:inherit;-webkit-tap-highlight-color:rgba(0,0,0,0);text-align:left}[dir=rtl] button.mat-list-item,[dir=rtl] button.mat-list-option{text-align:right}button.mat-list-item::-moz-focus-inner,button.mat-list-option::-moz-focus-inner{border:0}.mat-list-base{padding-top:8px;display:block;-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-list-base .mat-subheader{height:48px;line-height:16px}.mat-list-base .mat-subheader:first-child{margin-top:-8px}.mat-list-base .mat-list-item,.mat-list-base .mat-list-option{display:block;height:48px;-webkit-tap-highlight-color:rgba(0,0,0,0);width:100%;padding:0}.mat-list-base .mat-list-item .mat-list-item-content,.mat-list-base .mat-list-option .mat-list-item-content{display:flex;flex-direction:row;align-items:center;box-sizing:border-box;padding:0 16px;position:relative;height:inherit}.mat-list-base .mat-list-item .mat-list-item-content-reverse,.mat-list-base .mat-list-option .mat-list-item-content-reverse{display:flex;align-items:center;padding:0 16px;flex-direction:row-reverse;justify-content:space-around}.mat-list-base .mat-list-item .mat-list-item-ripple,.mat-list-base .mat-list-option .mat-list-item-ripple{display:block;top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-list-base .mat-list-item.mat-list-item-with-avatar,.mat-list-base .mat-list-option.mat-list-item-with-avatar{height:56px}.mat-list-base .mat-list-item.mat-2-line,.mat-list-base .mat-list-option.mat-2-line{height:72px}.mat-list-base .mat-list-item.mat-3-line,.mat-list-base .mat-list-option.mat-3-line{height:88px}.mat-list-base .mat-list-item.mat-multi-line,.mat-list-base .mat-list-option.mat-multi-line{height:auto}.mat-list-base .mat-list-item.mat-multi-line .mat-list-item-content,.mat-list-base .mat-list-option.mat-multi-line .mat-list-item-content{padding-top:16px;padding-bottom:16px}.mat-list-base .mat-list-item .mat-list-text,.mat-list-base .mat-list-option .mat-list-text{display:flex;flex-direction:column;flex:auto;box-sizing:border-box;overflow:hidden;padding:0}.mat-list-base .mat-list-item .mat-list-text>*,.mat-list-base .mat-list-option .mat-list-text>*{margin:0;padding:0;font-weight:normal;font-size:inherit}.mat-list-base .mat-list-item .mat-list-text:empty,.mat-list-base .mat-list-option .mat-list-text:empty{display:none}.mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:0;padding-left:16px}[dir=rtl] .mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:0}.mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-left:0;padding-right:16px}[dir=rtl] .mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-right:0;padding-left:16px}.mat-list-base .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:16px}.mat-list-base .mat-list-item .mat-list-avatar,.mat-list-base .mat-list-option .mat-list-avatar{flex-shrink:0;width:40px;height:40px;border-radius:50%;object-fit:cover}.mat-list-base .mat-list-item .mat-list-avatar~.mat-divider-inset,.mat-list-base .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:72px;width:calc(100% - 72px)}[dir=rtl] .mat-list-base .mat-list-item .mat-list-avatar~.mat-divider-inset,[dir=rtl] .mat-list-base .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:auto;margin-right:72px}.mat-list-base .mat-list-item .mat-list-icon,.mat-list-base .mat-list-option .mat-list-icon{flex-shrink:0;width:24px;height:24px;font-size:24px;box-sizing:content-box;border-radius:50%;padding:4px}.mat-list-base .mat-list-item .mat-list-icon~.mat-divider-inset,.mat-list-base .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:64px;width:calc(100% - 64px)}[dir=rtl] .mat-list-base .mat-list-item .mat-list-icon~.mat-divider-inset,[dir=rtl] .mat-list-base .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:auto;margin-right:64px}.mat-list-base .mat-list-item .mat-divider,.mat-list-base .mat-list-option .mat-divider{position:absolute;bottom:0;left:0;width:100%;margin:0}[dir=rtl] .mat-list-base .mat-list-item .mat-divider,[dir=rtl] .mat-list-base .mat-list-option .mat-divider{margin-left:auto;margin-right:0}.mat-list-base .mat-list-item .mat-divider.mat-divider-inset,.mat-list-base .mat-list-option .mat-divider.mat-divider-inset{position:absolute}.mat-list-base[dense]{padding-top:4px;display:block}.mat-list-base[dense] .mat-subheader{height:40px;line-height:8px}.mat-list-base[dense] .mat-subheader:first-child{margin-top:-4px}.mat-list-base[dense] .mat-list-item,.mat-list-base[dense] .mat-list-option{display:block;height:40px;-webkit-tap-highlight-color:rgba(0,0,0,0);width:100%;padding:0}.mat-list-base[dense] .mat-list-item .mat-list-item-content,.mat-list-base[dense] .mat-list-option .mat-list-item-content{display:flex;flex-direction:row;align-items:center;box-sizing:border-box;padding:0 16px;position:relative;height:inherit}.mat-list-base[dense] .mat-list-item .mat-list-item-content-reverse,.mat-list-base[dense] .mat-list-option .mat-list-item-content-reverse{display:flex;align-items:center;padding:0 16px;flex-direction:row-reverse;justify-content:space-around}.mat-list-base[dense] .mat-list-item .mat-list-item-ripple,.mat-list-base[dense] .mat-list-option .mat-list-item-ripple{display:block;top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar{height:48px}.mat-list-base[dense] .mat-list-item.mat-2-line,.mat-list-base[dense] .mat-list-option.mat-2-line{height:60px}.mat-list-base[dense] .mat-list-item.mat-3-line,.mat-list-base[dense] .mat-list-option.mat-3-line{height:76px}.mat-list-base[dense] .mat-list-item.mat-multi-line,.mat-list-base[dense] .mat-list-option.mat-multi-line{height:auto}.mat-list-base[dense] .mat-list-item.mat-multi-line .mat-list-item-content,.mat-list-base[dense] .mat-list-option.mat-multi-line .mat-list-item-content{padding-top:16px;padding-bottom:16px}.mat-list-base[dense] .mat-list-item .mat-list-text,.mat-list-base[dense] .mat-list-option .mat-list-text{display:flex;flex-direction:column;flex:auto;box-sizing:border-box;overflow:hidden;padding:0}.mat-list-base[dense] .mat-list-item .mat-list-text>*,.mat-list-base[dense] .mat-list-option .mat-list-text>*{margin:0;padding:0;font-weight:normal;font-size:inherit}.mat-list-base[dense] .mat-list-item .mat-list-text:empty,.mat-list-base[dense] .mat-list-option .mat-list-text:empty{display:none}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:0;padding-left:16px}[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:0}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-left:0;padding-right:16px}[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-right:0;padding-left:16px}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:16px}.mat-list-base[dense] .mat-list-item .mat-list-avatar,.mat-list-base[dense] .mat-list-option .mat-list-avatar{flex-shrink:0;width:36px;height:36px;border-radius:50%;object-fit:cover}.mat-list-base[dense] .mat-list-item .mat-list-avatar~.mat-divider-inset,.mat-list-base[dense] .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:68px;width:calc(100% - 68px)}[dir=rtl] .mat-list-base[dense] .mat-list-item .mat-list-avatar~.mat-divider-inset,[dir=rtl] .mat-list-base[dense] .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:auto;margin-right:68px}.mat-list-base[dense] .mat-list-item .mat-list-icon,.mat-list-base[dense] .mat-list-option .mat-list-icon{flex-shrink:0;width:20px;height:20px;font-size:20px;box-sizing:content-box;border-radius:50%;padding:4px}.mat-list-base[dense] .mat-list-item .mat-list-icon~.mat-divider-inset,.mat-list-base[dense] .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:60px;width:calc(100% - 60px)}[dir=rtl] .mat-list-base[dense] .mat-list-item .mat-list-icon~.mat-divider-inset,[dir=rtl] .mat-list-base[dense] .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:auto;margin-right:60px}.mat-list-base[dense] .mat-list-item .mat-divider,.mat-list-base[dense] .mat-list-option .mat-divider{position:absolute;bottom:0;left:0;width:100%;margin:0}[dir=rtl] .mat-list-base[dense] .mat-list-item .mat-divider,[dir=rtl] .mat-list-base[dense] .mat-list-option .mat-divider{margin-left:auto;margin-right:0}.mat-list-base[dense] .mat-list-item .mat-divider.mat-divider-inset,.mat-list-base[dense] .mat-list-option .mat-divider.mat-divider-inset{position:absolute}.mat-nav-list a{text-decoration:none;color:inherit}.mat-nav-list .mat-list-item{cursor:pointer;outline:none}mat-action-list .mat-list-item{cursor:pointer;outline:inherit}.mat-list-option:not(.mat-list-item-disabled){cursor:pointer;outline:none}.mat-list-item-disabled{pointer-events:none}.cdk-high-contrast-active .mat-list-item-disabled{opacity:.5}.cdk-high-contrast-active :host .mat-list-item-disabled{opacity:.5}.cdk-high-contrast-active .mat-list-option:hover,.cdk-high-contrast-active .mat-nav-list .mat-list-item:hover,.cdk-high-contrast-active mat-action-list .mat-list-item:hover{outline:dotted 1px;z-index:1}.cdk-high-contrast-active .mat-list-single-selected-option::after{content:"";position:absolute;top:50%;right:16px;transform:translateY(-50%);width:10px;height:0;border-bottom:solid 10px;border-radius:10px}.cdk-high-contrast-active [dir=rtl] .mat-list-single-selected-option::after{right:auto;left:16px}@media(hover: none){.mat-list-option:not(.mat-list-single-selected-option):not(.mat-list-item-disabled):hover,.mat-nav-list .mat-list-item:not(.mat-list-item-disabled):hover,.mat-action-list .mat-list-item:not(.mat-list-item-disabled):hover{background:none}}',I=[[["","mat-list-avatar",""],["","mat-list-icon",""],["","matListAvatar",""],["","matListIcon",""]],[["","mat-line",""],["","matLine",""]],"*"],Z=["text"];function Q(N,F){if(1&N&&t._UZ(0,"mat-pseudo-checkbox",5),2&N){const X=t.oxw();t.Q6J("state",X.selected?"checked":"unchecked")("disabled",X.disabled)}}const ie=["*",[["","mat-list-avatar",""],["","mat-list-icon",""],["","matListAvatar",""],["","matListIcon",""]]],_e=(0,_.Id)((0,_.Kr)(class{})),ce=(0,_.Kr)(class{}),ye=new t.OlP("MatList"),ue=new t.OlP("MatNavList");class $ extends _e{constructor(){super(...arguments),this._stateChanges=new s.x}ngOnChanges(){this._stateChanges.next()}ngOnDestroy(){this._stateChanges.complete()}}$.\u0275fac=function(){let N;return function(X){return(N||(N=t.n5z($)))(X||$)}}(),$.\u0275cmp=t.Xpm({type:$,selectors:[["mat-nav-list"]],hostAttrs:["role","navigation",1,"mat-nav-list","mat-list-base"],inputs:{disableRipple:"disableRipple",disabled:"disabled"},exportAs:["matNavList"],features:[t._Bn([{provide:ue,useExisting:$}]),t.qOj,t.TTD],ngContentSelectors:M,decls:1,vars:0,template:function(F,X){1&F&&(t.F$t(),t.Hsn(0))},styles:['.mat-subheader{display:flex;box-sizing:border-box;padding:16px;align-items:center}.mat-list-base .mat-subheader{margin:0}button.mat-list-item,button.mat-list-option{padding:0;width:100%;background:none;color:inherit;border:none;outline:inherit;-webkit-tap-highlight-color:rgba(0,0,0,0);text-align:left}[dir=rtl] button.mat-list-item,[dir=rtl] button.mat-list-option{text-align:right}button.mat-list-item::-moz-focus-inner,button.mat-list-option::-moz-focus-inner{border:0}.mat-list-base{padding-top:8px;display:block;-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-list-base .mat-subheader{height:48px;line-height:16px}.mat-list-base .mat-subheader:first-child{margin-top:-8px}.mat-list-base .mat-list-item,.mat-list-base .mat-list-option{display:block;height:48px;-webkit-tap-highlight-color:rgba(0,0,0,0);width:100%;padding:0}.mat-list-base .mat-list-item .mat-list-item-content,.mat-list-base .mat-list-option .mat-list-item-content{display:flex;flex-direction:row;align-items:center;box-sizing:border-box;padding:0 16px;position:relative;height:inherit}.mat-list-base .mat-list-item .mat-list-item-content-reverse,.mat-list-base .mat-list-option .mat-list-item-content-reverse{display:flex;align-items:center;padding:0 16px;flex-direction:row-reverse;justify-content:space-around}.mat-list-base .mat-list-item .mat-list-item-ripple,.mat-list-base .mat-list-option .mat-list-item-ripple{display:block;top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-list-base .mat-list-item.mat-list-item-with-avatar,.mat-list-base .mat-list-option.mat-list-item-with-avatar{height:56px}.mat-list-base .mat-list-item.mat-2-line,.mat-list-base .mat-list-option.mat-2-line{height:72px}.mat-list-base .mat-list-item.mat-3-line,.mat-list-base .mat-list-option.mat-3-line{height:88px}.mat-list-base .mat-list-item.mat-multi-line,.mat-list-base .mat-list-option.mat-multi-line{height:auto}.mat-list-base .mat-list-item.mat-multi-line .mat-list-item-content,.mat-list-base .mat-list-option.mat-multi-line .mat-list-item-content{padding-top:16px;padding-bottom:16px}.mat-list-base .mat-list-item .mat-list-text,.mat-list-base .mat-list-option .mat-list-text{display:flex;flex-direction:column;flex:auto;box-sizing:border-box;overflow:hidden;padding:0}.mat-list-base .mat-list-item .mat-list-text>*,.mat-list-base .mat-list-option .mat-list-text>*{margin:0;padding:0;font-weight:normal;font-size:inherit}.mat-list-base .mat-list-item .mat-list-text:empty,.mat-list-base .mat-list-option .mat-list-text:empty{display:none}.mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:0;padding-left:16px}[dir=rtl] .mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:0}.mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-left:0;padding-right:16px}[dir=rtl] .mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-right:0;padding-left:16px}.mat-list-base .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:16px}.mat-list-base .mat-list-item .mat-list-avatar,.mat-list-base .mat-list-option .mat-list-avatar{flex-shrink:0;width:40px;height:40px;border-radius:50%;object-fit:cover}.mat-list-base .mat-list-item .mat-list-avatar~.mat-divider-inset,.mat-list-base .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:72px;width:calc(100% - 72px)}[dir=rtl] .mat-list-base .mat-list-item .mat-list-avatar~.mat-divider-inset,[dir=rtl] .mat-list-base .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:auto;margin-right:72px}.mat-list-base .mat-list-item .mat-list-icon,.mat-list-base .mat-list-option .mat-list-icon{flex-shrink:0;width:24px;height:24px;font-size:24px;box-sizing:content-box;border-radius:50%;padding:4px}.mat-list-base .mat-list-item .mat-list-icon~.mat-divider-inset,.mat-list-base .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:64px;width:calc(100% - 64px)}[dir=rtl] .mat-list-base .mat-list-item .mat-list-icon~.mat-divider-inset,[dir=rtl] .mat-list-base .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:auto;margin-right:64px}.mat-list-base .mat-list-item .mat-divider,.mat-list-base .mat-list-option .mat-divider{position:absolute;bottom:0;left:0;width:100%;margin:0}[dir=rtl] .mat-list-base .mat-list-item .mat-divider,[dir=rtl] .mat-list-base .mat-list-option .mat-divider{margin-left:auto;margin-right:0}.mat-list-base .mat-list-item .mat-divider.mat-divider-inset,.mat-list-base .mat-list-option .mat-divider.mat-divider-inset{position:absolute}.mat-list-base[dense]{padding-top:4px;display:block}.mat-list-base[dense] .mat-subheader{height:40px;line-height:8px}.mat-list-base[dense] .mat-subheader:first-child{margin-top:-4px}.mat-list-base[dense] .mat-list-item,.mat-list-base[dense] .mat-list-option{display:block;height:40px;-webkit-tap-highlight-color:rgba(0,0,0,0);width:100%;padding:0}.mat-list-base[dense] .mat-list-item .mat-list-item-content,.mat-list-base[dense] .mat-list-option .mat-list-item-content{display:flex;flex-direction:row;align-items:center;box-sizing:border-box;padding:0 16px;position:relative;height:inherit}.mat-list-base[dense] .mat-list-item .mat-list-item-content-reverse,.mat-list-base[dense] .mat-list-option .mat-list-item-content-reverse{display:flex;align-items:center;padding:0 16px;flex-direction:row-reverse;justify-content:space-around}.mat-list-base[dense] .mat-list-item .mat-list-item-ripple,.mat-list-base[dense] .mat-list-option .mat-list-item-ripple{display:block;top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar{height:48px}.mat-list-base[dense] .mat-list-item.mat-2-line,.mat-list-base[dense] .mat-list-option.mat-2-line{height:60px}.mat-list-base[dense] .mat-list-item.mat-3-line,.mat-list-base[dense] .mat-list-option.mat-3-line{height:76px}.mat-list-base[dense] .mat-list-item.mat-multi-line,.mat-list-base[dense] .mat-list-option.mat-multi-line{height:auto}.mat-list-base[dense] .mat-list-item.mat-multi-line .mat-list-item-content,.mat-list-base[dense] .mat-list-option.mat-multi-line .mat-list-item-content{padding-top:16px;padding-bottom:16px}.mat-list-base[dense] .mat-list-item .mat-list-text,.mat-list-base[dense] .mat-list-option .mat-list-text{display:flex;flex-direction:column;flex:auto;box-sizing:border-box;overflow:hidden;padding:0}.mat-list-base[dense] .mat-list-item .mat-list-text>*,.mat-list-base[dense] .mat-list-option .mat-list-text>*{margin:0;padding:0;font-weight:normal;font-size:inherit}.mat-list-base[dense] .mat-list-item .mat-list-text:empty,.mat-list-base[dense] .mat-list-option .mat-list-text:empty{display:none}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:0;padding-left:16px}[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:0}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-left:0;padding-right:16px}[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-right:0;padding-left:16px}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:16px}.mat-list-base[dense] .mat-list-item .mat-list-avatar,.mat-list-base[dense] .mat-list-option .mat-list-avatar{flex-shrink:0;width:36px;height:36px;border-radius:50%;object-fit:cover}.mat-list-base[dense] .mat-list-item .mat-list-avatar~.mat-divider-inset,.mat-list-base[dense] .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:68px;width:calc(100% - 68px)}[dir=rtl] .mat-list-base[dense] .mat-list-item .mat-list-avatar~.mat-divider-inset,[dir=rtl] .mat-list-base[dense] .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:auto;margin-right:68px}.mat-list-base[dense] .mat-list-item .mat-list-icon,.mat-list-base[dense] .mat-list-option .mat-list-icon{flex-shrink:0;width:20px;height:20px;font-size:20px;box-sizing:content-box;border-radius:50%;padding:4px}.mat-list-base[dense] .mat-list-item .mat-list-icon~.mat-divider-inset,.mat-list-base[dense] .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:60px;width:calc(100% - 60px)}[dir=rtl] .mat-list-base[dense] .mat-list-item .mat-list-icon~.mat-divider-inset,[dir=rtl] .mat-list-base[dense] .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:auto;margin-right:60px}.mat-list-base[dense] .mat-list-item .mat-divider,.mat-list-base[dense] .mat-list-option .mat-divider{position:absolute;bottom:0;left:0;width:100%;margin:0}[dir=rtl] .mat-list-base[dense] .mat-list-item .mat-divider,[dir=rtl] .mat-list-base[dense] .mat-list-option .mat-divider{margin-left:auto;margin-right:0}.mat-list-base[dense] .mat-list-item .mat-divider.mat-divider-inset,.mat-list-base[dense] .mat-list-option .mat-divider.mat-divider-inset{position:absolute}.mat-nav-list a{text-decoration:none;color:inherit}.mat-nav-list .mat-list-item{cursor:pointer;outline:none}mat-action-list .mat-list-item{cursor:pointer;outline:inherit}.mat-list-option:not(.mat-list-item-disabled){cursor:pointer;outline:none}.mat-list-item-disabled{pointer-events:none}.cdk-high-contrast-active .mat-list-item-disabled{opacity:.5}.cdk-high-contrast-active :host .mat-list-item-disabled{opacity:.5}.cdk-high-contrast-active .mat-list-option:hover,.cdk-high-contrast-active .mat-nav-list .mat-list-item:hover,.cdk-high-contrast-active mat-action-list .mat-list-item:hover{outline:dotted 1px;z-index:1}.cdk-high-contrast-active .mat-list-single-selected-option::after{content:"";position:absolute;top:50%;right:16px;transform:translateY(-50%);width:10px;height:0;border-bottom:solid 10px;border-radius:10px}.cdk-high-contrast-active [dir=rtl] .mat-list-single-selected-option::after{right:auto;left:16px}@media(hover: none){.mat-list-option:not(.mat-list-single-selected-option):not(.mat-list-item-disabled):hover,.mat-nav-list .mat-list-item:not(.mat-list-item-disabled):hover,.mat-action-list .mat-list-item:not(.mat-list-item-disabled):hover{background:none}}'],encapsulation:2,changeDetection:0});class he extends _e{constructor(F){super(),this._elementRef=F,this._stateChanges=new s.x,"action-list"===this._getListType()&&(F.nativeElement.classList.add("mat-action-list"),F.nativeElement.setAttribute("role","group"))}_getListType(){const F=this._elementRef.nativeElement.nodeName.toLowerCase();return"mat-list"===F?"list":"mat-action-list"===F?"action-list":null}ngOnChanges(){this._stateChanges.next()}ngOnDestroy(){this._stateChanges.complete()}}he.\u0275fac=function(F){return new(F||he)(t.Y36(t.SBq))},he.\u0275cmp=t.Xpm({type:he,selectors:[["mat-list"],["mat-action-list"]],hostAttrs:[1,"mat-list","mat-list-base"],inputs:{disableRipple:"disableRipple",disabled:"disabled"},exportAs:["matList"],features:[t._Bn([{provide:ye,useExisting:he}]),t.qOj,t.TTD],ngContentSelectors:M,decls:1,vars:0,template:function(F,X){1&F&&(t.F$t(),t.Hsn(0))},styles:[z],encapsulation:2,changeDetection:0});class w{}w.\u0275fac=function(F){return new(F||w)},w.\u0275dir=t.lG2({type:w,selectors:[["","mat-list-avatar",""],["","matListAvatar",""]],hostAttrs:[1,"mat-list-avatar"]});class n{}n.\u0275fac=function(F){return new(F||n)},n.\u0275dir=t.lG2({type:n,selectors:[["","mat-list-icon",""],["","matListIcon",""]],hostAttrs:[1,"mat-list-icon"]});class o{}o.\u0275fac=function(F){return new(F||o)},o.\u0275dir=t.lG2({type:o,selectors:[["","mat-subheader",""],["","matSubheader",""]],hostAttrs:[1,"mat-subheader"]});class h extends ce{constructor(F,X,Fe,ke){super(),this._element=F,this._isInteractiveList=!1,this._destroyed=new s.x,this._disabled=!1,this._isInteractiveList=!!(Fe||ke&&"action-list"===ke._getListType()),this._list=Fe||ke;const Ke=this._getHostElement();"button"===Ke.nodeName.toLowerCase()&&!Ke.hasAttribute("type")&&Ke.setAttribute("type","button"),this._list&&this._list._stateChanges.pipe((0,D.R)(this._destroyed)).subscribe(()=>{X.markForCheck()})}get disabled(){return this._disabled||!(!this._list||!this._list.disabled)}set disabled(F){this._disabled=(0,E.Ig)(F)}ngAfterContentInit(){(0,_.E0)(this._lines,this._element)}ngOnDestroy(){this._destroyed.next(),this._destroyed.complete()}_isRippleDisabled(){return!this._isInteractiveList||this.disableRipple||!(!this._list||!this._list.disableRipple)}_getHostElement(){return this._element.nativeElement}}h.\u0275fac=function(F){return new(F||h)(t.Y36(t.SBq),t.Y36(t.sBO),t.Y36(ue,8),t.Y36(ye,8))},h.\u0275cmp=t.Xpm({type:h,selectors:[["mat-list-item"],["a","mat-list-item",""],["button","mat-list-item",""]],contentQueries:function(F,X,Fe){if(1&F&&(t.Suo(Fe,w,5),t.Suo(Fe,n,5),t.Suo(Fe,_.X2,5)),2&F){let ke;t.iGM(ke=t.CRH())&&(X._avatar=ke.first),t.iGM(ke=t.CRH())&&(X._icon=ke.first),t.iGM(ke=t.CRH())&&(X._lines=ke)}},hostAttrs:[1,"mat-list-item","mat-focus-indicator"],hostVars:4,hostBindings:function(F,X){2&F&&t.ekj("mat-list-item-disabled",X.disabled)("mat-list-item-with-avatar",X._avatar||X._icon)},inputs:{disableRipple:"disableRipple",disabled:"disabled"},exportAs:["matListItem"],features:[t.qOj],ngContentSelectors:["[mat-list-avatar], [mat-list-icon], [matListAvatar], [matListIcon]","[mat-line], [matLine]","*"],decls:6,vars:2,consts:[[1,"mat-list-item-content"],["mat-ripple","",1,"mat-list-item-ripple",3,"matRippleTrigger","matRippleDisabled"],[1,"mat-list-text"]],template:function(F,X){1&F&&(t.F$t(I),t.TgZ(0,"span",0),t._UZ(1,"span",1),t.Hsn(2),t.TgZ(3,"span",2),t.Hsn(4,1),t.qZA(),t.Hsn(5,2),t.qZA()),2&F&&(t.xp6(1),t.Q6J("matRippleTrigger",X._getHostElement())("matRippleDisabled",X._isRippleDisabled()))},dependencies:[_.wG],encapsulation:2,changeDetection:0});const d=(0,_.Kr)(class{}),y=(0,_.Kr)(class{}),L={provide:A.JU,useExisting:(0,t.Gpc)(()=>a),multi:!0};class B{constructor(F,X){this.source=F,this.options=X}}class v extends y{constructor(F,X,Fe){super(),this._element=F,this._changeDetector=X,this.selectionList=Fe,this._selected=!1,this._disabled=!1,this._hasFocus=!1,this.selectedChange=new t.vpe,this.checkboxPosition="after",this._inputsInitialized=!1}get color(){return this._color||this.selectionList.color}set color(F){this._color=F}get value(){return this._value}set value(F){this.selected&&!this.selectionList.compareWith(F,this.value)&&this._inputsInitialized&&(this.selected=!1),this._value=F}get disabled(){return this._disabled||this.selectionList&&this.selectionList.disabled}set disabled(F){const X=(0,E.Ig)(F);X!==this._disabled&&(this._disabled=X,this._changeDetector.markForCheck())}get selected(){return this.selectionList.selectedOptions.isSelected(this)}set selected(F){const X=(0,E.Ig)(F);X!==this._selected&&(this._setSelected(X),(X||this.selectionList.multiple)&&this.selectionList._reportValueChange())}ngOnInit(){const F=this.selectionList;F._value&&F._value.some(Fe=>F.compareWith(this._value,Fe))&&this._setSelected(!0);const X=this._selected;Promise.resolve().then(()=>{(this._selected||X)&&(this.selected=!0,this._changeDetector.markForCheck())}),this._inputsInitialized=!0}ngAfterContentInit(){(0,_.E0)(this._lines,this._element)}ngOnDestroy(){this.selected&&Promise.resolve().then(()=>{this.selected=!1});const F=this._hasFocus,X=this.selectionList._removeOptionFromList(this);F&&X&&X.focus()}toggle(){this.selected=!this.selected}focus(){this._element.nativeElement.focus()}getLabel(){return this._text&&this._text.nativeElement.textContent||""}_isRippleDisabled(){return this.disabled||this.disableRipple||this.selectionList.disableRipple}_handleClick(){!this.disabled&&(this.selectionList.multiple||!this.selected)&&(this.toggle(),this.selectionList._emitChangeEvent([this]))}_handleFocus(){this.selectionList._setFocusedOption(this),this._hasFocus=!0}_handleBlur(){this.selectionList._onTouched(),this._hasFocus=!1}_getHostElement(){return this._element.nativeElement}_setSelected(F){return F!==this._selected&&(this._selected=F,F?this.selectionList.selectedOptions.select(this):this.selectionList.selectedOptions.deselect(this),this.selectedChange.emit(F),this._changeDetector.markForCheck(),!0)}_markForCheck(){this._changeDetector.markForCheck()}}v.\u0275fac=function(F){return new(F||v)(t.Y36(t.SBq),t.Y36(t.sBO),t.Y36((0,t.Gpc)(()=>a)))},v.\u0275cmp=t.Xpm({type:v,selectors:[["mat-list-option"]],contentQueries:function(F,X,Fe){if(1&F&&(t.Suo(Fe,w,5),t.Suo(Fe,n,5),t.Suo(Fe,_.X2,5)),2&F){let ke;t.iGM(ke=t.CRH())&&(X._avatar=ke.first),t.iGM(ke=t.CRH())&&(X._icon=ke.first),t.iGM(ke=t.CRH())&&(X._lines=ke)}},viewQuery:function(F,X){if(1&F&&t.Gf(Z,5),2&F){let Fe;t.iGM(Fe=t.CRH())&&(X._text=Fe.first)}},hostAttrs:["role","option",1,"mat-list-item","mat-list-option","mat-focus-indicator"],hostVars:15,hostBindings:function(F,X){1&F&&t.NdJ("focus",function(){return X._handleFocus()})("blur",function(){return X._handleBlur()})("click",function(){return X._handleClick()}),2&F&&(t.uIk("aria-selected",X.selected)("aria-disabled",X.disabled)("tabindex",-1),t.ekj("mat-list-item-disabled",X.disabled)("mat-list-item-with-avatar",X._avatar||X._icon)("mat-primary","primary"===X.color)("mat-accent","primary"!==X.color&&"warn"!==X.color)("mat-warn","warn"===X.color)("mat-list-single-selected-option",X.selected&&!X.selectionList.multiple))},inputs:{disableRipple:"disableRipple",checkboxPosition:"checkboxPosition",color:"color",value:"value",disabled:"disabled",selected:"selected"},outputs:{selectedChange:"selectedChange"},exportAs:["matListOption"],features:[t.qOj],ngContentSelectors:["*","[mat-list-avatar], [mat-list-icon], [matListAvatar], [matListIcon]"],decls:7,vars:5,consts:[[1,"mat-list-item-content"],["mat-ripple","",1,"mat-list-item-ripple",3,"matRippleTrigger","matRippleDisabled"],[3,"state","disabled",4,"ngIf"],[1,"mat-list-text"],["text",""],[3,"state","disabled"]],template:function(F,X){1&F&&(t.F$t(ie),t.TgZ(0,"div",0),t._UZ(1,"div",1),t.YNc(2,Q,1,2,"mat-pseudo-checkbox",2),t.TgZ(3,"div",3,4),t.Hsn(5),t.qZA(),t.Hsn(6,1),t.qZA()),2&F&&(t.ekj("mat-list-item-content-reverse","after"==X.checkboxPosition),t.xp6(1),t.Q6J("matRippleTrigger",X._getHostElement())("matRippleDisabled",X._isRippleDisabled()),t.xp6(1),t.Q6J("ngIf",X.selectionList.multiple))},dependencies:[_.wG,_.nP,e.O5],encapsulation:2,changeDetection:0});class a extends d{constructor(F,X,Fe){super(),this._element=F,this._changeDetector=X,this._focusMonitor=Fe,this._multiple=!0,this._contentInitialized=!1,this.selectionChange=new t.vpe,this.color="accent",this.compareWith=(ke,Ke)=>ke===Ke,this._disabled=!1,this.selectedOptions=new p.Ov(this._multiple),this._tabIndex=-1,this._onChange=ke=>{},this._destroyed=new s.x,this._onTouched=()=>{}}get disabled(){return this._disabled}set disabled(F){this._disabled=(0,E.Ig)(F),this._markOptionsForCheck()}get multiple(){return this._multiple}set multiple(F){const X=(0,E.Ig)(F);X!==this._multiple&&(this._contentInitialized,this._multiple=X,this.selectedOptions=new p.Ov(this._multiple,this.selectedOptions.selected))}ngAfterContentInit(){this._contentInitialized=!0,this._keyManager=new k.Em(this.options).withWrap().withTypeAhead().withHomeAndEnd().skipPredicate(()=>!1).withAllowedModifierKeys(["shiftKey"]),this._value&&this._setOptionsFromValues(this._value),this._keyManager.tabOut.pipe((0,D.R)(this._destroyed)).subscribe(()=>{this._allowFocusEscape()}),this.options.changes.pipe((0,u.O)(null),(0,D.R)(this._destroyed)).subscribe(()=>{this._updateTabIndex()}),this.selectedOptions.changed.pipe((0,D.R)(this._destroyed)).subscribe(F=>{if(F.added)for(let X of F.added)X.selected=!0;if(F.removed)for(let X of F.removed)X.selected=!1}),this._focusMonitor.monitor(this._element).pipe((0,D.R)(this._destroyed)).subscribe(F=>{if("keyboard"===F||"program"===F){let X=0;for(let Fe=0;Fe<this.options.length;Fe++)if(this.options.get(Fe)?.selected){X=Fe;break}this._keyManager.setActiveItem(X)}})}ngOnChanges(F){const X=F.disableRipple,Fe=F.color;(X&&!X.firstChange||Fe&&!Fe.firstChange)&&this._markOptionsForCheck()}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._element),this._destroyed.next(),this._destroyed.complete(),this._isDestroyed=!0}focus(F){this._element.nativeElement.focus(F)}selectAll(){return this._setAllOptionsSelected(!0)}deselectAll(){return this._setAllOptionsSelected(!1)}_setFocusedOption(F){this._keyManager.updateActiveItem(F)}_removeOptionFromList(F){const X=this._getOptionIndex(F);return X>-1&&this._keyManager.activeItemIndex===X&&(X>0?this._keyManager.updateActiveItem(X-1):0===X&&this.options.length>1&&this._keyManager.updateActiveItem(Math.min(X+1,this.options.length-1))),this._keyManager.activeItem}_keydown(F){const X=F.keyCode,Fe=this._keyManager,ke=Fe.activeItemIndex,Ke=(0,S.Vb)(F);switch(X){case S.L_:case S.K5:!Ke&&!Fe.isTyping()&&(this._toggleFocusedOption(),F.preventDefault());break;default:if(X===S.A&&this.multiple&&(0,S.Vb)(F,"ctrlKey")&&!Fe.isTyping()){const je=this.options.some(Ve=>!Ve.disabled&&!Ve.selected);this._setAllOptionsSelected(je,!0,!0),F.preventDefault()}else Fe.onKeydown(F)}this.multiple&&(X===S.LH||X===S.JH)&&F.shiftKey&&Fe.activeItemIndex!==ke&&this._toggleFocusedOption()}_reportValueChange(){if(this.options&&!this._isDestroyed){const F=this._getSelectedOptionValues();this._onChange(F),this._value=F}}_emitChangeEvent(F){this.selectionChange.emit(new B(this,F))}writeValue(F){this._value=F,this.options&&this._setOptionsFromValues(F||[])}setDisabledState(F){this.disabled=F}registerOnChange(F){this._onChange=F}registerOnTouched(F){this._onTouched=F}_setOptionsFromValues(F){this.options.forEach(X=>X._setSelected(!1)),F.forEach(X=>{const Fe=this.options.find(ke=>!ke.selected&&this.compareWith(ke.value,X));Fe&&Fe._setSelected(!0)})}_getSelectedOptionValues(){return this.options.filter(F=>F.selected).map(F=>F.value)}_toggleFocusedOption(){let F=this._keyManager.activeItemIndex;if(null!=F&&this._isValidIndex(F)){let X=this.options.toArray()[F];X&&!X.disabled&&(this._multiple||!X.selected)&&(X.toggle(),this._emitChangeEvent([X]))}}_setAllOptionsSelected(F,X,Fe){const ke=[];return this.options.forEach(Ke=>{(!X||!Ke.disabled)&&Ke._setSelected(F)&&ke.push(Ke)}),ke.length&&(this._reportValueChange(),Fe&&this._emitChangeEvent(ke)),ke}_isValidIndex(F){return F>=0&&F<this.options.length}_getOptionIndex(F){return this.options.toArray().indexOf(F)}_markOptionsForCheck(){this.options&&this.options.forEach(F=>F._markForCheck())}_allowFocusEscape(){this._tabIndex=-1,setTimeout(()=>{this._tabIndex=0,this._changeDetector.markForCheck()})}_updateTabIndex(){this._tabIndex=0===this.options.length?-1:0}}a.\u0275fac=function(F){return new(F||a)(t.Y36(t.SBq),t.Y36(t.sBO),t.Y36(k.tE))},a.\u0275cmp=t.Xpm({type:a,selectors:[["mat-selection-list"]],contentQueries:function(F,X,Fe){if(1&F&&t.Suo(Fe,v,5),2&F){let ke;t.iGM(ke=t.CRH())&&(X.options=ke)}},hostAttrs:["role","listbox",1,"mat-selection-list","mat-list-base"],hostVars:3,hostBindings:function(F,X){1&F&&t.NdJ("keydown",function(ke){return X._keydown(ke)}),2&F&&t.uIk("aria-multiselectable",X.multiple)("aria-disabled",X.disabled.toString())("tabindex",X._tabIndex)},inputs:{disableRipple:"disableRipple",color:"color",compareWith:"compareWith",disabled:"disabled",multiple:"multiple"},outputs:{selectionChange:"selectionChange"},exportAs:["matSelectionList"],features:[t._Bn([L]),t.qOj,t.TTD],ngContentSelectors:M,decls:1,vars:0,template:function(F,X){1&F&&(t.F$t(),t.Hsn(0))},styles:[z],encapsulation:2,changeDetection:0});class C{}C.\u0275fac=function(F){return new(F||C)},C.\u0275mod=t.oAB({type:C}),C.\u0275inj=t.cJS({imports:[_.uc,_.si,_.BQ,_.us,e.ez,_.uc,_.BQ,_.us,P.t]})},8589:(Ue,q,m)=>{"use strict";m.d(q,{OP:()=>F,Tx:()=>Le,VK:()=>je,p6:()=>ht});var e=m(4218),t=m(8971),_=m(8456),E=m(2560),s=m(253),D=m(7714),u=m(6646),k=m(745),p=m(3888),S=m(4874),A=m(2673),P=m(9295),M=m(8951),z=m(116),I=m(6234),W=m(4851),Z=m(7520),Q=m(4666),ie=m(207),ae=m(2867),_e=m(5895),ce=m(9107),ye=m(1494);function $(Ae,te){1&Ae&&(E.O4$(),E.TgZ(0,"svg",2),E._UZ(1,"polygon",3),E.qZA())}const he=["*"];function w(Ae,te){if(1&Ae){const pe=E.EpF();E.TgZ(0,"div",0),E.NdJ("keydown",function(H){E.CHM(pe);const j=E.oxw();return E.KtG(j._handleKeydown(H))})("click",function(){E.CHM(pe);const H=E.oxw();return E.KtG(H.closed.emit("click"))})("@transformMenu.start",function(H){E.CHM(pe);const j=E.oxw();return E.KtG(j._onAnimationStart(H))})("@transformMenu.done",function(H){E.CHM(pe);const j=E.oxw();return E.KtG(j._onAnimationDone(H))}),E.TgZ(1,"div",1),E.Hsn(2),E.qZA()()}if(2&Ae){const pe=E.oxw();E.Q6J("id",pe.panelId)("ngClass",pe._classList)("@transformMenu",pe._panelAnimationState),E.uIk("aria-label",pe.ariaLabel||null)("aria-labelledby",pe.ariaLabelledby||null)("aria-describedby",pe.ariaDescribedby||null)}}const n={transformMenu:(0,W.X$)("transformMenu",[(0,W.SB)("void",(0,W.oB)({opacity:0,transform:"scale(0.8)"})),(0,W.eR)("void => enter",(0,W.jt)("120ms cubic-bezier(0, 0, 0.2, 1)",(0,W.oB)({opacity:1,transform:"scale(1)"}))),(0,W.eR)("* => void",(0,W.jt)("100ms 25ms linear",(0,W.oB)({opacity:0})))]),fadeInItems:(0,W.X$)("fadeInItems",[(0,W.SB)("showing",(0,W.oB)({opacity:1})),(0,W.eR)("void => *",[(0,W.oB)({opacity:0}),(0,W.jt)("400ms 100ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])},d=(n.fadeInItems,n.transformMenu,new E.OlP("MatMenuContent"));class y{constructor(te,pe,ee,H,j,Oe,Re){this._template=te,this._componentFactoryResolver=pe,this._appRef=ee,this._injector=H,this._viewContainerRef=j,this._document=Oe,this._changeDetectorRef=Re,this._attached=new s.x}attach(te={}){this._portal||(this._portal=new Z.UE(this._template,this._viewContainerRef)),this.detach(),this._outlet||(this._outlet=new Z.u0(this._document.createElement("div"),this._componentFactoryResolver,this._appRef,this._injector));const pe=this._template.elementRef.nativeElement;pe.parentNode.insertBefore(this._outlet.outletElement,pe),this._changeDetectorRef?.markForCheck(),this._portal.attach(this._outlet,te),this._attached.next()}detach(){this._portal.isAttached&&this._portal.detach()}ngOnDestroy(){this._outlet&&this._outlet.dispose()}}y.\u0275fac=function(te){return new(te||y)(E.Y36(E.Rgc),E.Y36(E._Vd),E.Y36(E.z2F),E.Y36(E.zs3),E.Y36(E.s_b),E.Y36(Q.K0),E.Y36(E.sBO))},y.\u0275dir=E.lG2({type:y});class L extends y{}L.\u0275fac=function(){let Ae;return function(pe){return(Ae||(Ae=E.n5z(L)))(pe||L)}}(),L.\u0275dir=E.lG2({type:L,selectors:[["ng-template","matMenuContent",""]],features:[E._Bn([{provide:d,useExisting:L}]),E.qOj]});const C=new E.OlP("MAT_MENU_PANEL"),N=(0,ie.Kr)((0,ie.Id)(class{}));class F extends N{constructor(te,pe,ee,H,j){super(),this._elementRef=te,this._document=pe,this._focusMonitor=ee,this._parentMenu=H,this._changeDetectorRef=j,this.role="menuitem",this._hovered=new s.x,this._focused=new s.x,this._highlighted=!1,this._triggersSubmenu=!1,H?.addItem?.(this)}focus(te,pe){this._focusMonitor&&te?this._focusMonitor.focusVia(this._getHostElement(),te,pe):this._getHostElement().focus(pe),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(te){this.disabled&&(te.preventDefault(),te.stopPropagation())}_handleMouseEnter(){this._hovered.next(this)}getLabel(){const te=this._elementRef.nativeElement.cloneNode(!0),pe=te.querySelectorAll("mat-icon, .material-icons");for(let ee=0;ee<pe.length;ee++)pe[ee].remove();return te.textContent?.trim()||""}_setHighlighted(te){this._highlighted=te,this._changeDetectorRef?.markForCheck()}_hasFocus(){return this._document&&this._document.activeElement===this._getHostElement()}}F.\u0275fac=function(te){return new(te||F)(E.Y36(E.SBq),E.Y36(Q.K0),E.Y36(e.tE),E.Y36(C,8),E.Y36(E.sBO))},F.\u0275cmp=E.Xpm({type:F,selectors:[["","mat-menu-item",""]],hostAttrs:[1,"mat-focus-indicator"],hostVars:10,hostBindings:function(te,pe){1&te&&E.NdJ("click",function(H){return pe._checkDisabled(H)})("mouseenter",function(){return pe._handleMouseEnter()}),2&te&&(E.uIk("role",pe.role)("tabindex",pe._getTabIndex())("aria-disabled",pe.disabled.toString())("disabled",pe.disabled||null),E.ekj("mat-menu-item",!0)("mat-menu-item-highlighted",pe._highlighted)("mat-menu-item-submenu-trigger",pe._triggersSubmenu))},inputs:{disabled:"disabled",disableRipple:"disableRipple",role:"role"},exportAs:["matMenuItem"],features:[E.qOj],attrs:["mat-menu-item",""],ngContentSelectors:he,decls:3,vars:3,consts:[["matRipple","",1,"mat-menu-ripple",3,"matRippleDisabled","matRippleTrigger"],["class","mat-menu-submenu-icon","viewBox","0 0 5 10","focusable","false",4,"ngIf"],["viewBox","0 0 5 10","focusable","false",1,"mat-menu-submenu-icon"],["points","0,0 5,5 0,10"]],template:function(te,pe){1&te&&(E.F$t(),E.Hsn(0),E._UZ(1,"div",0),E.YNc(2,$,2,0,"svg",1)),2&te&&(E.xp6(1),E.Q6J("matRippleDisabled",pe.disableRipple||pe.disabled)("matRippleTrigger",pe._getHostElement()),E.xp6(1),E.Q6J("ngIf",pe._triggersSubmenu))},dependencies:[Q.O5,ie.wG],encapsulation:2,changeDetection:0});const X=new E.OlP("mat-menu-default-options",{providedIn:"root",factory:function Fe(){return{overlapTrigger:!1,xPosition:"after",yPosition:"below",backdropClass:"cdk-overlay-transparent-backdrop"}}});let ke=0;class Ke{constructor(te,pe,ee,H){this._elementRef=te,this._ngZone=pe,this._defaultOptions=ee,this._changeDetectorRef=H,this._xPosition=this._defaultOptions.xPosition,this._yPosition=this._defaultOptions.yPosition,this._directDescendantItems=new E.n_E,this._tabSubscription=D.w0.EMPTY,this._classList={},this._panelAnimationState="void",this._animationDone=new s.x,this.overlayPanelClass=this._defaultOptions.overlayPanelClass||"",this.backdropClass=this._defaultOptions.backdropClass,this._overlapTrigger=this._defaultOptions.overlapTrigger,this._hasBackdrop=this._defaultOptions.hasBackdrop,this.closed=new E.vpe,this.close=this.closed,this.panelId="mat-menu-panel-"+ke++}get xPosition(){return this._xPosition}set xPosition(te){this._xPosition=te,this.setPositionClasses()}get yPosition(){return this._yPosition}set yPosition(te){this._yPosition=te,this.setPositionClasses()}get overlapTrigger(){return this._overlapTrigger}set overlapTrigger(te){this._overlapTrigger=(0,t.Ig)(te)}get hasBackdrop(){return this._hasBackdrop}set hasBackdrop(te){this._hasBackdrop=(0,t.Ig)(te)}set panelClass(te){const pe=this._previousPanelClass;pe&&pe.length&&pe.split(" ").forEach(ee=>{this._classList[ee]=!1}),this._previousPanelClass=te,te&&te.length&&(te.split(" ").forEach(ee=>{this._classList[ee]=!0}),this._elementRef.nativeElement.className="")}get classList(){return this.panelClass}set classList(te){this.panelClass=te}ngOnInit(){this.setPositionClasses()}ngAfterContentInit(){this._updateDirectDescendants(),this._keyManager=new e.Em(this._directDescendantItems).withWrap().withTypeAhead().withHomeAndEnd(),this._tabSubscription=this._keyManager.tabOut.subscribe(()=>this.closed.emit("tab")),this._directDescendantItems.changes.pipe((0,S.O)(this._directDescendantItems),(0,A.w)(te=>(0,u.T)(...te.map(pe=>pe._focused)))).subscribe(te=>this._keyManager.updateActiveItem(te)),this._directDescendantItems.changes.subscribe(te=>{const pe=this._keyManager;if("enter"===this._panelAnimationState&&pe.activeItem?._hasFocus()){const ee=te.toArray(),H=Math.max(0,Math.min(ee.length-1,pe.activeItemIndex||0));ee[H]&&!ee[H].disabled?pe.setActiveItem(H):pe.setNextItemActive()}})}ngOnDestroy(){this._directDescendantItems.destroy(),this._tabSubscription.unsubscribe(),this.closed.complete()}_hovered(){return this._directDescendantItems.changes.pipe((0,S.O)(this._directDescendantItems),(0,A.w)(pe=>(0,u.T)(...pe.map(ee=>ee._hovered))))}addItem(te){}removeItem(te){}_handleKeydown(te){const pe=te.keyCode,ee=this._keyManager;switch(pe){case _.hY:(0,_.Vb)(te)||(te.preventDefault(),this.closed.emit("keydown"));break;case _.oh:this.parentMenu&&"ltr"===this.direction&&this.closed.emit("keydown");break;case _.SV:this.parentMenu&&"rtl"===this.direction&&this.closed.emit("keydown");break;default:return(pe===_.LH||pe===_.JH)&&ee.setFocusOrigin("keyboard"),void ee.onKeydown(te)}te.stopPropagation()}focusFirstItem(te="program"){this._ngZone.onStable.pipe((0,P.q)(1)).subscribe(()=>{let pe=null;if(this._directDescendantItems.length&&(pe=this._directDescendantItems.first._getHostElement().closest('[role="menu"]')),!pe||!pe.contains(document.activeElement)){const ee=this._keyManager;ee.setFocusOrigin(te).setFirstItemActive(),!ee.activeItem&&pe&&pe.focus()}})}resetActiveItem(){this._keyManager.setActiveItem(-1)}setElevation(te){const pe=Math.min(this._baseElevation+te,24),ee=`${this._elevationPrefix}${pe}`,H=Object.keys(this._classList).find(j=>j.startsWith(this._elevationPrefix));(!H||H===this._previousElevation)&&(this._previousElevation&&(this._classList[this._previousElevation]=!1),this._classList[ee]=!0,this._previousElevation=ee)}setPositionClasses(te=this.xPosition,pe=this.yPosition){const ee=this._classList;ee["mat-menu-before"]="before"===te,ee["mat-menu-after"]="after"===te,ee["mat-menu-above"]="above"===pe,ee["mat-menu-below"]="below"===pe,this._changeDetectorRef?.markForCheck()}_startAnimation(){this._panelAnimationState="enter"}_resetAnimation(){this._panelAnimationState="void"}_onAnimationDone(te){this._animationDone.next(te),this._isAnimating=!1}_onAnimationStart(te){this._isAnimating=!0,"enter"===te.toState&&0===this._keyManager.activeItemIndex&&(te.element.scrollTop=0)}_updateDirectDescendants(){this._allItems.changes.pipe((0,S.O)(this._allItems)).subscribe(te=>{this._directDescendantItems.reset(te.filter(pe=>pe._parentMenu===this)),this._directDescendantItems.notifyOnChanges()})}}Ke.\u0275fac=function(te){return new(te||Ke)(E.Y36(E.SBq),E.Y36(E.R0b),E.Y36(X),E.Y36(E.sBO))},Ke.\u0275dir=E.lG2({type:Ke,contentQueries:function(te,pe,ee){if(1&te&&(E.Suo(ee,d,5),E.Suo(ee,F,5),E.Suo(ee,F,4)),2&te){let H;E.iGM(H=E.CRH())&&(pe.lazyContent=H.first),E.iGM(H=E.CRH())&&(pe._allItems=H),E.iGM(H=E.CRH())&&(pe.items=H)}},viewQuery:function(te,pe){if(1&te&&E.Gf(E.Rgc,5),2&te){let ee;E.iGM(ee=E.CRH())&&(pe.templateRef=ee.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"}});class je extends Ke{constructor(te,pe,ee,H){super(te,pe,ee,H),this._elevationPrefix="mat-elevation-z",this._baseElevation=4}}je.\u0275fac=function(te){return new(te||je)(E.Y36(E.SBq),E.Y36(E.R0b),E.Y36(X),E.Y36(E.sBO))},je.\u0275cmp=E.Xpm({type:je,selectors:[["mat-menu"]],hostVars:3,hostBindings:function(te,pe){2&te&&E.uIk("aria-label",null)("aria-labelledby",null)("aria-describedby",null)},exportAs:["matMenu"],features:[E._Bn([{provide:C,useExisting:je}]),E.qOj],ngContentSelectors:he,decls:1,vars:0,consts:[["tabindex","-1","role","menu",1,"mat-menu-panel",3,"id","ngClass","keydown","click"],[1,"mat-menu-content"]],template:function(te,pe){1&te&&(E.F$t(),E.YNc(0,w,3,6,"ng-template"))},dependencies:[Q.mk],styles:['mat-menu{display:none}.mat-menu-panel{min-width:112px;max-width:280px;overflow:auto;-webkit-overflow-scrolling:touch;max-height:calc(100vh - 48px);border-radius:4px;outline:0;min-height:64px;position:relative}.mat-menu-panel.ng-animating{pointer-events:none}.cdk-high-contrast-active .mat-menu-panel{outline:solid 1px}.mat-menu-content:not(:empty){padding-top:8px;padding-bottom:8px}.mat-menu-item{-webkit-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:rgba(0,0,0,0);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block;line-height:48px;height:48px;padding:0 16px;text-align:left;text-decoration:none;max-width:100%;position:relative}.mat-menu-item::-moz-focus-inner{border:0}.mat-menu-item[disabled]{cursor:default}[dir=rtl] .mat-menu-item{text-align:right}.mat-menu-item .mat-icon{margin-right:16px;vertical-align:middle}.mat-menu-item .mat-icon svg{vertical-align:top}[dir=rtl] .mat-menu-item .mat-icon{margin-left:16px;margin-right:0}.mat-menu-item[disabled]::after{display:block;position:absolute;content:"";top:0;left:0;bottom:0;right:0}.cdk-high-contrast-active .mat-menu-item{margin-top:1px}.mat-menu-item-submenu-trigger{padding-right:32px}[dir=rtl] .mat-menu-item-submenu-trigger{padding-right:16px;padding-left:32px}.mat-menu-submenu-icon{position:absolute;top:50%;right:16px;transform:translateY(-50%);width:5px;height:10px;fill:currentColor}[dir=rtl] .mat-menu-submenu-icon{right:auto;left:16px;transform:translateY(-50%) scaleX(-1)}.cdk-high-contrast-active .mat-menu-submenu-icon{fill:CanvasText}button.mat-menu-item{width:100%}.mat-menu-item .mat-menu-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}'],encapsulation:2,data:{animation:[n.transformMenu,n.fadeInItems]},changeDetection:0});const Ve=new E.OlP("mat-menu-scroll-strategy");const Ze={provide:Ve,deps:[_e.aV],useFactory:function xe(Ae){return()=>Ae.scrollStrategies.reposition()}},ve=(0,ce.i$)({passive:!0});class et{constructor(te,pe,ee,H,j,Oe,Re,le,_t){this._overlay=te,this._element=pe,this._viewContainerRef=ee,this._menuItemInstance=Oe,this._dir=Re,this._focusMonitor=le,this._ngZone=_t,this._overlayRef=null,this._menuOpen=!1,this._closingActionsSubscription=D.w0.EMPTY,this._hoverSubscription=D.w0.EMPTY,this._menuCloseSubscription=D.w0.EMPTY,this._handleTouchStart=it=>{(0,e.yG)(it)||(this._openedBy="touch")},this._openedBy=void 0,this.restoreFocus=!0,this.menuOpened=new E.vpe,this.onMenuOpen=this.menuOpened,this.menuClosed=new E.vpe,this.onMenuClose=this.menuClosed,this._scrollStrategy=H,this._parentMaterialMenu=j instanceof Ke?j:void 0,pe.nativeElement.addEventListener("touchstart",this._handleTouchStart,ve),Oe&&(Oe._triggersSubmenu=this.triggersSubmenu())}get _deprecatedMatMenuTriggerFor(){return this.menu}set _deprecatedMatMenuTriggerFor(te){this.menu=te}get menu(){return this._menu}set menu(te){te!==this._menu&&(this._menu=te,this._menuCloseSubscription.unsubscribe(),te&&(this._parentMaterialMenu,this._menuCloseSubscription=te.close.subscribe(pe=>{this._destroyMenu(pe),("click"===pe||"tab"===pe)&&this._parentMaterialMenu&&this._parentMaterialMenu.closed.emit(pe)})))}ngAfterContentInit(){this._handleHover()}ngOnDestroy(){this._overlayRef&&(this._overlayRef.dispose(),this._overlayRef=null),this._element.nativeElement.removeEventListener("touchstart",this._handleTouchStart,ve),this._menuCloseSubscription.unsubscribe(),this._closingActionsSubscription.unsubscribe(),this._hoverSubscription.unsubscribe()}get menuOpen(){return this._menuOpen}get dir(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"}triggersSubmenu(){return!(!this._menuItemInstance||!this._parentMaterialMenu)}toggleMenu(){return this._menuOpen?this.closeMenu():this.openMenu()}openMenu(){const te=this.menu;if(this._menuOpen||!te)return;const pe=this._createOverlay(te),ee=pe.getConfig(),H=ee.positionStrategy;this._setPosition(te,H),ee.hasBackdrop=null==te.hasBackdrop?!this.triggersSubmenu():te.hasBackdrop,pe.attach(this._getPortal(te)),te.lazyContent&&te.lazyContent.attach(this.menuData),this._closingActionsSubscription=this._menuClosingActions().subscribe(()=>this.closeMenu()),this._initMenu(te),te instanceof Ke&&(te._startAnimation(),te._directDescendantItems.changes.pipe((0,M.R)(te.close)).subscribe(()=>{H.withLockedPosition(!1).reapplyLastPosition(),H.withLockedPosition(!0)}))}closeMenu(){this.menu?.close.emit()}focus(te,pe){this._focusMonitor&&te?this._focusMonitor.focusVia(this._element,te,pe):this._element.nativeElement.focus(pe)}updatePosition(){this._overlayRef?.updatePosition()}_destroyMenu(te){if(!this._overlayRef||!this.menuOpen)return;const pe=this.menu;this._closingActionsSubscription.unsubscribe(),this._overlayRef.detach(),this.restoreFocus&&("keydown"===te||!this._openedBy||!this.triggersSubmenu())&&this.focus(this._openedBy),this._openedBy=void 0,pe instanceof Ke?(pe._resetAnimation(),pe.lazyContent?pe._animationDone.pipe((0,z.h)(ee=>"void"===ee.toState),(0,P.q)(1),(0,M.R)(pe.lazyContent._attached)).subscribe({next:()=>pe.lazyContent.detach(),complete:()=>this._setIsMenuOpen(!1)}):this._setIsMenuOpen(!1)):(this._setIsMenuOpen(!1),pe?.lazyContent?.detach())}_initMenu(te){te.parentMenu=this.triggersSubmenu()?this._parentMaterialMenu:void 0,te.direction=this.dir,this._setMenuElevation(te),te.focusFirstItem(this._openedBy||"program"),this._setIsMenuOpen(!0)}_setMenuElevation(te){if(te.setElevation){let pe=0,ee=te.parentMenu;for(;ee;)pe++,ee=ee.parentMenu;te.setElevation(pe)}}_setIsMenuOpen(te){this._menuOpen=te,this._menuOpen?this.menuOpened.emit():this.menuClosed.emit(),this.triggersSubmenu()&&this._menuItemInstance._setHighlighted(te)}_createOverlay(te){if(!this._overlayRef){const pe=this._getOverlayConfig(te);this._subscribeToPositions(te,pe.positionStrategy),this._overlayRef=this._overlay.create(pe),this._overlayRef.keydownEvents().subscribe()}return this._overlayRef}_getOverlayConfig(te){return new _e.X_({positionStrategy:this._overlay.position().flexibleConnectedTo(this._element).withLockedPosition().withGrowAfterOpen().withTransformOriginOn(".mat-menu-panel, .mat-mdc-menu-panel"),backdropClass:te.backdropClass||"cdk-overlay-transparent-backdrop",panelClass:te.overlayPanelClass,scrollStrategy:this._scrollStrategy(),direction:this._dir})}_subscribeToPositions(te,pe){te.setPositionClasses&&pe.positionChanges.subscribe(ee=>{const H="start"===ee.connectionPair.overlayX?"after":"before",j="top"===ee.connectionPair.overlayY?"below":"above";this._ngZone?this._ngZone.run(()=>te.setPositionClasses(H,j)):te.setPositionClasses(H,j)})}_setPosition(te,pe){let[ee,H]="before"===te.xPosition?["end","start"]:["start","end"],[j,Oe]="above"===te.yPosition?["bottom","top"]:["top","bottom"],[Re,le]=[j,Oe],[_t,it]=[ee,H],Ct=0;if(this.triggersSubmenu()){if(it=ee="before"===te.xPosition?"start":"end",H=_t="end"===ee?"start":"end",this._parentMaterialMenu){if(null==this._parentInnerPadding){const un=this._parentMaterialMenu.items.first;this._parentInnerPadding=un?un._getHostElement().offsetTop:0}Ct="bottom"===j?this._parentInnerPadding:-this._parentInnerPadding}}else te.overlapTrigger||(Re="top"===j?"bottom":"top",le="top"===Oe?"bottom":"top");pe.withPositions([{originX:ee,originY:Re,overlayX:_t,overlayY:j,offsetY:Ct},{originX:H,originY:Re,overlayX:it,overlayY:j,offsetY:Ct},{originX:ee,originY:le,overlayX:_t,overlayY:Oe,offsetY:-Ct},{originX:H,originY:le,overlayX:it,overlayY:Oe,offsetY:-Ct}])}_menuClosingActions(){const te=this._overlayRef.backdropClick(),pe=this._overlayRef.detachments(),ee=this._parentMaterialMenu?this._parentMaterialMenu.closed:(0,k.of)(),H=this._parentMaterialMenu?this._parentMaterialMenu._hovered().pipe((0,z.h)(j=>j!==this._menuItemInstance),(0,z.h)(()=>this._menuOpen)):(0,k.of)();return(0,u.T)(te,ee,H,pe)}_handleMousedown(te){(0,e.X6)(te)||(this._openedBy=0===te.button?"mouse":void 0,this.triggersSubmenu()&&te.preventDefault())}_handleKeydown(te){const pe=te.keyCode;(pe===_.K5||pe===_.L_)&&(this._openedBy="keyboard"),this.triggersSubmenu()&&(pe===_.SV&&"ltr"===this.dir||pe===_.oh&&"rtl"===this.dir)&&(this._openedBy="keyboard",this.openMenu())}_handleClick(te){this.triggersSubmenu()?(te.stopPropagation(),this.openMenu()):this.toggleMenu()}_handleHover(){!this.triggersSubmenu()||!this._parentMaterialMenu||(this._hoverSubscription=this._parentMaterialMenu._hovered().pipe((0,z.h)(te=>te===this._menuItemInstance&&!te.disabled),(0,I.g)(0,p.E)).subscribe(()=>{this._openedBy="mouse",this.menu instanceof Ke&&this.menu._isAnimating?this.menu._animationDone.pipe((0,P.q)(1),(0,I.g)(0,p.E),(0,M.R)(this._parentMaterialMenu._hovered())).subscribe(()=>this.openMenu()):this.openMenu()}))}_getPortal(te){return(!this._portal||this._portal.templateRef!==te.templateRef)&&(this._portal=new Z.UE(te.templateRef,this._viewContainerRef)),this._portal}}et.\u0275fac=function(te){return new(te||et)(E.Y36(_e.aV),E.Y36(E.SBq),E.Y36(E.s_b),E.Y36(Ve),E.Y36(C,8),E.Y36(F,10),E.Y36(ae.Is,8),E.Y36(e.tE),E.Y36(E.R0b))},et.\u0275dir=E.lG2({type:et,hostVars:3,hostBindings:function(te,pe){1&te&&E.NdJ("click",function(H){return pe._handleClick(H)})("mousedown",function(H){return pe._handleMousedown(H)})("keydown",function(H){return pe._handleKeydown(H)}),2&te&&E.uIk("aria-haspopup",pe.menu?"menu":null)("aria-expanded",pe.menuOpen||null)("aria-controls",pe.menuOpen?pe.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"}});class ht extends et{}ht.\u0275fac=function(){let Ae;return function(pe){return(Ae||(Ae=E.n5z(ht)))(pe||ht)}}(),ht.\u0275dir=E.lG2({type:ht,selectors:[["","mat-menu-trigger-for",""],["","matMenuTriggerFor",""]],hostAttrs:[1,"mat-menu-trigger"],exportAs:["matMenuTrigger"],features:[E.qOj]});class Le{}Le.\u0275fac=function(te){return new(te||Le)},Le.\u0275mod=E.oAB({type:Le}),Le.\u0275inj=E.cJS({providers:[Ze],imports:[Q.ez,ie.BQ,ie.si,_e.U8,ye.ZD,ie.BQ]})},6060:(Ue,q,m)=>{"use strict";m.d(q,{NW:()=>ue,TU:()=>$,ye:()=>W});var e=m(4666),t=m(2560),_=m(207),E=m(4522),s=m(7371),D=m(6896),u=m(8971),k=m(253),p=m(5074);function S(he,w){if(1&he&&(t.TgZ(0,"mat-option",19),t._uU(1),t.qZA()),2&he){const n=w.$implicit;t.Q6J("value",n),t.xp6(1),t.hij(" ",n," ")}}function A(he,w){if(1&he){const n=t.EpF();t.TgZ(0,"mat-form-field",16)(1,"mat-select",17),t.NdJ("selectionChange",function(h){t.CHM(n);const d=t.oxw(2);return t.KtG(d._changePageSize(h.value))}),t.YNc(2,S,2,2,"mat-option",18),t.qZA()()}if(2&he){const n=t.oxw(2);t.Q6J("appearance",n._formFieldAppearance)("color",n.color),t.xp6(1),t.Q6J("value",n.pageSize)("disabled",n.disabled)("panelClass",n.selectConfig.panelClass||"")("disableOptionCentering",n.selectConfig.disableOptionCentering)("aria-label",n._intl.itemsPerPageLabel),t.xp6(1),t.Q6J("ngForOf",n._displayedPageSizeOptions)}}function P(he,w){if(1&he&&(t.TgZ(0,"div",20),t._uU(1),t.qZA()),2&he){const n=t.oxw(2);t.xp6(1),t.Oqu(n.pageSize)}}function M(he,w){if(1&he&&(t.TgZ(0,"div",12)(1,"div",13),t._uU(2),t.qZA(),t.YNc(3,A,3,8,"mat-form-field",14),t.YNc(4,P,2,1,"div",15),t.qZA()),2&he){const n=t.oxw();t.xp6(2),t.hij(" ",n._intl.itemsPerPageLabel," "),t.xp6(1),t.Q6J("ngIf",n._displayedPageSizeOptions.length>1),t.xp6(1),t.Q6J("ngIf",n._displayedPageSizeOptions.length<=1)}}function z(he,w){if(1&he){const n=t.EpF();t.TgZ(0,"button",21),t.NdJ("click",function(){t.CHM(n);const h=t.oxw();return t.KtG(h.firstPage())}),t.O4$(),t.TgZ(1,"svg",7),t._UZ(2,"path",22),t.qZA()()}if(2&he){const n=t.oxw();t.Q6J("matTooltip",n._intl.firstPageLabel)("matTooltipDisabled",n._previousButtonsDisabled())("matTooltipPosition","above")("disabled",n._previousButtonsDisabled()),t.uIk("aria-label",n._intl.firstPageLabel)}}function I(he,w){if(1&he){const n=t.EpF();t.O4$(),t.kcU(),t.TgZ(0,"button",23),t.NdJ("click",function(){t.CHM(n);const h=t.oxw();return t.KtG(h.lastPage())}),t.O4$(),t.TgZ(1,"svg",7),t._UZ(2,"path",24),t.qZA()()}if(2&he){const n=t.oxw();t.Q6J("matTooltip",n._intl.lastPageLabel)("matTooltipDisabled",n._nextButtonsDisabled())("matTooltipPosition","above")("disabled",n._nextButtonsDisabled()),t.uIk("aria-label",n._intl.lastPageLabel)}}class W{constructor(){this.changes=new k.x,this.itemsPerPageLabel="Items per page:",this.nextPageLabel="Next page",this.previousPageLabel="Previous page",this.firstPageLabel="First page",this.lastPageLabel="Last page",this.getRangeLabel=(w,n,o)=>{if(0==o||0==n)return`0 of ${o}`;const h=w*n;return`${h+1} \u2013 ${h<(o=Math.max(o,0))?Math.min(h+n,o):h+n} of ${o}`}}}W.\u0275fac=function(w){return new(w||W)},W.\u0275prov=t.Yz7({token:W,factory:W.\u0275fac,providedIn:"root"});const Q={provide:W,deps:[[new t.FiY,new t.tp0,W]],useFactory:function Z(he){return he||new W}};const _e=new t.OlP("MAT_PAGINATOR_DEFAULT_OPTIONS"),ce=(0,_.Id)((0,_.dB)(class{}));class ye extends ce{constructor(w,n,o){if(super(),this._intl=w,this._changeDetectorRef=n,this._pageIndex=0,this._length=0,this._pageSizeOptions=[],this._hidePageSize=!1,this._showFirstLastButtons=!1,this.selectConfig={},this.page=new t.vpe,this._intlChanges=w.changes.subscribe(()=>this._changeDetectorRef.markForCheck()),o){const{pageSize:h,pageSizeOptions:d,hidePageSize:y,showFirstLastButtons:L}=o;null!=h&&(this._pageSize=h),null!=d&&(this._pageSizeOptions=d),null!=y&&(this._hidePageSize=y),null!=L&&(this._showFirstLastButtons=L)}}get pageIndex(){return this._pageIndex}set pageIndex(w){this._pageIndex=Math.max((0,u.su)(w),0),this._changeDetectorRef.markForCheck()}get length(){return this._length}set length(w){this._length=(0,u.su)(w),this._changeDetectorRef.markForCheck()}get pageSize(){return this._pageSize}set pageSize(w){this._pageSize=Math.max((0,u.su)(w),0),this._updateDisplayedPageSizeOptions()}get pageSizeOptions(){return this._pageSizeOptions}set pageSizeOptions(w){this._pageSizeOptions=(w||[]).map(n=>(0,u.su)(n)),this._updateDisplayedPageSizeOptions()}get hidePageSize(){return this._hidePageSize}set hidePageSize(w){this._hidePageSize=(0,u.Ig)(w)}get showFirstLastButtons(){return this._showFirstLastButtons}set showFirstLastButtons(w){this._showFirstLastButtons=(0,u.Ig)(w)}ngOnInit(){this._initialized=!0,this._updateDisplayedPageSizeOptions(),this._markInitialized()}ngOnDestroy(){this._intlChanges.unsubscribe()}nextPage(){if(!this.hasNextPage())return;const w=this.pageIndex;this.pageIndex=this.pageIndex+1,this._emitPageEvent(w)}previousPage(){if(!this.hasPreviousPage())return;const w=this.pageIndex;this.pageIndex=this.pageIndex-1,this._emitPageEvent(w)}firstPage(){if(!this.hasPreviousPage())return;const w=this.pageIndex;this.pageIndex=0,this._emitPageEvent(w)}lastPage(){if(!this.hasNextPage())return;const w=this.pageIndex;this.pageIndex=this.getNumberOfPages()-1,this._emitPageEvent(w)}hasPreviousPage(){return this.pageIndex>=1&&0!=this.pageSize}hasNextPage(){const w=this.getNumberOfPages()-1;return this.pageIndex<w&&0!=this.pageSize}getNumberOfPages(){return this.pageSize?Math.ceil(this.length/this.pageSize):0}_changePageSize(w){const n=this.pageIndex*this.pageSize,o=this.pageIndex;this.pageIndex=Math.floor(n/w)||0,this.pageSize=w,this._emitPageEvent(o)}_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((w,n)=>w-n),this._changeDetectorRef.markForCheck())}_emitPageEvent(w){this.page.emit({previousPageIndex:w,pageIndex:this.pageIndex,pageSize:this.pageSize,length:this.length})}}ye.\u0275fac=function(w){t.$Z()},ye.\u0275dir=t.lG2({type:ye,inputs:{color:"color",pageIndex:"pageIndex",length:"length",pageSize:"pageSize",pageSizeOptions:"pageSizeOptions",hidePageSize:"hidePageSize",showFirstLastButtons:"showFirstLastButtons",selectConfig:"selectConfig"},outputs:{page:"page"},features:[t.qOj]});class ue extends ye{constructor(w,n,o){super(w,n,o),o&&null!=o.formFieldAppearance&&(this._formFieldAppearance=o.formFieldAppearance)}}ue.\u0275fac=function(w){return new(w||ue)(t.Y36(W),t.Y36(t.sBO),t.Y36(_e,8))},ue.\u0275cmp=t.Xpm({type:ue,selectors:[["mat-paginator"]],hostAttrs:["role","group",1,"mat-paginator"],inputs:{disabled:"disabled"},exportAs:["matPaginator"],features:[t.qOj],decls:14,vars:14,consts:[[1,"mat-paginator-outer-container"],[1,"mat-paginator-container"],["class","mat-paginator-page-size",4,"ngIf"],[1,"mat-paginator-range-actions"],[1,"mat-paginator-range-label"],["mat-icon-button","","type","button","class","mat-paginator-navigation-first",3,"matTooltip","matTooltipDisabled","matTooltipPosition","disabled","click",4,"ngIf"],["mat-icon-button","","type","button",1,"mat-paginator-navigation-previous",3,"matTooltip","matTooltipDisabled","matTooltipPosition","disabled","click"],["viewBox","0 0 24 24","focusable","false",1,"mat-paginator-icon"],["d","M15.41 7.41L14 6l-6 6 6 6 1.41-1.41L10.83 12z"],["mat-icon-button","","type","button",1,"mat-paginator-navigation-next",3,"matTooltip","matTooltipDisabled","matTooltipPosition","disabled","click"],["d","M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"],["mat-icon-button","","type","button","class","mat-paginator-navigation-last",3,"matTooltip","matTooltipDisabled","matTooltipPosition","disabled","click",4,"ngIf"],[1,"mat-paginator-page-size"],[1,"mat-paginator-page-size-label"],["class","mat-paginator-page-size-select",3,"appearance","color",4,"ngIf"],["class","mat-paginator-page-size-value",4,"ngIf"],[1,"mat-paginator-page-size-select",3,"appearance","color"],[3,"value","disabled","panelClass","disableOptionCentering","aria-label","selectionChange"],[3,"value",4,"ngFor","ngForOf"],[3,"value"],[1,"mat-paginator-page-size-value"],["mat-icon-button","","type","button",1,"mat-paginator-navigation-first",3,"matTooltip","matTooltipDisabled","matTooltipPosition","disabled","click"],["d","M18.41 16.59L13.82 12l4.59-4.59L17 6l-6 6 6 6zM6 6h2v12H6z"],["mat-icon-button","","type","button",1,"mat-paginator-navigation-last",3,"matTooltip","matTooltipDisabled","matTooltipPosition","disabled","click"],["d","M5.59 7.41L10.18 12l-4.59 4.59L7 18l6-6-6-6zM16 6h2v12h-2z"]],template:function(w,n){1&w&&(t.TgZ(0,"div",0)(1,"div",1),t.YNc(2,M,5,3,"div",2),t.TgZ(3,"div",3)(4,"div",4),t._uU(5),t.qZA(),t.YNc(6,z,3,5,"button",5),t.TgZ(7,"button",6),t.NdJ("click",function(){return n.previousPage()}),t.O4$(),t.TgZ(8,"svg",7),t._UZ(9,"path",8),t.qZA()(),t.kcU(),t.TgZ(10,"button",9),t.NdJ("click",function(){return n.nextPage()}),t.O4$(),t.TgZ(11,"svg",7),t._UZ(12,"path",10),t.qZA()(),t.YNc(13,I,3,5,"button",11),t.qZA()()()),2&w&&(t.xp6(2),t.Q6J("ngIf",!n.hidePageSize),t.xp6(3),t.hij(" ",n._intl.getRangeLabel(n.pageIndex,n.pageSize,n.length)," "),t.xp6(1),t.Q6J("ngIf",n.showFirstLastButtons),t.xp6(1),t.Q6J("matTooltip",n._intl.previousPageLabel)("matTooltipDisabled",n._previousButtonsDisabled())("matTooltipPosition","above")("disabled",n._previousButtonsDisabled()),t.uIk("aria-label",n._intl.previousPageLabel),t.xp6(3),t.Q6J("matTooltip",n._intl.nextPageLabel)("matTooltipDisabled",n._nextButtonsDisabled())("matTooltipPosition","above")("disabled",n._nextButtonsDisabled()),t.uIk("aria-label",n._intl.nextPageLabel),t.xp6(3),t.Q6J("ngIf",n.showFirstLastButtons))},dependencies:[e.sg,e.O5,E.lW,p.KE,s.gD,_.ey,D.gM],styles:[".mat-paginator{display:block}.mat-paginator-outer-container{display:flex}.mat-paginator-container{display:flex;align-items:center;justify-content:flex-end;padding:0 8px;flex-wrap:wrap-reverse;width:100%}.mat-paginator-page-size{display:flex;align-items:baseline;margin-right:8px}[dir=rtl] .mat-paginator-page-size{margin-right:0;margin-left:8px}.mat-paginator-page-size-label{margin:0 4px}.mat-paginator-page-size-select{margin:6px 4px 0 4px;width:56px}.mat-paginator-page-size-select.mat-form-field-appearance-outline{width:64px}.mat-paginator-page-size-select.mat-form-field-appearance-fill{width:64px}.mat-paginator-range-label{margin:0 32px 0 24px}.mat-paginator-range-actions{display:flex;align-items:center}.mat-paginator-icon{display:inline-block;width:28px;fill:currentColor}[dir=rtl] .mat-paginator-icon{transform:rotate(180deg)}.cdk-high-contrast-active .mat-paginator-icon{fill:CanvasText}"],encapsulation:2,changeDetection:0});class ${}$.\u0275fac=function(w){return new(w||$)},$.\u0275mod=t.oAB({type:$}),$.\u0275inj=t.cJS({providers:[Q],imports:[e.ez,E.ot,s.LD,D.AV,_.BQ]})},1294:(Ue,q,m)=>{"use strict";m.d(q,{Cv:()=>W,pW:()=>z});var e=m(2560),t=m(4666),_=m(207),E=m(8971),s=m(7714),D=m(3280),u=m(116);const k=["primaryValueBar"],p=(0,_.pj)(class{constructor(Z){this._elementRef=Z}},"primary"),S=new e.OlP("mat-progress-bar-location",{providedIn:"root",factory:function A(){const Z=(0,e.f3M)(t.K0),Q=Z?Z.location:null;return{getPathname:()=>Q?Q.pathname+Q.search:""}}});const P=new e.OlP("MAT_PROGRESS_BAR_DEFAULT_OPTIONS");let M=0;class z extends p{constructor(Q,ie,ae,_e,ce,ye){super(Q),this._ngZone=ie,this._animationMode=ae,this._changeDetectorRef=ye,this._isNoopAnimation=!1,this._value=0,this._bufferValue=0,this.animationEnd=new e.vpe,this._animationEndSubscription=s.w0.EMPTY,this.mode="determinate",this.progressbarId="mat-progress-bar-"+M++;const ue=_e?_e.getPathname().split("#")[0]:"";this._rectangleFillValue=`url('${ue}#${this.progressbarId}')`,this._isNoopAnimation="NoopAnimations"===ae,ce&&(ce.color&&(this.color=this.defaultColor=ce.color),this.mode=ce.mode||this.mode)}get value(){return this._value}set value(Q){this._value=I((0,E.su)(Q)||0),this._changeDetectorRef?.markForCheck()}get bufferValue(){return this._bufferValue}set bufferValue(Q){this._bufferValue=I(Q||0),this._changeDetectorRef?.markForCheck()}_primaryTransform(){return{transform:`scale3d(${this.value/100}, 1, 1)`}}_bufferTransform(){return"buffer"===this.mode?{transform:`scale3d(${this.bufferValue/100}, 1, 1)`}:null}ngAfterViewInit(){this._ngZone.runOutsideAngular(()=>{const Q=this._primaryValueBar.nativeElement;this._animationEndSubscription=(0,D.R)(Q,"transitionend").pipe((0,u.h)(ie=>ie.target===Q)).subscribe(()=>{0!==this.animationEnd.observers.length&&("determinate"===this.mode||"buffer"===this.mode)&&this._ngZone.run(()=>this.animationEnd.next({value:this.value}))})})}ngOnDestroy(){this._animationEndSubscription.unsubscribe()}}function I(Z,Q=0,ie=100){return Math.max(Q,Math.min(ie,Z))}z.\u0275fac=function(Q){return new(Q||z)(e.Y36(e.SBq),e.Y36(e.R0b),e.Y36(e.QbO,8),e.Y36(S,8),e.Y36(P,8),e.Y36(e.sBO))},z.\u0275cmp=e.Xpm({type:z,selectors:[["mat-progress-bar"]],viewQuery:function(Q,ie){if(1&Q&&e.Gf(k,5),2&Q){let ae;e.iGM(ae=e.CRH())&&(ie._primaryValueBar=ae.first)}},hostAttrs:["role","progressbar","aria-valuemin","0","aria-valuemax","100","tabindex","-1",1,"mat-progress-bar"],hostVars:4,hostBindings:function(Q,ie){2&Q&&(e.uIk("aria-valuenow","indeterminate"===ie.mode||"query"===ie.mode?null:ie.value)("mode",ie.mode),e.ekj("_mat-animation-noopable",ie._isNoopAnimation))},inputs:{color:"color",value:"value",bufferValue:"bufferValue",mode:"mode"},outputs:{animationEnd:"animationEnd"},exportAs:["matProgressBar"],features:[e.qOj],decls:10,vars:4,consts:[["aria-hidden","true"],["width","100%","height","4","focusable","false",1,"mat-progress-bar-background","mat-progress-bar-element"],["x","4","y","0","width","8","height","4","patternUnits","userSpaceOnUse",3,"id"],["cx","2","cy","2","r","2"],["width","100%","height","100%"],[1,"mat-progress-bar-buffer","mat-progress-bar-element",3,"ngStyle"],[1,"mat-progress-bar-primary","mat-progress-bar-fill","mat-progress-bar-element",3,"ngStyle"],["primaryValueBar",""],[1,"mat-progress-bar-secondary","mat-progress-bar-fill","mat-progress-bar-element"]],template:function(Q,ie){1&Q&&(e.TgZ(0,"div",0),e.O4$(),e.TgZ(1,"svg",1)(2,"defs")(3,"pattern",2),e._UZ(4,"circle",3),e.qZA()(),e._UZ(5,"rect",4),e.qZA(),e.kcU(),e._UZ(6,"div",5)(7,"div",6,7)(9,"div",8),e.qZA()),2&Q&&(e.xp6(3),e.Q6J("id",ie.progressbarId),e.xp6(2),e.uIk("fill",ie._rectangleFillValue),e.xp6(1),e.Q6J("ngStyle",ie._bufferTransform()),e.xp6(1),e.Q6J("ngStyle",ie._primaryTransform()))},dependencies:[t.PC],styles:['.mat-progress-bar{display:block;height:4px;overflow:hidden;position:relative;transition:opacity 250ms linear;width:100%}.mat-progress-bar._mat-animation-noopable{transition:none !important;animation:none !important}.mat-progress-bar .mat-progress-bar-element,.mat-progress-bar .mat-progress-bar-fill::after{height:100%;position:absolute;width:100%}.mat-progress-bar .mat-progress-bar-background{width:calc(100% + 10px)}.cdk-high-contrast-active .mat-progress-bar .mat-progress-bar-background{display:none}.mat-progress-bar .mat-progress-bar-buffer{transform-origin:top left;transition:transform 250ms ease}.cdk-high-contrast-active .mat-progress-bar .mat-progress-bar-buffer{border-top:solid 5px;opacity:.5}.mat-progress-bar .mat-progress-bar-secondary{display:none}.mat-progress-bar .mat-progress-bar-fill{animation:none;transform-origin:top left;transition:transform 250ms ease}.cdk-high-contrast-active .mat-progress-bar .mat-progress-bar-fill{border-top:solid 4px}.mat-progress-bar .mat-progress-bar-fill::after{animation:none;content:"";display:inline-block;left:0}.mat-progress-bar[dir=rtl],[dir=rtl] .mat-progress-bar{transform:rotateY(180deg)}.mat-progress-bar[mode=query]{transform:rotateZ(180deg)}.mat-progress-bar[mode=query][dir=rtl],[dir=rtl] .mat-progress-bar[mode=query]{transform:rotateZ(180deg) rotateY(180deg)}.mat-progress-bar[mode=indeterminate] .mat-progress-bar-fill,.mat-progress-bar[mode=query] .mat-progress-bar-fill{transition:none}.mat-progress-bar[mode=indeterminate] .mat-progress-bar-primary,.mat-progress-bar[mode=query] .mat-progress-bar-primary{-webkit-backface-visibility:hidden;backface-visibility:hidden;animation:mat-progress-bar-primary-indeterminate-translate 2000ms infinite linear;left:-145.166611%}.mat-progress-bar[mode=indeterminate] .mat-progress-bar-primary.mat-progress-bar-fill::after,.mat-progress-bar[mode=query] .mat-progress-bar-primary.mat-progress-bar-fill::after{-webkit-backface-visibility:hidden;backface-visibility:hidden;animation:mat-progress-bar-primary-indeterminate-scale 2000ms infinite linear}.mat-progress-bar[mode=indeterminate] .mat-progress-bar-secondary,.mat-progress-bar[mode=query] .mat-progress-bar-secondary{-webkit-backface-visibility:hidden;backface-visibility:hidden;animation:mat-progress-bar-secondary-indeterminate-translate 2000ms infinite linear;left:-54.888891%;display:block}.mat-progress-bar[mode=indeterminate] .mat-progress-bar-secondary.mat-progress-bar-fill::after,.mat-progress-bar[mode=query] .mat-progress-bar-secondary.mat-progress-bar-fill::after{-webkit-backface-visibility:hidden;backface-visibility:hidden;animation:mat-progress-bar-secondary-indeterminate-scale 2000ms infinite linear}.mat-progress-bar[mode=buffer] .mat-progress-bar-background{-webkit-backface-visibility:hidden;backface-visibility:hidden;animation:mat-progress-bar-background-scroll 250ms infinite linear;display:block}.mat-progress-bar._mat-animation-noopable .mat-progress-bar-fill,.mat-progress-bar._mat-animation-noopable .mat-progress-bar-fill::after,.mat-progress-bar._mat-animation-noopable .mat-progress-bar-buffer,.mat-progress-bar._mat-animation-noopable .mat-progress-bar-primary,.mat-progress-bar._mat-animation-noopable .mat-progress-bar-primary.mat-progress-bar-fill::after,.mat-progress-bar._mat-animation-noopable .mat-progress-bar-secondary,.mat-progress-bar._mat-animation-noopable .mat-progress-bar-secondary.mat-progress-bar-fill::after,.mat-progress-bar._mat-animation-noopable .mat-progress-bar-background{animation:none;transition-duration:1ms}@keyframes mat-progress-bar-primary-indeterminate-translate{0%{transform:translateX(0)}20%{animation-timing-function:cubic-bezier(0.5, 0, 0.701732, 0.495819);transform:translateX(0)}59.15%{animation-timing-function:cubic-bezier(0.302435, 0.381352, 0.55, 0.956352);transform:translateX(83.67142%)}100%{transform:translateX(200.611057%)}}@keyframes mat-progress-bar-primary-indeterminate-scale{0%{transform:scaleX(0.08)}36.65%{animation-timing-function:cubic-bezier(0.334731, 0.12482, 0.785844, 1);transform:scaleX(0.08)}69.15%{animation-timing-function:cubic-bezier(0.06, 0.11, 0.6, 1);transform:scaleX(0.661479)}100%{transform:scaleX(0.08)}}@keyframes mat-progress-bar-secondary-indeterminate-translate{0%{animation-timing-function:cubic-bezier(0.15, 0, 0.515058, 0.409685);transform:translateX(0)}25%{animation-timing-function:cubic-bezier(0.31033, 0.284058, 0.8, 0.733712);transform:translateX(37.651913%)}48.35%{animation-timing-function:cubic-bezier(0.4, 0.627035, 0.6, 0.902026);transform:translateX(84.386165%)}100%{transform:translateX(160.277782%)}}@keyframes mat-progress-bar-secondary-indeterminate-scale{0%{animation-timing-function:cubic-bezier(0.15, 0, 0.515058, 0.409685);transform:scaleX(0.08)}19.15%{animation-timing-function:cubic-bezier(0.31033, 0.284058, 0.8, 0.733712);transform:scaleX(0.457104)}44.15%{animation-timing-function:cubic-bezier(0.4, 0.627035, 0.6, 0.902026);transform:scaleX(0.72796)}100%{transform:scaleX(0.08)}}@keyframes mat-progress-bar-background-scroll{to{transform:translateX(-8px)}}'],encapsulation:2,changeDetection:0});class W{}W.\u0275fac=function(Q){return new(Q||W)},W.\u0275mod=e.oAB({type:W}),W.\u0275inj=e.cJS({imports:[t.ez,_.BQ,_.BQ]})},1708:(Ue,q,m)=>{"use strict";m.d(q,{Cq:()=>Z,Ou:()=>W});var e=m(8971),t=m(9107),_=m(1494),E=m(4666),s=m(2560),D=m(207),u=m(7714);function k(ie,ae){if(1&ie&&(s.O4$(),s._UZ(0,"circle",4)),2&ie){const _e=s.oxw(),ce=s.MAs(1);s.Udp("animation-name","mat-progress-spinner-stroke-rotate-"+_e._spinnerAnimationLabel)("stroke-dashoffset",_e._getStrokeDashOffset(),"px")("stroke-dasharray",_e._getStrokeCircumference(),"px")("stroke-width",_e._getCircleStrokeWidth(),"%")("transform-origin",_e._getCircleTransformOrigin(ce)),s.uIk("r",_e._getCircleRadius())}}function p(ie,ae){if(1&ie&&(s.O4$(),s._UZ(0,"circle",4)),2&ie){const _e=s.oxw(),ce=s.MAs(1);s.Udp("stroke-dashoffset",_e._getStrokeDashOffset(),"px")("stroke-dasharray",_e._getStrokeCircumference(),"px")("stroke-width",_e._getCircleStrokeWidth(),"%")("transform-origin",_e._getCircleTransformOrigin(ce)),s.uIk("r",_e._getCircleRadius())}}const P=(0,D.pj)(class{constructor(ie){this._elementRef=ie}},"primary"),M=new s.OlP("mat-progress-spinner-default-options",{providedIn:"root",factory:function z(){return{diameter:100}}});const I="\n @keyframes mat-progress-spinner-stroke-rotate-DIAMETER {\n 0% { stroke-dashoffset: START_VALUE; transform: rotate(0); }\n 12.5% { stroke-dashoffset: END_VALUE; transform: rotate(0); }\n 12.5001% { stroke-dashoffset: END_VALUE; transform: rotateX(180deg) rotate(72.5deg); }\n 25% { stroke-dashoffset: START_VALUE; transform: rotateX(180deg) rotate(72.5deg); }\n\n 25.0001% { stroke-dashoffset: START_VALUE; transform: rotate(270deg); }\n 37.5% { stroke-dashoffset: END_VALUE; transform: rotate(270deg); }\n 37.5001% { stroke-dashoffset: END_VALUE; transform: rotateX(180deg) rotate(161.5deg); }\n 50% { stroke-dashoffset: START_VALUE; transform: rotateX(180deg) rotate(161.5deg); }\n\n 50.0001% { stroke-dashoffset: START_VALUE; transform: rotate(180deg); }\n 62.5% { stroke-dashoffset: END_VALUE; transform: rotate(180deg); }\n 62.5001% { stroke-dashoffset: END_VALUE; transform: rotateX(180deg) rotate(251.5deg); }\n 75% { stroke-dashoffset: START_VALUE; transform: rotateX(180deg) rotate(251.5deg); }\n\n 75.0001% { stroke-dashoffset: START_VALUE; transform: rotate(90deg); }\n 87.5% { stroke-dashoffset: END_VALUE; transform: rotate(90deg); }\n 87.5001% { stroke-dashoffset: END_VALUE; transform: rotateX(180deg) rotate(341.5deg); }\n 100% { stroke-dashoffset: START_VALUE; transform: rotateX(180deg) rotate(341.5deg); }\n }\n";class W extends P{constructor(ae,_e,ce,ye,ue,$,he,w){super(ae),this._document=ce,this._diameter=100,this._value=0,this._resizeSubscription=u.w0.EMPTY,this.mode="determinate";const n=W._diameters;this._spinnerAnimationLabel=this._getSpinnerAnimationLabel(),n.has(ce.head)||n.set(ce.head,new Set([100])),this._noopAnimations="NoopAnimations"===ye&&!!ue&&!ue._forceAnimations,"mat-spinner"===ae.nativeElement.nodeName.toLowerCase()&&(this.mode="indeterminate"),ue&&(ue.color&&(this.color=this.defaultColor=ue.color),ue.diameter&&(this.diameter=ue.diameter),ue.strokeWidth&&(this.strokeWidth=ue.strokeWidth)),_e.isBrowser&&_e.SAFARI&&he&&$&&w&&(this._resizeSubscription=he.change(150).subscribe(()=>{"indeterminate"===this.mode&&w.run(()=>$.markForCheck())}))}get diameter(){return this._diameter}set diameter(ae){this._diameter=(0,e.su)(ae),this._spinnerAnimationLabel=this._getSpinnerAnimationLabel(),this._styleRoot&&this._attachStyleNode()}get strokeWidth(){return this._strokeWidth||this.diameter/10}set strokeWidth(ae){this._strokeWidth=(0,e.su)(ae)}get value(){return"determinate"===this.mode?this._value:0}set value(ae){this._value=Math.max(0,Math.min(100,(0,e.su)(ae)))}ngOnInit(){const ae=this._elementRef.nativeElement;this._styleRoot=(0,t.kV)(ae)||this._document.head,this._attachStyleNode(),ae.classList.add("mat-progress-spinner-indeterminate-animation")}ngOnDestroy(){this._resizeSubscription.unsubscribe()}_getCircleRadius(){return(this.diameter-10)/2}_getViewBox(){const ae=2*this._getCircleRadius()+this.strokeWidth;return`0 0 ${ae} ${ae}`}_getStrokeCircumference(){return 2*Math.PI*this._getCircleRadius()}_getStrokeDashOffset(){return"determinate"===this.mode?this._getStrokeCircumference()*(100-this._value)/100:null}_getCircleStrokeWidth(){return this.strokeWidth/this.diameter*100}_getCircleTransformOrigin(ae){const _e=50*(ae.currentScale??1);return`${_e}% ${_e}%`}_attachStyleNode(){const ae=this._styleRoot,_e=this._diameter,ce=W._diameters;let ye=ce.get(ae);if(!ye||!ye.has(_e)){const ue=this._document.createElement("style");ue.setAttribute("mat-spinner-animation",this._spinnerAnimationLabel),ue.textContent=this._getAnimationText(),ae.appendChild(ue),ye||(ye=new Set,ce.set(ae,ye)),ye.add(_e)}}_getAnimationText(){const ae=this._getStrokeCircumference();return I.replace(/START_VALUE/g,""+.95*ae).replace(/END_VALUE/g,""+.2*ae).replace(/DIAMETER/g,`${this._spinnerAnimationLabel}`)}_getSpinnerAnimationLabel(){return this.diameter.toString().replace(".","_")}}W._diameters=new WeakMap,W.\u0275fac=function(ae){return new(ae||W)(s.Y36(s.SBq),s.Y36(t.t4),s.Y36(E.K0,8),s.Y36(s.QbO,8),s.Y36(M),s.Y36(s.sBO),s.Y36(_.rL),s.Y36(s.R0b))},W.\u0275cmp=s.Xpm({type:W,selectors:[["mat-progress-spinner"],["mat-spinner"]],hostAttrs:["role","progressbar","tabindex","-1",1,"mat-progress-spinner","mat-spinner"],hostVars:10,hostBindings:function(ae,_e){2&ae&&(s.uIk("aria-valuemin","determinate"===_e.mode?0:null)("aria-valuemax","determinate"===_e.mode?100:null)("aria-valuenow","determinate"===_e.mode?_e.value:null)("mode",_e.mode),s.Udp("width",_e.diameter,"px")("height",_e.diameter,"px"),s.ekj("_mat-animation-noopable",_e._noopAnimations))},inputs:{color:"color",diameter:"diameter",strokeWidth:"strokeWidth",mode:"mode",value:"value"},exportAs:["matProgressSpinner"],features:[s.qOj],decls:4,vars:8,consts:[["preserveAspectRatio","xMidYMid meet","focusable","false","aria-hidden","true",3,"ngSwitch"],["svg",""],["cx","50%","cy","50%",3,"animation-name","stroke-dashoffset","stroke-dasharray","stroke-width","transform-origin",4,"ngSwitchCase"],["cx","50%","cy","50%",3,"stroke-dashoffset","stroke-dasharray","stroke-width","transform-origin",4,"ngSwitchCase"],["cx","50%","cy","50%"]],template:function(ae,_e){1&ae&&(s.O4$(),s.TgZ(0,"svg",0,1),s.YNc(2,k,1,11,"circle",2),s.YNc(3,p,1,9,"circle",3),s.qZA()),2&ae&&(s.Udp("width",_e.diameter,"px")("height",_e.diameter,"px"),s.Q6J("ngSwitch","indeterminate"===_e.mode),s.uIk("viewBox",_e._getViewBox()),s.xp6(2),s.Q6J("ngSwitchCase",!0),s.xp6(1),s.Q6J("ngSwitchCase",!1))},dependencies:[E.RF,E.n9],styles:[".mat-progress-spinner{display:block;position:relative;overflow:hidden}.mat-progress-spinner svg{position:absolute;transform:rotate(-90deg);top:0;left:0;transform-origin:center;overflow:visible}.mat-progress-spinner circle{fill:rgba(0,0,0,0);transition:stroke-dashoffset 225ms linear}.cdk-high-contrast-active .mat-progress-spinner circle{stroke:CanvasText}.mat-progress-spinner[mode=indeterminate] svg{animation:mat-progress-spinner-linear-rotate 2000ms linear infinite}.mat-progress-spinner[mode=indeterminate] circle{transition-property:stroke;animation-duration:4000ms;animation-timing-function:cubic-bezier(0.35, 0, 0.25, 1);animation-iteration-count:infinite}.mat-progress-spinner._mat-animation-noopable svg,.mat-progress-spinner._mat-animation-noopable circle{animation:none;transition:none}@keyframes mat-progress-spinner-linear-rotate{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}@keyframes mat-progress-spinner-stroke-rotate-100{0%{stroke-dashoffset:268.606171575px;transform:rotate(0)}12.5%{stroke-dashoffset:56.5486677px;transform:rotate(0)}12.5001%{stroke-dashoffset:56.5486677px;transform:rotateX(180deg) rotate(72.5deg)}25%{stroke-dashoffset:268.606171575px;transform:rotateX(180deg) rotate(72.5deg)}25.0001%{stroke-dashoffset:268.606171575px;transform:rotate(270deg)}37.5%{stroke-dashoffset:56.5486677px;transform:rotate(270deg)}37.5001%{stroke-dashoffset:56.5486677px;transform:rotateX(180deg) rotate(161.5deg)}50%{stroke-dashoffset:268.606171575px;transform:rotateX(180deg) rotate(161.5deg)}50.0001%{stroke-dashoffset:268.606171575px;transform:rotate(180deg)}62.5%{stroke-dashoffset:56.5486677px;transform:rotate(180deg)}62.5001%{stroke-dashoffset:56.5486677px;transform:rotateX(180deg) rotate(251.5deg)}75%{stroke-dashoffset:268.606171575px;transform:rotateX(180deg) rotate(251.5deg)}75.0001%{stroke-dashoffset:268.606171575px;transform:rotate(90deg)}87.5%{stroke-dashoffset:56.5486677px;transform:rotate(90deg)}87.5001%{stroke-dashoffset:56.5486677px;transform:rotateX(180deg) rotate(341.5deg)}100%{stroke-dashoffset:268.606171575px;transform:rotateX(180deg) rotate(341.5deg)}}"],encapsulation:2,changeDetection:0});class Z{}Z.\u0275fac=function(ae){return new(ae||Z)},Z.\u0275mod=s.oAB({type:Z}),Z.\u0275inj=s.cJS({imports:[D.BQ,E.ez,D.BQ]})},2922:(Ue,q,m)=>{"use strict";m.d(q,{Fk:()=>ce,U0:()=>_e,VQ:()=>Z});var e=m(2560),t=m(207),_=m(4218),E=m(8971),s=m(1755),D=m(2508);const u=["input"],k=function(ye){return{enterDuration:ye}},S=new e.OlP("mat-radio-default-options",{providedIn:"root",factory:function A(){return{color:"accent"}}});let P=0;const M={provide:D.JU,useExisting:(0,e.Gpc)(()=>Z),multi:!0};class z{constructor(ue,$){this.source=ue,this.value=$}}const I=new e.OlP("MatRadioGroup");class W{constructor(ue){this._changeDetector=ue,this._value=null,this._name="mat-radio-group-"+P++,this._selected=null,this._isInitialized=!1,this._labelPosition="after",this._disabled=!1,this._required=!1,this._controlValueAccessorChangeFn=()=>{},this.onTouched=()=>{},this.change=new e.vpe}get name(){return this._name}set name(ue){this._name=ue,this._updateRadioButtonNames()}get labelPosition(){return this._labelPosition}set labelPosition(ue){this._labelPosition="before"===ue?"before":"after",this._markRadiosForCheck()}get value(){return this._value}set value(ue){this._value!==ue&&(this._value=ue,this._updateSelectedRadioFromValue(),this._checkSelectedRadioButton())}_checkSelectedRadioButton(){this._selected&&!this._selected.checked&&(this._selected.checked=!0)}get selected(){return this._selected}set selected(ue){this._selected=ue,this.value=ue?ue.value:null,this._checkSelectedRadioButton()}get disabled(){return this._disabled}set disabled(ue){this._disabled=(0,E.Ig)(ue),this._markRadiosForCheck()}get required(){return this._required}set required(ue){this._required=(0,E.Ig)(ue),this._markRadiosForCheck()}ngAfterContentInit(){this._isInitialized=!0}_touch(){this.onTouched&&this.onTouched()}_updateRadioButtonNames(){this._radios&&this._radios.forEach(ue=>{ue.name=this.name,ue._markForCheck()})}_updateSelectedRadioFromValue(){const ue=null!==this._selected&&this._selected.value===this._value;this._radios&&!ue&&(this._selected=null,this._radios.forEach($=>{$.checked=this.value===$.value,$.checked&&(this._selected=$)}))}_emitChangeEvent(){this._isInitialized&&this.change.emit(new z(this._selected,this._value))}_markRadiosForCheck(){this._radios&&this._radios.forEach(ue=>ue._markForCheck())}writeValue(ue){this.value=ue,this._changeDetector.markForCheck()}registerOnChange(ue){this._controlValueAccessorChangeFn=ue}registerOnTouched(ue){this.onTouched=ue}setDisabledState(ue){this.disabled=ue,this._changeDetector.markForCheck()}}W.\u0275fac=function(ue){return new(ue||W)(e.Y36(e.sBO))},W.\u0275dir=e.lG2({type:W,inputs:{color:"color",name:"name",labelPosition:"labelPosition",value:"value",selected:"selected",disabled:"disabled",required:"required"},outputs:{change:"change"}});class Z extends W{}Z.\u0275fac=function(){let ye;return function($){return(ye||(ye=e.n5z(Z)))($||Z)}}(),Z.\u0275dir=e.lG2({type:Z,selectors:[["mat-radio-group"]],contentQueries:function(ue,$,he){if(1&ue&&e.Suo(he,_e,5),2&ue){let w;e.iGM(w=e.CRH())&&($._radios=w)}},hostAttrs:["role","radiogroup",1,"mat-radio-group"],exportAs:["matRadioGroup"],features:[e._Bn([M,{provide:I,useExisting:Z}]),e.qOj]});const ie=(0,t.Kr)((0,t.sb)(class Q{constructor(ue){this._elementRef=ue}}));class ae extends ie{constructor(ue,$,he,w,n,o,h,d){super($),this._changeDetector=he,this._focusMonitor=w,this._radioDispatcher=n,this._providerOverride=h,this._uniqueId="mat-radio-"+ ++P,this.id=this._uniqueId,this.change=new e.vpe,this._checked=!1,this._value=null,this._removeUniqueSelectionListener=()=>{},this.radioGroup=ue,this._noopAnimations="NoopAnimations"===o,d&&(this.tabIndex=(0,E.su)(d,0)),this._removeUniqueSelectionListener=n.listen((y,L)=>{y!==this.id&&L===this.name&&(this.checked=!1)})}get checked(){return this._checked}set checked(ue){const $=(0,E.Ig)(ue);this._checked!==$&&(this._checked=$,$&&this.radioGroup&&this.radioGroup.value!==this.value?this.radioGroup.selected=this:!$&&this.radioGroup&&this.radioGroup.value===this.value&&(this.radioGroup.selected=null),$&&this._radioDispatcher.notify(this.id,this.name),this._changeDetector.markForCheck())}get value(){return this._value}set value(ue){this._value!==ue&&(this._value=ue,null!==this.radioGroup&&(this.checked||(this.checked=this.radioGroup.value===ue),this.checked&&(this.radioGroup.selected=this)))}get labelPosition(){return this._labelPosition||this.radioGroup&&this.radioGroup.labelPosition||"after"}set labelPosition(ue){this._labelPosition=ue}get disabled(){return this._disabled||null!==this.radioGroup&&this.radioGroup.disabled}set disabled(ue){this._setDisabled((0,E.Ig)(ue))}get required(){return this._required||this.radioGroup&&this.radioGroup.required}set required(ue){this._required=(0,E.Ig)(ue)}get color(){return this._color||this.radioGroup&&this.radioGroup.color||this._providerOverride&&this._providerOverride.color||"accent"}set color(ue){this._color=ue}get inputId(){return`${this.id||this._uniqueId}-input`}focus(ue,$){$?this._focusMonitor.focusVia(this._inputElement,$,ue):this._inputElement.nativeElement.focus(ue)}_markForCheck(){this._changeDetector.markForCheck()}ngOnInit(){this.radioGroup&&(this.checked=this.radioGroup.value===this._value,this.checked&&(this.radioGroup.selected=this),this.name=this.radioGroup.name)}ngDoCheck(){this._updateTabIndex()}ngAfterViewInit(){this._updateTabIndex(),this._focusMonitor.monitor(this._elementRef,!0).subscribe(ue=>{!ue&&this.radioGroup&&this.radioGroup._touch()})}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef),this._removeUniqueSelectionListener()}_emitChangeEvent(){this.change.emit(new z(this,this._value))}_isRippleDisabled(){return this.disableRipple||this.disabled}_onInputClick(ue){ue.stopPropagation()}_onInputInteraction(ue){if(ue.stopPropagation(),!this.checked&&!this.disabled){const $=this.radioGroup&&this.value!==this.radioGroup.value;this.checked=!0,this._emitChangeEvent(),this.radioGroup&&(this.radioGroup._controlValueAccessorChangeFn(this.value),$&&this.radioGroup._emitChangeEvent())}}_setDisabled(ue){this._disabled!==ue&&(this._disabled=ue,this._changeDetector.markForCheck())}_updateTabIndex(){const ue=this.radioGroup;let $;if($=ue&&ue.selected&&!this.disabled?ue.selected===this?this.tabIndex:-1:this.tabIndex,$!==this._previousTabIndex){const he=this._inputElement?.nativeElement;he&&(he.setAttribute("tabindex",$+""),this._previousTabIndex=$)}}}ae.\u0275fac=function(ue){e.$Z()},ae.\u0275dir=e.lG2({type:ae,viewQuery:function(ue,$){if(1&ue&&e.Gf(u,5),2&ue){let he;e.iGM(he=e.CRH())&&($._inputElement=he.first)}},inputs:{id:"id",name:"name",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],ariaDescribedby:["aria-describedby","ariaDescribedby"],checked:"checked",value:"value",labelPosition:"labelPosition",disabled:"disabled",required:"required",color:"color"},outputs:{change:"change"},features:[e.qOj]});class _e extends ae{constructor(ue,$,he,w,n,o,h,d){super(ue,$,he,w,n,o,h,d)}}_e.\u0275fac=function(ue){return new(ue||_e)(e.Y36(I,8),e.Y36(e.SBq),e.Y36(e.sBO),e.Y36(_.tE),e.Y36(s.A8),e.Y36(e.QbO,8),e.Y36(S,8),e.$8M("tabindex"))},_e.\u0275cmp=e.Xpm({type:_e,selectors:[["mat-radio-button"]],hostAttrs:[1,"mat-radio-button"],hostVars:17,hostBindings:function(ue,$){1&ue&&e.NdJ("focus",function(){return $._inputElement.nativeElement.focus()}),2&ue&&(e.uIk("tabindex",null)("id",$.id)("aria-label",null)("aria-labelledby",null)("aria-describedby",null),e.ekj("mat-radio-checked",$.checked)("mat-radio-disabled",$.disabled)("_mat-animation-noopable",$._noopAnimations)("mat-primary","primary"===$.color)("mat-accent","accent"===$.color)("mat-warn","warn"===$.color))},inputs:{disableRipple:"disableRipple",tabIndex:"tabIndex"},exportAs:["matRadioButton"],features:[e.qOj],ngContentSelectors:["*"],decls:13,vars:19,consts:[[1,"mat-radio-label"],["label",""],[1,"mat-radio-container"],[1,"mat-radio-outer-circle"],[1,"mat-radio-inner-circle"],["type","radio",1,"mat-radio-input",3,"id","checked","disabled","required","change","click"],["input",""],["mat-ripple","",1,"mat-radio-ripple","mat-focus-indicator",3,"matRippleTrigger","matRippleDisabled","matRippleCentered","matRippleRadius","matRippleAnimation"],[1,"mat-ripple-element","mat-radio-persistent-ripple"],[1,"mat-radio-label-content"],[2,"display","none"]],template:function(ue,$){if(1&ue&&(e.F$t(),e.TgZ(0,"label",0,1)(2,"span",2),e._UZ(3,"span",3)(4,"span",4),e.TgZ(5,"input",5,6),e.NdJ("change",function(w){return $._onInputInteraction(w)})("click",function(w){return $._onInputClick(w)}),e.qZA(),e.TgZ(7,"span",7),e._UZ(8,"span",8),e.qZA()(),e.TgZ(9,"span",9)(10,"span",10),e._uU(11,"\xa0"),e.qZA(),e.Hsn(12),e.qZA()()),2&ue){const he=e.MAs(1);e.uIk("for",$.inputId),e.xp6(5),e.Q6J("id",$.inputId)("checked",$.checked)("disabled",$.disabled)("required",$.required),e.uIk("name",$.name)("value",$.value)("aria-label",$.ariaLabel)("aria-labelledby",$.ariaLabelledby)("aria-describedby",$.ariaDescribedby),e.xp6(2),e.Q6J("matRippleTrigger",he)("matRippleDisabled",$._isRippleDisabled())("matRippleCentered",!0)("matRippleRadius",20)("matRippleAnimation",e.VKq(17,k,$._noopAnimations?0:150)),e.xp6(2),e.ekj("mat-radio-label-before","before"==$.labelPosition)}},dependencies:[t.wG],styles:['.mat-radio-button{display:inline-block;-webkit-tap-highlight-color:rgba(0,0,0,0);outline:0}.mat-radio-label{-webkit-user-select:none;user-select:none;cursor:pointer;display:inline-flex;align-items:center;white-space:nowrap;vertical-align:middle;width:100%}.mat-radio-container{box-sizing:border-box;display:inline-block;position:relative;width:20px;height:20px;flex-shrink:0}.mat-radio-outer-circle{box-sizing:border-box;display:block;height:20px;left:0;position:absolute;top:0;transition:border-color ease 280ms;width:20px;border-width:2px;border-style:solid;border-radius:50%}._mat-animation-noopable .mat-radio-outer-circle{transition:none}.mat-radio-inner-circle{border-radius:50%;box-sizing:border-box;display:block;height:20px;left:0;position:absolute;top:0;opacity:0;transition:transform ease 280ms,background-color ease 280ms,opacity linear 1ms 280ms;width:20px;transform:scale(0.001);-webkit-print-color-adjust:exact;color-adjust:exact}.mat-radio-checked .mat-radio-inner-circle{transform:scale(0.5);opacity:1;transition:transform ease 280ms,background-color ease 280ms}.cdk-high-contrast-active .mat-radio-checked .mat-radio-inner-circle{border:solid 10px}._mat-animation-noopable .mat-radio-inner-circle{transition:none}.mat-radio-label-content{-webkit-user-select:auto;user-select:auto;display:inline-block;order:0;line-height:inherit;padding-left:8px;padding-right:0}[dir=rtl] .mat-radio-label-content{padding-right:8px;padding-left:0}.mat-radio-label-content.mat-radio-label-before{order:-1;padding-left:0;padding-right:8px}[dir=rtl] .mat-radio-label-content.mat-radio-label-before{padding-right:0;padding-left:8px}.mat-radio-disabled,.mat-radio-disabled .mat-radio-label{cursor:default}.mat-radio-button .mat-radio-ripple{position:absolute;left:calc(50% - 20px);top:calc(50% - 20px);height:40px;width:40px;z-index:1;pointer-events:none}.mat-radio-button .mat-radio-ripple .mat-ripple-element:not(.mat-radio-persistent-ripple){opacity:.16}.mat-radio-persistent-ripple{width:100%;height:100%;transform:none;top:0;left:0}.mat-radio-container:hover .mat-radio-persistent-ripple{opacity:.04}.mat-radio-button:not(.mat-radio-disabled).cdk-keyboard-focused .mat-radio-persistent-ripple,.mat-radio-button:not(.mat-radio-disabled).cdk-program-focused .mat-radio-persistent-ripple{opacity:.12}.mat-radio-persistent-ripple,.mat-radio-disabled .mat-radio-container:hover .mat-radio-persistent-ripple{opacity:0}@media(hover: none){.mat-radio-container:hover .mat-radio-persistent-ripple{display:none}}.mat-radio-input{opacity:0;position:absolute;top:0;left:0;margin:0;width:100%;height:100%;cursor:inherit;z-index:-1}.mat-radio-input:focus~.mat-focus-indicator::before{content:""}.cdk-high-contrast-active .mat-radio-disabled{opacity:.5}'],encapsulation:2,changeDetection:0});class ce{}ce.\u0275fac=function(ue){return new(ue||ce)},ce.\u0275mod=e.oAB({type:ce}),ce.\u0275inj=e.cJS({imports:[t.si,t.BQ,t.BQ]})},7371:(Ue,q,m)=>{"use strict";m.d(q,{$L:()=>ht,LD:()=>te,gD:()=>Ae});var e=m(5895),t=m(4666),_=m(2560),E=m(207),s=m(5074),D=m(1494),u=m(4218),k=m(2867),p=m(8971),S=m(1755),A=m(8456),P=m(2508),M=m(253),z=m(1954),I=m(6646),W=m(4874),Z=m(2673),Q=m(9295),ie=m(116),ae=m(635),_e=m(8977),ce=m(8951),ye=m(4851);const ue=["trigger"],$=["panel"];function he(pe,ee){if(1&pe&&(_.TgZ(0,"span",8),_._uU(1),_.qZA()),2&pe){const H=_.oxw();_.xp6(1),_.Oqu(H.placeholder)}}function w(pe,ee){if(1&pe&&(_.TgZ(0,"span",12),_._uU(1),_.qZA()),2&pe){const H=_.oxw(2);_.xp6(1),_.Oqu(H.triggerValue)}}function n(pe,ee){1&pe&&_.Hsn(0,0,["*ngSwitchCase","true"])}function o(pe,ee){if(1&pe&&(_.TgZ(0,"span",9),_.YNc(1,w,2,1,"span",10),_.YNc(2,n,1,0,"ng-content",11),_.qZA()),2&pe){const H=_.oxw();_.Q6J("ngSwitch",!!H.customTrigger),_.xp6(2),_.Q6J("ngSwitchCase",!0)}}function h(pe,ee){if(1&pe){const H=_.EpF();_.TgZ(0,"div",13)(1,"div",14,15),_.NdJ("@transformPanel.done",function(Oe){_.CHM(H);const Re=_.oxw();return _.KtG(Re._panelDoneAnimatingStream.next(Oe.toState))})("keydown",function(Oe){_.CHM(H);const Re=_.oxw();return _.KtG(Re._handleKeydown(Oe))}),_.Hsn(3,1),_.qZA()()}if(2&pe){const H=_.oxw();_.Q6J("@transformPanelWrap",void 0),_.xp6(1),_.Gre("mat-select-panel ",H._getPanelTheme(),""),_.Udp("transform-origin",H._transformOrigin)("font-size",H._triggerFontSize,"px"),_.Q6J("ngClass",H.panelClass)("@transformPanel",H.multiple?"showing-multiple":"showing"),_.uIk("id",H.id+"-panel")("aria-multiselectable",H.multiple)("aria-label",H.ariaLabel||null)("aria-labelledby",H._getPanelAriaLabelledby())}}const d=[[["mat-select-trigger"]],"*"],L={transformPanelWrap:(0,ye.X$)("transformPanelWrap",[(0,ye.eR)("* => void",(0,ye.IO)("@transformPanel",[(0,ye.pV)()],{optional:!0}))]),transformPanel:(0,ye.X$)("transformPanel",[(0,ye.SB)("void",(0,ye.oB)({transform:"scaleY(0.8)",minWidth:"100%",opacity:0})),(0,ye.SB)("showing",(0,ye.oB)({opacity:1,minWidth:"calc(100% + 32px)",transform:"scaleY(1)"})),(0,ye.SB)("showing-multiple",(0,ye.oB)({opacity:1,minWidth:"calc(100% + 64px)",transform:"scaleY(1)"})),(0,ye.eR)("void => *",(0,ye.jt)("120ms cubic-bezier(0, 0, 0.2, 1)")),(0,ye.eR)("* => void",(0,ye.jt)("100ms 25ms linear",(0,ye.oB)({opacity:0})))])};let C=0;const N=256,F=16,je=new _.OlP("mat-select-scroll-strategy");const xe=new _.OlP("MAT_SELECT_CONFIG"),Ze={provide:je,deps:[e.aV],useFactory:function Ve(pe){return()=>pe.scrollStrategies.reposition()}};class Ie{constructor(ee,H){this.source=ee,this.value=H}}const ve=(0,E.Kr)((0,E.sb)((0,E.Id)((0,E.FD)(class{constructor(pe,ee,H,j,Oe){this._elementRef=pe,this._defaultErrorStateMatcher=ee,this._parentForm=H,this._parentFormGroup=j,this.ngControl=Oe,this.stateChanges=new M.x}})))),et=new _.OlP("MatSelectTrigger");class ht{}ht.\u0275fac=function(ee){return new(ee||ht)},ht.\u0275dir=_.lG2({type:ht,selectors:[["mat-select-trigger"]],features:[_._Bn([{provide:et,useExisting:ht}])]});class Le extends ve{constructor(ee,H,j,Oe,Re,le,_t,it,Ct,un,Bt,Ut,yn,Xt){super(Re,Oe,_t,it,un),this._viewportRuler=ee,this._changeDetectorRef=H,this._ngZone=j,this._dir=le,this._parentFormField=Ct,this._liveAnnouncer=yn,this._defaultOptions=Xt,this._panelOpen=!1,this._compareWith=(Gt,In)=>Gt===In,this._uid="mat-select-"+C++,this._triggerAriaLabelledBy=null,this._destroy=new M.x,this._onChange=()=>{},this._onTouched=()=>{},this._valueId="mat-select-value-"+C++,this._panelDoneAnimatingStream=new M.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,z.P)(()=>{const Gt=this.options;return Gt?Gt.changes.pipe((0,W.O)(Gt),(0,Z.w)(()=>(0,I.T)(...Gt.map(In=>In.onSelectionChange)))):this._ngZone.onStable.pipe((0,Q.q)(1),(0,Z.w)(()=>this.optionSelectionChanges))}),this.openedChange=new _.vpe,this._openedStream=this.openedChange.pipe((0,ie.h)(Gt=>Gt),(0,ae.U)(()=>{})),this._closedStream=this.openedChange.pipe((0,ie.h)(Gt=>!Gt),(0,ae.U)(()=>{})),this.selectionChange=new _.vpe,this.valueChange=new _.vpe,this.ngControl&&(this.ngControl.valueAccessor=this),null!=Xt?.typeaheadDebounceInterval&&(this._typeaheadDebounceInterval=Xt.typeaheadDebounceInterval),this._scrollStrategyFactory=Ut,this._scrollStrategy=this._scrollStrategyFactory(),this.tabIndex=parseInt(Bt)||0,this.id=this.id}get focused(){return this._focused||this._panelOpen}get placeholder(){return this._placeholder}set placeholder(ee){this._placeholder=ee,this.stateChanges.next()}get required(){return this._required??this.ngControl?.control?.hasValidator(P.kI.required)??!1}set required(ee){this._required=(0,p.Ig)(ee),this.stateChanges.next()}get multiple(){return this._multiple}set multiple(ee){this._selectionModel,this._multiple=(0,p.Ig)(ee)}get disableOptionCentering(){return this._disableOptionCentering}set disableOptionCentering(ee){this._disableOptionCentering=(0,p.Ig)(ee)}get compareWith(){return this._compareWith}set compareWith(ee){this._compareWith=ee,this._selectionModel&&this._initializeSelection()}get value(){return this._value}set value(ee){this._assignValue(ee)&&this._onChange(ee)}get typeaheadDebounceInterval(){return this._typeaheadDebounceInterval}set typeaheadDebounceInterval(ee){this._typeaheadDebounceInterval=(0,p.su)(ee)}get id(){return this._id}set id(ee){this._id=ee||this._uid,this.stateChanges.next()}ngOnInit(){this._selectionModel=new S.Ov(this.multiple),this.stateChanges.next(),this._panelDoneAnimatingStream.pipe((0,_e.x)(),(0,ce.R)(this._destroy)).subscribe(()=>this._panelDoneAnimating(this.panelOpen))}ngAfterContentInit(){this._initKeyManager(),this._selectionModel.changed.pipe((0,ce.R)(this._destroy)).subscribe(ee=>{ee.added.forEach(H=>H.select()),ee.removed.forEach(H=>H.deselect())}),this.options.changes.pipe((0,W.O)(null),(0,ce.R)(this._destroy)).subscribe(()=>{this._resetOptions(),this._initializeSelection()})}ngDoCheck(){const ee=this._getTriggerAriaLabelledby(),H=this.ngControl;if(ee!==this._triggerAriaLabelledBy){const j=this._elementRef.nativeElement;this._triggerAriaLabelledBy=ee,ee?j.setAttribute("aria-labelledby",ee):j.removeAttribute("aria-labelledby")}H&&(this._previousControl!==H.control&&(void 0!==this._previousControl&&null!==H.disabled&&H.disabled!==this.disabled&&(this.disabled=H.disabled),this._previousControl=H.control),this.updateErrorState())}ngOnChanges(ee){(ee.disabled||ee.userAriaDescribedBy)&&this.stateChanges.next(),ee.typeaheadDebounceInterval&&this._keyManager&&this._keyManager.withTypeAhead(this._typeaheadDebounceInterval)}ngOnDestroy(){this._destroy.next(),this._destroy.complete(),this.stateChanges.complete()}toggle(){this.panelOpen?this.close():this.open()}open(){this._canOpen()&&(this._panelOpen=!0,this._keyManager.withHorizontalOrientation(null),this._highlightCorrectOption(),this._changeDetectorRef.markForCheck())}close(){this._panelOpen&&(this._panelOpen=!1,this._keyManager.withHorizontalOrientation(this._isRtl()?"rtl":"ltr"),this._changeDetectorRef.markForCheck(),this._onTouched())}writeValue(ee){this._assignValue(ee)}registerOnChange(ee){this._onChange=ee}registerOnTouched(ee){this._onTouched=ee}setDisabledState(ee){this.disabled=ee,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 ee=this._selectionModel.selected.map(H=>H.viewValue);return this._isRtl()&&ee.reverse(),ee.join(", ")}return this._selectionModel.selected[0].viewValue}_isRtl(){return!!this._dir&&"rtl"===this._dir.value}_handleKeydown(ee){this.disabled||(this.panelOpen?this._handleOpenKeydown(ee):this._handleClosedKeydown(ee))}_handleClosedKeydown(ee){const H=ee.keyCode,j=H===A.JH||H===A.LH||H===A.oh||H===A.SV,Oe=H===A.K5||H===A.L_,Re=this._keyManager;if(!Re.isTyping()&&Oe&&!(0,A.Vb)(ee)||(this.multiple||ee.altKey)&&j)ee.preventDefault(),this.open();else if(!this.multiple){const le=this.selected;Re.onKeydown(ee);const _t=this.selected;_t&&le!==_t&&this._liveAnnouncer.announce(_t.viewValue,1e4)}}_handleOpenKeydown(ee){const H=this._keyManager,j=ee.keyCode,Oe=j===A.JH||j===A.LH,Re=H.isTyping();if(Oe&&ee.altKey)ee.preventDefault(),this.close();else if(Re||j!==A.K5&&j!==A.L_||!H.activeItem||(0,A.Vb)(ee))if(!Re&&this._multiple&&j===A.A&&ee.ctrlKey){ee.preventDefault();const le=this.options.some(_t=>!_t.disabled&&!_t.selected);this.options.forEach(_t=>{_t.disabled||(le?_t.select():_t.deselect())})}else{const le=H.activeItemIndex;H.onKeydown(ee),this._multiple&&Oe&&ee.shiftKey&&H.activeItem&&H.activeItemIndex!==le&&H.activeItem._selectViaInteraction()}else ee.preventDefault(),H.activeItem._selectViaInteraction()}_onFocus(){this.disabled||(this._focused=!0,this.stateChanges.next())}_onBlur(){this._focused=!1,!this.disabled&&!this.panelOpen&&(this._onTouched(),this._changeDetectorRef.markForCheck(),this.stateChanges.next())}_onAttached(){this._overlayDir.positionChange.pipe((0,Q.q)(1)).subscribe(()=>{this._changeDetectorRef.detectChanges(),this._positioningSettled()})}_getPanelTheme(){return this._parentFormField?`mat-${this._parentFormField.color}`:""}get empty(){return!this._selectionModel||this._selectionModel.isEmpty()}_initializeSelection(){Promise.resolve().then(()=>{this.ngControl&&(this._value=this.ngControl.value),this._setSelectionByValue(this._value),this.stateChanges.next()})}_setSelectionByValue(ee){if(this._selectionModel.selected.forEach(H=>H.setInactiveStyles()),this._selectionModel.clear(),this.multiple&&ee)Array.isArray(ee),ee.forEach(H=>this._selectOptionByValue(H)),this._sortValues();else{const H=this._selectOptionByValue(ee);H?this._keyManager.updateActiveItem(H):this.panelOpen||this._keyManager.updateActiveItem(-1)}this._changeDetectorRef.markForCheck()}_selectOptionByValue(ee){const H=this.options.find(j=>{if(this._selectionModel.isSelected(j))return!1;try{return null!=j.value&&this._compareWith(j.value,ee)}catch{return!1}});return H&&this._selectionModel.select(H),H}_assignValue(ee){return!!(ee!==this._value||this._multiple&&Array.isArray(ee))&&(this.options&&this._setSelectionByValue(ee),this._value=ee,!0)}_initKeyManager(){this._keyManager=new u.s1(this.options).withTypeAhead(this._typeaheadDebounceInterval).withVerticalOrientation().withHorizontalOrientation(this._isRtl()?"rtl":"ltr").withHomeAndEnd().withAllowedModifierKeys(["shiftKey"]),this._keyManager.tabOut.pipe((0,ce.R)(this._destroy)).subscribe(()=>{this.panelOpen&&(!this.multiple&&this._keyManager.activeItem&&this._keyManager.activeItem._selectViaInteraction(),this.focus(),this.close())}),this._keyManager.change.pipe((0,ce.R)(this._destroy)).subscribe(()=>{this._panelOpen&&this.panel?this._scrollOptionIntoView(this._keyManager.activeItemIndex||0):!this._panelOpen&&!this.multiple&&this._keyManager.activeItem&&this._keyManager.activeItem._selectViaInteraction()})}_resetOptions(){const ee=(0,I.T)(this.options.changes,this._destroy);this.optionSelectionChanges.pipe((0,ce.R)(ee)).subscribe(H=>{this._onSelect(H.source,H.isUserInput),H.isUserInput&&!this.multiple&&this._panelOpen&&(this.close(),this.focus())}),(0,I.T)(...this.options.map(H=>H._stateChanges)).pipe((0,ce.R)(ee)).subscribe(()=>{this._changeDetectorRef.markForCheck(),this.stateChanges.next()})}_onSelect(ee,H){const j=this._selectionModel.isSelected(ee);null!=ee.value||this._multiple?(j!==ee.selected&&(ee.selected?this._selectionModel.select(ee):this._selectionModel.deselect(ee)),H&&this._keyManager.setActiveItem(ee),this.multiple&&(this._sortValues(),H&&this.focus())):(ee.deselect(),this._selectionModel.clear(),null!=this.value&&this._propagateChanges(ee.value)),j!==this._selectionModel.isSelected(ee)&&this._propagateChanges(),this.stateChanges.next()}_sortValues(){if(this.multiple){const ee=this.options.toArray();this._selectionModel.sort((H,j)=>this.sortComparator?this.sortComparator(H,j,ee):ee.indexOf(H)-ee.indexOf(j)),this.stateChanges.next()}}_propagateChanges(ee){let H=null;H=this.multiple?this.selected.map(j=>j.value):this.selected?this.selected.value:ee,this._value=H,this.valueChange.emit(H),this._onChange(H),this.selectionChange.emit(this._getChangeEvent(H)),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(ee){this._elementRef.nativeElement.focus(ee)}_getPanelAriaLabelledby(){if(this.ariaLabel)return null;const ee=this._parentFormField?.getLabelId(),H=ee?ee+" ":"";return this.ariaLabelledby?H+this.ariaLabelledby:ee}_getAriaActiveDescendant(){return this.panelOpen&&this._keyManager&&this._keyManager.activeItem?this._keyManager.activeItem.id:null}_getTriggerAriaLabelledby(){if(this.ariaLabel)return null;const ee=this._parentFormField?.getLabelId();let H=(ee?ee+" ":"")+this._valueId;return this.ariaLabelledby&&(H+=" "+this.ariaLabelledby),H}_panelDoneAnimating(ee){this.openedChange.emit(ee)}setDescribedByIds(ee){ee.length?this._elementRef.nativeElement.setAttribute("aria-describedby",ee.join(" ")):this._elementRef.nativeElement.removeAttribute("aria-describedby")}onContainerClick(){this.focus(),this.open()}get shouldLabelFloat(){return this._panelOpen||!this.empty||this._focused&&!!this._placeholder}}Le.\u0275fac=function(ee){return new(ee||Le)(_.Y36(D.rL),_.Y36(_.sBO),_.Y36(_.R0b),_.Y36(E.rD),_.Y36(_.SBq),_.Y36(k.Is,8),_.Y36(P.F,8),_.Y36(P.sg,8),_.Y36(s.G_,8),_.Y36(P.a5,10),_.$8M("tabindex"),_.Y36(je),_.Y36(u.Kd),_.Y36(xe,8))},Le.\u0275dir=_.lG2({type:Le,viewQuery:function(ee,H){if(1&ee&&(_.Gf(ue,5),_.Gf($,5),_.Gf(e.pI,5)),2&ee){let j;_.iGM(j=_.CRH())&&(H.trigger=j.first),_.iGM(j=_.CRH())&&(H.panel=j.first),_.iGM(j=_.CRH())&&(H._overlayDir=j.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:[_.qOj,_.TTD]});class Ae extends Le{constructor(){super(...arguments),this._scrollTop=0,this._triggerFontSize=0,this._transformOrigin="top",this._offsetY=0,this._positions=[{originX:"start",originY:"top",overlayX:"start",overlayY:"top"},{originX:"start",originY:"bottom",overlayX:"start",overlayY:"bottom"}]}_calculateOverlayScroll(ee,H,j){const Oe=this._getItemHeight(),_t=Oe*ee-H+Oe/2;return Math.min(Math.max(0,_t),j)}ngOnInit(){super.ngOnInit(),this._viewportRuler.change().pipe((0,ce.R)(this._destroy)).subscribe(()=>{this.panelOpen&&(this._triggerRect=this.trigger.nativeElement.getBoundingClientRect(),this._changeDetectorRef.markForCheck())})}open(){super._canOpen()&&(super.open(),this._triggerRect=this.trigger.nativeElement.getBoundingClientRect(),this._triggerFontSize=parseInt(getComputedStyle(this.trigger.nativeElement).fontSize||"0"),this._calculateOverlayPosition(),this._ngZone.onStable.pipe((0,Q.q)(1)).subscribe(()=>{this._triggerFontSize&&this._overlayDir.overlayRef&&this._overlayDir.overlayRef.overlayElement&&(this._overlayDir.overlayRef.overlayElement.style.fontSize=`${this._triggerFontSize}px`)}))}_scrollOptionIntoView(ee){const H=(0,E.CB)(ee,this.options,this.optionGroups),j=this._getItemHeight();this.panel.nativeElement.scrollTop=0===ee&&1===H?0:(0,E.jH)((ee+H)*j,j,this.panel.nativeElement.scrollTop,N)}_positioningSettled(){this._calculateOverlayOffsetX(),this.panel.nativeElement.scrollTop=this._scrollTop}_panelDoneAnimating(ee){this.panelOpen?this._scrollTop=0:(this._overlayDir.offsetX=0,this._changeDetectorRef.markForCheck()),super._panelDoneAnimating(ee)}_getChangeEvent(ee){return new Ie(this,ee)}_calculateOverlayOffsetX(){const ee=this._overlayDir.overlayRef.overlayElement.getBoundingClientRect(),H=this._viewportRuler.getViewportSize(),j=this._isRtl(),Oe=this.multiple?56:32;let Re;if(this.multiple)Re=40;else if(this.disableOptionCentering)Re=F;else{let it=this._selectionModel.selected[0]||this.options.first;Re=it&&it.group?32:F}j||(Re*=-1);const le=0-(ee.left+Re-(j?Oe:0)),_t=ee.right+Re-H.width+(j?0:Oe);le>0?Re+=le+8:_t>0&&(Re-=_t+8),this._overlayDir.offsetX=Math.round(Re),this._overlayDir.overlayRef.updatePosition()}_calculateOverlayOffsetY(ee,H,j){const Oe=this._getItemHeight(),Re=(Oe-this._triggerRect.height)/2,le=Math.floor(N/Oe);let _t;if(this.disableOptionCentering)return 0;if(0===this._scrollTop)_t=ee*Oe;else if(this._scrollTop===j){_t=(ee-(this._getItemCount()-le))*Oe+(Oe-(this._getItemCount()*Oe-N)%Oe)}else _t=H-Oe/2;return Math.round(-1*_t-Re)}_checkOverlayWithinViewport(ee){const H=this._getItemHeight(),j=this._viewportRuler.getViewportSize(),Oe=this._triggerRect.top-8,Re=j.height-this._triggerRect.bottom-8,le=Math.abs(this._offsetY),it=Math.min(this._getItemCount()*H,N)-le-this._triggerRect.height;it>Re?this._adjustPanelUp(it,Re):le>Oe?this._adjustPanelDown(le,Oe,ee):this._transformOrigin=this._getOriginBasedOnOption()}_adjustPanelUp(ee,H){const j=Math.round(ee-H);this._scrollTop-=j,this._offsetY-=j,this._transformOrigin=this._getOriginBasedOnOption(),this._scrollTop<=0&&(this._scrollTop=0,this._offsetY=0,this._transformOrigin="50% bottom 0px")}_adjustPanelDown(ee,H,j){const Oe=Math.round(ee-H);if(this._scrollTop+=Oe,this._offsetY+=Oe,this._transformOrigin=this._getOriginBasedOnOption(),this._scrollTop>=j)return this._scrollTop=j,this._offsetY=0,void(this._transformOrigin="50% top 0px")}_calculateOverlayPosition(){const ee=this._getItemHeight(),H=this._getItemCount(),j=Math.min(H*ee,N),Re=H*ee-j;let le;le=this.empty?0:Math.max(this.options.toArray().indexOf(this._selectionModel.selected[0]),0),le+=(0,E.CB)(le,this.options,this.optionGroups);const _t=j/2;this._scrollTop=this._calculateOverlayScroll(le,_t,Re),this._offsetY=this._calculateOverlayOffsetY(le,_t,Re),this._checkOverlayWithinViewport(Re)}_getOriginBasedOnOption(){const ee=this._getItemHeight(),H=(ee-this._triggerRect.height)/2;return`50% ${Math.abs(this._offsetY)-H+ee/2}px 0px`}_getItemHeight(){return 3*this._triggerFontSize}_getItemCount(){return this.options.length+this.optionGroups.length}}Ae.\u0275fac=function(){let pe;return function(H){return(pe||(pe=_.n5z(Ae)))(H||Ae)}}(),Ae.\u0275cmp=_.Xpm({type:Ae,selectors:[["mat-select"]],contentQueries:function(ee,H,j){if(1&ee&&(_.Suo(j,et,5),_.Suo(j,E.ey,5),_.Suo(j,E.K7,5)),2&ee){let Oe;_.iGM(Oe=_.CRH())&&(H.customTrigger=Oe.first),_.iGM(Oe=_.CRH())&&(H.options=Oe),_.iGM(Oe=_.CRH())&&(H.optionGroups=Oe)}},hostAttrs:["role","combobox","aria-autocomplete","none","aria-haspopup","true",1,"mat-select"],hostVars:19,hostBindings:function(ee,H){1&ee&&_.NdJ("keydown",function(Oe){return H._handleKeydown(Oe)})("focus",function(){return H._onFocus()})("blur",function(){return H._onBlur()}),2&ee&&(_.uIk("id",H.id)("tabindex",H.tabIndex)("aria-controls",H.panelOpen?H.id+"-panel":null)("aria-expanded",H.panelOpen)("aria-label",H.ariaLabel||null)("aria-required",H.required.toString())("aria-disabled",H.disabled.toString())("aria-invalid",H.errorState)("aria-activedescendant",H._getAriaActiveDescendant()),_.ekj("mat-select-disabled",H.disabled)("mat-select-invalid",H.errorState)("mat-select-required",H.required)("mat-select-empty",H.empty)("mat-select-multiple",H.multiple))},inputs:{disabled:"disabled",disableRipple:"disableRipple",tabIndex:"tabIndex"},exportAs:["matSelect"],features:[_._Bn([{provide:s.Eo,useExisting:Ae},{provide:E.HF,useExisting:Ae}]),_.qOj],ngContentSelectors:["mat-select-trigger","*"],decls:9,vars:12,consts:[["cdk-overlay-origin","",1,"mat-select-trigger",3,"click"],["origin","cdkOverlayOrigin","trigger",""],[1,"mat-select-value",3,"ngSwitch"],["class","mat-select-placeholder mat-select-min-line",4,"ngSwitchCase"],["class","mat-select-value-text",3,"ngSwitch",4,"ngSwitchCase"],[1,"mat-select-arrow-wrapper"],[1,"mat-select-arrow"],["cdk-connected-overlay","","cdkConnectedOverlayLockPosition","","cdkConnectedOverlayHasBackdrop","","cdkConnectedOverlayBackdropClass","cdk-overlay-transparent-backdrop",3,"cdkConnectedOverlayPanelClass","cdkConnectedOverlayScrollStrategy","cdkConnectedOverlayOrigin","cdkConnectedOverlayOpen","cdkConnectedOverlayPositions","cdkConnectedOverlayMinWidth","cdkConnectedOverlayOffsetY","backdropClick","attach","detach"],[1,"mat-select-placeholder","mat-select-min-line"],[1,"mat-select-value-text",3,"ngSwitch"],["class","mat-select-min-line",4,"ngSwitchDefault"],[4,"ngSwitchCase"],[1,"mat-select-min-line"],[1,"mat-select-panel-wrap"],["role","listbox","tabindex","-1",3,"ngClass","keydown"],["panel",""]],template:function(ee,H){if(1&ee&&(_.F$t(d),_.TgZ(0,"div",0,1),_.NdJ("click",function(){return H.toggle()}),_.TgZ(3,"div",2),_.YNc(4,he,2,1,"span",3),_.YNc(5,o,3,2,"span",4),_.qZA(),_.TgZ(6,"div",5),_._UZ(7,"div",6),_.qZA()(),_.YNc(8,h,4,14,"ng-template",7),_.NdJ("backdropClick",function(){return H.close()})("attach",function(){return H._onAttached()})("detach",function(){return H.close()})),2&ee){const j=_.MAs(1);_.uIk("aria-owns",H.panelOpen?H.id+"-panel":null),_.xp6(3),_.Q6J("ngSwitch",H.empty),_.uIk("id",H._valueId),_.xp6(1),_.Q6J("ngSwitchCase",!0),_.xp6(1),_.Q6J("ngSwitchCase",!1),_.xp6(3),_.Q6J("cdkConnectedOverlayPanelClass",H._overlayPanelClass)("cdkConnectedOverlayScrollStrategy",H._scrollStrategy)("cdkConnectedOverlayOrigin",j)("cdkConnectedOverlayOpen",H.panelOpen)("cdkConnectedOverlayPositions",H._positions)("cdkConnectedOverlayMinWidth",null==H._triggerRect?null:H._triggerRect.width)("cdkConnectedOverlayOffsetY",H._offsetY)}},dependencies:[t.mk,t.RF,t.n9,t.ED,e.pI,e.xu],styles:['.mat-select{display:inline-block;width:100%;outline:none}.mat-select-trigger{display:inline-flex;align-items:center;cursor:pointer;position:relative;box-sizing:border-box;width:100%}.mat-select-disabled .mat-select-trigger{-webkit-user-select:none;user-select:none;cursor:default}.mat-select-value{width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.mat-select-value-text{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.mat-select-arrow-wrapper{height:16px;flex-shrink:0;display:inline-flex;align-items:center}.mat-form-field-appearance-fill .mat-select-arrow-wrapper{transform:translateY(-50%)}.mat-form-field-appearance-outline .mat-select-arrow-wrapper{transform:translateY(-25%)}.mat-form-field-appearance-standard.mat-form-field-has-label .mat-select:not(.mat-select-empty) .mat-select-arrow-wrapper{transform:translateY(-50%)}.mat-form-field-appearance-standard .mat-select.mat-select-empty .mat-select-arrow-wrapper{transition:transform 400ms cubic-bezier(0.25, 0.8, 0.25, 1)}._mat-animation-noopable.mat-form-field-appearance-standard .mat-select.mat-select-empty .mat-select-arrow-wrapper{transition:none}.mat-select-arrow{width:0;height:0;border-left:5px solid rgba(0,0,0,0);border-right:5px solid rgba(0,0,0,0);border-top:5px solid;margin:0 4px}.mat-form-field.mat-focused .mat-select-arrow{transform:translateX(0)}.mat-select-panel-wrap{flex-basis:100%}.mat-select-panel{min-width:112px;max-width:280px;overflow:auto;-webkit-overflow-scrolling:touch;padding-top:0;padding-bottom:0;max-height:256px;min-width:100%;border-radius:4px;outline:0}.cdk-high-contrast-active .mat-select-panel{outline:solid 1px}.mat-select-panel .mat-optgroup-label,.mat-select-panel .mat-option{font-size:inherit;line-height:3em;height:3em}.mat-form-field-type-mat-select:not(.mat-form-field-disabled) .mat-form-field-flex{cursor:pointer}.mat-form-field-type-mat-select .mat-form-field-label{width:calc(100% - 18px)}.mat-select-placeholder{transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1)}._mat-animation-noopable .mat-select-placeholder{transition:none}.mat-form-field-hide-placeholder .mat-select-placeholder{color:rgba(0,0,0,0);-webkit-text-fill-color:rgba(0,0,0,0);transition:none;display:block}.mat-select-min-line:empty::before{content:" ";white-space:pre;width:1px;display:inline-block;visibility:hidden}'],encapsulation:2,data:{animation:[L.transformPanelWrap,L.transformPanel]},changeDetection:0});class te{}te.\u0275fac=function(ee){return new(ee||te)},te.\u0275mod=_.oAB({type:te}),te.\u0275inj=_.cJS({providers:[Ze],imports:[t.ez,e.U8,E.Ng,E.BQ,D.ZD,s.lN,E.Ng,E.BQ]})},6643:(Ue,q,m)=>{"use strict";m.d(q,{JX:()=>ke,Rh:()=>Fe,SJ:()=>je,TM:()=>Ke});var e=m(1494),t=m(4666),_=m(2560),E=m(207),s=m(4218),D=m(2867),u=m(8971),k=m(8456),p=m(9107),S=m(253),A=m(3280),P=m(6646),M=m(116),z=m(635),I=m(73),W=m(8951),Z=m(8977),Q=m(9295),ie=m(4874),ae=m(1989),_e=m(4851);const ce=["*"],ye=["content"];function ue(Ve,xe){if(1&Ve){const Ze=_.EpF();_.TgZ(0,"div",2),_.NdJ("click",function(){_.CHM(Ze);const ve=_.oxw();return _.KtG(ve._onBackdropClicked())}),_.qZA()}if(2&Ve){const Ze=_.oxw();_.ekj("mat-drawer-shown",Ze._isShowingBackdrop())}}function $(Ve,xe){1&Ve&&(_.TgZ(0,"mat-drawer-content"),_.Hsn(1,2),_.qZA())}const he=[[["mat-drawer"]],[["mat-drawer-content"]],"*"];function n(Ve,xe){if(1&Ve){const Ze=_.EpF();_.TgZ(0,"div",2),_.NdJ("click",function(){_.CHM(Ze);const ve=_.oxw();return _.KtG(ve._onBackdropClicked())}),_.qZA()}if(2&Ve){const Ze=_.oxw();_.ekj("mat-drawer-shown",Ze._isShowingBackdrop())}}function o(Ve,xe){1&Ve&&(_.TgZ(0,"mat-sidenav-content"),_.Hsn(1,2),_.qZA())}const h=[[["mat-sidenav"]],[["mat-sidenav-content"]],"*"],L={transformDrawer:(0,_e.X$)("transform",[(0,_e.SB)("open, open-instant",(0,_e.oB)({transform:"none",visibility:"visible"})),(0,_e.SB)("void",(0,_e.oB)({"box-shadow":"none",visibility:"hidden"})),(0,_e.eR)("void => open-instant",(0,_e.jt)("0ms")),(0,_e.eR)("void <=> open, open-instant => void",(0,_e.jt)("400ms cubic-bezier(0.25, 0.8, 0.25, 1)"))])};const v=new _.OlP("MAT_DRAWER_DEFAULT_AUTOSIZE",{providedIn:"root",factory:function C(){return!1}}),a=new _.OlP("MAT_DRAWER_CONTAINER");class N extends e.PQ{constructor(xe,Ze,Ie,ve,et){super(Ie,ve,et),this._changeDetectorRef=xe,this._container=Ze}ngAfterContentInit(){this._container._contentMarginChanges.subscribe(()=>{this._changeDetectorRef.markForCheck()})}}N.\u0275fac=function(xe){return new(xe||N)(_.Y36(_.sBO),_.Y36((0,_.Gpc)(()=>X)),_.Y36(_.SBq),_.Y36(e.mF),_.Y36(_.R0b))},N.\u0275cmp=_.Xpm({type:N,selectors:[["mat-drawer-content"]],hostAttrs:[1,"mat-drawer-content"],hostVars:4,hostBindings:function(xe,Ze){2&xe&&_.Udp("margin-left",Ze._container._contentMargins.left,"px")("margin-right",Ze._container._contentMargins.right,"px")},features:[_._Bn([{provide:e.PQ,useExisting:N}]),_.qOj],ngContentSelectors:ce,decls:1,vars:0,template:function(xe,Ze){1&xe&&(_.F$t(),_.Hsn(0))},encapsulation:2,changeDetection:0});class F{constructor(xe,Ze,Ie,ve,et,ht,Le,Ae){this._elementRef=xe,this._focusTrapFactory=Ze,this._focusMonitor=Ie,this._platform=ve,this._ngZone=et,this._interactivityChecker=ht,this._doc=Le,this._container=Ae,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 _.vpe(!0),this._openedStream=this.openedChange.pipe((0,M.h)(te=>te),(0,z.U)(()=>{})),this.openedStart=this._animationStarted.pipe((0,M.h)(te=>te.fromState!==te.toState&&0===te.toState.indexOf("open")),(0,I.h)(void 0)),this._closedStream=this.openedChange.pipe((0,M.h)(te=>!te),(0,z.U)(()=>{})),this.closedStart=this._animationStarted.pipe((0,M.h)(te=>te.fromState!==te.toState&&"void"===te.toState),(0,I.h)(void 0)),this._destroyed=new S.x,this.onPositionChanged=new _.vpe,this._modeChanged=new S.x,this.openedChange.subscribe(te=>{te?(this._doc&&(this._elementFocusedBeforeDrawerWasOpened=this._doc.activeElement),this._takeFocus()):this._isFocusWithinDrawer()&&this._restoreFocus(this._openedVia||"program")}),this._ngZone.runOutsideAngular(()=>{(0,A.R)(this._elementRef.nativeElement,"keydown").pipe((0,M.h)(te=>te.keyCode===k.hY&&!this.disableClose&&!(0,k.Vb)(te)),(0,W.R)(this._destroyed)).subscribe(te=>this._ngZone.run(()=>{this.close(),te.stopPropagation(),te.preventDefault()}))}),this._animationEnd.pipe((0,Z.x)((te,pe)=>te.fromState===pe.fromState&&te.toState===pe.toState)).subscribe(te=>{const{fromState:pe,toState:ee}=te;(0===ee.indexOf("open")&&"void"===pe||"void"===ee&&0===pe.indexOf("open"))&&this.openedChange.emit(this._opened)})}get position(){return this._position}set position(xe){(xe="end"===xe?"end":"start")!==this._position&&(this._isAttached&&this._updatePositionInParent(xe),this._position=xe,this.onPositionChanged.emit())}get mode(){return this._mode}set mode(xe){this._mode=xe,this._updateFocusTrapState(),this._modeChanged.next()}get disableClose(){return this._disableClose}set disableClose(xe){this._disableClose=(0,u.Ig)(xe)}get autoFocus(){return this._autoFocus??("side"===this.mode?"dialog":"first-tabbable")}set autoFocus(xe){("true"===xe||"false"===xe||null==xe)&&(xe=(0,u.Ig)(xe)),this._autoFocus=xe}get opened(){return this._opened}set opened(xe){this.toggle((0,u.Ig)(xe))}_forceFocus(xe,Ze){this._interactivityChecker.isFocusable(xe)||(xe.tabIndex=-1,this._ngZone.runOutsideAngular(()=>{const Ie=()=>{xe.removeEventListener("blur",Ie),xe.removeEventListener("mousedown",Ie),xe.removeAttribute("tabindex")};xe.addEventListener("blur",Ie),xe.addEventListener("mousedown",Ie)})),xe.focus(Ze)}_focusByCssSelector(xe,Ze){let Ie=this._elementRef.nativeElement.querySelector(xe);Ie&&this._forceFocus(Ie,Ze)}_takeFocus(){if(!this._focusTrap)return;const xe=this._elementRef.nativeElement;switch(this.autoFocus){case!1:case"dialog":return;case!0:case"first-tabbable":this._focusTrap.focusInitialElementWhenReady().then(Ze=>{!Ze&&"function"==typeof this._elementRef.nativeElement.focus&&xe.focus()});break;case"first-heading":this._focusByCssSelector('h1, h2, h3, h4, h5, h6, [role="heading"]');break;default:this._focusByCssSelector(this.autoFocus)}}_restoreFocus(xe){"dialog"!==this.autoFocus&&(this._elementFocusedBeforeDrawerWasOpened?this._focusMonitor.focusVia(this._elementFocusedBeforeDrawerWasOpened,xe):this._elementRef.nativeElement.blur(),this._elementFocusedBeforeDrawerWasOpened=null)}_isFocusWithinDrawer(){const xe=this._doc.activeElement;return!!xe&&this._elementRef.nativeElement.contains(xe)}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(xe){return this.toggle(!0,xe)}close(){return this.toggle(!1)}_closeViaBackdropClick(){return this._setOpen(!1,!0,"mouse")}toggle(xe=!this.opened,Ze){xe&&Ze&&(this._openedVia=Ze);const Ie=this._setOpen(xe,!xe&&this._isFocusWithinDrawer(),this._openedVia||"program");return xe||(this._openedVia=null),Ie}_setOpen(xe,Ze,Ie){return this._opened=xe,xe?this._animationState=this._enableAnimations?"open":"open-instant":(this._animationState="void",Ze&&this._restoreFocus(Ie)),this._updateFocusTrapState(),new Promise(ve=>{this.openedChange.pipe((0,Q.q)(1)).subscribe(et=>ve(et?"open":"close"))})}_getWidth(){return this._elementRef.nativeElement&&this._elementRef.nativeElement.offsetWidth||0}_updateFocusTrapState(){this._focusTrap&&(this._focusTrap.enabled=this.opened&&"side"!==this.mode)}_updatePositionInParent(xe){const Ze=this._elementRef.nativeElement,Ie=Ze.parentNode;"end"===xe?(this._anchor||(this._anchor=this._doc.createComment("mat-drawer-anchor"),Ie.insertBefore(this._anchor,Ze)),Ie.appendChild(Ze)):this._anchor&&this._anchor.parentNode.insertBefore(Ze,this._anchor)}}F.\u0275fac=function(xe){return new(xe||F)(_.Y36(_.SBq),_.Y36(s.qV),_.Y36(s.tE),_.Y36(p.t4),_.Y36(_.R0b),_.Y36(s.ic),_.Y36(t.K0,8),_.Y36(a,8))},F.\u0275cmp=_.Xpm({type:F,selectors:[["mat-drawer"]],viewQuery:function(xe,Ze){if(1&xe&&_.Gf(ye,5),2&xe){let Ie;_.iGM(Ie=_.CRH())&&(Ze._content=Ie.first)}},hostAttrs:["tabIndex","-1",1,"mat-drawer"],hostVars:12,hostBindings:function(xe,Ze){1&xe&&_.WFA("@transform.start",function(ve){return Ze._animationStarted.next(ve)})("@transform.done",function(ve){return Ze._animationEnd.next(ve)}),2&xe&&(_.uIk("align",null),_.d8E("@transform",Ze._animationState),_.ekj("mat-drawer-end","end"===Ze.position)("mat-drawer-over","over"===Ze.mode)("mat-drawer-push","push"===Ze.mode)("mat-drawer-side","side"===Ze.mode)("mat-drawer-opened",Ze.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:ce,decls:3,vars:0,consts:[["cdkScrollable","",1,"mat-drawer-inner-container"],["content",""]],template:function(xe,Ze){1&xe&&(_.F$t(),_.TgZ(0,"div",0,1),_.Hsn(2),_.qZA())},dependencies:[e.PQ],encapsulation:2,data:{animation:[L.transformDrawer]},changeDetection:0});class X{constructor(xe,Ze,Ie,ve,et,ht=!1,Le){this._dir=xe,this._element=Ze,this._ngZone=Ie,this._changeDetectorRef=ve,this._animationMode=Le,this._drawers=new _.n_E,this.backdropClick=new _.vpe,this._destroyed=new S.x,this._doCheckSubject=new S.x,this._contentMargins={left:null,right:null},this._contentMarginChanges=new S.x,xe&&xe.change.pipe((0,W.R)(this._destroyed)).subscribe(()=>{this._validateDrawers(),this.updateContentMargins()}),et.change().pipe((0,W.R)(this._destroyed)).subscribe(()=>this.updateContentMargins()),this._autosize=ht}get start(){return this._start}get end(){return this._end}get autosize(){return this._autosize}set autosize(xe){this._autosize=(0,u.Ig)(xe)}get hasBackdrop(){return null==this._backdropOverride?!this._start||"side"!==this._start.mode||!this._end||"side"!==this._end.mode:this._backdropOverride}set hasBackdrop(xe){this._backdropOverride=null==xe?null:(0,u.Ig)(xe)}get scrollable(){return this._userContent||this._content}ngAfterContentInit(){this._allDrawers.changes.pipe((0,ie.O)(this._allDrawers),(0,W.R)(this._destroyed)).subscribe(xe=>{this._drawers.reset(xe.filter(Ze=>!Ze._container||Ze._container===this)),this._drawers.notifyOnChanges()}),this._drawers.changes.pipe((0,ie.O)(null)).subscribe(()=>{this._validateDrawers(),this._drawers.forEach(xe=>{this._watchDrawerToggle(xe),this._watchDrawerPosition(xe),this._watchDrawerMode(xe)}),(!this._drawers.length||this._isDrawerOpen(this._start)||this._isDrawerOpen(this._end))&&this.updateContentMargins(),this._changeDetectorRef.markForCheck()}),this._ngZone.runOutsideAngular(()=>{this._doCheckSubject.pipe((0,ae.b)(10),(0,W.R)(this._destroyed)).subscribe(()=>this.updateContentMargins())})}ngOnDestroy(){this._contentMarginChanges.complete(),this._doCheckSubject.complete(),this._drawers.destroy(),this._destroyed.next(),this._destroyed.complete()}open(){this._drawers.forEach(xe=>xe.open())}close(){this._drawers.forEach(xe=>xe.close())}updateContentMargins(){let xe=0,Ze=0;if(this._left&&this._left.opened)if("side"==this._left.mode)xe+=this._left._getWidth();else if("push"==this._left.mode){const Ie=this._left._getWidth();xe+=Ie,Ze-=Ie}if(this._right&&this._right.opened)if("side"==this._right.mode)Ze+=this._right._getWidth();else if("push"==this._right.mode){const Ie=this._right._getWidth();Ze+=Ie,xe-=Ie}xe=xe||null,Ze=Ze||null,(xe!==this._contentMargins.left||Ze!==this._contentMargins.right)&&(this._contentMargins={left:xe,right:Ze},this._ngZone.run(()=>this._contentMarginChanges.next(this._contentMargins)))}ngDoCheck(){this._autosize&&this._isPushed()&&this._ngZone.runOutsideAngular(()=>this._doCheckSubject.next())}_watchDrawerToggle(xe){xe._animationStarted.pipe((0,M.h)(Ze=>Ze.fromState!==Ze.toState),(0,W.R)(this._drawers.changes)).subscribe(Ze=>{"open-instant"!==Ze.toState&&"NoopAnimations"!==this._animationMode&&this._element.nativeElement.classList.add("mat-drawer-transition"),this.updateContentMargins(),this._changeDetectorRef.markForCheck()}),"side"!==xe.mode&&xe.openedChange.pipe((0,W.R)(this._drawers.changes)).subscribe(()=>this._setContainerClass(xe.opened))}_watchDrawerPosition(xe){!xe||xe.onPositionChanged.pipe((0,W.R)(this._drawers.changes)).subscribe(()=>{this._ngZone.onMicrotaskEmpty.pipe((0,Q.q)(1)).subscribe(()=>{this._validateDrawers()})})}_watchDrawerMode(xe){xe&&xe._modeChanged.pipe((0,W.R)((0,P.T)(this._drawers.changes,this._destroyed))).subscribe(()=>{this.updateContentMargins(),this._changeDetectorRef.markForCheck()})}_setContainerClass(xe){const Ze=this._element.nativeElement.classList,Ie="mat-drawer-container-has-open";xe?Ze.add(Ie):Ze.remove(Ie)}_validateDrawers(){this._start=this._end=null,this._drawers.forEach(xe=>{"end"==xe.position?(this._end,this._end=xe):(this._start,this._start=xe)}),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(xe=>xe&&!xe.disableClose&&this._canHaveBackdrop(xe)).forEach(xe=>xe._closeViaBackdropClick())}_isShowingBackdrop(){return this._isDrawerOpen(this._start)&&this._canHaveBackdrop(this._start)||this._isDrawerOpen(this._end)&&this._canHaveBackdrop(this._end)}_canHaveBackdrop(xe){return"side"!==xe.mode||!!this._backdropOverride}_isDrawerOpen(xe){return null!=xe&&xe.opened}}X.\u0275fac=function(xe){return new(xe||X)(_.Y36(D.Is,8),_.Y36(_.SBq),_.Y36(_.R0b),_.Y36(_.sBO),_.Y36(e.rL),_.Y36(v),_.Y36(_.QbO,8))},X.\u0275cmp=_.Xpm({type:X,selectors:[["mat-drawer-container"]],contentQueries:function(xe,Ze,Ie){if(1&xe&&(_.Suo(Ie,N,5),_.Suo(Ie,F,5)),2&xe){let ve;_.iGM(ve=_.CRH())&&(Ze._content=ve.first),_.iGM(ve=_.CRH())&&(Ze._allDrawers=ve)}},viewQuery:function(xe,Ze){if(1&xe&&_.Gf(N,5),2&xe){let Ie;_.iGM(Ie=_.CRH())&&(Ze._userContent=Ie.first)}},hostAttrs:[1,"mat-drawer-container"],hostVars:2,hostBindings:function(xe,Ze){2&xe&&_.ekj("mat-drawer-container-explicit-backdrop",Ze._backdropOverride)},inputs:{autosize:"autosize",hasBackdrop:"hasBackdrop"},outputs:{backdropClick:"backdropClick"},exportAs:["matDrawerContainer"],features:[_._Bn([{provide:a,useExisting:X}])],ngContentSelectors:["mat-drawer","mat-drawer-content","*"],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(xe,Ze){1&xe&&(_.F$t(he),_.YNc(0,ue,1,2,"div",0),_.Hsn(1),_.Hsn(2,1),_.YNc(3,$,2,0,"mat-drawer-content",1)),2&xe&&(_.Q6J("ngIf",Ze.hasBackdrop),_.xp6(3),_.Q6J("ngIf",!Ze._content))},dependencies:[t.O5,N],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});class Fe extends N{constructor(xe,Ze,Ie,ve,et){super(xe,Ze,Ie,ve,et)}}Fe.\u0275fac=function(xe){return new(xe||Fe)(_.Y36(_.sBO),_.Y36((0,_.Gpc)(()=>Ke)),_.Y36(_.SBq),_.Y36(e.mF),_.Y36(_.R0b))},Fe.\u0275cmp=_.Xpm({type:Fe,selectors:[["mat-sidenav-content"]],hostAttrs:[1,"mat-drawer-content","mat-sidenav-content"],hostVars:4,hostBindings:function(xe,Ze){2&xe&&_.Udp("margin-left",Ze._container._contentMargins.left,"px")("margin-right",Ze._container._contentMargins.right,"px")},features:[_._Bn([{provide:e.PQ,useExisting:Fe}]),_.qOj],ngContentSelectors:ce,decls:1,vars:0,template:function(xe,Ze){1&xe&&(_.F$t(),_.Hsn(0))},encapsulation:2,changeDetection:0});class ke extends F{constructor(){super(...arguments),this._fixedInViewport=!1,this._fixedTopGap=0,this._fixedBottomGap=0}get fixedInViewport(){return this._fixedInViewport}set fixedInViewport(xe){this._fixedInViewport=(0,u.Ig)(xe)}get fixedTopGap(){return this._fixedTopGap}set fixedTopGap(xe){this._fixedTopGap=(0,u.su)(xe)}get fixedBottomGap(){return this._fixedBottomGap}set fixedBottomGap(xe){this._fixedBottomGap=(0,u.su)(xe)}}ke.\u0275fac=function(){let Ve;return function(Ze){return(Ve||(Ve=_.n5z(ke)))(Ze||ke)}}(),ke.\u0275cmp=_.Xpm({type:ke,selectors:[["mat-sidenav"]],hostAttrs:["tabIndex","-1",1,"mat-drawer","mat-sidenav"],hostVars:17,hostBindings:function(xe,Ze){2&xe&&(_.uIk("align",null),_.Udp("top",Ze.fixedInViewport?Ze.fixedTopGap:null,"px")("bottom",Ze.fixedInViewport?Ze.fixedBottomGap:null,"px"),_.ekj("mat-drawer-end","end"===Ze.position)("mat-drawer-over","over"===Ze.mode)("mat-drawer-push","push"===Ze.mode)("mat-drawer-side","side"===Ze.mode)("mat-drawer-opened",Ze.opened)("mat-sidenav-fixed",Ze.fixedInViewport))},inputs:{fixedInViewport:"fixedInViewport",fixedTopGap:"fixedTopGap",fixedBottomGap:"fixedBottomGap"},exportAs:["matSidenav"],features:[_.qOj],ngContentSelectors:ce,decls:3,vars:0,consts:[["cdkScrollable","",1,"mat-drawer-inner-container"],["content",""]],template:function(xe,Ze){1&xe&&(_.F$t(),_.TgZ(0,"div",0,1),_.Hsn(2),_.qZA())},dependencies:[e.PQ],encapsulation:2,data:{animation:[L.transformDrawer]},changeDetection:0});class Ke extends X{}Ke.\u0275fac=function(){let Ve;return function(Ze){return(Ve||(Ve=_.n5z(Ke)))(Ze||Ke)}}(),Ke.\u0275cmp=_.Xpm({type:Ke,selectors:[["mat-sidenav-container"]],contentQueries:function(xe,Ze,Ie){if(1&xe&&(_.Suo(Ie,Fe,5),_.Suo(Ie,ke,5)),2&xe){let ve;_.iGM(ve=_.CRH())&&(Ze._content=ve.first),_.iGM(ve=_.CRH())&&(Ze._allDrawers=ve)}},hostAttrs:[1,"mat-drawer-container","mat-sidenav-container"],hostVars:2,hostBindings:function(xe,Ze){2&xe&&_.ekj("mat-drawer-container-explicit-backdrop",Ze._backdropOverride)},exportAs:["matSidenavContainer"],features:[_._Bn([{provide:a,useExisting:Ke}]),_.qOj],ngContentSelectors:["mat-sidenav","mat-sidenav-content","*"],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(xe,Ze){1&xe&&(_.F$t(h),_.YNc(0,n,1,2,"div",0),_.Hsn(1),_.Hsn(2,1),_.YNc(3,o,2,0,"mat-sidenav-content",1)),2&xe&&(_.Q6J("ngIf",Ze.hasBackdrop),_.xp6(3),_.Q6J("ngIf",!Ze._content))},dependencies:[t.O5,Fe],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});class je{}je.\u0275fac=function(xe){return new(xe||je)},je.\u0275mod=_.oAB({type:je}),je.\u0275inj=_.cJS({imports:[t.ez,E.BQ,e.ZD,e.ZD,E.BQ]})},4714:(Ue,q,m)=>{"use strict";m.d(q,{Rr:()=>W,rP:()=>ae});var e=m(3773),t=m(2560),_=m(207),E=m(4218),s=m(8971),D=m(2508);const u=["input"],k=function(_e){return{enterDuration:_e}},S=new t.OlP("mat-slide-toggle-default-options",{providedIn:"root",factory:()=>({disableToggleValue:!1})});let A=0;const P={provide:D.JU,useExisting:(0,t.Gpc)(()=>W),multi:!0};class M{constructor(ce,ye){this.source=ce,this.checked=ye}}const z=(0,_.sb)((0,_.pj)((0,_.Kr)((0,_.Id)(class{constructor(_e){this._elementRef=_e}}))));class I extends z{constructor(ce,ye,ue,$,he,w,n){super(ce),this._focusMonitor=ye,this._changeDetectorRef=ue,this.defaults=he,this._onChange=o=>{},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=he.color||"accent",this._noopAnimations="NoopAnimations"===w,this.id=this._uniqueId=`${n}${++A}`}get required(){return this._required}set required(ce){this._required=(0,s.Ig)(ce)}get checked(){return this._checked}set checked(ce){this._checked=(0,s.Ig)(ce),this._changeDetectorRef.markForCheck()}get inputId(){return`${this.id||this._uniqueId}-input`}ngAfterContentInit(){this._focusMonitor.monitor(this._elementRef,!0).subscribe(ce=>{"keyboard"===ce||"program"===ce?this._focused=!0:ce||Promise.resolve().then(()=>{this._focused=!1,this._onTouched(),this._changeDetectorRef.markForCheck()})})}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef)}writeValue(ce){this.checked=!!ce}registerOnChange(ce){this._onChange=ce}registerOnTouched(ce){this._onTouched=ce}setDisabledState(ce){this.disabled=ce,this._changeDetectorRef.markForCheck()}toggle(){this.checked=!this.checked,this._onChange(this.checked)}_emitChangeEvent(){this._onChange(this.checked),this.change.emit(this._createChangeEvent(this.checked))}}I.\u0275fac=function(ce){t.$Z()},I.\u0275dir=t.lG2({type:I,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]});class W extends I{constructor(ce,ye,ue,$,he,w){super(ce,ye,ue,$,he,w,"mat-slide-toggle-")}_createChangeEvent(ce){return new M(this,ce)}_onChangeEvent(ce){ce.stopPropagation(),this.toggleChange.emit(),this.defaults.disableToggleValue?this._inputElement.nativeElement.checked=this.checked:(this.checked=this._inputElement.nativeElement.checked,this._emitChangeEvent())}_onInputClick(ce){ce.stopPropagation()}focus(ce,ye){ye?this._focusMonitor.focusVia(this._inputElement,ye,ce):this._inputElement.nativeElement.focus(ce)}_onLabelTextChange(){this._changeDetectorRef.detectChanges()}}W.\u0275fac=function(ce){return new(ce||W)(t.Y36(t.SBq),t.Y36(E.tE),t.Y36(t.sBO),t.$8M("tabindex"),t.Y36(S),t.Y36(t.QbO,8))},W.\u0275cmp=t.Xpm({type:W,selectors:[["mat-slide-toggle"]],viewQuery:function(ce,ye){if(1&ce&&t.Gf(u,5),2&ce){let ue;t.iGM(ue=t.CRH())&&(ye._inputElement=ue.first)}},hostAttrs:[1,"mat-slide-toggle"],hostVars:13,hostBindings:function(ce,ye){2&ce&&(t.Ikx("id",ye.id),t.uIk("tabindex",null)("aria-label",null)("aria-labelledby",null)("name",null),t.ekj("mat-checked",ye.checked)("mat-disabled",ye.disabled)("mat-slide-toggle-label-before","before"==ye.labelPosition)("_mat-animation-noopable",ye._noopAnimations))},inputs:{disabled:"disabled",disableRipple:"disableRipple",color:"color",tabIndex:"tabIndex"},exportAs:["matSlideToggle"],features:[t._Bn([P]),t.qOj],ngContentSelectors:["*"],decls:14,vars:20,consts:[[1,"mat-slide-toggle-label"],["label",""],[1,"mat-slide-toggle-bar"],["type","checkbox","role","switch",1,"mat-slide-toggle-input","cdk-visually-hidden",3,"id","required","tabIndex","checked","disabled","change","click"],["input",""],[1,"mat-slide-toggle-thumb-container"],[1,"mat-slide-toggle-thumb"],["mat-ripple","",1,"mat-slide-toggle-ripple","mat-focus-indicator",3,"matRippleTrigger","matRippleDisabled","matRippleCentered","matRippleRadius","matRippleAnimation"],[1,"mat-ripple-element","mat-slide-toggle-persistent-ripple"],[1,"mat-slide-toggle-content",3,"cdkObserveContent"],["labelContent",""],[2,"display","none"]],template:function(ce,ye){if(1&ce&&(t.F$t(),t.TgZ(0,"label",0,1)(2,"span",2)(3,"input",3,4),t.NdJ("change",function($){return ye._onChangeEvent($)})("click",function($){return ye._onInputClick($)}),t.qZA(),t.TgZ(5,"span",5),t._UZ(6,"span",6),t.TgZ(7,"span",7),t._UZ(8,"span",8),t.qZA()()(),t.TgZ(9,"span",9,10),t.NdJ("cdkObserveContent",function(){return ye._onLabelTextChange()}),t.TgZ(11,"span",11),t._uU(12,"\xa0"),t.qZA(),t.Hsn(13),t.qZA()()),2&ce){const ue=t.MAs(1),$=t.MAs(10);t.uIk("for",ye.inputId),t.xp6(2),t.ekj("mat-slide-toggle-bar-no-side-margin",!$.textContent||!$.textContent.trim()),t.xp6(1),t.Q6J("id",ye.inputId)("required",ye.required)("tabIndex",ye.tabIndex)("checked",ye.checked)("disabled",ye.disabled),t.uIk("name",ye.name)("aria-checked",ye.checked)("aria-label",ye.ariaLabel)("aria-labelledby",ye.ariaLabelledby)("aria-describedby",ye.ariaDescribedby),t.xp6(4),t.Q6J("matRippleTrigger",ue)("matRippleDisabled",ye.disableRipple||ye.disabled)("matRippleCentered",!0)("matRippleRadius",20)("matRippleAnimation",t.VKq(18,k,ye._noopAnimations?0:150))}},dependencies:[_.wG,e.wD],styles:['.mat-slide-toggle{display:inline-block;height:24px;max-width:100%;line-height:24px;white-space:nowrap;outline:none;-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-slide-toggle.mat-checked .mat-slide-toggle-thumb-container{transform:translate3d(16px, 0, 0)}[dir=rtl] .mat-slide-toggle.mat-checked .mat-slide-toggle-thumb-container{transform:translate3d(-16px, 0, 0)}.mat-slide-toggle.mat-disabled{opacity:.38}.mat-slide-toggle.mat-disabled .mat-slide-toggle-label,.mat-slide-toggle.mat-disabled .mat-slide-toggle-thumb-container{cursor:default}.mat-slide-toggle-label{-webkit-user-select:none;user-select:none;display:flex;flex:1;flex-direction:row;align-items:center;height:inherit;cursor:pointer}.mat-slide-toggle-content{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.mat-slide-toggle-label-before .mat-slide-toggle-label{order:1}.mat-slide-toggle-label-before .mat-slide-toggle-bar{order:2}[dir=rtl] .mat-slide-toggle-label-before .mat-slide-toggle-bar,.mat-slide-toggle-bar{margin-right:8px;margin-left:0}[dir=rtl] .mat-slide-toggle-bar,.mat-slide-toggle-label-before .mat-slide-toggle-bar{margin-left:8px;margin-right:0}.mat-slide-toggle-bar-no-side-margin{margin-left:0;margin-right:0}.mat-slide-toggle-thumb-container{position:absolute;z-index:1;width:20px;height:20px;top:-3px;left:0;transform:translate3d(0, 0, 0);transition:all 80ms linear;transition-property:transform}._mat-animation-noopable .mat-slide-toggle-thumb-container{transition:none}[dir=rtl] .mat-slide-toggle-thumb-container{left:auto;right:0}.mat-slide-toggle-thumb{height:20px;width:20px;border-radius:50%;display:block}.mat-slide-toggle-bar{position:relative;width:36px;height:14px;flex-shrink:0;border-radius:8px}.mat-slide-toggle-input{bottom:0;left:10px}[dir=rtl] .mat-slide-toggle-input{left:auto;right:10px}.mat-slide-toggle-bar,.mat-slide-toggle-thumb{transition:all 80ms linear;transition-property:background-color;transition-delay:50ms}._mat-animation-noopable .mat-slide-toggle-bar,._mat-animation-noopable .mat-slide-toggle-thumb{transition:none}.mat-slide-toggle .mat-slide-toggle-ripple{position:absolute;top:calc(50% - 20px);left:calc(50% - 20px);height:40px;width:40px;z-index:1;pointer-events:none}.mat-slide-toggle .mat-slide-toggle-ripple .mat-ripple-element:not(.mat-slide-toggle-persistent-ripple){opacity:.12}.mat-slide-toggle-persistent-ripple{width:100%;height:100%;transform:none}.mat-slide-toggle-bar:hover .mat-slide-toggle-persistent-ripple{opacity:.04}.mat-slide-toggle:not(.mat-disabled).cdk-keyboard-focused .mat-slide-toggle-persistent-ripple{opacity:.12}.mat-slide-toggle-persistent-ripple,.mat-slide-toggle.mat-disabled .mat-slide-toggle-bar:hover .mat-slide-toggle-persistent-ripple{opacity:0}@media(hover: none){.mat-slide-toggle-bar:hover .mat-slide-toggle-persistent-ripple{display:none}}.mat-slide-toggle-input:focus~.mat-slide-toggle-thumb-container .mat-focus-indicator::before{content:""}.cdk-high-contrast-active .mat-slide-toggle-thumb,.cdk-high-contrast-active .mat-slide-toggle-bar{border:1px solid}'],encapsulation:2,changeDetection:0});const Z={provide:D.Cf,useExisting:(0,t.Gpc)(()=>Q),multi:!0};class Q extends D.Zs{}Q.\u0275fac=function(){let _e;return function(ye){return(_e||(_e=t.n5z(Q)))(ye||Q)}}(),Q.\u0275dir=t.lG2({type:Q,selectors:[["mat-slide-toggle","required","","formControlName",""],["mat-slide-toggle","required","","formControl",""],["mat-slide-toggle","required","","ngModel",""]],features:[t._Bn([Z]),t.qOj]});class ie{}ie.\u0275fac=function(ce){return new(ce||ie)},ie.\u0275mod=t.oAB({type:ie}),ie.\u0275inj=t.cJS({});class ae{}ae.\u0275fac=function(ce){return new(ce||ae)},ae.\u0275mod=t.oAB({type:ae}),ae.\u0275inj=t.cJS({imports:[ie,_.si,_.BQ,e.Q8,ie,_.BQ]})},930:(Ue,q,m)=>{"use strict";m.d(q,{Ve:()=>$,ZX:()=>ue,ux:()=>n});var e=m(5895),t=m(7520),_=m(4666),E=m(2560),s=m(207),D=m(4522),u=m(253),k=m(9107),p=m(9295),S=m(8951),A=m(4851),P=m(4218),M=m(3278);function z(o,h){if(1&o){const d=E.EpF();E.TgZ(0,"div",2)(1,"button",3),E.NdJ("click",function(){E.CHM(d);const L=E.oxw();return E.KtG(L.action())}),E._uU(2),E.qZA()()}if(2&o){const d=E.oxw();E.xp6(2),E.Oqu(d.data.action)}}function I(o,h){}const W=new E.OlP("MatSnackBarData");class Z{constructor(){this.politeness="assertive",this.announcementMessage="",this.duration=0,this.data=null,this.horizontalPosition="center",this.verticalPosition="bottom"}}const Q=Math.pow(2,31)-1;class ie{constructor(h,d){this._overlayRef=d,this._afterDismissed=new u.x,this._afterOpened=new u.x,this._onAction=new u.x,this._dismissedByAction=!1,this.containerInstance=h,h._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(h){this._durationTimeoutId=setTimeout(()=>this.dismiss(),Math.min(h,Q))}_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}}class ae{constructor(h,d){this.snackBarRef=h,this.data=d}action(){this.snackBarRef.dismissWithAction()}get hasAction(){return!!this.data.action}}ae.\u0275fac=function(h){return new(h||ae)(E.Y36(ie),E.Y36(W))},ae.\u0275cmp=E.Xpm({type:ae,selectors:[["simple-snack-bar"]],hostAttrs:[1,"mat-simple-snackbar"],decls:3,vars:2,consts:[[1,"mat-simple-snack-bar-content"],["class","mat-simple-snackbar-action",4,"ngIf"],[1,"mat-simple-snackbar-action"],["mat-button","",3,"click"]],template:function(h,d){1&h&&(E.TgZ(0,"span",0),E._uU(1),E.qZA(),E.YNc(2,z,3,1,"div",1)),2&h&&(E.xp6(1),E.Oqu(d.data.message),E.xp6(1),E.Q6J("ngIf",d.hasAction))},dependencies:[_.O5,D.lW],styles:[".mat-simple-snackbar{display:flex;justify-content:space-between;align-items:center;line-height:20px;opacity:1}.mat-simple-snackbar-action{flex-shrink:0;margin:-8px -8px -8px 8px}.mat-simple-snackbar-action button{max-height:36px;min-width:0}[dir=rtl] .mat-simple-snackbar-action{margin-left:-8px;margin-right:8px}.mat-simple-snack-bar-content{overflow:hidden;text-overflow:ellipsis}"],encapsulation:2,changeDetection:0});const _e={snackBarState:(0,A.X$)("state",[(0,A.SB)("void, hidden",(0,A.oB)({transform:"scale(0.8)",opacity:0})),(0,A.SB)("visible",(0,A.oB)({transform:"scale(1)",opacity:1})),(0,A.eR)("* => visible",(0,A.jt)("150ms cubic-bezier(0, 0, 0.2, 1)")),(0,A.eR)("* => void, * => hidden",(0,A.jt)("75ms cubic-bezier(0.4, 0.0, 1, 1)",(0,A.oB)({opacity:0})))])};class ce extends t.en{constructor(h,d,y,L,B){super(),this._ngZone=h,this._elementRef=d,this._changeDetectorRef=y,this._platform=L,this.snackBarConfig=B,this._announceDelay=150,this._destroyed=!1,this._onAnnounce=new u.x,this._onExit=new u.x,this._onEnter=new u.x,this._animationState="void",this.attachDomPortal=v=>{this._assertNotAttached();const a=this._portalOutlet.attachDomPortal(v);return this._afterPortalAttached(),a},"assertive"!==B.politeness||B.announcementMessage?"off"===B.politeness?this._live="off":this._live="polite":this._live="assertive",this._platform.FIREFOX&&("polite"===this._live&&(this._role="status"),"assertive"===this._live&&(this._role="alert"))}attachComponentPortal(h){this._assertNotAttached();const d=this._portalOutlet.attachComponentPortal(h);return this._afterPortalAttached(),d}attachTemplatePortal(h){this._assertNotAttached();const d=this._portalOutlet.attachTemplatePortal(h);return this._afterPortalAttached(),d}onAnimationEnd(h){const{fromState:d,toState:y}=h;if(("void"===y&&"void"!==d||"hidden"===y)&&this._completeExit(),"visible"===y){const L=this._onEnter;this._ngZone.run(()=>{L.next(),L.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 h=this._elementRef.nativeElement,d=this.snackBarConfig.panelClass;d&&(Array.isArray(d)?d.forEach(y=>h.classList.add(y)):h.classList.add(d))}_assertNotAttached(){this._portalOutlet.hasAttached()}_screenReaderAnnounce(){this._announceTimeoutId||this._ngZone.runOutsideAngular(()=>{this._announceTimeoutId=setTimeout(()=>{const h=this._elementRef.nativeElement.querySelector("[aria-hidden]"),d=this._elementRef.nativeElement.querySelector("[aria-live]");if(h&&d){let y=null;this._platform.isBrowser&&document.activeElement instanceof HTMLElement&&h.contains(document.activeElement)&&(y=document.activeElement),h.removeAttribute("aria-hidden"),d.appendChild(h),y?.focus(),this._onAnnounce.next(),this._onAnnounce.complete()}},this._announceDelay)})}}ce.\u0275fac=function(h){return new(h||ce)(E.Y36(E.R0b),E.Y36(E.SBq),E.Y36(E.sBO),E.Y36(k.t4),E.Y36(Z))},ce.\u0275dir=E.lG2({type:ce,viewQuery:function(h,d){if(1&h&&E.Gf(t.Pl,7),2&h){let y;E.iGM(y=E.CRH())&&(d._portalOutlet=y.first)}},features:[E.qOj]});class ye extends ce{_afterPortalAttached(){super._afterPortalAttached(),"center"===this.snackBarConfig.horizontalPosition&&this._elementRef.nativeElement.classList.add("mat-snack-bar-center"),"top"===this.snackBarConfig.verticalPosition&&this._elementRef.nativeElement.classList.add("mat-snack-bar-top")}}ye.\u0275fac=function(){let o;return function(d){return(o||(o=E.n5z(ye)))(d||ye)}}(),ye.\u0275cmp=E.Xpm({type:ye,selectors:[["snack-bar-container"]],hostAttrs:[1,"mat-snack-bar-container"],hostVars:1,hostBindings:function(h,d){1&h&&E.WFA("@state.done",function(L){return d.onAnimationEnd(L)}),2&h&&E.d8E("@state",d._animationState)},features:[E.qOj],decls:3,vars:2,consts:[["aria-hidden","true"],["cdkPortalOutlet",""]],template:function(h,d){1&h&&(E.TgZ(0,"div",0),E.YNc(1,I,0,0,"ng-template",1),E.qZA(),E._UZ(2,"div")),2&h&&(E.xp6(2),E.uIk("aria-live",d._live)("role",d._role))},dependencies:[t.Pl],styles:[".mat-snack-bar-container{border-radius:4px;box-sizing:border-box;display:block;margin:24px;max-width:33vw;min-width:344px;padding:14px 16px;min-height:48px;transform-origin:center}.cdk-high-contrast-active .mat-snack-bar-container{border:solid 1px}.mat-snack-bar-handset{width:100%}.mat-snack-bar-handset .mat-snack-bar-container{margin:8px;max-width:100%;min-width:0;width:100%}"],encapsulation:2,data:{animation:[_e.snackBarState]}});class ue{}ue.\u0275fac=function(h){return new(h||ue)},ue.\u0275mod=E.oAB({type:ue}),ue.\u0275inj=E.cJS({imports:[e.U8,t.eL,_.ez,D.ot,s.BQ,s.BQ]});const $=new E.OlP("mat-snack-bar-default-options",{providedIn:"root",factory:function he(){return new Z}});class w{constructor(h,d,y,L,B,v){this._overlay=h,this._live=d,this._injector=y,this._breakpointObserver=L,this._parentSnackBar=B,this._defaultConfig=v,this._snackBarRefAtThisLevel=null}get _openedSnackBarRef(){const h=this._parentSnackBar;return h?h._openedSnackBarRef:this._snackBarRefAtThisLevel}set _openedSnackBarRef(h){this._parentSnackBar?this._parentSnackBar._openedSnackBarRef=h:this._snackBarRefAtThisLevel=h}openFromComponent(h,d){return this._attach(h,d)}openFromTemplate(h,d){return this._attach(h,d)}open(h,d="",y){const L={...this._defaultConfig,...y};return L.data={message:h,action:d},L.announcementMessage===h&&(L.announcementMessage=void 0),this.openFromComponent(this.simpleSnackBarComponent,L)}dismiss(){this._openedSnackBarRef&&this._openedSnackBarRef.dismiss()}ngOnDestroy(){this._snackBarRefAtThisLevel&&this._snackBarRefAtThisLevel.dismiss()}_attachSnackBarContainer(h,d){const y=d&&d.viewContainerRef&&d.viewContainerRef.injector,L=E.zs3.create({parent:y||this._injector,providers:[{provide:Z,useValue:d}]}),B=new t.C5(this.snackBarContainerComponent,d.viewContainerRef,L),v=h.attach(B);return v.instance.snackBarConfig=d,v.instance}_attach(h,d){const y={...new Z,...this._defaultConfig,...d},L=this._createOverlay(y),B=this._attachSnackBarContainer(L,y),v=new ie(B,L);if(h instanceof E.Rgc){const a=new t.UE(h,null,{$implicit:y.data,snackBarRef:v});v.instance=B.attachTemplatePortal(a)}else{const a=this._createInjector(y,v),C=new t.C5(h,void 0,a),N=B.attachComponentPortal(C);v.instance=N.instance}return this._breakpointObserver.observe(M.u3.HandsetPortrait).pipe((0,S.R)(L.detachments())).subscribe(a=>{L.overlayElement.classList.toggle(this.handsetCssClass,a.matches)}),y.announcementMessage&&B._onAnnounce.subscribe(()=>{this._live.announce(y.announcementMessage,y.politeness)}),this._animateSnackBar(v,y),this._openedSnackBarRef=v,this._openedSnackBarRef}_animateSnackBar(h,d){h.afterDismissed().subscribe(()=>{this._openedSnackBarRef==h&&(this._openedSnackBarRef=null),d.announcementMessage&&this._live.clear()}),this._openedSnackBarRef?(this._openedSnackBarRef.afterDismissed().subscribe(()=>{h.containerInstance.enter()}),this._openedSnackBarRef.dismiss()):h.containerInstance.enter(),d.duration&&d.duration>0&&h.afterOpened().subscribe(()=>h._dismissAfter(d.duration))}_createOverlay(h){const d=new e.X_;d.direction=h.direction;let y=this._overlay.position().global();const L="rtl"===h.direction,B="left"===h.horizontalPosition||"start"===h.horizontalPosition&&!L||"end"===h.horizontalPosition&&L,v=!B&&"center"!==h.horizontalPosition;return B?y.left("0"):v?y.right("0"):y.centerHorizontally(),"top"===h.verticalPosition?y.top("0"):y.bottom("0"),d.positionStrategy=y,this._overlay.create(d)}_createInjector(h,d){const y=h&&h.viewContainerRef&&h.viewContainerRef.injector;return E.zs3.create({parent:y||this._injector,providers:[{provide:ie,useValue:d},{provide:W,useValue:h.data}]})}}w.\u0275fac=function(h){return new(h||w)(E.LFG(e.aV),E.LFG(P.Kd),E.LFG(E.zs3),E.LFG(M.Yg),E.LFG(w,12),E.LFG($))},w.\u0275prov=E.Yz7({token:w,factory:w.\u0275fac});class n extends w{constructor(h,d,y,L,B,v){super(h,d,y,L,B,v),this.simpleSnackBarComponent=ae,this.snackBarContainerComponent=ye,this.handsetCssClass="mat-snack-bar-handset"}}n.\u0275fac=function(h){return new(h||n)(E.LFG(e.aV),E.LFG(P.Kd),E.LFG(E.zs3),E.LFG(M.Yg),E.LFG(n,12),E.LFG($))},n.\u0275prov=E.Yz7({token:n,factory:n.\u0275fac,providedIn:ue})},2197:(Ue,q,m)=>{"use strict";m.d(q,{JX:()=>n,YE:()=>ie,nU:()=>w});var e=m(2560),t=m(4218),_=m(8971),E=m(8456),s=m(207),D=m(253),u=m(6646),k=m(4851),p=m(4666);function A(o,h){if(1&o){const d=e.EpF();e.TgZ(0,"div",3),e.NdJ("@arrowPosition.start",function(){e.CHM(d);const L=e.oxw();return e.KtG(L._disableViewStateAnimation=!0)})("@arrowPosition.done",function(){e.CHM(d);const L=e.oxw();return e.KtG(L._disableViewStateAnimation=!1)}),e._UZ(1,"div",4),e.TgZ(2,"div",5),e._UZ(3,"div",6)(4,"div",7)(5,"div",8),e.qZA()()}if(2&o){const d=e.oxw();e.Q6J("@arrowOpacity",d._getArrowViewState())("@arrowPosition",d._getArrowViewState())("@allowChildren",d._getArrowDirectionState()),e.xp6(2),e.Q6J("@indicator",d._getArrowDirectionState()),e.xp6(1),e.Q6J("@leftPointer",d._getArrowDirectionState()),e.xp6(1),e.Q6J("@rightPointer",d._getArrowDirectionState())}}const Z=new e.OlP("MAT_SORT_DEFAULT_OPTIONS"),Q=(0,s.dB)((0,s.Id)(class{}));class ie extends Q{constructor(h){super(),this._defaultOptions=h,this.sortables=new Map,this._stateChanges=new D.x,this.start="asc",this._direction="",this.sortChange=new e.vpe}get direction(){return this._direction}set direction(h){this._direction=h}get disableClear(){return this._disableClear}set disableClear(h){this._disableClear=(0,_.Ig)(h)}register(h){this.sortables.set(h.id,h)}deregister(h){this.sortables.delete(h.id)}sort(h){this.active!=h.id?(this.active=h.id,this.direction=h.start?h.start:this.start):this.direction=this.getNextSortDirection(h),this.sortChange.emit({active:this.active,direction:this.direction})}getNextSortDirection(h){if(!h)return"";const d=h?.disableClear??this.disableClear??!!this._defaultOptions?.disableClear;let y=function ae(o,h){let d=["asc","desc"];return"desc"==o&&d.reverse(),h||d.push(""),d}(h.start||this.start,d),L=y.indexOf(this.direction)+1;return L>=y.length&&(L=0),y[L]}ngOnInit(){this._markInitialized()}ngOnChanges(){this._stateChanges.next()}ngOnDestroy(){this._stateChanges.complete()}}ie.\u0275fac=function(h){return new(h||ie)(e.Y36(Z,8))},ie.\u0275dir=e.lG2({type:ie,selectors:[["","matSort",""]],hostAttrs:[1,"mat-sort"],inputs:{disabled:["matSortDisabled","disabled"],active:["matSortActive","active"],start:["matSortStart","start"],direction:["matSortDirection","direction"],disableClear:["matSortDisableClear","disableClear"]},outputs:{sortChange:"matSortChange"},exportAs:["matSort"],features:[e.qOj,e.TTD]});const _e=s.mZ.ENTERING+" "+s.yN.STANDARD_CURVE,ce={indicator:(0,k.X$)("indicator",[(0,k.SB)("active-asc, asc",(0,k.oB)({transform:"translateY(0px)"})),(0,k.SB)("active-desc, desc",(0,k.oB)({transform:"translateY(10px)"})),(0,k.eR)("active-asc <=> active-desc",(0,k.jt)(_e))]),leftPointer:(0,k.X$)("leftPointer",[(0,k.SB)("active-asc, asc",(0,k.oB)({transform:"rotate(-45deg)"})),(0,k.SB)("active-desc, desc",(0,k.oB)({transform:"rotate(45deg)"})),(0,k.eR)("active-asc <=> active-desc",(0,k.jt)(_e))]),rightPointer:(0,k.X$)("rightPointer",[(0,k.SB)("active-asc, asc",(0,k.oB)({transform:"rotate(45deg)"})),(0,k.SB)("active-desc, desc",(0,k.oB)({transform:"rotate(-45deg)"})),(0,k.eR)("active-asc <=> active-desc",(0,k.jt)(_e))]),arrowOpacity:(0,k.X$)("arrowOpacity",[(0,k.SB)("desc-to-active, asc-to-active, active",(0,k.oB)({opacity:1})),(0,k.SB)("desc-to-hint, asc-to-hint, hint",(0,k.oB)({opacity:.54})),(0,k.SB)("hint-to-desc, active-to-desc, desc, hint-to-asc, active-to-asc, asc, void",(0,k.oB)({opacity:0})),(0,k.eR)("* => asc, * => desc, * => active, * => hint, * => void",(0,k.jt)("0ms")),(0,k.eR)("* <=> *",(0,k.jt)(_e))]),arrowPosition:(0,k.X$)("arrowPosition",[(0,k.eR)("* => desc-to-hint, * => desc-to-active",(0,k.jt)(_e,(0,k.F4)([(0,k.oB)({transform:"translateY(-25%)"}),(0,k.oB)({transform:"translateY(0)"})]))),(0,k.eR)("* => hint-to-desc, * => active-to-desc",(0,k.jt)(_e,(0,k.F4)([(0,k.oB)({transform:"translateY(0)"}),(0,k.oB)({transform:"translateY(25%)"})]))),(0,k.eR)("* => asc-to-hint, * => asc-to-active",(0,k.jt)(_e,(0,k.F4)([(0,k.oB)({transform:"translateY(25%)"}),(0,k.oB)({transform:"translateY(0)"})]))),(0,k.eR)("* => hint-to-asc, * => active-to-asc",(0,k.jt)(_e,(0,k.F4)([(0,k.oB)({transform:"translateY(0)"}),(0,k.oB)({transform:"translateY(-25%)"})]))),(0,k.SB)("desc-to-hint, asc-to-hint, hint, desc-to-active, asc-to-active, active",(0,k.oB)({transform:"translateY(0)"})),(0,k.SB)("hint-to-desc, active-to-desc, desc",(0,k.oB)({transform:"translateY(-25%)"})),(0,k.SB)("hint-to-asc, active-to-asc, asc",(0,k.oB)({transform:"translateY(25%)"}))]),allowChildren:(0,k.X$)("allowChildren",[(0,k.eR)("* <=> *",[(0,k.IO)("@*",(0,k.pV)(),{optional:!0})])])};class ye{constructor(){this.changes=new D.x}}ye.\u0275fac=function(h){return new(h||ye)},ye.\u0275prov=e.Yz7({token:ye,factory:ye.\u0275fac,providedIn:"root"});const $={provide:ye,deps:[[new e.FiY,new e.tp0,ye]],useFactory:function ue(o){return o||new ye}},he=(0,s.Id)(class{});class w extends he{constructor(h,d,y,L,B,v,a,C){super(),this._intl=h,this._changeDetectorRef=d,this._sort=y,this._columnDef=L,this._focusMonitor=B,this._elementRef=v,this._ariaDescriber=a,this._showIndicatorHint=!1,this._viewState={},this._arrowDirection="",this._disableViewStateAnimation=!1,this.arrowPosition="after",this._sortActionDescription="Sort",C?.arrowPosition&&(this.arrowPosition=C?.arrowPosition),this._handleStateChanges()}get sortActionDescription(){return this._sortActionDescription}set sortActionDescription(h){this._updateSortActionDescription(h)}get disableClear(){return this._disableClear}set disableClear(h){this._disableClear=(0,_.Ig)(h)}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(h=>{const d=!!h;d!==this._showIndicatorHint&&(this._setIndicatorHintVisible(d),this._changeDetectorRef.markForCheck())})}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef),this._sort.deregister(this),this._rerenderSubscription.unsubscribe()}_setIndicatorHintVisible(h){this._isDisabled()&&h||(this._showIndicatorHint=h,this._isSorted()||(this._updateArrowDirection(),this._showIndicatorHint?this._setAnimationTransitionState({fromState:this._arrowDirection,toState:"hint"}):this._setAnimationTransitionState({fromState:"hint",toState:this._arrowDirection})))}_setAnimationTransitionState(h){this._viewState=h||{},this._disableViewStateAnimation&&(this._viewState={toState:h.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(h){!this._isDisabled()&&(h.keyCode===E.L_||h.keyCode===E.K5)&&(h.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 h=this._viewState.fromState;return(h?`${h}-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(h){this._sortButton&&(this._ariaDescriber?.removeDescription(this._sortButton,this._sortActionDescription),this._ariaDescriber?.describe(this._sortButton,h)),this._sortActionDescription=h}_handleStateChanges(){this._rerenderSubscription=(0,u.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()})}}w.\u0275fac=function(h){return new(h||w)(e.Y36(ye),e.Y36(e.sBO),e.Y36(ie,8),e.Y36("MAT_SORT_HEADER_COLUMN_DEF",8),e.Y36(t.tE),e.Y36(e.SBq),e.Y36(t.$s,8),e.Y36(Z,8))},w.\u0275cmp=e.Xpm({type:w,selectors:[["","mat-sort-header",""]],hostAttrs:[1,"mat-sort-header"],hostVars:3,hostBindings:function(h,d){1&h&&e.NdJ("click",function(){return d._handleClick()})("keydown",function(L){return d._handleKeydown(L)})("mouseenter",function(){return d._setIndicatorHintVisible(!0)})("mouseleave",function(){return d._setIndicatorHintVisible(!1)}),2&h&&(e.uIk("aria-sort",d._getAriaSortAttribute()),e.ekj("mat-sort-header-disabled",d._isDisabled()))},inputs:{disabled:"disabled",id:["mat-sort-header","id"],arrowPosition:"arrowPosition",start:"start",sortActionDescription:"sortActionDescription",disableClear:"disableClear"},exportAs:["matSortHeader"],features:[e.qOj],attrs:["mat-sort-header",""],ngContentSelectors:["*"],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(h,d){1&h&&(e.F$t(),e.TgZ(0,"div",0)(1,"div",1),e.Hsn(2),e.qZA(),e.YNc(3,A,6,6,"div",2),e.qZA()),2&h&&(e.ekj("mat-sort-header-sorted",d._isSorted())("mat-sort-header-position-before","before"===d.arrowPosition),e.uIk("tabindex",d._isDisabled()?null:0)("role",d._isDisabled()?null:"button"),e.xp6(3),e.Q6J("ngIf",d._renderArrow()))},dependencies:[p.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:[ce.indicator,ce.leftPointer,ce.rightPointer,ce.arrowOpacity,ce.arrowPosition,ce.allowChildren]},changeDetection:0});class n{}n.\u0275fac=function(h){return new(h||n)},n.\u0275mod=e.oAB({type:n}),n.\u0275inj=e.cJS({providers:[$],imports:[p.ez,s.BQ]})},4193:(Ue,q,m)=>{"use strict";m.d(q,{C0:()=>Le,Ic:()=>te,T5:()=>ee,VY:()=>Fe,Vq:()=>Ae,fd:()=>pe,z9:()=>et});var e=m(7520),t=m(1861),_=m(4666),E=m(2560),s=m(4522),D=m(207),u=m(7822),k=m(4218),p=m(253),S=m(7714),A=m(2867),P=m(2673),M=m(635),z=m(4874),I=m(8951),W=m(8977),Z=m(4851);function Q(H,j){if(1&H&&E.GkF(0,8),2&H){const Oe=E.oxw();E.Q6J("ngTemplateOutlet",Oe.iconOverrides[Oe.state])("ngTemplateOutletContext",Oe._getIconContext())}}function ie(H,j){if(1&H&&(E.TgZ(0,"span",13),E._uU(1),E.qZA()),2&H){const Oe=E.oxw(2);E.xp6(1),E.Oqu(Oe._getDefaultTextForState(Oe.state))}}function ae(H,j){if(1&H&&(E.TgZ(0,"span",14),E._uU(1),E.qZA()),2&H){const Oe=E.oxw(2);E.xp6(1),E.Oqu(Oe._intl.completedLabel)}}function _e(H,j){if(1&H&&(E.TgZ(0,"span",14),E._uU(1),E.qZA()),2&H){const Oe=E.oxw(2);E.xp6(1),E.Oqu(Oe._intl.editableLabel)}}function ce(H,j){if(1&H&&(E.TgZ(0,"mat-icon",13),E._uU(1),E.qZA()),2&H){const Oe=E.oxw(2);E.xp6(1),E.Oqu(Oe._getDefaultTextForState(Oe.state))}}function ye(H,j){if(1&H&&(E.ynx(0,9),E.YNc(1,ie,2,1,"span",10),E.YNc(2,ae,2,1,"span",11),E.YNc(3,_e,2,1,"span",11),E.YNc(4,ce,2,1,"mat-icon",12),E.BQk()),2&H){const Oe=E.oxw();E.Q6J("ngSwitch",Oe.state),E.xp6(1),E.Q6J("ngSwitchCase","number"),E.xp6(1),E.Q6J("ngIf","done"===Oe.state),E.xp6(1),E.Q6J("ngIf","edit"===Oe.state)}}function ue(H,j){if(1&H&&(E.TgZ(0,"div",15),E.GkF(1,16),E.qZA()),2&H){const Oe=E.oxw();E.xp6(1),E.Q6J("ngTemplateOutlet",Oe._templateLabel().template)}}function $(H,j){if(1&H&&(E.TgZ(0,"div",15),E._uU(1),E.qZA()),2&H){const Oe=E.oxw();E.xp6(1),E.Oqu(Oe.label)}}function he(H,j){if(1&H&&(E.TgZ(0,"div",17),E._uU(1),E.qZA()),2&H){const Oe=E.oxw();E.xp6(1),E.Oqu(Oe._intl.optionalLabel)}}function w(H,j){if(1&H&&(E.TgZ(0,"div",18),E._uU(1),E.qZA()),2&H){const Oe=E.oxw();E.xp6(1),E.Oqu(Oe.errorMessage)}}function n(H,j){}function o(H,j){if(1&H&&(E.Hsn(0),E.YNc(1,n,0,0,"ng-template",0)),2&H){const Oe=E.oxw();E.xp6(1),E.Q6J("cdkPortalOutlet",Oe._portal)}}function d(H,j){1&H&&E._UZ(0,"div",11)}const y=function(H,j){return{step:H,i:j}};function L(H,j){if(1&H&&(E.ynx(0),E.GkF(1,9),E.YNc(2,d,1,0,"div",10),E.BQk()),2&H){const Oe=j.$implicit,Re=j.index,le=j.last;E.oxw(2);const _t=E.MAs(4);E.xp6(1),E.Q6J("ngTemplateOutlet",_t)("ngTemplateOutletContext",E.WLB(3,y,Oe,Re)),E.xp6(1),E.Q6J("ngIf",!le)}}const B=function(H){return{animationDuration:H}},v=function(H,j){return{value:H,params:j}};function a(H,j){if(1&H){const Oe=E.EpF();E.TgZ(0,"div",12),E.NdJ("@horizontalStepTransition.done",function(le){E.CHM(Oe);const _t=E.oxw(2);return E.KtG(_t._animationDone.next(le))}),E.GkF(1,13),E.qZA()}if(2&H){const Oe=j.$implicit,Re=j.index,le=E.oxw(2);E.ekj("mat-horizontal-stepper-content-inactive",le.selectedIndex!==Re),E.Q6J("@horizontalStepTransition",E.WLB(8,v,le._getAnimationDirection(Re),E.VKq(6,B,le._getAnimationDuration())))("id",le._getStepContentId(Re)),E.uIk("aria-labelledby",le._getStepLabelId(Re)),E.xp6(1),E.Q6J("ngTemplateOutlet",Oe.content)}}function C(H,j){if(1&H&&(E.TgZ(0,"div",4)(1,"div",5),E.YNc(2,L,3,6,"ng-container",6),E.qZA(),E.TgZ(3,"div",7),E.YNc(4,a,2,11,"div",8),E.qZA()()),2&H){const Oe=E.oxw();E.xp6(2),E.Q6J("ngForOf",Oe.steps),E.xp6(2),E.Q6J("ngForOf",Oe.steps)}}function N(H,j){if(1&H){const Oe=E.EpF();E.TgZ(0,"div",15),E.GkF(1,9),E.TgZ(2,"div",16)(3,"div",17),E.NdJ("@verticalStepTransition.done",function(le){E.CHM(Oe);const _t=E.oxw(2);return E.KtG(_t._animationDone.next(le))}),E.TgZ(4,"div",18),E.GkF(5,13),E.qZA()()()()}if(2&H){const Oe=j.$implicit,Re=j.index,le=j.last,_t=E.oxw(2),it=E.MAs(4);E.xp6(1),E.Q6J("ngTemplateOutlet",it)("ngTemplateOutletContext",E.WLB(10,y,Oe,Re)),E.xp6(1),E.ekj("mat-stepper-vertical-line",!le),E.xp6(1),E.ekj("mat-vertical-stepper-content-inactive",_t.selectedIndex!==Re),E.Q6J("@verticalStepTransition",E.WLB(15,v,_t._getAnimationDirection(Re),E.VKq(13,B,_t._getAnimationDuration())))("id",_t._getStepContentId(Re)),E.uIk("aria-labelledby",_t._getStepLabelId(Re)),E.xp6(2),E.Q6J("ngTemplateOutlet",Oe.content)}}function F(H,j){if(1&H&&(E.ynx(0),E.YNc(1,N,6,18,"div",14),E.BQk()),2&H){const Oe=E.oxw();E.xp6(1),E.Q6J("ngForOf",Oe.steps)}}function X(H,j){if(1&H){const Oe=E.EpF();E.TgZ(0,"mat-step-header",19),E.NdJ("click",function(){const _t=E.CHM(Oe).step;return E.KtG(_t.select())})("keydown",function(le){E.CHM(Oe);const _t=E.oxw();return E.KtG(_t._onKeydown(le))}),E.qZA()}if(2&H){const Oe=j.step,Re=j.i,le=E.oxw();E.ekj("mat-horizontal-stepper-header","horizontal"===le.orientation)("mat-vertical-stepper-header","vertical"===le.orientation),E.Q6J("tabIndex",le._getFocusIndex()===Re?0:-1)("id",le._getStepLabelId(Re))("index",Re)("state",le._getIndicatorType(Re,Oe.state))("label",Oe.stepLabel||Oe.label)("selected",le.selectedIndex===Re)("active",le._stepIsNavigable(Re,Oe))("optional",Oe.optional)("errorMessage",Oe.errorMessage)("iconOverrides",le._iconOverrides)("disableRipple",le.disableRipple||!le._stepIsNavigable(Re,Oe))("color",Oe.color||le.color),E.uIk("aria-posinset",Re+1)("aria-setsize",le.steps.length)("aria-controls",le._getStepContentId(Re))("aria-selected",le.selectedIndex==Re)("aria-label",Oe.ariaLabel||null)("aria-labelledby",!Oe.ariaLabel&&Oe.ariaLabelledby?Oe.ariaLabelledby:null)("aria-disabled",!le._stepIsNavigable(Re,Oe)||null)}}class Fe extends t.u6{}Fe.\u0275fac=function(){let H;return function(Oe){return(H||(H=E.n5z(Fe)))(Oe||Fe)}}(),Fe.\u0275dir=E.lG2({type:Fe,selectors:[["","matStepLabel",""]],features:[E.qOj]});class ke{constructor(){this.changes=new p.x,this.optionalLabel="Optional",this.completedLabel="Completed",this.editableLabel="Editable"}}ke.\u0275fac=function(j){return new(j||ke)},ke.\u0275prov=E.Yz7({token:ke,factory:ke.\u0275fac,providedIn:"root"});const je={provide:ke,deps:[[new E.FiY,new E.tp0,ke]],useFactory:function Ke(H){return H||new ke}},Ve=(0,D.pj)(class extends t.KL{constructor(j){super(j)}},"primary");class xe extends Ve{constructor(j,Oe,Re,le){super(Re),this._intl=j,this._focusMonitor=Oe,this._intlSubscription=j.changes.subscribe(()=>le.markForCheck())}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0)}ngOnDestroy(){this._intlSubscription.unsubscribe(),this._focusMonitor.stopMonitoring(this._elementRef)}focus(j,Oe){j?this._focusMonitor.focusVia(this._elementRef,j,Oe):this._elementRef.nativeElement.focus(Oe)}_stringLabel(){return this.label instanceof Fe?null:this.label}_templateLabel(){return this.label instanceof Fe?this.label:null}_getHostElement(){return this._elementRef.nativeElement}_getIconContext(){return{index:this.index,active:this.active,optional:this.optional}}_getDefaultTextForState(j){return"number"==j?`${this.index+1}`:"edit"==j?"create":"error"==j?"warning":j}}xe.\u0275fac=function(j){return new(j||xe)(E.Y36(ke),E.Y36(k.tE),E.Y36(E.SBq),E.Y36(E.sBO))},xe.\u0275cmp=E.Xpm({type:xe,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:[E.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(j,Oe){1&j&&(E._UZ(0,"div",0),E.TgZ(1,"div")(2,"div",1),E.YNc(3,Q,1,2,"ng-container",2),E.YNc(4,ye,5,4,"ng-container",3),E.qZA()(),E.TgZ(5,"div",4),E.YNc(6,ue,2,1,"div",5),E.YNc(7,$,2,1,"div",5),E.YNc(8,he,2,1,"div",6),E.YNc(9,w,2,1,"div",7),E.qZA()),2&j&&(E.Q6J("matRippleTrigger",Oe._getHostElement())("matRippleDisabled",Oe.disableRipple),E.xp6(1),E.Gre("mat-step-icon-state-",Oe.state," mat-step-icon"),E.ekj("mat-step-icon-selected",Oe.selected),E.xp6(1),E.Q6J("ngSwitch",!(!Oe.iconOverrides||!Oe.iconOverrides[Oe.state])),E.xp6(1),E.Q6J("ngSwitchCase",!0),E.xp6(2),E.ekj("mat-step-label-active",Oe.active)("mat-step-label-selected",Oe.selected)("mat-step-label-error","error"==Oe.state),E.xp6(1),E.Q6J("ngIf",Oe._templateLabel()),E.xp6(1),E.Q6J("ngIf",Oe._stringLabel()),E.xp6(1),E.Q6J("ngIf",Oe.optional&&"error"!=Oe.state),E.xp6(1),E.Q6J("ngIf","error"==Oe.state))},dependencies:[_.O5,_.tP,_.RF,_.n9,_.ED,u.Hw,D.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});const ve={horizontalStepTransition:(0,Z.X$)("horizontalStepTransition",[(0,Z.SB)("previous",(0,Z.oB)({transform:"translate3d(-100%, 0, 0)",visibility:"hidden"})),(0,Z.SB)("current",(0,Z.oB)({transform:"none",visibility:"inherit"})),(0,Z.SB)("next",(0,Z.oB)({transform:"translate3d(100%, 0, 0)",visibility:"hidden"})),(0,Z.eR)("* => *",(0,Z.jt)("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)"),{params:{animationDuration:"500ms"}})]),verticalStepTransition:(0,Z.X$)("verticalStepTransition",[(0,Z.SB)("previous",(0,Z.oB)({height:"0px",visibility:"hidden"})),(0,Z.SB)("next",(0,Z.oB)({height:"0px",visibility:"hidden"})),(0,Z.SB)("current",(0,Z.oB)({height:"*",visibility:"inherit"})),(0,Z.eR)("* <=> current",(0,Z.jt)("{{animationDuration}} cubic-bezier(0.4, 0.0, 0.2, 1)"),{params:{animationDuration:"225ms"}})])};class et{constructor(j){this.templateRef=j}}et.\u0275fac=function(j){return new(j||et)(E.Y36(E.Rgc))},et.\u0275dir=E.lG2({type:et,selectors:[["ng-template","matStepperIcon",""]],inputs:{name:["matStepperIcon","name"]}});class ht{constructor(j){this._template=j}}ht.\u0275fac=function(j){return new(j||ht)(E.Y36(E.Rgc))},ht.\u0275dir=E.lG2({type:ht,selectors:[["ng-template","matStepContent",""]]});class Le extends t.be{constructor(j,Oe,Re,le){super(j,le),this._errorStateMatcher=Oe,this._viewContainerRef=Re,this._isSelected=S.w0.EMPTY}ngAfterContentInit(){this._isSelected=this._stepper.steps.changes.pipe((0,P.w)(()=>this._stepper.selectionChange.pipe((0,M.U)(j=>j.selectedStep===this),(0,z.O)(this._stepper.selected===this)))).subscribe(j=>{j&&this._lazyContent&&!this._portal&&(this._portal=new e.UE(this._lazyContent._template,this._viewContainerRef))})}ngOnDestroy(){this._isSelected.unsubscribe()}isErrorState(j,Oe){const Re=this._errorStateMatcher.isErrorState(j,Oe),le=!!(j&&j.invalid&&this.interacted);return Re||le}}Le.\u0275fac=function(j){return new(j||Le)(E.Y36((0,E.Gpc)(()=>Ae)),E.Y36(D.rD,4),E.Y36(E.s_b),E.Y36(t.gx,8))},Le.\u0275cmp=E.Xpm({type:Le,selectors:[["mat-step"]],contentQueries:function(j,Oe,Re){if(1&j&&(E.Suo(Re,Fe,5),E.Suo(Re,ht,5)),2&j){let le;E.iGM(le=E.CRH())&&(Oe.stepLabel=le.first),E.iGM(le=E.CRH())&&(Oe._lazyContent=le.first)}},inputs:{color:"color"},exportAs:["matStep"],features:[E._Bn([{provide:D.rD,useExisting:Le},{provide:t.be,useExisting:Le}]),E.qOj],ngContentSelectors:["*"],decls:1,vars:0,consts:[[3,"cdkPortalOutlet"]],template:function(j,Oe){1&j&&(E.F$t(),E.YNc(0,o,2,1,"ng-template"))},dependencies:[e.Pl],encapsulation:2,changeDetection:0});class Ae extends t.B8{constructor(j,Oe,Re){super(j,Oe,Re),this.steps=new E.n_E,this.animationDone=new E.vpe,this.labelPosition="end",this.headerPosition="top",this._iconOverrides={},this._animationDone=new p.x,this._animationDuration="";const le=Re.nativeElement.nodeName.toLowerCase();this.orientation="mat-vertical-stepper"===le?"vertical":"horizontal"}get animationDuration(){return this._animationDuration}set animationDuration(j){this._animationDuration=/^\d+$/.test(j)?j+"ms":j}ngAfterContentInit(){super.ngAfterContentInit(),this._icons.forEach(({name:j,templateRef:Oe})=>this._iconOverrides[j]=Oe),this.steps.changes.pipe((0,I.R)(this._destroyed)).subscribe(()=>{this._stateChanged()}),this._animationDone.pipe((0,W.x)((j,Oe)=>j.fromState===Oe.fromState&&j.toState===Oe.toState),(0,I.R)(this._destroyed)).subscribe(j=>{"current"===j.toState&&this.animationDone.emit()})}_stepIsNavigable(j,Oe){return Oe.completed||this.selectedIndex===j||!this.linear}_getAnimationDuration(){return this.animationDuration?this.animationDuration:"horizontal"===this.orientation?"500ms":"225ms"}}Ae.\u0275fac=function(j){return new(j||Ae)(E.Y36(A.Is,8),E.Y36(E.sBO),E.Y36(E.SBq))},Ae.\u0275cmp=E.Xpm({type:Ae,selectors:[["mat-stepper"],["mat-vertical-stepper"],["mat-horizontal-stepper"],["","matStepper",""]],contentQueries:function(j,Oe,Re){if(1&j&&(E.Suo(Re,Le,5),E.Suo(Re,et,5)),2&j){let le;E.iGM(le=E.CRH())&&(Oe._steps=le),E.iGM(le=E.CRH())&&(Oe._icons=le)}},viewQuery:function(j,Oe){if(1&j&&E.Gf(xe,5),2&j){let Re;E.iGM(Re=E.CRH())&&(Oe._stepHeader=Re)}},hostAttrs:["role","tablist"],hostVars:11,hostBindings:function(j,Oe){2&j&&(E.uIk("aria-orientation",Oe.orientation),E.ekj("mat-stepper-horizontal","horizontal"===Oe.orientation)("mat-stepper-vertical","vertical"===Oe.orientation)("mat-stepper-label-position-end","horizontal"===Oe.orientation&&"end"==Oe.labelPosition)("mat-stepper-label-position-bottom","horizontal"===Oe.orientation&&"bottom"==Oe.labelPosition)("mat-stepper-header-position-bottom","bottom"===Oe.headerPosition))},inputs:{selectedIndex:"selectedIndex",disableRipple:"disableRipple",color:"color",labelPosition:"labelPosition",headerPosition:"headerPosition",animationDuration:"animationDuration"},outputs:{animationDone:"animationDone"},exportAs:["matStepper","matVerticalStepper","matHorizontalStepper"],features:[E._Bn([{provide:t.B8,useExisting:Ae}]),E.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(j,Oe){1&j&&(E.ynx(0,0),E.YNc(1,C,5,2,"div",1),E.YNc(2,F,2,1,"ng-container",2),E.BQk(),E.YNc(3,X,1,23,"ng-template",null,3,E.W1O)),2&j&&(E.Q6J("ngSwitch",Oe.orientation),E.xp6(1),E.Q6J("ngSwitchCase","horizontal"),E.xp6(1),E.Q6J("ngSwitchCase","vertical"))},dependencies:[_.sg,_.O5,_.tP,_.RF,_.n9,xe],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});class te extends t.st{}te.\u0275fac=function(){let H;return function(Oe){return(H||(H=E.n5z(te)))(Oe||te)}}(),te.\u0275dir=E.lG2({type:te,selectors:[["button","matStepperNext",""]],hostAttrs:[1,"mat-stepper-next"],hostVars:1,hostBindings:function(j,Oe){2&j&&E.Ikx("type",Oe.type)},inputs:{type:"type"},features:[E.qOj]});class pe extends t.po{}pe.\u0275fac=function(){let H;return function(Oe){return(H||(H=E.n5z(pe)))(Oe||pe)}}(),pe.\u0275dir=E.lG2({type:pe,selectors:[["button","matStepperPrevious",""]],hostAttrs:[1,"mat-stepper-previous"],hostVars:1,hostBindings:function(j,Oe){2&j&&E.Ikx("type",Oe.type)},inputs:{type:"type"},features:[E.qOj]});class ee{}ee.\u0275fac=function(j){return new(j||ee)},ee.\u0275mod=E.oAB({type:ee}),ee.\u0275inj=E.cJS({providers:[je,D.rD],imports:[D.BQ,_.ez,e.eL,s.ot,t.U5,u.Ps,D.si,D.BQ]})},8711:(Ue,q,m)=>{"use strict";m.d(q,{ev:()=>Je,Dz:()=>Ye,w1:()=>ze,mD:()=>ut,Q2:()=>He,Ke:()=>At,ge:()=>Me,fO:()=>Dt,XQ:()=>Ht,as:()=>zt,Gk:()=>$e,nj:()=>Tt,BZ:()=>De,by:()=>Yn,p0:()=>Vn});var e=m(2560),t=m(2867),_=m(8971),E=m(1755),s=m(9107),D=m(1494),u=m(4666),k=m(253),p=m(7400),S=m(6317),A=m(4437),P=m(745),M=m(8951),z=m(9295);const I=[[["caption"]],[["colgroup"],["col"]]];function Z(Mt,Ge){if(1&Mt&&(e.TgZ(0,"th",3),e._uU(1),e.qZA()),2&Mt){const Be=e.oxw();e.Udp("text-align",Be.justify),e.xp6(1),e.hij(" ",Be.headerText," ")}}function Q(Mt,Ge){if(1&Mt&&(e.TgZ(0,"td",4),e._uU(1),e.qZA()),2&Mt){const Be=Ge.$implicit,ft=e.oxw();e.Udp("text-align",ft.justify),e.xp6(1),e.hij(" ",ft.dataAccessor(Be,ft.name)," ")}}function ie(Mt){return class extends Mt{constructor(...Ge){super(...Ge),this._sticky=!1,this._hasStickyChanged=!1}get sticky(){return this._sticky}set sticky(Ge){const Be=this._sticky;this._sticky=(0,_.Ig)(Ge),this._hasStickyChanged=Be!==this._sticky}hasStickyChanged(){const Ge=this._hasStickyChanged;return this._hasStickyChanged=!1,Ge}resetStickyChanged(){this._hasStickyChanged=!1}}}const ae=new e.OlP("CDK_TABLE"),_e=new e.OlP("text-column-options");class ce{constructor(Ge){this.template=Ge}}ce.\u0275fac=function(Ge){return new(Ge||ce)(e.Y36(e.Rgc))},ce.\u0275dir=e.lG2({type:ce,selectors:[["","cdkCellDef",""]]});class ye{constructor(Ge){this.template=Ge}}ye.\u0275fac=function(Ge){return new(Ge||ye)(e.Y36(e.Rgc))},ye.\u0275dir=e.lG2({type:ye,selectors:[["","cdkHeaderCellDef",""]]});class ue{constructor(Ge){this.template=Ge}}ue.\u0275fac=function(Ge){return new(Ge||ue)(e.Y36(e.Rgc))},ue.\u0275dir=e.lG2({type:ue,selectors:[["","cdkFooterCellDef",""]]});const he=ie(class ${});class w extends he{constructor(Ge){super(),this._table=Ge,this._stickyEnd=!1}get name(){return this._name}set name(Ge){this._setNameInput(Ge)}get stickyEnd(){return this._stickyEnd}set stickyEnd(Ge){const Be=this._stickyEnd;this._stickyEnd=(0,_.Ig)(Ge),this._hasStickyChanged=Be!==this._stickyEnd}_updateColumnCssClassName(){this._columnCssClassName=[`cdk-column-${this.cssClassFriendlyName}`]}_setNameInput(Ge){Ge&&(this._name=Ge,this.cssClassFriendlyName=Ge.replace(/[^a-z0-9_-]/gi,"-"),this._updateColumnCssClassName())}}w.\u0275fac=function(Ge){return new(Ge||w)(e.Y36(ae,8))},w.\u0275dir=e.lG2({type:w,selectors:[["","cdkColumnDef",""]],contentQueries:function(Ge,Be,ft){if(1&Ge&&(e.Suo(ft,ce,5),e.Suo(ft,ye,5),e.Suo(ft,ue,5)),2&Ge){let re;e.iGM(re=e.CRH())&&(Be.cell=re.first),e.iGM(re=e.CRH())&&(Be.headerCell=re.first),e.iGM(re=e.CRH())&&(Be.footerCell=re.first)}},inputs:{sticky:"sticky",name:["cdkColumnDef","name"],stickyEnd:"stickyEnd"},features:[e._Bn([{provide:"MAT_SORT_HEADER_COLUMN_DEF",useExisting:w}]),e.qOj]});class n{constructor(Ge,Be){Be.nativeElement.classList.add(...Ge._columnCssClassName)}}class o extends n{constructor(Ge,Be){super(Ge,Be)}}o.\u0275fac=function(Ge){return new(Ge||o)(e.Y36(w),e.Y36(e.SBq))},o.\u0275dir=e.lG2({type:o,selectors:[["cdk-header-cell"],["th","cdk-header-cell",""]],hostAttrs:["role","columnheader",1,"cdk-header-cell"],features:[e.qOj]});class h extends n{constructor(Ge,Be){if(super(Ge,Be),1===Ge._table?._elementRef.nativeElement.nodeType){const ft=Ge._table._elementRef.nativeElement.getAttribute("role"),re="grid"===ft||"treegrid"===ft?"gridcell":"cell";Be.nativeElement.setAttribute("role",re)}}}h.\u0275fac=function(Ge){return new(Ge||h)(e.Y36(w),e.Y36(e.SBq))},h.\u0275dir=e.lG2({type:h,selectors:[["cdk-footer-cell"],["td","cdk-footer-cell",""]],hostAttrs:[1,"cdk-footer-cell"],features:[e.qOj]});class d extends n{constructor(Ge,Be){if(super(Ge,Be),1===Ge._table?._elementRef.nativeElement.nodeType){const ft=Ge._table._elementRef.nativeElement.getAttribute("role"),re="grid"===ft||"treegrid"===ft?"gridcell":"cell";Be.nativeElement.setAttribute("role",re)}}}d.\u0275fac=function(Ge){return new(Ge||d)(e.Y36(w),e.Y36(e.SBq))},d.\u0275dir=e.lG2({type:d,selectors:[["cdk-cell"],["td","cdk-cell",""]],hostAttrs:[1,"cdk-cell"],features:[e.qOj]});class y{constructor(){this.tasks=[],this.endTasks=[]}}const L=new e.OlP("_COALESCED_STYLE_SCHEDULER");class B{constructor(Ge){this._ngZone=Ge,this._currentSchedule=null,this._destroyed=new k.x}schedule(Ge){this._createScheduleIfNeeded(),this._currentSchedule.tasks.push(Ge)}scheduleEnd(Ge){this._createScheduleIfNeeded(),this._currentSchedule.endTasks.push(Ge)}ngOnDestroy(){this._destroyed.next(),this._destroyed.complete()}_createScheduleIfNeeded(){this._currentSchedule||(this._currentSchedule=new y,this._getScheduleObservable().pipe((0,M.R)(this._destroyed)).subscribe(()=>{for(;this._currentSchedule.tasks.length||this._currentSchedule.endTasks.length;){const Ge=this._currentSchedule;this._currentSchedule=new y;for(const Be of Ge.tasks)Be();for(const Be of Ge.endTasks)Be()}this._currentSchedule=null}))}_getScheduleObservable(){return this._ngZone.isStable?(0,p.D)(Promise.resolve(void 0)):this._ngZone.onStable.pipe((0,z.q)(1))}}B.\u0275fac=function(Ge){return new(Ge||B)(e.LFG(e.R0b))},B.\u0275prov=e.Yz7({token:B,factory:B.\u0275fac});class a{constructor(Ge,Be){this.template=Ge,this._differs=Be}ngOnChanges(Ge){if(!this._columnsDiffer){const Be=Ge.columns&&Ge.columns.currentValue||[];this._columnsDiffer=this._differs.find(Be).create(),this._columnsDiffer.diff(Be)}}getColumnsDiff(){return this._columnsDiffer.diff(this.columns)}extractCellTemplate(Ge){return this instanceof F?Ge.headerCell.template:this instanceof ke?Ge.footerCell.template:Ge.cell.template}}a.\u0275fac=function(Ge){return new(Ge||a)(e.Y36(e.Rgc),e.Y36(e.ZZ4))},a.\u0275dir=e.lG2({type:a,features:[e.TTD]});const N=ie(class C extends a{});class F extends N{constructor(Ge,Be,ft){super(Ge,Be),this._table=ft}ngOnChanges(Ge){super.ngOnChanges(Ge)}}F.\u0275fac=function(Ge){return new(Ge||F)(e.Y36(e.Rgc),e.Y36(e.ZZ4),e.Y36(ae,8))},F.\u0275dir=e.lG2({type:F,selectors:[["","cdkHeaderRowDef",""]],inputs:{columns:["cdkHeaderRowDef","columns"],sticky:["cdkHeaderRowDefSticky","sticky"]},features:[e.qOj,e.TTD]});const Fe=ie(class X extends a{});class ke extends Fe{constructor(Ge,Be,ft){super(Ge,Be),this._table=ft}ngOnChanges(Ge){super.ngOnChanges(Ge)}}ke.\u0275fac=function(Ge){return new(Ge||ke)(e.Y36(e.Rgc),e.Y36(e.ZZ4),e.Y36(ae,8))},ke.\u0275dir=e.lG2({type:ke,selectors:[["","cdkFooterRowDef",""]],inputs:{columns:["cdkFooterRowDef","columns"],sticky:["cdkFooterRowDefSticky","sticky"]},features:[e.qOj,e.TTD]});class Ke extends a{constructor(Ge,Be,ft){super(Ge,Be),this._table=ft}}Ke.\u0275fac=function(Ge){return new(Ge||Ke)(e.Y36(e.Rgc),e.Y36(e.ZZ4),e.Y36(ae,8))},Ke.\u0275dir=e.lG2({type:Ke,selectors:[["","cdkRowDef",""]],inputs:{columns:["cdkRowDefColumns","columns"],when:["cdkRowDefWhen","when"]},features:[e.qOj]});class je{constructor(Ge){this._viewContainer=Ge,je.mostRecentCellOutlet=this}ngOnDestroy(){je.mostRecentCellOutlet===this&&(je.mostRecentCellOutlet=null)}}je.mostRecentCellOutlet=null,je.\u0275fac=function(Ge){return new(Ge||je)(e.Y36(e.s_b))},je.\u0275dir=e.lG2({type:je,selectors:[["","cdkCellOutlet",""]]});class Ve{}Ve.\u0275fac=function(Ge){return new(Ge||Ve)},Ve.\u0275cmp=e.Xpm({type:Ve,selectors:[["cdk-header-row"],["tr","cdk-header-row",""]],hostAttrs:["role","row",1,"cdk-header-row"],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(Ge,Be){1&Ge&&e.GkF(0,0)},dependencies:[je],encapsulation:2});class xe{}xe.\u0275fac=function(Ge){return new(Ge||xe)},xe.\u0275cmp=e.Xpm({type:xe,selectors:[["cdk-footer-row"],["tr","cdk-footer-row",""]],hostAttrs:["role","row",1,"cdk-footer-row"],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(Ge,Be){1&Ge&&e.GkF(0,0)},dependencies:[je],encapsulation:2});class Ze{}Ze.\u0275fac=function(Ge){return new(Ge||Ze)},Ze.\u0275cmp=e.Xpm({type:Ze,selectors:[["cdk-row"],["tr","cdk-row",""]],hostAttrs:["role","row",1,"cdk-row"],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(Ge,Be){1&Ge&&e.GkF(0,0)},dependencies:[je],encapsulation:2});class Ie{constructor(Ge){this.templateRef=Ge,this._contentClassName="cdk-no-data-row"}}Ie.\u0275fac=function(Ge){return new(Ge||Ie)(e.Y36(e.Rgc))},Ie.\u0275dir=e.lG2({type:Ie,selectors:[["ng-template","cdkNoDataRow",""]]});const ve=["top","bottom","left","right"];class et{constructor(Ge,Be,ft,re,Te=!0,pt=!0,Lt){this._isNativeHtmlTable=Ge,this._stickCellCss=Be,this.direction=ft,this._coalescedStyleScheduler=re,this._isBrowser=Te,this._needsPositionStickyOnElement=pt,this._positionListener=Lt,this._cachedCellWidths=[],this._borderCellCss={top:`${Be}-border-elem-top`,bottom:`${Be}-border-elem-bottom`,left:`${Be}-border-elem-left`,right:`${Be}-border-elem-right`}}clearStickyPositioning(Ge,Be){const ft=[];for(const re of Ge)if(re.nodeType===re.ELEMENT_NODE){ft.push(re);for(let Te=0;Te<re.children.length;Te++)ft.push(re.children[Te])}this._coalescedStyleScheduler.schedule(()=>{for(const re of ft)this._removeStickyStyle(re,Be)})}updateStickyColumns(Ge,Be,ft,re=!0){if(!Ge.length||!this._isBrowser||!Be.some(Mn=>Mn)&&!ft.some(Mn=>Mn))return void(this._positionListener&&(this._positionListener.stickyColumnsUpdated({sizes:[]}),this._positionListener.stickyEndColumnsUpdated({sizes:[]})));const Te=Ge[0],pt=Te.children.length,Lt=this._getCellWidths(Te,re),nn=this._getStickyStartColumnPositions(Lt,Be),Bn=this._getStickyEndColumnPositions(Lt,ft),Wn=Be.lastIndexOf(!0),ti=ft.indexOf(!0);this._coalescedStyleScheduler.schedule(()=>{const Mn="rtl"===this.direction,Ln=Mn?"right":"left",ai=Mn?"left":"right";for(const an of Ge)for(let hn=0;hn<pt;hn++){const en=an.children[hn];Be[hn]&&this._addStickyStyle(en,Ln,nn[hn],hn===Wn),ft[hn]&&this._addStickyStyle(en,ai,Bn[hn],hn===ti)}this._positionListener&&(this._positionListener.stickyColumnsUpdated({sizes:-1===Wn?[]:Lt.slice(0,Wn+1).map((an,hn)=>Be[hn]?an:null)}),this._positionListener.stickyEndColumnsUpdated({sizes:-1===ti?[]:Lt.slice(ti).map((an,hn)=>ft[hn+ti]?an:null).reverse()}))})}stickRows(Ge,Be,ft){if(!this._isBrowser)return;const re="bottom"===ft?Ge.slice().reverse():Ge,Te="bottom"===ft?Be.slice().reverse():Be,pt=[],Lt=[],nn=[];for(let Wn=0,ti=0;Wn<re.length;Wn++){if(!Te[Wn])continue;pt[Wn]=ti;const Mn=re[Wn];nn[Wn]=this._isNativeHtmlTable?Array.from(Mn.children):[Mn];const Ln=Mn.getBoundingClientRect().height;ti+=Ln,Lt[Wn]=Ln}const Bn=Te.lastIndexOf(!0);this._coalescedStyleScheduler.schedule(()=>{for(let Wn=0;Wn<re.length;Wn++){if(!Te[Wn])continue;const ti=pt[Wn],Mn=Wn===Bn;for(const Ln of nn[Wn])this._addStickyStyle(Ln,ft,ti,Mn)}"top"===ft?this._positionListener?.stickyHeaderRowsUpdated({sizes:Lt,offsets:pt,elements:nn}):this._positionListener?.stickyFooterRowsUpdated({sizes:Lt,offsets:pt,elements:nn})})}updateStickyFooterContainer(Ge,Be){if(!this._isNativeHtmlTable)return;const ft=Ge.querySelector("tfoot");this._coalescedStyleScheduler.schedule(()=>{Be.some(re=>!re)?this._removeStickyStyle(ft,["bottom"]):this._addStickyStyle(ft,"bottom",0,!1)})}_removeStickyStyle(Ge,Be){for(const re of Be)Ge.style[re]="",Ge.classList.remove(this._borderCellCss[re]);ve.some(re=>-1===Be.indexOf(re)&&Ge.style[re])?Ge.style.zIndex=this._getCalculatedZIndex(Ge):(Ge.style.zIndex="",this._needsPositionStickyOnElement&&(Ge.style.position=""),Ge.classList.remove(this._stickCellCss))}_addStickyStyle(Ge,Be,ft,re){Ge.classList.add(this._stickCellCss),re&&Ge.classList.add(this._borderCellCss[Be]),Ge.style[Be]=`${ft}px`,Ge.style.zIndex=this._getCalculatedZIndex(Ge),this._needsPositionStickyOnElement&&(Ge.style.cssText+="position: -webkit-sticky; position: sticky; ")}_getCalculatedZIndex(Ge){const Be={top:100,bottom:10,left:1,right:1};let ft=0;for(const re of ve)Ge.style[re]&&(ft+=Be[re]);return ft?`${ft}`:""}_getCellWidths(Ge,Be=!0){if(!Be&&this._cachedCellWidths.length)return this._cachedCellWidths;const ft=[],re=Ge.children;for(let Te=0;Te<re.length;Te++){let pt=re[Te];ft.push(pt.getBoundingClientRect().width)}return this._cachedCellWidths=ft,ft}_getStickyStartColumnPositions(Ge,Be){const ft=[];let re=0;for(let Te=0;Te<Ge.length;Te++)Be[Te]&&(ft[Te]=re,re+=Ge[Te]);return ft}_getStickyEndColumnPositions(Ge,Be){const ft=[];let re=0;for(let Te=Ge.length;Te>0;Te--)Be[Te]&&(ft[Te]=re,re+=Ge[Te]);return ft}}const Oe=new e.OlP("CDK_SPL");class Re{}Re.\u0275fac=function(Ge){return new(Ge||Re)},Re.\u0275dir=e.lG2({type:Re,selectors:[["cdk-table","recycleRows",""],["table","cdk-table","","recycleRows",""]],features:[e._Bn([{provide:E.k,useClass:E.eX}])]});class le{constructor(Ge,Be){this.viewContainer=Ge,this.elementRef=Be}}le.\u0275fac=function(Ge){return new(Ge||le)(e.Y36(e.s_b),e.Y36(e.SBq))},le.\u0275dir=e.lG2({type:le,selectors:[["","rowOutlet",""]]});class _t{constructor(Ge,Be){this.viewContainer=Ge,this.elementRef=Be}}_t.\u0275fac=function(Ge){return new(Ge||_t)(e.Y36(e.s_b),e.Y36(e.SBq))},_t.\u0275dir=e.lG2({type:_t,selectors:[["","headerRowOutlet",""]]});class it{constructor(Ge,Be){this.viewContainer=Ge,this.elementRef=Be}}it.\u0275fac=function(Ge){return new(Ge||it)(e.Y36(e.s_b),e.Y36(e.SBq))},it.\u0275dir=e.lG2({type:it,selectors:[["","footerRowOutlet",""]]});class Ct{constructor(Ge,Be){this.viewContainer=Ge,this.elementRef=Be}}Ct.\u0275fac=function(Ge){return new(Ge||Ct)(e.Y36(e.s_b),e.Y36(e.SBq))},Ct.\u0275dir=e.lG2({type:Ct,selectors:[["","noDataRowOutlet",""]]});class Ut{constructor(Ge,Be,ft,re,Te,pt,Lt,nn,Bn,Wn,ti,Mn){this._differs=Ge,this._changeDetectorRef=Be,this._elementRef=ft,this._dir=Te,this._platform=Lt,this._viewRepeater=nn,this._coalescedStyleScheduler=Bn,this._viewportRuler=Wn,this._stickyPositioningListener=ti,this._ngZone=Mn,this._onDestroy=new k.x,this._columnDefsByName=new Map,this._customColumnDefs=new Set,this._customRowDefs=new Set,this._customHeaderRowDefs=new Set,this._customFooterRowDefs=new Set,this._headerRowDefChanged=!0,this._footerRowDefChanged=!0,this._stickyColumnStylesNeedReset=!0,this._forceRecalculateCellWidths=!0,this._cachedRenderRowsMap=new Map,this.stickyCssClass="cdk-table-sticky",this.needsPositionStickyOnElement=!0,this._isShowingNoDataRow=!1,this._multiTemplateDataRows=!1,this._fixedLayout=!1,this.contentChanged=new e.vpe,this.viewChange=new S.X({start:0,end:Number.MAX_VALUE}),re||this._elementRef.nativeElement.setAttribute("role","table"),this._document=pt,this._isNativeHtmlTable="TABLE"===this._elementRef.nativeElement.nodeName}get trackBy(){return this._trackByFn}set trackBy(Ge){this._trackByFn=Ge}get dataSource(){return this._dataSource}set dataSource(Ge){this._dataSource!==Ge&&this._switchDataSource(Ge)}get multiTemplateDataRows(){return this._multiTemplateDataRows}set multiTemplateDataRows(Ge){this._multiTemplateDataRows=(0,_.Ig)(Ge),this._rowOutlet&&this._rowOutlet.viewContainer.length&&(this._forceRenderDataRows(),this.updateStickyColumnStyles())}get fixedLayout(){return this._fixedLayout}set fixedLayout(Ge){this._fixedLayout=(0,_.Ig)(Ge),this._forceRecalculateCellWidths=!0,this._stickyColumnStylesNeedReset=!0}ngOnInit(){this._setupStickyStyler(),this._isNativeHtmlTable&&this._applyNativeTableSections(),this._dataDiffer=this._differs.find([]).create((Ge,Be)=>this.trackBy?this.trackBy(Be.dataIndex,Be.data):Be),this._viewportRuler.change().pipe((0,M.R)(this._onDestroy)).subscribe(()=>{this._forceRecalculateCellWidths=!0})}ngAfterContentChecked(){this._cacheRowDefs(),this._cacheColumnDefs(),!this._headerRowDefs.length&&!this._footerRowDefs.length&&this._rowDefs.length;const Be=this._renderUpdatedColumns()||this._headerRowDefChanged||this._footerRowDefChanged;this._stickyColumnStylesNeedReset=this._stickyColumnStylesNeedReset||Be,this._forceRecalculateCellWidths=Be,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(Ge=>{Ge.clear()}),this._headerRowDefs=[],this._footerRowDefs=[],this._defaultRowDef=null,this._onDestroy.next(),this._onDestroy.complete(),(0,E.Z9)(this.dataSource)&&this.dataSource.disconnect(this)}renderRows(){this._renderRows=this._getAllRenderRows();const Ge=this._dataDiffer.diff(this._renderRows);if(!Ge)return this._updateNoDataRow(),void this.contentChanged.next();const Be=this._rowOutlet.viewContainer;this._viewRepeater.applyChanges(Ge,Be,(ft,re,Te)=>this._getEmbeddedViewArgs(ft.item,Te),ft=>ft.item.data,ft=>{1===ft.operation&&ft.context&&this._renderCellTemplateForItem(ft.record.item.rowDef,ft.context)}),this._updateRowIndexContext(),Ge.forEachIdentityChange(ft=>{Be.get(ft.currentIndex).context.$implicit=ft.item.data}),this._updateNoDataRow(),this._ngZone&&e.R0b.isInAngularZone()?this._ngZone.onStable.pipe((0,z.q)(1),(0,M.R)(this._onDestroy)).subscribe(()=>{this.updateStickyColumnStyles()}):this.updateStickyColumnStyles(),this.contentChanged.next()}addColumnDef(Ge){this._customColumnDefs.add(Ge)}removeColumnDef(Ge){this._customColumnDefs.delete(Ge)}addRowDef(Ge){this._customRowDefs.add(Ge)}removeRowDef(Ge){this._customRowDefs.delete(Ge)}addHeaderRowDef(Ge){this._customHeaderRowDefs.add(Ge),this._headerRowDefChanged=!0}removeHeaderRowDef(Ge){this._customHeaderRowDefs.delete(Ge),this._headerRowDefChanged=!0}addFooterRowDef(Ge){this._customFooterRowDefs.add(Ge),this._footerRowDefChanged=!0}removeFooterRowDef(Ge){this._customFooterRowDefs.delete(Ge),this._footerRowDefChanged=!0}setNoDataRow(Ge){this._customNoDataRow=Ge}updateStickyHeaderRowStyles(){const Ge=this._getRenderedRows(this._headerRowOutlet),ft=this._elementRef.nativeElement.querySelector("thead");ft&&(ft.style.display=Ge.length?"":"none");const re=this._headerRowDefs.map(Te=>Te.sticky);this._stickyStyler.clearStickyPositioning(Ge,["top"]),this._stickyStyler.stickRows(Ge,re,"top"),this._headerRowDefs.forEach(Te=>Te.resetStickyChanged())}updateStickyFooterRowStyles(){const Ge=this._getRenderedRows(this._footerRowOutlet),ft=this._elementRef.nativeElement.querySelector("tfoot");ft&&(ft.style.display=Ge.length?"":"none");const re=this._footerRowDefs.map(Te=>Te.sticky);this._stickyStyler.clearStickyPositioning(Ge,["bottom"]),this._stickyStyler.stickRows(Ge,re,"bottom"),this._stickyStyler.updateStickyFooterContainer(this._elementRef.nativeElement,re),this._footerRowDefs.forEach(Te=>Te.resetStickyChanged())}updateStickyColumnStyles(){const Ge=this._getRenderedRows(this._headerRowOutlet),Be=this._getRenderedRows(this._rowOutlet),ft=this._getRenderedRows(this._footerRowOutlet);(this._isNativeHtmlTable&&!this._fixedLayout||this._stickyColumnStylesNeedReset)&&(this._stickyStyler.clearStickyPositioning([...Ge,...Be,...ft],["left","right"]),this._stickyColumnStylesNeedReset=!1),Ge.forEach((re,Te)=>{this._addStickyColumnStyles([re],this._headerRowDefs[Te])}),this._rowDefs.forEach(re=>{const Te=[];for(let pt=0;pt<Be.length;pt++)this._renderRows[pt].rowDef===re&&Te.push(Be[pt]);this._addStickyColumnStyles(Te,re)}),ft.forEach((re,Te)=>{this._addStickyColumnStyles([re],this._footerRowDefs[Te])}),Array.from(this._columnDefsByName.values()).forEach(re=>re.resetStickyChanged())}_getAllRenderRows(){const Ge=[],Be=this._cachedRenderRowsMap;this._cachedRenderRowsMap=new Map;for(let ft=0;ft<this._data.length;ft++){let re=this._data[ft];const Te=this._getRenderRowsForData(re,ft,Be.get(re));this._cachedRenderRowsMap.has(re)||this._cachedRenderRowsMap.set(re,new WeakMap);for(let pt=0;pt<Te.length;pt++){let Lt=Te[pt];const nn=this._cachedRenderRowsMap.get(Lt.data);nn.has(Lt.rowDef)?nn.get(Lt.rowDef).push(Lt):nn.set(Lt.rowDef,[Lt]),Ge.push(Lt)}}return Ge}_getRenderRowsForData(Ge,Be,ft){return this._getRowDefs(Ge,Be).map(Te=>{const pt=ft&&ft.has(Te)?ft.get(Te):[];if(pt.length){const Lt=pt.shift();return Lt.dataIndex=Be,Lt}return{data:Ge,rowDef:Te,dataIndex:Be}})}_cacheColumnDefs(){this._columnDefsByName.clear(),yn(this._getOwnDefs(this._contentColumnDefs),this._customColumnDefs).forEach(Be=>{this._columnDefsByName.has(Be.name),this._columnDefsByName.set(Be.name,Be)})}_cacheRowDefs(){this._headerRowDefs=yn(this._getOwnDefs(this._contentHeaderRowDefs),this._customHeaderRowDefs),this._footerRowDefs=yn(this._getOwnDefs(this._contentFooterRowDefs),this._customFooterRowDefs),this._rowDefs=yn(this._getOwnDefs(this._contentRowDefs),this._customRowDefs);const Ge=this._rowDefs.filter(Be=>!Be.when);!this.multiTemplateDataRows&&Ge.length,this._defaultRowDef=Ge[0]}_renderUpdatedColumns(){const Ge=(Te,pt)=>Te||!!pt.getColumnsDiff(),Be=this._rowDefs.reduce(Ge,!1);Be&&this._forceRenderDataRows();const ft=this._headerRowDefs.reduce(Ge,!1);ft&&this._forceRenderHeaderRows();const re=this._footerRowDefs.reduce(Ge,!1);return re&&this._forceRenderFooterRows(),Be||ft||re}_switchDataSource(Ge){this._data=[],(0,E.Z9)(this.dataSource)&&this.dataSource.disconnect(this),this._renderChangeSubscription&&(this._renderChangeSubscription.unsubscribe(),this._renderChangeSubscription=null),Ge||(this._dataDiffer&&this._dataDiffer.diff([]),this._rowOutlet.viewContainer.clear()),this._dataSource=Ge}_observeRenderChanges(){if(!this.dataSource)return;let Ge;(0,E.Z9)(this.dataSource)?Ge=this.dataSource.connect(this):(0,A.b)(this.dataSource)?Ge=this.dataSource:Array.isArray(this.dataSource)&&(Ge=(0,P.of)(this.dataSource)),this._renderChangeSubscription=Ge.pipe((0,M.R)(this._onDestroy)).subscribe(Be=>{this._data=Be||[],this.renderRows()})}_forceRenderHeaderRows(){this._headerRowOutlet.viewContainer.length>0&&this._headerRowOutlet.viewContainer.clear(),this._headerRowDefs.forEach((Ge,Be)=>this._renderRow(this._headerRowOutlet,Ge,Be)),this.updateStickyHeaderRowStyles()}_forceRenderFooterRows(){this._footerRowOutlet.viewContainer.length>0&&this._footerRowOutlet.viewContainer.clear(),this._footerRowDefs.forEach((Ge,Be)=>this._renderRow(this._footerRowOutlet,Ge,Be)),this.updateStickyFooterRowStyles()}_addStickyColumnStyles(Ge,Be){const ft=Array.from(Be.columns||[]).map(pt=>this._columnDefsByName.get(pt)),re=ft.map(pt=>pt.sticky),Te=ft.map(pt=>pt.stickyEnd);this._stickyStyler.updateStickyColumns(Ge,re,Te,!this._fixedLayout||this._forceRecalculateCellWidths)}_getRenderedRows(Ge){const Be=[];for(let ft=0;ft<Ge.viewContainer.length;ft++){const re=Ge.viewContainer.get(ft);Be.push(re.rootNodes[0])}return Be}_getRowDefs(Ge,Be){if(1==this._rowDefs.length)return[this._rowDefs[0]];let ft=[];if(this.multiTemplateDataRows)ft=this._rowDefs.filter(re=>!re.when||re.when(Be,Ge));else{let re=this._rowDefs.find(Te=>Te.when&&Te.when(Be,Ge))||this._defaultRowDef;re&&ft.push(re)}return ft.length,ft}_getEmbeddedViewArgs(Ge,Be){const ft=Ge.rowDef,re={$implicit:Ge.data};return{templateRef:ft.template,context:re,index:Be}}_renderRow(Ge,Be,ft,re={}){const Te=Ge.viewContainer.createEmbeddedView(Be.template,re,ft);return this._renderCellTemplateForItem(Be,re),Te}_renderCellTemplateForItem(Ge,Be){for(let ft of this._getCellTemplates(Ge))je.mostRecentCellOutlet&&je.mostRecentCellOutlet._viewContainer.createEmbeddedView(ft,Be);this._changeDetectorRef.markForCheck()}_updateRowIndexContext(){const Ge=this._rowOutlet.viewContainer;for(let Be=0,ft=Ge.length;Be<ft;Be++){const Te=Ge.get(Be).context;Te.count=ft,Te.first=0===Be,Te.last=Be===ft-1,Te.even=Be%2==0,Te.odd=!Te.even,this.multiTemplateDataRows?(Te.dataIndex=this._renderRows[Be].dataIndex,Te.renderIndex=Be):Te.index=this._renderRows[Be].dataIndex}}_getCellTemplates(Ge){return Ge&&Ge.columns?Array.from(Ge.columns,Be=>{const ft=this._columnDefsByName.get(Be);return Ge.extractCellTemplate(ft)}):[]}_applyNativeTableSections(){const Ge=this._document.createDocumentFragment(),Be=[{tag:"thead",outlets:[this._headerRowOutlet]},{tag:"tbody",outlets:[this._rowOutlet,this._noDataRowOutlet]},{tag:"tfoot",outlets:[this._footerRowOutlet]}];for(const ft of Be){const re=this._document.createElement(ft.tag);re.setAttribute("role","rowgroup");for(const Te of ft.outlets)re.appendChild(Te.elementRef.nativeElement);Ge.appendChild(re)}this._elementRef.nativeElement.appendChild(Ge)}_forceRenderDataRows(){this._dataDiffer.diff([]),this._rowOutlet.viewContainer.clear(),this.renderRows()}_checkStickyStates(){const Ge=(Be,ft)=>Be||ft.hasStickyChanged();this._headerRowDefs.reduce(Ge,!1)&&this.updateStickyHeaderRowStyles(),this._footerRowDefs.reduce(Ge,!1)&&this.updateStickyFooterRowStyles(),Array.from(this._columnDefsByName.values()).reduce(Ge,!1)&&(this._stickyColumnStylesNeedReset=!0,this.updateStickyColumnStyles())}_setupStickyStyler(){const Ge=this._dir?this._dir.value:"ltr";this._stickyStyler=new et(this._isNativeHtmlTable,this.stickyCssClass,Ge,this._coalescedStyleScheduler,this._platform.isBrowser,this.needsPositionStickyOnElement,this._stickyPositioningListener),(this._dir?this._dir.change:(0,P.of)()).pipe((0,M.R)(this._onDestroy)).subscribe(Be=>{this._stickyStyler.direction=Be,this.updateStickyColumnStyles()})}_getOwnDefs(Ge){return Ge.filter(Be=>!Be._table||Be._table===this)}_updateNoDataRow(){const Ge=this._customNoDataRow||this._noDataRow;if(!Ge)return;const Be=0===this._rowOutlet.viewContainer.length;if(Be===this._isShowingNoDataRow)return;const ft=this._noDataRowOutlet.viewContainer;if(Be){const re=ft.createEmbeddedView(Ge.templateRef),Te=re.rootNodes[0];1===re.rootNodes.length&&Te?.nodeType===this._document.ELEMENT_NODE&&(Te.setAttribute("role","row"),Te.classList.add(Ge._contentClassName))}else ft.clear();this._isShowingNoDataRow=Be}}function yn(Mt,Ge){return Mt.concat(Array.from(Ge))}Ut.\u0275fac=function(Ge){return new(Ge||Ut)(e.Y36(e.ZZ4),e.Y36(e.sBO),e.Y36(e.SBq),e.$8M("role"),e.Y36(t.Is,8),e.Y36(u.K0),e.Y36(s.t4),e.Y36(E.k),e.Y36(L),e.Y36(D.rL),e.Y36(Oe,12),e.Y36(e.R0b,8))},Ut.\u0275cmp=e.Xpm({type:Ut,selectors:[["cdk-table"],["table","cdk-table",""]],contentQueries:function(Ge,Be,ft){if(1&Ge&&(e.Suo(ft,Ie,5),e.Suo(ft,w,5),e.Suo(ft,Ke,5),e.Suo(ft,F,5),e.Suo(ft,ke,5)),2&Ge){let re;e.iGM(re=e.CRH())&&(Be._noDataRow=re.first),e.iGM(re=e.CRH())&&(Be._contentColumnDefs=re),e.iGM(re=e.CRH())&&(Be._contentRowDefs=re),e.iGM(re=e.CRH())&&(Be._contentHeaderRowDefs=re),e.iGM(re=e.CRH())&&(Be._contentFooterRowDefs=re)}},viewQuery:function(Ge,Be){if(1&Ge&&(e.Gf(le,7),e.Gf(_t,7),e.Gf(it,7),e.Gf(Ct,7)),2&Ge){let ft;e.iGM(ft=e.CRH())&&(Be._rowOutlet=ft.first),e.iGM(ft=e.CRH())&&(Be._headerRowOutlet=ft.first),e.iGM(ft=e.CRH())&&(Be._footerRowOutlet=ft.first),e.iGM(ft=e.CRH())&&(Be._noDataRowOutlet=ft.first)}},hostAttrs:[1,"cdk-table"],hostVars:2,hostBindings:function(Ge,Be){2&Ge&&e.ekj("cdk-table-fixed-layout",Be.fixedLayout)},inputs:{trackBy:"trackBy",dataSource:"dataSource",multiTemplateDataRows:"multiTemplateDataRows",fixedLayout:"fixedLayout"},outputs:{contentChanged:"contentChanged"},exportAs:["cdkTable"],features:[e._Bn([{provide:ae,useExisting:Ut},{provide:E.k,useClass:E.yy},{provide:L,useClass:B},{provide:Oe,useValue:null}])],ngContentSelectors:["caption","colgroup, col"],decls:6,vars:0,consts:[["headerRowOutlet",""],["rowOutlet",""],["noDataRowOutlet",""],["footerRowOutlet",""]],template:function(Ge,Be){1&Ge&&(e.F$t(I),e.Hsn(0),e.Hsn(1,1),e.GkF(2,0)(3,1)(4,2)(5,3))},dependencies:[le,_t,it,Ct],styles:[".cdk-table-fixed-layout{table-layout:fixed}"],encapsulation:2});class Xt{constructor(Ge,Be){this._table=Ge,this._options=Be,this.justify="start",this._options=Be||{}}get name(){return this._name}set name(Ge){this._name=Ge,this._syncColumnDefName()}ngOnInit(){this._syncColumnDefName(),void 0===this.headerText&&(this.headerText=this._createDefaultHeaderText()),this.dataAccessor||(this.dataAccessor=this._options.defaultDataAccessor||((Ge,Be)=>Ge[Be])),this._table&&(this.columnDef.cell=this.cell,this.columnDef.headerCell=this.headerCell,this._table.addColumnDef(this.columnDef))}ngOnDestroy(){this._table&&this._table.removeColumnDef(this.columnDef)}_createDefaultHeaderText(){const Ge=this.name;return this._options&&this._options.defaultHeaderTextTransform?this._options.defaultHeaderTextTransform(Ge):Ge[0].toUpperCase()+Ge.slice(1)}_syncColumnDefName(){this.columnDef&&(this.columnDef.name=this.name)}}Xt.\u0275fac=function(Ge){return new(Ge||Xt)(e.Y36(Ut,8),e.Y36(_e,8))},Xt.\u0275cmp=e.Xpm({type:Xt,selectors:[["cdk-text-column"]],viewQuery:function(Ge,Be){if(1&Ge&&(e.Gf(w,7),e.Gf(ce,7),e.Gf(ye,7)),2&Ge){let ft;e.iGM(ft=e.CRH())&&(Be.columnDef=ft.first),e.iGM(ft=e.CRH())&&(Be.cell=ft.first),e.iGM(ft=e.CRH())&&(Be.headerCell=ft.first)}},inputs:{name:"name",headerText:"headerText",dataAccessor:"dataAccessor",justify:"justify"},decls:3,vars:0,consts:[["cdkColumnDef",""],["cdk-header-cell","",3,"text-align",4,"cdkHeaderCellDef"],["cdk-cell","",3,"text-align",4,"cdkCellDef"],["cdk-header-cell",""],["cdk-cell",""]],template:function(Ge,Be){1&Ge&&(e.ynx(0,0),e.YNc(1,Z,2,3,"th",1),e.YNc(2,Q,2,3,"td",2),e.BQk())},dependencies:[ce,ye,w,d,o],encapsulation:2});class In{}In.\u0275fac=function(Ge){return new(Ge||In)},In.\u0275mod=e.oAB({type:In}),In.\u0275inj=e.cJS({imports:[D.Cl]});var rn=m(207),tn=m(6646),pn=m(6562),tt=m(635);const vt=[[["caption"]],[["colgroup"],["col"]]];function se(Mt,Ge){if(1&Mt&&(e.TgZ(0,"th",3),e._uU(1),e.qZA()),2&Mt){const Be=e.oxw();e.Udp("text-align",Be.justify),e.xp6(1),e.hij(" ",Be.headerText," ")}}function J(Mt,Ge){if(1&Mt&&(e.TgZ(0,"td",4),e._uU(1),e.qZA()),2&Mt){const Be=Ge.$implicit,ft=e.oxw();e.Udp("text-align",ft.justify),e.xp6(1),e.hij(" ",ft.dataAccessor(Be,ft.name)," ")}}class oe{}oe.\u0275fac=function(Ge){return new(Ge||oe)},oe.\u0275dir=e.lG2({type:oe,selectors:[["mat-table","recycleRows",""],["table","mat-table","","recycleRows",""]],features:[e._Bn([{provide:E.k,useClass:E.eX}])]});class De extends Ut{constructor(){super(...arguments),this.stickyCssClass="mat-table-sticky",this.needsPositionStickyOnElement=!1}}De.\u0275fac=function(){let Mt;return function(Be){return(Mt||(Mt=e.n5z(De)))(Be||De)}}(),De.\u0275cmp=e.Xpm({type:De,selectors:[["mat-table"],["table","mat-table",""]],hostAttrs:[1,"mat-table"],hostVars:2,hostBindings:function(Ge,Be){2&Ge&&e.ekj("mat-table-fixed-layout",Be.fixedLayout)},exportAs:["matTable"],features:[e._Bn([{provide:E.k,useClass:E.yy},{provide:Ut,useExisting:De},{provide:ae,useExisting:De},{provide:L,useClass:B},{provide:Oe,useValue:null}]),e.qOj],ngContentSelectors:["caption","colgroup, col"],decls:6,vars:0,consts:[["headerRowOutlet",""],["rowOutlet",""],["noDataRowOutlet",""],["footerRowOutlet",""]],template:function(Ge,Be){1&Ge&&(e.F$t(vt),e.Hsn(0),e.Hsn(1,1),e.GkF(2,0)(3,1)(4,2)(5,3))},dependencies:[le,_t,it,Ct],styles:["mat-table{display:block}mat-header-row{min-height:56px}mat-row,mat-footer-row{min-height:48px}mat-row,mat-header-row,mat-footer-row{display:flex;border-width:0;border-bottom-width:1px;border-style:solid;align-items:center;box-sizing:border-box}mat-cell:first-of-type,mat-header-cell:first-of-type,mat-footer-cell:first-of-type{padding-left:24px}[dir=rtl] mat-cell:first-of-type:not(:only-of-type),[dir=rtl] mat-header-cell:first-of-type:not(:only-of-type),[dir=rtl] mat-footer-cell:first-of-type:not(:only-of-type){padding-left:0;padding-right:24px}mat-cell:last-of-type,mat-header-cell:last-of-type,mat-footer-cell:last-of-type{padding-right:24px}[dir=rtl] mat-cell:last-of-type:not(:only-of-type),[dir=rtl] mat-header-cell:last-of-type:not(:only-of-type),[dir=rtl] mat-footer-cell:last-of-type:not(:only-of-type){padding-right:0;padding-left:24px}mat-cell,mat-header-cell,mat-footer-cell{flex:1;display:flex;align-items:center;overflow:hidden;word-wrap:break-word;min-height:inherit}table.mat-table{border-spacing:0}tr.mat-header-row{height:56px}tr.mat-row,tr.mat-footer-row{height:48px}th.mat-header-cell{text-align:left}[dir=rtl] th.mat-header-cell{text-align:right}th.mat-header-cell,td.mat-cell,td.mat-footer-cell{padding:0;border-bottom-width:1px;border-bottom-style:solid}th.mat-header-cell:first-of-type,td.mat-cell:first-of-type,td.mat-footer-cell:first-of-type{padding-left:24px}[dir=rtl] th.mat-header-cell:first-of-type:not(:only-of-type),[dir=rtl] td.mat-cell:first-of-type:not(:only-of-type),[dir=rtl] td.mat-footer-cell:first-of-type:not(:only-of-type){padding-left:0;padding-right:24px}th.mat-header-cell:last-of-type,td.mat-cell:last-of-type,td.mat-footer-cell:last-of-type{padding-right:24px}[dir=rtl] th.mat-header-cell:last-of-type:not(:only-of-type),[dir=rtl] td.mat-cell:last-of-type:not(:only-of-type),[dir=rtl] td.mat-footer-cell:last-of-type:not(:only-of-type){padding-right:0;padding-left:24px}.mat-table-sticky{position:sticky !important}.mat-table-fixed-layout{table-layout:fixed}"],encapsulation:2});class Ye extends ce{}Ye.\u0275fac=function(){let Mt;return function(Be){return(Mt||(Mt=e.n5z(Ye)))(Be||Ye)}}(),Ye.\u0275dir=e.lG2({type:Ye,selectors:[["","matCellDef",""]],features:[e._Bn([{provide:ce,useExisting:Ye}]),e.qOj]});class Dt extends ye{}Dt.\u0275fac=function(){let Mt;return function(Be){return(Mt||(Mt=e.n5z(Dt)))(Be||Dt)}}(),Dt.\u0275dir=e.lG2({type:Dt,selectors:[["","matHeaderCellDef",""]],features:[e._Bn([{provide:ye,useExisting:Dt}]),e.qOj]});class ut extends ue{}ut.\u0275fac=function(){let Mt;return function(Be){return(Mt||(Mt=e.n5z(ut)))(Be||ut)}}(),ut.\u0275dir=e.lG2({type:ut,selectors:[["","matFooterCellDef",""]],features:[e._Bn([{provide:ue,useExisting:ut}]),e.qOj]});class ze extends w{get name(){return this._name}set name(Ge){this._setNameInput(Ge)}_updateColumnCssClassName(){super._updateColumnCssClassName(),this._columnCssClassName.push(`mat-column-${this.cssClassFriendlyName}`)}}ze.\u0275fac=function(){let Mt;return function(Be){return(Mt||(Mt=e.n5z(ze)))(Be||ze)}}(),ze.\u0275dir=e.lG2({type:ze,selectors:[["","matColumnDef",""]],inputs:{sticky:"sticky",name:["matColumnDef","name"]},features:[e._Bn([{provide:w,useExisting:ze},{provide:"MAT_SORT_HEADER_COLUMN_DEF",useExisting:ze}]),e.qOj]});class Me extends o{}Me.\u0275fac=function(){let Mt;return function(Be){return(Mt||(Mt=e.n5z(Me)))(Be||Me)}}(),Me.\u0275dir=e.lG2({type:Me,selectors:[["mat-header-cell"],["th","mat-header-cell",""]],hostAttrs:["role","columnheader",1,"mat-header-cell"],features:[e.qOj]});class Ce extends h{}Ce.\u0275fac=function(){let Mt;return function(Be){return(Mt||(Mt=e.n5z(Ce)))(Be||Ce)}}(),Ce.\u0275dir=e.lG2({type:Ce,selectors:[["mat-footer-cell"],["td","mat-footer-cell",""]],hostAttrs:["role","gridcell",1,"mat-footer-cell"],features:[e.qOj]});class Je extends d{}Je.\u0275fac=function(){let Mt;return function(Be){return(Mt||(Mt=e.n5z(Je)))(Be||Je)}}(),Je.\u0275dir=e.lG2({type:Je,selectors:[["mat-cell"],["td","mat-cell",""]],hostAttrs:["role","gridcell",1,"mat-cell"],features:[e.qOj]});class zt extends F{}zt.\u0275fac=function(){let Mt;return function(Be){return(Mt||(Mt=e.n5z(zt)))(Be||zt)}}(),zt.\u0275dir=e.lG2({type:zt,selectors:[["","matHeaderRowDef",""]],inputs:{columns:["matHeaderRowDef","columns"],sticky:["matHeaderRowDefSticky","sticky"]},features:[e._Bn([{provide:F,useExisting:zt}]),e.qOj]});class At extends ke{}At.\u0275fac=function(){let Mt;return function(Be){return(Mt||(Mt=e.n5z(At)))(Be||At)}}(),At.\u0275dir=e.lG2({type:At,selectors:[["","matFooterRowDef",""]],inputs:{columns:["matFooterRowDef","columns"],sticky:["matFooterRowDefSticky","sticky"]},features:[e._Bn([{provide:ke,useExisting:At}]),e.qOj]});class Tt extends Ke{}Tt.\u0275fac=function(){let Mt;return function(Be){return(Mt||(Mt=e.n5z(Tt)))(Be||Tt)}}(),Tt.\u0275dir=e.lG2({type:Tt,selectors:[["","matRowDef",""]],inputs:{columns:["matRowDefColumns","columns"],when:["matRowDefWhen","when"]},features:[e._Bn([{provide:Ke,useExisting:Tt}]),e.qOj]});class Ht extends Ve{}Ht.\u0275fac=function(){let Mt;return function(Be){return(Mt||(Mt=e.n5z(Ht)))(Be||Ht)}}(),Ht.\u0275cmp=e.Xpm({type:Ht,selectors:[["mat-header-row"],["tr","mat-header-row",""]],hostAttrs:["role","row",1,"mat-header-row"],exportAs:["matHeaderRow"],features:[e._Bn([{provide:Ve,useExisting:Ht}]),e.qOj],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(Ge,Be){1&Ge&&e.GkF(0,0)},dependencies:[je],encapsulation:2});class He extends xe{}He.\u0275fac=function(){let Mt;return function(Be){return(Mt||(Mt=e.n5z(He)))(Be||He)}}(),He.\u0275cmp=e.Xpm({type:He,selectors:[["mat-footer-row"],["tr","mat-footer-row",""]],hostAttrs:["role","row",1,"mat-footer-row"],exportAs:["matFooterRow"],features:[e._Bn([{provide:xe,useExisting:He}]),e.qOj],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(Ge,Be){1&Ge&&e.GkF(0,0)},dependencies:[je],encapsulation:2});class $e extends Ze{}$e.\u0275fac=function(){let Mt;return function(Be){return(Mt||(Mt=e.n5z($e)))(Be||$e)}}(),$e.\u0275cmp=e.Xpm({type:$e,selectors:[["mat-row"],["tr","mat-row",""]],hostAttrs:["role","row",1,"mat-row"],exportAs:["matRow"],features:[e._Bn([{provide:Ze,useExisting:$e}]),e.qOj],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(Ge,Be){1&Ge&&e.GkF(0,0)},dependencies:[je],encapsulation:2});class $t extends Ie{constructor(){super(...arguments),this._contentClassName="mat-no-data-row"}}$t.\u0275fac=function(){let Mt;return function(Be){return(Mt||(Mt=e.n5z($t)))(Be||$t)}}(),$t.\u0275dir=e.lG2({type:$t,selectors:[["ng-template","matNoDataRow",""]],features:[e._Bn([{provide:Ie,useExisting:$t}]),e.qOj]});class Rt extends Xt{}Rt.\u0275fac=function(){let Mt;return function(Be){return(Mt||(Mt=e.n5z(Rt)))(Be||Rt)}}(),Rt.\u0275cmp=e.Xpm({type:Rt,selectors:[["mat-text-column"]],features:[e.qOj],decls:3,vars:0,consts:[["matColumnDef",""],["mat-header-cell","",3,"text-align",4,"matHeaderCellDef"],["mat-cell","",3,"text-align",4,"matCellDef"],["mat-header-cell",""],["mat-cell",""]],template:function(Ge,Be){1&Ge&&(e.ynx(0,0),e.YNc(1,se,2,3,"th",1),e.YNc(2,J,2,3,"td",2),e.BQk())},dependencies:[Dt,ze,Ye,Me,Je],encapsulation:2});class Vn{}Vn.\u0275fac=function(Ge){return new(Ge||Vn)},Vn.\u0275mod=e.oAB({type:Vn}),Vn.\u0275inj=e.cJS({imports:[In,rn.BQ,rn.BQ]});class Tn extends E.o2{constructor(Ge=[]){super(),this._renderData=new S.X([]),this._filter=new S.X(""),this._internalPageChanges=new k.x,this._renderChangesSubscription=null,this.sortingDataAccessor=(Be,ft)=>{const re=Be[ft];if((0,_.t6)(re)){const Te=Number(re);return Te<9007199254740991?Te:re}return re},this.sortData=(Be,ft)=>{const re=ft.active,Te=ft.direction;return re&&""!=Te?Be.sort((pt,Lt)=>{let nn=this.sortingDataAccessor(pt,re),Bn=this.sortingDataAccessor(Lt,re);const Wn=typeof nn,ti=typeof Bn;Wn!==ti&&("number"===Wn&&(nn+=""),"number"===ti&&(Bn+=""));let Mn=0;return null!=nn&&null!=Bn?nn>Bn?Mn=1:nn<Bn&&(Mn=-1):null!=nn?Mn=1:null!=Bn&&(Mn=-1),Mn*("asc"==Te?1:-1)}):Be},this.filterPredicate=(Be,ft)=>{const re=Object.keys(Be).reduce((pt,Lt)=>pt+Be[Lt]+"\u25ec","").toLowerCase(),Te=ft.trim().toLowerCase();return-1!=re.indexOf(Te)},this._data=new S.X(Ge),this._updateChangeSubscription()}get data(){return this._data.value}set data(Ge){Ge=Array.isArray(Ge)?Ge:[],this._data.next(Ge),this._renderChangesSubscription||this._filterData(Ge)}get filter(){return this._filter.value}set filter(Ge){this._filter.next(Ge),this._renderChangesSubscription||this._filterData(this.data)}get sort(){return this._sort}set sort(Ge){this._sort=Ge,this._updateChangeSubscription()}get paginator(){return this._paginator}set paginator(Ge){this._paginator=Ge,this._updateChangeSubscription()}_updateChangeSubscription(){const Ge=this._sort?(0,tn.T)(this._sort.sortChange,this._sort.initialized):(0,P.of)(null),Be=this._paginator?(0,tn.T)(this._paginator.page,this._internalPageChanges,this._paginator.initialized):(0,P.of)(null),ft=this._data,re=(0,pn.a)([ft,this._filter]).pipe((0,tt.U)(([Lt])=>this._filterData(Lt))),Te=(0,pn.a)([re,Ge]).pipe((0,tt.U)(([Lt])=>this._orderData(Lt))),pt=(0,pn.a)([Te,Be]).pipe((0,tt.U)(([Lt])=>this._pageData(Lt)));this._renderChangesSubscription?.unsubscribe(),this._renderChangesSubscription=pt.subscribe(Lt=>this._renderData.next(Lt))}_filterData(Ge){return this.filteredData=null==this.filter||""===this.filter?Ge:Ge.filter(Be=>this.filterPredicate(Be,this.filter)),this.paginator&&this._updatePaginator(this.filteredData.length),this.filteredData}_orderData(Ge){return this.sort?this.sortData(Ge.slice(),this.sort):Ge}_pageData(Ge){if(!this.paginator)return Ge;const Be=this.paginator.pageIndex*this.paginator.pageSize;return Ge.slice(Be,Be+this.paginator.pageSize)}_updatePaginator(Ge){Promise.resolve().then(()=>{const Be=this.paginator;if(Be&&(Be.length=Ge,Be.pageIndex>0)){const ft=Math.ceil(Be.length/Be.pageSize)-1||0,re=Math.min(Be.pageIndex,ft);re!==Be.pageIndex&&(Be.pageIndex=re,this._internalPageChanges.next())}})}connect(){return this._renderChangesSubscription||this._updateChangeSubscription(),this._renderData}disconnect(){this._renderChangesSubscription?.unsubscribe(),this._renderChangesSubscription=null}}class Yn extends Tn{}},5892:(Ue,q,m)=>{"use strict";m.d(q,{BU:()=>se,Nh:()=>Dt,Nj:()=>De,SP:()=>tt,sW:()=>Ye,uD:()=>Ae,uX:()=>ee});var e=m(4218),t=m(3773),_=m(7520),E=m(4666),s=m(2560),D=m(207),u=m(9295),k=m(4874),p=m(8977),S=m(8951),A=m(2673),P=m(7260),M=m(116),z=m(253),I=m(7714),W=m(3280),Z=m(745),Q=m(6646),ie=m(591),ae=m(833),_e=m(8947),ce=m(2867),ye=m(4851),ue=m(8971),$=m(1494),he=m(9107),w=m(8456);function n(ut,ze){1&ut&&s.Hsn(0)}const o=["*"];function h(ut,ze){}const d=function(ut){return{animationDuration:ut}},y=function(ut,ze){return{value:ut,params:ze}},L=["tabListContainer"],B=["tabList"],v=["tabListInner"],a=["nextPaginator"],C=["previousPaginator"],N=["tabBodyWrapper"],F=["tabHeader"];function X(ut,ze){}function Fe(ut,ze){if(1&ut&&s.YNc(0,X,0,0,"ng-template",10),2&ut){const Me=s.oxw().$implicit;s.Q6J("cdkPortalOutlet",Me.templateLabel)}}function ke(ut,ze){if(1&ut&&s._uU(0),2&ut){const Me=s.oxw().$implicit;s.Oqu(Me.textLabel)}}function Ke(ut,ze){if(1&ut){const Me=s.EpF();s.TgZ(0,"div",6),s.NdJ("click",function(){const Je=s.CHM(Me),zt=Je.$implicit,At=Je.index,Tt=s.oxw(),Ht=s.MAs(1);return s.KtG(Tt._handleClick(zt,Ht,At))})("cdkFocusChange",function(Je){const At=s.CHM(Me).index,Tt=s.oxw();return s.KtG(Tt._tabFocusChanged(Je,At))}),s.TgZ(1,"div",7),s.YNc(2,Fe,1,1,"ng-template",8),s.YNc(3,ke,1,1,"ng-template",null,9,s.W1O),s.qZA()()}if(2&ut){const Me=ze.$implicit,Ce=ze.index,Je=s.MAs(4),zt=s.oxw();s.ekj("mat-tab-label-active",zt.selectedIndex===Ce),s.Q6J("id",zt._getTabLabelId(Ce))("ngClass",Me.labelClass)("disabled",Me.disabled)("matRippleDisabled",Me.disabled||zt.disableRipple),s.uIk("tabIndex",zt._getTabIndex(Me,Ce))("aria-posinset",Ce+1)("aria-setsize",zt._tabs.length)("aria-controls",zt._getTabContentId(Ce))("aria-selected",zt.selectedIndex===Ce)("aria-label",Me.ariaLabel||null)("aria-labelledby",!Me.ariaLabel&&Me.ariaLabelledby?Me.ariaLabelledby:null),s.xp6(2),s.Q6J("ngIf",Me.templateLabel)("ngIfElse",Je)}}function je(ut,ze){if(1&ut){const Me=s.EpF();s.TgZ(0,"mat-tab-body",11),s.NdJ("_onCentered",function(){s.CHM(Me);const Je=s.oxw();return s.KtG(Je._removeTabBodyWrapperHeight())})("_onCentering",function(Je){s.CHM(Me);const zt=s.oxw();return s.KtG(zt._setTabBodyWrapperHeight(Je))}),s.qZA()}if(2&ut){const Me=ze.$implicit,Ce=ze.index,Je=s.oxw();s.ekj("mat-tab-body-active",Je.selectedIndex===Ce),s.Q6J("id",Je._getTabContentId(Ce))("ngClass",Me.bodyClass)("content",Me.content)("position",Me.position)("origin",Me.origin)("animationDuration",Je.animationDuration)("preserveContent",Je.preserveContent),s.uIk("tabindex",null!=Je.contentTabIndex&&Je.selectedIndex===Ce?Je.contentTabIndex:null)("aria-labelledby",Je._getTabLabelId(Ce))}}const xe=new s.OlP("MatInkBarPositioner",{providedIn:"root",factory:function Ze(){return ze=>({left:ze?(ze.offsetLeft||0)+"px":"0",width:ze?(ze.offsetWidth||0)+"px":"0"})}});class Ie{constructor(ze,Me,Ce,Je){this._elementRef=ze,this._ngZone=Me,this._inkBarPositioner=Ce,this._animationMode=Je}alignToElement(ze){this.show(),this._ngZone.run(()=>{this._ngZone.onStable.pipe((0,u.q)(1)).subscribe(()=>{const Me=this._inkBarPositioner(ze),Ce=this._elementRef.nativeElement;Ce.style.left=Me.left,Ce.style.width=Me.width})})}show(){this._elementRef.nativeElement.style.visibility="visible"}hide(){this._elementRef.nativeElement.style.visibility="hidden"}}Ie.\u0275fac=function(ze){return new(ze||Ie)(s.Y36(s.SBq),s.Y36(s.R0b),s.Y36(xe),s.Y36(s.QbO,8))},Ie.\u0275dir=s.lG2({type:Ie,selectors:[["mat-ink-bar"]],hostAttrs:[1,"mat-ink-bar"],hostVars:2,hostBindings:function(ze,Me){2&ze&&s.ekj("_mat-animation-noopable","NoopAnimations"===Me._animationMode)}});const ve=new s.OlP("MatTabContent");class et{constructor(ze){this.template=ze}}et.\u0275fac=function(ze){return new(ze||et)(s.Y36(s.Rgc))},et.\u0275dir=s.lG2({type:et,selectors:[["","matTabContent",""]],features:[s._Bn([{provide:ve,useExisting:et}])]});const ht=new s.OlP("MatTabLabel"),Le=new s.OlP("MAT_TAB");class Ae extends _.ig{constructor(ze,Me,Ce){super(ze,Me),this._closestTab=Ce}}Ae.\u0275fac=function(ze){return new(ze||Ae)(s.Y36(s.Rgc),s.Y36(s.s_b),s.Y36(Le,8))},Ae.\u0275dir=s.lG2({type:Ae,selectors:[["","mat-tab-label",""],["","matTabLabel",""]],features:[s._Bn([{provide:ht,useExisting:Ae}]),s.qOj]});const te=(0,D.Id)(class{}),pe=new s.OlP("MAT_TAB_GROUP");class ee extends te{constructor(ze,Me){super(),this._viewContainerRef=ze,this._closestTabGroup=Me,this.textLabel="",this._contentPortal=null,this._stateChanges=new z.x,this.position=null,this.origin=null,this.isActive=!1}get templateLabel(){return this._templateLabel}set templateLabel(ze){this._setTemplateLabelInput(ze)}get content(){return this._contentPortal}ngOnChanges(ze){(ze.hasOwnProperty("textLabel")||ze.hasOwnProperty("disabled"))&&this._stateChanges.next()}ngOnDestroy(){this._stateChanges.complete()}ngOnInit(){this._contentPortal=new _.UE(this._explicitContent||this._implicitContent,this._viewContainerRef)}_setTemplateLabelInput(ze){ze&&ze._closestTab===this&&(this._templateLabel=ze)}}ee.\u0275fac=function(ze){return new(ze||ee)(s.Y36(s.s_b),s.Y36(pe,8))},ee.\u0275cmp=s.Xpm({type:ee,selectors:[["mat-tab"]],contentQueries:function(ze,Me,Ce){if(1&ze&&(s.Suo(Ce,ht,5),s.Suo(Ce,ve,7,s.Rgc)),2&ze){let Je;s.iGM(Je=s.CRH())&&(Me.templateLabel=Je.first),s.iGM(Je=s.CRH())&&(Me._explicitContent=Je.first)}},viewQuery:function(ze,Me){if(1&ze&&s.Gf(s.Rgc,7),2&ze){let Ce;s.iGM(Ce=s.CRH())&&(Me._implicitContent=Ce.first)}},inputs:{disabled:"disabled",textLabel:["label","textLabel"],ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],labelClass:"labelClass",bodyClass:"bodyClass"},exportAs:["matTab"],features:[s._Bn([{provide:Le,useExisting:ee}]),s.qOj,s.TTD],ngContentSelectors:o,decls:1,vars:0,template:function(ze,Me){1&ze&&(s.F$t(),s.YNc(0,n,1,0,"ng-template"))},encapsulation:2});const H={translateTab:(0,ye.X$)("translateTab",[(0,ye.SB)("center, void, left-origin-center, right-origin-center",(0,ye.oB)({transform:"none"})),(0,ye.SB)("left",(0,ye.oB)({transform:"translate3d(-100%, 0, 0)",minHeight:"1px",visibility:"hidden"})),(0,ye.SB)("right",(0,ye.oB)({transform:"translate3d(100%, 0, 0)",minHeight:"1px",visibility:"hidden"})),(0,ye.eR)("* => left, * => right, left => center, right => center",(0,ye.jt)("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")),(0,ye.eR)("void => left-origin-center",[(0,ye.oB)({transform:"translate3d(-100%, 0, 0)",visibility:"hidden"}),(0,ye.jt)("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")]),(0,ye.eR)("void => right-origin-center",[(0,ye.oB)({transform:"translate3d(100%, 0, 0)",visibility:"hidden"}),(0,ye.jt)("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")])])};class j extends _.Pl{constructor(ze,Me,Ce,Je){super(ze,Me,Je),this._host=Ce,this._centeringSub=I.w0.EMPTY,this._leavingSub=I.w0.EMPTY}ngOnInit(){super.ngOnInit(),this._centeringSub=this._host._beforeCentering.pipe((0,k.O)(this._host._isCenterPosition(this._host._position))).subscribe(ze=>{ze&&!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()}}j.\u0275fac=function(ze){return new(ze||j)(s.Y36(s._Vd),s.Y36(s.s_b),s.Y36((0,s.Gpc)(()=>Re)),s.Y36(E.K0))},j.\u0275dir=s.lG2({type:j,selectors:[["","matTabBodyHost",""]],features:[s.qOj]});class Oe{constructor(ze,Me,Ce){this._elementRef=ze,this._dir=Me,this._dirChangeSubscription=I.w0.EMPTY,this._translateTabComplete=new z.x,this._onCentering=new s.vpe,this._beforeCentering=new s.vpe,this._afterLeavingCenter=new s.vpe,this._onCentered=new s.vpe(!0),this.animationDuration="500ms",this.preserveContent=!1,Me&&(this._dirChangeSubscription=Me.change.subscribe(Je=>{this._computePositionAnimationState(Je),Ce.markForCheck()})),this._translateTabComplete.pipe((0,p.x)((Je,zt)=>Je.fromState===zt.fromState&&Je.toState===zt.toState)).subscribe(Je=>{this._isCenterPosition(Je.toState)&&this._isCenterPosition(this._position)&&this._onCentered.emit(),this._isCenterPosition(Je.fromState)&&!this._isCenterPosition(this._position)&&this._afterLeavingCenter.emit()})}set position(ze){this._positionIndex=ze,this._computePositionAnimationState()}ngOnInit(){"center"==this._position&&null!=this.origin&&(this._position=this._computePositionFromOrigin(this.origin))}ngOnDestroy(){this._dirChangeSubscription.unsubscribe(),this._translateTabComplete.complete()}_onTranslateTabStarted(ze){const Me=this._isCenterPosition(ze.toState);this._beforeCentering.emit(Me),Me&&this._onCentering.emit(this._elementRef.nativeElement.clientHeight)}_getLayoutDirection(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"}_isCenterPosition(ze){return"center"==ze||"left-origin-center"==ze||"right-origin-center"==ze}_computePositionAnimationState(ze=this._getLayoutDirection()){this._positionIndex<0?this._position="ltr"==ze?"left":"right":this._positionIndex>0?this._position="ltr"==ze?"right":"left":this._position="center"}_computePositionFromOrigin(ze){const Me=this._getLayoutDirection();return"ltr"==Me&&ze<=0||"rtl"==Me&&ze>0?"left-origin-center":"right-origin-center"}}Oe.\u0275fac=function(ze){return new(ze||Oe)(s.Y36(s.SBq),s.Y36(ce.Is,8),s.Y36(s.sBO))},Oe.\u0275dir=s.lG2({type:Oe,inputs:{_content:["content","_content"],origin:"origin",animationDuration:"animationDuration",preserveContent:"preserveContent",position:"position"},outputs:{_onCentering:"_onCentering",_beforeCentering:"_beforeCentering",_afterLeavingCenter:"_afterLeavingCenter",_onCentered:"_onCentered"}});class Re extends Oe{constructor(ze,Me,Ce){super(ze,Me,Ce)}}Re.\u0275fac=function(ze){return new(ze||Re)(s.Y36(s.SBq),s.Y36(ce.Is,8),s.Y36(s.sBO))},Re.\u0275cmp=s.Xpm({type:Re,selectors:[["mat-tab-body"]],viewQuery:function(ze,Me){if(1&ze&&s.Gf(_.Pl,5),2&ze){let Ce;s.iGM(Ce=s.CRH())&&(Me._portalHost=Ce.first)}},hostAttrs:[1,"mat-tab-body"],features:[s.qOj],decls:3,vars:6,consts:[["cdkScrollable","",1,"mat-tab-body-content"],["content",""],["matTabBodyHost",""]],template:function(ze,Me){1&ze&&(s.TgZ(0,"div",0,1),s.NdJ("@translateTab.start",function(Je){return Me._onTranslateTabStarted(Je)})("@translateTab.done",function(Je){return Me._translateTabComplete.next(Je)}),s.YNc(2,h,0,0,"ng-template",2),s.qZA()),2&ze&&s.Q6J("@translateTab",s.WLB(3,y,Me._position,s.VKq(1,d,Me.animationDuration)))},dependencies:[j],styles:['.mat-tab-body-content{height:100%;overflow:auto}.mat-tab-group-dynamic-height .mat-tab-body-content{overflow:hidden}.mat-tab-body-content[style*="visibility: hidden"]{display:none}'],encapsulation:2,data:{animation:[H.translateTab]}});const le=new s.OlP("MAT_TABS_CONFIG"),_t=(0,D.Id)(class{});class it extends _t{constructor(ze){super(),this.elementRef=ze}focus(){this.elementRef.nativeElement.focus()}getOffsetLeft(){return this.elementRef.nativeElement.offsetLeft}getOffsetWidth(){return this.elementRef.nativeElement.offsetWidth}}it.\u0275fac=function(ze){return new(ze||it)(s.Y36(s.SBq))},it.\u0275dir=s.lG2({type:it,selectors:[["","matTabLabelWrapper",""]],hostVars:3,hostBindings:function(ze,Me){2&ze&&(s.uIk("aria-disabled",!!Me.disabled),s.ekj("mat-tab-disabled",Me.disabled))},inputs:{disabled:"disabled"},features:[s.qOj]});const Ct=(0,he.i$)({passive:!0});class yn{constructor(ze,Me,Ce,Je,zt,At,Tt){this._elementRef=ze,this._changeDetectorRef=Me,this._viewportRuler=Ce,this._dir=Je,this._ngZone=zt,this._platform=At,this._animationMode=Tt,this._scrollDistance=0,this._selectedIndexChanged=!1,this._destroyed=new z.x,this._showPaginationControls=!1,this._disableScrollAfter=!0,this._disableScrollBefore=!0,this._stopScrolling=new z.x,this._disablePagination=!1,this._selectedIndex=0,this.selectFocusedIndex=new s.vpe,this.indexFocused=new s.vpe,zt.runOutsideAngular(()=>{(0,W.R)(ze.nativeElement,"mouseleave").pipe((0,S.R)(this._destroyed)).subscribe(()=>{this._stopInterval()})})}get disablePagination(){return this._disablePagination}set disablePagination(ze){this._disablePagination=(0,ue.Ig)(ze)}get selectedIndex(){return this._selectedIndex}set selectedIndex(ze){ze=(0,ue.su)(ze),this._selectedIndex!=ze&&(this._selectedIndexChanged=!0,this._selectedIndex=ze,this._keyManager&&this._keyManager.updateActiveItem(ze))}ngAfterViewInit(){(0,W.R)(this._previousPaginator.nativeElement,"touchstart",Ct).pipe((0,S.R)(this._destroyed)).subscribe(()=>{this._handlePaginatorPress("before")}),(0,W.R)(this._nextPaginator.nativeElement,"touchstart",Ct).pipe((0,S.R)(this._destroyed)).subscribe(()=>{this._handlePaginatorPress("after")})}ngAfterContentInit(){const ze=this._dir?this._dir.change:(0,Z.of)("ltr"),Me=this._viewportRuler.change(150),Ce=()=>{this.updatePagination(),this._alignInkBarToSelectedTab()};this._keyManager=new e.Em(this._items).withHorizontalOrientation(this._getLayoutDirection()).withHomeAndEnd().withWrap(),this._keyManager.updateActiveItem(this._selectedIndex),this._ngZone.onStable.pipe((0,u.q)(1)).subscribe(Ce),(0,Q.T)(ze,Me,this._items.changes,this._itemsResized()).pipe((0,S.R)(this._destroyed)).subscribe(()=>{this._ngZone.run(()=>{Promise.resolve().then(()=>{this._scrollDistance=Math.max(0,Math.min(this._getMaxScrollDistance(),this._scrollDistance)),Ce()})}),this._keyManager.withHorizontalOrientation(this._getLayoutDirection())}),this._keyManager.change.pipe((0,S.R)(this._destroyed)).subscribe(Je=>{this.indexFocused.emit(Je),this._setTabFocus(Je)})}_itemsResized(){return"function"!=typeof ResizeObserver?ie.E:this._items.changes.pipe((0,k.O)(this._items),(0,A.w)(ze=>new ae.y(Me=>this._ngZone.runOutsideAngular(()=>{const Ce=new ResizeObserver(Je=>Me.next(Je));return ze.forEach(Je=>Ce.observe(Je.elementRef.nativeElement)),()=>{Ce.disconnect()}}))),(0,P.T)(1),(0,M.h)(ze=>ze.some(Me=>Me.contentRect.width>0&&Me.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._destroyed.next(),this._destroyed.complete(),this._stopScrolling.complete()}_handleKeydown(ze){if(!(0,w.Vb)(ze))switch(ze.keyCode){case w.K5:case w.L_:this.focusIndex!==this.selectedIndex&&(this.selectFocusedIndex.emit(this.focusIndex),this._itemSelected(ze));break;default:this._keyManager.onKeydown(ze)}}_onContentChanges(){const ze=this._elementRef.nativeElement.textContent;ze!==this._currentTextContent&&(this._currentTextContent=ze||"",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(ze){!this._isValidIndex(ze)||this.focusIndex===ze||!this._keyManager||this._keyManager.setActiveItem(ze)}_isValidIndex(ze){if(!this._items)return!0;const Me=this._items?this._items.toArray()[ze]:null;return!!Me&&!Me.disabled}_setTabFocus(ze){if(this._showPaginationControls&&this._scrollToLabel(ze),this._items&&this._items.length){this._items.toArray()[ze].focus();const Me=this._tabListContainer.nativeElement;"ltr"==this._getLayoutDirection()?Me.scrollLeft=0:Me.scrollLeft=Me.scrollWidth-Me.offsetWidth}}_getLayoutDirection(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"}_updateTabScrollPosition(){if(this.disablePagination)return;const ze=this.scrollDistance,Me="ltr"===this._getLayoutDirection()?-ze:ze;this._tabList.nativeElement.style.transform=`translateX(${Math.round(Me)}px)`,(this._platform.TRIDENT||this._platform.EDGE)&&(this._tabListContainer.nativeElement.scrollLeft=0)}get scrollDistance(){return this._scrollDistance}set scrollDistance(ze){this._scrollTo(ze)}_scrollHeader(ze){const Ce=("before"==ze?-1:1)*this._tabListContainer.nativeElement.offsetWidth/3;return this._scrollTo(this._scrollDistance+Ce)}_handlePaginatorClick(ze){this._stopInterval(),this._scrollHeader(ze)}_scrollToLabel(ze){if(this.disablePagination)return;const Me=this._items?this._items.toArray()[ze]:null;if(!Me)return;const Ce=this._tabListContainer.nativeElement.offsetWidth,{offsetLeft:Je,offsetWidth:zt}=Me.elementRef.nativeElement;let At,Tt;"ltr"==this._getLayoutDirection()?(At=Je,Tt=At+zt):(Tt=this._tabListInner.nativeElement.offsetWidth-Je,At=Tt-zt);const Ht=this.scrollDistance,He=this.scrollDistance+Ce;At<Ht?this.scrollDistance-=Ht-At+60:Tt>He&&(this.scrollDistance+=Tt-He+60)}_checkPaginationEnabled(){if(this.disablePagination)this._showPaginationControls=!1;else{const ze=this._tabListInner.nativeElement.scrollWidth>this._elementRef.nativeElement.offsetWidth;ze||(this.scrollDistance=0),ze!==this._showPaginationControls&&this._changeDetectorRef.markForCheck(),this._showPaginationControls=ze}}_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 ze=this._items&&this._items.length?this._items.toArray()[this.selectedIndex]:null,Me=ze?ze.elementRef.nativeElement:null;Me?this._inkBar.alignToElement(Me):this._inkBar.hide()}_stopInterval(){this._stopScrolling.next()}_handlePaginatorPress(ze,Me){Me&&null!=Me.button&&0!==Me.button||(this._stopInterval(),(0,_e.H)(650,100).pipe((0,S.R)((0,Q.T)(this._stopScrolling,this._destroyed))).subscribe(()=>{const{maxScrollDistance:Ce,distance:Je}=this._scrollHeader(ze);(0===Je||Je>=Ce)&&this._stopInterval()}))}_scrollTo(ze){if(this.disablePagination)return{maxScrollDistance:0,distance:0};const Me=this._getMaxScrollDistance();return this._scrollDistance=Math.max(0,Math.min(Me,ze)),this._scrollDistanceChanged=!0,this._checkScrollingControls(),{maxScrollDistance:Me,distance:this._scrollDistance}}}yn.\u0275fac=function(ze){return new(ze||yn)(s.Y36(s.SBq),s.Y36(s.sBO),s.Y36($.rL),s.Y36(ce.Is,8),s.Y36(s.R0b),s.Y36(he.t4),s.Y36(s.QbO,8))},yn.\u0275dir=s.lG2({type:yn,inputs:{disablePagination:"disablePagination"}});class Xt extends yn{constructor(ze,Me,Ce,Je,zt,At,Tt){super(ze,Me,Ce,Je,zt,At,Tt),this._disableRipple=!1}get disableRipple(){return this._disableRipple}set disableRipple(ze){this._disableRipple=(0,ue.Ig)(ze)}_itemSelected(ze){ze.preventDefault()}}Xt.\u0275fac=function(ze){return new(ze||Xt)(s.Y36(s.SBq),s.Y36(s.sBO),s.Y36($.rL),s.Y36(ce.Is,8),s.Y36(s.R0b),s.Y36(he.t4),s.Y36(s.QbO,8))},Xt.\u0275dir=s.lG2({type:Xt,inputs:{disableRipple:"disableRipple"},features:[s.qOj]});class Gt extends Xt{constructor(ze,Me,Ce,Je,zt,At,Tt){super(ze,Me,Ce,Je,zt,At,Tt)}}Gt.\u0275fac=function(ze){return new(ze||Gt)(s.Y36(s.SBq),s.Y36(s.sBO),s.Y36($.rL),s.Y36(ce.Is,8),s.Y36(s.R0b),s.Y36(he.t4),s.Y36(s.QbO,8))},Gt.\u0275cmp=s.Xpm({type:Gt,selectors:[["mat-tab-header"]],contentQueries:function(ze,Me,Ce){if(1&ze&&s.Suo(Ce,it,4),2&ze){let Je;s.iGM(Je=s.CRH())&&(Me._items=Je)}},viewQuery:function(ze,Me){if(1&ze&&(s.Gf(Ie,7),s.Gf(L,7),s.Gf(B,7),s.Gf(v,7),s.Gf(a,5),s.Gf(C,5)),2&ze){let Ce;s.iGM(Ce=s.CRH())&&(Me._inkBar=Ce.first),s.iGM(Ce=s.CRH())&&(Me._tabListContainer=Ce.first),s.iGM(Ce=s.CRH())&&(Me._tabList=Ce.first),s.iGM(Ce=s.CRH())&&(Me._tabListInner=Ce.first),s.iGM(Ce=s.CRH())&&(Me._nextPaginator=Ce.first),s.iGM(Ce=s.CRH())&&(Me._previousPaginator=Ce.first)}},hostAttrs:[1,"mat-tab-header"],hostVars:4,hostBindings:function(ze,Me){2&ze&&s.ekj("mat-tab-header-pagination-controls-enabled",Me._showPaginationControls)("mat-tab-header-rtl","rtl"==Me._getLayoutDirection())},inputs:{selectedIndex:"selectedIndex"},outputs:{selectFocusedIndex:"selectFocusedIndex",indexFocused:"indexFocused"},features:[s.qOj],ngContentSelectors:o,decls:14,vars:10,consts:[["aria-hidden","true","type","button","mat-ripple","","tabindex","-1",1,"mat-tab-header-pagination","mat-tab-header-pagination-before","mat-elevation-z4",3,"matRippleDisabled","disabled","click","mousedown","touchend"],["previousPaginator",""],[1,"mat-tab-header-pagination-chevron"],[1,"mat-tab-label-container",3,"keydown"],["tabListContainer",""],["role","tablist",1,"mat-tab-list",3,"cdkObserveContent"],["tabList",""],[1,"mat-tab-labels"],["tabListInner",""],["aria-hidden","true","type","button","mat-ripple","","tabindex","-1",1,"mat-tab-header-pagination","mat-tab-header-pagination-after","mat-elevation-z4",3,"matRippleDisabled","disabled","mousedown","click","touchend"],["nextPaginator",""]],template:function(ze,Me){1&ze&&(s.F$t(),s.TgZ(0,"button",0,1),s.NdJ("click",function(){return Me._handlePaginatorClick("before")})("mousedown",function(Je){return Me._handlePaginatorPress("before",Je)})("touchend",function(){return Me._stopInterval()}),s._UZ(2,"div",2),s.qZA(),s.TgZ(3,"div",3,4),s.NdJ("keydown",function(Je){return Me._handleKeydown(Je)}),s.TgZ(5,"div",5,6),s.NdJ("cdkObserveContent",function(){return Me._onContentChanges()}),s.TgZ(7,"div",7,8),s.Hsn(9),s.qZA(),s._UZ(10,"mat-ink-bar"),s.qZA()(),s.TgZ(11,"button",9,10),s.NdJ("mousedown",function(Je){return Me._handlePaginatorPress("after",Je)})("click",function(){return Me._handlePaginatorClick("after")})("touchend",function(){return Me._stopInterval()}),s._UZ(13,"div",2),s.qZA()),2&ze&&(s.ekj("mat-tab-header-pagination-disabled",Me._disableScrollBefore),s.Q6J("matRippleDisabled",Me._disableScrollBefore||Me.disableRipple)("disabled",Me._disableScrollBefore||null),s.xp6(5),s.ekj("_mat-animation-noopable","NoopAnimations"===Me._animationMode),s.xp6(6),s.ekj("mat-tab-header-pagination-disabled",Me._disableScrollAfter),s.Q6J("matRippleDisabled",Me._disableScrollAfter||Me.disableRipple)("disabled",Me._disableScrollAfter||null))},dependencies:[D.wG,t.wD,Ie],styles:[".mat-tab-header{display:flex;overflow:hidden;position:relative;flex-shrink:0}.mat-tab-header-pagination{-webkit-user-select:none;user-select:none;position:relative;display:none;justify-content:center;align-items:center;min-width:32px;cursor:pointer;z-index:2;-webkit-tap-highlight-color:rgba(0,0,0,0);touch-action:none;box-sizing:content-box;background:none;border:none;outline:0;padding:0}.mat-tab-header-pagination::-moz-focus-inner{border:0}.mat-tab-header-pagination-controls-enabled .mat-tab-header-pagination{display:flex}.mat-tab-header-pagination-before,.mat-tab-header-rtl .mat-tab-header-pagination-after{padding-left:4px}.mat-tab-header-pagination-before .mat-tab-header-pagination-chevron,.mat-tab-header-rtl .mat-tab-header-pagination-after .mat-tab-header-pagination-chevron{transform:rotate(-135deg)}.mat-tab-header-rtl .mat-tab-header-pagination-before,.mat-tab-header-pagination-after{padding-right:4px}.mat-tab-header-rtl .mat-tab-header-pagination-before .mat-tab-header-pagination-chevron,.mat-tab-header-pagination-after .mat-tab-header-pagination-chevron{transform:rotate(45deg)}.mat-tab-header-pagination-chevron{border-style:solid;border-width:2px 2px 0 0;height:8px;width:8px}.mat-tab-header-pagination-disabled{box-shadow:none;cursor:default}.mat-tab-list{flex-grow:1;position:relative;transition:transform 500ms cubic-bezier(0.35, 0, 0.25, 1)}.mat-ink-bar{position:absolute;bottom:0;height:2px;transition:500ms cubic-bezier(0.35, 0, 0.25, 1)}.mat-ink-bar._mat-animation-noopable{transition:none !important;animation:none !important}.mat-tab-group-inverted-header .mat-ink-bar{bottom:auto;top:0}.cdk-high-contrast-active .mat-ink-bar{outline:solid 2px;height:0}.mat-tab-labels{display:flex}[mat-align-tabs=center]>.mat-tab-header .mat-tab-labels{justify-content:center}[mat-align-tabs=end]>.mat-tab-header .mat-tab-labels{justify-content:flex-end}.mat-tab-label-container{display:flex;flex-grow:1;overflow:hidden;z-index:1}.mat-tab-list._mat-animation-noopable{transition:none !important;animation:none !important}.mat-tab-label{height:48px;padding:0 24px;cursor:pointer;box-sizing:border-box;opacity:.6;min-width:160px;text-align:center;display:inline-flex;justify-content:center;align-items:center;white-space:nowrap;position:relative}.mat-tab-label:focus{outline:none}.mat-tab-label:focus:not(.mat-tab-disabled){opacity:1}.mat-tab-label.mat-tab-disabled{cursor:default}.cdk-high-contrast-active .mat-tab-label.mat-tab-disabled{opacity:.5}.mat-tab-label .mat-tab-label-content{display:inline-flex;justify-content:center;align-items:center;white-space:nowrap}.cdk-high-contrast-active .mat-tab-label{opacity:1}.mat-tab-label::before{margin:5px}@media(max-width: 599px){.mat-tab-label{min-width:72px}}"],encapsulation:2});let In=0;class rn{}const tn=(0,D.pj)((0,D.Kr)(class{constructor(ut){this._elementRef=ut}}),"primary");class pn extends tn{constructor(ze,Me,Ce,Je){super(ze),this._changeDetectorRef=Me,this._animationMode=Je,this._tabs=new s.n_E,this._indexToSelect=0,this._lastFocusedTabIndex=null,this._tabBodyWrapperHeight=0,this._tabsSubscription=I.w0.EMPTY,this._tabLabelSubscription=I.w0.EMPTY,this._dynamicHeight=!1,this._selectedIndex=null,this.headerPosition="above",this._disablePagination=!1,this._preserveContent=!1,this.selectedIndexChange=new s.vpe,this.focusChange=new s.vpe,this.animationDone=new s.vpe,this.selectedTabChange=new s.vpe(!0),this._groupId=In++,this.animationDuration=Ce&&Ce.animationDuration?Ce.animationDuration:"500ms",this.disablePagination=!(!Ce||null==Ce.disablePagination)&&Ce.disablePagination,this.dynamicHeight=!(!Ce||null==Ce.dynamicHeight)&&Ce.dynamicHeight,this.contentTabIndex=Ce?.contentTabIndex??null,this.preserveContent=!!Ce?.preserveContent}get dynamicHeight(){return this._dynamicHeight}set dynamicHeight(ze){this._dynamicHeight=(0,ue.Ig)(ze)}get selectedIndex(){return this._selectedIndex}set selectedIndex(ze){this._indexToSelect=(0,ue.su)(ze,null)}get animationDuration(){return this._animationDuration}set animationDuration(ze){this._animationDuration=/^\d+$/.test(ze+"")?ze+"ms":ze}get contentTabIndex(){return this._contentTabIndex}set contentTabIndex(ze){this._contentTabIndex=(0,ue.su)(ze,null)}get disablePagination(){return this._disablePagination}set disablePagination(ze){this._disablePagination=(0,ue.Ig)(ze)}get preserveContent(){return this._preserveContent}set preserveContent(ze){this._preserveContent=(0,ue.Ig)(ze)}get backgroundColor(){return this._backgroundColor}set backgroundColor(ze){const Me=this._elementRef.nativeElement;Me.classList.remove(`mat-background-${this.backgroundColor}`),ze&&Me.classList.add(`mat-background-${ze}`),this._backgroundColor=ze}ngAfterContentChecked(){const ze=this._indexToSelect=this._clampTabIndex(this._indexToSelect);if(this._selectedIndex!=ze){const Me=null==this._selectedIndex;if(!Me){this.selectedTabChange.emit(this._createChangeEvent(ze));const Ce=this._tabBodyWrapper.nativeElement;Ce.style.minHeight=Ce.clientHeight+"px"}Promise.resolve().then(()=>{this._tabs.forEach((Ce,Je)=>Ce.isActive=Je===ze),Me||(this.selectedIndexChange.emit(ze),this._tabBodyWrapper.nativeElement.style.minHeight="")})}this._tabs.forEach((Me,Ce)=>{Me.position=Ce-ze,null!=this._selectedIndex&&0==Me.position&&!Me.origin&&(Me.origin=ze-this._selectedIndex)}),this._selectedIndex!==ze&&(this._selectedIndex=ze,this._lastFocusedTabIndex=null,this._changeDetectorRef.markForCheck())}ngAfterContentInit(){this._subscribeToAllTabChanges(),this._subscribeToTabLabels(),this._tabsSubscription=this._tabs.changes.subscribe(()=>{const ze=this._clampTabIndex(this._indexToSelect);if(ze===this._selectedIndex){const Me=this._tabs.toArray();let Ce;for(let Je=0;Je<Me.length;Je++)if(Me[Je].isActive){this._indexToSelect=this._selectedIndex=Je,this._lastFocusedTabIndex=null,Ce=Me[Je];break}!Ce&&Me[ze]&&Promise.resolve().then(()=>{Me[ze].isActive=!0,this.selectedTabChange.emit(this._createChangeEvent(ze))})}this._changeDetectorRef.markForCheck()})}_subscribeToAllTabChanges(){this._allTabs.changes.pipe((0,k.O)(this._allTabs)).subscribe(ze=>{this._tabs.reset(ze.filter(Me=>Me._closestTabGroup===this||!Me._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(ze){const Me=this._tabHeader;Me&&(Me.focusIndex=ze)}_focusChanged(ze){this._lastFocusedTabIndex=ze,this.focusChange.emit(this._createChangeEvent(ze))}_createChangeEvent(ze){const Me=new rn;return Me.index=ze,this._tabs&&this._tabs.length&&(Me.tab=this._tabs.toArray()[ze]),Me}_subscribeToTabLabels(){this._tabLabelSubscription&&this._tabLabelSubscription.unsubscribe(),this._tabLabelSubscription=(0,Q.T)(...this._tabs.map(ze=>ze._stateChanges)).subscribe(()=>this._changeDetectorRef.markForCheck())}_clampTabIndex(ze){return Math.min(this._tabs.length-1,Math.max(ze||0,0))}_getTabLabelId(ze){return`mat-tab-label-${this._groupId}-${ze}`}_getTabContentId(ze){return`mat-tab-content-${this._groupId}-${ze}`}_setTabBodyWrapperHeight(ze){if(!this._dynamicHeight||!this._tabBodyWrapperHeight)return;const Me=this._tabBodyWrapper.nativeElement;Me.style.height=this._tabBodyWrapperHeight+"px",this._tabBodyWrapper.nativeElement.offsetHeight&&(Me.style.height=ze+"px")}_removeTabBodyWrapperHeight(){const ze=this._tabBodyWrapper.nativeElement;this._tabBodyWrapperHeight=ze.clientHeight,ze.style.height="",this.animationDone.emit()}_handleClick(ze,Me,Ce){ze.disabled||(this.selectedIndex=Me.focusIndex=Ce)}_getTabIndex(ze,Me){if(ze.disabled)return null;return Me===(this._lastFocusedTabIndex??this.selectedIndex)?0:-1}_tabFocusChanged(ze,Me){ze&&"mouse"!==ze&&"touch"!==ze&&(this._tabHeader.focusIndex=Me)}}pn.\u0275fac=function(ze){return new(ze||pn)(s.Y36(s.SBq),s.Y36(s.sBO),s.Y36(le,8),s.Y36(s.QbO,8))},pn.\u0275dir=s.lG2({type:pn,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:[s.qOj]});class tt extends pn{constructor(ze,Me,Ce,Je){super(ze,Me,Ce,Je)}}tt.\u0275fac=function(ze){return new(ze||tt)(s.Y36(s.SBq),s.Y36(s.sBO),s.Y36(le,8),s.Y36(s.QbO,8))},tt.\u0275cmp=s.Xpm({type:tt,selectors:[["mat-tab-group"]],contentQueries:function(ze,Me,Ce){if(1&ze&&s.Suo(Ce,ee,5),2&ze){let Je;s.iGM(Je=s.CRH())&&(Me._allTabs=Je)}},viewQuery:function(ze,Me){if(1&ze&&(s.Gf(N,5),s.Gf(F,5)),2&ze){let Ce;s.iGM(Ce=s.CRH())&&(Me._tabBodyWrapper=Ce.first),s.iGM(Ce=s.CRH())&&(Me._tabHeader=Ce.first)}},hostAttrs:[1,"mat-tab-group"],hostVars:4,hostBindings:function(ze,Me){2&ze&&s.ekj("mat-tab-group-dynamic-height",Me.dynamicHeight)("mat-tab-group-inverted-header","below"===Me.headerPosition)},inputs:{color:"color",disableRipple:"disableRipple"},exportAs:["matTabGroup"],features:[s._Bn([{provide:pe,useExisting:tt}]),s.qOj],decls:6,vars:7,consts:[[3,"selectedIndex","disableRipple","disablePagination","indexFocused","selectFocusedIndex"],["tabHeader",""],["class","mat-tab-label mat-focus-indicator","role","tab","matTabLabelWrapper","","mat-ripple","","cdkMonitorElementFocus","",3,"id","mat-tab-label-active","ngClass","disabled","matRippleDisabled","click","cdkFocusChange",4,"ngFor","ngForOf"],[1,"mat-tab-body-wrapper"],["tabBodyWrapper",""],["role","tabpanel",3,"id","mat-tab-body-active","ngClass","content","position","origin","animationDuration","preserveContent","_onCentered","_onCentering",4,"ngFor","ngForOf"],["role","tab","matTabLabelWrapper","","mat-ripple","","cdkMonitorElementFocus","",1,"mat-tab-label","mat-focus-indicator",3,"id","ngClass","disabled","matRippleDisabled","click","cdkFocusChange"],[1,"mat-tab-label-content"],[3,"ngIf","ngIfElse"],["tabTextLabel",""],[3,"cdkPortalOutlet"],["role","tabpanel",3,"id","ngClass","content","position","origin","animationDuration","preserveContent","_onCentered","_onCentering"]],template:function(ze,Me){1&ze&&(s.TgZ(0,"mat-tab-header",0,1),s.NdJ("indexFocused",function(Je){return Me._focusChanged(Je)})("selectFocusedIndex",function(Je){return Me.selectedIndex=Je}),s.YNc(2,Ke,5,15,"div",2),s.qZA(),s.TgZ(3,"div",3,4),s.YNc(5,je,1,11,"mat-tab-body",5),s.qZA()),2&ze&&(s.Q6J("selectedIndex",Me.selectedIndex||0)("disableRipple",Me.disableRipple)("disablePagination",Me.disablePagination),s.xp6(2),s.Q6J("ngForOf",Me._tabs),s.xp6(1),s.ekj("_mat-animation-noopable","NoopAnimations"===Me._animationMode),s.xp6(2),s.Q6J("ngForOf",Me._tabs))},dependencies:[E.mk,E.sg,E.O5,_.Pl,D.wG,e.kH,it,Re,Gt],styles:[".mat-tab-group{display:flex;flex-direction:column;max-width:100%}.mat-tab-group.mat-tab-group-inverted-header{flex-direction:column-reverse}.mat-tab-label{height:48px;padding:0 24px;cursor:pointer;box-sizing:border-box;opacity:.6;min-width:160px;text-align:center;display:inline-flex;justify-content:center;align-items:center;white-space:nowrap;position:relative}.mat-tab-label:focus{outline:none}.mat-tab-label:focus:not(.mat-tab-disabled){opacity:1}.mat-tab-label.mat-tab-disabled{cursor:default}.cdk-high-contrast-active .mat-tab-label.mat-tab-disabled{opacity:.5}.mat-tab-label .mat-tab-label-content{display:inline-flex;justify-content:center;align-items:center;white-space:nowrap}.cdk-high-contrast-active .mat-tab-label{opacity:1}@media(max-width: 599px){.mat-tab-label{padding:0 12px}}@media(max-width: 959px){.mat-tab-label{padding:0 12px}}.mat-tab-group[mat-stretch-tabs]>.mat-tab-header .mat-tab-label{flex-basis:0;flex-grow:1}.mat-tab-body-wrapper{position:relative;overflow:hidden;display:flex;transition:height 500ms cubic-bezier(0.35, 0, 0.25, 1)}.mat-tab-body-wrapper._mat-animation-noopable{transition:none !important;animation:none !important}.mat-tab-body{top:0;left:0;right:0;bottom:0;position:absolute;display:block;overflow:hidden;outline:0;flex-basis:100%}.mat-tab-body.mat-tab-body-active{position:relative;overflow-x:hidden;overflow-y:auto;z-index:1;flex-grow:1}.mat-tab-group.mat-tab-group-dynamic-height .mat-tab-body.mat-tab-body-active{overflow-y:hidden}"],encapsulation:2});let vt=0;class dt extends yn{constructor(ze,Me,Ce,Je,zt,At,Tt){super(ze,Je,zt,Me,Ce,At,Tt),this._disableRipple=!1,this.color="primary"}get backgroundColor(){return this._backgroundColor}set backgroundColor(ze){const Me=this._elementRef.nativeElement.classList;Me.remove(`mat-background-${this.backgroundColor}`),ze&&Me.add(`mat-background-${ze}`),this._backgroundColor=ze}get disableRipple(){return this._disableRipple}set disableRipple(ze){this._disableRipple=(0,ue.Ig)(ze)}_itemSelected(){}ngAfterContentInit(){this._items.changes.pipe((0,k.O)(null),(0,S.R)(this._destroyed)).subscribe(()=>{this.updateActiveLink()}),super.ngAfterContentInit()}updateActiveLink(){if(!this._items)return;const ze=this._items.toArray();for(let Me=0;Me<ze.length;Me++)if(ze[Me].active)return this.selectedIndex=Me,this._changeDetectorRef.markForCheck(),void(this.tabPanel&&(this.tabPanel._activeTabId=ze[Me].id));this.selectedIndex=-1,this._inkBar.hide()}_getRole(){return this.tabPanel?"tablist":this._elementRef.nativeElement.getAttribute("role")}}dt.\u0275fac=function(ze){return new(ze||dt)(s.Y36(s.SBq),s.Y36(ce.Is,8),s.Y36(s.R0b),s.Y36(s.sBO),s.Y36($.rL),s.Y36(he.t4),s.Y36(s.QbO,8))},dt.\u0275dir=s.lG2({type:dt,inputs:{backgroundColor:"backgroundColor",disableRipple:"disableRipple",color:"color",tabPanel:"tabPanel"},features:[s.qOj]});class se extends dt{constructor(ze,Me,Ce,Je,zt,At,Tt){super(ze,Me,Ce,Je,zt,At,Tt)}}se.\u0275fac=function(ze){return new(ze||se)(s.Y36(s.SBq),s.Y36(ce.Is,8),s.Y36(s.R0b),s.Y36(s.sBO),s.Y36($.rL),s.Y36(he.t4),s.Y36(s.QbO,8))},se.\u0275cmp=s.Xpm({type:se,selectors:[["","mat-tab-nav-bar",""]],contentQueries:function(ze,Me,Ce){if(1&ze&&s.Suo(Ce,De,5),2&ze){let Je;s.iGM(Je=s.CRH())&&(Me._items=Je)}},viewQuery:function(ze,Me){if(1&ze&&(s.Gf(Ie,7),s.Gf(L,7),s.Gf(B,7),s.Gf(v,7),s.Gf(a,5),s.Gf(C,5)),2&ze){let Ce;s.iGM(Ce=s.CRH())&&(Me._inkBar=Ce.first),s.iGM(Ce=s.CRH())&&(Me._tabListContainer=Ce.first),s.iGM(Ce=s.CRH())&&(Me._tabList=Ce.first),s.iGM(Ce=s.CRH())&&(Me._tabListInner=Ce.first),s.iGM(Ce=s.CRH())&&(Me._nextPaginator=Ce.first),s.iGM(Ce=s.CRH())&&(Me._previousPaginator=Ce.first)}},hostAttrs:[1,"mat-tab-nav-bar","mat-tab-header"],hostVars:11,hostBindings:function(ze,Me){2&ze&&(s.uIk("role",Me._getRole()),s.ekj("mat-tab-header-pagination-controls-enabled",Me._showPaginationControls)("mat-tab-header-rtl","rtl"==Me._getLayoutDirection())("mat-primary","warn"!==Me.color&&"accent"!==Me.color)("mat-accent","accent"===Me.color)("mat-warn","warn"===Me.color))},inputs:{color:"color"},exportAs:["matTabNavBar","matTabNav"],features:[s.qOj],attrs:["mat-tab-nav-bar",""],ngContentSelectors:o,decls:14,vars:10,consts:[["aria-hidden","true","type","button","mat-ripple","","tabindex","-1",1,"mat-tab-header-pagination","mat-tab-header-pagination-before","mat-elevation-z4",3,"matRippleDisabled","disabled","click","mousedown","touchend"],["previousPaginator",""],[1,"mat-tab-header-pagination-chevron"],[1,"mat-tab-link-container",3,"keydown"],["tabListContainer",""],[1,"mat-tab-list",3,"cdkObserveContent"],["tabList",""],[1,"mat-tab-links"],["tabListInner",""],["aria-hidden","true","type","button","mat-ripple","","tabindex","-1",1,"mat-tab-header-pagination","mat-tab-header-pagination-after","mat-elevation-z4",3,"matRippleDisabled","disabled","mousedown","click","touchend"],["nextPaginator",""]],template:function(ze,Me){1&ze&&(s.F$t(),s.TgZ(0,"button",0,1),s.NdJ("click",function(){return Me._handlePaginatorClick("before")})("mousedown",function(Je){return Me._handlePaginatorPress("before",Je)})("touchend",function(){return Me._stopInterval()}),s._UZ(2,"div",2),s.qZA(),s.TgZ(3,"div",3,4),s.NdJ("keydown",function(Je){return Me._handleKeydown(Je)}),s.TgZ(5,"div",5,6),s.NdJ("cdkObserveContent",function(){return Me._onContentChanges()}),s.TgZ(7,"div",7,8),s.Hsn(9),s.qZA(),s._UZ(10,"mat-ink-bar"),s.qZA()(),s.TgZ(11,"button",9,10),s.NdJ("mousedown",function(Je){return Me._handlePaginatorPress("after",Je)})("click",function(){return Me._handlePaginatorClick("after")})("touchend",function(){return Me._stopInterval()}),s._UZ(13,"div",2),s.qZA()),2&ze&&(s.ekj("mat-tab-header-pagination-disabled",Me._disableScrollBefore),s.Q6J("matRippleDisabled",Me._disableScrollBefore||Me.disableRipple)("disabled",Me._disableScrollBefore||null),s.xp6(5),s.ekj("_mat-animation-noopable","NoopAnimations"===Me._animationMode),s.xp6(6),s.ekj("mat-tab-header-pagination-disabled",Me._disableScrollAfter),s.Q6J("matRippleDisabled",Me._disableScrollAfter||Me.disableRipple)("disabled",Me._disableScrollAfter||null))},dependencies:[D.wG,t.wD,Ie],styles:[".mat-tab-header{display:flex;overflow:hidden;position:relative;flex-shrink:0}.mat-tab-header-pagination{-webkit-user-select:none;user-select:none;position:relative;display:none;justify-content:center;align-items:center;min-width:32px;cursor:pointer;z-index:2;-webkit-tap-highlight-color:rgba(0,0,0,0);touch-action:none;box-sizing:content-box;background:none;border:none;outline:0;padding:0}.mat-tab-header-pagination::-moz-focus-inner{border:0}.mat-tab-header-pagination-controls-enabled .mat-tab-header-pagination{display:flex}.mat-tab-header-pagination-before,.mat-tab-header-rtl .mat-tab-header-pagination-after{padding-left:4px}.mat-tab-header-pagination-before .mat-tab-header-pagination-chevron,.mat-tab-header-rtl .mat-tab-header-pagination-after .mat-tab-header-pagination-chevron{transform:rotate(-135deg)}.mat-tab-header-rtl .mat-tab-header-pagination-before,.mat-tab-header-pagination-after{padding-right:4px}.mat-tab-header-rtl .mat-tab-header-pagination-before .mat-tab-header-pagination-chevron,.mat-tab-header-pagination-after .mat-tab-header-pagination-chevron{transform:rotate(45deg)}.mat-tab-header-pagination-chevron{border-style:solid;border-width:2px 2px 0 0;height:8px;width:8px}.mat-tab-header-pagination-disabled{box-shadow:none;cursor:default}.mat-tab-list{flex-grow:1;position:relative;transition:transform 500ms cubic-bezier(0.35, 0, 0.25, 1)}.mat-tab-links{display:flex}[mat-align-tabs=center]>.mat-tab-link-container .mat-tab-links{justify-content:center}[mat-align-tabs=end]>.mat-tab-link-container .mat-tab-links{justify-content:flex-end}.mat-ink-bar{position:absolute;bottom:0;height:2px;transition:500ms cubic-bezier(0.35, 0, 0.25, 1)}.mat-ink-bar._mat-animation-noopable{transition:none !important;animation:none !important}.mat-tab-group-inverted-header .mat-ink-bar{bottom:auto;top:0}.cdk-high-contrast-active .mat-ink-bar{outline:solid 2px;height:0}.mat-tab-link-container{display:flex;flex-grow:1;overflow:hidden;z-index:1}.mat-tab-link{height:48px;padding:0 24px;cursor:pointer;box-sizing:border-box;opacity:.6;min-width:160px;text-align:center;display:inline-flex;justify-content:center;align-items:center;white-space:nowrap;vertical-align:top;text-decoration:none;position:relative;overflow:hidden;-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-tab-link:focus{outline:none}.mat-tab-link:focus:not(.mat-tab-disabled){opacity:1}.mat-tab-link.mat-tab-disabled{cursor:default}.cdk-high-contrast-active .mat-tab-link.mat-tab-disabled{opacity:.5}.mat-tab-link .mat-tab-label-content{display:inline-flex;justify-content:center;align-items:center;white-space:nowrap}.cdk-high-contrast-active .mat-tab-link{opacity:1}[mat-stretch-tabs] .mat-tab-link{flex-basis:0;flex-grow:1}.mat-tab-link.mat-tab-disabled{pointer-events:none}.mat-tab-link::before{margin:5px}@media(max-width: 599px){.mat-tab-link{min-width:72px}}"],encapsulation:2});const J=(0,D.sb)((0,D.Kr)((0,D.Id)(class{})));class oe extends J{constructor(ze,Me,Ce,Je,zt,At){super(),this._tabNavBar=ze,this.elementRef=Me,this._focusMonitor=zt,this._isActive=!1,this.id="mat-tab-link-"+vt++,this.rippleConfig=Ce||{},this.tabIndex=parseInt(Je)||0,"NoopAnimations"===At&&(this.rippleConfig.animation={enterDuration:0,exitDuration:0})}get active(){return this._isActive}set active(ze){const Me=(0,ue.Ig)(ze);Me!==this._isActive&&(this._isActive=Me,this._tabNavBar.updateActiveLink())}get rippleDisabled(){return this.disabled||this.disableRipple||this._tabNavBar.disableRipple||!!this.rippleConfig.disabled}focus(){this.elementRef.nativeElement.focus()}ngAfterViewInit(){this._focusMonitor.monitor(this.elementRef)}ngOnDestroy(){this._focusMonitor.stopMonitoring(this.elementRef)}_handleFocus(){this._tabNavBar.focusIndex=this._tabNavBar._items.toArray().indexOf(this)}_handleKeydown(ze){this._tabNavBar.tabPanel&&ze.keyCode===w.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}}oe.\u0275fac=function(ze){return new(ze||oe)(s.Y36(dt),s.Y36(s.SBq),s.Y36(D.Y2,8),s.$8M("tabindex"),s.Y36(e.tE),s.Y36(s.QbO,8))},oe.\u0275dir=s.lG2({type:oe,inputs:{active:"active",id:"id"},features:[s.qOj]});class De extends oe{constructor(ze,Me,Ce,Je,zt,At,Tt,Ht){super(ze,Me,zt,At,Tt,Ht),this._tabLinkRipple=new D.IR(this,Ce,Me,Je),this._tabLinkRipple.setupTriggerEvents(Me.nativeElement)}ngOnDestroy(){super.ngOnDestroy(),this._tabLinkRipple._removeTriggerEvents()}}De.\u0275fac=function(ze){return new(ze||De)(s.Y36(se),s.Y36(s.SBq),s.Y36(s.R0b),s.Y36(he.t4),s.Y36(D.Y2,8),s.$8M("tabindex"),s.Y36(e.tE),s.Y36(s.QbO,8))},De.\u0275dir=s.lG2({type:De,selectors:[["","mat-tab-link",""],["","matTabLink",""]],hostAttrs:[1,"mat-tab-link","mat-focus-indicator"],hostVars:11,hostBindings:function(ze,Me){1&ze&&s.NdJ("focus",function(){return Me._handleFocus()})("keydown",function(Je){return Me._handleKeydown(Je)}),2&ze&&(s.uIk("aria-controls",Me._getAriaControls())("aria-current",Me._getAriaCurrent())("aria-disabled",Me.disabled)("aria-selected",Me._getAriaSelected())("id",Me.id)("tabIndex",Me._getTabIndex())("role",Me._getRole()),s.ekj("mat-tab-disabled",Me.disabled)("mat-tab-label-active",Me.active))},inputs:{disabled:"disabled",disableRipple:"disableRipple",tabIndex:"tabIndex"},exportAs:["matTabLink"],features:[s.qOj]});class Ye{constructor(){this.id="mat-tab-nav-panel-"+vt++}}Ye.\u0275fac=function(ze){return new(ze||Ye)},Ye.\u0275cmp=s.Xpm({type:Ye,selectors:[["mat-tab-nav-panel"]],hostAttrs:["role","tabpanel",1,"mat-tab-nav-panel"],hostVars:2,hostBindings:function(ze,Me){2&ze&&s.uIk("aria-labelledby",Me._activeTabId)("id",Me.id)},inputs:{id:"id"},exportAs:["matTabNavPanel"],ngContentSelectors:o,decls:1,vars:0,template:function(ze,Me){1&ze&&(s.F$t(),s.Hsn(0))},encapsulation:2,changeDetection:0});class Dt{}Dt.\u0275fac=function(ze){return new(ze||Dt)},Dt.\u0275mod=s.oAB({type:Dt}),Dt.\u0275inj=s.cJS({imports:[E.ez,D.BQ,_.eL,D.si,t.Q8,e.rt,D.BQ]})},2543:(Ue,q,m)=>{"use strict";m.d(q,{Ye:()=>p,g0:()=>A});var e=m(2560),t=m(207),_=m(9107),E=m(4666);const s=["*",[["mat-toolbar-row"]]],u=(0,t.pj)(class{constructor(P){this._elementRef=P}});class k{}k.\u0275fac=function(M){return new(M||k)},k.\u0275dir=e.lG2({type:k,selectors:[["mat-toolbar-row"]],hostAttrs:[1,"mat-toolbar-row"],exportAs:["matToolbarRow"]});class p extends u{constructor(M,z,I){super(M),this._platform=z,this._document=I}ngAfterViewInit(){this._platform.isBrowser&&(this._checkToolbarMixedModes(),this._toolbarRows.changes.subscribe(()=>this._checkToolbarMixedModes()))}_checkToolbarMixedModes(){this._toolbarRows.length}}p.\u0275fac=function(M){return new(M||p)(e.Y36(e.SBq),e.Y36(_.t4),e.Y36(E.K0))},p.\u0275cmp=e.Xpm({type:p,selectors:[["mat-toolbar"]],contentQueries:function(M,z,I){if(1&M&&e.Suo(I,k,5),2&M){let W;e.iGM(W=e.CRH())&&(z._toolbarRows=W)}},hostAttrs:[1,"mat-toolbar"],hostVars:4,hostBindings:function(M,z){2&M&&e.ekj("mat-toolbar-multiple-rows",z._toolbarRows.length>0)("mat-toolbar-single-row",0===z._toolbarRows.length)},inputs:{color:"color"},exportAs:["matToolbar"],features:[e.qOj],ngContentSelectors:["*","mat-toolbar-row"],decls:2,vars:0,template:function(M,z){1&M&&(e.F$t(s),e.Hsn(0),e.Hsn(1,1))},styles:[".cdk-high-contrast-active .mat-toolbar{outline:solid 1px}.mat-toolbar-row,.mat-toolbar-single-row{display:flex;box-sizing:border-box;padding:0 16px;width:100%;flex-direction:row;align-items:center;white-space:nowrap}.mat-toolbar-multiple-rows{display:flex;box-sizing:border-box;flex-direction:column;width:100%}"],encapsulation:2,changeDetection:0});class A{}A.\u0275fac=function(M){return new(M||A)},A.\u0275mod=e.oAB({type:A}),A.\u0275inj=e.cJS({imports:[t.BQ,t.BQ]})},6896:(Ue,q,m)=>{"use strict";m.d(q,{AV:()=>L,gM:()=>h});var e=m(5895),t=m(4218),_=m(4666),E=m(2560),s=m(207),D=m(1494),u=m(2867),k=m(8971),p=m(8456),S=m(3278),A=m(9107),P=m(7520),M=m(253),z=m(8951),I=m(9295),W=m(4851);const Z=["tooltip"],ae="tooltip-panel",_e=(0,A.i$)({passive:!0});const ue=new E.OlP("mat-tooltip-scroll-strategy");const he={provide:ue,deps:[e.aV],useFactory:function $(v){return()=>v.scrollStrategies.reposition({scrollThrottle:20})}},w=new E.OlP("mat-tooltip-default-options",{providedIn:"root",factory:function n(){return{showDelay:0,hideDelay:0,touchendHideDelay:1500}}});class o{constructor(a,C,N,F,X,Fe,ke,Ke,je,Ve,xe,Ze){this._overlay=a,this._elementRef=C,this._scrollDispatcher=N,this._viewContainerRef=F,this._ngZone=X,this._platform=Fe,this._ariaDescriber=ke,this._focusMonitor=Ke,this._dir=Ve,this._defaultOptions=xe,this._position="below",this._disabled=!1,this._viewInitialized=!1,this._pointerExitEventsInitialized=!1,this._viewportMargin=8,this._cssClassPrefix="mat",this._showDelay=this._defaultOptions.showDelay,this._hideDelay=this._defaultOptions.hideDelay,this.touchGestures="auto",this._message="",this._passiveListeners=[],this._destroyed=new M.x,this._scrollStrategy=je,this._document=Ze,xe&&(xe.position&&(this.position=xe.position),xe.touchGestures&&(this.touchGestures=xe.touchGestures)),Ve.change.pipe((0,z.R)(this._destroyed)).subscribe(()=>{this._overlayRef&&this._updatePosition(this._overlayRef)})}get position(){return this._position}set position(a){a!==this._position&&(this._position=a,this._overlayRef&&(this._updatePosition(this._overlayRef),this._tooltipInstance?.show(0),this._overlayRef.updatePosition()))}get disabled(){return this._disabled}set disabled(a){this._disabled=(0,k.Ig)(a),this._disabled?this.hide(0):this._setupPointerEnterEventsIfNeeded()}get showDelay(){return this._showDelay}set showDelay(a){this._showDelay=(0,k.su)(a)}get hideDelay(){return this._hideDelay}set hideDelay(a){this._hideDelay=(0,k.su)(a),this._tooltipInstance&&(this._tooltipInstance._mouseLeaveHideDelay=this._hideDelay)}get message(){return this._message}set message(a){this._ariaDescriber.removeDescription(this._elementRef.nativeElement,this._message,"tooltip"),this._message=null!=a?String(a).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(a){this._tooltipClass=a,this._tooltipInstance&&this._setTooltipClass(this._tooltipClass)}ngAfterViewInit(){this._viewInitialized=!0,this._setupPointerEnterEventsIfNeeded(),this._focusMonitor.monitor(this._elementRef).pipe((0,z.R)(this._destroyed)).subscribe(a=>{a?"keyboard"===a&&this._ngZone.run(()=>this.show()):this._ngZone.run(()=>this.hide(0))})}ngOnDestroy(){const a=this._elementRef.nativeElement;clearTimeout(this._touchstartTimeout),this._overlayRef&&(this._overlayRef.dispose(),this._tooltipInstance=null),this._passiveListeners.forEach(([C,N])=>{a.removeEventListener(C,N,_e)}),this._passiveListeners.length=0,this._destroyed.next(),this._destroyed.complete(),this._ariaDescriber.removeDescription(a,this.message,"tooltip"),this._focusMonitor.stopMonitoring(a)}show(a=this.showDelay){if(this.disabled||!this.message||this._isTooltipVisible())return void this._tooltipInstance?._cancelPendingAnimations();const C=this._createOverlay();this._detach(),this._portal=this._portal||new P.C5(this._tooltipComponent,this._viewContainerRef);const N=this._tooltipInstance=C.attach(this._portal).instance;N._triggerElement=this._elementRef.nativeElement,N._mouseLeaveHideDelay=this._hideDelay,N.afterHidden().pipe((0,z.R)(this._destroyed)).subscribe(()=>this._detach()),this._setTooltipClass(this._tooltipClass),this._updateTooltipMessage(),N.show(a)}hide(a=this.hideDelay){const C=this._tooltipInstance;C&&(C.isVisible()?C.hide(a):(C._cancelPendingAnimations(),this._detach()))}toggle(){this._isTooltipVisible()?this.hide():this.show()}_isTooltipVisible(){return!!this._tooltipInstance&&this._tooltipInstance.isVisible()}_createOverlay(){if(this._overlayRef)return this._overlayRef;const a=this._scrollDispatcher.getAncestorScrollContainers(this._elementRef),C=this._overlay.position().flexibleConnectedTo(this._elementRef).withTransformOriginOn(`.${this._cssClassPrefix}-tooltip`).withFlexibleDimensions(!1).withViewportMargin(this._viewportMargin).withScrollableContainers(a);return C.positionChanges.pipe((0,z.R)(this._destroyed)).subscribe(N=>{this._updateCurrentPositionClass(N.connectionPair),this._tooltipInstance&&N.scrollableViewProperties.isOverlayClipped&&this._tooltipInstance.isVisible()&&this._ngZone.run(()=>this.hide(0))}),this._overlayRef=this._overlay.create({direction:this._dir,positionStrategy:C,panelClass:`${this._cssClassPrefix}-${ae}`,scrollStrategy:this._scrollStrategy()}),this._updatePosition(this._overlayRef),this._overlayRef.detachments().pipe((0,z.R)(this._destroyed)).subscribe(()=>this._detach()),this._overlayRef.outsidePointerEvents().pipe((0,z.R)(this._destroyed)).subscribe(()=>this._tooltipInstance?._handleBodyInteraction()),this._overlayRef.keydownEvents().pipe((0,z.R)(this._destroyed)).subscribe(N=>{this._isTooltipVisible()&&N.keyCode===p.hY&&!(0,p.Vb)(N)&&(N.preventDefault(),N.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(a){const C=a.getConfig().positionStrategy,N=this._getOrigin(),F=this._getOverlayPosition();C.withPositions([this._addOffset({...N.main,...F.main}),this._addOffset({...N.fallback,...F.fallback})])}_addOffset(a){return a}_getOrigin(){const a=!this._dir||"ltr"==this._dir.value,C=this.position;let N;"above"==C||"below"==C?N={originX:"center",originY:"above"==C?"top":"bottom"}:"before"==C||"left"==C&&a||"right"==C&&!a?N={originX:"start",originY:"center"}:("after"==C||"right"==C&&a||"left"==C&&!a)&&(N={originX:"end",originY:"center"});const{x:F,y:X}=this._invertPosition(N.originX,N.originY);return{main:N,fallback:{originX:F,originY:X}}}_getOverlayPosition(){const a=!this._dir||"ltr"==this._dir.value,C=this.position;let N;"above"==C?N={overlayX:"center",overlayY:"bottom"}:"below"==C?N={overlayX:"center",overlayY:"top"}:"before"==C||"left"==C&&a||"right"==C&&!a?N={overlayX:"end",overlayY:"center"}:("after"==C||"right"==C&&a||"left"==C&&!a)&&(N={overlayX:"start",overlayY:"center"});const{x:F,y:X}=this._invertPosition(N.overlayX,N.overlayY);return{main:N,fallback:{overlayX:F,overlayY:X}}}_updateTooltipMessage(){this._tooltipInstance&&(this._tooltipInstance.message=this.message,this._tooltipInstance._markForCheck(),this._ngZone.onMicrotaskEmpty.pipe((0,I.q)(1),(0,z.R)(this._destroyed)).subscribe(()=>{this._tooltipInstance&&this._overlayRef.updatePosition()}))}_setTooltipClass(a){this._tooltipInstance&&(this._tooltipInstance.tooltipClass=a,this._tooltipInstance._markForCheck())}_invertPosition(a,C){return"above"===this.position||"below"===this.position?"top"===C?C="bottom":"bottom"===C&&(C="top"):"end"===a?a="start":"start"===a&&(a="end"),{x:a,y:C}}_updateCurrentPositionClass(a){const{overlayY:C,originX:N,originY:F}=a;let X;if(X="center"===C?this._dir&&"rtl"===this._dir.value?"end"===N?"left":"right":"start"===N?"left":"right":"bottom"===C&&"top"===F?"above":"below",X!==this._currentPosition){const Fe=this._overlayRef;if(Fe){const ke=`${this._cssClassPrefix}-${ae}-`;Fe.removePanelClass(ke+this._currentPosition),Fe.addPanelClass(ke+X)}this._currentPosition=X}}_setupPointerEnterEventsIfNeeded(){this._disabled||!this.message||!this._viewInitialized||this._passiveListeners.length||(this._platformSupportsMouseEvents()?this._passiveListeners.push(["mouseenter",()=>{this._setupPointerExitEventsIfNeeded(),this.show()}]):"off"!==this.touchGestures&&(this._disableNativeGesturesIfNecessary(),this._passiveListeners.push(["touchstart",()=>{this._setupPointerExitEventsIfNeeded(),clearTimeout(this._touchstartTimeout),this._touchstartTimeout=setTimeout(()=>this.show(),500)}])),this._addListeners(this._passiveListeners))}_setupPointerExitEventsIfNeeded(){if(this._pointerExitEventsInitialized)return;this._pointerExitEventsInitialized=!0;const a=[];if(this._platformSupportsMouseEvents())a.push(["mouseleave",C=>{const N=C.relatedTarget;(!N||!this._overlayRef?.overlayElement.contains(N))&&this.hide()}],["wheel",C=>this._wheelListener(C)]);else if("off"!==this.touchGestures){this._disableNativeGesturesIfNecessary();const C=()=>{clearTimeout(this._touchstartTimeout),this.hide(this._defaultOptions.touchendHideDelay)};a.push(["touchend",C],["touchcancel",C])}this._addListeners(a),this._passiveListeners.push(...a)}_addListeners(a){a.forEach(([C,N])=>{this._elementRef.nativeElement.addEventListener(C,N,_e)})}_platformSupportsMouseEvents(){return!this._platform.IOS&&!this._platform.ANDROID}_wheelListener(a){if(this._isTooltipVisible()){const C=this._document.elementFromPoint(a.clientX,a.clientY),N=this._elementRef.nativeElement;C!==N&&!N.contains(C)&&this.hide()}}_disableNativeGesturesIfNecessary(){const a=this.touchGestures;if("off"!==a){const C=this._elementRef.nativeElement,N=C.style;("on"===a||"INPUT"!==C.nodeName&&"TEXTAREA"!==C.nodeName)&&(N.userSelect=N.msUserSelect=N.webkitUserSelect=N.MozUserSelect="none"),("on"===a||!C.draggable)&&(N.webkitUserDrag="none"),N.touchAction="none",N.webkitTapHighlightColor="transparent"}}}o.\u0275fac=function(a){E.$Z()},o.\u0275dir=E.lG2({type:o,inputs:{position:["matTooltipPosition","position"],disabled:["matTooltipDisabled","disabled"],showDelay:["matTooltipShowDelay","showDelay"],hideDelay:["matTooltipHideDelay","hideDelay"],touchGestures:["matTooltipTouchGestures","touchGestures"],message:["matTooltip","message"],tooltipClass:["matTooltipClass","tooltipClass"]}});class h extends o{constructor(a,C,N,F,X,Fe,ke,Ke,je,Ve,xe,Ze){super(a,C,N,F,X,Fe,ke,Ke,je,Ve,xe,Ze),this._tooltipComponent=y}}h.\u0275fac=function(a){return new(a||h)(E.Y36(e.aV),E.Y36(E.SBq),E.Y36(D.mF),E.Y36(E.s_b),E.Y36(E.R0b),E.Y36(A.t4),E.Y36(t.$s),E.Y36(t.tE),E.Y36(ue),E.Y36(u.Is,8),E.Y36(w,8),E.Y36(_.K0))},h.\u0275dir=E.lG2({type:h,selectors:[["","matTooltip",""]],hostAttrs:[1,"mat-tooltip-trigger"],exportAs:["matTooltip"],features:[E.qOj]});class d{constructor(a,C){this._changeDetectorRef=a,this._closeOnInteraction=!1,this._isVisible=!1,this._onHide=new M.x,this._animationsDisabled="NoopAnimations"===C}show(a){clearTimeout(this._hideTimeoutId),this._showTimeoutId=setTimeout(()=>{this._toggleVisibility(!0),this._showTimeoutId=void 0},a)}hide(a){clearTimeout(this._showTimeoutId),this._hideTimeoutId=setTimeout(()=>{this._toggleVisibility(!1),this._hideTimeoutId=void 0},a)}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:a}){(!a||!this._triggerElement.contains(a))&&(this.isVisible()?this.hide(this._mouseLeaveHideDelay):this._finalizeAnimation(!1))}_onShow(){}_handleAnimationEnd({animationName:a}){(a===this._showAnimation||a===this._hideAnimation)&&this._finalizeAnimation(a===this._showAnimation)}_cancelPendingAnimations(){clearTimeout(this._showTimeoutId),clearTimeout(this._hideTimeoutId),this._showTimeoutId=this._hideTimeoutId=void 0}_finalizeAnimation(a){a?this._closeOnInteraction=!0:this.isVisible()||this._onHide.next()}_toggleVisibility(a){const C=this._tooltip.nativeElement,N=this._showAnimation,F=this._hideAnimation;if(C.classList.remove(a?F:N),C.classList.add(a?N:F),this._isVisible=a,a&&!this._animationsDisabled&&"function"==typeof getComputedStyle){const X=getComputedStyle(C);("0s"===X.getPropertyValue("animation-duration")||"none"===X.getPropertyValue("animation-name"))&&(this._animationsDisabled=!0)}a&&this._onShow(),this._animationsDisabled&&(C.classList.add("_mat-animation-noopable"),this._finalizeAnimation(a))}}d.\u0275fac=function(a){return new(a||d)(E.Y36(E.sBO),E.Y36(E.QbO,8))},d.\u0275dir=E.lG2({type:d});class y extends d{constructor(a,C,N){super(a,N),this._breakpointObserver=C,this._isHandset=this._breakpointObserver.observe(S.u3.Handset),this._showAnimation="mat-tooltip-show",this._hideAnimation="mat-tooltip-hide"}}y.\u0275fac=function(a){return new(a||y)(E.Y36(E.sBO),E.Y36(S.Yg),E.Y36(E.QbO,8))},y.\u0275cmp=E.Xpm({type:y,selectors:[["mat-tooltip-component"]],viewQuery:function(a,C){if(1&a&&E.Gf(Z,7),2&a){let N;E.iGM(N=E.CRH())&&(C._tooltip=N.first)}},hostAttrs:["aria-hidden","true"],hostVars:2,hostBindings:function(a,C){1&a&&E.NdJ("mouseleave",function(F){return C._handleMouseLeave(F)}),2&a&&E.Udp("zoom",C.isVisible()?1:null)},features:[E.qOj],decls:4,vars:6,consts:[[1,"mat-tooltip",3,"ngClass","animationend"],["tooltip",""]],template:function(a,C){if(1&a&&(E.TgZ(0,"div",0,1),E.NdJ("animationend",function(F){return C._handleAnimationEnd(F)}),E.ALo(2,"async"),E._uU(3),E.qZA()),2&a){let N;E.ekj("mat-tooltip-handset",null==(N=E.lcZ(2,4,C._isHandset))?null:N.matches),E.Q6J("ngClass",C.tooltipClass),E.xp6(3),E.Oqu(C.message)}},dependencies:[_.mk,_.Ov],styles:[".mat-tooltip{color:#fff;border-radius:4px;margin:14px;max-width:250px;padding-left:8px;padding-right:8px;overflow:hidden;text-overflow:ellipsis;transform:scale(0)}.mat-tooltip._mat-animation-noopable{animation:none;transform:scale(1)}.cdk-high-contrast-active .mat-tooltip{outline:solid 1px}.mat-tooltip-handset{margin:24px;padding-left:16px;padding-right:16px}.mat-tooltip-panel-non-interactive{pointer-events:none}@keyframes mat-tooltip-show{0%{opacity:0;transform:scale(0)}50%{opacity:.5;transform:scale(0.99)}100%{opacity:1;transform:scale(1)}}@keyframes mat-tooltip-hide{0%{opacity:1;transform:scale(1)}100%{opacity:0;transform:scale(1)}}.mat-tooltip-show{animation:mat-tooltip-show 200ms cubic-bezier(0, 0, 0.2, 1) forwards}.mat-tooltip-hide{animation:mat-tooltip-hide 100ms cubic-bezier(0, 0, 0.2, 1) forwards}"],encapsulation:2,changeDetection:0});class L{}L.\u0275fac=function(a){return new(a||L)},L.\u0275mod=E.oAB({type:L}),L.\u0275inj=E.cJS({providers:[he],imports:[t.rt,_.ez,e.U8,s.BQ,s.BQ,D.ZD]});(0,W.X$)("state",[(0,W.SB)("initial, void, hidden",(0,W.oB)({opacity:0,transform:"scale(0)"})),(0,W.SB)("visible",(0,W.oB)({transform:"scale(1)"})),(0,W.eR)("* => visible",(0,W.jt)("200ms cubic-bezier(0, 0, 0.2, 1)",(0,W.F4)([(0,W.oB)({opacity:0,transform:"scale(0)",offset:0}),(0,W.oB)({opacity:.5,transform:"scale(0.99)",offset:.5}),(0,W.oB)({opacity:1,transform:"scale(1)",offset:1})]))),(0,W.eR)("* => hidden",(0,W.jt)("100ms cubic-bezier(0, 0, 0.2, 1)",(0,W.oB)({opacity:0})))])},3453:(Ue,q,m)=>{"use strict";m.d(q,{Ar:()=>z,GZ:()=>P,WX:()=>_e,dp:()=>Q,eu:()=>W,fQ:()=>A,gi:()=>I,uo:()=>S});var e=m(5183),t=m(2560),_=m(207),E=m(8971),s=m(1755),D=m(6317),u=m(6646),k=m(635);const p=(0,_.sb)((0,_.Id)(e.Hs));class S extends p{constructor(ye,ue,$){super(ye,ue),this.tabIndex=Number($)||0}ngOnInit(){super.ngOnInit()}ngOnDestroy(){super.ngOnDestroy()}}S.\u0275fac=function(ye){return new(ye||S)(t.Y36(t.SBq),t.Y36(e._0),t.$8M("tabindex"))},S.\u0275dir=t.lG2({type:S,selectors:[["mat-tree-node"]],hostAttrs:[1,"mat-tree-node"],inputs:{role:"role",disabled:"disabled",tabIndex:"tabIndex"},exportAs:["matTreeNode"],features:[t._Bn([{provide:e.Hs,useExisting:S}]),t.qOj]});class A extends e.rO{}A.\u0275fac=function(){let ce;return function(ue){return(ce||(ce=t.n5z(A)))(ue||A)}}(),A.\u0275dir=t.lG2({type:A,selectors:[["","matTreeNodeDef",""]],inputs:{when:["matTreeNodeDefWhen","when"],data:["matTreeNode","data"]},features:[t._Bn([{provide:e.rO,useExisting:A}]),t.qOj]});class P extends e.Xx{constructor(ye,ue,$,he){super(ye,ue,$),this._disabled=!1,this.tabIndex=Number(he)||0}get disabled(){return this._disabled}set disabled(ye){this._disabled=(0,E.Ig)(ye)}get tabIndex(){return this.disabled?-1:this._tabIndex}set tabIndex(ye){this._tabIndex=ye??0}ngOnInit(){super.ngOnInit()}ngAfterContentInit(){super.ngAfterContentInit()}ngOnDestroy(){super.ngOnDestroy()}}P.\u0275fac=function(ye){return new(ye||P)(t.Y36(t.SBq),t.Y36(e._0),t.Y36(t.ZZ4),t.$8M("tabindex"))},P.\u0275dir=t.lG2({type:P,selectors:[["mat-nested-tree-node"]],hostAttrs:[1,"mat-nested-tree-node"],inputs:{role:"role",disabled:"disabled",tabIndex:"tabIndex",node:["matNestedTreeNode","node"]},exportAs:["matNestedTreeNode"],features:[t._Bn([{provide:e.Xx,useExisting:P},{provide:e.Hs,useExisting:P},{provide:e.HI,useExisting:P}]),t.qOj]});class M extends e.XJ{get level(){return this._level}set level(ye){this._setLevelInput(ye)}get indent(){return this._indent}set indent(ye){this._setIndentInput(ye)}}M.\u0275fac=function(){let ce;return function(ue){return(ce||(ce=t.n5z(M)))(ue||M)}}(),M.\u0275dir=t.lG2({type:M,selectors:[["","matTreeNodePadding",""]],inputs:{level:["matTreeNodePadding","level"],indent:["matTreeNodePaddingIndent","indent"]},features:[t._Bn([{provide:e.XJ,useExisting:M}]),t.qOj]});class z{constructor(ye,ue){this.viewContainer=ye,this._node=ue}}z.\u0275fac=function(ye){return new(ye||z)(t.Y36(t.s_b),t.Y36(e.HI,8))},z.\u0275dir=t.lG2({type:z,selectors:[["","matTreeNodeOutlet",""]],features:[t._Bn([{provide:e.cu,useExisting:z}])]});class I extends e._0{}I.\u0275fac=function(){let ce;return function(ue){return(ce||(ce=t.n5z(I)))(ue||I)}}(),I.\u0275cmp=t.Xpm({type:I,selectors:[["mat-tree"]],viewQuery:function(ye,ue){if(1&ye&&t.Gf(z,7),2&ye){let $;t.iGM($=t.CRH())&&(ue._nodeOutlet=$.first)}},hostAttrs:["role","tree",1,"mat-tree"],exportAs:["matTree"],features:[t._Bn([{provide:e._0,useExisting:I}]),t.qOj],decls:1,vars:0,consts:[["matTreeNodeOutlet",""]],template:function(ye,ue){1&ye&&t.GkF(0,0)},dependencies:[z],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});class W extends e.Ud{}W.\u0275fac=function(){let ce;return function(ue){return(ce||(ce=t.n5z(W)))(ue||W)}}(),W.\u0275dir=t.lG2({type:W,selectors:[["","matTreeNodeToggle",""]],inputs:{recursive:["matTreeNodeToggleRecursive","recursive"]},features:[t._Bn([{provide:e.Ud,useExisting:W}]),t.qOj]});class Q{}Q.\u0275fac=function(ye){return new(ye||Q)},Q.\u0275mod=t.oAB({type:Q}),Q.\u0275inj=t.cJS({imports:[e.nZ,_.BQ,_.BQ]});class _e extends s.o2{constructor(){super(...arguments),this._data=new D.X([])}get data(){return this._data.value}set data(ye){this._data.next(ye)}connect(ye){return(0,u.T)(ye.viewChange,this._data).pipe((0,k.U)(()=>this.data))}disconnect(){}}},4497:(Ue,q,m)=>{"use strict";m.d(q,{Dx:()=>le,H7:()=>Je,b2:()=>ee,q6:()=>Le,se:()=>d,t6:()=>Ce});var e=m(4666),t=m(2560);class _ extends e.w_{constructor(){super(...arguments),this.supportsDOMEvents=!0}}class E extends _{static makeCurrent(){(0,e.HT)(new E)}onAndCancel(He,$e,$t){return He.addEventListener($e,$t,!1),()=>{He.removeEventListener($e,$t,!1)}}dispatchEvent(He,$e){He.dispatchEvent($e)}remove(He){He.parentNode&&He.parentNode.removeChild(He)}createElement(He,$e){return($e=$e||this.getDefaultDocument()).createElement(He)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(He){return He.nodeType===Node.ELEMENT_NODE}isShadowRoot(He){return He instanceof DocumentFragment}getGlobalEventTarget(He,$e){return"window"===$e?window:"document"===$e?He:"body"===$e?He.body:null}getBaseHref(He){const $e=function D(){return s=s||document.querySelector("base"),s?s.getAttribute("href"):null}();return null==$e?null:function k(Ht){u=u||document.createElement("a"),u.setAttribute("href",Ht);const He=u.pathname;return"/"===He.charAt(0)?He:`/${He}`}($e)}resetBaseElement(){s=null}getUserAgent(){return window.navigator.userAgent}getCookie(He){return(0,e.Mx)(document.cookie,He)}}let u,s=null;const p=new t.OlP("TRANSITION_ID");const A=[{provide:t.ip1,useFactory:function S(Ht,He,$e){return()=>{$e.get(t.CZH).donePromise.then(()=>{const $t=(0,e.q)(),Rt=He.querySelectorAll(`style[ng-transition="${Ht}"]`);for(let Jt=0;Jt<Rt.length;Jt++)$t.remove(Rt[Jt])})}},deps:[p,e.K0,t.zs3],multi:!0}];class M{build(){return new XMLHttpRequest}}M.\u0275fac=function(He){return new(He||M)},M.\u0275prov=t.Yz7({token:M,factory:M.\u0275fac});const z=new t.OlP("EventManagerPlugins");class I{constructor(He,$e){this._zone=$e,this._eventNameToPlugin=new Map,He.forEach($t=>$t.manager=this),this._plugins=He.slice().reverse()}addEventListener(He,$e,$t){return this._findPluginFor($e).addEventListener(He,$e,$t)}addGlobalEventListener(He,$e,$t){return this._findPluginFor($e).addGlobalEventListener(He,$e,$t)}getZone(){return this._zone}_findPluginFor(He){const $e=this._eventNameToPlugin.get(He);if($e)return $e;const $t=this._plugins;for(let Rt=0;Rt<$t.length;Rt++){const Jt=$t[Rt];if(Jt.supports(He))return this._eventNameToPlugin.set(He,Jt),Jt}throw new Error(`No event manager plugin found for event ${He}`)}}I.\u0275fac=function(He){return new(He||I)(t.LFG(z),t.LFG(t.R0b))},I.\u0275prov=t.Yz7({token:I,factory:I.\u0275fac});class W{constructor(He){this._doc=He}addGlobalEventListener(He,$e,$t){const Rt=(0,e.q)().getGlobalEventTarget(this._doc,He);if(!Rt)throw new Error(`Unsupported event target ${Rt} for event ${$e}`);return this.addEventListener(Rt,$e,$t)}}class Z{constructor(){this._stylesSet=new Set}addStyles(He){const $e=new Set;He.forEach($t=>{this._stylesSet.has($t)||(this._stylesSet.add($t),$e.add($t))}),this.onStylesAdded($e)}onStylesAdded(He){}getAllStyles(){return Array.from(this._stylesSet)}}Z.\u0275fac=function(He){return new(He||Z)},Z.\u0275prov=t.Yz7({token:Z,factory:Z.\u0275fac});class Q extends Z{constructor(He){super(),this._doc=He,this._hostNodes=new Map,this._hostNodes.set(He.head,[])}_addStylesToHost(He,$e,$t){He.forEach(Rt=>{const Jt=this._doc.createElement("style");Jt.textContent=Rt,$t.push($e.appendChild(Jt))})}addHost(He){const $e=[];this._addStylesToHost(this._stylesSet,He,$e),this._hostNodes.set(He,$e)}removeHost(He){const $e=this._hostNodes.get(He);$e&&$e.forEach(ie),this._hostNodes.delete(He)}onStylesAdded(He){this._hostNodes.forEach(($e,$t)=>{this._addStylesToHost(He,$t,$e)})}ngOnDestroy(){this._hostNodes.forEach(He=>He.forEach(ie))}}function ie(Ht){(0,e.q)().remove(Ht)}Q.\u0275fac=function(He){return new(He||Q)(t.LFG(e.K0))},Q.\u0275prov=t.Yz7({token:Q,factory:Q.\u0275fac});const ae={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/"},_e=/%COMP%/g,ue="_nghost-%COMP%",$="_ngcontent-%COMP%";function n(Ht,He,$e){for(let $t=0;$t<He.length;$t++){let Rt=He[$t];Array.isArray(Rt)?n(Ht,Rt,$e):(Rt=Rt.replace(_e,Ht),$e.push(Rt))}return $e}function o(Ht){return He=>{if("__ngUnwrap__"===He)return Ht;!1===Ht(He)&&(He.preventDefault(),He.returnValue=!1)}}class d{constructor(He,$e,$t){this.eventManager=He,this.sharedStylesHost=$e,this.appId=$t,this.rendererByCompId=new Map,this.defaultRenderer=new y(He)}createRenderer(He,$e){if(!He||!$e)return this.defaultRenderer;switch($e.encapsulation){case t.ifc.Emulated:{let $t=this.rendererByCompId.get($e.id);return $t||($t=new a(this.eventManager,this.sharedStylesHost,$e,this.appId),this.rendererByCompId.set($e.id,$t)),$t.applyToHost(He),$t}case 1:case t.ifc.ShadowDom:return new C(this.eventManager,this.sharedStylesHost,He,$e);default:if(!this.rendererByCompId.has($e.id)){const $t=n($e.id,$e.styles,[]);this.sharedStylesHost.addStyles($t),this.rendererByCompId.set($e.id,this.defaultRenderer)}return this.defaultRenderer}}begin(){}end(){}}d.\u0275fac=function(He){return new(He||d)(t.LFG(I),t.LFG(Q),t.LFG(t.AFp))},d.\u0275prov=t.Yz7({token:d,factory:d.\u0275fac});class y{constructor(He){this.eventManager=He,this.data=Object.create(null),this.destroyNode=null}destroy(){}createElement(He,$e){return $e?document.createElementNS(ae[$e]||$e,He):document.createElement(He)}createComment(He){return document.createComment(He)}createText(He){return document.createTextNode(He)}appendChild(He,$e){(v(He)?He.content:He).appendChild($e)}insertBefore(He,$e,$t){He&&(v(He)?He.content:He).insertBefore($e,$t)}removeChild(He,$e){He&&He.removeChild($e)}selectRootElement(He,$e){let $t="string"==typeof He?document.querySelector(He):He;if(!$t)throw new Error(`The selector "${He}" did not match any elements`);return $e||($t.textContent=""),$t}parentNode(He){return He.parentNode}nextSibling(He){return He.nextSibling}setAttribute(He,$e,$t,Rt){if(Rt){$e=Rt+":"+$e;const Jt=ae[Rt];Jt?He.setAttributeNS(Jt,$e,$t):He.setAttribute($e,$t)}else He.setAttribute($e,$t)}removeAttribute(He,$e,$t){if($t){const Rt=ae[$t];Rt?He.removeAttributeNS(Rt,$e):He.removeAttribute(`${$t}:${$e}`)}else He.removeAttribute($e)}addClass(He,$e){He.classList.add($e)}removeClass(He,$e){He.classList.remove($e)}setStyle(He,$e,$t,Rt){Rt&(t.JOm.DashCase|t.JOm.Important)?He.style.setProperty($e,$t,Rt&t.JOm.Important?"important":""):He.style[$e]=$t}removeStyle(He,$e,$t){$t&t.JOm.DashCase?He.style.removeProperty($e):He.style[$e]=""}setProperty(He,$e,$t){He[$e]=$t}setValue(He,$e){He.nodeValue=$e}listen(He,$e,$t){return"string"==typeof He?this.eventManager.addGlobalEventListener(He,$e,o($t)):this.eventManager.addEventListener(He,$e,o($t))}}"@".charCodeAt(0);function v(Ht){return"TEMPLATE"===Ht.tagName&&void 0!==Ht.content}class a extends y{constructor(He,$e,$t,Rt){super(He),this.component=$t;const Jt=n(Rt+"-"+$t.id,$t.styles,[]);$e.addStyles(Jt),this.contentAttr=function he(Ht){return $.replace(_e,Ht)}(Rt+"-"+$t.id),this.hostAttr=function w(Ht){return ue.replace(_e,Ht)}(Rt+"-"+$t.id)}applyToHost(He){super.setAttribute(He,this.hostAttr,"")}createElement(He,$e){const $t=super.createElement(He,$e);return super.setAttribute($t,this.contentAttr,""),$t}}class C extends y{constructor(He,$e,$t,Rt){super(He),this.sharedStylesHost=$e,this.hostEl=$t,this.shadowRoot=$t.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);const Jt=n(Rt.id,Rt.styles,[]);for(let Vn=0;Vn<Jt.length;Vn++){const zn=document.createElement("style");zn.textContent=Jt[Vn],this.shadowRoot.appendChild(zn)}}nodeOrShadowRoot(He){return He===this.hostEl?this.shadowRoot:He}destroy(){this.sharedStylesHost.removeHost(this.shadowRoot)}appendChild(He,$e){return super.appendChild(this.nodeOrShadowRoot(He),$e)}insertBefore(He,$e,$t){return super.insertBefore(this.nodeOrShadowRoot(He),$e,$t)}removeChild(He,$e){return super.removeChild(this.nodeOrShadowRoot(He),$e)}parentNode(He){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(He)))}}class N extends W{constructor(He){super(He)}supports(He){return!0}addEventListener(He,$e,$t){return He.addEventListener($e,$t,!1),()=>this.removeEventListener(He,$e,$t)}removeEventListener(He,$e,$t){return He.removeEventListener($e,$t)}}N.\u0275fac=function(He){return new(He||N)(t.LFG(e.K0))},N.\u0275prov=t.Yz7({token:N,factory:N.\u0275fac});const F=["alt","control","meta","shift"],X={"\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"},Fe={alt:Ht=>Ht.altKey,control:Ht=>Ht.ctrlKey,meta:Ht=>Ht.metaKey,shift:Ht=>Ht.shiftKey};class ke extends W{constructor(He){super(He)}supports(He){return null!=ke.parseEventName(He)}addEventListener(He,$e,$t){const Rt=ke.parseEventName($e),Jt=ke.eventCallback(Rt.fullKey,$t,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>(0,e.q)().onAndCancel(He,Rt.domEventName,Jt))}static parseEventName(He){const $e=He.toLowerCase().split("."),$t=$e.shift();if(0===$e.length||"keydown"!==$t&&"keyup"!==$t)return null;const Rt=ke._normalizeKey($e.pop());let Jt="",Vn=$e.indexOf("code");if(Vn>-1&&($e.splice(Vn,1),Jt="code."),F.forEach(Tn=>{const Yn=$e.indexOf(Tn);Yn>-1&&($e.splice(Yn,1),Jt+=Tn+".")}),Jt+=Rt,0!=$e.length||0===Rt.length)return null;const zn={};return zn.domEventName=$t,zn.fullKey=Jt,zn}static matchEventFullKeyCode(He,$e){let $t=X[He.key]||He.key,Rt="";return $e.indexOf("code.")>-1&&($t=He.code,Rt="code."),!(null==$t||!$t)&&($t=$t.toLowerCase()," "===$t?$t="space":"."===$t&&($t="dot"),F.forEach(Jt=>{if(Jt!==$t){(0,Fe[Jt])(He)&&(Rt+=Jt+".")}}),Rt+=$t,Rt===$e)}static eventCallback(He,$e,$t){return Rt=>{ke.matchEventFullKeyCode(Rt,He)&&$t.runGuarded(()=>$e(Rt))}}static _normalizeKey(He){return"esc"===He?"escape":He}}ke.\u0275fac=function(He){return new(He||ke)(t.LFG(e.K0))},ke.\u0275prov=t.Yz7({token:ke,factory:ke.\u0275fac});const ht=[{provide:t.Lbi,useValue:e.bD},{provide:t.g9A,useValue:function Ie(){E.makeCurrent()},multi:!0},{provide:e.K0,useFactory:function et(){return(0,t.RDi)(document),document},deps:[]}],Le=(0,t.eFA)(t._c5,"browser",ht),Ae=new t.OlP(""),te=[{provide:t.rWj,useClass:class P{addToWindow(He){t.dqk.getAngularTestability=($t,Rt=!0)=>{const Jt=He.findTestabilityInTree($t,Rt);if(null==Jt)throw new Error("Could not find testability for element.");return Jt},t.dqk.getAllAngularTestabilities=()=>He.getAllTestabilities(),t.dqk.getAllAngularRootElements=()=>He.getAllRootElements();t.dqk.frameworkStabilizers||(t.dqk.frameworkStabilizers=[]),t.dqk.frameworkStabilizers.push($t=>{const Rt=t.dqk.getAllAngularTestabilities();let Jt=Rt.length,Vn=!1;const zn=function(Tn){Vn=Vn||Tn,Jt--,0==Jt&&$t(Vn)};Rt.forEach(function(Tn){Tn.whenStable(zn)})})}findTestabilityInTree(He,$e,$t){if(null==$e)return null;return He.getTestability($e)??($t?(0,e.q)().isShadowRoot($e)?this.findTestabilityInTree(He,$e.host,!0):this.findTestabilityInTree(He,$e.parentElement,!0):null)}},deps:[]},{provide:t.lri,useClass:t.dDg,deps:[t.R0b,t.eoX,t.rWj]},{provide:t.dDg,useClass:t.dDg,deps:[t.R0b,t.eoX,t.rWj]}],pe=[{provide:t.zSh,useValue:"root"},{provide:t.qLn,useFactory:function ve(){return new t.qLn},deps:[]},{provide:z,useClass:N,multi:!0,deps:[e.K0,t.R0b,t.Lbi]},{provide:z,useClass:ke,multi:!0,deps:[e.K0]},{provide:d,useClass:d,deps:[I,Q,t.AFp]},{provide:t.FYo,useExisting:d},{provide:Z,useExisting:Q},{provide:Q,useClass:Q,deps:[e.K0]},{provide:I,useClass:I,deps:[z,t.R0b]},{provide:e.JF,useClass:M,deps:[]},[]];class ee{constructor(He){false}static withServerTransition(He){return{ngModule:ee,providers:[{provide:t.AFp,useValue:He.appId},{provide:p,useExisting:t.AFp},A]}}}ee.\u0275fac=function(He){return new(He||ee)(t.LFG(Ae,12))},ee.\u0275mod=t.oAB({type:ee}),ee.\u0275inj=t.cJS({providers:[...pe,...te],imports:[e.ez,t.hGG]});class j{constructor(He){this._doc=He,this._dom=(0,e.q)()}addTag(He,$e=!1){return He?this._getOrCreateElement(He,$e):null}addTags(He,$e=!1){return He?He.reduce(($t,Rt)=>(Rt&&$t.push(this._getOrCreateElement(Rt,$e)),$t),[]):[]}getTag(He){return He&&this._doc.querySelector(`meta[${He}]`)||null}getTags(He){if(!He)return[];const $e=this._doc.querySelectorAll(`meta[${He}]`);return $e?[].slice.call($e):[]}updateTag(He,$e){if(!He)return null;$e=$e||this._parseSelector(He);const $t=this.getTag($e);return $t?this._setMetaElementAttributes(He,$t):this._getOrCreateElement(He,!0)}removeTag(He){this.removeTagElement(this.getTag(He))}removeTagElement(He){He&&this._dom.remove(He)}_getOrCreateElement(He,$e=!1){if(!$e){const Jt=this._parseSelector(He),Vn=this.getTags(Jt).filter(zn=>this._containsAttributes(He,zn))[0];if(void 0!==Vn)return Vn}const $t=this._dom.createElement("meta");return this._setMetaElementAttributes(He,$t),this._doc.getElementsByTagName("head")[0].appendChild($t),$t}_setMetaElementAttributes(He,$e){return Object.keys(He).forEach($t=>$e.setAttribute(this._getMetaKeyMap($t),He[$t])),$e}_parseSelector(He){const $e=He.name?"name":"property";return`${$e}="${He[$e]}"`}_containsAttributes(He,$e){return Object.keys(He).every($t=>$e.getAttribute(this._getMetaKeyMap($t))===He[$t])}_getMetaKeyMap(He){return Oe[He]||He}}j.\u0275fac=function(He){return new(He||j)(t.LFG(e.K0))},j.\u0275prov=t.Yz7({token:j,factory:function(He){let $e=null;return $e=He?new He:function H(){return new j((0,t.LFG)(e.K0))}(),$e},providedIn:"root"});const Oe={httpEquiv:"http-equiv"};class le{constructor(He){this._doc=He}getTitle(){return this._doc.title}setTitle(He){this._doc.title=He||""}}le.\u0275fac=function(He){return new(He||le)(t.LFG(e.K0))},le.\u0275prov=t.Yz7({token:le,factory:function(He){let $e=null;return $e=He?new He:function Re(){return new le((0,t.LFG)(e.K0))}(),$e},providedIn:"root"});typeof window<"u"&&window;class dt{constructor(){this.store={},this.onSerializeCallbacks={}}get(He,$e){return void 0!==this.store[He]?this.store[He]:$e}set(He,$e){this.store[He]=$e}remove(He){delete this.store[He]}hasKey(He){return this.store.hasOwnProperty(He)}get isEmpty(){return 0===Object.keys(this.store).length}onSerialize(He,$e){this.onSerializeCallbacks[He]=$e}toJson(){for(const He in this.onSerializeCallbacks)if(this.onSerializeCallbacks.hasOwnProperty(He))try{this.store[He]=this.onSerializeCallbacks[He]()}catch($e){console.warn("Exception in onSerialize callback: ",$e)}return JSON.stringify(this.store)}}dt.\u0275fac=function(He){return new(He||dt)},dt.\u0275prov=t.Yz7({token:dt,factory:function(){return(()=>{const Ht=(0,t.f3M)(e.K0),He=(0,t.f3M)(t.AFp),$e=new dt;return $e.store=function se(Ht,He){const $e=Ht.getElementById(He+"-state");let $t={};if($e&&$e.textContent)try{$t=JSON.parse(function tt(Ht){const He={"&a;":"&","&q;":'"',"&s;":"'","&l;":"<","&g;":">"};return Ht.replace(/&[^;]+;/g,$e=>He[$e])}($e.textContent))}catch(Rt){console.warn("Exception while restoring TransferState for app "+He,Rt)}return $t}(Ht,He),$e})()},providedIn:"root"});class J{}J.\u0275fac=function(He){return new(He||J)},J.\u0275mod=t.oAB({type:J}),J.\u0275inj=t.cJS({});const Ye={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},Dt=new t.OlP("HammerGestureConfig"),ut=new t.OlP("HammerLoader");class ze{constructor(){this.events=[],this.overrides={}}buildHammer(He){const $e=new Hammer(He,this.options);$e.get("pinch").set({enable:!0}),$e.get("rotate").set({enable:!0});for(const $t in this.overrides)$e.get($t).set(this.overrides[$t]);return $e}}ze.\u0275fac=function(He){return new(He||ze)},ze.\u0275prov=t.Yz7({token:ze,factory:ze.\u0275fac});class Me extends W{constructor(He,$e,$t,Rt){super(He),this._config=$e,this.console=$t,this.loader=Rt,this._loaderPromise=null}supports(He){return!(!Ye.hasOwnProperty(He.toLowerCase())&&!this.isCustomEvent(He)||!window.Hammer&&!this.loader)}addEventListener(He,$e,$t){const Rt=this.manager.getZone();if($e=$e.toLowerCase(),!window.Hammer&&this.loader){this._loaderPromise=this._loaderPromise||Rt.runOutsideAngular(()=>this.loader());let Jt=!1,Vn=()=>{Jt=!0};return Rt.runOutsideAngular(()=>this._loaderPromise.then(()=>{window.Hammer?Jt||(Vn=this.addEventListener(He,$e,$t)):Vn=()=>{}}).catch(()=>{Vn=()=>{}})),()=>{Vn()}}return Rt.runOutsideAngular(()=>{const Jt=this._config.buildHammer(He),Vn=function(zn){Rt.runGuarded(function(){$t(zn)})};return Jt.on($e,Vn),()=>{Jt.off($e,Vn),"function"==typeof Jt.destroy&&Jt.destroy()}})}isCustomEvent(He){return this._config.events.indexOf(He)>-1}}Me.\u0275fac=function(He){return new(He||Me)(t.LFG(e.K0),t.LFG(Dt),t.LFG(t.c2e),t.LFG(ut,8))},Me.\u0275prov=t.Yz7({token:Me,factory:Me.\u0275fac});class Ce{}Ce.\u0275fac=function(He){return new(He||Ce)},Ce.\u0275mod=t.oAB({type:Ce}),Ce.\u0275inj=t.cJS({providers:[{provide:z,useClass:Me,multi:!0,deps:[e.K0,Dt,t.c2e,[new t.FiY,ut]]},{provide:Dt,useClass:ze,deps:[]}]});class Je{}Je.\u0275fac=function(He){return new(He||Je)},Je.\u0275prov=t.Yz7({token:Je,factory:function(He){let $e=null;return $e=He?new(He||Je):t.LFG(At),$e},providedIn:"root"});class At extends Je{constructor(He){super(),this._doc=He}sanitize(He,$e){if(null==$e)return null;switch(He){case t.q3G.NONE:return $e;case t.q3G.HTML:return(0,t.qzn)($e,"HTML")?(0,t.z3N)($e):(0,t.EiD)(this._doc,String($e)).toString();case t.q3G.STYLE:return(0,t.qzn)($e,"Style")?(0,t.z3N)($e):$e;case t.q3G.SCRIPT:if((0,t.qzn)($e,"Script"))return(0,t.z3N)($e);throw new Error("unsafe value used in a script context");case t.q3G.URL:return(0,t.qzn)($e,"URL")?(0,t.z3N)($e):(0,t.mCW)(String($e));case t.q3G.RESOURCE_URL:if((0,t.qzn)($e,"ResourceURL"))return(0,t.z3N)($e);throw new Error(`unsafe value used in a resource URL context (see ${t.JZr})`);default:throw new Error(`Unexpected SecurityContext ${He} (see ${t.JZr})`)}}bypassSecurityTrustHtml(He){return(0,t.JVY)(He)}bypassSecurityTrustStyle(He){return(0,t.L6k)(He)}bypassSecurityTrustScript(He){return(0,t.eBb)(He)}bypassSecurityTrustUrl(He){return(0,t.LAX)(He)}bypassSecurityTrustResourceUrl(He){return(0,t.pB0)(He)}}At.\u0275fac=function(He){return new(He||At)(t.LFG(e.K0))},At.\u0275prov=t.Yz7({token:At,factory:function(He){let $e=null;return $e=He?new He:function zt(Ht){return new At(Ht.get(e.K0))}(t.LFG(t.zs3)),$e},providedIn:"root"});new t.GfV("15.0.2")},3547:(Ue,q,m)=>{"use strict";m.d(q,{gz:()=>Ha,gk:()=>gn,m2:()=>en,Q3:()=>Qn,OD:()=>hn,Av:()=>Zi,F0:()=>Dr,rH:()=>fl,Od:()=>pl,Bz:()=>Rs,lC:()=>Or});var e=m(2560),t=m(7400),_=m(745),E=m(6317),s=m(4423),D=m(6562),u=m(9319),k=m(1954),p=m(629),S=m(5474),A=m(833),P=m(591),M=m(3932),z=m(253),I=m(4666),W=m(635),Z=m(2673),Q=m(9295),ie=m(4874),ae=m(116),_e=m(9525),ce=m(155),ye=m(3853),ue=m(9337),$=m(3158),he=m(4351),w=m(1944),n=m(3945);function o(we){return we<=0?()=>P.E:(0,w.e)((ne,Ee)=>{let qe=[];ne.subscribe((0,n.x)(Ee,at=>{qe.push(at),we<qe.length&&qe.shift()},()=>{for(const at of qe)Ee.next(at);Ee.complete()},void 0,()=>{qe=null}))})}var h=m(7354),d=m(4744),y=m(9173);function L(we,ne){const Ee=arguments.length>=2;return qe=>qe.pipe(we?(0,ae.h)((at,mt)=>we(at,mt,qe)):y.y,o(1),Ee?(0,d.d)(ne):(0,h.T)(()=>new s.K))}var B=m(2566),v=m(73),a=m(2313),C=m(6074),N=m(1308),F=m(4497);const X="primary",Fe=Symbol("RouteTitle");class ke{constructor(ne){this.params=ne||{}}has(ne){return Object.prototype.hasOwnProperty.call(this.params,ne)}get(ne){if(this.has(ne)){const Ee=this.params[ne];return Array.isArray(Ee)?Ee[0]:Ee}return null}getAll(ne){if(this.has(ne)){const Ee=this.params[ne];return Array.isArray(Ee)?Ee:[Ee]}return[]}get keys(){return Object.keys(this.params)}}function Ke(we){return new ke(we)}function je(we,ne,Ee){const qe=Ee.path.split("/");if(qe.length>we.length||"full"===Ee.pathMatch&&(ne.hasChildren()||qe.length<we.length))return null;const at={};for(let mt=0;mt<qe.length;mt++){const Wt=qe[mt],mn=we[mt];if(Wt.startsWith(":"))at[Wt.substring(1)]=mn;else if(Wt!==mn.path)return null}return{consumed:we.slice(0,qe.length),posParams:at}}function xe(we,ne){const Ee=we?Object.keys(we):void 0,qe=ne?Object.keys(ne):void 0;if(!Ee||!qe||Ee.length!=qe.length)return!1;let at;for(let mt=0;mt<Ee.length;mt++)if(at=Ee[mt],!Ze(we[at],ne[at]))return!1;return!0}function Ze(we,ne){if(Array.isArray(we)&&Array.isArray(ne)){if(we.length!==ne.length)return!1;const Ee=[...we].sort(),qe=[...ne].sort();return Ee.every((at,mt)=>qe[mt]===at)}return we===ne}function Ie(we){return Array.prototype.concat.apply([],we)}function ve(we){return we.length>0?we[we.length-1]:null}function ht(we,ne){for(const Ee in we)we.hasOwnProperty(Ee)&&ne(we[Ee],Ee)}function Le(we){return(0,e.CqO)(we)?we:(0,e.QGY)(we)?(0,t.D)(Promise.resolve(we)):(0,_.of)(we)}const Ae=!1,te={exact:function j(we,ne,Ee){if(!Ut(we.segments,ne.segments)||!_t(we.segments,ne.segments,Ee)||we.numberOfChildren!==ne.numberOfChildren)return!1;for(const qe in ne.children)if(!we.children[qe]||!j(we.children[qe],ne.children[qe],Ee))return!1;return!0},subset:Re},pe={exact:function H(we,ne){return xe(we,ne)},subset:function Oe(we,ne){return Object.keys(ne).length<=Object.keys(we).length&&Object.keys(ne).every(Ee=>Ze(we[Ee],ne[Ee]))},ignored:()=>!0};function ee(we,ne,Ee){return te[Ee.paths](we.root,ne.root,Ee.matrixParams)&&pe[Ee.queryParams](we.queryParams,ne.queryParams)&&!("exact"===Ee.fragment&&we.fragment!==ne.fragment)}function Re(we,ne,Ee){return le(we,ne,ne.segments,Ee)}function le(we,ne,Ee,qe){if(we.segments.length>Ee.length){const at=we.segments.slice(0,Ee.length);return!(!Ut(at,Ee)||ne.hasChildren()||!_t(at,Ee,qe))}if(we.segments.length===Ee.length){if(!Ut(we.segments,Ee)||!_t(we.segments,Ee,qe))return!1;for(const at in ne.children)if(!we.children[at]||!Re(we.children[at],ne.children[at],qe))return!1;return!0}{const at=Ee.slice(0,we.segments.length),mt=Ee.slice(we.segments.length);return!!(Ut(we.segments,at)&&_t(we.segments,at,qe)&&we.children[X])&&le(we.children[X],ne,mt,qe)}}function _t(we,ne,Ee){return ne.every((qe,at)=>pe[Ee](we[at].parameters,qe.parameters))}class it{constructor(ne=new Ct([],{}),Ee={},qe=null){this.root=ne,this.queryParams=Ee,this.fragment=qe,Ae}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=Ke(this.queryParams)),this._queryParamMap}toString(){return In.serialize(this)}}class Ct{constructor(ne,Ee){this.segments=ne,this.children=Ee,this.parent=null,ht(Ee,(qe,at)=>qe.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return rn(this)}}class un{constructor(ne,Ee){this.path=ne,this.parameters=Ee}get parameterMap(){return this._parameterMap||(this._parameterMap=Ke(this.parameters)),this._parameterMap}toString(){return oe(this)}}function Ut(we,ne){return we.length===ne.length&&we.every((Ee,qe)=>Ee.path===ne[qe].path)}class Xt{}Xt.\u0275fac=function(ne){return new(ne||Xt)},Xt.\u0275prov=e.Yz7({token:Xt,factory:function(){return new Gt},providedIn:"root"});class Gt{parse(ne){const Ee=new zt(ne);return new it(Ee.parseRootSegment(),Ee.parseQueryParams(),Ee.parseFragment())}serialize(ne){const Ee=`/${tn(ne.root,!0)}`,qe=function Ye(we){const ne=Object.keys(we).map(Ee=>{const qe=we[Ee];return Array.isArray(qe)?qe.map(at=>`${tt(Ee)}=${tt(at)}`).join("&"):`${tt(Ee)}=${tt(qe)}`}).filter(Ee=>!!Ee);return ne.length?`?${ne.join("&")}`:""}(ne.queryParams);return`${Ee}${qe}${"string"==typeof ne.fragment?`#${function vt(we){return encodeURI(we)}(ne.fragment)}`:""}`}}const In=new Gt;function rn(we){return we.segments.map(ne=>oe(ne)).join("/")}function tn(we,ne){if(!we.hasChildren())return rn(we);if(ne){const Ee=we.children[X]?tn(we.children[X],!1):"",qe=[];return ht(we.children,(at,mt)=>{mt!==X&&qe.push(`${mt}:${tn(at,!1)}`)}),qe.length>0?`${Ee}(${qe.join("//")})`:Ee}{const Ee=function yn(we,ne){let Ee=[];return ht(we.children,(qe,at)=>{at===X&&(Ee=Ee.concat(ne(qe,at)))}),ht(we.children,(qe,at)=>{at!==X&&(Ee=Ee.concat(ne(qe,at)))}),Ee}(we,(qe,at)=>at===X?[tn(we.children[X],!1)]:[`${at}:${tn(qe,!1)}`]);return 1===Object.keys(we.children).length&&null!=we.children[X]?`${rn(we)}/${Ee[0]}`:`${rn(we)}/(${Ee.join("//")})`}}function pn(we){return encodeURIComponent(we).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function tt(we){return pn(we).replace(/%3B/gi,";")}function dt(we){return pn(we).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function se(we){return decodeURIComponent(we)}function J(we){return se(we.replace(/\+/g,"%20"))}function oe(we){return`${dt(we.path)}${function De(we){return Object.keys(we).map(ne=>`;${dt(ne)}=${dt(we[ne])}`).join("")}(we.parameters)}`}const Dt=/^[^\/()?;=#]+/;function ut(we){const ne=we.match(Dt);return ne?ne[0]:""}const ze=/^[^=?&#]+/;const Ce=/^[^&#]+/;class zt{constructor(ne){this.url=ne,this.remaining=ne}parseRootSegment(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new Ct([],{}):new Ct([],this.parseChildren())}parseQueryParams(){const ne={};if(this.consumeOptional("?"))do{this.parseQueryParam(ne)}while(this.consumeOptional("&"));return ne}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(){if(""===this.remaining)return{};this.consumeOptional("/");const ne=[];for(this.peekStartsWith("(")||ne.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),ne.push(this.parseSegment());let Ee={};this.peekStartsWith("/(")&&(this.capture("/"),Ee=this.parseParens(!0));let qe={};return this.peekStartsWith("(")&&(qe=this.parseParens(!1)),(ne.length>0||Object.keys(Ee).length>0)&&(qe[X]=new Ct(ne,Ee)),qe}parseSegment(){const ne=ut(this.remaining);if(""===ne&&this.peekStartsWith(";"))throw new e.vHH(4009,Ae);return this.capture(ne),new un(se(ne),this.parseMatrixParams())}parseMatrixParams(){const ne={};for(;this.consumeOptional(";");)this.parseParam(ne);return ne}parseParam(ne){const Ee=ut(this.remaining);if(!Ee)return;this.capture(Ee);let qe="";if(this.consumeOptional("=")){const at=ut(this.remaining);at&&(qe=at,this.capture(qe))}ne[se(Ee)]=se(qe)}parseQueryParam(ne){const Ee=function Me(we){const ne=we.match(ze);return ne?ne[0]:""}(this.remaining);if(!Ee)return;this.capture(Ee);let qe="";if(this.consumeOptional("=")){const Wt=function Je(we){const ne=we.match(Ce);return ne?ne[0]:""}(this.remaining);Wt&&(qe=Wt,this.capture(qe))}const at=J(Ee),mt=J(qe);if(ne.hasOwnProperty(at)){let Wt=ne[at];Array.isArray(Wt)||(Wt=[Wt],ne[at]=Wt),Wt.push(mt)}else ne[at]=mt}parseParens(ne){const Ee={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){const qe=ut(this.remaining),at=this.remaining[qe.length];if("/"!==at&&")"!==at&&";"!==at)throw new e.vHH(4010,Ae);let mt;qe.indexOf(":")>-1?(mt=qe.slice(0,qe.indexOf(":")),this.capture(mt),this.capture(":")):ne&&(mt=X);const Wt=this.parseChildren();Ee[mt]=1===Object.keys(Wt).length?Wt[X]:new Ct([],Wt),this.consumeOptional("//")}return Ee}peekStartsWith(ne){return this.remaining.startsWith(ne)}consumeOptional(ne){return!!this.peekStartsWith(ne)&&(this.remaining=this.remaining.substring(ne.length),!0)}capture(ne){if(!this.consumeOptional(ne))throw new e.vHH(4011,Ae)}}function At(we){return we.segments.length>0?new Ct([],{[X]:we}):we}function Tt(we){const ne={};for(const qe of Object.keys(we.children)){const mt=Tt(we.children[qe]);(mt.segments.length>0||mt.hasChildren())&&(ne[qe]=mt)}return function Ht(we){if(1===we.numberOfChildren&&we.children[X]){const ne=we.children[X];return new Ct(we.segments.concat(ne.segments),ne.children)}return we}(new Ct(we.segments,ne))}function He(we){return we instanceof it}function Vn(we,ne,Ee,qe,at){if(0===Ee.length)return Yn(ne.root,ne.root,ne.root,qe,at);const mt=Be(Ee);if(mt.toRoot())return Yn(ne.root,ne.root,new Ct([],{}),qe,at);return function Wt(Dn){const Rn=function Te(we,ne,Ee,qe){if(we.isAbsolute)return new ft(ne.root,!0,0);if(-1===qe){const Wt=Ee===ne.root;return new ft(Ee,Wt,0)}const at=zn(we.commands[0])?0:1;return pt(Ee,qe+at,we.numberOfDoubleDots)}(mt,ne,we.snapshot?._urlSegment,Dn),di=Rn.processChildren?Bn(Rn.segmentGroup,Rn.index,mt.commands):nn(Rn.segmentGroup,Rn.index,mt.commands);return Yn(ne.root,Rn.segmentGroup,di,qe,at)}(we.snapshot?._lastPathIndex)}function zn(we){return"object"==typeof we&&null!=we&&!we.outlets&&!we.segmentPath}function Tn(we){return"object"==typeof we&&null!=we&&we.outlets}function Yn(we,ne,Ee,qe,at){let Wt,mt={};qe&&ht(qe,(Dn,Rn)=>{mt[Rn]=Array.isArray(Dn)?Dn.map(di=>`${di}`):`${Dn}`}),Wt=we===ne?Ee:Mt(we,ne,Ee);const mn=At(Tt(Wt));return new it(mn,mt,at)}function Mt(we,ne,Ee){const qe={};return ht(we.children,(at,mt)=>{qe[mt]=at===ne?Ee:Mt(at,ne,Ee)}),new Ct(we.segments,qe)}class Ge{constructor(ne,Ee,qe){if(this.isAbsolute=ne,this.numberOfDoubleDots=Ee,this.commands=qe,ne&&qe.length>0&&zn(qe[0]))throw new e.vHH(4003,false);const at=qe.find(Tn);if(at&&at!==ve(qe))throw new e.vHH(4004,false)}toRoot(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]}}function Be(we){if("string"==typeof we[0]&&1===we.length&&"/"===we[0])return new Ge(!0,0,we);let ne=0,Ee=!1;const qe=we.reduce((at,mt,Wt)=>{if("object"==typeof mt&&null!=mt){if(mt.outlets){const mn={};return ht(mt.outlets,(Dn,Rn)=>{mn[Rn]="string"==typeof Dn?Dn.split("/"):Dn}),[...at,{outlets:mn}]}if(mt.segmentPath)return[...at,mt.segmentPath]}return"string"!=typeof mt?[...at,mt]:0===Wt?(mt.split("/").forEach((mn,Dn)=>{0==Dn&&"."===mn||(0==Dn&&""===mn?Ee=!0:".."===mn?ne++:""!=mn&&at.push(mn))}),at):[...at,mt]},[]);return new Ge(Ee,ne,qe)}class ft{constructor(ne,Ee,qe){this.segmentGroup=ne,this.processChildren=Ee,this.index=qe}}function pt(we,ne,Ee){let qe=we,at=ne,mt=Ee;for(;mt>at;){if(mt-=at,qe=qe.parent,!qe)throw new e.vHH(4005,false);at=qe.segments.length}return new ft(qe,!1,at-mt)}function nn(we,ne,Ee){if(we||(we=new Ct([],{})),0===we.segments.length&&we.hasChildren())return Bn(we,ne,Ee);const qe=function Wn(we,ne,Ee){let qe=0,at=ne;const mt={match:!1,pathIndex:0,commandIndex:0};for(;at<we.segments.length;){if(qe>=Ee.length)return mt;const Wt=we.segments[at],mn=Ee[qe];if(Tn(mn))break;const Dn=`${mn}`,Rn=qe<Ee.length-1?Ee[qe+1]:null;if(at>0&&void 0===Dn)break;if(Dn&&Rn&&"object"==typeof Rn&&void 0===Rn.outlets){if(!ai(Dn,Rn,Wt))return mt;qe+=2}else{if(!ai(Dn,{},Wt))return mt;qe++}at++}return{match:!0,pathIndex:at,commandIndex:qe}}(we,ne,Ee),at=Ee.slice(qe.commandIndex);if(qe.match&&qe.pathIndex<we.segments.length){const mt=new Ct(we.segments.slice(0,qe.pathIndex),{});return mt.children[X]=new Ct(we.segments.slice(qe.pathIndex),we.children),Bn(mt,0,at)}return qe.match&&0===at.length?new Ct(we.segments,{}):qe.match&&!we.hasChildren()?ti(we,ne,Ee):qe.match?Bn(we,0,at):ti(we,ne,Ee)}function Bn(we,ne,Ee){if(0===Ee.length)return new Ct(we.segments,{});{const qe=function Lt(we){return Tn(we[0])?we[0].outlets:{[X]:we}}(Ee),at={};return ht(qe,(mt,Wt)=>{"string"==typeof mt&&(mt=[mt]),null!==mt&&(at[Wt]=nn(we.children[Wt],ne,mt))}),ht(we.children,(mt,Wt)=>{void 0===qe[Wt]&&(at[Wt]=mt)}),new Ct(we.segments,at)}}function ti(we,ne,Ee){const qe=we.segments.slice(0,ne);let at=0;for(;at<Ee.length;){const mt=Ee[at];if(Tn(mt)){const Dn=Mn(mt.outlets);return new Ct(qe,Dn)}if(0===at&&zn(Ee[0])){const Dn=we.segments[ne];qe.push(new un(Dn.path,Ln(Ee[0]))),at++;continue}const Wt=Tn(mt)?mt.outlets[X]:`${mt}`,mn=at<Ee.length-1?Ee[at+1]:null;Wt&&mn&&zn(mn)?(qe.push(new un(Wt,Ln(mn))),at+=2):(qe.push(new un(Wt,{})),at++)}return new Ct(qe,{})}function Mn(we){const ne={};return ht(we,(Ee,qe)=>{"string"==typeof Ee&&(Ee=[Ee]),null!==Ee&&(ne[qe]=ti(new Ct([],{}),0,Ee))}),ne}function Ln(we){const ne={};return ht(we,(Ee,qe)=>ne[qe]=`${Ee}`),ne}function ai(we,ne,Ee){return we==Ee.path&&xe(ne,Ee.parameters)}class an{constructor(ne,Ee){this.id=ne,this.url=Ee}}class hn extends an{constructor(ne,Ee,qe="imperative",at=null){super(ne,Ee),this.type=0,this.navigationTrigger=qe,this.restoredState=at}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}}class en extends an{constructor(ne,Ee,qe){super(ne,Ee),this.urlAfterRedirects=qe,this.type=1}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}}class gn extends an{constructor(ne,Ee,qe,at){super(ne,Ee),this.reason=qe,this.code=at,this.type=2}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}}class Qn extends an{constructor(ne,Ee,qe,at){super(ne,Ee),this.error=qe,this.target=at,this.type=3}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}}class Ei extends an{constructor(ne,Ee,qe,at){super(ne,Ee),this.urlAfterRedirects=qe,this.state=at,this.type=4}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class ha extends an{constructor(ne,Ee,qe,at){super(ne,Ee),this.urlAfterRedirects=qe,this.state=at,this.type=7}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class mi extends an{constructor(ne,Ee,qe,at,mt){super(ne,Ee),this.urlAfterRedirects=qe,this.state=at,this.shouldActivate=mt,this.type=8}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}}class qi extends an{constructor(ne,Ee,qe,at){super(ne,Ee),this.urlAfterRedirects=qe,this.state=at,this.type=5}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class Zi extends an{constructor(ne,Ee,qe,at){super(ne,Ee),this.urlAfterRedirects=qe,this.state=at,this.type=6}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class Za{constructor(ne){this.route=ne,this.type=9}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}}class mr{constructor(ne){this.route=ne,this.type=10}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}}class It{constructor(ne){this.snapshot=ne,this.type=11}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class Ft{constructor(ne){this.snapshot=ne,this.type=12}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class ln{constructor(ne){this.snapshot=ne,this.type=13}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class En{constructor(ne){this.snapshot=ne,this.type=14}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class qn{constructor(ne,Ee,qe){this.routerEvent=ne,this.position=Ee,this.anchor=qe,this.type=15}toString(){const ne=this.position?`${this.position[0]}, ${this.position[1]}`:null;return`Scroll(anchor: '${this.anchor}', position: '${ne}')`}}class li{constructor(ne){this._root=ne}get root(){return this._root.value}parent(ne){const Ee=this.pathFromRoot(ne);return Ee.length>1?Ee[Ee.length-2]:null}children(ne){const Ee=aa(ne,this._root);return Ee?Ee.children.map(qe=>qe.value):[]}firstChild(ne){const Ee=aa(ne,this._root);return Ee&&Ee.children.length>0?Ee.children[0].value:null}siblings(ne){const Ee=Ii(ne,this._root);return Ee.length<2?[]:Ee[Ee.length-2].children.map(at=>at.value).filter(at=>at!==ne)}pathFromRoot(ne){return Ii(ne,this._root).map(Ee=>Ee.value)}}function aa(we,ne){if(we===ne.value)return ne;for(const Ee of ne.children){const qe=aa(we,Ee);if(qe)return qe}return null}function Ii(we,ne){if(we===ne.value)return[ne];for(const Ee of ne.children){const qe=Ii(we,Ee);if(qe.length)return qe.unshift(ne),qe}return[]}class ea{constructor(ne,Ee){this.value=ne,this.children=Ee}toString(){return`TreeNode(${this.value})`}}function Di(we){const ne={};return we&&we.children.forEach(Ee=>ne[Ee.value.outlet]=Ee),ne}class Ji extends li{constructor(ne,Ee){super(ne),this.snapshot=Ee,fa(this,ne)}toString(){return this.snapshot.toString()}}function ka(we,ne){const Ee=function Yi(we,ne){const Wt=new gr([],{},{},"",{},X,ne,null,we.root,-1,{});return new Sa("",new ea(Wt,[]))}(we,ne),qe=new E.X([new un("",{})]),at=new E.X({}),mt=new E.X({}),Wt=new E.X({}),mn=new E.X(""),Dn=new Ha(qe,at,Wt,mn,mt,X,ne,Ee.root);return Dn.snapshot=Ee.root,new Ji(new ea(Dn,[]),Ee)}class Ha{constructor(ne,Ee,qe,at,mt,Wt,mn,Dn){this.url=ne,this.params=Ee,this.queryParams=qe,this.fragment=at,this.data=mt,this.outlet=Wt,this.component=mn,this.title=this.data?.pipe((0,W.U)(Rn=>Rn[Fe]))??(0,_.of)(void 0),this._futureSnapshot=Dn}get routeConfig(){return this._futureSnapshot.routeConfig}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap||(this._paramMap=this.params.pipe((0,W.U)(ne=>Ke(ne)))),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=this.queryParams.pipe((0,W.U)(ne=>Ke(ne)))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}}function Hi(we,ne="emptyOnly"){const Ee=we.pathFromRoot;let qe=0;if("always"!==ne)for(qe=Ee.length-1;qe>=1;){const at=Ee[qe],mt=Ee[qe-1];if(at.routeConfig&&""===at.routeConfig.path)qe--;else{if(mt.component)break;qe--}}return function La(we){return we.reduce((ne,Ee)=>({params:{...ne.params,...Ee.params},data:{...ne.data,...Ee.data},resolve:{...Ee.data,...ne.resolve,...Ee.routeConfig?.data,...Ee._resolvedData}}),{params:{},data:{},resolve:{}})}(Ee.slice(qe))}class gr{constructor(ne,Ee,qe,at,mt,Wt,mn,Dn,Rn,di,ta){this.url=ne,this.params=Ee,this.queryParams=qe,this.fragment=at,this.data=mt,this.outlet=Wt,this.component=mn,this.routeConfig=Dn,this._urlSegment=Rn,this._lastPathIndex=di,this._resolve=ta}get title(){return this.data?.[Fe]}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=Ke(this.params)),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=Ke(this.queryParams)),this._queryParamMap}toString(){return`Route(url:'${this.url.map(qe=>qe.toString()).join("/")}', path:'${this.routeConfig?this.routeConfig.path:""}')`}}class Sa extends li{constructor(ne,Ee){super(Ee),this.url=ne,fa(this,Ee)}toString(){return Ki(this._root)}}function fa(we,ne){ne.value._routerState=we,ne.children.forEach(Ee=>fa(we,Ee))}function Ki(we){const ne=we.children.length>0?` { ${we.children.map(Ki).join(", ")} } `:"";return`${we.value}${ne}`}function xa(we){if(we.snapshot){const ne=we.snapshot,Ee=we._futureSnapshot;we.snapshot=Ee,xe(ne.queryParams,Ee.queryParams)||we.queryParams.next(Ee.queryParams),ne.fragment!==Ee.fragment&&we.fragment.next(Ee.fragment),xe(ne.params,Ee.params)||we.params.next(Ee.params),function Ve(we,ne){if(we.length!==ne.length)return!1;for(let Ee=0;Ee<we.length;++Ee)if(!xe(we[Ee],ne[Ee]))return!1;return!0}(ne.url,Ee.url)||we.url.next(Ee.url),xe(ne.data,Ee.data)||we.data.next(Ee.data)}else we.snapshot=we._futureSnapshot,we.data.next(we._futureSnapshot.data)}function ra(we,ne){const Ee=xe(we.params,ne.params)&&function Bt(we,ne){return Ut(we,ne)&&we.every((Ee,qe)=>xe(Ee.parameters,ne[qe].parameters))}(we.url,ne.url),qe=!we.parent!=!ne.parent;return Ee&&!qe&&(!we.parent||ra(we.parent,ne.parent))}function za(we,ne,Ee){if(Ee&&we.shouldReuseRoute(ne.value,Ee.value.snapshot)){const qe=Ee.value;qe._futureSnapshot=ne.value;const at=function js(we,ne,Ee){return ne.children.map(qe=>{for(const at of Ee.children)if(we.shouldReuseRoute(qe.value,at.value.snapshot))return za(we,qe,at);return za(we,qe)})}(we,ne,Ee);return new ea(qe,at)}{if(we.shouldAttach(ne.value)){const mt=we.retrieve(ne.value);if(null!==mt){const Wt=mt.route;return Wt.value._futureSnapshot=ne.value,Wt.children=ne.children.map(mn=>za(we,mn)),Wt}}const qe=function is(we){return new Ha(new E.X(we.url),new E.X(we.params),new E.X(we.queryParams),new E.X(we.fragment),new E.X(we.data),we.outlet,we.component,we)}(ne.value),at=ne.children.map(mt=>za(we,mt));return new ea(qe,at)}}const Qi="ngNavigationCancelingError";function Gr(we,ne){const{redirectTo:Ee,navigationBehaviorOptions:qe}=He(ne)?{redirectTo:ne,navigationBehaviorOptions:void 0}:ne,at=Ta(!1,0,ne);return at.url=Ee,at.navigationBehaviorOptions=qe,at}function Ta(we,ne,Ee){const qe=new Error("NavigationCancelingError: "+(we||""));return qe[Qi]=!0,qe.cancellationCode=ne,Ee&&(qe.url=Ee),qe}function Is(we){return Ua(we)&&He(we.url)}function Ua(we){return we&&we[Qi]}class Ls{constructor(){this.outlet=null,this.route=null,this.resolver=null,this.injector=null,this.children=new Ca,this.attachRef=null}}class Ca{constructor(){this.contexts=new Map}onChildOutletCreated(ne,Ee){const qe=this.getOrCreateContext(ne);qe.outlet=Ee,this.contexts.set(ne,qe)}onChildOutletDestroyed(ne){const Ee=this.getContext(ne);Ee&&(Ee.outlet=null,Ee.attachRef=null)}onOutletDeactivated(){const ne=this.contexts;return this.contexts=new Map,ne}onOutletReAttached(ne){this.contexts=ne}getOrCreateContext(ne){let Ee=this.getContext(ne);return Ee||(Ee=new Ls,this.contexts.set(ne,Ee)),Ee}getContext(ne){return this.contexts.get(ne)||null}}Ca.\u0275fac=function(ne){return new(ne||Ca)},Ca.\u0275prov=e.Yz7({token:Ca,factory:Ca.\u0275fac,providedIn:"root"});const vr=!1;class Or{constructor(){this.activated=null,this._activatedRoute=null,this.name=X,this.activateEvents=new e.vpe,this.deactivateEvents=new e.vpe,this.attachEvents=new e.vpe,this.detachEvents=new e.vpe,this.parentContexts=(0,e.f3M)(Ca),this.location=(0,e.f3M)(e.s_b),this.changeDetector=(0,e.f3M)(e.sBO),this.environmentInjector=(0,e.f3M)(e.lqb)}ngOnChanges(ne){if(ne.name){const{firstChange:Ee,previousValue:qe}=ne.name;if(Ee)return;this.isTrackedInParentContexts(qe)&&(this.deactivate(),this.parentContexts.onChildOutletDestroyed(qe)),this.initializeOutletWithName()}}ngOnDestroy(){this.isTrackedInParentContexts(this.name)&&this.parentContexts.onChildOutletDestroyed(this.name)}isTrackedInParentContexts(ne){return this.parentContexts.getContext(ne)?.outlet===this}ngOnInit(){this.initializeOutletWithName()}initializeOutletWithName(){if(this.parentContexts.onChildOutletCreated(this.name,this),this.activated)return;const ne=this.parentContexts.getContext(this.name);ne?.route&&(ne.attachRef?this.attach(ne.attachRef,ne.route):this.activateWith(ne.route,ne.injector))}get isActivated(){return!!this.activated}get component(){if(!this.activated)throw new e.vHH(4012,vr);return this.activated.instance}get activatedRoute(){if(!this.activated)throw new e.vHH(4012,vr);return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new e.vHH(4012,vr);this.location.detach();const ne=this.activated;return this.activated=null,this._activatedRoute=null,this.detachEvents.emit(ne.instance),ne}attach(ne,Ee){this.activated=ne,this._activatedRoute=Ee,this.location.insert(ne.hostView),this.attachEvents.emit(ne.instance)}deactivate(){if(this.activated){const ne=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(ne)}}activateWith(ne,Ee){if(this.isActivated)throw new e.vHH(4013,vr);this._activatedRoute=ne;const qe=this.location,mt=ne.snapshot.component,Wt=this.parentContexts.getOrCreateContext(this.name).children,mn=new qs(ne,Wt,qe.injector);if(Ee&&function ms(we){return!!we.resolveComponentFactory}(Ee)){const Dn=Ee.resolveComponentFactory(mt);this.activated=qe.createComponent(Dn,qe.length,mn)}else{const Dn=Ee??this.environmentInjector;this.activated=qe.createComponent(mt,{index:qe.length,injector:mn,environmentInjector:Dn})}this.changeDetector.markForCheck(),this.activateEvents.emit(this.activated.instance)}}Or.\u0275fac=function(ne){return new(ne||Or)},Or.\u0275dir=e.lG2({type:Or,selectors:[["router-outlet"]],inputs:{name:"name"},outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"],standalone:!0,features:[e.TTD]});class qs{constructor(ne,Ee,qe){this.route=ne,this.childContexts=Ee,this.parent=qe}get(ne,Ee){return ne===Ha?this.route:ne===Ca?this.childContexts:this.parent.get(ne,Ee)}}class nr{}function Pr(we,ne){return we.providers&&!we._injector&&(we._injector=(0,e.MMx)(we.providers,ne,`Route: ${we.path}`)),we._injector??ne}function yr(we){const ne=we.children&&we.children.map(yr),Ee=ne?{...we,children:ne}:{...we};return!Ee.component&&!Ee.loadComponent&&(ne||Ee.loadChildren)&&Ee.outlet&&Ee.outlet!==X&&(Ee.component=nr),Ee}function sa(we){return we.outlet||X}function ir(we,ne){const Ee=we.filter(qe=>sa(qe)===ne);return Ee.push(...we.filter(qe=>sa(qe)!==ne)),Ee}function br(we){if(!we)return null;if(we.routeConfig?._injector)return we.routeConfig._injector;for(let ne=we.parent;ne;ne=ne.parent){const Ee=ne.routeConfig;if(Ee?._loadedInjector)return Ee._loadedInjector;if(Ee?._injector)return Ee._injector}return null}nr.\u0275fac=function(ne){return new(ne||nr)},nr.\u0275cmp=e.Xpm({type:nr,selectors:[["ng-component"]],standalone:!0,features:[e.jDz],decls:1,vars:0,template:function(ne,Ee){1&ne&&e._UZ(0,"router-outlet")},dependencies:[Or],encapsulation:2});class kr{constructor(ne,Ee,qe,at){this.routeReuseStrategy=ne,this.futureState=Ee,this.currState=qe,this.forwardEvent=at}activate(ne){const Ee=this.futureState._root,qe=this.currState?this.currState._root:null;this.deactivateChildRoutes(Ee,qe,ne),xa(this.futureState.root),this.activateChildRoutes(Ee,qe,ne)}deactivateChildRoutes(ne,Ee,qe){const at=Di(Ee);ne.children.forEach(mt=>{const Wt=mt.value.outlet;this.deactivateRoutes(mt,at[Wt],qe),delete at[Wt]}),ht(at,(mt,Wt)=>{this.deactivateRouteAndItsChildren(mt,qe)})}deactivateRoutes(ne,Ee,qe){const at=ne.value,mt=Ee?Ee.value:null;if(at===mt)if(at.component){const Wt=qe.getContext(at.outlet);Wt&&this.deactivateChildRoutes(ne,Ee,Wt.children)}else this.deactivateChildRoutes(ne,Ee,qe);else mt&&this.deactivateRouteAndItsChildren(Ee,qe)}deactivateRouteAndItsChildren(ne,Ee){ne.value.component&&this.routeReuseStrategy.shouldDetach(ne.value.snapshot)?this.detachAndStoreRouteSubtree(ne,Ee):this.deactivateRouteAndOutlet(ne,Ee)}detachAndStoreRouteSubtree(ne,Ee){const qe=Ee.getContext(ne.value.outlet),at=qe&&ne.value.component?qe.children:Ee,mt=Di(ne);for(const Wt of Object.keys(mt))this.deactivateRouteAndItsChildren(mt[Wt],at);if(qe&&qe.outlet){const Wt=qe.outlet.detach(),mn=qe.children.onOutletDeactivated();this.routeReuseStrategy.store(ne.value.snapshot,{componentRef:Wt,route:ne,contexts:mn})}}deactivateRouteAndOutlet(ne,Ee){const qe=Ee.getContext(ne.value.outlet),at=qe&&ne.value.component?qe.children:Ee,mt=Di(ne);for(const Wt of Object.keys(mt))this.deactivateRouteAndItsChildren(mt[Wt],at);qe&&qe.outlet&&(qe.outlet.deactivate(),qe.children.onOutletDeactivated(),qe.attachRef=null,qe.resolver=null,qe.route=null)}activateChildRoutes(ne,Ee,qe){const at=Di(Ee);ne.children.forEach(mt=>{this.activateRoutes(mt,at[mt.value.outlet],qe),this.forwardEvent(new En(mt.value.snapshot))}),ne.children.length&&this.forwardEvent(new Ft(ne.value.snapshot))}activateRoutes(ne,Ee,qe){const at=ne.value,mt=Ee?Ee.value:null;if(xa(at),at===mt)if(at.component){const Wt=qe.getOrCreateContext(at.outlet);this.activateChildRoutes(ne,Ee,Wt.children)}else this.activateChildRoutes(ne,Ee,qe);else if(at.component){const Wt=qe.getOrCreateContext(at.outlet);if(this.routeReuseStrategy.shouldAttach(at.snapshot)){const mn=this.routeReuseStrategy.retrieve(at.snapshot);this.routeReuseStrategy.store(at.snapshot,null),Wt.children.onOutletReAttached(mn.contexts),Wt.attachRef=mn.componentRef,Wt.route=mn.route.value,Wt.outlet&&Wt.outlet.attach(mn.componentRef,mn.route.value),xa(mn.route.value),this.activateChildRoutes(ne,null,Wt.children)}else{const mn=br(at.snapshot),Dn=mn?.get(e._Vd)??null;Wt.attachRef=null,Wt.route=at,Wt.resolver=Dn,Wt.injector=mn,Wt.outlet&&Wt.outlet.activateWith(at,Wt.injector),this.activateChildRoutes(ne,null,Wt.children)}}else this.activateChildRoutes(ne,null,qe)}}class Va{constructor(ne){this.path=ne,this.route=this.path[this.path.length-1]}}class dn{constructor(ne,Ee){this.component=ne,this.route=Ee}}function xt(we,ne,Ee){const qe=we._root;return ri(qe,ne?ne._root:null,Ee,[qe.value])}function Fn(we,ne){const Ee=Symbol(),qe=ne.get(we,Ee);return qe===Ee?"function"!=typeof we||(0,e.Z0I)(we)?ne.get(we):we:qe}function ri(we,ne,Ee,qe,at={canDeactivateChecks:[],canActivateChecks:[]}){const mt=Di(ne);return we.children.forEach(Wt=>{(function Bi(we,ne,Ee,qe,at={canDeactivateChecks:[],canActivateChecks:[]}){const mt=we.value,Wt=ne?ne.value:null,mn=Ee?Ee.getContext(we.value.outlet):null;if(Wt&&mt.routeConfig===Wt.routeConfig){const Dn=function Xi(we,ne,Ee){if("function"==typeof Ee)return Ee(we,ne);switch(Ee){case"pathParamsChange":return!Ut(we.url,ne.url);case"pathParamsOrQueryParamsChange":return!Ut(we.url,ne.url)||!xe(we.queryParams,ne.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!ra(we,ne)||!xe(we.queryParams,ne.queryParams);default:return!ra(we,ne)}}(Wt,mt,mt.routeConfig.runGuardsAndResolvers);Dn?at.canActivateChecks.push(new Va(qe)):(mt.data=Wt.data,mt._resolvedData=Wt._resolvedData),mt.component?ri(we,ne,mn?mn.children:null,qe,at):ri(we,ne,Ee,qe,at),Dn&&mn&&mn.outlet&&mn.outlet.isActivated&&at.canDeactivateChecks.push(new dn(mn.outlet.component,Wt))}else Wt&&oa(ne,mn,at),at.canActivateChecks.push(new Va(qe)),mt.component?ri(we,null,mn?mn.children:null,qe,at):ri(we,null,Ee,qe,at);return at})(Wt,mt[Wt.value.outlet],Ee,qe.concat([Wt.value]),at),delete mt[Wt.value.outlet]}),ht(mt,(Wt,mn)=>oa(Wt,Ee.getContext(mn),at)),at}function oa(we,ne,Ee){const qe=Di(we),at=we.value;ht(qe,(mt,Wt)=>{at.component?oa(mt,ne?ne.children.getContext(Wt):null,Ee):oa(mt,ne,Ee)}),at.component&&ne&&ne.outlet&&ne.outlet.isActivated?Ee.canDeactivateChecks.push(new dn(ne.outlet.component,at)):Ee.canDeactivateChecks.push(new dn(null,at))}function la(we){return"function"==typeof we}function bt(we){return we instanceof s.K||"EmptyError"===we?.name}const be=Symbol("INITIAL_VALUE");function ct(){return(0,Z.w)(we=>(0,D.a)(we.map(ne=>ne.pipe((0,Q.q)(1),(0,ie.O)(be)))).pipe((0,W.U)(ne=>{for(const Ee of ne)if(!0!==Ee){if(Ee===be)return be;if(!1===Ee||Ee instanceof it)return Ee}return!0}),(0,ae.h)(ne=>ne!==be),(0,Q.q)(1)))}function Yt(we,ne){return(0,_e.z)(Ee=>{const{targetSnapshot:qe,currentSnapshot:at,guards:{canActivateChecks:mt,canDeactivateChecks:Wt}}=Ee;return 0===Wt.length&&0===mt.length?(0,_.of)({...Ee,guardsResult:!0}):function Pn(we,ne,Ee,qe){return(0,t.D)(we).pipe((0,_e.z)(at=>function kl(we,ne,Ee,qe,at){const mt=ne&&ne.routeConfig?ne.routeConfig.canDeactivate:null;if(!mt||0===mt.length)return(0,_.of)(!0);const Wt=mt.map(mn=>{const Dn=br(ne)??at,Rn=Fn(mn,Dn);return Le(function ca(we){return we&&la(we.canDeactivate)}(Rn)?Rn.canDeactivate(we,ne,Ee,qe):Dn.runInContext(()=>Rn(we,ne,Ee,qe))).pipe((0,ce.P)())});return(0,_.of)(Wt).pipe(ct())}(at.component,at.route,Ee,ne,qe)),(0,ce.P)(at=>!0!==at,!0))}(Wt,qe,at,we).pipe((0,_e.z)(mn=>mn&&function Li(we){return"boolean"==typeof we}(mn)?function Ti(we,ne,Ee,qe){return(0,t.D)(ne).pipe((0,ye.b)(at=>(0,u.z)(function gs(we,ne){return null!==we&&ne&&ne(new It(we)),(0,_.of)(!0)}(at.route.parent,qe),function rr(we,ne){return null!==we&&ne&&ne(new ln(we)),(0,_.of)(!0)}(at.route,qe),function $s(we,ne,Ee){const qe=ne[ne.length-1],mt=ne.slice(0,ne.length-1).reverse().map(Wt=>function Nt(we){const ne=we.routeConfig?we.routeConfig.canActivateChild:null;return ne&&0!==ne.length?{node:we,guards:ne}:null}(Wt)).filter(Wt=>null!==Wt).map(Wt=>(0,k.P)(()=>{const mn=Wt.guards.map(Dn=>{const Rn=br(Wt.node)??Ee,di=Fn(Dn,Rn);return Le(function Zr(we){return we&&la(we.canActivateChild)}(di)?di.canActivateChild(qe,we):Rn.runInContext(()=>di(qe,we))).pipe((0,ce.P)())});return(0,_.of)(mn).pipe(ct())}));return(0,_.of)(mt).pipe(ct())}(we,at.path,Ee),function Oo(we,ne,Ee){const qe=ne.routeConfig?ne.routeConfig.canActivate:null;if(!qe||0===qe.length)return(0,_.of)(!0);const at=qe.map(mt=>(0,k.P)(()=>{const Wt=br(ne)??Ee,mn=Fn(mt,Wt);return Le(function Rr(we){return we&&la(we.canActivate)}(mn)?mn.canActivate(ne,we):Wt.runInContext(()=>mn(ne,we))).pipe((0,ce.P)())}));return(0,_.of)(at).pipe(ct())}(we,at.route,Ee))),(0,ce.P)(at=>!0!==at,!0))}(qe,mt,we,ne):(0,_.of)(mn)),(0,W.U)(mn=>({...Ee,guardsResult:mn})))})}function po(we,ne,Ee,qe){const at=ne.canLoad;if(void 0===at||0===at.length)return(0,_.of)(!0);const mt=at.map(Wt=>{const mn=Fn(Wt,we);return Le(function rs(we){return we&&la(we.canLoad)}(mn)?mn.canLoad(ne,Ee):we.runInContext(()=>mn(ne,Ee)))});return(0,_.of)(mt).pipe(ct(),kn(qe))}function kn(we){return(0,p.z)((0,ue.b)(ne=>{if(He(ne))throw Gr(0,ne)}),(0,W.U)(ne=>!0===ne))}function Ui(we,ne,Ee,qe){const at=ne.canMatch;if(!at||0===at.length)return(0,_.of)(!0);const mt=at.map(Wt=>{const mn=Fn(Wt,we);return Le(function si(we){return we&&la(we.canMatch)}(mn)?mn.canMatch(ne,Ee):we.runInContext(()=>mn(ne,Ee)))});return(0,_.of)(mt).pipe(ct(),kn())}const eo={matched:!1,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};function sr(we,ne,Ee,qe,at){const mt=Ra(we,ne,Ee);return mt.matched?Ui(qe=Pr(ne,qe),ne,Ee).pipe((0,W.U)(Wt=>!0===Wt?mt:{...eo})):(0,_.of)(mt)}function Ra(we,ne,Ee){if(""===ne.path)return"full"===ne.pathMatch&&(we.hasChildren()||Ee.length>0)?{...eo}:{matched:!0,consumedSegments:[],remainingSegments:Ee,parameters:{},positionalParamSegments:{}};const at=(ne.matcher||je)(Ee,we,ne);if(!at)return{...eo};const mt={};ht(at.posParams,(mn,Dn)=>{mt[Dn]=mn.path});const Wt=at.consumed.length>0?{...mt,...at.consumed[at.consumed.length-1].parameters}:mt;return{matched:!0,consumedSegments:at.consumed,remainingSegments:Ee.slice(at.consumed.length),parameters:Wt,positionalParamSegments:at.posParams??{}}}function Br(we,ne,Ee,qe){if(Ee.length>0&&function $i(we,ne,Ee){return Ee.some(qe=>vs(we,ne,qe)&&sa(qe)!==X)}(we,Ee,qe)){const mt=new Ct(ne,function Ba(we,ne,Ee,qe){const at={};at[X]=qe,qe._sourceSegment=we,qe._segmentIndexShift=ne.length;for(const mt of Ee)if(""===mt.path&&sa(mt)!==X){const Wt=new Ct([],{});Wt._sourceSegment=we,Wt._segmentIndexShift=ne.length,at[sa(mt)]=Wt}return at}(we,ne,qe,new Ct(Ee,we.children)));return mt._sourceSegment=we,mt._segmentIndexShift=ne.length,{segmentGroup:mt,slicedSegments:[]}}if(0===Ee.length&&function Hn(we,ne,Ee){return Ee.some(qe=>vs(we,ne,qe))}(we,Ee,qe)){const mt=new Ct(we.segments,function _o(we,ne,Ee,qe,at){const mt={};for(const Wt of qe)if(vs(we,Ee,Wt)&&!at[sa(Wt)]){const mn=new Ct([],{});mn._sourceSegment=we,mn._segmentIndexShift=ne.length,mt[sa(Wt)]=mn}return{...at,...mt}}(we,ne,Ee,qe,we.children));return mt._sourceSegment=we,mt._segmentIndexShift=ne.length,{segmentGroup:mt,slicedSegments:Ee}}const at=new Ct(we.segments,we.children);return at._sourceSegment=we,at._segmentIndexShift=ne.length,{segmentGroup:at,slicedSegments:Ee}}function vs(we,ne,Ee){return(!(we.hasChildren()||ne.length>0)||"full"!==Ee.pathMatch)&&""===Ee.path}function dl(we,ne,Ee,qe){return!!(sa(we)===qe||qe!==X&&vs(ne,Ee,we))&&("**"===we.path||Ra(ne,we,Ee).matched)}function Gn(we,ne,Ee){return 0===ne.length&&!we.children[Ee]}const Hs=!1;class Wa{constructor(ne){this.segmentGroup=ne||null}}class ss{constructor(ne){this.urlTree=ne}}function zs(we){return(0,S._)(new Wa(we))}function to(we){return(0,S._)(new ss(we))}class Wc{constructor(ne,Ee,qe,at,mt){this.injector=ne,this.configLoader=Ee,this.urlSerializer=qe,this.urlTree=at,this.config=mt,this.allowRedirects=!0}apply(){const ne=Br(this.urlTree.root,[],[],this.config).segmentGroup,Ee=new Ct(ne.segments,ne.children);return this.expandSegmentGroup(this.injector,this.config,Ee,X).pipe((0,W.U)(mt=>this.createUrlTree(Tt(mt),this.urlTree.queryParams,this.urlTree.fragment))).pipe((0,$.K)(mt=>{if(mt instanceof ss)return this.allowRedirects=!1,this.match(mt.urlTree);throw mt instanceof Wa?this.noMatchError(mt):mt}))}match(ne){return this.expandSegmentGroup(this.injector,this.config,ne.root,X).pipe((0,W.U)(at=>this.createUrlTree(Tt(at),ne.queryParams,ne.fragment))).pipe((0,$.K)(at=>{throw at instanceof Wa?this.noMatchError(at):at}))}noMatchError(ne){return new e.vHH(4002,Hs)}createUrlTree(ne,Ee,qe){const at=At(ne);return new it(at,Ee,qe)}expandSegmentGroup(ne,Ee,qe,at){return 0===qe.segments.length&&qe.hasChildren()?this.expandChildren(ne,Ee,qe).pipe((0,W.U)(mt=>new Ct([],mt))):this.expandSegment(ne,qe,Ee,qe.segments,at,!0)}expandChildren(ne,Ee,qe){const at=[];for(const mt of Object.keys(qe.children))"primary"===mt?at.unshift(mt):at.push(mt);return(0,t.D)(at).pipe((0,ye.b)(mt=>{const Wt=qe.children[mt],mn=ir(Ee,mt);return this.expandSegmentGroup(ne,mn,Wt,mt).pipe((0,W.U)(Dn=>({segment:Dn,outlet:mt})))}),(0,he.R)((mt,Wt)=>(mt[Wt.outlet]=Wt.segment,mt),{}),L())}expandSegment(ne,Ee,qe,at,mt,Wt){return(0,t.D)(qe).pipe((0,ye.b)(mn=>this.expandSegmentAgainstRoute(ne,Ee,qe,mn,at,mt,Wt).pipe((0,$.K)(Rn=>{if(Rn instanceof Wa)return(0,_.of)(null);throw Rn}))),(0,ce.P)(mn=>!!mn),(0,$.K)((mn,Dn)=>{if(bt(mn))return Gn(Ee,at,mt)?(0,_.of)(new Ct([],{})):zs(Ee);throw mn}))}expandSegmentAgainstRoute(ne,Ee,qe,at,mt,Wt,mn){return dl(at,Ee,mt,Wt)?void 0===at.redirectTo?this.matchSegmentAgainstRoute(ne,Ee,at,mt,Wt):mn&&this.allowRedirects?this.expandSegmentAgainstRouteUsingRedirect(ne,Ee,qe,at,mt,Wt):zs(Ee):zs(Ee)}expandSegmentAgainstRouteUsingRedirect(ne,Ee,qe,at,mt,Wt){return"**"===at.path?this.expandWildCardWithParamsAgainstRouteUsingRedirect(ne,qe,at,Wt):this.expandRegularSegmentAgainstRouteUsingRedirect(ne,Ee,qe,at,mt,Wt)}expandWildCardWithParamsAgainstRouteUsingRedirect(ne,Ee,qe,at){const mt=this.applyRedirectCommands([],qe.redirectTo,{});return qe.redirectTo.startsWith("/")?to(mt):this.lineralizeSegments(qe,mt).pipe((0,_e.z)(Wt=>{const mn=new Ct(Wt,{});return this.expandSegment(ne,mn,Ee,Wt,at,!1)}))}expandRegularSegmentAgainstRouteUsingRedirect(ne,Ee,qe,at,mt,Wt){const{matched:mn,consumedSegments:Dn,remainingSegments:Rn,positionalParamSegments:di}=Ra(Ee,at,mt);if(!mn)return zs(Ee);const ta=this.applyRedirectCommands(Dn,at.redirectTo,di);return at.redirectTo.startsWith("/")?to(ta):this.lineralizeSegments(at,ta).pipe((0,_e.z)(Ea=>this.expandSegment(ne,Ee,qe,Ea.concat(Rn),Wt,!1)))}matchSegmentAgainstRoute(ne,Ee,qe,at,mt){return"**"===qe.path?(ne=Pr(qe,ne),qe.loadChildren?(qe._loadedRoutes?(0,_.of)({routes:qe._loadedRoutes,injector:qe._loadedInjector}):this.configLoader.loadChildren(ne,qe)).pipe((0,W.U)(mn=>(qe._loadedRoutes=mn.routes,qe._loadedInjector=mn.injector,new Ct(at,{})))):(0,_.of)(new Ct(at,{}))):sr(Ee,qe,at,ne,this.urlSerializer).pipe((0,Z.w)(({matched:Wt,consumedSegments:mn,remainingSegments:Dn})=>Wt?(ne=qe._injector??ne,this.getChildConfig(ne,qe,at).pipe((0,_e.z)(di=>{const ta=di.injector??ne,Ea=di.routes,{segmentGroup:zi,slicedSegments:Fr}=Br(Ee,mn,Dn,Ea),so=new Ct(zi.segments,zi.children);if(0===Fr.length&&so.hasChildren())return this.expandChildren(ta,Ea,so).pipe((0,W.U)(No=>new Ct(mn,No)));if(0===Ea.length&&0===Fr.length)return(0,_.of)(new Ct(mn,{}));const ds=sa(qe)===mt;return this.expandSegment(ta,so,Ea,Fr,ds?X:mt,!0).pipe((0,W.U)(xs=>new Ct(mn.concat(xs.segments),xs.children)))}))):zs(Ee)))}getChildConfig(ne,Ee,qe){return Ee.children?(0,_.of)({routes:Ee.children,injector:ne}):Ee.loadChildren?void 0!==Ee._loadedRoutes?(0,_.of)({routes:Ee._loadedRoutes,injector:Ee._loadedInjector}):po(ne,Ee,qe,this.urlSerializer).pipe((0,_e.z)(at=>at?this.configLoader.loadChildren(ne,Ee).pipe((0,ue.b)(mt=>{Ee._loadedRoutes=mt.routes,Ee._loadedInjector=mt.injector})):function Po(we){return(0,S._)(Ta(Hs,3))}())):(0,_.of)({routes:[],injector:ne})}lineralizeSegments(ne,Ee){let qe=[],at=Ee.root;for(;;){if(qe=qe.concat(at.segments),0===at.numberOfChildren)return(0,_.of)(qe);if(at.numberOfChildren>1||!at.children[X])return ne.redirectTo,(0,S._)(new e.vHH(4e3,Hs));at=at.children[X]}}applyRedirectCommands(ne,Ee,qe){return this.applyRedirectCreateUrlTree(Ee,this.urlSerializer.parse(Ee),ne,qe)}applyRedirectCreateUrlTree(ne,Ee,qe,at){const mt=this.createSegmentGroup(ne,Ee.root,qe,at);return new it(mt,this.createQueryParams(Ee.queryParams,this.urlTree.queryParams),Ee.fragment)}createQueryParams(ne,Ee){const qe={};return ht(ne,(at,mt)=>{if("string"==typeof at&&at.startsWith(":")){const mn=at.substring(1);qe[mt]=Ee[mn]}else qe[mt]=at}),qe}createSegmentGroup(ne,Ee,qe,at){const mt=this.createSegments(ne,Ee.segments,qe,at);let Wt={};return ht(Ee.children,(mn,Dn)=>{Wt[Dn]=this.createSegmentGroup(ne,mn,qe,at)}),new Ct(mt,Wt)}createSegments(ne,Ee,qe,at){return Ee.map(mt=>mt.path.startsWith(":")?this.findPosParam(ne,mt,at):this.findOrReturn(mt,qe))}findPosParam(ne,Ee,qe){const at=qe[Ee.path.substring(1)];if(!at)throw new e.vHH(4001,Hs);return at}findOrReturn(ne,Ee){let qe=0;for(const at of Ee){if(at.path===ne.path)return Ee.splice(qe),at;qe++}return ne}}function Kc(we,ne,Ee,qe){return(0,Z.w)(at=>function Vc(we,ne,Ee,qe,at){return new Wc(we,ne,Ee,qe,at).apply()}(we,ne,Ee,at.extractedUrl,qe).pipe((0,W.U)(mt=>({...at,urlAfterRedirects:mt}))))}class Go{}function ko(we,ne,Ee,qe,at,mt,Wt="emptyOnly"){return new xr(we,ne,Ee,qe,at,Wt,mt).recognize().pipe((0,Z.w)(mn=>null===mn?function Zo(we){return new A.y(ne=>ne.error(we))}(new Go):(0,_.of)(mn)))}class xr{constructor(ne,Ee,qe,at,mt,Wt,mn){this.injector=ne,this.rootComponentType=Ee,this.config=qe,this.urlTree=at,this.url=mt,this.paramsInheritanceStrategy=Wt,this.urlSerializer=mn}recognize(){const ne=Br(this.urlTree.root,[],[],this.config.filter(Ee=>void 0===Ee.redirectTo)).segmentGroup;return this.processSegmentGroup(this.injector,this.config,ne,X).pipe((0,W.U)(Ee=>{if(null===Ee)return null;const qe=new gr([],Object.freeze({}),Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,{},X,this.rootComponentType,null,this.urlTree.root,-1,{}),at=new ea(qe,Ee),mt=new Sa(this.url,at);return this.inheritParamsAndData(mt._root),mt}))}inheritParamsAndData(ne){const Ee=ne.value,qe=Hi(Ee,this.paramsInheritanceStrategy);Ee.params=Object.freeze(qe.params),Ee.data=Object.freeze(qe.data),ne.children.forEach(at=>this.inheritParamsAndData(at))}processSegmentGroup(ne,Ee,qe,at){return 0===qe.segments.length&&qe.hasChildren()?this.processChildren(ne,Ee,qe):this.processSegment(ne,Ee,qe,qe.segments,at)}processChildren(ne,Ee,qe){return(0,t.D)(Object.keys(qe.children)).pipe((0,ye.b)(at=>{const mt=qe.children[at],Wt=ir(Ee,at);return this.processSegmentGroup(ne,Wt,mt,at)}),(0,he.R)((at,mt)=>at&&mt?(at.push(...mt),at):null),(0,B.o)(at=>null!==at),(0,d.d)(null),L(),(0,W.U)(at=>{if(null===at)return null;const mt=ul(at);return function Ro(we){we.sort((ne,Ee)=>ne.value.outlet===X?-1:Ee.value.outlet===X?1:ne.value.outlet.localeCompare(Ee.value.outlet))}(mt),mt}))}processSegment(ne,Ee,qe,at,mt){return(0,t.D)(Ee).pipe((0,ye.b)(Wt=>this.processSegmentAgainstRoute(Wt._injector??ne,Wt,qe,at,mt)),(0,ce.P)(Wt=>!!Wt),(0,$.K)(Wt=>{if(bt(Wt))return Gn(qe,at,mt)?(0,_.of)([]):(0,_.of)(null);throw Wt}))}processSegmentAgainstRoute(ne,Ee,qe,at,mt){if(Ee.redirectTo||!dl(Ee,qe,at,mt))return(0,_.of)(null);let Wt;if("**"===Ee.path){const mn=at.length>0?ve(at).parameters:{},Dn=ks(qe)+at.length,Rn=new gr(at,mn,Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,os(Ee),sa(Ee),Ee.component??Ee._loadedComponent??null,Ee,ys(qe),Dn,Ne(Ee));Wt=(0,_.of)({snapshot:Rn,consumedSegments:[],remainingSegments:[]})}else Wt=sr(qe,Ee,at,ne,this.urlSerializer).pipe((0,W.U)(({matched:mn,consumedSegments:Dn,remainingSegments:Rn,parameters:di})=>{if(!mn)return null;const ta=ks(qe)+Dn.length;return{snapshot:new gr(Dn,di,Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,os(Ee),sa(Ee),Ee.component??Ee._loadedComponent??null,Ee,ys(qe),ta,Ne(Ee)),consumedSegments:Dn,remainingSegments:Rn}}));return Wt.pipe((0,Z.w)(mn=>{if(null===mn)return(0,_.of)(null);const{snapshot:Dn,consumedSegments:Rn,remainingSegments:di}=mn;ne=Ee._injector??ne;const ta=Ee._loadedInjector??ne,Ea=function Yo(we){return we.children?we.children:we.loadChildren?we._loadedRoutes:[]}(Ee),{segmentGroup:zi,slicedSegments:Fr}=Br(qe,Rn,di,Ea.filter(ds=>void 0===ds.redirectTo));if(0===Fr.length&&zi.hasChildren())return this.processChildren(ta,Ea,zi).pipe((0,W.U)(ds=>null===ds?null:[new ea(Dn,ds)]));if(0===Ea.length&&0===Fr.length)return(0,_.of)([new ea(Dn,[])]);const so=sa(Ee)===mt;return this.processSegment(ta,Ea,zi,Fr,so?X:mt).pipe((0,W.U)(ds=>null===ds?null:[new ea(Dn,ds)]))}))}}function ui(we){const ne=we.value.routeConfig;return ne&&""===ne.path&&void 0===ne.redirectTo}function ul(we){const ne=[],Ee=new Set;for(const qe of we){if(!ui(qe)){ne.push(qe);continue}const at=ne.find(mt=>qe.value.routeConfig===mt.value.routeConfig);void 0!==at?(at.children.push(...qe.children),Ee.add(at)):ne.push(qe)}for(const qe of Ee){const at=ul(qe.children);ne.push(new ea(qe.value,at))}return ne.filter(qe=>!Ee.has(qe))}function ys(we){let ne=we;for(;ne._sourceSegment;)ne=ne._sourceSegment;return ne}function ks(we){let ne=we,Ee=ne._segmentIndexShift??0;for(;ne._sourceSegment;)ne=ne._sourceSegment,Ee+=ne._segmentIndexShift??0;return Ee-1}function os(we){return we.data||{}}function Ne(we){return we.resolve||{}}function st(we,ne){return(0,_e.z)(Ee=>{const{targetSnapshot:qe,guards:{canActivateChecks:at}}=Ee;if(!at.length)return(0,_.of)(Ee);let mt=0;return(0,t.D)(at).pipe((0,ye.b)(Wt=>function Ot(we,ne,Ee,qe){const at=we.routeConfig,mt=we._resolve;return void 0!==at?.title&&!Xe(at)&&(mt[Fe]=at.title),function Vt(we,ne,Ee,qe){const at=function fn(we){return[...Object.keys(we),...Object.getOwnPropertySymbols(we)]}(we);if(0===at.length)return(0,_.of)({});const mt={};return(0,t.D)(at).pipe((0,_e.z)(Wt=>function Un(we,ne,Ee,qe){const at=br(ne)??qe,mt=Fn(we,at);return Le(mt.resolve?mt.resolve(ne,Ee):at.runInContext(()=>mt(ne,Ee)))}(we[Wt],ne,Ee,qe).pipe((0,ce.P)(),(0,ue.b)(mn=>{mt[Wt]=mn}))),o(1),(0,v.h)(mt),(0,$.K)(Wt=>bt(Wt)?P.E:(0,S._)(Wt)))}(mt,we,ne,qe).pipe((0,W.U)(Wt=>(we._resolvedData=Wt,we.data=Hi(we,Ee).resolve,at&&Xe(at)&&(we.data[Fe]=at.title),null)))}(Wt.route,qe,we,ne)),(0,ue.b)(()=>mt++),o(1),(0,_e.z)(Wt=>mt===at.length?(0,_.of)(Ee):P.E))})}function Xe(we){return"string"==typeof we.title||null===we.title}function rt(we){return(0,Z.w)(ne=>{const Ee=we(ne);return Ee?(0,t.D)(Ee).pipe((0,W.U)(()=>ne)):(0,_.of)(ne)})}const Qe=new e.OlP("ROUTES");class Qt{constructor(ne,Ee){this.injector=ne,this.compiler=Ee,this.componentLoaders=new WeakMap,this.childrenLoaders=new WeakMap}loadComponent(ne){if(this.componentLoaders.get(ne))return this.componentLoaders.get(ne);if(ne._loadedComponent)return(0,_.of)(ne._loadedComponent);this.onLoadStartListener&&this.onLoadStartListener(ne);const Ee=Le(ne.loadComponent()).pipe((0,W.U)(qt),(0,ue.b)(at=>{this.onLoadEndListener&&this.onLoadEndListener(ne),ne._loadedComponent=at}),(0,a.x)(()=>{this.componentLoaders.delete(ne)})),qe=new M.c(Ee,()=>new z.x).pipe((0,C.x)());return this.componentLoaders.set(ne,qe),qe}loadChildren(ne,Ee){if(this.childrenLoaders.get(Ee))return this.childrenLoaders.get(Ee);if(Ee._loadedRoutes)return(0,_.of)({routes:Ee._loadedRoutes,injector:Ee._loadedInjector});this.onLoadStartListener&&this.onLoadStartListener(Ee);const at=this.loadModuleFactoryOrRoutes(Ee.loadChildren).pipe((0,W.U)(Wt=>{this.onLoadEndListener&&this.onLoadEndListener(Ee);let mn,Dn,Rn=!1;Array.isArray(Wt)?(Dn=Wt,Rn=!0):(mn=Wt.create(ne).injector,Dn=Ie(mn.get(Qe,[],e.XFs.Self|e.XFs.Optional)));const di=Dn.map(yr);return{routes:di,injector:mn}}),(0,a.x)(()=>{this.childrenLoaders.delete(Ee)})),mt=new M.c(at,()=>new z.x).pipe((0,C.x)());return this.childrenLoaders.set(Ee,mt),mt}loadModuleFactoryOrRoutes(ne){return(this.injector,null)||Le(ne()).pipe((0,W.U)(qt),(0,_e.z)(qe=>qe instanceof e.YKP||Array.isArray(qe)?(0,_.of)(qe):(0,t.D)(this.compiler.compileModuleAsync(qe))))}}function qt(we){return function sn(we){return we&&"object"==typeof we&&"default"in we}(we)?we.default:we}Qt.\u0275fac=function(ne){return new(ne||Qt)(e.LFG(e.zs3),e.LFG(e.Sil))},Qt.\u0275prov=e.Yz7({token:Qt,factory:Qt.\u0275fac,providedIn:"root"});class Sn{constructor(){this.currentNavigation=null,this.lastSuccessfulNavigation=null,this.events=new z.x,this.configLoader=(0,e.f3M)(Qt),this.environmentInjector=(0,e.f3M)(e.lqb),this.urlSerializer=(0,e.f3M)(Xt),this.rootContexts=(0,e.f3M)(Ca),this.navigationId=0;this.configLoader.onLoadEndListener=qe=>this.events.next(new mr(qe)),this.configLoader.onLoadStartListener=qe=>this.events.next(new Za(qe))}get hasRequestedNavigation(){return 0!==this.navigationId}complete(){this.transitions?.complete()}handleNavigationRequest(ne){const Ee=++this.navigationId;this.transitions?.next({...this.transitions.value,...ne,id:Ee})}setupNavigations(ne){return this.transitions=new E.X({id:0,targetPageId:0,currentUrlTree:ne.currentUrlTree,currentRawUrl:ne.currentUrlTree,extractedUrl:ne.urlHandlingStrategy.extract(ne.currentUrlTree),urlAfterRedirects:ne.urlHandlingStrategy.extract(ne.currentUrlTree),rawUrl:ne.currentUrlTree,extras:{},resolve:null,reject:null,promise:Promise.resolve(!0),source:"imperative",restoredState:null,currentSnapshot:ne.routerState.snapshot,targetSnapshot:null,currentRouterState:ne.routerState,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null}),this.transitions.pipe((0,ae.h)(Ee=>0!==Ee.id),(0,W.U)(Ee=>({...Ee,extractedUrl:ne.urlHandlingStrategy.extract(Ee.rawUrl)})),(0,Z.w)(Ee=>{let qe=!1,at=!1;return(0,_.of)(Ee).pipe((0,ue.b)(mt=>{this.currentNavigation={id:mt.id,initialUrl:mt.rawUrl,extractedUrl:mt.extractedUrl,trigger:mt.source,extras:mt.extras,previousNavigation:this.lastSuccessfulNavigation?{...this.lastSuccessfulNavigation,previousNavigation:null}:null}}),(0,Z.w)(mt=>{const Wt=ne.browserUrlTree.toString(),mn=!ne.navigated||mt.extractedUrl.toString()!==Wt||Wt!==ne.currentUrlTree.toString();if(("reload"===ne.onSameUrlNavigation||mn)&&ne.urlHandlingStrategy.shouldProcessUrl(mt.rawUrl))return Jn(mt.source)&&(ne.browserUrlTree=mt.extractedUrl),(0,_.of)(mt).pipe((0,Z.w)(Rn=>{const di=this.transitions?.getValue();return this.events.next(new hn(Rn.id,this.urlSerializer.serialize(Rn.extractedUrl),Rn.source,Rn.restoredState)),di!==this.transitions?.getValue()?P.E:Promise.resolve(Rn)}),Kc(this.environmentInjector,this.configLoader,this.urlSerializer,ne.config),(0,ue.b)(Rn=>{this.currentNavigation={...this.currentNavigation,finalUrl:Rn.urlAfterRedirects},Ee.urlAfterRedirects=Rn.urlAfterRedirects}),function fe(we,ne,Ee,qe,at){return(0,_e.z)(mt=>ko(we,ne,Ee,mt.urlAfterRedirects,qe.serialize(mt.urlAfterRedirects),qe,at).pipe((0,W.U)(Wt=>({...mt,targetSnapshot:Wt}))))}(this.environmentInjector,ne.rootComponentType,ne.config,this.urlSerializer,ne.paramsInheritanceStrategy),(0,ue.b)(Rn=>{if(Ee.targetSnapshot=Rn.targetSnapshot,"eager"===ne.urlUpdateStrategy){if(!Rn.extras.skipLocationChange){const ta=ne.urlHandlingStrategy.merge(Rn.urlAfterRedirects,Rn.rawUrl);ne.setBrowserUrl(ta,Rn)}ne.browserUrlTree=Rn.urlAfterRedirects}const di=new Ei(Rn.id,this.urlSerializer.serialize(Rn.extractedUrl),this.urlSerializer.serialize(Rn.urlAfterRedirects),Rn.targetSnapshot);this.events.next(di)}));if(mn&&ne.rawUrlTree&&ne.urlHandlingStrategy.shouldProcessUrl(ne.rawUrlTree)){const{id:di,extractedUrl:ta,source:Ea,restoredState:zi,extras:Fr}=mt,so=new hn(di,this.urlSerializer.serialize(ta),Ea,zi);this.events.next(so);const ds=ka(ta,ne.rootComponentType).snapshot;return Ee={...mt,targetSnapshot:ds,urlAfterRedirects:ta,extras:{...Fr,skipLocationChange:!1,replaceUrl:!1}},(0,_.of)(Ee)}return ne.rawUrlTree=mt.rawUrl,mt.resolve(null),P.E}),(0,ue.b)(mt=>{const Wt=new ha(mt.id,this.urlSerializer.serialize(mt.extractedUrl),this.urlSerializer.serialize(mt.urlAfterRedirects),mt.targetSnapshot);this.events.next(Wt)}),(0,W.U)(mt=>Ee={...mt,guards:xt(mt.targetSnapshot,mt.currentSnapshot,this.rootContexts)}),Yt(this.environmentInjector,mt=>this.events.next(mt)),(0,ue.b)(mt=>{if(Ee.guardsResult=mt.guardsResult,He(mt.guardsResult))throw Gr(this.urlSerializer,mt.guardsResult);const Wt=new mi(mt.id,this.urlSerializer.serialize(mt.extractedUrl),this.urlSerializer.serialize(mt.urlAfterRedirects),mt.targetSnapshot,!!mt.guardsResult);this.events.next(Wt)}),(0,ae.h)(mt=>!!mt.guardsResult||(ne.restoreHistory(mt),this.cancelNavigationTransition(mt,"",3,ne),!1)),rt(mt=>{if(mt.guards.canActivateChecks.length)return(0,_.of)(mt).pipe((0,ue.b)(Wt=>{const mn=new qi(Wt.id,this.urlSerializer.serialize(Wt.extractedUrl),this.urlSerializer.serialize(Wt.urlAfterRedirects),Wt.targetSnapshot);this.events.next(mn)}),(0,Z.w)(Wt=>{let mn=!1;return(0,_.of)(Wt).pipe(st(ne.paramsInheritanceStrategy,this.environmentInjector),(0,ue.b)({next:()=>mn=!0,complete:()=>{mn||(ne.restoreHistory(Wt),this.cancelNavigationTransition(Wt,"",2,ne))}}))}),(0,ue.b)(Wt=>{const mn=new Zi(Wt.id,this.urlSerializer.serialize(Wt.extractedUrl),this.urlSerializer.serialize(Wt.urlAfterRedirects),Wt.targetSnapshot);this.events.next(mn)}))}),rt(mt=>{const Wt=mn=>{const Dn=[];mn.routeConfig?.loadComponent&&!mn.routeConfig._loadedComponent&&Dn.push(this.configLoader.loadComponent(mn.routeConfig).pipe((0,ue.b)(Rn=>{mn.component=Rn}),(0,W.U)(()=>{})));for(const Rn of mn.children)Dn.push(...Wt(Rn));return Dn};return(0,D.a)(Wt(mt.targetSnapshot.root)).pipe((0,d.d)(),(0,Q.q)(1))}),rt(()=>ne.afterPreactivation()),(0,W.U)(mt=>{const Wt=function fo(we,ne,Ee){const qe=za(we,ne._root,Ee?Ee._root:void 0);return new Ji(qe,ne)}(ne.routeReuseStrategy,mt.targetSnapshot,mt.currentRouterState);return Ee={...mt,targetRouterState:Wt}}),(0,ue.b)(mt=>{ne.currentUrlTree=mt.urlAfterRedirects,ne.rawUrlTree=ne.urlHandlingStrategy.merge(mt.urlAfterRedirects,mt.rawUrl),ne.routerState=mt.targetRouterState,"deferred"===ne.urlUpdateStrategy&&(mt.extras.skipLocationChange||ne.setBrowserUrl(ne.rawUrlTree,mt),ne.browserUrlTree=mt.urlAfterRedirects)}),((we,ne,Ee)=>(0,W.U)(qe=>(new kr(ne,qe.targetRouterState,qe.currentRouterState,Ee).activate(we),qe)))(this.rootContexts,ne.routeReuseStrategy,mt=>this.events.next(mt)),(0,ue.b)({next:mt=>{qe=!0,this.lastSuccessfulNavigation=this.currentNavigation,ne.navigated=!0,this.events.next(new en(mt.id,this.urlSerializer.serialize(mt.extractedUrl),this.urlSerializer.serialize(ne.currentUrlTree))),ne.titleStrategy?.updateTitle(mt.targetRouterState.snapshot),mt.resolve(!0)},complete:()=>{qe=!0}}),(0,a.x)(()=>{if(!qe&&!at){const mt="";this.cancelNavigationTransition(Ee,mt,1,ne)}this.currentNavigation?.id===Ee.id&&(this.currentNavigation=null)}),(0,$.K)(mt=>{if(at=!0,Ua(mt)){Is(mt)||(ne.navigated=!0,ne.restoreHistory(Ee,!0));const Wt=new gn(Ee.id,this.urlSerializer.serialize(Ee.extractedUrl),mt.message,mt.cancellationCode);if(this.events.next(Wt),Is(mt)){const mn=ne.urlHandlingStrategy.merge(mt.url,ne.rawUrlTree),Dn={skipLocationChange:Ee.extras.skipLocationChange,replaceUrl:"eager"===ne.urlUpdateStrategy||Jn(Ee.source)};ne.scheduleNavigation(mn,"imperative",null,Dn,{resolve:Ee.resolve,reject:Ee.reject,promise:Ee.promise})}else Ee.resolve(!1)}else{ne.restoreHistory(Ee,!0);const Wt=new Qn(Ee.id,this.urlSerializer.serialize(Ee.extractedUrl),mt,Ee.targetSnapshot??void 0);this.events.next(Wt);try{Ee.resolve(ne.errorHandler(mt))}catch(mn){Ee.reject(mn)}}return P.E}))}))}cancelNavigationTransition(ne,Ee,qe,at){const mt=new gn(ne.id,this.urlSerializer.serialize(ne.extractedUrl),Ee,qe);this.events.next(mt),ne.resolve(!1)}}function Jn(we){return"imperative"!==we}Sn.\u0275fac=function(ne){return new(ne||Sn)},Sn.\u0275prov=e.Yz7({token:Sn,factory:Sn.\u0275fac,providedIn:"root"});class oi{buildTitle(ne){let Ee,qe=ne.root;for(;void 0!==qe;)Ee=this.getResolvedTitleForRoute(qe)??Ee,qe=qe.children.find(at=>at.outlet===X);return Ee}getResolvedTitleForRoute(ne){return ne.data[Fe]}}oi.\u0275fac=function(ne){return new(ne||oi)},oi.\u0275prov=e.Yz7({token:oi,factory:function(){return(0,e.f3M)(xi)},providedIn:"root"});class xi extends oi{constructor(ne){super(),this.title=ne}updateTitle(ne){const Ee=this.buildTitle(ne);void 0!==Ee&&this.title.setTitle(Ee)}}xi.\u0275fac=function(ne){return new(ne||xi)(e.LFG(F.Dx))},xi.\u0275prov=e.Yz7({token:xi,factory:xi.\u0275fac,providedIn:"root"});class Si{}Si.\u0275fac=function(ne){return new(ne||Si)},Si.\u0275prov=e.Yz7({token:Si,factory:function(){return(0,e.f3M)(Cr)},providedIn:"root"});class ur{shouldDetach(ne){return!1}store(ne,Ee){}shouldAttach(ne){return!1}retrieve(ne){return null}shouldReuseRoute(ne,Ee){return ne.routeConfig===Ee.routeConfig}}class Cr extends ur{}Cr.\u0275fac=function(){let we;return function(Ee){return(we||(we=e.n5z(Cr)))(Ee||Cr)}}(),Cr.\u0275prov=e.Yz7({token:Cr,factory:Cr.\u0275fac,providedIn:"root"});const Mr=new e.OlP("",{providedIn:"root",factory:()=>({})});class Ka{}Ka.\u0275fac=function(ne){return new(ne||Ka)},Ka.\u0275prov=e.Yz7({token:Ka,factory:function(){return(0,e.f3M)(Ma)},providedIn:"root"});class Ma{shouldProcessUrl(ne){return!0}extract(ne){return ne}merge(ne,Ee){return ne}}Ma.\u0275fac=function(ne){return new(ne||Ma)},Ma.\u0275prov=e.Yz7({token:Ma,factory:Ma.\u0275fac,providedIn:"root"});function Na(we){throw we}function mo(we,ne,Ee){return ne.parse("/")}const Er={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},bs={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"};function hl(){const we=(0,e.f3M)(Xt),ne=(0,e.f3M)(Ca),Ee=(0,e.f3M)(I.Ye),qe=(0,e.f3M)(e.zs3),at=(0,e.f3M)(e.Sil),mt=(0,e.f3M)(Qe,{optional:!0})??[],Wt=(0,e.f3M)(Mr,{optional:!0})??{},mn=new Dr(null,we,ne,Ee,qe,at,Ie(mt));return function go(we,ne){we.errorHandler&&(ne.errorHandler=we.errorHandler),we.malformedUriErrorHandler&&(ne.malformedUriErrorHandler=we.malformedUriErrorHandler),we.onSameUrlNavigation&&(ne.onSameUrlNavigation=we.onSameUrlNavigation),we.paramsInheritanceStrategy&&(ne.paramsInheritanceStrategy=we.paramsInheritanceStrategy),we.urlUpdateStrategy&&(ne.urlUpdateStrategy=we.urlUpdateStrategy),we.canceledNavigationResolution&&(ne.canceledNavigationResolution=we.canceledNavigationResolution)}(Wt,mn),mn}class Dr{constructor(ne,Ee,qe,at,mt,Wt,mn){this.rootComponentType=ne,this.urlSerializer=Ee,this.rootContexts=qe,this.location=at,this.config=mn,this.disposed=!1,this.currentPageId=0,this.isNgZoneEnabled=!1,this.errorHandler=Na,this.malformedUriErrorHandler=mo,this.navigated=!1,this.lastSuccessfulId=-1,this.afterPreactivation=()=>(0,_.of)(void 0),this.urlHandlingStrategy=(0,e.f3M)(Ka),this.routeReuseStrategy=(0,e.f3M)(Si),this.titleStrategy=(0,e.f3M)(oi),this.onSameUrlNavigation="ignore",this.paramsInheritanceStrategy="emptyOnly",this.urlUpdateStrategy="deferred",this.canceledNavigationResolution="replace",this.navigationTransitions=(0,e.f3M)(Sn),this.console=mt.get(e.c2e);const Dn=mt.get(e.R0b);this.isNgZoneEnabled=Dn instanceof e.R0b&&e.R0b.isInAngularZone(),this.resetConfig(mn),this.currentUrlTree=new it,this.rawUrlTree=this.currentUrlTree,this.browserUrlTree=this.currentUrlTree,this.routerState=ka(this.currentUrlTree,this.rootComponentType),this.navigationTransitions.setupNavigations(this).subscribe(Rn=>{this.lastSuccessfulId=Rn.id,this.currentPageId=Rn.targetPageId},Rn=>{this.console.warn(`Unhandled Navigation Error: ${Rn}`)})}get navigationId(){return this.navigationTransitions.navigationId}get browserPageId(){return this.location.getState()?.\u0275routerPageId}get events(){return this.navigationTransitions.events}resetRootComponentType(ne){this.rootComponentType=ne,this.routerState.root.component=this.rootComponentType}initialNavigation(){this.setUpLocationChangeListener(),this.navigationTransitions.hasRequestedNavigation||this.navigateByUrl(this.location.path(!0),{replaceUrl:!0})}setUpLocationChangeListener(){this.locationSubscription||(this.locationSubscription=this.location.subscribe(ne=>{const Ee="popstate"===ne.type?"popstate":"hashchange";"popstate"===Ee&&setTimeout(()=>{const qe={replaceUrl:!0},at=ne.state?.navigationId?ne.state:null;if(ne.state){const Wt={...ne.state};delete Wt.navigationId,delete Wt.\u0275routerPageId,0!==Object.keys(Wt).length&&(qe.state=Wt)}const mt=this.parseUrl(ne.url);this.scheduleNavigation(mt,Ee,at,qe)},0)}))}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return this.navigationTransitions.currentNavigation}resetConfig(ne){this.config=ne.map(yr),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(ne,Ee={}){const{relativeTo:qe,queryParams:at,fragment:mt,queryParamsHandling:Wt,preserveFragment:mn}=Ee,Dn=qe||this.routerState.root,Rn=mn?this.currentUrlTree.fragment:mt;let di=null;switch(Wt){case"merge":di={...this.currentUrlTree.queryParams,...at};break;case"preserve":di=this.currentUrlTree.queryParams;break;default:di=at||null}return null!==di&&(di=this.removeEmptyProps(di)),Vn(Dn,this.currentUrlTree,ne,di,Rn??null)}navigateByUrl(ne,Ee={skipLocationChange:!1}){const qe=He(ne)?ne:this.parseUrl(ne),at=this.urlHandlingStrategy.merge(qe,this.rawUrlTree);return this.scheduleNavigation(at,"imperative",null,Ee)}navigate(ne,Ee={skipLocationChange:!1}){return function lc(we){for(let ne=0;ne<we.length;ne++){const Ee=we[ne];if(null==Ee)throw new e.vHH(4008,false)}}(ne),this.navigateByUrl(this.createUrlTree(ne,Ee),Ee)}serializeUrl(ne){return this.urlSerializer.serialize(ne)}parseUrl(ne){let Ee;try{Ee=this.urlSerializer.parse(ne)}catch(qe){Ee=this.malformedUriErrorHandler(qe,this.urlSerializer,ne)}return Ee}isActive(ne,Ee){let qe;if(qe=!0===Ee?{...Er}:!1===Ee?{...bs}:Ee,He(ne))return ee(this.currentUrlTree,ne,qe);const at=this.parseUrl(ne);return ee(this.currentUrlTree,at,qe)}removeEmptyProps(ne){return Object.keys(ne).reduce((Ee,qe)=>{const at=ne[qe];return null!=at&&(Ee[qe]=at),Ee},{})}scheduleNavigation(ne,Ee,qe,at,mt){if(this.disposed)return Promise.resolve(!1);let Wt,mn,Dn,Rn;return mt?(Wt=mt.resolve,mn=mt.reject,Dn=mt.promise):Dn=new Promise((di,ta)=>{Wt=di,mn=ta}),"computed"===this.canceledNavigationResolution?(0===this.currentPageId&&(qe=this.location.getState()),Rn=qe&&qe.\u0275routerPageId?qe.\u0275routerPageId:at.replaceUrl||at.skipLocationChange?this.browserPageId??0:(this.browserPageId??0)+1):Rn=0,this.navigationTransitions.handleNavigationRequest({targetPageId:Rn,source:Ee,restoredState:qe,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,rawUrl:ne,extras:at,resolve:Wt,reject:mn,promise:Dn,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),Dn.catch(di=>Promise.reject(di))}setBrowserUrl(ne,Ee){const qe=this.urlSerializer.serialize(ne),at={...Ee.extras.state,...this.generateNgRouterState(Ee.id,Ee.targetPageId)};this.location.isCurrentPathEqualTo(qe)||Ee.extras.replaceUrl?this.location.replaceState(qe,"",at):this.location.go(qe,"",at)}restoreHistory(ne,Ee=!1){if("computed"===this.canceledNavigationResolution){const qe=this.currentPageId-ne.targetPageId;"popstate"!==ne.source&&"eager"!==this.urlUpdateStrategy&&this.currentUrlTree!==this.getCurrentNavigation()?.finalUrl||0===qe?this.currentUrlTree===this.getCurrentNavigation()?.finalUrl&&0===qe&&(this.resetState(ne),this.browserUrlTree=ne.currentUrlTree,this.resetUrlToCurrentUrlTree()):this.location.historyGo(qe)}else"replace"===this.canceledNavigationResolution&&(Ee&&this.resetState(ne),this.resetUrlToCurrentUrlTree())}resetState(ne){this.routerState=ne.currentRouterState,this.currentUrlTree=ne.currentUrlTree,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,ne.rawUrl)}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId))}generateNgRouterState(ne,Ee){return"computed"===this.canceledNavigationResolution?{navigationId:ne,\u0275routerPageId:Ee}:{navigationId:ne}}}Dr.\u0275fac=function(ne){e.$Z()},Dr.\u0275prov=e.Yz7({token:Dr,factory:function(){return hl()},providedIn:"root"});class fl{constructor(ne,Ee,qe,at,mt,Wt){this.router=ne,this.route=Ee,this.tabIndexAttribute=qe,this.renderer=at,this.el=mt,this.locationStrategy=Wt,this._preserveFragment=!1,this._skipLocationChange=!1,this._replaceUrl=!1,this.href=null,this.commands=null,this.onChanges=new z.x;const mn=mt.nativeElement.tagName;this.isAnchorElement="A"===mn||"AREA"===mn,this.isAnchorElement?this.subscription=ne.events.subscribe(Dn=>{Dn instanceof en&&this.updateHref()}):this.setTabIndexIfNotOnNativeEl("0")}set preserveFragment(ne){this._preserveFragment=(0,e.D6c)(ne)}get preserveFragment(){return this._preserveFragment}set skipLocationChange(ne){this._skipLocationChange=(0,e.D6c)(ne)}get skipLocationChange(){return this._skipLocationChange}set replaceUrl(ne){this._replaceUrl=(0,e.D6c)(ne)}get replaceUrl(){return this._replaceUrl}setTabIndexIfNotOnNativeEl(ne){null!=this.tabIndexAttribute||this.isAnchorElement||this.applyAttributeValue("tabindex",ne)}ngOnChanges(ne){this.isAnchorElement&&this.updateHref(),this.onChanges.next(this)}set routerLink(ne){null!=ne?(this.commands=Array.isArray(ne)?ne:[ne],this.setTabIndexIfNotOnNativeEl("0")):(this.commands=null,this.setTabIndexIfNotOnNativeEl(null))}onClick(ne,Ee,qe,at,mt){if(null===this.urlTree||this.isAnchorElement&&(0!==ne||Ee||qe||at||mt||"string"==typeof this.target&&"_self"!=this.target))return!0;const Wt={skipLocationChange:this.skipLocationChange,replaceUrl:this.replaceUrl,state:this.state};return this.router.navigateByUrl(this.urlTree,Wt),!this.isAnchorElement}ngOnDestroy(){this.subscription?.unsubscribe()}updateHref(){this.href=null!==this.urlTree&&this.locationStrategy?this.locationStrategy?.prepareExternalUrl(this.router.serializeUrl(this.urlTree)):null;const ne=null===this.href?null:(0,e.P3R)(this.href,this.el.nativeElement.tagName.toLowerCase(),"href");this.applyAttributeValue("href",ne)}applyAttributeValue(ne,Ee){const qe=this.renderer,at=this.el.nativeElement;null!==Ee?qe.setAttribute(at,ne,Ee):qe.removeAttribute(at,ne)}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})}}fl.\u0275fac=function(ne){return new(ne||fl)(e.Y36(Dr),e.Y36(Ha),e.$8M("tabindex"),e.Y36(e.Qsj),e.Y36(e.SBq),e.Y36(I.S$))},fl.\u0275dir=e.lG2({type:fl,selectors:[["","routerLink",""]],hostVars:1,hostBindings:function(ne,Ee){1&ne&&e.NdJ("click",function(at){return Ee.onClick(at.button,at.ctrlKey,at.shiftKey,at.altKey,at.metaKey)}),2&ne&&e.uIk("target",Ee.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:[e.TTD]});class pl{constructor(ne,Ee,qe,at,mt){this.router=ne,this.element=Ee,this.renderer=qe,this.cdr=at,this.link=mt,this.classes=[],this.isActive=!1,this.routerLinkActiveOptions={exact:!1},this.isActiveChange=new e.vpe,this.routerEventsSubscription=ne.events.subscribe(Wt=>{Wt instanceof en&&this.update()})}ngAfterContentInit(){(0,_.of)(this.links.changes,(0,_.of)(null)).pipe((0,N.J)()).subscribe(ne=>{this.update(),this.subscribeToEachLinkOnChanges()})}subscribeToEachLinkOnChanges(){this.linkInputChangesSubscription?.unsubscribe();const ne=[...this.links.toArray(),this.link].filter(Ee=>!!Ee).map(Ee=>Ee.onChanges);this.linkInputChangesSubscription=(0,t.D)(ne).pipe((0,N.J)()).subscribe(Ee=>{this.isActive!==this.isLinkActive(this.router)(Ee)&&this.update()})}set routerLinkActive(ne){const Ee=Array.isArray(ne)?ne:ne.split(" ");this.classes=Ee.filter(qe=>!!qe)}ngOnChanges(ne){this.update()}ngOnDestroy(){this.routerEventsSubscription.unsubscribe(),this.linkInputChangesSubscription?.unsubscribe()}update(){!this.links||!this.router.navigated||Promise.resolve().then(()=>{const ne=this.hasActiveLinks();this.isActive!==ne&&(this.isActive=ne,this.cdr.markForCheck(),this.classes.forEach(Ee=>{ne?this.renderer.addClass(this.element.nativeElement,Ee):this.renderer.removeClass(this.element.nativeElement,Ee)}),ne&&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(ne))})}isLinkActive(ne){const Ee=function S2(we){return!!we.paths}(this.routerLinkActiveOptions)?this.routerLinkActiveOptions:this.routerLinkActiveOptions.exact||!1;return qe=>!!qe.urlTree&&ne.isActive(qe.urlTree,Ee)}hasActiveLinks(){const ne=this.isLinkActive(this.router);return this.link&&ne(this.link)||this.links.some(ne)}}pl.\u0275fac=function(ne){return new(ne||pl)(e.Y36(Dr),e.Y36(e.SBq),e.Y36(e.Qsj),e.Y36(e.sBO),e.Y36(fl,8))},pl.\u0275dir=e.lG2({type:pl,selectors:[["","routerLinkActive",""]],contentQueries:function(ne,Ee,qe){if(1&ne&&e.Suo(qe,fl,5),2&ne){let at;e.iGM(at=e.CRH())&&(Ee.links=at)}},inputs:{routerLinkActiveOptions:"routerLinkActiveOptions",ariaCurrentWhenActive:"ariaCurrentWhenActive",routerLinkActive:"routerLinkActive"},outputs:{isActiveChange:"isActiveChange"},exportAs:["routerLinkActive"],standalone:!0,features:[e.TTD]});class S1{}class or{preload(ne,Ee){return Ee().pipe((0,$.K)(()=>(0,_.of)(null)))}}or.\u0275fac=function(ne){return new(ne||or)},or.\u0275prov=e.Yz7({token:or,factory:or.\u0275fac,providedIn:"root"});class _l{preload(ne,Ee){return(0,_.of)(null)}}_l.\u0275fac=function(ne){return new(ne||_l)},_l.\u0275prov=e.Yz7({token:_l,factory:_l.\u0275fac,providedIn:"root"});class Mo{constructor(ne,Ee,qe,at,mt){this.router=ne,this.injector=qe,this.preloadingStrategy=at,this.loader=mt}setUpPreloading(){this.subscription=this.router.events.pipe((0,ae.h)(ne=>ne instanceof en),(0,ye.b)(()=>this.preload())).subscribe(()=>{})}preload(){return this.processRoutes(this.injector,this.router.config)}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}processRoutes(ne,Ee){const qe=[];for(const at of Ee){at.providers&&!at._injector&&(at._injector=(0,e.MMx)(at.providers,ne,`Route: ${at.path}`));const mt=at._injector??ne,Wt=at._loadedInjector??mt;at.loadChildren&&!at._loadedRoutes&&void 0===at.canLoad||at.loadComponent&&!at._loadedComponent?qe.push(this.preloadConfig(mt,at)):(at.children||at._loadedRoutes)&&qe.push(this.processRoutes(Wt,at.children??at._loadedRoutes))}return(0,t.D)(qe).pipe((0,N.J)())}preloadConfig(ne,Ee){return this.preloadingStrategy.preload(Ee,()=>{let qe;qe=Ee.loadChildren&&void 0===Ee.canLoad?this.loader.loadChildren(ne,Ee):(0,_.of)(null);const at=qe.pipe((0,_e.z)(mt=>null===mt?(0,_.of)(void 0):(Ee._loadedRoutes=mt.routes,Ee._loadedInjector=mt.injector,this.processRoutes(mt.injector??ne,mt.routes))));if(Ee.loadComponent&&!Ee._loadedComponent){const mt=this.loader.loadComponent(Ee);return(0,t.D)([at,mt]).pipe((0,N.J)())}return at})}}Mo.\u0275fac=function(ne){return new(ne||Mo)(e.LFG(Dr),e.LFG(e.Sil),e.LFG(e.lqb),e.LFG(S1),e.LFG(Qt))},Mo.\u0275prov=e.Yz7({token:Mo,factory:Mo.\u0275fac,providedIn:"root"});const vo=new e.OlP("");class Bl{constructor(ne,Ee,qe,at,mt={}){this.urlSerializer=ne,this.transitions=Ee,this.viewportScroller=qe,this.zone=at,this.options=mt,this.lastId=0,this.lastSource="imperative",this.restoredId=0,this.store={},mt.scrollPositionRestoration=mt.scrollPositionRestoration||"disabled",mt.anchorScrolling=mt.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(ne=>{ne instanceof hn?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=ne.navigationTrigger,this.restoredId=ne.restoredState?ne.restoredState.navigationId:0):ne instanceof en&&(this.lastId=ne.id,this.scheduleScrollEvent(ne,this.urlSerializer.parse(ne.urlAfterRedirects).fragment))})}consumeScrollEvents(){return this.transitions.events.subscribe(ne=>{ne instanceof qn&&(ne.position?"top"===this.options.scrollPositionRestoration?this.viewportScroller.scrollToPosition([0,0]):"enabled"===this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition(ne.position):ne.anchor&&"enabled"===this.options.anchorScrolling?this.viewportScroller.scrollToAnchor(ne.anchor):"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition([0,0]))})}scheduleScrollEvent(ne,Ee){this.zone.runOutsideAngular(()=>{setTimeout(()=>{this.zone.run(()=>{this.transitions.events.next(new qn(ne,"popstate"===this.lastSource?this.store[this.restoredId]:null,Ee))})},0)})}ngOnDestroy(){this.routerEventsSubscription?.unsubscribe(),this.scrollEventsSubscription?.unsubscribe()}}Bl.\u0275fac=function(ne){e.$Z()},Bl.\u0275prov=e.Yz7({token:Bl,factory:Bl.\u0275fac});function P1(we){return we.routerState.root}function gl(we,ne){return{\u0275kind:we,\u0275providers:ne}}const cc=new e.OlP("",{providedIn:"root",factory:()=>!1});e.Xts;function io(){const we=(0,e.f3M)(e.zs3);return ne=>{const Ee=we.get(e.z2F);if(ne!==Ee.components[0])return;const qe=we.get(Dr),at=we.get(vl);1===we.get(dc)&&qe.initialNavigation(),we.get(Eo,null,e.XFs.Optional)?.setUpPreloading(),we.get(vo,null,e.XFs.Optional)?.init(),qe.resetRootComponentType(Ee.componentTypes[0]),at.closed||(at.next(),at.unsubscribe())}}const vl=new e.OlP("",{factory:()=>new z.x}),dc=new e.OlP("",{providedIn:"root",factory:()=>1});function R1(){return gl(2,[{provide:dc,useValue:0},{provide:e.ip1,multi:!0,deps:[e.zs3],useFactory:ne=>{const Ee=ne.get(I.V_,Promise.resolve());return()=>Ee.then(()=>new Promise(at=>{const mt=ne.get(Dr),Wt=ne.get(vl);(function qe(at){ne.get(Dr).events.pipe((0,ae.h)(Wt=>Wt instanceof en||Wt instanceof gn||Wt instanceof Qn),(0,W.U)(Wt=>Wt instanceof en||Wt instanceof gn&&(0===Wt.code||1===Wt.code)&&null),(0,ae.h)(Wt=>null!==Wt),(0,Q.q)(1)).subscribe(()=>{at()})})(()=>{at(!0)}),mt.afterPreactivation=()=>(at(!0),Wt.closed?(0,_.of)(void 0):Wt),mt.initialNavigation()}))}}])}const Eo=new e.OlP("");const yl=new e.OlP("ROUTER_FORROOT_GUARD"),Bo=[I.Ye,{provide:Xt,useClass:Gt},{provide:Dr,useFactory:hl},Ca,{provide:Ha,useFactory:P1,deps:[Dr]},Qt,[]];function ro(){return new e.PXZ("Router",Dr)}class Rs{constructor(ne){}static forRoot(ne,Ee){return{ngModule:Rs,providers:[Bo,[],{provide:Qe,multi:!0,useValue:ne},{provide:yl,useFactory:qo,deps:[[Dr,new e.FiY,new e.tp0]]},{provide:Mr,useValue:Ee||{}},Ee?.useHash?{provide:I.S$,useClass:I.Do}:{provide:I.S$,useClass:I.b0},{provide:vo,useFactory:()=>{const we=(0,e.f3M)(I.EM),ne=(0,e.f3M)(e.R0b),Ee=(0,e.f3M)(Mr),qe=(0,e.f3M)(Sn),at=(0,e.f3M)(Xt);return Ee.scrollOffset&&we.setOffset(Ee.scrollOffset),new Bl(at,qe,we,ne,Ee)}},Ee?.preloadingStrategy?(we=Ee.preloadingStrategy,gl(0,[{provide:Eo,useExisting:Mo},{provide:S1,useExisting:we}])).\u0275providers:[],{provide:e.PXZ,multi:!0,useFactory:ro},Ee?.initialNavigation?B1(Ee):[],[{provide:va,useFactory:io},{provide:e.tb,multi:!0,useExisting:va}]]};var we}static forChild(ne){return{ngModule:Rs,providers:[{provide:Qe,multi:!0,useValue:ne}]}}}function qo(we){return"guarded"}function B1(we){return["disabled"===we.initialNavigation?gl(3,[{provide:e.ip1,multi:!0,useFactory:()=>{const ne=(0,e.f3M)(Dr);return()=>{ne.setUpLocationChangeListener()}}},{provide:dc,useValue:2}]).\u0275providers:[],"enabledBlocking"===we.initialNavigation?R1().\u0275providers:[]]}Rs.\u0275fac=function(ne){return new(ne||Rs)(e.LFG(yl,8))},Rs.\u0275mod=e.oAB({type:Rs}),Rs.\u0275inj=e.cJS({imports:[nr]});const va=new e.OlP("");new e.GfV("15.0.2")},3505:(Ue,q,m)=>{"use strict";m.d(q,{BN:()=>Ne,uH:()=>Un});var e=m(2560);function t(Xe,rt){var yt=Object.keys(Xe);if(Object.getOwnPropertySymbols){var Pt=Object.getOwnPropertySymbols(Xe);rt&&(Pt=Pt.filter(function(Qe){return Object.getOwnPropertyDescriptor(Xe,Qe).enumerable})),yt.push.apply(yt,Pt)}return yt}function _(Xe){for(var rt=1;rt<arguments.length;rt++){var yt=null!=arguments[rt]?arguments[rt]:{};rt%2?t(Object(yt),!0).forEach(function(Pt){p(Xe,Pt,yt[Pt])}):Object.getOwnPropertyDescriptors?Object.defineProperties(Xe,Object.getOwnPropertyDescriptors(yt)):t(Object(yt)).forEach(function(Pt){Object.defineProperty(Xe,Pt,Object.getOwnPropertyDescriptor(yt,Pt))})}return Xe}function E(Xe){return(E="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(rt){return typeof rt}:function(rt){return rt&&"function"==typeof Symbol&&rt.constructor===Symbol&&rt!==Symbol.prototype?"symbol":typeof rt})(Xe)}function u(Xe,rt){for(var yt=0;yt<rt.length;yt++){var Pt=rt[yt];Pt.enumerable=Pt.enumerable||!1,Pt.configurable=!0,"value"in Pt&&(Pt.writable=!0),Object.defineProperty(Xe,Pt.key,Pt)}}function p(Xe,rt,yt){return rt in Xe?Object.defineProperty(Xe,rt,{value:yt,enumerable:!0,configurable:!0,writable:!0}):Xe[rt]=yt,Xe}function P(Xe,rt){return function I(Xe){if(Array.isArray(Xe))return Xe}(Xe)||function Z(Xe,rt){var yt=null==Xe?null:typeof Symbol<"u"&&Xe[Symbol.iterator]||Xe["@@iterator"];if(null!=yt){var sn,qt,Pt=[],Qe=!0,Qt=!1;try{for(yt=yt.call(Xe);!(Qe=(sn=yt.next()).done)&&(Pt.push(sn.value),!rt||Pt.length!==rt);Qe=!0);}catch(An){Qt=!0,qt=An}finally{try{!Qe&&null!=yt.return&&yt.return()}finally{if(Qt)throw qt}}return Pt}}(Xe,rt)||Q(Xe,rt)||function _e(){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 M(Xe){return function z(Xe){if(Array.isArray(Xe))return ie(Xe)}(Xe)||function W(Xe){if(typeof Symbol<"u"&&null!=Xe[Symbol.iterator]||null!=Xe["@@iterator"])return Array.from(Xe)}(Xe)||Q(Xe)||function ae(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Q(Xe,rt){if(Xe){if("string"==typeof Xe)return ie(Xe,rt);var yt=Object.prototype.toString.call(Xe).slice(8,-1);if("Object"===yt&&Xe.constructor&&(yt=Xe.constructor.name),"Map"===yt||"Set"===yt)return Array.from(Xe);if("Arguments"===yt||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(yt))return ie(Xe,rt)}}function ie(Xe,rt){(null==rt||rt>Xe.length)&&(rt=Xe.length);for(var yt=0,Pt=new Array(rt);yt<rt;yt++)Pt[yt]=Xe[yt];return Pt}var ce=function(){},ye={},ue={},$=null,he={mark:ce,measure:ce};try{typeof window<"u"&&(ye=window),typeof document<"u"&&(ue=document),typeof MutationObserver<"u"&&($=MutationObserver),typeof performance<"u"&&(he=performance)}catch{}var C,N,F,X,Fe,n=(ye.navigator||{}).userAgent,o=void 0===n?"":n,h=ye,d=ue,y=$,L=he,v=(h.document,!!d.documentElement&&!!d.head&&"function"==typeof d.addEventListener&&"function"==typeof d.createElement),a=~o.indexOf("MSIE")||~o.indexOf("Trident/"),ke="___FONT_AWESOME___",Ve="svg-inline--fa",xe="data-fa-i2svg",Ze="data-fa-pseudo-element",ve="data-prefix",et="data-icon",ht="fontawesome-i2svg",Ae=["HTML","HEAD","STYLE","SCRIPT"],te=function(){try{return!0}catch{return!1}}(),pe="classic",ee="sharp",H=[pe,ee];function j(Xe){return new Proxy(Xe,{get:function(yt,Pt){return Pt in yt?yt[Pt]:yt[pe]}})}var Oe=j((p(C={},pe,{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"}),p(C,ee,{fa:"solid",fass:"solid","fa-solid":"solid"}),C)),Re=j((p(N={},pe,{solid:"fas",regular:"far",light:"fal",thin:"fat",duotone:"fad",brands:"fab",kit:"fak"}),p(N,ee,{solid:"fass"}),N)),le=j((p(F={},pe,{fab:"fa-brands",fad:"fa-duotone",fak:"fa-kit",fal:"fa-light",far:"fa-regular",fas:"fa-solid",fat:"fa-thin"}),p(F,ee,{fass:"fa-solid"}),F)),_t=j((p(X={},pe,{"fa-brands":"fab","fa-duotone":"fad","fa-kit":"fak","fa-light":"fal","fa-regular":"far","fa-solid":"fas","fa-thin":"fat"}),p(X,ee,{"fa-solid":"fass"}),X)),it=/fa(s|r|l|t|d|b|k|ss)?[\-\ ]/,Ct="fa-layers-text",un=/Font ?Awesome ?([56 ]*)(Solid|Regular|Light|Thin|Duotone|Brands|Free|Pro|Sharp|Kit)?.*/i,Bt=j((p(Fe={},pe,{900:"fas",400:"far",normal:"far",300:"fal",100:"fat"}),p(Fe,ee,{900:"fass"}),Fe)),Ut=[1,2,3,4,5,6,7,8,9,10],yn=Ut.concat([11,12,13,14,15,16,17,18,19,20]),Xt=["class","data-prefix","data-icon","data-fa-transform","data-fa-mask"],Gt_GROUP="duotone-group",Gt_SWAP_OPACITY="swap-opacity",Gt_PRIMARY="primary",Gt_SECONDARY="secondary",In=new Set;Object.keys(Re[pe]).map(In.add.bind(In)),Object.keys(Re[ee]).map(In.add.bind(In));var rn=[].concat(H,M(In),["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",Gt_GROUP,Gt_SWAP_OPACITY,Gt_PRIMARY,Gt_SECONDARY]).concat(Ut.map(function(Xe){return"".concat(Xe,"x")})).concat(yn.map(function(Xe){return"w-".concat(Xe)})),tn=h.FontAwesomeConfig||{};if(d&&"function"==typeof d.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(Xe){var rt=P(Xe,2),yt=rt[0],Pt=rt[1],Qe=function tt(Xe){return""===Xe||"false"!==Xe&&("true"===Xe||Xe)}(function pn(Xe){var rt=d.querySelector("script["+Xe+"]");if(rt)return rt.getAttribute(Xe)}(yt));null!=Qe&&(tn[Pt]=Qe)})}var dt={styleDefault:"solid",familyDefault:"classic",cssPrefix:"fa",replacementClass:Ve,autoReplaceSvg:!0,autoAddCss:!0,autoA11y:!0,searchPseudoElements:!1,observeMutations:!0,mutateApproach:"async",keepOriginalSource:!0,measurePerformance:!1,showMissingIcons:!0};tn.familyPrefix&&(tn.cssPrefix=tn.familyPrefix);var se=_(_({},dt),tn);se.autoReplaceSvg||(se.observeMutations=!1);var J={};Object.keys(dt).forEach(function(Xe){Object.defineProperty(J,Xe,{enumerable:!0,set:function(yt){se[Xe]=yt,oe.forEach(function(Pt){return Pt(J)})},get:function(){return se[Xe]}})}),Object.defineProperty(J,"familyPrefix",{enumerable:!0,set:function(rt){se.cssPrefix=rt,oe.forEach(function(yt){return yt(J)})},get:function(){return se.cssPrefix}}),h.FontAwesomeConfig=J;var oe=[];var Dt={size:16,x:0,y:0,rotate:0,flipX:!1,flipY:!1};function Me(){for(var Xe=12,rt="";Xe-- >0;)rt+="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ"[62*Math.random()|0];return rt}function Ce(Xe){for(var rt=[],yt=(Xe||[]).length>>>0;yt--;)rt[yt]=Xe[yt];return rt}function Je(Xe){return Xe.classList?Ce(Xe.classList):(Xe.getAttribute("class")||"").split(" ").filter(function(rt){return rt})}function zt(Xe){return"".concat(Xe).replace(/&/g,"&amp;").replace(/"/g,"&quot;").replace(/'/g,"&#39;").replace(/</g,"&lt;").replace(/>/g,"&gt;")}function Tt(Xe){return Object.keys(Xe||{}).reduce(function(rt,yt){return rt+"".concat(yt,": ").concat(Xe[yt].trim(),";")},"")}function Ht(Xe){return Xe.size!==Dt.size||Xe.x!==Dt.x||Xe.y!==Dt.y||Xe.rotate!==Dt.rotate||Xe.flipX||Xe.flipY}function Rt(){var rt=Ve,yt=J.cssPrefix,Pt=J.replacementClass,Qe=':root, :host {\n --fa-font-solid: normal 900 1em/1 "Font Awesome 6 Solid";\n --fa-font-regular: normal 400 1em/1 "Font Awesome 6 Regular";\n --fa-font-light: normal 300 1em/1 "Font Awesome 6 Light";\n --fa-font-thin: normal 100 1em/1 "Font Awesome 6 Thin";\n --fa-font-duotone: normal 900 1em/1 "Font Awesome 6 Duotone";\n --fa-font-sharp-solid: normal 900 1em/1 "Font Awesome 6 Sharp";\n --fa-font-brands: normal 400 1em/1 "Font Awesome 6 Brands";\n}\n\nsvg:not(:root).svg-inline--fa, svg:not(:host).svg-inline--fa {\n overflow: visible;\n box-sizing: content-box;\n}\n\n.svg-inline--fa {\n display: var(--fa-display, inline-block);\n height: 1em;\n overflow: visible;\n vertical-align: -0.125em;\n}\n.svg-inline--fa.fa-2xs {\n vertical-align: 0.1em;\n}\n.svg-inline--fa.fa-xs {\n vertical-align: 0em;\n}\n.svg-inline--fa.fa-sm {\n vertical-align: -0.0714285705em;\n}\n.svg-inline--fa.fa-lg {\n vertical-align: -0.2em;\n}\n.svg-inline--fa.fa-xl {\n vertical-align: -0.25em;\n}\n.svg-inline--fa.fa-2xl {\n vertical-align: -0.3125em;\n}\n.svg-inline--fa.fa-pull-left {\n margin-right: var(--fa-pull-margin, 0.3em);\n width: auto;\n}\n.svg-inline--fa.fa-pull-right {\n margin-left: var(--fa-pull-margin, 0.3em);\n width: auto;\n}\n.svg-inline--fa.fa-li {\n width: var(--fa-li-width, 2em);\n top: 0.25em;\n}\n.svg-inline--fa.fa-fw {\n width: var(--fa-fw-width, 1.25em);\n}\n\n.fa-layers svg.svg-inline--fa {\n bottom: 0;\n left: 0;\n margin: auto;\n position: absolute;\n right: 0;\n top: 0;\n}\n\n.fa-layers-counter, .fa-layers-text {\n display: inline-block;\n position: absolute;\n text-align: center;\n}\n\n.fa-layers {\n display: inline-block;\n height: 1em;\n position: relative;\n text-align: center;\n vertical-align: -0.125em;\n width: 1em;\n}\n.fa-layers svg.svg-inline--fa {\n -webkit-transform-origin: center center;\n transform-origin: center center;\n}\n\n.fa-layers-text {\n left: 50%;\n top: 50%;\n -webkit-transform: translate(-50%, -50%);\n transform: translate(-50%, -50%);\n -webkit-transform-origin: center center;\n transform-origin: center center;\n}\n\n.fa-layers-counter {\n background-color: var(--fa-counter-background-color, #ff253a);\n border-radius: var(--fa-counter-border-radius, 1em);\n box-sizing: border-box;\n color: var(--fa-inverse, #fff);\n line-height: var(--fa-counter-line-height, 1);\n max-width: var(--fa-counter-max-width, 5em);\n min-width: var(--fa-counter-min-width, 1.5em);\n overflow: hidden;\n padding: var(--fa-counter-padding, 0.25em 0.5em);\n right: var(--fa-right, 0);\n text-overflow: ellipsis;\n top: var(--fa-top, 0);\n -webkit-transform: scale(var(--fa-counter-scale, 0.25));\n transform: scale(var(--fa-counter-scale, 0.25));\n -webkit-transform-origin: top right;\n transform-origin: top right;\n}\n\n.fa-layers-bottom-right {\n bottom: var(--fa-bottom, 0);\n right: var(--fa-right, 0);\n top: auto;\n -webkit-transform: scale(var(--fa-layers-scale, 0.25));\n transform: scale(var(--fa-layers-scale, 0.25));\n -webkit-transform-origin: bottom right;\n transform-origin: bottom right;\n}\n\n.fa-layers-bottom-left {\n bottom: var(--fa-bottom, 0);\n left: var(--fa-left, 0);\n right: auto;\n top: auto;\n -webkit-transform: scale(var(--fa-layers-scale, 0.25));\n transform: scale(var(--fa-layers-scale, 0.25));\n -webkit-transform-origin: bottom left;\n transform-origin: bottom left;\n}\n\n.fa-layers-top-right {\n top: var(--fa-top, 0);\n right: var(--fa-right, 0);\n -webkit-transform: scale(var(--fa-layers-scale, 0.25));\n transform: scale(var(--fa-layers-scale, 0.25));\n -webkit-transform-origin: top right;\n transform-origin: top right;\n}\n\n.fa-layers-top-left {\n left: var(--fa-left, 0);\n right: auto;\n top: var(--fa-top, 0);\n -webkit-transform: scale(var(--fa-layers-scale, 0.25));\n transform: scale(var(--fa-layers-scale, 0.25));\n -webkit-transform-origin: top left;\n transform-origin: top left;\n}\n\n.fa-1x {\n font-size: 1em;\n}\n\n.fa-2x {\n font-size: 2em;\n}\n\n.fa-3x {\n font-size: 3em;\n}\n\n.fa-4x {\n font-size: 4em;\n}\n\n.fa-5x {\n font-size: 5em;\n}\n\n.fa-6x {\n font-size: 6em;\n}\n\n.fa-7x {\n font-size: 7em;\n}\n\n.fa-8x {\n font-size: 8em;\n}\n\n.fa-9x {\n font-size: 9em;\n}\n\n.fa-10x {\n font-size: 10em;\n}\n\n.fa-2xs {\n font-size: 0.625em;\n line-height: 0.1em;\n vertical-align: 0.225em;\n}\n\n.fa-xs {\n font-size: 0.75em;\n line-height: 0.0833333337em;\n vertical-align: 0.125em;\n}\n\n.fa-sm {\n font-size: 0.875em;\n line-height: 0.0714285718em;\n vertical-align: 0.0535714295em;\n}\n\n.fa-lg {\n font-size: 1.25em;\n line-height: 0.05em;\n vertical-align: -0.075em;\n}\n\n.fa-xl {\n font-size: 1.5em;\n line-height: 0.0416666682em;\n vertical-align: -0.125em;\n}\n\n.fa-2xl {\n font-size: 2em;\n line-height: 0.03125em;\n vertical-align: -0.1875em;\n}\n\n.fa-fw {\n text-align: center;\n width: 1.25em;\n}\n\n.fa-ul {\n list-style-type: none;\n margin-left: var(--fa-li-margin, 2.5em);\n padding-left: 0;\n}\n.fa-ul > li {\n position: relative;\n}\n\n.fa-li {\n left: calc(var(--fa-li-width, 2em) * -1);\n position: absolute;\n text-align: center;\n width: var(--fa-li-width, 2em);\n line-height: inherit;\n}\n\n.fa-border {\n border-color: var(--fa-border-color, #eee);\n border-radius: var(--fa-border-radius, 0.1em);\n border-style: var(--fa-border-style, solid);\n border-width: var(--fa-border-width, 0.08em);\n padding: var(--fa-border-padding, 0.2em 0.25em 0.15em);\n}\n\n.fa-pull-left {\n float: left;\n margin-right: var(--fa-pull-margin, 0.3em);\n}\n\n.fa-pull-right {\n float: right;\n margin-left: var(--fa-pull-margin, 0.3em);\n}\n\n.fa-beat {\n -webkit-animation-name: fa-beat;\n animation-name: fa-beat;\n -webkit-animation-delay: var(--fa-animation-delay, 0s);\n animation-delay: var(--fa-animation-delay, 0s);\n -webkit-animation-direction: var(--fa-animation-direction, normal);\n animation-direction: var(--fa-animation-direction, normal);\n -webkit-animation-duration: var(--fa-animation-duration, 1s);\n animation-duration: var(--fa-animation-duration, 1s);\n -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n -webkit-animation-timing-function: var(--fa-animation-timing, ease-in-out);\n animation-timing-function: var(--fa-animation-timing, ease-in-out);\n}\n\n.fa-bounce {\n -webkit-animation-name: fa-bounce;\n animation-name: fa-bounce;\n -webkit-animation-delay: var(--fa-animation-delay, 0s);\n animation-delay: var(--fa-animation-delay, 0s);\n -webkit-animation-direction: var(--fa-animation-direction, normal);\n animation-direction: var(--fa-animation-direction, normal);\n -webkit-animation-duration: var(--fa-animation-duration, 1s);\n animation-duration: var(--fa-animation-duration, 1s);\n -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n -webkit-animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.28, 0.84, 0.42, 1));\n animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.28, 0.84, 0.42, 1));\n}\n\n.fa-fade {\n -webkit-animation-name: fa-fade;\n animation-name: fa-fade;\n -webkit-animation-delay: var(--fa-animation-delay, 0s);\n animation-delay: var(--fa-animation-delay, 0s);\n -webkit-animation-direction: var(--fa-animation-direction, normal);\n animation-direction: var(--fa-animation-direction, normal);\n -webkit-animation-duration: var(--fa-animation-duration, 1s);\n animation-duration: var(--fa-animation-duration, 1s);\n -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n -webkit-animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.4, 0, 0.6, 1));\n animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.4, 0, 0.6, 1));\n}\n\n.fa-beat-fade {\n -webkit-animation-name: fa-beat-fade;\n animation-name: fa-beat-fade;\n -webkit-animation-delay: var(--fa-animation-delay, 0s);\n animation-delay: var(--fa-animation-delay, 0s);\n -webkit-animation-direction: var(--fa-animation-direction, normal);\n animation-direction: var(--fa-animation-direction, normal);\n -webkit-animation-duration: var(--fa-animation-duration, 1s);\n animation-duration: var(--fa-animation-duration, 1s);\n -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n -webkit-animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.4, 0, 0.6, 1));\n animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.4, 0, 0.6, 1));\n}\n\n.fa-flip {\n -webkit-animation-name: fa-flip;\n animation-name: fa-flip;\n -webkit-animation-delay: var(--fa-animation-delay, 0s);\n animation-delay: var(--fa-animation-delay, 0s);\n -webkit-animation-direction: var(--fa-animation-direction, normal);\n animation-direction: var(--fa-animation-direction, normal);\n -webkit-animation-duration: var(--fa-animation-duration, 1s);\n animation-duration: var(--fa-animation-duration, 1s);\n -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n -webkit-animation-timing-function: var(--fa-animation-timing, ease-in-out);\n animation-timing-function: var(--fa-animation-timing, ease-in-out);\n}\n\n.fa-shake {\n -webkit-animation-name: fa-shake;\n animation-name: fa-shake;\n -webkit-animation-delay: var(--fa-animation-delay, 0s);\n animation-delay: var(--fa-animation-delay, 0s);\n -webkit-animation-direction: var(--fa-animation-direction, normal);\n animation-direction: var(--fa-animation-direction, normal);\n -webkit-animation-duration: var(--fa-animation-duration, 1s);\n animation-duration: var(--fa-animation-duration, 1s);\n -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n -webkit-animation-timing-function: var(--fa-animation-timing, linear);\n animation-timing-function: var(--fa-animation-timing, linear);\n}\n\n.fa-spin {\n -webkit-animation-name: fa-spin;\n animation-name: fa-spin;\n -webkit-animation-delay: var(--fa-animation-delay, 0s);\n animation-delay: var(--fa-animation-delay, 0s);\n -webkit-animation-direction: var(--fa-animation-direction, normal);\n animation-direction: var(--fa-animation-direction, normal);\n -webkit-animation-duration: var(--fa-animation-duration, 2s);\n animation-duration: var(--fa-animation-duration, 2s);\n -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n -webkit-animation-timing-function: var(--fa-animation-timing, linear);\n animation-timing-function: var(--fa-animation-timing, linear);\n}\n\n.fa-spin-reverse {\n --fa-animation-direction: reverse;\n}\n\n.fa-pulse,\n.fa-spin-pulse {\n -webkit-animation-name: fa-spin;\n animation-name: fa-spin;\n -webkit-animation-direction: var(--fa-animation-direction, normal);\n animation-direction: var(--fa-animation-direction, normal);\n -webkit-animation-duration: var(--fa-animation-duration, 1s);\n animation-duration: var(--fa-animation-duration, 1s);\n -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n -webkit-animation-timing-function: var(--fa-animation-timing, steps(8));\n animation-timing-function: var(--fa-animation-timing, steps(8));\n}\n\n@media (prefers-reduced-motion: reduce) {\n .fa-beat,\n.fa-bounce,\n.fa-fade,\n.fa-beat-fade,\n.fa-flip,\n.fa-pulse,\n.fa-shake,\n.fa-spin,\n.fa-spin-pulse {\n -webkit-animation-delay: -1ms;\n animation-delay: -1ms;\n -webkit-animation-duration: 1ms;\n animation-duration: 1ms;\n -webkit-animation-iteration-count: 1;\n animation-iteration-count: 1;\n transition-delay: 0s;\n transition-duration: 0s;\n }\n}\n@-webkit-keyframes fa-beat {\n 0%, 90% {\n -webkit-transform: scale(1);\n transform: scale(1);\n }\n 45% {\n -webkit-transform: scale(var(--fa-beat-scale, 1.25));\n transform: scale(var(--fa-beat-scale, 1.25));\n }\n}\n@keyframes fa-beat {\n 0%, 90% {\n -webkit-transform: scale(1);\n transform: scale(1);\n }\n 45% {\n -webkit-transform: scale(var(--fa-beat-scale, 1.25));\n transform: scale(var(--fa-beat-scale, 1.25));\n }\n}\n@-webkit-keyframes fa-bounce {\n 0% {\n -webkit-transform: scale(1, 1) translateY(0);\n transform: scale(1, 1) translateY(0);\n }\n 10% {\n -webkit-transform: scale(var(--fa-bounce-start-scale-x, 1.1), var(--fa-bounce-start-scale-y, 0.9)) translateY(0);\n transform: scale(var(--fa-bounce-start-scale-x, 1.1), var(--fa-bounce-start-scale-y, 0.9)) translateY(0);\n }\n 30% {\n -webkit-transform: scale(var(--fa-bounce-jump-scale-x, 0.9), var(--fa-bounce-jump-scale-y, 1.1)) translateY(var(--fa-bounce-height, -0.5em));\n transform: scale(var(--fa-bounce-jump-scale-x, 0.9), var(--fa-bounce-jump-scale-y, 1.1)) translateY(var(--fa-bounce-height, -0.5em));\n }\n 50% {\n -webkit-transform: scale(var(--fa-bounce-land-scale-x, 1.05), var(--fa-bounce-land-scale-y, 0.95)) translateY(0);\n transform: scale(var(--fa-bounce-land-scale-x, 1.05), var(--fa-bounce-land-scale-y, 0.95)) translateY(0);\n }\n 57% {\n -webkit-transform: scale(1, 1) translateY(var(--fa-bounce-rebound, -0.125em));\n transform: scale(1, 1) translateY(var(--fa-bounce-rebound, -0.125em));\n }\n 64% {\n -webkit-transform: scale(1, 1) translateY(0);\n transform: scale(1, 1) translateY(0);\n }\n 100% {\n -webkit-transform: scale(1, 1) translateY(0);\n transform: scale(1, 1) translateY(0);\n }\n}\n@keyframes fa-bounce {\n 0% {\n -webkit-transform: scale(1, 1) translateY(0);\n transform: scale(1, 1) translateY(0);\n }\n 10% {\n -webkit-transform: scale(var(--fa-bounce-start-scale-x, 1.1), var(--fa-bounce-start-scale-y, 0.9)) translateY(0);\n transform: scale(var(--fa-bounce-start-scale-x, 1.1), var(--fa-bounce-start-scale-y, 0.9)) translateY(0);\n }\n 30% {\n -webkit-transform: scale(var(--fa-bounce-jump-scale-x, 0.9), var(--fa-bounce-jump-scale-y, 1.1)) translateY(var(--fa-bounce-height, -0.5em));\n transform: scale(var(--fa-bounce-jump-scale-x, 0.9), var(--fa-bounce-jump-scale-y, 1.1)) translateY(var(--fa-bounce-height, -0.5em));\n }\n 50% {\n -webkit-transform: scale(var(--fa-bounce-land-scale-x, 1.05), var(--fa-bounce-land-scale-y, 0.95)) translateY(0);\n transform: scale(var(--fa-bounce-land-scale-x, 1.05), var(--fa-bounce-land-scale-y, 0.95)) translateY(0);\n }\n 57% {\n -webkit-transform: scale(1, 1) translateY(var(--fa-bounce-rebound, -0.125em));\n transform: scale(1, 1) translateY(var(--fa-bounce-rebound, -0.125em));\n }\n 64% {\n -webkit-transform: scale(1, 1) translateY(0);\n transform: scale(1, 1) translateY(0);\n }\n 100% {\n -webkit-transform: scale(1, 1) translateY(0);\n transform: scale(1, 1) translateY(0);\n }\n}\n@-webkit-keyframes fa-fade {\n 50% {\n opacity: var(--fa-fade-opacity, 0.4);\n }\n}\n@keyframes fa-fade {\n 50% {\n opacity: var(--fa-fade-opacity, 0.4);\n }\n}\n@-webkit-keyframes fa-beat-fade {\n 0%, 100% {\n opacity: var(--fa-beat-fade-opacity, 0.4);\n -webkit-transform: scale(1);\n transform: scale(1);\n }\n 50% {\n opacity: 1;\n -webkit-transform: scale(var(--fa-beat-fade-scale, 1.125));\n transform: scale(var(--fa-beat-fade-scale, 1.125));\n }\n}\n@keyframes fa-beat-fade {\n 0%, 100% {\n opacity: var(--fa-beat-fade-opacity, 0.4);\n -webkit-transform: scale(1);\n transform: scale(1);\n }\n 50% {\n opacity: 1;\n -webkit-transform: scale(var(--fa-beat-fade-scale, 1.125));\n transform: scale(var(--fa-beat-fade-scale, 1.125));\n }\n}\n@-webkit-keyframes fa-flip {\n 50% {\n -webkit-transform: rotate3d(var(--fa-flip-x, 0), var(--fa-flip-y, 1), var(--fa-flip-z, 0), var(--fa-flip-angle, -180deg));\n transform: rotate3d(var(--fa-flip-x, 0), var(--fa-flip-y, 1), var(--fa-flip-z, 0), var(--fa-flip-angle, -180deg));\n }\n}\n@keyframes fa-flip {\n 50% {\n -webkit-transform: rotate3d(var(--fa-flip-x, 0), var(--fa-flip-y, 1), var(--fa-flip-z, 0), var(--fa-flip-angle, -180deg));\n transform: rotate3d(var(--fa-flip-x, 0), var(--fa-flip-y, 1), var(--fa-flip-z, 0), var(--fa-flip-angle, -180deg));\n }\n}\n@-webkit-keyframes fa-shake {\n 0% {\n -webkit-transform: rotate(-15deg);\n transform: rotate(-15deg);\n }\n 4% {\n -webkit-transform: rotate(15deg);\n transform: rotate(15deg);\n }\n 8%, 24% {\n -webkit-transform: rotate(-18deg);\n transform: rotate(-18deg);\n }\n 12%, 28% {\n -webkit-transform: rotate(18deg);\n transform: rotate(18deg);\n }\n 16% {\n -webkit-transform: rotate(-22deg);\n transform: rotate(-22deg);\n }\n 20% {\n -webkit-transform: rotate(22deg);\n transform: rotate(22deg);\n }\n 32% {\n -webkit-transform: rotate(-12deg);\n transform: rotate(-12deg);\n }\n 36% {\n -webkit-transform: rotate(12deg);\n transform: rotate(12deg);\n }\n 40%, 100% {\n -webkit-transform: rotate(0deg);\n transform: rotate(0deg);\n }\n}\n@keyframes fa-shake {\n 0% {\n -webkit-transform: rotate(-15deg);\n transform: rotate(-15deg);\n }\n 4% {\n -webkit-transform: rotate(15deg);\n transform: rotate(15deg);\n }\n 8%, 24% {\n -webkit-transform: rotate(-18deg);\n transform: rotate(-18deg);\n }\n 12%, 28% {\n -webkit-transform: rotate(18deg);\n transform: rotate(18deg);\n }\n 16% {\n -webkit-transform: rotate(-22deg);\n transform: rotate(-22deg);\n }\n 20% {\n -webkit-transform: rotate(22deg);\n transform: rotate(22deg);\n }\n 32% {\n -webkit-transform: rotate(-12deg);\n transform: rotate(-12deg);\n }\n 36% {\n -webkit-transform: rotate(12deg);\n transform: rotate(12deg);\n }\n 40%, 100% {\n -webkit-transform: rotate(0deg);\n transform: rotate(0deg);\n }\n}\n@-webkit-keyframes fa-spin {\n 0% {\n -webkit-transform: rotate(0deg);\n transform: rotate(0deg);\n }\n 100% {\n -webkit-transform: rotate(360deg);\n transform: rotate(360deg);\n }\n}\n@keyframes fa-spin {\n 0% {\n -webkit-transform: rotate(0deg);\n transform: rotate(0deg);\n }\n 100% {\n -webkit-transform: rotate(360deg);\n transform: rotate(360deg);\n }\n}\n.fa-rotate-90 {\n -webkit-transform: rotate(90deg);\n transform: rotate(90deg);\n}\n\n.fa-rotate-180 {\n -webkit-transform: rotate(180deg);\n transform: rotate(180deg);\n}\n\n.fa-rotate-270 {\n -webkit-transform: rotate(270deg);\n transform: rotate(270deg);\n}\n\n.fa-flip-horizontal {\n -webkit-transform: scale(-1, 1);\n transform: scale(-1, 1);\n}\n\n.fa-flip-vertical {\n -webkit-transform: scale(1, -1);\n transform: scale(1, -1);\n}\n\n.fa-flip-both,\n.fa-flip-horizontal.fa-flip-vertical {\n -webkit-transform: scale(-1, -1);\n transform: scale(-1, -1);\n}\n\n.fa-rotate-by {\n -webkit-transform: rotate(var(--fa-rotate-angle, none));\n transform: rotate(var(--fa-rotate-angle, none));\n}\n\n.fa-stack {\n display: inline-block;\n vertical-align: middle;\n height: 2em;\n position: relative;\n width: 2.5em;\n}\n\n.fa-stack-1x,\n.fa-stack-2x {\n bottom: 0;\n left: 0;\n margin: auto;\n position: absolute;\n right: 0;\n top: 0;\n z-index: var(--fa-stack-z-index, auto);\n}\n\n.svg-inline--fa.fa-stack-1x {\n height: 1em;\n width: 1.25em;\n}\n.svg-inline--fa.fa-stack-2x {\n height: 2em;\n width: 2.5em;\n}\n\n.fa-inverse {\n color: var(--fa-inverse, #fff);\n}\n\n.sr-only,\n.fa-sr-only {\n position: absolute;\n width: 1px;\n height: 1px;\n padding: 0;\n margin: -1px;\n overflow: hidden;\n clip: rect(0, 0, 0, 0);\n white-space: nowrap;\n border-width: 0;\n}\n\n.sr-only-focusable:not(:focus),\n.fa-sr-only-focusable:not(:focus) {\n position: absolute;\n width: 1px;\n height: 1px;\n padding: 0;\n margin: -1px;\n overflow: hidden;\n clip: rect(0, 0, 0, 0);\n white-space: nowrap;\n border-width: 0;\n}\n\n.svg-inline--fa .fa-primary {\n fill: var(--fa-primary-color, currentColor);\n opacity: var(--fa-primary-opacity, 1);\n}\n\n.svg-inline--fa .fa-secondary {\n fill: var(--fa-secondary-color, currentColor);\n opacity: var(--fa-secondary-opacity, 0.4);\n}\n\n.svg-inline--fa.fa-swap-opacity .fa-primary {\n opacity: var(--fa-secondary-opacity, 0.4);\n}\n\n.svg-inline--fa.fa-swap-opacity .fa-secondary {\n opacity: var(--fa-primary-opacity, 1);\n}\n\n.svg-inline--fa mask .fa-primary,\n.svg-inline--fa mask .fa-secondary {\n fill: black;\n}\n\n.fad.fa-inverse,\n.fa-duotone.fa-inverse {\n color: var(--fa-inverse, #fff);\n}';if("fa"!==yt||Pt!==rt){var Qt=new RegExp("\\.".concat("fa","\\-"),"g"),sn=new RegExp("\\--".concat("fa","\\-"),"g"),qt=new RegExp("\\.".concat(rt),"g");Qe=Qe.replace(Qt,".".concat(yt,"-")).replace(sn,"--".concat(yt,"-")).replace(qt,".".concat(Pt))}return Qe}var Jt=!1;function Vn(){J.autoAddCss&&!Jt&&(function ut(Xe){if(Xe&&v){var rt=d.createElement("style");rt.setAttribute("type","text/css"),rt.innerHTML=Xe;for(var yt=d.head.childNodes,Pt=null,Qe=yt.length-1;Qe>-1;Qe--){var Qt=yt[Qe],sn=(Qt.tagName||"").toUpperCase();["STYLE","LINK"].indexOf(sn)>-1&&(Pt=Qt)}return d.head.insertBefore(rt,Pt),Xe}}(Rt()),Jt=!0)}var zn={mixout:function(){return{dom:{css:Rt,insertCss:Vn}}},hooks:function(){return{beforeDOMElementCreation:function(){Vn()},beforeI2svg:function(){Vn()}}}},Tn=h||{};Tn[ke]||(Tn[ke]={}),Tn[ke].styles||(Tn[ke].styles={}),Tn[ke].hooks||(Tn[ke].hooks={}),Tn[ke].shims||(Tn[ke].shims=[]);var Yn=Tn[ke],Mt=[],Be=!1;function ft(Xe){!v||(Be?setTimeout(Xe,0):Mt.push(Xe))}function re(Xe){var rt=Xe.tag,yt=Xe.attributes,Pt=void 0===yt?{}:yt,Qe=Xe.children,Qt=void 0===Qe?[]:Qe;return"string"==typeof Xe?zt(Xe):"<".concat(rt," ").concat(function At(Xe){return Object.keys(Xe||{}).reduce(function(rt,yt){return rt+"".concat(yt,'="').concat(zt(Xe[yt]),'" ')},"").trim()}(Pt),">").concat(Qt.map(re).join(""),"</").concat(rt,">")}function Te(Xe,rt,yt){if(Xe&&Xe[rt]&&Xe[rt][yt])return{prefix:rt,iconName:yt,icon:Xe[rt][yt]}}v&&((Be=(d.documentElement.doScroll?/^loaded|^c/:/^loaded|^i|^c/).test(d.readyState))||d.addEventListener("DOMContentLoaded",function Xe(){d.removeEventListener("DOMContentLoaded",Xe),Be=1,Mt.map(function(rt){return rt()})}));var Lt=function(rt,yt,Pt,Qe){var An,Sn,Jn,Qt=Object.keys(rt),sn=Qt.length,qt=void 0!==Qe?function(rt,yt){return function(Pt,Qe,Qt,sn){return rt.call(yt,Pt,Qe,Qt,sn)}}(yt,Qe):yt;for(void 0===Pt?(An=1,Jn=rt[Qt[0]]):(An=0,Jn=Pt);An<sn;An++)Jn=qt(Jn,rt[Sn=Qt[An]],Sn,rt);return Jn};function Bn(Xe){var rt=function nn(Xe){for(var rt=[],yt=0,Pt=Xe.length;yt<Pt;){var Qe=Xe.charCodeAt(yt++);if(Qe>=55296&&Qe<=56319&&yt<Pt){var Qt=Xe.charCodeAt(yt++);56320==(64512&Qt)?rt.push(((1023&Qe)<<10)+(1023&Qt)+65536):(rt.push(Qe),yt--)}else rt.push(Qe)}return rt}(Xe);return 1===rt.length?rt[0].toString(16):null}function ti(Xe){return Object.keys(Xe).reduce(function(rt,yt){var Pt=Xe[yt];return!!Pt.icon?rt[Pt.iconName]=Pt.icon:rt[yt]=Pt,rt},{})}function Mn(Xe,rt){var yt=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},Pt=yt.skipHooks,Qe=void 0!==Pt&&Pt,Qt=ti(rt);"function"!=typeof Yn.hooks.addPack||Qe?Yn.styles[Xe]=_(_({},Yn.styles[Xe]||{}),Qt):Yn.hooks.addPack(Xe,ti(rt)),"fas"===Xe&&Mn("fa",rt)}var ai,an,hn,en=Yn.styles,gn=Yn.shims,Qn=(p(ai={},pe,Object.values(le[pe])),p(ai,ee,Object.values(le[ee])),ai),Ei=null,ha={},mi={},qi={},Zi={},Za={},mr=(p(an={},pe,Object.keys(Oe[pe])),p(an,ee,Object.keys(Oe[ee])),an);function Ft(Xe,rt){var yt=rt.split("-"),Pt=yt[0],Qe=yt.slice(1).join("-");return Pt!==Xe||""===Qe||function It(Xe){return~rn.indexOf(Xe)}(Qe)?null:Qe}var ln=function(){var rt=function(Qt){return Lt(en,function(sn,qt,An){return sn[An]=Lt(qt,Qt,{}),sn},{})};ha=rt(function(Qe,Qt,sn){(Qt[3]&&(Qe[Qt[3]]=sn),Qt[2])&&Qt[2].filter(function(An){return"number"==typeof An}).forEach(function(An){Qe[An.toString(16)]=sn});return Qe}),mi=rt(function(Qe,Qt,sn){(Qe[sn]=sn,Qt[2])&&Qt[2].filter(function(An){return"string"==typeof An}).forEach(function(An){Qe[An]=sn});return Qe}),Za=rt(function(Qe,Qt,sn){var qt=Qt[2];return Qe[sn]=sn,qt.forEach(function(An){Qe[An]=sn}),Qe});var yt="far"in en||J.autoFetchSvg,Pt=Lt(gn,function(Qe,Qt){var sn=Qt[0],qt=Qt[1],An=Qt[2];return"far"===qt&&!yt&&(qt="fas"),"string"==typeof sn&&(Qe.names[sn]={prefix:qt,iconName:An}),"number"==typeof sn&&(Qe.unicodes[sn.toString(16)]={prefix:qt,iconName:An}),Qe},{names:{},unicodes:{}});qi=Pt.names,Zi=Pt.unicodes,Ei=Di(J.styleDefault,{family:J.familyDefault})};function En(Xe,rt){return(ha[Xe]||{})[rt]}function Nn(Xe,rt){return(Za[Xe]||{})[rt]}function li(Xe){return qi[Xe]||{prefix:null,iconName:null}}function Ii(){return Ei}(function De(Xe){return oe.push(Xe),function(){oe.splice(oe.indexOf(Xe),1)}})(function(Xe){Ei=Di(Xe.styleDefault,{family:J.familyDefault})}),ln();function Di(Xe){var rt=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},yt=rt.family,Pt=void 0===yt?pe:yt,Qe=Oe[Pt][Xe],Qt=Re[Pt][Xe]||Re[Pt][Qe],sn=Xe in Yn.styles?Xe:null;return Qt||sn||null}var Ji=(p(hn={},pe,Object.keys(le[pe])),p(hn,ee,Object.keys(le[ee])),hn);function ka(Xe){var rt,yt=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},Pt=yt.skipLookups,Qe=void 0!==Pt&&Pt,Qt=(p(rt={},pe,"".concat(J.cssPrefix,"-").concat(pe)),p(rt,ee,"".concat(J.cssPrefix,"-").concat(ee)),rt),sn=null,qt=pe;(Xe.includes(Qt[pe])||Xe.some(function(Sn){return Ji[pe].includes(Sn)}))&&(qt=pe),(Xe.includes(Qt[ee])||Xe.some(function(Sn){return Ji[ee].includes(Sn)}))&&(qt=ee);var An=Xe.reduce(function(Sn,Jn){var oi=Ft(J.cssPrefix,Jn);if(en[Jn]?(Jn=Qn[qt].includes(Jn)?_t[qt][Jn]:Jn,sn=Jn,Sn.prefix=Jn):mr[qt].indexOf(Jn)>-1?(sn=Jn,Sn.prefix=Di(Jn,{family:qt})):oi?Sn.iconName=oi:Jn!==J.replacementClass&&Jn!==Qt[pe]&&Jn!==Qt[ee]&&Sn.rest.push(Jn),!Qe&&Sn.prefix&&Sn.iconName){var xi="fa"===sn?li(Sn.iconName):{},Si=Nn(Sn.prefix,Sn.iconName);xi.prefix&&(sn=null),Sn.iconName=xi.iconName||Si||Sn.iconName,Sn.prefix=xi.prefix||Sn.prefix,"far"===Sn.prefix&&!en.far&&en.fas&&!J.autoFetchSvg&&(Sn.prefix="fas")}return Sn},{prefix:null,iconName:null,rest:[]});return(Xe.includes("fa-brands")||Xe.includes("fab"))&&(An.prefix="fab"),(Xe.includes("fa-duotone")||Xe.includes("fad"))&&(An.prefix="fad"),!An.prefix&&qt===ee&&(en.fass||J.autoFetchSvg)&&(An.prefix="fass",An.iconName=Nn(An.prefix,An.iconName)||An.iconName),("fa"===An.prefix||"fa"===sn)&&(An.prefix=Ii()||"fas"),An}var Yi=function(){function Xe(){(function D(Xe,rt){if(!(Xe instanceof rt))throw new TypeError("Cannot call a class as a function")})(this,Xe),this.definitions={}}return function k(Xe,rt,yt){return rt&&u(Xe.prototype,rt),yt&&u(Xe,yt),Object.defineProperty(Xe,"prototype",{writable:!1}),Xe}(Xe,[{key:"add",value:function(){for(var yt=this,Pt=arguments.length,Qe=new Array(Pt),Qt=0;Qt<Pt;Qt++)Qe[Qt]=arguments[Qt];var sn=Qe.reduce(this._pullDefinitions,{});Object.keys(sn).forEach(function(qt){yt.definitions[qt]=_(_({},yt.definitions[qt]||{}),sn[qt]),Mn(qt,sn[qt]);var An=le[pe][qt];An&&Mn(An,sn[qt]),ln()})}},{key:"reset",value:function(){this.definitions={}}},{key:"_pullDefinitions",value:function(yt,Pt){var Qe=Pt.prefix&&Pt.iconName&&Pt.icon?{0:Pt}:Pt;return Object.keys(Qe).map(function(Qt){var sn=Qe[Qt],qt=sn.prefix,An=sn.iconName,Sn=sn.icon,Jn=Sn[2];yt[qt]||(yt[qt]={}),Jn.length>0&&Jn.forEach(function(oi){"string"==typeof oi&&(yt[qt][oi]=Sn)}),yt[qt][An]=Sn}),yt}}]),Xe}(),Ha=[],Hi={},La={},gr=Object.keys(La);function fa(Xe,rt){for(var yt=arguments.length,Pt=new Array(yt>2?yt-2:0),Qe=2;Qe<yt;Qe++)Pt[Qe-2]=arguments[Qe];var Qt=Hi[Xe]||[];return Qt.forEach(function(sn){rt=sn.apply(null,[rt].concat(Pt))}),rt}function Ki(Xe){for(var rt=arguments.length,yt=new Array(rt>1?rt-1:0),Pt=1;Pt<rt;Pt++)yt[Pt-1]=arguments[Pt];var Qe=Hi[Xe]||[];Qe.forEach(function(Qt){Qt.apply(null,yt)})}function xa(){var Xe=arguments[0],rt=Array.prototype.slice.call(arguments,1);return La[Xe]?La[Xe].apply(null,rt):void 0}function ra(Xe){"fa"===Xe.prefix&&(Xe.prefix="fas");var rt=Xe.iconName,yt=Xe.prefix||Ii();if(rt)return rt=Nn(yt,rt)||rt,Te(fo.definitions,yt,rt)||Te(Yn.styles,yt,rt)}var fo=new Yi,js={i2svg:function(){var rt=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return v?(Ki("beforeI2svg",rt),xa("pseudoElements2svg",rt),xa("i2svg",rt)):Promise.reject("Operation requires a DOM of some kind.")},watch:function(){var rt=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},yt=rt.autoReplaceSvgRoot;!1===J.autoReplaceSvg&&(J.autoReplaceSvg=!0),J.observeMutations=!0,ft(function(){Gr({autoReplaceSvgRoot:yt}),Ki("watch",rt)})}},Qi={noAuto:function(){J.autoReplaceSvg=!1,J.observeMutations=!1,Ki("noAuto")},config:J,dom:js,parse:{icon:function(rt){if(null===rt)return null;if("object"===E(rt)&&rt.prefix&&rt.iconName)return{prefix:rt.prefix,iconName:Nn(rt.prefix,rt.iconName)||rt.iconName};if(Array.isArray(rt)&&2===rt.length){var yt=0===rt[1].indexOf("fa-")?rt[1].slice(3):rt[1],Pt=Di(rt[0]);return{prefix:Pt,iconName:Nn(Pt,yt)||yt}}if("string"==typeof rt&&(rt.indexOf("".concat(J.cssPrefix,"-"))>-1||rt.match(it))){var Qe=ka(rt.split(" "),{skipLookups:!0});return{prefix:Qe.prefix||Ii(),iconName:Nn(Qe.prefix,Qe.iconName)||Qe.iconName}}if("string"==typeof rt){var Qt=Ii();return{prefix:Qt,iconName:Nn(Qt,rt)||rt}}}},library:fo,findIconDefinition:ra,toHtml:re},Gr=function(){var rt=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},yt=rt.autoReplaceSvgRoot,Pt=void 0===yt?d:yt;(Object.keys(Yn.styles).length>0||J.autoFetchSvg)&&v&&J.autoReplaceSvg&&Qi.dom.i2svg({node:Pt})};function Ta(Xe,rt){return Object.defineProperty(Xe,"abstract",{get:rt}),Object.defineProperty(Xe,"html",{get:function(){return Xe.abstract.map(function(Pt){return re(Pt)})}}),Object.defineProperty(Xe,"node",{get:function(){if(v){var Pt=d.createElement("div");return Pt.innerHTML=Xe.html,Pt.children}}}),Xe}function Ls(Xe){var rt=Xe.icons,yt=rt.main,Pt=rt.mask,Qe=Xe.prefix,Qt=Xe.iconName,sn=Xe.transform,qt=Xe.symbol,An=Xe.title,Sn=Xe.maskId,Jn=Xe.titleId,oi=Xe.extra,xi=Xe.watchable,Si=void 0!==xi&&xi,ur=Pt.found?Pt:yt,Cr=ur.width,Qr=ur.height,Mr="fak"===Qe,Ka=[J.replacementClass,Qt?"".concat(J.cssPrefix,"-").concat(Qt):""].filter(function(go){return-1===oi.classes.indexOf(go)}).filter(function(go){return""!==go||!!go}).concat(oi.classes).join(" "),Ma={children:[],attributes:_(_({},oi.attributes),{},{"data-prefix":Qe,"data-icon":Qt,class:Ka,role:oi.attributes.role||"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 ".concat(Cr," ").concat(Qr)})},ls=Mr&&!~oi.classes.indexOf("fa-fw")?{width:"".concat(Cr/Qr*16*.0625,"em")}:{};Si&&(Ma.attributes[xe]=""),An&&(Ma.children.push({tag:"title",attributes:{id:Ma.attributes["aria-labelledby"]||"title-".concat(Jn||Me())},children:[An]}),delete Ma.attributes.title);var Na=_(_({},Ma),{},{prefix:Qe,iconName:Qt,main:yt,mask:Pt,maskId:Sn,transform:sn,symbol:qt,styles:_(_({},ls),oi.styles)}),mo=Pt.found&&yt.found?xa("generateAbstractMask",Na)||{children:[],attributes:{}}:xa("generateAbstractIcon",Na)||{children:[],attributes:{}},Er=mo.children,bs=mo.attributes;return Na.children=Er,Na.attributes=bs,qt?function Ua(Xe){var rt=Xe.prefix,yt=Xe.iconName,Pt=Xe.children,Qe=Xe.attributes,Qt=Xe.symbol,sn=!0===Qt?"".concat(rt,"-").concat(J.cssPrefix,"-").concat(yt):Qt;return[{tag:"svg",attributes:{style:"display: none;"},children:[{tag:"symbol",attributes:_(_({},Qe),{},{id:sn}),children:Pt}]}]}(Na):function Is(Xe){var rt=Xe.children,yt=Xe.main,Pt=Xe.mask,Qe=Xe.attributes,Qt=Xe.styles,sn=Xe.transform;if(Ht(sn)&&yt.found&&!Pt.found){var Sn={x:yt.width/yt.height/2,y:.5};Qe.style=Tt(_(_({},Qt),{},{"transform-origin":"".concat(Sn.x+sn.x/16,"em ").concat(Sn.y+sn.y/16,"em")}))}return[{tag:"svg",attributes:Qe,children:rt}]}(Na)}function Ca(Xe){var rt=Xe.content,yt=Xe.width,Pt=Xe.height,Qe=Xe.transform,Qt=Xe.title,sn=Xe.extra,qt=Xe.watchable,An=void 0!==qt&&qt,Sn=_(_(_({},sn.attributes),Qt?{title:Qt}:{}),{},{class:sn.classes.join(" ")});An&&(Sn[xe]="");var Jn=_({},sn.styles);Ht(Qe)&&(Jn.transform=function $e(Xe){var rt=Xe.transform,yt=Xe.width,Pt=void 0===yt?16:yt,Qe=Xe.height,Qt=void 0===Qe?16:Qe,sn=Xe.startCentered,qt=void 0!==sn&&sn,An="";return An+=qt&&a?"translate(".concat(rt.x/16-Pt/2,"em, ").concat(rt.y/16-Qt/2,"em) "):qt?"translate(calc(-50% + ".concat(rt.x/16,"em), calc(-50% + ").concat(rt.y/16,"em)) "):"translate(".concat(rt.x/16,"em, ").concat(rt.y/16,"em) "),An+="scale(".concat(rt.size/16*(rt.flipX?-1:1),", ").concat(rt.size/16*(rt.flipY?-1:1),") "),An+"rotate(".concat(rt.rotate,"deg) ")}({transform:Qe,startCentered:!0,width:yt,height:Pt}),Jn["-webkit-transform"]=Jn.transform);var oi=Tt(Jn);oi.length>0&&(Sn.style=oi);var xi=[];return xi.push({tag:"span",attributes:Sn,children:[rt]}),Qt&&xi.push({tag:"span",attributes:{class:"sr-only"},children:[Qt]}),xi}function vr(Xe){var rt=Xe.content,yt=Xe.title,Pt=Xe.extra,Qe=_(_(_({},Pt.attributes),yt?{title:yt}:{}),{},{class:Pt.classes.join(" ")}),Qt=Tt(Pt.styles);Qt.length>0&&(Qe.style=Qt);var sn=[];return sn.push({tag:"span",attributes:Qe,children:[rt]}),yt&&sn.push({tag:"span",attributes:{class:"sr-only"},children:[yt]}),sn}var Or=Yn.styles;function qs(Xe){var rt=Xe[0],yt=Xe[1],Qt=P(Xe.slice(4),1)[0];return{found:!0,width:rt,height:yt,icon:Array.isArray(Qt)?{tag:"g",attributes:{class:"".concat(J.cssPrefix,"-").concat(Gt_GROUP)},children:[{tag:"path",attributes:{class:"".concat(J.cssPrefix,"-").concat(Gt_SECONDARY),fill:"currentColor",d:Qt[0]}},{tag:"path",attributes:{class:"".concat(J.cssPrefix,"-").concat(Gt_PRIMARY),fill:"currentColor",d:Qt[1]}}]}:{tag:"path",attributes:{fill:"currentColor",d:Qt}}}}var ms={found:!1,width:512,height:512};function Pr(Xe,rt){var yt=rt;return"fa"===rt&&null!==J.styleDefault&&(rt=Ii()),new Promise(function(Pt,Qe){xa("missingIconAbstract");if("fa"===yt){var sn=li(Xe)||{};Xe=sn.iconName||Xe,rt=sn.prefix||rt}if(Xe&&rt&&Or[rt]&&Or[rt][Xe])return Pt(qs(Or[rt][Xe]));(function nr(Xe,rt){!te&&!J.showMissingIcons&&Xe&&console.error('Icon with name "'.concat(Xe,'" and prefix "').concat(rt,'" is missing.'))})(Xe,rt),Pt(_(_({},ms),{},{icon:J.showMissingIcons&&Xe&&xa("missingIconAbstract")||{}}))})}var Xs=function(){},pa=J.measurePerformance&&L&&L.mark&&L.measure?L:{mark:Xs,measure:Xs},Js='FA "6.2.1"',Ss=function(rt){pa.mark("".concat(Js," ").concat(rt," ends")),pa.measure("".concat(Js," ").concat(rt),"".concat(Js," ").concat(rt," begins"),"".concat(Js," ").concat(rt," ends"))},Ja_begin=function(rt){return pa.mark("".concat(Js," ").concat(rt," begins")),function(){return Ss(rt)}},Os=function(){};function $a(Xe){return"string"==typeof(Xe.getAttribute?Xe.getAttribute(xe):null)}function br(Xe){return d.createElementNS("http://www.w3.org/2000/svg",Xe)}function as(Xe){return d.createElement(Xe)}function kr(Xe){var rt=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},yt=rt.ceFn,Pt=void 0===yt?"svg"===Xe.tag?br:as:yt;if("string"==typeof Xe)return d.createTextNode(Xe);var Qe=Pt(Xe.tag);Object.keys(Xe.attributes||[]).forEach(function(sn){Qe.setAttribute(sn,Xe.attributes[sn])});var Qt=Xe.children||[];return Qt.forEach(function(sn){Qe.appendChild(kr(sn,{ceFn:Pt}))}),Qe}var dn={replace:function(rt){var yt=rt[0];if(yt.parentNode)if(rt[1].forEach(function(Qe){yt.parentNode.insertBefore(kr(Qe),yt)}),null===yt.getAttribute(xe)&&J.keepOriginalSource){var Pt=d.createComment(function Va(Xe){var rt=" ".concat(Xe.outerHTML," ");return"".concat(rt,"Font Awesome fontawesome.com ")}(yt));yt.parentNode.replaceChild(Pt,yt)}else yt.remove()},nest:function(rt){var yt=rt[0],Pt=rt[1];if(~Je(yt).indexOf(J.replacementClass))return dn.replace(rt);var Qe=new RegExp("".concat(J.cssPrefix,"-.*"));if(delete Pt[0].attributes.id,Pt[0].attributes.class){var Qt=Pt[0].attributes.class.split(" ").reduce(function(qt,An){return An===J.replacementClass||An.match(Qe)?qt.toSvg.push(An):qt.toNode.push(An),qt},{toNode:[],toSvg:[]});Pt[0].attributes.class=Qt.toSvg.join(" "),0===Qt.toNode.length?yt.removeAttribute("class"):yt.setAttribute("class",Qt.toNode.join(" "))}var sn=Pt.map(function(qt){return re(qt)}).join("\n");yt.setAttribute(xe,""),yt.innerHTML=sn}};function xt(Xe){Xe()}function Nt(Xe,rt){var yt="function"==typeof rt?rt:Os;if(0===Xe.length)yt();else{var Pt=xt;"async"===J.mutateApproach&&(Pt=h.requestAnimationFrame||xt),Pt(function(){var Qe=function ir(){return!0===J.autoReplaceSvg?dn.replace:dn[J.autoReplaceSvg]||dn.replace}(),Qt=Ja_begin("mutate");Xe.map(Qe),Qt(),yt()})}}var Fn=!1;function ri(){Fn=!0}function Bi(){Fn=!1}var Xi=null;function oa(Xe){if(y&&J.observeMutations){var rt=Xe.treeCallback,yt=void 0===rt?Os:rt,Pt=Xe.nodeCallback,Qe=void 0===Pt?Os:Pt,Qt=Xe.pseudoElementsCallback,sn=void 0===Qt?Os:Qt,qt=Xe.observeMutationsRoot,An=void 0===qt?d:qt;Xi=new y(function(Sn){if(!Fn){var Jn=Ii();Ce(Sn).forEach(function(oi){if("childList"===oi.type&&oi.addedNodes.length>0&&!$a(oi.addedNodes[0])&&(J.searchPseudoElements&&sn(oi.target),yt(oi.target)),"attributes"===oi.type&&oi.target.parentNode&&J.searchPseudoElements&&sn(oi.target.parentNode),"attributes"===oi.type&&$a(oi.target)&&~Xt.indexOf(oi.attributeName))if("class"===oi.attributeName&&function yr(Xe){var rt=Xe.getAttribute?Xe.getAttribute(ve):null,yt=Xe.getAttribute?Xe.getAttribute(et):null;return rt&&yt}(oi.target)){var xi=ka(Je(oi.target)),Si=xi.prefix,ur=xi.iconName;oi.target.setAttribute(ve,Si||Jn),ur&&oi.target.setAttribute(et,ur)}else(function sa(Xe){return Xe&&Xe.classList&&Xe.classList.contains&&Xe.classList.contains(J.replacementClass)})(oi.target)&&Qe(oi.target)})}}),v&&Xi.observe(An,{childList:!0,attributes:!0,characterData:!0,subtree:!0})}}function Li(Xe){var rt=Xe.getAttribute("style"),yt=[];return rt&&(yt=rt.split(";").reduce(function(Pt,Qe){var Qt=Qe.split(":"),sn=Qt[0],qt=Qt.slice(1);return sn&&qt.length>0&&(Pt[sn]=qt.join(":").trim()),Pt},{})),yt}function rs(Xe){var rt=Xe.getAttribute("data-prefix"),yt=Xe.getAttribute("data-icon"),Pt=void 0!==Xe.innerText?Xe.innerText.trim():"",Qe=ka(Je(Xe));return Qe.prefix||(Qe.prefix=Ii()),rt&&yt&&(Qe.prefix=rt,Qe.iconName=yt),Qe.iconName&&Qe.prefix||(Qe.prefix&&Pt.length>0&&(Qe.iconName=function qn(Xe,rt){return(mi[Xe]||{})[rt]}(Qe.prefix,Xe.innerText)||En(Qe.prefix,Bn(Xe.innerText))),!Qe.iconName&&J.autoFetchSvg&&Xe.firstChild&&Xe.firstChild.nodeType===Node.TEXT_NODE&&(Qe.iconName=Xe.firstChild.data)),Qe}function Rr(Xe){var rt=Ce(Xe.attributes).reduce(function(Qe,Qt){return"class"!==Qe.name&&"style"!==Qe.name&&(Qe[Qt.name]=Qt.value),Qe},{}),yt=Xe.getAttribute("title"),Pt=Xe.getAttribute("data-fa-title-id");return J.autoA11y&&(yt?rt["aria-labelledby"]="".concat(J.replacementClass,"-title-").concat(Pt||Me()):(rt["aria-hidden"]="true",rt.focusable="false")),rt}function ca(Xe){var rt=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{styleParser:!0},yt=rs(Xe),Pt=yt.iconName,Qe=yt.prefix,Qt=yt.rest,sn=Rr(Xe),qt=fa("parseNodeAttributes",{},Xe),An=rt.styleParser?Li(Xe):[];return _({iconName:Pt,title:Xe.getAttribute("title"),titleId:Xe.getAttribute("data-fa-title-id"),prefix:Qe,transform:Dt,mask:{iconName:null,prefix:null,rest:[]},maskId:null,symbol:!1,extra:{classes:Qt,styles:An,attributes:sn}},qt)}var si=Yn.styles;function ar(Xe){var rt="nest"===J.autoReplaceSvg?ca(Xe,{styleParser:!1}):ca(Xe);return~rt.extra.classes.indexOf(Ct)?xa("generateLayersText",Xe,rt):xa("generateSvgReplacementMutation",Xe,rt)}var Ps=new Set;function bt(Xe){var rt=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if(!v)return Promise.resolve();var yt=d.documentElement.classList,Pt=function(oi){return yt.add("".concat(ht,"-").concat(oi))},Qe=function(oi){return yt.remove("".concat(ht,"-").concat(oi))},Qt=J.autoFetchSvg?Ps:H.map(function(Jn){return"fa-".concat(Jn)}).concat(Object.keys(si));Qt.includes("fa")||Qt.push("fa");var sn=[".".concat(Ct,":not([").concat(xe,"])")].concat(Qt.map(function(Jn){return".".concat(Jn,":not([").concat(xe,"])")})).join(", ");if(0===sn.length)return Promise.resolve();var qt=[];try{qt=Ce(Xe.querySelectorAll(sn))}catch{}if(!(qt.length>0))return Promise.resolve();Pt("pending"),Qe("complete");var An=Ja_begin("onTree"),Sn=qt.reduce(function(Jn,oi){try{var xi=ar(oi);xi&&Jn.push(xi)}catch(Si){te||"MissingIcon"===Si.name&&console.error(Si)}return Jn},[]);return new Promise(function(Jn,oi){Promise.all(Sn).then(function(xi){Nt(xi,function(){Pt("active"),Pt("complete"),Qe("pending"),"function"==typeof rt&&rt(),An(),Jn()})}).catch(function(xi){An(),oi(xi)})})}function be(Xe){var rt=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;ar(Xe).then(function(yt){yt&&Nt([yt],rt)})}H.map(function(Xe){Ps.add("fa-".concat(Xe))}),Object.keys(Oe[pe]).map(Ps.add.bind(Ps)),Object.keys(Oe[ee]).map(Ps.add.bind(Ps)),Ps=M(Ps);var Yt=function(rt){var yt=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},Pt=yt.transform,Qe=void 0===Pt?Dt:Pt,Qt=yt.symbol,sn=void 0!==Qt&&Qt,qt=yt.mask,An=void 0===qt?null:qt,Sn=yt.maskId,Jn=void 0===Sn?null:Sn,oi=yt.title,xi=void 0===oi?null:oi,Si=yt.titleId,ur=void 0===Si?null:Si,Cr=yt.classes,Qr=void 0===Cr?[]:Cr,Mr=yt.attributes,Ka=void 0===Mr?{}:Mr,Ma=yt.styles,ls=void 0===Ma?{}:Ma;if(rt){var Na=rt.prefix,mo=rt.iconName,Er=rt.icon;return Ta(_({type:"icon"},rt),function(){return Ki("beforeDOMElementCreation",{iconDefinition:rt,params:yt}),J.autoA11y&&(xi?Ka["aria-labelledby"]="".concat(J.replacementClass,"-title-").concat(ur||Me()):(Ka["aria-hidden"]="true",Ka.focusable="false")),Ls({icons:{main:qs(Er),mask:An?qs(An.icon):{found:!1,width:null,height:null,icon:{}}},prefix:Na,iconName:mo,transform:_(_({},Dt),Qe),symbol:sn,title:xi,maskId:Jn,titleId:ur,extra:{attributes:Ka,styles:ls,classes:Qr}})})}},Pn={mixout:function(){return{icon:(Xe=Yt,function(rt){var yt=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},Pt=(rt||{}).icon?rt:ra(rt||{}),Qe=yt.mask;return Qe&&(Qe=(Qe||{}).icon?Qe:ra(Qe||{})),Xe(Pt,_(_({},yt),{},{mask:Qe}))})};var Xe},hooks:function(){return{mutationObserverCallbacks:function(yt){return yt.treeCallback=bt,yt.nodeCallback=be,yt}}},provides:function(rt){rt.i2svg=function(yt){var Pt=yt.node,Qe=void 0===Pt?d:Pt,Qt=yt.callback;return bt(Qe,void 0===Qt?function(){}:Qt)},rt.generateSvgReplacementMutation=function(yt,Pt){var Qe=Pt.iconName,Qt=Pt.title,sn=Pt.titleId,qt=Pt.prefix,An=Pt.transform,Sn=Pt.symbol,Jn=Pt.mask,oi=Pt.maskId,xi=Pt.extra;return new Promise(function(Si,ur){Promise.all([Pr(Qe,qt),Jn.iconName?Pr(Jn.iconName,Jn.prefix):Promise.resolve({found:!1,width:512,height:512,icon:{}})]).then(function(Cr){var Qr=P(Cr,2),Mr=Qr[0],Ka=Qr[1];Si([yt,Ls({icons:{main:Mr,mask:Ka},prefix:qt,iconName:Qe,transform:An,symbol:Sn,maskId:oi,title:Qt,titleId:sn,extra:xi,watchable:!0})])}).catch(ur)})},rt.generateAbstractIcon=function(yt){var Sn,Pt=yt.children,Qe=yt.attributes,Qt=yt.main,sn=yt.transform,An=Tt(yt.styles);return An.length>0&&(Qe.style=An),Ht(sn)&&(Sn=xa("generateAbstractTransformGrouping",{main:Qt,transform:sn,containerWidth:Qt.width,iconWidth:Qt.width})),Pt.push(Sn||Qt.icon),{children:Pt,attributes:Qe}}}},Ti={mixout:function(){return{layer:function(yt){var Pt=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},Qe=Pt.classes,Qt=void 0===Qe?[]:Qe;return Ta({type:"layer"},function(){Ki("beforeDOMElementCreation",{assembler:yt,params:Pt});var sn=[];return yt(function(qt){Array.isArray(qt)?qt.map(function(An){sn=sn.concat(An.abstract)}):sn=sn.concat(qt.abstract)}),[{tag:"span",attributes:{class:["".concat(J.cssPrefix,"-layers")].concat(M(Qt)).join(" ")},children:sn}]})}}}},rr={mixout:function(){return{counter:function(yt){var Pt=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},Qe=Pt.title,Qt=void 0===Qe?null:Qe,sn=Pt.classes,qt=void 0===sn?[]:sn,An=Pt.attributes,Sn=void 0===An?{}:An,Jn=Pt.styles,oi=void 0===Jn?{}:Jn;return Ta({type:"counter",content:yt},function(){return Ki("beforeDOMElementCreation",{content:yt,params:Pt}),vr({content:yt.toString(),title:Qt,extra:{attributes:Sn,styles:oi,classes:["".concat(J.cssPrefix,"-layers-counter")].concat(M(qt))}})})}}}},gs={mixout:function(){return{text:function(yt){var Pt=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},Qe=Pt.transform,Qt=void 0===Qe?Dt:Qe,sn=Pt.title,qt=void 0===sn?null:sn,An=Pt.classes,Sn=void 0===An?[]:An,Jn=Pt.attributes,oi=void 0===Jn?{}:Jn,xi=Pt.styles,Si=void 0===xi?{}:xi;return Ta({type:"text",content:yt},function(){return Ki("beforeDOMElementCreation",{content:yt,params:Pt}),Ca({content:yt,transform:_(_({},Dt),Qt),title:qt,extra:{attributes:oi,styles:Si,classes:["".concat(J.cssPrefix,"-layers-text")].concat(M(Sn))}})})}}},provides:function(rt){rt.generateLayersText=function(yt,Pt){var Qe=Pt.title,Qt=Pt.transform,sn=Pt.extra,qt=null,An=null;if(a){var Sn=parseInt(getComputedStyle(yt).fontSize,10),Jn=yt.getBoundingClientRect();qt=Jn.width/Sn,An=Jn.height/Sn}return J.autoA11y&&!Qe&&(sn.attributes["aria-hidden"]="true"),Promise.resolve([yt,Ca({content:yt.innerHTML,width:qt,height:An,transform:Qt,title:Qe,extra:sn,watchable:!0})])}}},Oo=new RegExp('"',"ug"),$s=[1105920,1112319];function po(Xe,rt){var yt="".concat("data-fa-pseudo-element-pending").concat(rt.replace(":","-"));return new Promise(function(Pt,Qe){if(null!==Xe.getAttribute(yt))return Pt();var sn=Ce(Xe.children).filter(function(Er){return Er.getAttribute(Ze)===rt})[0],qt=h.getComputedStyle(Xe,rt),An=qt.getPropertyValue("font-family").match(un),Sn=qt.getPropertyValue("font-weight"),Jn=qt.getPropertyValue("content");if(sn&&!An)return Xe.removeChild(sn),Pt();if(An&&"none"!==Jn&&""!==Jn){var oi=qt.getPropertyValue("content"),xi=~["Sharp"].indexOf(An[2])?ee:pe,Si=~["Solid","Regular","Light","Thin","Duotone","Brands","Kit"].indexOf(An[2])?Re[xi][An[2].toLowerCase()]:Bt[xi][Sn],ur=function kl(Xe){var rt=Xe.replace(Oo,""),yt=function Wn(Xe,rt){var Qe,yt=Xe.length,Pt=Xe.charCodeAt(rt);return Pt>=55296&&Pt<=56319&&yt>rt+1&&(Qe=Xe.charCodeAt(rt+1))>=56320&&Qe<=57343?1024*(Pt-55296)+Qe-56320+65536:Pt}(rt,0),Pt=yt>=$s[0]&&yt<=$s[1],Qe=2===rt.length&&rt[0]===rt[1];return{value:Bn(Qe?rt[0]:rt),isSecondary:Pt||Qe}}(oi),Cr=ur.value,Qr=ur.isSecondary,Mr=An[0].startsWith("FontAwesome"),Ka=En(Si,Cr),Ma=Ka;if(Mr){var ls=function aa(Xe){var rt=Zi[Xe],yt=En("fas",Xe);return rt||(yt?{prefix:"fas",iconName:yt}:null)||{prefix:null,iconName:null}}(Cr);ls.iconName&&ls.prefix&&(Ka=ls.iconName,Si=ls.prefix)}if(!Ka||Qr||sn&&sn.getAttribute(ve)===Si&&sn.getAttribute(et)===Ma)Pt();else{Xe.setAttribute(yt,Ma),sn&&Xe.removeChild(sn);var Na=function Zr(){return{iconName:null,title:null,titleId:null,prefix:null,transform:Dt,symbol:!1,mask:{iconName:null,prefix:null,rest:[]},maskId:null,extra:{classes:[],styles:{},attributes:{}}}}(),mo=Na.extra;mo.attributes[Ze]=rt,Pr(Ka,Si).then(function(Er){var bs=Ls(_(_({},Na),{},{icons:{main:Er,mask:{prefix:null,iconName:null,rest:[]}},prefix:Si,iconName:Ma,extra:mo,watchable:!0})),go=d.createElement("svg");"::before"===rt?Xe.insertBefore(go,Xe.firstChild):Xe.appendChild(go),go.outerHTML=bs.map(function(hl){return re(hl)}).join("\n"),Xe.removeAttribute(yt),Pt()}).catch(Qe)}}else Pt()})}function kn(Xe){return Promise.all([po(Xe,"::before"),po(Xe,"::after")])}function Ui(Xe){return!(Xe.parentNode===document.head||~Ae.indexOf(Xe.tagName.toUpperCase())||Xe.getAttribute(Ze)||Xe.parentNode&&"svg"===Xe.parentNode.tagName)}function eo(Xe){if(v)return new Promise(function(rt,yt){var Pt=Ce(Xe.querySelectorAll("*")).filter(Ui).map(kn),Qe=Ja_begin("searchPseudoElements");ri(),Promise.all(Pt).then(function(){Qe(),Bi(),rt()}).catch(function(){Qe(),Bi(),yt()})})}var Ra=!1,_o=function(rt){return rt.toLowerCase().split(" ").reduce(function(Pt,Qe){var Qt=Qe.toLowerCase().split("-"),sn=Qt[0],qt=Qt.slice(1).join("-");if(sn&&"h"===qt)return Pt.flipX=!0,Pt;if(sn&&"v"===qt)return Pt.flipY=!0,Pt;if(qt=parseFloat(qt),isNaN(qt))return Pt;switch(sn){case"grow":Pt.size=Pt.size+qt;break;case"shrink":Pt.size=Pt.size-qt;break;case"left":Pt.x=Pt.x-qt;break;case"right":Pt.x=Pt.x+qt;break;case"up":Pt.y=Pt.y-qt;break;case"down":Pt.y=Pt.y+qt;break;case"rotate":Pt.rotate=Pt.rotate+qt}return Pt},{size:16,x:0,y:0,flipX:!1,flipY:!1,rotate:0})},$i={x:0,y:0,width:"100%",height:"100%"};function Hn(Xe){var rt=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return Xe.attributes&&(Xe.attributes.fill||rt)&&(Xe.attributes.fill="black"),Xe}!function Sa(Xe,rt){var yt=rt.mixoutsTo;return Ha=Xe,Hi={},Object.keys(La).forEach(function(Pt){-1===gr.indexOf(Pt)&&delete La[Pt]}),Ha.forEach(function(Pt){var Qe=Pt.mixout?Pt.mixout():{};if(Object.keys(Qe).forEach(function(sn){"function"==typeof Qe[sn]&&(yt[sn]=Qe[sn]),"object"===E(Qe[sn])&&Object.keys(Qe[sn]).forEach(function(qt){yt[sn]||(yt[sn]={}),yt[sn][qt]=Qe[sn][qt]})}),Pt.hooks){var Qt=Pt.hooks();Object.keys(Qt).forEach(function(sn){Hi[sn]||(Hi[sn]=[]),Hi[sn].push(Qt[sn])})}Pt.provides&&Pt.provides(La)}),yt}([zn,Pn,Ti,rr,gs,{hooks:function(){return{mutationObserverCallbacks:function(yt){return yt.pseudoElementsCallback=eo,yt}}},provides:function(rt){rt.pseudoElements2svg=function(yt){var Pt=yt.node,Qe=void 0===Pt?d:Pt;J.searchPseudoElements&&eo(Qe)}}},{mixout:function(){return{dom:{unwatch:function(){ri(),Ra=!0}}}},hooks:function(){return{bootstrap:function(){oa(fa("mutationObserverCallbacks",{}))},noAuto:function(){!function la(){!Xi||Xi.disconnect()}()},watch:function(yt){var Pt=yt.observeMutationsRoot;Ra?Bi():oa(fa("mutationObserverCallbacks",{observeMutationsRoot:Pt}))}}}},{mixout:function(){return{parse:{transform:function(yt){return _o(yt)}}}},hooks:function(){return{parseNodeAttributes:function(yt,Pt){var Qe=Pt.getAttribute("data-fa-transform");return Qe&&(yt.transform=_o(Qe)),yt}}},provides:function(rt){rt.generateAbstractTransformGrouping=function(yt){var Pt=yt.main,Qe=yt.transform,Qt=yt.containerWidth,sn=yt.iconWidth,qt={transform:"translate(".concat(Qt/2," 256)")},An="translate(".concat(32*Qe.x,", ").concat(32*Qe.y,") "),Sn="scale(".concat(Qe.size/16*(Qe.flipX?-1:1),", ").concat(Qe.size/16*(Qe.flipY?-1:1),") "),Jn="rotate(".concat(Qe.rotate," 0 0)"),Si={outer:qt,inner:{transform:"".concat(An," ").concat(Sn," ").concat(Jn)},path:{transform:"translate(".concat(sn/2*-1," -256)")}};return{tag:"g",attributes:_({},Si.outer),children:[{tag:"g",attributes:_({},Si.inner),children:[{tag:Pt.icon.tag,children:Pt.icon.children,attributes:_(_({},Pt.icon.attributes),Si.path)}]}]}}}},{hooks:function(){return{parseNodeAttributes:function(yt,Pt){var Qe=Pt.getAttribute("data-fa-mask"),Qt=Qe?ka(Qe.split(" ").map(function(sn){return sn.trim()})):{prefix:null,iconName:null,rest:[]};return Qt.prefix||(Qt.prefix=Ii()),yt.mask=Qt,yt.maskId=Pt.getAttribute("data-fa-mask-id"),yt}}},provides:function(rt){rt.generateAbstractMask=function(yt){var Xe,Pt=yt.children,Qe=yt.attributes,Qt=yt.main,sn=yt.mask,qt=yt.maskId,An=yt.transform,Sn=Qt.width,Jn=Qt.icon,oi=sn.width,xi=sn.icon,Si=function He(Xe){var rt=Xe.transform,yt=Xe.containerWidth,Pt=Xe.iconWidth,Qe={transform:"translate(".concat(yt/2," 256)")},Qt="translate(".concat(32*rt.x,", ").concat(32*rt.y,") "),sn="scale(".concat(rt.size/16*(rt.flipX?-1:1),", ").concat(rt.size/16*(rt.flipY?-1:1),") "),qt="rotate(".concat(rt.rotate," 0 0)");return{outer:Qe,inner:{transform:"".concat(Qt," ").concat(sn," ").concat(qt)},path:{transform:"translate(".concat(Pt/2*-1," -256)")}}}({transform:An,containerWidth:oi,iconWidth:Sn}),ur={tag:"rect",attributes:_(_({},$i),{},{fill:"white"})},Cr=Jn.children?{children:Jn.children.map(Hn)}:{},Qr={tag:"g",attributes:_({},Si.inner),children:[Hn(_({tag:Jn.tag,attributes:_(_({},Jn.attributes),Si.path)},Cr))]},Mr={tag:"g",attributes:_({},Si.outer),children:[Qr]},Ka="mask-".concat(qt||Me()),Ma="clip-".concat(qt||Me()),ls={tag:"mask",attributes:_(_({},$i),{},{id:Ka,maskUnits:"userSpaceOnUse",maskContentUnits:"userSpaceOnUse"}),children:[ur,Mr]},Na={tag:"defs",children:[{tag:"clipPath",attributes:{id:Ma},children:(Xe=xi,"g"===Xe.tag?Xe.children:[Xe])},ls]};return Pt.push(Na,{tag:"rect",attributes:_({fill:"currentColor","clip-path":"url(#".concat(Ma,")"),mask:"url(#".concat(Ka,")")},$i)}),{children:Pt,attributes:Qe}}}},{provides:function(rt){var yt=!1;h.matchMedia&&(yt=h.matchMedia("(prefers-reduced-motion: reduce)").matches),rt.missingIconAbstract=function(){var Pt=[],Qe={fill:"currentColor"},Qt={attributeType:"XML",repeatCount:"indefinite",dur:"2s"};Pt.push({tag:"path",attributes:_(_({},Qe),{},{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 sn=_(_({},Qt),{},{attributeName:"opacity"}),qt={tag:"circle",attributes:_(_({},Qe),{},{cx:"256",cy:"364",r:"28"}),children:[]};return yt||qt.children.push({tag:"animate",attributes:_(_({},Qt),{},{attributeName:"r",values:"28;14;28;28;14;28;"})},{tag:"animate",attributes:_(_({},sn),{},{values:"1;0;1;1;0;1;"})}),Pt.push(qt),Pt.push({tag:"path",attributes:_(_({},Qe),{},{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:yt?[]:[{tag:"animate",attributes:_(_({},sn),{},{values:"1;0;0;0;0;1;"})}]}),yt||Pt.push({tag:"path",attributes:_(_({},Qe),{},{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:_(_({},sn),{},{values:"0;0;1;1;0;0;"})}]}),{tag:"g",attributes:{class:"missing"},children:Pt}}}},{hooks:function(){return{parseNodeAttributes:function(yt,Pt){var Qe=Pt.getAttribute("data-fa-symbol"),Qt=null!==Qe&&(""===Qe||Qe);return yt.symbol=Qt,yt}}}}],{mixoutsTo:Qi});Qi.noAuto,Qi.config,Qi.library,Qi.dom;var Po=Qi.parse,Kc=(Qi.findIconDefinition,Qi.toHtml,Qi.icon),Go=(Qi.layer,Qi.text),Zo=Qi.counter,ko=m(4497);const xr=["*"],ui=Xe=>{const rt={"fa-spin":Xe.spin,"fa-pulse":Xe.pulse,"fa-fw":Xe.fixedWidth,"fa-border":Xe.border,"fa-inverse":Xe.inverse,"fa-layers-counter":Xe.counter,"fa-flip-horizontal":"horizontal"===Xe.flip||"both"===Xe.flip,"fa-flip-vertical":"vertical"===Xe.flip||"both"===Xe.flip,[`fa-${Xe.size}`]:null!==Xe.size,[`fa-rotate-${Xe.rotate}`]:null!==Xe.rotate,[`fa-pull-${Xe.pull}`]:null!==Xe.pull,[`fa-stack-${Xe.stackItemSize}`]:null!=Xe.stackItemSize};return Object.keys(rt).map(yt=>rt[yt]?yt:null).filter(yt=>yt)};class ys{constructor(){this.defaultPrefix="fas",this.fallbackIcon=null}}ys.\u0275fac=function(rt){return new(rt||ys)},ys.\u0275prov=e.Yz7({token:ys,factory:ys.\u0275fac,providedIn:"root"});class ks{constructor(){this.definitions={}}addIcons(...rt){for(const yt of rt){yt.prefix in this.definitions||(this.definitions[yt.prefix]={}),this.definitions[yt.prefix][yt.iconName]=yt;for(const Pt of yt.icon[2])"string"==typeof Pt&&(this.definitions[yt.prefix][Pt]=yt)}}addIconPacks(...rt){for(const yt of rt){const Pt=Object.keys(yt).map(Qe=>yt[Qe]);this.addIcons(...Pt)}}getIconDefinition(rt,yt){return rt in this.definitions&&yt in this.definitions[rt]?this.definitions[rt][yt]:null}}ks.\u0275fac=function(rt){return new(rt||ks)},ks.\u0275prov=e.Yz7({token:ks,factory:ks.\u0275fac,providedIn:"root"});class no{constructor(){this.stackItemSize="1x"}ngOnChanges(rt){if("size"in rt)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>.')}}no.\u0275fac=function(rt){return new(rt||no)},no.\u0275dir=e.lG2({type:no,selectors:[["fa-icon","stackItemSize",""],["fa-duotone-icon","stackItemSize",""]],inputs:{stackItemSize:"stackItemSize",size:"size"},features:[e.TTD]});class os{constructor(rt,yt){this.renderer=rt,this.elementRef=yt}ngOnInit(){this.renderer.addClass(this.elementRef.nativeElement,"fa-stack")}ngOnChanges(rt){"size"in rt&&(null!=rt.size.currentValue&&this.renderer.addClass(this.elementRef.nativeElement,`fa-${rt.size.currentValue}`),null!=rt.size.previousValue&&this.renderer.removeClass(this.elementRef.nativeElement,`fa-${rt.size.previousValue}`))}}os.\u0275fac=function(rt){return new(rt||os)(e.Y36(e.Qsj),e.Y36(e.SBq))},os.\u0275cmp=e.Xpm({type:os,selectors:[["fa-stack"]],inputs:{size:"size"},features:[e.TTD],ngContentSelectors:xr,decls:1,vars:0,template:function(rt,yt){1&rt&&(e.F$t(),e.Hsn(0))},encapsulation:2});class Ne{constructor(rt,yt,Pt,Qe,Qt){this.sanitizer=rt,this.config=yt,this.iconLibrary=Pt,this.stackItem=Qe,this.classes=[],null!=Qt&&null==Qe&&console.error('FontAwesome: fa-icon and fa-duotone-icon elements must specify stackItemSize attribute when wrapped into fa-stack. Example: <fa-icon stackItemSize="2x"></fa-icon>.')}ngOnChanges(rt){if(null==this.icon&&null==this.config.fallbackIcon)return(()=>{throw new Error("Property `icon` is required for `fa-icon`/`fa-duotone-icon` components.")})();if(rt){const yt=null!=this.icon?this.icon:this.config.fallbackIcon,Pt=this.findIconDefinition(yt);if(null!=Pt){const Qe=this.buildParams();this.renderIcon(Pt,Qe)}}}render(){this.ngOnChanges({})}findIconDefinition(rt){const yt=((Xe,rt)=>(Xe=>void 0!==Xe.prefix&&void 0!==Xe.iconName)(Xe)?Xe:Array.isArray(Xe)&&2===Xe.length?{prefix:Xe[0],iconName:Xe[1]}:"string"==typeof Xe?{prefix:rt,iconName:Xe}:void 0)(rt,this.config.defaultPrefix);if("icon"in yt)return yt;return this.iconLibrary.getIconDefinition(yt.prefix,yt.iconName)??((Xe=>{throw new Error(`Could not find icon with iconName=${Xe.iconName} and prefix=${Xe.prefix} in the icon library.`)})(yt),null)}buildParams(){const rt={flip:this.flip,spin:this.spin,pulse:this.pulse,border:this.border,inverse:this.inverse,size:this.size||null,pull:this.pull||null,rotate:this.rotate||null,fixedWidth:"boolean"==typeof this.fixedWidth?this.fixedWidth:this.config.fixedWidth,stackItemSize:null!=this.stackItem?this.stackItem.stackItemSize:null},yt="string"==typeof this.transform?Po.transform(this.transform):this.transform;return{title:this.title,transform:yt,classes:[...ui(rt),...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(rt,yt){const Pt=Kc(rt,yt);this.renderedIconHTML=this.sanitizer.bypassSecurityTrustHtml(Pt.html.join("\n"))}}Ne.\u0275fac=function(rt){return new(rt||Ne)(e.Y36(ko.H7),e.Y36(ys),e.Y36(ks),e.Y36(no,8),e.Y36(os,8))},Ne.\u0275cmp=e.Xpm({type:Ne,selectors:[["fa-icon"]],hostAttrs:[1,"ng-fa-icon"],hostVars:2,hostBindings:function(rt,yt){2&rt&&(e.Ikx("innerHTML",yt.renderedIconHTML,e.oJD),e.uIk("title",yt.title))},inputs:{icon:"icon",title:"title",spin:"spin",pulse:"pulse",mask:"mask",styles:"styles",flip:"flip",size:"size",pull:"pull",border:"border",inverse:"inverse",symbol:"symbol",rotate:"rotate",fixedWidth:"fixedWidth",classes:"classes",transform:"transform",a11yRole:"a11yRole"},features:[e.TTD],decls:0,vars:0,template:function(rt,yt){},encapsulation:2});class fe extends Ne{findIconDefinition(rt){const yt=super.findIconDefinition(rt);if(null!=yt&&!Array.isArray(yt.icon[4]))throw new Error(`The specified icon does not appear to be a Duotone icon. Check that you specified the correct style: <fa-duotone-icon [icon]="['fad', '${yt.iconName}']"></fa-duotone-icon> or use: <fa-icon icon="${yt.iconName}"></fa-icon> instead.`);return yt}buildParams(){const rt=super.buildParams();return(!0===this.swapOpacity||"true"===this.swapOpacity)&&rt.classes.push("fa-swap-opacity"),null!=this.primaryOpacity&&(rt.styles["--fa-primary-opacity"]=this.primaryOpacity.toString()),null!=this.secondaryOpacity&&(rt.styles["--fa-secondary-opacity"]=this.secondaryOpacity.toString()),null!=this.primaryColor&&(rt.styles["--fa-primary-color"]=this.primaryColor),null!=this.secondaryColor&&(rt.styles["--fa-secondary-color"]=this.secondaryColor),rt}}fe.\u0275fac=function(){let Xe;return function(yt){return(Xe||(Xe=e.n5z(fe)))(yt||fe)}}(),fe.\u0275cmp=e.Xpm({type:fe,selectors:[["fa-duotone-icon"]],inputs:{swapOpacity:"swapOpacity",primaryOpacity:"primaryOpacity",secondaryOpacity:"secondaryOpacity",primaryColor:"primaryColor",secondaryColor:"secondaryColor"},features:[e.qOj],decls:0,vars:0,template:function(rt,yt){},encapsulation:2});const st=(Xe,rt,yt)=>{if(!Xe)throw new Error(`${yt} should be used as child of ${rt} only.`)};class Ot{constructor(rt,yt,Pt){this.renderer=rt,this.elementRef=yt,this.config=Pt}ngOnInit(){this.renderer.addClass(this.elementRef.nativeElement,"fa-layers"),this.fixedWidth="boolean"==typeof this.fixedWidth?this.fixedWidth:this.config.fixedWidth}ngOnChanges(rt){"size"in rt&&(null!=rt.size.currentValue&&this.renderer.addClass(this.elementRef.nativeElement,`fa-${rt.size.currentValue}`),null!=rt.size.previousValue&&this.renderer.removeClass(this.elementRef.nativeElement,`fa-${rt.size.previousValue}`))}}Ot.\u0275fac=function(rt){return new(rt||Ot)(e.Y36(e.Qsj),e.Y36(e.SBq),e.Y36(ys))},Ot.\u0275cmp=e.Xpm({type:Ot,selectors:[["fa-layers"]],hostVars:2,hostBindings:function(rt,yt){2&rt&&e.ekj("fa-fw",yt.fixedWidth)},inputs:{size:"size",fixedWidth:"fixedWidth"},features:[e.TTD],ngContentSelectors:xr,decls:1,vars:0,template:function(rt,yt){1&rt&&(e.F$t(),e.Hsn(0))},encapsulation:2});class Vt{constructor(rt,yt){this.parent=rt,this.sanitizer=yt,this.classes=[],st(this.parent,"FaLayersComponent",this.constructor.name)}ngOnChanges(rt){if(rt){const yt=this.buildParams();this.updateContent(yt)}}buildParams(){const rt=[];return null!=this.classes&&rt.push(...this.classes),null!=this.position&&rt.push(`fa-layers-${this.position}`),{title:this.title,classes:rt,styles:this.styles}}updateContent(rt){this.renderedHTML=this.sanitizer.bypassSecurityTrustHtml(Zo(this.content||"",rt).html.join(""))}}Vt.\u0275fac=function(rt){return new(rt||Vt)(e.Y36(Ot,8),e.Y36(ko.H7))},Vt.\u0275cmp=e.Xpm({type:Vt,selectors:[["fa-layers-counter"]],hostAttrs:[1,"ng-fa-layers-counter"],hostVars:1,hostBindings:function(rt,yt){2&rt&&e.Ikx("innerHTML",yt.renderedHTML,e.oJD)},inputs:{content:"content",title:"title",styles:"styles",classes:"classes",position:"position"},features:[e.TTD],decls:0,vars:0,template:function(rt,yt){},encapsulation:2});class fn{constructor(rt,yt){this.parent=rt,this.sanitizer=yt,this.classes=[],st(this.parent,"FaLayersComponent",this.constructor.name)}ngOnChanges(rt){if(rt){const yt=this.buildParams();this.updateContent(yt)}}buildParams(){const rt={flip:this.flip,spin:this.spin,pulse:this.pulse,border:this.border,inverse:this.inverse,size:this.size||null,pull:this.pull||null,rotate:this.rotate||null,fixedWidth:this.fixedWidth};return{transform:"string"==typeof this.transform?Po.transform(this.transform):this.transform,classes:[...ui(rt),...this.classes],title:this.title,styles:this.styles}}updateContent(rt){this.renderedHTML=this.sanitizer.bypassSecurityTrustHtml(Go(this.content||"",rt).html.join("\n"))}}fn.\u0275fac=function(rt){return new(rt||fn)(e.Y36(Ot,8),e.Y36(ko.H7))},fn.\u0275cmp=e.Xpm({type:fn,selectors:[["fa-layers-text"]],hostAttrs:[1,"ng-fa-layers-text"],hostVars:1,hostBindings:function(rt,yt){2&rt&&e.Ikx("innerHTML",yt.renderedHTML,e.oJD)},inputs:{content:"content",title:"title",styles:"styles",classes:"classes",spin:"spin",pulse:"pulse",flip:"flip",size:"size",pull:"pull",border:"border",inverse:"inverse",rotate:"rotate",fixedWidth:"fixedWidth",transform:"transform"},features:[e.TTD],decls:0,vars:0,template:function(rt,yt){},encapsulation:2});class Un{}Un.\u0275fac=function(rt){return new(rt||Un)},Un.\u0275mod=e.oAB({type:Un}),Un.\u0275inj=e.cJS({})},9306:(Ue,q,m)=>{"use strict";m.d(q,{Acd:()=>r0,Aq:()=>P1,B$L:()=>$i,BDt:()=>__,CgH:()=>D4,CvI:()=>Mp,DL8:()=>ev,FJU:()=>Kn,FVb:()=>O1,FlN:()=>G6,FpQ:()=>Fa,HLz:()=>P5,KOR:()=>v4,Krp:()=>Ph,Mdf:()=>au,N2j:()=>Nn,NBC:()=>o7,OS1:()=>zh,Psp:()=>X0,Pyt:()=>We,Sbq:()=>rn,SoD:()=>qs,Ssp:()=>hv,SuH:()=>x4,TmZ:()=>t7,USL:()=>y7,Vei:()=>al,Vfw:()=>k_,X5K:()=>v1,XsY:()=>oi,aj4:()=>y3,b7W:()=>q6,byT:()=>xi,co4:()=>z4,d63:()=>cr,dLy:()=>V5,dT$:()=>Ws,eHv:()=>dv,gNZ:()=>Gd,hkK:()=>Qn,hnx:()=>Mv,kXW:()=>e_,kZ_:()=>n7,koM:()=>qr,mh3:()=>b1,nNP:()=>w8,q7m:()=>n8,qO$:()=>S7,r8p:()=>k8,sqG:()=>yp,vqe:()=>W7,wn1:()=>F5,wyP:()=>o1,xf3:()=>t1});var In={prefix:"fas",iconName:"angles-down",icon:[448,512,["angle-double-down"],"f103","M246.6 470.6c-12.5 12.5-32.8 12.5-45.3 0l-160-160c-12.5-12.5-12.5-32.8 0-45.3s32.8-12.5 45.3 0L224 402.7 361.4 265.4c12.5-12.5 32.8-12.5 45.3 0s12.5 32.8 0 45.3l-160 160zm160-352l-160 160c-12.5 12.5-32.8 12.5-45.3 0l-160-160c-12.5-12.5-12.5-32.8 0-45.3s32.8-12.5 45.3 0L224 210.7 361.4 73.4c12.5-12.5 32.8-12.5 45.3 0s12.5 32.8 0 45.3z"]},rn=In,Qn={prefix:"fas",iconName:"user-check",icon:[640,512,[],"f4fc","M352 128c0 70.7-57.3 128-128 128s-128-57.3-128-128S153.3 0 224 0s128 57.3 128 128zM0 482.3C0 383.8 79.8 304 178.3 304h91.4C368.2 304 448 383.8 448 482.3c0 16.4-13.3 29.7-29.7 29.7H29.7C13.3 512 0 498.7 0 482.3zM625 177L497 305c-9.4 9.4-24.6 9.4-33.9 0l-64-64c-9.4-9.4-9.4-24.6 0-33.9s24.6-9.4 33.9 0l47 47L591 143c9.4-9.4 24.6-9.4 33.9 0s9.4 24.6 0 33.9z"]},qn={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"]},Nn=qn,qs={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"]},Ba={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"]},$i=Ba,Jn={prefix:"fas",iconName:"paintbrush",icon:[576,512,[128396,"paint-brush"],"f1fc","M371.3 367.1c27.3-3.9 51.9-19.4 67.2-42.9L600.2 74.1c12.6-19.5 9.4-45.3-7.6-61.2S549.7-4.4 531.1 9.6L294.4 187.2c-24 18-38.2 46.1-38.4 76.1L371.3 367.1zm-19.6 25.4l-116-104.4C175.9 290.3 128 339.6 128 400c0 3.9 .2 7.8 .6 11.6c1.8 17.5-10.2 36.4-27.8 36.4H96c-17.7 0-32 14.3-32 32s14.3 32 32 32H240c61.9 0 112-50.1 112-112c0-2.5-.1-5-.2-7.5z"]},oi=Jn,xi={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"]},O1={prefix:"fas",iconName:"users",icon:[640,512,[],"f0c0","M144 160c-44.2 0-80-35.8-80-80S99.8 0 144 0s80 35.8 80 80s-35.8 80-80 80zm368 0c-44.2 0-80-35.8-80-80s35.8-80 80-80s80 35.8 80 80s-35.8 80-80 80zM0 298.7C0 239.8 47.8 192 106.7 192h42.7c15.9 0 31 3.5 44.6 9.7c-1.3 7.2-1.9 14.7-1.9 22.3c0 38.2 16.8 72.5 43.3 96c-.2 0-.4 0-.7 0H21.3C9.6 320 0 310.4 0 298.7zM405.3 320c-.2 0-.4 0-.7 0c26.6-23.5 43.3-57.8 43.3-96c0-7.6-.7-15-1.9-22.3c13.6-6.3 28.7-9.7 44.6-9.7h42.7C592.2 192 640 239.8 640 298.7c0 11.8-9.6 21.3-21.3 21.3H405.3zM416 224c0 53-43 96-96 96s-96-43-96-96s43-96 96-96s96 43 96 96zM128 485.3C128 411.7 187.7 352 261.3 352H378.7C452.3 352 512 411.7 512 485.3c0 14.7-11.9 26.7-26.7 26.7H154.7c-14.7 0-26.7-11.9-26.7-26.7z"]},P1={prefix:"fas",iconName:"eye-slash",icon:[640,512,[],"f070","M38.8 5.1C28.4-3.1 13.3-1.2 5.1 9.2S-1.2 34.7 9.2 42.9l592 464c10.4 8.2 25.5 6.3 33.7-4.1s6.3-25.5-4.1-33.7L525.6 386.7c39.6-40.6 66.4-86.1 79.9-118.4c3.3-7.9 3.3-16.7 0-24.6c-14.9-35.7-46.2-87.7-93-131.1C465.5 68.8 400.8 32 320 32c-68.2 0-125 26.3-169.3 60.8L38.8 5.1zM223.1 149.5C248.6 126.2 282.7 112 320 112c79.5 0 144 64.5 144 144c0 24.9-6.3 48.3-17.4 68.7L408 294.5c5.2-11.8 8-24.8 8-38.5c0-53-43-96-96-96c-2.8 0-5.6 .1-8.4 .4c5.3 9.3 8.4 20.1 8.4 31.6c0 10.2-2.4 19.8-6.6 28.3l-90.3-70.8zm223.1 298L373 389.9c-16.4 6.5-34.3 10.1-53 10.1c-79.5 0-144-64.5-144-144c0-6.9 .5-13.6 1.4-20.2L83.1 161.5C60.3 191.2 44 220.8 34.5 243.7c-3.3 7.9-3.3 16.7 0 24.6c14.9 35.7 46.2 87.7 93 131.1C174.5 443.2 239.2 480 320 480c47.8 0 89.9-12.9 126.2-32.5z"]},r0={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"]},y3={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"]},t1={prefix:"fas",iconName:"server",icon:[512,512,[],"f233","M64 32C28.7 32 0 60.7 0 96v64c0 35.3 28.7 64 64 64H448c35.3 0 64-28.7 64-64V96c0-35.3-28.7-64-64-64H64zM344 152c-13.3 0-24-10.7-24-24s10.7-24 24-24s24 10.7 24 24s-10.7 24-24 24zm96-24c0 13.3-10.7 24-24 24s-24-10.7-24-24s10.7-24 24-24s24 10.7 24 24zM64 288c-35.3 0-64 28.7-64 64v64c0 35.3 28.7 64 64 64H448c35.3 0 64-28.7 64-64V352c0-35.3-28.7-64-64-64H64zM344 408c-13.3 0-24-10.7-24-24s10.7-24 24-24s24 10.7 24 24s-10.7 24-24 24zm104-24c0 13.3-10.7 24-24 24s-24-10.7-24-24s10.7-24 24-24s24 10.7 24 24z"]},qr={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"]},o1={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"]},al={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"]},cr={prefix:"fas",iconName:"arrows-turn-right",icon:[512,512,[],"e4c0","M329.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.3L370.7 160H160c-35.3 0-64 28.7-64 64v32c0 17.7-14.3 32-32 32s-32-14.3-32-32V224C32 153.3 89.3 96 160 96H370.7L329.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.3L274.7 416H128c-17.7 0-32 14.3-32 32v32c0 17.7-14.3 32-32 32s-32-14.3-32-32V448c0-53 43-96 96-96H274.7l-41.4-41.4c-12.5-12.5-12.5-32.8 0-45.3z"]},Ph={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"]},X0={prefix:"fas",iconName:"question",icon:[320,512,[10067,10068,61736],"3f","M96 96c-17.7 0-32 14.3-32 32s-14.3 32-32 32s-32-14.3-32-32C0 75 43 32 96 32h97c70.1 0 127 56.9 127 127c0 52.4-32.2 99.4-81 118.4l-63 24.5 0 18.1c0 17.7-14.3 32-32 32s-32-14.3-32-32V301.9c0-26.4 16.2-50.1 40.8-59.6l63-24.5C240 208.3 256 185 256 159c0-34.8-28.2-63-63-63H96zm48 384c-22.1 0-40-17.9-40-40s17.9-40 40-40s40 17.9 40 40s-17.9 40-40 40z"]},Ws={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"]},zh={prefix:"fas",iconName:"chart-pie",icon:[576,512,["pie-chart"],"f200","M304 240V16.6c0-9 7-16.6 16-16.6C443.7 0 544 100.3 544 224c0 9-7.6 16-16.6 16H304zM32 272C32 150.7 122.1 50.3 239 34.3c9.2-1.3 17 6.1 17 15.4V288L412.5 444.5c6.7 6.7 6.2 17.7-1.5 23.1C371.8 495.6 323.8 512 272 512C139.5 512 32 404.6 32 272zm526.4 16c9.3 0 16.6 7.8 15.4 17c-7.7 55.9-34.6 105.6-73.9 142.3c-6 5.6-15.4 5.2-21.2-.7L320 288H558.4z"]},v4={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"]},Yf={prefix:"fas",iconName:"signs-post",icon:[512,512,["map-signs"],"f277","M224 32H64C46.3 32 32 46.3 32 64v64c0 17.7 14.3 32 32 32H441.4c4.2 0 8.3-1.7 11.3-4.7l48-48c6.2-6.2 6.2-16.4 0-22.6l-48-48c-3-3-7.1-4.7-11.3-4.7H288c0-17.7-14.3-32-32-32s-32 14.3-32 32zM480 256c0-17.7-14.3-32-32-32H288V192H224v32H70.6c-4.2 0-8.3 1.7-11.3 4.7l-48 48c-6.2 6.2-6.2 16.4 0 22.6l48 48c3 3 7.1 4.7 11.3 4.7H448c17.7 0 32-14.3 32-32V256zM288 480V384H224v96c0 17.7 14.3 32 32 32s32-14.3 32-32z"]},x4=Yf,E4={prefix:"fas",iconName:"screwdriver-wrench",icon:[512,512,["tools"],"f7d9","M78.6 5C69.1-2.4 55.6-1.5 47 7L7 47c-8.5 8.5-9.4 22-2.1 31.6l80 104c4.5 5.9 11.6 9.4 19 9.4h54.1l109 109c-14.7 29-10 65.4 14.3 89.6l112 112c12.5 12.5 32.8 12.5 45.3 0l64-64c12.5-12.5 12.5-32.8 0-45.3l-112-112c-24.2-24.2-60.6-29-89.6-14.3l-109-109V104c0-7.5-3.5-14.5-9.4-19L78.6 5zM19.9 396.1C7.2 408.8 0 426.1 0 444.1C0 481.6 30.4 512 67.9 512c18 0 35.3-7.2 48-19.9L233.7 374.3c-7.8-20.9-9-43.6-3.6-65.1l-61.7-61.7L19.9 396.1zM512 144c0-10.5-1.1-20.7-3.2-30.5c-2.4-11.2-16.1-14.1-24.2-6l-63.9 63.9c-3 3-7.1 4.7-11.3 4.7H352c-8.8 0-16-7.2-16-16V102.6c0-4.2 1.7-8.3 4.7-11.3l63.9-63.9c8.1-8.1 5.2-21.8-6-24.2C388.7 1.1 378.5 0 368 0C288.5 0 224 64.5 224 144l0 .8 85.3 85.3c36-9.1 75.8 .5 104 28.7L429 274.5c49-23 83-72.8 83-130.5zM104 432c0 13.3-10.7 24-24 24s-24-10.7-24-24s10.7-24 24-24s24 10.7 24 24z"]},D4=E4,v1={prefix:"fas",iconName:"wallet",icon:[512,512,[],"f555","M64 32C28.7 32 0 60.7 0 96V416c0 35.3 28.7 64 64 64H448c35.3 0 64-28.7 64-64V192c0-35.3-28.7-64-64-64H80c-8.8 0-16-7.2-16-16s7.2-16 16-16H448c17.7 0 32-14.3 32-32s-14.3-32-32-32H64zM416 336c-17.7 0-32-14.3-32-32s14.3-32 32-32s32 14.3 32 32s-14.3 32-32 32z"]},b1={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"]},Fa={prefix:"fas",iconName:"route",icon:[512,512,[],"f4d7","M416 256s96-96 96-160c0-53-43-96-96-96s-96 43-96 96c0 29.4 20.2 65.5 42.1 96H320c-53 0-96 43-96 96s43 96 96 96h96c17.7 0 32 14.3 32 32s-14.3 32-32 32H188.6c-6.2 9.6-12.6 18.8-19 27.2c-10.7 14.2-21.3 26.9-30 36.8H416c53 0 96-43 96-96s-43-96-96-96H320c-17.7 0-32-14.3-32-32s14.3-32 32-32h96zm0-128c-17.7 0-32-14.3-32-32s14.3-32 32-32s32 14.3 32 32s-14.3 32-32 32zM149.9 448c21.9-30.5 42.1-66.6 42.1-96c0-53-43-96-96-96s-96 43-96 96c0 64 96 160 96 160s3.5-3.5 9.2-9.6c.4-.4 .7-.8 1.1-1.2c3.3-3.5 7.1-7.8 11.4-12.8c.2-.2 .4-.4 .6-.6c9.4-10.8 20.7-24.6 31.6-39.8zM96 384c-17.7 0-32-14.3-32-32s14.3-32 32-32s32 14.3 32 32s-14.3 32-32 32z"]},au={prefix:"fas",iconName:"eye",icon:[576,512,[128065],"f06e","M288 32c-80.8 0-145.5 36.8-192.6 80.6C48.6 156 17.3 208 2.5 243.7c-3.3 7.9-3.3 16.7 0 24.6C17.3 304 48.6 356 95.4 399.4C142.5 443.2 207.2 480 288 480s145.5-36.8 192.6-80.6c46.8-43.5 78.1-95.4 93-131.1c3.3-7.9 3.3-16.7 0-24.6c-14.9-35.7-46.2-87.7-93-131.1C433.5 68.8 368.8 32 288 32zM432 256c0 79.5-64.5 144-144 144s-144-64.5-144-144s64.5-144 144-144s144 64.5 144 144zM288 192c0 35.3-28.7 64-64 64c-11.5 0-22.3-3-31.6-8.4c-.2 2.8-.4 5.5-.4 8.4c0 53 43 96 96 96s96-43 96-96s-43-96-96-96c-2.8 0-5.6 .1-8.4 .4c5.3 9.3 8.4 20.1 8.4 31.6z"]},Kd={prefix:"fas",iconName:"user-gear",icon:[640,512,["user-cog"],"f4fe","M224 256c-70.7 0-128-57.3-128-128S153.3 0 224 0s128 57.3 128 128s-57.3 128-128 128zm-45.7 48h91.4c11.8 0 23.4 1.2 34.5 3.3c-2.1 18.5 7.4 35.6 21.8 44.8c-16.6 10.6-26.7 31.6-20 53.3c4 12.9 9.4 25.5 16.4 37.6s15.2 23.1 24.4 33c15.7 16.9 39.6 18.4 57.2 8.7v.9c0 9.2 2.7 18.5 7.9 26.3H29.7C13.3 512 0 498.7 0 482.3C0 383.8 79.8 304 178.3 304zM436 218.2c0-7 4.5-13.3 11.3-14.8c10.5-2.4 21.5-3.7 32.7-3.7s22.2 1.3 32.7 3.7c6.8 1.5 11.3 7.8 11.3 14.8v30.6c7.9 3.4 15.4 7.7 22.3 12.8l24.9-14.3c6.1-3.5 13.7-2.7 18.5 2.4c7.6 8.1 14.3 17.2 20.1 27.2s10.3 20.4 13.5 31c2.1 6.7-1.1 13.7-7.2 17.2l-25 14.4c.4 4 .7 8.1 .7 12.3s-.2 8.2-.7 12.3l25 14.4c6.1 3.5 9.2 10.5 7.2 17.2c-3.3 10.6-7.8 21-13.5 31s-12.5 19.1-20.1 27.2c-4.8 5.1-12.5 5.9-18.5 2.4l-24.9-14.3c-6.9 5.1-14.3 9.4-22.3 12.8l0 30.6c0 7-4.5 13.3-11.3 14.8c-10.5 2.4-21.5 3.7-32.7 3.7s-22.2-1.3-32.7-3.7c-6.8-1.5-11.3-7.8-11.3-14.8V454.8c-8-3.4-15.6-7.7-22.5-12.9l-24.7 14.3c-6.1 3.5-13.7 2.7-18.5-2.4c-7.6-8.1-14.3-17.2-20.1-27.2s-10.3-20.4-13.5-31c-2.1-6.7 1.1-13.7 7.2-17.2l24.8-14.3c-.4-4.1-.7-8.2-.7-12.4s.2-8.3 .7-12.4L343.8 325c-6.1-3.5-9.2-10.5-7.2-17.2c3.3-10.6 7.7-21 13.5-31s12.5-19.1 20.1-27.2c4.8-5.1 12.4-5.9 18.5-2.4l24.8 14.3c6.9-5.1 14.5-9.4 22.5-12.9V218.2zm92.1 133.5c0-26.5-21.5-48-48.1-48s-48.1 21.5-48.1 48s21.5 48 48.1 48s48.1-21.5 48.1-48z"]},Gd=Kd,P_={prefix:"fas",iconName:"angles-up",icon:[448,512,["angle-double-up"],"f102","M246.6 41.4c-12.5-12.5-32.8-12.5-45.3 0l-160 160c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0L224 109.3 361.4 246.6c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3l-160-160zm160 352l-160-160c-12.5-12.5-32.8-12.5-45.3 0l-160 160c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0L224 301.3 361.4 438.6c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3z"]},k_=P_,W_={prefix:"fas",iconName:"circle-info",icon:[512,512,["info-circle"],"f05a","M256 512c141.4 0 256-114.6 256-256S397.4 0 256 0S0 114.6 0 256S114.6 512 256 512zM216 336h24V272H216c-13.3 0-24-10.7-24-24s10.7-24 24-24h48c13.3 0 24 10.7 24 24v88h8c13.3 0 24 10.7 24 24s-10.7 24-24 24H216c-13.3 0-24-10.7-24-24s10.7-24 24-24zm40-144c-17.7 0-32-14.3-32-32s14.3-32 32-32s32 14.3 32 32s-14.3 32-32 32z"]},yp=W_,G6={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"]},Mp={prefix:"fas",iconName:"money-bill-1",icon:[576,512,["money-bill-alt"],"f3d1","M64 64C28.7 64 0 92.7 0 128V384c0 35.3 28.7 64 64 64H512c35.3 0 64-28.7 64-64V128c0-35.3-28.7-64-64-64H64zm64 320H64V320c35.3 0 64 28.7 64 64zM64 192V128h64c0 35.3-28.7 64-64 64zM448 384c0-35.3 28.7-64 64-64v64H448zm64-192c-35.3 0-64-28.7-64-64h64v64zM400 256c0 61.9-50.1 112-112 112s-112-50.1-112-112s50.1-112 112-112s112 50.1 112 112zM252 208c0 9.7 6.9 17.7 16 19.6V276h-4c-11 0-20 9-20 20s9 20 20 20h24 24c11 0 20-9 20-20s-9-20-20-20h-4V208c0-11-9-20-20-20H272c-11 0-20 9-20 20z"]},z4=Mp,hm={prefix:"fas",iconName:"gear",icon:[512,512,[9881,"cog"],"f013","M495.9 166.6c3.2 8.7 .5 18.4-6.4 24.6l-43.3 39.4c1.1 8.3 1.7 16.8 1.7 25.4s-.6 17.1-1.7 25.4l43.3 39.4c6.9 6.2 9.6 15.9 6.4 24.6c-4.4 11.9-9.7 23.3-15.8 34.3l-4.7 8.1c-6.6 11-14 21.4-22.1 31.2c-5.9 7.2-15.7 9.6-24.5 6.8l-55.7-17.7c-13.4 10.3-28.2 18.9-44 25.4l-12.5 57.1c-2 9.1-9 16.3-18.2 17.8c-13.8 2.3-28 3.5-42.5 3.5s-28.7-1.2-42.5-3.5c-9.2-1.5-16.2-8.7-18.2-17.8l-12.5-57.1c-15.8-6.5-30.6-15.1-44-25.4L83.1 425.9c-8.8 2.8-18.6 .3-24.5-6.8c-8.1-9.8-15.5-20.2-22.1-31.2l-4.7-8.1c-6.1-11-11.4-22.4-15.8-34.3c-3.2-8.7-.5-18.4 6.4-24.6l43.3-39.4C64.6 273.1 64 264.6 64 256s.6-17.1 1.7-25.4L22.4 191.2c-6.9-6.2-9.6-15.9-6.4-24.6c4.4-11.9 9.7-23.3 15.8-34.3l4.7-8.1c6.6-11 14-21.4 22.1-31.2c5.9-7.2 15.7-9.6 24.5-6.8l55.7 17.7c13.4-10.3 28.2-18.9 44-25.4l12.5-57.1c2-9.1 9-16.3 18.2-17.8C227.3 1.2 241.5 0 256 0s28.7 1.2 42.5 3.5c9.2 1.5 16.2 8.7 18.2 17.8l12.5 57.1c15.8 6.5 30.6 15.1 44 25.4l55.7-17.7c8.8-2.8 18.6-.3 24.5 6.8c8.1 9.8 15.5 20.2 22.1 31.2l4.7 8.1c6.1 11 11.4 22.4 15.8 34.3zM256 336c44.2 0 80-35.8 80-80s-35.8-80-80-80s-80 35.8-80 80s35.8 80 80 80z"]},q6=hm,e_={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"]},n8={prefix:"fas",iconName:"download",icon:[512,512,[],"f019","M288 32c0-17.7-14.3-32-32-32s-32 14.3-32 32V274.7l-73.4-73.4c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3l128 128c12.5 12.5 32.8 12.5 45.3 0l128-128c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0L288 274.7V32zM64 352c-35.3 0-64 28.7-64 64v32c0 35.3 28.7 64 64 64H448c35.3 0 64-28.7 64-64V416c0-35.3-28.7-64-64-64H346.5l-45.3 45.3c-25 25-65.5 25-90.5 0L165.5 352H64zM432 456c-13.3 0-24-10.7-24-24s10.7-24 24-24s24 10.7 24 24s-10.7 24-24 24z"]},__={prefix:"fas",iconName:"bolt",icon:[448,512,[9889,"zap"],"f0e7","M349.4 44.6c5.9-13.7 1.5-29.7-10.6-38.5s-28.6-8-39.9 1.8l-256 224c-10 8.8-13.6 22.9-8.9 35.3S50.7 288 64 288H175.5L98.6 467.4c-5.9 13.7-1.5 29.7 10.6 38.5s28.6 8 39.9-1.8l256-224c10-8.8 13.6-22.9 8.9-35.3s-16.6-20.7-30-20.7H272.5L349.4 44.6z"]},We={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 0zM512 384c0 35.3-28.7 64-64 64s-64-28.7-64-64s28.7-64 64-64s64 28.7 64 64zM64 64c35.3 0 64 28.7 64 64s-28.7 64-64 64s-64-28.7-64-64S28.7 64 64 64z"]},Kn={prefix:"fas",iconName:"user-lock",icon:[640,512,[],"f502","M224 256c70.7 0 128-57.3 128-128S294.7 0 224 0S96 57.3 96 128s57.3 128 128 128zm-45.7 48C79.8 304 0 383.8 0 482.3C0 498.7 13.3 512 29.7 512H392.6c-5.4-9.4-8.6-20.3-8.6-32V352c0-2.1 .1-4.2 .3-6.3c-31-26-71-41.7-114.6-41.7H178.3zM528 240c17.7 0 32 14.3 32 32v48H496V272c0-17.7 14.3-32 32-32zm-80 32v48c-17.7 0-32 14.3-32 32V480c0 17.7 14.3 32 32 32H608c17.7 0 32-14.3 32-32V352c0-17.7-14.3-32-32-32V272c0-44.2-35.8-80-80-80s-80 35.8-80 80z"]},E8={prefix:"fas",iconName:"gauge-high",icon:[512,512,[62461,"tachometer-alt","tachometer-alt-fast"],"f625","M512 256c0 141.4-114.6 256-256 256S0 397.4 0 256S114.6 0 256 0S512 114.6 512 256zM288 96c0-17.7-14.3-32-32-32s-32 14.3-32 32s14.3 32 32 32s32-14.3 32-32zM256 416c35.3 0 64-28.7 64-64c0-17.4-6.9-33.1-18.1-44.6L366 161.7c5.3-12.1-.2-26.3-12.3-31.6s-26.3 .2-31.6 12.3L257.9 288c-.6 0-1.3 0-1.9 0c-35.3 0-64 28.7-64 64s28.7 64 64 64zM176 144c0-17.7-14.3-32-32-32s-32 14.3-32 32s14.3 32 32 32s32-14.3 32-32zM96 288c17.7 0 32-14.3 32-32s-14.3-32-32-32s-32 14.3-32 32s14.3 32 32 32zm352-32c0-17.7-14.3-32-32-32s-32 14.3-32 32s14.3 32 32 32s32-14.3 32-32z"]},P5=E8,w8={prefix:"fas",iconName:"link",icon:[640,512,[128279,"chain"],"f0c1","M579.8 267.7c56.5-56.5 56.5-148 0-204.5c-50-50-128.8-56.5-186.3-15.4l-1.6 1.1c-14.4 10.3-17.7 30.3-7.4 44.6s30.3 17.7 44.6 7.4l1.6-1.1c32.1-22.9 76-19.3 103.8 8.6c31.5 31.5 31.5 82.5 0 114L422.3 334.8c-31.5 31.5-82.5 31.5-114 0c-27.9-27.9-31.5-71.8-8.6-103.8l1.1-1.6c10.3-14.4 6.9-34.4-7.4-44.6s-34.4-6.9-44.6 7.4l-1.1 1.6C206.5 251.2 213 330 263 380c56.5 56.5 148 56.5 204.5 0L579.8 267.7zM60.2 244.3c-56.5 56.5-56.5 148 0 204.5c50 50 128.8 56.5 186.3 15.4l1.6-1.1c14.4-10.3 17.7-30.3 7.4-44.6s-30.3-17.7-44.6-7.4l-1.6 1.1c-32.1 22.9-76 19.3-103.8-8.6C74 372 74 321 105.5 289.5L217.7 177.2c31.5-31.5 82.5-31.5 114 0c27.9 27.9 31.5 71.8 8.6 103.9l-1.1 1.6c-10.3 14.4-6.9 34.4 7.4 44.6s34.4 6.9 44.6-7.4l1.1-1.6C433.5 260.8 427 182 377 132c-56.5-56.5-148-56.5-204.5 0L60.2 244.3z"]},N5={prefix:"fas",iconName:"magnifying-glass",icon:[512,512,[128269,"search"],"f002","M416 208c0 45.9-14.9 88.3-40 122.7L502.6 457.4c12.5 12.5 12.5 32.8 0 45.3s-32.8 12.5-45.3 0L330.7 376c-34.4 25.2-76.8 40-122.7 40C93.1 416 0 322.9 0 208S93.1 0 208 0S416 93.1 416 208zM208 352c79.5 0 144-64.5 144-144s-64.5-144-144-144S64 128.5 64 208s64.5 144 144 144z"]},F5=N5,V5={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"]},e7={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"]},t7=e7,n7={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"]},k8={prefix:"fas",iconName:"plus",icon:[448,512,[10133,61543,"add"],"2b","M256 80c0-17.7-14.3-32-32-32s-32 14.3-32 32V224H48c-17.7 0-32 14.3-32 32s14.3 32 32 32H192V432c0 17.7 14.3 32 32 32s32-14.3 32-32V288H400c17.7 0 32-14.3 32-32s-14.3-32-32-32H256V80z"]},g_={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"]},o7=g_,v7={prefix:"fas",iconName:"percent",icon:[384,512,[62101,62785,"percentage"],"25","M374.6 118.6c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0l-320 320c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0l320-320zM128 128c0-35.3-28.7-64-64-64S0 92.7 0 128s28.7 64 64 64s64-28.7 64-64zM384 384c0-35.3-28.7-64-64-64s-64 28.7-64 64s28.7 64 64 64s64-28.7 64-64z"]},y7=v7,L7={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"]},S7=L7,W7={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"]},$7={prefix:"fas",iconName:"scale-balanced",icon:[640,512,[9878,"balance-scale"],"f24e","M384 32H512c17.7 0 32 14.3 32 32s-14.3 32-32 32H398.4c-5.2 25.8-22.9 47.1-46.4 57.3V448H512c17.7 0 32 14.3 32 32s-14.3 32-32 32H320 128c-17.7 0-32-14.3-32-32s14.3-32 32-32H288V153.3c-23.5-10.3-41.2-31.6-46.4-57.3H128c-17.7 0-32-14.3-32-32s14.3-32 32-32H256c14.6-19.4 37.8-32 64-32s49.4 12.6 64 32zM125.8 177.3L51.1 320H204.9L130.2 177.3c-.4-.8-1.3-1.3-2.2-1.3s-1.7 .5-2.2 1.3zM128 128c18.8 0 36 10.4 44.7 27l77.8 148.5c3.1 5.8 6.1 14 5.5 23.8c-.7 12.1-4.8 35.2-24.8 55.1C210.9 402.6 178.2 416 128 416s-82.9-13.4-103.2-33.5c-20-20-24.2-43-24.8-55.1c-.6-9.8 2.5-18 5.5-23.8L83.3 155c8.7-16.6 25.9-27 44.7-27zm384 48c-.9 0-1.7 .5-2.2 1.3L435.1 320H588.9L514.2 177.3c-.4-.8-1.3-1.3-2.2-1.3zm-44.7-21c8.7-16.6 25.9-27 44.7-27s36 10.4 44.7 27l77.8 148.5c3.1 5.8 6.1 14 5.5 23.8c-.7 12.1-4.8 35.2-24.8 55.1C594.9 402.6 562.2 416 512 416s-82.9-13.4-103.2-33.5c-20-20-24.2-43-24.8-55.1c-.6-9.8 2.5-18 5.5-23.8L467.3 155z"]},ev=$7,N8={prefix:"fas",iconName:"triangle-exclamation",icon:[512,512,[9888,"exclamation-triangle","warning"],"f071","M256 32c14.2 0 27.3 7.5 34.5 19.8l216 368c7.3 12.4 7.3 27.7 .2 40.1S486.3 480 472 480H40c-14.3 0-27.6-7.7-34.7-20.1s-7-27.8 .2-40.1l216-368C228.7 39.5 241.8 32 256 32zm0 128c-13.3 0-24 10.7-24 24V296c0 13.3 10.7 24 24 24s24-10.7 24-24V184c0-13.3-10.7-24-24-24zm32 224c0-17.7-14.3-32-32-32s-32 14.3-32 32s14.3 32 32 32s32-14.3 32-32z"]},dv=N8,uv={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"]},hv=uv,Mv={prefix:"fas",iconName:"user-clock",icon:[640,512,[],"f4fd","M224 256c-70.7 0-128-57.3-128-128S153.3 0 224 0s128 57.3 128 128s-57.3 128-128 128zm-45.7 48h91.4c20.6 0 40.4 3.5 58.8 9.9C323 331 320 349.1 320 368c0 59.5 29.5 112.1 74.8 144H29.7C13.3 512 0 498.7 0 482.3C0 383.8 79.8 304 178.3 304zM640 368c0 79.5-64.5 144-144 144s-144-64.5-144-144s64.5-144 144-144s144 64.5 144 144zM496 288c-8.8 0-16 7.2-16 16v64c0 8.8 7.2 16 16 16h48c8.8 0 16-7.2 16-16s-7.2-16-16-16H512V304c0-8.8-7.2-16-16-16z"]}},3599:(Ue,q,m)=>{"use strict";m.d(q,{eX:()=>ke,sQ:()=>Gt,GW:()=>n,l4:()=>Ke});var S,dt,e=m(9263),t=m(833),_=m(6646),E=m(253),s=m(23),D=m(591),u=m(745),k=m(5474),p=m(2971);(dt=S||(S={})).NEXT="N",dt.ERROR="E",dt.COMPLETE="C";class A{constructor(se,J,oe){this.kind=se,this.value=J,this.error=oe,this.hasValue="N"===se}observe(se){return P(this,se)}do(se,J,oe){const{kind:De,value:Ye,error:Dt}=this;return"N"===De?se?.(Ye):"E"===De?J?.(Dt):oe?.()}accept(se,J,oe){var De;return(0,p.m)(null===(De=se)||void 0===De?void 0:De.next)?this.observe(se):this.do(se,J,oe)}toObservable(){const{kind:se,value:J,error:oe}=this,De="N"===se?(0,u.of)(J):"E"===se?(0,k._)(()=>oe):"C"===se?D.E:0;if(!De)throw new TypeError(`Unexpected notification kind ${se}`);return De}static createNext(se){return new A("N",se)}static createError(se){return new A("E",void 0,se)}static createComplete(){return A.completeNotification}}function P(dt,se){var J,oe,De;const{kind:Ye,value:Dt,error:ut}=dt;if("string"!=typeof Ye)throw new TypeError('Invalid notification, missing "kind"');"N"===Ye?null===(J=se.next)||void 0===J||J.call(se,Dt):"E"===Ye?null===(oe=se.error)||void 0===oe||oe.call(se,ut):null===(De=se.complete)||void 0===De||De.call(se)}A.completeNotification=new A("C");var M=m(1944),z=m(3945);var W=m(635),Z=m(3158),Q=m(116),ie=m(4987);function ae(dt,se,J,oe){return(0,M.e)((De,Ye)=>{let Dt;se&&"function"!=typeof se?({duration:J,element:Dt,connector:oe}=se):Dt=se;const ut=new Map,ze=Tt=>{ut.forEach(Tt),Tt(Ye)},Me=Tt=>ze(Ht=>Ht.error(Tt));let Ce=0,Je=!1;const zt=new z.Q(Ye,Tt=>{try{const Ht=dt(Tt);let He=ut.get(Ht);if(!He){ut.set(Ht,He=oe?oe():new E.x);const $e=function At(Tt,Ht){const He=new t.y($e=>{Ce++;const $t=Ht.subscribe($e);return()=>{$t.unsubscribe(),0==--Ce&&Je&&zt.unsubscribe()}});return He.key=Tt,He}(Ht,He);if(Ye.next($e),J){const $t=(0,z.x)(He,()=>{He.complete(),$t?.unsubscribe()},void 0,void 0,()=>ut.delete(Ht));zt.add((0,ie.Xf)(J($e)).subscribe($t))}}He.next(Dt?Dt(Tt):Tt)}catch(Ht){Me(Ht)}},()=>ze(Tt=>Tt.complete()),Me,()=>ut.clear(),()=>(Je=!0,0===Ce));De.subscribe(zt)})}var _e=m(9525);function ce(dt,se){return se?J=>J.pipe(ce((oe,De)=>(0,ie.Xf)(dt(oe,De)).pipe((0,W.U)((Ye,Dt)=>se(oe,Ye,De,Dt))))):(0,M.e)((J,oe)=>{let De=0,Ye=null,Dt=!1;J.subscribe((0,z.x)(oe,ut=>{Ye||(Ye=(0,z.x)(oe,void 0,()=>{Ye=null,Dt&&oe.complete()}),(0,ie.Xf)(dt(ut,De++)).subscribe(Ye))},()=>{Dt=!0,!Ye&&oe.complete()}))})}var ue=m(9295),$=m(2560);const he={dispatch:!0,useEffectsErrorHandler:!0},w="__@ngrx/effects_create__";function n(dt,se){const J=dt(),oe={...he,...se};return Object.defineProperty(J,w,{value:oe}),J}function o(dt){return Object.getOwnPropertyNames(dt).filter(oe=>!(!dt[oe]||!dt[oe].hasOwnProperty(w))&&dt[oe][w].hasOwnProperty("dispatch")).map(oe=>({propertyName:oe,...dt[oe][w]}))}function h(dt){return Object.getPrototypeOf(dt)}const d="__@ngrx/effects__";function L(dt){return(0,e.qC)(a,h)(dt)}function B(dt){return dt.constructor.hasOwnProperty(d)}function a(dt){return B(dt)?dt.constructor[d]:[]}function N(dt){return[L,o].reduce((J,oe)=>J.concat(oe(dt)),[])}function F(dt,se,J){const oe=h(dt).constructor.name,De=N(dt).map(({propertyName:Ye,dispatch:Dt,useEffectsErrorHandler:ut})=>{const ze="function"==typeof dt[Ye]?dt[Ye]():dt[Ye],Me=ut?J(ze,se):ze;return!1===Dt?Me.pipe((0,s.l)()):Me.pipe(function I(){return(0,M.e)((dt,se)=>{dt.subscribe((0,z.x)(se,J=>{se.next(A.createNext(J))},()=>{se.next(A.createComplete()),se.complete()},J=>{se.next(A.createError(J)),se.complete()}))})}()).pipe((0,W.U)(Je=>({effect:dt[Ye],notification:Je,propertyName:Ye,sourceName:oe,sourceInstance:dt})))});return(0,_.T)(...De)}function Fe(dt,se,J=10){return dt.pipe((0,Z.K)(oe=>(se&&se.handleError(oe),J<=1?dt:Fe(dt,se,J-1))))}class ke extends t.y{constructor(se){super(),se&&(this.source=se)}lift(se){const J=new ke;return J.source=this,J.operator=se,J}}function Ke(...dt){return(0,Q.h)(se=>dt.some(J=>"string"==typeof J?J===se.type:J.type===se.type))}ke.\u0275fac=function(se){return new(se||ke)($.LFG(e.Y$))},ke.\u0275prov=$.Yz7({token:ke,factory:ke.\u0275fac,providedIn:"root"});const je=new $.OlP("@ngrx/effects Internal Root Guard"),Ve=new $.OlP("@ngrx/effects User Provided Effects"),xe=new $.OlP("@ngrx/effects Internal Root Effects"),Ze=new $.OlP("@ngrx/effects Root Effects"),Ie=new $.OlP("@ngrx/effects Internal Feature Effects"),ve=new $.OlP("@ngrx/effects Feature Effects"),et=new $.OlP("@ngrx/effects Effects Error Handler",{providedIn:"root",factory:()=>Fe}),ht="@ngrx/effects/init";(0,e.PH)(ht);function Ae(dt,se){if("N"===dt.notification.kind){const J=dt.notification.value;!function te(dt){return"function"!=typeof dt&&dt&&dt.type&&"string"==typeof dt.type}(J)&&se.handleError(new Error(`Effect ${function pe({propertyName:dt,sourceInstance:se,sourceName:J}){const oe="function"==typeof se[dt];return`"${J}.${String(dt)}${oe?"()":""}"`}(dt)} dispatched an invalid action: ${function ee(dt){try{return JSON.stringify(dt)}catch{return dt}}(J)}`))}}function _t(dt){return it(dt,"ngrxOnInitEffects")}function it(dt,se){return dt&&se in dt&&"function"==typeof dt[se]}class Ct extends E.x{constructor(se,J){super(),this.errorHandler=se,this.effectsErrorHandler=J}addEffects(se){this.next(se)}toActions(){return this.pipe(ae(h),(0,_e.z)(se=>se.pipe(ae(un))),(0,_e.z)(se=>{const J=se.pipe(ce(De=>function Bt(dt,se){return J=>{const oe=F(J,dt,se);return function Re(dt){return it(dt,"ngrxOnRunEffects")}(J)?J.ngrxOnRunEffects(oe):oe}}(this.errorHandler,this.effectsErrorHandler)(De)),(0,W.U)(De=>(Ae(De,this.errorHandler),De.notification)),(0,Q.h)(De=>"N"===De.kind&&null!=De.value),function ye(){return(0,M.e)((dt,se)=>{dt.subscribe((0,z.x)(se,J=>P(J,se)))})}()),oe=se.pipe((0,ue.q)(1),(0,Q.h)(_t),(0,W.U)(De=>De.ngrxOnInitEffects()));return(0,_.T)(J,oe)}))}}function un(dt){return function j(dt){return it(dt,"ngrxOnIdentifyEffects")}(dt)?dt.ngrxOnIdentifyEffects():""}Ct.\u0275fac=function(se){return new(se||Ct)($.LFG($.qLn),$.LFG(et))},Ct.\u0275prov=$.Yz7({token:Ct,factory:Ct.\u0275fac,providedIn:"root"});class Ut{constructor(se,J){this.effectSources=se,this.store=J,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)}}Ut.\u0275fac=function(se){return new(se||Ut)($.LFG(Ct),$.LFG(e.yh))},Ut.\u0275prov=$.Yz7({token:Ut,factory:Ut.\u0275fac,providedIn:"root"});class yn{constructor(se,J,oe,De,Ye,Dt,ut){this.sources=se,J.start(),De.forEach(ze=>se.addEffects(ze)),oe.dispatch({type:ht})}addEffects(se){this.sources.addEffects(se)}}yn.\u0275fac=function(se){return new(se||yn)($.LFG(Ct),$.LFG(Ut),$.LFG(e.yh),$.LFG(Ze),$.LFG(e.cr,8),$.LFG(e.CK,8),$.LFG(je,8))},yn.\u0275mod=$.oAB({type:yn}),yn.\u0275inj=$.cJS({});class Xt{constructor(se,J,oe,De){J.forEach(Ye=>Ye.forEach(Dt=>se.addEffects(Dt)))}}Xt.\u0275fac=function(se){return new(se||Xt)($.LFG(yn),$.LFG(ve),$.LFG(e.cr,8),$.LFG(e.CK,8))},Xt.\u0275mod=$.oAB({type:Xt}),Xt.\u0275inj=$.cJS({});class Gt{static forFeature(se=[]){return{ngModule:Xt,providers:[se,{provide:Ie,multi:!0,useValue:se},{provide:Ve,multi:!0,useValue:[]},{provide:ve,multi:!0,useFactory:In,deps:[$.zs3,Ie,Ve]}]}}static forRoot(se=[]){return{ngModule:yn,providers:[se,{provide:xe,useValue:[se]},{provide:je,useFactory:tn,deps:[[Ut,new $.FiY,new $.tp0],[xe,new $.PiD]]},{provide:Ve,multi:!0,useValue:[]},{provide:Ze,useFactory:In,deps:[$.zs3,xe,Ve]}]}}}function In(dt,se,J){const oe=[];for(const De of se)oe.push(...De);for(const De of J)oe.push(...De);return function rn(dt,se){return se.map(J=>dt.get(J))}(dt,oe)}function tn(dt,se){if((1!==se.length||0!==se[0].length)&&dt)throw new TypeError("EffectsModule.forRoot() called twice. Feature modules should use EffectsModule.forFeature() instead.");return"guarded"}Gt.\u0275fac=function(se){return new(se||Gt)},Gt.\u0275mod=$.oAB({type:Gt}),Gt.\u0275inj=$.cJS({})},5242:(__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__(2560),_ngrx_store__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(9263),rxjs__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__(591),rxjs__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__(833),rxjs__WEBPACK_IMPORTED_MODULE_11__=__webpack_require__(745),rxjs__WEBPACK_IMPORTED_MODULE_15__=__webpack_require__(6646),rxjs__WEBPACK_IMPORTED_MODULE_18__=__webpack_require__(4915),rxjs__WEBPACK_IMPORTED_MODULE_19__=__webpack_require__(6067),rxjs_operators__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__(1203),rxjs_operators__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__(116),rxjs_operators__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__(635),rxjs_operators__WEBPACK_IMPORTED_MODULE_7__=__webpack_require__(3853),rxjs_operators__WEBPACK_IMPORTED_MODULE_8__=__webpack_require__(7580),rxjs_operators__WEBPACK_IMPORTED_MODULE_9__=__webpack_require__(1989),rxjs_operators__WEBPACK_IMPORTED_MODULE_10__=__webpack_require__(3158),rxjs_operators__WEBPACK_IMPORTED_MODULE_12__=__webpack_require__(9295),rxjs_operators__WEBPACK_IMPORTED_MODULE_13__=__webpack_require__(8951),rxjs_operators__WEBPACK_IMPORTED_MODULE_14__=__webpack_require__(2673),rxjs_operators__WEBPACK_IMPORTED_MODULE_16__=__webpack_require__(7260),rxjs_operators__WEBPACK_IMPORTED_MODULE_17__=__webpack_require__(8728),rxjs_operators__WEBPACK_IMPORTED_MODULE_20__=__webpack_require__(538),rxjs_operators__WEBPACK_IMPORTED_MODULE_21__=__webpack_require__(4351);const PERFORM_ACTION="PERFORM_ACTION",REFRESH="REFRESH",RESET="RESET",ROLLBACK="ROLLBACK",COMMIT="COMMIT",SWEEP="SWEEP",TOGGLE_ACTION="TOGGLE_ACTION",SET_ACTIONS_ACTIVE="SET_ACTIONS_ACTIVE",JUMP_TO_STATE="JUMP_TO_STATE",JUMP_TO_ACTION="JUMP_TO_ACTION",IMPORT_STATE="IMPORT_STATE",LOCK_CHANGES="LOCK_CHANGES",PAUSE_RECORDING="PAUSE_RECORDING";class PerformAction{constructor(q,m){if(this.action=q,this.timestamp=m,this.type=PERFORM_ACTION,typeof q.type>"u")throw new Error('Actions may not have an undefined "type" property. Have you misspelled a constant?')}}class Refresh{constructor(){this.type=REFRESH}}class Reset{constructor(q){this.timestamp=q,this.type=RESET}}class Rollback{constructor(q){this.timestamp=q,this.type=ROLLBACK}}class Commit{constructor(q){this.timestamp=q,this.type=COMMIT}}class Sweep{constructor(){this.type=SWEEP}}class ToggleAction{constructor(q){this.id=q,this.type=TOGGLE_ACTION}}class SetActionsActive{constructor(q,m,e=!0){this.start=q,this.end=m,this.active=e,this.type=SET_ACTIONS_ACTIVE}}class JumpToState{constructor(q){this.index=q,this.type=JUMP_TO_STATE}}class JumpToAction{constructor(q){this.actionId=q,this.type=JUMP_TO_ACTION}}class ImportState{constructor(q){this.nextLiftedState=q,this.type=IMPORT_STATE}}class LockChanges{constructor(q){this.status=q,this.type=LOCK_CHANGES}}class PauseRecording{constructor(q){this.status=q,this.type=PAUSE_RECORDING}}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(Ue){const q={maxAge:!1,monitor:noMonitor,actionSanitizer:void 0,stateSanitizer:void 0,name:DEFAULT_NAME,serialize:!1,logOnly:!1,autoPause:!1,features:{pause:!0,lock:!0,persist:!0,export:!0,import:"custom",jump:!0,skip:!0,reorder:!0,dispatch:!0,test:!0}},m="function"==typeof Ue?Ue():Ue,e=!!m.logOnly&&{pause:!0,export:!0,test:!0},t=m.features||e||q.features,_=Object.assign({},q,{features:t},m);if(_.maxAge&&_.maxAge<2)throw new Error(`Devtools 'maxAge' cannot be less than 2, got ${_.maxAge}`);return _}function difference(Ue,q){return Ue.filter(m=>q.indexOf(m)<0)}function unliftState(Ue){const{computedStates:q,currentStateIndex:m}=Ue;if(m>=q.length){const{state:t}=q[q.length-1];return t}const{state:e}=q[m];return e}function unliftAction(Ue){return Ue.actionsById[Ue.nextActionId-1]}function liftAction(Ue){return new PerformAction(Ue,+Date.now())}function sanitizeActions(Ue,q){return Object.keys(q).reduce((m,e)=>{const t=Number(e);return m[t]=sanitizeAction(Ue,q[t],t),m},{})}function sanitizeAction(Ue,q,m){return{...q,action:Ue(q.action,m)}}function sanitizeStates(Ue,q){return q.map((m,e)=>({state:sanitizeState(Ue,m.state,e),error:m.error}))}function sanitizeState(Ue,q,m){return Ue(q,m)}function shouldFilterActions(Ue){return Ue.predicate||Ue.actionsSafelist||Ue.actionsBlocklist}function filterLiftedState(Ue,q,m,e){const t=[],_={},E=[];return Ue.stagedActionIds.forEach((s,D)=>{const u=Ue.actionsById[s];!u||D&&isActionFiltered(Ue.computedStates[D],u,q,m,e)||(_[s]=u,t.push(s),E.push(Ue.computedStates[D]))}),{...Ue,stagedActionIds:t,actionsById:_,computedStates:E}}function isActionFiltered(Ue,q,m,e,t){const _=m&&!m(Ue,q.action),E=e&&!q.action.type.match(e.map(D=>escapeRegExp(D)).join("|")),s=t&&q.action.type.match(t.map(D=>escapeRegExp(D)).join("|"));return _||E||s}function escapeRegExp(Ue){return Ue.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}class DevtoolsDispatcher extends _ngrx_store__WEBPACK_IMPORTED_MODULE_1__.UO{}DevtoolsDispatcher.\u0275fac=function(){let Ue;return function(m){return(Ue||(Ue=_angular_core__WEBPACK_IMPORTED_MODULE_0__.n5z(DevtoolsDispatcher)))(m||DevtoolsDispatcher)}}(),DevtoolsDispatcher.\u0275prov=_angular_core__WEBPACK_IMPORTED_MODULE_0__.Yz7({token:DevtoolsDispatcher,factory:DevtoolsDispatcher.\u0275fac});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");class DevtoolsExtension{constructor(Ue,q,m){this.config=q,this.dispatcher=m,this.devtoolsExtension=Ue,this.createActionStreams()}notify(Ue,q){if(this.devtoolsExtension)if(Ue.type===PERFORM_ACTION){if(q.isLocked||q.isPaused)return;const m=unliftState(q);if(shouldFilterActions(this.config)&&isActionFiltered(m,Ue,this.config.predicate,this.config.actionsSafelist,this.config.actionsBlocklist))return;const e=this.config.stateSanitizer?sanitizeState(this.config.stateSanitizer,m,q.currentStateIndex):m,t=this.config.actionSanitizer?sanitizeAction(this.config.actionSanitizer,Ue,q.nextActionId):Ue;this.sendToReduxDevtools(()=>this.extensionConnection.send(t,e))}else{const m={...q,stagedActionIds:q.stagedActionIds,actionsById:this.config.actionSanitizer?sanitizeActions(this.config.actionSanitizer,q.actionsById):q.actionsById,computedStates:this.config.stateSanitizer?sanitizeStates(this.config.stateSanitizer,q.computedStates):q.computedStates};this.sendToReduxDevtools(()=>this.devtoolsExtension.send(null,m,this.getExtensionConfig(this.config)))}}createChangesObservable(){return this.devtoolsExtension?new rxjs__WEBPACK_IMPORTED_MODULE_3__.y(Ue=>{const q=this.devtoolsExtension.connect(this.getExtensionConfig(this.config));return this.extensionConnection=q,q.init(),q.subscribe(m=>Ue.next(m)),q.unsubscribe}):rxjs__WEBPACK_IMPORTED_MODULE_2__.E}createActionStreams(){const Ue=this.createChangesObservable().pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_4__.B)()),q=Ue.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_5__.h)(s=>s.type===ExtensionActionTypes.START)),m=Ue.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_5__.h)(s=>s.type===ExtensionActionTypes.STOP)),e=Ue.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)(D=>D.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))),_=Ue.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_5__.h)(s=>s.type===ExtensionActionTypes.ACTION),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_6__.U)(s=>this.unwrapAction(s.payload))).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_13__.R)(m)),E=e.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_13__.R)(m));this.start$=q.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_13__.R)(m)),this.actions$=this.start$.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_14__.w)(()=>_)),this.liftedActions$=this.start$.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_14__.w)(()=>E))}unwrapAction(action){return"string"==typeof action?eval(`(${action})`):action}getExtensionConfig(Ue){const q={name:Ue.name,features:Ue.features,serialize:Ue.serialize,autoPause:Ue.autoPause??!1};return!1!==Ue.maxAge&&(q.maxAge=Ue.maxAge),q}sendToReduxDevtools(Ue){try{Ue()}catch(q){console.warn("@ngrx/store-devtools: something went wrong inside the redux devtools",q)}}}DevtoolsExtension.\u0275fac=function Ue(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});const INIT_ACTION={type:_ngrx_store__WEBPACK_IMPORTED_MODULE_1__.qg},RECOMPUTE="@ngrx/store-devtools/recompute",RECOMPUTE_ACTION={type:RECOMPUTE};function computeNextEntry(Ue,q,m,e,t){if(e)return{state:m,error:"Interrupted by an error up the chain"};let E,_=m;try{_=Ue(m,q)}catch(s){E=s.toString(),t.handleError(s)}return{state:_,error:E}}function recomputeStates(Ue,q,m,e,t,_,E,s,D){if(q>=Ue.length&&Ue.length===_.length)return Ue;const u=Ue.slice(0,q),k=_.length-(D?1:0);for(let p=q;p<k;p++){const S=_[p],A=t[S].action,P=u[p-1],M=P?P.state:e,z=P?P.error:void 0,W=E.indexOf(S)>-1?P:computeNextEntry(m,A,M,z,s);u.push(W)}return D&&u.push(Ue[Ue.length-1]),u}function liftInitialState(Ue,q){return{monitorState:q(void 0,{}),nextActionId:1,actionsById:{0:liftAction(INIT_ACTION)},stagedActionIds:[0],skippedActionIds:[],committedState:Ue,currentStateIndex:0,computedStates:[],isLocked:!1,isPaused:!1}}function liftReducerWith(Ue,q,m,e,t={}){return _=>(E,s)=>{let{monitorState:D,actionsById:u,nextActionId:k,stagedActionIds:p,skippedActionIds:S,committedState:A,currentStateIndex:P,computedStates:M,isLocked:z,isPaused:I}=E||q;function W(ie){let ae=ie,_e=p.slice(1,ae+1);for(let ce=0;ce<_e.length;ce++){if(M[ce+1].error){ae=ce,_e=p.slice(1,ae+1);break}delete u[_e[ce]]}S=S.filter(ce=>-1===_e.indexOf(ce)),p=[0,...p.slice(ae+1)],A=M[ae].state,M=M.slice(ae),P=P>ae?P-ae:0}function Z(){u={0:liftAction(INIT_ACTION)},k=1,p=[0],S=[],A=M[P].state,P=0,M=[]}E||(u=Object.create(u));let Q=0;switch(s.type){case LOCK_CHANGES:z=s.status,Q=1/0;break;case PAUSE_RECORDING:I=s.status,I?(p=[...p,k],u[k]=new PerformAction({type:"@ngrx/devtools/pause"},+Date.now()),k++,Q=p.length-1,M=M.concat(M[M.length-1]),P===p.length-2&&P++,Q=1/0):Z();break;case RESET:u={0:liftAction(INIT_ACTION)},k=1,p=[0],S=[],A=Ue,P=0,M=[];break;case COMMIT:Z();break;case ROLLBACK:u={0:liftAction(INIT_ACTION)},k=1,p=[0],S=[],P=0,M=[];break;case TOGGLE_ACTION:{const{id:ie}=s;S=-1===S.indexOf(ie)?[ie,...S]:S.filter(_e=>_e!==ie),Q=p.indexOf(ie);break}case SET_ACTIONS_ACTIVE:{const{start:ie,end:ae,active:_e}=s,ce=[];for(let ye=ie;ye<ae;ye++)ce.push(ye);S=_e?difference(S,ce):[...S,...ce],Q=p.indexOf(ie);break}case JUMP_TO_STATE:P=s.index,Q=1/0;break;case JUMP_TO_ACTION:{const ie=p.indexOf(s.actionId);-1!==ie&&(P=ie),Q=1/0;break}case SWEEP:p=difference(p,S),S=[],P=Math.min(P,p.length-1);break;case PERFORM_ACTION:{if(z)return E||q;if(I||E&&isActionFiltered(E.computedStates[P],s,t.predicate,t.actionsSafelist,t.actionsBlocklist)){const ae=M[M.length-1];M=[...M.slice(0,-1),computeNextEntry(_,s.action,ae.state,ae.error,m)],Q=1/0;break}t.maxAge&&p.length===t.maxAge&&W(1),P===p.length-1&&P++;const ie=k++;u[ie]=s,p=[...p,ie],Q=p.length-1;break}case IMPORT_STATE:({monitorState:D,actionsById:u,nextActionId:k,stagedActionIds:p,skippedActionIds:S,committedState:A,currentStateIndex:P,computedStates:M,isLocked:z,isPaused:I}=s.nextLiftedState);break;case _ngrx_store__WEBPACK_IMPORTED_MODULE_1__.qg:Q=0,t.maxAge&&p.length>t.maxAge&&(M=recomputeStates(M,Q,_,A,u,p,S,m,I),W(p.length-t.maxAge),Q=1/0);break;case _ngrx_store__WEBPACK_IMPORTED_MODULE_1__.wb:if(M.filter(ae=>ae.error).length>0)Q=0,t.maxAge&&p.length>t.maxAge&&(M=recomputeStates(M,Q,_,A,u,p,S,m,I),W(p.length-t.maxAge),Q=1/0);else{if(!I&&!z){P===p.length-1&&P++;const ae=k++;u[ae]=new PerformAction(s,+Date.now()),p=[...p,ae],Q=p.length-1,M=recomputeStates(M,Q,_,A,u,p,S,m,I)}M=M.map(ae=>({...ae,state:_(ae.state,RECOMPUTE_ACTION)})),P=p.length-1,t.maxAge&&p.length>t.maxAge&&W(p.length-t.maxAge),Q=1/0}break;default:Q=1/0}return M=recomputeStates(M,Q,_,A,u,p,S,m,I),D=e(D,s),{monitorState:D,actionsById:u,nextActionId:k,stagedActionIds:p,skippedActionIds:S,committedState:A,currentStateIndex:P,computedStates:M,isLocked:z,isPaused:I}}}class StoreDevtools{constructor(q,m,e,t,_,E,s,D){const u=liftInitialState(s,D.monitor),k=liftReducerWith(s,u,E,D.monitor,D),p=(0,rxjs__WEBPACK_IMPORTED_MODULE_15__.T)((0,rxjs__WEBPACK_IMPORTED_MODULE_15__.T)(m.asObservable().pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_16__.T)(1)),t.actions$).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_6__.U)(liftAction)),q,t.liftedActions$).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_17__.Q)(rxjs__WEBPACK_IMPORTED_MODULE_18__.N)),S=e.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_6__.U)(k)),A=new rxjs__WEBPACK_IMPORTED_MODULE_19__.t(1),P=p.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_20__.M)(S),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_21__.R)(({state:W},[Z,Q])=>{let ie=Q(W,Z);return Z.type!==PERFORM_ACTION&&shouldFilterActions(D)&&(ie=filterLiftedState(ie,D.predicate,D.actionsSafelist,D.actionsBlocklist)),t.notify(Z,ie),{state:ie,action:Z}},{state:u,action:null})).subscribe(({state:W,action:Z})=>{if(A.next(W),Z.type===PERFORM_ACTION){const Q=Z.action;_.next(Q)}}),M=t.start$.subscribe(()=>{this.refresh()}),z=A.asObservable(),I=z.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_6__.U)(unliftState));this.extensionStartSubscription=M,this.stateSubscription=P,this.dispatcher=q,this.liftedState=z,this.state=I}dispatch(q){this.dispatcher.next(q)}next(q){this.dispatcher.next(q)}error(q){}complete(){}performAction(q){this.dispatch(new PerformAction(q,+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(q){this.dispatch(new ToggleAction(q))}jumpToAction(q){this.dispatch(new JumpToAction(q))}jumpToState(q){this.dispatch(new JumpToState(q))}importState(q){this.dispatch(new ImportState(q))}lockChanges(q){this.dispatch(new LockChanges(q))}pauseRecording(q){this.dispatch(new PauseRecording(q))}}StoreDevtools.\u0275fac=function Ue(q){return new(q||StoreDevtools)(_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))},StoreDevtools.\u0275prov=_angular_core__WEBPACK_IMPORTED_MODULE_0__.Yz7({token:StoreDevtools,factory:StoreDevtools.\u0275fac});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(Ue,q){return Boolean(Ue)||q.monitor!==noMonitor}function createReduxDevtoolsExtension(){const Ue="__REDUX_DEVTOOLS_EXTENSION__";return"object"==typeof window&&typeof window[Ue]<"u"?window[Ue]:null}function provideStoreDevtools(Ue={}){return{\u0275providers:[DevtoolsExtension,DevtoolsDispatcher,StoreDevtools,{provide:INITIAL_OPTIONS,useValue:Ue},{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(Ue){return Ue.state}class StoreDevtoolsModule{static instrument(q={}){return{ngModule:StoreDevtoolsModule,providers:[...provideStoreDevtools(q).\u0275providers]}}}StoreDevtoolsModule.\u0275fac=function Ue(q){return new(q||StoreDevtoolsModule)},StoreDevtoolsModule.\u0275mod=_angular_core__WEBPACK_IMPORTED_MODULE_0__.oAB({type:StoreDevtoolsModule}),StoreDevtoolsModule.\u0275inj=_angular_core__WEBPACK_IMPORTED_MODULE_0__.cJS({})},9263:(Ue,q,m)=>{"use strict";m.d(q,{UO:()=>ue,qg:()=>ye,Y6:()=>n,mK:()=>pe,n$:()=>te,Y$:()=>Oe,FR:()=>le,yh:()=>un,CK:()=>qi,Aw:()=>Zi,cr:()=>mi,wb:()=>ee,qC:()=>ht,PH:()=>z,ZF:()=>Tt,Lq:()=>mr,P1:()=>Je,on:()=>Za,Ky:()=>I});var e=m(2560),t=m(6317),_=m(833),E=m(253),s=m(4915),D=m(8728),u=m(538),k=m(4351),p=m(635);var A=m(8977);const P={};function z(It,Ft){if(P[It]=(P[It]||0)+1,"function"==typeof Ft)return Z(It,(...En)=>({...Ft(...En),type:It}));switch(Ft?Ft._as:"empty"){case"empty":return Z(It,()=>({type:It}));case"props":return Z(It,En=>({...En,type:It}));default:throw new Error("Unexpected config.")}}function I(){return{_as:"props",_p:void 0}}function Z(It,Ft){return Object.defineProperty(Ft,"type",{value:It,writable:!1})}const ye="@ngrx/store/init";class ue extends t.X{constructor(){super({type:ye})}next(Ft){if("function"==typeof Ft)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 Ft>"u")throw new TypeError("Actions must be objects");if(typeof Ft.type>"u")throw new TypeError("Actions must have a type property");super.next(Ft)}complete(){}ngOnDestroy(){super.complete()}}ue.\u0275fac=function(Ft){return new(Ft||ue)},ue.\u0275prov=e.Yz7({token:ue,factory:ue.\u0275fac});const $=[ue],he=new e.OlP("@ngrx/store Internal Root Guard"),w=new e.OlP("@ngrx/store Internal Initial State"),n=new e.OlP("@ngrx/store Initial State"),o=new e.OlP("@ngrx/store Reducer Factory"),h=new e.OlP("@ngrx/store Internal Reducer Factory Provider"),d=new e.OlP("@ngrx/store Initial Reducers"),y=new e.OlP("@ngrx/store Internal Initial Reducers"),L=new e.OlP("@ngrx/store Store Features"),B=new e.OlP("@ngrx/store Internal Store Reducers"),v=new e.OlP("@ngrx/store Internal Feature Reducers"),a=new e.OlP("@ngrx/store Internal Feature Configs"),C=new e.OlP("@ngrx/store Internal Store Features"),N=new e.OlP("@ngrx/store Internal Feature Reducers Token"),F=new e.OlP("@ngrx/store Feature Reducers"),X=new e.OlP("@ngrx/store User Provided Meta Reducers"),Fe=new e.OlP("@ngrx/store Meta Reducers"),ke=new e.OlP("@ngrx/store Internal Resolved Meta Reducers"),Ke=new e.OlP("@ngrx/store User Runtime Checks Config"),je=new e.OlP("@ngrx/store Internal User Runtime Checks Config"),Ve=new e.OlP("@ngrx/store Internal Runtime Checks"),xe=new e.OlP("@ngrx/store Check if Action types are unique"),Ze=new e.OlP("@ngrx/store Root Store Provider"),Ie=new e.OlP("@ngrx/store Feature State Provider");function ve(It,Ft={}){const ln=Object.keys(It),En={};for(let Nn=0;Nn<ln.length;Nn++){const li=ln[Nn];"function"==typeof It[li]&&(En[li]=It[li])}const qn=Object.keys(En);return function(li,aa){li=void 0===li?Ft:li;let Ii=!1;const ea={};for(let Di=0;Di<qn.length;Di++){const Ji=qn[Di],ka=En[Ji],Yi=li[Ji],Ha=ka(Yi,aa);ea[Ji]=Ha,Ii=Ii||Ha!==Yi}return Ii?ea:li}}function ht(...It){return function(Ft){if(0===It.length)return Ft;const ln=It[It.length-1];return It.slice(0,-1).reduceRight((qn,Nn)=>Nn(qn),ln(Ft))}}function Le(It,Ft){return Array.isArray(Ft)&&Ft.length>0&&(It=ht.apply(null,[...Ft,It])),(ln,En)=>{const qn=It(ln);return(Nn,li)=>qn(Nn=void 0===Nn?En:Nn,li)}}class te extends _.y{}class pe extends ue{}const ee="@ngrx/store/update-reducers";class H extends t.X{constructor(Ft,ln,En,qn){super(qn(En,ln)),this.dispatcher=Ft,this.initialState=ln,this.reducers=En,this.reducerFactory=qn}get currentReducers(){return this.reducers}addFeature(Ft){this.addFeatures([Ft])}addFeatures(Ft){const ln=Ft.reduce((En,{reducers:qn,reducerFactory:Nn,metaReducers:li,initialState:aa,key:Ii})=>{const ea="function"==typeof qn?function Ae(It){const Ft=Array.isArray(It)&&It.length>0?ht(...It):ln=>ln;return(ln,En)=>(ln=Ft(ln),(qn,Nn)=>ln(qn=void 0===qn?En:qn,Nn))}(li)(qn,aa):Le(Nn,li)(qn,aa);return En[Ii]=ea,En},{});this.addReducers(ln)}removeFeature(Ft){this.removeFeatures([Ft])}removeFeatures(Ft){this.removeReducers(Ft.map(ln=>ln.key))}addReducer(Ft,ln){this.addReducers({[Ft]:ln})}addReducers(Ft){this.reducers={...this.reducers,...Ft},this.updateReducers(Object.keys(Ft))}removeReducer(Ft){this.removeReducers([Ft])}removeReducers(Ft){Ft.forEach(ln=>{this.reducers=function et(It,Ft){return Object.keys(It).filter(ln=>ln!==Ft).reduce((ln,En)=>Object.assign(ln,{[En]:It[En]}),{})}(this.reducers,ln)}),this.updateReducers(Ft)}updateReducers(Ft){this.next(this.reducerFactory(this.reducers,this.initialState)),this.dispatcher.next({type:ee,features:Ft})}ngOnDestroy(){this.complete()}}H.\u0275fac=function(Ft){return new(Ft||H)(e.LFG(pe),e.LFG(n),e.LFG(d),e.LFG(o))},H.\u0275prov=e.Yz7({token:H,factory:H.\u0275fac});const j=[H,{provide:te,useExisting:H},{provide:pe,useExisting:ue}];class Oe extends E.x{ngOnDestroy(){this.complete()}}Oe.\u0275fac=function(){let It;return function(ln){return(It||(It=e.n5z(Oe)))(ln||Oe)}}(),Oe.\u0275prov=e.Yz7({token:Oe,factory:Oe.\u0275fac});const Re=[Oe];class le extends _.y{}class _t extends t.X{constructor(Ft,ln,En,qn){super(qn);const aa={state:qn},Ii=Ft.pipe((0,D.Q)(s.N)).pipe((0,u.M)(ln)).pipe((0,k.R)(it,aa));this.stateSubscription=Ii.subscribe(({state:ea,action:Di})=>{this.next(ea),En.next(Di)})}ngOnDestroy(){this.stateSubscription.unsubscribe(),this.complete()}}function it(It={state:void 0},[Ft,ln]){const{state:En}=It;return{state:ln(En,Ft),action:Ft}}_t.INIT=ye,_t.\u0275fac=function(Ft){return new(Ft||_t)(e.LFG(ue),e.LFG(te),e.LFG(Oe),e.LFG(n))},_t.\u0275prov=e.Yz7({token:_t,factory:_t.\u0275fac});const Ct=[_t,{provide:le,useExisting:_t}];class un extends _.y{constructor(Ft,ln,En){super(),this.actionsObserver=ln,this.reducerManager=En,this.source=Ft}select(Ft,...ln){return Ut.call(null,Ft,...ln)(this)}lift(Ft){const ln=new un(this,this.actionsObserver,this.reducerManager);return ln.operator=Ft,ln}dispatch(Ft){this.actionsObserver.next(Ft)}next(Ft){this.actionsObserver.next(Ft)}error(Ft){this.actionsObserver.error(Ft)}complete(){this.actionsObserver.complete()}addReducer(Ft,ln){this.reducerManager.addReducer(Ft,ln)}removeReducer(Ft){this.reducerManager.removeReducer(Ft)}}un.\u0275fac=function(Ft){return new(Ft||un)(e.LFG(le),e.LFG(ue),e.LFG(H))},un.\u0275prov=e.Yz7({token:un,factory:un.\u0275fac});const Bt=[un];function Ut(It,Ft,...ln){return function(qn){let Nn;if("string"==typeof It){const li=[Ft,...ln].filter(Boolean);Nn=qn.pipe(function S(...It){const Ft=It.length;if(0===Ft)throw new Error("list of properties cannot be empty.");return(0,p.U)(ln=>{let En=ln;for(let qn=0;qn<Ft;qn++){const Nn=En?.[It[qn]];if(!(typeof Nn<"u"))return;En=Nn}return En})}(It,...li))}else{if("function"!=typeof It)throw new TypeError(`Unexpected type '${typeof It}' in select operator, expected 'string' or 'function'`);Nn=qn.pipe((0,p.U)(li=>It(li,Ft)))}return Nn.pipe((0,A.x)())}}const yn="https://ngrx.io/guide/store/configuration/runtime-checks";function Xt(It){return void 0===It}function Gt(It){return null===It}function In(It){return Array.isArray(It)}function tt(It){return"object"==typeof It&&null!==It}function dt(It){if(!function vt(It){return tt(It)&&!In(It)}(It))return!1;const Ft=Object.getPrototypeOf(It);return Ft===Object.prototype||null===Ft}function se(It){return"function"==typeof It}let De=!1;function ut(It,Ft){return It===Ft}function ze(It,Ft,ln){for(let En=0;En<It.length;En++)if(!ln(It[En],Ft[En]))return!0;return!1}function Ce(It,Ft=ut,ln=ut){let Nn,En=null,qn=null;return{memoized:function ea(){if(void 0!==Nn)return Nn.result;if(!En)return qn=It.apply(null,arguments),En=arguments,qn;if(!ze(arguments,En,Ft))return qn;const Di=It.apply(null,arguments);return En=arguments,ln(qn,Di)?qn:(qn=Di,Di)},reset:function li(){En=null,qn=null},setResult:function aa(Di){Nn={result:Di}},clearResult:function Ii(){Nn=void 0}}}function Je(...It){return function At(It,Ft={stateFn:zt}){return function(...ln){let En=ln;if(Array.isArray(En[0])){const[Di,...Ji]=En;En=[...Di,...Ji]}const qn=En.slice(0,En.length-1),Nn=En[En.length-1],li=qn.filter(Di=>Di.release&&"function"==typeof Di.release),aa=It(function(...Di){return Nn.apply(null,Di)}),Ii=Ce(function(Di,Ji){return Ft.stateFn.apply(null,[Di,qn,Ji,aa])});function ea(){Ii.reset(),aa.reset(),li.forEach(Di=>Di.release())}return Object.assign(Ii.memoized,{release:ea,projector:aa.memoized,setResult:Ii.setResult,clearResult:Ii.clearResult})}}(Ce)(...It)}function zt(It,Ft,ln,En){if(void 0===ln){const Nn=Ft.map(li=>li(It));return En.memoized.apply(null,Nn)}const qn=Ft.map(Nn=>Nn(It,ln));return En.memoized.apply(null,[...qn,ln])}function Tt(It){return Je(Ft=>{const ln=Ft[It];return!function Dt(){return De}()&&(0,e.X6Q)()&&!(It in Ft)&&console.warn(`@ngrx/store: The feature name "${It}" does not exist in the state, therefore createFeatureSelector cannot access it. Be sure it is imported in a loaded module using StoreModule.forRoot('${It}', ...) or StoreModule.forFeature('${It}', ...). If the default state is intended to be undefined, as is the case with router state, this development-only warning message can be ignored.`),ln},Ft=>Ft)}function $t(It,Ft){return Ft instanceof e.OlP?It.get(Ft):Ft}function Rt(It,Ft,ln){return ln.map((En,qn)=>{if(Ft[qn]instanceof e.OlP){const Nn=It.get(Ft[qn]);return{key:En.key,reducerFactory:Nn.reducerFactory?Nn.reducerFactory:ve,metaReducers:Nn.metaReducers?Nn.metaReducers:[],initialState:Nn.initialState}}return En})}function Jt(It,Ft){return Ft.map(En=>En instanceof e.OlP?It.get(En):En)}function Vn(It){return"function"==typeof It?It():It}function zn(It,Ft){return It.concat(Ft)}function Tn(It){if(It)throw new TypeError("The root Store has been provided more than once. Feature modules should provide feature states instead.");return"guarded"}function Mt(It){Object.freeze(It);const Ft=se(It);return Object.getOwnPropertyNames(It).forEach(ln=>{if(!ln.startsWith("\u0275")&&function oe(It,Ft){return Object.prototype.hasOwnProperty.call(It,Ft)}(It,ln)&&(!Ft||"caller"!==ln&&"callee"!==ln&&"arguments"!==ln)){const En=It[ln];(tt(En)||se(En))&&!Object.isFrozen(En)&&Mt(En)}}),It}function Be(It,Ft=[]){return(Xt(It)||Gt(It))&&0===Ft.length?{path:["root"],value:It}:Object.keys(It).reduce((En,qn)=>{if(En)return En;const Nn=It[qn];return function J(It){return se(It)&&It.hasOwnProperty("\u0275cmp")}(Nn)?En:!(Xt(Nn)||Gt(Nn)||function pn(It){return"number"==typeof It}(Nn)||function tn(It){return"boolean"==typeof It}(Nn)||function rn(It){return"string"==typeof It}(Nn)||In(Nn))&&(dt(Nn)?Be(Nn,[...Ft,qn]):{path:[...Ft,qn],value:Nn})},!1)}function ft(It,Ft){if(!1===It)return;const ln=It.path.join("."),En=new Error(`Detected unserializable ${Ft} at "${ln}". ${yn}#strict${Ft}serializability`);throw En.value=It.value,En.unserializablePath=ln,En}function Te(It){return(0,e.X6Q)()?{strictStateSerializability:!1,strictActionSerializability:!1,strictStateImmutability:!0,strictActionImmutability:!0,strictActionWithinNgZone:!1,strictActionTypeUniqueness:!1,...It}:{strictStateSerializability:!1,strictActionSerializability:!1,strictStateImmutability:!1,strictActionImmutability:!1,strictActionWithinNgZone:!1,strictActionTypeUniqueness:!1}}function pt({strictActionSerializability:It,strictStateSerializability:Ft}){return ln=>It||Ft?function Ge(It,Ft){return function(ln,En){Ft.action(En)&&ft(Be(En),"action");const qn=It(ln,En);return Ft.state()&&ft(Be(qn),"state"),qn}}(ln,{action:En=>It&&!nn(En),state:()=>Ft}):ln}function Lt({strictActionImmutability:It,strictStateImmutability:Ft}){return ln=>It||Ft?function Yn(It,Ft){return function(ln,En){const qn=Ft.action(En)?Mt(En):En,Nn=It(ln,qn);return Ft.state()?Mt(Nn):Nn}}(ln,{action:En=>It&&!nn(En),state:()=>Ft}):ln}function nn(It){return It.type.startsWith("@ngrx")}function Bn({strictActionWithinNgZone:It}){return Ft=>It?function re(It,Ft){return function(ln,En){if(Ft.action(En)&&!e.R0b.isInAngularZone())throw new Error(`Action '${En.type}' running outside NgZone. ${yn}#strictactionwithinngzone`);return It(ln,En)}}(Ft,{action:ln=>It&&!nn(ln)}):Ft}function Wn(It){return[{provide:je,useValue:It},{provide:Ke,useFactory:Mn,deps:[je]},{provide:Ve,deps:[Ke],useFactory:Te},{provide:Fe,multi:!0,deps:[Ve],useFactory:Lt},{provide:Fe,multi:!0,deps:[Ve],useFactory:pt},{provide:Fe,multi:!0,deps:[Ve],useFactory:Bn}]}function ti(){return[{provide:xe,multi:!0,deps:[Ve],useFactory:Ln}]}function Mn(It){return It}function Ln(It){if(!It.strictActionTypeUniqueness)return;const Ft=Object.entries(P).filter(([,ln])=>ln>1).map(([ln])=>ln);if(Ft.length)throw new Error(`Action types are registered more than once, ${Ft.map(ln=>`"${ln}"`).join(", ")}. ${yn}#strictactiontypeuniqueness`)}function an(It,Ft){return[{provide:he,useFactory:Tn,deps:[[un,new e.FiY,new e.tp0]]},{provide:w,useValue:Ft.initialState},{provide:n,useFactory:Vn,deps:[w]},{provide:y,useValue:It},{provide:B,useExisting:It instanceof e.OlP?It:y},{provide:d,deps:[e.zs3,y,[new e.tBr(B)]],useFactory:$t},{provide:X,useValue:Ft.metaReducers?Ft.metaReducers:[]},{provide:ke,deps:[Fe,X],useFactory:zn},{provide:h,useValue:Ft.reducerFactory?Ft.reducerFactory:ve},{provide:o,deps:[h,ke],useFactory:Le},$,j,Re,Ct,Bt,Wn(Ft.runtimeChecks),ti()]}e.Xts;e.Xts;function ha(It,Ft,ln={}){return[{provide:a,multi:!0,useValue:It instanceof Object?{}:ln},{provide:L,multi:!0,useValue:{key:It instanceof Object?It.name:It,reducerFactory:ln instanceof e.OlP||!ln.reducerFactory?ve:ln.reducerFactory,metaReducers:ln instanceof e.OlP||!ln.metaReducers?[]:ln.metaReducers,initialState:ln instanceof e.OlP||!ln.initialState?void 0:ln.initialState}},{provide:C,deps:[e.zs3,a,L],useFactory:Rt},{provide:v,multi:!0,useValue:It instanceof Object?It.reducer:Ft},{provide:N,multi:!0,useExisting:Ft instanceof e.OlP?Ft:v},{provide:F,multi:!0,deps:[e.zs3,v,[new e.tBr(N)]],useFactory:Jt},ti()]}class mi{constructor(Ft,ln,En,qn,Nn,li){}}mi.\u0275fac=function(Ft){return new(Ft||mi)(e.LFG(ue),e.LFG(te),e.LFG(Oe),e.LFG(un),e.LFG(he,8),e.LFG(xe,8))},mi.\u0275mod=e.oAB({type:mi}),mi.\u0275inj=e.cJS({});class qi{constructor(Ft,ln,En,qn,Nn){this.features=Ft,this.featureReducers=ln,this.reducerManager=En;const li=Ft.map((aa,Ii)=>{const Di=ln.shift()[Ii];return{...aa,reducers:Di,initialState:Vn(aa.initialState)}});En.addFeatures(li)}ngOnDestroy(){this.reducerManager.removeFeatures(this.features)}}qi.\u0275fac=function(Ft){return new(Ft||qi)(e.LFG(C),e.LFG(F),e.LFG(H),e.LFG(mi),e.LFG(xe,8))},qi.\u0275mod=e.oAB({type:qi}),qi.\u0275inj=e.cJS({});class Zi{static forRoot(Ft,ln={}){return{ngModule:mi,providers:[...an(Ft,ln)]}}static forFeature(Ft,ln,En={}){return{ngModule:qi,providers:[...ha(Ft,ln,En)]}}}function Za(...It){return{reducer:It.pop(),types:It.map(En=>En.type)}}function mr(It,...Ft){const ln=new Map;for(const En of Ft)for(const qn of En.types){const Nn=ln.get(qn);if(Nn){const li=(aa,Ii)=>En.reducer(Nn(aa,Ii),Ii);ln.set(qn,li)}else ln.set(qn,En.reducer)}return function(En=It,qn){const Nn=ln.get(qn.type);return Nn?Nn(En,qn):En}}Zi.\u0275fac=function(Ft){return new(Ft||Zi)},Zi.\u0275mod=e.oAB({type:Zi}),Zi.\u0275inj=e.cJS({})},8182:(Ue,q,m)=>{"use strict";m.d(q,{H5:()=>g2,K$:()=>m2,a4:()=>qd});var e=m(2560),t=m(4666),_=m(4929),E=m(7520),s=m(3280),D=m(1989),u=m(4851);function k(){}function p(f){return null==f?k:function(){return this.querySelector(f)}}function A(f){return"object"==typeof f&&"length"in f?f:Array.from(f)}function P(){return[]}function M(f){return null==f?P:function(){return this.querySelectorAll(f)}}function W(f){return function(){return this.matches(f)}}function Z(f){return function(r){return r.matches(f)}}var Q=Array.prototype.find;function ae(){return this.firstElementChild}var ce=Array.prototype.filter;function ye(){return this.children}function w(f){return new Array(f.length)}function o(f,r){this.ownerDocument=f.ownerDocument,this.namespaceURI=f.namespaceURI,this._next=null,this._parent=f,this.__data__=r}function h(f){return function(){return f}}function d(f,r,i,b,R,Y){for(var Pe,me=0,lt=r.length,gt=Y.length;me<gt;++me)(Pe=r[me])?(Pe.__data__=Y[me],b[me]=Pe):i[me]=new o(f,Y[me]);for(;me<lt;++me)(Pe=r[me])&&(R[me]=Pe)}function y(f,r,i,b,R,Y,me){var Pe,lt,vn,gt=new Map,Et=r.length,Zt=Y.length,St=new Array(Et);for(Pe=0;Pe<Et;++Pe)(lt=r[Pe])&&(St[Pe]=vn=me.call(lt,lt.__data__,Pe,r)+"",gt.has(vn)?R[Pe]=lt:gt.set(vn,lt));for(Pe=0;Pe<Zt;++Pe)vn=me.call(f,Y[Pe],Pe,Y)+"",(lt=gt.get(vn))?(b[Pe]=lt,lt.__data__=Y[Pe],gt.delete(vn)):i[Pe]=new o(f,Y[Pe]);for(Pe=0;Pe<Et;++Pe)(lt=r[Pe])&&gt.get(St[Pe])===lt&&(R[Pe]=lt)}function L(f){return f.__data__}function X(f,r){return f<r?-1:f>r?1:f>=r?0:NaN}o.prototype={constructor:o,appendChild:function(f){return this._parent.insertBefore(f,this._next)},insertBefore:function(f,r){return this._parent.insertBefore(f,r)},querySelector:function(f){return this._parent.querySelector(f)},querySelectorAll:function(f){return this._parent.querySelectorAll(f)}};var Ze="http://www.w3.org/1999/xhtml";const Ie={svg:"http://www.w3.org/2000/svg",xhtml:Ze,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function ve(f){var r=f+="",i=r.indexOf(":");return i>=0&&"xmlns"!==(r=f.slice(0,i))&&(f=f.slice(i+1)),Ie.hasOwnProperty(r)?{space:Ie[r],local:f}:f}function et(f){return function(){this.removeAttribute(f)}}function ht(f){return function(){this.removeAttributeNS(f.space,f.local)}}function Le(f,r){return function(){this.setAttribute(f,r)}}function Ae(f,r){return function(){this.setAttributeNS(f.space,f.local,r)}}function te(f,r){return function(){var i=r.apply(this,arguments);null==i?this.removeAttribute(f):this.setAttribute(f,i)}}function pe(f,r){return function(){var i=r.apply(this,arguments);null==i?this.removeAttributeNS(f.space,f.local):this.setAttributeNS(f.space,f.local,i)}}function H(f){return f.ownerDocument&&f.ownerDocument.defaultView||f.document&&f||f.defaultView}function j(f){return function(){this.style.removeProperty(f)}}function Oe(f,r,i){return function(){this.style.setProperty(f,r,i)}}function Re(f,r,i){return function(){var b=r.apply(this,arguments);null==b?this.style.removeProperty(f):this.style.setProperty(f,b,i)}}function _t(f,r){return f.style.getPropertyValue(r)||H(f).getComputedStyle(f,null).getPropertyValue(r)}function it(f){return function(){delete this[f]}}function Ct(f,r){return function(){this[f]=r}}function un(f,r){return function(){var i=r.apply(this,arguments);null==i?delete this[f]:this[f]=i}}function Ut(f){return f.trim().split(/^|\s+/)}function yn(f){return f.classList||new Xt(f)}function Xt(f){this._node=f,this._names=Ut(f.getAttribute("class")||"")}function Gt(f,r){for(var i=yn(f),b=-1,R=r.length;++b<R;)i.add(r[b])}function In(f,r){for(var i=yn(f),b=-1,R=r.length;++b<R;)i.remove(r[b])}function rn(f){return function(){Gt(this,f)}}function tn(f){return function(){In(this,f)}}function pn(f,r){return function(){(r.apply(this,arguments)?Gt:In)(this,f)}}function vt(){this.textContent=""}function dt(f){return function(){this.textContent=f}}function se(f){return function(){var r=f.apply(this,arguments);this.textContent=r??""}}function oe(){this.innerHTML=""}function De(f){return function(){this.innerHTML=f}}function Ye(f){return function(){var r=f.apply(this,arguments);this.innerHTML=r??""}}function ut(){this.nextSibling&&this.parentNode.appendChild(this)}function Me(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function Je(f){return function(){var r=this.ownerDocument,i=this.namespaceURI;return i===Ze&&r.documentElement.namespaceURI===Ze?r.createElement(f):r.createElementNS(i,f)}}function zt(f){return function(){return this.ownerDocument.createElementNS(f.space,f.local)}}function At(f){var r=ve(f);return(r.local?zt:Je)(r)}function Ht(){return null}function $e(){var f=this.parentNode;f&&f.removeChild(this)}function Rt(){var f=this.cloneNode(!1),r=this.parentNode;return r?r.insertBefore(f,this.nextSibling):f}function Jt(){var f=this.cloneNode(!0),r=this.parentNode;return r?r.insertBefore(f,this.nextSibling):f}function Yn(f){return f.trim().split(/^|\s+/).map(function(r){var i="",b=r.indexOf(".");return b>=0&&(i=r.slice(b+1),r=r.slice(0,b)),{type:r,name:i}})}function Mt(f){return function(){var r=this.__on;if(r){for(var Y,i=0,b=-1,R=r.length;i<R;++i)Y=r[i],f.type&&Y.type!==f.type||Y.name!==f.name?r[++b]=Y:this.removeEventListener(Y.type,Y.listener,Y.options);++b?r.length=b:delete this.__on}}}function Ge(f,r,i){return function(){var R,b=this.__on,Y=function Tn(f){return function(r){f.call(this,r,this.__data__)}}(r);if(b)for(var me=0,Pe=b.length;me<Pe;++me)if((R=b[me]).type===f.type&&R.name===f.name)return this.removeEventListener(R.type,R.listener,R.options),this.addEventListener(R.type,R.listener=Y,R.options=i),void(R.value=r);this.addEventListener(f.type,Y,i),R={type:f.type,name:f.name,value:r,listener:Y,options:i},b?b.push(R):this.__on=[R]}}function ft(f,r,i){var b=H(f),R=b.CustomEvent;"function"==typeof R?R=new R(r,i):(R=b.document.createEvent("Event"),i?(R.initEvent(r,i.bubbles,i.cancelable),R.detail=i.detail):R.initEvent(r,!1,!1)),f.dispatchEvent(R)}function re(f,r){return function(){return ft(this,f,r)}}function Te(f,r){return function(){return ft(this,f,r.apply(this,arguments))}}Xt.prototype={add:function(f){this._names.indexOf(f)<0&&(this._names.push(f),this._node.setAttribute("class",this._names.join(" ")))},remove:function(f){var r=this._names.indexOf(f);r>=0&&(this._names.splice(r,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(f){return this._names.indexOf(f)>=0}};var nn=[null];function Bn(f,r){this._groups=f,this._parents=r}function Wn(){return new Bn([[document.documentElement]],nn)}Bn.prototype=Wn.prototype={constructor:Bn,select:function S(f){"function"!=typeof f&&(f=p(f));for(var r=this._groups,i=r.length,b=new Array(i),R=0;R<i;++R)for(var lt,gt,Y=r[R],me=Y.length,Pe=b[R]=new Array(me),Et=0;Et<me;++Et)(lt=Y[Et])&&(gt=f.call(lt,lt.__data__,Et,Y))&&("__data__"in lt&&(gt.__data__=lt.__data__),Pe[Et]=gt);return new Bn(b,this._parents)},selectAll:function I(f){f="function"==typeof f?function z(f){return function(){var r=f.apply(this,arguments);return null==r?[]:A(r)}}(f):M(f);for(var r=this._groups,i=r.length,b=[],R=[],Y=0;Y<i;++Y)for(var lt,me=r[Y],Pe=me.length,gt=0;gt<Pe;++gt)(lt=me[gt])&&(b.push(f.call(lt,lt.__data__,gt,me)),R.push(lt));return new Bn(b,R)},selectChild:function _e(f){return this.select(null==f?ae:function ie(f){return function(){return Q.call(this.children,f)}}("function"==typeof f?f:Z(f)))},selectChildren:function $(f){return this.selectAll(null==f?ye:function ue(f){return function(){return ce.call(this.children,f)}}("function"==typeof f?f:Z(f)))},filter:function he(f){"function"!=typeof f&&(f=W(f));for(var r=this._groups,i=r.length,b=new Array(i),R=0;R<i;++R)for(var lt,Y=r[R],me=Y.length,Pe=b[R]=[],gt=0;gt<me;++gt)(lt=Y[gt])&&f.call(lt,lt.__data__,gt,Y)&&Pe.push(lt);return new Bn(b,this._parents)},data:function B(f,r){if(!arguments.length)return Array.from(this,L);var i=r?y:d,b=this._parents,R=this._groups;"function"!=typeof f&&(f=h(f));for(var Y=R.length,me=new Array(Y),Pe=new Array(Y),lt=new Array(Y),gt=0;gt<Y;++gt){var Et=b[gt],Zt=R[gt],St=Zt.length,vn=A(f.call(Et,Et&&Et.__data__,gt,b)),wn=vn.length,Zn=Pe[gt]=new Array(wn),_n=me[gt]=new Array(wn),jn=lt[gt]=new Array(St);i(Et,Zt,Zn,_n,jn,vn,r);for(var _i,gi,ni=0,$n=0;ni<wn;++ni)if(_i=Zn[ni]){for(ni>=$n&&($n=ni+1);!(gi=_n[$n])&&++$n<wn;);_i._next=gi||null}}return(me=new Bn(me,b))._enter=Pe,me._exit=lt,me},enter:function n(){return new Bn(this._enter||this._groups.map(w),this._parents)},exit:function v(){return new Bn(this._exit||this._groups.map(w),this._parents)},join:function a(f,r,i){var b=this.enter(),R=this,Y=this.exit();return b="function"==typeof f?f(b):b.append(f+""),null!=r&&(R=r(R)),null==i?Y.remove():i(Y),b&&R?b.merge(R).order():R},merge:function C(f){if(!(f instanceof Bn))throw new Error("invalid merge");for(var r=this._groups,i=f._groups,b=r.length,R=i.length,Y=Math.min(b,R),me=new Array(b),Pe=0;Pe<Y;++Pe)for(var St,lt=r[Pe],gt=i[Pe],Et=lt.length,Zt=me[Pe]=new Array(Et),vn=0;vn<Et;++vn)(St=lt[vn]||gt[vn])&&(Zt[vn]=St);for(;Pe<b;++Pe)me[Pe]=r[Pe];return new Bn(me,this._parents)},selection:function ti(){return this},order:function N(){for(var f=this._groups,r=-1,i=f.length;++r<i;)for(var me,b=f[r],R=b.length-1,Y=b[R];--R>=0;)(me=b[R])&&(Y&&4^me.compareDocumentPosition(Y)&&Y.parentNode.insertBefore(me,Y),Y=me);return this},sort:function F(f){function r(Zt,St){return Zt&&St?f(Zt.__data__,St.__data__):!Zt-!St}f||(f=X);for(var i=this._groups,b=i.length,R=new Array(b),Y=0;Y<b;++Y){for(var gt,me=i[Y],Pe=me.length,lt=R[Y]=new Array(Pe),Et=0;Et<Pe;++Et)(gt=me[Et])&&(lt[Et]=gt);lt.sort(r)}return new Bn(R,this._parents).order()},call:function Fe(){var f=arguments[0];return arguments[0]=this,f.apply(null,arguments),this},nodes:function ke(){return Array.from(this)},node:function Ke(){for(var f=this._groups,r=0,i=f.length;r<i;++r)for(var b=f[r],R=0,Y=b.length;R<Y;++R){var me=b[R];if(me)return me}return null},size:function je(){let f=0;for(const r of this)++f;return f},empty:function Ve(){return!this.node()},each:function xe(f){for(var r=this._groups,i=0,b=r.length;i<b;++i)for(var Pe,R=r[i],Y=0,me=R.length;Y<me;++Y)(Pe=R[Y])&&f.call(Pe,Pe.__data__,Y,R);return this},attr:function ee(f,r){var i=ve(f);if(arguments.length<2){var b=this.node();return i.local?b.getAttributeNS(i.space,i.local):b.getAttribute(i)}return this.each((null==r?i.local?ht:et:"function"==typeof r?i.local?pe:te:i.local?Ae:Le)(i,r))},style:function le(f,r,i){return arguments.length>1?this.each((null==r?j:"function"==typeof r?Re:Oe)(f,r,i??"")):_t(this.node(),f)},property:function Bt(f,r){return arguments.length>1?this.each((null==r?it:"function"==typeof r?un:Ct)(f,r)):this.node()[f]},classed:function tt(f,r){var i=Ut(f+"");if(arguments.length<2){for(var b=yn(this.node()),R=-1,Y=i.length;++R<Y;)if(!b.contains(i[R]))return!1;return!0}return this.each(("function"==typeof r?pn:r?rn:tn)(i,r))},text:function J(f){return arguments.length?this.each(null==f?vt:("function"==typeof f?se:dt)(f)):this.node().textContent},html:function Dt(f){return arguments.length?this.each(null==f?oe:("function"==typeof f?Ye:De)(f)):this.node().innerHTML},raise:function ze(){return this.each(ut)},lower:function Ce(){return this.each(Me)},append:function Tt(f){var r="function"==typeof f?f:At(f);return this.select(function(){return this.appendChild(r.apply(this,arguments))})},insert:function He(f,r){var i="function"==typeof f?f:At(f),b=null==r?Ht:"function"==typeof r?r:p(r);return this.select(function(){return this.insertBefore(i.apply(this,arguments),b.apply(this,arguments)||null)})},remove:function $t(){return this.each($e)},clone:function Vn(f){return this.select(f?Jt:Rt)},datum:function zn(f){return arguments.length?this.property("__data__",f):this.node().__data__},on:function Be(f,r,i){var R,me,b=Yn(f+""),Y=b.length;if(!(arguments.length<2)){for(Pe=r?Ge:Mt,R=0;R<Y;++R)this.each(Pe(b[R],r,i));return this}var Pe=this.node().__on;if(Pe)for(var Et,lt=0,gt=Pe.length;lt<gt;++lt)for(R=0,Et=Pe[lt];R<Y;++R)if((me=b[R]).type===Et.type&&me.name===Et.name)return Et.value},dispatch:function pt(f,r){return this.each(("function"==typeof r?Te:re)(f,r))},[Symbol.iterator]:function*Lt(){for(var f=this._groups,r=0,i=f.length;r<i;++r)for(var me,b=f[r],R=0,Y=b.length;R<Y;++R)(me=b[R])&&(yield me)}};const Mn=Wn;function Ln(f){return"string"==typeof f?new Bn([[document.querySelector(f)]],[document.documentElement]):new Bn([[f]],nn)}var ai={value:()=>{}};function an(){for(var b,f=0,r=arguments.length,i={};f<r;++f){if(!(b=arguments[f]+"")||b in i||/[\s.]/.test(b))throw new Error("illegal type: "+b);i[b]=[]}return new hn(i)}function hn(f){this._=f}function en(f,r){return f.trim().split(/^|\s+/).map(function(i){var b="",R=i.indexOf(".");if(R>=0&&(b=i.slice(R+1),i=i.slice(0,R)),i&&!r.hasOwnProperty(i))throw new Error("unknown type: "+i);return{type:i,name:b}})}function gn(f,r){for(var R,i=0,b=f.length;i<b;++i)if((R=f[i]).name===r)return R.value}function Qn(f,r,i){for(var b=0,R=f.length;b<R;++b)if(f[b].name===r){f[b]=ai,f=f.slice(0,b).concat(f.slice(b+1));break}return null!=i&&f.push({name:r,value:i}),f}hn.prototype=an.prototype={constructor:hn,on:function(f,r){var R,i=this._,b=en(f+"",i),Y=-1,me=b.length;if(!(arguments.length<2)){if(null!=r&&"function"!=typeof r)throw new Error("invalid callback: "+r);for(;++Y<me;)if(R=(f=b[Y]).type)i[R]=Qn(i[R],f.name,r);else if(null==r)for(R in i)i[R]=Qn(i[R],f.name,null);return this}for(;++Y<me;)if((R=(f=b[Y]).type)&&(R=gn(i[R],f.name)))return R},copy:function(){var f={},r=this._;for(var i in r)f[i]=r[i].slice();return new hn(f)},call:function(f,r){if((R=arguments.length-2)>0)for(var R,Y,i=new Array(R),b=0;b<R;++b)i[b]=arguments[b+2];if(!this._.hasOwnProperty(f))throw new Error("unknown type: "+f);for(b=0,R=(Y=this._[f]).length;b<R;++b)Y[b].value.apply(r,i)},apply:function(f,r,i){if(!this._.hasOwnProperty(f))throw new Error("unknown type: "+f);for(var b=this._[f],R=0,Y=b.length;R<Y;++R)b[R].value.apply(r,i)}};const Ei=an;function mi(f){f.preventDefault(),f.stopImmediatePropagation()}function qi(f){var r=f.document.documentElement,i=Ln(f).on("dragstart.drag",mi,!0);"onselectstart"in r?i.on("selectstart.drag",mi,!0):(r.__noselect=r.style.MozUserSelect,r.style.MozUserSelect="none")}function Zi(f,r){var i=f.document.documentElement,b=Ln(f).on("dragstart.drag",null);r&&(b.on("click.drag",mi,!0),setTimeout(function(){b.on("click.drag",null)},0)),"onselectstart"in i?b.on("selectstart.drag",null):(i.style.MozUserSelect=i.__noselect,delete i.__noselect)}function Za(f,r,i){f.prototype=r.prototype=i,i.constructor=f}function mr(f,r){var i=Object.create(f.prototype);for(var b in r)i[b]=r[b];return i}function It(){}var ln=1/.7,En="\\s*([+-]?\\d+)\\s*",qn="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*",Nn="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*",li=/^#([0-9a-f]{3,8})$/,aa=new RegExp("^rgb\\("+[En,En,En]+"\\)$"),Ii=new RegExp("^rgb\\("+[Nn,Nn,Nn]+"\\)$"),ea=new RegExp("^rgba\\("+[En,En,En,qn]+"\\)$"),Di=new RegExp("^rgba\\("+[Nn,Nn,Nn,qn]+"\\)$"),Ji=new RegExp("^hsl\\("+[qn,Nn,Nn]+"\\)$"),ka=new RegExp("^hsla\\("+[qn,Nn,Nn,qn]+"\\)$"),Yi={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 Ha(){return this.rgb().formatHex()}function La(){return this.rgb().formatRgb()}function gr(f){var r,i;return f=(f+"").trim().toLowerCase(),(r=li.exec(f))?(i=r[1].length,r=parseInt(r[1],16),6===i?Sa(r):3===i?new ra(r>>8&15|r>>4&240,r>>4&15|240&r,(15&r)<<4|15&r,1):8===i?fa(r>>24&255,r>>16&255,r>>8&255,(255&r)/255):4===i?fa(r>>12&15|r>>8&240,r>>8&15|r>>4&240,r>>4&15|240&r,((15&r)<<4|15&r)/255):null):(r=aa.exec(f))?new ra(r[1],r[2],r[3],1):(r=Ii.exec(f))?new ra(255*r[1]/100,255*r[2]/100,255*r[3]/100,1):(r=ea.exec(f))?fa(r[1],r[2],r[3],r[4]):(r=Di.exec(f))?fa(255*r[1]/100,255*r[2]/100,255*r[3]/100,r[4]):(r=Ji.exec(f))?is(r[1],r[2]/100,r[3]/100,1):(r=ka.exec(f))?is(r[1],r[2]/100,r[3]/100,r[4]):Yi.hasOwnProperty(f)?Sa(Yi[f]):"transparent"===f?new ra(NaN,NaN,NaN,0):null}function Sa(f){return new ra(f>>16&255,f>>8&255,255&f,1)}function fa(f,r,i,b){return b<=0&&(f=r=i=NaN),new ra(f,r,i,b)}function Ki(f){return f instanceof It||(f=gr(f)),f?new ra((f=f.rgb()).r,f.g,f.b,f.opacity):new ra}function xa(f,r,i,b){return 1===arguments.length?Ki(f):new ra(f,r,i,b??1)}function ra(f,r,i,b){this.r=+f,this.g=+r,this.b=+i,this.opacity=+b}function fo(){return"#"+js(this.r)+js(this.g)+js(this.b)}function za(){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 js(f){return((f=Math.max(0,Math.min(255,Math.round(f)||0)))<16?"0":"")+f.toString(16)}function is(f,r,i,b){return b<=0?f=r=i=NaN:i<=0||i>=1?f=r=NaN:r<=0&&(f=NaN),new Ta(f,r,i,b)}function Qi(f){if(f instanceof Ta)return new Ta(f.h,f.s,f.l,f.opacity);if(f instanceof It||(f=gr(f)),!f)return new Ta;if(f instanceof Ta)return f;var r=(f=f.rgb()).r/255,i=f.g/255,b=f.b/255,R=Math.min(r,i,b),Y=Math.max(r,i,b),me=NaN,Pe=Y-R,lt=(Y+R)/2;return Pe?(me=r===Y?(i-b)/Pe+6*(i<b):i===Y?(b-r)/Pe+2:(r-i)/Pe+4,Pe/=lt<.5?Y+R:2-Y-R,me*=60):Pe=lt>0&&lt<1?0:me,new Ta(me,Pe,lt,f.opacity)}function Ta(f,r,i,b){this.h=+f,this.s=+r,this.l=+i,this.opacity=+b}function Is(f,r,i){return 255*(f<60?r+(i-r)*f/60:f<180?i:f<240?r+(i-r)*(240-f)/60:r)}function Ua(f,r,i,b,R){var Y=f*f,me=Y*f;return((1-3*f+3*Y-me)*r+(4-6*Y+3*me)*i+(1+3*f+3*Y-3*me)*b+me*R)/6}Za(It,gr,{copy:function(f){return Object.assign(new this.constructor,this,f)},displayable:function(){return this.rgb().displayable()},hex:Ha,formatHex:Ha,formatHsl:function Hi(){return Qi(this).formatHsl()},formatRgb:La,toString:La}),Za(ra,xa,mr(It,{brighter:function(f){return f=null==f?ln:Math.pow(ln,f),new ra(this.r*f,this.g*f,this.b*f,this.opacity)},darker:function(f){return f=null==f?.7:Math.pow(.7,f),new ra(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:fo,formatHex:fo,formatRgb:za,toString:za})),Za(Ta,function Gr(f,r,i,b){return 1===arguments.length?Qi(f):new Ta(f,r,i,b??1)},mr(It,{brighter:function(f){return f=null==f?ln:Math.pow(ln,f),new Ta(this.h,this.s,this.l*f,this.opacity)},darker:function(f){return f=null==f?.7:Math.pow(.7,f),new Ta(this.h,this.s,this.l*f,this.opacity)},rgb:function(){var f=this.h%360+360*(this.h<0),r=isNaN(f)||isNaN(this.s)?0:this.s,i=this.l,b=i+(i<.5?i:1-i)*r,R=2*i-b;return new ra(Is(f>=240?f-240:f+120,R,b),Is(f,R,b),Is(f<120?f+240:f-120,R,b),this.opacity)},displayable:function(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl:function(){var f=this.opacity;return(1===(f=isNaN(f)?1:Math.max(0,Math.min(1,f)))?"hsl(":"hsla(")+(this.h||0)+", "+100*(this.s||0)+"%, "+100*(this.l||0)+"%"+(1===f?")":", "+f+")")}}));const vr=f=>()=>f;function Or(f,r){return function(i){return f+i*r}}function nr(f){return 1==(f=+f)?Pr:function(r,i){return i-r?function qs(f,r,i){return f=Math.pow(f,i),r=Math.pow(r,i)-f,i=1/i,function(b){return Math.pow(f+b*r,i)}}(r,i,f):vr(isNaN(r)?i:r)}}function Pr(f,r){var i=r-f;return i?Or(f,i):vr(isNaN(f)?r:f)}const Xs=function f(r){var i=nr(r);function b(R,Y){var me=i((R=xa(R)).r,(Y=xa(Y)).r),Pe=i(R.g,Y.g),lt=i(R.b,Y.b),gt=Pr(R.opacity,Y.opacity);return function(Et){return R.r=me(Et),R.g=Pe(Et),R.b=lt(Et),R.opacity=gt(Et),R+""}}return b.gamma=f,b}(1);function pa(f){return function(r){var me,Pe,i=r.length,b=new Array(i),R=new Array(i),Y=new Array(i);for(me=0;me<i;++me)Pe=xa(r[me]),b[me]=Pe.r||0,R[me]=Pe.g||0,Y[me]=Pe.b||0;return b=f(b),R=f(R),Y=f(Y),Pe.opacity=1,function(lt){return Pe.r=b(lt),Pe.g=R(lt),Pe.b=Y(lt),Pe+""}}}pa(function Ls(f){var r=f.length-1;return function(i){var b=i<=0?i=0:i>=1?(i=1,r-1):Math.floor(i*r),R=f[b],Y=f[b+1],me=b>0?f[b-1]:2*R-Y,Pe=b<r-1?f[b+2]:2*Y-R;return Ua((i-b/r)*r,me,R,Y,Pe)}}),pa(function Ca(f){var r=f.length;return function(i){var b=Math.floor(((i%=1)<0?++i:i)*r),R=f[(b+r-1)%r],Y=f[b%r],me=f[(b+1)%r],Pe=f[(b+2)%r];return Ua((i-b/r)*r,R,Y,me,Pe)}});function Ja(f,r){var me,i=r?r.length:0,b=f?Math.min(i,f.length):0,R=new Array(b),Y=new Array(i);for(me=0;me<b;++me)R[me]=xt(f[me],r[me]);for(;me<i;++me)Y[me]=r[me];return function(Pe){for(me=0;me<b;++me)Y[me]=R[me](Pe);return Y}}function Os(f,r){var i=new Date;return f=+f,r=+r,function(b){return i.setTime(f*(1-b)+r*b),i}}function $a(f,r){return f=+f,r=+r,function(i){return f*(1-i)+r*i}}function yr(f,r){var R,i={},b={};for(R in(null===f||"object"!=typeof f)&&(f={}),(null===r||"object"!=typeof r)&&(r={}),r)R in f?i[R]=xt(f[R],r[R]):b[R]=r[R];return function(Y){for(R in i)b[R]=i[R](Y);return b}}var sa=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,ir=new RegExp(sa.source,"g");function kr(f,r){var b,R,Y,i=sa.lastIndex=ir.lastIndex=0,me=-1,Pe=[],lt=[];for(f+="",r+="";(b=sa.exec(f))&&(R=ir.exec(r));)(Y=R.index)>i&&(Y=r.slice(i,Y),Pe[me]?Pe[me]+=Y:Pe[++me]=Y),(b=b[0])===(R=R[0])?Pe[me]?Pe[me]+=R:Pe[++me]=R:(Pe[++me]=null,lt.push({i:me,x:$a(b,R)})),i=ir.lastIndex;return i<r.length&&(Y=r.slice(i),Pe[me]?Pe[me]+=Y:Pe[++me]=Y),Pe.length<2?lt[0]?function as(f){return function(r){return f(r)+""}}(lt[0].x):function br(f){return function(){return f}}(r):(r=lt.length,function(gt){for(var Zt,Et=0;Et<r;++Et)Pe[(Zt=lt[Et]).i]=Zt.x(gt);return Pe.join("")})}function Va(f,r){r||(r=[]);var R,i=f?Math.min(r.length,f.length):0,b=r.slice();return function(Y){for(R=0;R<i;++R)b[R]=f[R]*(1-Y)+r[R]*Y;return b}}function xt(f,r){var b,i=typeof r;return null==r||"boolean"===i?vr(r):("number"===i?$a:"string"===i?(b=gr(r))?(r=b,Xs):kr:r instanceof gr?Xs:r instanceof Date?Os:function dn(f){return ArrayBuffer.isView(f)&&!(f instanceof DataView)}(r)?Va:Array.isArray(r)?Ja:"function"!=typeof r.valueOf&&"function"!=typeof r.toString||isNaN(r)?yr:$a)(f,r)}function Fn(f,r){if(f=function Nt(f){let r;for(;r=f.sourceEvent;)f=r;return f}(f),void 0===r&&(r=f.currentTarget),r){var i=r.ownerSVGElement||r;if(i.createSVGPoint){var b=i.createSVGPoint();return b.x=f.clientX,b.y=f.clientY,[(b=b.matrixTransform(r.getScreenCTM().inverse())).x,b.y]}if(r.getBoundingClientRect){var R=r.getBoundingClientRect();return[f.clientX-R.left-r.clientLeft,f.clientY-R.top-r.clientTop]}}return[f.pageX,f.pageY]}var la,Li,ri=0,Bi=0,Xi=0,rs=0,Rr=0,Zr=0,ca="object"==typeof performance&&performance.now?performance:Date,si="object"==typeof window&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(f){setTimeout(f,17)};function ar(){return Rr||(si(Ps),Rr=ca.now()+Zr)}function Ps(){Rr=0}function bt(){this._call=this._time=this._next=null}function be(f,r,i){var b=new bt;return b.restart(f,r,i),b}function Yt(){Rr=(rs=ca.now())+Zr,ri=Bi=0;try{!function ct(){ar(),++ri;for(var r,f=la;f;)(r=Rr-f._time)>=0&&f._call.call(null,r),f=f._next;--ri}()}finally{ri=0,function Ti(){for(var f,i,r=la,b=1/0;r;)r._call?(b>r._time&&(b=r._time),f=r,r=r._next):(i=r._next,r._next=null,r=f?f._next=i:la=i);Li=f,rr(b)}(),Rr=0}}function Pn(){var f=ca.now(),r=f-rs;r>1e3&&(Zr-=r,rs=f)}function rr(f){ri||(Bi&&(Bi=clearTimeout(Bi)),f-Rr>24?(f<1/0&&(Bi=setTimeout(Yt,f-ca.now()-Zr)),Xi&&(Xi=clearInterval(Xi))):(Xi||(rs=ca.now(),Xi=setInterval(Pn,1e3)),ri=1,si(Yt)))}function gs(f,r,i){var b=new bt;return r=null==r?0:+r,b.restart(R=>{b.stop(),f(R+r)},r,i),b}bt.prototype=be.prototype={constructor:bt,restart:function(f,r,i){if("function"!=typeof f)throw new TypeError("callback is not a function");i=(null==i?ar():+i)+(null==r?0:+r),!this._next&&Li!==this&&(Li?Li._next=this:la=this,Li=this),this._call=f,this._time=i,rr()},stop:function(){this._call&&(this._call=null,this._time=1/0,rr())}};var Oo=Ei("start","end","cancel","interrupt"),$s=[];function Br(f,r,i,b,R,Y){var me=f.__transition;if(me){if(i in me)return}else f.__transition={};!function Hn(f,r,i){var R,b=f.__transition;function Y(gt){i.state=1,i.timer.restart(me,i.delay,i.time),i.delay<=gt&&me(gt-i.delay)}function me(gt){var Et,Zt,St,vn;if(1!==i.state)return lt();for(Et in b)if((vn=b[Et]).name===i.name){if(3===vn.state)return gs(me);4===vn.state?(vn.state=6,vn.timer.stop(),vn.on.call("interrupt",f,f.__data__,vn.index,vn.group),delete b[Et]):+Et<r&&(vn.state=6,vn.timer.stop(),vn.on.call("cancel",f,f.__data__,vn.index,vn.group),delete b[Et])}if(gs(function(){3===i.state&&(i.state=4,i.timer.restart(Pe,i.delay,i.time),Pe(gt))}),i.state=2,i.on.call("start",f,f.__data__,i.index,i.group),2===i.state){for(i.state=3,R=new Array(St=i.tween.length),Et=0,Zt=-1;Et<St;++Et)(vn=i.tween[Et].value.call(f,f.__data__,i.index,i.group))&&(R[++Zt]=vn);R.length=Zt+1}}function Pe(gt){for(var Et=gt<i.duration?i.ease.call(null,gt/i.duration):(i.timer.restart(lt),i.state=5,1),Zt=-1,St=R.length;++Zt<St;)R[Zt].call(f,Et);5===i.state&&(i.on.call("end",f,f.__data__,i.index,i.group),lt())}function lt(){for(var gt in i.state=6,i.timer.stop(),delete b[r],b)return;delete f.__transition}b[r]=i,i.timer=be(Y,0,i.time)}(f,i,{name:r,index:b,group:R,on:Oo,tween:$s,time:Y.time,delay:Y.delay,duration:Y.duration,ease:Y.ease,timer:null,state:0})}function _o(f,r){var i=$i(f,r);if(i.state>0)throw new Error("too late; already scheduled");return i}function Ba(f,r){var i=$i(f,r);if(i.state>3)throw new Error("too late; already running");return i}function $i(f,r){var i=f.__transition;if(!i||!(i=i[r]))throw new Error("transition not found");return i}function vs(f,r){var b,R,me,i=f.__transition,Y=!0;if(i){for(me in r=null==r?null:r+"",i)(b=i[me]).name===r?(R=b.state>2&&b.state<5,b.state=6,b.timer.stop(),b.on.call(R?"interrupt":"cancel",f,f.__data__,b.index,b.group),delete i[me]):Y=!1;Y&&delete f.__transition}}var ss,Gn=180/Math.PI,Hs={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function Wa(f,r,i,b,R,Y){var me,Pe,lt;return(me=Math.sqrt(f*f+r*r))&&(f/=me,r/=me),(lt=f*i+r*b)&&(i-=f*lt,b-=r*lt),(Pe=Math.sqrt(i*i+b*b))&&(i/=Pe,b/=Pe,lt/=Pe),f*b<r*i&&(f=-f,r=-r,lt=-lt,me=-me),{translateX:R,translateY:Y,rotate:Math.atan2(r,f)*Gn,skewX:Math.atan(lt)*Gn,scaleX:me,scaleY:Pe}}function Yr(f,r,i,b){function R(gt){return gt.length?gt.pop()+" ":""}return function(gt,Et){var Zt=[],St=[];return gt=f(gt),Et=f(Et),function Y(gt,Et,Zt,St,vn,wn){if(gt!==Zt||Et!==St){var Zn=vn.push("translate(",null,r,null,i);wn.push({i:Zn-4,x:$a(gt,Zt)},{i:Zn-2,x:$a(Et,St)})}else(Zt||St)&&vn.push("translate("+Zt+r+St+i)}(gt.translateX,gt.translateY,Et.translateX,Et.translateY,Zt,St),function me(gt,Et,Zt,St){gt!==Et?(gt-Et>180?Et+=360:Et-gt>180&&(gt+=360),St.push({i:Zt.push(R(Zt)+"rotate(",null,b)-2,x:$a(gt,Et)})):Et&&Zt.push(R(Zt)+"rotate("+Et+b)}(gt.rotate,Et.rotate,Zt,St),function Pe(gt,Et,Zt,St){gt!==Et?St.push({i:Zt.push(R(Zt)+"skewX(",null,b)-2,x:$a(gt,Et)}):Et&&Zt.push(R(Zt)+"skewX("+Et+b)}(gt.skewX,Et.skewX,Zt,St),function lt(gt,Et,Zt,St,vn,wn){if(gt!==Zt||Et!==St){var Zn=vn.push(R(vn)+"scale(",null,",",null,")");wn.push({i:Zn-4,x:$a(gt,Zt)},{i:Zn-2,x:$a(Et,St)})}else(1!==Zt||1!==St)&&vn.push(R(vn)+"scale("+Zt+","+St+")")}(gt.scaleX,gt.scaleY,Et.scaleX,Et.scaleY,Zt,St),gt=Et=null,function(vn){for(var _n,wn=-1,Zn=St.length;++wn<Zn;)Zt[(_n=St[wn]).i]=_n.x(vn);return Zt.join("")}}}var Po=Yr(function zs(f){const r=new("function"==typeof DOMMatrix?DOMMatrix:WebKitCSSMatrix)(f+"");return r.isIdentity?Hs:Wa(r.a,r.b,r.c,r.d,r.e,r.f)},"px, ","px)","deg)"),Vc=Yr(function to(f){return null!=f&&(ss||(ss=document.createElementNS("http://www.w3.org/2000/svg","g")),ss.setAttribute("transform",f),f=ss.transform.baseVal.consolidate())?Wa((f=f.matrix).a,f.b,f.c,f.d,f.e,f.f):Hs},", ",")",")");function Wc(f,r){var i,b;return function(){var R=Ba(this,f),Y=R.tween;if(Y!==i)for(var me=0,Pe=(b=i=Y).length;me<Pe;++me)if(b[me].name===r){(b=b.slice()).splice(me,1);break}R.tween=b}}function Kc(f,r,i){var b,R;if("function"!=typeof i)throw new Error;return function(){var Y=Ba(this,f),me=Y.tween;if(me!==b){R=(b=me).slice();for(var Pe={name:r,value:i},lt=0,gt=R.length;lt<gt;++lt)if(R[lt].name===r){R[lt]=Pe;break}lt===gt&&R.push(Pe)}Y.tween=R}}function Go(f,r,i){var b=f._id;return f.each(function(){var R=Ba(this,b);(R.value||(R.value={}))[r]=i.apply(this,arguments)}),function(R){return $i(R,b).value[r]}}function Zo(f,r){var i;return("number"==typeof r?$a:r instanceof gr?Xs:(i=gr(r))?(r=i,Xs):kr)(f,r)}function ko(f){return function(){this.removeAttribute(f)}}function xr(f){return function(){this.removeAttributeNS(f.space,f.local)}}function Ro(f,r,i){var b,Y,R=i+"";return function(){var me=this.getAttribute(f);return me===R?null:me===b?Y:Y=r(b=me,i)}}function Yo(f,r,i){var b,Y,R=i+"";return function(){var me=this.getAttributeNS(f.space,f.local);return me===R?null:me===b?Y:Y=r(b=me,i)}}function ui(f,r,i){var b,R,Y;return function(){var me,lt,Pe=i(this);return null==Pe?void this.removeAttribute(f):(me=this.getAttribute(f))===(lt=Pe+"")?null:me===b&&lt===R?Y:(R=lt,Y=r(b=me,Pe))}}function ul(f,r,i){var b,R,Y;return function(){var me,lt,Pe=i(this);return null==Pe?void this.removeAttributeNS(f.space,f.local):(me=this.getAttributeNS(f.space,f.local))===(lt=Pe+"")?null:me===b&&lt===R?Y:(R=lt,Y=r(b=me,Pe))}}function ys(f,r){return function(i){this.setAttribute(f,r.call(this,i))}}function ks(f,r){return function(i){this.setAttributeNS(f.space,f.local,r.call(this,i))}}function no(f,r){var i,b;function R(){var Y=r.apply(this,arguments);return Y!==b&&(i=(b=Y)&&ks(f,Y)),i}return R._value=r,R}function os(f,r){var i,b;function R(){var Y=r.apply(this,arguments);return Y!==b&&(i=(b=Y)&&ys(f,Y)),i}return R._value=r,R}function fe(f,r){return function(){_o(this,f).delay=+r.apply(this,arguments)}}function st(f,r){return r=+r,function(){_o(this,f).delay=r}}function Vt(f,r){return function(){Ba(this,f).duration=+r.apply(this,arguments)}}function fn(f,r){return r=+r,function(){Ba(this,f).duration=r}}function Xe(f,r){if("function"!=typeof r)throw new Error;return function(){Ba(this,f).ease=r}}function qt(f,r,i){var b,R,Y=function sn(f){return(f+"").trim().split(/^|\s+/).every(function(r){var i=r.indexOf(".");return i>=0&&(r=r.slice(0,i)),!r||"start"===r})}(r)?_o:Ba;return function(){var me=Y(this,f),Pe=me.on;Pe!==b&&(R=(b=Pe).copy()).on(r,i),me.on=R}}var Si=Mn.prototype.constructor;function Qr(f){return function(){this.style.removeProperty(f)}}function Na(f,r,i){return function(b){this.style.setProperty(f,r.call(this,b),i)}}function mo(f,r,i){var b,R;function Y(){var me=r.apply(this,arguments);return me!==R&&(b=(R=me)&&Na(f,me,i)),b}return Y._value=r,Y}function Dr(f){return function(r){this.textContent=f.call(this,r)}}function lc(f){var r,i;function b(){var R=f.apply(this,arguments);return R!==i&&(r=(i=R)&&Dr(R)),r}return b._value=f,b}var S1=0;function or(f,r,i,b){this._groups=f,this._parents=r,this._name=i,this._id=b}function Mo(){return++S1}var vo=Mn.prototype;or.prototype=function _l(f){return Mn().transition(f)}.prototype={constructor:or,select:function oi(f){var r=this._name,i=this._id;"function"!=typeof f&&(f=p(f));for(var b=this._groups,R=b.length,Y=new Array(R),me=0;me<R;++me)for(var Et,Zt,Pe=b[me],lt=Pe.length,gt=Y[me]=new Array(lt),St=0;St<lt;++St)(Et=Pe[St])&&(Zt=f.call(Et,Et.__data__,St,Pe))&&("__data__"in Et&&(Zt.__data__=Et.__data__),gt[St]=Zt,Br(gt[St],r,i,St,gt,$i(Et,i)));return new or(Y,this._parents,r,i)},selectAll:function xi(f){var r=this._name,i=this._id;"function"!=typeof f&&(f=M(f));for(var b=this._groups,R=b.length,Y=[],me=[],Pe=0;Pe<R;++Pe)for(var Et,lt=b[Pe],gt=lt.length,Zt=0;Zt<gt;++Zt)if(Et=lt[Zt]){for(var vn,St=f.call(Et,Et.__data__,Zt,lt),wn=$i(Et,i),Zn=0,_n=St.length;Zn<_n;++Zn)(vn=St[Zn])&&Br(vn,r,i,Zn,St,wn);Y.push(St),me.push(Et)}return new or(Y,me,r,i)},filter:function Qe(f){"function"!=typeof f&&(f=W(f));for(var r=this._groups,i=r.length,b=new Array(i),R=0;R<i;++R)for(var lt,Y=r[R],me=Y.length,Pe=b[R]=[],gt=0;gt<me;++gt)(lt=Y[gt])&&f.call(lt,lt.__data__,gt,Y)&&Pe.push(lt);return new or(b,this._parents,this._name,this._id)},merge:function Qt(f){if(f._id!==this._id)throw new Error;for(var r=this._groups,i=f._groups,b=r.length,R=i.length,Y=Math.min(b,R),me=new Array(b),Pe=0;Pe<Y;++Pe)for(var St,lt=r[Pe],gt=i[Pe],Et=lt.length,Zt=me[Pe]=new Array(Et),vn=0;vn<Et;++vn)(St=lt[vn]||gt[vn])&&(Zt[vn]=St);for(;Pe<b;++Pe)me[Pe]=r[Pe];return new or(me,this._parents,this._name,this._id)},selection:function ur(){return new Si(this._groups,this._parents)},transition:function pl(){for(var f=this._name,r=this._id,i=Mo(),b=this._groups,R=b.length,Y=0;Y<R;++Y)for(var lt,me=b[Y],Pe=me.length,gt=0;gt<Pe;++gt)if(lt=me[gt]){var Et=$i(lt,r);Br(lt,f,i,gt,me,{time:Et.time+Et.delay+Et.duration,delay:0,duration:Et.duration,ease:Et.ease})}return new or(b,this._parents,f,i)},call:vo.call,nodes:vo.nodes,node:vo.node,size:vo.size,empty:vo.empty,each:vo.each,on:function An(f,r){var i=this._id;return arguments.length<2?$i(this.node(),i).on.on(f):this.each(qt(i,f,r))},attr:function oc(f,r){var i=ve(f),b="transform"===i?Vc:Zo;return this.attrTween(f,"function"==typeof r?(i.local?ul:ui)(i,b,Go(this,"attr."+f,r)):null==r?(i.local?xr:ko)(i):(i.local?Yo:Ro)(i,b,r))},attrTween:function Ne(f,r){var i="attr."+f;if(arguments.length<2)return(i=this.tween(i))&&i._value;if(null==r)return this.tween(i,null);if("function"!=typeof r)throw new Error;var b=ve(f);return this.tween(i,(b.local?no:os)(b,r))},style:function ls(f,r,i){var b="transform"==(f+="")?Po:Zo;return null==r?this.styleTween(f,function Cr(f,r){var i,b,R;return function(){var Y=_t(this,f),me=(this.style.removeProperty(f),_t(this,f));return Y===me?null:Y===i&&me===b?R:R=r(i=Y,b=me)}}(f,b)).on("end.style."+f,Qr(f)):"function"==typeof r?this.styleTween(f,function Ka(f,r,i){var b,R,Y;return function(){var me=_t(this,f),Pe=i(this),lt=Pe+"";return null==Pe&&(this.style.removeProperty(f),lt=Pe=_t(this,f)),me===lt?null:me===b&&lt===R?Y:(R=lt,Y=r(b=me,Pe))}}(f,b,Go(this,"style."+f,r))).each(function Ma(f,r){var i,b,R,Pe,Y="style."+r,me="end."+Y;return function(){var lt=Ba(this,f),gt=lt.on,Et=null==lt.value[Y]?Pe||(Pe=Qr(r)):void 0;(gt!==i||R!==Et)&&(b=(i=gt).copy()).on(me,R=Et),lt.on=b}}(this._id,f)):this.styleTween(f,function Mr(f,r,i){var b,Y,R=i+"";return function(){var me=_t(this,f);return me===R?null:me===b?Y:Y=r(b=me,i)}}(f,b,r),i).on("end.style."+f,null)},styleTween:function Er(f,r,i){var b="style."+(f+="");if(arguments.length<2)return(b=this.tween(b))&&b._value;if(null==r)return this.tween(b,null);if("function"!=typeof r)throw new Error;return this.tween(b,mo(f,r,i??""))},text:function hl(f){return this.tween("text","function"==typeof f?function go(f){return function(){var r=f(this);this.textContent=r??""}}(Go(this,"text",f)):function bs(f){return function(){this.textContent=f}}(null==f?"":f+""))},textTween:function fl(f){var r="text";if(arguments.length<1)return(r=this.tween(r))&&r._value;if(null==f)return this.tween(r,null);if("function"!=typeof f)throw new Error;return this.tween(r,lc(f))},remove:function Jn(){return this.on("end.remove",function Sn(f){return function(){var r=this.parentNode;for(var i in this.__transition)if(+i!==f)return;r&&r.removeChild(this)}}(this._id))},tween:function Rl(f,r){var i=this._id;if(f+="",arguments.length<2){for(var me,b=$i(this.node(),i).tween,R=0,Y=b.length;R<Y;++R)if((me=b[R]).name===f)return me.value;return null}return this.each((null==r?Wc:Kc)(i,f,r))},delay:function Ot(f){var r=this._id;return arguments.length?this.each(("function"==typeof f?fe:st)(r,f)):$i(this.node(),r).delay},duration:function Un(f){var r=this._id;return arguments.length?this.each(("function"==typeof f?Vt:fn)(r,f)):$i(this.node(),r).duration},ease:function rt(f){var r=this._id;return arguments.length?this.each(Xe(r,f)):$i(this.node(),r).ease},easeVarying:function Pt(f){if("function"!=typeof f)throw new Error;return this.each(function yt(f,r){return function(){var i=r.apply(this,arguments);if("function"!=typeof i)throw new Error;Ba(this,f).ease=i}}(this._id,f))},end:function S2(){var f,r,i=this,b=i._id,R=i.size();return new Promise(function(Y,me){var Pe={value:me},lt={value:function(){0==--R&&Y()}};i.each(function(){var gt=Ba(this,b),Et=gt.on;Et!==f&&((r=(f=Et).copy())._.cancel.push(Pe),r._.interrupt.push(Pe),r._.end.push(lt)),gt.on=r}),0===R&&Y()})},[Symbol.iterator]:vo[Symbol.iterator]};var P1={time:null,delay:0,duration:250,ease:function O1(f){return((f*=2)<=1?f*f*f:(f-=2)*f*f+2)/2}};function gl(f,r){for(var i;!(i=f.__transition)||!(i=i[r]);)if(!(f=f.parentNode))throw new Error(`transition ${r} not found`);return i}Mn.prototype.interrupt=function dl(f){return this.each(function(){vs(this,f)})},Mn.prototype.transition=function cc(f){var r,i;f instanceof or?(r=f._id,f=f._name):(r=Mo(),(i=P1).time=ar(),f=null==f?null:f+"");for(var b=this._groups,R=b.length,Y=0;Y<R;++Y)for(var lt,me=b[Y],Pe=me.length,gt=0;gt<Pe;++gt)(lt=me[gt])&&Br(lt,f,r,gt,me,i||gl(lt,r));return new or(b,this._parents,f,r)};const Qo=f=>()=>f;function io(f,{sourceEvent:r,target:i,selection:b,mode:R,dispatch:Y}){Object.defineProperties(this,{type:{value:f,enumerable:!0,configurable:!0},sourceEvent:{value:r,enumerable:!0,configurable:!0},target:{value:i,enumerable:!0,configurable:!0},selection:{value:b,enumerable:!0,configurable:!0},mode:{value:R,enumerable:!0,configurable:!0},_:{value:Y}})}function vl(f){f.stopImmediatePropagation()}function dc(f){f.preventDefault(),f.stopImmediatePropagation()}var R1={name:"drag"},Gc={name:"space"},ao={name:"handle"},Eo={name:"center"};const{abs:jo,max:Nr,min:Ar}=Math;function P2(f){return[+f[0],+f[1]]}function yl(f){return[P2(f[0]),P2(f[1])]}var Bo={name:"x",handles:["w","e"].map(va),input:function(f,r){return null==f?null:[[+f[0],r[0][1]],[+f[1],r[1][1]]]},output:function(f){return f&&[f[0][0],f[1][0]]}},ro={name:"y",handles:["n","s"].map(va),input:function(f,r){return null==f?null:[[r[0][0],+f[0]],[r[1][0],+f[1]]]},output:function(f){return f&&[f[0][1],f[1][1]]}},cs=(["n","w","e","s","nw","ne","sw","se"].map(va),{overlay:"crosshair",selection:"move",n:"ns-resize",e:"ew-resize",s:"ns-resize",w:"ew-resize",nw:"nwse-resize",ne:"nesw-resize",se:"nwse-resize",sw:"nesw-resize"}),Zc={e:"w",w:"e",nw:"ne",ne:"nw",se:"sw",sw:"se"},Do={n:"s",s:"n",nw:"sw",ne:"se",se:"ne",sw:"nw"},qo={overlay:1,selection:1,n:null,e:1,s:null,w:-1,nw:-1,ne:1,se:1,sw:-1},B1={overlay:1,selection:1,n:-1,e:null,s:1,w:null,nw:-1,ne:-1,se:1,sw:1};function va(f){return{type:f}}function vu(f){return!f.ctrlKey&&!f.button}function Yc(){var f=this.ownerSVGElement||this;return f.hasAttribute("viewBox")?[[(f=f.viewBox.baseVal).x,f.y],[f.x+f.width,f.y+f.height]]:[[0,0],[f.width.baseVal.value,f.height.baseVal.value]]}function we(){return navigator.maxTouchPoints||"ontouchstart"in this}function ne(f){for(;!f.__brush;)if(!(f=f.parentNode))return;return f.__brush}function Ee(f){return f[0][0]===f[1][0]||f[0][1]===f[1][1]}function mn(f){var Pe,r=Yc,i=vu,b=we,R=!0,Y=Ei("start","brush","end"),me=6;function lt(_n){var jn=_n.property("__brush",Zn).selectAll(".overlay").data([va("overlay")]);jn.enter().append("rect").attr("class","overlay").attr("pointer-events","all").attr("cursor",cs.overlay).merge(jn).each(function(){var $n=ne(this).extent;Ln(this).attr("x",$n[0][0]).attr("y",$n[0][1]).attr("width",$n[1][0]-$n[0][0]).attr("height",$n[1][1]-$n[0][1])}),_n.selectAll(".selection").data([va("selection")]).enter().append("rect").attr("class","selection").attr("cursor",cs.selection).attr("fill","#777").attr("fill-opacity",.3).attr("stroke","#fff").attr("shape-rendering","crispEdges");var ni=_n.selectAll(".handle").data(f.handles,function($n){return $n.type});ni.exit().remove(),ni.enter().append("rect").attr("class",function($n){return"handle handle--"+$n.type}).attr("cursor",function($n){return cs[$n.type]}),_n.each(gt).attr("fill","none").attr("pointer-events","all").on("mousedown.brush",St).filter(b).on("touchstart.brush",St).on("touchmove.brush",vn).on("touchend.brush touchcancel.brush",wn).style("touch-action","none").style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}function gt(){var _n=Ln(this),jn=ne(this).selection;jn?(_n.selectAll(".selection").style("display",null).attr("x",jn[0][0]).attr("y",jn[0][1]).attr("width",jn[1][0]-jn[0][0]).attr("height",jn[1][1]-jn[0][1]),_n.selectAll(".handle").style("display",null).attr("x",function(ni){return"e"===ni.type[ni.type.length-1]?jn[1][0]-me/2:jn[0][0]-me/2}).attr("y",function(ni){return"s"===ni.type[0]?jn[1][1]-me/2:jn[0][1]-me/2}).attr("width",function(ni){return"n"===ni.type||"s"===ni.type?jn[1][0]-jn[0][0]+me:me}).attr("height",function(ni){return"e"===ni.type||"w"===ni.type?jn[1][1]-jn[0][1]+me:me})):_n.selectAll(".selection,.handle").style("display","none").attr("x",null).attr("y",null).attr("width",null).attr("height",null)}function Et(_n,jn,ni){var $n=_n.__brush.emitter;return!$n||ni&&$n.clean?new Zt(_n,jn,ni):$n}function Zt(_n,jn,ni){this.that=_n,this.args=jn,this.state=_n.__brush,this.active=0,this.clean=ni}function St(_n){if((!Pe||_n.touches)&&i.apply(this,arguments)){var ma,yi,bi,ba,ua,Pa,Aa,_r,Ol,Pl,Ko,jn=this,ni=_n.target.__data__.type,$n="selection"===(R&&_n.metaKey?ni="overlay":ni)?R1:R&&_n.altKey?Eo:ao,_i=f===ro?null:qo[ni],gi=f===Bo?null:B1[ni],ci=ne(jn),Da=ci.extent,ia=ci.selection,qa=Da[0][0],Ai=Da[0][1],Vr=Da[1][0],_s=Da[1][1],tr=0,dr=0,Ts=_i&&gi&&R&&_n.shiftKey,ns=Array.from(_n.touches||[_n],Gi=>{const Wr=Gi.identifier;return(Gi=Fn(Gi,jn)).point0=Gi.slice(),Gi.identifier=Wr,Gi});if("overlay"===ni){ia&&(Ol=!0);const Gi=[ns[0],ns[1]||ns[0]];ci.selection=ia=[[ma=f===ro?qa:Ar(Gi[0][0],Gi[1][0]),bi=f===Bo?Ai:Ar(Gi[0][1],Gi[1][1])],[ua=f===ro?Vr:Nr(Gi[0][0],Gi[1][0]),Aa=f===Bo?_s:Nr(Gi[0][1],Gi[1][1])]],ns.length>1&&Sr()}else ma=ia[0][0],bi=ia[0][1],ua=ia[1][0],Aa=ia[1][1];yi=ma,ba=bi,Pa=ua,_r=Aa;var zc=Ln(jn).attr("pointer-events","none"),pi=zc.selectAll(".overlay").attr("cursor",cs[ni]);vs(jn);var Wi=Et(jn,arguments,!0).beforestart();if(_n.touches)Wi.moved=ei,Wi.ended=Xa;else{var ga=Ln(_n.view).on("mousemove.brush",ei,!0).on("mouseup.brush",Xa,!0);R&&ga.on("keydown.brush",Qs,!0).on("keyup.brush",Lo,!0),qi(_n.view)}gt.call(jn),Wi.start(_n,$n.name)}function ei(Gi){for(const Wr of Gi.changedTouches||[Gi])for(const pu of ns)pu.identifier===Wr.identifier&&(pu.cur=Fn(Wr,jn));if(Ts&&!Pl&&!Ko&&1===ns.length){const Wr=ns[0];jo(Wr.cur[0]-Wr[0])>jo(Wr.cur[1]-Wr[1])?Ko=!0:Pl=!0}for(const Wr of ns)Wr.cur&&(Wr[0]=Wr.cur[0],Wr[1]=Wr.cur[1]);Ol=!0,dc(Gi),Sr(Gi)}function Sr(Gi){const Wr=ns[0],pu=Wr.point0;var T2;switch(tr=Wr[0]-pu[0],dr=Wr[1]-pu[1],$n){case Gc:case R1:_i&&(tr=Nr(qa-ma,Ar(Vr-ua,tr)),yi=ma+tr,Pa=ua+tr),gi&&(dr=Nr(Ai-bi,Ar(_s-Aa,dr)),ba=bi+dr,_r=Aa+dr);break;case ao:ns[1]?(_i&&(yi=Nr(qa,Ar(Vr,ns[0][0])),Pa=Nr(qa,Ar(Vr,ns[1][0])),_i=1),gi&&(ba=Nr(Ai,Ar(_s,ns[0][1])),_r=Nr(Ai,Ar(_s,ns[1][1])),gi=1)):(_i<0?(tr=Nr(qa-ma,Ar(Vr-ma,tr)),yi=ma+tr,Pa=ua):_i>0&&(tr=Nr(qa-ua,Ar(Vr-ua,tr)),yi=ma,Pa=ua+tr),gi<0?(dr=Nr(Ai-bi,Ar(_s-bi,dr)),ba=bi+dr,_r=Aa):gi>0&&(dr=Nr(Ai-Aa,Ar(_s-Aa,dr)),ba=bi,_r=Aa+dr));break;case Eo:_i&&(yi=Nr(qa,Ar(Vr,ma-tr*_i)),Pa=Nr(qa,Ar(Vr,ua+tr*_i))),gi&&(ba=Nr(Ai,Ar(_s,bi-dr*gi)),_r=Nr(Ai,Ar(_s,Aa+dr*gi)))}Pa<yi&&(_i*=-1,T2=ma,ma=ua,ua=T2,T2=yi,yi=Pa,Pa=T2,ni in Zc&&pi.attr("cursor",cs[ni=Zc[ni]])),_r<ba&&(gi*=-1,T2=bi,bi=Aa,Aa=T2,T2=ba,ba=_r,_r=T2,ni in Do&&pi.attr("cursor",cs[ni=Do[ni]])),ci.selection&&(ia=ci.selection),Pl&&(yi=ia[0][0],Pa=ia[1][0]),Ko&&(ba=ia[0][1],_r=ia[1][1]),(ia[0][0]!==yi||ia[0][1]!==ba||ia[1][0]!==Pa||ia[1][1]!==_r)&&(ci.selection=[[yi,ba],[Pa,_r]],gt.call(jn),Wi.brush(Gi,$n.name))}function Xa(Gi){if(vl(Gi),Gi.touches){if(Gi.touches.length)return;Pe&&clearTimeout(Pe),Pe=setTimeout(function(){Pe=null},500)}else Zi(Gi.view,Ol),ga.on("keydown.brush keyup.brush mousemove.brush mouseup.brush",null);zc.attr("pointer-events","all"),pi.attr("cursor",cs.overlay),ci.selection&&(ia=ci.selection),Ee(ia)&&(ci.selection=null,gt.call(jn)),Wi.end(Gi,$n.name)}function Qs(Gi){switch(Gi.keyCode){case 16:Ts=_i&&gi;break;case 18:$n===ao&&(_i&&(ua=Pa-tr*_i,ma=yi+tr*_i),gi&&(Aa=_r-dr*gi,bi=ba+dr*gi),$n=Eo,Sr());break;case 32:($n===ao||$n===Eo)&&(_i<0?ua=Pa-tr:_i>0&&(ma=yi-tr),gi<0?Aa=_r-dr:gi>0&&(bi=ba-dr),$n=Gc,pi.attr("cursor",cs.selection),Sr());break;default:return}dc(Gi)}function Lo(Gi){switch(Gi.keyCode){case 16:Ts&&(Pl=Ko=Ts=!1,Sr());break;case 18:$n===Eo&&(_i<0?ua=Pa:_i>0&&(ma=yi),gi<0?Aa=_r:gi>0&&(bi=ba),$n=ao,Sr());break;case 32:$n===Gc&&(Gi.altKey?(_i&&(ua=Pa-tr*_i,ma=yi+tr*_i),gi&&(Aa=_r-dr*gi,bi=ba+dr*gi),$n=Eo):(_i<0?ua=Pa:_i>0&&(ma=yi),gi<0?Aa=_r:gi>0&&(bi=ba),$n=ao),pi.attr("cursor",cs[ni]),Sr());break;default:return}dc(Gi)}}function vn(_n){Et(this,arguments).moved(_n)}function wn(_n){Et(this,arguments).ended(_n)}function Zn(){var _n=this.__brush||{selection:null};return _n.extent=yl(r.apply(this,arguments)),_n.dim=f,_n}return lt.move=function(_n,jn){_n.tween?_n.on("start.brush",function(ni){Et(this,arguments).beforestart().start(ni)}).on("interrupt.brush end.brush",function(ni){Et(this,arguments).end(ni)}).tween("brush",function(){var ni=this,$n=ni.__brush,_i=Et(ni,arguments),gi=$n.selection,ci=f.input("function"==typeof jn?jn.apply(this,arguments):jn,$n.extent),Da=xt(gi,ci);function ia(qa){$n.selection=1===qa&&null===ci?null:Da(qa),gt.call(ni),_i.brush()}return null!==gi&&null!==ci?ia:ia(1)}):_n.each(function(){var ni=this,$n=arguments,_i=ni.__brush,gi=f.input("function"==typeof jn?jn.apply(ni,$n):jn,_i.extent),ci=Et(ni,$n).beforestart();vs(ni),_i.selection=null===gi?null:gi,gt.call(ni),ci.start().brush().end()})},lt.clear=function(_n){lt.move(_n,null)},Zt.prototype={beforestart:function(){return 1==++this.active&&(this.state.emitter=this,this.starting=!0),this},start:function(_n,jn){return this.starting?(this.starting=!1,this.emit("start",_n,jn)):this.emit("brush",_n),this},brush:function(_n,jn){return this.emit("brush",_n,jn),this},end:function(_n,jn){return 0==--this.active&&(delete this.state.emitter,this.emit("end",_n,jn)),this},emit:function(_n,jn,ni){var $n=Ln(this.that).datum();Y.call(_n,this.that,new io(_n,{sourceEvent:jn,target:lt,selection:f.output(this.state.selection),mode:ni,dispatch:Y}),$n)}},lt.extent=function(_n){return arguments.length?(r="function"==typeof _n?_n:Qo(yl(_n)),lt):r},lt.filter=function(_n){return arguments.length?(i="function"==typeof _n?_n:Qo(!!_n),lt):i},lt.touchable=function(_n){return arguments.length?(b="function"==typeof _n?_n:Qo(!!_n),lt):b},lt.handleSize=function(_n){return arguments.length?(me=+_n,lt):me},lt.keyModifiers=function(_n){return arguments.length?(R=!!_n,lt):R},lt.on=function(){var _n=Y.on.apply(Y,arguments);return _n===Y?lt:_n},lt}function Dn(f,r){return f<r?-1:f>r?1:f>=r?0:NaN}function Rn(f){let r=f,i=f;function b(me,Pe,lt,gt){for(null==lt&&(lt=0),null==gt&&(gt=me.length);lt<gt;){const Et=lt+gt>>>1;i(me[Et],Pe)<0?lt=Et+1:gt=Et}return lt}return 1===f.length&&(r=(me,Pe)=>f(me)-Pe,i=function di(f){return(r,i)=>Dn(f(r),i)}(f)),{left:b,center:function Y(me,Pe,lt,gt){null==lt&&(lt=0),null==gt&&(gt=me.length);const Et=b(me,Pe,lt,gt-1);return Et>lt&&r(me[Et-1],Pe)>-r(me[Et],Pe)?Et-1:Et},right:function R(me,Pe,lt,gt){for(null==lt&&(lt=0),null==gt&&(gt=me.length);lt<gt;){const Et=lt+gt>>>1;i(me[Et],Pe)>0?gt=Et:lt=Et+1}return lt}}}var ta=Math.sqrt(50),Ea=Math.sqrt(10),zi=Math.sqrt(2);function so(f,r,i){var b=(r-f)/Math.max(0,i),R=Math.floor(Math.log(b)/Math.LN10),Y=b/Math.pow(10,R);return R>=0?(Y>=ta?10:Y>=Ea?5:Y>=zi?2:1)*Math.pow(10,R):-Math.pow(10,-R)/(Y>=ta?10:Y>=Ea?5:Y>=zi?2:1)}function ds(f,r,i){var b=Math.abs(r-f)/Math.max(0,i),R=Math.pow(10,Math.floor(Math.log(b)/Math.LN10)),Y=b/R;return Y>=ta?R*=10:Y>=Ea?R*=5:Y>=zi&&(R*=2),r<f?-R:R}const Us=1e3,xs=6e4,No=60*xs,uc=24*No,yu=7*uc,k2=30*uc,Qc=365*uc;var Cs=new Date,Nl=new Date;function lr(f,r,i,b){function R(Y){return f(Y=0===arguments.length?new Date:new Date(+Y)),Y}return R.floor=function(Y){return f(Y=new Date(+Y)),Y},R.ceil=function(Y){return f(Y=new Date(Y-1)),r(Y,1),f(Y),Y},R.round=function(Y){var me=R(Y),Pe=R.ceil(Y);return Y-me<Pe-Y?me:Pe},R.offset=function(Y,me){return r(Y=new Date(+Y),null==me?1:Math.floor(me)),Y},R.range=function(Y,me,Pe){var gt,lt=[];if(Y=R.ceil(Y),Pe=null==Pe?1:Math.floor(Pe),!(Y<me&&Pe>0))return lt;do{lt.push(gt=new Date(+Y)),r(Y,Pe),f(Y)}while(gt<Y&&Y<me);return lt},R.filter=function(Y){return lr(function(me){if(me>=me)for(;f(me),!Y(me);)me.setTime(me-1)},function(me,Pe){if(me>=me)if(Pe<0)for(;++Pe<=0;)for(;r(me,-1),!Y(me););else for(;--Pe>=0;)for(;r(me,1),!Y(me););})},i&&(R.count=function(Y,me){return Cs.setTime(+Y),Nl.setTime(+me),f(Cs),f(Nl),Math.floor(i(Cs,Nl))},R.every=function(Y){return Y=Math.floor(Y),isFinite(Y)&&Y>0?Y>1?R.filter(b?function(me){return b(me)%Y==0}:function(me){return R.count(0,me)%Y==0}):R:null}),R}var Fl=lr(function(){},function(f,r){f.setTime(+f+r)},function(f,r){return r-f});Fl.every=function(f){return f=Math.floor(f),isFinite(f)&&f>0?f>1?lr(function(r){r.setTime(Math.floor(r/f)*f)},function(r,i){r.setTime(+r+i*f)},function(r,i){return(i-r)/f}):Fl:null};const R2=Fl;Fl.range;var e0=lr(function(f){f.setTime(f-f.getMilliseconds())},function(f,r){f.setTime(+f+r*Us)},function(f,r){return(r-f)/Us},function(f){return f.getUTCSeconds()});const Hl=e0;e0.range;var bu=lr(function(f){f.setTime(f-f.getMilliseconds()-f.getSeconds()*Us)},function(f,r){f.setTime(+f+r*xs)},function(f,r){return(r-f)/xs},function(f){return f.getMinutes()});const xu=bu;bu.range;var N1=lr(function(f){f.setTime(f-f.getMilliseconds()-f.getSeconds()*Us-f.getMinutes()*xs)},function(f,r){f.setTime(+f+r*No)},function(f,r){return(r-f)/No},function(f){return f.getHours()});const jc=N1;N1.range;var qc=lr(f=>f.setHours(0,0,0,0),(f,r)=>f.setDate(f.getDate()+r),(f,r)=>(r-f-(r.getTimezoneOffset()-f.getTimezoneOffset())*xs)/uc,f=>f.getDate()-1);const bl=qc;qc.range;function zl(f){return lr(function(r){r.setDate(r.getDate()-(r.getDay()+7-f)%7),r.setHours(0,0,0,0)},function(r,i){r.setDate(r.getDate()+7*i)},function(r,i){return(i-r-(i.getTimezoneOffset()-r.getTimezoneOffset())*xs)/yu})}var Ul=zl(0),hc=zl(1),Mu=zl(2),u3=zl(3),Xc=zl(4),xl=zl(5),F1=zl(6),Eu=(Ul.range,hc.range,Mu.range,u3.range,Xc.range,xl.range,F1.range,lr(function(f){f.setDate(1),f.setHours(0,0,0,0)},function(f,r){f.setMonth(f.getMonth()+r)},function(f,r){return r.getMonth()-f.getMonth()+12*(r.getFullYear()-f.getFullYear())},function(f){return f.getMonth()}));const Vl=Eu;Eu.range;var t0=lr(function(f){f.setMonth(0,1),f.setHours(0,0,0,0)},function(f,r){f.setFullYear(f.getFullYear()+r)},function(f,r){return r.getFullYear()-f.getFullYear()},function(f){return f.getFullYear()});t0.every=function(f){return isFinite(f=Math.floor(f))&&f>0?lr(function(r){r.setFullYear(Math.floor(r.getFullYear()/f)*f),r.setMonth(0,1),r.setHours(0,0,0,0)},function(r,i){r.setFullYear(r.getFullYear()+i*f)}):null};const Wl=t0;t0.range;var fc=lr(function(f){f.setUTCSeconds(0,0)},function(f,r){f.setTime(+f+r*xs)},function(f,r){return(r-f)/xs},function(f){return f.getUTCMinutes()});const n0=fc;fc.range;var H1=lr(function(f){f.setUTCMinutes(0,0,0)},function(f,r){f.setTime(+f+r*No)},function(f,r){return(r-f)/No},function(f){return f.getUTCHours()});const Kl=H1;H1.range;var wa=lr(function(f){f.setUTCHours(0,0,0,0)},function(f,r){f.setUTCDate(f.getUTCDate()+r)},function(f,r){return(r-f)/uc},function(f){return f.getUTCDate()-1});const pc=wa;wa.range;function _c(f){return lr(function(r){r.setUTCDate(r.getUTCDate()-(r.getUTCDay()+7-f)%7),r.setUTCHours(0,0,0,0)},function(r,i){r.setUTCDate(r.getUTCDate()+7*i)},function(r,i){return(i-r)/yu})}var Du=_c(0),i0=_c(1),p3=_c(2),_3=_c(3),mc=_c(4),a0=_c(5),r0=_c(6),U2=(Du.range,i0.range,p3.range,_3.range,mc.range,a0.range,r0.range,lr(function(f){f.setUTCDate(1),f.setUTCHours(0,0,0,0)},function(f,r){f.setUTCMonth(f.getUTCMonth()+r)},function(f,r){return r.getUTCMonth()-f.getUTCMonth()+12*(r.getUTCFullYear()-f.getUTCFullYear())},function(f){return f.getUTCMonth()}));const s0=U2;U2.range;var V2=lr(function(f){f.setUTCMonth(0,1),f.setUTCHours(0,0,0,0)},function(f,r){f.setUTCFullYear(f.getUTCFullYear()+r)},function(f,r){return r.getUTCFullYear()-f.getUTCFullYear()},function(f){return f.getUTCFullYear()});V2.every=function(f){return isFinite(f=Math.floor(f))&&f>0?lr(function(r){r.setUTCFullYear(Math.floor(r.getUTCFullYear()/f)*f),r.setUTCMonth(0,1),r.setUTCHours(0,0,0,0)},function(r,i){r.setUTCFullYear(r.getUTCFullYear()+i*f)}):null};const gc=V2;V2.range;function Au(f,r,i,b,R,Y){const me=[[Hl,1,Us],[Hl,5,5e3],[Hl,15,15e3],[Hl,30,3e4],[Y,1,xs],[Y,5,5*xs],[Y,15,15*xs],[Y,30,30*xs],[R,1,No],[R,3,3*No],[R,6,6*No],[R,12,12*No],[b,1,uc],[b,2,2*uc],[i,1,yu],[r,1,k2],[r,3,3*k2],[f,1,Qc]];function lt(gt,Et,Zt){const St=Math.abs(Et-gt)/Zt,vn=Rn(([,,_n])=>_n).right(me,St);if(vn===me.length)return f.every(ds(gt/Qc,Et/Qc,Zt));if(0===vn)return R2.every(Math.max(ds(gt,Et,Zt),1));const[wn,Zn]=me[St/me[vn-1][2]<me[vn][2]/St?vn-1:vn];return wn.every(Zn)}return[function Pe(gt,Et,Zt){const St=Et<gt;St&&([gt,Et]=[Et,gt]);const vn=Zt&&"function"==typeof Zt.range?Zt:lt(gt,Et,Zt),wn=vn?vn.range(gt,+Et+1):[];return St?wn.reverse():wn},lt]}const[oo,Tu]=Au(gc,s0,Du,pc,Kl,n0),[wu,W2]=Au(Wl,Vl,Ul,bl,jc,xu);function us(f){if(0<=f.y&&f.y<100){var r=new Date(-1,f.m,f.d,f.H,f.M,f.S,f.L);return r.setFullYear(f.y),r}return new Date(f.y,f.m,f.d,f.H,f.M,f.S,f.L)}function vc(f){if(0<=f.y&&f.y<100){var r=new Date(Date.UTC(-1,f.m,f.d,f.H,f.M,f.S,f.L));return r.setUTCFullYear(f.y),r}return new Date(Date.UTC(f.y,f.m,f.d,f.H,f.M,f.S,f.L))}function Jc(f,r,i){return{y:f,m:r,d:i,H:0,M:0,S:0,L:0}}var bc,J2,Lu={"-":"",_:" ",0:"0"},jr=/^\s*\d+/,Su=/^%/,z1=/[\\^$*+?|[\]().{}]/g;function ya(f,r,i){var b=f<0?"-":"",R=(b?-f:f)+"",Y=R.length;return b+(Y<i?new Array(i-Y+1).join(r)+R:R)}function Ou(f){return f.replace(z1,"\\$&")}function Gl(f){return new RegExp("^(?:"+f.map(Ou).join("|")+")","i")}function $c(f){return new Map(f.map((r,i)=>[r.toLowerCase(),i]))}function o0(f,r,i){var b=jr.exec(r.slice(i,i+1));return b?(f.w=+b[0],i+b[0].length):-1}function K2(f,r,i){var b=jr.exec(r.slice(i,i+1));return b?(f.u=+b[0],i+b[0].length):-1}function G2(f,r,i){var b=jr.exec(r.slice(i,i+2));return b?(f.U=+b[0],i+b[0].length):-1}function Bs(f,r,i){var b=jr.exec(r.slice(i,i+2));return b?(f.V=+b[0],i+b[0].length):-1}function l0(f,r,i){var b=jr.exec(r.slice(i,i+2));return b?(f.W=+b[0],i+b[0].length):-1}function yo(f,r,i){var b=jr.exec(r.slice(i,i+4));return b?(f.y=+b[0],i+b[0].length):-1}function Pu(f,r,i){var b=jr.exec(r.slice(i,i+2));return b?(f.y=+b[0]+(+b[0]>68?1900:2e3),i+b[0].length):-1}function b3(f,r,i){var b=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(r.slice(i,i+6));return b?(f.Z=b[1]?0:-(b[2]+(b[3]||"00")),i+b[0].length):-1}function c0(f,r,i){var b=jr.exec(r.slice(i,i+1));return b?(f.q=3*b[0]-3,i+b[0].length):-1}function d0(f,r,i){var b=jr.exec(r.slice(i,i+2));return b?(f.m=b[0]-1,i+b[0].length):-1}function e1(f,r,i){var b=jr.exec(r.slice(i,i+2));return b?(f.d=+b[0],i+b[0].length):-1}function u0(f,r,i){var b=jr.exec(r.slice(i,i+3));return b?(f.m=0,f.d=+b[0],i+b[0].length):-1}function Zl(f,r,i){var b=jr.exec(r.slice(i,i+2));return b?(f.H=+b[0],i+b[0].length):-1}function h0(f,r,i){var b=jr.exec(r.slice(i,i+2));return b?(f.M=+b[0],i+b[0].length):-1}function yc(f,r,i){var b=jr.exec(r.slice(i,i+2));return b?(f.S=+b[0],i+b[0].length):-1}function x3(f,r,i){var b=jr.exec(r.slice(i,i+3));return b?(f.L=+b[0],i+b[0].length):-1}function Z2(f,r,i){var b=jr.exec(r.slice(i,i+6));return b?(f.L=Math.floor(b[0]/1e3),i+b[0].length):-1}function C3(f,r,i){var b=Su.exec(r.slice(i,i+1));return b?i+b[0].length:-1}function ku(f,r,i){var b=jr.exec(r.slice(i));return b?(f.Q=+b[0],i+b[0].length):-1}function M3(f,r,i){var b=jr.exec(r.slice(i));return b?(f.s=+b[0],i+b[0].length):-1}function t1(f,r){return ya(f.getDate(),r,2)}function E3(f,r){return ya(f.getHours(),r,2)}function U1(f,r){return ya(f.getHours()%12||12,r,2)}function f0(f,r){return ya(1+bl.count(Wl(f),f),r,3)}function Y2(f,r){return ya(f.getMilliseconds(),r,3)}function Ru(f,r){return Y2(f,r)+"000"}function p0(f,r){return ya(f.getMonth()+1,r,2)}function D3(f,r){return ya(f.getMinutes(),r,2)}function V1(f,r){return ya(f.getSeconds(),r,2)}function Bu(f){var r=f.getDay();return 0===r?7:r}function Nu(f,r){return ya(Ul.count(Wl(f)-1,f),r,2)}function Yl(f){var r=f.getDay();return r>=4||0===r?Xc(f):Xc.ceil(f)}function _0(f,r){return f=Yl(f),ya(Xc.count(Wl(f),f)+(4===Wl(f).getDay()),r,2)}function Fu(f){return f.getDay()}function Hu(f,r){return ya(hc.count(Wl(f)-1,f),r,2)}function $4(f,r){return ya(f.getFullYear()%100,r,2)}function Q2(f,r){return ya((f=Yl(f)).getFullYear()%100,r,2)}function A3(f,r){return ya(f.getFullYear()%1e4,r,4)}function zu(f,r){var i=f.getDay();return ya((f=i>=4||0===i?Xc(f):Xc.ceil(f)).getFullYear()%1e4,r,4)}function Uu(f){var r=f.getTimezoneOffset();return(r>0?"-":(r*=-1,"+"))+ya(r/60|0,"0",2)+ya(r%60,"0",2)}function m0(f,r){return ya(f.getUTCDate(),r,2)}function g0(f,r){return ya(f.getUTCHours(),r,2)}function v0(f,r){return ya(f.getUTCHours()%12||12,r,2)}function j2(f,r){return ya(1+pc.count(gc(f),f),r,3)}function n1(f,r){return ya(f.getUTCMilliseconds(),r,3)}function Vu(f,r){return n1(f,r)+"000"}function q2(f,r){return ya(f.getUTCMonth()+1,r,2)}function y0(f,r){return ya(f.getUTCMinutes(),r,2)}function b0(f,r){return ya(f.getUTCSeconds(),r,2)}function i1(f){var r=f.getUTCDay();return 0===r?7:r}function T3(f,r){return ya(Du.count(gc(f)-1,f),r,2)}function x0(f){var r=f.getUTCDay();return r>=4||0===r?mc(f):mc.ceil(f)}function Wu(f,r){return f=x0(f),ya(mc.count(gc(f),f)+(4===gc(f).getUTCDay()),r,2)}function w3(f){return f.getUTCDay()}function I3(f,r){return ya(i0.count(gc(f)-1,f),r,2)}function C0(f,r){return ya(f.getUTCFullYear()%100,r,2)}function Ku(f,r){return ya((f=x0(f)).getUTCFullYear()%100,r,2)}function X2(f,r){return ya(f.getUTCFullYear()%1e4,r,4)}function M0(f,r){var i=f.getUTCDay();return ya((f=i>=4||0===i?mc(f):mc.ceil(f)).getUTCFullYear()%1e4,r,4)}function Fo(){return"+0000"}function Gu(){return"%"}function E0(f){return+f}function L3(f){return Math.floor(+f/1e3)}function $2(f){return null===f?NaN:+f}!function D0(f){return bc=function Iu(f){var r=f.dateTime,i=f.date,b=f.time,R=f.periods,Y=f.days,me=f.shortDays,Pe=f.months,lt=f.shortMonths,gt=Gl(R),Et=$c(R),Zt=Gl(Y),St=$c(Y),vn=Gl(me),wn=$c(me),Zn=Gl(Pe),_n=$c(Pe),jn=Gl(lt),ni=$c(lt),$n={a:function Pa(pi){return me[pi.getDay()]},A:function _s(pi){return Y[pi.getDay()]},b:function Aa(pi){return lt[pi.getMonth()]},B:function _r(pi){return Pe[pi.getMonth()]},c:null,d:t1,e:t1,f:Ru,g:Q2,G:zu,H:E3,I:U1,j:f0,L:Y2,m:p0,M:D3,p:function tr(pi){return R[+(pi.getHours()>=12)]},q:function dr(pi){return 1+~~(pi.getMonth()/3)},Q:E0,s:L3,S:V1,u:Bu,U:Nu,V:_0,w:Fu,W:Hu,x:null,X:null,y:$4,Y:A3,Z:Uu,"%":Gu},_i={a:function Ol(pi){return me[pi.getUTCDay()]},A:function Ts(pi){return Y[pi.getUTCDay()]},b:function Pl(pi){return lt[pi.getUTCMonth()]},B:function Ko(pi){return Pe[pi.getUTCMonth()]},c:null,d:m0,e:m0,f:Vu,g:Ku,G:M0,H:g0,I:v0,j:j2,L:n1,m:q2,M:y0,p:function ns(pi){return R[+(pi.getUTCHours()>=12)]},q:function zc(pi){return 1+~~(pi.getUTCMonth()/3)},Q:E0,s:L3,S:b0,u:i1,U:T3,V:Wu,w:w3,W:I3,x:null,X:null,y:C0,Y:X2,Z:Fo,"%":Gu},gi={a:function ma(pi,Wi,ga){var ei=vn.exec(Wi.slice(ga));return ei?(pi.w=wn.get(ei[0].toLowerCase()),ga+ei[0].length):-1},A:function yi(pi,Wi,ga){var ei=Zt.exec(Wi.slice(ga));return ei?(pi.w=St.get(ei[0].toLowerCase()),ga+ei[0].length):-1},b:function Ai(pi,Wi,ga){var ei=jn.exec(Wi.slice(ga));return ei?(pi.m=ni.get(ei[0].toLowerCase()),ga+ei[0].length):-1},B:function bi(pi,Wi,ga){var ei=Zn.exec(Wi.slice(ga));return ei?(pi.m=_n.get(ei[0].toLowerCase()),ga+ei[0].length):-1},c:function ba(pi,Wi,ga){return ia(pi,r,Wi,ga)},d:e1,e:e1,f:Z2,g:Pu,G:yo,H:Zl,I:Zl,j:u0,L:x3,m:d0,M:h0,p:function qa(pi,Wi,ga){var ei=gt.exec(Wi.slice(ga));return ei?(pi.p=Et.get(ei[0].toLowerCase()),ga+ei[0].length):-1},q:c0,Q:ku,s:M3,S:yc,u:K2,U:G2,V:Bs,w:o0,W:l0,x:function Vr(pi,Wi,ga){return ia(pi,i,Wi,ga)},X:function ua(pi,Wi,ga){return ia(pi,b,Wi,ga)},y:Pu,Y:yo,Z:b3,"%":C3};function ci(pi,Wi){return function(ga){var Lo,Gi,Wr,ei=[],Sr=-1,Xa=0,Qs=pi.length;for(ga instanceof Date||(ga=new Date(+ga));++Sr<Qs;)37===pi.charCodeAt(Sr)&&(ei.push(pi.slice(Xa,Sr)),null!=(Gi=Lu[Lo=pi.charAt(++Sr)])?Lo=pi.charAt(++Sr):Gi="e"===Lo?" ":"0",(Wr=Wi[Lo])&&(Lo=Wr(ga,Gi)),ei.push(Lo),Xa=Sr+1);return ei.push(pi.slice(Xa,Sr)),ei.join("")}}function Da(pi,Wi){return function(ga){var Xa,Qs,ei=Jc(1900,void 0,1);if(ia(ei,pi,ga+="",0)!=ga.length)return null;if("Q"in ei)return new Date(ei.Q);if("s"in ei)return new Date(1e3*ei.s+("L"in ei?ei.L:0));if(Wi&&!("Z"in ei)&&(ei.Z=0),"p"in ei&&(ei.H=ei.H%12+12*ei.p),void 0===ei.m&&(ei.m="q"in ei?ei.q:0),"V"in ei){if(ei.V<1||ei.V>53)return null;"w"in ei||(ei.w=1),"Z"in ei?(Qs=(Xa=vc(Jc(ei.y,0,1))).getUTCDay(),Xa=Qs>4||0===Qs?i0.ceil(Xa):i0(Xa),Xa=pc.offset(Xa,7*(ei.V-1)),ei.y=Xa.getUTCFullYear(),ei.m=Xa.getUTCMonth(),ei.d=Xa.getUTCDate()+(ei.w+6)%7):(Qs=(Xa=us(Jc(ei.y,0,1))).getDay(),Xa=Qs>4||0===Qs?hc.ceil(Xa):hc(Xa),Xa=bl.offset(Xa,7*(ei.V-1)),ei.y=Xa.getFullYear(),ei.m=Xa.getMonth(),ei.d=Xa.getDate()+(ei.w+6)%7)}else("W"in ei||"U"in ei)&&("w"in ei||(ei.w="u"in ei?ei.u%7:"W"in ei?1:0),Qs="Z"in ei?vc(Jc(ei.y,0,1)).getUTCDay():us(Jc(ei.y,0,1)).getDay(),ei.m=0,ei.d="W"in ei?(ei.w+6)%7+7*ei.W-(Qs+5)%7:ei.w+7*ei.U-(Qs+6)%7);return"Z"in ei?(ei.H+=ei.Z/100|0,ei.M+=ei.Z%100,vc(ei)):us(ei)}}function ia(pi,Wi,ga,ei){for(var Lo,Gi,Sr=0,Xa=Wi.length,Qs=ga.length;Sr<Xa;){if(ei>=Qs)return-1;if(37===(Lo=Wi.charCodeAt(Sr++))){if(Lo=Wi.charAt(Sr++),!(Gi=gi[Lo in Lu?Wi.charAt(Sr++):Lo])||(ei=Gi(pi,ga,ei))<0)return-1}else if(Lo!=ga.charCodeAt(ei++))return-1}return ei}return $n.x=ci(i,$n),$n.X=ci(b,$n),$n.c=ci(r,$n),_i.x=ci(i,_i),_i.X=ci(b,_i),_i.c=ci(r,_i),{format:function(pi){var Wi=ci(pi+="",$n);return Wi.toString=function(){return pi},Wi},parse:function(pi){var Wi=Da(pi+="",!1);return Wi.toString=function(){return pi},Wi},utcFormat:function(pi){var Wi=ci(pi+="",_i);return Wi.toString=function(){return pi},Wi},utcParse:function(pi){var Wi=Da(pi+="",!0);return Wi.toString=function(){return pi},Wi}}}(f),J2=bc.format,bc.parse,bc.utcFormat,bc.utcParse,bc}({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 A0=Rn(Dn),xc=A0.right,Qu=(A0.left,Rn($2).center,xc);function O3(f,r){return f=+f,r=+r,function(i){return Math.round(f*(1-i)+r*i)}}function Jo(f){return+f}var Cc=[0,1];function Mc(f){return f}function T0(f,r){return(r-=f=+f)?function(i){return(i-f)/r}:function P3(f){return function(){return f}}(isNaN(r)?NaN:.5)}function R3(f,r,i){var b=f[0],R=f[1],Y=r[0],me=r[1];return R<b?(b=T0(R,b),Y=i(me,Y)):(b=T0(b,R),Y=i(Y,me)),function(Pe){return Y(b(Pe))}}function ju(f,r,i){var b=Math.min(f.length,r.length)-1,R=new Array(b),Y=new Array(b),me=-1;for(f[b]<f[0]&&(f=f.slice().reverse(),r=r.slice().reverse());++me<b;)R[me]=T0(f[me],f[me+1]),Y[me]=i(r[me],r[me+1]);return function(Pe){var lt=Qu(f,Pe,1,b)-1;return Y[lt](R[lt](Pe))}}function qu(f,r){return r.domain(f.domain()).range(f.range()).interpolate(f.interpolate()).clamp(f.clamp()).unknown(f.unknown())}function ed(){var b,R,Y,Pe,lt,gt,f=Cc,r=Cc,i=xt,me=Mc;function Et(){var St=Math.min(f.length,r.length);return me!==Mc&&(me=function k3(f,r){var i;return f>r&&(i=f,f=r,r=i),function(b){return Math.max(f,Math.min(r,b))}}(f[0],f[St-1])),Pe=St>2?ju:R3,lt=gt=null,Zt}function Zt(St){return null==St||isNaN(St=+St)?Y:(lt||(lt=Pe(f.map(b),r,i)))(b(me(St)))}return Zt.invert=function(St){return me(R((gt||(gt=Pe(r,f.map(b),$a)))(St)))},Zt.domain=function(St){return arguments.length?(f=Array.from(St,Jo),Et()):f.slice()},Zt.range=function(St){return arguments.length?(r=Array.from(St),Et()):r.slice()},Zt.rangeRound=function(St){return r=Array.from(St),i=O3,Et()},Zt.clamp=function(St){return arguments.length?(me=!!St||Mc,Et()):me!==Mc},Zt.interpolate=function(St){return arguments.length?(i=St,Et()):i},Zt.unknown=function(St){return arguments.length?(Y=St,Zt):Y},function(St,vn){return b=St,R=vn,Et()}}function Xu(){return ed()(Mc,Mc)}function W1(f,r){switch(arguments.length){case 0:break;case 1:this.range(f);break;default:this.range(r).domain(f)}return this}function td(f){return new Date(f)}function $o(f){return f instanceof Date?+f:+new Date(+f)}function a1(f,r,i,b,R,Y,me,Pe,lt,gt){var Et=Xu(),Zt=Et.invert,St=Et.domain,vn=gt(".%L"),wn=gt(":%S"),Zn=gt("%I:%M"),_n=gt("%I %p"),jn=gt("%a %d"),ni=gt("%b %d"),$n=gt("%B"),_i=gt("%Y");function gi(ci){return(lt(ci)<ci?vn:Pe(ci)<ci?wn:me(ci)<ci?Zn:Y(ci)<ci?_n:b(ci)<ci?R(ci)<ci?jn:ni:i(ci)<ci?$n:_i)(ci)}return Et.invert=function(ci){return new Date(Zt(ci))},Et.domain=function(ci){return arguments.length?St(Array.from(ci,$o)):St().map(td)},Et.ticks=function(ci){var Da=St();return f(Da[0],Da[Da.length-1],ci??10)},Et.tickFormat=function(ci,Da){return null==Da?gi:gt(Da)},Et.nice=function(ci){var Da=St();return(!ci||"function"!=typeof ci.range)&&(ci=r(Da[0],Da[Da.length-1],ci??10)),ci?St(function N3(f,r){var me,i=0,b=(f=f.slice()).length-1,R=f[i],Y=f[b];return Y<R&&(me=i,i=b,b=me,me=R,R=Y,Y=me),f[i]=r.floor(R),f[b]=r.ceil(Y),f}(Da,ci)):Et},Et.copy=function(){return qu(Et,a1(f,r,i,b,R,Y,me,Pe,lt,gt))},Et}function Ql(){return W1.apply(a1(wu,W2,Wl,Vl,Ul,bl,jc,xu,Hl,J2).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)}var eh,Ju=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function K1(f){if(!(r=Ju.exec(f)))throw new Error("invalid format: "+f);var r;return new w0({fill:r[1],align:r[2],sign:r[3],symbol:r[4],zero:r[5],width:r[6],comma:r[7],precision:r[8]&&r[8].slice(1),trim:r[9],type:r[10]})}function w0(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 nd(f,r){if((i=(f=r?f.toExponential(r-1):f.toExponential()).indexOf("e"))<0)return null;var i,b=f.slice(0,i);return[b.length>1?b[0]+b.slice(2):b,+f.slice(i+1)]}function jl(f){return(f=nd(Math.abs(f)))?f[1]:NaN}function Z1(f,r){var i=nd(f,r);if(!i)return f+"";var b=i[0],R=i[1];return R<0?"0."+new Array(-R).join("0")+b:b.length>R+1?b.slice(0,R+1)+"."+b.slice(R+1):b+new Array(R-b.length+2).join("0")}K1.prototype=w0.prototype,w0.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 z3={"%":(f,r)=>(100*f).toFixed(r),b:f=>Math.round(f).toString(2),c:f=>f+"",d:function F3(f){return Math.abs(f=Math.round(f))>=1e21?f.toLocaleString("en").replace(/,/g,""):f.toString(10)},e:(f,r)=>f.toExponential(r),f:(f,r)=>f.toFixed(r),g:(f,r)=>f.toPrecision(r),o:f=>Math.round(f).toString(8),p:(f,r)=>Z1(100*f,r),r:Z1,s:function th(f,r){var i=nd(f,r);if(!i)return f+"";var b=i[0],R=i[1],Y=R-(eh=3*Math.max(-8,Math.min(8,Math.floor(R/3))))+1,me=b.length;return Y===me?b:Y>me?b+new Array(Y-me+1).join("0"):Y>0?b.slice(0,Y)+"."+b.slice(Y):"0."+new Array(1-Y).join("0")+nd(f,Math.max(0,r+Y-1))[0]},X:f=>Math.round(f).toString(16).toUpperCase(),x:f=>Math.round(f).toString(16)};function I0(f){return f}var wr,el,L0,ad=Array.prototype.map,nh=["y","z","a","f","p","n","\xb5","m","","k","M","G","T","P","E","Z","Y"];function ih(f){var r=void 0===f.grouping||void 0===f.thousands?I0:function H3(f,r){return function(i,b){for(var R=i.length,Y=[],me=0,Pe=f[0],lt=0;R>0&&Pe>0&&(lt+Pe+1>b&&(Pe=Math.max(1,b-lt)),Y.push(i.substring(R-=Pe,R+Pe)),!((lt+=Pe+1)>b));)Pe=f[me=(me+1)%f.length];return Y.reverse().join(r)}}(ad.call(f.grouping,Number),f.thousands+""),i=void 0===f.currency?"":f.currency[0]+"",b=void 0===f.currency?"":f.currency[1]+"",R=void 0===f.decimal?".":f.decimal+"",Y=void 0===f.numerals?I0:function $u(f){return function(r){return r.replace(/[0-9]/g,function(i){return f[+i]})}}(ad.call(f.numerals,String)),me=void 0===f.percent?"%":f.percent+"",Pe=void 0===f.minus?"\u2212":f.minus+"",lt=void 0===f.nan?"NaN":f.nan+"";function gt(Zt){var St=(Zt=K1(Zt)).fill,vn=Zt.align,wn=Zt.sign,Zn=Zt.symbol,_n=Zt.zero,jn=Zt.width,ni=Zt.comma,$n=Zt.precision,_i=Zt.trim,gi=Zt.type;"n"===gi?(ni=!0,gi="g"):z3[gi]||(void 0===$n&&($n=12),_i=!0,gi="g"),(_n||"0"===St&&"="===vn)&&(_n=!0,St="0",vn="=");var ci="$"===Zn?i:"#"===Zn&&/[boxX]/.test(gi)?"0"+gi.toLowerCase():"",Da="$"===Zn?b:/[%p]/.test(gi)?me:"",ia=z3[gi],qa=/[defgprs%]/.test(gi);function ma(yi){var ba,Vr,ua,Ai=ci,bi=Da;if("c"===gi)bi=ia(yi)+bi,yi="";else{var Pa=(yi=+yi)<0||1/yi<0;if(yi=isNaN(yi)?lt:ia(Math.abs(yi),$n),_i&&(yi=function G1(f){e:for(var R,r=f.length,i=1,b=-1;i<r;++i)switch(f[i]){case".":b=R=i;break;case"0":0===b&&(b=i),R=i;break;default:if(!+f[i])break e;b>0&&(b=0)}return b>0?f.slice(0,b)+f.slice(R+1):f}(yi)),Pa&&0==+yi&&"+"!==wn&&(Pa=!1),Ai=(Pa?"("===wn?wn:Pe:"-"===wn||"("===wn?"":wn)+Ai,bi=("s"===gi?nh[8+eh/3]:"")+bi+(Pa&&"("===wn?")":""),qa)for(ba=-1,Vr=yi.length;++ba<Vr;)if(48>(ua=yi.charCodeAt(ba))||ua>57){bi=(46===ua?R+yi.slice(ba+1):yi.slice(ba))+bi,yi=yi.slice(0,ba);break}}ni&&!_n&&(yi=r(yi,1/0));var _s=Ai.length+yi.length+bi.length,Aa=_s<jn?new Array(jn-_s+1).join(St):"";switch(ni&&_n&&(yi=r(Aa+yi,Aa.length?jn-bi.length:1/0),Aa=""),vn){case"<":yi=Ai+yi+bi+Aa;break;case"=":yi=Ai+Aa+yi+bi;break;case"^":yi=Aa.slice(0,_s=Aa.length>>1)+Ai+yi+bi+Aa.slice(_s);break;default:yi=Aa+Ai+yi+bi}return Y(yi)}return $n=void 0===$n?6:/[gprs]/.test(gi)?Math.max(1,Math.min(21,$n)):Math.max(0,Math.min(20,$n)),ma.toString=function(){return Zt+""},ma}return{format:gt,formatPrefix:function Et(Zt,St){var vn=gt(((Zt=K1(Zt)).type="f",Zt)),wn=3*Math.max(-8,Math.min(8,Math.floor(jl(St)/3))),Zn=Math.pow(10,-wn),_n=nh[8+wn/3];return function(jn){return vn(Zn*jn)+_n}}}}function sd(f,r,i,b){var Y,R=ds(f,r,i);switch((b=K1(b??",f")).type){case"s":var me=Math.max(Math.abs(f),Math.abs(r));return null==b.precision&&!isNaN(Y=function id(f,r){return Math.max(0,3*Math.max(-8,Math.min(8,Math.floor(jl(r)/3)))-jl(Math.abs(f)))}(R,me))&&(b.precision=Y),L0(b,me);case"":case"e":case"g":case"p":case"r":null==b.precision&&!isNaN(Y=function ah(f,r){return f=Math.abs(f),r=Math.abs(r)-f,Math.max(0,jl(r)-jl(f))+1}(R,Math.max(Math.abs(f),Math.abs(r))))&&(b.precision=Y-("e"===b.type));break;case"f":case"%":null==b.precision&&!isNaN(Y=function S0(f){return Math.max(0,-jl(Math.abs(f)))}(R))&&(b.precision=Y-2*("%"===b.type))}return el(b)}function rh(f){var r=f.domain;return f.ticks=function(i){var b=r();return function Fr(f,r,i){var b,Y,me,Pe,R=-1;if(i=+i,(f=+f)==(r=+r)&&i>0)return[f];if((b=r<f)&&(Y=f,f=r,r=Y),0===(Pe=so(f,r,i))||!isFinite(Pe))return[];if(Pe>0){let lt=Math.round(f/Pe),gt=Math.round(r/Pe);for(lt*Pe<f&&++lt,gt*Pe>r&&--gt,me=new Array(Y=gt-lt+1);++R<Y;)me[R]=(lt+R)*Pe}else{Pe=-Pe;let lt=Math.round(f*Pe),gt=Math.round(r*Pe);for(lt/Pe<f&&++lt,gt/Pe>r&&--gt,me=new Array(Y=gt-lt+1);++R<Y;)me[R]=(lt+R)/Pe}return b&&me.reverse(),me}(b[0],b[b.length-1],i??10)},f.tickFormat=function(i,b){var R=r();return sd(R[0],R[R.length-1],i??10,b)},f.nice=function(i){null==i&&(i=10);var lt,gt,b=r(),R=0,Y=b.length-1,me=b[R],Pe=b[Y],Et=10;for(Pe<me&&(gt=me,me=Pe,Pe=gt,gt=R,R=Y,Y=gt);Et-- >0;){if((gt=so(me,Pe,i))===lt)return b[R]=me,b[Y]=Pe,r(b);if(gt>0)me=Math.floor(me/gt)*gt,Pe=Math.ceil(Pe/gt)*gt;else{if(!(gt<0))break;me=Math.ceil(me*gt)/gt,Pe=Math.floor(Pe*gt)/gt}lt=gt}return f},f}function Ga(){var f=Xu();return f.copy=function(){return qu(f,Ga())},W1.apply(f,arguments),rh(f)}function O0(f,r,i){f=+f,r=+r,i=(R=arguments.length)<2?(r=f,f=0,1):R<3?1:+i;for(var b=-1,R=0|Math.max(0,Math.ceil((r-f)/i)),Y=new Array(R);++b<R;)Y[b]=f+b*i;return Y}!function rd(f){return wr=ih(f),el=wr.format,L0=wr.formatPrefix,wr}({thousands:",",grouping:[3],currency:["$",""]});const P0=Symbol("implicit");function Y1(){var f=new Map,r=[],i=[],b=P0;function R(Y){var me=Y+"",Pe=f.get(me);if(!Pe){if(b!==P0)return b;f.set(me,Pe=r.push(Y))}return i[(Pe-1)%i.length]}return R.domain=function(Y){if(!arguments.length)return r.slice();r=[],f=new Map;for(const me of Y){const Pe=me+"";f.has(Pe)||f.set(Pe,r.push(me))}return R},R.range=function(Y){return arguments.length?(i=Array.from(Y),R):i.slice()},R.unknown=function(Y){return arguments.length?(b=Y,R):b},R.copy=function(){return Y1(r,i).unknown(b)},W1.apply(R,arguments),R}function qr(){var Y,me,f=Y1().unknown(void 0),r=f.domain,i=f.range,b=0,R=1,Pe=!1,lt=0,gt=0,Et=.5;function Zt(){var St=r().length,vn=R<b,wn=vn?R:b,Zn=vn?b:R;Y=(Zn-wn)/Math.max(1,St-lt+2*gt),Pe&&(Y=Math.floor(Y)),wn+=(Zn-wn-Y*(St-lt))*Et,me=Y*(1-lt),Pe&&(wn=Math.round(wn),me=Math.round(me));var _n=O0(St).map(function(jn){return wn+Y*jn});return i(vn?_n.reverse():_n)}return delete f.unknown,f.domain=function(St){return arguments.length?(r(St),Zt()):r()},f.range=function(St){return arguments.length?([b,R]=St,b=+b,R=+R,Zt()):[b,R]},f.rangeRound=function(St){return[b,R]=St,b=+b,R=+R,Pe=!0,Zt()},f.bandwidth=function(){return me},f.step=function(){return Y},f.round=function(St){return arguments.length?(Pe=!!St,Zt()):Pe},f.padding=function(St){return arguments.length?(lt=Math.min(1,gt=+St),Zt()):lt},f.paddingInner=function(St){return arguments.length?(lt=Math.min(1,St),Zt()):lt},f.paddingOuter=function(St){return arguments.length?(gt=+St,Zt()):gt},f.align=function(St){return arguments.length?(Et=Math.max(0,Math.min(1,St)),Zt()):Et},f.copy=function(){return qr(r(),[b,R]).round(Pe).paddingInner(lt).paddingOuter(gt).align(Et)},W1.apply(Zt(),arguments)}function Cl(f){var r=f.copy;return f.padding=f.paddingOuter,delete f.paddingInner,delete f.paddingOuter,f.copy=function(){return Cl(r())},f}function er(){return Cl(qr.apply(null,arguments).paddingInner(1))}function r1(f,r){let i;if(void 0===r)for(const b of f)null!=b&&(i<b||void 0===i&&b>=b)&&(i=b);else{let b=-1;for(let R of f)null!=(R=r(R,++b,f))&&(i<R||void 0===i&&R>=R)&&(i=R)}return i}function Q1(f,r){let i;if(void 0===r)for(const b of f)null!=b&&(i>b||void 0===i&&b>=b)&&(i=b);else{let b=-1;for(let R of f)null!=(R=r(R,++b,f))&&(i>R||void 0===i&&R>=R)&&(i=R)}return i}function k0(f,r,i=0,b=f.length-1,R=Dn){for(;b>i;){if(b-i>600){const lt=b-i+1,gt=r-i+1,Et=Math.log(lt),Zt=.5*Math.exp(2*Et/3),St=.5*Math.sqrt(Et*Zt*(lt-Zt)/lt)*(gt-lt/2<0?-1:1);k0(f,r,Math.max(i,Math.floor(r-gt*Zt/lt+St)),Math.min(b,Math.floor(r+(lt-gt)*Zt/lt+St)),R)}const Y=f[r];let me=i,Pe=b;for(s1(f,i,r),R(f[b],Y)>0&&s1(f,i,b);me<Pe;){for(s1(f,me,Pe),++me,--Pe;R(f[me],Y)<0;)++me;for(;R(f[Pe],Y)>0;)--Pe}0===R(f[i],Y)?s1(f,i,Pe):(++Pe,s1(f,Pe,b)),Pe<=r&&(i=Pe+1),r<=Pe&&(b=Pe-1)}return f}function s1(f,r,i){const b=f[r];f[r]=f[i],f[i]=b}function R0(f,r,i){if(f=Float64Array.from(function*Yu(f,r){if(void 0===r)for(let i of f)null!=i&&(i=+i)>=i&&(yield i);else{let i=-1;for(let b of f)null!=(b=r(b,++i,f))&&(b=+b)>=b&&(yield b)}}(f,i)),b=f.length){if((r=+r)<=0||b<2)return Q1(f);if(r>=1)return r1(f);var b,R=(b-1)*r,Y=Math.floor(R),me=r1(k0(f,Y).subarray(0,Y+1));return me+(Q1(f.subarray(Y+1))-me)*(R-Y)}}function sh(f,r,i=$2){if(b=f.length){if((r=+r)<=0||b<2)return+i(f[0],0,f);if(r>=1)return+i(f[b-1],b-1,f);var b,R=(b-1)*r,Y=Math.floor(R),me=+i(f[Y],Y,f);return me+(+i(f[Y+1],Y+1,f)-me)*(R-Y)}}function B0(){var b,f=[],r=[],i=[];function R(){var me=0,Pe=Math.max(1,r.length);for(i=new Array(Pe-1);++me<Pe;)i[me-1]=sh(f,me/Pe);return Y}function Y(me){return null==me||isNaN(me=+me)?b:r[Qu(i,me)]}return Y.invertExtent=function(me){var Pe=r.indexOf(me);return Pe<0?[NaN,NaN]:[Pe>0?i[Pe-1]:f[0],Pe<i.length?i[Pe]:f[f.length-1]]},Y.domain=function(me){if(!arguments.length)return f.slice();f=[];for(let Pe of me)null!=Pe&&!isNaN(Pe=+Pe)&&f.push(Pe);return f.sort(Dn),R()},Y.range=function(me){return arguments.length?(r=Array.from(me),R()):r.slice()},Y.unknown=function(me){return arguments.length?(b=me,Y):b},Y.quantiles=function(){return i.slice()},Y.copy=function(){return B0().domain(f).range(r).unknown(b)},W1.apply(Y,arguments)}const o1=Math.PI,N0=2*o1,Ml=1e-6,U3=N0-Ml;function j1(){this._x0=this._y0=this._x1=this._y1=null,this._=""}function F0(){return new j1}j1.prototype=F0.prototype={constructor:j1,moveTo:function(f,r){this._+="M"+(this._x0=this._x1=+f)+","+(this._y0=this._y1=+r)},closePath:function(){null!==this._x1&&(this._x1=this._x0,this._y1=this._y0,this._+="Z")},lineTo:function(f,r){this._+="L"+(this._x1=+f)+","+(this._y1=+r)},quadraticCurveTo:function(f,r,i,b){this._+="Q"+ +f+","+ +r+","+(this._x1=+i)+","+(this._y1=+b)},bezierCurveTo:function(f,r,i,b,R,Y){this._+="C"+ +f+","+ +r+","+ +i+","+ +b+","+(this._x1=+R)+","+(this._y1=+Y)},arcTo:function(f,r,i,b,R){f=+f,r=+r,i=+i,b=+b,R=+R;var Y=this._x1,me=this._y1,Pe=i-f,lt=b-r,gt=Y-f,Et=me-r,Zt=gt*gt+Et*Et;if(R<0)throw new Error("negative radius: "+R);if(null===this._x1)this._+="M"+(this._x1=f)+","+(this._y1=r);else if(Zt>Ml)if(Math.abs(Et*Pe-lt*gt)>Ml&&R){var St=i-Y,vn=b-me,wn=Pe*Pe+lt*lt,Zn=St*St+vn*vn,_n=Math.sqrt(wn),jn=Math.sqrt(Zt),ni=R*Math.tan((o1-Math.acos((wn+Zt-Zn)/(2*_n*jn)))/2),$n=ni/jn,_i=ni/_n;Math.abs($n-1)>Ml&&(this._+="L"+(f+$n*gt)+","+(r+$n*Et)),this._+="A"+R+","+R+",0,0,"+ +(Et*St>gt*vn)+","+(this._x1=f+_i*Pe)+","+(this._y1=r+_i*lt)}else this._+="L"+(this._x1=f)+","+(this._y1=r)},arc:function(f,r,i,b,R,Y){f=+f,r=+r,Y=!!Y;var me=(i=+i)*Math.cos(b),Pe=i*Math.sin(b),lt=f+me,gt=r+Pe,Et=1^Y,Zt=Y?b-R:R-b;if(i<0)throw new Error("negative radius: "+i);null===this._x1?this._+="M"+lt+","+gt:(Math.abs(this._x1-lt)>Ml||Math.abs(this._y1-gt)>Ml)&&(this._+="L"+lt+","+gt),i&&(Zt<0&&(Zt=Zt%N0+N0),Zt>U3?this._+="A"+i+","+i+",0,1,"+Et+","+(f-me)+","+(r-Pe)+"A"+i+","+i+",0,1,"+Et+","+(this._x1=lt)+","+(this._y1=gt):Zt>Ml&&(this._+="A"+i+","+i+",0,"+ +(Zt>=o1)+","+Et+","+(this._x1=f+i*Math.cos(R))+","+(this._y1=r+i*Math.sin(R))))},rect:function(f,r,i,b){this._+="M"+(this._x0=this._x1=+f)+","+(this._y0=this._y1=+r)+"h"+ +i+"v"+ +b+"h"+-i+"Z"},toString:function(){return this._}};const od=F0;Array.prototype.slice;function H0(f){return"object"==typeof f&&"length"in f?f:Array.from(f)}function da(f){return function(){return f}}function q1(f){this._context=f}function Ec(f){return new q1(f)}function ld(f){return f[0]}function ql(f){return f[1]}function tl(f,r){var i=da(!0),b=null,R=Ec,Y=null;function me(Pe){var lt,Et,St,gt=(Pe=H0(Pe)).length,Zt=!1;for(null==b&&(Y=R(St=od())),lt=0;lt<=gt;++lt)!(lt<gt&&i(Et=Pe[lt],lt,Pe))===Zt&&((Zt=!Zt)?Y.lineStart():Y.lineEnd()),Zt&&Y.point(+f(Et,lt,Pe),+r(Et,lt,Pe));if(St)return Y=null,St+""||null}return f="function"==typeof f?f:void 0===f?ld:da(f),r="function"==typeof r?r:void 0===r?ql:da(r),me.x=function(Pe){return arguments.length?(f="function"==typeof Pe?Pe:da(+Pe),me):f},me.y=function(Pe){return arguments.length?(r="function"==typeof Pe?Pe:da(+Pe),me):r},me.defined=function(Pe){return arguments.length?(i="function"==typeof Pe?Pe:da(!!Pe),me):i},me.curve=function(Pe){return arguments.length?(R=Pe,null!=b&&(Y=R(b)),me):R},me.context=function(Pe){return arguments.length?(null==Pe?b=Y=null:Y=R(b=Pe),me):b},me}function Xl(f,r,i){var b=null,R=da(!0),Y=null,me=Ec,Pe=null;function lt(Et){var Zt,St,vn,Zn,jn,wn=(Et=H0(Et)).length,_n=!1,ni=new Array(wn),$n=new Array(wn);for(null==Y&&(Pe=me(jn=od())),Zt=0;Zt<=wn;++Zt){if(!(Zt<wn&&R(Zn=Et[Zt],Zt,Et))===_n)if(_n=!_n)St=Zt,Pe.areaStart(),Pe.lineStart();else{for(Pe.lineEnd(),Pe.lineStart(),vn=Zt-1;vn>=St;--vn)Pe.point(ni[vn],$n[vn]);Pe.lineEnd(),Pe.areaEnd()}_n&&(ni[Zt]=+f(Zn,Zt,Et),$n[Zt]=+r(Zn,Zt,Et),Pe.point(b?+b(Zn,Zt,Et):ni[Zt],i?+i(Zn,Zt,Et):$n[Zt]))}if(jn)return Pe=null,jn+""||null}function gt(){return tl().defined(R).curve(me).context(Y)}return f="function"==typeof f?f:void 0===f?ld:da(+f),r="function"==typeof r?r:da(void 0===r?0:+r),i="function"==typeof i?i:void 0===i?ql:da(+i),lt.x=function(Et){return arguments.length?(f="function"==typeof Et?Et:da(+Et),b=null,lt):f},lt.x0=function(Et){return arguments.length?(f="function"==typeof Et?Et:da(+Et),lt):f},lt.x1=function(Et){return arguments.length?(b=null==Et?null:"function"==typeof Et?Et:da(+Et),lt):b},lt.y=function(Et){return arguments.length?(r="function"==typeof Et?Et:da(+Et),i=null,lt):r},lt.y0=function(Et){return arguments.length?(r="function"==typeof Et?Et:da(+Et),lt):r},lt.y1=function(Et){return arguments.length?(i=null==Et?null:"function"==typeof Et?Et:da(+Et),lt):i},lt.lineX0=lt.lineY0=function(){return gt().x(f).y(r)},lt.lineY1=function(){return gt().x(f).y(i)},lt.lineX1=function(){return gt().x(b).y(r)},lt.defined=function(Et){return arguments.length?(R="function"==typeof Et?Et:da(!!Et),lt):R},lt.curve=function(Et){return arguments.length?(me=Et,null!=Y&&(Pe=me(Y)),lt):me},lt.context=function(Et){return arguments.length?(null==Et?Y=Pe=null:Pe=me(Y=Et),lt):Y},lt}q1.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(f,r){switch(f=+f,r=+r,this._point){case 0:this._point=1,this._line?this._context.lineTo(f,r):this._context.moveTo(f,r);break;case 1:this._point=2;default:this._context.lineTo(f,r)}}};var cd=Math.abs,Xr=Math.atan2,Dc=Math.cos,dd=Math.max,Jl=Math.min,bo=Math.sin,Vs=Math.sqrt,xo=1e-12,c1=Math.PI,Ho=c1/2,X1=2*c1;function oh(f){return f>1?0:f<-1?c1:Math.acos(f)}function z0(f){return f>=1?Ho:f<=-1?-Ho:Math.asin(f)}function nf(f){return f.innerRadius}function lh(f){return f.outerRadius}function d1(f){return f.startAngle}function V3(f){return f.endAngle}function u1(f){return f&&f.padAngle}function Ac(f,r,i,b,R,Y,me,Pe){var lt=i-f,gt=b-r,Et=me-R,Zt=Pe-Y,St=Zt*lt-Et*gt;if(!(St*St<xo))return[f+(St=(Et*(r-Y)-Zt*(f-R))/St)*lt,r+St*gt]}function ud(f,r,i,b,R,Y,me){var Pe=f-i,lt=r-b,gt=(me?Y:-Y)/Vs(Pe*Pe+lt*lt),Et=gt*lt,Zt=-gt*Pe,St=f+Et,vn=r+Zt,wn=i+Et,Zn=b+Zt,_n=(St+wn)/2,jn=(vn+Zn)/2,ni=wn-St,$n=Zn-vn,_i=ni*ni+$n*$n,gi=R-Y,ci=St*Zn-wn*vn,Da=($n<0?-1:1)*Vs(dd(0,gi*gi*_i-ci*ci)),ia=(ci*$n-ni*Da)/_i,qa=(-ci*ni-$n*Da)/_i,ma=(ci*$n+ni*Da)/_i,yi=(-ci*ni+$n*Da)/_i,Ai=ia-_n,bi=qa-jn,ba=ma-_n,Vr=yi-jn;return Ai*Ai+bi*bi>ba*ba+Vr*Vr&&(ia=ma,qa=yi),{cx:ia,cy:qa,x01:-Et,y01:-Zt,x11:ia*(R/gi-1),y11:qa*(R/gi-1)}}function hd(){var f=nf,r=lh,i=da(0),b=null,R=d1,Y=V3,me=u1,Pe=null;function lt(){var gt,Et,Zt=+f.apply(this,arguments),St=+r.apply(this,arguments),vn=R.apply(this,arguments)-Ho,wn=Y.apply(this,arguments)-Ho,Zn=cd(wn-vn),_n=wn>vn;if(Pe||(Pe=gt=od()),St<Zt&&(Et=St,St=Zt,Zt=Et),St>xo)if(Zn>X1-xo)Pe.moveTo(St*Dc(vn),St*bo(vn)),Pe.arc(0,0,St,vn,wn,!_n),Zt>xo&&(Pe.moveTo(Zt*Dc(wn),Zt*bo(wn)),Pe.arc(0,0,Zt,wn,vn,_n));else{var Ai,bi,jn=vn,ni=wn,$n=vn,_i=wn,gi=Zn,ci=Zn,Da=me.apply(this,arguments)/2,ia=Da>xo&&(b?+b.apply(this,arguments):Vs(Zt*Zt+St*St)),qa=Jl(cd(St-Zt)/2,+i.apply(this,arguments)),ma=qa,yi=qa;if(ia>xo){var ba=z0(ia/Zt*bo(Da)),Vr=z0(ia/St*bo(Da));(gi-=2*ba)>xo?($n+=ba*=_n?1:-1,_i-=ba):(gi=0,$n=_i=(vn+wn)/2),(ci-=2*Vr)>xo?(jn+=Vr*=_n?1:-1,ni-=Vr):(ci=0,jn=ni=(vn+wn)/2)}var ua=St*Dc(jn),Pa=St*bo(jn),_s=Zt*Dc(_i),Aa=Zt*bo(_i);if(qa>xo){var Ts,_r=St*Dc(ni),tr=St*bo(ni),dr=Zt*Dc($n),Ol=Zt*bo($n);if(Zn<c1&&(Ts=Ac(ua,Pa,dr,Ol,_r,tr,_s,Aa))){var Pl=ua-Ts[0],Ko=Pa-Ts[1],ns=_r-Ts[0],zc=tr-Ts[1],pi=1/bo(oh((Pl*ns+Ko*zc)/(Vs(Pl*Pl+Ko*Ko)*Vs(ns*ns+zc*zc)))/2),Wi=Vs(Ts[0]*Ts[0]+Ts[1]*Ts[1]);ma=Jl(qa,(Zt-Wi)/(pi-1)),yi=Jl(qa,(St-Wi)/(pi+1))}}ci>xo?yi>xo?(Ai=ud(dr,Ol,ua,Pa,St,yi,_n),bi=ud(_r,tr,_s,Aa,St,yi,_n),Pe.moveTo(Ai.cx+Ai.x01,Ai.cy+Ai.y01),yi<qa?Pe.arc(Ai.cx,Ai.cy,yi,Xr(Ai.y01,Ai.x01),Xr(bi.y01,bi.x01),!_n):(Pe.arc(Ai.cx,Ai.cy,yi,Xr(Ai.y01,Ai.x01),Xr(Ai.y11,Ai.x11),!_n),Pe.arc(0,0,St,Xr(Ai.cy+Ai.y11,Ai.cx+Ai.x11),Xr(bi.cy+bi.y11,bi.cx+bi.x11),!_n),Pe.arc(bi.cx,bi.cy,yi,Xr(bi.y11,bi.x11),Xr(bi.y01,bi.x01),!_n))):(Pe.moveTo(ua,Pa),Pe.arc(0,0,St,jn,ni,!_n)):Pe.moveTo(ua,Pa),Zt>xo&&gi>xo?ma>xo?(Ai=ud(_s,Aa,_r,tr,Zt,-ma,_n),bi=ud(ua,Pa,dr,Ol,Zt,-ma,_n),Pe.lineTo(Ai.cx+Ai.x01,Ai.cy+Ai.y01),ma<qa?Pe.arc(Ai.cx,Ai.cy,ma,Xr(Ai.y01,Ai.x01),Xr(bi.y01,bi.x01),!_n):(Pe.arc(Ai.cx,Ai.cy,ma,Xr(Ai.y01,Ai.x01),Xr(Ai.y11,Ai.x11),!_n),Pe.arc(0,0,Zt,Xr(Ai.cy+Ai.y11,Ai.cx+Ai.x11),Xr(bi.cy+bi.y11,bi.cx+bi.x11),_n),Pe.arc(bi.cx,bi.cy,ma,Xr(bi.y11,bi.x11),Xr(bi.y01,bi.x01),!_n))):Pe.arc(0,0,Zt,_i,$n,_n):Pe.lineTo(_s,Aa)}else Pe.moveTo(0,0);if(Pe.closePath(),gt)return Pe=null,gt+""||null}return lt.centroid=function(){var gt=(+f.apply(this,arguments)+ +r.apply(this,arguments))/2,Et=(+R.apply(this,arguments)+ +Y.apply(this,arguments))/2-c1/2;return[Dc(Et)*gt,bo(Et)*gt]},lt.innerRadius=function(gt){return arguments.length?(f="function"==typeof gt?gt:da(+gt),lt):f},lt.outerRadius=function(gt){return arguments.length?(r="function"==typeof gt?gt:da(+gt),lt):r},lt.cornerRadius=function(gt){return arguments.length?(i="function"==typeof gt?gt:da(+gt),lt):i},lt.padRadius=function(gt){return arguments.length?(b=null==gt?null:"function"==typeof gt?gt:da(+gt),lt):b},lt.startAngle=function(gt){return arguments.length?(R="function"==typeof gt?gt:da(+gt),lt):R},lt.endAngle=function(gt){return arguments.length?(Y="function"==typeof gt?gt:da(+gt),lt):Y},lt.padAngle=function(gt){return arguments.length?(me="function"==typeof gt?gt:da(+gt),lt):me},lt.context=function(gt){return arguments.length?(Pe=gt??null,lt):Pe},lt}var U0=fd(Ec);function ch(f){this._curve=f}function fd(f){function r(i){return new ch(f(i))}return r._curve=f,r}function V0(){return function dh(f){var r=f.curve;return f.angle=f.x,delete f.x,f.radius=f.y,delete f.y,f.curve=function(i){return arguments.length?r(fd(i)):r()._curve},f}(tl().curve(U0))}function pd(){}function J1(f,r,i){f._context.bezierCurveTo(f._x1+f._k*(f._x2-f._x0),f._y1+f._k*(f._y2-f._y0),f._x2+f._k*(f._x1-r),f._y2+f._k*(f._y1-i),f._x2,f._y2)}function uh(f,r){this._context=f,this._k=(1-r)/6}ch.prototype={areaStart:function(){this._curve.areaStart()},areaEnd:function(){this._curve.areaEnd()},lineStart:function(){this._curve.lineStart()},lineEnd:function(){this._curve.lineEnd()},point:function(f,r){this._curve.point(r*Math.sin(f),r*-Math.cos(f))}},uh.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:J1(this,this._x1,this._y1)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(f,r){switch(f=+f,r=+r,this._point){case 0:this._point=1,this._line?this._context.lineTo(f,r):this._context.moveTo(f,r);break;case 1:this._point=2,this._x1=f,this._y1=r;break;case 2:this._point=3;default:J1(this,f,r)}this._x0=this._x1,this._x1=this._x2,this._x2=f,this._y0=this._y1,this._y1=this._y2,this._y2=r}};(function f(r){function i(b){return new uh(b,r)}return i.tension=function(b){return f(+b)},i})(0);function El(f,r){this._context=f,this._k=(1-r)/6}El.prototype={areaStart:pd,areaEnd:pd,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x3,this._y3),this._context.closePath();break;case 2:this._context.lineTo(this._x3,this._y3),this._context.closePath();break;case 3:this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5)}},point:function(f,r){switch(f=+f,r=+r,this._point){case 0:this._point=1,this._x3=f,this._y3=r;break;case 1:this._point=2,this._context.moveTo(this._x4=f,this._y4=r);break;case 2:this._point=3,this._x5=f,this._y5=r;break;default:J1(this,f,r)}this._x0=this._x1,this._x1=this._x2,this._x2=f,this._y0=this._y1,this._y1=this._y2,this._y2=r}};const _d=function f(r){function i(b){return new El(b,r)}return i.tension=function(b){return f(+b)},i}(0);function W3(f,r){return r<f?-1:r>f?1:r>=f?0:NaN}function hh(f){return f}function fh(){var f=hh,r=W3,i=null,b=da(0),R=da(X1),Y=da(0);function me(Pe){var lt,Et,Zt,jn,_i,gt=(Pe=H0(Pe)).length,St=0,vn=new Array(gt),wn=new Array(gt),Zn=+b.apply(this,arguments),_n=Math.min(X1,Math.max(-X1,R.apply(this,arguments)-Zn)),ni=Math.min(Math.abs(_n)/gt,Y.apply(this,arguments)),$n=ni*(_n<0?-1:1);for(lt=0;lt<gt;++lt)(_i=wn[vn[lt]=lt]=+f(Pe[lt],lt,Pe))>0&&(St+=_i);for(null!=r?vn.sort(function(gi,ci){return r(wn[gi],wn[ci])}):null!=i&&vn.sort(function(gi,ci){return i(Pe[gi],Pe[ci])}),lt=0,Zt=St?(_n-gt*$n)/St:0;lt<gt;++lt,Zn=jn)Et=vn[lt],jn=Zn+((_i=wn[Et])>0?_i*Zt:0)+$n,wn[Et]={data:Pe[Et],index:lt,value:_i,startAngle:Zn,endAngle:jn,padAngle:ni};return wn}return me.value=function(Pe){return arguments.length?(f="function"==typeof Pe?Pe:da(+Pe),me):f},me.sortValues=function(Pe){return arguments.length?(r=Pe,i=null,me):r},me.sort=function(Pe){return arguments.length?(i=Pe,r=null,me):i},me.startAngle=function(Pe){return arguments.length?(b="function"==typeof Pe?Pe:da(+Pe),me):b},me.endAngle=function(Pe){return arguments.length?(R="function"==typeof Pe?Pe:da(+Pe),me):R},me.padAngle=function(Pe){return arguments.length?(Y="function"==typeof Pe?Pe:da(+Pe),me):Y},me}var K0=Math.PI;function nl(f){return(1-Math.cos(K0*f))/2}var K3=m(1381);function ph(f){f.x0=Math.round(f.x0),f.y0=Math.round(f.y0),f.x1=Math.round(f.x1),f.y1=Math.round(f.y1)}function rf(f,r,i,b,R){for(var me,Y=f.children,Pe=-1,lt=Y.length,gt=f.value&&(b-r)/f.value;++Pe<lt;)(me=Y[Pe]).y0=i,me.y1=R,me.x0=r,me.x1=r+=me.value*gt}function sf(f,r,i,b,R){for(var me,Y=f.children,Pe=-1,lt=Y.length,gt=f.value&&(R-i)/f.value;++Pe<lt;)(me=Y[Pe]).x0=r,me.x1=b,me.y0=i,me.y1=i+=me.value*gt}const mh=function f(r){function i(b,R,Y,me,Pe){!function G3(f,r,i,b,R,Y){for(var lt,gt,vn,wn,_n,jn,ni,$n,_i,gi,ci,me=[],Pe=r.children,Et=0,Zt=0,St=Pe.length,Zn=r.value;Et<St;){vn=R-i,wn=Y-b;do{_n=Pe[Zt++].value}while(!_n&&Zt<St);for(jn=ni=_n,ci=_n*_n*(gi=Math.max(wn/vn,vn/wn)/(Zn*f)),_i=Math.max(ni/ci,ci/jn);Zt<St;++Zt){if(_n+=gt=Pe[Zt].value,gt<jn&&(jn=gt),gt>ni&&(ni=gt),ci=_n*_n*gi,($n=Math.max(ni/ci,ci/jn))>_i){_n-=gt;break}_i=$n}me.push(lt={value:_n,dice:vn<wn,children:Pe.slice(Et,Zt)}),lt.dice?rf(lt,i,b,R,Zn?b+=wn*_n/Zn:Y):sf(lt,i,b,Zn?i+=vn*_n/Zn:R,Y),Zn-=_n,Et=Zt}return me}(r,b,R,Y,me,Pe)}return i.ratio=function(b){return f((b=+b)>1?b:1)},i}((1+Math.sqrt(5))/2);function Dl(f){if("function"!=typeof f)throw new Error;return f}function t2(){return 0}function $l(f){return function(){return f}}function Y3(f){var r=0,i=f.children,b=i&&i.length;if(b)for(;--b>=0;)r+=i[b].value;else r=1;f.value=r}function gd(f,r){f instanceof Map?(f=[void 0,f],void 0===r&&(r=T)):void 0===r&&(r=K);for(var b,Y,me,Pe,lt,i=new ge(f),R=[i];b=R.pop();)if((me=r(b.data))&&(lt=(me=Array.from(me)).length))for(b.children=me,Pe=lt-1;Pe>=0;--Pe)R.push(Y=me[Pe]=new ge(me[Pe])),Y.parent=b,Y.depth=b.depth+1;return i.eachBefore(V)}function K(f){return f.children}function T(f){return Array.isArray(f)?f[1]:null}function x(f){void 0!==f.data.value&&(f.value=f.data.value),f.data=f.data.data}function V(f){var r=0;do{f.height=r}while((f=f.parent)&&f.height<++r)}function ge(f){this.data=f,this.depth=this.height=0,this.parent=null}ge.prototype=gd.prototype={constructor:ge,count:function Ao(){return this.eachAfter(Y3)},each:function vh(f,r){let i=-1;for(const b of this)f.call(r,b,++i,this);return this},eachAfter:function yh(f,r){for(var Y,me,Pe,i=this,b=[i],R=[],lt=-1;i=b.pop();)if(R.push(i),Y=i.children)for(me=0,Pe=Y.length;me<Pe;++me)b.push(Y[me]);for(;i=R.pop();)f.call(r,i,++lt,this);return this},eachBefore:function G0(f,r){for(var R,Y,i=this,b=[i],me=-1;i=b.pop();)if(f.call(r,i,++me,this),R=i.children)for(Y=R.length-1;Y>=0;--Y)b.push(R[Y]);return this},find:function bh(f,r){let i=-1;for(const b of this)if(f.call(r,b,++i,this))return b},sum:function xh(f){return this.eachAfter(function(r){for(var i=+f(r.data)||0,b=r.children,R=b&&b.length;--R>=0;)i+=b[R].value;r.value=i})},sort:function Ch(f){return this.eachBefore(function(r){r.children&&r.children.sort(f)})},path:function Z0(f){for(var r=this,i=function Q3(f,r){if(f===r)return f;var i=f.ancestors(),b=r.ancestors(),R=null;for(f=i.pop(),r=b.pop();f===r;)R=f,f=i.pop(),r=b.pop();return R}(r,f),b=[r];r!==i;)r=r.parent,b.push(r);for(var R=b.length;f!==i;)b.splice(R,0,f),f=f.parent;return b},ancestors:function Mh(){for(var f=this,r=[f];f=f.parent;)r.push(f);return r},descendants:function Eh(){return Array.from(this)},leaves:function Vi(){var f=[];return this.eachBefore(function(r){r.children||f.push(r)}),f},links:function md(){var f=this,r=[];return f.each(function(i){i!==f&&r.push({source:i.parent,target:i})}),r},copy:function n2(){return gd(this).eachBefore(x)},[Symbol.iterator]:function*Dh(){var r,b,R,Y,f=this,i=[f];do{for(r=i.reverse(),i=[];f=r.pop();)if(yield f,b=f.children)for(R=0,Y=b.length;R<Y;++R)i.push(b[R])}while(i.length)}};var nt={depth:-1},kt={};function jt(f){return f.id}function on(f){return f.parentId}const fi=["caretElm"];function Xn(f,r){}const Pi=function(f){return{model:f}};function Ni(f,r){if(1&f&&(e.TgZ(0,"span"),e.YNc(1,Xn,0,0,"ng-template",5),e.qZA()),2&f){const i=e.oxw();e.xp6(1),e.Q6J("ngTemplateOutlet",i.template)("ngTemplateOutletContext",e.VKq(2,Pi,i.context))}}function Ci(f,r){if(1&f&&e._UZ(0,"span",6),2&f){const i=e.oxw();e.Q6J("innerHTML",i.title,e.oJD)}}function Oi(f,r){if(1&f&&(e.TgZ(0,"header",4)(1,"span",5),e._uU(2),e.qZA()()),2&f){const i=e.oxw();e.xp6(2),e.Oqu(i.title)}}function na(f,r){if(1&f){const i=e.EpF();e.TgZ(0,"li",6)(1,"ngx-charts-legend-entry",7),e.NdJ("select",function(R){e.CHM(i);const Y=e.oxw();return e.KtG(Y.labelClick.emit(R))})("activate",function(R){e.CHM(i);const Y=e.oxw();return e.KtG(Y.activate(R))})("deactivate",function(R){e.CHM(i);const Y=e.oxw();return e.KtG(Y.deactivate(R))}),e.qZA()()}if(2&f){const i=r.$implicit,b=e.oxw();e.xp6(1),e.Q6J("label",i.label)("formattedLabel",i.formattedLabel)("color",i.color)("isActive",b.isActive(i))}}function Ia(f,r){if(1&f&&(e.O4$(),e.kcU(),e._UZ(0,"ngx-charts-scale-legend",4)),2&f){const i=e.oxw();e.Q6J("horizontal",i.legendOptions&&i.legendOptions.position===i.LegendPosition.Below)("valueRange",i.legendOptions.domain)("colors",i.legendOptions.colors)("height",i.view[1])("width",i.legendWidth)}}function Jr(f,r){if(1&f){const i=e.EpF();e.O4$(),e.kcU(),e.TgZ(0,"ngx-charts-legend",5),e.NdJ("labelClick",function(R){e.CHM(i);const Y=e.oxw();return e.KtG(Y.legendLabelClick.emit(R))})("labelActivate",function(R){e.CHM(i);const Y=e.oxw();return e.KtG(Y.legendLabelActivate.emit(R))})("labelDeactivate",function(R){e.CHM(i);const Y=e.oxw();return e.KtG(Y.legendLabelDeactivate.emit(R))}),e.qZA()}if(2&f){const i=e.oxw();e.Q6J("horizontal",i.legendOptions&&i.legendOptions.position===i.LegendPosition.Below)("data",i.legendOptions.domain)("title",i.legendOptions.title)("colors",i.legendOptions.colors)("height",i.view[1])("width",i.legendWidth)("activeEntries",i.activeEntries)}}const Ns=["*"],lo=["ticksel"];function Ms(f,r){if(1&f&&(e.O4$(),e.TgZ(0,"g",3)(1,"title"),e._uU(2),e.qZA(),e.TgZ(3,"text",4),e._uU(4),e.qZA()()),2&f){const i=r.$implicit,b=e.oxw();e.uIk("transform",b.tickTransform(i)),e.xp6(2),e.Oqu(b.tickFormat(i)),e.xp6(1),e.Udp("font-size","12px"),e.uIk("text-anchor",b.textAnchor)("transform",b.textTransform),e.xp6(1),e.hij(" ",b.tickTrim(b.tickFormat(i))," ")}}function To(f,r){if(1&f&&(e.O4$(),e.TgZ(0,"g"),e._UZ(1,"line",6),e.qZA()),2&f){const i=e.oxw(2);e.uIk("transform",i.gridLineTransform()),e.xp6(1),e.uIk("y1",-i.gridLineHeight)}}function al(f,r){if(1&f&&(e.O4$(),e.TgZ(0,"g"),e.YNc(1,To,2,2,"g",5),e.qZA()),2&f){const i=r.$implicit,b=e.oxw();e.uIk("transform",b.tickTransform(i)),e.xp6(1),e.Q6J("ngIf",b.showGridLines)}}function Ah(f,r){if(1&f){const i=e.EpF();e.O4$(),e.TgZ(0,"g",2),e.NdJ("dimensionsChanged",function(R){e.CHM(i);const Y=e.oxw();return e.KtG(Y.emitTicksHeight(R))}),e.qZA()}if(2&f){const i=e.oxw();e.Q6J("trimTicks",i.trimTicks)("rotateTicks",i.rotateTicks)("maxTickLength",i.maxTickLength)("tickFormatting",i.tickFormatting)("tickArguments",i.tickArguments)("tickStroke",i.tickStroke)("scale",i.xScale)("orient",i.xOrient)("showGridLines",i.showGridLines)("gridLineHeight",i.dims.height)("width",i.dims.width)("tickValues",i.ticks)}}function h1(f,r){if(1&f&&(e.O4$(),e._UZ(0,"g",3)),2&f){const i=e.oxw();e.Q6J("label",i.labelText)("offset",i.labelOffset)("orient",i.orientation.Bottom)("height",i.dims.height)("width",i.dims.width)}}function Th(f,r){if(1&f&&(e.O4$(),e.TgZ(0,"g",4)(1,"title"),e._uU(2),e.qZA(),e.TgZ(3,"text",5),e._uU(4),e.qZA()()),2&f){const i=r.$implicit,b=e.oxw();e.uIk("transform",b.transform(i)),e.xp6(2),e.Oqu(b.tickFormat(i)),e.xp6(1),e.Udp("font-size","12px"),e.uIk("dy",b.dy)("x",b.x1)("y",b.y1)("text-anchor",b.textAnchor),e.xp6(1),e.hij(" ",b.tickTrim(b.tickFormat(i))," ")}}function wh(f,r){if(1&f&&(e.O4$(),e._UZ(0,"path",6)),2&f){const i=e.oxw();e.uIk("d",i.referenceAreaPath)("transform",i.gridLineTransform())}}function vi(f,r){if(1&f&&(e.O4$(),e._UZ(0,"line",9)),2&f){const i=e.oxw(3);e.uIk("x2",i.gridLineWidth)}}function wi(f,r){if(1&f&&(e.O4$(),e._UZ(0,"line",9)),2&f){const i=e.oxw(3);e.uIk("x2",-i.gridLineWidth)}}function ki(f,r){if(1&f&&(e.O4$(),e.TgZ(0,"g"),e.YNc(1,vi,1,1,"line",8),e.YNc(2,wi,1,1,"line",8),e.qZA()),2&f){const i=e.oxw(2);e.uIk("transform",i.gridLineTransform()),e.xp6(1),e.Q6J("ngIf",i.orient===i.Orientation.Left),e.xp6(1),e.Q6J("ngIf",i.orient===i.Orientation.Right)}}function _a(f,r){if(1&f&&(e.O4$(),e.TgZ(0,"g"),e.YNc(1,ki,3,3,"g",7),e.qZA()),2&f){const i=r.$implicit,b=e.oxw();e.uIk("transform",b.transform(i)),e.xp6(1),e.Q6J("ngIf",b.showGridLines)}}function Tr(f,r){if(1&f&&(e.O4$(),e.TgZ(0,"g")(1,"title"),e._uU(2),e.qZA(),e.TgZ(3,"text",11),e._uU(4),e.qZA()()),2&f){const i=e.oxw(2).$implicit,b=e.oxw();e.xp6(2),e.Oqu(b.tickTrim(b.tickFormat(i.value))),e.xp6(1),e.uIk("dy",b.dy)("y",-6)("x",b.gridLineWidth)("text-anchor",b.textAnchor),e.xp6(1),e.hij(" ",i.name," ")}}function co(f,r){if(1&f&&(e.O4$(),e.TgZ(0,"g"),e._UZ(1,"line",10),e.YNc(2,Tr,5,6,"g",7),e.qZA()),2&f){const i=e.oxw().$implicit,b=e.oxw();e.uIk("transform",b.transform(i.value)),e.xp6(1),e.uIk("x2",b.gridLineWidth)("transform",b.gridLineTransform()),e.xp6(1),e.Q6J("ngIf",b.showRefLabels)}}function Es(f,r){if(1&f&&(e.O4$(),e.TgZ(0,"g"),e.YNc(1,co,3,4,"g",7),e.qZA()),2&f){const i=e.oxw();e.xp6(1),e.Q6J("ngIf",i.showRefLines)}}function cr(f,r){if(1&f){const i=e.EpF();e.O4$(),e.TgZ(0,"g",2),e.NdJ("dimensionsChanged",function(R){e.CHM(i);const Y=e.oxw();return e.KtG(Y.emitTicksWidth(R))}),e.qZA()}if(2&f){const i=e.oxw();e.Q6J("trimTicks",i.trimTicks)("maxTickLength",i.maxTickLength)("tickFormatting",i.tickFormatting)("tickArguments",i.tickArguments)("tickValues",i.ticks)("tickStroke",i.tickStroke)("scale",i.yScale)("orient",i.yOrient)("showGridLines",i.showGridLines)("gridLineWidth",i.dims.width)("referenceLines",i.referenceLines)("showRefLines",i.showRefLines)("showRefLabels",i.showRefLabels)("height",i.dims.height)}}function wc(f,r){if(1&f&&(e.O4$(),e._UZ(0,"g",3)),2&f){const i=e.oxw();e.Q6J("label",i.labelText)("offset",i.labelOffset)("orient",i.yOrient)("height",i.dims.height)("width",i.dims.width)}}function Fs(f,r){if(1&f&&(e.O4$(),e._UZ(0,"stop")),2&f){const i=r.$implicit;e.Udp("stop-color",i.color)("stop-opacity",i.opacity),e.uIk("offset",i.offset+"%")}}function i2(f,r){if(1&f&&(e.O4$(),e._UZ(0,"rect",4)),2&f){const i=e.oxw(2);e.Q6J("@animationState","active"),e.uIk("x",i.circle.cx-i.circle.radius)("y",i.circle.cy)("width",2*i.circle.radius)("height",i.circle.height)("fill",i.gradientFill)}}function f1(f,r){if(1&f&&(e.O4$(),e._UZ(0,"rect",4)),2&f){const i=e.oxw(2);e.uIk("x",i.circle.cx-i.circle.radius)("y",i.circle.cy)("width",2*i.circle.radius)("height",i.circle.height)("fill",i.gradientFill)}}const vd=function(f){return{name:f}};function Lh(f,r){if(1&f){const i=e.EpF();e.O4$(),e.TgZ(0,"g")(1,"defs"),e._UZ(2,"g",1),e.qZA(),e.YNc(3,i2,1,6,"rect",2),e.YNc(4,f1,1,5,"rect",2),e.TgZ(5,"g",3),e.NdJ("select",function(){e.CHM(i);const R=e.oxw();return e.KtG(R.onClick(R.circle.data))})("activate",function(){e.CHM(i);const R=e.oxw();return e.KtG(R.activateCircle())})("deactivate",function(){e.CHM(i);const R=e.oxw();return e.KtG(R.deactivateCircle())}),e.qZA()()}if(2&f){const i=e.oxw();e.xp6(2),e.Q6J("orientation",i.barOrientation.Vertical)("name",i.gradientId)("stops",i.circle.gradientStops),e.xp6(1),e.Q6J("ngIf",!i.isSSR&&i.barVisible&&"standard"===i.type),e.xp6(1),e.Q6J("ngIf",i.isSSR&&i.barVisible&&"standard"===i.type),e.xp6(1),e.ekj("active",i.isActive(e.VKq(20,vd,i.circle.seriesName))),e.Q6J("cx",i.circle.cx)("cy",i.circle.cy)("r",i.circle.radius)("fill",i.circle.color)("pointerEvents",0===i.circle.value?"none":"all")("data",i.circle.value)("classNames",i.circle.classNames)("tooltipDisabled",i.tooltipDisabled)("tooltipPlacement",i.placementTypes.Top)("tooltipType",i.styleTypes.tooltip)("tooltipTitle",i.tooltipTemplate?void 0:i.getTooltipText(i.circle))("tooltipTemplate",i.tooltipTemplate)("tooltipContext",i.circle.data)}}function Sh(f,r){if(1&f&&(e.O4$(),e._UZ(0,"g",1)),2&f){const i=r.$implicit;e.ekj("grid-panel",!0)("odd","odd"===i.class)("even","even"===i.class),e.Q6J("height",i.height)("width",i.width)("x",i.x)("y",i.y)}}function Q0(f,r){if(1&f&&(e.O4$(),e._UZ(0,"stop")),2&f){const i=r.$implicit;e.Udp("stop-color",i.color)("stop-opacity",i.opacity),e.uIk("offset",i.offset+"%")}}function X3(f,r){if(1&f&&(e.O4$(),e.TgZ(0,"defs"),e._UZ(1,"g",2),e.qZA()),2&f){const i=e.oxw();e.xp6(1),e.Q6J("orientation",i.barOrientation.Vertical)("name",i.gradientId)("stops",i.gradientStops)}}const $3=["tooltipAnchor"];function Fp(f,r){if(1&f&&(e.TgZ(0,"div",6),e._UZ(1,"span",7),e._uU(2),e.qZA()),2&f){const i=r.$implicit,b=e.oxw(2);e.xp6(1),e.Udp("background-color",i.color),e.xp6(1),e.hij(" ",b.getToolTipText(i)," ")}}function e4(f,r){if(1&f&&(e.O4$(),e.kcU(),e.TgZ(0,"div",4),e.YNc(1,Fp,3,3,"div",5),e.qZA()),2&f){const i=r.model;e.xp6(1),e.Q6J("ngForOf",i)}}function df(f,r){if(1&f&&e._UZ(0,"div",7),2&f){const i=e.oxw();e.Q6J("countTo",i.roundedTotal)("valueFormatting",i.valueFormatting)}}function uf(f,r){if(1&f&&(e.TgZ(0,"div",8),e._uU(1),e.qZA()),2&f){const i=e.oxw();e.xp6(1),e.hij(" ",i.valueFormatting?i.valueFormatting(i.roundedTotal):i.defaultValueFormatting(i.roundedTotal)," ")}}function hf(f,r){if(1&f&&e._UZ(0,"div",16),2&f){const i=e.oxw().$implicit,b=e.oxw();e.Q6J("countTo",i._value)("valueFormatting",b.valueFormatting)}}function zp(f,r){if(1&f&&(e.TgZ(0,"div",17),e._uU(1),e.qZA()),2&f){const i=e.oxw().$implicit,b=e.oxw();e.xp6(1),e.hij(" ",b.valueFormatting?b.valueFormatting(i.value):b.defaultValueFormatting(i.value)," ")}}function Uo(f,r){if(1&f&&e._UZ(0,"div",18),2&f){const i=e.oxw().$implicit;e.Q6J("countTo",i.percentage)("countSuffix","%")}}function Oh(f,r){if(1&f&&(e.TgZ(0,"div",19),e._uU(1),e.qZA()),2&f){const i=e.oxw().$implicit;e.xp6(1),e.hij("",i.percentage.toLocaleString(),"%")}}function Up(f,r){if(1&f){const i=e.EpF();e.TgZ(0,"div",9),e.NdJ("mouseenter",function(){const Y=e.CHM(i).$implicit,me=e.oxw();return e.KtG(me.activate.emit(Y.data))})("mouseleave",function(){const Y=e.CHM(i).$implicit,me=e.oxw();return e.KtG(me.deactivate.emit(Y.data))})("click",function(){const Y=e.CHM(i).$implicit,me=e.oxw();return e.KtG(me.select.emit(Y.data))}),e._UZ(1,"div",10),e.YNc(2,hf,1,2,"div",11),e.YNc(3,zp,2,1,"div",12),e.TgZ(4,"div",13),e._uU(5),e.qZA(),e.YNc(6,Uo,1,2,"div",14),e.YNc(7,Oh,2,1,"div",15),e.qZA()}if(2&f){const i=r.$implicit,b=e.oxw();e.xp6(1),e.Udp("border-left-color",i.color),e.xp6(1),e.Q6J("ngIf",b.animations),e.xp6(1),e.Q6J("ngIf",!b.animations),e.xp6(2),e.Oqu(i.displayLabel),e.xp6(1),e.Q6J("ngIf",b.animations),e.xp6(1),e.Q6J("ngIf",!b.animations)}}const Ir=["tooltipTemplate"],yd=["seriesTooltipTemplate"];function Vp(f,r){if(1&f){const i=e.EpF();e.O4$(),e.TgZ(0,"g",7),e.NdJ("dimensionsChanged",function(R){e.CHM(i);const Y=e.oxw();return e.KtG(Y.updateXAxisHeight(R))}),e.qZA()}if(2&f){const i=e.oxw();e.Q6J("xScale",i.xScale)("dims",i.dims)("showGridLines",i.showGridLines)("showLabel",i.showXAxisLabel)("labelText",i.xAxisLabel)("trimTicks",i.trimXAxisTicks)("rotateTicks",i.rotateXAxisTicks)("maxTickLength",i.maxXAxisTickLength)("tickFormatting",i.xAxisTickFormatting)("ticks",i.xAxisTicks)}}function ff(f,r){if(1&f){const i=e.EpF();e.O4$(),e.TgZ(0,"g",8),e.NdJ("dimensionsChanged",function(R){e.CHM(i);const Y=e.oxw();return e.KtG(Y.updateYAxisWidth(R))}),e.qZA()}if(2&f){const i=e.oxw();e.Q6J("yScale",i.yScale)("dims",i.dims)("showGridLines",i.showGridLines)("showLabel",i.showYAxisLabel)("labelText",i.yAxisLabel)("trimTicks",i.trimYAxisTicks)("maxTickLength",i.maxYAxisTickLength)("tickFormatting",i.yAxisTickFormatting)("ticks",i.yAxisTicks)}}function Wp(f,r){if(1&f&&(e.O4$(),e.TgZ(0,"g"),e._UZ(1,"g",9),e.qZA()),2&f){const i=r.$implicit,b=e.oxw();e.xp6(1),e.Q6J("xScale",b.xScale)("yScale",b.yScale)("baseValue",b.baseValue)("colors",b.colors)("data",i)("activeEntries",b.activeEntries)("scaleType",b.scaleType)("gradient",b.gradient)("curve",b.curve)("animations",b.animations)}}function pf(f,r){if(1&f){const i=e.EpF();e.O4$(),e.TgZ(0,"g")(1,"g",13),e.NdJ("select",function(R){const me=e.CHM(i).$implicit,Pe=e.oxw(2);return e.KtG(Pe.onClick(R,me))})("activate",function(R){e.CHM(i);const Y=e.oxw(2);return e.KtG(Y.onActivate(R))})("deactivate",function(R){e.CHM(i);const Y=e.oxw(2);return e.KtG(Y.onDeactivate(R))}),e.qZA()()}if(2&f){const i=r.$implicit,b=e.oxw(2);e.xp6(1),e.Q6J("xScale",b.xScale)("yScale",b.yScale)("colors",b.colors)("activeEntries",b.activeEntries)("data",i)("scaleType",b.scaleType)("visibleValue",b.hoveredVertical)("tooltipDisabled",b.tooltipDisabled)("tooltipTemplate",b.tooltipTemplate)}}function _f(f,r){if(1&f){const i=e.EpF();e.O4$(),e.TgZ(0,"g",10),e.NdJ("mouseleave",function(){e.CHM(i);const R=e.oxw();return e.KtG(R.hideCircles())}),e.TgZ(1,"g",11),e.NdJ("hover",function(R){e.CHM(i);const Y=e.oxw();return e.KtG(Y.updateHoveredVertical(R))}),e.qZA(),e.YNc(2,pf,2,9,"g",12),e.qZA()}if(2&f){const i=e.oxw();e.xp6(1),e.Q6J("dims",i.dims)("xSet",i.xSet)("xScale",i.xScale)("yScale",i.yScale)("results",i.results)("colors",i.colors)("tooltipDisabled",i.tooltipDisabled)("tooltipTemplate",i.seriesTooltipTemplate),e.xp6(1),e.Q6J("ngForOf",i.results)}}function Kp(f,r){if(1&f&&(e.O4$(),e.TgZ(0,"g"),e._UZ(1,"g",15),e.qZA()),2&f){const i=r.$implicit,b=e.oxw(2);e.xp6(1),e.Q6J("xScale",b.timelineXScale)("yScale",b.timelineYScale)("baseValue",b.baseValue)("colors",b.colors)("data",i)("scaleType",b.scaleType)("gradient",b.gradient)("curve",b.curve)("animations",b.animations)}}const Ya=function(f,r){return[f,r]};function Gp(f,r){if(1&f){const i=e.EpF();e.O4$(),e.TgZ(0,"g",14),e.NdJ("onDomainChange",function(R){e.CHM(i);const Y=e.oxw();return e.KtG(Y.updateDomain(R))}),e.YNc(1,Kp,2,9,"g",4),e.qZA()}if(2&f){const i=e.oxw();e.Q6J("results",i.results)("view",e.WLB(10,Ya,i.timelineWidth,i.height))("height",i.timelineHeight)("scheme",i.scheme)("customColors",i.customColors)("legend",i.legend)("scaleType",i.scaleType),e.uIk("transform",i.timelineTransform),e.xp6(1),e.Q6J("ngForOf",i.results)("ngForTrackBy",i.trackBy)}}function t4(f,r){if(1&f){const i=e.EpF();e.O4$(),e.TgZ(0,"g",7),e.NdJ("dimensionsChanged",function(R){e.CHM(i);const Y=e.oxw();return e.KtG(Y.updateXAxisHeight(R))}),e.qZA()}if(2&f){const i=e.oxw();e.Q6J("xScale",i.xScale)("dims",i.dims)("showGridLines",i.showGridLines)("showLabel",i.showXAxisLabel)("labelText",i.xAxisLabel)("trimTicks",i.trimXAxisTicks)("rotateTicks",i.rotateXAxisTicks)("maxTickLength",i.maxXAxisTickLength)("tickFormatting",i.xAxisTickFormatting)("ticks",i.xAxisTicks)}}function Zp(f,r){if(1&f){const i=e.EpF();e.O4$(),e.TgZ(0,"g",8),e.NdJ("dimensionsChanged",function(R){e.CHM(i);const Y=e.oxw();return e.KtG(Y.updateYAxisWidth(R))}),e.qZA()}if(2&f){const i=e.oxw();e.Q6J("yScale",i.yScale)("dims",i.dims)("showGridLines",i.showGridLines)("showLabel",i.showYAxisLabel)("labelText",i.yAxisLabel)("trimTicks",i.trimYAxisTicks)("maxTickLength",i.maxYAxisTickLength)("tickFormatting",i.yAxisTickFormatting)("ticks",i.yAxisTicks)}}function Yp(f,r){if(1&f&&(e.O4$(),e.TgZ(0,"g"),e._UZ(1,"g",9),e.qZA()),2&f){const i=r.$implicit,b=e.oxw();e.xp6(1),e.Q6J("xScale",b.xScale)("yScale",b.yScale)("colors",b.colors)("data",i)("scaleType",b.scaleType)("activeEntries",b.activeEntries)("gradient",b.gradient)("normalized",!0)("curve",b.curve)("animations",b.animations)}}function Qp(f,r){if(1&f){const i=e.EpF();e.O4$(),e.TgZ(0,"g")(1,"g",13),e.NdJ("select",function(R){const me=e.CHM(i).$implicit,Pe=e.oxw(2);return e.KtG(Pe.onClick(R,me))})("activate",function(R){e.CHM(i);const Y=e.oxw(2);return e.KtG(Y.onActivate(R))})("deactivate",function(R){e.CHM(i);const Y=e.oxw(2);return e.KtG(Y.onDeactivate(R))}),e.qZA()()}if(2&f){const i=r.$implicit,b=e.oxw(2);e.xp6(1),e.Q6J("type",b.seriesType.Stacked)("xScale",b.xScale)("yScale",b.yScale)("colors",b.colors)("activeEntries",b.activeEntries)("data",i)("scaleType",b.scaleType)("visibleValue",b.hoveredVertical)("tooltipDisabled",b.tooltipDisabled)("tooltipTemplate",b.tooltipTemplate)}}function ec(f,r){if(1&f){const i=e.EpF();e.O4$(),e.TgZ(0,"g",10),e.NdJ("mouseleave",function(){e.CHM(i);const R=e.oxw();return e.KtG(R.hideCircles())}),e.TgZ(1,"g",11),e.NdJ("hover",function(R){e.CHM(i);const Y=e.oxw();return e.KtG(Y.updateHoveredVertical(R))}),e.qZA(),e.YNc(2,Qp,2,10,"g",12),e.qZA()}if(2&f){const i=e.oxw();e.xp6(1),e.Q6J("dims",i.dims)("xSet",i.xSet)("xScale",i.xScale)("yScale",i.yScale)("results",i.results)("colors",i.colors)("showPercentage",!0)("tooltipDisabled",i.tooltipDisabled)("tooltipTemplate",i.seriesTooltipTemplate),e.xp6(1),e.Q6J("ngForOf",i.results)}}function n4(f,r){if(1&f&&(e.O4$(),e.TgZ(0,"g"),e._UZ(1,"g",15),e.qZA()),2&f){const i=r.$implicit,b=e.oxw(2);e.xp6(1),e.Q6J("xScale",b.timelineXScale)("yScale",b.timelineYScale)("colors",b.colors)("data",i)("scaleType",b.scaleType)("gradient",b.gradient)("normalized",!0)("curve",b.curve)("animations",b.animations)}}function mf(f,r){if(1&f){const i=e.EpF();e.O4$(),e.TgZ(0,"g",14),e.NdJ("onDomainChange",function(R){e.CHM(i);const Y=e.oxw();return e.KtG(Y.updateDomain(R))}),e.YNc(1,n4,2,9,"g",4),e.qZA()}if(2&f){const i=e.oxw();e.Q6J("results",i.results)("view",e.WLB(10,Ya,i.timelineWidth,i.height))("height",i.timelineHeight)("scheme",i.scheme)("customColors",i.customColors)("legend",i.legend)("scaleType",i.scaleType),e.uIk("transform",i.timelineTransform),e.xp6(1),e.Q6J("ngForOf",i.results)("ngForTrackBy",i.trackBy)}}const $r=".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";function i4(f,r){if(1&f){const i=e.EpF();e.O4$(),e.TgZ(0,"g",7),e.NdJ("dimensionsChanged",function(R){e.CHM(i);const Y=e.oxw();return e.KtG(Y.updateXAxisHeight(R))}),e.qZA()}if(2&f){const i=e.oxw();e.Q6J("xScale",i.xScale)("dims",i.dims)("showGridLines",i.showGridLines)("showLabel",i.showXAxisLabel)("labelText",i.xAxisLabel)("trimTicks",i.trimXAxisTicks)("rotateTicks",i.rotateXAxisTicks)("maxTickLength",i.maxXAxisTickLength)("tickFormatting",i.xAxisTickFormatting)("ticks",i.xAxisTicks)}}function jp(f,r){if(1&f){const i=e.EpF();e.O4$(),e.TgZ(0,"g",8),e.NdJ("dimensionsChanged",function(R){e.CHM(i);const Y=e.oxw();return e.KtG(Y.updateYAxisWidth(R))}),e.qZA()}if(2&f){const i=e.oxw();e.Q6J("yScale",i.yScale)("dims",i.dims)("showGridLines",i.showGridLines)("showLabel",i.showYAxisLabel)("labelText",i.yAxisLabel)("trimTicks",i.trimYAxisTicks)("maxTickLength",i.maxYAxisTickLength)("tickFormatting",i.yAxisTickFormatting)("ticks",i.yAxisTicks)}}function qp(f,r){if(1&f&&(e.O4$(),e.TgZ(0,"g"),e._UZ(1,"g",9),e.qZA()),2&f){const i=r.$implicit,b=e.oxw();e.xp6(1),e.Q6J("xScale",b.xScale)("yScale",b.yScale)("colors",b.colors)("data",i)("scaleType",b.scaleType)("gradient",b.gradient)("activeEntries",b.activeEntries)("stacked",!0)("curve",b.curve)("animations",b.animations)}}function Xp(f,r){if(1&f){const i=e.EpF();e.O4$(),e.TgZ(0,"g")(1,"g",12),e.NdJ("select",function(R){const me=e.CHM(i).$implicit,Pe=e.oxw(2);return e.KtG(Pe.onClick(R,me))})("activate",function(R){e.CHM(i);const Y=e.oxw(2);return e.KtG(Y.onActivate(R))})("deactivate",function(R){e.CHM(i);const Y=e.oxw(2);return e.KtG(Y.onDeactivate(R))}),e.qZA()()}if(2&f){const i=r.$implicit,b=e.oxw(2);e.xp6(1),e.Q6J("type",b.seriesType.Stacked)("xScale",b.xScale)("yScale",b.yScale)("colors",b.colors)("activeEntries",b.activeEntries)("data",i)("scaleType",b.scaleType)("visibleValue",b.hoveredVertical)("tooltipDisabled",b.tooltipDisabled)("tooltipTemplate",b.tooltipTemplate)}}function Ph(f,r){if(1&f){const i=e.EpF();e.O4$(),e.TgZ(0,"g",10),e.NdJ("mouseleave",function(){e.CHM(i);const R=e.oxw();return e.KtG(R.hideCircles())}),e.TgZ(1,"g",11),e.NdJ("hover",function(R){e.CHM(i);const Y=e.oxw();return e.KtG(Y.updateHoveredVertical(R))}),e.qZA(),e.YNc(2,Xp,2,10,"g",4),e.qZA()}if(2&f){const i=e.oxw();e.xp6(1),e.Q6J("dims",i.dims)("xSet",i.xSet)("xScale",i.xScale)("yScale",i.yScale)("results",i.results)("colors",i.colors)("tooltipDisabled",i.tooltipDisabled)("tooltipTemplate",i.seriesTooltipTemplate),e.xp6(1),e.Q6J("ngForOf",i.results)("ngForTrackBy",i.trackBy)}}function Jp(f,r){if(1&f&&(e.O4$(),e.TgZ(0,"g"),e._UZ(1,"g",14),e.qZA()),2&f){const i=r.$implicit,b=e.oxw(2);e.xp6(1),e.Q6J("xScale",b.timelineXScale)("yScale",b.timelineYScale)("colors",b.colors)("data",i)("scaleType",b.scaleType)("gradient",b.gradient)("stacked",!0)("curve",b.curve)("animations",b.animations)}}function $p(f,r){if(1&f){const i=e.EpF();e.O4$(),e.TgZ(0,"g",13),e.NdJ("onDomainChange",function(R){e.CHM(i);const Y=e.oxw();return e.KtG(Y.updateDomain(R))}),e.YNc(1,Jp,2,9,"g",4),e.qZA()}if(2&f){const i=e.oxw();e.Q6J("results",i.results)("view",e.WLB(10,Ya,i.timelineWidth,i.height))("height",i.timelineHeight)("scheme",i.scheme)("customColors",i.customColors)("legend",i.legend)("scaleType",i.scaleType),e.uIk("transform",i.timelineTransform),e.xp6(1),e.Q6J("ngForOf",i.results)("ngForTrackBy",i.trackBy)}}function Rh(f,r){if(1&f&&(e.O4$(),e.TgZ(0,"defs"),e._UZ(1,"g",2),e.qZA()),2&f){const i=e.oxw();e.xp6(1),e.Q6J("orientation",i.orientation)("name",i.gradientId)("stops",i.gradientStops)}}function a4(f,r){if(1&f){const i=e.EpF();e.O4$(),e.TgZ(0,"g",2),e.NdJ("select",function(R){e.CHM(i);const Y=e.oxw();return e.KtG(Y.click(R))})("activate",function(R){e.CHM(i);const Y=e.oxw();return e.KtG(Y.activate.emit(R))})("deactivate",function(R){e.CHM(i);const Y=e.oxw();return e.KtG(Y.deactivate.emit(R))}),e.qZA()}if(2&f){const i=r.$implicit,b=e.oxw();e.Q6J("@animationState","active")("width",i.width)("height",i.height)("x",i.x)("y",i.y)("fill",i.color)("stops",i.gradientStops)("data",i.data)("orientation",b.barOrientation.Horizontal)("roundEdges",i.roundEdges)("gradient",b.gradient)("isActive",b.isActive(i.data))("ariaLabel",i.ariaLabel)("animations",b.animations)("tooltipDisabled",b.tooltipDisabled)("tooltipPlacement",b.tooltipPlacement)("tooltipType",b.tooltipType)("tooltipTitle",b.tooltipTemplate?void 0:i.tooltipText)("tooltipTemplate",b.tooltipTemplate)("tooltipContext",i.data)("noBarWhenZero",b.noBarWhenZero)}}function x_(f,r){if(1&f){const i=e.EpF();e.O4$(),e.TgZ(0,"g",4),e.NdJ("dimensionsChanged",function(R){const me=e.CHM(i).index,Pe=e.oxw(2);return e.KtG(Pe.dataLabelWidthChanged.emit({size:R,index:me}))}),e.qZA()}if(2&f){const i=r.$implicit,b=e.oxw(2);e.Q6J("barX",i.x)("barY",i.y)("barWidth",i.width)("barHeight",i.height)("value",i.total)("valueFormatting",b.dataLabelFormatting)("orientation",b.barOrientation.Horizontal)}}function r4(f,r){if(1&f&&(e.O4$(),e.TgZ(0,"g"),e.YNc(1,x_,1,7,"g",3),e.qZA()),2&f){const i=e.oxw();e.xp6(1),e.Q6J("ngForOf",i.barsForDataLabels)("ngForTrackBy",i.trackDataLabelBy)}}function gf(f,r){if(1&f){const i=e.EpF();e.O4$(),e.TgZ(0,"g",5),e.NdJ("dimensionsChanged",function(R){e.CHM(i);const Y=e.oxw();return e.KtG(Y.updateXAxisHeight(R))}),e.qZA()}if(2&f){const i=e.oxw();e.Q6J("xScale",i.xScale)("dims",i.dims)("showGridLines",i.showGridLines)("showLabel",i.showXAxisLabel)("labelText",i.xAxisLabel)("trimTicks",i.trimXAxisTicks)("rotateTicks",i.rotateXAxisTicks)("maxTickLength",i.maxXAxisTickLength)("tickFormatting",i.xAxisTickFormatting)("ticks",i.xAxisTicks)}}function vf(f,r){if(1&f){const i=e.EpF();e.O4$(),e.TgZ(0,"g",6),e.NdJ("dimensionsChanged",function(R){e.CHM(i);const Y=e.oxw();return e.KtG(Y.updateYAxisWidth(R))}),e.qZA()}if(2&f){const i=e.oxw();e.Q6J("yScale",i.yScale)("dims",i.dims)("showLabel",i.showYAxisLabel)("labelText",i.yAxisLabel)("trimTicks",i.trimYAxisTicks)("maxTickLength",i.maxYAxisTickLength)("tickFormatting",i.yAxisTickFormatting)("ticks",i.yAxisTicks)("yAxisOffset",i.dataLabelMaxWidth.negative)}}function yf(f,r){if(1&f){const i=e.EpF();e.O4$(),e.TgZ(0,"g",6),e.NdJ("dimensionsChanged",function(R){e.CHM(i);const Y=e.oxw();return e.KtG(Y.updateXAxisHeight(R))}),e.qZA()}if(2&f){const i=e.oxw();e.Q6J("xScale",i.valueScale)("dims",i.dims)("showGridLines",i.showGridLines)("showLabel",i.showXAxisLabel)("labelText",i.xAxisLabel)("trimTicks",i.trimXAxisTicks)("rotateTicks",i.rotateXAxisTicks)("maxTickLength",i.maxXAxisTickLength)("tickFormatting",i.xAxisTickFormatting)("ticks",i.xAxisTicks)}}function s4(f,r){if(1&f){const i=e.EpF();e.O4$(),e.TgZ(0,"g",7),e.NdJ("dimensionsChanged",function(R){e.CHM(i);const Y=e.oxw();return e.KtG(Y.updateYAxisWidth(R))}),e.qZA()}if(2&f){const i=e.oxw();e.Q6J("yScale",i.groupScale)("dims",i.dims)("showLabel",i.showYAxisLabel)("labelText",i.yAxisLabel)("trimTicks",i.trimYAxisTicks)("maxTickLength",i.maxYAxisTickLength)("tickFormatting",i.yAxisTickFormatting)("ticks",i.yAxisTicks)("yAxisOffset",i.dataLabelMaxWidth.negative)}}function Ic(f,r){if(1&f){const i=e.EpF();e.O4$(),e.TgZ(0,"g")(1,"g",9),e.NdJ("select",function(R){const me=e.CHM(i).$implicit,Pe=e.oxw(2);return e.KtG(Pe.onClick(R,me))})("activate",function(R){const me=e.CHM(i).$implicit,Pe=e.oxw(2);return e.KtG(Pe.onActivate(R,me))})("deactivate",function(R){const me=e.CHM(i).$implicit,Pe=e.oxw(2);return e.KtG(Pe.onDeactivate(R,me))})("dataLabelWidthChanged",function(R){const me=e.CHM(i).index,Pe=e.oxw(2);return e.KtG(Pe.onDataLabelMaxWidthChanged(R,me))}),e.qZA()()}if(2&f){const i=r.$implicit,b=e.oxw(2);e.Q6J("@animationState","active"),e.uIk("transform",b.groupTransform(i)),e.xp6(1),e.Q6J("xScale",b.valueScale)("activeEntries",b.activeEntries)("yScale",b.innerScale)("colors",b.colors)("series",i.series)("dims",b.dims)("gradient",b.gradient)("tooltipDisabled",b.tooltipDisabled)("tooltipTemplate",b.tooltipTemplate)("seriesName",i.name)("roundEdges",b.roundEdges)("animations",b.animations)("showDataLabel",b.showDataLabel)("dataLabelFormatting",b.dataLabelFormatting)("noBarWhenZero",b.noBarWhenZero)}}function Nh(f,r){if(1&f&&(e.O4$(),e.TgZ(0,"g"),e.YNc(1,Ic,2,17,"g",8),e.qZA()),2&f){const i=e.oxw();e.xp6(1),e.Q6J("ngForOf",i.results)("ngForTrackBy",i.trackBy)}}function Fh(f,r){if(1&f){const i=e.EpF();e.O4$(),e.TgZ(0,"g")(1,"g",9),e.NdJ("select",function(R){const me=e.CHM(i).$implicit,Pe=e.oxw(2);return e.KtG(Pe.onClick(R,me))})("activate",function(R){const me=e.CHM(i).$implicit,Pe=e.oxw(2);return e.KtG(Pe.onActivate(R,me))})("deactivate",function(R){const me=e.CHM(i).$implicit,Pe=e.oxw(2);return e.KtG(Pe.onDeactivate(R,me))})("dataLabelWidthChanged",function(R){const me=e.CHM(i).index,Pe=e.oxw(2);return e.KtG(Pe.onDataLabelMaxWidthChanged(R,me))}),e.qZA()()}if(2&f){const i=r.$implicit,b=e.oxw(2);e.uIk("transform",b.groupTransform(i)),e.xp6(1),e.Q6J("xScale",b.valueScale)("activeEntries",b.activeEntries)("yScale",b.innerScale)("colors",b.colors)("series",i.series)("dims",b.dims)("gradient",b.gradient)("tooltipDisabled",b.tooltipDisabled)("tooltipTemplate",b.tooltipTemplate)("seriesName",i.name)("roundEdges",b.roundEdges)("animations",b.animations)("showDataLabel",b.showDataLabel)("dataLabelFormatting",b.dataLabelFormatting)("noBarWhenZero",b.noBarWhenZero)}}function j0(f,r){if(1&f&&(e.O4$(),e.TgZ(0,"g"),e.YNc(1,Fh,2,16,"g",8),e.qZA()),2&f){const i=e.oxw();e.xp6(1),e.Q6J("ngForOf",i.results)("ngForTrackBy",i.trackBy)}}function bf(f,r){if(1&f){const i=e.EpF();e.O4$(),e.TgZ(0,"g",5),e.NdJ("dimensionsChanged",function(R){e.CHM(i);const Y=e.oxw();return e.KtG(Y.updateXAxisHeight(R))}),e.qZA()}if(2&f){const i=e.oxw();e.Q6J("xScale",i.xScale)("dims",i.dims)("showGridLines",i.showGridLines)("showLabel",i.showXAxisLabel)("labelText",i.xAxisLabel)("trimTicks",i.trimXAxisTicks)("rotateTicks",i.rotateXAxisTicks)("maxTickLength",i.maxXAxisTickLength)("tickFormatting",i.xAxisTickFormatting)("ticks",i.xAxisTicks)}}function xf(f,r){if(1&f){const i=e.EpF();e.O4$(),e.TgZ(0,"g",6),e.NdJ("dimensionsChanged",function(R){e.CHM(i);const Y=e.oxw();return e.KtG(Y.updateYAxisWidth(R))}),e.qZA()}if(2&f){const i=e.oxw();e.Q6J("yScale",i.yScale)("dims",i.dims)("showLabel",i.showYAxisLabel)("labelText",i.yAxisLabel)("trimTicks",i.trimYAxisTicks)("maxTickLength",i.maxYAxisTickLength)("tickFormatting",i.yAxisTickFormatting)("ticks",i.yAxisTicks)}}function Cf(f,r){if(1&f){const i=e.EpF();e.O4$(),e.TgZ(0,"g")(1,"g",8),e.NdJ("select",function(R){const me=e.CHM(i).$implicit,Pe=e.oxw(2);return e.KtG(Pe.onClick(R,me))})("activate",function(R){const me=e.CHM(i).$implicit,Pe=e.oxw(2);return e.KtG(Pe.onActivate(R,me))})("deactivate",function(R){const me=e.CHM(i).$implicit,Pe=e.oxw(2);return e.KtG(Pe.onDeactivate(R,me))}),e.qZA()()}if(2&f){const i=r.$implicit,b=e.oxw(2);e.Q6J("@animationState","active"),e.uIk("transform",b.groupTransform(i)),e.xp6(1),e.Q6J("type",b.barChartType.Normalized)("xScale",b.xScale)("yScale",b.yScale)("activeEntries",b.activeEntries)("colors",b.colors)("series",i.series)("dims",b.dims)("gradient",b.gradient)("tooltipDisabled",b.tooltipDisabled)("tooltipTemplate",b.tooltipTemplate)("seriesName",i.name)("animations",b.animations)("noBarWhenZero",b.noBarWhenZero)}}function t6(f,r){if(1&f&&(e.O4$(),e.TgZ(0,"g"),e.YNc(1,Cf,2,15,"g",7),e.qZA()),2&f){const i=e.oxw();e.xp6(1),e.Q6J("ngForOf",i.results)("ngForTrackBy",i.trackBy)}}function Mf(f,r){if(1&f){const i=e.EpF();e.O4$(),e.TgZ(0,"g")(1,"g",8),e.NdJ("select",function(R){const me=e.CHM(i).$implicit,Pe=e.oxw(2);return e.KtG(Pe.onClick(R,me))})("activate",function(R){const me=e.CHM(i).$implicit,Pe=e.oxw(2);return e.KtG(Pe.onActivate(R,me))})("deactivate",function(R){const me=e.CHM(i).$implicit,Pe=e.oxw(2);return e.KtG(Pe.onDeactivate(R,me))}),e.qZA()()}if(2&f){const i=r.$implicit,b=e.oxw(2);e.uIk("transform",b.groupTransform(i)),e.xp6(1),e.Q6J("type",b.barChartType.Normalized)("xScale",b.xScale)("yScale",b.yScale)("activeEntries",b.activeEntries)("colors",b.colors)("series",i.series)("dims",b.dims)("gradient",b.gradient)("tooltipDisabled",b.tooltipDisabled)("tooltipTemplate",b.tooltipTemplate)("seriesName",i.name)("animations",b.animations)("noBarWhenZero",b.noBarWhenZero)}}function q0(f,r){if(1&f&&(e.O4$(),e.TgZ(0,"g"),e.YNc(1,Mf,2,14,"g",7),e.qZA()),2&f){const i=e.oxw();e.xp6(1),e.Q6J("ngForOf",i.results)("ngForTrackBy",i.trackBy)}}function Ef(f,r){if(1&f){const i=e.EpF();e.O4$(),e.TgZ(0,"g",5),e.NdJ("dimensionsChanged",function(R){e.CHM(i);const Y=e.oxw();return e.KtG(Y.updateXAxisHeight(R))}),e.qZA()}if(2&f){const i=e.oxw();e.Q6J("xScale",i.xScale)("dims",i.dims)("showGridLines",i.showGridLines)("showLabel",i.showXAxisLabel)("labelText",i.xAxisLabel)("trimTicks",i.trimXAxisTicks)("rotateTicks",i.rotateXAxisTicks)("maxTickLength",i.maxXAxisTickLength)("tickFormatting",i.xAxisTickFormatting)("ticks",i.xAxisTicks)}}function C_(f,r){if(1&f){const i=e.EpF();e.O4$(),e.TgZ(0,"g",6),e.NdJ("dimensionsChanged",function(R){e.CHM(i);const Y=e.oxw();return e.KtG(Y.updateYAxisWidth(R))}),e.qZA()}if(2&f){const i=e.oxw();e.Q6J("yScale",i.yScale)("dims",i.dims)("showLabel",i.showYAxisLabel)("labelText",i.yAxisLabel)("trimTicks",i.trimYAxisTicks)("maxTickLength",i.maxYAxisTickLength)("tickFormatting",i.yAxisTickFormatting)("ticks",i.yAxisTicks)("yAxisOffset",i.dataLabelMaxWidth.negative)}}function n6(f,r){if(1&f){const i=e.EpF();e.O4$(),e.TgZ(0,"g")(1,"g",8),e.NdJ("select",function(R){const me=e.CHM(i).$implicit,Pe=e.oxw(2);return e.KtG(Pe.onClick(R,me))})("activate",function(R){const me=e.CHM(i).$implicit,Pe=e.oxw(2);return e.KtG(Pe.onActivate(R,me))})("deactivate",function(R){const me=e.CHM(i).$implicit,Pe=e.oxw(2);return e.KtG(Pe.onDeactivate(R,me))})("dataLabelWidthChanged",function(R){const me=e.CHM(i).index,Pe=e.oxw(2);return e.KtG(Pe.onDataLabelMaxWidthChanged(R,me))}),e.qZA()()}if(2&f){const i=r.$implicit,b=e.oxw(2);e.Q6J("@animationState","active"),e.uIk("transform",b.groupTransform(i)),e.xp6(1),e.Q6J("type",b.barChartType.Stacked)("xScale",b.xScale)("yScale",b.yScale)("colors",b.colors)("series",i.series)("activeEntries",b.activeEntries)("dims",b.dims)("gradient",b.gradient)("tooltipDisabled",b.tooltipDisabled)("tooltipTemplate",b.tooltipTemplate)("seriesName",i.name)("animations",b.animations)("showDataLabel",b.showDataLabel)("dataLabelFormatting",b.dataLabelFormatting)("noBarWhenZero",b.noBarWhenZero)}}function i6(f,r){if(1&f&&(e.O4$(),e.TgZ(0,"g"),e.YNc(1,n6,2,17,"g",7),e.qZA()),2&f){const i=e.oxw();e.xp6(1),e.Q6J("ngForOf",i.results)("ngForTrackBy",i.trackBy)}}function a6(f,r){if(1&f){const i=e.EpF();e.O4$(),e.TgZ(0,"g")(1,"g",8),e.NdJ("select",function(R){const me=e.CHM(i).$implicit,Pe=e.oxw(2);return e.KtG(Pe.onClick(R,me))})("activate",function(R){const me=e.CHM(i).$implicit,Pe=e.oxw(2);return e.KtG(Pe.onActivate(R,me))})("deactivate",function(R){const me=e.CHM(i).$implicit,Pe=e.oxw(2);return e.KtG(Pe.onDeactivate(R,me))})("dataLabelWidthChanged",function(R){const me=e.CHM(i).index,Pe=e.oxw(2);return e.KtG(Pe.onDataLabelMaxWidthChanged(R,me))}),e.qZA()()}if(2&f){const i=r.$implicit,b=e.oxw(2);e.uIk("transform",b.groupTransform(i)),e.xp6(1),e.Q6J("type",b.barChartType.Stacked)("xScale",b.xScale)("yScale",b.yScale)("colors",b.colors)("series",i.series)("activeEntries",b.activeEntries)("dims",b.dims)("gradient",b.gradient)("tooltipDisabled",b.tooltipDisabled)("tooltipTemplate",b.tooltipTemplate)("seriesName",i.name)("animations",b.animations)("showDataLabel",b.showDataLabel)("dataLabelFormatting",b.dataLabelFormatting)("noBarWhenZero",b.noBarWhenZero)}}function Df(f,r){if(1&f&&(e.O4$(),e.TgZ(0,"g"),e.YNc(1,a6,2,16,"g",7),e.qZA()),2&f){const i=e.oxw();e.xp6(1),e.Q6J("ngForOf",i.results)("ngForTrackBy",i.trackBy)}}function Af(f,r){if(1&f){const i=e.EpF();e.O4$(),e.TgZ(0,"g",2),e.NdJ("select",function(R){e.CHM(i);const Y=e.oxw(2);return e.KtG(Y.onClick(R))})("activate",function(R){e.CHM(i);const Y=e.oxw(2);return e.KtG(Y.activate.emit(R))})("deactivate",function(R){e.CHM(i);const Y=e.oxw(2);return e.KtG(Y.deactivate.emit(R))}),e.qZA()}if(2&f){const i=r.$implicit,b=e.oxw(2);e.Q6J("@animationState","active")("@.disabled",!b.animations)("width",i.width)("height",i.height)("x",i.x)("y",i.y)("fill",i.color)("stops",i.gradientStops)("data",i.data)("orientation",b.barOrientation.Vertical)("roundEdges",i.roundEdges)("gradient",b.gradient)("ariaLabel",i.ariaLabel)("isActive",b.isActive(i.data))("tooltipDisabled",b.tooltipDisabled)("tooltipPlacement",b.tooltipPlacement)("tooltipType",b.tooltipType)("tooltipTitle",b.tooltipTemplate?void 0:i.tooltipText)("tooltipTemplate",b.tooltipTemplate)("tooltipContext",i.data)("noBarWhenZero",b.noBarWhenZero)("animations",b.animations)}}function s6(f,r){if(1&f&&(e.O4$(),e.TgZ(0,"g"),e.YNc(1,Af,1,22,"g",1),e.qZA()),2&f){const i=e.oxw();e.xp6(1),e.Q6J("ngForOf",i.bars)("ngForTrackBy",i.trackBy)}}function Tf(f,r){if(1&f){const i=e.EpF();e.O4$(),e.TgZ(0,"g",2),e.NdJ("select",function(R){e.CHM(i);const Y=e.oxw(2);return e.KtG(Y.onClick(R))})("activate",function(R){e.CHM(i);const Y=e.oxw(2);return e.KtG(Y.activate.emit(R))})("deactivate",function(R){e.CHM(i);const Y=e.oxw(2);return e.KtG(Y.deactivate.emit(R))}),e.qZA()}if(2&f){const i=r.$implicit,b=e.oxw(2);e.Q6J("width",i.width)("height",i.height)("x",i.x)("y",i.y)("fill",i.color)("stops",i.gradientStops)("data",i.data)("orientation",b.barOrientation.Vertical)("roundEdges",i.roundEdges)("gradient",b.gradient)("ariaLabel",i.ariaLabel)("isActive",b.isActive(i.data))("tooltipDisabled",b.tooltipDisabled)("tooltipPlacement",b.tooltipPlacement)("tooltipType",b.tooltipType)("tooltipTitle",b.tooltipTemplate?void 0:i.tooltipText)("tooltipTemplate",b.tooltipTemplate)("tooltipContext",i.data)("noBarWhenZero",b.noBarWhenZero)("animations",b.animations)}}function o4(f,r){if(1&f&&(e.O4$(),e.TgZ(0,"g"),e.YNc(1,Tf,1,20,"g",1),e.qZA()),2&f){const i=e.oxw();e.xp6(1),e.Q6J("ngForOf",i.bars)("ngForTrackBy",i.trackBy)}}function wf(f,r){if(1&f){const i=e.EpF();e.O4$(),e.TgZ(0,"g",4),e.NdJ("dimensionsChanged",function(R){const me=e.CHM(i).index,Pe=e.oxw(2);return e.KtG(Pe.dataLabelHeightChanged.emit({size:R,index:me}))}),e.qZA()}if(2&f){const i=r.$implicit,b=e.oxw(2);e.Q6J("barX",i.x)("barY",i.y)("barWidth",i.width)("barHeight",i.height)("value",i.total)("valueFormatting",b.dataLabelFormatting)("orientation",b.barOrientation.Vertical)}}function l4(f,r){if(1&f&&(e.O4$(),e.TgZ(0,"g"),e.YNc(1,wf,1,7,"g",3),e.qZA()),2&f){const i=e.oxw();e.xp6(1),e.Q6J("ngForOf",i.barsForDataLabels)("ngForTrackBy",i.trackDataLabelBy)}}function c4(f,r){if(1&f){const i=e.EpF();e.O4$(),e.TgZ(0,"g",5),e.NdJ("dimensionsChanged",function(R){e.CHM(i);const Y=e.oxw();return e.KtG(Y.updateXAxisHeight(R))}),e.qZA()}if(2&f){const i=e.oxw();e.Q6J("xScale",i.xScale)("dims",i.dims)("showGridLines",i.showGridLines)("showLabel",i.showXAxisLabel)("labelText",i.xAxisLabel)("trimTicks",i.trimXAxisTicks)("rotateTicks",i.rotateXAxisTicks)("maxTickLength",i.maxXAxisTickLength)("tickFormatting",i.xAxisTickFormatting)("ticks",i.xAxisTicks)("xAxisOffset",i.dataLabelMaxHeight.negative)}}function o6(f,r){if(1&f){const i=e.EpF();e.O4$(),e.TgZ(0,"g",6),e.NdJ("dimensionsChanged",function(R){e.CHM(i);const Y=e.oxw();return e.KtG(Y.updateYAxisWidth(R))}),e.qZA()}if(2&f){const i=e.oxw();e.Q6J("yScale",i.yScale)("dims",i.dims)("showGridLines",i.showGridLines)("showLabel",i.showYAxisLabel)("labelText",i.yAxisLabel)("trimTicks",i.trimYAxisTicks)("maxTickLength",i.maxYAxisTickLength)("tickFormatting",i.yAxisTickFormatting)("ticks",i.yAxisTicks)}}function l6(f,r){if(1&f){const i=e.EpF();e.O4$(),e.TgZ(0,"g",6),e.NdJ("dimensionsChanged",function(R){e.CHM(i);const Y=e.oxw();return e.KtG(Y.updateXAxisHeight(R))}),e.qZA()}if(2&f){const i=e.oxw();e.Q6J("xScale",i.groupScale)("dims",i.dims)("showLabel",i.showXAxisLabel)("labelText",i.xAxisLabel)("trimTicks",i.trimXAxisTicks)("rotateTicks",i.rotateXAxisTicks)("maxTickLength",i.maxXAxisTickLength)("tickFormatting",i.xAxisTickFormatting)("ticks",i.xAxisTicks)("xAxisOffset",i.dataLabelMaxHeight.negative)}}function c6(f,r){if(1&f){const i=e.EpF();e.O4$(),e.TgZ(0,"g",7),e.NdJ("dimensionsChanged",function(R){e.CHM(i);const Y=e.oxw();return e.KtG(Y.updateYAxisWidth(R))}),e.qZA()}if(2&f){const i=e.oxw();e.Q6J("yScale",i.valueScale)("dims",i.dims)("showGridLines",i.showGridLines)("showLabel",i.showYAxisLabel)("labelText",i.yAxisLabel)("trimTicks",i.trimYAxisTicks)("maxTickLength",i.maxYAxisTickLength)("tickFormatting",i.yAxisTickFormatting)("ticks",i.yAxisTicks)}}function If(f,r){if(1&f){const i=e.EpF();e.O4$(),e.TgZ(0,"g",9),e.NdJ("select",function(R){const me=e.CHM(i).$implicit,Pe=e.oxw(2);return e.KtG(Pe.onClick(R,me))})("activate",function(R){const me=e.CHM(i).$implicit,Pe=e.oxw(2);return e.KtG(Pe.onActivate(R,me))})("deactivate",function(R){const me=e.CHM(i).$implicit,Pe=e.oxw(2);return e.KtG(Pe.onDeactivate(R,me))})("dataLabelHeightChanged",function(R){const me=e.CHM(i).index,Pe=e.oxw(2);return e.KtG(Pe.onDataLabelMaxHeightChanged(R,me))}),e.qZA()}if(2&f){const i=r.$implicit,b=e.oxw(2);e.Q6J("@animationState","active")("activeEntries",b.activeEntries)("xScale",b.innerScale)("yScale",b.valueScale)("colors",b.colors)("series",i.series)("dims",b.dims)("gradient",b.gradient)("tooltipDisabled",b.tooltipDisabled)("tooltipTemplate",b.tooltipTemplate)("showDataLabel",b.showDataLabel)("dataLabelFormatting",b.dataLabelFormatting)("seriesName",i.name)("roundEdges",b.roundEdges)("animations",b.animations)("noBarWhenZero",b.noBarWhenZero),e.uIk("transform",b.groupTransform(i))}}function d6(f,r){if(1&f&&(e.O4$(),e.TgZ(0,"g"),e.YNc(1,If,1,17,"g",8),e.qZA()),2&f){const i=e.oxw();e.xp6(1),e.Q6J("ngForOf",i.results)("ngForTrackBy",i.trackBy)}}function u6(f,r){if(1&f){const i=e.EpF();e.O4$(),e.TgZ(0,"g",9),e.NdJ("select",function(R){const me=e.CHM(i).$implicit,Pe=e.oxw(2);return e.KtG(Pe.onClick(R,me))})("activate",function(R){const me=e.CHM(i).$implicit,Pe=e.oxw(2);return e.KtG(Pe.onActivate(R,me))})("deactivate",function(R){const me=e.CHM(i).$implicit,Pe=e.oxw(2);return e.KtG(Pe.onDeactivate(R,me))})("dataLabelHeightChanged",function(R){const me=e.CHM(i).index,Pe=e.oxw(2);return e.KtG(Pe.onDataLabelMaxHeightChanged(R,me))}),e.qZA()}if(2&f){const i=r.$implicit,b=e.oxw(2);e.Q6J("activeEntries",b.activeEntries)("xScale",b.innerScale)("yScale",b.valueScale)("colors",b.colors)("series",i.series)("dims",b.dims)("gradient",b.gradient)("tooltipDisabled",b.tooltipDisabled)("tooltipTemplate",b.tooltipTemplate)("showDataLabel",b.showDataLabel)("dataLabelFormatting",b.dataLabelFormatting)("seriesName",i.name)("roundEdges",b.roundEdges)("animations",b.animations)("noBarWhenZero",b.noBarWhenZero),e.uIk("transform",b.groupTransform(i))}}function Lf(f,r){if(1&f&&(e.O4$(),e.TgZ(0,"g"),e.YNc(1,u6,1,16,"g",8),e.qZA()),2&f){const i=e.oxw();e.xp6(1),e.Q6J("ngForOf",i.results)("ngForTrackBy",i.trackBy)}}function Sf(f,r){if(1&f){const i=e.EpF();e.O4$(),e.TgZ(0,"g",5),e.NdJ("dimensionsChanged",function(R){e.CHM(i);const Y=e.oxw();return e.KtG(Y.updateXAxisHeight(R))}),e.qZA()}if(2&f){const i=e.oxw();e.Q6J("xScale",i.xScale)("dims",i.dims)("showLabel",i.showXAxisLabel)("labelText",i.xAxisLabel)("trimTicks",i.trimXAxisTicks)("rotateTicks",i.rotateXAxisTicks)("maxTickLength",i.maxXAxisTickLength)("tickFormatting",i.xAxisTickFormatting)("ticks",i.xAxisTicks)}}function Of(f,r){if(1&f){const i=e.EpF();e.O4$(),e.TgZ(0,"g",6),e.NdJ("dimensionsChanged",function(R){e.CHM(i);const Y=e.oxw();return e.KtG(Y.updateYAxisWidth(R))}),e.qZA()}if(2&f){const i=e.oxw();e.Q6J("yScale",i.yScale)("dims",i.dims)("showGridLines",i.showGridLines)("showLabel",i.showYAxisLabel)("labelText",i.yAxisLabel)("trimTicks",i.trimYAxisTicks)("maxTickLength",i.maxYAxisTickLength)("tickFormatting",i.yAxisTickFormatting)("ticks",i.yAxisTicks)}}function M_(f,r){if(1&f){const i=e.EpF();e.O4$(),e.TgZ(0,"g")(1,"g",8),e.NdJ("select",function(R){const me=e.CHM(i).$implicit,Pe=e.oxw(2);return e.KtG(Pe.onClick(R,me))})("activate",function(R){const me=e.CHM(i).$implicit,Pe=e.oxw(2);return e.KtG(Pe.onActivate(R,me))})("deactivate",function(R){const me=e.CHM(i).$implicit,Pe=e.oxw(2);return e.KtG(Pe.onDeactivate(R,me))}),e.qZA()()}if(2&f){const i=r.$implicit,b=e.oxw(2);e.Q6J("@animationState","active"),e.uIk("transform",b.groupTransform(i)),e.xp6(1),e.Q6J("type",b.barChartType.Normalized)("xScale",b.xScale)("yScale",b.yScale)("activeEntries",b.activeEntries)("colors",b.colors)("series",i.series)("dims",b.dims)("gradient",b.gradient)("tooltipDisabled",b.tooltipDisabled)("tooltipTemplate",b.tooltipTemplate)("seriesName",i.name)("animations",b.animations)("noBarWhenZero",b.noBarWhenZero)}}function Pf(f,r){if(1&f&&(e.O4$(),e.TgZ(0,"g"),e.YNc(1,M_,2,15,"g",7),e.qZA()),2&f){const i=e.oxw();e.xp6(1),e.Q6J("ngForOf",i.results)("ngForTrackBy",i.trackBy)}}function X0(f,r){if(1&f){const i=e.EpF();e.O4$(),e.TgZ(0,"g")(1,"g",8),e.NdJ("select",function(R){const me=e.CHM(i).$implicit,Pe=e.oxw(2);return e.KtG(Pe.onClick(R,me))})("activate",function(R){const me=e.CHM(i).$implicit,Pe=e.oxw(2);return e.KtG(Pe.onActivate(R,me))})("deactivate",function(R){const me=e.CHM(i).$implicit,Pe=e.oxw(2);return e.KtG(Pe.onDeactivate(R,me))}),e.qZA()()}if(2&f){const i=r.$implicit,b=e.oxw(2);e.uIk("transform",b.groupTransform(i)),e.xp6(1),e.Q6J("type",b.barChartType.Normalized)("xScale",b.xScale)("yScale",b.yScale)("activeEntries",b.activeEntries)("colors",b.colors)("series",i.series)("dims",b.dims)("gradient",b.gradient)("tooltipDisabled",b.tooltipDisabled)("tooltipTemplate",b.tooltipTemplate)("seriesName",i.name)("animations",b.animations)("noBarWhenZero",b.noBarWhenZero)}}function a2(f,r){if(1&f&&(e.O4$(),e.TgZ(0,"g"),e.YNc(1,X0,2,14,"g",7),e.qZA()),2&f){const i=e.oxw();e.xp6(1),e.Q6J("ngForOf",i.results)("ngForTrackBy",i.trackBy)}}function h6(f,r){if(1&f){const i=e.EpF();e.O4$(),e.TgZ(0,"g",5),e.NdJ("dimensionsChanged",function(R){e.CHM(i);const Y=e.oxw();return e.KtG(Y.updateXAxisHeight(R))}),e.qZA()}if(2&f){const i=e.oxw();e.Q6J("xScale",i.xScale)("dims",i.dims)("showLabel",i.showXAxisLabel)("labelText",i.xAxisLabel)("trimTicks",i.trimXAxisTicks)("rotateTicks",i.rotateXAxisTicks)("maxTickLength",i.maxXAxisTickLength)("tickFormatting",i.xAxisTickFormatting)("ticks",i.xAxisTicks)("xAxisOffset",i.dataLabelMaxHeight.negative)}}function J0(f,r){if(1&f){const i=e.EpF();e.O4$(),e.TgZ(0,"g",6),e.NdJ("dimensionsChanged",function(R){e.CHM(i);const Y=e.oxw();return e.KtG(Y.updateYAxisWidth(R))}),e.qZA()}if(2&f){const i=e.oxw();e.Q6J("yScale",i.yScale)("dims",i.dims)("showGridLines",i.showGridLines)("showLabel",i.showYAxisLabel)("labelText",i.yAxisLabel)("trimTicks",i.trimYAxisTicks)("maxTickLength",i.maxYAxisTickLength)("tickFormatting",i.yAxisTickFormatting)("ticks",i.yAxisTicks)}}function f6(f,r){if(1&f){const i=e.EpF();e.O4$(),e.TgZ(0,"g")(1,"g",8),e.NdJ("select",function(R){const me=e.CHM(i).$implicit,Pe=e.oxw(2);return e.KtG(Pe.onClick(R,me))})("activate",function(R){const me=e.CHM(i).$implicit,Pe=e.oxw(2);return e.KtG(Pe.onActivate(R,me))})("deactivate",function(R){const me=e.CHM(i).$implicit,Pe=e.oxw(2);return e.KtG(Pe.onDeactivate(R,me))})("dataLabelHeightChanged",function(R){const me=e.CHM(i).index,Pe=e.oxw(2);return e.KtG(Pe.onDataLabelMaxHeightChanged(R,me))}),e.qZA()()}if(2&f){const i=r.$implicit,b=e.oxw(2);e.Q6J("@animationState","active"),e.uIk("transform",b.groupTransform(i)),e.xp6(1),e.Q6J("type",b.barChartType.Stacked)("xScale",b.xScale)("yScale",b.yScale)("activeEntries",b.activeEntries)("colors",b.colors)("series",i.series)("dims",b.dims)("gradient",b.gradient)("tooltipDisabled",b.tooltipDisabled)("tooltipTemplate",b.tooltipTemplate)("showDataLabel",b.showDataLabel)("dataLabelFormatting",b.dataLabelFormatting)("seriesName",i.name)("animations",b.animations)("noBarWhenZero",b.noBarWhenZero)}}function p6(f,r){if(1&f&&(e.O4$(),e.TgZ(0,"g"),e.YNc(1,f6,2,17,"g",7),e.qZA()),2&f){const i=e.oxw();e.xp6(1),e.Q6J("ngForOf",i.results)("ngForTrackBy",i.trackBy)}}function d4(f,r){if(1&f){const i=e.EpF();e.O4$(),e.TgZ(0,"g")(1,"g",8),e.NdJ("select",function(R){const me=e.CHM(i).$implicit,Pe=e.oxw(2);return e.KtG(Pe.onClick(R,me))})("activate",function(R){const me=e.CHM(i).$implicit,Pe=e.oxw(2);return e.KtG(Pe.onActivate(R,me))})("deactivate",function(R){const me=e.CHM(i).$implicit,Pe=e.oxw(2);return e.KtG(Pe.onDeactivate(R,me))})("dataLabelHeightChanged",function(R){const me=e.CHM(i).index,Pe=e.oxw(2);return e.KtG(Pe.onDataLabelMaxHeightChanged(R,me))}),e.qZA()()}if(2&f){const i=r.$implicit,b=e.oxw(2);e.uIk("transform",b.groupTransform(i)),e.xp6(1),e.Q6J("type",b.barChartType.Stacked)("xScale",b.xScale)("yScale",b.yScale)("activeEntries",b.activeEntries)("colors",b.colors)("series",i.series)("dims",b.dims)("gradient",b.gradient)("tooltipDisabled",b.tooltipDisabled)("tooltipTemplate",b.tooltipTemplate)("showDataLabel",b.showDataLabel)("dataLabelFormatting",b.dataLabelFormatting)("seriesName",i.name)("animations",b.animations)("noBarWhenZero",b.noBarWhenZero)}}function _6(f,r){if(1&f&&(e.O4$(),e.TgZ(0,"g"),e.YNc(1,d4,2,16,"g",7),e.qZA()),2&f){const i=e.oxw();e.xp6(1),e.Q6J("ngForOf",i.results)("ngForTrackBy",i.trackBy)}}function $0(f,r){if(1&f&&(e.O4$(),e._UZ(0,"g",5)),2&f){const i=e.oxw();e.Q6J("orientation",i.BarOrientation.Vertical)("name",i.gradientId)("stops",i.gradientStops)}}function Ws(f,r){if(1&f&&(e.O4$(),e._UZ(0,"line",6)),2&f){const i=r.$implicit,b=r.index,R=e.oxw();e.ekj("hidden",R.hideBar),e.uIk("x1",i.v1.x)("y1",i.v1.y)("x2",i.v2.x)("y2",i.v2.y)("stroke",R.strokeColor)("stroke-width",2===b?R.medianLineWidth:R.whiskerStrokeWidth)("mask",b?void 0:R.maskLine)}}function Hh(f,r){if(1&f){const i=e.EpF();e.O4$(),e.TgZ(0,"g")(1,"g",5),e.NdJ("activate",function(R){e.CHM(i);const Y=e.oxw();return e.KtG(Y.onActivate(R))})("deactivate",function(R){e.CHM(i);const Y=e.oxw();return e.KtG(Y.onDeactivate(R))})("select",function(R){e.CHM(i);const Y=e.oxw();return e.KtG(Y.onClick(R))}),e.qZA()()}if(2&f){const i=r.$implicit,b=e.oxw();e.xp6(1),e.Q6J("xScale",b.xScale)("yScale",b.yScale)("colors",b.colors)("roundEdges",b.roundEdges)("strokeColor",b.strokeColor)("strokeWidth",b.strokeWidth)("tooltipDisabled",b.tooltipDisabled)("tooltipTemplate",b.tooltipTemplate)("series",i)("dims",b.dims)("animations",b.animations)("gradient",b.gradient)}}function u4(f,r){if(1&f){const i=e.EpF();e.O4$(),e.TgZ(0,"g",2),e.NdJ("select",function(){e.CHM(i);const R=e.oxw().$implicit,Y=e.oxw();return e.KtG(Y.onClick(R.data))})("activate",function(){e.CHM(i);const R=e.oxw().$implicit,Y=e.oxw();return e.KtG(Y.activateCircle(R))})("deactivate",function(){e.CHM(i);const R=e.oxw().$implicit,Y=e.oxw();return e.KtG(Y.deactivateCircle(R))}),e.qZA()}if(2&f){const i=e.oxw().$implicit,b=e.oxw();e.Udp("opacity",i.opacity),e.ekj("active",i.isActive),e.Q6J("@animationState","active")("cx",0)("cy",0)("r",i.radius)("fill",i.color)("pointerEvents","all")("data",i.value)("classNames",i.classNames)("tooltipDisabled",b.tooltipDisabled)("tooltipPlacement",b.placementTypes.Top)("tooltipType",b.styleTypes.tooltip)("tooltipTitle",b.tooltipTemplate?void 0:b.getTooltipText(i))("tooltipTemplate",b.tooltipTemplate)("tooltipContext",i.data)}}function r2(f,r){if(1&f){const i=e.EpF();e.O4$(),e.TgZ(0,"g",2),e.NdJ("select",function(){e.CHM(i);const R=e.oxw().$implicit,Y=e.oxw();return e.KtG(Y.onClick(R.data))})("activate",function(){e.CHM(i);const R=e.oxw().$implicit,Y=e.oxw();return e.KtG(Y.activateCircle(R))})("deactivate",function(){e.CHM(i);const R=e.oxw().$implicit,Y=e.oxw();return e.KtG(Y.deactivateCircle(R))}),e.qZA()}if(2&f){const i=e.oxw().$implicit,b=e.oxw();e.Udp("opacity",i.opacity),e.ekj("active",i.isActive),e.Q6J("cx",0)("cy",0)("r",i.radius)("fill",i.color)("pointerEvents","all")("data",i.value)("classNames",i.classNames)("tooltipDisabled",b.tooltipDisabled)("tooltipPlacement",b.placementTypes.Top)("tooltipType",b.styleTypes.tooltip)("tooltipTitle",b.tooltipTemplate?void 0:b.getTooltipText(i))("tooltipTemplate",b.tooltipTemplate)("tooltipContext",i.data)}}function bd(f,r){if(1&f&&(e.O4$(),e.TgZ(0,"g")(1,"g"),e.YNc(2,u4,1,18,"g",1),e.YNc(3,r2,1,17,"g",1),e.qZA()()),2&f){const i=r.$implicit,b=e.oxw();e.xp6(1),e.uIk("transform",i.transform),e.xp6(1),e.Q6J("ngIf",!b.isSSR),e.xp6(1),e.Q6J("ngIf",b.isSSR)}}function xd(f,r){if(1&f){const i=e.EpF();e.O4$(),e.TgZ(0,"g",6),e.NdJ("dimensionsChanged",function(R){e.CHM(i);const Y=e.oxw();return e.KtG(Y.updateXAxisHeight(R))}),e.qZA()}if(2&f){const i=e.oxw();e.Q6J("showGridLines",i.showGridLines)("dims",i.dims)("xScale",i.xScale)("showLabel",i.showXAxisLabel)("labelText",i.xAxisLabel)("trimTicks",i.trimXAxisTicks)("rotateTicks",i.rotateXAxisTicks)("maxTickLength",i.maxXAxisTickLength)("tickFormatting",i.xAxisTickFormatting)("ticks",i.xAxisTicks)}}function _1(f,r){if(1&f){const i=e.EpF();e.O4$(),e.TgZ(0,"g",7),e.NdJ("dimensionsChanged",function(R){e.CHM(i);const Y=e.oxw();return e.KtG(Y.updateYAxisWidth(R))}),e.qZA()}if(2&f){const i=e.oxw();e.Q6J("showGridLines",i.showGridLines)("yScale",i.yScale)("dims",i.dims)("showLabel",i.showYAxisLabel)("labelText",i.yAxisLabel)("trimTicks",i.trimYAxisTicks)("maxTickLength",i.maxYAxisTickLength)("tickFormatting",i.yAxisTickFormatting)("ticks",i.yAxisTicks)}}function Cd(f,r){if(1&f){const i=e.EpF();e.O4$(),e.TgZ(0,"g")(1,"g",9),e.NdJ("select",function(R){const me=e.CHM(i).$implicit,Pe=e.oxw(2);return e.KtG(Pe.onClick(R,me))})("activate",function(R){e.CHM(i);const Y=e.oxw(2);return e.KtG(Y.onActivate(R))})("deactivate",function(R){e.CHM(i);const Y=e.oxw(2);return e.KtG(Y.onDeactivate(R))}),e.qZA()()}if(2&f){const i=r.$implicit,b=e.oxw(2);e.Q6J("@animationState","active"),e.xp6(1),e.Q6J("xScale",b.xScale)("yScale",b.yScale)("rScale",b.rScale)("xScaleType",b.xScaleType)("yScaleType",b.yScaleType)("xAxisLabel",b.xAxisLabel)("yAxisLabel",b.yAxisLabel)("colors",b.colors)("data",i)("activeEntries",b.activeEntries)("tooltipDisabled",b.tooltipDisabled)("tooltipTemplate",b.tooltipTemplate)}}function Md(f,r){if(1&f&&(e.O4$(),e.TgZ(0,"g"),e.YNc(1,Cd,2,13,"g",8),e.qZA()),2&f){const i=e.oxw();e.uIk("clip-path",i.clipPath),e.xp6(1),e.Q6J("ngForOf",i.data)("ngForTrackBy",i.trackBy)}}function Ed(f,r){if(1&f){const i=e.EpF();e.O4$(),e.TgZ(0,"g")(1,"g",9),e.NdJ("select",function(R){const me=e.CHM(i).$implicit,Pe=e.oxw(2);return e.KtG(Pe.onClick(R,me))})("activate",function(R){e.CHM(i);const Y=e.oxw(2);return e.KtG(Y.onActivate(R))})("deactivate",function(R){e.CHM(i);const Y=e.oxw(2);return e.KtG(Y.onDeactivate(R))}),e.qZA()()}if(2&f){const i=r.$implicit,b=e.oxw(2);e.xp6(1),e.Q6J("xScale",b.xScale)("yScale",b.yScale)("rScale",b.rScale)("xScaleType",b.xScaleType)("yScaleType",b.yScaleType)("xAxisLabel",b.xAxisLabel)("yAxisLabel",b.yAxisLabel)("colors",b.colors)("data",i)("activeEntries",b.activeEntries)("tooltipDisabled",b.tooltipDisabled)("tooltipTemplate",b.tooltipTemplate)}}function Dd(f,r){if(1&f&&(e.O4$(),e.TgZ(0,"g"),e.YNc(1,Ed,2,12,"g",8),e.qZA()),2&f){const i=e.oxw();e.uIk("clip-path",i.clipPath),e.xp6(1),e.Q6J("ngForOf",i.data)("ngForTrackBy",i.trackBy)}}function kf(f,r){if(1&f&&(e.O4$(),e.TgZ(0,"defs"),e._UZ(1,"g",3),e.qZA()),2&f){const i=e.oxw();e.xp6(1),e.Q6J("orientation",i.barOrientation.Vertical)("name",i.gradientId)("stops",i.gradientStops)}}const h4=function(f,r,i){return{series:f,name:r,value:i}};function Bf(f,r){if(1&f){const i=e.EpF();e.O4$(),e.TgZ(0,"g",1),e.NdJ("select",function(){const Y=e.CHM(i).$implicit,me=e.oxw();return e.KtG(me.onClick(Y.cell))})("activate",function(){const Y=e.CHM(i).$implicit,me=e.oxw();return e.KtG(me.activate.emit(Y.cell))})("deactivate",function(){const Y=e.CHM(i).$implicit,me=e.oxw();return e.KtG(me.deactivate.emit(Y.cell))}),e.qZA()}if(2&f){const i=r.$implicit,b=e.oxw();e.Q6J("x",i.x)("y",i.y)("width",i.width)("height",i.height)("fill",i.fill)("data",i.data)("gradient",b.gradient)("animations",b.animations)("tooltipDisabled",b.tooltipDisabled)("tooltipPlacement",b.placementTypes.Top)("tooltipType",b.styleTypes.tooltip)("tooltipTitle",b.tooltipTemplate?void 0:b.tooltipText(i))("tooltipTemplate",b.tooltipTemplate)("tooltipContext",e.kEZ(14,h4,i.series,i.label,i.data))}}function Nf(f,r){if(1&f){const i=e.EpF();e.O4$(),e.TgZ(0,"g",6),e.NdJ("dimensionsChanged",function(R){e.CHM(i);const Y=e.oxw();return e.KtG(Y.updateXAxisHeight(R))}),e.qZA()}if(2&f){const i=e.oxw();e.Q6J("xScale",i.xScale)("dims",i.dims)("showLabel",i.showXAxisLabel)("labelText",i.xAxisLabel)("trimTicks",i.trimXAxisTicks)("rotateTicks",i.rotateXAxisTicks)("maxTickLength",i.maxXAxisTickLength)("tickFormatting",i.xAxisTickFormatting)("ticks",i.xAxisTicks)}}function zh(f,r){if(1&f){const i=e.EpF();e.O4$(),e.TgZ(0,"g",7),e.NdJ("dimensionsChanged",function(R){e.CHM(i);const Y=e.oxw();return e.KtG(Y.updateYAxisWidth(R))}),e.qZA()}if(2&f){const i=e.oxw();e.Q6J("yScale",i.yScale)("dims",i.dims)("showLabel",i.showYAxisLabel)("labelText",i.yAxisLabel)("trimTicks",i.trimYAxisTicks)("maxTickLength",i.maxYAxisTickLength)("tickFormatting",i.yAxisTickFormatting)("ticks",i.yAxisTicks)}}function Ff(f,r){if(1&f&&(e.O4$(),e._UZ(0,"rect")),2&f){const i=r.$implicit;e.uIk("x",i.x)("y",i.y)("rx",i.rx)("width",i.width)("height",i.height)("fill",i.fill)}}function zf(f,r){if(1&f&&(e.O4$(),e.TgZ(0,"g"),e._UZ(1,"path",1),e.qZA()),2&f){const i=e.oxw();e.xp6(1),e.Q6J("@animationState","active"),e.uIk("d",i.initialPath)("fill",i.fill)("stroke",i.stroke)}}function m6(f,r){if(1&f&&(e.O4$(),e.TgZ(0,"g"),e._UZ(1,"path",1),e.qZA()),2&f){const i=e.oxw();e.xp6(1),e.uIk("d",i.initialPath)("fill",i.fill)("stroke",i.stroke)}}function Uf(f,r){if(1&f&&(e.O4$(),e._UZ(0,"g",4)),2&f){const i=e.oxw();e.Q6J("orientation",i.barOrientation.Vertical)("name",i.gradientId)("stops",i.gradientStops)}}function v6(f,r){if(1&f&&(e.O4$(),e._UZ(0,"g",5)),2&f){const i=e.oxw();e.ekj("active",i.isActive(i.data))("inactive",i.isInactive(i.data)),e.Q6J("data",i.data)("path",i.outerPath)("fill",i.hasGradient?i.gradientUrl:i.colors.getColor(i.data.name))("opacity",i.rangeFillOpacity)("animations",i.animations)}}function f4(f,r){if(1&f){const i=e.EpF();e.O4$(),e.TgZ(0,"g",7),e.NdJ("dimensionsChanged",function(R){e.CHM(i);const Y=e.oxw();return e.KtG(Y.updateXAxisHeight(R))}),e.qZA()}if(2&f){const i=e.oxw();e.Q6J("xScale",i.xScale)("dims",i.dims)("showGridLines",i.showGridLines)("showLabel",i.showXAxisLabel)("labelText",i.xAxisLabel)("trimTicks",i.trimXAxisTicks)("rotateTicks",i.rotateXAxisTicks)("maxTickLength",i.maxXAxisTickLength)("tickFormatting",i.xAxisTickFormatting)("ticks",i.xAxisTicks)}}function p4(f,r){if(1&f){const i=e.EpF();e.O4$(),e.TgZ(0,"g",8),e.NdJ("dimensionsChanged",function(R){e.CHM(i);const Y=e.oxw();return e.KtG(Y.updateYAxisWidth(R))}),e.qZA()}if(2&f){const i=e.oxw();e.Q6J("yScale",i.yScale)("dims",i.dims)("showGridLines",i.showGridLines)("showLabel",i.showYAxisLabel)("labelText",i.yAxisLabel)("trimTicks",i.trimYAxisTicks)("maxTickLength",i.maxYAxisTickLength)("tickFormatting",i.yAxisTickFormatting)("ticks",i.yAxisTicks)("referenceLines",i.referenceLines)("showRefLines",i.showRefLines)("showRefLabels",i.showRefLabels)}}function _4(f,r){if(1&f&&(e.O4$(),e.TgZ(0,"g"),e._UZ(1,"g",10),e.qZA()),2&f){const i=r.$implicit,b=e.oxw(2);e.Q6J("@animationState","active"),e.xp6(1),e.Q6J("xScale",b.xScale)("yScale",b.yScale)("colors",b.colors)("data",i)("activeEntries",b.activeEntries)("scaleType",b.scaleType)("curve",b.curve)("rangeFillOpacity",b.rangeFillOpacity)("hasRange",b.hasRange)("animations",b.animations)}}function y6(f,r){if(1&f&&(e.O4$(),e.TgZ(0,"g"),e.YNc(1,_4,2,11,"g",9),e.qZA()),2&f){const i=e.oxw();e.xp6(1),e.Q6J("ngForOf",i.results)("ngForTrackBy",i.trackBy)}}function eu(f,r){if(1&f&&(e.O4$(),e.TgZ(0,"g"),e._UZ(1,"g",10),e.qZA()),2&f){const i=r.$implicit,b=e.oxw(2);e.xp6(1),e.Q6J("xScale",b.xScale)("yScale",b.yScale)("colors",b.colors)("data",i)("activeEntries",b.activeEntries)("scaleType",b.scaleType)("curve",b.curve)("rangeFillOpacity",b.rangeFillOpacity)("hasRange",b.hasRange)("animations",b.animations)}}function Uh(f,r){if(1&f&&(e.O4$(),e.TgZ(0,"g"),e.YNc(1,eu,2,10,"g",9),e.qZA()),2&f){const i=e.oxw();e.xp6(1),e.Q6J("ngForOf",i.results)("ngForTrackBy",i.trackBy)}}function m4(f,r){if(1&f){const i=e.EpF();e.O4$(),e.TgZ(0,"g")(1,"g",14),e.NdJ("select",function(R){e.CHM(i);const Y=e.oxw(2);return e.KtG(Y.onClick(R))})("activate",function(R){e.CHM(i);const Y=e.oxw(2);return e.KtG(Y.onActivate(R))})("deactivate",function(R){e.CHM(i);const Y=e.oxw(2);return e.KtG(Y.onDeactivate(R))}),e.qZA()()}if(2&f){const i=r.$implicit,b=e.oxw(2);e.xp6(1),e.Q6J("xScale",b.xScale)("yScale",b.yScale)("colors",b.colors)("data",i)("scaleType",b.scaleType)("visibleValue",b.hoveredVertical)("activeEntries",b.activeEntries)("tooltipDisabled",b.tooltipDisabled)("tooltipTemplate",b.tooltipTemplate)}}function b6(f,r){if(1&f){const i=e.EpF();e.O4$(),e.TgZ(0,"g",11),e.NdJ("mouseleave",function(){e.CHM(i);const R=e.oxw();return e.KtG(R.hideCircles())}),e.TgZ(1,"g",12),e.NdJ("hover",function(R){e.CHM(i);const Y=e.oxw();return e.KtG(Y.updateHoveredVertical(R))}),e.qZA(),e.YNc(2,m4,2,9,"g",13),e.qZA()}if(2&f){const i=e.oxw();e.xp6(1),e.Q6J("dims",i.dims)("xSet",i.xSet)("xScale",i.xScale)("yScale",i.yScale)("results",i.results)("colors",i.colors)("tooltipDisabled",i.tooltipDisabled)("tooltipTemplate",i.seriesTooltipTemplate),e.xp6(1),e.Q6J("ngForOf",i.results)}}function Td(f,r){if(1&f&&(e.O4$(),e.TgZ(0,"g"),e._UZ(1,"g",16),e.qZA()),2&f){const i=r.$implicit,b=e.oxw(2);e.xp6(1),e.Q6J("xScale",b.timelineXScale)("yScale",b.timelineYScale)("colors",b.colors)("data",i)("scaleType",b.scaleType)("curve",b.curve)("hasRange",b.hasRange)("animations",b.animations)}}function Vh(f,r){if(1&f){const i=e.EpF();e.O4$(),e.TgZ(0,"g",15),e.NdJ("onDomainChange",function(R){e.CHM(i);const Y=e.oxw();return e.KtG(Y.updateDomain(R))}),e.YNc(1,Td,2,8,"g",9),e.qZA()}if(2&f){const i=e.oxw();e.Q6J("results",i.results)("view",e.WLB(10,Ya,i.timelineWidth,i.height))("height",i.timelineHeight)("scheme",i.scheme)("customColors",i.customColors)("scaleType",i.scaleType)("legend",i.legend),e.uIk("transform",i.timelineTransform),e.xp6(1),e.Q6J("ngForOf",i.results)("ngForTrackBy",i.trackBy)}}function Wh(f,r){if(1&f&&(e.O4$(),e._UZ(0,"g",4)),2&f){const i=e.oxw();e.Q6J("color",i.seriesColor)("name",i.gradientId)("startOpacity",.25)("endOpacity",1)("stops",i.gradientStops)}}function Vf(f,r){if(1&f){const i=e.EpF();e.O4$(),e.TgZ(0,"g",5),e.NdJ("select",function(){const Y=e.CHM(i).$implicit,me=e.oxw();return e.KtG(me.select.emit(Y.data))})("activate",function(){const Y=e.CHM(i).$implicit,me=e.oxw();return e.KtG(me.activate.emit({name:Y.data.series}))})("deactivate",function(){const Y=e.CHM(i).$implicit,me=e.oxw();return e.KtG(me.deactivate.emit({name:Y.data.series}))}),e.qZA()}if(2&f){const i=r.$implicit,b=e.oxw();e.Udp("opacity",b.inactive?.2:1),e.Q6J("cx",i.cx)("cy",i.cy)("r",b.circleRadius)("fill",i.color)("tooltipDisabled",b.tooltipDisabled)("tooltipPlacement",b.placementTypes.Top)("tooltipType",b.styleTypes.tooltip)("tooltipTitle",b.tooltipTemplate?void 0:b.tooltipText(i))("tooltipTemplate",b.tooltipTemplate)("tooltipContext",i.data)}}function Wf(f,r){if(1&f&&(e.O4$(),e._UZ(0,"circle",7)),2&f){const i=r.$implicit;e.uIk("r",i)}}function Kh(f,r){if(1&f&&(e.O4$(),e.TgZ(0,"g"),e.YNc(1,Wf,1,1,"circle",6),e.qZA()),2&f){const i=e.oxw();e.xp6(1),e.Q6J("ngForOf",i.radiusTicks)}}function y4(f,r){if(1&f&&(e.O4$(),e._UZ(0,"g",9)),2&f){const i=r.$implicit,b=e.oxw(2);e.Q6J("data",i)("radius",b.outerRadius)("label",i.label)("max",b.outerRadius)("value",b.showGridLines?1:b.outerRadius)("explodeSlices",!0)("animations",b.animations)("labelTrim",b.labelTrim)("labelTrimSize",b.labelTrimSize)}}function x6(f,r){if(1&f&&(e.O4$(),e.TgZ(0,"g"),e.YNc(1,y4,1,9,"g",8),e.qZA()),2&f){const i=e.oxw();e.xp6(1),e.Q6J("ngForOf",i.thetaTicks)}}function b4(f,r){if(1&f){const i=e.EpF();e.O4$(),e.TgZ(0,"g",10),e.NdJ("dimensionsChanged",function(R){e.CHM(i);const Y=e.oxw();return e.KtG(Y.updateYAxisWidth(R))}),e.qZA()}if(2&f){const i=e.oxw();e.Q6J("yScale",i.yAxisScale)("dims",i.yAxisDims)("showGridLines",i.showGridLines)("showLabel",i.showYAxisLabel)("labelText",i.yAxisLabel)("trimTicks",i.trimYAxisTicks)("maxTickLength",i.maxYAxisTickLength)("tickFormatting",i.yAxisTickFormatting),e.uIk("transform",i.transformYAxis)}}function Kf(f,r){if(1&f&&(e.O4$(),e._UZ(0,"g",11)),2&f){const i=e.oxw();e.Q6J("label",i.xAxisLabel)("offset",i.labelOffset)("orient",i.orientation.Bottom)("height",i.dims.height)("width",i.dims.width)}}function Gf(f,r){if(1&f){const i=e.EpF();e.O4$(),e.TgZ(0,"g")(1,"g",13),e.NdJ("select",function(R){e.CHM(i);const Y=e.oxw(2);return e.KtG(Y.onClick(R))})("activate",function(R){e.CHM(i);const Y=e.oxw(2);return e.KtG(Y.onActivate(R))})("deactivate",function(R){e.CHM(i);const Y=e.oxw(2);return e.KtG(Y.onDeactivate(R))}),e.qZA()()}if(2&f){const i=r.$implicit,b=e.oxw(2);e.Q6J("@animationState","active"),e.xp6(1),e.Q6J("gradient",b.gradient)("xScale",b.xScale)("yScale",b.yScale)("colors",b.colors)("data",i)("activeEntries",b.activeEntries)("scaleType",b.scaleType)("curve",b.curve)("rangeFillOpacity",b.rangeFillOpacity)("animations",b.animations)("tooltipDisabled",b.tooltipDisabled)("tooltipTemplate",b.tooltipTemplate)}}function Zf(f,r){if(1&f&&(e.O4$(),e.TgZ(0,"g"),e.YNc(1,Gf,2,13,"g",12),e.qZA()),2&f){const i=e.oxw();e.uIk("transform",i.transformPlot),e.xp6(1),e.Q6J("ngForOf",i.results)("ngForTrackBy",i.trackBy)}}function Yf(f,r){if(1&f){const i=e.EpF();e.O4$(),e.TgZ(0,"g")(1,"g",13),e.NdJ("select",function(R){e.CHM(i);const Y=e.oxw(2);return e.KtG(Y.onClick(R))})("activate",function(R){e.CHM(i);const Y=e.oxw(2);return e.KtG(Y.onActivate(R))})("deactivate",function(R){e.CHM(i);const Y=e.oxw(2);return e.KtG(Y.onDeactivate(R))}),e.qZA()()}if(2&f){const i=r.$implicit,b=e.oxw(2);e.xp6(1),e.Q6J("gradient",b.gradient)("xScale",b.xScale)("yScale",b.yScale)("colors",b.colors)("data",i)("activeEntries",b.activeEntries)("scaleType",b.scaleType)("curve",b.curve)("rangeFillOpacity",b.rangeFillOpacity)("animations",b.animations)("tooltipDisabled",b.tooltipDisabled)("tooltipTemplate",b.tooltipTemplate)}}function x4(f,r){if(1&f&&(e.O4$(),e.TgZ(0,"g"),e.YNc(1,Yf,2,12,"g",12),e.qZA()),2&f){const i=e.oxw();e.uIk("transform",i.transformPlot),e.xp6(1),e.Q6J("ngForOf",i.results)("ngForTrackBy",i.trackBy)}}function C4(f,r){if(1&f&&(e.O4$(),e.TgZ(0,"defs"),e._UZ(1,"g",3),e.qZA()),2&f){const i=e.oxw();e.xp6(1),e.Q6J("color",i.fill)("name",i.radialGradientId)("startOpacity",i.startOpacity)}}function M4(f,r){if(1&f&&(e.O4$(),e._UZ(0,"g",3)),2&f){const i=e.oxw().$implicit,b=e.oxw();e.Q6J("data",i)("radius",b.outerRadius)("color",b.color(i))("label",b.labelText(i))("labelTrim",b.trimLabels)("labelTrimSize",b.maxLabelLength)("max",b.max)("value",i.value)("explodeSlices",b.explodeSlices)("animations",b.animations)}}function E4(f,r){if(1&f){const i=e.EpF();e.O4$(),e.TgZ(0,"g"),e.YNc(1,M4,1,10,"g",1),e.TgZ(2,"g",2),e.NdJ("select",function(R){e.CHM(i);const Y=e.oxw();return e.KtG(Y.onClick(R))})("activate",function(R){e.CHM(i);const Y=e.oxw();return e.KtG(Y.activate.emit(R))})("deactivate",function(R){e.CHM(i);const Y=e.oxw();return e.KtG(Y.deactivate.emit(R))})("dblclick",function(R){e.CHM(i);const Y=e.oxw();return e.KtG(Y.dblclick.emit(R))}),e.qZA()()}if(2&f){const i=r.$implicit,b=e.oxw();e.xp6(1),e.Q6J("ngIf",b.labelVisible(i)),e.xp6(1),e.Q6J("startAngle",i.startAngle)("endAngle",i.endAngle)("innerRadius",b.innerRadius)("outerRadius",b.outerRadius)("fill",b.color(i))("value",i.data.value)("gradient",b.gradient)("data",i.data)("max",b.max)("explodeSlices",b.explodeSlices)("isActive",b.isActive(i.data))("animate",b.animations)("tooltipDisabled",b.tooltipDisabled)("tooltipPlacement",b.placementTypes.Top)("tooltipType",b.styleTypes.tooltip)("tooltipTitle",b.getTooltipTitle(i))("tooltipTemplate",b.tooltipTemplate)("tooltipContext",i.data)}}function qf(f,r){if(1&f){const i=e.EpF();e.O4$(),e.TgZ(0,"g",2),e.NdJ("select",function(R){e.CHM(i);const Y=e.oxw();return e.KtG(Y.onClick(R))})("activate",function(R){e.CHM(i);const Y=e.oxw();return e.KtG(Y.activate.emit(R))})("deactivate",function(R){e.CHM(i);const Y=e.oxw();return e.KtG(Y.deactivate.emit(R))}),e.qZA()}if(2&f){const i=r.$implicit,b=e.oxw();e.Q6J("startAngle",i.startAngle)("endAngle",i.endAngle)("innerRadius",b.innerRadius)("outerRadius",b.outerRadius)("fill",b.color(i))("value",i.data.value)("data",i.data)("gradient",!1)("pointerEvents",i.pointerEvents)("animate",i.animate),e.uIk("class",i.class)}}function Xf(f,r){if(1&f&&(e.O4$(),e._UZ(0,"text",10)),2&f){const i=e.oxw().$implicit;e.Q6J("countTo",i.percent)("countSuffix","%")}}function Jf(f,r){if(1&f&&(e.O4$(),e.TgZ(0,"text",11),e._uU(1),e.qZA()),2&f){const i=e.oxw().$implicit;e.xp6(1),e.hij(" ",i.percent.toLocaleString()," ")}}function A4(f,r){if(1&f&&(e.O4$(),e._UZ(0,"text",12)),2&f){const i=e.oxw().$implicit,b=e.oxw();e.Q6J("countTo",i.total)("countPrefix",b.label+": "),e.uIk("y",i.outerRadius)}}function Zh(f,r){if(1&f&&(e.O4$(),e.TgZ(0,"text",13),e._uU(1),e.qZA()),2&f){const i=e.oxw().$implicit,b=e.oxw();e.uIk("y",i.outerRadius),e.xp6(1),e.AsE(" ",b.label,": ",i.total.toLocaleString()," ")}}const m1=function(f){return{data:f}};function C6(f,r){if(1&f){const i=e.EpF();e.O4$(),e.TgZ(0,"g",3)(1,"g",4),e.NdJ("select",function(R){e.CHM(i);const Y=e.oxw();return e.KtG(Y.onClick(R))})("activate",function(R){e.CHM(i);const Y=e.oxw();return e.KtG(Y.onActivate(R))})("deactivate",function(R){e.CHM(i);const Y=e.oxw();return e.KtG(Y.onDeactivate(R))}),e.qZA(),e.YNc(2,Xf,1,2,"text",5),e.YNc(3,Jf,2,1,"text",6),e.TgZ(4,"text",7),e._uU(5),e.qZA(),e.YNc(6,A4,1,3,"text",8),e.YNc(7,Zh,2,3,"text",9),e.qZA()}if(2&f){const i=r.$implicit,b=e.oxw();e.uIk("transform",i.transform),e.xp6(1),e.Q6J("colors",i.colors)("data",i.data)("innerRadius",i.innerRadius)("outerRadius",i.outerRadius)("animations",b.animations)("tooltipDisabled",b.tooltipDisabled)("tooltipPlacement",b.placementTypes.Top)("tooltipType",b.styleTypes.tooltip)("tooltipTitle",b.tooltipTemplate?void 0:b.tooltipText(e.VKq(17,m1,i)))("tooltipTemplate",b.tooltipTemplate)("tooltipContext",i.data[0].data),e.xp6(1),e.Q6J("ngIf",b.animations),e.xp6(1),e.Q6J("ngIf",!b.animations),e.xp6(2),e.hij(" ",i.label," "),e.xp6(1),e.Q6J("ngIf",b.animations),e.xp6(1),e.Q6J("ngIf",!b.animations)}}const T4=["textEl"];function g1(f,r){if(1&f&&(e.O4$(),e._UZ(0,"path",7)),2&f){const i=e.oxw();e.uIk("fill",i.bandColor)("transform",i.transformBand)("d",i.bandPath)}}function M6(f,r){if(1&f&&(e.O4$(),e._UZ(0,"rect",2)),2&f){const i=r.$implicit,b=e.oxw();e.Udp("fill",b.emptyColor),e.uIk("x",i.x)("y",i.y)("width",i.width)("height",i.height)}}function Yh(f,r){if(1&f){const i=e.EpF();e.O4$(),e.TgZ(0,"g",3),e.NdJ("select",function(R){e.CHM(i);const Y=e.oxw();return e.KtG(Y.onClick(R))}),e.qZA()}if(2&f){const i=r.$implicit,b=e.oxw();e.Q6J("x",i.x)("y",i.y)("width",i.width)("height",i.height)("color",i.color)("bandColor",i.bandColor)("textColor",i.textColor)("data",i.data)("label",i.label)("medianSize",b.medianSize)("valueFormatting",b.valueFormatting)("labelFormatting",b.labelFormatting)("animations",b.animations)}}function D_(f,r){if(1&f&&(e.O4$(),e.TgZ(0,"defs"),e._UZ(1,"g",3),e.qZA()),2&f){const i=e.oxw();e.xp6(1),e.Q6J("orientation",i.orientation.Vertical)("name",i.gradientId)("stops",i.gradientStops)}}function $f(f,r){if(1&f&&e._UZ(0,"span",8),2&f){const i=e.oxw(2);e.Q6J("countTo",i.value)("valueFormatting",i.valueFormatting)}}function E6(f,r){if(1&f&&(e.TgZ(0,"span",9),e._uU(1),e.qZA()),2&f){const i=e.oxw(2);e.xp6(1),e.hij(" ",i.formattedValue," ")}}function ep(f,r){if(1&f&&(e.O4$(),e.TgZ(0,"foreignObject",4),e.kcU(),e.TgZ(1,"p"),e._UZ(2,"span",5)(3,"br"),e.YNc(4,$f,1,2,"span",6),e.YNc(5,E6,2,1,"span",7),e.qZA()()),2&f){const i=e.oxw();e.Udp("pointer-events","none"),e.uIk("x",i.x)("y",i.y)("width",i.width)("height",i.height),e.xp6(1),e.Udp("color",i.getTextColor())("height",i.height+"px")("width",i.width+"px"),e.xp6(1),e.Q6J("innerHTML",i.formattedLabel,e.oJD),e.xp6(2),e.Q6J("ngIf",i.animations),e.xp6(1),e.Q6J("ngIf",!i.animations)}}function Hr(f,r){if(1&f){const i=e.EpF();e.O4$(),e.TgZ(0,"g",1),e.NdJ("select",function(R){e.CHM(i);const Y=e.oxw();return e.KtG(Y.onClick(R))}),e.qZA()}if(2&f){const i=r.$implicit,b=e.oxw();e.Q6J("data",i.data)("x",i.x)("y",i.y)("width",i.width)("height",i.height)("fill",i.fill)("label",i.label)("value",i.value)("valueFormatting",b.valueFormatting)("labelFormatting",b.labelFormatting)("gradient",b.gradient)("animations",b.animations)("tooltipDisabled",b.tooltipDisabled)("tooltipPlacement",b.placementTypes.Top)("tooltipType",b.styleTypes.tooltip)("tooltipTitle",b.tooltipTemplate?void 0:b.getTooltipText(i))("tooltipTemplate",b.tooltipTemplate)("tooltipContext",i.data)}}const tp=["valueTextEl"],A6=["unitsTextEl"];function T6(f,r){if(1&f&&(e.O4$(),e._UZ(0,"line",10)),2&f){const i=e.oxw();e.uIk("transform",i.transformLine)("stroke",i.colors.getColor(i.units))}}function np(f,r){if(1&f&&(e.O4$(),e._UZ(0,"line",11)),2&f){const i=e.oxw();e.uIk("transform",i.transformLine)("stroke",i.colors.getColor(i.units))}}const ip=function(){return{}};function wd(f,r){if(1&f&&(e.O4$(),e.TgZ(0,"g",2),e._UZ(1,"path"),e.qZA()),2&f){const i=r.$implicit;e.xp6(1),e.uIk("d",i.line)}}function w6(f,r){if(1&f&&(e.O4$(),e.TgZ(0,"g",2)(1,"text",3),e._uU(2),e.qZA()()),2&f){const i=r.$implicit;e.xp6(1),e.Udp("text-anchor",i.textAnchor),e.uIk("transform",i.textTransform),e.xp6(1),e.hij(" ",i.text," ")}}function I6(f,r){if(1&f&&(e.O4$(),e.TgZ(0,"g",4),e._UZ(1,"path"),e.qZA()),2&f){const i=r.$implicit;e.xp6(1),e.uIk("d",i.line)}}function sp(f,r){if(1&f){const i=e.EpF();e.O4$(),e.TgZ(0,"g")(1,"g",5),e.NdJ("select",function(R){e.CHM(i);const Y=e.oxw();return e.KtG(Y.onClick(R))})("activate",function(R){e.CHM(i);const Y=e.oxw();return e.KtG(Y.onActivate(R))})("deactivate",function(R){e.CHM(i);const Y=e.oxw();return e.KtG(Y.onDeactivate(R))}),e.qZA()()}if(2&f){const i=r.$implicit,b=e.oxw();e.uIk("transform",b.rotation),e.xp6(1),e.Q6J("backgroundArc",i.backgroundArc)("valueArc",i.valueArc)("cornerRadius",b.cornerRadius)("colors",b.colors)("isActive",b.isActive(i.valueArc.data))("tooltipDisabled",b.tooltipDisabled)("tooltipTemplate",b.tooltipTemplate)("valueFormatting",b.valueFormatting)("animations",b.animations)}}function L6(f,r){if(1&f&&(e.O4$(),e._UZ(0,"g",6)),2&f){const i=e.oxw();e.Q6J("bigSegments",i.bigSegments)("smallSegments",i.smallSegments)("min",i.min)("max",i.max)("radius",i.outerRadius)("angleSpan",i.angleSpan)("valueScale",i.valueScale)("startAngle",i.startAngle)("tickFormatting",i.axisTickFormatting)}}function L4(f,r){if(1&f&&(e.O4$(),e.TgZ(0,"text",7,8)(2,"tspan",9),e._uU(3),e.qZA(),e.TgZ(4,"tspan",10),e._uU(5),e.qZA()()),2&f){const i=e.oxw();e.Udp("text-anchor","middle"),e.uIk("transform",i.textTransform),e.xp6(3),e.Oqu(i.displayValue),e.xp6(2),e.Oqu(i.units)}}function A_(f,r,i){i=i||{};let b,R,Y,me=null,Pe=0;function lt(){Pe=!1===i.leading?0:+new Date,me=null,Y=f.apply(b,R)}return function(){const gt=+new Date;!Pe&&!1===i.leading&&(Pe=gt);const Et=r-(gt-Pe);return b=this,R=arguments,Et<=0?(clearTimeout(me),me=null,Pe=gt,Y=f.apply(b,R)):!me&&!1!==i.trailing&&(me=setTimeout(lt,Et)),Y}}var Ri,f;(f=Ri||(Ri={})).Top="top",f.Bottom="bottom",f.Left="left",f.Right="right",f.Center="center";function op(f,r,i){return i===Ri.Top?f.top-7:i===Ri.Bottom?f.top+f.height-r.height+7:i===Ri.Center?f.top+f.height/2-r.height/2:void 0}function O4(f,r,i){return i===Ri.Left?f.left-7:i===Ri.Right?f.left+f.width-r.width+7:i===Ri.Center?f.left+f.width/2-r.width/2:void 0}class zr{static calculateVerticalAlignment(r,i,b){let R=op(r,i,b);return R+i.height>window.innerHeight&&(R=window.innerHeight-i.height),R}static calculateVerticalCaret(r,i,b,R){let Y;R===Ri.Top&&(Y=r.height/2-b.height/2+7),R===Ri.Bottom&&(Y=i.height-r.height/2-b.height/2-7),R===Ri.Center&&(Y=i.height/2-b.height/2);const me=op(r,i,R);return me+i.height>window.innerHeight&&(Y+=me+i.height-window.innerHeight),Y}static calculateHorizontalAlignment(r,i,b){let R=O4(r,i,b);return R+i.width>window.innerWidth&&(R=window.innerWidth-i.width),R}static calculateHorizontalCaret(r,i,b,R){let Y;R===Ri.Left&&(Y=r.width/2-b.width/2+7),R===Ri.Right&&(Y=i.width-r.width/2-b.width/2-7),R===Ri.Center&&(Y=i.width/2-b.width/2);const me=O4(r,i,R);return me+i.width>window.innerWidth&&(Y+=me+i.width-window.innerWidth),Y}static shouldFlip(r,i,b,R){let Y=!1;return b===Ri.Right&&r.left+r.width+i.width+R>window.innerWidth&&(Y=!0),b===Ri.Left&&r.left-i.width-R<0&&(Y=!0),b===Ri.Top&&r.top-i.height-R<0&&(Y=!0),b===Ri.Bottom&&r.top+r.height+i.height+R>window.innerHeight&&(Y=!0),Y}static positionCaret(r,i,b,R,Y){let me=0,Pe=0;return r===Ri.Right?(Pe=-7,me=zr.calculateVerticalCaret(b,i,R,Y)):r===Ri.Left?(Pe=i.width,me=zr.calculateVerticalCaret(b,i,R,Y)):r===Ri.Top?(me=i.height,Pe=zr.calculateHorizontalCaret(b,i,R,Y)):r===Ri.Bottom&&(me=-7,Pe=zr.calculateHorizontalCaret(b,i,R,Y)),{top:me,left:Pe}}static positionContent(r,i,b,R,Y){let me=0,Pe=0;return r===Ri.Right?(Pe=b.left+b.width+R,me=zr.calculateVerticalAlignment(b,i,Y)):r===Ri.Left?(Pe=b.left-i.width-R,me=zr.calculateVerticalAlignment(b,i,Y)):r===Ri.Top?(me=b.top-i.height-R,Pe=zr.calculateHorizontalAlignment(b,i,Y)):r===Ri.Bottom&&(me=b.top+b.height+R,Pe=zr.calculateHorizontalAlignment(b,i,Y)),{top:me,left:Pe}}static determinePlacement(r,i,b,R){if(zr.shouldFlip(b,i,r,R)){if(r===Ri.Right)return Ri.Left;if(r===Ri.Left)return Ri.Right;if(r===Ri.Top)return Ri.Bottom;if(r===Ri.Bottom)return Ri.Top}return r}}class uo{constructor(r,i,b){this.element=r,this.renderer=i,this.platformId=b}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,t.NF)(this.platformId))return;const r=this.element.nativeElement,i=this.host.nativeElement.getBoundingClientRect();if(!i.height&&!i.width)return;const b=r.getBoundingClientRect();this.checkFlip(i,b),this.positionContent(r,i,b),this.showCaret&&this.positionCaret(i,b),setTimeout(()=>this.renderer.addClass(r,"animate"),1)}positionContent(r,i,b){const{top:R,left:Y}=zr.positionContent(this.placement,b,i,this.spacing,this.alignment);this.renderer.setStyle(r,"top",`${R}px`),this.renderer.setStyle(r,"left",`${Y}px`)}positionCaret(r,i){const b=this.caretElm.nativeElement,R=b.getBoundingClientRect(),{top:Y,left:me}=zr.positionCaret(this.placement,i,r,R,this.alignment);this.renderer.setStyle(b,"top",`${Y}px`),this.renderer.setStyle(b,"left",`${me}px`)}checkFlip(r,i){this.placement=zr.determinePlacement(this.placement,i,r,this.spacing)}onWindowResize(){this.position()}}uo.\u0275fac=function(r){return new(r||uo)(e.Y36(e.SBq),e.Y36(e.Qsj),e.Y36(e.Lbi))},uo.\u0275cmp=e.Xpm({type:uo,selectors:[["ngx-tooltip-content"]],viewQuery:function(r,i){if(1&r&&e.Gf(fi,5),2&r){let b;e.iGM(b=e.CRH())&&(i.caretElm=b.first)}},hostVars:2,hostBindings:function(r,i){1&r&&e.NdJ("resize",function(){return i.onWindowResize()},!1,e.Jf7),2&r&&e.Tol(i.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,i){1&r&&(e.TgZ(0,"div"),e._UZ(1,"span",0,1),e.TgZ(3,"div",2),e.YNc(4,Ni,2,4,"span",3),e.YNc(5,Ci,1,1,"span",4),e.qZA()()),2&r&&(e.xp6(1),e.Gre("tooltip-caret position-",i.placement,""),e.Q6J("hidden",!i.showCaret),e.xp6(3),e.Q6J("ngIf",!i.title),e.xp6(1),e.Q6J("ngIf",i.title))},dependencies:[t.O5,t.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,_.gn)([function S4(f,r){return function(b,R,Y){return{configurable:!0,enumerable:Y.enumerable,get:function(){return Object.defineProperty(this,R,{configurable:!0,enumerable:Y.enumerable,value:A_(Y.value,f,r)}),this[R]}}}}(100)],uo.prototype,"onWindowResize",null);class sl{constructor(r){this.injectionService=r,this.defaults={},this.components=new Map}getByType(r=this.type){return this.components.get(r)}create(r){return this.createByType(this.type,r)}createByType(r,i){i=this.assignDefaults(i);const b=this.injectComponent(r,i);return this.register(r,b),b}destroy(r){const i=this.components.get(r.componentType);if(i&&i.length){const b=i.indexOf(r);b>-1&&(i[b].destroy(),i.splice(b,1))}}destroyAll(){this.destroyByType(this.type)}destroyByType(r){const i=this.components.get(r);if(i&&i.length){let b=i.length-1;for(;b>=0;)this.destroy(i[b--])}}injectComponent(r,i){return this.injectionService.appendComponent(r,i)}assignDefaults(r){const i={...this.defaults.inputs},b={...this.defaults.outputs};return!r.inputs&&!r.outputs&&(r={inputs:r}),i&&(r.inputs={...i,...r.inputs}),b&&(r.outputs={...b,...r.outputs}),r}register(r,i){this.components.has(r)||this.components.set(r,[]),this.components.get(r).push(i)}}class Vo{constructor(r,i,b){this.applicationRef=r,this.componentFactoryResolver=i,this.injector=b}static setGlobalRootViewContainer(r){Vo.globalRootViewContainer=r}getRootViewContainer(){if(this._container)return this._container;if(Vo.globalRootViewContainer)return Vo.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 lp(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,i){if(i){if(void 0!==i.inputs){const b=Object.getOwnPropertyNames(i.inputs);for(const R of b)r.instance[R]=i.inputs[R]}if(void 0!==i.outputs){const b=Object.getOwnPropertyNames(i.outputs);for(const R of b)r.instance[R]=i.outputs[R]}}return r}appendComponent(r,i={},b){b||(b=this.getRootViewContainer());const R=this.getComponentRootNode(b),Y=new E.u0(R,this.componentFactoryResolver,this.applicationRef,this.injector),me=new E.C5(r),Pe=Y.attach(me);return this.projectComponentBindings(Pe,i),Pe}}Vo.globalRootViewContainer=null,Vo.\u0275fac=function(r){return new(r||Vo)(e.LFG(e.z2F),e.LFG(e._Vd),e.LFG(e.zs3))},Vo.\u0275prov=e.Yz7({token:Vo,factory:Vo.\u0275fac});class Lc extends sl{constructor(r){super(r),this.type=uo}}var hr,s2,Cn,es,Gs,Zs,c2;Lc.\u0275fac=function(r){return new(r||Lc)(e.LFG(Vo))},Lc.\u0275prov=e.Yz7({token:Lc,factory:Lc.\u0275fac}),function(f){f.Right="right",f.Below="below"}(hr||(hr={})),function(f){f.ScaleLegend="scaleLegend",f.Legend="legend"}(s2||(s2={})),function(f){f.Time="time",f.Linear="linear",f.Ordinal="ordinal",f.Quantile="quantile"}(Cn||(Cn={}));class Sc{constructor(){this.horizontal=!1}ngOnChanges(r){const i=this.gradientString(this.colors.range(),this.colors.domain()),b=this.horizontal?"right":"bottom";this.gradient=`linear-gradient(to ${b}, ${i})`}gradientString(r,i){i.push(1);const b=[];return r.reverse().forEach((R,Y)=>{b.push(`${R} ${Math.round(100*i[Y])}%`)}),b.join(", ")}}function Ur(f){return f=f instanceof Date?f.toLocaleDateString():f.toLocaleString()}function fs(f){return f.toLocaleString().replace(/[&'`"<>]/g,r=>({"&":"&amp;","'":"&#x27;","`":"&#x60;",'"':"&quot;","<":"&lt;",">":"&gt;"}[r]))}Sc.\u0275fac=function(r){return new(r||Sc)},Sc.\u0275cmp=e.Xpm({type:Sc,selectors:[["ngx-charts-scale-legend"]],inputs:{valueRange:"valueRange",colors:"colors",height:"height",width:"width",horizontal:"horizontal"},features:[e.TTD],decls:8,vars:10,consts:[[1,"scale-legend"],[1,"scale-legend-label"],[1,"scale-legend-wrap"]],template:function(r,i){1&r&&(e.TgZ(0,"div",0)(1,"div",1)(2,"span"),e._uU(3),e.qZA()(),e._UZ(4,"div",2),e.TgZ(5,"div",1)(6,"span"),e._uU(7),e.qZA()()()),2&r&&(e.Udp("height",i.horizontal?void 0:i.height,"px")("width",i.width,"px"),e.ekj("horizontal-legend",i.horizontal),e.xp6(3),e.Oqu(i.valueRange[1].toLocaleString()),e.xp6(1),e.Udp("background",i.gradient),e.xp6(3),e.Oqu(i.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});class v1{constructor(){this.isActive=!1,this.select=new e.vpe,this.activate=new e.vpe,this.deactivate=new e.vpe,this.toggle=new e.vpe}get trimmedLabel(){return this.formattedLabel||"(empty)"}onMouseEnter(){this.activate.emit({name:this.label})}onMouseLeave(){this.deactivate.emit({name:this.label})}}v1.\u0275fac=function(r){return new(r||v1)},v1.\u0275cmp=e.Xpm({type:v1,selectors:[["ngx-charts-legend-entry"]],hostBindings:function(r,i){1&r&&e.NdJ("mouseenter",function(){return i.onMouseEnter()})("mouseleave",function(){return i.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,i){1&r&&(e.TgZ(0,"span",0),e.NdJ("click",function(){return i.select.emit(i.formattedLabel)}),e.TgZ(1,"span",1),e.NdJ("click",function(){return i.toggle.emit(i.formattedLabel)}),e.qZA(),e.TgZ(2,"span",2),e._uU(3),e.qZA()()),2&r&&(e.ekj("active",i.isActive),e.Q6J("title",i.formattedLabel),e.xp6(1),e.Udp("background-color",i.color),e.xp6(2),e.hij(" ",i.trimmedLabel," "))},encapsulation:2,changeDetection:0});class Id{constructor(r){this.cd=r,this.horizontal=!1,this.labelClick=new e.vpe,this.labelActivate=new e.vpe,this.labelDeactivate=new e.vpe,this.legendEntries=[]}ngOnChanges(r){this.update()}update(){this.cd.markForCheck(),this.legendEntries=this.getLegendEntries()}getLegendEntries(){const r=[];for(const i of this.data){const b=Ur(i);-1===r.findIndex(Y=>Y.label===b)&&r.push({label:i,formattedLabel:b,color:this.colors.getColor(i)})}return r}isActive(r){return!!this.activeEntries&&void 0!==this.activeEntries.find(b=>r.label===b.name)}activate(r){this.labelActivate.emit(r)}deactivate(r){this.labelDeactivate.emit(r)}trackBy(r,i){return i.label}}Id.\u0275fac=function(r){return new(r||Id)(e.Y36(e.sBO))},Id.\u0275cmp=e.Xpm({type:Id,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:[e.TTD],decls:5,vars:9,consts:[["class","legend-title",4,"ngIf"],[1,"legend-wrap"],[1,"legend-labels"],["class","legend-label",4,"ngFor","ngForOf","ngForTrackBy"],[1,"legend-title"],[1,"legend-title-text"],[1,"legend-label"],[3,"label","formattedLabel","color","isActive","select","activate","deactivate"]],template:function(r,i){1&r&&(e.TgZ(0,"div"),e.YNc(1,Oi,3,1,"header",0),e.TgZ(2,"div",1)(3,"ul",2),e.YNc(4,na,2,4,"li",3),e.qZA()()()),2&r&&(e.Udp("width",i.width,"px"),e.xp6(1),e.Q6J("ngIf",(null==i.title?null:i.title.length)>0),e.xp6(2),e.Udp("max-height",i.height-45,"px"),e.ekj("horizontal-legend",i.horizontal),e.xp6(1),e.Q6J("ngForOf",i.legendEntries)("ngForTrackBy",i.trackBy))},dependencies:[v1,t.O5,t.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});class Qa{constructor(){this.showLegend=!1,this.animations=!0,this.legendLabelClick=new e.vpe,this.legendLabelActivate=new e.vpe,this.legendLabelDeactivate=new e.vpe,this.LegendPosition=hr,this.LegendType=s2}ngOnChanges(r){this.update()}update(){let r=0;this.showLegend&&(this.legendType=this.getLegendType(),(!this.legendOptions||this.legendOptions.position===hr.Right)&&(r=this.legendType===s2.ScaleLegend?1:2));const i=12-r;this.chartWidth=Math.floor(this.view[0]*i/12),this.legendWidth=this.legendOptions&&this.legendOptions.position!==hr.Right?this.chartWidth:Math.floor(this.view[0]*r/12)}getLegendType(){return this.legendOptions.scaleType===Cn.Linear?s2.ScaleLegend:s2.Legend}}Qa.\u0275fac=function(r){return new(r||Qa)},Qa.\u0275cmp=e.Xpm({type:Qa,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:[e._Bn([Lc]),e.TTD],ngContentSelectors:Ns,decls:5,vars:6,consts:[[1,"ngx-charts-outer"],[1,"ngx-charts"],["class","chart-legend",3,"horizontal","valueRange","colors","height","width",4,"ngIf"],["class","chart-legend",3,"horizontal","data","title","colors","height","width","activeEntries","labelClick","labelActivate","labelDeactivate",4,"ngIf"],[1,"chart-legend",3,"horizontal","valueRange","colors","height","width"],[1,"chart-legend",3,"horizontal","data","title","colors","height","width","activeEntries","labelClick","labelActivate","labelDeactivate"]],template:function(r,i){1&r&&(e.F$t(),e.TgZ(0,"div",0),e.O4$(),e.TgZ(1,"svg",1),e.Hsn(2),e.qZA(),e.YNc(3,Ia,1,5,"ngx-charts-scale-legend",2),e.YNc(4,Jr,1,7,"ngx-charts-legend",3),e.qZA()),2&r&&(e.Udp("width",i.view[0],"px"),e.xp6(1),e.uIk("width",i.chartWidth)("height",i.view[1]),e.xp6(2),e.Q6J("ngIf",i.showLegend&&i.legendType===i.LegendType.ScaleLegend),e.xp6(1),e.Q6J("ngIf",i.showLegend&&i.legendType===i.LegendType.Legend))},dependencies:[Sc,Id,t.O5],encapsulation:2,changeDetection:0});class o2{constructor(r,i){this.element=r,this.zone=i,this.visible=new e.vpe,this.isVisible=!1,this.runCheck()}destroy(){clearTimeout(this.timeout)}onVisibilityChange(){this.zone.run(()=>{this.isVisible=!0,this.visible.emit(!0)})}runCheck(){const r=()=>{if(!this.element)return;const{offsetHeight:i,offsetWidth:b}=this.element.nativeElement;i&&b?(clearTimeout(this.timeout),this.onVisibilityChange()):(clearTimeout(this.timeout),this.zone.runOutsideAngular(()=>{this.timeout=setTimeout(()=>r(),100)}))};this.zone.runOutsideAngular(()=>{this.timeout=setTimeout(()=>r())})}}function l2(f){return"[object Date]"===toString.call(f)}function S6(f){return"number"==typeof f}o2.\u0275fac=function(r){return new(r||o2)(e.Y36(e.SBq),e.Y36(e.R0b))},o2.\u0275dir=e.lG2({type:o2,selectors:[["visibility-observer"]],outputs:{visible:"visible"}});class ja{constructor(r,i,b,R){this.chartElement=r,this.zone=i,this.cd=b,this.platformId=R,this.scheme="cool",this.schemeType=Cn.Ordinal,this.animations=!0,this.select=new e.vpe}ngOnInit(){(0,t.PM)(this.platformId)&&(this.animations=!1)}ngAfterViewInit(){this.bindWindowResizeEvent(),this.visibilityObserver=new o2(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.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,i;const b=this.chartElement.nativeElement;if((0,t.NF)(this.platformId)&&null!==b.parentNode){const R=b.parentNode.getBoundingClientRect();r=R.width,i=R.height}return r&&i?{width:r,height:i}:null}formatDates(){for(let r=0;r<this.results.length;r++){const i=this.results[r];if(i.label=i.name,l2(i.label)&&(i.label=i.label.toLocaleDateString()),i.series)for(let b=0;b<i.series.length;b++){const R=i.series[b];R.label=R.name,l2(R.label)&&(R.label=R.label.toLocaleDateString())}}}unbindEvents(){this.resizeSubscription&&this.resizeSubscription.unsubscribe()}bindWindowResizeEvent(){if(!(0,t.NF)(this.platformId))return;const i=(0,s.R)(window,"resize").pipe((0,D.b)(200)).subscribe(b=>{this.update(),this.cd&&this.cd.markForCheck()});this.resizeSubscription=i}cloneData(r){const i=[];for(const b of r){const R={name:b.name};if(void 0!==b.value&&(R.value=b.value),void 0!==b.series){R.series=[];for(const Y of b.series){const me=Object.assign({},Y);R.series.push(me)}}void 0!==b.extra&&(R.extra=JSON.parse(JSON.stringify(b.extra))),i.push(R)}return i}}ja.\u0275fac=function(r){return new(r||ja)(e.Y36(e.SBq),e.Y36(e.R0b),e.Y36(e.sBO),e.Y36(e.Lbi))},ja.\u0275cmp=e.Xpm({type:ja,selectors:[["base-chart"]],inputs:{results:"results",view:"view",scheme:"scheme",schemeType:"schemeType",customColors:"customColors",animations:"animations"},outputs:{select:"select"},features:[e.TTD],decls:1,vars:0,template:function(r,i){1&r&&e._UZ(0,"div")},encapsulation:2}),function(f){f.Top="top",f.Bottom="bottom",f.Left="left",f.Right="right"}(es||(es={}));class Oc{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 es.Top:case es.Bottom:this.y=this.offset,this.x=this.width/2;break;case es.Left:this.y=-(this.offset+this.textHeight+this.margin),this.x=-this.height/2,this.transform="rotate(270)";break;case es.Right:this.y=this.offset+this.margin,this.x=-this.height/2,this.transform="rotate(270)"}}}function wl(f,r=16){return"string"!=typeof f?"number"==typeof f?f+"":"":(f=f.trim()).length<=r?f:`${f.slice(0,r)}...`}function tu(f,r){if(f.length>r){const i=[],b=Math.floor(f.length/r);for(let R=0;R<f.length;R++)R%b==0&&i.push(f[R]);f=i}return f}Oc.\u0275fac=function(r){return new(r||Oc)(e.Y36(e.SBq))},Oc.\u0275cmp=e.Xpm({type:Oc,selectors:[["g","ngx-charts-axis-label",""]],inputs:{orient:"orient",label:"label",offset:"offset",width:"width",height:"height"},features:[e.TTD],attrs:["ngx-charts-axis-label",""],decls:2,vars:6,template:function(r,i){1&r&&(e.O4$(),e.TgZ(0,"text"),e._uU(1),e.qZA()),2&r&&(e.uIk("stroke-width",i.strokeWidth)("x",i.x)("y",i.y)("text-anchor",i.textAnchor)("transform",i.transform),e.xp6(1),e.hij(" ",i.label," "))},encapsulation:2,changeDetection:0}),function(f){f.Start="start",f.Middle="middle",f.End="end"}(Gs||(Gs={}));class y1{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 e.vpe,this.verticalSpacing=20,this.rotateLabels=!1,this.innerTickSize=6,this.outerTickSize=6,this.tickPadding=3,this.textAnchor=Gs.Middle,this.maxTicksLength=0,this.maxAllowedLength=16,this.height=0,this.approxHeight=10}ngOnChanges(r){this.update()}ngAfterViewInit(){setTimeout(()=>this.updateDims())}updateDims(){if(!(0,t.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.tickFormatting?this.tickFormat=this.tickFormatting:r.tickFormat?this.tickFormat=r.tickFormat.apply(r,this.tickArguments):this.tickFormat=function(b){return"Date"===b.constructor.name?b.toLocaleDateString():b.toLocaleString()};const i=this.rotateTicks?this.getRotationAngle(this.ticks):null;this.adjustedScale=this.scale.bandwidth?function(b){return this.scale(b)+.5*this.scale.bandwidth()}:this.scale,this.textTransform="",i&&0!==i?(this.textTransform=`rotate(${i})`,this.textAnchor=Gs.End,this.verticalSpacing=10):this.textAnchor=Gs.Middle,setTimeout(()=>this.updateDims())}getRotationAngle(r){let i=0;this.maxTicksLength=0;for(let lt=0;lt<r.length;lt++){const gt=this.tickFormat(r[lt]).toString();let Et=gt.length;this.trimTicks&&(Et=this.tickTrim(gt).length),Et>this.maxTicksLength&&(this.maxTicksLength=Et)}const Y=7*Math.min(this.maxTicksLength,this.maxAllowedLength);let me=Y;const Pe=Math.floor(this.width/r.length);for(;me>Pe&&i>-90;)i-=30,me=Math.cos(i*(Math.PI/180))*Y;return this.approxHeight=Math.max(Math.abs(Math.sin(i*(Math.PI/180))*Y),10),i}getTicks(){let r;const i=this.getMaxTicks(20),b=this.getMaxTicks(100);return this.tickValues?r=this.tickValues:this.scale.ticks?r=this.scale.ticks.apply(this.scale,[b]):(r=this.scale.domain(),r=tu(r,i)),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?wl(r,this.maxTickLength):r}}y1.\u0275fac=function(r){return new(r||y1)(e.Y36(e.Lbi))},y1.\u0275cmp=e.Xpm({type:y1,selectors:[["g","ngx-charts-x-axis-ticks",""]],viewQuery:function(r,i){if(1&r&&e.Gf(lo,5),2&r){let b;e.iGM(b=e.CRH())&&(i.ticksElement=b.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:[e.TTD],attrs:["ngx-charts-x-axis-ticks",""],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,i){1&r&&(e.O4$(),e.TgZ(0,"g",null,0),e.YNc(2,Ms,5,7,"g",1),e.qZA(),e.YNc(3,al,2,2,"g",2)),2&r&&(e.xp6(2),e.Q6J("ngForOf",i.ticks),e.xp6(1),e.Q6J("ngForOf",i.ticks))},dependencies:[t.sg,t.O5],encapsulation:2,changeDetection:0});class ps{constructor(){this.rotateTicks=!0,this.showGridLines=!1,this.xOrient=es.Bottom,this.xAxisOffset=0,this.dimensionsChanged=new e.vpe,this.xAxisClassName="x axis",this.labelOffset=0,this.fill="none",this.stroke="stroke",this.tickStroke="#ccc",this.strokeWidth="none",this.padding=5,this.orientation=es}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 i=r+25+5;i!==this.labelOffset&&(this.labelOffset=i,setTimeout(()=>{this.dimensionsChanged.emit({height:r})},0))}}function ol(f,r,i,b,R,[Y,me,Pe,lt]){let gt="";return gt=`M${[f+R,r]}`,gt+="h"+((i=0===(i=Math.floor(i))?1:i)-2*R),gt+=me?`a${[R,R]} 0 0 1 ${[R,R]}`:`h${R}v${R}`,gt+="v"+((b=0===(b=Math.floor(b))?1:b)-2*R),gt+=lt?`a${[R,R]} 0 0 1 ${[-R,R]}`:`v${R}h${-R}`,gt+="h"+(2*R-i),gt+=Pe?`a${[R,R]} 0 0 1 ${[-R,-R]}`:`h${-R}v${-R}`,gt+="v"+(2*R-b),gt+=Y?`a${[R,R]} 0 0 1 ${[R,-R]}`:`v${-R}h${R}`,gt+="z",gt}ps.\u0275fac=function(r){return new(r||ps)},ps.\u0275cmp=e.Xpm({type:ps,selectors:[["g","ngx-charts-x-axis",""]],viewQuery:function(r,i){if(1&r&&e.Gf(y1,5),2&r){let b;e.iGM(b=e.CRH())&&(i.ticksComponent=b.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:[e.TTD],attrs:["ngx-charts-x-axis",""],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,i){1&r&&(e.O4$(),e.TgZ(0,"g"),e.YNc(1,Ah,1,12,"g",0),e.YNc(2,h1,1,5,"g",1),e.qZA()),2&r&&(e.uIk("class",i.xAxisClassName)("transform",i.transform),e.xp6(1),e.Q6J("ngIf",i.xScale),e.xp6(1),e.Q6J("ngIf",i.showLabel))},dependencies:[y1,Oc,t.O5],encapsulation:2,changeDetection:0});class b1{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 e.vpe,this.innerTickSize=6,this.tickPadding=3,this.verticalSpacing=20,this.textAnchor=Gs.Middle,this.width=0,this.outerTickSize=6,this.rotateLabels=!1,this.referenceLineLength=0,this.Orientation=es}ngOnChanges(r){this.update()}ngAfterViewInit(){setTimeout(()=>this.updateDims())}updateDims(){if(!(0,t.NF)(this.platformId))return this.width=this.getApproximateAxisWidth(),void this.dimensionsChanged.emit({width:this.width});const r=parseInt(this.ticksElement.nativeElement.getBoundingClientRect().width,10);r!==this.width&&(this.width=r,this.dimensionsChanged.emit({width:r}),setTimeout(()=>this.updateDims()))}update(){let r;const i=this.orient===es.Top||this.orient===es.Right?-1:1;switch(this.tickSpacing=Math.max(this.innerTickSize,0)+this.tickPadding,r=this.scale,this.ticks=this.getTicks(),this.tickFormatting?this.tickFormat=this.tickFormatting:r.tickFormat?this.tickFormat=r.tickFormat.apply(r,this.tickArguments):this.tickFormat=function(b){return"Date"===b.constructor.name?b.toLocaleDateString():b.toLocaleString()},this.adjustedScale=r.bandwidth?function(b){return r(b)+.5*r.bandwidth()}:r,this.showRefLines&&this.referenceLines&&this.setReferencelines(),this.orient){case es.Top:case es.Bottom:this.transform=function(b){return"translate("+this.adjustedScale(b)+",0)"},this.textAnchor=Gs.Middle,this.y2=this.innerTickSize*i,this.y1=this.tickSpacing*i,this.dy=i<0?"0em":".71em";break;case es.Left:this.transform=function(b){return"translate(0,"+this.adjustedScale(b)+")"},this.textAnchor=Gs.End,this.x2=this.innerTickSize*-i,this.x1=this.tickSpacing*-i,this.dy=".32em";break;case es.Right:this.transform=function(b){return"translate(0,"+this.adjustedScale(b)+")"},this.textAnchor=Gs.Start,this.x2=this.innerTickSize*-i,this.x1=this.tickSpacing*-i,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=ol(0,this.refMax,this.gridLineWidth,this.refMin-this.refMax,0,[!1,!1,!1,!1])}getTicks(){let r;const i=this.getMaxTicks(20),b=this.getMaxTicks(50);return this.tickValues?r=this.tickValues:this.scale.ticks?r=this.scale.ticks.apply(this.scale,[b]):(r=this.scale.domain(),r=tu(r,i)),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?wl(r,this.maxTickLength):r}getApproximateAxisWidth(){return 7*Math.max(...this.ticks.map(b=>this.tickTrim(this.tickFormat(b)).length))}}b1.\u0275fac=function(r){return new(r||b1)(e.Y36(e.Lbi))},b1.\u0275cmp=e.Xpm({type:b1,selectors:[["g","ngx-charts-y-axis-ticks",""]],viewQuery:function(r,i){if(1&r&&e.Gf(lo,5),2&r){let b;e.iGM(b=e.CRH())&&(i.ticksElement=b.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:[e.TTD],attrs:["ngx-charts-y-axis-ticks",""],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,i){1&r&&(e.O4$(),e.TgZ(0,"g",null,0),e.YNc(2,Th,5,9,"g",1),e.qZA(),e.YNc(3,wh,1,2,"path",2),e.YNc(4,_a,2,2,"g",3),e.YNc(5,Es,2,1,"g",3)),2&r&&(e.xp6(2),e.Q6J("ngForOf",i.ticks),e.xp6(1),e.Q6J("ngIf",i.referenceLineLength>1&&i.refMax&&i.refMin&&i.showRefLines),e.xp6(1),e.Q6J("ngForOf",i.ticks),e.xp6(1),e.Q6J("ngForOf",i.referenceLines))},dependencies:[t.sg,t.O5],encapsulation:2,changeDetection:0});class ts{constructor(){this.showGridLines=!1,this.yOrient=es.Left,this.yAxisOffset=0,this.dimensionsChanged=new e.vpe,this.yAxisClassName="y axis",this.labelOffset=15,this.fill="none",this.stroke="#CCC",this.tickStroke="#CCC",this.strokeWidth=1,this.padding=5}ngOnChanges(r){this.update()}update(){this.offset=-(this.yAxisOffset+this.padding),this.yOrient===es.Right?(this.labelOffset=65,this.transform=`translate(${this.offset+this.dims.width} , 0)`):(this.offset=this.offset,this.transform=`translate(${this.offset} , 0)`),void 0!==this.yAxisTickCount&&(this.tickArguments=[this.yAxisTickCount])}emitTicksWidth({width:r}){r!==this.labelOffset&&this.yOrient===es.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))}}ts.\u0275fac=function(r){return new(r||ts)},ts.\u0275cmp=e.Xpm({type:ts,selectors:[["g","ngx-charts-y-axis",""]],viewQuery:function(r,i){if(1&r&&e.Gf(b1,5),2&r){let b;e.iGM(b=e.CRH())&&(i.ticksComponent=b.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:[e.TTD],attrs:["ngx-charts-y-axis",""],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,i){1&r&&(e.O4$(),e.TgZ(0,"g"),e.YNc(1,cr,1,14,"g",0),e.YNc(2,wc,1,5,"g",1),e.qZA()),2&r&&(e.uIk("class",i.yAxisClassName)("transform",i.transform),e.xp6(1),e.Q6J("ngIf",i.yScale),e.xp6(1),e.Q6J("ngIf",i.showLabel))},dependencies:[b1,Oc,t.O5],encapsulation:2,changeDetection:0});class x1{}x1.\u0275fac=function(r){return new(r||x1)},x1.\u0275mod=e.oAB({type:x1}),x1.\u0275inj=e.cJS({imports:[[t.ez]]}),function(f){f.popover="popover",f.tooltip="tooltip"}(Zs||(Zs={})),function(f){f[f.all="all"]="all",f[f.focus="focus"]="focus",f[f.mouseover="mouseover"]="mouseover"}(c2||(c2={}));class ho{constructor(r,i,b){this.tooltipService=r,this.viewContainerRef=i,this.renderer=b,this.tooltipCssClass="",this.tooltipAppendToBody=!0,this.tooltipSpacing=10,this.tooltipDisabled=!1,this.tooltipShowCaret=!0,this.tooltipPlacement=Ri.Top,this.tooltipAlignment=Ri.Center,this.tooltipType=Zs.popover,this.tooltipCloseOnClickOutside=!0,this.tooltipCloseOnMouseLeave=!0,this.tooltipHideTimeout=300,this.tooltipShowTimeout=100,this.tooltipShowEvent=c2.all,this.tooltipImmediateExit=!1,this.show=new e.vpe,this.hide=new e.vpe}get listensForFocus(){return this.tooltipShowEvent===c2.all||this.tooltipShowEvent===c2.focus}get listensForHover(){return this.tooltipShowEvent===c2.all||this.tooltipShowEvent===c2.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 i=r?0:this.tooltipShowTimeout+(navigator.userAgent.match(/\(i[^;]+;( U;)? CPU.+Mac OS X/)?300:0);clearTimeout(this.timeout),this.timeout=setTimeout(()=>{this.tooltipService.destroyAll();const b=this.createBoundOptions();this.component=this.tooltipService.create(b),setTimeout(()=>{this.component&&this.addHideListeners(this.component.instance.element.nativeElement)},10),this.show.emit(!0)},i)}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",i=>{r.contains(i.target)||this.hideTooltip()}))}hideTooltip(r=!1){if(!this.component)return;const i=()=>{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?i():this.timeout=setTimeout(i,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}}}ho.\u0275fac=function(r){return new(r||ho)(e.Y36(Lc),e.Y36(e.s_b),e.Y36(e.Qsj))},ho.\u0275dir=e.lG2({type:ho,selectors:[["","ngx-tooltip",""]],hostBindings:function(r,i){1&r&&e.NdJ("focusin",function(){return i.onFocus()})("blur",function(){return i.onBlur()})("mouseenter",function(){return i.onMouseEnter()})("mouseleave",function(R){return i.onMouseLeave(R.target)})("click",function(){return i.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"}});class d2{}d2.\u0275fac=function(r){return new(r||d2)},d2.\u0275mod=e.oAB({type:d2}),d2.\u0275inj=e.cJS({providers:[Vo,Lc],imports:[[t.ez]]});const cp={};function Ys(){let f=("0000"+(Math.random()*Math.pow(36,4)<<0).toString(36)).slice(-4);return f=`a${f}`,cp[f]?Ys():(cp[f]=!0,f)}var Fa,u2,nu;!function(f){f.Vertical="vertical",f.Horizontal="horizontal"}(Fa||(Fa={}));class ll{constructor(){this.orientation=Fa.Vertical}ngOnChanges(r){this.x1="0%",this.x2="0%",this.y1="0%",this.y2="0%",this.orientation===Fa.Horizontal?this.x2="100%":this.orientation===Fa.Vertical&&(this.y1="100%")}}ll.\u0275fac=function(r){return new(r||ll)},ll.\u0275cmp=e.Xpm({type:ll,selectors:[["g","ngx-charts-svg-linear-gradient",""]],inputs:{orientation:"orientation",name:"name",stops:"stops"},features:[e.TTD],attrs:["ngx-charts-svg-linear-gradient",""],decls:2,vars:6,consts:[[3,"id"],[3,"stop-color","stop-opacity",4,"ngFor","ngForOf"]],template:function(r,i){1&r&&(e.O4$(),e.TgZ(0,"linearGradient",0),e.YNc(1,Fs,1,5,"stop",1),e.qZA()),2&r&&(e.Q6J("id",i.name),e.uIk("x1",i.x1)("y1",i.y1)("x2",i.x2)("y2",i.y2),e.xp6(1),e.Q6J("ngForOf",i.stops))},dependencies:[t.sg],encapsulation:2,changeDetection:0});class C1{constructor(){this.select=new e.vpe,this.activate=new e.vpe,this.deactivate=new e.vpe}onClick(){this.select.emit(this.data)}onMouseEnter(){this.activate.emit(this.data)}onMouseLeave(){this.deactivate.emit(this.data)}ngOnChanges(r){this.classNames=Array.isArray(this.classNames)?this.classNames.join(" "):"",this.classNames+="circle"}}C1.\u0275fac=function(r){return new(r||C1)},C1.\u0275cmp=e.Xpm({type:C1,selectors:[["g","ngx-charts-circle",""]],hostBindings:function(r,i){1&r&&e.NdJ("click",function(){return i.onClick()})("mouseenter",function(){return i.onMouseEnter()})("mouseleave",function(){return i.onMouseLeave()})},inputs:{cx:"cx",cy:"cy",r:"r",fill:"fill",stroke:"stroke",data:"data",classNames:"classNames",circleOpacity:"circleOpacity",pointerEvents:"pointerEvents"},outputs:{select:"select",activate:"activate",deactivate:"deactivate"},features:[e.TTD],attrs:["ngx-charts-circle",""],decls:1,vars:8,template:function(r,i){1&r&&(e.O4$(),e._UZ(0,"circle")),2&r&&e.uIk("cx",i.cx)("cy",i.cy)("r",i.r)("fill",i.fill)("stroke",i.stroke)("opacity",i.circleOpacity)("class",i.classNames)("pointer-events",i.pointerEvents)},encapsulation:2,changeDetection:0}),function(f){f.Standard="standard",f.Stacked="stacked"}(u2||(u2={}));class Pc{constructor(r){this.platformId=r,this.type=u2.Standard,this.tooltipDisabled=!1,this.select=new e.vpe,this.activate=new e.vpe,this.deactivate=new e.vpe,this.barVisible=!1,this.barOrientation=Fa,this.placementTypes=Ri,this.styleTypes=Zs,this.isSSR=!1}ngOnInit(){this.gradientId="grad"+Ys().toString(),this.gradientFill=`url(#${this.gradientId})`,(0,t.PM)(this.platformId)&&(this.isSSR=!0)}ngOnChanges(){this.update()}update(){this.circle=this.getActiveCircle()}getActiveCircle(){const r=this.data.series.findIndex(i=>{const b=i.name;return b&&this.visibleValue&&b.toString()===this.visibleValue.toString()&&void 0!==i.value});if(-1!==r)return this.mapDataPointToCircle(this.data.series[r],r)}mapDataPointToCircle(r,i){const b=this.data.name,R=r.value,Y=r.name,me=Ur(Y);let Pe;Pe=this.scaleType===Cn.Time?this.xScale(Y):this.scaleType===Cn.Linear?this.xScale(Number(Y)):this.xScale(Y);const lt=this.yScale(this.type===u2.Standard?R:r.d1),Et=this.yScale.range()[0]-lt;let St;St=this.colors.scaleType===Cn.Linear?this.type===u2.Standard?this.colors.getColor(R):this.colors.getColor(r.d1):this.colors.getColor(b);return{classNames:[`circle-data-${i}`],value:R,label:Y,data:Object.assign({},r,{series:b,value:R,name:Y}),cx:Pe,cy:lt,radius:5,height:Et,tooltipLabel:me,color:St,opacity:1,seriesName:b,gradientStops:this.getGradientStops(St),min:r.min,max:r.max}}getTooltipText({tooltipLabel:r,value:i,seriesName:b,min:R,max:Y}){return`\n <span class="tooltip-label">${fs(b)} \u2022 ${fs(r)}</span>\n <span class="tooltip-val">${i.toLocaleString()}${this.getTooltipMinMaxText(R,Y)}</span>\n `}getTooltipMinMaxText(r,i){if(void 0!==r||void 0!==i){let b=" (";return void 0!==r?(void 0===i&&(b+="\u2265"),b+=r.toLocaleString(),void 0!==i&&(b+=" - ")):void 0!==i&&(b+="\u2264"),void 0!==i&&(b+=i.toLocaleString()),b+=")",b}return""}getGradientStops(r){return[{offset:0,color:r,opacity:.2},{offset:100,color:r,opacity:1}]}onClick(r){this.select.emit(r)}isActive(r){return!!this.activeEntries&&void 0!==this.activeEntries.find(b=>r.name===b.name)}activateCircle(){this.barVisible=!0,this.activate.emit({name:this.data.name})}deactivateCircle(){this.barVisible=!1,this.circle.opacity=0,this.deactivate.emit({name:this.data.name})}}Pc.\u0275fac=function(r){return new(r||Pc)(e.Y36(e.Lbi))},Pc.\u0275cmp=e.Xpm({type:Pc,selectors:[["g","ngx-charts-circle-series",""]],inputs:{data:"data",type:"type",xScale:"xScale",yScale:"yScale",colors:"colors",scaleType:"scaleType",visibleValue:"visibleValue",activeEntries:"activeEntries",tooltipDisabled:"tooltipDisabled",tooltipTemplate:"tooltipTemplate"},outputs:{select:"select",activate:"activate",deactivate:"deactivate"},features:[e.TTD],attrs:["ngx-charts-circle-series",""],decls:1,vars:1,consts:[[4,"ngIf"],["ngx-charts-svg-linear-gradient","",3,"orientation","name","stops"],["class","tooltip-bar",4,"ngIf"],["ngx-charts-circle","","ngx-tooltip","",1,"circle",3,"cx","cy","r","fill","pointerEvents","data","classNames","tooltipDisabled","tooltipPlacement","tooltipType","tooltipTitle","tooltipTemplate","tooltipContext","select","activate","deactivate"],[1,"tooltip-bar"]],template:function(r,i){1&r&&e.YNc(0,Lh,6,22,"g",0),2&r&&e.Q6J("ngIf",i.circle)},dependencies:[ll,C1,t.O5,ho],encapsulation:2,data:{animation:[(0,u.X$)("animationState",[(0,u.eR)(":enter",[(0,u.oB)({opacity:0}),(0,u.jt)(250,(0,u.oB)({opacity:1}))])])]},changeDetection:0});class Ld{}Ld.\u0275fac=function(r){return new(r||Ld)},Ld.\u0275cmp=e.Xpm({type:Ld,selectors:[["g","ngx-charts-grid-panel",""]],inputs:{width:"width",height:"height",x:"x",y:"y"},attrs:["ngx-charts-grid-panel",""],decls:1,vars:4,consts:[["stroke","none",1,"gridpanel"]],template:function(r,i){1&r&&(e.O4$(),e._UZ(0,"rect",0)),2&r&&e.uIk("height",i.height)("width",i.width)("x",i.x)("y",i.y)},encapsulation:2,changeDetection:0}),function(f){f.Odd="odd",f.Even="even"}(nu||(nu={}));class h2{ngOnChanges(r){this.update()}update(){this.gridPanels=this.getGridPanels()}getGridPanels(){return this.data.map(r=>{let i,b,R,Y,me,Pe=nu.Odd;if(this.orient===Fa.Vertical){const lt=this.xScale(r.name);Number.parseInt((lt/this.xScale.step()).toString(),10)%2==1&&(Pe=nu.Even),i=this.xScale.bandwidth()*this.xScale.paddingInner(),b=this.xScale.bandwidth()+i,R=this.dims.height,Y=this.xScale(r.name)-i/2,me=0}else if(this.orient===Fa.Horizontal){const lt=this.yScale(r.name);Number.parseInt((lt/this.yScale.step()).toString(),10)%2==1&&(Pe=nu.Even),i=this.yScale.bandwidth()*this.yScale.paddingInner(),b=this.dims.width,R=this.yScale.bandwidth()+i,Y=0,me=this.yScale(r.name)-i/2}return{name:r.name,class:Pe,height:R,width:b,x:Y,y:me}})}}h2.\u0275fac=function(r){return new(r||h2)},h2.\u0275cmp=e.Xpm({type:h2,selectors:[["g","ngx-charts-grid-panel-series",""]],inputs:{data:"data",dims:"dims",xScale:"xScale",yScale:"yScale",orient:"orient"},features:[e.TTD],attrs:["ngx-charts-grid-panel-series",""],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,i){1&r&&e.YNc(0,Sh,1,10,"g",0),2&r&&e.Q6J("ngForOf",i.gridPanels)},dependencies:[Ld,t.sg],encapsulation:2,changeDetection:0});class M1{constructor(){this.endOpacity=1,this.cx=0,this.cy=0}get stops(){return this.stopsInput||this.stopsDefault}set stops(r){this.stopsInput=r}ngOnChanges(r){this.r="30%",("color"in r||"startOpacity"in r||"endOpacity"in r)&&(this.stopsDefault=[{offset:0,color:this.color,opacity:this.startOpacity},{offset:100,color:this.color,opacity:this.endOpacity}])}}M1.\u0275fac=function(r){return new(r||M1)},M1.\u0275cmp=e.Xpm({type:M1,selectors:[["g","ngx-charts-svg-radial-gradient",""]],inputs:{color:"color",name:"name",startOpacity:"startOpacity",endOpacity:"endOpacity",cx:"cx",cy:"cy",stops:"stops"},features:[e.TTD],attrs:["ngx-charts-svg-radial-gradient",""],decls:2,vars:5,consts:[["gradientUnits","userSpaceOnUse",3,"id"],[3,"stop-color","stop-opacity",4,"ngFor","ngForOf"]],template:function(r,i){1&r&&(e.O4$(),e.TgZ(0,"radialGradient",0),e.YNc(1,Q0,1,5,"stop",1),e.qZA()),2&r&&(e.Q6J("id",i.name),e.uIk("cx",i.cx)("cy",i.cy)("r",i.r),e.xp6(1),e.Q6J("ngForOf",i.stops))},dependencies:[t.sg],encapsulation:2,changeDetection:0});class f2{constructor(r){this.opacity=1,this.startOpacity=.5,this.endOpacity=1,this.gradient=!1,this.animations=!0,this.select=new e.vpe,this.animationsLoaded=!1,this.hasGradient=!1,this.barOrientation=Fa,this.element=r.nativeElement}ngOnChanges(){this.update(),this.animationsLoaded||(this.loadAnimation(),this.animationsLoaded=!0)}update(){this.gradientId="grad"+Ys().toString(),this.gradientFill=`url(#${this.gradientId})`,this.gradient||this.stops?(this.gradientStops=this.getGradient(),this.hasGradient=!0):this.hasGradient=!1,this.updatePathEl()}loadAnimation(){this.areaPath=this.startingPath,setTimeout(this.updatePathEl.bind(this),100)}updatePathEl(){const r=Ln(this.element).select(".area");this.animations?r.transition().duration(750).attr("d",this.path):r.attr("d",this.path)}getGradient(){return this.stops?this.stops:[{offset:0,color:this.fill,opacity:this.startOpacity},{offset:100,color:this.fill,opacity:this.endOpacity}]}}function P4(f,r,i,b){return i*(1-Math.pow(2,-10*f/b))*1024/1023+r}function dp(f,r,i,b,R){const Y=Number(f),me=Number(r),Pe=Y>me,lt=Math.max(0,i),gt=Math.pow(10,lt),Et=1e3*Number(b);let Zt;function St(vn){let wn;const Zn=vn-Zt;wn=Pe?Y-P4(Zn,0,Y-me,Et):P4(Zn,Y,me-Y,Et),wn=Pe?wn<me?me:wn:wn>me?me:wn,wn=Math.round(wn*gt)/gt;const _n=Zn<Et;if(R({value:wn,progress:Zn,timestamp:vn,finished:!_n}),_n)return requestAnimationFrame(jn=>St(jn))}return requestAnimationFrame(vn=>(Zt=vn,St(vn)))}function Qh(f){const r=Number(f);return r%1!=0&&Math.abs(r)<=10?2:0}f2.\u0275fac=function(r){return new(r||f2)(e.Y36(e.SBq))},f2.\u0275cmp=e.Xpm({type:f2,selectors:[["g","ngx-charts-area",""]],inputs:{data:"data",path:"path",startingPath:"startingPath",fill:"fill",opacity:"opacity",startOpacity:"startOpacity",endOpacity:"endOpacity",gradient:"gradient",stops:"stops",animations:"animations"},outputs:{select:"select"},features:[e.TTD],attrs:["ngx-charts-area",""],decls:2,vars:5,consts:[[4,"ngIf"],[1,"area"],["ngx-charts-svg-linear-gradient","",3,"orientation","name","stops"]],template:function(r,i){1&r&&(e.YNc(0,X3,2,3,"defs",0),e.O4$(),e._UZ(1,"path",1)),2&r&&(e.Q6J("ngIf",i.gradient),e.xp6(1),e.Udp("opacity",i.opacity),e.uIk("d",i.areaPath)("fill",i.gradient?i.gradientFill:i.fill))},dependencies:[ll,t.O5],encapsulation:2,changeDetection:0});class kc{constructor(r,i){this.cd=r,this.countDuration=1,this.countPrefix="",this.countSuffix="",this.countChange=new e.vpe,this.countFinish=new e.vpe,this.value="",this._countDecimals=0,this._countTo=0,this._countFrom=0,this.nativeElement=i.nativeElement}set countDecimals(r){this._countDecimals=r}get countDecimals(){return this._countDecimals?this._countDecimals:Qh(this.countTo)}set countTo(r){this._countTo=parseFloat(r),this.start()}get countTo(){return this._countTo}set countFrom(r){this._countFrom=parseFloat(r),this.start()}get countFrom(){return this._countFrom}ngOnDestroy(){cancelAnimationFrame(this.animationReq)}start(){cancelAnimationFrame(this.animationReq);const r=this.valueFormatting||(b=>`${this.countPrefix}${b.toLocaleString()}${this.countSuffix}`);this.animationReq=dp(this.countFrom,this.countTo,this.countDecimals,this.countDuration,({value:b,progress:R,finished:Y})=>{this.value=r(b),this.cd.markForCheck(),Y||this.countChange.emit({value:this.value,progress:R}),Y&&this.countFinish.emit({value:this.value,progress:R})})}}let jh;kc.\u0275fac=function(r){return new(r||kc)(e.Y36(e.sBO),e.Y36(e.SBq))},kc.\u0275cmp=e.Xpm({type:kc,selectors:[["","ngx-charts-count-up",""]],inputs:{countDuration:"countDuration",countPrefix:"countPrefix",countSuffix:"countSuffix",valueFormatting:"valueFormatting",countDecimals:"countDecimals",countTo:"countTo",countFrom:"countFrom"},outputs:{countChange:"countChange",countFinish:"countFinish"},attrs:["ngx-charts-count-up",""],decls:1,vars:1,template:function(r,i){1&r&&e._uU(0),2&r&&e.hij(" ",i.value," ")},encapsulation:2}),typeof window<"u"?jh=window:typeof global<"u"&&(jh=global);const qh=jh.MouseEvent;function Xh(f,r=!1,i=!0){if("function"==typeof qh)return new qh(f,{bubbles:r,cancelable:i});{const b=document.createEvent("MouseEvent");return b.initEvent(f,r,i),b}}class tc{constructor(r){this.platformId=r,this.anchorOpacity=0,this.anchorPos=-1,this.anchorValues=[],this.placementTypes=Ri,this.styleTypes=Zs,this.showPercentage=!1,this.tooltipDisabled=!1,this.hover=new e.vpe}getValues(r){const i=[];for(const b of this.results){const R=b.series.find(me=>me.name.toString()===r.toString());let Y=b.name;if(Y instanceof Date&&(Y=Y.toLocaleDateString()),R){const me=R.name;let lt,Pe=R.value;if(this.showPercentage&&(Pe=(R.d1-R.d0).toFixed(2)+"%"),this.colors.scaleType===Cn.Linear){let Et=Pe;R.d1&&(Et=R.d1),lt=this.colors.getColor(Et)}else lt=this.colors.getColor(b.name);const gt=Object.assign({},R,{value:Pe,name:me,series:Y,min:R.min,max:R.max,color:lt});i.push(gt)}}return i}mouseMove(r){if(!(0,t.NF)(this.platformId))return;const i=r.pageX-r.target.getBoundingClientRect().left,b=this.findClosestPointIndex(i),R=this.xSet[b];if(this.anchorPos=this.xScale(R),this.anchorPos=Math.max(0,this.anchorPos),this.anchorPos=Math.min(this.dims.width,this.anchorPos),this.anchorValues=this.getValues(R),this.anchorPos!==this.lastAnchorPos){const Y=Xh("mouseleave");this.tooltipAnchor.nativeElement.dispatchEvent(Y),this.anchorOpacity=.7,this.hover.emit({value:R}),this.showTooltip(),this.lastAnchorPos=this.anchorPos}}findClosestPointIndex(r){let i=0,b=this.xSet.length-1,R=Number.MAX_VALUE,Y=0;for(;i<=b;){const me=(i+b)/2|0,Pe=this.xScale(this.xSet[me]),lt=Math.abs(Pe-r);if(lt<R&&(R=lt,Y=me),Pe<r)i=me+1;else{if(!(Pe>r)){R=0,Y=me;break}b=me-1}}return Y}showTooltip(){const r=Xh("mouseenter");this.tooltipAnchor.nativeElement.dispatchEvent(r)}hideTooltip(){const r=Xh("mouseleave");this.tooltipAnchor.nativeElement.dispatchEvent(r),this.anchorOpacity=0,this.lastAnchorPos=-1}getToolTipText(r){let i="";return void 0!==r.series?i+=r.series:i+="???",i+=": ",void 0!==r.value&&(i+=r.value.toLocaleString()),(void 0!==r.min||void 0!==r.max)&&(i+=" (",void 0!==r.min?(void 0===r.max&&(i+="\u2265"),i+=r.min.toLocaleString(),void 0!==r.max&&(i+=" - ")):void 0!==r.max&&(i+="\u2264"),void 0!==r.max&&(i+=r.max.toLocaleString()),i+=")"),i}}tc.\u0275fac=function(r){return new(r||tc)(e.Y36(e.Lbi))},tc.\u0275cmp=e.Xpm({type:tc,selectors:[["g","ngx-charts-tooltip-area",""]],viewQuery:function(r,i){if(1&r&&e.Gf($3,5),2&r){let b;e.iGM(b=e.CRH())&&(i.tooltipAnchor=b.first)}},inputs:{dims:"dims",xSet:"xSet",xScale:"xScale",yScale:"yScale",results:"results",colors:"colors",showPercentage:"showPercentage",tooltipDisabled:"tooltipDisabled",tooltipTemplate:"tooltipTemplate"},outputs:{hover:"hover"},attrs:["ngx-charts-tooltip-area",""],decls:6,vars:18,consts:[["y","0",1,"tooltip-area",2,"opacity","0","cursor","auto",3,"mousemove","mouseleave"],["defaultTooltipTemplate",""],["y","0","ngx-tooltip","",1,"tooltip-anchor",3,"tooltipDisabled","tooltipPlacement","tooltipType","tooltipSpacing","tooltipTemplate","tooltipContext","tooltipImmediateExit"],["tooltipAnchor",""],[1,"area-tooltip-container"],["class","tooltip-item",4,"ngFor","ngForOf"],[1,"tooltip-item"],[1,"tooltip-item-color"]],template:function(r,i){if(1&r&&(e.O4$(),e.TgZ(0,"g")(1,"rect",0),e.NdJ("mousemove",function(R){return i.mouseMove(R)})("mouseleave",function(){return i.hideTooltip()}),e.qZA(),e.YNc(2,e4,2,1,"ng-template",null,1,e.W1O),e._UZ(4,"rect",2,3),e.qZA()),2&r){const b=e.MAs(3);e.xp6(1),e.uIk("x",0)("width",i.dims.width)("height",i.dims.height),e.xp6(3),e.Udp("opacity",i.anchorOpacity)("pointer-events","none"),e.Q6J("@animationState",0!==i.anchorOpacity?"active":"inactive")("tooltipDisabled",i.tooltipDisabled)("tooltipPlacement",i.placementTypes.Right)("tooltipType",i.styleTypes.tooltip)("tooltipSpacing",15)("tooltipTemplate",i.tooltipTemplate?i.tooltipTemplate:b)("tooltipContext",i.anchorValues)("tooltipImmediateExit",!0),e.uIk("x",i.anchorPos)("width",1)("height",i.dims.height)}},dependencies:[t.sg,ho],encapsulation:2,data:{animation:[(0,u.X$)("animationState",[(0,u.eR)("inactive => active",[(0,u.oB)({opacity:0}),(0,u.jt)(250,(0,u.oB)({opacity:.7}))]),(0,u.eR)("active => inactive",[(0,u.oB)({opacity:.7}),(0,u.jt)(250,(0,u.oB)({opacity:0}))])])]},changeDetection:0});class Il{constructor(r,i){this.cd=i,this.height=50,this.select=new e.vpe,this.onDomainChange=new e.vpe,this.initialized=!1,this.element=r.nativeElement}ngOnChanges(r){this.update(),this.initialized||(this.addBrush(),this.initialized=!0)}update(){this.dims=this.getDims(),this.height=this.dims.height;const r=this.view[1]-this.height;this.xDomain=this.getXDomain(),this.xScale=this.getXScale(),this.brush&&this.updateBrush(),this.transform=`translate(0 , ${r})`,this.filterId="filter"+Ys().toString(),this.filter=`url(#${this.filterId})`,this.cd.markForCheck()}getXDomain(){let r=[];for(const b of this.results)for(const R of b.series)r.includes(R.name)||r.push(R.name);let i=[];if(this.scaleType===Cn.Time){i=[Math.min(...r),Math.max(...r)]}else if(this.scaleType===Cn.Linear){r=r.map(Y=>Number(Y));i=[Math.min(...r),Math.max(...r)]}else i=r;return i}getXScale(){let r;return this.scaleType===Cn.Time?r=Ql().range([0,this.dims.width]).domain(this.xDomain):this.scaleType===Cn.Linear?r=Ga().range([0,this.dims.width]).domain(this.xDomain):this.scaleType===Cn.Ordinal&&(r=er().range([0,this.dims.width]).padding(.1).domain(this.xDomain)),r}addBrush(){if(this.brush)return;const r=this.height,i=this.view[0];this.brush=function at(){return mn(Bo)}().extent([[0,0],[i,r]]).on("brush end",({selection:b})=>{const Y=(b||this.xScale.range()).map(this.xScale.invert);this.onDomainChange.emit(Y),this.cd.markForCheck()}),Ln(this.element).select(".brush").call(this.brush)}updateBrush(){if(!this.brush)return;const r=this.height,i=this.view[0];this.brush.extent([[0,0],[i,r]]),Ln(this.element).select(".brush").call(this.brush),Ln(this.element).select(".selection").attr("fill",void 0).attr("stroke",void 0).attr("fill-opacity",void 0),this.cd.markForCheck()}getDims(){return{width:this.view[0],height:this.height}}}Il.\u0275fac=function(r){return new(r||Il)(e.Y36(e.SBq),e.Y36(e.sBO))},Il.\u0275cmp=e.Xpm({type:Il,selectors:[["g","ngx-charts-timeline",""]],inputs:{view:"view",results:"results",scheme:"scheme",customColors:"customColors",legend:"legend",autoScale:"autoScale",scaleType:"scaleType",height:"height"},outputs:{select:"select",onDomainChange:"onDomainChange"},features:[e.TTD],attrs:["ngx-charts-timeline",""],ngContentSelectors:Ns,decls:7,vars:4,consts:[[1,"timeline"],["in","SourceGraphic","type","matrix","values","0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0 0 0 1 0"],[1,"embedded-chart"],["x","0","y","0",1,"brush-background"],[1,"brush"]],template:function(r,i){1&r&&(e.F$t(),e.O4$(),e.TgZ(0,"g",0)(1,"filter"),e._UZ(2,"feColorMatrix",1),e.qZA(),e.TgZ(3,"g",2),e.Hsn(4),e.qZA(),e._UZ(5,"rect",3)(6,"g",4),e.qZA()),2&r&&(e.uIk("transform",i.transform),e.xp6(1),e.uIk("id",i.filterId),e.xp6(4),e.uIk("width",i.view[0])("height",i.height))},styles:[".timeline .brush-background{fill:#0000000d}.timeline .brush .selection{fill:#0000001a;stroke-width:1px;stroke:#888}.timeline .brush .handle{fill-opacity:0}.timeline .embedded-chart{opacity:.6}\n"],encapsulation:2,changeDetection:0});class p2{constructor(){this.label="Total",this.animations=!0,this.select=new e.vpe,this.activate=new e.vpe,this.deactivate=new e.vpe,this.legendItems=[],this.labelFormatting=r=>r,this.percentageFormatting=r=>r,this.defaultValueFormatting=r=>r.toLocaleString()}ngOnChanges(r){this.update()}getTotal(){return this.data.map(r=>Number(r.value)).reduce((r,i)=>r+i,0)}update(){this.total=this.getTotal(),this.roundedTotal=this.total,this.legendItems=this.getLegendItems()}getLegendItems(){return this.data.map(r=>{const i=Ur(r.name),b=r.value,R=this.colors.getColor(i),Y=this.total>0?b/this.total*100:0,me="function"==typeof this.labelFormatting?this.labelFormatting(i):i;return{_value:b,data:r,value:b,color:R,label:me,displayLabel:wl(me,20),origialLabel:r.name,percentage:this.percentageFormatting?this.percentageFormatting(Y):Y.toLocaleString()}})}trackBy(r,i){return i.label}}p2.\u0275fac=function(r){return new(r||p2)},p2.\u0275cmp=e.Xpm({type:p2,selectors:[["ngx-charts-advanced-legend"]],inputs:{width:"width",data:"data",colors:"colors",label:"label",animations:"animations",valueFormatting:"valueFormatting",labelFormatting:"labelFormatting",percentageFormatting:"percentageFormatting"},outputs:{select:"select",activate:"activate",deactivate:"deactivate"},features:[e.TTD],decls:8,vars:7,consts:[[1,"advanced-pie-legend"],["class","total-value","ngx-charts-count-up","",3,"countTo","valueFormatting",4,"ngIf"],["class","total-value",4,"ngIf"],[1,"total-label"],[1,"legend-items-container"],[1,"legend-items"],["tabindex","-1","class","legend-item",3,"mouseenter","mouseleave","click",4,"ngFor","ngForOf","ngForTrackBy"],["ngx-charts-count-up","",1,"total-value",3,"countTo","valueFormatting"],[1,"total-value"],["tabindex","-1",1,"legend-item",3,"mouseenter","mouseleave","click"],[1,"item-color"],["class","item-value","ngx-charts-count-up","",3,"countTo","valueFormatting",4,"ngIf"],["class","item-value",4,"ngIf"],[1,"item-label"],["class","item-percent","ngx-charts-count-up","",3,"countTo","countSuffix",4,"ngIf"],["class","item-percent",4,"ngIf"],["ngx-charts-count-up","",1,"item-value",3,"countTo","valueFormatting"],[1,"item-value"],["ngx-charts-count-up","",1,"item-percent",3,"countTo","countSuffix"],[1,"item-percent"]],template:function(r,i){1&r&&(e.TgZ(0,"div",0),e.YNc(1,df,1,2,"div",1),e.YNc(2,uf,2,1,"div",2),e.TgZ(3,"div",3),e._uU(4),e.qZA(),e.TgZ(5,"div",4)(6,"div",5),e.YNc(7,Up,8,7,"div",6),e.qZA()()()),2&r&&(e.Udp("width",i.width,"px"),e.xp6(1),e.Q6J("ngIf",i.animations),e.xp6(1),e.Q6J("ngIf",!i.animations),e.xp6(2),e.hij(" ",i.label," "),e.xp6(3),e.Q6J("ngForOf",i.legendItems)("ngForTrackBy",i.trackBy))},dependencies:[kc,t.O5,t.sg],styles:[".advanced-pie-legend{float:left;position:relative;top:50%;transform:translateY(-50%)}.advanced-pie-legend .total-value{font-size:36px}.advanced-pie-legend .total-label{font-size:24px;margin-bottom:19px}.advanced-pie-legend .legend-items-container{width:100%}.advanced-pie-legend .legend-items-container .legend-items{white-space:nowrap;overflow:auto}.advanced-pie-legend .legend-items-container .legend-items .legend-item{margin-right:20px;display:inline-block;cursor:pointer}.advanced-pie-legend .legend-items-container .legend-items .legend-item:focus{outline:none}.advanced-pie-legend .legend-items-container .legend-items .legend-item:hover{color:#000;transition:.2s}.advanced-pie-legend .legend-items-container .legend-items .legend-item .item-value{font-size:24px;margin-top:-6px;margin-left:11px}.advanced-pie-legend .legend-items-container .legend-items .legend-item .item-label{font-size:14px;opacity:.7;margin-left:11px;margin-top:-6px}.advanced-pie-legend .legend-items-container .legend-items .legend-item .item-percent{font-size:24px;opacity:.7;margin-left:11px}.advanced-pie-legend .legend-items-container .legend-items .legend-item .item-color{border-left:4px solid;width:4px;height:42px;float:left;margin-right:7px}\n"],encapsulation:2,changeDetection:0});class Ds{}function fr({width:f,height:r,margins:i,showXAxis:b=!1,showYAxis:R=!1,xAxisHeight:Y=0,yAxisWidth:me=0,showXLabel:Pe=!1,showYLabel:lt=!1,showLegend:gt=!1,legendType:Et=Cn.Ordinal,legendPosition:Zt=hr.Right,columns:St=12}){let vn=i[3],wn=f,Zn=r-i[0]-i[2];return gt&&Zt===hr.Right&&(Et===Cn.Ordinal?St-=2:St-=1),wn=wn*St/12,wn=wn-i[1]-i[3],b&&(Zn-=5,Zn-=Y,Pe&&(Zn-=30)),R&&(wn-=5,wn-=me,vn+=me,vn+=10,lt&&(wn-=30,vn+=30)),wn=Math.max(0,wn),Zn=Math.max(0,Zn),{width:Math.floor(wn),height:Math.floor(Zn),xOffset:Math.floor(vn)}}Ds.\u0275fac=function(r){return new(r||Ds)},Ds.\u0275mod=e.oAB({type:Ds}),Ds.\u0275inj=e.cJS({imports:[[t.ez,x1,d2],t.ez,x1,d2]});let E1=[{name:"vivid",selectable:!0,group:Cn.Ordinal,domain:["#647c8a","#3f51b5","#2196f3","#00b862","#afdf0a","#a7b61a","#f3e562","#ff9800","#ff5722","#ff4514"]},{name:"natural",selectable:!0,group:Cn.Ordinal,domain:["#bf9d76","#e99450","#d89f59","#f2dfa7","#a5d7c6","#7794b1","#afafaf","#707160","#ba9383","#d9d5c3"]},{name:"cool",selectable:!0,group:Cn.Ordinal,domain:["#a8385d","#7aa3e5","#a27ea8","#aae3f5","#adcded","#a95963","#8796c0","#7ed3ed","#50abcc","#ad6886"]},{name:"fire",selectable:!0,group:Cn.Ordinal,domain:["#ff3d00","#bf360c","#ff8f00","#ff6f00","#ff5722","#e65100","#ffca28","#ffab00"]},{name:"solar",selectable:!0,group:Cn.Linear,domain:["#fff8e1","#ffecb3","#ffe082","#ffd54f","#ffca28","#ffc107","#ffb300","#ffa000","#ff8f00","#ff6f00"]},{name:"air",selectable:!0,group:Cn.Linear,domain:["#e1f5fe","#b3e5fc","#81d4fa","#4fc3f7","#29b6f6","#03a9f4","#039be5","#0288d1","#0277bd","#01579b"]},{name:"aqua",selectable:!0,group:Cn.Linear,domain:["#e0f7fa","#b2ebf2","#80deea","#4dd0e1","#26c6da","#00bcd4","#00acc1","#0097a7","#00838f","#006064"]},{name:"flame",selectable:!1,group:Cn.Ordinal,domain:["#A10A28","#D3342D","#EF6D49","#FAAD67","#FDDE90","#DBED91","#A9D770","#6CBA67","#2C9653","#146738"]},{name:"ocean",selectable:!1,group:Cn.Ordinal,domain:["#1D68FB","#33C0FC","#4AFFFE","#AFFFFF","#FFFC63","#FDBD2D","#FC8A25","#FA4F1E","#FA141B","#BA38D1"]},{name:"forest",selectable:!1,group:Cn.Ordinal,domain:["#55C22D","#C1F33D","#3CC099","#AFFFFF","#8CFC9D","#76CFFA","#BA60FB","#EE6490","#C42A1C","#FC9F32"]},{name:"horizon",selectable:!1,group:Cn.Ordinal,domain:["#2597FB","#65EBFD","#99FDD0","#FCEE4B","#FEFCFA","#FDD6E3","#FCB1A8","#EF6F7B","#CB96E8","#EFDEE0"]},{name:"neons",selectable:!1,group:Cn.Ordinal,domain:["#FF3333","#FF33FF","#CC33FF","#0000FF","#33CCFF","#33FFFF","#33FF66","#CCFF33","#FFCC00","#FF6600"]},{name:"picnic",selectable:!1,group:Cn.Ordinal,domain:["#FAC51D","#66BD6D","#FAA026","#29BB9C","#E96B56","#55ACD2","#B7332F","#2C83C9","#9166B8","#92E7E8"]},{name:"night",selectable:!1,group:Cn.Ordinal,domain:["#2B1B5A","#501356","#183356","#28203F","#391B3C","#1E2B3C","#120634","#2D0432","#051932","#453080","#75267D","#2C507D","#4B3880","#752F7D","#35547D"]},{name:"nightLights",selectable:!1,group:Cn.Ordinal,domain:["#4e31a5","#9c25a7","#3065ab","#57468b","#904497","#46648b","#32118d","#a00fb3","#1052a2","#6e51bd","#b63cc3","#6c97cb","#8671c1","#b455be","#7496c3"]}];class Lr{constructor(r,i,b,R){"string"==typeof r&&(r=E1.find(Y=>Y.name===r)),this.colorDomain=r.domain,this.scaleType=i,this.domain=b,this.customColors=R,this.scale=this.generateColorScheme(r,i,this.domain)}generateColorScheme(r,i,b){let R;switch("string"==typeof r&&(r=E1.find(Y=>Y.name===r)),i){case Cn.Quantile:R=B0().range(r.domain).domain(b);break;case Cn.Ordinal:R=Y1().range(r.domain).domain(b);break;case Cn.Linear:{const Y=[...r.domain];1===Y.length&&(Y.push(Y[0]),this.colorDomain=Y);const me=O0(0,1,1/Y.length);R=Ga().range(Y).domain(me)}}return R}getColor(r){if(null==r)throw new Error("Value can not be null");if(this.scaleType===Cn.Linear){const i=Ga().domain(this.domain).range([0,1]);return this.scale(i(r))}{if("function"==typeof this.customColors)return this.customColors(r);const i=r.toString();let b;return this.customColors&&this.customColors.length>0&&(b=this.customColors.find(R=>R.name.toLowerCase()===i.toLowerCase())),b?b.value:this.scale(r)}}getLinearGradientStops(r,i){void 0===i&&(i=this.domain[0]);const b=Ga().domain(this.domain).range([0,1]),R=qr().domain(this.colorDomain).range([0,1]),Y=this.getColor(r),me=b(i),Pe=this.getColor(i),lt=b(r);let gt=1,Et=me;const Zt=[];for(Zt.push({color:Pe,offset:me,originalOffset:me,opacity:1});Et<lt&&gt<this.colorDomain.length;){const St=this.colorDomain[gt],vn=R(St);if(vn<=me)gt++;else{if(vn.toFixed(4)>=(lt-R.bandwidth()).toFixed(4))break;Zt.push({color:St,offset:vn,opacity:1}),Et=vn,gt++}}if(Zt[Zt.length-1].offset<100&&Zt.push({color:Y,offset:lt,opacity:1}),lt===me)Zt[0].offset=0,Zt[1].offset=100;else if(100!==Zt[Zt.length-1].offset)for(const St of Zt)St.offset=(St.offset-me)/(lt-me)*100;return Zt}}function iu(f){const r=new Set;for(const i of f)for(const b of i.series)r.add(b.name);return Array.from(r)}function Io(f,r=!0){return r&&f.every(R=>R instanceof Date)?Cn.Time:f.every(b=>"number"==typeof b)?Cn.Linear:Cn.Ordinal}function Sd(f,r,i="asc"){return f.sort((b,R)=>"asc"===i?b[r]-R[r]:R[r]-b[r])}function hp(f,r,i="asc",b){return f.sort((R,Y)=>{const me=R[r],Pe=Y[r],lt=b.indexOf(me),gt=b.indexOf(Pe);return"asc"===i?lt-gt:gt-lt})}function au(f,r,i="asc"){return f.sort((b,R)=>{const Y=b[r].getTime(),me=R[r].getTime();return"asc"===i?Y>me?1:me>Y?-1:0:Y>me?-1:me>Y?1:0})}class Rc{constructor(){this.baseValue="auto",this.stacked=!1,this.normalized=!1,this.animations=!0,this.select=new e.vpe}ngOnChanges(r){this.update()}update(){let r,i;this.updateGradient();const b=Y=>{const me=Y.name;return this.xScale(me)};this.stacked||this.normalized?(r=Xl().x(b).y0((Y,me)=>this.yScale(Y.d0)).y1((Y,me)=>this.yScale(Y.d1)),i=Xl().x(b).y0(Y=>this.yScale.range()[0]).y1(Y=>this.yScale.range()[0])):(r=Xl().x(b).y0(()=>"auto"===this.baseValue?this.yScale.range()[0]:this.yScale(this.baseValue)).y1(Y=>this.yScale(Y.value)),i=Xl().x(b).y0(Y=>"auto"===this.baseValue?this.yScale.range()[0]:this.yScale(this.baseValue)).y1(Y=>"auto"===this.baseValue?this.yScale.range()[0]:this.yScale(this.baseValue))),r.curve(this.curve),i.curve(this.curve),this.opacity=.8;let R=this.data.series;R=this.scaleType===Cn.Linear?Sd(R,"name"):this.scaleType===Cn.Time?au(R,"name"):hp(R,"name","asc",this.xScale.domain()),this.path=r(R),this.startingPath=i(R)}updateGradient(){if(this.colors.scaleType===Cn.Linear)if(this.hasGradient=!0,this.stacked||this.normalized){const r=this.data.series.map(Y=>Y.d0),i=this.data.series.map(Y=>Y.d1),b=Math.max(...i),R=Math.min(...r);this.gradientStops=this.colors.getLinearGradientStops(b,R)}else{const r=this.data.series.map(b=>b.value),i=Math.max(...r);this.gradientStops=this.colors.getLinearGradientStops(i)}else this.hasGradient=!1,this.gradientStops=void 0}isActive(r){return!!this.activeEntries&&void 0!==this.activeEntries.find(b=>r.name===b.name)}isInactive(r){return!(!this.activeEntries||0===this.activeEntries.length)&&void 0===this.activeEntries.find(b=>r.name===b.name)}}Rc.\u0275fac=function(r){return new(r||Rc)},Rc.\u0275cmp=e.Xpm({type:Rc,selectors:[["g","ngx-charts-area-series",""]],inputs:{data:"data",xScale:"xScale",yScale:"yScale",baseValue:"baseValue",colors:"colors",scaleType:"scaleType",stacked:"stacked",normalized:"normalized",gradient:"gradient",curve:"curve",activeEntries:"activeEntries",animations:"animations"},outputs:{select:"select"},features:[e.TTD],attrs:["ngx-charts-area-series",""],decls:1,vars:12,consts:[["ngx-charts-area","",1,"area-series",3,"data","path","fill","stops","startingPath","opacity","gradient","animations"]],template:function(r,i){1&r&&(e.O4$(),e._UZ(0,"g",0)),2&r&&(e.ekj("active",i.isActive(i.data))("inactive",i.isInactive(i.data)),e.Q6J("data",i.data)("path",i.path)("fill",i.colors.getColor(i.data.name))("stops",i.gradientStops)("startingPath",i.startingPath)("opacity",i.opacity)("gradient",i.gradient||i.hasGradient)("animations",i.animations))},dependencies:[f2],encapsulation:2,changeDetection:0});class Jh extends ja{constructor(){super(...arguments),this.legend=!1,this.legendTitle="Legend",this.legendPosition=hr.Right,this.xAxis=!1,this.yAxis=!1,this.baseValue="auto",this.autoScale=!1,this.timeline=!1,this.showGridLines=!0,this.curve=Ec,this.activeEntries=[],this.trimXAxisTicks=!0,this.trimYAxisTicks=!0,this.rotateXAxisTicks=!0,this.maxXAxisTickLength=16,this.maxYAxisTickLength=16,this.roundDomains=!1,this.tooltipDisabled=!1,this.activate=new e.vpe,this.deactivate=new e.vpe,this.margin=[10,20,10,20],this.xAxisHeight=0,this.yAxisWidth=0,this.timelineHeight=50,this.timelinePadding=10,this.trackBy=(r,i)=>i.name}update(){super.update(),this.dims=fr({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.timeline&&(this.dims.height-=this.timelineHeight+this.margin[2]+this.timelinePadding),this.xDomain=this.getXDomain(),this.filteredDomain&&(this.xDomain=this.filteredDomain),this.yDomain=this.getYDomain(),this.seriesDomain=this.getSeriesDomain(),this.xScale=this.getXScale(this.xDomain,this.dims.width),this.yScale=this.getYScale(this.yDomain,this.dims.height),this.updateTimeline(),this.setColors(),this.legendOptions=this.getLegendOptions(),this.transform=`translate(${this.dims.xOffset}, ${this.margin[0]})`,this.clipPathId="clip"+Ys().toString(),this.clipPath=`url(#${this.clipPathId})`}updateTimeline(){this.timeline&&(this.timelineWidth=this.dims.width,this.timelineXDomain=this.getXDomain(),this.timelineXScale=this.getXScale(this.timelineXDomain,this.timelineWidth),this.timelineYScale=this.getYScale(this.yDomain,this.timelineHeight),this.timelineTransform=`translate(${this.dims.xOffset}, ${-this.margin[2]})`)}getXDomain(){let r=iu(this.results);this.scaleType=Io(r);let b,R,i=[];return this.scaleType===Cn.Linear&&(r=r.map(Y=>Number(Y))),(this.scaleType===Cn.Time||this.scaleType===Cn.Linear)&&(b=this.xScaleMin?this.xScaleMin:Math.min(...r),R=this.xScaleMax?this.xScaleMax:Math.max(...r)),this.scaleType===Cn.Time?(i=[new Date(b),new Date(R)],this.xSet=[...r].sort((Y,me)=>{const Pe=Y.getTime(),lt=me.getTime();return Pe>lt?1:lt>Pe?-1:0})):this.scaleType===Cn.Linear?(i=[b,R],this.xSet=[...r].sort((Y,me)=>Y-me)):(i=r,this.xSet=r),i}getYDomain(){const r=[];for(const Y of this.results)for(const me of Y.series)r.includes(me.value)||r.push(me.value);const i=[...r];this.autoScale||i.push(0),"auto"!==this.baseValue&&i.push(this.baseValue);return[this.yScaleMin?this.yScaleMin:Math.min(...i),this.yScaleMax?this.yScaleMax:Math.max(...i)]}getSeriesDomain(){return this.results.map(r=>r.name)}getXScale(r,i){let b;return this.scaleType===Cn.Time?b=Ql():this.scaleType===Cn.Linear?b=Ga():this.scaleType===Cn.Ordinal&&(b=er().padding(.1)),b.range([0,i]).domain(r),this.roundDomains?b.nice():b}getYScale(r,i){const b=Ga().range([i,0]).domain(r);return this.roundDomains?b.nice():b}getScaleType(r){let i=!0,b=!0;for(const R of r)l2(R)&&(i=!1),S6(R)&&(b=!1);return i?Cn.Time:b?Cn.Linear:Cn.Ordinal}updateDomain(r){this.filteredDomain=r,this.xDomain=this.filteredDomain,this.xScale=this.getXScale(this.xDomain,this.dims.width)}updateHoveredVertical(r){this.hoveredVertical=r.value,this.deactivateAll()}hideCircles(){this.hoveredVertical=null,this.deactivateAll()}onClick(r,i){i&&(r.series=i.name),this.select.emit(r)}setColors(){let r;r=this.schemeType===Cn.Ordinal?this.seriesDomain:this.yDomain,this.colors=new Lr(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===Cn.Ordinal?(r.domain=this.seriesDomain,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()}onActivate(r){this.activeEntries.findIndex(b=>b.name===r.name&&b.value===r.value)>-1||(this.activeEntries=[r,...this.activeEntries],this.activate.emit({value:r,entries:this.activeEntries}))}onDeactivate(r){const i=this.activeEntries.findIndex(b=>b.name===r.name&&b.value===r.value);this.activeEntries.splice(i,1),this.activeEntries=[...this.activeEntries],this.deactivate.emit({value:r,entries:this.activeEntries})}deactivateAll(){this.activeEntries=[...this.activeEntries];for(const r of this.activeEntries)this.deactivate.emit({value:r,entries:[]});this.activeEntries=[]}}Jh.\u0275fac=function(){let f;return function(i){return(f||(f=e.n5z(Jh)))(i||Jh)}}(),Jh.\u0275cmp=e.Xpm({type:Jh,selectors:[["ngx-charts-area-chart"]],contentQueries:function(r,i,b){if(1&r&&(e.Suo(b,Ir,5),e.Suo(b,yd,5)),2&r){let R;e.iGM(R=e.CRH())&&(i.tooltipTemplate=R.first),e.iGM(R=e.CRH())&&(i.seriesTooltipTemplate=R.first)}},hostBindings:function(r,i){1&r&&e.NdJ("mouseleave",function(){return i.hideCircles()})},inputs:{legend:"legend",legendTitle:"legendTitle",legendPosition:"legendPosition",xAxis:"xAxis",yAxis:"yAxis",baseValue:"baseValue",autoScale:"autoScale",showXAxisLabel:"showXAxisLabel",showYAxisLabel:"showYAxisLabel",xAxisLabel:"xAxisLabel",yAxisLabel:"yAxisLabel",timeline:"timeline",gradient:"gradient",showGridLines:"showGridLines",curve:"curve",activeEntries:"activeEntries",schemeType:"schemeType",trimXAxisTicks:"trimXAxisTicks",trimYAxisTicks:"trimYAxisTicks",rotateXAxisTicks:"rotateXAxisTicks",maxXAxisTickLength:"maxXAxisTickLength",maxYAxisTickLength:"maxYAxisTickLength",xAxisTickFormatting:"xAxisTickFormatting",yAxisTickFormatting:"yAxisTickFormatting",xAxisTicks:"xAxisTicks",yAxisTicks:"yAxisTicks",roundDomains:"roundDomains",tooltipDisabled:"tooltipDisabled",xScaleMin:"xScaleMin",xScaleMax:"xScaleMax",yScaleMin:"yScaleMin",yScaleMax:"yScaleMax"},outputs:{activate:"activate",deactivate:"deactivate"},features:[e.qOj],decls:11,vars:20,consts:[[3,"view","showLegend","legendOptions","activeEntries","animations","legendLabelClick","legendLabelActivate","legendLabelDeactivate"],[1,"area-chart","chart"],["ngx-charts-x-axis","",3,"xScale","dims","showGridLines","showLabel","labelText","trimTicks","rotateTicks","maxTickLength","tickFormatting","ticks","dimensionsChanged",4,"ngIf"],["ngx-charts-y-axis","",3,"yScale","dims","showGridLines","showLabel","labelText","trimTicks","maxTickLength","tickFormatting","ticks","dimensionsChanged",4,"ngIf"],[4,"ngFor","ngForOf","ngForTrackBy"],[3,"mouseleave",4,"ngIf"],["ngx-charts-timeline","",3,"results","view","height","scheme","customColors","legend","scaleType","onDomainChange",4,"ngIf"],["ngx-charts-x-axis","",3,"xScale","dims","showGridLines","showLabel","labelText","trimTicks","rotateTicks","maxTickLength","tickFormatting","ticks","dimensionsChanged"],["ngx-charts-y-axis","",3,"yScale","dims","showGridLines","showLabel","labelText","trimTicks","maxTickLength","tickFormatting","ticks","dimensionsChanged"],["ngx-charts-area-series","",3,"xScale","yScale","baseValue","colors","data","activeEntries","scaleType","gradient","curve","animations"],[3,"mouseleave"],["ngx-charts-tooltip-area","",3,"dims","xSet","xScale","yScale","results","colors","tooltipDisabled","tooltipTemplate","hover"],[4,"ngFor","ngForOf"],["ngx-charts-circle-series","",3,"xScale","yScale","colors","activeEntries","data","scaleType","visibleValue","tooltipDisabled","tooltipTemplate","select","activate","deactivate"],["ngx-charts-timeline","",3,"results","view","height","scheme","customColors","legend","scaleType","onDomainChange"],["ngx-charts-area-series","",3,"xScale","yScale","baseValue","colors","data","scaleType","gradient","curve","animations"]],template:function(r,i){1&r&&(e.TgZ(0,"ngx-charts-chart",0),e.NdJ("legendLabelClick",function(R){return i.onClick(R)})("legendLabelActivate",function(R){return i.onActivate(R)})("legendLabelDeactivate",function(R){return i.onDeactivate(R)}),e.O4$(),e.TgZ(1,"defs")(2,"clipPath"),e._UZ(3,"rect"),e.qZA()(),e.TgZ(4,"g",1),e.YNc(5,Vp,1,10,"g",2),e.YNc(6,ff,1,9,"g",3),e.TgZ(7,"g"),e.YNc(8,Wp,2,10,"g",4),e.YNc(9,_f,3,9,"g",5),e.qZA()(),e.YNc(10,Gp,2,13,"g",6),e.qZA()),2&r&&(e.Q6J("view",e.WLB(17,Ya,i.width,i.height))("showLegend",i.legend)("legendOptions",i.legendOptions)("activeEntries",i.activeEntries)("animations",i.animations),e.xp6(2),e.uIk("id",i.clipPathId),e.xp6(1),e.uIk("width",i.dims.width+10)("height",i.dims.height+10)("transform","translate(-5, -5)"),e.xp6(1),e.uIk("transform",i.transform),e.xp6(1),e.Q6J("ngIf",i.xAxis),e.xp6(1),e.Q6J("ngIf",i.yAxis),e.xp6(1),e.uIk("clip-path",i.clipPath),e.xp6(1),e.Q6J("ngForOf",i.results)("ngForTrackBy",i.trackBy),e.xp6(1),e.Q6J("ngIf",!i.tooltipDisabled),e.xp6(1),e.Q6J("ngIf",i.timeline&&"ordinal"!=i.scaleType))},dependencies:[Qa,ps,ts,Rc,tc,Pc,Il,t.O5,t.sg],styles:[".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"],encapsulation:2,changeDetection:0});class Ll extends ja{constructor(){super(...arguments),this.legend=!1,this.legendTitle="Legend",this.legendPosition=hr.Right,this.showXAxisLabel=!1,this.showYAxisLabel=!1,this.showGridLines=!0,this.curve=Ec,this.activeEntries=[],this.trimXAxisTicks=!0,this.trimYAxisTicks=!0,this.rotateXAxisTicks=!0,this.maxXAxisTickLength=16,this.maxYAxisTickLength=16,this.roundDomains=!1,this.tooltipDisabled=!1,this.activate=new e.vpe,this.deactivate=new e.vpe,this.yDomain=[0,100],this.margin=[10,20,10,20],this.xAxisHeight=0,this.yAxisWidth=0,this.seriesType=u2,this.timelineHeight=50,this.timelinePadding=10,this.trackBy=(r,i)=>i.name}update(){super.update(),this.dims=fr({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.timeline&&(this.dims.height-=this.timelineHeight+this.margin[2]+this.timelinePadding),this.xDomain=this.getXDomain(),this.filteredDomain&&(this.xDomain=this.filteredDomain),this.seriesDomain=this.getSeriesDomain(),this.xScale=this.getXScale(this.xDomain,this.dims.width),this.yScale=this.getYScale(this.yDomain,this.dims.height);for(let r=0;r<this.xSet.length;r++){const i=this.xSet[r];let b=0,R=0;for(const Y of this.results){const me=Y.series.find(Pe=>{let lt=Pe.name,gt=i;return this.scaleType===Cn.Time&&(lt=lt.valueOf(),gt=gt.valueOf()),lt===gt});me&&(R+=me.value)}for(const Y of this.results){let me=Y.series.find(Pe=>{let lt=Pe.name,gt=i;return this.scaleType===Cn.Time&&(lt=lt.valueOf(),gt=gt.valueOf()),lt===gt});me?(me.d0=b,me.d1=b+me.value,b+=me.value):(me={name:i,value:0,d0:b,d1:b},Y.series.push(me)),R>0?(me.d0=100*me.d0/R,me.d1=100*me.d1/R):(me.d0=0,me.d1=0)}}this.updateTimeline(),this.setColors(),this.legendOptions=this.getLegendOptions(),this.transform=`translate(${this.dims.xOffset} , ${this.margin[0]})`,this.clipPathId="clip"+Ys().toString(),this.clipPath=`url(#${this.clipPathId})`}updateTimeline(){this.timeline&&(this.timelineWidth=this.dims.width,this.timelineXDomain=this.getXDomain(),this.timelineXScale=this.getXScale(this.timelineXDomain,this.timelineWidth),this.timelineYScale=this.getYScale(this.yDomain,this.timelineHeight),this.timelineTransform=`translate(${this.dims.xOffset}, ${-this.margin[2]})`)}getXDomain(){let r=iu(this.results);this.scaleType=Io(r);let i=[];if(this.scaleType===Cn.Time){const b=Math.min(...r),R=Math.max(...r);i=[new Date(b),new Date(R)],this.xSet=[...r].sort((Y,me)=>{const Pe=Y.getTime(),lt=me.getTime();return Pe>lt?1:lt>Pe?-1:0})}else if(this.scaleType===Cn.Linear){r=r.map(Y=>Number(Y));i=[Math.min(...r),Math.max(...r)],this.xSet=[...r].sort((Y,me)=>Y-me)}else i=r,this.xSet=r;return i}getSeriesDomain(){return this.results.map(r=>r.name)}getXScale(r,i){let b;return this.scaleType===Cn.Time?b=Ql():this.scaleType===Cn.Linear?b=Ga():this.scaleType===Cn.Ordinal&&(b=er().padding(.1)),b.range([0,i]).domain(r),this.roundDomains?b.nice():b}getYScale(r,i){const b=Ga().range([i,0]).domain(r);return this.roundDomains?b.nice():b}updateDomain(r){this.filteredDomain=r,this.xDomain=this.filteredDomain,this.xScale=this.getXScale(this.xDomain,this.dims.width)}updateHoveredVertical(r){this.hoveredVertical=r.value,this.deactivateAll()}hideCircles(){this.hoveredVertical=null,this.deactivateAll()}onClick(r,i){i&&(r.series=i.name),this.select.emit(r)}setColors(){let r;r=this.schemeType===Cn.Ordinal?this.seriesDomain:this.yDomain,this.colors=new Lr(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===Cn.Ordinal?(r.domain=this.seriesDomain,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()}onActivate(r){this.activeEntries.findIndex(b=>b.name===r.name&&b.value===r.value)>-1||(this.activeEntries=[r,...this.activeEntries],this.activate.emit({value:r,entries:this.activeEntries}))}onDeactivate(r){const i=this.activeEntries.findIndex(b=>b.name===r.name&&b.value===r.value);this.activeEntries.splice(i,1),this.activeEntries=[...this.activeEntries],this.deactivate.emit({value:r,entries:this.activeEntries})}deactivateAll(){this.activeEntries=[...this.activeEntries];for(const r of this.activeEntries)this.deactivate.emit({value:r,entries:[]});this.activeEntries=[]}}Ll.\u0275fac=function(){let f;return function(i){return(f||(f=e.n5z(Ll)))(i||Ll)}}(),Ll.\u0275cmp=e.Xpm({type:Ll,selectors:[["ngx-charts-area-chart-normalized"]],contentQueries:function(r,i,b){if(1&r&&(e.Suo(b,Ir,5),e.Suo(b,yd,5)),2&r){let R;e.iGM(R=e.CRH())&&(i.tooltipTemplate=R.first),e.iGM(R=e.CRH())&&(i.seriesTooltipTemplate=R.first)}},hostBindings:function(r,i){1&r&&e.NdJ("mouseleave",function(){return i.hideCircles()})},inputs:{legend:"legend",legendTitle:"legendTitle",legendPosition:"legendPosition",xAxis:"xAxis",yAxis:"yAxis",showXAxisLabel:"showXAxisLabel",showYAxisLabel:"showYAxisLabel",xAxisLabel:"xAxisLabel",yAxisLabel:"yAxisLabel",timeline:"timeline",gradient:"gradient",showGridLines:"showGridLines",curve:"curve",activeEntries:"activeEntries",schemeType:"schemeType",trimXAxisTicks:"trimXAxisTicks",trimYAxisTicks:"trimYAxisTicks",rotateXAxisTicks:"rotateXAxisTicks",maxXAxisTickLength:"maxXAxisTickLength",maxYAxisTickLength:"maxYAxisTickLength",xAxisTickFormatting:"xAxisTickFormatting",yAxisTickFormatting:"yAxisTickFormatting",xAxisTicks:"xAxisTicks",yAxisTicks:"yAxisTicks",roundDomains:"roundDomains",tooltipDisabled:"tooltipDisabled"},outputs:{activate:"activate",deactivate:"deactivate"},features:[e.qOj],decls:11,vars:20,consts:[[3,"view","showLegend","legendOptions","activeEntries","animations","legendLabelClick","legendLabelActivate","legendLabelDeactivate"],[1,"area-chart","chart"],["ngx-charts-x-axis","",3,"xScale","dims","showGridLines","showLabel","labelText","trimTicks","rotateTicks","maxTickLength","tickFormatting","ticks","dimensionsChanged",4,"ngIf"],["ngx-charts-y-axis","",3,"yScale","dims","showGridLines","showLabel","labelText","trimTicks","maxTickLength","tickFormatting","ticks","dimensionsChanged",4,"ngIf"],[4,"ngFor","ngForOf","ngForTrackBy"],[3,"mouseleave",4,"ngIf"],["ngx-charts-timeline","",3,"results","view","height","scheme","customColors","legend","scaleType","onDomainChange",4,"ngIf"],["ngx-charts-x-axis","",3,"xScale","dims","showGridLines","showLabel","labelText","trimTicks","rotateTicks","maxTickLength","tickFormatting","ticks","dimensionsChanged"],["ngx-charts-y-axis","",3,"yScale","dims","showGridLines","showLabel","labelText","trimTicks","maxTickLength","tickFormatting","ticks","dimensionsChanged"],["ngx-charts-area-series","",3,"xScale","yScale","colors","data","scaleType","activeEntries","gradient","normalized","curve","animations"],[3,"mouseleave"],["ngx-charts-tooltip-area","",3,"dims","xSet","xScale","yScale","results","colors","showPercentage","tooltipDisabled","tooltipTemplate","hover"],[4,"ngFor","ngForOf"],["ngx-charts-circle-series","",3,"type","xScale","yScale","colors","activeEntries","data","scaleType","visibleValue","tooltipDisabled","tooltipTemplate","select","activate","deactivate"],["ngx-charts-timeline","",3,"results","view","height","scheme","customColors","legend","scaleType","onDomainChange"],["ngx-charts-area-series","",3,"xScale","yScale","colors","data","scaleType","gradient","normalized","curve","animations"]],template:function(r,i){1&r&&(e.TgZ(0,"ngx-charts-chart",0),e.NdJ("legendLabelClick",function(R){return i.onClick(R)})("legendLabelActivate",function(R){return i.onActivate(R)})("legendLabelDeactivate",function(R){return i.onDeactivate(R)}),e.O4$(),e.TgZ(1,"defs")(2,"clipPath"),e._UZ(3,"rect"),e.qZA()(),e.TgZ(4,"g",1),e.YNc(5,t4,1,10,"g",2),e.YNc(6,Zp,1,9,"g",3),e.TgZ(7,"g"),e.YNc(8,Yp,2,10,"g",4),e.YNc(9,ec,3,10,"g",5),e.qZA()(),e.YNc(10,mf,2,13,"g",6),e.qZA()),2&r&&(e.Q6J("view",e.WLB(17,Ya,i.width,i.height))("showLegend",i.legend)("legendOptions",i.legendOptions)("activeEntries",i.activeEntries)("animations",i.animations),e.xp6(2),e.uIk("id",i.clipPathId),e.xp6(1),e.uIk("width",i.dims.width+10)("height",i.dims.height+10)("transform","translate(-5, -5)"),e.xp6(1),e.uIk("transform",i.transform),e.xp6(1),e.Q6J("ngIf",i.xAxis),e.xp6(1),e.Q6J("ngIf",i.yAxis),e.xp6(1),e.uIk("clip-path",i.clipPath),e.xp6(1),e.Q6J("ngForOf",i.results)("ngForTrackBy",i.trackBy),e.xp6(1),e.Q6J("ngIf",!i.tooltipDisabled),e.xp6(1),e.Q6J("ngIf",i.timeline&&"ordinal"!=i.scaleType))},dependencies:[Qa,ps,ts,Rc,tc,Pc,Il,t.O5,t.sg],styles:[$r],encapsulation:2,changeDetection:0});class ru extends ja{constructor(){super(...arguments),this.legend=!1,this.legendTitle="Legend",this.legendPosition=hr.Right,this.xAxis=!1,this.yAxis=!1,this.timeline=!1,this.showGridLines=!0,this.curve=Ec,this.activeEntries=[],this.trimXAxisTicks=!0,this.trimYAxisTicks=!0,this.rotateXAxisTicks=!0,this.maxXAxisTickLength=16,this.maxYAxisTickLength=16,this.roundDomains=!1,this.tooltipDisabled=!1,this.activate=new e.vpe,this.deactivate=new e.vpe,this.margin=[10,20,10,20],this.xAxisHeight=0,this.yAxisWidth=0,this.timelineHeight=50,this.timelinePadding=10,this.seriesType=u2}update(){super.update(),this.dims=fr({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.timeline&&(this.dims.height-=this.timelineHeight+this.margin[2]+this.timelinePadding),this.xDomain=this.getXDomain(),this.filteredDomain&&(this.xDomain=this.filteredDomain),this.yDomain=this.getYDomain(),this.seriesDomain=this.getSeriesDomain(),this.xScale=this.getXScale(this.xDomain,this.dims.width),this.yScale=this.getYScale(this.yDomain,this.dims.height);for(let r=0;r<this.xSet.length;r++){const i=this.xSet[r];let b=0;for(const R of this.results){let Y=R.series.find(me=>{let Pe=me.name,lt=i;return this.scaleType===Cn.Time&&(Pe=Pe.valueOf(),lt=lt.valueOf()),Pe===lt});Y?(Y.d0=b,Y.d1=b+Y.value,b+=Y.value):(Y={name:i,value:0,d0:b,d1:b},R.series.push(Y))}}this.updateTimeline(),this.setColors(),this.legendOptions=this.getLegendOptions(),this.transform=`translate(${this.dims.xOffset} , ${this.margin[0]})`,this.clipPathId="clip"+Ys().toString(),this.clipPath=`url(#${this.clipPathId})`}updateTimeline(){this.timeline&&(this.timelineWidth=this.dims.width,this.timelineXDomain=this.getXDomain(),this.timelineXScale=this.getXScale(this.timelineXDomain,this.timelineWidth),this.timelineYScale=this.getYScale(this.yDomain,this.timelineHeight),this.timelineTransform=`translate(${this.dims.xOffset}, ${-this.margin[2]})`)}getXDomain(){let r=iu(this.results);this.scaleType=Io(r);let b,R,i=[];return this.scaleType===Cn.Linear&&(r=r.map(Y=>Number(Y))),(this.scaleType===Cn.Time||this.scaleType===Cn.Linear)&&(b=this.xScaleMin?this.xScaleMin:Math.min(...r),R=this.xScaleMax?this.xScaleMax:Math.max(...r)),this.scaleType===Cn.Time?(i=[new Date(b),new Date(R)],this.xSet=[...r].sort((Y,me)=>{const Pe=Y.getTime(),lt=me.getTime();return Pe>lt?1:lt>Pe?-1:0})):this.scaleType===Cn.Linear?(i=[b,R],this.xSet=[...r].sort((Y,me)=>Y-me)):(i=r,this.xSet=r),i}getYDomain(){const r=[];for(let R=0;R<this.xSet.length;R++){const Y=this.xSet[R];let me=0;for(const Pe of this.results){const lt=Pe.series.find(gt=>{let Et=gt.name,Zt=Y;return this.scaleType===Cn.Time&&(Et=Et.valueOf(),Zt=Zt.valueOf()),Et===Zt});lt&&(me+=lt.value)}r.push(me)}return[this.yScaleMin?this.yScaleMin:Math.min(0,...r),this.yScaleMax?this.yScaleMax:Math.max(...r)]}getSeriesDomain(){return this.results.map(r=>r.name)}getXScale(r,i){let b;return this.scaleType===Cn.Time?b=Ql():this.scaleType===Cn.Linear?b=Ga():this.scaleType===Cn.Ordinal&&(b=er().padding(.1)),b.range([0,i]).domain(r),this.roundDomains?b.nice():b}getYScale(r,i){const b=Ga().range([i,0]).domain(r);return this.roundDomains?b.nice():b}updateDomain(r){this.filteredDomain=r,this.xDomain=this.filteredDomain,this.xScale=this.getXScale(this.xDomain,this.dims.width)}updateHoveredVertical(r){this.hoveredVertical=r.value,this.deactivateAll()}hideCircles(){this.hoveredVertical=null,this.deactivateAll()}onClick(r,i){i&&(r.series=i.name),this.select.emit(r)}trackBy(r,i){return`${i.name}`}setColors(){let r;r=this.schemeType===Cn.Ordinal?this.seriesDomain:this.yDomain,this.colors=new Lr(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===Cn.Ordinal?(r.domain=this.seriesDomain,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()}onActivate(r){this.activeEntries.findIndex(b=>b.name===r.name&&b.value===r.value)>-1||(this.activeEntries=[r,...this.activeEntries],this.activate.emit({value:r,entries:this.activeEntries}))}onDeactivate(r){const i=this.activeEntries.findIndex(b=>b.name===r.name&&b.value===r.value);this.activeEntries.splice(i,1),this.activeEntries=[...this.activeEntries],this.deactivate.emit({value:r,entries:this.activeEntries})}deactivateAll(){this.activeEntries=[...this.activeEntries];for(const r of this.activeEntries)this.deactivate.emit({value:r,entries:[]});this.activeEntries=[]}}ru.\u0275fac=function(){let f;return function(i){return(f||(f=e.n5z(ru)))(i||ru)}}(),ru.\u0275cmp=e.Xpm({type:ru,selectors:[["ngx-charts-area-chart-stacked"]],contentQueries:function(r,i,b){if(1&r&&(e.Suo(b,Ir,5),e.Suo(b,yd,5)),2&r){let R;e.iGM(R=e.CRH())&&(i.tooltipTemplate=R.first),e.iGM(R=e.CRH())&&(i.seriesTooltipTemplate=R.first)}},hostBindings:function(r,i){1&r&&e.NdJ("mouseleave",function(){return i.hideCircles()})},inputs:{legend:"legend",legendTitle:"legendTitle",legendPosition:"legendPosition",xAxis:"xAxis",yAxis:"yAxis",showXAxisLabel:"showXAxisLabel",showYAxisLabel:"showYAxisLabel",xAxisLabel:"xAxisLabel",yAxisLabel:"yAxisLabel",timeline:"timeline",gradient:"gradient",showGridLines:"showGridLines",curve:"curve",activeEntries:"activeEntries",schemeType:"schemeType",trimXAxisTicks:"trimXAxisTicks",trimYAxisTicks:"trimYAxisTicks",rotateXAxisTicks:"rotateXAxisTicks",maxXAxisTickLength:"maxXAxisTickLength",maxYAxisTickLength:"maxYAxisTickLength",xAxisTickFormatting:"xAxisTickFormatting",yAxisTickFormatting:"yAxisTickFormatting",xAxisTicks:"xAxisTicks",yAxisTicks:"yAxisTicks",roundDomains:"roundDomains",tooltipDisabled:"tooltipDisabled",xScaleMin:"xScaleMin",xScaleMax:"xScaleMax",yScaleMin:"yScaleMin",yScaleMax:"yScaleMax"},outputs:{activate:"activate",deactivate:"deactivate"},features:[e.qOj],decls:11,vars:20,consts:[[3,"view","showLegend","legendOptions","activeEntries","animations","legendLabelClick","legendLabelActivate","legendLabelDeactivate"],[1,"area-chart","chart"],["ngx-charts-x-axis","",3,"xScale","dims","showGridLines","showLabel","labelText","trimTicks","rotateTicks","maxTickLength","tickFormatting","ticks","dimensionsChanged",4,"ngIf"],["ngx-charts-y-axis","",3,"yScale","dims","showGridLines","showLabel","labelText","trimTicks","maxTickLength","tickFormatting","ticks","dimensionsChanged",4,"ngIf"],[4,"ngFor","ngForOf","ngForTrackBy"],[3,"mouseleave",4,"ngIf"],["ngx-charts-timeline","",3,"results","view","height","scheme","customColors","legend","scaleType","onDomainChange",4,"ngIf"],["ngx-charts-x-axis","",3,"xScale","dims","showGridLines","showLabel","labelText","trimTicks","rotateTicks","maxTickLength","tickFormatting","ticks","dimensionsChanged"],["ngx-charts-y-axis","",3,"yScale","dims","showGridLines","showLabel","labelText","trimTicks","maxTickLength","tickFormatting","ticks","dimensionsChanged"],["ngx-charts-area-series","",3,"xScale","yScale","colors","data","scaleType","gradient","activeEntries","stacked","curve","animations"],[3,"mouseleave"],["ngx-charts-tooltip-area","",3,"dims","xSet","xScale","yScale","results","colors","tooltipDisabled","tooltipTemplate","hover"],["ngx-charts-circle-series","",3,"type","xScale","yScale","colors","activeEntries","data","scaleType","visibleValue","tooltipDisabled","tooltipTemplate","select","activate","deactivate"],["ngx-charts-timeline","",3,"results","view","height","scheme","customColors","legend","scaleType","onDomainChange"],["ngx-charts-area-series","",3,"xScale","yScale","colors","data","scaleType","gradient","stacked","curve","animations"]],template:function(r,i){1&r&&(e.TgZ(0,"ngx-charts-chart",0),e.NdJ("legendLabelClick",function(R){return i.onClick(R)})("legendLabelActivate",function(R){return i.onActivate(R)})("legendLabelDeactivate",function(R){return i.onDeactivate(R)}),e.O4$(),e.TgZ(1,"defs")(2,"clipPath"),e._UZ(3,"rect"),e.qZA()(),e.TgZ(4,"g",1),e.YNc(5,i4,1,10,"g",2),e.YNc(6,jp,1,9,"g",3),e.TgZ(7,"g"),e.YNc(8,qp,2,10,"g",4),e.YNc(9,Ph,3,10,"g",5),e.qZA()(),e.YNc(10,$p,2,13,"g",6),e.qZA()),2&r&&(e.Q6J("view",e.WLB(17,Ya,i.width,i.height))("showLegend",i.legend)("legendOptions",i.legendOptions)("activeEntries",i.activeEntries)("animations",i.animations),e.xp6(2),e.uIk("id",i.clipPathId),e.xp6(1),e.uIk("width",i.dims.width+10)("height",i.dims.height+10)("transform","translate(-5, -5)"),e.xp6(1),e.uIk("transform",i.transform),e.xp6(1),e.Q6J("ngIf",i.xAxis),e.xp6(1),e.Q6J("ngIf",i.yAxis),e.xp6(1),e.uIk("clip-path",i.clipPath),e.xp6(1),e.Q6J("ngForOf",i.results)("ngForTrackBy",i.trackBy),e.xp6(1),e.Q6J("ngIf",!i.tooltipDisabled),e.xp6(1),e.Q6J("ngIf",i.timeline&&"ordinal"!=i.scaleType))},dependencies:[Qa,ps,ts,Rc,tc,Pc,Il,t.O5,t.sg],styles:[$r],encapsulation:2,changeDetection:0});class Od{}Od.\u0275fac=function(r){return new(r||Od)},Od.\u0275mod=e.oAB({type:Od}),Od.\u0275inj=e.cJS({imports:[[Ds]]});class _2{constructor(r){this.roundEdges=!0,this.gradient=!1,this.offset=0,this.isActive=!1,this.animations=!0,this.noBarWhenZero=!0,this.select=new e.vpe,this.activate=new e.vpe,this.deactivate=new e.vpe,this.hasGradient=!1,this.hideBar=!1,this.element=r.nativeElement}ngOnChanges(r){r.roundEdges&&this.loadAnimation(),this.update()}update(){this.gradientId="grad"+Ys().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=Ln(this.element).select(".bar"),i=this.getPath();this.animations?r.transition().duration(500).attr("d",i):r.attr("d",i)}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 i,r=this.getRadius();return this.roundEdges?this.orientation===Fa.Vertical?(r=Math.min(this.height,r),i=ol(this.x,this.y+this.height,this.width,1,0,this.edges)):this.orientation===Fa.Horizontal&&(r=Math.min(this.width,r),i=ol(this.x,this.y,1,this.height,0,this.edges)):this.orientation===Fa.Vertical?i=ol(this.x,this.y+this.height,this.width,1,0,this.edges):this.orientation===Fa.Horizontal&&(i=ol(this.x,this.y,1,this.height,0,this.edges)),i}getPath(){let i,r=this.getRadius();return this.roundEdges?this.orientation===Fa.Vertical?(r=Math.min(this.height,r),i=ol(this.x,this.y,this.width,this.height,r,this.edges)):this.orientation===Fa.Horizontal&&(r=Math.min(this.width,r),i=ol(this.x,this.y,this.width,this.height,r,this.edges)):i=ol(this.x,this.y,this.width,this.height,r,this.edges),i}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===Fa.Vertical?r=this.data.value>0?[!0,!0,!1,!1]:[!1,!1,!0,!0]:this.orientation===Fa.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===Fa.Vertical&&0===this.height||this.orientation===Fa.Horizontal&&0===this.width)}}var pr,cl;_2.\u0275fac=function(r){return new(r||_2)(e.Y36(e.SBq))},_2.\u0275cmp=e.Xpm({type:_2,selectors:[["g","ngx-charts-bar",""]],hostBindings:function(r,i){1&r&&e.NdJ("mouseenter",function(){return i.onMouseEnter()})("mouseleave",function(){return i.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:[e.TTD],attrs:["ngx-charts-bar",""],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,i){1&r&&(e.YNc(0,Rh,2,3,"defs",0),e.O4$(),e.TgZ(1,"path",1),e.NdJ("click",function(){return i.select.emit(i.data)}),e.qZA()),2&r&&(e.Q6J("ngIf",i.hasGradient),e.xp6(1),e.ekj("active",i.isActive)("hidden",i.hideBar),e.uIk("d",i.path)("aria-label",i.ariaLabel)("fill",i.hasGradient?i.gradientFill:i.fill))},dependencies:[ll,t.O5],encapsulation:2,changeDetection:0}),function(f){f.Standard="standard",f.Normalized="normalized",f.Stacked="stacked"}(pr||(pr={})),function(f){f.positive="positive",f.negative="negative"}(cl||(cl={}));class Bc{constructor(r){this.dimensionsChanged=new e.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.valueFormatting?this.formatedValue=this.valueFormatting(this.value):this.formatedValue=Ur(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})`)}}Bc.\u0275fac=function(r){return new(r||Bc)(e.Y36(e.SBq))},Bc.\u0275cmp=e.Xpm({type:Bc,selectors:[["g","ngx-charts-bar-label",""]],inputs:{value:"value",valueFormatting:"valueFormatting",barX:"barX",barY:"barY",barWidth:"barWidth",barHeight:"barHeight",orientation:"orientation"},outputs:{dimensionsChanged:"dimensionsChanged"},features:[e.TTD],attrs:["ngx-charts-bar-label",""],decls:2,vars:5,consts:[["alignment-baseline","middle",1,"textDataLabel"]],template:function(r,i){1&r&&(e.O4$(),e.TgZ(0,"text",0),e._uU(1),e.qZA()),2&r&&(e.uIk("text-anchor",i.textAnchor)("transform",i.transform)("x",i.x)("y",i.y),e.xp6(1),e.hij(" ",i.formatedValue," "))},styles:[".textDataLabel[_ngcontent-%COMP%]{font-size:11px}"],changeDetection:0});class Wo{constructor(){this.type=pr.Standard,this.tooltipDisabled=!1,this.animations=!0,this.showDataLabel=!1,this.noBarWhenZero=!0,this.select=new e.vpe,this.activate=new e.vpe,this.deactivate=new e.vpe,this.dataLabelWidthChanged=new e.vpe,this.barsForDataLabels=[],this.barOrientation=Fa}ngOnChanges(r){this.update()}update(){this.updateTooltipSettings();const r={[cl.positive]:0,[cl.negative]:0};let i,b;i=cl.positive,this.type===pr.Normalized&&(b=this.series.map(Y=>Y.value).reduce((Y,me)=>Y+me,0));const R=Math.max(this.xScale.domain()[0],0);this.bars=this.series.map(Y=>{let me=Y.value;const Pe=this.getLabel(Y),lt=Ur(Pe),gt=this.roundEdges;i=me>0?cl.positive:cl.negative;const Et={value:me,label:Pe,roundEdges:gt,data:Y,formattedLabel:lt};if(Et.height=this.yScale.bandwidth(),this.type===pr.Standard)Et.width=Math.abs(this.xScale(me)-this.xScale(R)),Et.x=me<0?this.xScale(me):this.xScale(R),Et.y=this.yScale(Pe);else if(this.type===pr.Stacked){const St=r[i],vn=St+me;r[i]+=me,Et.width=this.xScale(vn)-this.xScale(St),Et.x=this.xScale(St),Et.y=0,Et.offset0=St,Et.offset1=vn}else if(this.type===pr.Normalized){let St=r[i],vn=St+me;r[i]+=me,b>0?(St=100*St/b,vn=100*vn/b):(St=0,vn=0),Et.width=this.xScale(vn)-this.xScale(St),Et.x=this.xScale(St),Et.y=0,Et.offset0=St,Et.offset1=vn,me=(vn-St).toFixed(2)+"%"}this.colors.scaleType===Cn.Ordinal?Et.color=this.colors.getColor(Pe):this.type===pr.Standard?(Et.color=this.colors.getColor(me),Et.gradientStops=this.colors.getLinearGradientStops(me)):(Et.color=this.colors.getColor(Et.offset1),Et.gradientStops=this.colors.getLinearGradientStops(Et.offset1,Et.offset0));let Zt=lt;return Et.ariaLabel=lt+" "+me.toLocaleString(),null!==this.seriesName&&void 0!==this.seriesName&&(Zt=`${this.seriesName} \u2022 ${lt}`,Et.data.series=this.seriesName,Et.ariaLabel=this.seriesName+" "+Et.ariaLabel),Et.tooltipText=this.tooltipDisabled?void 0:`\n <span class="tooltip-label">${fs(Zt)}</span>\n <span class="tooltip-val">${this.dataLabelFormatting?this.dataLabelFormatting(me):me.toLocaleString()}</span>\n `,Et}),this.updateDataLabels()}updateDataLabels(){if(this.type===pr.Stacked){this.barsForDataLabels=[];const r={};r.series=this.seriesName;const i=this.series.map(R=>R.value).reduce((R,Y)=>Y>0?R+Y:R,0),b=this.series.map(R=>R.value).reduce((R,Y)=>Y<0?R+Y:R,0);r.total=i+b,r.x=0,r.y=0,r.total>0?r.width=this.xScale(i):r.width=this.xScale(b),r.height=this.yScale.bandwidth(),this.barsForDataLabels.push(r)}else this.barsForDataLabels=this.series.map(r=>{const i={};return i.series=this.seriesName??r.label,i.total=r.value,i.x=this.xScale(0),i.y=this.yScale(r.label),i.width=this.xScale(i.total)-this.xScale(0),i.height=this.yScale.bandwidth(),i})}updateTooltipSettings(){this.tooltipPlacement=this.tooltipDisabled?void 0:Ri.Top,this.tooltipType=this.tooltipDisabled?void 0:Zs.tooltip}isActive(r){return!!this.activeEntries&&void 0!==this.activeEntries.find(b=>r.name===b.name&&r.value===b.value)}getLabel(r){return r.label?r.label:r.name}trackBy(r,i){return i.label}trackDataLabelBy(r,i){return r+"#"+i.series+"#"+i.total}click(r){this.select.emit(r)}}Wo.\u0275fac=function(r){return new(r||Wo)},Wo.\u0275cmp=e.Xpm({type:Wo,selectors:[["g","ngx-charts-series-horizontal",""]],inputs:{dims:"dims",type:"type",series:"series",xScale:"xScale",yScale:"yScale",colors:"colors",tooltipDisabled:"tooltipDisabled",gradient:"gradient",activeEntries:"activeEntries",seriesName:"seriesName",tooltipTemplate:"tooltipTemplate",roundEdges:"roundEdges",animations:"animations",showDataLabel:"showDataLabel",dataLabelFormatting:"dataLabelFormatting",noBarWhenZero:"noBarWhenZero"},outputs:{select:"select",activate:"activate",deactivate:"deactivate",dataLabelWidthChanged:"dataLabelWidthChanged"},features:[e.TTD],attrs:["ngx-charts-series-horizontal",""],decls:2,vars:3,consts:[["ngx-charts-bar","","ngx-tooltip","",3,"width","height","x","y","fill","stops","data","orientation","roundEdges","gradient","isActive","ariaLabel","animations","tooltipDisabled","tooltipPlacement","tooltipType","tooltipTitle","tooltipTemplate","tooltipContext","noBarWhenZero","select","activate","deactivate",4,"ngFor","ngForOf","ngForTrackBy"],[4,"ngIf"],["ngx-charts-bar","","ngx-tooltip","",3,"width","height","x","y","fill","stops","data","orientation","roundEdges","gradient","isActive","ariaLabel","animations","tooltipDisabled","tooltipPlacement","tooltipType","tooltipTitle","tooltipTemplate","tooltipContext","noBarWhenZero","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,i){1&r&&(e.YNc(0,a4,1,21,"g",0),e.YNc(1,r4,2,2,"g",1)),2&r&&(e.Q6J("ngForOf",i.bars)("ngForTrackBy",i.trackBy),e.xp6(1),e.Q6J("ngIf",i.showDataLabel))},dependencies:[_2,Bc,t.sg,ho,t.O5],encapsulation:2,data:{animation:[(0,u.X$)("animationState",[(0,u.eR)(":leave",[(0,u.oB)({opacity:1}),(0,u.jt)(500,(0,u.oB)({opacity:0}))])])]},changeDetection:0});class As extends ja{constructor(){super(...arguments),this.legend=!1,this.legendTitle="Legend",this.legendPosition=hr.Right,this.tooltipDisabled=!1,this.showGridLines=!0,this.activeEntries=[],this.trimXAxisTicks=!0,this.trimYAxisTicks=!0,this.rotateXAxisTicks=!0,this.maxXAxisTickLength=16,this.maxYAxisTickLength=16,this.barPadding=8,this.roundDomains=!1,this.roundEdges=!0,this.showDataLabel=!1,this.noBarWhenZero=!0,this.activate=new e.vpe,this.deactivate=new e.vpe,this.margin=[10,20,10,20],this.xAxisHeight=0,this.yAxisWidth=0,this.dataLabelMaxWidth={negative:0,positive:0}}update(){super.update(),this.showDataLabel||(this.dataLabelMaxWidth={negative:0,positive:0}),this.margin=[10,20+this.dataLabelMaxWidth.positive,10,20+this.dataLabelMaxWidth.negative],this.dims=fr({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.xScale=this.getXScale(),this.yScale=this.getYScale(),this.setColors(),this.legendOptions=this.getLegendOptions(),this.transform=`translate(${this.dims.xOffset} , ${this.margin[0]})`}getXScale(){this.xDomain=this.getXDomain();const r=Ga().range([0,this.dims.width]).domain(this.xDomain);return this.roundDomains?r.nice():r}getYScale(){this.yDomain=this.getYDomain();const r=this.yDomain.length/(this.dims.height/this.barPadding+1);return qr().rangeRound([0,this.dims.height]).paddingInner(r).domain(this.yDomain)}getXDomain(){const r=this.results.map(R=>R.value);return[this.xScaleMin?Math.min(this.xScaleMin,...r):Math.min(0,...r),this.xScaleMax?Math.max(this.xScaleMax,...r):Math.max(0,...r)]}getYDomain(){return this.results.map(r=>r.label)}onClick(r){this.select.emit(r)}setColors(){let r;r=this.schemeType===Cn.Ordinal?this.yDomain:this.xDomain,this.colors=new Lr(this.scheme,this.schemeType,r,this.customColors)}getLegendOptions(){const r={scaleType:this.schemeType,colors:void 0,domain:[],title:void 0,position:this.legendPosition};return"ordinal"===r.scaleType?(r.domain=this.yDomain,r.colors=this.colors,r.title=this.legendTitle):(r.domain=this.xDomain,r.colors=this.colors.scale),r}updateYAxisWidth({width:r}){this.yAxisWidth=r,this.update()}updateXAxisHeight({height:r}){this.xAxisHeight=r,this.update()}onDataLabelMaxWidthChanged(r){r.size.negative?this.dataLabelMaxWidth.negative=Math.max(this.dataLabelMaxWidth.negative,r.size.width):this.dataLabelMaxWidth.positive=Math.max(this.dataLabelMaxWidth.positive,r.size.width),r.index===this.results.length-1&&setTimeout(()=>this.update())}onActivate(r,i=!1){r=this.results.find(R=>i?R.label===r.name:R.name===r.name),!(this.activeEntries.findIndex(R=>R.name===r.name&&R.value===r.value&&R.series===r.series)>-1)&&(this.activeEntries=[r,...this.activeEntries],this.activate.emit({value:r,entries:this.activeEntries}))}onDeactivate(r,i=!1){r=this.results.find(R=>i?R.label===r.name:R.name===r.name);const b=this.activeEntries.findIndex(R=>R.name===r.name&&R.value===r.value&&R.series===r.series);this.activeEntries.splice(b,1),this.activeEntries=[...this.activeEntries],this.deactivate.emit({value:r,entries:this.activeEntries})}}As.\u0275fac=function(){let f;return function(i){return(f||(f=e.n5z(As)))(i||As)}}(),As.\u0275cmp=e.Xpm({type:As,selectors:[["ngx-charts-bar-horizontal"]],contentQueries:function(r,i,b){if(1&r&&e.Suo(b,Ir,5),2&r){let R;e.iGM(R=e.CRH())&&(i.tooltipTemplate=R.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",xScaleMax:"xScaleMax",xScaleMin:"xScaleMin",showDataLabel:"showDataLabel",dataLabelFormatting:"dataLabelFormatting",noBarWhenZero:"noBarWhenZero"},outputs:{activate:"activate",deactivate:"deactivate"},features:[e.qOj],decls:5,vars:25,consts:[[3,"view","showLegend","legendOptions","activeEntries","animations","legendLabelClick","legendLabelActivate","legendLabelDeactivate"],[1,"bar-chart","chart"],["ngx-charts-x-axis","",3,"xScale","dims","showGridLines","showLabel","labelText","trimTicks","rotateTicks","maxTickLength","tickFormatting","ticks","dimensionsChanged",4,"ngIf"],["ngx-charts-y-axis","",3,"yScale","dims","showLabel","labelText","trimTicks","maxTickLength","tickFormatting","ticks","yAxisOffset","dimensionsChanged",4,"ngIf"],["ngx-charts-series-horizontal","",3,"xScale","yScale","colors","series","dims","gradient","tooltipDisabled","tooltipTemplate","activeEntries","roundEdges","animations","showDataLabel","dataLabelFormatting","noBarWhenZero","select","activate","deactivate","dataLabelWidthChanged"],["ngx-charts-x-axis","",3,"xScale","dims","showGridLines","showLabel","labelText","trimTicks","rotateTicks","maxTickLength","tickFormatting","ticks","dimensionsChanged"],["ngx-charts-y-axis","",3,"yScale","dims","showLabel","labelText","trimTicks","maxTickLength","tickFormatting","ticks","yAxisOffset","dimensionsChanged"]],template:function(r,i){1&r&&(e.TgZ(0,"ngx-charts-chart",0),e.NdJ("legendLabelClick",function(R){return i.onClick(R)})("legendLabelActivate",function(R){return i.onActivate(R,!0)})("legendLabelDeactivate",function(R){return i.onDeactivate(R,!0)}),e.O4$(),e.TgZ(1,"g",1),e.YNc(2,gf,1,10,"g",2),e.YNc(3,vf,1,9,"g",3),e.TgZ(4,"g",4),e.NdJ("select",function(R){return i.onClick(R)})("activate",function(R){return i.onActivate(R)})("deactivate",function(R){return i.onDeactivate(R)})("dataLabelWidthChanged",function(R){return i.onDataLabelMaxWidthChanged(R)}),e.qZA()()()),2&r&&(e.Q6J("view",e.WLB(22,Ya,i.width,i.height))("showLegend",i.legend)("legendOptions",i.legendOptions)("activeEntries",i.activeEntries)("animations",i.animations),e.xp6(1),e.uIk("transform",i.transform),e.xp6(1),e.Q6J("ngIf",i.xAxis),e.xp6(1),e.Q6J("ngIf",i.yAxis),e.xp6(1),e.Q6J("xScale",i.xScale)("yScale",i.yScale)("colors",i.colors)("series",i.results)("dims",i.dims)("gradient",i.gradient)("tooltipDisabled",i.tooltipDisabled)("tooltipTemplate",i.tooltipTemplate)("activeEntries",i.activeEntries)("roundEdges",i.roundEdges)("animations",i.animations)("showDataLabel",i.showDataLabel)("dataLabelFormatting",i.dataLabelFormatting)("noBarWhenZero",i.noBarWhenZero))},dependencies:[Qa,ps,ts,Wo,t.O5],styles:[$r],encapsulation:2,changeDetection:0});class $h extends ja{constructor(){super(...arguments),this.legend=!1,this.legendTitle="Legend",this.legendPosition=hr.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.groupPadding=16,this.barPadding=8,this.roundDomains=!1,this.roundEdges=!0,this.showDataLabel=!1,this.noBarWhenZero=!0,this.activate=new e.vpe,this.deactivate=new e.vpe,this.margin=[10,20,10,20],this.xAxisHeight=0,this.yAxisWidth=0,this.dataLabelMaxWidth={negative:0,positive:0},this.isSSR=!1,this.barOrientation=Fa,this.trackBy=(r,i)=>i.name}ngOnInit(){(0,t.PM)(this.platformId)&&(this.isSSR=!0)}update(){super.update(),this.showDataLabel||(this.dataLabelMaxWidth={negative:0,positive:0}),this.margin=[10,20+this.dataLabelMaxWidth.positive,10,20+this.dataLabelMaxWidth.negative],this.dims=fr({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.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]})`}getGroupScale(){const r=this.groupDomain.length/(this.dims.height/this.groupPadding+1);return qr().rangeRound([0,this.dims.height]).paddingInner(r).paddingOuter(r/2).domain(this.groupDomain)}getInnerScale(){const r=this.groupScale.bandwidth(),i=this.innerDomain.length/(r/this.barPadding+1);return qr().rangeRound([0,r]).paddingInner(i).domain(this.innerDomain)}getValueScale(){const r=Ga().range([0,this.dims.width]).domain(this.valueDomain);return this.roundDomains?r.nice():r}getGroupDomain(){const r=[];for(const i of this.results)r.includes(i.label)||r.push(i.label);return r}getInnerDomain(){const r=[];for(const i of this.results)for(const b of i.series)r.includes(b.label)||r.push(b.label);return r}getValueDomain(){const r=[];for(const R of this.results)for(const Y of R.series)r.includes(Y.value)||r.push(Y.value);return[Math.min(0,...r),this.xScaleMax?Math.max(this.xScaleMax,...r):Math.max(0,...r)]}groupTransform(r){return`translate(0, ${this.groupScale(r.label)})`}onClick(r,i){i&&(r.series=i.name),this.select.emit(r)}setColors(){let r;r=this.schemeType===Cn.Ordinal?this.innerDomain:this.valueDomain,this.colors=new Lr(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===Cn.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()}onDataLabelMaxWidthChanged(r,i){r.size.negative?this.dataLabelMaxWidth.negative=Math.max(this.dataLabelMaxWidth.negative,r.size.width):this.dataLabelMaxWidth.positive=Math.max(this.dataLabelMaxWidth.positive,r.size.width),i===this.results.length-1&&setTimeout(()=>this.update())}onActivate(r,i,b=!1){const R=Object.assign({},r);i&&(R.series=i.name);const Y=this.results.map(me=>me.series).flat().filter(me=>b?me.label===R.name:me.name===R.name&&me.series===R.series);this.activeEntries=[...Y],this.activate.emit({value:R,entries:this.activeEntries})}onDeactivate(r,i,b=!1){const R=Object.assign({},r);i&&(R.series=i.name),this.activeEntries=this.activeEntries.filter(Y=>b?Y.label!==R.name:!(Y.name===R.name&&Y.series===R.series)),this.deactivate.emit({value:R,entries:this.activeEntries})}}$h.\u0275fac=function(){let f;return function(i){return(f||(f=e.n5z($h)))(i||$h)}}(),$h.\u0275cmp=e.Xpm({type:$h,selectors:[["ngx-charts-bar-horizontal-2d"]],contentQueries:function(r,i,b){if(1&r&&e.Suo(b,Ir,5),2&r){let R;e.iGM(R=e.CRH())&&(i.tooltipTemplate=R.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",groupPadding:"groupPadding",barPadding:"barPadding",roundDomains:"roundDomains",roundEdges:"roundEdges",xScaleMax:"xScaleMax",showDataLabel:"showDataLabel",dataLabelFormatting:"dataLabelFormatting",noBarWhenZero:"noBarWhenZero"},outputs:{activate:"activate",deactivate:"deactivate"},features:[e.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","showGridLines","showLabel","labelText","trimTicks","rotateTicks","maxTickLength","tickFormatting","ticks","dimensionsChanged",4,"ngIf"],["ngx-charts-y-axis","",3,"yScale","dims","showLabel","labelText","trimTicks","maxTickLength","tickFormatting","ticks","yAxisOffset","dimensionsChanged",4,"ngIf"],[4,"ngIf"],["ngx-charts-x-axis","",3,"xScale","dims","showGridLines","showLabel","labelText","trimTicks","rotateTicks","maxTickLength","tickFormatting","ticks","dimensionsChanged"],["ngx-charts-y-axis","",3,"yScale","dims","showLabel","labelText","trimTicks","maxTickLength","tickFormatting","ticks","yAxisOffset","dimensionsChanged"],[4,"ngFor","ngForOf","ngForTrackBy"],["ngx-charts-series-horizontal","",3,"xScale","activeEntries","yScale","colors","series","dims","gradient","tooltipDisabled","tooltipTemplate","seriesName","roundEdges","animations","showDataLabel","dataLabelFormatting","noBarWhenZero","select","activate","deactivate","dataLabelWidthChanged"]],template:function(r,i){1&r&&(e.TgZ(0,"ngx-charts-chart",0),e.NdJ("legendLabelActivate",function(R){return i.onActivate(R,void 0,!0)})("legendLabelDeactivate",function(R){return i.onDeactivate(R,void 0,!0)})("legendLabelClick",function(R){return i.onClick(R)}),e.O4$(),e.TgZ(1,"g",1),e._UZ(2,"g",2),e.YNc(3,yf,1,10,"g",3),e.YNc(4,s4,1,9,"g",4),e.YNc(5,Nh,2,2,"g",5),e.YNc(6,j0,2,2,"g",5),e.qZA()()),2&r&&(e.Q6J("view",e.WLB(15,Ya,i.width,i.height))("showLegend",i.legend)("legendOptions",i.legendOptions)("activeEntries",i.activeEntries)("animations",i.animations),e.xp6(1),e.uIk("transform",i.transform),e.xp6(1),e.Q6J("xScale",i.valueScale)("yScale",i.groupScale)("data",i.results)("dims",i.dims)("orient",i.barOrientation.Horizontal),e.xp6(1),e.Q6J("ngIf",i.xAxis),e.xp6(1),e.Q6J("ngIf",i.yAxis),e.xp6(1),e.Q6J("ngIf",!i.isSSR),e.xp6(1),e.Q6J("ngIf",i.isSSR))},dependencies:[Qa,h2,ps,ts,Wo,t.O5,t.sg],styles:[$r],encapsulation:2,data:{animation:[(0,u.X$)("animationState",[(0,u.eR)(":leave",[(0,u.oB)({opacity:1,transform:"*"}),(0,u.jt)(500,(0,u.oB)({opacity:0,transform:"scale(0)"}))])])]},changeDetection:0});class Pd extends ja{constructor(){super(...arguments),this.legend=!1,this.legendTitle="Legend",this.legendPosition=hr.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.noBarWhenZero=!0,this.activate=new e.vpe,this.deactivate=new e.vpe,this.valueDomain=[0,100],this.margin=[10,20,10,20],this.xAxisHeight=0,this.yAxisWidth=0,this.barChartType=pr,this.isSSR=!1,this.trackBy=(r,i)=>i.name}ngOnInit(){(0,t.PM)(this.platformId)&&(this.isSSR=!0)}update(){super.update(),this.dims=fr({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.groupDomain=this.getGroupDomain(),this.innerDomain=this.getInnerDomain(),this.xScale=this.getXScale(),this.yScale=this.getYScale(),this.setColors(),this.legendOptions=this.getLegendOptions(),this.transform=`translate(${this.dims.xOffset} , ${this.margin[0]})`}getGroupDomain(){const r=[];for(const i of this.results)r.includes(i.label)||r.push(i.label);return r}getInnerDomain(){const r=[];for(const i of this.results)for(const b of i.series)r.includes(b.label)||r.push(b.label);return r}getYScale(){const r=this.groupDomain.length/(this.dims.height/this.barPadding+1);return qr().rangeRound([0,this.dims.height]).paddingInner(r).domain(this.groupDomain)}getXScale(){const r=Ga().range([0,this.dims.width]).domain(this.valueDomain);return this.roundDomains?r.nice():r}groupTransform(r){return`translate(0, ${this.yScale(r.name)})`}onClick(r,i){i&&(r.series=i.name),this.select.emit(r)}setColors(){let r;r=this.schemeType===Cn.Ordinal?this.innerDomain:this.valueDomain,this.colors=new Lr(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===Cn.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,i,b=!1){const R=Object.assign({},r);i&&(R.series=i.name);const Y=this.results.map(me=>me.series).flat().filter(me=>b?me.label===R.name:me.name===R.name&&me.series===R.series);this.activeEntries=[...Y],this.activate.emit({value:R,entries:this.activeEntries})}onDeactivate(r,i,b=!1){const R=Object.assign({},r);i&&(R.series=i.name),this.activeEntries=this.activeEntries.filter(Y=>b?Y.label!==R.name:!(Y.name===R.name&&Y.series===R.series)),this.deactivate.emit({value:R,entries:this.activeEntries})}}Pd.\u0275fac=function(){let f;return function(i){return(f||(f=e.n5z(Pd)))(i||Pd)}}(),Pd.\u0275cmp=e.Xpm({type:Pd,selectors:[["ngx-charts-bar-horizontal-normalized"]],contentQueries:function(r,i,b){if(1&r&&e.Suo(b,Ir,5),2&r){let R;e.iGM(R=e.CRH())&&(i.tooltipTemplate=R.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",noBarWhenZero:"noBarWhenZero"},outputs:{activate:"activate",deactivate:"deactivate"},features:[e.qOj],decls:6,vars:13,consts:[[3,"view","showLegend","legendOptions","activeEntries","animations","legendLabelActivate","legendLabelDeactivate","legendLabelClick"],[1,"bar-chart","chart"],["ngx-charts-x-axis","",3,"xScale","dims","showGridLines","showLabel","labelText","trimTicks","rotateTicks","maxTickLength","tickFormatting","ticks","dimensionsChanged",4,"ngIf"],["ngx-charts-y-axis","",3,"yScale","dims","showLabel","labelText","trimTicks","maxTickLength","tickFormatting","ticks","dimensionsChanged",4,"ngIf"],[4,"ngIf"],["ngx-charts-x-axis","",3,"xScale","dims","showGridLines","showLabel","labelText","trimTicks","rotateTicks","maxTickLength","tickFormatting","ticks","dimensionsChanged"],["ngx-charts-y-axis","",3,"yScale","dims","showLabel","labelText","trimTicks","maxTickLength","tickFormatting","ticks","dimensionsChanged"],[4,"ngFor","ngForOf","ngForTrackBy"],["ngx-charts-series-horizontal","",3,"type","xScale","yScale","activeEntries","colors","series","dims","gradient","tooltipDisabled","tooltipTemplate","seriesName","animations","noBarWhenZero","select","activate","deactivate"]],template:function(r,i){1&r&&(e.TgZ(0,"ngx-charts-chart",0),e.NdJ("legendLabelActivate",function(R){return i.onActivate(R,void 0,!0)})("legendLabelDeactivate",function(R){return i.onDeactivate(R,void 0,!0)})("legendLabelClick",function(R){return i.onClick(R)}),e.O4$(),e.TgZ(1,"g",1),e.YNc(2,bf,1,10,"g",2),e.YNc(3,xf,1,8,"g",3),e.YNc(4,t6,2,2,"g",4),e.YNc(5,q0,2,2,"g",4),e.qZA()()),2&r&&(e.Q6J("view",e.WLB(10,Ya,i.width,i.height))("showLegend",i.legend)("legendOptions",i.legendOptions)("activeEntries",i.activeEntries)("animations",i.animations),e.xp6(1),e.uIk("transform",i.transform),e.xp6(1),e.Q6J("ngIf",i.xAxis),e.xp6(1),e.Q6J("ngIf",i.yAxis),e.xp6(1),e.Q6J("ngIf",!i.isSSR),e.xp6(1),e.Q6J("ngIf",i.isSSR))},dependencies:[Qa,ps,ts,Wo,t.O5,t.sg],styles:[$r],encapsulation:2,data:{animation:[(0,u.X$)("animationState",[(0,u.eR)(":leave",[(0,u.oB)({opacity:1,transform:"*"}),(0,u.jt)(500,(0,u.oB)({opacity:0,transform:"scale(0)"}))])])]},changeDetection:0});class kd extends ja{constructor(){super(...arguments),this.legend=!1,this.legendTitle="Legend",this.legendPosition=hr.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.showDataLabel=!1,this.noBarWhenZero=!0,this.activate=new e.vpe,this.deactivate=new e.vpe,this.margin=[10,20,10,20],this.xAxisHeight=0,this.yAxisWidth=0,this.dataLabelMaxWidth={negative:0,positive:0},this.barChartType=pr,this.isSSR=!1,this.trackBy=(r,i)=>i.name}ngOnInit(){(0,t.PM)(this.platformId)&&(this.isSSR=!0)}update(){super.update(),this.showDataLabel||(this.dataLabelMaxWidth={negative:0,positive:0}),this.margin=[10,20+this.dataLabelMaxWidth.positive,10,20+this.dataLabelMaxWidth.negative],this.dims=fr({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.groupDomain=this.getGroupDomain(),this.innerDomain=this.getInnerDomain(),this.valueDomain=this.getValueDomain(),this.xScale=this.getXScale(),this.yScale=this.getYScale(),this.setColors(),this.legendOptions=this.getLegendOptions(),this.transform=`translate(${this.dims.xOffset} , ${this.margin[0]})`}getGroupDomain(){const r=[];for(const i of this.results)r.includes(i.label)||r.push(i.label);return r}getInnerDomain(){const r=[];for(const i of this.results)for(const b of i.series)r.includes(b.label)||r.push(b.label);return r}getValueDomain(){const r=[];let i=0,b=0;for(const me of this.results){let Pe=0,lt=0;for(const gt of me.series)gt.value<0?Pe+=gt.value:lt+=gt.value,i=gt.value<i?gt.value:i,b=gt.value>b?gt.value:b;r.push(Pe),r.push(lt)}r.push(i),r.push(b);return[Math.min(0,...r),this.xScaleMax?Math.max(this.xScaleMax,...r):Math.max(...r)]}getYScale(){const r=this.groupDomain.length/(this.dims.height/this.barPadding+1);return qr().rangeRound([0,this.dims.height]).paddingInner(r).domain(this.groupDomain)}getXScale(){const r=Ga().range([0,this.dims.width]).domain(this.valueDomain);return this.roundDomains?r.nice():r}groupTransform(r){return`translate(0, ${this.yScale(r.name)})`}onClick(r,i){i&&(r.series=i.name),this.select.emit(r)}setColors(){let r;r=this.schemeType===Cn.Ordinal?this.innerDomain:this.valueDomain,this.colors=new Lr(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===Cn.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()}onDataLabelMaxWidthChanged(r,i){r.size.negative?this.dataLabelMaxWidth.negative=Math.max(this.dataLabelMaxWidth.negative,r.size.width):this.dataLabelMaxWidth.positive=Math.max(this.dataLabelMaxWidth.positive,r.size.width),i===this.results.length-1&&setTimeout(()=>this.update())}onActivate(r,i,b=!1){const R=Object.assign({},r);i&&(R.series=i.name);const Y=this.results.map(me=>me.series).flat().filter(me=>b?me.label===R.name:me.name===R.name&&me.series===R.series);this.activeEntries=[...Y],this.activate.emit({value:R,entries:this.activeEntries})}onDeactivate(r,i,b=!1){const R=Object.assign({},r);i&&(R.series=i.name),this.activeEntries=this.activeEntries.filter(Y=>b?Y.label!==R.name:!(Y.name===R.name&&Y.series===R.series)),this.deactivate.emit({value:R,entries:this.activeEntries})}}kd.\u0275fac=function(){let f;return function(i){return(f||(f=e.n5z(kd)))(i||kd)}}(),kd.\u0275cmp=e.Xpm({type:kd,selectors:[["ngx-charts-bar-horizontal-stacked"]],contentQueries:function(r,i,b){if(1&r&&e.Suo(b,Ir,5),2&r){let R;e.iGM(R=e.CRH())&&(i.tooltipTemplate=R.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",xScaleMax:"xScaleMax",showDataLabel:"showDataLabel",dataLabelFormatting:"dataLabelFormatting",noBarWhenZero:"noBarWhenZero"},outputs:{activate:"activate",deactivate:"deactivate"},features:[e.qOj],decls:6,vars:13,consts:[[3,"view","showLegend","legendOptions","activeEntries","animations","legendLabelActivate","legendLabelDeactivate","legendLabelClick"],[1,"bar-chart","chart"],["ngx-charts-x-axis","",3,"xScale","dims","showGridLines","showLabel","labelText","trimTicks","rotateTicks","maxTickLength","tickFormatting","ticks","dimensionsChanged",4,"ngIf"],["ngx-charts-y-axis","",3,"yScale","dims","showLabel","labelText","trimTicks","maxTickLength","tickFormatting","ticks","yAxisOffset","dimensionsChanged",4,"ngIf"],[4,"ngIf"],["ngx-charts-x-axis","",3,"xScale","dims","showGridLines","showLabel","labelText","trimTicks","rotateTicks","maxTickLength","tickFormatting","ticks","dimensionsChanged"],["ngx-charts-y-axis","",3,"yScale","dims","showLabel","labelText","trimTicks","maxTickLength","tickFormatting","ticks","yAxisOffset","dimensionsChanged"],[4,"ngFor","ngForOf","ngForTrackBy"],["ngx-charts-series-horizontal","",3,"type","xScale","yScale","colors","series","activeEntries","dims","gradient","tooltipDisabled","tooltipTemplate","seriesName","animations","showDataLabel","dataLabelFormatting","noBarWhenZero","select","activate","deactivate","dataLabelWidthChanged"]],template:function(r,i){1&r&&(e.TgZ(0,"ngx-charts-chart",0),e.NdJ("legendLabelActivate",function(R){return i.onActivate(R,void 0,!0)})("legendLabelDeactivate",function(R){return i.onDeactivate(R,void 0,!0)})("legendLabelClick",function(R){return i.onClick(R)}),e.O4$(),e.TgZ(1,"g",1),e.YNc(2,Ef,1,10,"g",2),e.YNc(3,C_,1,9,"g",3),e.YNc(4,i6,2,2,"g",4),e.YNc(5,Df,2,2,"g",4),e.qZA()()),2&r&&(e.Q6J("view",e.WLB(10,Ya,i.width,i.height))("showLegend",i.legend)("legendOptions",i.legendOptions)("activeEntries",i.activeEntries)("animations",i.animations),e.xp6(1),e.uIk("transform",i.transform),e.xp6(1),e.Q6J("ngIf",i.xAxis),e.xp6(1),e.Q6J("ngIf",i.yAxis),e.xp6(1),e.Q6J("ngIf",!i.isSSR),e.xp6(1),e.Q6J("ngIf",i.isSSR))},dependencies:[Qa,ps,ts,Wo,t.O5,t.sg],styles:[$r],encapsulation:2,data:{animation:[(0,u.X$)("animationState",[(0,u.eR)(":leave",[(0,u.oB)({opacity:1,transform:"*"}),(0,u.jt)(500,(0,u.oB)({opacity:0,transform:"scale(0)"}))])])]},changeDetection:0});class Nc{constructor(r){this.platformId=r,this.type=pr.Standard,this.tooltipDisabled=!1,this.animations=!0,this.showDataLabel=!1,this.noBarWhenZero=!0,this.select=new e.vpe,this.activate=new e.vpe,this.deactivate=new e.vpe,this.dataLabelHeightChanged=new e.vpe,this.barsForDataLabels=[],this.barOrientation=Fa,this.isSSR=!1}ngOnInit(){(0,t.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 i=Math.max(this.yScale.domain()[0],0),b={[cl.positive]:0,[cl.negative]:0};let Y,R=cl.positive;this.type===pr.Normalized&&(Y=this.series.map(me=>me.value).reduce((me,Pe)=>me+Pe,0)),this.bars=this.series.map((me,Pe)=>{let lt=me.value;const gt=this.getLabel(me),Et=Ur(gt),Zt=this.roundEdges;R=lt>0?cl.positive:cl.negative;const St={value:lt,label:gt,roundEdges:Zt,data:me,width:r,formattedLabel:Et,height:0,x:0,y:0};if(this.type===pr.Standard)St.height=Math.abs(this.yScale(lt)-this.yScale(i)),St.x=this.xScale(gt),St.y=lt<0?this.yScale(0):this.yScale(lt);else if(this.type===pr.Stacked){const wn=b[R],Zn=wn+lt;b[R]+=lt,St.height=this.yScale(wn)-this.yScale(Zn),St.x=0,St.y=this.yScale(Zn),St.offset0=wn,St.offset1=Zn}else if(this.type===pr.Normalized){let wn=b[R],Zn=wn+lt;b[R]+=lt,Y>0?(wn=100*wn/Y,Zn=100*Zn/Y):(wn=0,Zn=0),St.height=this.yScale(wn)-this.yScale(Zn),St.x=0,St.y=this.yScale(Zn),St.offset0=wn,St.offset1=Zn,lt=(Zn-wn).toFixed(2)+"%"}this.colors.scaleType===Cn.Ordinal?St.color=this.colors.getColor(gt):this.type===pr.Standard?(St.color=this.colors.getColor(lt),St.gradientStops=this.colors.getLinearGradientStops(lt)):(St.color=this.colors.getColor(St.offset1),St.gradientStops=this.colors.getLinearGradientStops(St.offset1,St.offset0));let vn=Et;return St.ariaLabel=Et+" "+lt.toLocaleString(),null!==this.seriesName&&void 0!==this.seriesName&&(vn=`${this.seriesName} \u2022 ${Et}`,St.data.series=this.seriesName,St.ariaLabel=this.seriesName+" "+St.ariaLabel),St.tooltipText=this.tooltipDisabled?void 0:`\n <span class="tooltip-label">${fs(vn)}</span>\n <span class="tooltip-val">${this.dataLabelFormatting?this.dataLabelFormatting(lt):lt.toLocaleString()}</span>\n `,St}),this.updateDataLabels()}updateDataLabels(){if(this.type===pr.Stacked){this.barsForDataLabels=[];const r={};r.series=this.seriesName;const i=this.series.map(R=>R.value).reduce((R,Y)=>Y>0?R+Y:R,0),b=this.series.map(R=>R.value).reduce((R,Y)=>Y<0?R+Y:R,0);r.total=i+b,r.x=0,r.y=0,r.total>0?r.height=this.yScale(i):r.height=this.yScale(b),r.width=this.xScale.bandwidth(),this.barsForDataLabels.push(r)}else this.barsForDataLabels=this.series.map(r=>{const i={};return i.series=this.seriesName??r.label,i.total=r.value,i.x=this.xScale(r.label),i.y=this.yScale(0),i.height=this.yScale(i.total)-this.yScale(0),i.width=this.xScale.bandwidth(),i})}updateTooltipSettings(){this.tooltipPlacement=this.tooltipDisabled?void 0:Ri.Top,this.tooltipType=this.tooltipDisabled?void 0:Zs.tooltip}isActive(r){return!!this.activeEntries&&void 0!==this.activeEntries.find(b=>r.name===b.name&&r.value===b.value)}onClick(r){this.select.emit(r)}getLabel(r){return r.label?r.label:r.name}trackBy(r,i){return i.label}trackDataLabelBy(r,i){return r+"#"+i.series+"#"+i.total}}Nc.\u0275fac=function(r){return new(r||Nc)(e.Y36(e.Lbi))},Nc.\u0275cmp=e.Xpm({type:Nc,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:[e.TTD],attrs:["ngx-charts-series-vertical",""],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,i){1&r&&(e.YNc(0,s6,2,2,"g",0),e.YNc(1,o4,2,2,"g",0),e.YNc(2,l4,2,2,"g",0)),2&r&&(e.Q6J("ngIf",!i.isSSR),e.xp6(1),e.Q6J("ngIf",i.isSSR),e.xp6(1),e.Q6J("ngIf",i.showDataLabel))},dependencies:[_2,Bc,t.O5,t.sg,ho],encapsulation:2,data:{animation:[(0,u.X$)("animationState",[(0,u.eR)(":leave",[(0,u.oB)({opacity:1}),(0,u.jt)(500,(0,u.oB)({opacity:0}))])])]},changeDetection:0});class m2 extends ja{constructor(){super(...arguments),this.legend=!1,this.legendTitle="Legend",this.legendPosition=hr.Right,this.tooltipDisabled=!1,this.showGridLines=!0,this.activeEntries=[],this.trimXAxisTicks=!0,this.trimYAxisTicks=!0,this.rotateXAxisTicks=!0,this.maxXAxisTickLength=16,this.maxYAxisTickLength=16,this.barPadding=8,this.roundDomains=!1,this.roundEdges=!0,this.showDataLabel=!1,this.noBarWhenZero=!0,this.activate=new e.vpe,this.deactivate=new e.vpe,this.margin=[10,20,10,20],this.xAxisHeight=0,this.yAxisWidth=0,this.dataLabelMaxHeight={negative:0,positive:0}}update(){super.update(),this.showDataLabel||(this.dataLabelMaxHeight={negative:0,positive:0}),this.margin=[10+this.dataLabelMaxHeight.positive,20,10+this.dataLabelMaxHeight.negative,20],this.dims=fr({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 qr().range([0,this.dims.width]).paddingInner(r).domain(this.xDomain)}getYScale(){this.yDomain=this.getYDomain();const r=Ga().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(R=>R.value);let i=this.yScaleMin?Math.min(this.yScaleMin,...r):Math.min(0,...r);this.yAxisTicks&&!this.yAxisTicks.some(isNaN)&&(i=Math.min(i,...this.yAxisTicks));let b=this.yScaleMax?Math.max(this.yScaleMax,...r):Math.max(0,...r);return this.yAxisTicks&&!this.yAxisTicks.some(isNaN)&&(b=Math.max(b,...this.yAxisTicks)),[i,b]}onClick(r){this.select.emit(r)}setColors(){let r;r=this.schemeType===Cn.Ordinal?this.xDomain:this.yDomain,this.colors=new Lr(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===Cn.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,i=!1){r=this.results.find(R=>i?R.label===r.name:R.name===r.name),!(this.activeEntries.findIndex(R=>R.name===r.name&&R.value===r.value&&R.series===r.series)>-1)&&(this.activeEntries=[r,...this.activeEntries],this.activate.emit({value:r,entries:this.activeEntries}))}onDeactivate(r,i=!1){r=this.results.find(R=>i?R.label===r.name:R.name===r.name);const b=this.activeEntries.findIndex(R=>R.name===r.name&&R.value===r.value&&R.series===r.series);this.activeEntries.splice(b,1),this.activeEntries=[...this.activeEntries],this.deactivate.emit({value:r,entries:this.activeEntries})}}m2.\u0275fac=function(){let f;return function(i){return(f||(f=e.n5z(m2)))(i||m2)}}(),m2.\u0275cmp=e.Xpm({type:m2,selectors:[["ngx-charts-bar-vertical"]],contentQueries:function(r,i,b){if(1&r&&e.Suo(b,Ir,5),2&r){let R;e.iGM(R=e.CRH())&&(i.tooltipTemplate=R.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:[e.qOj],decls:5,vars:25,consts:[[3,"view","showLegend","legendOptions","activeEntries","animations","legendLabelClick","legendLabelActivate","legendLabelDeactivate"],[1,"bar-chart","chart"],["ngx-charts-x-axis","",3,"xScale","dims","showGridLines","showLabel","labelText","trimTicks","rotateTicks","maxTickLength","tickFormatting","ticks","xAxisOffset","dimensionsChanged",4,"ngIf"],["ngx-charts-y-axis","",3,"yScale","dims","showGridLines","showLabel","labelText","trimTicks","maxTickLength","tickFormatting","ticks","dimensionsChanged",4,"ngIf"],["ngx-charts-series-vertical","",3,"xScale","yScale","colors","series","dims","gradient","tooltipDisabled","tooltipTemplate","showDataLabel","dataLabelFormatting","activeEntries","roundEdges","animations","noBarWhenZero","activate","deactivate","select","dataLabelHeightChanged"],["ngx-charts-x-axis","",3,"xScale","dims","showGridLines","showLabel","labelText","trimTicks","rotateTicks","maxTickLength","tickFormatting","ticks","xAxisOffset","dimensionsChanged"],["ngx-charts-y-axis","",3,"yScale","dims","showGridLines","showLabel","labelText","trimTicks","maxTickLength","tickFormatting","ticks","dimensionsChanged"]],template:function(r,i){1&r&&(e.TgZ(0,"ngx-charts-chart",0),e.NdJ("legendLabelClick",function(R){return i.onClick(R)})("legendLabelActivate",function(R){return i.onActivate(R,!0)})("legendLabelDeactivate",function(R){return i.onDeactivate(R,!0)}),e.O4$(),e.TgZ(1,"g",1),e.YNc(2,c4,1,11,"g",2),e.YNc(3,o6,1,9,"g",3),e.TgZ(4,"g",4),e.NdJ("activate",function(R){return i.onActivate(R)})("deactivate",function(R){return i.onDeactivate(R)})("select",function(R){return i.onClick(R)})("dataLabelHeightChanged",function(R){return i.onDataLabelMaxHeightChanged(R)}),e.qZA()()()),2&r&&(e.Q6J("view",e.WLB(22,Ya,i.width,i.height))("showLegend",i.legend)("legendOptions",i.legendOptions)("activeEntries",i.activeEntries)("animations",i.animations),e.xp6(1),e.uIk("transform",i.transform),e.xp6(1),e.Q6J("ngIf",i.xAxis),e.xp6(1),e.Q6J("ngIf",i.yAxis),e.xp6(1),e.Q6J("xScale",i.xScale)("yScale",i.yScale)("colors",i.colors)("series",i.results)("dims",i.dims)("gradient",i.gradient)("tooltipDisabled",i.tooltipDisabled)("tooltipTemplate",i.tooltipTemplate)("showDataLabel",i.showDataLabel)("dataLabelFormatting",i.dataLabelFormatting)("activeEntries",i.activeEntries)("roundEdges",i.roundEdges)("animations",i.animations)("noBarWhenZero",i.noBarWhenZero))},dependencies:[Qa,ps,ts,Nc,t.O5],styles:[$r],encapsulation:2,changeDetection:0});class g2 extends ja{constructor(){super(...arguments),this.legend=!1,this.legendTitle="Legend",this.legendPosition=hr.Right,this.tooltipDisabled=!1,this.scaleType=Cn.Ordinal,this.showGridLines=!0,this.activeEntries=[],this.trimXAxisTicks=!0,this.trimYAxisTicks=!0,this.rotateXAxisTicks=!0,this.maxXAxisTickLength=16,this.maxYAxisTickLength=16,this.groupPadding=16,this.barPadding=8,this.roundDomains=!1,this.roundEdges=!0,this.showDataLabel=!1,this.noBarWhenZero=!0,this.activate=new e.vpe,this.deactivate=new e.vpe,this.margin=[10,20,10,20],this.xAxisHeight=0,this.yAxisWidth=0,this.dataLabelMaxHeight={negative:0,positive:0},this.isSSR=!1,this.barOrientation=Fa,this.trackBy=(r,i)=>i.name}ngOnInit(){(0,t.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=fr({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,i){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),i===this.results.length-1&&setTimeout(()=>this.update())}getGroupScale(){const r=this.groupDomain.length/(this.dims.height/this.groupPadding+1);return qr().rangeRound([0,this.dims.width]).paddingInner(r).paddingOuter(r/2).domain(this.groupDomain)}getInnerScale(){const r=this.groupScale.bandwidth(),i=this.innerDomain.length/(r/this.barPadding+1);return qr().rangeRound([0,r]).paddingInner(i).domain(this.innerDomain)}getValueScale(){const r=Ga().range([this.dims.height,0]).domain(this.valueDomain);return this.roundDomains?r.nice():r}getGroupDomain(){const r=[];for(const i of this.results)r.includes(i.label)||r.push(i.label);return r}getInnerDomain(){const r=[];for(const i of this.results)for(const b of i.series)r.includes(b.label)||r.push(b.label);return r}getValueDomain(){const r=[];for(const R of this.results)for(const Y of R.series)r.includes(Y.value)||r.push(Y.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,i){i&&(r.series=i.name),this.select.emit(r)}setColors(){let r;r=this.schemeType===Cn.Ordinal?this.innerDomain:this.valueDomain,this.colors=new Lr(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===Cn.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,i,b=!1){const R=Object.assign({},r);i&&(R.series=i.name);const Y=this.results.map(me=>me.series).flat().filter(me=>b?me.label===R.name:me.name===R.name&&me.series===R.series);this.activeEntries=[...Y],this.activate.emit({value:R,entries:this.activeEntries})}onDeactivate(r,i,b=!1){const R=Object.assign({},r);i&&(R.series=i.name),this.activeEntries=this.activeEntries.filter(Y=>b?Y.label!==R.name:!(Y.name===R.name&&Y.series===R.series)),this.deactivate.emit({value:R,entries:this.activeEntries})}}g2.\u0275fac=function(){let f;return function(i){return(f||(f=e.n5z(g2)))(i||g2)}}(),g2.\u0275cmp=e.Xpm({type:g2,selectors:[["ngx-charts-bar-vertical-2d"]],contentQueries:function(r,i,b){if(1&r&&e.Suo(b,Ir,5),2&r){let R;e.iGM(R=e.CRH())&&(i.tooltipTemplate=R.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:[e.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,i){1&r&&(e.TgZ(0,"ngx-charts-chart",0),e.NdJ("legendLabelActivate",function(R){return i.onActivate(R,void 0,!0)})("legendLabelDeactivate",function(R){return i.onDeactivate(R,void 0,!0)})("legendLabelClick",function(R){return i.onClick(R)}),e.O4$(),e.TgZ(1,"g",1),e._UZ(2,"g",2),e.YNc(3,l6,1,10,"g",3),e.YNc(4,c6,1,9,"g",4),e.YNc(5,d6,2,2,"g",5),e.qZA(),e.YNc(6,Lf,2,2,"g",5),e.qZA()),2&r&&(e.Q6J("view",e.WLB(15,Ya,i.width,i.height))("showLegend",i.legend)("legendOptions",i.legendOptions)("activeEntries",i.activeEntries)("animations",i.animations),e.xp6(1),e.uIk("transform",i.transform),e.xp6(1),e.Q6J("xScale",i.groupScale)("yScale",i.valueScale)("data",i.results)("dims",i.dims)("orient",i.barOrientation.Vertical),e.xp6(1),e.Q6J("ngIf",i.xAxis),e.xp6(1),e.Q6J("ngIf",i.yAxis),e.xp6(1),e.Q6J("ngIf",!i.isSSR),e.xp6(1),e.Q6J("ngIf",i.isSSR))},dependencies:[Qa,h2,ps,ts,Nc,t.O5,t.sg],styles:[$r],encapsulation:2,data:{animation:[(0,u.X$)("animationState",[(0,u.eR)(":leave",[(0,u.oB)({opacity:1,transform:"*"}),(0,u.jt)(500,(0,u.oB)({opacity:0,transform:"scale(0)"}))])])]},changeDetection:0});class v2 extends ja{constructor(){super(...arguments),this.legend=!1,this.legendTitle="Legend",this.legendPosition=hr.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.noBarWhenZero=!0,this.activate=new e.vpe,this.deactivate=new e.vpe,this.valueDomain=[0,100],this.margin=[10,20,10,20],this.xAxisHeight=0,this.yAxisWidth=0,this.isSSR=!1,this.barChartType=pr,this.trackBy=(r,i)=>i.name}ngOnInit(){(0,t.PM)(this.platformId)&&(this.isSSR=!0)}update(){super.update(),this.dims=fr({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.groupDomain=this.getGroupDomain(),this.innerDomain=this.getInnerDomain(),this.xScale=this.getXScale(),this.yScale=this.getYScale(),this.setColors(),this.legendOptions=this.getLegendOptions(),this.transform=`translate(${this.dims.xOffset} , ${this.margin[0]})`}getGroupDomain(){const r=[];for(const i of this.results)r.includes(i.label)||r.push(i.label);return r}getInnerDomain(){const r=[];for(const i of this.results)for(const b of i.series)r.includes(b.label)||r.push(b.label);return r}getXScale(){const r=this.groupDomain.length/(this.dims.width/this.barPadding+1);return qr().rangeRound([0,this.dims.width]).paddingInner(r).domain(this.groupDomain)}getYScale(){const r=Ga().range([this.dims.height,0]).domain(this.valueDomain);return this.roundDomains?r.nice():r}groupTransform(r){return`translate(${this.xScale(r.name)}, 0)`}onClick(r,i){i&&(r.series=i.name),this.select.emit(r)}setColors(){let r;r=this.schemeType===Cn.Ordinal?this.innerDomain:this.valueDomain,this.colors=new Lr(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===Cn.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,i,b=!1){const R=Object.assign({},r);i&&(R.series=i.name);const Y=this.results.map(me=>me.series).flat().filter(me=>b?me.label===R.name:me.name===R.name&&me.series===R.series);this.activeEntries=[...Y],this.activate.emit({value:R,entries:this.activeEntries})}onDeactivate(r,i,b=!1){const R=Object.assign({},r);i&&(R.series=i.name),this.activeEntries=this.activeEntries.filter(Y=>b?Y.label!==R.name:!(Y.name===R.name&&Y.series===R.series)),this.deactivate.emit({value:R,entries:this.activeEntries})}}v2.\u0275fac=function(){let f;return function(i){return(f||(f=e.n5z(v2)))(i||v2)}}(),v2.\u0275cmp=e.Xpm({type:v2,selectors:[["ngx-charts-bar-vertical-normalized"]],contentQueries:function(r,i,b){if(1&r&&e.Suo(b,Ir,5),2&r){let R;e.iGM(R=e.CRH())&&(i.tooltipTemplate=R.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",noBarWhenZero:"noBarWhenZero"},outputs:{activate:"activate",deactivate:"deactivate"},features:[e.qOj],decls:6,vars:13,consts:[[3,"view","showLegend","legendOptions","activeEntries","animations","legendLabelActivate","legendLabelDeactivate","legendLabelClick"],[1,"bar-chart","chart"],["ngx-charts-x-axis","",3,"xScale","dims","showLabel","labelText","trimTicks","rotateTicks","maxTickLength","tickFormatting","ticks","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","dimensionsChanged"],["ngx-charts-y-axis","",3,"yScale","dims","showGridLines","showLabel","labelText","trimTicks","maxTickLength","tickFormatting","ticks","dimensionsChanged"],[4,"ngFor","ngForOf","ngForTrackBy"],["ngx-charts-series-vertical","",3,"type","xScale","yScale","activeEntries","colors","series","dims","gradient","tooltipDisabled","tooltipTemplate","seriesName","animations","noBarWhenZero","select","activate","deactivate"]],template:function(r,i){1&r&&(e.TgZ(0,"ngx-charts-chart",0),e.NdJ("legendLabelActivate",function(R){return i.onActivate(R,void 0,!0)})("legendLabelDeactivate",function(R){return i.onDeactivate(R,void 0,!0)})("legendLabelClick",function(R){return i.onClick(R)}),e.O4$(),e.TgZ(1,"g",1),e.YNc(2,Sf,1,9,"g",2),e.YNc(3,Of,1,9,"g",3),e.YNc(4,Pf,2,2,"g",4),e.YNc(5,a2,2,2,"g",4),e.qZA()()),2&r&&(e.Q6J("view",e.WLB(10,Ya,i.width,i.height))("showLegend",i.legend)("legendOptions",i.legendOptions)("activeEntries",i.activeEntries)("animations",i.animations),e.xp6(1),e.uIk("transform",i.transform),e.xp6(1),e.Q6J("ngIf",i.xAxis),e.xp6(1),e.Q6J("ngIf",i.yAxis),e.xp6(1),e.Q6J("ngIf",!i.isSSR),e.xp6(1),e.Q6J("ngIf",i.isSSR))},dependencies:[Qa,ps,ts,Nc,t.O5,t.sg],styles:[$r],encapsulation:2,data:{animation:[(0,u.X$)("animationState",[(0,u.eR)(":leave",[(0,u.oB)({opacity:1,transform:"*"}),(0,u.jt)(500,(0,u.oB)({opacity:0,transform:"scale(0)"}))])])]},changeDetection:0});class Rd extends ja{constructor(){super(...arguments),this.legend=!1,this.legendTitle="Legend",this.legendPosition=hr.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.showDataLabel=!1,this.noBarWhenZero=!0,this.activate=new e.vpe,this.deactivate=new e.vpe,this.margin=[10,20,10,20],this.xAxisHeight=0,this.yAxisWidth=0,this.dataLabelMaxHeight={negative:0,positive:0},this.isSSR=!1,this.barChartType=pr,this.trackBy=(r,i)=>i.name}ngOnInit(){(0,t.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=fr({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.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})`}getGroupDomain(){const r=[];for(const i of this.results)r.includes(i.label)||r.push(i.label);return r}getInnerDomain(){const r=[];for(const i of this.results)for(const b of i.series)r.includes(b.label)||r.push(b.label);return r}getValueDomain(){const r=[];let i=0,b=0;for(const me of this.results){let Pe=0,lt=0;for(const gt of me.series)gt.value<0?Pe+=gt.value:lt+=gt.value,i=gt.value<i?gt.value:i,b=gt.value>b?gt.value:b;r.push(Pe),r.push(lt)}r.push(i),r.push(b);return[Math.min(0,...r),this.yScaleMax?Math.max(this.yScaleMax,...r):Math.max(...r)]}getXScale(){const r=this.groupDomain.length/(this.dims.width/this.barPadding+1);return qr().rangeRound([0,this.dims.width]).paddingInner(r).domain(this.groupDomain)}getYScale(){const r=Ga().range([this.dims.height,0]).domain(this.valueDomain);return this.roundDomains?r.nice():r}onDataLabelMaxHeightChanged(r,i){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),i===this.results.length-1&&setTimeout(()=>this.update())}groupTransform(r){return`translate(${this.xScale(r.name)||0}, 0)`}onClick(r,i){i&&(r.series=i.name),this.select.emit(r)}setColors(){let r;r=this.schemeType===Cn.Ordinal?this.innerDomain:this.valueDomain,this.colors=new Lr(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===Cn.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,i,b=!1){const R=Object.assign({},r);i&&(R.series=i.name);const Y=this.results.map(me=>me.series).flat().filter(me=>b?me.label===R.name:me.name===R.name&&me.series===R.series);this.activeEntries=[...Y],this.activate.emit({value:R,entries:this.activeEntries})}onDeactivate(r,i,b=!1){const R=Object.assign({},r);i&&(R.series=i.name),this.activeEntries=this.activeEntries.filter(Y=>b?Y.label!==R.name:!(Y.name===R.name&&Y.series===R.series)),this.deactivate.emit({value:R,entries:this.activeEntries})}}Rd.\u0275fac=function(){let f;return function(i){return(f||(f=e.n5z(Rd)))(i||Rd)}}(),Rd.\u0275cmp=e.Xpm({type:Rd,selectors:[["ngx-charts-bar-vertical-stacked"]],contentQueries:function(r,i,b){if(1&r&&e.Suo(b,Ir,5),2&r){let R;e.iGM(R=e.CRH())&&(i.tooltipTemplate=R.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",yScaleMax:"yScaleMax",showDataLabel:"showDataLabel",dataLabelFormatting:"dataLabelFormatting",noBarWhenZero:"noBarWhenZero"},outputs:{activate:"activate",deactivate:"deactivate"},features:[e.qOj],decls:6,vars:13,consts:[[3,"view","showLegend","legendOptions","activeEntries","animations","legendLabelActivate","legendLabelDeactivate","legendLabelClick"],[1,"bar-chart","chart"],["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"],[4,"ngFor","ngForOf","ngForTrackBy"],["ngx-charts-series-vertical","",3,"type","xScale","yScale","activeEntries","colors","series","dims","gradient","tooltipDisabled","tooltipTemplate","showDataLabel","dataLabelFormatting","seriesName","animations","noBarWhenZero","select","activate","deactivate","dataLabelHeightChanged"]],template:function(r,i){1&r&&(e.TgZ(0,"ngx-charts-chart",0),e.NdJ("legendLabelActivate",function(R){return i.onActivate(R,void 0,!0)})("legendLabelDeactivate",function(R){return i.onDeactivate(R,void 0,!0)})("legendLabelClick",function(R){return i.onClick(R)}),e.O4$(),e.TgZ(1,"g",1),e.YNc(2,h6,1,10,"g",2),e.YNc(3,J0,1,9,"g",3),e.YNc(4,p6,2,2,"g",4),e.qZA(),e.YNc(5,_6,2,2,"g",4),e.qZA()),2&r&&(e.Q6J("view",e.WLB(10,Ya,i.width,i.height))("showLegend",i.legend)("legendOptions",i.legendOptions)("activeEntries",i.activeEntries)("animations",i.animations),e.xp6(1),e.uIk("transform",i.transform),e.xp6(1),e.Q6J("ngIf",i.xAxis),e.xp6(1),e.Q6J("ngIf",i.yAxis),e.xp6(1),e.Q6J("ngIf",!i.isSSR),e.xp6(1),e.Q6J("ngIf",i.isSSR))},dependencies:[Qa,ps,ts,Nc,t.O5,t.sg],styles:[$r],encapsulation:2,data:{animation:[(0,u.X$)("animationState",[(0,u.eR)(":leave",[(0,u.oB)({opacity:1,transform:"*"}),(0,u.jt)(500,(0,u.oB)({opacity:0,transform:"scale(0)"}))])])]},changeDetection:0});class y2{}y2.\u0275fac=function(r){return new(r||y2)},y2.\u0275mod=e.oAB({type:y2}),y2.\u0275inj=e.cJS({imports:[[Ds]]});class Bd{constructor(r,i){this.cd=i,this.roundEdges=!0,this.gradient=!1,this.offset=0,this.isActive=!1,this.animations=!0,this.noBarWhenZero=!0,this.select=new e.vpe,this.activate=new e.vpe,this.deactivate=new e.vpe,this.BarOrientation=Fa,this.initialized=!1,this.hasGradient=!1,this.hideBar=!1,this.nativeElm=r.nativeElement}ngOnChanges(r){this.initialized?this.update():(this.loadAnimation(),this.initialized=!0)}update(){this.boxStrokeWidth=Math.max(this.strokeWidth,1),this.whiskerStrokeWidth=Math.max(this.strokeWidth/2,1),this.medianLineWidth=1.5*this.strokeWidth,this.gradientId="grad"+Ys().toString(),this.gradientFill=`url(#${this.gradientId})`,this.gradient?(this.gradientStops=this.getGradient(),this.hasGradient=!0):this.hasGradient=!1,this.updateLineEl(),this.updatePathEl(),this.checkToHideBar(),this.maskLineId="mask"+Ys().toString(),this.maskLine=`url(#${this.maskLineId})`,this.cd&&this.cd.markForCheck()}loadAnimation(){this.boxPath=this.oldPath=this.getStartingPath(),this.oldLineCoordinates=this.getStartingLineCoordinates(),setTimeout(this.update.bind(this),100)}updatePathEl(){const r=Ln(this.nativeElm).selectAll(".bar"),i=this.getPath();this.animations?r.attr("d",this.oldPath).transition().ease(nl).duration(500).attrTween("d",this.pathTween(i,4)):r.attr("d",i),this.oldPath=i}updateLineEl(){const r=Ln(this.nativeElm).selectAll(".bar-line"),i=this.lineCoordinates,b=this.oldLineCoordinates;this.animations?r.attr("x1",(R,Y)=>b[Y].v1.x).attr("y1",(R,Y)=>b[Y].v1.y).attr("x2",(R,Y)=>b[Y].v2.x).attr("y2",(R,Y)=>b[Y].v2.y).transition().ease(nl).duration(500).attr("x1",(R,Y)=>i[Y].v1.x).attr("y1",(R,Y)=>i[Y].v1.y).attr("x2",(R,Y)=>i[Y].v2.x).attr("y2",(R,Y)=>i[Y].v2.y):r.attr("x1",(R,Y)=>i[Y].v1.x).attr("y1",(R,Y)=>i[Y].v1.y).attr("x2",(R,Y)=>i[Y].v2.x).attr("y2",(R,Y)=>i[Y].v2.y),this.oldLineCoordinates=[...i]}lineTween(r,i,b,R){return R[b][r].baseVal.value}pathTween(r,i){return function(){const b=this,R=this.cloneNode();R.setAttribute("d",r);const Y=b?.getTotalLength(),me=R?.getTotalLength(),Pe=[0];let lt=0;const gt=i/Math.max(Y,me);for(;lt<1;)Pe.push(lt),lt+=gt;Pe.push(1);const Et=Pe.map(Zt=>{const St=b.getPointAtLength(Zt*Y),vn=R.getPointAtLength(Zt*me);return xt([St.x,St.y],[vn.x,vn.y])});return Zt=>Zt<1?"M"+Et.map(St=>St(Zt)).join("L"):r}}getStartingPath(){if(!this.animations)return this.getPath();const r=this.roundEdges?1:0,{x:i,y:b}=this.lineCoordinates[2].v1;return ol(i-this.width,b-1,this.width,2,r,this.edges)}getPath(){const r=this.getRadius();let i="";return i=ol(this.x,this.y,this.width,this.height,Math.min(this.height,r),this.edges),i}getStartingLineCoordinates(){if(!this.animations)return[...this.lineCoordinates];const r=K3(this.lineCoordinates);return r[1].v1.y=r[1].v2.y=r[3].v1.y=r[3].v2.y=r[0].v1.y=r[0].v2.y=r[2].v1.y,r}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}getGradient(){return[{offset:0,color:this.fill,opacity:this.getStartOpacity()},{offset:100,color:this.fill,opacity:1}]}getStartOpacity(){return this.roundEdges?.2:.5}get edges(){let r=[!1,!1,!1,!1];return this.roundEdges&&(r=[!0,!0,!0,!0]),r}onMouseEnter(){this.activate.emit(this.data)}onMouseLeave(){this.deactivate.emit(this.data)}checkToHideBar(){this.hideBar=this.noBarWhenZero&&0===this.height}}Bd.\u0275fac=function(r){return new(r||Bd)(e.Y36(e.SBq),e.Y36(e.sBO))},Bd.\u0275cmp=e.Xpm({type:Bd,selectors:[["g","ngx-charts-box",""]],hostBindings:function(r,i){1&r&&e.NdJ("mouseenter",function(){return i.onMouseEnter()})("mouseleave",function(){return i.onMouseLeave()})},inputs:{strokeColor:"strokeColor",strokeWidth:"strokeWidth",fill:"fill",data:"data",width:"width",height:"height",x:"x",y:"y",lineCoordinates:"lineCoordinates",roundEdges:"roundEdges",gradient:"gradient",gradientStops:"gradientStops",offset:"offset",isActive:"isActive",animations:"animations",ariaLabel:"ariaLabel",noBarWhenZero:"noBarWhenZero"},outputs:{select:"select",activate:"activate",deactivate:"deactivate"},features:[e.TTD],attrs:["ngx-charts-box",""],decls:9,vars:13,consts:[["ngx-charts-svg-linear-gradient","",3,"orientation","name","stops",4,"ngIf"],["height","100%","width","100%","fill","white","fill-opacity","1"],["fill","black","fill-opacity","1",1,"bar"],["role","img","tabIndex","-1",1,"bar",3,"click"],["class","bar-line","fill","none",3,"hidden",4,"ngFor","ngForOf"],["ngx-charts-svg-linear-gradient","",3,"orientation","name","stops"],["fill","none",1,"bar-line"]],template:function(r,i){1&r&&(e.O4$(),e.TgZ(0,"defs"),e.YNc(1,$0,1,3,"g",0),e.TgZ(2,"mask")(3,"g"),e._UZ(4,"rect",1)(5,"path",2),e.qZA()()(),e.TgZ(6,"g")(7,"path",3),e.NdJ("click",function(){return i.select.emit(i.data)}),e.qZA(),e.YNc(8,Ws,1,9,"line",4),e.qZA()),2&r&&(e.xp6(1),e.Q6J("ngIf",i.hasGradient),e.xp6(1),e.uIk("id",i.maskLineId),e.xp6(3),e.uIk("d",i.boxPath),e.xp6(2),e.ekj("active",i.isActive)("hidden",i.hideBar),e.uIk("d",i.boxPath)("stroke",i.strokeColor)("stroke-width",i.boxStrokeWidth)("aria-label",i.ariaLabel)("fill",i.hasGradient?i.gradientFill:i.fill),e.xp6(1),e.Q6J("ngForOf",i.lineCoordinates))},dependencies:[ll,t.O5,t.sg],encapsulation:2,changeDetection:0});class su{constructor(){this.animations=!0,this.tooltipDisabled=!1,this.gradient=!1,this.select=new e.vpe,this.activate=new e.vpe,this.deactivate=new e.vpe}ngOnChanges(r){this.update()}onClick(r){this.select.emit(r)}update(){this.updateTooltipSettings();const r=this.series&&this.series.series.length?Math.round(this.xScale.bandwidth()):null,i=this.series.name;this.counts=this.series.series;const b=this.counts.map(Et=>Number(Et.value));this.whiskers=[Q1(b),r1(b)];const R=this.counts.map(Et=>Et.value).sort((Et,Zt)=>Number(Et)-Number(Zt));this.quartiles=this.getBoxQuantiles(R),this.lineCoordinates=this.getLinesCoordinates(i.toString(),this.whiskers,this.quartiles,r);const Y=this.quartiles[1],me=Ur(i),Pe={value:Y,data:this.counts,label:i,formattedLabel:me,width:r,height:0,x:0,y:0,roundEdges:this.roundEdges,quartiles:this.quartiles,lineCoordinates:this.lineCoordinates};Pe.height=Math.abs(this.yScale(this.quartiles[0])-this.yScale(this.quartiles[2])),Pe.x=this.xScale(i.toString()),Pe.y=this.yScale(this.quartiles[2]),Pe.ariaLabel=me+" - Median: "+Y.toLocaleString(),this.colors.scaleType===Cn.Ordinal?Pe.color=this.colors.getColor(i):(Pe.color=this.colors.getColor(this.quartiles[1]),Pe.gradientStops=this.colors.getLinearGradientStops(this.quartiles[0],this.quartiles[2]));const gt=`\n <span class="tooltip-label">${fs(me)}</span>\n <span class="tooltip-val">\n \u2022 Q1: ${this.quartiles[0]} \u2022 Q2: ${this.quartiles[1]} \u2022 Q3: ${this.quartiles[2]}<br>\n \u2022 Min: ${this.whiskers[0]} \u2022 Max: ${this.whiskers[1]}\n </span>`;Pe.tooltipText=this.tooltipDisabled?void 0:gt,this.tooltipTitle=this.tooltipDisabled?void 0:Pe.tooltipText,this.box=Pe}getBoxQuantiles(r){return[R0(r,.25),R0(r,.5),R0(r,.75)]}getLinesCoordinates(r,i,b,R){const me=this.xScale(r)+R/2,Pe=Math.max(R+4*this.strokeWidth,1),lt=Math.max(R/3,1),gt=this.yScale(i[0]),Et=this.yScale(i[1]),Zt=this.yScale(b[1]);return[{v1:{x:me,y:gt},v2:{x:me,y:Et}},{v1:{x:me+lt/2,y:gt},v2:{x:me-lt/2,y:gt}},{v1:{x:me+Pe/2,y:Zt},v2:{x:me-Pe/2,y:Zt}},{v1:{x:me+lt/2,y:Et},v2:{x:me-lt/2,y:Et}}]}updateTooltipSettings(){this.tooltipDisabled?(this.tooltipPlacement=void 0,this.tooltipType=void 0):(this.tooltipPlacement||(this.tooltipPlacement=Ri.Top),this.tooltipType||(this.tooltipType=Zs.tooltip))}}su.\u0275fac=function(r){return new(r||su)},su.\u0275cmp=e.Xpm({type:su,selectors:[["g","ngx-charts-box-series",""]],inputs:{dims:"dims",series:"series",xScale:"xScale",yScale:"yScale",colors:"colors",animations:"animations",strokeColor:"strokeColor",strokeWidth:"strokeWidth",tooltipDisabled:"tooltipDisabled",tooltipTemplate:"tooltipTemplate",tooltipPlacement:"tooltipPlacement",tooltipType:"tooltipType",roundEdges:"roundEdges",gradient:"gradient"},outputs:{select:"select",activate:"activate",deactivate:"deactivate"},features:[e.TTD],attrs:["ngx-charts-box-series",""],decls:1,vars:22,consts:[["ngx-charts-box","","ngx-tooltip","",3,"width","height","x","y","roundEdges","fill","gradientStops","strokeColor","strokeWidth","data","lineCoordinates","gradient","ariaLabel","tooltipDisabled","tooltipPlacement","tooltipType","tooltipTitle","tooltipTemplate","tooltipContext","animations","select","activate","deactivate"]],template:function(r,i){1&r&&(e.O4$(),e.TgZ(0,"g",0),e.NdJ("select",function(R){return i.onClick(R)})("activate",function(R){return i.activate.emit(R)})("deactivate",function(R){return i.deactivate.emit(R)}),e.qZA()),2&r&&e.Q6J("@animationState","active")("@.disabled",!i.animations)("width",i.box.width)("height",i.box.height)("x",i.box.x)("y",i.box.y)("roundEdges",i.box.roundEdges)("fill",i.box.color)("gradientStops",i.box.gradientStops)("strokeColor",i.strokeColor)("strokeWidth",i.strokeWidth)("data",i.box.data)("lineCoordinates",i.box.lineCoordinates)("gradient",i.gradient)("ariaLabel",i.box.ariaLabel)("tooltipDisabled",i.tooltipDisabled)("tooltipPlacement",i.tooltipPlacement)("tooltipType",i.tooltipType)("tooltipTitle",i.tooltipTitle)("tooltipTemplate",i.tooltipTemplate)("tooltipContext",i.box.data)("animations",i.animations)},dependencies:[Bd,ho],encapsulation:2,data:{animation:[(0,u.X$)("animationState",[(0,u.eR)(":leave",[(0,u.oB)({opacity:1}),(0,u.jt)(500,(0,u.oB)({opacity:0}))])])]},changeDetection:0});class nc extends ja{constructor(){super(...arguments),this.legend=!1,this.legendPosition=hr.Right,this.legendTitle="Legend",this.showGridLines=!0,this.xAxis=!0,this.yAxis=!0,this.showXAxisLabel=!0,this.showYAxisLabel=!0,this.roundDomains=!1,this.roundEdges=!0,this.strokeColor="#FFFFFF",this.strokeWidth=2,this.tooltipDisabled=!1,this.select=new e.vpe,this.activate=new e.vpe,this.deactivate=new e.vpe,this.margin=[10,20,10,20],this.xAxisHeight=0,this.yAxisWidth=0}trackBy(r,i){return i.name}update(){super.update(),this.dims=fr({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,legendPosition:this.legendPosition}),this.xDomain=this.getXDomain(),this.yDomain=this.getYDomain(),this.seriesDomain=this.getSeriesDomain(),this.setScales(),this.setColors(),this.legendOptions=this.getLegendOptions(),this.transform=`translate(${this.dims.xOffset} , ${this.margin[0]})`}setColors(){let r=[];r=this.schemeType===Cn.Ordinal?this.seriesDomain:this.yDomain,this.colors=new Lr(this.scheme,this.schemeType,r,this.customColors)}setScales(){this.xScale=this.getXScale(this.xDomain,this.dims.width),this.yScale=this.getYScale(this.yDomain,this.dims.height)}getXScale(r,i){return qr().domain(r.map(R=>R.toString())).rangeRound([0,i]).padding(.5)}getYScale(r,i){const b=Ga().domain(r).range([i,0]);return this.roundDomains?b.nice():b}getUniqueBoxChartXDomainValues(r){const i=new Set;for(const b of r)i.add(b.name);return Array.from(i)}getXDomain(){let r=[];const i=this.getUniqueBoxChartXDomainValues(this.results);let b,R;if("string"==typeof i[0])r=i.map(Y=>Y.toString());else if("number"==typeof i[0]){const Y=i.map(me=>Number(me));b=Math.min(...Y),R=Math.max(...Y),r=[b,R]}else{const Y=i.map(me=>Number(new Date(me)));b=Math.min(...Y),R=Math.max(...Y),r=[new Date(b),new Date(R)]}return r}getYDomain(){const r=[];for(const me of this.results)for(const Pe of me.series)r.indexOf(Pe.value)<0&&r.push(Pe.value);const b=[...r].map(me=>Number(me));return[Math.min(...b),Math.max(...b)]}getSeriesDomain(){return this.results.map(r=>`${r.name}`)}updateYAxisWidth({width:r}){this.yAxisWidth=r,this.update()}updateXAxisHeight({height:r}){this.xAxisHeight=r,this.update()}onClick(r){this.select.emit(r)}onActivate(r){this.activate.emit(r)}onDeactivate(r){this.deactivate.emit(r)}getLegendOptions(){const r={scaleType:this.schemeType,colors:this.colors,domain:[],position:this.legendPosition,title:this.legendTitle};return this.schemeType===Cn.Ordinal?(r.domain=this.xDomain,r.colors=this.colors):(r.domain=this.yDomain,r.colors=this.colors.scale),r}}nc.\u0275fac=function(){let f;return function(i){return(f||(f=e.n5z(nc)))(i||nc)}}(),nc.\u0275cmp=e.Xpm({type:nc,selectors:[["ngx-charts-box-chart"]],contentQueries:function(r,i,b){if(1&r&&e.Suo(b,Ir,5),2&r){let R;e.iGM(R=e.CRH())&&(i.tooltipTemplate=R.first)}},inputs:{legend:"legend",legendPosition:"legendPosition",legendTitle:"legendTitle",legendOptionsConfig:"legendOptionsConfig",showGridLines:"showGridLines",xAxis:"xAxis",yAxis:"yAxis",showXAxisLabel:"showXAxisLabel",showYAxisLabel:"showYAxisLabel",roundDomains:"roundDomains",xAxisLabel:"xAxisLabel",yAxisLabel:"yAxisLabel",roundEdges:"roundEdges",strokeColor:"strokeColor",strokeWidth:"strokeWidth",tooltipDisabled:"tooltipDisabled",gradient:"gradient"},outputs:{select:"select",activate:"activate",deactivate:"deactivate"},features:[e.qOj],decls:6,vars:21,consts:[[3,"view","showLegend","legendOptions","animations","legendLabelClick","legendLabelActivate","legendLabelDeactivate"],[1,"box-chart","chart"],["ngx-charts-x-axis","",3,"showGridLines","dims","xScale","showLabel","labelText","dimensionsChanged"],["ngx-charts-y-axis","",3,"showGridLines","dims","yScale","showLabel","labelText","dimensionsChanged"],[4,"ngFor","ngForOf","ngForTrackBy"],["ngx-charts-box-series","",3,"xScale","yScale","colors","roundEdges","strokeColor","strokeWidth","tooltipDisabled","tooltipTemplate","series","dims","animations","gradient","activate","deactivate","select"]],template:function(r,i){1&r&&(e.TgZ(0,"ngx-charts-chart",0),e.NdJ("legendLabelClick",function(R){return i.onClick(R)})("legendLabelActivate",function(R){return i.onActivate(R)})("legendLabelDeactivate",function(R){return i.onDeactivate(R)}),e.O4$(),e.TgZ(1,"g",1)(2,"g",2),e.NdJ("dimensionsChanged",function(R){return i.updateXAxisHeight(R)}),e.qZA(),e.TgZ(3,"g",3),e.NdJ("dimensionsChanged",function(R){return i.updateYAxisWidth(R)}),e.qZA()(),e.TgZ(4,"g"),e.YNc(5,Hh,2,12,"g",4),e.qZA()()),2&r&&(e.Q6J("view",e.WLB(18,Ya,i.width,i.height))("showLegend",i.legend)("legendOptions",i.legendOptions)("animations",i.animations),e.xp6(1),e.uIk("transform",i.transform),e.xp6(1),e.Q6J("showGridLines",i.showGridLines)("dims",i.dims)("xScale",i.xScale)("showLabel",i.showXAxisLabel)("labelText",i.xAxisLabel),e.xp6(1),e.Q6J("showGridLines",i.showGridLines)("dims",i.dims)("yScale",i.yScale)("showLabel",i.showYAxisLabel)("labelText",i.yAxisLabel),e.xp6(1),e.uIk("transform",i.transform),e.xp6(1),e.Q6J("ngForOf",i.results)("ngForTrackBy",i.trackBy))},dependencies:[Qa,ps,ts,su,t.sg],styles:[$r],encapsulation:2,changeDetection:0});class Nd{}function fp(f,r,i,b,R){let Y=[];if(r===Cn.Linear&&(f=f.map(me=>Number(me)),i||f.push(0)),r===Cn.Time||r===Cn.Linear){Y=[b||Math.min(...f),R||Math.max(...f)]}else Y=f;return Y}function k4(f,r,i,b){switch(i){case Cn.Time:return Ql().range(r).domain(f);case Cn.Linear:{const R=Ga().range(r).domain(f);return b?R.nice():R}case Cn.Ordinal:return er().range([r[0],r[1]]).domain(f.map(R=>R.toString()));default:return}}Nd.\u0275fac=function(r){return new(r||Nd)},Nd.\u0275mod=e.oAB({type:Nd}),Nd.\u0275inj=e.cJS({imports:[[Ds]]});class D1{constructor(r){this.platformId=r,this.tooltipDisabled=!1,this.select=new e.vpe,this.activate=new e.vpe,this.deactivate=new e.vpe,this.placementTypes=Ri,this.styleTypes=Zs,this.isSSR=!1}ngOnInit(){(0,t.PM)(this.platformId)&&(this.isSSR=!0)}ngOnChanges(r){this.update()}update(){this.circles=this.getCircles()}getCircles(){const r=this.data.name;return this.data.series.map((i,b)=>{if(typeof i.y<"u"&&typeof i.x<"u"){const R=i.y,Y=i.x,me=i.r,Pe=this.rScale(me||1),lt=Ur(i.name),gt=this.xScaleType===Cn.Linear?this.xScale(Number(Y)):this.xScale(Y),Et=this.yScaleType===Cn.Linear?this.yScale(Number(R)):this.yScale(R),Zt=this.colors.scaleType===Cn.Linear?this.colors.getColor(me):this.colors.getColor(r),St=!this.activeEntries.length||this.isActive({name:r}),vn=St?1:.3;return{data:Object.assign({},i,{series:r,name:i.name,value:i.y,x:i.x,radius:i.r}),x:Y,y:R,r:me,classNames:[`circle-data-${b}`],value:R,label:Y,cx:gt,cy:Et,radius:Pe,tooltipLabel:lt,color:Zt,opacity:vn,seriesName:r,isActive:St,transform:`translate(${gt},${Et})`}}}).filter(i=>void 0!==i)}getTooltipText(r){const i=typeof r.r<"u",b=r.tooltipLabel&&r.tooltipLabel.length,R=r.seriesName&&r.seriesName.length,Y=i?Ur(r.r):"",me=this.xAxisLabel&&""!==this.xAxisLabel?`${this.xAxisLabel}:`:"",Pe=this.yAxisLabel&&""!==this.yAxisLabel?`${this.yAxisLabel}:`:"",lt=Ur(r.x),gt=Ur(r.y),Et=R&&b?`${r.seriesName} \u2022 ${r.tooltipLabel}`:r.seriesName+r.tooltipLabel;return`\n ${R||b?`<span class="tooltip-label">${fs(Et)}</span>`:""}\n <span class="tooltip-label">\n <label>${fs(me)}</label> ${fs(lt)}<br />\n <label>${fs(Pe)}</label> ${fs(gt)}\n </span>\n <span class="tooltip-val">\n ${fs(Y)}\n </span>\n `}onClick(r){this.select.emit(r)}isActive(r){return!!this.activeEntries&&void 0!==this.activeEntries.find(b=>r.name===b.name)}isVisible(r){return this.activeEntries.length>0?this.isActive({name:r.seriesName}):0!==r.opacity}activateCircle(r){r.barVisible=!0,this.activate.emit({name:this.data.name})}deactivateCircle(r){r.barVisible=!1,this.deactivate.emit({name:this.data.name})}trackBy(r,i){return`${i.data.series} ${i.data.name}`}}D1.\u0275fac=function(r){return new(r||D1)(e.Y36(e.Lbi))},D1.\u0275cmp=e.Xpm({type:D1,selectors:[["g","ngx-charts-bubble-series",""]],inputs:{data:"data",xScale:"xScale",yScale:"yScale",rScale:"rScale",xScaleType:"xScaleType",yScaleType:"yScaleType",colors:"colors",visibleValue:"visibleValue",activeEntries:"activeEntries",xAxisLabel:"xAxisLabel",yAxisLabel:"yAxisLabel",tooltipDisabled:"tooltipDisabled",tooltipTemplate:"tooltipTemplate"},outputs:{select:"select",activate:"activate",deactivate:"deactivate"},features:[e.TTD],attrs:["ngx-charts-bubble-series",""],decls:1,vars:2,consts:[[4,"ngFor","ngForOf","ngForTrackBy"],["ngx-charts-circle","","class","circle","ngx-tooltip","",3,"cx","cy","r","fill","opacity","active","pointerEvents","data","classNames","tooltipDisabled","tooltipPlacement","tooltipType","tooltipTitle","tooltipTemplate","tooltipContext","select","activate","deactivate",4,"ngIf"],["ngx-charts-circle","","ngx-tooltip","",1,"circle",3,"cx","cy","r","fill","pointerEvents","data","classNames","tooltipDisabled","tooltipPlacement","tooltipType","tooltipTitle","tooltipTemplate","tooltipContext","select","activate","deactivate"]],template:function(r,i){1&r&&e.YNc(0,bd,4,3,"g",0),2&r&&e.Q6J("ngForOf",i.circles)("ngForTrackBy",i.trackBy)},dependencies:[C1,t.sg,t.O5,ho],encapsulation:2,data:{animation:[(0,u.X$)("animationState",[(0,u.eR)(":enter",[(0,u.oB)({opacity:0,transform:"scale(0)"}),(0,u.jt)(250,(0,u.oB)({opacity:1,transform:"scale(1)"}))])])]},changeDetection:0});class b2 extends ja{constructor(){super(...arguments),this.showGridLines=!0,this.legend=!1,this.legendTitle="Legend",this.legendPosition=hr.Right,this.xAxis=!0,this.yAxis=!0,this.trimXAxisTicks=!0,this.trimYAxisTicks=!0,this.rotateXAxisTicks=!0,this.maxXAxisTickLength=16,this.maxYAxisTickLength=16,this.roundDomains=!1,this.maxRadius=10,this.minRadius=3,this.schemeType=Cn.Ordinal,this.tooltipDisabled=!1,this.activate=new e.vpe,this.deactivate=new e.vpe,this.scaleType=Cn.Linear,this.margin=[10,20,10,20],this.bubblePadding=[0,0,0,0],this.xAxisHeight=0,this.yAxisWidth=0,this.activeEntries=[],this.isSSR=!1}ngOnInit(){(0,t.PM)(this.platformId)&&(this.isSSR=!0)}update(){super.update(),this.dims=fr({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.seriesDomain=this.results.map(i=>i.name),this.rDomain=this.getRDomain(),this.xDomain=this.getXDomain(),this.yDomain=this.getYDomain(),this.transform=`translate(${this.dims.xOffset},${this.margin[0]})`;const r=this.schemeType===Cn.Ordinal?this.seriesDomain:this.rDomain;this.colors=new Lr(this.scheme,this.schemeType,r,this.customColors),this.data=this.results,this.minRadius=Math.max(this.minRadius,1),this.maxRadius=Math.max(this.maxRadius,1),this.rScale=this.getRScale(this.rDomain,[this.minRadius,this.maxRadius]),this.bubblePadding=[0,0,0,0],this.setScales(),this.bubblePadding=this.getBubblePadding(),this.setScales(),this.legendOptions=this.getLegendOptions(),this.clipPathId="clip"+Ys().toString(),this.clipPath=`url(#${this.clipPathId})`}hideCircles(){this.deactivateAll()}onClick(r,i){i&&(r.series=i.name),this.select.emit(r)}getBubblePadding(){let r=0,i=0,b=this.dims.height,R=this.dims.width;for(const Y of this.data)for(const me of Y.series){const Pe=this.rScale(me.r),lt=this.xScaleType===Cn.Linear?this.xScale(Number(me.x)):this.xScale(me.x),gt=this.yScaleType===Cn.Linear?this.yScale(Number(me.y)):this.yScale(me.y);i=Math.max(Pe-lt,i),r=Math.max(Pe-gt,r),b=Math.max(gt+Pe,b),R=Math.max(lt+Pe,R)}return R=Math.max(R-this.dims.width,0),b=Math.max(b-this.dims.height,0),[r,R,b,i]}setScales(){let r=this.dims.width;void 0===this.xScaleMin&&void 0===this.xScaleMax&&(r-=this.bubblePadding[1]);let i=this.dims.height;void 0===this.yScaleMin&&void 0===this.yScaleMax&&(i-=this.bubblePadding[2]),this.xScale=this.getXScale(this.xDomain,r),this.yScale=this.getYScale(this.yDomain,i)}getYScale(r,i){return k4(r,[i,this.bubblePadding[0]],this.yScaleType,this.roundDomains)}getXScale(r,i){return k4(r,[this.bubblePadding[3],i],this.xScaleType,this.roundDomains)}getRScale(r,i){const b=Ga().range(i).domain(r);return this.roundDomains?b.nice():b}getLegendOptions(){const r={scaleType:this.schemeType,colors:void 0,domain:[],position:this.legendPosition,title:void 0};return r.scaleType===Cn.Ordinal?(r.domain=this.seriesDomain,r.colors=this.colors,r.title=this.legendTitle):(r.domain=this.rDomain,r.colors=this.colors.scale),r}getXDomain(){const r=[];for(const i of this.results)for(const b of i.series)r.includes(b.x)||r.push(b.x);return this.xScaleType=Io(r),fp(r,this.xScaleType,this.autoScale,this.xScaleMin,this.xScaleMax)}getYDomain(){const r=[];for(const i of this.results)for(const b of i.series)r.includes(b.y)||r.push(b.y);return this.yScaleType=Io(r),fp(r,this.yScaleType,this.autoScale,this.yScaleMin,this.yScaleMax)}getRDomain(){let r=1/0,i=-1/0;for(const b of this.results)for(const R of b.series){const Y=Number(R.r)||1;r=Math.min(r,Y),i=Math.max(i,Y)}return[r,i]}updateYAxisWidth({width:r}){this.yAxisWidth=r,this.update()}updateXAxisHeight({height:r}){this.xAxisHeight=r,this.update()}onActivate(r){this.activeEntries.findIndex(b=>b.name===r.name)>-1||(this.activeEntries=[r,...this.activeEntries],this.activate.emit({value:r,entries:this.activeEntries}))}onDeactivate(r){const i=this.activeEntries.findIndex(b=>b.name===r.name);this.activeEntries.splice(i,1),this.activeEntries=[...this.activeEntries],this.deactivate.emit({value:r,entries:this.activeEntries})}deactivateAll(){this.activeEntries=[...this.activeEntries];for(const r of this.activeEntries)this.deactivate.emit({value:r,entries:[]});this.activeEntries=[]}trackBy(r,i){return`${i.name}`}}b2.\u0275fac=function(){let f;return function(i){return(f||(f=e.n5z(b2)))(i||b2)}}(),b2.\u0275cmp=e.Xpm({type:b2,selectors:[["ngx-charts-bubble-chart"]],contentQueries:function(r,i,b){if(1&r&&e.Suo(b,Ir,5),2&r){let R;e.iGM(R=e.CRH())&&(i.tooltipTemplate=R.first)}},hostBindings:function(r,i){1&r&&e.NdJ("mouseleave",function(){return i.hideCircles()})},inputs:{showGridLines:"showGridLines",legend:"legend",legendTitle:"legendTitle",legendPosition:"legendPosition",xAxis:"xAxis",yAxis:"yAxis",showXAxisLabel:"showXAxisLabel",showYAxisLabel:"showYAxisLabel",xAxisLabel:"xAxisLabel",yAxisLabel:"yAxisLabel",trimXAxisTicks:"trimXAxisTicks",trimYAxisTicks:"trimYAxisTicks",rotateXAxisTicks:"rotateXAxisTicks",maxXAxisTickLength:"maxXAxisTickLength",maxYAxisTickLength:"maxYAxisTickLength",xAxisTickFormatting:"xAxisTickFormatting",yAxisTickFormatting:"yAxisTickFormatting",xAxisTicks:"xAxisTicks",yAxisTicks:"yAxisTicks",roundDomains:"roundDomains",maxRadius:"maxRadius",minRadius:"minRadius",autoScale:"autoScale",schemeType:"schemeType",tooltipDisabled:"tooltipDisabled",xScaleMin:"xScaleMin",xScaleMax:"xScaleMax",yScaleMin:"yScaleMin",yScaleMax:"yScaleMax"},outputs:{activate:"activate",deactivate:"deactivate"},features:[e.qOj],decls:10,vars:19,consts:[[3,"view","showLegend","activeEntries","legendOptions","animations","legendLabelClick","legendLabelActivate","legendLabelDeactivate"],[1,"bubble-chart","chart"],["ngx-charts-x-axis","",3,"showGridLines","dims","xScale","showLabel","labelText","trimTicks","rotateTicks","maxTickLength","tickFormatting","ticks","dimensionsChanged",4,"ngIf"],["ngx-charts-y-axis","",3,"showGridLines","yScale","dims","showLabel","labelText","trimTicks","maxTickLength","tickFormatting","ticks","dimensionsChanged",4,"ngIf"],["x","0","y","0",1,"bubble-chart-area",2,"fill","rgb(255, 0, 0)","opacity","0","cursor","auto",3,"mouseenter"],[4,"ngIf"],["ngx-charts-x-axis","",3,"showGridLines","dims","xScale","showLabel","labelText","trimTicks","rotateTicks","maxTickLength","tickFormatting","ticks","dimensionsChanged"],["ngx-charts-y-axis","",3,"showGridLines","yScale","dims","showLabel","labelText","trimTicks","maxTickLength","tickFormatting","ticks","dimensionsChanged"],[4,"ngFor","ngForOf","ngForTrackBy"],["ngx-charts-bubble-series","",3,"xScale","yScale","rScale","xScaleType","yScaleType","xAxisLabel","yAxisLabel","colors","data","activeEntries","tooltipDisabled","tooltipTemplate","select","activate","deactivate"]],template:function(r,i){1&r&&(e.TgZ(0,"ngx-charts-chart",0),e.NdJ("legendLabelClick",function(R){return i.onClick(R)})("legendLabelActivate",function(R){return i.onActivate(R)})("legendLabelDeactivate",function(R){return i.onDeactivate(R)}),e.O4$(),e.TgZ(1,"defs")(2,"clipPath"),e._UZ(3,"rect"),e.qZA()(),e.TgZ(4,"g",1),e.YNc(5,xd,1,10,"g",2),e.YNc(6,_1,1,9,"g",3),e.TgZ(7,"rect",4),e.NdJ("mouseenter",function(){return i.deactivateAll()}),e.qZA(),e.YNc(8,Md,2,3,"g",5),e.YNc(9,Dd,2,3,"g",5),e.qZA()()),2&r&&(e.Q6J("view",e.WLB(16,Ya,i.width,i.height))("showLegend",i.legend)("activeEntries",i.activeEntries)("legendOptions",i.legendOptions)("animations",i.animations),e.xp6(2),e.uIk("id",i.clipPathId),e.xp6(1),e.uIk("width",i.dims.width+10)("height",i.dims.height+10)("transform","translate(-5, -5)"),e.xp6(1),e.uIk("transform",i.transform),e.xp6(1),e.Q6J("ngIf",i.xAxis),e.xp6(1),e.Q6J("ngIf",i.yAxis),e.xp6(1),e.uIk("width",i.dims.width)("height",i.dims.height),e.xp6(1),e.Q6J("ngIf",!i.isSSR),e.xp6(1),e.Q6J("ngIf",i.isSSR))},dependencies:[Qa,ps,ts,D1,t.O5,t.sg],styles:[$r],encapsulation:2,data:{animation:[(0,u.X$)("animationState",[(0,u.eR)(":leave",[(0,u.oB)({opacity:1}),(0,u.jt)(500,(0,u.oB)({opacity:0}))])])]},changeDetection:0});class x2{}x2.\u0275fac=function(r){return new(r||x2)},x2.\u0275mod=e.oAB({type:x2}),x2.\u0275inj=e.cJS({imports:[[Ds]]});class C2{constructor(r){this.gradient=!1,this.animations=!0,this.select=new e.vpe,this.activate=new e.vpe,this.deactivate=new e.vpe,this.barOrientation=Fa,this.element=r.nativeElement}ngOnChanges(r){this.transform=`translate(${this.x} , ${this.y})`,this.startOpacity=.3,this.gradientId="grad"+Ys().toString(),this.gradientUrl=`url(#${this.gradientId})`,this.gradientStops=this.getGradientStops(),this.animations&&this.loadAnimation()}getGradientStops(){return[{offset:0,color:this.fill,opacity:this.startOpacity},{offset:100,color:this.fill,opacity:1}]}loadAnimation(){Ln(this.element).select(".cell").attr("opacity",0),this.animateToCurrentForm()}animateToCurrentForm(){Ln(this.element).select(".cell").transition().duration(750).attr("opacity",1)}onClick(){this.select.emit(this.data)}onMouseEnter(){this.activate.emit(this.data)}onMouseLeave(){this.deactivate.emit(this.data)}}C2.\u0275fac=function(r){return new(r||C2)(e.Y36(e.SBq))},C2.\u0275cmp=e.Xpm({type:C2,selectors:[["g","ngx-charts-heat-map-cell",""]],hostBindings:function(r,i){1&r&&e.NdJ("mouseenter",function(){return i.onMouseEnter()})("mouseleave",function(){return i.onMouseLeave()})},inputs:{fill:"fill",x:"x",y:"y",width:"width",height:"height",data:"data",gradient:"gradient",animations:"animations"},outputs:{select:"select",activate:"activate",deactivate:"deactivate"},features:[e.TTD],attrs:["ngx-charts-heat-map-cell",""],decls:3,vars:5,consts:[[1,"cell"],[4,"ngIf"],["rx","3",1,"cell",3,"click"],["ngx-charts-svg-linear-gradient","",3,"orientation","name","stops"]],template:function(r,i){1&r&&(e.O4$(),e.TgZ(0,"g",0),e.YNc(1,kf,2,3,"defs",1),e.TgZ(2,"rect",2),e.NdJ("click",function(){return i.onClick()}),e.qZA()()),2&r&&(e.uIk("transform",i.transform),e.xp6(1),e.Q6J("ngIf",i.gradient),e.xp6(1),e.uIk("fill",i.gradient?i.gradientUrl:i.fill)("width",i.width)("height",i.height))},dependencies:[ll,t.O5],encapsulation:2,changeDetection:0});class ou{constructor(){this.tooltipDisabled=!1,this.animations=!0,this.select=new e.vpe,this.activate=new e.vpe,this.deactivate=new e.vpe,this.placementTypes=Ri,this.styleTypes=Zs}ngOnInit(){this.tooltipText||(this.tooltipText=this.getTooltipText)}ngOnChanges(r){this.update()}update(){this.cells=this.getCells()}getCells(){const r=[];return this.data.map(i=>{i.series.map(b=>{const R=b.value;b.series=i.name,r.push({row:i,cell:b,x:this.xScale(i.name),y:this.yScale(b.name),width:this.xScale.bandwidth(),height:this.yScale.bandwidth(),fill:this.colors.getColor(R),data:R,label:Ur(b.name),series:i.name})})}),r}getTooltipText({label:r,data:i,series:b}){return`\n <span class="tooltip-label">${fs(b)} \u2022 ${fs(r)}</span>\n <span class="tooltip-val">${i.toLocaleString()}</span>\n `}trackBy(r,i){return i.label}onClick(r){this.select.emit(r)}}ou.\u0275fac=function(r){return new(r||ou)},ou.\u0275cmp=e.Xpm({type:ou,selectors:[["g","ngx-charts-heat-map-cell-series",""]],inputs:{data:"data",colors:"colors",xScale:"xScale",yScale:"yScale",gradient:"gradient",tooltipDisabled:"tooltipDisabled",tooltipText:"tooltipText",tooltipTemplate:"tooltipTemplate",animations:"animations"},outputs:{select:"select",activate:"activate",deactivate:"deactivate"},features:[e.TTD],attrs:["ngx-charts-heat-map-cell-series",""],decls:1,vars:2,consts:[["ngx-charts-heat-map-cell","","ngx-tooltip","",3,"x","y","width","height","fill","data","gradient","animations","tooltipDisabled","tooltipPlacement","tooltipType","tooltipTitle","tooltipTemplate","tooltipContext","select","activate","deactivate",4,"ngFor","ngForOf","ngForTrackBy"],["ngx-charts-heat-map-cell","","ngx-tooltip","",3,"x","y","width","height","fill","data","gradient","animations","tooltipDisabled","tooltipPlacement","tooltipType","tooltipTitle","tooltipTemplate","tooltipContext","select","activate","deactivate"]],template:function(r,i){1&r&&e.YNc(0,Bf,1,18,"g",0),2&r&&e.Q6J("ngForOf",i.cells)("ngForTrackBy",i.trackBy)},dependencies:[C2,t.sg,ho],encapsulation:2,changeDetection:0});class Fc extends ja{constructor(){super(...arguments),this.legendTitle="Legend",this.legendPosition=hr.Right,this.innerPadding=8,this.trimXAxisTicks=!0,this.trimYAxisTicks=!0,this.rotateXAxisTicks=!0,this.maxXAxisTickLength=16,this.maxYAxisTickLength=16,this.tooltipDisabled=!1,this.activeEntries=[],this.activate=new e.vpe,this.deactivate=new e.vpe,this.margin=[10,20,10,20],this.xAxisHeight=0,this.yAxisWidth=0,this.scaleType=Cn.Linear}update(){if(super.update(),this.formatDates(),this.xDomain=this.getXDomain(),this.yDomain=this.getYDomain(),this.valueDomain=this.getValueDomain(),this.scaleType=Io(this.valueDomain,!1),this.dims=fr({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.scaleType,legendPosition:this.legendPosition}),this.scaleType===Cn.Linear){let r=this.min,i=this.max;this.min||(r=Math.min(0,...this.valueDomain)),this.max||(i=Math.max(...this.valueDomain)),this.valueDomain=[r,i]}this.xScale=this.getXScale(),this.yScale=this.getYScale(),this.setColors(),this.legendOptions=this.getLegendOptions(),this.transform=`translate(${this.dims.xOffset} , ${this.margin[0]})`,this.rects=this.getRects()}getXDomain(){const r=[];for(const i of this.results)r.includes(i.name)||r.push(i.name);return r}getYDomain(){const r=[];for(const i of this.results)for(const b of i.series)r.includes(b.name)||r.push(b.name);return r}getValueDomain(){const r=[];for(const i of this.results)for(const b of i.series)r.includes(b.value)||r.push(b.value);return r}getDimension(r,i=0,b,R){return"string"==typeof r&&((r=r.replace("[","").replace("]","").replace("px","").replace("'","")).includes(",")&&(r=r.split(","))),Array.isArray(r)&&"number"==typeof i?this.getDimension(r[i],null,b,R):"string"==typeof r&&r.includes("%")?+r.replace("%","")/100:b/(R/+r+1)}getXScale(){const r=this.getDimension(this.innerPadding,0,this.xDomain.length,this.dims.width);return qr().rangeRound([0,this.dims.width]).domain(this.xDomain).paddingInner(r)}getYScale(){const r=this.getDimension(this.innerPadding,1,this.yDomain.length,this.dims.height);return qr().rangeRound([this.dims.height,0]).domain(this.yDomain).paddingInner(r)}getRects(){const r=[];return this.xDomain.map(i=>{this.yDomain.map(b=>{r.push({x:this.xScale(i),y:this.yScale(b),rx:3,width:this.xScale.bandwidth(),height:this.yScale.bandwidth(),fill:"rgba(200,200,200,0.03)"})})}),r}onClick(r){this.select.emit(r)}setColors(){this.colors=new Lr(this.scheme,this.scaleType,this.valueDomain)}getLegendOptions(){return{scaleType:this.scaleType,domain:this.valueDomain,colors:this.scaleType===Cn.Ordinal?this.colors:this.colors.scale,title:this.scaleType===Cn.Ordinal?this.legendTitle:void 0,position:this.legendPosition}}updateYAxisWidth({width:r}){this.yAxisWidth=r,this.update()}updateXAxisHeight({height:r}){this.xAxisHeight=r,this.update()}onActivate(r,i,b=!1){const R=Object.assign({},r);i&&(R.series=i.name);const Y=this.results.map(me=>me.series).flat().filter(me=>b?me.label===R.name:me.name===R.name&&me.series===R.series);this.activeEntries=[...Y],this.activate.emit({value:R,entries:this.activeEntries})}onDeactivate(r,i,b=!1){const R=Object.assign({},r);i&&(R.series=i.name),this.activeEntries=this.activeEntries.filter(Y=>b?Y.label!==R.name:!(Y.name===R.name&&Y.series===R.series)),this.deactivate.emit({value:R,entries:this.activeEntries})}}Fc.\u0275fac=function(){let f;return function(i){return(f||(f=e.n5z(Fc)))(i||Fc)}}(),Fc.\u0275cmp=e.Xpm({type:Fc,selectors:[["ngx-charts-heat-map"]],contentQueries:function(r,i,b){if(1&r&&e.Suo(b,Ir,5),2&r){let R;e.iGM(R=e.CRH())&&(i.tooltipTemplate=R.first)}},inputs:{legend:"legend",legendTitle:"legendTitle",legendPosition:"legendPosition",xAxis:"xAxis",yAxis:"yAxis",showXAxisLabel:"showXAxisLabel",showYAxisLabel:"showYAxisLabel",xAxisLabel:"xAxisLabel",yAxisLabel:"yAxisLabel",gradient:"gradient",innerPadding:"innerPadding",trimXAxisTicks:"trimXAxisTicks",trimYAxisTicks:"trimYAxisTicks",rotateXAxisTicks:"rotateXAxisTicks",maxXAxisTickLength:"maxXAxisTickLength",maxYAxisTickLength:"maxYAxisTickLength",xAxisTickFormatting:"xAxisTickFormatting",yAxisTickFormatting:"yAxisTickFormatting",xAxisTicks:"xAxisTicks",yAxisTicks:"yAxisTicks",tooltipDisabled:"tooltipDisabled",tooltipText:"tooltipText",min:"min",max:"max",activeEntries:"activeEntries"},outputs:{activate:"activate",deactivate:"deactivate"},features:[e.qOj],decls:6,vars:20,consts:[[3,"view","showLegend","animations","legendOptions","legendLabelClick"],[1,"heat-map","chart"],["ngx-charts-x-axis","",3,"xScale","dims","showLabel","labelText","trimTicks","rotateTicks","maxTickLength","tickFormatting","ticks","dimensionsChanged",4,"ngIf"],["ngx-charts-y-axis","",3,"yScale","dims","showLabel","labelText","trimTicks","maxTickLength","tickFormatting","ticks","dimensionsChanged",4,"ngIf"],[4,"ngFor","ngForOf"],["ngx-charts-heat-map-cell-series","",3,"xScale","yScale","colors","data","gradient","animations","tooltipDisabled","tooltipTemplate","tooltipText","select","activate","deactivate"],["ngx-charts-x-axis","",3,"xScale","dims","showLabel","labelText","trimTicks","rotateTicks","maxTickLength","tickFormatting","ticks","dimensionsChanged"],["ngx-charts-y-axis","",3,"yScale","dims","showLabel","labelText","trimTicks","maxTickLength","tickFormatting","ticks","dimensionsChanged"]],template:function(r,i){1&r&&(e.TgZ(0,"ngx-charts-chart",0),e.NdJ("legendLabelClick",function(R){return i.onClick(R)}),e.O4$(),e.TgZ(1,"g",1),e.YNc(2,Nf,1,9,"g",2),e.YNc(3,zh,1,8,"g",3),e.YNc(4,Ff,1,6,"rect",4),e.TgZ(5,"g",5),e.NdJ("select",function(R){return i.onClick(R)})("activate",function(R){return i.onActivate(R,void 0)})("deactivate",function(R){return i.onDeactivate(R,void 0)}),e.qZA()()()),2&r&&(e.Q6J("view",e.WLB(17,Ya,i.width,i.height))("showLegend",i.legend)("animations",i.animations)("legendOptions",i.legendOptions),e.xp6(1),e.uIk("transform",i.transform),e.xp6(1),e.Q6J("ngIf",i.xAxis),e.xp6(1),e.Q6J("ngIf",i.yAxis),e.xp6(1),e.Q6J("ngForOf",i.rects),e.xp6(1),e.Q6J("xScale",i.xScale)("yScale",i.yScale)("colors",i.colors)("data",i.results)("gradient",i.gradient)("animations",i.animations)("tooltipDisabled",i.tooltipDisabled)("tooltipTemplate",i.tooltipTemplate)("tooltipText",i.tooltipText))},dependencies:[Qa,ps,ts,ou,t.O5,t.sg],styles:[$r],encapsulation:2,changeDetection:0});class ic{}ic.\u0275fac=function(r){return new(r||ic)},ic.\u0275mod=e.oAB({type:ic}),ic.\u0275inj=e.cJS({imports:[[Ds]]});class M2{constructor(r,i){this.element=r,this.platformId=i,this.fill="none",this.animations=!0,this.initialized=!1,this.isSSR=!1}ngOnInit(){(0,t.PM)(this.platformId)&&(this.isSSR=!0)}ngOnChanges(r){this.initialized?this.updatePathEl():(this.initialized=!0,this.initialPath=this.path)}updatePathEl(){const r=Ln(this.element.nativeElement).select(".line");this.animations?r.transition().duration(750).attr("d",this.path):r.attr("d",this.path)}}M2.\u0275fac=function(r){return new(r||M2)(e.Y36(e.SBq),e.Y36(e.Lbi))},M2.\u0275cmp=e.Xpm({type:M2,selectors:[["g","ngx-charts-line",""]],inputs:{path:"path",stroke:"stroke",data:"data",fill:"fill",animations:"animations"},features:[e.TTD],attrs:["ngx-charts-line",""],decls:2,vars:2,consts:[[4,"ngIf"],["stroke-width","1.5px",1,"line"]],template:function(r,i){1&r&&(e.YNc(0,zf,2,4,"g",0),e.YNc(1,m6,2,3,"g",0)),2&r&&(e.Q6J("ngIf",!i.isSSR),e.xp6(1),e.Q6J("ngIf",i.isSSR))},dependencies:[t.O5],encapsulation:2,data:{animation:[(0,u.X$)("animationState",[(0,u.eR)(":enter",[(0,u.oB)({strokeDasharray:2e3,strokeDashoffset:2e3}),(0,u.jt)(1e3,(0,u.oB)({strokeDashoffset:0}))])])]},changeDetection:0});class lu{constructor(){this.animations=!0,this.barOrientation=Fa}ngOnChanges(r){this.update()}update(){this.updateGradients();const r=this.sortData(this.data.series),i=this.getLineGenerator();this.path=i(r)||"";const b=this.getAreaGenerator();if(this.areaPath=b(r)||"",this.hasRange){const R=this.getRangeGenerator();this.outerPath=R(r)||""}if(this.hasGradient){this.stroke=this.gradientUrl;const R=this.data.series.map(Pe=>Pe.value),Y=Math.max(...R);Y===Math.min(...R)&&(this.stroke=this.colors.getColor(Y))}else this.stroke=this.colors.getColor(this.data.name)}getLineGenerator(){return tl().x(r=>{const i=r.name;let b;return b=this.scaleType===Cn.Time?this.xScale(i):this.scaleType===Cn.Linear?this.xScale(Number(i)):this.xScale(i),b}).y(r=>this.yScale(r.value)).curve(this.curve)}getRangeGenerator(){return Xl().x(r=>{const i=r.name;let b;return b=this.scaleType===Cn.Time?this.xScale(i):this.scaleType===Cn.Linear?this.xScale(Number(i)):this.xScale(i),b}).y0(r=>this.yScale("number"==typeof r.min?r.min:r.value)).y1(r=>this.yScale("number"==typeof r.max?r.max:r.value)).curve(this.curve)}getAreaGenerator(){return Xl().x(i=>{const b=i.name;return this.xScale(b)}).y0(()=>this.yScale.range()[0]).y1(i=>this.yScale(i.value)).curve(this.curve)}sortData(r){return r=this.scaleType===Cn.Linear?Sd(r,"name"):this.scaleType===Cn.Time?au(r,"name"):hp(r,"name","asc",this.xScale.domain())}updateGradients(){if(this.colors.scaleType===Cn.Linear){this.hasGradient=!0,this.gradientId="grad"+Ys().toString(),this.gradientUrl=`url(#${this.gradientId})`;const r=this.data.series.map(R=>R.value),i=Math.max(...r),b=Math.min(...r);this.gradientStops=this.colors.getLinearGradientStops(i,b),this.areaGradientStops=this.colors.getLinearGradientStops(i)}else this.hasGradient=!1,this.gradientStops=void 0,this.areaGradientStops=void 0}isActive(r){return!!this.activeEntries&&void 0!==this.activeEntries.find(b=>r.name===b.name)}isInactive(r){return!(!this.activeEntries||0===this.activeEntries.length)&&void 0===this.activeEntries.find(b=>r.name===b.name)}}lu.\u0275fac=function(r){return new(r||lu)},lu.\u0275cmp=e.Xpm({type:lu,selectors:[["g","ngx-charts-line-series",""]],inputs:{data:"data",xScale:"xScale",yScale:"yScale",colors:"colors",scaleType:"scaleType",curve:"curve",activeEntries:"activeEntries",rangeFillOpacity:"rangeFillOpacity",hasRange:"hasRange",animations:"animations"},features:[e.TTD],attrs:["ngx-charts-line-series",""],decls:6,vars:22,consts:[["ngx-charts-svg-linear-gradient","",3,"orientation","name","stops",4,"ngIf"],["ngx-charts-area","",1,"line-highlight",3,"data","path","fill","opacity","startOpacity","gradient","stops","animations"],["ngx-charts-line","",1,"line-series",3,"data","path","stroke","animations"],["ngx-charts-area","","class","line-series-range",3,"data","path","fill","active","inactive","opacity","animations",4,"ngIf"],["ngx-charts-svg-linear-gradient","",3,"orientation","name","stops"],["ngx-charts-area","",1,"line-series-range",3,"data","path","fill","opacity","animations"]],template:function(r,i){1&r&&(e.O4$(),e.TgZ(0,"g")(1,"defs"),e.YNc(2,Uf,1,3,"g",0),e.qZA(),e._UZ(3,"g",1)(4,"g",2),e.YNc(5,v6,1,9,"g",3),e.qZA()),2&r&&(e.xp6(2),e.Q6J("ngIf",i.hasGradient),e.xp6(1),e.ekj("active",i.isActive(i.data))("inactive",i.isInactive(i.data)),e.Q6J("data",i.data)("path",i.areaPath)("fill",i.hasGradient?i.gradientUrl:i.colors.getColor(i.data.name))("opacity",.25)("startOpacity",0)("gradient",!0)("stops",i.areaGradientStops)("animations",i.animations),e.xp6(1),e.ekj("active",i.isActive(i.data))("inactive",i.isInactive(i.data)),e.Q6J("data",i.data)("path",i.path)("stroke",i.stroke)("animations",i.animations),e.xp6(1),e.Q6J("ngIf",i.hasRange))},dependencies:[ll,f2,M2,t.O5],encapsulation:2,changeDetection:0});class Fd extends ja{constructor(){super(...arguments),this.legendTitle="Legend",this.legendPosition=hr.Right,this.showGridLines=!0,this.curve=Ec,this.activeEntries=[],this.trimXAxisTicks=!0,this.trimYAxisTicks=!0,this.rotateXAxisTicks=!0,this.maxXAxisTickLength=16,this.maxYAxisTickLength=16,this.roundDomains=!1,this.tooltipDisabled=!1,this.showRefLines=!1,this.showRefLabels=!0,this.activate=new e.vpe,this.deactivate=new e.vpe,this.margin=[10,20,10,20],this.xAxisHeight=0,this.yAxisWidth=0,this.timelineHeight=50,this.timelinePadding=10,this.isSSR=!1}ngOnInit(){(0,t.PM)(this.platformId)&&(this.isSSR=!0)}update(){super.update(),this.dims=fr({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.timeline&&(this.dims.height-=this.timelineHeight+this.margin[2]+this.timelinePadding),this.xDomain=this.getXDomain(),this.filteredDomain&&(this.xDomain=this.filteredDomain),this.yDomain=this.getYDomain(),this.seriesDomain=this.getSeriesDomain(),this.xScale=this.getXScale(this.xDomain,this.dims.width),this.yScale=this.getYScale(this.yDomain,this.dims.height),this.updateTimeline(),this.setColors(),this.legendOptions=this.getLegendOptions(),this.transform=`translate(${this.dims.xOffset} , ${this.margin[0]})`,this.clipPathId="clip"+Ys().toString(),this.clipPath=`url(#${this.clipPathId})`}updateTimeline(){this.timeline&&(this.timelineWidth=this.dims.width,this.timelineXDomain=this.getXDomain(),this.timelineXScale=this.getXScale(this.timelineXDomain,this.timelineWidth),this.timelineYScale=this.getYScale(this.yDomain,this.timelineHeight),this.timelineTransform=`translate(${this.dims.xOffset}, ${-this.margin[2]})`)}getXDomain(){let r=iu(this.results);this.scaleType=Io(r);let b,R,i=[];return this.scaleType===Cn.Linear&&(r=r.map(Y=>Number(Y))),(this.scaleType===Cn.Time||this.scaleType===Cn.Linear)&&(b=this.xScaleMin?this.xScaleMin:Math.min(...r),R=this.xScaleMax?this.xScaleMax:Math.max(...r)),this.scaleType===Cn.Time?(i=[new Date(b),new Date(R)],this.xSet=[...r].sort((Y,me)=>{const Pe=Y.getTime(),lt=me.getTime();return Pe>lt?1:lt>Pe?-1:0})):this.scaleType===Cn.Linear?(i=[b,R],this.xSet=[...r].sort((Y,me)=>Y-me)):(i=r,this.xSet=r),i}getYDomain(){const r=[];for(const Y of this.results)for(const me of Y.series)r.indexOf(me.value)<0&&r.push(me.value),void 0!==me.min&&(this.hasRange=!0,r.indexOf(me.min)<0&&r.push(me.min)),void 0!==me.max&&(this.hasRange=!0,r.indexOf(me.max)<0&&r.push(me.max));const i=[...r];this.autoScale||i.push(0);return[this.yScaleMin?this.yScaleMin:Math.min(...i),this.yScaleMax?this.yScaleMax:Math.max(...i)]}getSeriesDomain(){return this.results.map(r=>r.name)}getXScale(r,i){let b;return this.scaleType===Cn.Time?b=Ql().range([0,i]).domain(r):this.scaleType===Cn.Linear?(b=Ga().range([0,i]).domain(r),this.roundDomains&&(b=b.nice())):this.scaleType===Cn.Ordinal&&(b=er().range([0,i]).padding(.1).domain(r)),b}getYScale(r,i){const b=Ga().range([i,0]).domain(r);return this.roundDomains?b.nice():b}updateDomain(r){this.filteredDomain=r,this.xDomain=this.filteredDomain,this.xScale=this.getXScale(this.xDomain,this.dims.width)}updateHoveredVertical(r){this.hoveredVertical=r.value,this.deactivateAll()}hideCircles(){this.hoveredVertical=null,this.deactivateAll()}onClick(r){this.select.emit(r)}trackBy(r,i){return`${i.name}`}setColors(){let r;r=this.schemeType===Cn.Ordinal?this.seriesDomain:this.yDomain,this.colors=new Lr(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===Cn.Ordinal?(r.domain=this.seriesDomain,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()}onActivate(r){this.deactivateAll(),!(this.activeEntries.findIndex(b=>b.name===r.name&&b.value===r.value)>-1)&&(this.activeEntries=[r],this.activate.emit({value:r,entries:this.activeEntries}))}onDeactivate(r){const i=this.activeEntries.findIndex(b=>b.name===r.name&&b.value===r.value);this.activeEntries.splice(i,1),this.activeEntries=[...this.activeEntries],this.deactivate.emit({value:r,entries:this.activeEntries})}deactivateAll(){this.activeEntries=[...this.activeEntries];for(const r of this.activeEntries)this.deactivate.emit({value:r,entries:[]});this.activeEntries=[]}}Fd.\u0275fac=function(){let f;return function(i){return(f||(f=e.n5z(Fd)))(i||Fd)}}(),Fd.\u0275cmp=e.Xpm({type:Fd,selectors:[["ngx-charts-line-chart"]],contentQueries:function(r,i,b){if(1&r&&(e.Suo(b,Ir,5),e.Suo(b,yd,5)),2&r){let R;e.iGM(R=e.CRH())&&(i.tooltipTemplate=R.first),e.iGM(R=e.CRH())&&(i.seriesTooltipTemplate=R.first)}},hostBindings:function(r,i){1&r&&e.NdJ("mouseleave",function(){return i.hideCircles()})},inputs:{legend:"legend",legendTitle:"legendTitle",legendPosition:"legendPosition",xAxis:"xAxis",yAxis:"yAxis",showXAxisLabel:"showXAxisLabel",showYAxisLabel:"showYAxisLabel",xAxisLabel:"xAxisLabel",yAxisLabel:"yAxisLabel",autoScale:"autoScale",timeline:"timeline",gradient:"gradient",showGridLines:"showGridLines",curve:"curve",activeEntries:"activeEntries",schemeType:"schemeType",rangeFillOpacity:"rangeFillOpacity",trimXAxisTicks:"trimXAxisTicks",trimYAxisTicks:"trimYAxisTicks",rotateXAxisTicks:"rotateXAxisTicks",maxXAxisTickLength:"maxXAxisTickLength",maxYAxisTickLength:"maxYAxisTickLength",xAxisTickFormatting:"xAxisTickFormatting",yAxisTickFormatting:"yAxisTickFormatting",xAxisTicks:"xAxisTicks",yAxisTicks:"yAxisTicks",roundDomains:"roundDomains",tooltipDisabled:"tooltipDisabled",showRefLines:"showRefLines",referenceLines:"referenceLines",showRefLabels:"showRefLabels",xScaleMin:"xScaleMin",xScaleMax:"xScaleMax",yScaleMin:"yScaleMin",yScaleMax:"yScaleMax"},outputs:{activate:"activate",deactivate:"deactivate"},features:[e.qOj],decls:12,vars:20,consts:[[3,"view","showLegend","legendOptions","activeEntries","animations","legendLabelClick","legendLabelActivate","legendLabelDeactivate"],[1,"line-chart","chart"],["ngx-charts-x-axis","",3,"xScale","dims","showGridLines","showLabel","labelText","trimTicks","rotateTicks","maxTickLength","tickFormatting","ticks","dimensionsChanged",4,"ngIf"],["ngx-charts-y-axis","",3,"yScale","dims","showGridLines","showLabel","labelText","trimTicks","maxTickLength","tickFormatting","ticks","referenceLines","showRefLines","showRefLabels","dimensionsChanged",4,"ngIf"],[4,"ngIf"],[3,"mouseleave",4,"ngIf"],["ngx-charts-timeline","",3,"results","view","height","scheme","customColors","scaleType","legend","onDomainChange",4,"ngIf"],["ngx-charts-x-axis","",3,"xScale","dims","showGridLines","showLabel","labelText","trimTicks","rotateTicks","maxTickLength","tickFormatting","ticks","dimensionsChanged"],["ngx-charts-y-axis","",3,"yScale","dims","showGridLines","showLabel","labelText","trimTicks","maxTickLength","tickFormatting","ticks","referenceLines","showRefLines","showRefLabels","dimensionsChanged"],[4,"ngFor","ngForOf","ngForTrackBy"],["ngx-charts-line-series","",3,"xScale","yScale","colors","data","activeEntries","scaleType","curve","rangeFillOpacity","hasRange","animations"],[3,"mouseleave"],["ngx-charts-tooltip-area","",3,"dims","xSet","xScale","yScale","results","colors","tooltipDisabled","tooltipTemplate","hover"],[4,"ngFor","ngForOf"],["ngx-charts-circle-series","",3,"xScale","yScale","colors","data","scaleType","visibleValue","activeEntries","tooltipDisabled","tooltipTemplate","select","activate","deactivate"],["ngx-charts-timeline","",3,"results","view","height","scheme","customColors","scaleType","legend","onDomainChange"],["ngx-charts-line-series","",3,"xScale","yScale","colors","data","scaleType","curve","hasRange","animations"]],template:function(r,i){1&r&&(e.TgZ(0,"ngx-charts-chart",0),e.NdJ("legendLabelClick",function(R){return i.onClick(R)})("legendLabelActivate",function(R){return i.onActivate(R)})("legendLabelDeactivate",function(R){return i.onDeactivate(R)}),e.O4$(),e.TgZ(1,"defs")(2,"clipPath"),e._UZ(3,"rect"),e.qZA()(),e.TgZ(4,"g",1),e.YNc(5,f4,1,10,"g",2),e.YNc(6,p4,1,12,"g",3),e.TgZ(7,"g"),e.YNc(8,y6,2,2,"g",4),e.YNc(9,Uh,2,2,"g",4),e.YNc(10,b6,3,9,"g",5),e.qZA()(),e.YNc(11,Vh,2,13,"g",6),e.qZA()),2&r&&(e.Q6J("view",e.WLB(17,Ya,i.width,i.height))("showLegend",i.legend)("legendOptions",i.legendOptions)("activeEntries",i.activeEntries)("animations",i.animations),e.xp6(2),e.uIk("id",i.clipPathId),e.xp6(1),e.uIk("width",i.dims.width+10)("height",i.dims.height+10)("transform","translate(-5, -5)"),e.xp6(1),e.uIk("transform",i.transform),e.xp6(1),e.Q6J("ngIf",i.xAxis),e.xp6(1),e.Q6J("ngIf",i.yAxis),e.xp6(1),e.uIk("clip-path",i.clipPath),e.xp6(1),e.Q6J("ngIf",!i.isSSR),e.xp6(1),e.Q6J("ngIf",i.isSSR),e.xp6(1),e.Q6J("ngIf",!i.tooltipDisabled),e.xp6(1),e.Q6J("ngIf",i.timeline&&"ordinal"!=i.scaleType))},dependencies:[Qa,ps,ts,lu,tc,Pc,Il,t.O5,t.sg],styles:[$r],encapsulation:2,data:{animation:[(0,u.X$)("animationState",[(0,u.eR)(":leave",[(0,u.oB)({opacity:1}),(0,u.jt)(500,(0,u.oB)({opacity:0}))])])]},changeDetection:0});class A1{}A1.\u0275fac=function(r){return new(r||A1)},A1.\u0275mod=e.oAB({type:A1}),A1.\u0275inj=e.cJS({imports:[[Ds]]});class E2{constructor(r){this.platformId=r,this.animations=!0,this.labelTrim=!0,this.labelTrimSize=10,this.trimLabel=wl}ngOnChanges(r){this.setTransforms(),this.update()}setTransforms(){if((0,t.PM)(this.platformId))this.styleTransform=`translate3d(${this.textX}px,${this.textY}px, 0)`,this.attrTransform=`translate(${this.textX},${this.textY})`,this.textTransition=this.animations?"transform 0.75s":null;else{const r=/(edge|msie|trident)/i.test(navigator.userAgent);this.styleTransform=r?null:`translate3d(${this.textX}px,${this.textY}px, 0)`,this.attrTransform=r?`translate(${this.textX},${this.textY})`:null,this.textTransition=r||!this.animations?null:"transform 0.75s"}}update(){let r=this.radius;this.explodeSlices&&(r=this.radius*this.value/this.max);const b=hd().innerRadius(r).outerRadius(r).centroid(this.data);let R=this.data.pos[1]/b[1];(0===this.data.pos[1]||0===b[1])&&(R=1);const Y=[R*b[0],R*b[1]];this.line=`M${b}L${Y}L${this.data.pos}`}get textX(){return this.data.pos[0]}get textY(){return this.data.pos[1]}textAnchor(){return this.midAngle(this.data)<Math.PI?Gs.Start:Gs.End}midAngle(r){return r.startAngle+(r.endAngle-r.startAngle)/2}}E2.\u0275fac=function(r){return new(r||E2)(e.Y36(e.Lbi))},E2.\u0275cmp=e.Xpm({type:E2,selectors:[["g","ngx-charts-pie-label",""]],inputs:{data:"data",radius:"radius",label:"label",color:"color",max:"max",value:"value",explodeSlices:"explodeSlices",animations:"animations",labelTrim:"labelTrim",labelTrimSize:"labelTrimSize"},features:[e.TTD],attrs:["ngx-charts-pie-label",""],decls:6,vars:17,consts:[["dy",".35em",1,"pie-label"],["fill","none",1,"pie-label-line","line"]],template:function(r,i){1&r&&(e.TgZ(0,"title"),e._uU(1),e.qZA(),e.O4$(),e.TgZ(2,"g")(3,"text",0),e._uU(4),e.qZA()(),e._UZ(5,"path",1)),2&r&&(e.xp6(1),e.Oqu(i.label),e.xp6(1),e.Udp("transform",i.styleTransform)("transition",i.textTransition),e.uIk("transform",i.attrTransform),e.xp6(1),e.Udp("text-anchor",i.textAnchor())("shape-rendering","crispEdges"),e.ekj("animation",i.animations),e.xp6(1),e.hij(" ",i.labelTrim?i.trimLabel(i.label,i.labelTrimSize):i.label," "),e.xp6(1),e.ekj("animation",i.animations),e.uIk("d",i.line)("stroke",i.color))},encapsulation:2,changeDetection:0});class Hd{constructor(){this.tooltipDisabled=!1,this.gradient=!1,this.animations=!0,this.select=new e.vpe,this.activate=new e.vpe,this.deactivate=new e.vpe,this.circleRadius=3,this.barOrientation=Fa,this.placementTypes=Ri,this.styleTypes=Zs}ngOnChanges(r){this.update()}update(){this.updateGradients();const r=this.getLineGenerator(),i=this.sortData(this.data.series),b=this.data.name,R=this.colors.scaleType===Cn.Linear,Y=this.yScale.domain()[0];this.seriesColor=this.colors.getColor(R?Y:b),this.path=r(i)||"",this.circles=i.map(me=>{const Pe=this.getAngle(me),lt=this.getRadius(me),gt=me.value,Et=this.colors.getColor(R?Math.abs(gt):b);return{data:Object.assign({},me,{series:b,value:gt,name:me.name}),cx:lt*Math.sin(Pe),cy:-lt*Math.cos(Pe),value:gt,color:Et,label:me.name}}),this.active=this.isActive(this.data),this.inactive=this.isInactive(this.data),this.tooltipText=this.tooltipText||(me=>this.defaultTooltipText(me))}getAngle(r){const i=r.name;return this.scaleType===Cn.Time?this.xScale(i):this.scaleType===Cn.Linear?this.xScale(Number(i)):this.xScale(i)}getRadius(r){return this.yScale(r.value)}getLineGenerator(){return V0().angle(r=>this.getAngle(r)).radius(r=>this.getRadius(r)).curve(this.curve)}sortData(r){return this.scaleType===Cn.Linear?Sd(r,"name"):this.scaleType===Cn.Time?au(r,"name"):hp(r,"name","asc",this.xScale.domain())}isActive(r){return!!this.activeEntries&&void 0!==this.activeEntries.find(b=>r.name===b.name)}isInactive(r){return!(!this.activeEntries||0===this.activeEntries.length)&&void 0===this.activeEntries.find(b=>r.name===b.name)}defaultTooltipText({label:r,value:i}){return`\n <span class="tooltip-label">${fs(this.data.name)} \u2022 ${fs(r)}</span>\n <span class="tooltip-val">${i.toLocaleString()}</span>\n `}updateGradients(){if(this.hasGradient=this.gradient||this.colors.scaleType===Cn.Linear,this.hasGradient)if(this.gradientId="grad"+Ys().toString(),this.gradientUrl=`url(#${this.gradientId})`,this.colors.scaleType===Cn.Linear){const r=this.data.series.map(R=>R.value),i=Math.max(...r),b=Math.min(...r);this.gradientStops=this.colors.getLinearGradientStops(i,b)}else this.gradientStops=void 0}}Hd.\u0275fac=function(r){return new(r||Hd)},Hd.\u0275cmp=e.Xpm({type:Hd,selectors:[["g","ngx-charts-polar-series",""]],inputs:{name:"name",data:"data",xScale:"xScale",yScale:"yScale",colors:"colors",scaleType:"scaleType",curve:"curve",activeEntries:"activeEntries",rangeFillOpacity:"rangeFillOpacity",tooltipDisabled:"tooltipDisabled",tooltipText:"tooltipText",gradient:"gradient",tooltipTemplate:"tooltipTemplate",animations:"animations"},outputs:{select:"select",activate:"activate",deactivate:"deactivate"},features:[e.TTD],attrs:["ngx-charts-polar-series",""],decls:5,vars:11,consts:[[1,"polar-charts-series"],["ngx-charts-svg-radial-gradient","",3,"color","name","startOpacity","endOpacity","stops",4,"ngIf"],["ngx-charts-line","",1,"polar-series-path",3,"path","stroke","fill","animations"],["ngx-charts-circle","","class","circle","ngx-tooltip","",3,"cx","cy","r","fill","opacity","tooltipDisabled","tooltipPlacement","tooltipType","tooltipTitle","tooltipTemplate","tooltipContext","select","activate","deactivate",4,"ngFor","ngForOf"],["ngx-charts-svg-radial-gradient","",3,"color","name","startOpacity","endOpacity","stops"],["ngx-charts-circle","","ngx-tooltip","",1,"circle",3,"cx","cy","r","fill","tooltipDisabled","tooltipPlacement","tooltipType","tooltipTitle","tooltipTemplate","tooltipContext","select","activate","deactivate"]],template:function(r,i){1&r&&(e.O4$(),e.TgZ(0,"g",0)(1,"defs"),e.YNc(2,Wh,1,5,"g",1),e.qZA(),e._UZ(3,"g",2),e.YNc(4,Vf,1,12,"g",3),e.qZA()),2&r&&(e.xp6(2),e.Q6J("ngIf",i.hasGradient),e.xp6(1),e.ekj("active",i.active)("inactive",i.inactive),e.Q6J("path",i.path)("stroke",i.hasGradient?i.gradientUrl:i.seriesColor)("fill",i.hasGradient?i.gradientUrl:i.seriesColor)("animations",i.animations),e.uIk("fill-opacity",i.rangeFillOpacity),e.xp6(1),e.Q6J("ngForOf",i.circles))},dependencies:[M1,M2,C1,t.O5,t.sg,ho],encapsulation:2,changeDetection:0});const pp=2*Math.PI;class zd extends ja{constructor(){super(...arguments),this.legendTitle="Legend",this.legendPosition=hr.Right,this.showGridLines=!0,this.curve=_d,this.activeEntries=[],this.rangeFillOpacity=.15,this.trimYAxisTicks=!0,this.maxYAxisTickLength=16,this.roundDomains=!1,this.tooltipDisabled=!1,this.showSeriesOnHover=!0,this.gradient=!1,this.yAxisMinScale=0,this.labelTrim=!0,this.labelTrimSize=10,this.activate=new e.vpe,this.deactivate=new e.vpe,this.margin=[10,20,10,20],this.xAxisHeight=0,this.yAxisWidth=0,this.orientation=es,this.isSSR=!1}ngOnInit(){(0,t.PM)(this.platformId)&&(this.isSSR=!0)}update(){super.update(),this.setDims(),this.setScales(),this.setColors(),this.legendOptions=this.getLegendOptions(),this.setTicks()}setDims(){this.dims=fr({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});const r=Math.floor(this.dims.width/2),i=Math.floor(this.dims.height/2),b=this.outerRadius=Math.min(i/1.5,r/1.5),R=Math.max(0,i-b);this.yAxisDims={...this.dims,width:r},this.transform=`translate(${this.dims.xOffset}, ${this.margin[0]})`,this.transformYAxis=`translate(0, ${R})`,this.labelOffset=this.dims.height+40,this.transformPlot=`translate(${r}, ${i})`}setScales(){const r=this.getXValues();this.scaleType=Io(r),this.xDomain=this.filteredDomain||this.getXDomain(r),this.yDomain=this.getYDomain(),this.seriesDomain=this.getSeriesDomain(),this.xScale=this.getXScale(this.xDomain,pp),this.yScale=this.getYScale(this.yDomain,this.outerRadius),this.yAxisScale=this.getYScale(this.yDomain.reverse(),this.outerRadius)}setTicks(){let r;r=this.xAxisTickFormatting?this.xAxisTickFormatting:this.xScale.tickFormat?this.xScale.tickFormat.apply(this.xScale,[5]):Y=>l2(Y)?Y.toLocaleDateString():Y.toLocaleString();const i=this.outerRadius;this.thetaTicks=this.xDomain.map(Y=>{const me=this.xScale(Y),Pe=1.1*i*(me>Math.PI?-1:1),lt=r(Y),gt=[i*Math.sin(me),-i*Math.cos(me)],Et=[Pe,1.1*gt[1]];return{innerRadius:0,outerRadius:i,startAngle:me,endAngle:me,value:i,label:lt,startPos:gt,pos:Et}});for(let Y=0;Y<this.thetaTicks.length-1;Y++){const me=this.thetaTicks[Y];for(let Pe=Y+1;Pe<this.thetaTicks.length;Pe++){const lt=this.thetaTicks[Pe];if(lt.pos[0]*me.pos[0]>0){const gt=10-Math.abs(lt.pos[1]-me.pos[1]);gt>0&&(lt.pos[1]+=Math.sign(lt.pos[0])*gt)}}}this.radiusTicks=this.yAxisScale.ticks(Math.floor(this.dims.height/50)).map(Y=>this.yScale(Y))}getXValues(){const r=[];for(const i of this.results)for(const b of i.series)r.includes(b.name)||r.push(b.name);return r}getXDomain(r=this.getXValues()){if(this.scaleType===Cn.Time){return[Math.min(...r),Math.max(...r)]}if(this.scaleType===Cn.Linear){r=r.map(R=>Number(R));return[Math.min(...r),Math.max(...r)]}return r}getYValues(){const r=[];for(const i of this.results)for(const b of i.series)r.indexOf(b.value)<0&&r.push(b.value),void 0!==b.min&&r.indexOf(b.min)<0&&r.push(b.min),void 0!==b.max&&r.indexOf(b.max)<0&&r.push(b.max);return r}getYDomain(r=this.getYValues()){let i=Math.min(...r);const b=Math.max(this.yAxisMinScale,...r);return i=Math.max(0,i),this.autoScale||(i=Math.min(0,i)),[i,b]}getSeriesDomain(){return this.results.map(r=>r.name)}getXScale(r,i){switch(this.scaleType){case Cn.Time:return Ql().range([0,i]).domain(r);case Cn.Linear:const b=Ga().range([0,i]).domain(r);return this.roundDomains?b.nice():b;default:return er().range([0,i-pp/r.length]).padding(0).domain(r)}}getYScale(r,i){const b=Ga().range([0,i]).domain(r);return this.roundDomains?b.nice():b}onClick(r,i){i&&(r.series=i.name),this.select.emit(r)}setColors(){const r=this.schemeType===Cn.Ordinal?this.seriesDomain:this.yDomain.reverse();this.colors=new Lr(this.scheme,this.schemeType,r,this.customColors)}getLegendOptions(){return this.schemeType===Cn.Ordinal?{scaleType:this.schemeType,colors:this.colors,domain:this.seriesDomain,title:this.legendTitle,position:this.legendPosition}:{scaleType:this.schemeType,colors:this.colors.scale,domain:this.yDomain,title:void 0,position:this.legendPosition}}updateYAxisWidth({width:r}){this.yAxisWidth=r,this.update()}updateXAxisHeight({height:r}){this.xAxisHeight=r,this.update()}onActivate(r){this.activeEntries.findIndex(b=>b.name===r.name&&b.value===r.value)>-1||(this.activeEntries=this.showSeriesOnHover?[r,...this.activeEntries]:this.activeEntries,this.activate.emit({value:r,entries:this.activeEntries}))}onDeactivate(r){const i=this.activeEntries.findIndex(b=>b.name===r.name&&b.value===r.value);this.activeEntries.splice(i,1),this.activeEntries=[...this.activeEntries],this.deactivate.emit({value:r,entries:this.activeEntries})}deactivateAll(){this.activeEntries=[...this.activeEntries];for(const r of this.activeEntries)this.deactivate.emit({value:r,entries:[]});this.activeEntries=[]}trackBy(r,i){return`${i.name}`}}zd.\u0275fac=function(){let f;return function(i){return(f||(f=e.n5z(zd)))(i||zd)}}(),zd.\u0275cmp=e.Xpm({type:zd,selectors:[["ngx-charts-polar-chart"]],contentQueries:function(r,i,b){if(1&r&&e.Suo(b,Ir,5),2&r){let R;e.iGM(R=e.CRH())&&(i.tooltipTemplate=R.first)}},inputs:{legend:"legend",legendTitle:"legendTitle",legendPosition:"legendPosition",xAxis:"xAxis",yAxis:"yAxis",showXAxisLabel:"showXAxisLabel",showYAxisLabel:"showYAxisLabel",xAxisLabel:"xAxisLabel",yAxisLabel:"yAxisLabel",autoScale:"autoScale",showGridLines:"showGridLines",curve:"curve",activeEntries:"activeEntries",schemeType:"schemeType",rangeFillOpacity:"rangeFillOpacity",trimYAxisTicks:"trimYAxisTicks",maxYAxisTickLength:"maxYAxisTickLength",xAxisTickFormatting:"xAxisTickFormatting",yAxisTickFormatting:"yAxisTickFormatting",roundDomains:"roundDomains",tooltipDisabled:"tooltipDisabled",showSeriesOnHover:"showSeriesOnHover",gradient:"gradient",yAxisMinScale:"yAxisMinScale",labelTrim:"labelTrim",labelTrimSize:"labelTrimSize"},outputs:{activate:"activate",deactivate:"deactivate"},features:[e.qOj],decls:10,vars:17,consts:[[3,"view","showLegend","legendOptions","activeEntries","animations","legendLabelClick","legendLabelActivate","legendLabelDeactivate"],[1,"polar-chart","chart"],["cx","0","cy","0",1,"polar-chart-background"],[4,"ngIf"],["ngx-charts-y-axis","",3,"yScale","dims","showGridLines","showLabel","labelText","trimTicks","maxTickLength","tickFormatting","dimensionsChanged",4,"ngIf"],["ngx-charts-axis-label","",3,"label","offset","orient","height","width",4,"ngIf"],["class","gridline-path radial-gridline-path","cx","0","cy","0",4,"ngFor","ngForOf"],["cx","0","cy","0",1,"gridline-path","radial-gridline-path"],["ngx-charts-pie-label","",3,"data","radius","label","max","value","explodeSlices","animations","labelTrim","labelTrimSize",4,"ngFor","ngForOf"],["ngx-charts-pie-label","",3,"data","radius","label","max","value","explodeSlices","animations","labelTrim","labelTrimSize"],["ngx-charts-y-axis","",3,"yScale","dims","showGridLines","showLabel","labelText","trimTicks","maxTickLength","tickFormatting","dimensionsChanged"],["ngx-charts-axis-label","",3,"label","offset","orient","height","width"],[4,"ngFor","ngForOf","ngForTrackBy"],["ngx-charts-polar-series","",3,"gradient","xScale","yScale","colors","data","activeEntries","scaleType","curve","rangeFillOpacity","animations","tooltipDisabled","tooltipTemplate","select","activate","deactivate"]],template:function(r,i){1&r&&(e.TgZ(0,"ngx-charts-chart",0),e.NdJ("legendLabelClick",function(R){return i.onClick(R)})("legendLabelActivate",function(R){return i.onActivate(R)})("legendLabelDeactivate",function(R){return i.onDeactivate(R)}),e.O4$(),e.TgZ(1,"g",1)(2,"g"),e._UZ(3,"circle",2),e.YNc(4,Kh,2,1,"g",3),e.YNc(5,x6,2,1,"g",3),e.qZA(),e.YNc(6,b4,1,9,"g",4),e.YNc(7,Kf,1,5,"g",5),e.YNc(8,Zf,2,3,"g",3),e.YNc(9,x4,2,3,"g",3),e.qZA()()),2&r&&(e.Q6J("view",e.WLB(14,Ya,i.width,i.height))("showLegend",i.legend)("legendOptions",i.legendOptions)("activeEntries",i.activeEntries)("animations",i.animations),e.xp6(1),e.uIk("transform",i.transform),e.xp6(1),e.uIk("transform",i.transformPlot),e.xp6(1),e.uIk("r",i.outerRadius),e.xp6(1),e.Q6J("ngIf",i.showGridLines),e.xp6(1),e.Q6J("ngIf",i.xAxis),e.xp6(1),e.Q6J("ngIf",i.yAxis),e.xp6(1),e.Q6J("ngIf",i.xAxis&&i.showXAxisLabel),e.xp6(1),e.Q6J("ngIf",!i.isSSR),e.xp6(1),e.Q6J("ngIf",i.isSSR))},dependencies:[Qa,E2,ts,Oc,Hd,t.O5,t.sg],styles:[$r,".pie-label{font-size:11px}.pie-label.animation{-webkit-animation:.75s ease-in fadeIn;animation:.75s ease-in fadeIn}@-webkit-keyframes fadeIn{0%{opacity:0}to{opacity:1}}@keyframes fadeIn{0%{opacity:0}to{opacity:1}}.pie-label-line{stroke-dasharray:100%}.pie-label-line.animation{-webkit-animation:3s linear drawOut;animation:3s linear drawOut;transition:d .75s}@-webkit-keyframes drawOut{0%{stroke-dashoffset:100%}to{stroke-dashoffset:0}}@keyframes drawOut{0%{stroke-dashoffset:100%}to{stroke-dashoffset:0}}\n",".polar-chart .polar-chart-background{fill:none}.polar-chart .radial-gridline-path{stroke-dasharray:10 10;fill:none}.polar-chart .pie-label-line{stroke:#2f3646}.polar-charts-series .polar-series-area,.polar-series-path{pointer-events:none}\n"],encapsulation:2,data:{animation:[(0,u.X$)("animationState",[(0,u.eR)(":leave",[(0,u.oB)({opacity:1}),(0,u.jt)(500,(0,u.oB)({opacity:0}))])])]},changeDetection:0});class T1{constructor(r){this.startAngle=0,this.endAngle=2*Math.PI,this.cornerRadius=0,this.explodeSlices=!1,this.gradient=!1,this.animate=!0,this.pointerEvents=!0,this.isActive=!1,this.select=new e.vpe,this.activate=new e.vpe,this.deactivate=new e.vpe,this.dblclick=new e.vpe,this.barOrientation=Fa,this.initialized=!1,this.element=r.nativeElement}ngOnChanges(r){this.update()}getGradient(){return this.gradient?this.gradientFill:this.fill}getPointerEvents(){return this.pointerEvents?"auto":"none"}update(){const r=this.calculateArc();this.startOpacity=.5,this.radialGradientId="linearGrad"+Ys().toString(),this.gradientFill=`url(#${this.radialGradientId})`,this.animate?this.initialized?this.updateAnimation():(this.loadAnimation(),this.initialized=!0):this.path=r.startAngle(this.startAngle).endAngle(this.endAngle)()}calculateArc(){let r=this.outerRadius;return this.explodeSlices&&0===this.innerRadius&&(r=this.outerRadius*this.value/this.max),hd().innerRadius(this.innerRadius).outerRadius(r).cornerRadius(this.cornerRadius)}loadAnimation(){const r=Ln(this.element).selectAll(".arc").data([{startAngle:this.startAngle,endAngle:this.endAngle}]),i=this.calculateArc();r.transition().attrTween("d",function(b){this._current=this._current||b;const R=Object.assign({},b);R.endAngle=R.startAngle;const Y=xt(R,R);return this._current=Y(0),function(me){return i(Y(me))}}).transition().duration(750).attrTween("d",function(b){this._current=this._current||b;const R=xt(this._current,b);return this._current=R(0),function(Y){return i(R(Y))}})}updateAnimation(){const r=Ln(this.element).selectAll(".arc").data([{startAngle:this.startAngle,endAngle:this.endAngle}]),i=this.calculateArc();r.transition().duration(750).attrTween("d",function(b){this._current=this._current||b;const R=xt(this._current,b);return this._current=R(0),function(Y){return i(R(Y))}})}onClick(){clearTimeout(this._timeout),this._timeout=setTimeout(()=>this.select.emit(this.data),200)}onDblClick(r){r.preventDefault(),r.stopPropagation(),clearTimeout(this._timeout),this.dblclick.emit({data:this.data,nativeEvent:r})}}T1.\u0275fac=function(r){return new(r||T1)(e.Y36(e.SBq))},T1.\u0275cmp=e.Xpm({type:T1,selectors:[["g","ngx-charts-pie-arc",""]],inputs:{fill:"fill",startAngle:"startAngle",endAngle:"endAngle",innerRadius:"innerRadius",outerRadius:"outerRadius",cornerRadius:"cornerRadius",value:"value",max:"max",data:"data",explodeSlices:"explodeSlices",gradient:"gradient",animate:"animate",pointerEvents:"pointerEvents",isActive:"isActive"},outputs:{select:"select",activate:"activate",deactivate:"deactivate",dblclick:"dblclick"},features:[e.TTD],attrs:["ngx-charts-pie-arc",""],decls:3,vars:7,consts:[[1,"arc-group"],[4,"ngIf"],[1,"arc",3,"click","dblclick","mouseenter","mouseleave"],["ngx-charts-svg-radial-gradient","",3,"color","name","startOpacity"]],template:function(r,i){1&r&&(e.O4$(),e.TgZ(0,"g",0),e.YNc(1,C4,2,3,"defs",1),e.TgZ(2,"path",2),e.NdJ("click",function(){return i.onClick()})("dblclick",function(R){return i.onDblClick(R)})("mouseenter",function(){return i.activate.emit(i.data)})("mouseleave",function(){return i.deactivate.emit(i.data)}),e.qZA()()),2&r&&(e.xp6(1),e.Q6J("ngIf",i.gradient),e.xp6(1),e.Udp("pointer-events",i.getPointerEvents()),e.ekj("active",i.isActive),e.uIk("d",i.path)("fill",i.getGradient()))},dependencies:[M1,t.O5],encapsulation:2,changeDetection:0});class Ud{constructor(){this.series=[],this.innerRadius=60,this.outerRadius=80,this.trimLabels=!0,this.maxLabelLength=10,this.tooltipDisabled=!1,this.animations=!0,this.select=new e.vpe,this.activate=new e.vpe,this.deactivate=new e.vpe,this.dblclick=new e.vpe,this.placementTypes=Ri,this.styleTypes=Zs}ngOnChanges(r){this.update()}update(){const i=fh().value(b=>b.value).sort(null)(this.series);this.max=r1(i,b=>b.value),this.data=this.calculateLabelPositions(i),this.tooltipText=this.tooltipText||this.defaultTooltipText}midAngle(r){return r.startAngle+(r.endAngle-r.startAngle)/2}outerArc(){return hd().innerRadius(1.5*this.outerRadius).outerRadius(1.5*this.outerRadius)}calculateLabelPositions(r){const R=r;R.forEach(Y=>{Y.pos=this.outerArc().centroid(Y),Y.pos[0]=1.5*this.outerRadius*(this.midAngle(Y)<Math.PI?1:-1)});for(let Y=0;Y<R.length-1;Y++){const me=R[Y];if(this.labelVisible(me))for(let Pe=Y+1;Pe<R.length;Pe++){const lt=R[Pe];if(this.labelVisible(lt)&&lt.pos[0]*me.pos[0]>0){const gt=10-Math.abs(lt.pos[1]-me.pos[1]);gt>0&&(lt.pos[1]+=Math.sign(lt.pos[0])*gt)}}}return R}labelVisible(r){return this.showLabels&&r.endAngle-r.startAngle>Math.PI/30}getTooltipTitle(r){return this.tooltipTemplate?void 0:this.tooltipText(r)}labelText(r){return this.labelFormatting?this.labelFormatting(r.data.name):this.label(r)}label(r){return Ur(r.data.name)}defaultTooltipText(r){const i=this.label(r),b=Ur(r.data.value);return`\n <span class="tooltip-label">${fs(i)}</span>\n <span class="tooltip-val">${b}</span>\n `}color(r){return this.colors.getColor(this.label(r))}trackBy(r,i){return i.data.name}onClick(r){this.select.emit(r)}isActive(r){return!!this.activeEntries&&void 0!==this.activeEntries.find(b=>r.name===b.name&&r.series===b.series)}}Ud.\u0275fac=function(r){return new(r||Ud)},Ud.\u0275cmp=e.Xpm({type:Ud,selectors:[["g","ngx-charts-pie-series",""]],inputs:{colors:"colors",series:"series",dims:"dims",innerRadius:"innerRadius",outerRadius:"outerRadius",explodeSlices:"explodeSlices",showLabels:"showLabels",gradient:"gradient",activeEntries:"activeEntries",labelFormatting:"labelFormatting",trimLabels:"trimLabels",maxLabelLength:"maxLabelLength",tooltipText:"tooltipText",tooltipDisabled:"tooltipDisabled",tooltipTemplate:"tooltipTemplate",animations:"animations"},outputs:{select:"select",activate:"activate",deactivate:"deactivate",dblclick:"dblclick"},features:[e.TTD],attrs:["ngx-charts-pie-series",""],decls:1,vars:2,consts:[[4,"ngFor","ngForOf","ngForTrackBy"],["ngx-charts-pie-label","",3,"data","radius","color","label","labelTrim","labelTrimSize","max","value","explodeSlices","animations",4,"ngIf"],["ngx-charts-pie-arc","","ngx-tooltip","",3,"startAngle","endAngle","innerRadius","outerRadius","fill","value","gradient","data","max","explodeSlices","isActive","animate","tooltipDisabled","tooltipPlacement","tooltipType","tooltipTitle","tooltipTemplate","tooltipContext","select","activate","deactivate","dblclick"],["ngx-charts-pie-label","",3,"data","radius","color","label","labelTrim","labelTrimSize","max","value","explodeSlices","animations"]],template:function(r,i){1&r&&e.YNc(0,E4,3,19,"g",0),2&r&&e.Q6J("ngForOf",i.data)("ngForTrackBy",i.trackBy)},dependencies:[E2,T1,t.sg,t.O5,ho],encapsulation:2,changeDetection:0});class D2 extends ja{constructor(){super(...arguments),this.activeEntries=[],this.tooltipDisabled=!1,this.label="Total",this.activate=new e.vpe,this.deactivate=new e.vpe,this.margin=[20,20,20,20]}update(){super.update(),this.dims=fr({width:4*this.width/12,height:this.height,margins:this.margin}),this.formatDates(),this.domain=this.getDomain(),this.setColors();const r=this.dims.width/2,i=this.margin[0]+this.dims.height/2;this.legendWidth=this.width-this.dims.width-this.margin[1],this.outerRadius=Math.min(this.dims.width,this.dims.height)/2.5,this.innerRadius=.75*this.outerRadius,this.transform=`translate(${r} , ${i})`}getDomain(){return this.results.map(r=>r.label)}onClick(r){this.select.emit(r)}setColors(){this.colors=new Lr(this.scheme,Cn.Ordinal,this.domain,this.customColors)}onActivate(r,i=!1){r=this.results.find(R=>i?R.label===r.name:R.name===r.name),!(this.activeEntries.findIndex(R=>R.name===r.name&&R.value===r.value&&R.series===r.series)>-1)&&(this.activeEntries=[r,...this.activeEntries],this.activate.emit({value:r,entries:this.activeEntries}))}onDeactivate(r,i=!1){r=this.results.find(R=>i?R.label===r.name:R.name===r.name);const b=this.activeEntries.findIndex(R=>R.name===r.name&&R.value===r.value&&R.series===r.series);this.activeEntries.splice(b,1),this.activeEntries=[...this.activeEntries],this.deactivate.emit({value:r,entries:this.activeEntries})}}D2.\u0275fac=function(){let f;return function(i){return(f||(f=e.n5z(D2)))(i||D2)}}(),D2.\u0275cmp=e.Xpm({type:D2,selectors:[["ngx-charts-advanced-pie-chart"]],contentQueries:function(r,i,b){if(1&r&&e.Suo(b,Ir,5),2&r){let R;e.iGM(R=e.CRH())&&(i.tooltipTemplate=R.first)}},inputs:{gradient:"gradient",activeEntries:"activeEntries",tooltipDisabled:"tooltipDisabled",tooltipText:"tooltipText",label:"label",valueFormatting:"valueFormatting",nameFormatting:"nameFormatting",percentageFormatting:"percentageFormatting"},outputs:{activate:"activate",deactivate:"deactivate"},features:[e.qOj],decls:7,vars:37,consts:[[1,"advanced-pie","chart"],[3,"view","showLegend","animations"],[1,"pie","chart"],["ngx-charts-pie-series","",3,"colors","series","innerRadius","activeEntries","outerRadius","gradient","tooltipDisabled","tooltipTemplate","tooltipText","animations","select","activate","deactivate"],[1,"advanced-pie-legend-wrapper"],[3,"data","colors","width","label","animations","valueFormatting","labelFormatting","percentageFormatting","select","activate","deactivate"]],template:function(r,i){1&r&&(e.TgZ(0,"div")(1,"div",0)(2,"ngx-charts-chart",1),e.O4$(),e.TgZ(3,"g",2)(4,"g",3),e.NdJ("select",function(R){return i.onClick(R)})("activate",function(R){return i.onActivate(R)})("deactivate",function(R){return i.onDeactivate(R)}),e.qZA()()()(),e.kcU(),e.TgZ(5,"div",4)(6,"ngx-charts-advanced-legend",5),e.NdJ("select",function(R){return i.onClick(R)})("activate",function(R){return i.onActivate(R,!0)})("deactivate",function(R){return i.onDeactivate(R,!0)}),e.qZA()()()),2&r&&(e.Udp("width",i.width,"px")("height",i.height,"px"),e.xp6(1),e.Udp("width",i.dims.width,"px")("height",i.dims.height,"px"),e.xp6(1),e.Q6J("view",e.WLB(34,Ya,i.width,i.height))("showLegend",!1)("animations",i.animations),e.xp6(1),e.uIk("transform",i.transform),e.xp6(1),e.Q6J("colors",i.colors)("series",i.results)("innerRadius",i.innerRadius)("activeEntries",i.activeEntries)("outerRadius",i.outerRadius)("gradient",i.gradient)("tooltipDisabled",i.tooltipDisabled)("tooltipTemplate",i.tooltipTemplate)("tooltipText",i.tooltipText)("animations",i.animations),e.xp6(1),e.Udp("width",i.width-i.dims.width,"px")("height",i.height,"px"),e.xp6(1),e.Q6J("data",i.results)("colors",i.colors)("width",i.width-i.dims.width-i.margin[1])("label",i.label)("animations",i.animations)("valueFormatting",i.valueFormatting)("labelFormatting",i.nameFormatting)("percentageFormatting",i.percentageFormatting))},dependencies:[Qa,Ud,p2],styles:[$r,".advanced-pie{display:inline-block;float:left}.advanced-pie-legend-wrapper{display:inline-block}\n"],encapsulation:2,changeDetection:0});class e3 extends ja{constructor(){super(...arguments),this.labels=!1,this.legend=!1,this.legendTitle="Legend",this.legendPosition=hr.Right,this.explodeSlices=!1,this.doughnut=!1,this.arcWidth=.25,this.activeEntries=[],this.tooltipDisabled=!1,this.trimLabels=!0,this.maxLabelLength=10,this.dblclick=new e.vpe,this.select=new e.vpe,this.activate=new e.vpe,this.deactivate=new e.vpe}update(){super.update(),this.labels&&this.hasNoOptionalMarginsSet()?this.margins=[30,80,30,80]:!this.labels&&this.hasNoOptionalMarginsSet()&&(this.margins=[20,20,20,20]),this.dims=fr({width:this.width,height:this.height,margins:this.margins,showLegend:this.legend,legendPosition:this.legendPosition}),this.formatDates();const r=this.margins[3]+this.dims.width/2,i=this.margins[0]+this.dims.height/2;this.translation=`translate(${r}, ${i})`,this.outerRadius=Math.min(this.dims.width,this.dims.height),this.labels?this.outerRadius/=3:this.outerRadius/=2,this.innerRadius=0,this.doughnut&&(this.innerRadius=this.outerRadius*(1-this.arcWidth)),this.domain=this.getDomain(),this.data=this.results.sort((b,R)=>this.domain.indexOf(b.name)-this.domain.indexOf(R.name)),this.setColors(),this.legendOptions=this.getLegendOptions()}getDomain(){return this.results.map(r=>r.label)}onClick(r){this.select.emit(r)}setColors(){this.colors=new Lr(this.scheme,Cn.Ordinal,this.domain,this.customColors)}getLegendOptions(){return{scaleType:Cn.Ordinal,domain:this.domain,colors:this.colors,title:this.legendTitle,position:this.legendPosition}}onActivate(r,i=!1){r=this.results.find(R=>i?R.label===r.name:R.name===r.name),!(this.activeEntries.findIndex(R=>R.name===r.name&&R.value===r.value&&R.series===r.series)>-1)&&(this.activeEntries=[r,...this.activeEntries],this.activate.emit({value:r,entries:this.activeEntries}))}onDeactivate(r,i=!1){r=this.results.find(R=>i?R.label===r.name:R.name===r.name);const b=this.activeEntries.findIndex(R=>R.name===r.name&&R.value===r.value&&R.series===r.series);this.activeEntries.splice(b,1),this.activeEntries=[...this.activeEntries],this.deactivate.emit({value:r,entries:this.activeEntries})}hasNoOptionalMarginsSet(){return!this.margins||this.margins.length<=0}}function O6(f,r,i){let b=1,R=r;const Y=f.width;if(Y>i)for(;Y/R<i;)b+=1,R=Math.ceil(r/b);return[R,b]}function P6(f,r,i,b){const R=qr(),Y=qr(),me=f.width,Pe=f.height,[lt,gt]=O6(f,r.length,i),Et=[],Zt=[];for(let _n=0;_n<gt;_n++)Zt.push(_n);for(let _n=0;_n<lt;_n++)Et.push(_n);R.domain(Et),Y.domain(Zt),R.rangeRound([0,me],.1),Y.rangeRound([0,Pe],.1);const St=[],vn=b||function T_(f){return f.map(r=>r?r.value:0).reduce((r,i)=>r+i,0)}(r),wn=R.bandwidth(),Zn=Y.bandwidth();for(let _n=0;_n<r.length;_n++)St[_n]={},St[_n].data={name:r[_n]?r[_n].name:"",value:r[_n]?r[_n].value:void 0,extra:r[_n]?r[_n].extra:void 0,label:r[_n]?r[_n].label:""},St[_n].x=R(_n%lt),St[_n].y=Y(Math.floor(_n/lt)),St[_n].width=wn,St[_n].height=Zn,St[_n].data.percent=vn>0?St[_n].data.value/vn:0,St[_n].data.total=vn;return St}e3.\u0275fac=function(){let f;return function(i){return(f||(f=e.n5z(e3)))(i||e3)}}(),e3.\u0275cmp=e.Xpm({type:e3,selectors:[["ngx-charts-pie-chart"]],contentQueries:function(r,i,b){if(1&r&&e.Suo(b,Ir,5),2&r){let R;e.iGM(R=e.CRH())&&(i.tooltipTemplate=R.first)}},inputs:{labels:"labels",legend:"legend",legendTitle:"legendTitle",legendPosition:"legendPosition",explodeSlices:"explodeSlices",doughnut:"doughnut",arcWidth:"arcWidth",gradient:"gradient",activeEntries:"activeEntries",tooltipDisabled:"tooltipDisabled",labelFormatting:"labelFormatting",trimLabels:"trimLabels",maxLabelLength:"maxLabelLength",tooltipText:"tooltipText",margins:"margins"},outputs:{dblclick:"dblclick",select:"select",activate:"activate",deactivate:"deactivate"},features:[e.qOj],decls:3,vars:24,consts:[[3,"view","showLegend","legendOptions","activeEntries","animations","legendLabelActivate","legendLabelDeactivate","legendLabelClick"],[1,"pie-chart","chart"],["ngx-charts-pie-series","",3,"colors","series","showLabels","labelFormatting","trimLabels","maxLabelLength","activeEntries","innerRadius","outerRadius","explodeSlices","gradient","animations","tooltipDisabled","tooltipTemplate","tooltipText","dblclick","select","activate","deactivate"]],template:function(r,i){1&r&&(e.TgZ(0,"ngx-charts-chart",0),e.NdJ("legendLabelActivate",function(R){return i.onActivate(R,!0)})("legendLabelDeactivate",function(R){return i.onDeactivate(R,!0)})("legendLabelClick",function(R){return i.onClick(R)}),e.O4$(),e.TgZ(1,"g",1)(2,"g",2),e.NdJ("dblclick",function(R){return i.dblclick.emit(R)})("select",function(R){return i.onClick(R)})("activate",function(R){return i.onActivate(R)})("deactivate",function(R){return i.onDeactivate(R)}),e.qZA()()()),2&r&&(e.Q6J("view",e.WLB(21,Ya,i.width,i.height))("showLegend",i.legend)("legendOptions",i.legendOptions)("activeEntries",i.activeEntries)("animations",i.animations),e.xp6(1),e.uIk("transform",i.translation),e.xp6(1),e.Q6J("colors",i.colors)("series",i.data)("showLabels",i.labels)("labelFormatting",i.labelFormatting)("trimLabels",i.trimLabels)("maxLabelLength",i.maxLabelLength)("activeEntries",i.activeEntries)("innerRadius",i.innerRadius)("outerRadius",i.outerRadius)("explodeSlices",i.explodeSlices)("gradient",i.gradient)("animations",i.animations)("tooltipDisabled",i.tooltipDisabled)("tooltipTemplate",i.tooltipTemplate)("tooltipText",i.tooltipText))},dependencies:[Qa,Ud],styles:[$r,".pie-label{font-size:11px}.pie-label.animation{-webkit-animation:.75s ease-in fadeIn;animation:.75s ease-in fadeIn}@-webkit-keyframes fadeIn{0%{opacity:0}to{opacity:1}}@keyframes fadeIn{0%{opacity:0}to{opacity:1}}.pie-label-line{stroke-dasharray:100%}.pie-label-line.animation{-webkit-animation:3s linear drawOut;animation:3s linear drawOut;transition:d .75s}@-webkit-keyframes drawOut{0%{stroke-dashoffset:100%}to{stroke-dashoffset:0}}@keyframes drawOut{0%{stroke-dashoffset:100%}to{stroke-dashoffset:0}}\n"],encapsulation:2,changeDetection:0});class cu{constructor(r){this.innerRadius=70,this.outerRadius=80,this.animations=!0,this.select=new e.vpe,this.activate=new e.vpe,this.deactivate=new e.vpe,this.element=r.nativeElement}ngOnChanges(r){this.update()}update(){this.layout=fh().value(r=>r.data.value).sort(null),this.arcs=this.getArcs()}getArcs(){return this.layout(this.data).map((r,i)=>{const b=r.data.data.name,R=r.data.data.other;0===i&&(r.startAngle=0);const Y=this.colors(b);return{data:r.data.data,class:"arc arc"+i,fill:Y,startAngle:R?0:r.startAngle,endAngle:r.endAngle,animate:this.animations&&!R,pointerEvents:!R}})}onClick(r){this.select.emit(this.data[0].data)}trackBy(r,i){return i.data.name}label(r){return r.data.name}color(r){return this.colors(this.label(r))}}cu.\u0275fac=function(r){return new(r||cu)(e.Y36(e.SBq))},cu.\u0275cmp=e.Xpm({type:cu,selectors:[["g","ngx-charts-pie-grid-series",""]],inputs:{colors:"colors",data:"data",innerRadius:"innerRadius",outerRadius:"outerRadius",animations:"animations"},outputs:{select:"select",activate:"activate",deactivate:"deactivate"},features:[e.TTD],attrs:["ngx-charts-pie-grid-series",""],decls:2,vars:2,consts:[[1,"pie-grid-arcs"],["ngx-charts-pie-arc","",3,"startAngle","endAngle","innerRadius","outerRadius","fill","value","data","gradient","pointerEvents","animate","select","activate","deactivate",4,"ngFor","ngForOf","ngForTrackBy"],["ngx-charts-pie-arc","",3,"startAngle","endAngle","innerRadius","outerRadius","fill","value","data","gradient","pointerEvents","animate","select","activate","deactivate"]],template:function(r,i){1&r&&(e.O4$(),e.TgZ(0,"g",0),e.YNc(1,qf,1,11,"g",1),e.qZA()),2&r&&(e.xp6(1),e.Q6J("ngForOf",i.arcs)("ngForTrackBy",i.trackBy))},dependencies:[T1,t.sg],encapsulation:2,changeDetection:0});class Vd extends ja{constructor(){super(...arguments),this.tooltipDisabled=!1,this.label="Total",this.minWidth=150,this.activeEntries=[],this.activate=new e.vpe,this.deactivate=new e.vpe,this.margin=[20,20,20,20],this.placementTypes=Ri,this.styleTypes=Zs}update(){super.update(),this.dims=fr({width:this.width,height:this.height,margins:this.margin}),this.formatDates(),this.domain=this.getDomain(),this.data=P6(this.dims,this.results,this.minWidth,this.designatedTotal),this.transform=`translate(${this.margin[3]} , ${this.margin[0]})`,this.series=this.getSeries(),this.setColors(),this.tooltipText=this.tooltipText||this.defaultTooltipText}defaultTooltipText({data:r}){return`\n <span class="tooltip-label">${wl(Ur(r.name))}</span>\n <span class="tooltip-val">${r.value.toLocaleString()}</span>\n `}getDomain(){return this.results.map(r=>r.label)}getSeries(){const r=this.designatedTotal?this.designatedTotal:this.getTotal();return this.data.map(i=>{const Y=i.data.name,me=Ur(Y),Pe=i.data.value,lt=Q1([i.width-10,i.height-20])/2-5,gt=.9*lt;let Et=0;return{transform:`translate(${i.x+(i.width-10)/2}, ${i.y+(i.height-20)/2})`,colors:()=>(Et+=1,1===Et?"rgba(100,100,100,0.3)":this.colorScale.getColor(me)),innerRadius:gt,outerRadius:lt,name:Y,label:wl(me),total:Pe,value:Pe,percent:el(".1%")(i.data.percent),data:[i,{data:{other:!0,value:r-Pe,name:i.data.name}}]}})}getTotal(){return this.results.map(r=>r.value).reduce((r,i)=>r+i,0)}onClick(r){this.select.emit(r)}setColors(){this.colorScale=new Lr(this.scheme,Cn.Ordinal,this.domain,this.customColors)}onActivate(r,i=!1){r=this.results.find(R=>i?R.label===r.name:R.name===r.name),!(this.activeEntries.findIndex(R=>R.name===r.name&&R.value===r.value&&R.series===r.series)>-1)&&(this.activeEntries=[r,...this.activeEntries],this.activate.emit({value:r,entries:this.activeEntries}))}onDeactivate(r,i=!1){r=this.results.find(R=>i?R.label===r.name:R.name===r.name);const b=this.activeEntries.findIndex(R=>R.name===r.name&&R.value===r.value&&R.series===r.series);this.activeEntries.splice(b,1),this.activeEntries=[...this.activeEntries],this.deactivate.emit({value:r,entries:this.activeEntries})}}Vd.\u0275fac=function(){let f;return function(i){return(f||(f=e.n5z(Vd)))(i||Vd)}}(),Vd.\u0275cmp=e.Xpm({type:Vd,selectors:[["ngx-charts-pie-grid"]],contentQueries:function(r,i,b){if(1&r&&e.Suo(b,Ir,5),2&r){let R;e.iGM(R=e.CRH())&&(i.tooltipTemplate=R.first)}},inputs:{designatedTotal:"designatedTotal",tooltipDisabled:"tooltipDisabled",tooltipText:"tooltipText",label:"label",minWidth:"minWidth",activeEntries:"activeEntries"},outputs:{activate:"activate",deactivate:"deactivate"},features:[e.qOj],decls:3,vars:8,consts:[[3,"view","showLegend","animations"],[1,"pie-grid","chart"],["class","pie-grid-item",4,"ngFor","ngForOf"],[1,"pie-grid-item"],["ngx-charts-pie-grid-series","","ngx-tooltip","",3,"colors","data","innerRadius","outerRadius","animations","tooltipDisabled","tooltipPlacement","tooltipType","tooltipTitle","tooltipTemplate","tooltipContext","select","activate","deactivate"],["class","label percent-label","dy","-0.5em","x","0","y","5","ngx-charts-count-up","","text-anchor","middle",3,"countTo","countSuffix",4,"ngIf"],["class","label percent-label","dy","-0.5em","x","0","y","5","text-anchor","middle",4,"ngIf"],["dy","0.5em","x","0","y","5","text-anchor","middle",1,"label"],["class","label","dy","1.23em","x","0","text-anchor","middle","ngx-charts-count-up","",3,"countTo","countPrefix",4,"ngIf"],["class","label","dy","1.23em","x","0","text-anchor","middle",4,"ngIf"],["dy","-0.5em","x","0","y","5","ngx-charts-count-up","","text-anchor","middle",1,"label","percent-label",3,"countTo","countSuffix"],["dy","-0.5em","x","0","y","5","text-anchor","middle",1,"label","percent-label"],["dy","1.23em","x","0","text-anchor","middle","ngx-charts-count-up","",1,"label",3,"countTo","countPrefix"],["dy","1.23em","x","0","text-anchor","middle",1,"label"]],template:function(r,i){1&r&&(e.TgZ(0,"ngx-charts-chart",0),e.O4$(),e.TgZ(1,"g",1),e.YNc(2,C6,8,19,"g",2),e.qZA()()),2&r&&(e.Q6J("view",e.WLB(5,Ya,i.width,i.height))("showLegend",!1)("animations",i.animations),e.xp6(1),e.uIk("transform",i.transform),e.xp6(1),e.Q6J("ngForOf",i.series))},dependencies:[Qa,cu,kc,t.sg,ho,t.O5],styles:[$r,".pie-grid .arc1{opacity:.4}.pie-grid .percent-label{font-size:16px;font-weight:400}\n"],encapsulation:2,changeDetection:0});class Sl{}Sl.\u0275fac=function(r){return new(r||Sl)},Sl.\u0275mod=e.oAB({type:Sl}),Sl.\u0275inj=e.cJS({imports:[[Ds]]});class Wd{}function _p(f,r,i=8){return r.split("").reduce((b,R)=>b+(f[R]||i),0)}Wd.\u0275fac=function(r){return new(r||Wd)},Wd.\u0275mod=e.oAB({type:Wd}),Wd.\u0275inj=e.cJS({imports:[[Ds,Sl,A1]]});const R4={0:10,1:10,2:10,3:10,4:10,5:10,6:10,7:10,8:10,9:10,A:11,B:11,C:11,D:12,E:10,F:9,G:12,H:12,I:7,J:7,K:11,L:9,M:13,N:12,O:13,P:10,Q:13,R:11,S:11,T:10,U:12,V:11,W:16,X:11,Y:10,Z:11,a:10,b:10,c:8,d:10,e:10,f:6,g:10,h:10,i:4,j:6,k:9,l:4,m:16,n:10,o:10,p:10,q:10,r:7,s:8,t:6,u:10,v:9,w:13,x:9,y:9,z:8,"!":6,"@":16,"#":13,$:10,"%":17,"^":13,"&":12,"*":10,"(":7,")":7,_:10,"-":7,"+":13,"=":13,",":6,".":6,"/":7,"'":4,":":7,"|":7,"?":9,";":7,"<":13,">":13};class ac{constructor(r,i,b,R){this.cd=i,this.zone=b,this.platformId=R,this.animations=!0,this.select=new e.vpe,this.value="",this.textFontSize=12,this.textTransform="",this.initialized=!1,this.bandHeight=10,this.textPadding=[10,20,5,20],this.labelFontSize=15,this.element=r.nativeElement}ngOnChanges(r){this.update()}ngOnInit(){(0,t.PM)(this.platformId)&&this.scaleTextSSR()}ngOnDestroy(){(0,t.NF)(this.platformId)&&cancelAnimationFrame(this.animationReq)}update(){this.zone.run(()=>{const r=this.data&&typeof this.data.value<"u",i=this.valueFormatting||(me=>me.value.toLocaleString()),b=this.labelFormatting||(me=>fs(wl(me.label,55)));this.transform=`translate(${this.x} , ${this.y})`,this.textWidth=Math.max(0,this.width)-this.textPadding[1]-this.textPadding[3],this.cardWidth=Math.max(0,this.width),this.cardHeight=Math.max(0,this.height),this.label=this.label?this.label:this.data.name;const R={label:this.label,data:this.data,value:this.data.value};this.formattedLabel=b(R),this.transformBand=`translate(0 , ${this.cardHeight-this.bandHeight})`;const Y=r?i(R):"";this.value=this.paddedValue(Y),this.setPadding(),this.bandPath=ol(0,0,this.cardWidth,this.bandHeight,3,[!1,!1,!0,!0]),setTimeout(()=>{(0,t.NF)(this.platformId)&&this.scaleText(),this.value=Y,r&&!this.initialized&&setTimeout(()=>this.startCount(),20)},8)})}paddedValue(r){return this.medianSize&&this.medianSize>r.length&&(r+="\u2007".repeat(this.medianSize-r.length)),r}startCount(){if(!this.initialized&&this.animations){cancelAnimationFrame(this.animationReq);const r=this.data.value,i=Qh(r),b=this.valueFormatting||(Y=>Y.value.toLocaleString()),R=({value:Y,finished:me})=>{this.zone.run(()=>{Y=me?r:Y,this.value=b({label:this.label,data:this.data,value:Y}),me||(this.value=this.paddedValue(this.value)),this.cd.markForCheck()})};this.animationReq=dp(0,r,i,1,R),this.initialized=!0}}scaleText(){this.zone.run(()=>{const{width:r,height:i}=this.textEl.nativeElement.getBoundingClientRect();if(0===r||0===i)return;const b=this.textPadding[1]=this.textPadding[3]=this.cardWidth/8,R=this.cardWidth-2*b,Y=this.cardHeight/3,me=Math.min(R/r,Y/i);this.textFontSize=Math.floor(this.textFontSize*me),this.labelFontSize=Math.min(this.textFontSize,15),this.setPadding(),this.cd.markForCheck()})}scaleTextSSR(){const r=_p(R4,this.value,10),b=this.textPadding[1]=this.textPadding[3]=this.cardWidth/8,R=this.cardWidth-2*b,Y=this.cardHeight/3,me=Math.min(R/r,Y/18);this.textFontSize=Math.floor(this.textFontSize*me),this.labelFontSize=Math.min(this.textFontSize,15),this.setPadding()}setPadding(){this.textPadding[1]=this.textPadding[3]=this.cardWidth/8;const r=this.cardHeight/2;this.textPadding[0]=r-this.textFontSize-this.labelFontSize/2,this.textPadding[2]=r-this.labelFontSize}onClick(){this.select.emit(this.data)}}function mp(f){const r=xa(f),{r:i,g:b,b:R,opacity:Y}=r;if(0===Y)return r.toString();return function gp({r:f,g:r,b:i},b){const R=b<0?0:255,Y=b<0?-1*b:b;return f=Math.round((R-f)*Y)+f,r=Math.round((R-r)*Y)+r,i=Math.round((R-i)*Y)+i,`rgb(${f}, ${r}, ${i})`}(r,(299*i+587*b+114*R)/1e3>=128?-.8:.8)}ac.\u0275fac=function(r){return new(r||ac)(e.Y36(e.SBq),e.Y36(e.sBO),e.Y36(e.R0b),e.Y36(e.Lbi))},ac.\u0275cmp=e.Xpm({type:ac,selectors:[["g","ngx-charts-card",""]],viewQuery:function(r,i){if(1&r&&e.Gf(T4,5),2&r){let b;e.iGM(b=e.CRH())&&(i.textEl=b.first)}},inputs:{color:"color",bandColor:"bandColor",textColor:"textColor",x:"x",y:"y",width:"width",height:"height",label:"label",data:"data",medianSize:"medianSize",valueFormatting:"valueFormatting",labelFormatting:"labelFormatting",animations:"animations"},outputs:{select:"select"},features:[e.TTD],attrs:["ngx-charts-card",""],decls:10,vars:25,consts:[[1,"cell",3,"click"],["rx","3","ry","3",1,"card"],["class","card-band","stroke","none",4,"ngIf"],["x","5","alignment-baseline","hanging",1,"trimmed-label"],[3,"innerHTML"],["text-anchor","start","alignment-baseline","hanging",1,"value-text"],["textEl",""],["stroke","none",1,"card-band"]],template:function(r,i){1&r&&(e.O4$(),e.TgZ(0,"g",0),e.NdJ("click",function(){return i.onClick()}),e._UZ(1,"rect",1),e.YNc(2,g1,1,3,"path",2),e.TgZ(3,"title"),e._uU(4),e.qZA(),e.TgZ(5,"foreignObject",3),e.kcU(),e._UZ(6,"p",4),e.qZA(),e.O4$(),e.TgZ(7,"text",5,6),e._uU(9),e.qZA()()),2&r&&(e.uIk("transform",i.transform),e.xp6(1),e.Udp("fill",i.color),e.uIk("width",i.cardWidth)("height",i.cardHeight),e.xp6(1),e.Q6J("ngIf",i.bandColor&&i.bandColor!==i.color),e.xp6(2),e.Oqu(i.label),e.xp6(1),e.uIk("x",i.textPadding[3])("y",i.cardHeight-i.textPadding[2])("width",i.textWidth)("height",i.labelFontSize+i.textPadding[2]),e.xp6(1),e.Udp("color",i.textColor)("font-size",i.labelFontSize,"px")("line-height",i.labelFontSize,"px"),e.Q6J("innerHTML",i.formattedLabel,e.oJD),e.xp6(1),e.Udp("fill",i.textColor)("font-size",i.textFontSize,"pt"),e.uIk("x",i.textPadding[3])("y",i.textPadding[0]),e.xp6(2),e.hij(" ",i.value," "))},dependencies:[t.O5],encapsulation:2,changeDetection:0});class du{constructor(){this.innerPadding=15,this.emptyColor="rgba(0, 0, 0, 0)",this.animations=!0,this.select=new e.vpe}ngOnChanges(r){this.update()}update(){if(this.data.length>2){const i=this.valueFormatting||(Y=>Y.value.toLocaleString()),b=this.data.map(Y=>Y&&Y.data&&typeof Y.data.value<"u"&&null!==Y.data.value?i({data:Y.data,label:Y?Y.data.name:"",value:Y&&Y.data?Y.data.value:""}).length:0).sort((Y,me)=>me-Y),R=Math.ceil(this.data.length/2);this.medianSize=b[R]}const r=this.getCards();this.cards=r.filter(i=>null!==i.data.value),this.emptySlots=r.filter(i=>null===i.data.value)}getCards(){const r="number"==typeof this.innerPadding?this.innerPadding:this.innerPadding[0]+this.innerPadding[2],i="number"==typeof this.innerPadding?this.innerPadding:this.innerPadding[1]+this.innerPadding[3];return this.data.map((b,R)=>{let Y=b.data.name;Y=Y&&"Date"===Y.constructor.name?Y.toLocaleDateString():Y&&Y.toLocaleString();const me=b.data.value,Pe=Y?this.colors.getColor(Y):this.emptyColor,lt=this.cardColor||Pe||"#000";return{x:b.x,y:b.y,width:b.width-i,height:b.height-r,color:lt,bandColor:this.bandColor||Pe,textColor:this.textColor||mp(lt),label:Y,data:b.data,tooltipText:`${Y}: ${me}`}})}trackBy(r,i){return i.label}onClick(r){this.select.emit(r)}}du.\u0275fac=function(r){return new(r||du)},du.\u0275cmp=e.Xpm({type:du,selectors:[["g","ngx-charts-card-series",""]],inputs:{data:"data",dims:"dims",colors:"colors",innerPadding:"innerPadding",cardColor:"cardColor",bandColor:"bandColor",emptyColor:"emptyColor",textColor:"textColor",valueFormatting:"valueFormatting",labelFormatting:"labelFormatting",animations:"animations"},outputs:{select:"select"},features:[e.TTD],attrs:["ngx-charts-card-series",""],decls:2,vars:4,consts:[["class","card-empty","rx","3","ry","3",3,"fill",4,"ngFor","ngForOf","ngForTrackBy"],["ngx-charts-card","",3,"x","y","width","height","color","bandColor","textColor","data","label","medianSize","valueFormatting","labelFormatting","animations","select",4,"ngFor","ngForOf","ngForTrackBy"],["rx","3","ry","3",1,"card-empty"],["ngx-charts-card","",3,"x","y","width","height","color","bandColor","textColor","data","label","medianSize","valueFormatting","labelFormatting","animations","select"]],template:function(r,i){1&r&&(e.YNc(0,M6,1,6,"rect",0),e.YNc(1,Yh,1,13,"g",1)),2&r&&(e.Q6J("ngForOf",i.emptySlots)("ngForTrackBy",i.trackBy),e.xp6(1),e.Q6J("ngForOf",i.cards)("ngForTrackBy",i.trackBy))},dependencies:[ac,t.sg],encapsulation:2,changeDetection:0});class uu extends ja{constructor(){super(...arguments),this.emptyColor="rgba(0, 0, 0, 0)",this.innerPadding=15,this.margin=[10,10,10,10]}get clickable(){return!!this.select.observers.length}update(){super.update(),this.dims=fr({width:this.width,height:this.height,margins:this.margin}),this.formatDates(),this.domain=this.getDomain(),this.setColors(),this.transform=`translate(${this.dims.xOffset} , ${this.margin[0]})`;const r=O6(this.dims,this.results.length,150),i=r[0]*r[1],b=this.results.slice();for(;b.length<i;)b.push({value:null});this.data=P6(this.dims,b,150,this.designatedTotal)}getDomain(){return this.results.map(r=>r.label)}onClick(r){this.select.emit(r)}setColors(){this.colors=new Lr(this.scheme,Cn.Ordinal,this.domain,this.customColors)}}uu.\u0275fac=function(){let f;return function(i){return(f||(f=e.n5z(uu)))(i||uu)}}(),uu.\u0275cmp=e.Xpm({type:uu,selectors:[["ngx-charts-number-card"]],inputs:{cardColor:"cardColor",bandColor:"bandColor",emptyColor:"emptyColor",innerPadding:"innerPadding",textColor:"textColor",valueFormatting:"valueFormatting",labelFormatting:"labelFormatting",designatedTotal:"designatedTotal"},features:[e.qOj],decls:3,vars:20,consts:[[3,"view","showLegend","animations"],[1,"number-card","chart"],["ngx-charts-card-series","",3,"colors","cardColor","bandColor","textColor","emptyColor","data","dims","innerPadding","valueFormatting","labelFormatting","animations","select"]],template:function(r,i){1&r&&(e.TgZ(0,"ngx-charts-chart",0),e.O4$(),e.TgZ(1,"g",1)(2,"g",2),e.NdJ("select",function(R){return i.onClick(R)}),e.qZA()()()),2&r&&(e.Q6J("view",e.WLB(17,Ya,i.width,i.height))("showLegend",!1)("animations",i.animations),e.xp6(1),e.ekj("clickable",i.clickable),e.uIk("transform",i.transform),e.xp6(1),e.Q6J("colors",i.colors)("cardColor",i.cardColor)("bandColor",i.bandColor)("textColor",i.textColor)("emptyColor",i.emptyColor)("data",i.data)("dims",i.dims)("innerPadding",i.innerPadding)("valueFormatting",i.valueFormatting)("labelFormatting",i.labelFormatting)("animations",i.animations))},dependencies:[Qa,du],styles:[$r,"ngx-charts-number-card .cell .trimmed-label{font-size:12px;pointer-events:none;overflow:hidden;text-align:left;line-height:1em}ngx-charts-number-card .cell .trimmed-label p{overflow:hidden;white-space:nowrap;text-overflow:ellipsis;width:100%;padding:0;margin:0}ngx-charts-number-card .cell .value-text{pointer-events:none}ngx-charts-number-card .number-card.clickable .cell .card,ngx-charts-number-card .number-card.clickable .cell .card-band{cursor:pointer}\n"],encapsulation:2,changeDetection:0});class A2{}A2.\u0275fac=function(r){return new(r||A2)},A2.\u0275mod=e.oAB({type:A2}),A2.\u0275inj=e.cJS({imports:[[Ds]]});class Kd{constructor(r){this.gradient=!1,this.animations=!0,this.select=new e.vpe,this.initialized=!1,this.orientation=Fa,this.element=r.nativeElement}ngOnChanges(){this.update(),this.valueFormatting=this.valueFormatting||(b=>b.toLocaleString());const r=this.labelFormatting||(b=>fs(wl(b.label,55))),i={data:this.data,label:this.label,value:this.value};this.formattedValue=this.valueFormatting(i.value),this.formattedLabel=r(i),this.gradientId="grad"+Ys().toString(),this.gradientUrl=`url(#${this.gradientId})`,this.gradientStops=this.getGradientStops()}update(){this.initialized?this.animateToCurrentForm():(this.animations&&this.loadAnimation(),this.initialized=!0)}loadAnimation(){Ln(this.element).select(".cell").attr("opacity",0).attr("x",this.x).attr("y",this.y),this.animateToCurrentForm()}getTextColor(){return mp(this.fill)}animateToCurrentForm(){const r=Ln(this.element).select(".cell");this.animations?r.transition().duration(750).attr("opacity",1).attr("x",this.x).attr("y",this.y).attr("width",this.width).attr("height",this.height):r.attr("opacity",1).attr("x",this.x).attr("y",this.y).attr("width",this.width).attr("height",this.height)}onClick(){this.select.emit(this.data)}getGradientStops(){return[{offset:0,color:this.fill,opacity:.3},{offset:100,color:this.fill,opacity:1}]}}Kd.\u0275fac=function(r){return new(r||Kd)(e.Y36(e.SBq))},Kd.\u0275cmp=e.Xpm({type:Kd,selectors:[["g","ngx-charts-tree-map-cell",""]],inputs:{data:"data",fill:"fill",x:"x",y:"y",width:"width",height:"height",label:"label",value:"value",valueFormatting:"valueFormatting",labelFormatting:"labelFormatting",gradient:"gradient",animations:"animations"},outputs:{select:"select"},features:[e.TTD],attrs:["ngx-charts-tree-map-cell",""],decls:4,vars:7,consts:[[4,"ngIf"],[1,"cell",3,"click"],["class","treemap-label",3,"pointer-events",4,"ngIf"],["ngx-charts-svg-linear-gradient","",3,"orientation","name","stops"],[1,"treemap-label"],[1,"treemap-label",3,"innerHTML"],["class","treemap-val","ngx-charts-count-up","",3,"countTo","valueFormatting",4,"ngIf"],["class","treemap-val",4,"ngIf"],["ngx-charts-count-up","",1,"treemap-val",3,"countTo","valueFormatting"],[1,"treemap-val"]],template:function(r,i){1&r&&(e.O4$(),e.TgZ(0,"g"),e.YNc(1,D_,2,3,"defs",0),e.TgZ(2,"rect",1),e.NdJ("click",function(){return i.onClick()}),e.qZA(),e.YNc(3,ep,6,15,"foreignObject",2),e.qZA()),2&r&&(e.xp6(1),e.Q6J("ngIf",i.gradient),e.xp6(1),e.uIk("fill",i.gradient?i.gradientUrl:i.fill)("width",i.width)("height",i.height)("x",i.x)("y",i.y),e.xp6(1),e.Q6J("ngIf",i.width>=70&&i.height>=35))},dependencies:[ll,kc,t.O5],encapsulation:2,changeDetection:0});class Gd{constructor(){this.gradient=!1,this.tooltipDisabled=!1,this.animations=!0,this.select=new e.vpe,this.styleTypes=Zs,this.placementTypes=Ri}ngOnChanges(r){this.cells=this.getCells()}getCells(){return this.data.children.filter(r=>1===r.depth).map((r,i)=>{const b=r.id;return{data:r.data,x:r.x0,y:r.y0,width:r.x1-r.x0,height:r.y1-r.y0,fill:this.colors.getColor(b),label:b,value:r.value}})}getTooltipText({label:r,value:i}){return`\n <span class="tooltip-label">${fs(r)}</span>\n <span class="tooltip-val">${i.toLocaleString()}</span>\n `}onClick(r){this.select.emit(r)}trackBy(r,i){return i.label}}Gd.\u0275fac=function(r){return new(r||Gd)},Gd.\u0275cmp=e.Xpm({type:Gd,selectors:[["g","ngx-charts-tree-map-cell-series",""]],inputs:{data:"data",dims:"dims",colors:"colors",valueFormatting:"valueFormatting",labelFormatting:"labelFormatting",gradient:"gradient",tooltipDisabled:"tooltipDisabled",tooltipTemplate:"tooltipTemplate",animations:"animations"},outputs:{select:"select"},features:[e.TTD],attrs:["ngx-charts-tree-map-cell-series",""],decls:1,vars:2,consts:[["ngx-charts-tree-map-cell","","ngx-tooltip","",3,"data","x","y","width","height","fill","label","value","valueFormatting","labelFormatting","gradient","animations","tooltipDisabled","tooltipPlacement","tooltipType","tooltipTitle","tooltipTemplate","tooltipContext","select",4,"ngFor","ngForOf","ngForTrackBy"],["ngx-charts-tree-map-cell","","ngx-tooltip","",3,"data","x","y","width","height","fill","label","value","valueFormatting","labelFormatting","gradient","animations","tooltipDisabled","tooltipPlacement","tooltipType","tooltipTitle","tooltipTemplate","tooltipContext","select"]],template:function(r,i){1&r&&e.YNc(0,Hr,1,18,"g",0),2&r&&e.Q6J("ngForOf",i.cells)("ngForTrackBy",i.trackBy)},dependencies:[Kd,t.sg,ho],encapsulation:2,changeDetection:0});class rc extends ja{constructor(){super(...arguments),this.tooltipDisabled=!1,this.gradient=!1,this.select=new e.vpe,this.margin=[10,10,10,10]}update(){super.update(),this.dims=fr({width:this.width,height:this.height,margins:this.margin}),this.domain=this.getDomain(),this.treemap=function Z3(){var f=mh,r=!1,i=1,b=1,R=[0],Y=t2,me=t2,Pe=t2,lt=t2,gt=t2;function Et(St){return St.x0=St.y0=0,St.x1=i,St.y1=b,St.eachBefore(Zt),R=[0],r&&St.eachBefore(ph),St}function Zt(St){var vn=R[St.depth],wn=St.x0+vn,Zn=St.y0+vn,_n=St.x1-vn,jn=St.y1-vn;_n<wn&&(wn=_n=(wn+_n)/2),jn<Zn&&(Zn=jn=(Zn+jn)/2),St.x0=wn,St.y0=Zn,St.x1=_n,St.y1=jn,St.children&&(vn=R[St.depth+1]=Y(St)/2,wn+=gt(St)-vn,Zn+=me(St)-vn,(_n-=Pe(St)-vn)<wn&&(wn=_n=(wn+_n)/2),(jn-=lt(St)-vn)<Zn&&(Zn=jn=(Zn+jn)/2),f(St,wn,Zn,_n,jn))}return Et.round=function(St){return arguments.length?(r=!!St,Et):r},Et.size=function(St){return arguments.length?(i=+St[0],b=+St[1],Et):[i,b]},Et.tile=function(St){return arguments.length?(f=Dl(St),Et):f},Et.padding=function(St){return arguments.length?Et.paddingInner(St).paddingOuter(St):Et.paddingInner()},Et.paddingInner=function(St){return arguments.length?(Y="function"==typeof St?St:$l(+St),Et):Y},Et.paddingOuter=function(St){return arguments.length?Et.paddingTop(St).paddingRight(St).paddingBottom(St).paddingLeft(St):Et.paddingTop()},Et.paddingTop=function(St){return arguments.length?(me="function"==typeof St?St:$l(+St),Et):me},Et.paddingRight=function(St){return arguments.length?(Pe="function"==typeof St?St:$l(+St),Et):Pe},Et.paddingBottom=function(St){return arguments.length?(lt="function"==typeof St?St:$l(+St),Et):lt},Et.paddingLeft=function(St){return arguments.length?(gt="function"==typeof St?St:$l(+St),Et):gt},Et}().size([this.dims.width,this.dims.height]);const i=function xn(){var f=jt,r=on;function i(b){var me,Pe,lt,gt,Et,Zt,St,R=Array.from(b),Y=R.length,vn=new Map;for(Pe=0;Pe<Y;++Pe)me=R[Pe],Et=R[Pe]=new ge(me),null!=(Zt=f(me,Pe,b))&&(Zt+="")&&(St=Et.id=Zt,vn.set(St,vn.has(St)?kt:Et)),null!=(Zt=r(me,Pe,b))&&(Zt+="")&&(Et.parent=Zt);for(Pe=0;Pe<Y;++Pe)if(Zt=(Et=R[Pe]).parent){if(!(gt=vn.get(Zt)))throw new Error("missing: "+Zt);if(gt===kt)throw new Error("ambiguous: "+Zt);gt.children?gt.children.push(Et):gt.children=[Et],Et.parent=gt}else{if(lt)throw new Error("multiple roots");lt=Et}if(!lt)throw new Error("no root");if(lt.parent=nt,lt.eachBefore(function(wn){wn.depth=wn.parent.depth+1,--Y}).eachBefore(V),lt.parent=null,Y>0)throw new Error("cycle");return lt}return i.id=function(b){return arguments.length?(f=Dl(b),i):f},i.parentId=function(b){return arguments.length?(r=Dl(b),i):r},i}().id(b=>{let R=b.name;return R="Date"===R.constructor.name?R.toLocaleDateString():R.toLocaleString(),R}).parentId(b=>b.isRoot?null:"root")([{name:"root",value:0,isRoot:!0},...this.results]).sum(b=>b.value);this.data=this.treemap(i),this.setColors(),this.transform=`translate(${this.dims.xOffset} , ${this.margin[0]})`}getDomain(){return this.results.map(r=>r.name)}onClick(r){this.select.emit(r)}setColors(){this.colors=new Lr(this.scheme,Cn.Ordinal,this.domain,this.customColors)}}rc.\u0275fac=function(){let f;return function(i){return(f||(f=e.n5z(rc)))(i||rc)}}(),rc.\u0275cmp=e.Xpm({type:rc,selectors:[["ngx-charts-tree-map"]],contentQueries:function(r,i,b){if(1&r&&e.Suo(b,Ir,5),2&r){let R;e.iGM(R=e.CRH())&&(i.tooltipTemplate=R.first)}},inputs:{results:"results",tooltipDisabled:"tooltipDisabled",valueFormatting:"valueFormatting",labelFormatting:"labelFormatting",gradient:"gradient"},outputs:{select:"select"},features:[e.qOj],decls:3,vars:16,consts:[[3,"view","showLegend","animations"],[1,"tree-map","chart"],["ngx-charts-tree-map-cell-series","",3,"colors","data","dims","tooltipDisabled","tooltipTemplate","valueFormatting","labelFormatting","gradient","animations","select"]],template:function(r,i){1&r&&(e.TgZ(0,"ngx-charts-chart",0),e.O4$(),e.TgZ(1,"g",1)(2,"g",2),e.NdJ("select",function(R){return i.onClick(R)}),e.qZA()()()),2&r&&(e.Q6J("view",e.WLB(13,Ya,i.width,i.height))("showLegend",!1)("animations",i.animations),e.xp6(1),e.uIk("transform",i.transform),e.xp6(1),e.Q6J("colors",i.colors)("data",i.data)("dims",i.dims)("tooltipDisabled",i.tooltipDisabled)("tooltipTemplate",i.tooltipTemplate)("valueFormatting",i.valueFormatting)("labelFormatting",i.labelFormatting)("gradient",i.gradient)("animations",i.animations))},dependencies:[Qa,Gd],styles:[".tree-map .treemap-val{font-size:1.3em;padding-top:5px;display:inline-block}.tree-map .treemap-label p{display:table-cell;text-align:center;line-height:1.2em;vertical-align:middle}\n"],encapsulation:2,changeDetection:0});class Zd{}var Hc;Zd.\u0275fac=function(r){return new(r||Zd)},Zd.\u0275mod=e.oAB({type:Zd}),Zd.\u0275inj=e.cJS({imports:[[Ds]]}),function(f){f.Value="value",f.Units="units"}(Hc||(Hc={}));class hu extends ja{constructor(){super(...arguments),this.min=0,this.max=100,this.value=0,this.margin=[10,20,10,20],this.valueResizeScale=1,this.unitsResizeScale=1,this.valueTextTransform="",this.valueTranslate="",this.unitsTextTransform="",this.unitsTranslate="",this.barOrientation=Fa}ngAfterViewInit(){super.ngAfterViewInit(),setTimeout(()=>{this.scaleText(Hc.Value),this.scaleText(Hc.Units)})}update(){super.update(),this.hasPreviousValue=void 0!==this.previousValue,this.max=Math.max(this.max,this.value),this.min=Math.min(this.min,this.value),this.hasPreviousValue&&(this.max=Math.max(this.max,this.previousValue),this.min=Math.min(this.min,this.previousValue)),this.dims=fr({width:this.width,height:this.height,margins:this.margin}),this.valueDomain=this.getValueDomain(),this.valueScale=this.getValueScale(),this.displayValue=this.getDisplayValue(),this.setColors();const r=this.margin[3]+this.dims.width/2,i=this.margin[0]+this.dims.height/2;this.transform=`translate(${r}, ${i})`,this.transformLine=`translate(${this.margin[3]+this.valueScale(this.previousValue)}, ${i})`,this.valueTranslate="translate(0, -15)",this.unitsTranslate="translate(0, 15)",(0,t.PM)(this.platformId)?(this.scaleTextSSR("value"),this.scaleTextSSR("units")):(setTimeout(()=>this.scaleText(Hc.Value),50),setTimeout(()=>this.scaleText(Hc.Units),50))}getValueDomain(){return[this.min,this.max]}getValueScale(){return Ga().range([0,this.dims.width]).domain(this.valueDomain)}getDisplayValue(){return this.valueFormatting?this.valueFormatting(this.value):this.value.toLocaleString()}scaleText(r,i=!0){let b,R;r===Hc.Value?(b=this.valueTextEl,R=this.valueResizeScale):(b=this.unitsTextEl,R=this.unitsResizeScale);const{width:Y,height:me}=b.nativeElement.getBoundingClientRect();if(0===Y||0===me)return;const Pe=R,lt=this.dims.width,gt=Math.max(this.dims.height/2-15,0),Et=Math.floor(lt/(Y/R)*100)/100,Zt=Math.floor(gt/(me/R)*100)/100;R=Math.min(Zt,Et),R!==Pe&&(r===Hc.Value?(this.valueResizeScale=R,this.valueTextTransform=`scale(${R}, ${R})`):(this.unitsResizeScale=R,this.unitsTextTransform=`scale(${R}, ${R})`),this.cd.markForCheck(),i&&(0,t.NF)(this.platformId)&&setTimeout(()=>{this.scaleText(r,!1)},50))}scaleTextSSR(r){let i=1;const b="value"===r?this.displayValue:this.units,R=_p(R4,b,10),me=this.dims.width,Pe=Math.max(this.dims.height/2-15,0),lt=Math.floor(me/(R/i)*100)/100,gt=Math.floor(Pe/(25/i)*100)/100;i=Math.min(gt,lt),"value"===r?(this.valueResizeScale=i,this.valueTextTransform=`scale(${i}, ${i})`):(this.unitsResizeScale=i,this.unitsTextTransform=`scale(${i}, ${i})`),this.cd.markForCheck()}onClick(){this.select.emit({name:"Value",value:this.value})}setColors(){this.colors=new Lr(this.scheme,Cn.Ordinal,[this.value],this.customColors)}}hu.\u0275fac=function(){let f;return function(i){return(f||(f=e.n5z(hu)))(i||hu)}}(),hu.\u0275cmp=e.Xpm({type:hu,selectors:[["ngx-charts-linear-gauge"]],viewQuery:function(r,i){if(1&r&&(e.Gf(tp,5),e.Gf(A6,5)),2&r){let b;e.iGM(b=e.CRH())&&(i.valueTextEl=b.first),e.iGM(b=e.CRH())&&(i.unitsTextEl=b.first)}},inputs:{min:"min",max:"max",value:"value",units:"units",previousValue:"previousValue",valueFormatting:"valueFormatting"},features:[e.qOj],decls:15,vars:38,consts:[[3,"view","showLegend","animations","click"],[1,"linear-gauge","chart"],["ngx-charts-bar","",1,"background-bar",3,"width","height","x","y","data","orientation","roundEdges","animations"],["ngx-charts-bar","",3,"width","height","x","y","fill","data","orientation","roundEdges","animations"],["x1","0","y1","5","x2","0","y2","15",4,"ngIf"],["x1","0","y1","-5","x2","0","y2","-15",4,"ngIf"],["alignment-baseline","after-edge",1,"value"],["valueTextEl",""],["alignment-baseline","before-edge",1,"units"],["unitsTextEl",""],["x1","0","y1","5","x2","0","y2","15"],["x1","0","y1","-5","x2","0","y2","-15"]],template:function(r,i){1&r&&(e.TgZ(0,"ngx-charts-chart",0),e.NdJ("click",function(){return i.onClick()}),e.O4$(),e.TgZ(1,"g",1),e._UZ(2,"g",2)(3,"g",3),e.YNc(4,T6,1,2,"line",4),e.YNc(5,np,1,2,"line",5),e.TgZ(6,"g")(7,"g")(8,"text",6,7),e._uU(10),e.qZA()(),e.TgZ(11,"g")(12,"text",8,9),e._uU(14),e.qZA()()()()()),2&r&&(e.Q6J("view",e.WLB(33,Ya,i.width,i.height))("showLegend",!1)("animations",i.animations),e.xp6(2),e.Q6J("width",i.dims.width)("height",3)("x",i.margin[3])("y",i.dims.height/2+i.margin[0]-2)("data",e.DdM(36,ip))("orientation",i.barOrientation.Horizontal)("roundEdges",!0)("animations",i.animations),e.xp6(1),e.Q6J("width",i.valueScale(i.value))("height",3)("x",i.margin[3])("y",i.dims.height/2+i.margin[0]-2)("fill",i.colors.getColor(i.units))("data",e.DdM(37,ip))("orientation",i.barOrientation.Horizontal)("roundEdges",!0)("animations",i.animations),e.xp6(1),e.Q6J("ngIf",i.hasPreviousValue),e.xp6(1),e.Q6J("ngIf",i.hasPreviousValue),e.xp6(1),e.uIk("transform",i.transform),e.xp6(1),e.uIk("transform",i.valueTranslate),e.xp6(1),e.Udp("text-anchor","middle"),e.uIk("transform",i.valueTextTransform),e.xp6(2),e.hij(" ",i.displayValue," "),e.xp6(1),e.uIk("transform",i.unitsTranslate),e.xp6(1),e.Udp("text-anchor","middle"),e.uIk("transform",i.unitsTextTransform),e.xp6(2),e.hij(" ",i.units," "))},dependencies:[Qa,_2,t.O5],styles:[$r,".linear-gauge{cursor:pointer}.linear-gauge .background-bar path{fill:#0000000d}.linear-gauge .units{fill:#666}\n"],encapsulation:2,changeDetection:0});class Yd{constructor(){this.isActive=!1,this.tooltipDisabled=!1,this.animations=!0,this.select=new e.vpe,this.activate=new e.vpe,this.deactivate=new e.vpe,this.placementTypes=Ri,this.styleTypes=Zs}tooltipText(r){const i=Ur(r.data.name);let b;return b=this.valueFormatting?this.valueFormatting(r.data.value):Ur(r.data.value),`\n <span class="tooltip-label">${fs(i)}</span>\n <span class="tooltip-val">${b}</span>\n `}}Yd.\u0275fac=function(r){return new(r||Yd)},Yd.\u0275cmp=e.Xpm({type:Yd,selectors:[["g","ngx-charts-gauge-arc",""]],inputs:{backgroundArc:"backgroundArc",valueArc:"valueArc",cornerRadius:"cornerRadius",colors:"colors",isActive:"isActive",tooltipDisabled:"tooltipDisabled",valueFormatting:"valueFormatting",tooltipTemplate:"tooltipTemplate",animations:"animations"},outputs:{select:"select",activate:"activate",deactivate:"deactivate"},attrs:["ngx-charts-gauge-arc",""],decls:2,vars:23,consts:[["ngx-charts-pie-arc","",1,"background-arc",3,"startAngle","endAngle","innerRadius","outerRadius","cornerRadius","data","animate","pointerEvents"],["ngx-charts-pie-arc","","ngx-tooltip","",3,"startAngle","endAngle","innerRadius","outerRadius","cornerRadius","fill","data","animate","isActive","tooltipDisabled","tooltipPlacement","tooltipType","tooltipTitle","tooltipTemplate","tooltipContext","select","activate","deactivate"]],template:function(r,i){1&r&&(e.O4$(),e._UZ(0,"g",0),e.TgZ(1,"g",1),e.NdJ("select",function(R){return i.select.emit(R)})("activate",function(R){return i.activate.emit(R)})("deactivate",function(R){return i.deactivate.emit(R)}),e.qZA()),2&r&&(e.Q6J("startAngle",0)("endAngle",i.backgroundArc.endAngle)("innerRadius",i.backgroundArc.innerRadius)("outerRadius",i.backgroundArc.outerRadius)("cornerRadius",i.cornerRadius)("data",i.backgroundArc.data)("animate",!1)("pointerEvents",!1),e.xp6(1),e.Q6J("startAngle",0)("endAngle",i.valueArc.endAngle)("innerRadius",i.valueArc.innerRadius)("outerRadius",i.valueArc.outerRadius)("cornerRadius",i.cornerRadius)("fill",i.colors.getColor(i.valueArc.data.name))("data",i.valueArc.data)("animate",i.animations)("isActive",i.isActive)("tooltipDisabled",i.tooltipDisabled)("tooltipPlacement",i.placementTypes.Top)("tooltipType",i.styleTypes.tooltip)("tooltipTitle",i.tooltipTemplate?void 0:i.tooltipText(i.valueArc))("tooltipTemplate",i.tooltipTemplate)("tooltipContext",i.valueArc.data))},dependencies:[T1,ho],encapsulation:2,changeDetection:0});class fu{constructor(){this.rotate=""}ngOnChanges(r){this.update()}update(){this.rotationAngle=-90+this.startAngle,this.rotate=`rotate(${this.rotationAngle})`,this.ticks=this.getTicks()}getTicks(){const r=this.angleSpan/this.bigSegments,i=r/this.smallSegments,R={big:[],small:[]},Y=this.radius+10,me=Y+20+10;for(let Pe=0;Pe<=this.bigSegments;Pe++){const lt=Pe*r,gt=lt*Math.PI/180,Et=this.getTextAnchor(lt);let Zt=!1;if(0===Pe&&360===this.angleSpan&&(Zt=!0),!Zt){let St=Number.parseFloat(this.valueScale.invert(lt).toString()).toLocaleString();this.tickFormatting&&(St=this.tickFormatting(St)),R.big.push({line:this.getTickPath(Y,20,gt),textAnchor:Et,text:St,textTransform:`\n translate(${me*Math.cos(gt)}, ${me*Math.sin(gt)}) rotate(${-this.rotationAngle})\n `})}if(Pe!==this.bigSegments)for(let St=1;St<=this.smallSegments;St++){const wn=(lt+St*i)*Math.PI/180;R.small.push({line:this.getTickPath(Y,10,wn)})}}return R}getTextAnchor(r){r=(this.startAngle+r)%360;let i=Gs.Middle;return r>45&&r<=135?i=Gs.Start:r>225&&r<=315&&(i=Gs.End),i}getTickPath(r,i,b){const R=r*Math.sin(b),Y=(r+i)*Math.sin(b),lt=[{x:r*Math.cos(b),y:R},{x:(r+i)*Math.cos(b),y:Y}];return tl().x(Et=>Et.x).y(Et=>Et.y)(lt)}}fu.\u0275fac=function(r){return new(r||fu)},fu.\u0275cmp=e.Xpm({type:fu,selectors:[["g","ngx-charts-gauge-axis",""]],inputs:{bigSegments:"bigSegments",smallSegments:"smallSegments",min:"min",max:"max",angleSpan:"angleSpan",startAngle:"startAngle",radius:"radius",valueScale:"valueScale",tickFormatting:"tickFormatting"},features:[e.TTD],attrs:["ngx-charts-gauge-axis",""],decls:4,vars:4,consts:[["class","gauge-tick gauge-tick-large",4,"ngFor","ngForOf"],["class","gauge-tick gauge-tick-small",4,"ngFor","ngForOf"],[1,"gauge-tick","gauge-tick-large"],["alignment-baseline","central"],[1,"gauge-tick","gauge-tick-small"]],template:function(r,i){1&r&&(e.O4$(),e.TgZ(0,"g"),e.YNc(1,wd,2,1,"g",0),e.YNc(2,w6,3,4,"g",0),e.YNc(3,I6,2,1,"g",1),e.qZA()),2&r&&(e.uIk("transform",i.rotate),e.xp6(1),e.Q6J("ngForOf",i.ticks.big),e.xp6(1),e.Q6J("ngForOf",i.ticks.big),e.xp6(1),e.Q6J("ngForOf",i.ticks.small))},dependencies:[t.sg],encapsulation:2,changeDetection:0});class Qd extends ja{constructor(){super(...arguments),this.legend=!1,this.legendTitle="Legend",this.legendPosition=hr.Right,this.min=0,this.max=100,this.bigSegments=10,this.smallSegments=5,this.showAxis=!0,this.startAngle=-120,this.angleSpan=240,this.activeEntries=[],this.tooltipDisabled=!1,this.showText=!0,this.activate=new e.vpe,this.deactivate=new e.vpe,this.resizeScale=1,this.rotation="",this.textTransform="scale(1, 1)",this.cornerRadius=10}ngAfterViewInit(){super.ngAfterViewInit(),setTimeout(()=>this.scaleText())}update(){super.update(),this.showAxis?this.margin||(this.margin=[60,100,60,100]):this.margin||(this.margin=[10,20,10,20]),this.startAngle<0&&(this.startAngle=this.startAngle%360+360),this.angleSpan=Math.min(this.angleSpan,360),this.dims=fr({width:this.width,height:this.height,margins:this.margin,showLegend:this.legend,legendPosition:this.legendPosition}),this.domain=this.getDomain(),this.valueDomain=this.getValueDomain(),this.valueScale=this.getValueScale(),this.displayValue=this.getDisplayValue(),this.outerRadius=Math.min(this.dims.width,this.dims.height)/2,this.arcs=this.getArcs(),this.setColors(),this.legendOptions=this.getLegendOptions();const r=this.margin[3]+this.dims.width/2,i=this.margin[0]+this.dims.height/2;this.transform=`translate(${r}, ${i})`,this.rotation=`rotate(${this.startAngle})`,setTimeout(()=>this.scaleText(),50)}getArcs(){const r=[],i=.7*this.outerRadius,b=Math.min(i/this.results.length,10),R=.7*b;this.textRadius=this.outerRadius-this.results.length*b,this.cornerRadius=Math.floor(R/2);let Y=0;for(const me of this.results){const Pe=this.outerRadius-Y*b,lt=Pe-R,Zt={backgroundArc:{endAngle:this.angleSpan*Math.PI/180,innerRadius:lt,outerRadius:Pe,data:{value:this.max,name:me.name}},valueArc:{endAngle:Math.min(this.valueScale(me.value),this.angleSpan)*Math.PI/180,innerRadius:lt,outerRadius:Pe,data:{value:me.value,name:me.name}}};r.push(Zt),Y++}return r}getDomain(){return this.results.map(r=>r.name)}getValueDomain(){const r=this.results.map(R=>R.value),i=Math.min(...r),b=Math.max(...r);return void 0!==this.min?this.min=Math.min(this.min,i):this.min=i,void 0!==this.max?this.max=Math.max(this.max,b):this.max=b,[this.min,this.max]}getValueScale(){return Ga().range([0,this.angleSpan]).nice().domain(this.valueDomain)}getDisplayValue(){const r=this.results.map(i=>i.value).reduce((i,b)=>i+b,0);return this.textValue&&0!==this.textValue.length?this.textValue.toLocaleString():this.valueFormatting?this.valueFormatting(r):r.toLocaleString()}scaleText(r=!0){if(!this.showText)return;const{width:i}=this.textEl.nativeElement.getBoundingClientRect(),b=this.resizeScale;if(0===i)this.resizeScale=1;else{const R=this.textRadius;this.resizeScale=Math.floor(R/(i/this.resizeScale)*100)/100}this.resizeScale!==b&&(this.textTransform=`scale(${this.resizeScale}, ${this.resizeScale})`,this.cd.markForCheck(),r&&setTimeout(()=>this.scaleText(!1),50))}onClick(r){this.select.emit(r)}getLegendOptions(){return{scaleType:Cn.Ordinal,colors:this.colors,domain:this.domain,title:this.legendTitle,position:this.legendPosition}}setColors(){this.colors=new Lr(this.scheme,Cn.Ordinal,this.domain,this.customColors)}onActivate(r){this.activeEntries.findIndex(b=>b.name===r.name&&b.value===r.value)>-1||(this.activeEntries=[r,...this.activeEntries],this.activate.emit({value:r,entries:this.activeEntries}))}onDeactivate(r){const i=this.activeEntries.findIndex(b=>b.name===r.name&&b.value===r.value);this.activeEntries.splice(i,1),this.activeEntries=[...this.activeEntries],this.deactivate.emit({value:r,entries:this.activeEntries})}isActive(r){return!!this.activeEntries&&void 0!==this.activeEntries.find(b=>r.name===b.name&&r.series===b.series)}trackBy(r,i){return i.valueArc.data.name}}Qd.\u0275fac=function(){let f;return function(i){return(f||(f=e.n5z(Qd)))(i||Qd)}}(),Qd.\u0275cmp=e.Xpm({type:Qd,selectors:[["ngx-charts-gauge"]],contentQueries:function(r,i,b){if(1&r&&e.Suo(b,Ir,5),2&r){let R;e.iGM(R=e.CRH())&&(i.tooltipTemplate=R.first)}},viewQuery:function(r,i){if(1&r&&e.Gf(T4,5),2&r){let b;e.iGM(b=e.CRH())&&(i.textEl=b.first)}},inputs:{legend:"legend",legendTitle:"legendTitle",legendPosition:"legendPosition",min:"min",max:"max",textValue:"textValue",units:"units",bigSegments:"bigSegments",smallSegments:"smallSegments",results:"results",showAxis:"showAxis",startAngle:"startAngle",angleSpan:"angleSpan",activeEntries:"activeEntries",axisTickFormatting:"axisTickFormatting",tooltipDisabled:"tooltipDisabled",valueFormatting:"valueFormatting",showText:"showText",margin:"margin"},outputs:{activate:"activate",deactivate:"deactivate"},features:[e.qOj],decls:5,vars:13,consts:[[3,"view","showLegend","legendOptions","activeEntries","animations","legendLabelClick","legendLabelActivate","legendLabelDeactivate"],[1,"gauge","chart"],[4,"ngFor","ngForOf","ngForTrackBy"],["ngx-charts-gauge-axis","",3,"bigSegments","smallSegments","min","max","radius","angleSpan","valueScale","startAngle","tickFormatting",4,"ngIf"],["alignment-baseline","central",3,"textAnchor",4,"ngIf"],["ngx-charts-gauge-arc","",3,"backgroundArc","valueArc","cornerRadius","colors","isActive","tooltipDisabled","tooltipTemplate","valueFormatting","animations","select","activate","deactivate"],["ngx-charts-gauge-axis","",3,"bigSegments","smallSegments","min","max","radius","angleSpan","valueScale","startAngle","tickFormatting"],["alignment-baseline","central"],["textEl",""],["x","0","dy","0"],["x","0","dy","1.2em"]],template:function(r,i){1&r&&(e.TgZ(0,"ngx-charts-chart",0),e.NdJ("legendLabelClick",function(R){return i.onClick(R)})("legendLabelActivate",function(R){return i.onActivate(R)})("legendLabelDeactivate",function(R){return i.onDeactivate(R)}),e.O4$(),e.TgZ(1,"g",1),e.YNc(2,sp,2,10,"g",2),e.YNc(3,L6,1,9,"g",3),e.YNc(4,L4,6,5,"text",4),e.qZA()()),2&r&&(e.Q6J("view",e.WLB(10,Ya,i.width,i.height))("showLegend",i.legend)("legendOptions",i.legendOptions)("activeEntries",i.activeEntries)("animations",i.animations),e.xp6(1),e.uIk("transform",i.transform),e.xp6(1),e.Q6J("ngForOf",i.arcs)("ngForTrackBy",i.trackBy),e.xp6(1),e.Q6J("ngIf",i.showAxis),e.xp6(1),e.Q6J("ngIf",i.showText))},dependencies:[Qa,Yd,fu,t.sg,t.O5],styles:[$r,".gauge .background-arc path{fill:#0000000d}.gauge .gauge-tick path{stroke:#666}.gauge .gauge-tick text{font-size:12px;fill:#666;font-weight:700}.gauge .gauge-tick-large path{stroke-width:2px}.gauge .gauge-tick-small path{stroke-width:1px}\n"],encapsulation:2,changeDetection:0});class jd{}jd.\u0275fac=function(r){return new(r||jd)},jd.\u0275mod=e.oAB({type:jd}),jd.\u0275inj=e.cJS({imports:[[Ds,Sl,y2]]});class qd{constructor(){!function B4(){typeof SVGElement<"u"&&typeof SVGElement.prototype.contains>"u"&&(SVGElement.prototype.contains=HTMLDivElement.prototype.contains)}()}}qd.\u0275fac=function(r){return new(r||qd)},qd.\u0275mod=e.oAB({type:qd}),qd.\u0275inj=e.cJS({imports:[Ds,Od,y2,Nd,x2,ic,A1,Wd,A2,Sl,Zd,jd]})},6021:(Ue,q,m)=>{"use strict";function e(P,M,z,I,W,Z,Q){try{var ie=P[Z](Q),ae=ie.value}catch(_e){return void z(_e)}ie.done?M(ae):Promise.resolve(ae).then(I,W)}m.d(q,{uU:()=>S,OF:()=>A});var _=m(2560),E=m(4666),s=m(5646);function D(P,M){if(1&P&&_._UZ(0,"canvas",1),2&P){const z=_.oxw();_.Q6J("qrCode",z.value)("qrCodeErrorCorrectionLevel",z.errorCorrectionLevel)("qrCodeCenterImageSrc",z.centerImageSrc)("qrCodeCenterImageWidth",z.centerImageSize)("qrCodeCenterImageHeight",z.centerImageSize)("qrCodeMargin",z.margin)("width",z.size)("height",z.size)("darkColor",z.darkColor)("lightColor",z.lightColor)}}const u=/^#(?:[0-9a-fA-F]{3,4}){1,2}$/;class k{constructor(M){this.viewContainerRef=M,this.errorCorrectionLevel=k.DEFAULT_ERROR_CORRECTION_LEVEL,this.darkColor="#000000FF",this.lightColor="#FFFFFFFF",this.margin=16}ngOnChanges(){var M=this;return function t(P){return function(){var M=this,z=arguments;return new Promise(function(I,W){var Z=P.apply(M,z);function Q(ae){e(Z,I,W,Q,ie,"next",ae)}function ie(ae){e(Z,I,W,Q,ie,"throw",ae)}Q(void 0)})}}(function*(){if(!M.value)return;M.version&&M.version>40?(console.warn("[qrCode] max version is 40, clamping"),M.version=40):M.version&&M.version<1?(console.warn("[qrCode] min version is 1, clamping"),M.version=1):void 0!==M.version&&isNaN(M.version)&&(console.warn("[qrCode] version should be set to a number, defaulting to auto"),M.version=void 0);const z=M.viewContainerRef.element.nativeElement;if(!z)return;const I=z.getContext("2d");I&&I.clearRect(0,0,I.canvas.width,I.canvas.height);const W=M.errorCorrectionLevel??k.DEFAULT_ERROR_CORRECTION_LEVEL,Z=u.test(M.darkColor)?M.darkColor:void 0,Q=u.test(M.lightColor)?M.lightColor:void 0;(0,_.X6Q)()&&(!Z&&M.darkColor&&console.error("[ng-qrcode] darkColor set to invalid value, must be RGBA hex color string, eg: #3050A1FF"),!Q&&M.lightColor&&console.error("[ng-qrcode] lightColor set to invalid value, must be RGBA hex color string, eg: #3050A130")),yield s.toCanvas(z,M.value,{version:M.version,errorCorrectionLevel:W,width:M.width,margin:M.margin,color:{dark:Z,light:Q}});const ie=M.centerImageSrc,ae=p(M.centerImageWidth,k.DEFAULT_CENTER_IMAGE_SIZE),_e=p(M.centerImageHeight,k.DEFAULT_CENTER_IMAGE_SIZE);if(ie&&I){M.centerImage||(M.centerImage=new Image(ae,_e)),ie!==M.centerImage?.src&&(M.centerImage.src=ie),ae!==M.centerImage.width&&(M.centerImage.width=ae),_e!==M.centerImage.height&&(M.centerImage.height=_e);const ce=M.centerImage;ce.onload=()=>{I.drawImage(ce,z.width/2-ae/2,z.height/2-_e/2,ae,_e)}}})()}}function p(P,M){return void 0===P||""===P?M:"string"==typeof P?parseInt(P,10):P}k.DEFAULT_ERROR_CORRECTION_LEVEL="M",k.DEFAULT_CENTER_IMAGE_SIZE=40,k.\u0275fac=function(M){return new(M||k)(_.Y36(_.s_b))},k.\u0275dir=_.lG2({type:k,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:[_.TTD]});class S{}S.\u0275fac=function(M){return new(M||S)},S.\u0275cmp=_.Xpm({type:S,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(M,z){1&M&&_.YNc(0,D,1,10,"canvas",0),2&M&&_.Q6J("ngIf",z.value)},dependencies:[E.O5,k],encapsulation:2});class A{}A.\u0275fac=function(M){return new(M||A)},A.\u0275mod=_.oAB({type:A}),A.\u0275inj=_.cJS({imports:[E.ez]})},8822:(Ue,q,m)=>{"use strict";m.d(q,{op:()=>dt,$V:()=>Ye,Xd:()=>ze});var e=m(253),t=m(3280),_=m(6646),E=m(9211),s=m(8951),D=m(8977),u=m(73),k=m(2560),p=m(4666);function S(Me){return getComputedStyle(Me)}function A(Me,Ce){for(var Je in Ce){var zt=Ce[Je];"number"==typeof zt&&(zt+="px"),Me.style[Je]=zt}return Me}function P(Me){var Ce=document.createElement("div");return Ce.className=Me,Ce}var M=typeof Element<"u"&&(Element.prototype.matches||Element.prototype.webkitMatchesSelector||Element.prototype.mozMatchesSelector||Element.prototype.msMatchesSelector);function z(Me,Ce){if(!M)throw new Error("No element matching method supported");return M.call(Me,Ce)}function I(Me){Me.remove?Me.remove():Me.parentNode&&Me.parentNode.removeChild(Me)}function W(Me,Ce){return Array.prototype.filter.call(Me.children,function(Je){return z(Je,Ce)})}var Z_main="ps",Z_rtl="ps__rtl",Z_element={thumb:function(Me){return"ps__thumb-"+Me},rail:function(Me){return"ps__rail-"+Me},consuming:"ps__child--consume"},Z_state={focus:"ps--focus",clicking:"ps--clicking",active:function(Me){return"ps--active-"+Me},scrolling:function(Me){return"ps--scrolling-"+Me}},Q={x:null,y:null};function ie(Me,Ce){var Je=Me.element.classList,zt=Z_state.scrolling(Ce);Je.contains(zt)?clearTimeout(Q[Ce]):Je.add(zt)}function ae(Me,Ce){Q[Ce]=setTimeout(function(){return Me.isAlive&&Me.element.classList.remove(Z_state.scrolling(Ce))},Me.settings.scrollingThreshold)}var ce=function(Ce){this.element=Ce,this.handlers={}},ye={isEmpty:{configurable:!0}};ce.prototype.bind=function(Ce,Je){typeof this.handlers[Ce]>"u"&&(this.handlers[Ce]=[]),this.handlers[Ce].push(Je),this.element.addEventListener(Ce,Je,!1)},ce.prototype.unbind=function(Ce,Je){var zt=this;this.handlers[Ce]=this.handlers[Ce].filter(function(At){return!(!Je||At===Je)||(zt.element.removeEventListener(Ce,At,!1),!1)})},ce.prototype.unbindAll=function(){for(var Ce in this.handlers)this.unbind(Ce)},ye.isEmpty.get=function(){var Me=this;return Object.keys(this.handlers).every(function(Ce){return 0===Me.handlers[Ce].length})},Object.defineProperties(ce.prototype,ye);var ue=function(){this.eventElements=[]};function $(Me){if("function"==typeof window.CustomEvent)return new CustomEvent(Me);var Ce=document.createEvent("CustomEvent");return Ce.initCustomEvent(Me,!1,!1,void 0),Ce}function he(Me,Ce,Je,zt,At){var Tt;if(void 0===zt&&(zt=!0),void 0===At&&(At=!1),"top"===Ce)Tt=["contentHeight","containerHeight","scrollTop","y","up","down"];else{if("left"!==Ce)throw new Error("A proper axis should be provided");Tt=["contentWidth","containerWidth","scrollLeft","x","left","right"]}!function w(Me,Ce,Je,zt,At){var Tt=Je[0],Ht=Je[1],He=Je[2],$e=Je[3],$t=Je[4],Rt=Je[5];void 0===zt&&(zt=!0),void 0===At&&(At=!1);var Jt=Me.element;Me.reach[$e]=null,Jt[He]<1&&(Me.reach[$e]="start"),Jt[He]>Me[Tt]-Me[Ht]-1&&(Me.reach[$e]="end"),Ce&&(Jt.dispatchEvent($("ps-scroll-"+$e)),Ce<0?Jt.dispatchEvent($("ps-scroll-"+$t)):Ce>0&&Jt.dispatchEvent($("ps-scroll-"+Rt)),zt&&function _e(Me,Ce){ie(Me,Ce),ae(Me,Ce)}(Me,$e)),Me.reach[$e]&&(Ce||At)&&Jt.dispatchEvent($("ps-"+$e+"-reach-"+Me.reach[$e]))}(Me,Je,Tt,zt,At)}function n(Me){return parseInt(Me,10)||0}ue.prototype.eventElement=function(Ce){var Je=this.eventElements.filter(function(zt){return zt.element===Ce})[0];return Je||(Je=new ce(Ce),this.eventElements.push(Je)),Je},ue.prototype.bind=function(Ce,Je,zt){this.eventElement(Ce).bind(Je,zt)},ue.prototype.unbind=function(Ce,Je,zt){var At=this.eventElement(Ce);At.unbind(Je,zt),At.isEmpty&&this.eventElements.splice(this.eventElements.indexOf(At),1)},ue.prototype.unbindAll=function(){this.eventElements.forEach(function(Ce){return Ce.unbindAll()}),this.eventElements=[]},ue.prototype.once=function(Ce,Je,zt){var At=this.eventElement(Ce),Tt=function(Ht){At.unbind(Je,Tt),zt(Ht)};At.bind(Je,Tt)};var d={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(Me){var Ce=Me.element,Je=Math.floor(Ce.scrollTop),zt=Ce.getBoundingClientRect();Me.containerWidth=Math.round(zt.width),Me.containerHeight=Math.round(zt.height),Me.contentWidth=Ce.scrollWidth,Me.contentHeight=Ce.scrollHeight,Ce.contains(Me.scrollbarXRail)||(W(Ce,Z_element.rail("x")).forEach(function(At){return I(At)}),Ce.appendChild(Me.scrollbarXRail)),Ce.contains(Me.scrollbarYRail)||(W(Ce,Z_element.rail("y")).forEach(function(At){return I(At)}),Ce.appendChild(Me.scrollbarYRail)),!Me.settings.suppressScrollX&&Me.containerWidth+Me.settings.scrollXMarginOffset<Me.contentWidth?(Me.scrollbarXActive=!0,Me.railXWidth=Me.containerWidth-Me.railXMarginWidth,Me.railXRatio=Me.containerWidth/Me.railXWidth,Me.scrollbarXWidth=L(Me,n(Me.railXWidth*Me.containerWidth/Me.contentWidth)),Me.scrollbarXLeft=n((Me.negativeScrollAdjustment+Ce.scrollLeft)*(Me.railXWidth-Me.scrollbarXWidth)/(Me.contentWidth-Me.containerWidth))):Me.scrollbarXActive=!1,!Me.settings.suppressScrollY&&Me.containerHeight+Me.settings.scrollYMarginOffset<Me.contentHeight?(Me.scrollbarYActive=!0,Me.railYHeight=Me.containerHeight-Me.railYMarginHeight,Me.railYRatio=Me.containerHeight/Me.railYHeight,Me.scrollbarYHeight=L(Me,n(Me.railYHeight*Me.containerHeight/Me.contentHeight)),Me.scrollbarYTop=n(Je*(Me.railYHeight-Me.scrollbarYHeight)/(Me.contentHeight-Me.containerHeight))):Me.scrollbarYActive=!1,Me.scrollbarXLeft>=Me.railXWidth-Me.scrollbarXWidth&&(Me.scrollbarXLeft=Me.railXWidth-Me.scrollbarXWidth),Me.scrollbarYTop>=Me.railYHeight-Me.scrollbarYHeight&&(Me.scrollbarYTop=Me.railYHeight-Me.scrollbarYHeight),function B(Me,Ce){var Je={width:Ce.railXWidth},zt=Math.floor(Me.scrollTop);Ce.isRtl?Je.left=Ce.negativeScrollAdjustment+Me.scrollLeft+Ce.containerWidth-Ce.contentWidth:Je.left=Me.scrollLeft,Ce.isScrollbarXUsingBottom?Je.bottom=Ce.scrollbarXBottom-zt:Je.top=Ce.scrollbarXTop+zt,A(Ce.scrollbarXRail,Je);var At={top:zt,height:Ce.railYHeight};Ce.isScrollbarYUsingRight?Ce.isRtl?At.right=Ce.contentWidth-(Ce.negativeScrollAdjustment+Me.scrollLeft)-Ce.scrollbarYRight-Ce.scrollbarYOuterWidth-9:At.right=Ce.scrollbarYRight-Me.scrollLeft:Ce.isRtl?At.left=Ce.negativeScrollAdjustment+Me.scrollLeft+2*Ce.containerWidth-Ce.contentWidth-Ce.scrollbarYLeft-Ce.scrollbarYOuterWidth:At.left=Ce.scrollbarYLeft+Me.scrollLeft,A(Ce.scrollbarYRail,At),A(Ce.scrollbarX,{left:Ce.scrollbarXLeft,width:Ce.scrollbarXWidth-Ce.railBorderXWidth}),A(Ce.scrollbarY,{top:Ce.scrollbarYTop,height:Ce.scrollbarYHeight-Ce.railBorderYWidth})}(Ce,Me),Me.scrollbarXActive?Ce.classList.add(Z_state.active("x")):(Ce.classList.remove(Z_state.active("x")),Me.scrollbarXWidth=0,Me.scrollbarXLeft=0,Ce.scrollLeft=!0===Me.isRtl?Me.contentWidth:0),Me.scrollbarYActive?Ce.classList.add(Z_state.active("y")):(Ce.classList.remove(Z_state.active("y")),Me.scrollbarYHeight=0,Me.scrollbarYTop=0,Ce.scrollTop=0)}function L(Me,Ce){return Me.settings.minScrollbarLength&&(Ce=Math.max(Ce,Me.settings.minScrollbarLength)),Me.settings.maxScrollbarLength&&(Ce=Math.min(Ce,Me.settings.maxScrollbarLength)),Ce}function C(Me,Ce){var Je=Ce[0],zt=Ce[1],At=Ce[2],Tt=Ce[3],Ht=Ce[4],He=Ce[5],$e=Ce[6],$t=Ce[7],Rt=Ce[8],Jt=Me.element,Vn=null,zn=null,Tn=null;function Yn(Be){Be.touches&&Be.touches[0]&&(Be[At]=Be.touches[0].pageY),Jt[$e]=Vn+Tn*(Be[At]-zn),ie(Me,$t),y(Me),Be.stopPropagation(),Be.type.startsWith("touch")&&Be.changedTouches.length>1&&Be.preventDefault()}function Mt(){ae(Me,$t),Me[Rt].classList.remove(Z_state.clicking),Me.event.unbind(Me.ownerDocument,"mousemove",Yn)}function Ge(Be,ft){Vn=Jt[$e],ft&&Be.touches&&(Be[At]=Be.touches[0].pageY),zn=Be[At],Tn=(Me[zt]-Me[Je])/(Me[Tt]-Me[He]),ft?Me.event.bind(Me.ownerDocument,"touchmove",Yn):(Me.event.bind(Me.ownerDocument,"mousemove",Yn),Me.event.once(Me.ownerDocument,"mouseup",Mt),Be.preventDefault()),Me[Rt].classList.add(Z_state.clicking),Be.stopPropagation()}Me.event.bind(Me[Ht],"mousedown",function(Be){Ge(Be)}),Me.event.bind(Me[Ht],"touchstart",function(Be){Ge(Be,!0)})}var ke={"click-rail":function v(Me){Me.element,Me.event.bind(Me.scrollbarY,"mousedown",function(Je){return Je.stopPropagation()}),Me.event.bind(Me.scrollbarYRail,"mousedown",function(Je){var At=Je.pageY-window.pageYOffset-Me.scrollbarYRail.getBoundingClientRect().top>Me.scrollbarYTop?1:-1;Me.element.scrollTop+=At*Me.containerHeight,y(Me),Je.stopPropagation()}),Me.event.bind(Me.scrollbarX,"mousedown",function(Je){return Je.stopPropagation()}),Me.event.bind(Me.scrollbarXRail,"mousedown",function(Je){var At=Je.pageX-window.pageXOffset-Me.scrollbarXRail.getBoundingClientRect().left>Me.scrollbarXLeft?1:-1;Me.element.scrollLeft+=At*Me.containerWidth,y(Me),Je.stopPropagation()})},"drag-thumb":function a(Me){C(Me,["containerWidth","contentWidth","pageX","railXWidth","scrollbarX","scrollbarXWidth","scrollLeft","x","scrollbarXRail"]),C(Me,["containerHeight","contentHeight","pageY","railYHeight","scrollbarY","scrollbarYHeight","scrollTop","y","scrollbarYRail"])},keyboard:function N(Me){var Ce=Me.element;Me.event.bind(Me.ownerDocument,"keydown",function(Tt){if(!(Tt.isDefaultPrevented&&Tt.isDefaultPrevented()||Tt.defaultPrevented)&&(z(Ce,":hover")||z(Me.scrollbarX,":focus")||z(Me.scrollbarY,":focus"))){var Ht=document.activeElement?document.activeElement:Me.ownerDocument.activeElement;if(Ht){if("IFRAME"===Ht.tagName)Ht=Ht.contentDocument.activeElement;else for(;Ht.shadowRoot;)Ht=Ht.shadowRoot.activeElement;if(function o(Me){return z(Me,"input,[contenteditable]")||z(Me,"select,[contenteditable]")||z(Me,"textarea,[contenteditable]")||z(Me,"button,[contenteditable]")}(Ht))return}var He=0,$e=0;switch(Tt.which){case 37:He=Tt.metaKey?-Me.contentWidth:Tt.altKey?-Me.containerWidth:-30;break;case 38:$e=Tt.metaKey?Me.contentHeight:Tt.altKey?Me.containerHeight:30;break;case 39:He=Tt.metaKey?Me.contentWidth:Tt.altKey?Me.containerWidth:30;break;case 40:$e=Tt.metaKey?-Me.contentHeight:Tt.altKey?-Me.containerHeight:-30;break;case 32:$e=Tt.shiftKey?Me.containerHeight:-Me.containerHeight;break;case 33:$e=Me.containerHeight;break;case 34:$e=-Me.containerHeight;break;case 36:$e=Me.contentHeight;break;case 35:$e=-Me.contentHeight;break;default:return}Me.settings.suppressScrollX&&0!==He||Me.settings.suppressScrollY&&0!==$e||(Ce.scrollTop-=$e,Ce.scrollLeft+=He,y(Me),function At(Tt,Ht){var He=Math.floor(Ce.scrollTop);if(0===Tt){if(!Me.scrollbarYActive)return!1;if(0===He&&Ht>0||He>=Me.contentHeight-Me.containerHeight&&Ht<0)return!Me.settings.wheelPropagation}var $e=Ce.scrollLeft;if(0===Ht){if(!Me.scrollbarXActive)return!1;if(0===$e&&Tt<0||$e>=Me.contentWidth-Me.containerWidth&&Tt>0)return!Me.settings.wheelPropagation}return!0}(He,$e)&&Tt.preventDefault())}})},wheel:function F(Me){var Ce=Me.element;function Tt(Ht){var He=function zt(Ht){var He=Ht.deltaX,$e=-1*Ht.deltaY;return(typeof He>"u"||typeof $e>"u")&&(He=-1*Ht.wheelDeltaX/6,$e=Ht.wheelDeltaY/6),Ht.deltaMode&&1===Ht.deltaMode&&(He*=10,$e*=10),He!=He&&$e!=$e&&(He=0,$e=Ht.wheelDelta),Ht.shiftKey?[-$e,-He]:[He,$e]}(Ht),$e=He[0],$t=He[1];if(!function At(Ht,He,$e){if(!d.isWebKit&&Ce.querySelector("select:focus"))return!0;if(!Ce.contains(Ht))return!1;for(var $t=Ht;$t&&$t!==Ce;){if($t.classList.contains(Z_element.consuming))return!0;var Rt=S($t);if($e&&Rt.overflowY.match(/(scroll|auto)/)){var Jt=$t.scrollHeight-$t.clientHeight;if(Jt>0&&($t.scrollTop>0&&$e<0||$t.scrollTop<Jt&&$e>0))return!0}if(He&&Rt.overflowX.match(/(scroll|auto)/)){var Vn=$t.scrollWidth-$t.clientWidth;if(Vn>0&&($t.scrollLeft>0&&He<0||$t.scrollLeft<Vn&&He>0))return!0}$t=$t.parentNode}return!1}(Ht.target,$e,$t)){var Rt=!1;Me.settings.useBothWheelAxes?Me.scrollbarYActive&&!Me.scrollbarXActive?($t?Ce.scrollTop-=$t*Me.settings.wheelSpeed:Ce.scrollTop+=$e*Me.settings.wheelSpeed,Rt=!0):Me.scrollbarXActive&&!Me.scrollbarYActive&&($e?Ce.scrollLeft+=$e*Me.settings.wheelSpeed:Ce.scrollLeft-=$t*Me.settings.wheelSpeed,Rt=!0):(Ce.scrollTop-=$t*Me.settings.wheelSpeed,Ce.scrollLeft+=$e*Me.settings.wheelSpeed),y(Me),Rt=Rt||function Je(Ht,He){var $e=Math.floor(Ce.scrollTop),$t=0===Ce.scrollTop,Rt=$e+Ce.offsetHeight===Ce.scrollHeight,Jt=0===Ce.scrollLeft,Vn=Ce.scrollLeft+Ce.offsetWidth===Ce.scrollWidth;return!(Math.abs(He)>Math.abs(Ht)?$t||Rt:Jt||Vn)||!Me.settings.wheelPropagation}($e,$t),Rt&&!Ht.ctrlKey&&(Ht.stopPropagation(),Ht.preventDefault())}}typeof window.onwheel<"u"?Me.event.bind(Ce,"wheel",Tt):typeof window.onmousewheel<"u"&&Me.event.bind(Ce,"mousewheel",Tt)},touch:function X(Me){if(d.supportsTouch||d.supportsIePointer){var Ce=Me.element,At={},Tt=0,Ht={},He=null;d.supportsTouch?(Me.event.bind(Ce,"touchstart",Rt),Me.event.bind(Ce,"touchmove",Vn),Me.event.bind(Ce,"touchend",zn)):d.supportsIePointer&&(window.PointerEvent?(Me.event.bind(Ce,"pointerdown",Rt),Me.event.bind(Ce,"pointermove",Vn),Me.event.bind(Ce,"pointerup",zn)):window.MSPointerEvent&&(Me.event.bind(Ce,"MSPointerDown",Rt),Me.event.bind(Ce,"MSPointerMove",Vn),Me.event.bind(Ce,"MSPointerUp",zn)))}function zt(Tn,Yn){Ce.scrollTop-=Yn,Ce.scrollLeft-=Tn,y(Me)}function $e(Tn){return Tn.targetTouches?Tn.targetTouches[0]:Tn}function $t(Tn){return(!Tn.pointerType||"pen"!==Tn.pointerType||0!==Tn.buttons)&&!!(Tn.targetTouches&&1===Tn.targetTouches.length||Tn.pointerType&&"mouse"!==Tn.pointerType&&Tn.pointerType!==Tn.MSPOINTER_TYPE_MOUSE)}function Rt(Tn){if($t(Tn)){var Yn=$e(Tn);At.pageX=Yn.pageX,At.pageY=Yn.pageY,Tt=(new Date).getTime(),null!==He&&clearInterval(He)}}function Vn(Tn){if($t(Tn)){var Yn=$e(Tn),Mt={pageX:Yn.pageX,pageY:Yn.pageY},Ge=Mt.pageX-At.pageX,Be=Mt.pageY-At.pageY;if(function Jt(Tn,Yn,Mt){if(!Ce.contains(Tn))return!1;for(var Ge=Tn;Ge&&Ge!==Ce;){if(Ge.classList.contains(Z_element.consuming))return!0;var Be=S(Ge);if(Mt&&Be.overflowY.match(/(scroll|auto)/)){var ft=Ge.scrollHeight-Ge.clientHeight;if(ft>0&&(Ge.scrollTop>0&&Mt<0||Ge.scrollTop<ft&&Mt>0))return!0}if(Yn&&Be.overflowX.match(/(scroll|auto)/)){var re=Ge.scrollWidth-Ge.clientWidth;if(re>0&&(Ge.scrollLeft>0&&Yn<0||Ge.scrollLeft<re&&Yn>0))return!0}Ge=Ge.parentNode}return!1}(Tn.target,Ge,Be))return;zt(Ge,Be),At=Mt;var ft=(new Date).getTime(),re=ft-Tt;re>0&&(Ht.x=Ge/re,Ht.y=Be/re,Tt=ft),function Je(Tn,Yn){var Mt=Math.floor(Ce.scrollTop),Ge=Ce.scrollLeft,Be=Math.abs(Tn),ft=Math.abs(Yn);if(ft>Be){if(Yn<0&&Mt===Me.contentHeight-Me.containerHeight||Yn>0&&0===Mt)return 0===window.scrollY&&Yn>0&&d.isChrome}else if(Be>ft&&(Tn<0&&Ge===Me.contentWidth-Me.containerWidth||Tn>0&&0===Ge))return!0;return!0}(Ge,Be)&&Tn.preventDefault()}}function zn(){Me.settings.swipeEasing&&(clearInterval(He),He=setInterval(function(){Me.isInitialized?clearInterval(He):Ht.x||Ht.y?Math.abs(Ht.x)<.01&&Math.abs(Ht.y)<.01?clearInterval(He):Me.element?(zt(30*Ht.x,30*Ht.y),Ht.x*=.8,Ht.y*=.8):clearInterval(He):clearInterval(He)},10))}}},Ke=function(Ce,Je){var zt=this;if(void 0===Je&&(Je={}),"string"==typeof Ce&&(Ce=document.querySelector(Ce)),!Ce||!Ce.nodeName)throw new Error("no element is specified to initialize PerfectScrollbar");for(var At in this.element=Ce,Ce.classList.add(Z_main),this.settings={handlers:["click-rail","drag-thumb","keyboard","wheel","touch"],maxScrollbarLength:null,minScrollbarLength:null,scrollingThreshold:1e3,scrollXMarginOffset:0,scrollYMarginOffset:0,suppressScrollX:!1,suppressScrollY:!1,swipeEasing:!0,useBothWheelAxes:!1,wheelPropagation:!0,wheelSpeed:1},Je)this.settings[At]=Je[At];this.containerWidth=null,this.containerHeight=null,this.contentWidth=null,this.contentHeight=null;var Rt,$t,Tt=function(){return Ce.classList.add(Z_state.focus)},Ht=function(){return Ce.classList.remove(Z_state.focus)};this.isRtl="rtl"===S(Ce).direction,!0===this.isRtl&&Ce.classList.add(Z_rtl),this.isNegativeScroll=($t=Ce.scrollLeft,Ce.scrollLeft=-1,Rt=Ce.scrollLeft<0,Ce.scrollLeft=$t,Rt),this.negativeScrollAdjustment=this.isNegativeScroll?Ce.scrollWidth-Ce.clientWidth:0,this.event=new ue,this.ownerDocument=Ce.ownerDocument||document,this.scrollbarXRail=P(Z_element.rail("x")),Ce.appendChild(this.scrollbarXRail),this.scrollbarX=P(Z_element.thumb("x")),this.scrollbarXRail.appendChild(this.scrollbarX),this.scrollbarX.setAttribute("tabindex",0),this.event.bind(this.scrollbarX,"focus",Tt),this.event.bind(this.scrollbarX,"blur",Ht),this.scrollbarXActive=null,this.scrollbarXWidth=null,this.scrollbarXLeft=null;var He=S(this.scrollbarXRail);this.scrollbarXBottom=parseInt(He.bottom,10),isNaN(this.scrollbarXBottom)?(this.isScrollbarXUsingBottom=!1,this.scrollbarXTop=n(He.top)):this.isScrollbarXUsingBottom=!0,this.railBorderXWidth=n(He.borderLeftWidth)+n(He.borderRightWidth),A(this.scrollbarXRail,{display:"block"}),this.railXMarginWidth=n(He.marginLeft)+n(He.marginRight),A(this.scrollbarXRail,{display:""}),this.railXWidth=null,this.railXRatio=null,this.scrollbarYRail=P(Z_element.rail("y")),Ce.appendChild(this.scrollbarYRail),this.scrollbarY=P(Z_element.thumb("y")),this.scrollbarYRail.appendChild(this.scrollbarY),this.scrollbarY.setAttribute("tabindex",0),this.event.bind(this.scrollbarY,"focus",Tt),this.event.bind(this.scrollbarY,"blur",Ht),this.scrollbarYActive=null,this.scrollbarYHeight=null,this.scrollbarYTop=null;var $e=S(this.scrollbarYRail);this.scrollbarYRight=parseInt($e.right,10),isNaN(this.scrollbarYRight)?(this.isScrollbarYUsingRight=!1,this.scrollbarYLeft=n($e.left)):this.isScrollbarYUsingRight=!0,this.scrollbarYOuterWidth=this.isRtl?function h(Me){var Ce=S(Me);return n(Ce.width)+n(Ce.paddingLeft)+n(Ce.paddingRight)+n(Ce.borderLeftWidth)+n(Ce.borderRightWidth)}(this.scrollbarY):null,this.railBorderYWidth=n($e.borderTopWidth)+n($e.borderBottomWidth),A(this.scrollbarYRail,{display:"block"}),this.railYMarginHeight=n($e.marginTop)+n($e.marginBottom),A(this.scrollbarYRail,{display:""}),this.railYHeight=null,this.railYRatio=null,this.reach={x:Ce.scrollLeft<=0?"start":Ce.scrollLeft>=this.contentWidth-this.containerWidth?"end":null,y:Ce.scrollTop<=0?"start":Ce.scrollTop>=this.contentHeight-this.containerHeight?"end":null},this.isAlive=!0,this.settings.handlers.forEach(function($t){return ke[$t](zt)}),this.lastScrollTop=Math.floor(Ce.scrollTop),this.lastScrollLeft=Ce.scrollLeft,this.event.bind(this.element,"scroll",function($t){return zt.onScroll($t)}),y(this)};Ke.prototype.update=function(){!this.isAlive||(this.negativeScrollAdjustment=this.isNegativeScroll?this.element.scrollWidth-this.element.clientWidth:0,A(this.scrollbarXRail,{display:"block"}),A(this.scrollbarYRail,{display:"block"}),this.railXMarginWidth=n(S(this.scrollbarXRail).marginLeft)+n(S(this.scrollbarXRail).marginRight),this.railYMarginHeight=n(S(this.scrollbarYRail).marginTop)+n(S(this.scrollbarYRail).marginBottom),A(this.scrollbarXRail,{display:"none"}),A(this.scrollbarYRail,{display:"none"}),y(this),he(this,"top",0,!1,!0),he(this,"left",0,!1,!0),A(this.scrollbarXRail,{display:""}),A(this.scrollbarYRail,{display:""}))},Ke.prototype.onScroll=function(Ce){!this.isAlive||(y(this),he(this,"top",this.element.scrollTop-this.lastScrollTop),he(this,"left",this.element.scrollLeft-this.lastScrollLeft),this.lastScrollTop=Math.floor(this.element.scrollTop),this.lastScrollLeft=this.element.scrollLeft)},Ke.prototype.destroy=function(){!this.isAlive||(this.event.unbindAll(),I(this.scrollbarX),I(this.scrollbarY),I(this.scrollbarXRail),I(this.scrollbarYRail),this.removePsClasses(),this.element=null,this.scrollbarX=null,this.scrollbarY=null,this.scrollbarXRail=null,this.scrollbarYRail=null,this.isAlive=!1)},Ke.prototype.removePsClasses=function(){this.element.className=this.element.className.split(" ").filter(function(Ce){return!Ce.match(/^ps([-_].+|)$/)}).join(" ")};const je=Ke;var Ve=function(){if(typeof Map<"u")return Map;function Me(Ce,Je){var zt=-1;return Ce.some(function(At,Tt){return At[0]===Je&&(zt=Tt,!0)}),zt}return function(){function Ce(){this.__entries__=[]}return Object.defineProperty(Ce.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),Ce.prototype.get=function(Je){var zt=Me(this.__entries__,Je),At=this.__entries__[zt];return At&&At[1]},Ce.prototype.set=function(Je,zt){var At=Me(this.__entries__,Je);~At?this.__entries__[At][1]=zt:this.__entries__.push([Je,zt])},Ce.prototype.delete=function(Je){var zt=this.__entries__,At=Me(zt,Je);~At&&zt.splice(At,1)},Ce.prototype.has=function(Je){return!!~Me(this.__entries__,Je)},Ce.prototype.clear=function(){this.__entries__.splice(0)},Ce.prototype.forEach=function(Je,zt){void 0===zt&&(zt=null);for(var At=0,Tt=this.__entries__;At<Tt.length;At++){var Ht=Tt[At];Je.call(zt,Ht[1],Ht[0])}},Ce}()}(),xe=typeof window<"u"&&typeof document<"u"&&window.document===document,Ze=typeof global<"u"&&global.Math===Math?global:typeof self<"u"&&self.Math===Math?self:typeof window<"u"&&window.Math===Math?window:Function("return this")(),Ie="function"==typeof requestAnimationFrame?requestAnimationFrame.bind(Ze):function(Me){return setTimeout(function(){return Me(Date.now())},1e3/60)};var Le=["top","right","bottom","left","width","height","size","weight"],Ae=typeof MutationObserver<"u",te=function(){function Me(){this.connected_=!1,this.mutationEventsAdded_=!1,this.mutationsObserver_=null,this.observers_=[],this.onTransitionEnd_=this.onTransitionEnd_.bind(this),this.refresh=function et(Me,Ce){var Je=!1,zt=!1,At=0;function Tt(){Je&&(Je=!1,Me()),zt&&He()}function Ht(){Ie(Tt)}function He(){var $e=Date.now();if(Je){if($e-At<2)return;zt=!0}else Je=!0,zt=!1,setTimeout(Ht,Ce);At=$e}return He}(this.refresh.bind(this),20)}return Me.prototype.addObserver=function(Ce){~this.observers_.indexOf(Ce)||this.observers_.push(Ce),this.connected_||this.connect_()},Me.prototype.removeObserver=function(Ce){var Je=this.observers_,zt=Je.indexOf(Ce);~zt&&Je.splice(zt,1),!Je.length&&this.connected_&&this.disconnect_()},Me.prototype.refresh=function(){this.updateObservers_()&&this.refresh()},Me.prototype.updateObservers_=function(){var Ce=this.observers_.filter(function(Je){return Je.gatherActive(),Je.hasActive()});return Ce.forEach(function(Je){return Je.broadcastActive()}),Ce.length>0},Me.prototype.connect_=function(){!xe||this.connected_||(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),Ae?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},Me.prototype.disconnect_=function(){!xe||!this.connected_||(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},Me.prototype.onTransitionEnd_=function(Ce){var Je=Ce.propertyName,zt=void 0===Je?"":Je;Le.some(function(Tt){return!!~zt.indexOf(Tt)})&&this.refresh()},Me.getInstance=function(){return this.instance_||(this.instance_=new Me),this.instance_},Me.instance_=null,Me}(),pe=function(Me,Ce){for(var Je=0,zt=Object.keys(Ce);Je<zt.length;Je++){var At=zt[Je];Object.defineProperty(Me,At,{value:Ce[At],enumerable:!1,writable:!1,configurable:!0})}return Me},ee=function(Me){return Me&&Me.ownerDocument&&Me.ownerDocument.defaultView||Ze},H=Ut(0,0,0,0);function j(Me){return parseFloat(Me)||0}function Oe(Me){for(var Ce=[],Je=1;Je<arguments.length;Je++)Ce[Je-1]=arguments[Je];return Ce.reduce(function(zt,At){return zt+j(Me["border-"+At+"-width"])},0)}function _t(Me){var Ce=Me.clientWidth,Je=Me.clientHeight;if(!Ce&&!Je)return H;var zt=ee(Me).getComputedStyle(Me),At=function Re(Me){for(var Je={},zt=0,At=["top","right","bottom","left"];zt<At.length;zt++){var Tt=At[zt],Ht=Me["padding-"+Tt];Je[Tt]=j(Ht)}return Je}(zt),Tt=At.left+At.right,Ht=At.top+At.bottom,He=j(zt.width),$e=j(zt.height);if("border-box"===zt.boxSizing&&(Math.round(He+Tt)!==Ce&&(He-=Oe(zt,"left","right")+Tt),Math.round($e+Ht)!==Je&&($e-=Oe(zt,"top","bottom")+Ht)),!function Ct(Me){return Me===ee(Me).document.documentElement}(Me)){var $t=Math.round(He+Tt)-Ce,Rt=Math.round($e+Ht)-Je;1!==Math.abs($t)&&(He-=$t),1!==Math.abs(Rt)&&($e-=Rt)}return Ut(At.left,At.top,He,$e)}var it=typeof SVGGraphicsElement<"u"?function(Me){return Me instanceof ee(Me).SVGGraphicsElement}:function(Me){return Me instanceof ee(Me).SVGElement&&"function"==typeof Me.getBBox};function un(Me){return xe?it(Me)?function le(Me){var Ce=Me.getBBox();return Ut(0,0,Ce.width,Ce.height)}(Me):_t(Me):H}function Ut(Me,Ce,Je,zt){return{x:Me,y:Ce,width:Je,height:zt}}var yn=function(){function Me(Ce){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=Ut(0,0,0,0),this.target=Ce}return Me.prototype.isActive=function(){var Ce=un(this.target);return this.contentRect_=Ce,Ce.width!==this.broadcastWidth||Ce.height!==this.broadcastHeight},Me.prototype.broadcastRect=function(){var Ce=this.contentRect_;return this.broadcastWidth=Ce.width,this.broadcastHeight=Ce.height,Ce},Me}(),Xt=function Me(Ce,Je){var zt=function Bt(Me){var Ce=Me.x,Je=Me.y,zt=Me.width,At=Me.height,Tt=typeof DOMRectReadOnly<"u"?DOMRectReadOnly:Object,Ht=Object.create(Tt.prototype);return pe(Ht,{x:Ce,y:Je,width:zt,height:At,top:Je,right:Ce+zt,bottom:At+Je,left:Ce}),Ht}(Je);pe(this,{target:Ce,contentRect:zt})},Gt=function(){function Me(Ce,Je,zt){if(this.activeObservations_=[],this.observations_=new Ve,"function"!=typeof Ce)throw new TypeError("The callback provided as parameter 1 is not a function.");this.callback_=Ce,this.controller_=Je,this.callbackCtx_=zt}return Me.prototype.observe=function(Ce){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if(!(typeof Element>"u")&&Element instanceof Object){if(!(Ce instanceof ee(Ce).Element))throw new TypeError('parameter 1 is not of type "Element".');var Je=this.observations_;Je.has(Ce)||(Je.set(Ce,new yn(Ce)),this.controller_.addObserver(this),this.controller_.refresh())}},Me.prototype.unobserve=function(Ce){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if(!(typeof Element>"u")&&Element instanceof Object){if(!(Ce instanceof ee(Ce).Element))throw new TypeError('parameter 1 is not of type "Element".');var Je=this.observations_;!Je.has(Ce)||(Je.delete(Ce),Je.size||this.controller_.removeObserver(this))}},Me.prototype.disconnect=function(){this.clearActive(),this.observations_.clear(),this.controller_.removeObserver(this)},Me.prototype.gatherActive=function(){var Ce=this;this.clearActive(),this.observations_.forEach(function(Je){Je.isActive()&&Ce.activeObservations_.push(Je)})},Me.prototype.broadcastActive=function(){if(this.hasActive()){var Ce=this.callbackCtx_,Je=this.activeObservations_.map(function(zt){return new Xt(zt.target,zt.broadcastRect())});this.callback_.call(Ce,Je,Ce),this.clearActive()}},Me.prototype.clearActive=function(){this.activeObservations_.splice(0)},Me.prototype.hasActive=function(){return this.activeObservations_.length>0},Me}(),In=typeof WeakMap<"u"?new WeakMap:new Ve,rn=function Me(Ce){if(!(this instanceof Me))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var Je=te.getInstance(),zt=new Gt(Ce,Je,this);In.set(this,zt)};["observe","unobserve","disconnect"].forEach(function(Me){rn.prototype[Me]=function(){var Ce;return(Ce=In.get(this))[Me].apply(Ce,arguments)}});const pn=typeof Ze.ResizeObserver<"u"?Ze.ResizeObserver:rn;function tt(Me,Ce){if(1&Me&&(k.TgZ(0,"div",3),k._UZ(1,"div",4)(2,"div",5)(3,"div",6)(4,"div",7),k.qZA()),2&Me){const Je=k.oxw();k.ekj("ps-at-top",Je.states.top)("ps-at-left",Je.states.left)("ps-at-right",Je.states.right)("ps-at-bottom",Je.states.bottom),k.xp6(1),k.ekj("ps-indicator-show",Je.indicatorY&&Je.interaction),k.xp6(1),k.ekj("ps-indicator-show",Je.indicatorX&&Je.interaction),k.xp6(1),k.ekj("ps-indicator-show",Je.indicatorX&&Je.interaction),k.xp6(1),k.ekj("ps-indicator-show",Je.indicatorY&&Je.interaction)}}const dt=new k.OlP("PERFECT_SCROLLBAR_CONFIG");class se{constructor(Ce,Je,zt,At){this.x=Ce,this.y=Je,this.w=zt,this.h=At}}class J{constructor(Ce,Je){this.x=Ce,this.y=Je}}const oe=["psScrollY","psScrollX","psScrollUp","psScrollDown","psScrollLeft","psScrollRight","psYReachEnd","psYReachStart","psXReachEnd","psXReachStart"];class De{constructor(Ce={}){this.assign(Ce)}assign(Ce={}){for(const Je in Ce)this[Je]=Ce[Je]}}class Ye{constructor(Ce,Je,zt,At,Tt){this.zone=Ce,this.differs=Je,this.elementRef=zt,this.platformId=At,this.defaults=Tt,this.instance=null,this.ro=null,this.timeout=null,this.animation=null,this.configDiff=null,this.ngDestroy=new e.x,this.disabled=!1,this.psScrollY=new k.vpe,this.psScrollX=new k.vpe,this.psScrollUp=new k.vpe,this.psScrollDown=new k.vpe,this.psScrollLeft=new k.vpe,this.psScrollRight=new k.vpe,this.psYReachEnd=new k.vpe,this.psYReachStart=new k.vpe,this.psXReachEnd=new k.vpe,this.psXReachStart=new k.vpe}ngOnInit(){if(!this.disabled&&(0,p.NF)(this.platformId)){const Ce=new De(this.defaults);Ce.assign(this.config),this.zone.runOutsideAngular(()=>{this.instance=new je(this.elementRef.nativeElement,Ce)}),this.configDiff||(this.configDiff=this.differs.find(this.config||{}).create(),this.configDiff.diff(this.config||{})),this.zone.runOutsideAngular(()=>{this.ro=new pn(()=>{this.update()}),this.elementRef.nativeElement.children[0]&&this.ro.observe(this.elementRef.nativeElement.children[0]),this.ro.observe(this.elementRef.nativeElement)}),this.zone.runOutsideAngular(()=>{oe.forEach(Je=>{const zt=Je.replace(/([A-Z])/g,At=>`-${At.toLowerCase()}`);(0,t.R)(this.elementRef.nativeElement,zt).pipe((0,E.e)(20),(0,s.R)(this.ngDestroy)).subscribe(At=>{this[Je].emit(At)})})})}}ngOnDestroy(){(0,p.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,p.NF)(this.platformId)&&this.configDiff.diff(this.config||{})&&(this.ngOnDestroy(),this.ngOnInit())}ngOnChanges(Ce){Ce.disabled&&!Ce.disabled.isFirstChange()&&(0,p.NF)(this.platformId)&&Ce.disabled.currentValue!==Ce.disabled.previousValue&&(!0===Ce.disabled.currentValue?this.ngOnDestroy():!1===Ce.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(Ce="scroll"){return new se(this.elementRef.nativeElement[Ce+"Left"],this.elementRef.nativeElement[Ce+"Top"],this.elementRef.nativeElement[Ce+"Width"],this.elementRef.nativeElement[Ce+"Height"])}position(Ce=!1){return!Ce&&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(Ce="any"){const Je=this.elementRef.nativeElement;return"any"===Ce?Je.classList.contains("ps--active-x")||Je.classList.contains("ps--active-y"):"both"===Ce?Je.classList.contains("ps--active-x")&&Je.classList.contains("ps--active-y"):Je.classList.contains("ps--active-"+Ce)}scrollTo(Ce,Je,zt){this.disabled||(null==Je&&null==zt?this.animateScrolling("scrollTop",Ce,zt):(null!=Ce&&this.animateScrolling("scrollLeft",Ce,zt),null!=Je&&this.animateScrolling("scrollTop",Je,zt)))}scrollToX(Ce,Je){this.animateScrolling("scrollLeft",Ce,Je)}scrollToY(Ce,Je){this.animateScrolling("scrollTop",Ce,Je)}scrollToTop(Ce,Je){this.animateScrolling("scrollTop",Ce||0,Je)}scrollToLeft(Ce,Je){this.animateScrolling("scrollLeft",Ce||0,Je)}scrollToRight(Ce,Je){const zt=this.elementRef.nativeElement.scrollWidth-this.elementRef.nativeElement.clientWidth;this.animateScrolling("scrollLeft",zt-(Ce||0),Je)}scrollToBottom(Ce,Je){const zt=this.elementRef.nativeElement.scrollHeight-this.elementRef.nativeElement.clientHeight;this.animateScrolling("scrollTop",zt-(Ce||0),Je)}scrollToElement(Ce,Je,zt){if("string"==typeof Ce&&(Ce=this.elementRef.nativeElement.querySelector(Ce)),Ce){const At=Ce.getBoundingClientRect(),Tt=this.elementRef.nativeElement.getBoundingClientRect();if(this.elementRef.nativeElement.classList.contains("ps--active-x")){const Ht=this.elementRef.nativeElement.scrollLeft,He=At.left-Tt.left+Ht;this.animateScrolling("scrollLeft",He+(Je||0),zt)}if(this.elementRef.nativeElement.classList.contains("ps--active-y")){const Ht=this.elementRef.nativeElement.scrollTop,He=At.top-Tt.top+Ht;this.animateScrolling("scrollTop",He+(Je||0),zt)}}}animateScrolling(Ce,Je,zt){if(this.animation&&(window.cancelAnimationFrame(this.animation),this.animation=null),!zt||typeof window>"u")this.elementRef.nativeElement[Ce]=Je;else if(Je!==this.elementRef.nativeElement[Ce]){let At=0,Tt=0,Ht=performance.now(),He=this.elementRef.nativeElement[Ce];const $e=(He-Je)/2,$t=Rt=>{Tt+=Math.PI/(zt/(Rt-Ht)),At=Math.round(Je+$e+$e*Math.cos(Tt)),this.elementRef.nativeElement[Ce]===He&&(Tt>=Math.PI?this.animateScrolling(Ce,Je,0):(this.elementRef.nativeElement[Ce]=At,He=this.elementRef.nativeElement[Ce],Ht=Rt,this.animation=window.requestAnimationFrame($t)))};window.requestAnimationFrame($t)}}}Ye.\u0275fac=function(Ce){return new(Ce||Ye)(k.Y36(k.R0b),k.Y36(k.aQg),k.Y36(k.SBq),k.Y36(k.Lbi),k.Y36(dt,8))},Ye.\u0275dir=k.lG2({type:Ye,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:[k.TTD]});class Dt{constructor(Ce,Je,zt){this.zone=Ce,this.cdRef=Je,this.platformId=zt,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 e.x,this.stateUpdate=new e.x,this.disabled=!1,this.usePSClass=!0,this.autoPropagation=!1,this.scrollIndicators=!1,this.psScrollY=new k.vpe,this.psScrollX=new k.vpe,this.psScrollUp=new k.vpe,this.psScrollDown=new k.vpe,this.psScrollLeft=new k.vpe,this.psScrollRight=new k.vpe,this.psYReachEnd=new k.vpe,this.psYReachStart=new k.vpe,this.psXReachEnd=new k.vpe,this.psXReachStart=new k.vpe}ngOnInit(){(0,p.NF)(this.platformId)&&(this.stateUpdate.pipe((0,s.R)(this.ngDestroy),(0,D.x)((Ce,Je)=>Ce===Je&&!this.stateTimeout)).subscribe(Ce=>{this.stateTimeout&&typeof window<"u"&&(window.clearTimeout(this.stateTimeout),this.stateTimeout=null),"x"===Ce||"y"===Ce?(this.interaction=!1,"x"===Ce?(this.indicatorX=!1,this.states.left=!1,this.states.right=!1,this.autoPropagation&&this.usePropagationX&&(this.allowPropagationX=!1)):"y"===Ce&&(this.indicatorY=!1,this.states.top=!1,this.states.bottom=!1,this.autoPropagation&&this.usePropagationY&&(this.allowPropagationY=!1))):("left"===Ce||"right"===Ce?(this.states.left=!1,this.states.right=!1,this.states[Ce]=!0,this.autoPropagation&&this.usePropagationX&&(this.indicatorX=!0)):("top"===Ce||"bottom"===Ce)&&(this.states.top=!1,this.states.bottom=!1,this.states[Ce]=!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 Ce=this.directiveRef.elementRef.nativeElement;(0,t.R)(Ce,"wheel").pipe((0,s.R)(this.ngDestroy)).subscribe(Je=>{if(!this.disabled&&this.autoPropagation){const zt=Je.deltaX,At=Je.deltaY;this.checkPropagation(Je,zt,At)}}),(0,t.R)(Ce,"touchmove").pipe((0,s.R)(this.ngDestroy)).subscribe(Je=>{if(!this.disabled&&this.autoPropagation){const zt=Je.touches[0].clientX,At=Je.touches[0].clientY,Tt=zt-this.scrollPositionX,Ht=At-this.scrollPositionY;this.checkPropagation(Je,Tt,Ht),this.scrollPositionX=zt,this.scrollPositionY=At}}),(0,_.T)((0,t.R)(Ce,"ps-scroll-x").pipe((0,u.h)("x")),(0,t.R)(Ce,"ps-scroll-y").pipe((0,u.h)("y")),(0,t.R)(Ce,"ps-x-reach-end").pipe((0,u.h)("right")),(0,t.R)(Ce,"ps-y-reach-end").pipe((0,u.h)("bottom")),(0,t.R)(Ce,"ps-x-reach-start").pipe((0,u.h)("left")),(0,t.R)(Ce,"ps-y-reach-start").pipe((0,u.h)("top"))).pipe((0,s.R)(this.ngDestroy)).subscribe(Je=>{!this.disabled&&(this.autoPropagation||this.scrollIndicators)&&this.stateUpdate.next(Je)})}}),window.setTimeout(()=>{oe.forEach(Ce=>{this.directiveRef&&(this.directiveRef[Ce]=this[Ce])})},0))}ngOnDestroy(){(0,p.NF)(this.platformId)&&(this.ngDestroy.next(),this.ngDestroy.unsubscribe(),this.stateTimeout&&typeof window<"u"&&window.clearTimeout(this.stateTimeout))}ngDoCheck(){if((0,p.NF)(this.platformId)&&!this.disabled&&this.autoPropagation&&this.directiveRef){const Ce=this.directiveRef.elementRef.nativeElement;this.usePropagationX=Ce.classList.contains("ps--active-x"),this.usePropagationY=Ce.classList.contains("ps--active-y")}}checkPropagation(Ce,Je,zt){this.interaction=!0;const At=Je<0?-1:1,Tt=zt<0?-1:1;(this.usePropagationX&&this.usePropagationY||this.usePropagationX&&(!this.allowPropagationX||this.scrollDirectionX!==At)||this.usePropagationY&&(!this.allowPropagationY||this.scrollDirectionY!==Tt))&&(Ce.preventDefault(),Ce.stopPropagation()),Je&&(this.scrollDirectionX=At),zt&&(this.scrollDirectionY=Tt),this.stateUpdate.next("interaction"),this.cdRef.detectChanges()}}Dt.\u0275fac=function(Ce){return new(Ce||Dt)(k.Y36(k.R0b),k.Y36(k.sBO),k.Y36(k.Lbi))},Dt.\u0275cmp=k.Xpm({type:Dt,selectors:[["perfect-scrollbar"]],viewQuery:function(Ce,Je){if(1&Ce&&k.Gf(Ye,7),2&Ce){let zt;k.iGM(zt=k.CRH())&&(Je.directiveRef=zt.first)}},hostVars:4,hostBindings:function(Ce,Je){2&Ce&&k.ekj("ps-show-limits",Je.autoPropagation)("ps-show-active",Je.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:["*"],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(Ce,Je){1&Ce&&(k.F$t(),k.TgZ(0,"div",0)(1,"div",1),k.Hsn(2),k.qZA(),k.YNc(3,tt,5,16,"div",2),k.qZA()),2&Ce&&(k.ekj("ps",Je.usePSClass),k.Q6J("perfectScrollbar",Je.config)("disabled",Je.disabled),k.xp6(3),k.Q6J("ngIf",Je.scrollIndicators))},dependencies:[Ye,p.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});class ut{constructor(Ce,Je){this.renderer=Ce,["ps__child","ps__child--consume"].forEach(zt=>{this.renderer.addClass(Je?.nativeElement,zt)})}}ut.\u0275fac=function(Ce){return new(Ce||ut)(k.Y36(k.Qsj),k.Y36(k.SBq))},ut.\u0275dir=k.lG2({type:ut,selectors:[["","forceNativeScrolling",""]]});class ze{}ze.\u0275fac=function(Ce){return new(Ce||ze)},ze.\u0275mod=k.oAB({type:ze}),ze.\u0275inj=k.cJS({imports:[[p.ez],p.ez]})},4946:Ue=>{"use strict";Ue.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:Ue=>{"use strict";Ue.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"}}')},7036:Ue=>{"use strict";Ue.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:Ue=>{"use strict";Ue.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:Ue=>{"use strict";Ue.exports={i8:"6.5.4"}},2562:Ue=>{"use strict";Ue.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"}')}},Ue=>{var e;e=2693,Ue(Ue.s=e)}]);
//# sourceMappingURL=main.453d519df5a5d71c.js.map